chore: async api client (#3941)

#### What type of PR is this?

/kind improvement
/area console

#### What this PR does / why we need it:

同步 api client。

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/3939/head
Ryan Wang 2023-05-16 18:18:51 +08:00 committed by GitHub
parent 0ff11db111
commit 017d5b8d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
76 changed files with 6034 additions and 1879 deletions

View File

@ -12,10 +12,17 @@ api/api-console-halo-run-v1alpha1-single-page-api.ts
api/api-console-halo-run-v1alpha1-stats-api.ts
api/api-console-halo-run-v1alpha1-theme-api.ts
api/api-console-halo-run-v1alpha1-user-api.ts
api/api-content-halo-run-v1alpha1-category-api.ts
api/api-content-halo-run-v1alpha1-post-api.ts
api/api-content-halo-run-v1alpha1-single-page-api.ts
api/api-content-halo-run-v1alpha1-tag-api.ts
api/api-halo-run-v1alpha1-comment-api.ts
api/api-halo-run-v1alpha1-menu-api.ts
api/api-halo-run-v1alpha1-post-api.ts
api/api-halo-run-v1alpha1-stats-api.ts
api/api-halo-run-v1alpha1-tracker-api.ts
api/api-halo-run-v1alpha1-user-api.ts
api/api-plugin-halo-run-v1alpha1-plugin-api.ts
api/auth-halo-run-v1alpha1-auth-provider-api.ts
api/auth-halo-run-v1alpha1-user-connection-api.ts
api/content-halo-run-v1alpha1-category-api.ts
@ -66,6 +73,8 @@ models/author.ts
models/category-list.ts
models/category-spec.ts
models/category-status.ts
models/category-vo-list.ts
models/category-vo.ts
models/category.ts
models/change-password-request.ts
models/comment-email-owner.ts
@ -83,8 +92,10 @@ models/condition.ts
models/config-map-list.ts
models/config-map-ref.ts
models/config-map.ts
models/content-vo.ts
models/content-wrapper.ts
models/content.ts
models/contributor-vo.ts
models/contributor.ts
models/counter-list.ts
models/counter-request.ts
@ -114,21 +125,28 @@ models/listed-auth-provider.ts
models/listed-comment-list.ts
models/listed-comment.ts
models/listed-post-list.ts
models/listed-post-vo-list.ts
models/listed-post-vo.ts
models/listed-post.ts
models/listed-reply-list.ts
models/listed-reply.ts
models/listed-single-page-list.ts
models/listed-single-page-vo-list.ts
models/listed-single-page-vo.ts
models/listed-single-page.ts
models/listed-user.ts
models/login-history.ts
models/menu-item-list.ts
models/menu-item-spec.ts
models/menu-item-status.ts
models/menu-item-vo.ts
models/menu-item.ts
models/menu-list.ts
models/menu-spec.ts
models/menu-vo.ts
models/menu.ts
models/metadata.ts
models/navigation-post-vo.ts
models/owner-info.ts
models/personal-access-token-list.ts
models/personal-access-token-spec.ts
@ -151,6 +169,7 @@ models/post-list.ts
models/post-request.ts
models/post-spec.ts
models/post-status.ts
models/post-vo.ts
models/post.ts
models/public-key-response.ts
models/ref.ts
@ -183,15 +202,20 @@ models/single-page-list.ts
models/single-page-request.ts
models/single-page-spec.ts
models/single-page-status.ts
models/single-page-vo.ts
models/single-page.ts
models/site-stats-vo.ts
models/snap-shot-spec.ts
models/snapshot-list.ts
models/snapshot.ts
models/stats-vo.ts
models/stats.ts
models/subject.ts
models/tag-list.ts
models/tag-spec.ts
models/tag-status.ts
models/tag-vo-list.ts
models/tag-vo.ts
models/tag.ts
models/template-descriptor.ts
models/theme-list.ts

View File

@ -23,10 +23,17 @@ export * from "./api/api-console-halo-run-v1alpha1-single-page-api";
export * from "./api/api-console-halo-run-v1alpha1-stats-api";
export * from "./api/api-console-halo-run-v1alpha1-theme-api";
export * from "./api/api-console-halo-run-v1alpha1-user-api";
export * from "./api/api-content-halo-run-v1alpha1-category-api";
export * from "./api/api-content-halo-run-v1alpha1-post-api";
export * from "./api/api-content-halo-run-v1alpha1-single-page-api";
export * from "./api/api-content-halo-run-v1alpha1-tag-api";
export * from "./api/api-halo-run-v1alpha1-comment-api";
export * from "./api/api-halo-run-v1alpha1-menu-api";
export * from "./api/api-halo-run-v1alpha1-post-api";
export * from "./api/api-halo-run-v1alpha1-stats-api";
export * from "./api/api-halo-run-v1alpha1-tracker-api";
export * from "./api/api-halo-run-v1alpha1-user-api";
export * from "./api/api-plugin-halo-run-v1alpha1-plugin-api";
export * from "./api/auth-halo-run-v1alpha1-auth-provider-api";
export * from "./api/auth-halo-run-v1alpha1-user-connection-api";
export * from "./api/content-halo-run-v1alpha1-category-api";

View File

@ -50,30 +50,30 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator =
return {
/**
*
* @param {string} [policy] Name of policy
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size
* @param {string} [displayName] Display name of attachment
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {string} [group] Name of group
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {string} [policy] Name of policy
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size
* @param {boolean} [ungrouped] Filter attachments without group. This parameter will ignore group parameter.
* @param {string} [uploadedBy] Name of user who uploaded the attachment
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
searchAttachments: async (
policy?: string,
sort?: Array<string>,
displayName?: string,
fieldSelector?: Array<string>,
group?: string,
labelSelector?: Array<string>,
page?: number,
policy?: string,
size?: number,
sort?: Array<string>,
ungrouped?: boolean,
uploadedBy?: string,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
page?: number,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
@ -100,22 +100,38 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator =
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (policy !== undefined) {
localVarQueryParameter["policy"] = policy;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
if (displayName !== undefined) {
localVarQueryParameter["displayName"] = displayName;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (group !== undefined) {
localVarQueryParameter["group"] = group;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (policy !== undefined) {
localVarQueryParameter["policy"] = policy;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
if (ungrouped !== undefined) {
localVarQueryParameter["ungrouped"] = ungrouped;
}
@ -124,22 +140,6 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator =
localVarQueryParameter["uploadedBy"] = uploadedBy;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -243,46 +243,46 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function (
return {
/**
*
* @param {string} [policy] Name of policy
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size
* @param {string} [displayName] Display name of attachment
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {string} [group] Name of group
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {string} [policy] Name of policy
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp, size
* @param {boolean} [ungrouped] Filter attachments without group. This parameter will ignore group parameter.
* @param {string} [uploadedBy] Name of user who uploaded the attachment
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async searchAttachments(
policy?: string,
sort?: Array<string>,
displayName?: string,
fieldSelector?: Array<string>,
group?: string,
labelSelector?: Array<string>,
page?: number,
policy?: string,
size?: number,
sort?: Array<string>,
ungrouped?: boolean,
uploadedBy?: string,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
page?: number,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AttachmentList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.searchAttachments(
policy,
sort,
displayName,
fieldSelector,
group,
labelSelector,
page,
policy,
size,
sort,
ungrouped,
uploadedBy,
size,
labelSelector,
fieldSelector,
page,
options
);
return createRequestFunction(
@ -348,16 +348,16 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function (
): AxiosPromise<AttachmentList> {
return localVarFp
.searchAttachments(
requestParameters.policy,
requestParameters.sort,
requestParameters.displayName,
requestParameters.fieldSelector,
requestParameters.group,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.policy,
requestParameters.size,
requestParameters.sort,
requestParameters.ungrouped,
requestParameters.uploadedBy,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.page,
options
)
.then((request) => request(axios, basePath));
@ -390,20 +390,6 @@ export const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function (
* @interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest
*/
export interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest {
/**
* Name of policy
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly policy?: string;
/**
* Sort property and direction of the list result. Supported fields: creationTimestamp, size
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly sort?: Array<string>;
/**
* Display name of attachment
* @type {string}
@ -411,6 +397,13 @@ export interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest
*/
readonly displayName?: string;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly fieldSelector?: Array<string>;
/**
* Name of group
* @type {string}
@ -418,6 +411,41 @@ export interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest
*/
readonly group?: string;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly page?: number;
/**
* Name of policy
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly policy?: string;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Supported fields: creationTimestamp, size
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly sort?: Array<string>;
/**
* Filter attachments without group. This parameter will ignore group parameter.
* @type {boolean}
@ -431,34 +459,6 @@ export interface ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachmentsRequest
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly uploadedBy?: string;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly fieldSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1AttachmentApiSearchAttachments
*/
readonly page?: number;
}
/**
@ -509,16 +509,16 @@ export class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
) {
return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration)
.searchAttachments(
requestParameters.policy,
requestParameters.sort,
requestParameters.displayName,
requestParameters.fieldSelector,
requestParameters.group,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.policy,
requestParameters.size,
requestParameters.sort,
requestParameters.ungrouped,
requestParameters.uploadedBy,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.page,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -179,40 +179,40 @@ export const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function (
},
/**
* List comments.
* @param {'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'} [sort] Comment collation.
* @param {boolean} [approved] Comments approved.
* @param {boolean} [allowNotification] Send notifications when there are new replies.
* @param {boolean} [approved] Comments approved.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {boolean} [hidden] The comment is hidden from the theme side.
* @param {string} [keyword] Comments filtered by keyword.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {string} [ownerKind] Commenter kind.
* @param {string} [ownerName] Commenter name.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'} [sort] Comment collation.
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
* @param {string} [subjectKind] Comment subject kind.
* @param {string} [subjectName] Comment subject name.
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
* @param {string} [keyword] Comments filtered by keyword.
* @param {boolean} [top] Comment top display.
* @param {boolean} [hidden] The comment is hidden from the theme side.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listComments: async (
sort?: "LAST_REPLY_TIME" | "REPLY_COUNT" | "CREATE_TIME",
approved?: boolean,
allowNotification?: boolean,
approved?: boolean,
fieldSelector?: Array<string>,
hidden?: boolean,
keyword?: string,
labelSelector?: Array<string>,
ownerKind?: string,
ownerName?: string,
page?: number,
size?: number,
sort?: "LAST_REPLY_TIME" | "REPLY_COUNT" | "CREATE_TIME",
sortOrder?: boolean,
subjectKind?: string,
subjectName?: string,
sortOrder?: boolean,
keyword?: string,
top?: boolean,
hidden?: boolean,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
page?: number,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
@ -239,16 +239,28 @@ export const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (sort !== undefined) {
localVarQueryParameter["sort"] = sort;
if (allowNotification !== undefined) {
localVarQueryParameter["allowNotification"] = allowNotification;
}
if (approved !== undefined) {
localVarQueryParameter["approved"] = approved;
}
if (allowNotification !== undefined) {
localVarQueryParameter["allowNotification"] = allowNotification;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (hidden !== undefined) {
localVarQueryParameter["hidden"] = hidden;
}
if (keyword !== undefined) {
localVarQueryParameter["keyword"] = keyword;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (ownerKind !== undefined) {
@ -259,6 +271,22 @@ export const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function (
localVarQueryParameter["ownerName"] = ownerName;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort !== undefined) {
localVarQueryParameter["sort"] = sort;
}
if (sortOrder !== undefined) {
localVarQueryParameter["sortOrder"] = sortOrder;
}
if (subjectKind !== undefined) {
localVarQueryParameter["subjectKind"] = subjectKind;
}
@ -267,38 +295,10 @@ export const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function (
localVarQueryParameter["subjectName"] = subjectName;
}
if (sortOrder !== undefined) {
localVarQueryParameter["sortOrder"] = sortOrder;
}
if (keyword !== undefined) {
localVarQueryParameter["keyword"] = keyword;
}
if (top !== undefined) {
localVarQueryParameter["top"] = top;
}
if (hidden !== undefined) {
localVarQueryParameter["hidden"] = hidden;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -377,40 +377,40 @@ export const ApiConsoleHaloRunV1alpha1CommentApiFp = function (
},
/**
* List comments.
* @param {'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'} [sort] Comment collation.
* @param {boolean} [approved] Comments approved.
* @param {boolean} [allowNotification] Send notifications when there are new replies.
* @param {boolean} [approved] Comments approved.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {boolean} [hidden] The comment is hidden from the theme side.
* @param {string} [keyword] Comments filtered by keyword.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {string} [ownerKind] Commenter kind.
* @param {string} [ownerName] Commenter name.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'} [sort] Comment collation.
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
* @param {string} [subjectKind] Comment subject kind.
* @param {string} [subjectName] Comment subject name.
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
* @param {string} [keyword] Comments filtered by keyword.
* @param {boolean} [top] Comment top display.
* @param {boolean} [hidden] The comment is hidden from the theme side.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listComments(
sort?: "LAST_REPLY_TIME" | "REPLY_COUNT" | "CREATE_TIME",
approved?: boolean,
allowNotification?: boolean,
approved?: boolean,
fieldSelector?: Array<string>,
hidden?: boolean,
keyword?: string,
labelSelector?: Array<string>,
ownerKind?: string,
ownerName?: string,
page?: number,
size?: number,
sort?: "LAST_REPLY_TIME" | "REPLY_COUNT" | "CREATE_TIME",
sortOrder?: boolean,
subjectKind?: string,
subjectName?: string,
sortOrder?: boolean,
keyword?: string,
top?: boolean,
hidden?: boolean,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
page?: number,
options?: AxiosRequestConfig
): Promise<
(
@ -419,21 +419,21 @@ export const ApiConsoleHaloRunV1alpha1CommentApiFp = function (
) => AxiosPromise<ListedCommentList>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(
sort,
approved,
allowNotification,
approved,
fieldSelector,
hidden,
keyword,
labelSelector,
ownerKind,
ownerName,
page,
size,
sort,
sortOrder,
subjectKind,
subjectName,
sortOrder,
keyword,
top,
hidden,
size,
labelSelector,
fieldSelector,
page,
options
);
return createRequestFunction(
@ -501,21 +501,21 @@ export const ApiConsoleHaloRunV1alpha1CommentApiFactory = function (
): AxiosPromise<ListedCommentList> {
return localVarFp
.listComments(
requestParameters.sort,
requestParameters.approved,
requestParameters.allowNotification,
requestParameters.approved,
requestParameters.fieldSelector,
requestParameters.hidden,
requestParameters.keyword,
requestParameters.labelSelector,
requestParameters.ownerKind,
requestParameters.ownerName,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
requestParameters.sortOrder,
requestParameters.subjectKind,
requestParameters.subjectName,
requestParameters.sortOrder,
requestParameters.keyword,
requestParameters.top,
requestParameters.hidden,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.page,
options
)
.then((request) => request(axios, basePath));
@ -565,11 +565,11 @@ export interface ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest {
*/
export interface ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest {
/**
* Comment collation.
* @type {'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'}
* Send notifications when there are new replies.
* @type {boolean}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly sort?: "LAST_REPLY_TIME" | "REPLY_COUNT" | "CREATE_TIME";
readonly allowNotification?: boolean;
/**
* Comments approved.
@ -579,11 +579,32 @@ export interface ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest {
readonly approved?: boolean;
/**
* Send notifications when there are new replies.
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly fieldSelector?: Array<string>;
/**
* The comment is hidden from the theme side.
* @type {boolean}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly allowNotification?: boolean;
readonly hidden?: boolean;
/**
* Comments filtered by keyword.
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly keyword?: string;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly labelSelector?: Array<string>;
/**
* Commenter kind.
@ -599,6 +620,34 @@ export interface ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest {
*/
readonly ownerName?: string;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly size?: number;
/**
* Comment collation.
* @type {'LAST_REPLY_TIME' | 'REPLY_COUNT' | 'CREATE_TIME'}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly sort?: "LAST_REPLY_TIME" | "REPLY_COUNT" | "CREATE_TIME";
/**
* ascending order If it is true; otherwise, it is in descending order.
* @type {boolean}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly sortOrder?: boolean;
/**
* Comment subject kind.
* @type {string}
@ -613,61 +662,12 @@ export interface ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest {
*/
readonly subjectName?: string;
/**
* ascending order If it is true; otherwise, it is in descending order.
* @type {boolean}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly sortOrder?: boolean;
/**
* Comments filtered by keyword.
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly keyword?: string;
/**
* Comment top display.
* @type {boolean}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly top?: boolean;
/**
* The comment is hidden from the theme side.
* @type {boolean}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly hidden?: boolean;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly fieldSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
*/
readonly page?: number;
}
/**
@ -726,21 +726,21 @@ export class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
) {
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration)
.listComments(
requestParameters.sort,
requestParameters.approved,
requestParameters.allowNotification,
requestParameters.approved,
requestParameters.fieldSelector,
requestParameters.hidden,
requestParameters.keyword,
requestParameters.labelSelector,
requestParameters.ownerKind,
requestParameters.ownerName,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
requestParameters.sortOrder,
requestParameters.subjectKind,
requestParameters.subjectName,
requestParameters.sortOrder,
requestParameters.keyword,
requestParameters.top,
requestParameters.hidden,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.page,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -279,24 +279,24 @@ export const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function (
},
/**
* List plugins using query criteria and sort params
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
* @param {string} [keyword] Keyword of plugin name or description
* @param {boolean} [enabled] Whether the plugin is enabled
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {string} [keyword] Keyword of plugin name or description
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listPlugins: async (
sort?: Array<string>,
keyword?: string,
enabled?: boolean,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
keyword?: string,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
@ -323,34 +323,88 @@ export const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
if (keyword !== undefined) {
localVarQueryParameter["keyword"] = keyword;
}
if (enabled !== undefined) {
localVarQueryParameter["enabled"] = enabled;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (keyword !== undefined) {
localVarQueryParameter["keyword"] = keyword;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Reload a plugin by name.
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
reloadPlugin: async (
name: string,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("reloadPlugin", "name", name);
const localVarPath =
`/apis/api.console.halo.run/v1alpha1/plugins/{name}/reload`.replace(
`{${"name"}}`,
encodeURIComponent(String(name))
);
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "PUT",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -667,36 +721,59 @@ export const ApiConsoleHaloRunV1alpha1PluginApiFp = function (
},
/**
* List plugins using query criteria and sort params
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
* @param {string} [keyword] Keyword of plugin name or description
* @param {boolean} [enabled] Whether the plugin is enabled
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {string} [keyword] Keyword of plugin name or description
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listPlugins(
sort?: Array<string>,
keyword?: string,
enabled?: boolean,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
keyword?: string,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PluginList>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(
sort,
keyword,
enabled,
size,
labelSelector,
fieldSelector,
keyword,
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* Reload a plugin by name.
* @param {string} name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async reloadPlugin(
name: string,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Plugin>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.reloadPlugin(
name,
options
);
return createRequestFunction(
@ -871,17 +948,31 @@ export const ApiConsoleHaloRunV1alpha1PluginApiFactory = function (
): AxiosPromise<PluginList> {
return localVarFp
.listPlugins(
requestParameters.sort,
requestParameters.keyword,
requestParameters.enabled,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.keyword,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
},
/**
* Reload a plugin by name.
* @param {ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
reloadPlugin(
requestParameters: ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest,
options?: AxiosRequestConfig
): AxiosPromise<Plugin> {
return localVarFp
.reloadPlugin(requestParameters.name, options)
.then((request) => request(axios, basePath));
},
/**
* Reset the configMap of plugin setting.
* @param {ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest} requestParameters Request parameters.
@ -999,20 +1090,6 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiInstallPluginRequest {
* @interface ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest
*/
export interface ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest {
/**
* Sort property and direction of the list result. Supported fields: creationTimestamp
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
*/
readonly sort?: Array<string>;
/**
* Keyword of plugin name or description
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
*/
readonly keyword?: string;
/**
* Whether the plugin is enabled
* @type {boolean}
@ -1020,20 +1097,6 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest {
*/
readonly enabled?: boolean;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
@ -1041,12 +1104,54 @@ export interface ApiConsoleHaloRunV1alpha1PluginApiListPluginsRequest {
*/
readonly fieldSelector?: Array<string>;
/**
* Keyword of plugin name or description
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
*/
readonly keyword?: string;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Supported fields: creationTimestamp
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1PluginApiListPlugins
*/
readonly sort?: Array<string>;
}
/**
* Request parameters for reloadPlugin operation in ApiConsoleHaloRunV1alpha1PluginApi.
* @export
* @interface ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest
*/
export interface ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest {
/**
*
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1PluginApiReloadPlugin
*/
readonly name: string;
}
/**
@ -1204,18 +1309,34 @@ export class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
) {
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration)
.listPlugins(
requestParameters.sort,
requestParameters.keyword,
requestParameters.enabled,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.keyword,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));
}
/**
* Reload a plugin by name.
* @param {ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiConsoleHaloRunV1alpha1PluginApi
*/
public reloadPlugin(
requestParameters: ApiConsoleHaloRunV1alpha1PluginApiReloadPluginRequest,
options?: AxiosRequestConfig
) {
return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration)
.reloadPlugin(requestParameters.name, options)
.then((request) => request(this.axios, this.basePath));
}
/**
* Reset the configMap of plugin setting.
* @param {ApiConsoleHaloRunV1alpha1PluginApiResetPluginConfigRequest} requestParameters Request parameters.

View File

@ -222,34 +222,34 @@ export const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function (
},
/**
* List posts.
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] Post collation.
* @param {Array<string>} [category]
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
* @param {Array<string>} [contributor]
* @param {string} [keyword] Posts filtered by keyword.
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
* @param {Array<string>} [tag]
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {string} [keyword] Posts filtered by keyword.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] Post collation.
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
* @param {Array<string>} [tag]
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listPosts: async (
sort?: "PUBLISH_TIME" | "CREATE_TIME",
category?: Array<string>,
sortOrder?: boolean,
publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED",
contributor?: Array<string>,
keyword?: string,
visible?: "PUBLIC" | "INTERNAL" | "PRIVATE",
tag?: Array<string>,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
keyword?: string,
labelSelector?: Array<string>,
page?: number,
publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED",
size?: number,
sort?: "PUBLISH_TIME" | "CREATE_TIME",
sortOrder?: boolean,
tag?: Array<string>,
visible?: "PUBLIC" | "INTERNAL" | "PRIVATE",
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
@ -276,54 +276,54 @@ export const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (sort !== undefined) {
localVarQueryParameter["sort"] = sort;
}
if (category) {
localVarQueryParameter["category"] = Array.from(category);
}
if (sortOrder !== undefined) {
localVarQueryParameter["sortOrder"] = sortOrder;
}
if (publishPhase !== undefined) {
localVarQueryParameter["publishPhase"] = publishPhase;
}
if (contributor) {
localVarQueryParameter["contributor"] = Array.from(contributor);
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (keyword !== undefined) {
localVarQueryParameter["keyword"] = keyword;
}
if (visible !== undefined) {
localVarQueryParameter["visible"] = visible;
}
if (tag) {
localVarQueryParameter["tag"] = Array.from(tag);
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (publishPhase !== undefined) {
localVarQueryParameter["publishPhase"] = publishPhase;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort !== undefined) {
localVarQueryParameter["sort"] = sort;
}
if (sortOrder !== undefined) {
localVarQueryParameter["sortOrder"] = sortOrder;
}
if (tag) {
localVarQueryParameter["tag"] = Array.from(tag);
}
if (visible !== undefined) {
localVarQueryParameter["visible"] = visible;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -716,51 +716,51 @@ export const ApiConsoleHaloRunV1alpha1PostApiFp = function (
},
/**
* List posts.
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] Post collation.
* @param {Array<string>} [category]
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
* @param {Array<string>} [contributor]
* @param {string} [keyword] Posts filtered by keyword.
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
* @param {Array<string>} [tag]
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {string} [keyword] Posts filtered by keyword.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] Post collation.
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
* @param {Array<string>} [tag]
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listPosts(
sort?: "PUBLISH_TIME" | "CREATE_TIME",
category?: Array<string>,
sortOrder?: boolean,
publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED",
contributor?: Array<string>,
keyword?: string,
visible?: "PUBLIC" | "INTERNAL" | "PRIVATE",
tag?: Array<string>,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
keyword?: string,
labelSelector?: Array<string>,
page?: number,
publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED",
size?: number,
sort?: "PUBLISH_TIME" | "CREATE_TIME",
sortOrder?: boolean,
tag?: Array<string>,
visible?: "PUBLIC" | "INTERNAL" | "PRIVATE",
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedPostList>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(
sort,
category,
sortOrder,
publishPhase,
contributor,
keyword,
visible,
tag,
size,
labelSelector,
fieldSelector,
keyword,
labelSelector,
page,
publishPhase,
size,
sort,
sortOrder,
tag,
visible,
options
);
return createRequestFunction(
@ -963,18 +963,18 @@ export const ApiConsoleHaloRunV1alpha1PostApiFactory = function (
): AxiosPromise<ListedPostList> {
return localVarFp
.listPosts(
requestParameters.sort,
requestParameters.category,
requestParameters.sortOrder,
requestParameters.publishPhase,
requestParameters.contributor,
requestParameters.keyword,
requestParameters.visible,
requestParameters.tag,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.keyword,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.publishPhase,
requestParameters.size,
requestParameters.sort,
requestParameters.sortOrder,
requestParameters.tag,
requestParameters.visible,
options
)
.then((request) => request(axios, basePath));
@ -1113,18 +1113,67 @@ export interface ApiConsoleHaloRunV1alpha1PostApiFetchPostReleaseContentRequest
*/
export interface ApiConsoleHaloRunV1alpha1PostApiListPostsRequest {
/**
* Post collation.
* @type {'PUBLISH_TIME' | 'CREATE_TIME'}
*
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly sort?: "PUBLISH_TIME" | "CREATE_TIME";
readonly category?: Array<string>;
/**
*
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly category?: Array<string>;
readonly contributor?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly fieldSelector?: Array<string>;
/**
* Posts filtered by keyword.
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly keyword?: string;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly page?: number;
/**
*
* @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED";
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly size?: number;
/**
* Post collation.
* @type {'PUBLISH_TIME' | 'CREATE_TIME'}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly sort?: "PUBLISH_TIME" | "CREATE_TIME";
/**
* ascending order If it is true; otherwise, it is in descending order.
@ -1133,26 +1182,12 @@ export interface ApiConsoleHaloRunV1alpha1PostApiListPostsRequest {
*/
readonly sortOrder?: boolean;
/**
*
* @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED";
/**
*
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly contributor?: Array<string>;
/**
* Posts filtered by keyword.
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly keyword?: string;
readonly tag?: Array<string>;
/**
*
@ -1160,41 +1195,6 @@ export interface ApiConsoleHaloRunV1alpha1PostApiListPostsRequest {
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly visible?: "PUBLIC" | "INTERNAL" | "PRIVATE";
/**
*
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly tag?: Array<string>;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly fieldSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
*/
readonly page?: number;
}
/**
@ -1356,18 +1356,18 @@ export class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
) {
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration)
.listPosts(
requestParameters.sort,
requestParameters.category,
requestParameters.sortOrder,
requestParameters.publishPhase,
requestParameters.contributor,
requestParameters.keyword,
requestParameters.visible,
requestParameters.tag,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.keyword,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.publishPhase,
requestParameters.size,
requestParameters.sort,
requestParameters.sortOrder,
requestParameters.tag,
requestParameters.visible,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -50,19 +50,19 @@ export const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function (
/**
* List replies.
* @param {string} [commentName] Replies filtered by commentName.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listReplies: async (
commentName?: string,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
@ -93,22 +93,22 @@ export const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function (
localVarQueryParameter["commentName"] = commentName;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -139,19 +139,19 @@ export const ApiConsoleHaloRunV1alpha1ReplyApiFp = function (
/**
* List replies.
* @param {string} [commentName] Replies filtered by commentName.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listReplies(
commentName?: string,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
options?: AxiosRequestConfig
): Promise<
(
@ -161,10 +161,10 @@ export const ApiConsoleHaloRunV1alpha1ReplyApiFp = function (
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(
commentName,
size,
labelSelector,
fieldSelector,
labelSelector,
page,
size,
options
);
return createRequestFunction(
@ -201,10 +201,10 @@ export const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function (
return localVarFp
.listReplies(
requestParameters.commentName,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
options
)
.then((request) => request(axios, basePath));
@ -226,11 +226,11 @@ export interface ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest {
readonly commentName?: string;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies
*/
readonly size?: number;
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
@ -239,19 +239,19 @@ export interface ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest {
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies
*/
readonly fieldSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies
*/
readonly size?: number;
}
/**
@ -275,10 +275,10 @@ export class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration)
.listReplies(
requestParameters.commentName,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -227,30 +227,30 @@ export const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator =
},
/**
* List single pages.
* @param {Array<string>} [contributor]
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {string} [keyword] SinglePages filtered by keyword.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] SinglePage collation.
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
* @param {Array<string>} [contributor]
* @param {string} [keyword] SinglePages filtered by keyword.
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listSinglePages: async (
contributor?: Array<string>,
fieldSelector?: Array<string>,
keyword?: string,
labelSelector?: Array<string>,
page?: number,
publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED",
size?: number,
sort?: "PUBLISH_TIME" | "CREATE_TIME",
sortOrder?: boolean,
publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED",
contributor?: Array<string>,
keyword?: string,
visible?: "PUBLIC" | "INTERNAL" | "PRIVATE",
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
page?: number,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
@ -277,6 +277,34 @@ export const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator =
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (contributor) {
localVarQueryParameter["contributor"] = Array.from(contributor);
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (keyword !== undefined) {
localVarQueryParameter["keyword"] = keyword;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (publishPhase !== undefined) {
localVarQueryParameter["publishPhase"] = publishPhase;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort !== undefined) {
localVarQueryParameter["sort"] = sort;
}
@ -285,38 +313,10 @@ export const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator =
localVarQueryParameter["sortOrder"] = sortOrder;
}
if (publishPhase !== undefined) {
localVarQueryParameter["publishPhase"] = publishPhase;
}
if (contributor) {
localVarQueryParameter["contributor"] = Array.from(contributor);
}
if (keyword !== undefined) {
localVarQueryParameter["keyword"] = keyword;
}
if (visible !== undefined) {
localVarQueryParameter["visible"] = visible;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -605,30 +605,30 @@ export const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function (
},
/**
* List single pages.
* @param {Array<string>} [contributor]
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {string} [keyword] SinglePages filtered by keyword.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] SinglePage collation.
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
* @param {Array<string>} [contributor]
* @param {string} [keyword] SinglePages filtered by keyword.
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listSinglePages(
contributor?: Array<string>,
fieldSelector?: Array<string>,
keyword?: string,
labelSelector?: Array<string>,
page?: number,
publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED",
size?: number,
sort?: "PUBLISH_TIME" | "CREATE_TIME",
sortOrder?: boolean,
publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED",
contributor?: Array<string>,
keyword?: string,
visible?: "PUBLIC" | "INTERNAL" | "PRIVATE",
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
page?: number,
options?: AxiosRequestConfig
): Promise<
(
@ -637,16 +637,16 @@ export const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function (
) => AxiosPromise<ListedSinglePageList>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(
contributor,
fieldSelector,
keyword,
labelSelector,
page,
publishPhase,
size,
sort,
sortOrder,
publishPhase,
contributor,
keyword,
visible,
size,
labelSelector,
fieldSelector,
page,
options
);
return createRequestFunction(
@ -799,16 +799,16 @@ export const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function (
): AxiosPromise<ListedSinglePageList> {
return localVarFp
.listSinglePages(
requestParameters.contributor,
requestParameters.fieldSelector,
requestParameters.keyword,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.publishPhase,
requestParameters.size,
requestParameters.sort,
requestParameters.sortOrder,
requestParameters.publishPhase,
requestParameters.contributor,
requestParameters.keyword,
requestParameters.visible,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.page,
options
)
.then((request) => request(axios, basePath));
@ -914,6 +914,55 @@ export interface ApiConsoleHaloRunV1alpha1SinglePageApiFetchSinglePageReleaseCon
* @interface ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest
*/
export interface ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest {
/**
*
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly contributor?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly fieldSelector?: Array<string>;
/**
* SinglePages filtered by keyword.
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly keyword?: string;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly page?: number;
/**
*
* @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED";
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly size?: number;
/**
* SinglePage collation.
* @type {'PUBLISH_TIME' | 'CREATE_TIME'}
@ -928,61 +977,12 @@ export interface ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest {
*/
readonly sortOrder?: boolean;
/**
*
* @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly publishPhase?: "DRAFT" | "PENDING_APPROVAL" | "PUBLISHED" | "FAILED";
/**
*
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly contributor?: Array<string>;
/**
* SinglePages filtered by keyword.
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly keyword?: string;
/**
*
* @type {'PUBLIC' | 'INTERNAL' | 'PRIVATE'}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly visible?: "PUBLIC" | "INTERNAL" | "PRIVATE";
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly fieldSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
*/
readonly page?: number;
}
/**
@ -1109,16 +1109,16 @@ export class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
) {
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration)
.listSinglePages(
requestParameters.contributor,
requestParameters.fieldSelector,
requestParameters.keyword,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.publishPhase,
requestParameters.size,
requestParameters.sort,
requestParameters.sortOrder,
requestParameters.publishPhase,
requestParameters.contributor,
requestParameters.keyword,
requestParameters.visible,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.page,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -324,19 +324,19 @@ export const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function (
/**
* List themes.
* @param {boolean} uninstalled
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listThemes: async (
uninstalled: boolean,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'uninstalled' is not null or undefined
@ -365,26 +365,26 @@ export const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (uninstalled !== undefined) {
localVarQueryParameter["uninstalled"] = uninstalled;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (uninstalled !== undefined) {
localVarQueryParameter["uninstalled"] = uninstalled;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -763,29 +763,29 @@ export const ApiConsoleHaloRunV1alpha1ThemeApiFp = function (
/**
* List themes.
* @param {boolean} uninstalled
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listThemes(
uninstalled: boolean,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ThemeList>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(
uninstalled,
size,
labelSelector,
fieldSelector,
labelSelector,
page,
size,
options
);
return createRequestFunction(
@ -985,10 +985,10 @@ export const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function (
return localVarFp
.listThemes(
requestParameters.uninstalled,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
options
)
.then((request) => request(axios, basePath));
@ -1126,11 +1126,11 @@ export interface ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest {
readonly uninstalled: boolean;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes
*/
readonly size?: number;
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
@ -1139,19 +1139,19 @@ export interface ApiConsoleHaloRunV1alpha1ThemeApiListThemesRequest {
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes
*/
readonly fieldSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1ThemeApiListThemes
*/
readonly size?: number;
}
/**
@ -1321,10 +1321,10 @@ export class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration)
.listThemes(
requestParameters.uninstalled,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -406,24 +406,24 @@ export const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function (
},
/**
* List users
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
* @param {string} [role]
* @param {string} [keyword]
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {number} [page] The page number. Zero indicates no page.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {string} [keyword]
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {string} [role]
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listUsers: async (
sort?: Array<string>,
role?: string,
keyword?: string,
size?: number,
page?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
keyword?: string,
labelSelector?: Array<string>,
page?: number,
role?: string,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.console.halo.run/v1alpha1/users`;
@ -450,32 +450,32 @@ export const ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
if (role !== undefined) {
localVarQueryParameter["role"] = role;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (keyword !== undefined) {
localVarQueryParameter["keyword"] = keyword;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
if (role !== undefined) {
localVarQueryParameter["role"] = role;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -704,24 +704,24 @@ export const ApiConsoleHaloRunV1alpha1UserApiFp = function (
},
/**
* List users
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
* @param {string} [role]
* @param {string} [keyword]
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {number} [page] The page number. Zero indicates no page.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {string} [keyword]
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {string} [role]
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listUsers(
sort?: Array<string>,
role?: string,
keyword?: string,
size?: number,
page?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
keyword?: string,
labelSelector?: Array<string>,
page?: number,
role?: string,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -730,13 +730,13 @@ export const ApiConsoleHaloRunV1alpha1UserApiFp = function (
) => AxiosPromise<UserEndpointListedUserList>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(
sort,
role,
keyword,
size,
page,
labelSelector,
fieldSelector,
keyword,
labelSelector,
page,
role,
size,
sort,
options
);
return createRequestFunction(
@ -883,13 +883,13 @@ export const ApiConsoleHaloRunV1alpha1UserApiFactory = function (
): AxiosPromise<UserEndpointListedUserList> {
return localVarFp
.listUsers(
requestParameters.sort,
requestParameters.role,
requestParameters.keyword,
requestParameters.size,
requestParameters.page,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.keyword,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.role,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -1002,18 +1002,11 @@ export interface ApiConsoleHaloRunV1alpha1UserApiGrantPermissionRequest {
*/
export interface ApiConsoleHaloRunV1alpha1UserApiListUsersRequest {
/**
* Sort property and direction of the list result. Supported fields: creationTimestamp
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers
*/
readonly sort?: Array<string>;
/**
*
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers
*/
readonly role?: string;
readonly fieldSelector?: Array<string>;
/**
*
@ -1023,11 +1016,11 @@ export interface ApiConsoleHaloRunV1alpha1UserApiListUsersRequest {
readonly keyword?: string;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers
*/
readonly size?: number;
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
@ -1037,18 +1030,25 @@ export interface ApiConsoleHaloRunV1alpha1UserApiListUsersRequest {
readonly page?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
*
* @type {string}
* @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers
*/
readonly labelSelector?: Array<string>;
readonly role?: string;
/**
* Field selector for filtering.
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Supported fields: creationTimestamp
* @type {Array<string>}
* @memberof ApiConsoleHaloRunV1alpha1UserApiListUsers
*/
readonly fieldSelector?: Array<string>;
readonly sort?: Array<string>;
}
/**
@ -1185,13 +1185,13 @@ export class ApiConsoleHaloRunV1alpha1UserApi extends BaseAPI {
) {
return ApiConsoleHaloRunV1alpha1UserApiFp(this.configuration)
.listUsers(
requestParameters.sort,
requestParameters.role,
requestParameters.keyword,
requestParameters.size,
requestParameters.page,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.keyword,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.role,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -0,0 +1,627 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { Configuration } from "../configuration";
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
import globalAxios from "axios";
// Some imports not used depending on template conditions
// @ts-ignore
import {
DUMMY_BASE_URL,
assertParamExists,
setApiKeyToObject,
setBasicAuthToObject,
setBearerAuthToObject,
setOAuthToObject,
setSearchParams,
serializeDataIfNeeded,
toPathString,
createRequestFunction,
} from "../common";
// @ts-ignore
import {
BASE_PATH,
COLLECTION_FORMATS,
RequestArgs,
BaseAPI,
RequiredError,
} from "../base";
// @ts-ignore
import { CategoryVo } from "../models";
// @ts-ignore
import { CategoryVoList } from "../models";
// @ts-ignore
import { ListedPostVoList } from "../models";
/**
* ApiContentHaloRunV1alpha1CategoryApi - axios parameter creator
* @export
*/
export const ApiContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (
configuration?: Configuration
) {
return {
/**
* Lists categories.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryCategories: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.content.halo.run/v1alpha1/categories`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Gets category by name.
* @param {string} name Category name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryCategoryByName: async (
name: string,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("queryCategoryByName", "name", name);
const localVarPath =
`/apis/api.content.halo.run/v1alpha1/categories/{name}`.replace(
`{${"name"}}`,
encodeURIComponent(String(name))
);
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Lists posts by category name.
* @param {string} name Category name
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPostsByCategoryName: async (
name: string,
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("queryPostsByCategoryName", "name", name);
const localVarPath =
`/apis/api.content.halo.run/v1alpha1/categories/{name}/posts`.replace(
`{${"name"}}`,
encodeURIComponent(String(name))
);
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
};
};
/**
* ApiContentHaloRunV1alpha1CategoryApi - functional programming interface
* @export
*/
export const ApiContentHaloRunV1alpha1CategoryApiFp = function (
configuration?: Configuration
) {
const localVarAxiosParamCreator =
ApiContentHaloRunV1alpha1CategoryApiAxiosParamCreator(configuration);
return {
/**
* Lists categories.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryCategories(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryVoList>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.queryCategories(
fieldSelector,
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* Gets category by name.
* @param {string} name Category name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryCategoryByName(
name: string,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryVo>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.queryCategoryByName(name, options);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* Lists posts by category name.
* @param {string} name Category name
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryPostsByCategoryName(
name: string,
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
axios?: AxiosInstance,
basePath?: string
) => AxiosPromise<ListedPostVoList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.queryPostsByCategoryName(
name,
fieldSelector,
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
};
};
/**
* ApiContentHaloRunV1alpha1CategoryApi - factory interface
* @export
*/
export const ApiContentHaloRunV1alpha1CategoryApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance
) {
const localVarFp = ApiContentHaloRunV1alpha1CategoryApiFp(configuration);
return {
/**
* Lists categories.
* @param {ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryCategories(
requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest = {},
options?: AxiosRequestConfig
): AxiosPromise<CategoryVoList> {
return localVarFp
.queryCategories(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
},
/**
* Gets category by name.
* @param {ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryCategoryByName(
requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest,
options?: AxiosRequestConfig
): AxiosPromise<CategoryVo> {
return localVarFp
.queryCategoryByName(requestParameters.name, options)
.then((request) => request(axios, basePath));
},
/**
* Lists posts by category name.
* @param {ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPostsByCategoryName(
requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest,
options?: AxiosRequestConfig
): AxiosPromise<ListedPostVoList> {
return localVarFp
.queryPostsByCategoryName(
requestParameters.name,
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
},
};
};
/**
* Request parameters for queryCategories operation in ApiContentHaloRunV1alpha1CategoryApi.
* @export
* @interface ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest
*/
export interface ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategories
*/
readonly sort?: Array<string>;
}
/**
* Request parameters for queryCategoryByName operation in ApiContentHaloRunV1alpha1CategoryApi.
* @export
* @interface ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest
*/
export interface ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest {
/**
* Category name
* @type {string}
* @memberof ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByName
*/
readonly name: string;
}
/**
* Request parameters for queryPostsByCategoryName operation in ApiContentHaloRunV1alpha1CategoryApi.
* @export
* @interface ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest
*/
export interface ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest {
/**
* Category name
* @type {string}
* @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName
*/
readonly name: string;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryName
*/
readonly sort?: Array<string>;
}
/**
* ApiContentHaloRunV1alpha1CategoryApi - object-oriented interface
* @export
* @class ApiContentHaloRunV1alpha1CategoryApi
* @extends {BaseAPI}
*/
export class ApiContentHaloRunV1alpha1CategoryApi extends BaseAPI {
/**
* Lists categories.
* @param {ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiContentHaloRunV1alpha1CategoryApi
*/
public queryCategories(
requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryCategoriesRequest = {},
options?: AxiosRequestConfig
) {
return ApiContentHaloRunV1alpha1CategoryApiFp(this.configuration)
.queryCategories(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));
}
/**
* Gets category by name.
* @param {ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiContentHaloRunV1alpha1CategoryApi
*/
public queryCategoryByName(
requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryCategoryByNameRequest,
options?: AxiosRequestConfig
) {
return ApiContentHaloRunV1alpha1CategoryApiFp(this.configuration)
.queryCategoryByName(requestParameters.name, options)
.then((request) => request(this.axios, this.basePath));
}
/**
* Lists posts by category name.
* @param {ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiContentHaloRunV1alpha1CategoryApi
*/
public queryPostsByCategoryName(
requestParameters: ApiContentHaloRunV1alpha1CategoryApiQueryPostsByCategoryNameRequest,
options?: AxiosRequestConfig
) {
return ApiContentHaloRunV1alpha1CategoryApiFp(this.configuration)
.queryPostsByCategoryName(
requestParameters.name,
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));
}
}

View File

@ -0,0 +1,536 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { Configuration } from "../configuration";
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
import globalAxios from "axios";
// Some imports not used depending on template conditions
// @ts-ignore
import {
DUMMY_BASE_URL,
assertParamExists,
setApiKeyToObject,
setBasicAuthToObject,
setBearerAuthToObject,
setOAuthToObject,
setSearchParams,
serializeDataIfNeeded,
toPathString,
createRequestFunction,
} from "../common";
// @ts-ignore
import {
BASE_PATH,
COLLECTION_FORMATS,
RequestArgs,
BaseAPI,
RequiredError,
} from "../base";
// @ts-ignore
import { ListedPostVoList } from "../models";
// @ts-ignore
import { NavigationPostVo } from "../models";
// @ts-ignore
import { PostVo } from "../models";
/**
* ApiContentHaloRunV1alpha1PostApi - axios parameter creator
* @export
*/
export const ApiContentHaloRunV1alpha1PostApiAxiosParamCreator = function (
configuration?: Configuration
) {
return {
/**
* Gets a post by name.
* @param {string} name Post name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPostByName: async (
name: string,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("queryPostByName", "name", name);
const localVarPath =
`/apis/api.content.halo.run/v1alpha1/posts/{name}`.replace(
`{${"name"}}`,
encodeURIComponent(String(name))
);
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Gets a post navigation by name.
* @param {string} name Post name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPostNavigationByName: async (
name: string,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("queryPostNavigationByName", "name", name);
const localVarPath =
`/apis/api.content.halo.run/v1alpha1/posts/{name}/navigation`.replace(
`{${"name"}}`,
encodeURIComponent(String(name))
);
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Lists posts.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPosts: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.content.halo.run/v1alpha1/posts`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
};
};
/**
* ApiContentHaloRunV1alpha1PostApi - functional programming interface
* @export
*/
export const ApiContentHaloRunV1alpha1PostApiFp = function (
configuration?: Configuration
) {
const localVarAxiosParamCreator =
ApiContentHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
return {
/**
* Gets a post by name.
* @param {string} name Post name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryPostByName(
name: string,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostVo>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.queryPostByName(
name,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* Gets a post navigation by name.
* @param {string} name Post name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryPostNavigationByName(
name: string,
options?: AxiosRequestConfig
): Promise<
(
axios?: AxiosInstance,
basePath?: string
) => AxiosPromise<NavigationPostVo>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.queryPostNavigationByName(
name,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* Lists posts.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryPosts(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
axios?: AxiosInstance,
basePath?: string
) => AxiosPromise<ListedPostVoList>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.queryPosts(
fieldSelector,
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
};
};
/**
* ApiContentHaloRunV1alpha1PostApi - factory interface
* @export
*/
export const ApiContentHaloRunV1alpha1PostApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance
) {
const localVarFp = ApiContentHaloRunV1alpha1PostApiFp(configuration);
return {
/**
* Gets a post by name.
* @param {ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPostByName(
requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest,
options?: AxiosRequestConfig
): AxiosPromise<PostVo> {
return localVarFp
.queryPostByName(requestParameters.name, options)
.then((request) => request(axios, basePath));
},
/**
* Gets a post navigation by name.
* @param {ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPostNavigationByName(
requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest,
options?: AxiosRequestConfig
): AxiosPromise<NavigationPostVo> {
return localVarFp
.queryPostNavigationByName(requestParameters.name, options)
.then((request) => request(axios, basePath));
},
/**
* Lists posts.
* @param {ApiContentHaloRunV1alpha1PostApiQueryPostsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPosts(
requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostsRequest = {},
options?: AxiosRequestConfig
): AxiosPromise<ListedPostVoList> {
return localVarFp
.queryPosts(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
},
};
};
/**
* Request parameters for queryPostByName operation in ApiContentHaloRunV1alpha1PostApi.
* @export
* @interface ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest
*/
export interface ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest {
/**
* Post name
* @type {string}
* @memberof ApiContentHaloRunV1alpha1PostApiQueryPostByName
*/
readonly name: string;
}
/**
* Request parameters for queryPostNavigationByName operation in ApiContentHaloRunV1alpha1PostApi.
* @export
* @interface ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest
*/
export interface ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest {
/**
* Post name
* @type {string}
* @memberof ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByName
*/
readonly name: string;
}
/**
* Request parameters for queryPosts operation in ApiContentHaloRunV1alpha1PostApi.
* @export
* @interface ApiContentHaloRunV1alpha1PostApiQueryPostsRequest
*/
export interface ApiContentHaloRunV1alpha1PostApiQueryPostsRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1PostApiQueryPosts
*/
readonly sort?: Array<string>;
}
/**
* ApiContentHaloRunV1alpha1PostApi - object-oriented interface
* @export
* @class ApiContentHaloRunV1alpha1PostApi
* @extends {BaseAPI}
*/
export class ApiContentHaloRunV1alpha1PostApi extends BaseAPI {
/**
* Gets a post by name.
* @param {ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiContentHaloRunV1alpha1PostApi
*/
public queryPostByName(
requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostByNameRequest,
options?: AxiosRequestConfig
) {
return ApiContentHaloRunV1alpha1PostApiFp(this.configuration)
.queryPostByName(requestParameters.name, options)
.then((request) => request(this.axios, this.basePath));
}
/**
* Gets a post navigation by name.
* @param {ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiContentHaloRunV1alpha1PostApi
*/
public queryPostNavigationByName(
requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostNavigationByNameRequest,
options?: AxiosRequestConfig
) {
return ApiContentHaloRunV1alpha1PostApiFp(this.configuration)
.queryPostNavigationByName(requestParameters.name, options)
.then((request) => request(this.axios, this.basePath));
}
/**
* Lists posts.
* @param {ApiContentHaloRunV1alpha1PostApiQueryPostsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiContentHaloRunV1alpha1PostApi
*/
public queryPosts(
requestParameters: ApiContentHaloRunV1alpha1PostApiQueryPostsRequest = {},
options?: AxiosRequestConfig
) {
return ApiContentHaloRunV1alpha1PostApiFp(this.configuration)
.queryPosts(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));
}
}

View File

@ -0,0 +1,407 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { Configuration } from "../configuration";
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
import globalAxios from "axios";
// Some imports not used depending on template conditions
// @ts-ignore
import {
DUMMY_BASE_URL,
assertParamExists,
setApiKeyToObject,
setBasicAuthToObject,
setBearerAuthToObject,
setOAuthToObject,
setSearchParams,
serializeDataIfNeeded,
toPathString,
createRequestFunction,
} from "../common";
// @ts-ignore
import {
BASE_PATH,
COLLECTION_FORMATS,
RequestArgs,
BaseAPI,
RequiredError,
} from "../base";
// @ts-ignore
import { ListedSinglePageVoList } from "../models";
// @ts-ignore
import { SinglePageVo } from "../models";
/**
* ApiContentHaloRunV1alpha1SinglePageApi - axios parameter creator
* @export
*/
export const ApiContentHaloRunV1alpha1SinglePageApiAxiosParamCreator =
function (configuration?: Configuration) {
return {
/**
* Gets single page by name
* @param {string} name SinglePage name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
querySinglePageByName: async (
name: string,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("querySinglePageByName", "name", name);
const localVarPath =
`/apis/api.content.halo.run/v1alpha1/singlepages/{name}`.replace(
`{${"name"}}`,
encodeURIComponent(String(name))
);
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Lists single pages
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
querySinglePages: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.content.halo.run/v1alpha1/singlepages`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
};
};
/**
* ApiContentHaloRunV1alpha1SinglePageApi - functional programming interface
* @export
*/
export const ApiContentHaloRunV1alpha1SinglePageApiFp = function (
configuration?: Configuration
) {
const localVarAxiosParamCreator =
ApiContentHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration);
return {
/**
* Gets single page by name
* @param {string} name SinglePage name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async querySinglePageByName(
name: string,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SinglePageVo>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.querySinglePageByName(name, options);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* Lists single pages
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async querySinglePages(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
axios?: AxiosInstance,
basePath?: string
) => AxiosPromise<ListedSinglePageVoList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.querySinglePages(
fieldSelector,
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
};
};
/**
* ApiContentHaloRunV1alpha1SinglePageApi - factory interface
* @export
*/
export const ApiContentHaloRunV1alpha1SinglePageApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance
) {
const localVarFp = ApiContentHaloRunV1alpha1SinglePageApiFp(configuration);
return {
/**
* Gets single page by name
* @param {ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
querySinglePageByName(
requestParameters: ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest,
options?: AxiosRequestConfig
): AxiosPromise<SinglePageVo> {
return localVarFp
.querySinglePageByName(requestParameters.name, options)
.then((request) => request(axios, basePath));
},
/**
* Lists single pages
* @param {ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
querySinglePages(
requestParameters: ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest = {},
options?: AxiosRequestConfig
): AxiosPromise<ListedSinglePageVoList> {
return localVarFp
.querySinglePages(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
},
};
};
/**
* Request parameters for querySinglePageByName operation in ApiContentHaloRunV1alpha1SinglePageApi.
* @export
* @interface ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest
*/
export interface ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest {
/**
* SinglePage name
* @type {string}
* @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByName
*/
readonly name: string;
}
/**
* Request parameters for querySinglePages operation in ApiContentHaloRunV1alpha1SinglePageApi.
* @export
* @interface ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest
*/
export interface ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePages
*/
readonly sort?: Array<string>;
}
/**
* ApiContentHaloRunV1alpha1SinglePageApi - object-oriented interface
* @export
* @class ApiContentHaloRunV1alpha1SinglePageApi
* @extends {BaseAPI}
*/
export class ApiContentHaloRunV1alpha1SinglePageApi extends BaseAPI {
/**
* Gets single page by name
* @param {ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiContentHaloRunV1alpha1SinglePageApi
*/
public querySinglePageByName(
requestParameters: ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePageByNameRequest,
options?: AxiosRequestConfig
) {
return ApiContentHaloRunV1alpha1SinglePageApiFp(this.configuration)
.querySinglePageByName(requestParameters.name, options)
.then((request) => request(this.axios, this.basePath));
}
/**
* Lists single pages
* @param {ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiContentHaloRunV1alpha1SinglePageApi
*/
public querySinglePages(
requestParameters: ApiContentHaloRunV1alpha1SinglePageApiQuerySinglePagesRequest = {},
options?: AxiosRequestConfig
) {
return ApiContentHaloRunV1alpha1SinglePageApiFp(this.configuration)
.querySinglePages(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));
}
}

View File

@ -0,0 +1,626 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { Configuration } from "../configuration";
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
import globalAxios from "axios";
// Some imports not used depending on template conditions
// @ts-ignore
import {
DUMMY_BASE_URL,
assertParamExists,
setApiKeyToObject,
setBasicAuthToObject,
setBearerAuthToObject,
setOAuthToObject,
setSearchParams,
serializeDataIfNeeded,
toPathString,
createRequestFunction,
} from "../common";
// @ts-ignore
import {
BASE_PATH,
COLLECTION_FORMATS,
RequestArgs,
BaseAPI,
RequiredError,
} from "../base";
// @ts-ignore
import { ListedPostVo } from "../models";
// @ts-ignore
import { TagVo } from "../models";
// @ts-ignore
import { TagVoList } from "../models";
/**
* ApiContentHaloRunV1alpha1TagApi - axios parameter creator
* @export
*/
export const ApiContentHaloRunV1alpha1TagApiAxiosParamCreator = function (
configuration?: Configuration
) {
return {
/**
* Lists posts by tag name
* @param {string} name Tag name
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPostsByTagName: async (
name: string,
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("queryPostsByTagName", "name", name);
const localVarPath =
`/apis/api.content.halo.run/v1alpha1/tags/{name}/posts`.replace(
`{${"name"}}`,
encodeURIComponent(String(name))
);
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Gets tag by name
* @param {string} name Tag name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryTagByName: async (
name: string,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("queryTagByName", "name", name);
const localVarPath =
`/apis/api.content.halo.run/v1alpha1/tags/{name}`.replace(
`{${"name"}}`,
encodeURIComponent(String(name))
);
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Lists tags
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryTags: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.content.halo.run/v1alpha1/tags`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
};
};
/**
* ApiContentHaloRunV1alpha1TagApi - functional programming interface
* @export
*/
export const ApiContentHaloRunV1alpha1TagApiFp = function (
configuration?: Configuration
) {
const localVarAxiosParamCreator =
ApiContentHaloRunV1alpha1TagApiAxiosParamCreator(configuration);
return {
/**
* Lists posts by tag name
* @param {string} name Tag name
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryPostsByTagName(
name: string,
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedPostVo>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.queryPostsByTagName(
name,
fieldSelector,
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* Gets tag by name
* @param {string} name Tag name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryTagByName(
name: string,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagVo>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.queryTagByName(
name,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* Lists tags
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryTags(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagVoList>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.queryTags(
fieldSelector,
labelSelector,
page,
size,
sort,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
};
};
/**
* ApiContentHaloRunV1alpha1TagApi - factory interface
* @export
*/
export const ApiContentHaloRunV1alpha1TagApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance
) {
const localVarFp = ApiContentHaloRunV1alpha1TagApiFp(configuration);
return {
/**
* Lists posts by tag name
* @param {ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPostsByTagName(
requestParameters: ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest,
options?: AxiosRequestConfig
): AxiosPromise<ListedPostVo> {
return localVarFp
.queryPostsByTagName(
requestParameters.name,
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
},
/**
* Gets tag by name
* @param {ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryTagByName(
requestParameters: ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest,
options?: AxiosRequestConfig
): AxiosPromise<TagVo> {
return localVarFp
.queryTagByName(requestParameters.name, options)
.then((request) => request(axios, basePath));
},
/**
* Lists tags
* @param {ApiContentHaloRunV1alpha1TagApiQueryTagsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryTags(
requestParameters: ApiContentHaloRunV1alpha1TagApiQueryTagsRequest = {},
options?: AxiosRequestConfig
): AxiosPromise<TagVoList> {
return localVarFp
.queryTags(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
},
};
};
/**
* Request parameters for queryPostsByTagName operation in ApiContentHaloRunV1alpha1TagApi.
* @export
* @interface ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest
*/
export interface ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest {
/**
* Tag name
* @type {string}
* @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName
*/
readonly name: string;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1TagApiQueryPostsByTagName
*/
readonly sort?: Array<string>;
}
/**
* Request parameters for queryTagByName operation in ApiContentHaloRunV1alpha1TagApi.
* @export
* @interface ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest
*/
export interface ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest {
/**
* Tag name
* @type {string}
* @memberof ApiContentHaloRunV1alpha1TagApiQueryTagByName
*/
readonly name: string;
}
/**
* Request parameters for queryTags operation in ApiContentHaloRunV1alpha1TagApi.
* @export
* @interface ApiContentHaloRunV1alpha1TagApiQueryTagsRequest
*/
export interface ApiContentHaloRunV1alpha1TagApiQueryTagsRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1TagApiQueryTags
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1TagApiQueryTags
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiContentHaloRunV1alpha1TagApiQueryTags
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiContentHaloRunV1alpha1TagApiQueryTags
*/
readonly size?: number;
/**
* Sort property and direction of the list result. Support sorting based on attribute name path.
* @type {Array<string>}
* @memberof ApiContentHaloRunV1alpha1TagApiQueryTags
*/
readonly sort?: Array<string>;
}
/**
* ApiContentHaloRunV1alpha1TagApi - object-oriented interface
* @export
* @class ApiContentHaloRunV1alpha1TagApi
* @extends {BaseAPI}
*/
export class ApiContentHaloRunV1alpha1TagApi extends BaseAPI {
/**
* Lists posts by tag name
* @param {ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiContentHaloRunV1alpha1TagApi
*/
public queryPostsByTagName(
requestParameters: ApiContentHaloRunV1alpha1TagApiQueryPostsByTagNameRequest,
options?: AxiosRequestConfig
) {
return ApiContentHaloRunV1alpha1TagApiFp(this.configuration)
.queryPostsByTagName(
requestParameters.name,
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));
}
/**
* Gets tag by name
* @param {ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiContentHaloRunV1alpha1TagApi
*/
public queryTagByName(
requestParameters: ApiContentHaloRunV1alpha1TagApiQueryTagByNameRequest,
options?: AxiosRequestConfig
) {
return ApiContentHaloRunV1alpha1TagApiFp(this.configuration)
.queryTagByName(requestParameters.name, options)
.then((request) => request(this.axios, this.basePath));
}
/**
* Lists tags
* @param {ApiContentHaloRunV1alpha1TagApiQueryTagsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiContentHaloRunV1alpha1TagApi
*/
public queryTags(
requestParameters: ApiContentHaloRunV1alpha1TagApiQueryTagsRequest = {},
options?: AxiosRequestConfig
) {
return ApiContentHaloRunV1alpha1TagApiFp(this.configuration)
.queryTags(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));
}
}

View File

@ -236,15 +236,15 @@ export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (
/**
* List comment replies.
* @param {string} name
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listCommentReplies: async (
name: string,
size?: number,
page?: number,
size?: number,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
@ -277,14 +277,14 @@ export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -301,30 +301,32 @@ export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (
},
/**
* List comments.
* @param {string} kind The comment subject kind.
* @param {string} name The comment subject name.
* @param {string} version The comment subject version.
* @param {string} kind The comment subject kind.
* @param {string} [group] The comment subject group.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listComments1: async (
kind: string,
name: string,
version: string,
kind: string,
group?: string,
size?: number,
page?: number,
size?: number,
sort?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'kind' is not null or undefined
assertParamExists("listComments1", "kind", kind);
// verify required parameter 'name' is not null or undefined
assertParamExists("listComments1", "name", name);
// verify required parameter 'version' is not null or undefined
assertParamExists("listComments1", "version", version);
// verify required parameter 'kind' is not null or undefined
assertParamExists("listComments1", "kind", kind);
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@ -349,14 +351,6 @@ export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (name !== undefined) {
localVarQueryParameter["name"] = name;
}
if (version !== undefined) {
localVarQueryParameter["version"] = version;
}
if (group !== undefined) {
localVarQueryParameter["group"] = group;
}
@ -365,14 +359,26 @@ export const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function (
localVarQueryParameter["kind"] = kind;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (name !== undefined) {
localVarQueryParameter["name"] = name;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
if (sort) {
localVarQueryParameter["sort"] = Array.from(sort);
}
if (version !== undefined) {
localVarQueryParameter["version"] = version;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -475,15 +481,15 @@ export const ApiHaloRunV1alpha1CommentApiFp = function (
/**
* List comment replies.
* @param {string} name
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listCommentReplies(
name: string,
size?: number,
page?: number,
size?: number,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReplyVoList>
@ -491,8 +497,8 @@ export const ApiHaloRunV1alpha1CommentApiFp = function (
const localVarAxiosArgs =
await localVarAxiosParamCreator.listCommentReplies(
name,
size,
page,
size,
options
);
return createRequestFunction(
@ -504,33 +510,36 @@ export const ApiHaloRunV1alpha1CommentApiFp = function (
},
/**
* List comments.
* @param {string} kind The comment subject kind.
* @param {string} name The comment subject name.
* @param {string} version The comment subject version.
* @param {string} kind The comment subject kind.
* @param {string} [group] The comment subject group.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listComments1(
kind: string,
name: string,
version: string,
kind: string,
group?: string,
size?: number,
page?: number,
size?: number,
sort?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommentVoList>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(
kind,
name,
version,
kind,
group,
size,
page,
size,
sort,
options
);
return createRequestFunction(
@ -613,8 +622,8 @@ export const ApiHaloRunV1alpha1CommentApiFactory = function (
return localVarFp
.listCommentReplies(
requestParameters.name,
requestParameters.size,
requestParameters.page,
requestParameters.size,
options
)
.then((request) => request(axios, basePath));
@ -631,12 +640,13 @@ export const ApiHaloRunV1alpha1CommentApiFactory = function (
): AxiosPromise<CommentVoList> {
return localVarFp
.listComments1(
requestParameters.kind,
requestParameters.name,
requestParameters.version,
requestParameters.kind,
requestParameters.group,
requestParameters.size,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(axios, basePath));
@ -706,19 +716,19 @@ export interface ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest {
*/
readonly name: string;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiHaloRunV1alpha1CommentApiListCommentReplies
*/
readonly size?: number;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiHaloRunV1alpha1CommentApiListCommentReplies
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof ApiHaloRunV1alpha1CommentApiListCommentReplies
*/
readonly size?: number;
}
/**
@ -727,6 +737,13 @@ export interface ApiHaloRunV1alpha1CommentApiListCommentRepliesRequest {
* @interface ApiHaloRunV1alpha1CommentApiListComments1Request
*/
export interface ApiHaloRunV1alpha1CommentApiListComments1Request {
/**
* The comment subject kind.
* @type {string}
* @memberof ApiHaloRunV1alpha1CommentApiListComments1
*/
readonly kind: string;
/**
* The comment subject name.
* @type {string}
@ -741,13 +758,6 @@ export interface ApiHaloRunV1alpha1CommentApiListComments1Request {
*/
readonly version: string;
/**
* The comment subject kind.
* @type {string}
* @memberof ApiHaloRunV1alpha1CommentApiListComments1
*/
readonly kind: string;
/**
* The comment subject group.
* @type {string}
@ -755,6 +765,13 @@ export interface ApiHaloRunV1alpha1CommentApiListComments1Request {
*/
readonly group?: string;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof ApiHaloRunV1alpha1CommentApiListComments1
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
@ -763,11 +780,11 @@ export interface ApiHaloRunV1alpha1CommentApiListComments1Request {
readonly size?: number;
/**
* The page number. Zero indicates no page.
* @type {number}
* Sort property and direction of the list result. Supported fields: creationTimestamp
* @type {Array<string>}
* @memberof ApiHaloRunV1alpha1CommentApiListComments1
*/
readonly page?: number;
readonly sort?: Array<string>;
}
/**
@ -843,8 +860,8 @@ export class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
return ApiHaloRunV1alpha1CommentApiFp(this.configuration)
.listCommentReplies(
requestParameters.name,
requestParameters.size,
requestParameters.page,
requestParameters.size,
options
)
.then((request) => request(this.axios, this.basePath));
@ -863,12 +880,13 @@ export class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
) {
return ApiHaloRunV1alpha1CommentApiFp(this.configuration)
.listComments1(
requestParameters.kind,
requestParameters.name,
requestParameters.version,
requestParameters.kind,
requestParameters.group,
requestParameters.size,
requestParameters.page,
requestParameters.size,
requestParameters.sort,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -0,0 +1,293 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { Configuration } from "../configuration";
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
import globalAxios from "axios";
// Some imports not used depending on template conditions
// @ts-ignore
import {
DUMMY_BASE_URL,
assertParamExists,
setApiKeyToObject,
setBasicAuthToObject,
setBearerAuthToObject,
setOAuthToObject,
setSearchParams,
serializeDataIfNeeded,
toPathString,
createRequestFunction,
} from "../common";
// @ts-ignore
import {
BASE_PATH,
COLLECTION_FORMATS,
RequestArgs,
BaseAPI,
RequiredError,
} from "../base";
// @ts-ignore
import { MenuVo } from "../models";
/**
* ApiHaloRunV1alpha1MenuApi - axios parameter creator
* @export
*/
export const ApiHaloRunV1alpha1MenuApiAxiosParamCreator = function (
configuration?: Configuration
) {
return {
/**
* Gets menu by name.
* @param {string} name Menu name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryMenuByName: async (
name: string,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("queryMenuByName", "name", name);
const localVarPath = `/apis/api.halo.run/v1alpha1/menus/{name}`.replace(
`{${"name"}}`,
encodeURIComponent(String(name))
);
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Gets primary menu.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPrimaryMenu: async (
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.halo.run/v1alpha1/menus/-`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
};
};
/**
* ApiHaloRunV1alpha1MenuApi - functional programming interface
* @export
*/
export const ApiHaloRunV1alpha1MenuApiFp = function (
configuration?: Configuration
) {
const localVarAxiosParamCreator =
ApiHaloRunV1alpha1MenuApiAxiosParamCreator(configuration);
return {
/**
* Gets menu by name.
* @param {string} name Menu name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryMenuByName(
name: string,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuVo>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.queryMenuByName(
name,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* Gets primary menu.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryPrimaryMenu(
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuVo>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.queryPrimaryMenu(options);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
};
};
/**
* ApiHaloRunV1alpha1MenuApi - factory interface
* @export
*/
export const ApiHaloRunV1alpha1MenuApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance
) {
const localVarFp = ApiHaloRunV1alpha1MenuApiFp(configuration);
return {
/**
* Gets menu by name.
* @param {ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryMenuByName(
requestParameters: ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest,
options?: AxiosRequestConfig
): AxiosPromise<MenuVo> {
return localVarFp
.queryMenuByName(requestParameters.name, options)
.then((request) => request(axios, basePath));
},
/**
* Gets primary menu.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPrimaryMenu(options?: AxiosRequestConfig): AxiosPromise<MenuVo> {
return localVarFp
.queryPrimaryMenu(options)
.then((request) => request(axios, basePath));
},
};
};
/**
* Request parameters for queryMenuByName operation in ApiHaloRunV1alpha1MenuApi.
* @export
* @interface ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest
*/
export interface ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest {
/**
* Menu name
* @type {string}
* @memberof ApiHaloRunV1alpha1MenuApiQueryMenuByName
*/
readonly name: string;
}
/**
* ApiHaloRunV1alpha1MenuApi - object-oriented interface
* @export
* @class ApiHaloRunV1alpha1MenuApi
* @extends {BaseAPI}
*/
export class ApiHaloRunV1alpha1MenuApi extends BaseAPI {
/**
* Gets menu by name.
* @param {ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiHaloRunV1alpha1MenuApi
*/
public queryMenuByName(
requestParameters: ApiHaloRunV1alpha1MenuApiQueryMenuByNameRequest,
options?: AxiosRequestConfig
) {
return ApiHaloRunV1alpha1MenuApiFp(this.configuration)
.queryMenuByName(requestParameters.name, options)
.then((request) => request(this.axios, this.basePath));
}
/**
* Gets primary menu.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiHaloRunV1alpha1MenuApi
*/
public queryPrimaryMenu(options?: AxiosRequestConfig) {
return ApiHaloRunV1alpha1MenuApiFp(this.configuration)
.queryPrimaryMenu(options)
.then((request) => request(this.axios, this.basePath));
}
}

View File

@ -50,16 +50,16 @@ export const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function (
/**
* Search posts with fuzzy query
* @param {string} keyword
* @param {string} [highlightPreTag]
* @param {string} [highlightPostTag]
* @param {string} [highlightPreTag]
* @param {number} [limit]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
searchPost: async (
keyword: string,
highlightPreTag?: string,
highlightPostTag?: string,
highlightPreTag?: string,
limit?: number,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
@ -89,14 +89,14 @@ export const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (highlightPreTag !== undefined) {
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
}
if (highlightPostTag !== undefined) {
localVarQueryParameter["highlightPostTag"] = highlightPostTag;
}
if (highlightPreTag !== undefined) {
localVarQueryParameter["highlightPreTag"] = highlightPreTag;
}
if (keyword !== undefined) {
localVarQueryParameter["keyword"] = keyword;
}
@ -135,16 +135,16 @@ export const ApiHaloRunV1alpha1PostApiFp = function (
/**
* Search posts with fuzzy query
* @param {string} keyword
* @param {string} [highlightPreTag]
* @param {string} [highlightPostTag]
* @param {string} [highlightPreTag]
* @param {number} [limit]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async searchPost(
keyword: string,
highlightPreTag?: string,
highlightPostTag?: string,
highlightPreTag?: string,
limit?: number,
options?: AxiosRequestConfig
): Promise<
@ -152,8 +152,8 @@ export const ApiHaloRunV1alpha1PostApiFp = function (
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(
keyword,
highlightPreTag,
highlightPostTag,
highlightPreTag,
limit,
options
);
@ -191,8 +191,8 @@ export const ApiHaloRunV1alpha1PostApiFactory = function (
return localVarFp
.searchPost(
requestParameters.keyword,
requestParameters.highlightPreTag,
requestParameters.highlightPostTag,
requestParameters.highlightPreTag,
requestParameters.limit,
options
)
@ -219,14 +219,14 @@ export interface ApiHaloRunV1alpha1PostApiSearchPostRequest {
* @type {string}
* @memberof ApiHaloRunV1alpha1PostApiSearchPost
*/
readonly highlightPreTag?: string;
readonly highlightPostTag?: string;
/**
*
* @type {string}
* @memberof ApiHaloRunV1alpha1PostApiSearchPost
*/
readonly highlightPostTag?: string;
readonly highlightPreTag?: string;
/**
*
@ -257,8 +257,8 @@ export class ApiHaloRunV1alpha1PostApi extends BaseAPI {
return ApiHaloRunV1alpha1PostApiFp(this.configuration)
.searchPost(
requestParameters.keyword,
requestParameters.highlightPreTag,
requestParameters.highlightPostTag,
requestParameters.highlightPreTag,
requestParameters.limit,
options
)

View File

@ -0,0 +1,174 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { Configuration } from "../configuration";
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
import globalAxios from "axios";
// Some imports not used depending on template conditions
// @ts-ignore
import {
DUMMY_BASE_URL,
assertParamExists,
setApiKeyToObject,
setBasicAuthToObject,
setBearerAuthToObject,
setOAuthToObject,
setSearchParams,
serializeDataIfNeeded,
toPathString,
createRequestFunction,
} from "../common";
// @ts-ignore
import {
BASE_PATH,
COLLECTION_FORMATS,
RequestArgs,
BaseAPI,
RequiredError,
} from "../base";
// @ts-ignore
import { SiteStatsVo } from "../models";
/**
* ApiHaloRunV1alpha1StatsApi - axios parameter creator
* @export
*/
export const ApiHaloRunV1alpha1StatsApiAxiosParamCreator = function (
configuration?: Configuration
) {
return {
/**
* Gets site stats
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryStats: async (
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/api.halo.run/v1alpha1/stats/-`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
};
};
/**
* ApiHaloRunV1alpha1StatsApi - functional programming interface
* @export
*/
export const ApiHaloRunV1alpha1StatsApiFp = function (
configuration?: Configuration
) {
const localVarAxiosParamCreator =
ApiHaloRunV1alpha1StatsApiAxiosParamCreator(configuration);
return {
/**
* Gets site stats
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryStats(
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SiteStatsVo>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.queryStats(
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
};
};
/**
* ApiHaloRunV1alpha1StatsApi - factory interface
* @export
*/
export const ApiHaloRunV1alpha1StatsApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance
) {
const localVarFp = ApiHaloRunV1alpha1StatsApiFp(configuration);
return {
/**
* Gets site stats
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryStats(options?: AxiosRequestConfig): AxiosPromise<SiteStatsVo> {
return localVarFp
.queryStats(options)
.then((request) => request(axios, basePath));
},
};
};
/**
* ApiHaloRunV1alpha1StatsApi - object-oriented interface
* @export
* @class ApiHaloRunV1alpha1StatsApi
* @extends {BaseAPI}
*/
export class ApiHaloRunV1alpha1StatsApi extends BaseAPI {
/**
* Gets site stats
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiHaloRunV1alpha1StatsApi
*/
public queryStats(options?: AxiosRequestConfig) {
return ApiHaloRunV1alpha1StatsApiFp(this.configuration)
.queryStats(options)
.then((request) => request(this.axios, this.basePath));
}
}

View File

@ -0,0 +1,206 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import type { Configuration } from "../configuration";
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
import globalAxios from "axios";
// Some imports not used depending on template conditions
// @ts-ignore
import {
DUMMY_BASE_URL,
assertParamExists,
setApiKeyToObject,
setBasicAuthToObject,
setBearerAuthToObject,
setOAuthToObject,
setSearchParams,
serializeDataIfNeeded,
toPathString,
createRequestFunction,
} from "../common";
// @ts-ignore
import {
BASE_PATH,
COLLECTION_FORMATS,
RequestArgs,
BaseAPI,
RequiredError,
} from "../base";
/**
* ApiPluginHaloRunV1alpha1PluginApi - axios parameter creator
* @export
*/
export const ApiPluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (
configuration?: Configuration
) {
return {
/**
* Gets plugin available by name.
* @param {string} name Plugin name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPluginAvailableByName: async (
name: string,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("queryPluginAvailableByName", "name", name);
const localVarPath =
`/apis/api.plugin.halo.run/v1alpha1/plugins/{name}/available`.replace(
`{${"name"}}`,
encodeURIComponent(String(name))
);
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = {
method: "GET",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication BasicAuth required
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration);
// authentication BearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
};
};
/**
* ApiPluginHaloRunV1alpha1PluginApi - functional programming interface
* @export
*/
export const ApiPluginHaloRunV1alpha1PluginApiFp = function (
configuration?: Configuration
) {
const localVarAxiosParamCreator =
ApiPluginHaloRunV1alpha1PluginApiAxiosParamCreator(configuration);
return {
/**
* Gets plugin available by name.
* @param {string} name Plugin name
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async queryPluginAvailableByName(
name: string,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.queryPluginAvailableByName(
name,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
};
};
/**
* ApiPluginHaloRunV1alpha1PluginApi - factory interface
* @export
*/
export const ApiPluginHaloRunV1alpha1PluginApiFactory = function (
configuration?: Configuration,
basePath?: string,
axios?: AxiosInstance
) {
const localVarFp = ApiPluginHaloRunV1alpha1PluginApiFp(configuration);
return {
/**
* Gets plugin available by name.
* @param {ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
queryPluginAvailableByName(
requestParameters: ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest,
options?: AxiosRequestConfig
): AxiosPromise<boolean> {
return localVarFp
.queryPluginAvailableByName(requestParameters.name, options)
.then((request) => request(axios, basePath));
},
};
};
/**
* Request parameters for queryPluginAvailableByName operation in ApiPluginHaloRunV1alpha1PluginApi.
* @export
* @interface ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest
*/
export interface ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest {
/**
* Plugin name
* @type {string}
* @memberof ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByName
*/
readonly name: string;
}
/**
* ApiPluginHaloRunV1alpha1PluginApi - object-oriented interface
* @export
* @class ApiPluginHaloRunV1alpha1PluginApi
* @extends {BaseAPI}
*/
export class ApiPluginHaloRunV1alpha1PluginApi extends BaseAPI {
/**
* Gets plugin available by name.
* @param {ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiPluginHaloRunV1alpha1PluginApi
*/
public queryPluginAvailableByName(
requestParameters: ApiPluginHaloRunV1alpha1PluginApiQueryPluginAvailableByNameRequest,
options?: AxiosRequestConfig
) {
return ApiPluginHaloRunV1alpha1PluginApiFp(this.configuration)
.queryPluginAvailableByName(requestParameters.name, options)
.then((request) => request(this.axios, this.basePath));
}
}

View File

@ -214,18 +214,18 @@ export const AuthHaloRunV1alpha1AuthProviderApiAxiosParamCreator = function (
},
/**
* List auth.halo.run/v1alpha1/AuthProvider
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listauthHaloRunV1alpha1AuthProvider: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/auth.halo.run/v1alpha1/authproviders`;
@ -252,20 +252,20 @@ export const AuthHaloRunV1alpha1AuthProviderApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,18 +432,18 @@ export const AuthHaloRunV1alpha1AuthProviderApiFp = function (
},
/**
* List auth.halo.run/v1alpha1/AuthProvider
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listauthHaloRunV1alpha1AuthProvider(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -453,10 +453,10 @@ export const AuthHaloRunV1alpha1AuthProviderApiFp = function (
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listauthHaloRunV1alpha1AuthProvider(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -564,10 +564,10 @@ export const AuthHaloRunV1alpha1AuthProviderApiFactory = function (
): AxiosPromise<AuthProviderList> {
return localVarFp
.listauthHaloRunV1alpha1AuthProvider(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -641,6 +641,20 @@ export interface AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthPro
* @interface AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest
*/
export interface AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -654,20 +668,6 @@ export interface AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthPr
* @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -762,10 +762,10 @@ export class AuthHaloRunV1alpha1AuthProviderApi extends BaseAPI {
) {
return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration)
.listauthHaloRunV1alpha1AuthProvider(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,18 +218,18 @@ export const AuthHaloRunV1alpha1UserConnectionApiAxiosParamCreator = function (
},
/**
* List auth.halo.run/v1alpha1/UserConnection
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listauthHaloRunV1alpha1UserConnection: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/auth.halo.run/v1alpha1/userconnections`;
@ -256,20 +256,20 @@ export const AuthHaloRunV1alpha1UserConnectionApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -440,18 +440,18 @@ export const AuthHaloRunV1alpha1UserConnectionApiFp = function (
},
/**
* List auth.halo.run/v1alpha1/UserConnection
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listauthHaloRunV1alpha1UserConnection(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -461,10 +461,10 @@ export const AuthHaloRunV1alpha1UserConnectionApiFp = function (
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listauthHaloRunV1alpha1UserConnection(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -575,10 +575,10 @@ export const AuthHaloRunV1alpha1UserConnectionApiFactory = function (
): AxiosPromise<UserConnectionList> {
return localVarFp
.listauthHaloRunV1alpha1UserConnection(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -652,6 +652,20 @@ export interface AuthHaloRunV1alpha1UserConnectionApiGetauthHaloRunV1alpha1UserC
* @interface AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnectionRequest
*/
export interface AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnectionRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -665,20 +679,6 @@ export interface AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1User
* @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof AuthHaloRunV1alpha1UserConnectionApiListauthHaloRunV1alpha1UserConnection
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -773,10 +773,10 @@ export class AuthHaloRunV1alpha1UserConnectionApi extends BaseAPI {
) {
return AuthHaloRunV1alpha1UserConnectionApiFp(this.configuration)
.listauthHaloRunV1alpha1UserConnection(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (
},
/**
* List content.halo.run/v1alpha1/Category
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listcontentHaloRunV1alpha1Category: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/categories`;
@ -252,20 +252,20 @@ export const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const ContentHaloRunV1alpha1CategoryApiFp = function (
},
/**
* List content.halo.run/v1alpha1/Category
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listcontentHaloRunV1alpha1Category(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Category(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -561,10 +561,10 @@ export const ContentHaloRunV1alpha1CategoryApiFactory = function (
): AxiosPromise<CategoryList> {
return localVarFp
.listcontentHaloRunV1alpha1Category(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -638,6 +638,20 @@ export interface ContentHaloRunV1alpha1CategoryApiGetcontentHaloRunV1alpha1Categ
* @interface ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest
*/
export interface ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1CategoryRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -651,20 +665,6 @@ export interface ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Cate
* @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1CategoryApiListcontentHaloRunV1alpha1Category
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -756,10 +756,10 @@ export class ContentHaloRunV1alpha1CategoryApi extends BaseAPI {
) {
return ContentHaloRunV1alpha1CategoryApiFp(this.configuration)
.listcontentHaloRunV1alpha1Category(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (
},
/**
* List content.halo.run/v1alpha1/Comment
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listcontentHaloRunV1alpha1Comment: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/comments`;
@ -252,20 +252,20 @@ export const ContentHaloRunV1alpha1CommentApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const ContentHaloRunV1alpha1CommentApiFp = function (
},
/**
* List content.halo.run/v1alpha1/Comment
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listcontentHaloRunV1alpha1Comment(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommentList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Comment(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -558,10 +558,10 @@ export const ContentHaloRunV1alpha1CommentApiFactory = function (
): AxiosPromise<CommentList> {
return localVarFp
.listcontentHaloRunV1alpha1Comment(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -635,6 +635,20 @@ export interface ContentHaloRunV1alpha1CommentApiGetcontentHaloRunV1alpha1Commen
* @interface ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest
*/
export interface ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1CommentRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -648,20 +662,6 @@ export interface ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comme
* @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1CommentApiListcontentHaloRunV1alpha1Comment
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -753,10 +753,10 @@ export class ContentHaloRunV1alpha1CommentApi extends BaseAPI {
) {
return ContentHaloRunV1alpha1CommentApiFp(this.configuration)
.listcontentHaloRunV1alpha1Comment(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function (
},
/**
* List content.halo.run/v1alpha1/Post
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listcontentHaloRunV1alpha1Post: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/posts`;
@ -252,20 +252,20 @@ export const ContentHaloRunV1alpha1PostApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const ContentHaloRunV1alpha1PostApiFp = function (
},
/**
* List content.halo.run/v1alpha1/Post
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listcontentHaloRunV1alpha1Post(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Post(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -558,10 +558,10 @@ export const ContentHaloRunV1alpha1PostApiFactory = function (
): AxiosPromise<PostList> {
return localVarFp
.listcontentHaloRunV1alpha1Post(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -635,6 +635,20 @@ export interface ContentHaloRunV1alpha1PostApiGetcontentHaloRunV1alpha1PostReque
* @interface ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest
*/
export interface ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -648,20 +662,6 @@ export interface ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1PostRequ
* @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1PostApiListcontentHaloRunV1alpha1Post
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -753,10 +753,10 @@ export class ContentHaloRunV1alpha1PostApi extends BaseAPI {
) {
return ContentHaloRunV1alpha1PostApiFp(this.configuration)
.listcontentHaloRunV1alpha1Post(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function (
},
/**
* List content.halo.run/v1alpha1/Reply
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listcontentHaloRunV1alpha1Reply: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/replies`;
@ -252,20 +252,20 @@ export const ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const ContentHaloRunV1alpha1ReplyApiFp = function (
},
/**
* List content.halo.run/v1alpha1/Reply
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listcontentHaloRunV1alpha1Reply(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReplyList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Reply(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -558,10 +558,10 @@ export const ContentHaloRunV1alpha1ReplyApiFactory = function (
): AxiosPromise<ReplyList> {
return localVarFp
.listcontentHaloRunV1alpha1Reply(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -635,6 +635,20 @@ export interface ContentHaloRunV1alpha1ReplyApiGetcontentHaloRunV1alpha1ReplyReq
* @interface ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest
*/
export interface ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -648,20 +662,6 @@ export interface ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1ReplyRe
* @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1ReplyApiListcontentHaloRunV1alpha1Reply
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -753,10 +753,10 @@ export class ContentHaloRunV1alpha1ReplyApi extends BaseAPI {
) {
return ContentHaloRunV1alpha1ReplyApiFp(this.configuration)
.listcontentHaloRunV1alpha1Reply(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (
},
/**
* List content.halo.run/v1alpha1/SinglePage
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listcontentHaloRunV1alpha1SinglePage: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`;
@ -252,20 +252,20 @@ export const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const ContentHaloRunV1alpha1SinglePageApiFp = function (
},
/**
* List content.halo.run/v1alpha1/SinglePage
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listcontentHaloRunV1alpha1SinglePage(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SinglePageList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1SinglePage(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -561,10 +561,10 @@ export const ContentHaloRunV1alpha1SinglePageApiFactory = function (
): AxiosPromise<SinglePageList> {
return localVarFp
.listcontentHaloRunV1alpha1SinglePage(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -638,6 +638,20 @@ export interface ContentHaloRunV1alpha1SinglePageApiGetcontentHaloRunV1alpha1Sin
* @interface ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest
*/
export interface ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePageRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -651,20 +665,6 @@ export interface ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1Si
* @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1SinglePageApiListcontentHaloRunV1alpha1SinglePage
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -759,10 +759,10 @@ export class ContentHaloRunV1alpha1SinglePageApi extends BaseAPI {
) {
return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration)
.listcontentHaloRunV1alpha1SinglePage(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (
},
/**
* List content.halo.run/v1alpha1/Snapshot
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listcontentHaloRunV1alpha1Snapshot: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/snapshots`;
@ -252,20 +252,20 @@ export const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const ContentHaloRunV1alpha1SnapshotApiFp = function (
},
/**
* List content.halo.run/v1alpha1/Snapshot
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listcontentHaloRunV1alpha1Snapshot(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SnapshotList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Snapshot(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -561,10 +561,10 @@ export const ContentHaloRunV1alpha1SnapshotApiFactory = function (
): AxiosPromise<SnapshotList> {
return localVarFp
.listcontentHaloRunV1alpha1Snapshot(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -638,6 +638,20 @@ export interface ContentHaloRunV1alpha1SnapshotApiGetcontentHaloRunV1alpha1Snaps
* @interface ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest
*/
export interface ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1SnapshotRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -651,20 +665,6 @@ export interface ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snap
* @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1SnapshotApiListcontentHaloRunV1alpha1Snapshot
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -756,10 +756,10 @@ export class ContentHaloRunV1alpha1SnapshotApi extends BaseAPI {
) {
return ContentHaloRunV1alpha1SnapshotApiFp(this.configuration)
.listcontentHaloRunV1alpha1Snapshot(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function (
},
/**
* List content.halo.run/v1alpha1/Tag
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listcontentHaloRunV1alpha1Tag: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/content.halo.run/v1alpha1/tags`;
@ -252,20 +252,20 @@ export const ContentHaloRunV1alpha1TagApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const ContentHaloRunV1alpha1TagApiFp = function (
},
/**
* List content.halo.run/v1alpha1/Tag
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listcontentHaloRunV1alpha1Tag(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listcontentHaloRunV1alpha1Tag(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -558,10 +558,10 @@ export const ContentHaloRunV1alpha1TagApiFactory = function (
): AxiosPromise<TagList> {
return localVarFp
.listcontentHaloRunV1alpha1Tag(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -635,6 +635,20 @@ export interface ContentHaloRunV1alpha1TagApiGetcontentHaloRunV1alpha1TagRequest
* @interface ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest
*/
export interface ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -648,20 +662,6 @@ export interface ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1TagReques
* @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ContentHaloRunV1alpha1TagApiListcontentHaloRunV1alpha1Tag
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -753,10 +753,10 @@ export class ContentHaloRunV1alpha1TagApi extends BaseAPI {
) {
return ContentHaloRunV1alpha1TagApiFp(this.configuration)
.listcontentHaloRunV1alpha1Tag(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function (
},
/**
* List metrics.halo.run/v1alpha1/Counter
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listmetricsHaloRunV1alpha1Counter: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`;
@ -252,20 +252,20 @@ export const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const MetricsHaloRunV1alpha1CounterApiFp = function (
},
/**
* List metrics.halo.run/v1alpha1/Counter
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listmetricsHaloRunV1alpha1Counter(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CounterList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listmetricsHaloRunV1alpha1Counter(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -558,10 +558,10 @@ export const MetricsHaloRunV1alpha1CounterApiFactory = function (
): AxiosPromise<CounterList> {
return localVarFp
.listmetricsHaloRunV1alpha1Counter(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -635,6 +635,20 @@ export interface MetricsHaloRunV1alpha1CounterApiGetmetricsHaloRunV1alpha1Counte
* @interface MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest
*/
export interface MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1CounterRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -648,20 +662,6 @@ export interface MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Count
* @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof MetricsHaloRunV1alpha1CounterApiListmetricsHaloRunV1alpha1Counter
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -753,10 +753,10 @@ export class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
) {
return MetricsHaloRunV1alpha1CounterApiFp(this.configuration)
.listmetricsHaloRunV1alpha1Counter(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -221,18 +221,18 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiAxiosParamCreator =
},
/**
* List plugin.halo.run/v1alpha1/ExtensionDefinition
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listpluginHaloRunV1alpha1ExtensionDefinition: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions`;
@ -259,20 +259,20 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiAxiosParamCreator =
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -449,18 +449,18 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiFp = function (
},
/**
* List plugin.halo.run/v1alpha1/ExtensionDefinition
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listpluginHaloRunV1alpha1ExtensionDefinition(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -470,10 +470,10 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiFp = function (
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listpluginHaloRunV1alpha1ExtensionDefinition(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -591,10 +591,10 @@ export const PluginHaloRunV1alpha1ExtensionDefinitionApiFactory = function (
): AxiosPromise<ExtensionDefinitionList> {
return localVarFp
.listpluginHaloRunV1alpha1ExtensionDefinition(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -668,6 +668,20 @@ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiGetpluginHaloRunV1al
* @interface PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinitionRequest
*/
export interface PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinitionRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -681,20 +695,6 @@ export interface PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1a
* @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ExtensionDefinitionApiListpluginHaloRunV1alpha1ExtensionDefinition
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -795,10 +795,10 @@ export class PluginHaloRunV1alpha1ExtensionDefinitionApi extends BaseAPI {
) {
return PluginHaloRunV1alpha1ExtensionDefinitionApiFp(this.configuration)
.listpluginHaloRunV1alpha1ExtensionDefinition(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -221,18 +221,18 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiAxiosParamCreator =
},
/**
* List plugin.halo.run/v1alpha1/ExtensionPointDefinition
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listpluginHaloRunV1alpha1ExtensionPointDefinition: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions`;
@ -259,20 +259,20 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiAxiosParamCreator =
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -451,18 +451,18 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp = function (
},
/**
* List plugin.halo.run/v1alpha1/ExtensionPointDefinition
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listpluginHaloRunV1alpha1ExtensionPointDefinition(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -472,10 +472,10 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiFp = function (
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listpluginHaloRunV1alpha1ExtensionPointDefinition(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -594,10 +594,10 @@ export const PluginHaloRunV1alpha1ExtensionPointDefinitionApiFactory =
): AxiosPromise<ExtensionPointDefinitionList> {
return localVarFp
.listpluginHaloRunV1alpha1ExtensionPointDefinition(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -671,6 +671,20 @@ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiGetpluginHaloRu
* @interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinitionRequest
*/
export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinitionRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -684,20 +698,6 @@ export interface PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloR
* @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ExtensionPointDefinitionApiListpluginHaloRunV1alpha1ExtensionPointDefinition
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -806,10 +806,10 @@ export class PluginHaloRunV1alpha1ExtensionPointDefinitionApi extends BaseAPI {
this.configuration
)
.listpluginHaloRunV1alpha1ExtensionPointDefinition(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (
},
/**
* List plugin.halo.run/v1alpha1/Plugin
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listpluginHaloRunV1alpha1Plugin: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/plugin.halo.run/v1alpha1/plugins`;
@ -252,20 +252,20 @@ export const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const PluginHaloRunV1alpha1PluginApiFp = function (
},
/**
* List plugin.halo.run/v1alpha1/Plugin
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listpluginHaloRunV1alpha1Plugin(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PluginList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listpluginHaloRunV1alpha1Plugin(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -558,10 +558,10 @@ export const PluginHaloRunV1alpha1PluginApiFactory = function (
): AxiosPromise<PluginList> {
return localVarFp
.listpluginHaloRunV1alpha1Plugin(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -635,6 +635,20 @@ export interface PluginHaloRunV1alpha1PluginApiGetpluginHaloRunV1alpha1PluginReq
* @interface PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest
*/
export interface PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -648,20 +662,6 @@ export interface PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1PluginRe
* @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1PluginApiListpluginHaloRunV1alpha1Plugin
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -753,10 +753,10 @@ export class PluginHaloRunV1alpha1PluginApi extends BaseAPI {
) {
return PluginHaloRunV1alpha1PluginApiFp(this.configuration)
.listpluginHaloRunV1alpha1Plugin(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,18 +218,18 @@ export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function (
},
/**
* List plugin.halo.run/v1alpha1/ReverseProxy
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listpluginHaloRunV1alpha1ReverseProxy: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/plugin.halo.run/v1alpha1/reverseproxies`;
@ -256,20 +256,20 @@ export const PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -440,18 +440,18 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFp = function (
},
/**
* List plugin.halo.run/v1alpha1/ReverseProxy
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listpluginHaloRunV1alpha1ReverseProxy(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -461,10 +461,10 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFp = function (
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listpluginHaloRunV1alpha1ReverseProxy(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -575,10 +575,10 @@ export const PluginHaloRunV1alpha1ReverseProxyApiFactory = function (
): AxiosPromise<ReverseProxyList> {
return localVarFp
.listpluginHaloRunV1alpha1ReverseProxy(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -652,6 +652,20 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiGetpluginHaloRunV1alpha1Rev
* @interface PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest
*/
export interface PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxyRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -665,20 +679,6 @@ export interface PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1Re
* @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1ReverseProxyApiListpluginHaloRunV1alpha1ReverseProxy
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -773,10 +773,10 @@ export class PluginHaloRunV1alpha1ReverseProxyApi extends BaseAPI {
) {
return PluginHaloRunV1alpha1ReverseProxyApiFp(this.configuration)
.listpluginHaloRunV1alpha1ReverseProxy(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -218,18 +218,18 @@ export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function (
},
/**
* List plugin.halo.run/v1alpha1/SearchEngine
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listpluginHaloRunV1alpha1SearchEngine: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/plugin.halo.run/v1alpha1/searchengines`;
@ -256,20 +256,20 @@ export const PluginHaloRunV1alpha1SearchEngineApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -440,18 +440,18 @@ export const PluginHaloRunV1alpha1SearchEngineApiFp = function (
},
/**
* List plugin.halo.run/v1alpha1/SearchEngine
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listpluginHaloRunV1alpha1SearchEngine(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -461,10 +461,10 @@ export const PluginHaloRunV1alpha1SearchEngineApiFp = function (
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listpluginHaloRunV1alpha1SearchEngine(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -575,10 +575,10 @@ export const PluginHaloRunV1alpha1SearchEngineApiFactory = function (
): AxiosPromise<SearchEngineList> {
return localVarFp
.listpluginHaloRunV1alpha1SearchEngine(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -652,6 +652,20 @@ export interface PluginHaloRunV1alpha1SearchEngineApiGetpluginHaloRunV1alpha1Sea
* @interface PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest
*/
export interface PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngineRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -665,20 +679,6 @@ export interface PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1Se
* @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof PluginHaloRunV1alpha1SearchEngineApiListpluginHaloRunV1alpha1SearchEngine
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -773,10 +773,10 @@ export class PluginHaloRunV1alpha1SearchEngineApi extends BaseAPI {
) {
return PluginHaloRunV1alpha1SearchEngineApiFp(this.configuration)
.listpluginHaloRunV1alpha1SearchEngine(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (
},
/**
* List storage.halo.run/v1alpha1/Attachment
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
liststorageHaloRunV1alpha1Attachment: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/storage.halo.run/v1alpha1/attachments`;
@ -252,20 +252,20 @@ export const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const StorageHaloRunV1alpha1AttachmentApiFp = function (
},
/**
* List storage.halo.run/v1alpha1/Attachment
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async liststorageHaloRunV1alpha1Attachment(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AttachmentList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -561,10 +561,10 @@ export const StorageHaloRunV1alpha1AttachmentApiFactory = function (
): AxiosPromise<AttachmentList> {
return localVarFp
.liststorageHaloRunV1alpha1Attachment(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -638,6 +638,20 @@ export interface StorageHaloRunV1alpha1AttachmentApiGetstorageHaloRunV1alpha1Att
* @interface StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest
*/
export interface StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1AttachmentRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -651,20 +665,6 @@ export interface StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1At
* @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1AttachmentApiListstorageHaloRunV1alpha1Attachment
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -759,10 +759,10 @@ export class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
) {
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration)
.liststorageHaloRunV1alpha1Attachment(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function (
},
/**
* List storage.halo.run/v1alpha1/Group
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
liststorageHaloRunV1alpha1Group: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/storage.halo.run/v1alpha1/groups`;
@ -252,20 +252,20 @@ export const StorageHaloRunV1alpha1GroupApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const StorageHaloRunV1alpha1GroupApiFp = function (
},
/**
* List storage.halo.run/v1alpha1/Group
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async liststorageHaloRunV1alpha1Group(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Group(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -558,10 +558,10 @@ export const StorageHaloRunV1alpha1GroupApiFactory = function (
): AxiosPromise<GroupList> {
return localVarFp
.liststorageHaloRunV1alpha1Group(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -635,6 +635,20 @@ export interface StorageHaloRunV1alpha1GroupApiGetstorageHaloRunV1alpha1GroupReq
* @interface StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest
*/
export interface StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -648,20 +662,6 @@ export interface StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1GroupRe
* @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1GroupApiListstorageHaloRunV1alpha1Group
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -753,10 +753,10 @@ export class StorageHaloRunV1alpha1GroupApi extends BaseAPI {
) {
return StorageHaloRunV1alpha1GroupApiFp(this.configuration)
.liststorageHaloRunV1alpha1Group(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function (
},
/**
* List storage.halo.run/v1alpha1/Policy
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
liststorageHaloRunV1alpha1Policy: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/storage.halo.run/v1alpha1/policies`;
@ -252,20 +252,20 @@ export const StorageHaloRunV1alpha1PolicyApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const StorageHaloRunV1alpha1PolicyApiFp = function (
},
/**
* List storage.halo.run/v1alpha1/Policy
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async liststorageHaloRunV1alpha1Policy(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Policy(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -558,10 +558,10 @@ export const StorageHaloRunV1alpha1PolicyApiFactory = function (
): AxiosPromise<PolicyList> {
return localVarFp
.liststorageHaloRunV1alpha1Policy(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -635,6 +635,20 @@ export interface StorageHaloRunV1alpha1PolicyApiGetstorageHaloRunV1alpha1PolicyR
* @interface StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest
*/
export interface StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1PolicyRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -648,20 +662,6 @@ export interface StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
* @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1PolicyApiListstorageHaloRunV1alpha1Policy
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -753,10 +753,10 @@ export class StorageHaloRunV1alpha1PolicyApi extends BaseAPI {
) {
return StorageHaloRunV1alpha1PolicyApiFp(this.configuration)
.liststorageHaloRunV1alpha1Policy(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -221,18 +221,18 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator =
},
/**
* List storage.halo.run/v1alpha1/PolicyTemplate
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
liststorageHaloRunV1alpha1PolicyTemplate: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/storage.halo.run/v1alpha1/policytemplates`;
@ -259,20 +259,20 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator =
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -443,18 +443,18 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function (
},
/**
* List storage.halo.run/v1alpha1/PolicyTemplate
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async liststorageHaloRunV1alpha1PolicyTemplate(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -464,10 +464,10 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFp = function (
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.liststorageHaloRunV1alpha1PolicyTemplate(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -581,10 +581,10 @@ export const StorageHaloRunV1alpha1PolicyTemplateApiFactory = function (
): AxiosPromise<PolicyTemplateList> {
return localVarFp
.liststorageHaloRunV1alpha1PolicyTemplate(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -658,6 +658,20 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiGetstorageHaloRunV1alpha
* @interface StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest
*/
export interface StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplateRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -671,20 +685,6 @@ export interface StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alph
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof StorageHaloRunV1alpha1PolicyTemplateApiListstorageHaloRunV1alpha1PolicyTemplate
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -782,10 +782,10 @@ export class StorageHaloRunV1alpha1PolicyTemplateApi extends BaseAPI {
) {
return StorageHaloRunV1alpha1PolicyTemplateApiFp(this.configuration)
.liststorageHaloRunV1alpha1PolicyTemplate(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -214,18 +214,18 @@ export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function (
},
/**
* List theme.halo.run/v1alpha1/Theme
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listthemeHaloRunV1alpha1Theme: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/apis/theme.halo.run/v1alpha1/themes`;
@ -252,20 +252,20 @@ export const ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -432,28 +432,28 @@ export const ThemeHaloRunV1alpha1ThemeApiFp = function (
},
/**
* List theme.halo.run/v1alpha1/Theme
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listthemeHaloRunV1alpha1Theme(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ThemeList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listthemeHaloRunV1alpha1Theme(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -558,10 +558,10 @@ export const ThemeHaloRunV1alpha1ThemeApiFactory = function (
): AxiosPromise<ThemeList> {
return localVarFp
.listthemeHaloRunV1alpha1Theme(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -635,6 +635,20 @@ export interface ThemeHaloRunV1alpha1ThemeApiGetthemeHaloRunV1alpha1ThemeRequest
* @interface ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest
*/
export interface ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -648,20 +662,6 @@ export interface ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1ThemeReques
* @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof ThemeHaloRunV1alpha1ThemeApiListthemeHaloRunV1alpha1Theme
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -753,10 +753,10 @@ export class ThemeHaloRunV1alpha1ThemeApi extends BaseAPI {
) {
return ThemeHaloRunV1alpha1ThemeApiFp(this.configuration)
.listthemeHaloRunV1alpha1Theme(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -212,18 +212,18 @@ export const V1alpha1AnnotationSettingApiAxiosParamCreator = function (
},
/**
* List v1alpha1/AnnotationSetting
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listv1alpha1AnnotationSetting: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/annotationsettings`;
@ -250,20 +250,20 @@ export const V1alpha1AnnotationSettingApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -435,18 +435,18 @@ export const V1alpha1AnnotationSettingApiFp = function (
},
/**
* List v1alpha1/AnnotationSetting
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listv1alpha1AnnotationSetting(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -456,10 +456,10 @@ export const V1alpha1AnnotationSettingApiFp = function (
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listv1alpha1AnnotationSetting(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -570,10 +570,10 @@ export const V1alpha1AnnotationSettingApiFactory = function (
): AxiosPromise<AnnotationSettingList> {
return localVarFp
.listv1alpha1AnnotationSetting(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -647,6 +647,20 @@ export interface V1alpha1AnnotationSettingApiGetv1alpha1AnnotationSettingRequest
* @interface V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest
*/
export interface V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -660,20 +674,6 @@ export interface V1alpha1AnnotationSettingApiListv1alpha1AnnotationSettingReques
* @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1AnnotationSettingApiListv1alpha1AnnotationSetting
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -768,10 +768,10 @@ export class V1alpha1AnnotationSettingApi extends BaseAPI {
) {
return V1alpha1AnnotationSettingApiFp(this.configuration)
.listv1alpha1AnnotationSetting(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -212,18 +212,18 @@ export const V1alpha1ConfigMapApiAxiosParamCreator = function (
},
/**
* List v1alpha1/ConfigMap
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listv1alpha1ConfigMap: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/configmaps`;
@ -250,20 +250,20 @@ export const V1alpha1ConfigMapApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -421,28 +421,28 @@ export const V1alpha1ConfigMapApiFp = function (configuration?: Configuration) {
},
/**
* List v1alpha1/ConfigMap
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listv1alpha1ConfigMap(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfigMapList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listv1alpha1ConfigMap(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -547,10 +547,10 @@ export const V1alpha1ConfigMapApiFactory = function (
): AxiosPromise<ConfigMapList> {
return localVarFp
.listv1alpha1ConfigMap(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -624,6 +624,20 @@ export interface V1alpha1ConfigMapApiGetv1alpha1ConfigMapRequest {
* @interface V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest
*/
export interface V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -637,20 +651,6 @@ export interface V1alpha1ConfigMapApiListv1alpha1ConfigMapRequest {
* @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1ConfigMapApiListv1alpha1ConfigMap
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -742,10 +742,10 @@ export class V1alpha1ConfigMapApi extends BaseAPI {
) {
return V1alpha1ConfigMapApiFp(this.configuration)
.listv1alpha1ConfigMap(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -212,18 +212,18 @@ export const V1alpha1MenuApiAxiosParamCreator = function (
},
/**
* List v1alpha1/Menu
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listv1alpha1Menu: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/menus`;
@ -250,20 +250,20 @@ export const V1alpha1MenuApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -420,28 +420,28 @@ export const V1alpha1MenuApiFp = function (configuration?: Configuration) {
},
/**
* List v1alpha1/Menu
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listv1alpha1Menu(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listv1alpha1Menu(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -542,10 +542,10 @@ export const V1alpha1MenuApiFactory = function (
): AxiosPromise<MenuList> {
return localVarFp
.listv1alpha1Menu(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -619,6 +619,20 @@ export interface V1alpha1MenuApiGetv1alpha1MenuRequest {
* @interface V1alpha1MenuApiListv1alpha1MenuRequest
*/
export interface V1alpha1MenuApiListv1alpha1MenuRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1MenuApiListv1alpha1Menu
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1MenuApiListv1alpha1Menu
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -632,20 +646,6 @@ export interface V1alpha1MenuApiListv1alpha1MenuRequest {
* @memberof V1alpha1MenuApiListv1alpha1Menu
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1MenuApiListv1alpha1Menu
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1MenuApiListv1alpha1Menu
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -737,10 +737,10 @@ export class V1alpha1MenuApi extends BaseAPI {
) {
return V1alpha1MenuApiFp(this.configuration)
.listv1alpha1Menu(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -212,18 +212,18 @@ export const V1alpha1MenuItemApiAxiosParamCreator = function (
},
/**
* List v1alpha1/MenuItem
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listv1alpha1MenuItem: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/menuitems`;
@ -250,20 +250,20 @@ export const V1alpha1MenuItemApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -421,28 +421,28 @@ export const V1alpha1MenuItemApiFp = function (configuration?: Configuration) {
},
/**
* List v1alpha1/MenuItem
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listv1alpha1MenuItem(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MenuItemList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listv1alpha1MenuItem(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -547,10 +547,10 @@ export const V1alpha1MenuItemApiFactory = function (
): AxiosPromise<MenuItemList> {
return localVarFp
.listv1alpha1MenuItem(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -624,6 +624,20 @@ export interface V1alpha1MenuItemApiGetv1alpha1MenuItemRequest {
* @interface V1alpha1MenuItemApiListv1alpha1MenuItemRequest
*/
export interface V1alpha1MenuItemApiListv1alpha1MenuItemRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1MenuItemApiListv1alpha1MenuItem
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1MenuItemApiListv1alpha1MenuItem
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -637,20 +651,6 @@ export interface V1alpha1MenuItemApiListv1alpha1MenuItemRequest {
* @memberof V1alpha1MenuItemApiListv1alpha1MenuItem
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1MenuItemApiListv1alpha1MenuItem
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1MenuItemApiListv1alpha1MenuItem
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -742,10 +742,10 @@ export class V1alpha1MenuItemApi extends BaseAPI {
) {
return V1alpha1MenuItemApiFp(this.configuration)
.listv1alpha1MenuItem(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -212,18 +212,18 @@ export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function (
},
/**
* List v1alpha1/PersonalAccessToken
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listv1alpha1PersonalAccessToken: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/personalaccesstokens`;
@ -250,20 +250,20 @@ export const V1alpha1PersonalAccessTokenApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -435,18 +435,18 @@ export const V1alpha1PersonalAccessTokenApiFp = function (
},
/**
* List v1alpha1/PersonalAccessToken
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listv1alpha1PersonalAccessToken(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -456,10 +456,10 @@ export const V1alpha1PersonalAccessTokenApiFp = function (
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listv1alpha1PersonalAccessToken(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -570,10 +570,10 @@ export const V1alpha1PersonalAccessTokenApiFactory = function (
): AxiosPromise<PersonalAccessTokenList> {
return localVarFp
.listv1alpha1PersonalAccessToken(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -647,6 +647,20 @@ export interface V1alpha1PersonalAccessTokenApiGetv1alpha1PersonalAccessTokenReq
* @interface V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRequest
*/
export interface V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -660,20 +674,6 @@ export interface V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessTokenRe
* @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1PersonalAccessTokenApiListv1alpha1PersonalAccessToken
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -768,10 +768,10 @@ export class V1alpha1PersonalAccessTokenApi extends BaseAPI {
) {
return V1alpha1PersonalAccessTokenApiFp(this.configuration)
.listv1alpha1PersonalAccessToken(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -212,18 +212,18 @@ export const V1alpha1RoleApiAxiosParamCreator = function (
},
/**
* List v1alpha1/Role
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listv1alpha1Role: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/roles`;
@ -250,20 +250,20 @@ export const V1alpha1RoleApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -420,28 +420,28 @@ export const V1alpha1RoleApiFp = function (configuration?: Configuration) {
},
/**
* List v1alpha1/Role
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listv1alpha1Role(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoleList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listv1alpha1Role(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -542,10 +542,10 @@ export const V1alpha1RoleApiFactory = function (
): AxiosPromise<RoleList> {
return localVarFp
.listv1alpha1Role(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -619,6 +619,20 @@ export interface V1alpha1RoleApiGetv1alpha1RoleRequest {
* @interface V1alpha1RoleApiListv1alpha1RoleRequest
*/
export interface V1alpha1RoleApiListv1alpha1RoleRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1RoleApiListv1alpha1Role
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1RoleApiListv1alpha1Role
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -632,20 +646,6 @@ export interface V1alpha1RoleApiListv1alpha1RoleRequest {
* @memberof V1alpha1RoleApiListv1alpha1Role
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1RoleApiListv1alpha1Role
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1RoleApiListv1alpha1Role
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -737,10 +737,10 @@ export class V1alpha1RoleApi extends BaseAPI {
) {
return V1alpha1RoleApiFp(this.configuration)
.listv1alpha1Role(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -212,18 +212,18 @@ export const V1alpha1RoleBindingApiAxiosParamCreator = function (
},
/**
* List v1alpha1/RoleBinding
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listv1alpha1RoleBinding: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/rolebindings`;
@ -250,20 +250,20 @@ export const V1alpha1RoleBindingApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -426,18 +426,18 @@ export const V1alpha1RoleBindingApiFp = function (
},
/**
* List v1alpha1/RoleBinding
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listv1alpha1RoleBinding(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(
@ -447,10 +447,10 @@ export const V1alpha1RoleBindingApiFp = function (
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listv1alpha1RoleBinding(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -555,10 +555,10 @@ export const V1alpha1RoleBindingApiFactory = function (
): AxiosPromise<RoleBindingList> {
return localVarFp
.listv1alpha1RoleBinding(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -632,6 +632,20 @@ export interface V1alpha1RoleBindingApiGetv1alpha1RoleBindingRequest {
* @interface V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest
*/
export interface V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -645,20 +659,6 @@ export interface V1alpha1RoleBindingApiListv1alpha1RoleBindingRequest {
* @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1RoleBindingApiListv1alpha1RoleBinding
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -750,10 +750,10 @@ export class V1alpha1RoleBindingApi extends BaseAPI {
) {
return V1alpha1RoleBindingApiFp(this.configuration)
.listv1alpha1RoleBinding(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -212,18 +212,18 @@ export const V1alpha1SecretApiAxiosParamCreator = function (
},
/**
* List v1alpha1/Secret
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listv1alpha1Secret: async (
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/secrets`;
@ -250,22 +250,22 @@ export const V1alpha1SecretApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
@ -418,28 +418,28 @@ export const V1alpha1SecretApiFp = function (configuration?: Configuration) {
},
/**
* List v1alpha1/Secret
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listv1alpha1Secret(
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecretList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listv1alpha1Secret(
size,
labelSelector,
fieldSelector,
labelSelector,
page,
size,
options
);
return createRequestFunction(
@ -544,10 +544,10 @@ export const V1alpha1SecretApiFactory = function (
): AxiosPromise<SecretList> {
return localVarFp
.listv1alpha1Secret(
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
options
)
.then((request) => request(axios, basePath));
@ -622,11 +622,11 @@ export interface V1alpha1SecretApiGetv1alpha1SecretRequest {
*/
export interface V1alpha1SecretApiListv1alpha1SecretRequest {
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1SecretApiListv1alpha1Secret
*/
readonly size?: number;
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
@ -635,19 +635,19 @@ export interface V1alpha1SecretApiListv1alpha1SecretRequest {
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1SecretApiListv1alpha1Secret
*/
readonly fieldSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
* @memberof V1alpha1SecretApiListv1alpha1Secret
*/
readonly page?: number;
/**
* Size of one page. Zero indicates no limit.
* @type {number}
* @memberof V1alpha1SecretApiListv1alpha1Secret
*/
readonly size?: number;
}
/**
@ -739,10 +739,10 @@ export class V1alpha1SecretApi extends BaseAPI {
) {
return V1alpha1SecretApiFp(this.configuration)
.listv1alpha1Secret(
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -212,18 +212,18 @@ export const V1alpha1SettingApiAxiosParamCreator = function (
},
/**
* List v1alpha1/Setting
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listv1alpha1Setting: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/settings`;
@ -250,20 +250,20 @@ export const V1alpha1SettingApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -418,28 +418,28 @@ export const V1alpha1SettingApiFp = function (configuration?: Configuration) {
},
/**
* List v1alpha1/Setting
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listv1alpha1Setting(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SettingList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listv1alpha1Setting(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -544,10 +544,10 @@ export const V1alpha1SettingApiFactory = function (
): AxiosPromise<SettingList> {
return localVarFp
.listv1alpha1Setting(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -621,6 +621,20 @@ export interface V1alpha1SettingApiGetv1alpha1SettingRequest {
* @interface V1alpha1SettingApiListv1alpha1SettingRequest
*/
export interface V1alpha1SettingApiListv1alpha1SettingRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1SettingApiListv1alpha1Setting
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1SettingApiListv1alpha1Setting
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -634,20 +648,6 @@ export interface V1alpha1SettingApiListv1alpha1SettingRequest {
* @memberof V1alpha1SettingApiListv1alpha1Setting
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1SettingApiListv1alpha1Setting
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1SettingApiListv1alpha1Setting
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -739,10 +739,10 @@ export class V1alpha1SettingApi extends BaseAPI {
) {
return V1alpha1SettingApiFp(this.configuration)
.listv1alpha1Setting(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -212,18 +212,18 @@ export const V1alpha1UserApiAxiosParamCreator = function (
},
/**
* List v1alpha1/User
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listv1alpha1User: async (
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/v1alpha1/users`;
@ -250,20 +250,20 @@ export const V1alpha1UserApiAxiosParamCreator = function (
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration);
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
}
if (labelSelector) {
localVarQueryParameter["labelSelector"] = labelSelector;
}
if (fieldSelector) {
localVarQueryParameter["fieldSelector"] = fieldSelector;
if (page !== undefined) {
localVarQueryParameter["page"] = page;
}
if (size !== undefined) {
localVarQueryParameter["size"] = size;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
@ -420,28 +420,28 @@ export const V1alpha1UserApiFp = function (configuration?: Configuration) {
},
/**
* List v1alpha1/User
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {number} [page] The page number. Zero indicates no page.
* @param {number} [size] Size of one page. Zero indicates no limit.
* @param {Array<string>} [labelSelector] Label selector for filtering.
* @param {Array<string>} [fieldSelector] Field selector for filtering.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listv1alpha1User(
fieldSelector?: Array<string>,
labelSelector?: Array<string>,
page?: number,
size?: number,
labelSelector?: Array<string>,
fieldSelector?: Array<string>,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.listv1alpha1User(
fieldSelector,
labelSelector,
page,
size,
labelSelector,
fieldSelector,
options
);
return createRequestFunction(
@ -542,10 +542,10 @@ export const V1alpha1UserApiFactory = function (
): AxiosPromise<UserList> {
return localVarFp
.listv1alpha1User(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(axios, basePath));
@ -619,6 +619,20 @@ export interface V1alpha1UserApiGetv1alpha1UserRequest {
* @interface V1alpha1UserApiListv1alpha1UserRequest
*/
export interface V1alpha1UserApiListv1alpha1UserRequest {
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1UserApiListv1alpha1User
*/
readonly fieldSelector?: Array<string>;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1UserApiListv1alpha1User
*/
readonly labelSelector?: Array<string>;
/**
* The page number. Zero indicates no page.
* @type {number}
@ -632,20 +646,6 @@ export interface V1alpha1UserApiListv1alpha1UserRequest {
* @memberof V1alpha1UserApiListv1alpha1User
*/
readonly size?: number;
/**
* Label selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1UserApiListv1alpha1User
*/
readonly labelSelector?: Array<string>;
/**
* Field selector for filtering.
* @type {Array<string>}
* @memberof V1alpha1UserApiListv1alpha1User
*/
readonly fieldSelector?: Array<string>;
}
/**
@ -737,10 +737,10 @@ export class V1alpha1UserApi extends BaseAPI {
) {
return V1alpha1UserApiFp(this.configuration)
.listv1alpha1User(
requestParameters.fieldSelector,
requestParameters.labelSelector,
requestParameters.page,
requestParameters.size,
requestParameters.labelSelector,
requestParameters.fieldSelector,
options
)
.then((request) => request(this.axios, this.basePath));

View File

@ -19,7 +19,7 @@
*/
export interface AttachmentStatus {
/**
* Permalink of attachment
* Permalink of attachment. If it is in local storage, the public URL will be set. If it is in s3 storage, the Object URL will be set.
* @type {string}
* @memberof AttachmentStatus
*/

View File

@ -0,0 +1,79 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { CategoryVo } from "./category-vo";
/**
*
* @export
* @interface CategoryVoList
*/
export interface CategoryVoList {
/**
* Indicates whether current page is the first page.
* @type {boolean}
* @memberof CategoryVoList
*/
first: boolean;
/**
* Indicates whether current page has previous page.
* @type {boolean}
* @memberof CategoryVoList
*/
hasNext: boolean;
/**
* Indicates whether current page has previous page.
* @type {boolean}
* @memberof CategoryVoList
*/
hasPrevious: boolean;
/**
* A chunk of items.
* @type {Array<CategoryVo>}
* @memberof CategoryVoList
*/
items: Array<CategoryVo>;
/**
* Indicates whether current page is the last page.
* @type {boolean}
* @memberof CategoryVoList
*/
last: boolean;
/**
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
* @type {number}
* @memberof CategoryVoList
*/
page: number;
/**
* Size of each page. If not set or equal to 0, it means no pagination.
* @type {number}
* @memberof CategoryVoList
*/
size: number;
/**
* Total elements.
* @type {number}
* @memberof CategoryVoList
*/
total: number;
/**
* Indicates total pages.
* @type {number}
* @memberof CategoryVoList
*/
totalPages: number;
}

View File

@ -0,0 +1,55 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { CategorySpec } from "./category-spec";
// May contain unused imports in some cases
// @ts-ignore
import { CategoryStatus } from "./category-status";
// May contain unused imports in some cases
// @ts-ignore
import { Metadata } from "./metadata";
/**
*
* @export
* @interface CategoryVo
*/
export interface CategoryVo {
/**
*
* @type {Metadata}
* @memberof CategoryVo
*/
metadata: Metadata;
/**
*
* @type {number}
* @memberof CategoryVo
*/
postCount?: number;
/**
*
* @type {CategorySpec}
* @memberof CategoryVo
*/
spec?: CategorySpec;
/**
*
* @type {CategoryStatus}
* @memberof CategoryVo
*/
status?: CategoryStatus;
}

View File

@ -57,4 +57,4 @@ export const ConditionStatusEnum = {
} as const;
export type ConditionStatusEnum =
typeof ConditionStatusEnum[keyof typeof ConditionStatusEnum];
(typeof ConditionStatusEnum)[keyof typeof ConditionStatusEnum];

View File

@ -0,0 +1,33 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface ContentVo
*/
export interface ContentVo {
/**
*
* @type {string}
* @memberof ContentVo
*/
content?: string;
/**
*
* @type {string}
* @memberof ContentVo
*/
raw?: string;
}

View File

@ -0,0 +1,51 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface ContributorVo
*/
export interface ContributorVo {
/**
*
* @type {string}
* @memberof ContributorVo
*/
avatar?: string;
/**
*
* @type {string}
* @memberof ContributorVo
*/
bio?: string;
/**
*
* @type {string}
* @memberof ContributorVo
*/
displayName?: string;
/**
*
* @type {string}
* @memberof ContributorVo
*/
name?: string;
/**
*
* @type {string}
* @memberof ContributorVo
*/
permalink?: string;
}

View File

@ -56,4 +56,4 @@ export const ExtensionPointSpecTypeEnum = {
} as const;
export type ExtensionPointSpecTypeEnum =
typeof ExtensionPointSpecTypeEnum[keyof typeof ExtensionPointSpecTypeEnum];
(typeof ExtensionPointSpecTypeEnum)[keyof typeof ExtensionPointSpecTypeEnum];

View File

@ -13,6 +13,8 @@ export * from "./category";
export * from "./category-list";
export * from "./category-spec";
export * from "./category-status";
export * from "./category-vo";
export * from "./category-vo-list";
export * from "./change-password-request";
export * from "./comment";
export * from "./comment-email-owner";
@ -30,8 +32,10 @@ export * from "./config-map";
export * from "./config-map-list";
export * from "./config-map-ref";
export * from "./content";
export * from "./content-vo";
export * from "./content-wrapper";
export * from "./contributor";
export * from "./contributor-vo";
export * from "./counter";
export * from "./counter-list";
export * from "./counter-request";
@ -60,10 +64,14 @@ export * from "./listed-comment";
export * from "./listed-comment-list";
export * from "./listed-post";
export * from "./listed-post-list";
export * from "./listed-post-vo";
export * from "./listed-post-vo-list";
export * from "./listed-reply";
export * from "./listed-reply-list";
export * from "./listed-single-page";
export * from "./listed-single-page-list";
export * from "./listed-single-page-vo";
export * from "./listed-single-page-vo-list";
export * from "./listed-user";
export * from "./login-history";
export * from "./menu";
@ -71,9 +79,12 @@ export * from "./menu-item";
export * from "./menu-item-list";
export * from "./menu-item-spec";
export * from "./menu-item-status";
export * from "./menu-item-vo";
export * from "./menu-list";
export * from "./menu-spec";
export * from "./menu-vo";
export * from "./metadata";
export * from "./navigation-post-vo";
export * from "./owner-info";
export * from "./personal-access-token";
export * from "./personal-access-token-list";
@ -97,6 +108,7 @@ export * from "./post-list";
export * from "./post-request";
export * from "./post-spec";
export * from "./post-status";
export * from "./post-vo";
export * from "./public-key-response";
export * from "./ref";
export * from "./reply";
@ -129,15 +141,20 @@ export * from "./single-page-list";
export * from "./single-page-request";
export * from "./single-page-spec";
export * from "./single-page-status";
export * from "./single-page-vo";
export * from "./site-stats-vo";
export * from "./snap-shot-spec";
export * from "./snapshot";
export * from "./snapshot-list";
export * from "./stats";
export * from "./stats-vo";
export * from "./subject";
export * from "./tag";
export * from "./tag-list";
export * from "./tag-spec";
export * from "./tag-status";
export * from "./tag-vo";
export * from "./tag-vo-list";
export * from "./template-descriptor";
export * from "./theme";
export * from "./theme-list";

View File

@ -77,13 +77,13 @@ export interface ListedAuthProvider {
* @type {boolean}
* @memberof ListedAuthProvider
*/
supportsBinding?: boolean;
privileged?: boolean;
/**
*
* @type {boolean}
* @memberof ListedAuthProvider
*/
privileged?: boolean;
supportsBinding?: boolean;
/**
*
* @type {string}

View File

@ -0,0 +1,79 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { ListedPostVo } from "./listed-post-vo";
/**
*
* @export
* @interface ListedPostVoList
*/
export interface ListedPostVoList {
/**
* Indicates whether current page is the first page.
* @type {boolean}
* @memberof ListedPostVoList
*/
first: boolean;
/**
* Indicates whether current page has previous page.
* @type {boolean}
* @memberof ListedPostVoList
*/
hasNext: boolean;
/**
* Indicates whether current page has previous page.
* @type {boolean}
* @memberof ListedPostVoList
*/
hasPrevious: boolean;
/**
* A chunk of items.
* @type {Array<ListedPostVo>}
* @memberof ListedPostVoList
*/
items: Array<ListedPostVo>;
/**
* Indicates whether current page is the last page.
* @type {boolean}
* @memberof ListedPostVoList
*/
last: boolean;
/**
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
* @type {number}
* @memberof ListedPostVoList
*/
page: number;
/**
* Size of each page. If not set or equal to 0, it means no pagination.
* @type {number}
* @memberof ListedPostVoList
*/
size: number;
/**
* Total elements.
* @type {number}
* @memberof ListedPostVoList
*/
total: number;
/**
* Indicates total pages.
* @type {number}
* @memberof ListedPostVoList
*/
totalPages: number;
}

View File

@ -0,0 +1,91 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { CategoryVo } from "./category-vo";
// May contain unused imports in some cases
// @ts-ignore
import { ContributorVo } from "./contributor-vo";
// May contain unused imports in some cases
// @ts-ignore
import { Metadata } from "./metadata";
// May contain unused imports in some cases
// @ts-ignore
import { PostSpec } from "./post-spec";
// May contain unused imports in some cases
// @ts-ignore
import { PostStatus } from "./post-status";
// May contain unused imports in some cases
// @ts-ignore
import { StatsVo } from "./stats-vo";
// May contain unused imports in some cases
// @ts-ignore
import { TagVo } from "./tag-vo";
/**
*
* @export
* @interface ListedPostVo
*/
export interface ListedPostVo {
/**
*
* @type {Array<CategoryVo>}
* @memberof ListedPostVo
*/
categories?: Array<CategoryVo>;
/**
*
* @type {Array<ContributorVo>}
* @memberof ListedPostVo
*/
contributors?: Array<ContributorVo>;
/**
*
* @type {Metadata}
* @memberof ListedPostVo
*/
metadata: Metadata;
/**
*
* @type {ContributorVo}
* @memberof ListedPostVo
*/
owner?: ContributorVo;
/**
*
* @type {PostSpec}
* @memberof ListedPostVo
*/
spec?: PostSpec;
/**
*
* @type {StatsVo}
* @memberof ListedPostVo
*/
stats?: StatsVo;
/**
*
* @type {PostStatus}
* @memberof ListedPostVo
*/
status?: PostStatus;
/**
*
* @type {Array<TagVo>}
* @memberof ListedPostVo
*/
tags?: Array<TagVo>;
}

View File

@ -0,0 +1,79 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { ListedSinglePageVo } from "./listed-single-page-vo";
/**
*
* @export
* @interface ListedSinglePageVoList
*/
export interface ListedSinglePageVoList {
/**
* Indicates whether current page is the first page.
* @type {boolean}
* @memberof ListedSinglePageVoList
*/
first: boolean;
/**
* Indicates whether current page has previous page.
* @type {boolean}
* @memberof ListedSinglePageVoList
*/
hasNext: boolean;
/**
* Indicates whether current page has previous page.
* @type {boolean}
* @memberof ListedSinglePageVoList
*/
hasPrevious: boolean;
/**
* A chunk of items.
* @type {Array<ListedSinglePageVo>}
* @memberof ListedSinglePageVoList
*/
items: Array<ListedSinglePageVo>;
/**
* Indicates whether current page is the last page.
* @type {boolean}
* @memberof ListedSinglePageVoList
*/
last: boolean;
/**
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
* @type {number}
* @memberof ListedSinglePageVoList
*/
page: number;
/**
* Size of each page. If not set or equal to 0, it means no pagination.
* @type {number}
* @memberof ListedSinglePageVoList
*/
size: number;
/**
* Total elements.
* @type {number}
* @memberof ListedSinglePageVoList
*/
total: number;
/**
* Indicates total pages.
* @type {number}
* @memberof ListedSinglePageVoList
*/
totalPages: number;
}

View File

@ -0,0 +1,73 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { ContributorVo } from "./contributor-vo";
// May contain unused imports in some cases
// @ts-ignore
import { Metadata } from "./metadata";
// May contain unused imports in some cases
// @ts-ignore
import { SinglePageSpec } from "./single-page-spec";
// May contain unused imports in some cases
// @ts-ignore
import { SinglePageStatus } from "./single-page-status";
// May contain unused imports in some cases
// @ts-ignore
import { StatsVo } from "./stats-vo";
/**
* A chunk of items.
* @export
* @interface ListedSinglePageVo
*/
export interface ListedSinglePageVo {
/**
*
* @type {Array<ContributorVo>}
* @memberof ListedSinglePageVo
*/
contributors?: Array<ContributorVo>;
/**
*
* @type {Metadata}
* @memberof ListedSinglePageVo
*/
metadata: Metadata;
/**
*
* @type {ContributorVo}
* @memberof ListedSinglePageVo
*/
owner?: ContributorVo;
/**
*
* @type {SinglePageSpec}
* @memberof ListedSinglePageVo
*/
spec?: SinglePageSpec;
/**
*
* @type {StatsVo}
* @memberof ListedSinglePageVo
*/
stats?: StatsVo;
/**
*
* @type {SinglePageStatus}
* @memberof ListedSinglePageVo
*/
status?: SinglePageStatus;
}

View File

@ -68,4 +68,4 @@ export const MenuItemSpecTargetEnum = {
} as const;
export type MenuItemSpecTargetEnum =
typeof MenuItemSpecTargetEnum[keyof typeof MenuItemSpecTargetEnum];
(typeof MenuItemSpecTargetEnum)[keyof typeof MenuItemSpecTargetEnum];

View File

@ -0,0 +1,61 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { MenuItemSpec } from "./menu-item-spec";
// May contain unused imports in some cases
// @ts-ignore
import { MenuItemStatus } from "./menu-item-status";
// May contain unused imports in some cases
// @ts-ignore
import { Metadata } from "./metadata";
/**
*
* @export
* @interface MenuItemVo
*/
export interface MenuItemVo {
/**
*
* @type {string}
* @memberof MenuItemVo
*/
displayName?: string;
/**
*
* @type {Metadata}
* @memberof MenuItemVo
*/
metadata: Metadata;
/**
*
* @type {string}
* @memberof MenuItemVo
*/
parentName?: string;
/**
*
* @type {MenuItemSpec}
* @memberof MenuItemVo
*/
spec?: MenuItemSpec;
/**
*
* @type {MenuItemStatus}
* @memberof MenuItemVo
*/
status?: MenuItemStatus;
}

View File

@ -0,0 +1,49 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { MenuItemVo } from "./menu-item-vo";
// May contain unused imports in some cases
// @ts-ignore
import { MenuSpec } from "./menu-spec";
// May contain unused imports in some cases
// @ts-ignore
import { Metadata } from "./metadata";
/**
*
* @export
* @interface MenuVo
*/
export interface MenuVo {
/**
*
* @type {Array<MenuItemVo>}
* @memberof MenuVo
*/
menuItems?: Array<MenuItemVo>;
/**
*
* @type {Metadata}
* @memberof MenuVo
*/
metadata: Metadata;
/**
*
* @type {MenuSpec}
* @memberof MenuVo
*/
spec?: MenuSpec;
}

View File

@ -0,0 +1,43 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { PostVo } from "./post-vo";
/**
*
* @export
* @interface NavigationPostVo
*/
export interface NavigationPostVo {
/**
*
* @type {PostVo}
* @memberof NavigationPostVo
*/
current?: PostVo;
/**
*
* @type {PostVo}
* @memberof NavigationPostVo
*/
next?: PostVo;
/**
*
* @type {PostVo}
* @memberof NavigationPostVo
*/
previous?: PostVo;
}

View File

@ -76,4 +76,4 @@ export const PluginStatusPhaseEnum = {
} as const;
export type PluginStatusPhaseEnum =
typeof PluginStatusPhaseEnum[keyof typeof PluginStatusPhaseEnum];
(typeof PluginStatusPhaseEnum)[keyof typeof PluginStatusPhaseEnum];

View File

@ -145,4 +145,4 @@ export const PostSpecVisibleEnum = {
} as const;
export type PostSpecVisibleEnum =
typeof PostSpecVisibleEnum[keyof typeof PostSpecVisibleEnum];
(typeof PostSpecVisibleEnum)[keyof typeof PostSpecVisibleEnum];

View File

@ -0,0 +1,100 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { CategoryVo } from "./category-vo";
// May contain unused imports in some cases
// @ts-ignore
import { ContentVo } from "./content-vo";
// May contain unused imports in some cases
// @ts-ignore
import { ContributorVo } from "./contributor-vo";
// May contain unused imports in some cases
// @ts-ignore
import { Metadata } from "./metadata";
// May contain unused imports in some cases
// @ts-ignore
import { PostSpec } from "./post-spec";
// May contain unused imports in some cases
// @ts-ignore
import { PostStatus } from "./post-status";
// May contain unused imports in some cases
// @ts-ignore
import { StatsVo } from "./stats-vo";
// May contain unused imports in some cases
// @ts-ignore
import { TagVo } from "./tag-vo";
/**
*
* @export
* @interface PostVo
*/
export interface PostVo {
/**
*
* @type {Array<CategoryVo>}
* @memberof PostVo
*/
categories?: Array<CategoryVo>;
/**
*
* @type {ContentVo}
* @memberof PostVo
*/
content?: ContentVo;
/**
*
* @type {Array<ContributorVo>}
* @memberof PostVo
*/
contributors?: Array<ContributorVo>;
/**
*
* @type {Metadata}
* @memberof PostVo
*/
metadata: Metadata;
/**
*
* @type {ContributorVo}
* @memberof PostVo
*/
owner?: ContributorVo;
/**
*
* @type {PostSpec}
* @memberof PostVo
*/
spec?: PostSpec;
/**
*
* @type {StatsVo}
* @memberof PostVo
*/
stats?: StatsVo;
/**
*
* @type {PostStatus}
* @memberof PostVo
*/
status?: PostStatus;
/**
*
* @type {Array<TagVo>}
* @memberof PostVo
*/
tags?: Array<TagVo>;
}

View File

@ -133,4 +133,4 @@ export const SinglePageSpecVisibleEnum = {
} as const;
export type SinglePageSpecVisibleEnum =
typeof SinglePageSpecVisibleEnum[keyof typeof SinglePageSpecVisibleEnum];
(typeof SinglePageSpecVisibleEnum)[keyof typeof SinglePageSpecVisibleEnum];

View File

@ -0,0 +1,82 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { ContentVo } from "./content-vo";
// May contain unused imports in some cases
// @ts-ignore
import { ContributorVo } from "./contributor-vo";
// May contain unused imports in some cases
// @ts-ignore
import { Metadata } from "./metadata";
// May contain unused imports in some cases
// @ts-ignore
import { SinglePageSpec } from "./single-page-spec";
// May contain unused imports in some cases
// @ts-ignore
import { SinglePageStatus } from "./single-page-status";
// May contain unused imports in some cases
// @ts-ignore
import { StatsVo } from "./stats-vo";
/**
*
* @export
* @interface SinglePageVo
*/
export interface SinglePageVo {
/**
*
* @type {ContentVo}
* @memberof SinglePageVo
*/
content?: ContentVo;
/**
*
* @type {Array<ContributorVo>}
* @memberof SinglePageVo
*/
contributors?: Array<ContributorVo>;
/**
*
* @type {Metadata}
* @memberof SinglePageVo
*/
metadata: Metadata;
/**
*
* @type {ContributorVo}
* @memberof SinglePageVo
*/
owner?: ContributorVo;
/**
*
* @type {SinglePageSpec}
* @memberof SinglePageVo
*/
spec?: SinglePageSpec;
/**
*
* @type {StatsVo}
* @memberof SinglePageVo
*/
stats?: StatsVo;
/**
*
* @type {SinglePageStatus}
* @memberof SinglePageVo
*/
status?: SinglePageStatus;
}

View File

@ -0,0 +1,51 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface SiteStatsVo
*/
export interface SiteStatsVo {
/**
*
* @type {number}
* @memberof SiteStatsVo
*/
category?: number;
/**
*
* @type {number}
* @memberof SiteStatsVo
*/
comment?: number;
/**
*
* @type {number}
* @memberof SiteStatsVo
*/
post?: number;
/**
*
* @type {number}
* @memberof SiteStatsVo
*/
upvote?: number;
/**
*
* @type {number}
* @memberof SiteStatsVo
*/
visit?: number;
}

View File

@ -0,0 +1,39 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface StatsVo
*/
export interface StatsVo {
/**
*
* @type {number}
* @memberof StatsVo
*/
comment?: number;
/**
*
* @type {number}
* @memberof StatsVo
*/
upvote?: number;
/**
*
* @type {number}
* @memberof StatsVo
*/
visit?: number;
}

View File

@ -0,0 +1,79 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { TagVo } from "./tag-vo";
/**
*
* @export
* @interface TagVoList
*/
export interface TagVoList {
/**
* Indicates whether current page is the first page.
* @type {boolean}
* @memberof TagVoList
*/
first: boolean;
/**
* Indicates whether current page has previous page.
* @type {boolean}
* @memberof TagVoList
*/
hasNext: boolean;
/**
* Indicates whether current page has previous page.
* @type {boolean}
* @memberof TagVoList
*/
hasPrevious: boolean;
/**
* A chunk of items.
* @type {Array<TagVo>}
* @memberof TagVoList
*/
items: Array<TagVo>;
/**
* Indicates whether current page is the last page.
* @type {boolean}
* @memberof TagVoList
*/
last: boolean;
/**
* Page number, starts from 1. If not set or equal to 0, it means no pagination.
* @type {number}
* @memberof TagVoList
*/
page: number;
/**
* Size of each page. If not set or equal to 0, it means no pagination.
* @type {number}
* @memberof TagVoList
*/
size: number;
/**
* Total elements.
* @type {number}
* @memberof TagVoList
*/
total: number;
/**
* Indicates total pages.
* @type {number}
* @memberof TagVoList
*/
totalPages: number;
}

View File

@ -0,0 +1,55 @@
/* tslint:disable */
/* eslint-disable */
/**
* Halo Next API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import { Metadata } from "./metadata";
// May contain unused imports in some cases
// @ts-ignore
import { TagSpec } from "./tag-spec";
// May contain unused imports in some cases
// @ts-ignore
import { TagStatus } from "./tag-status";
/**
*
* @export
* @interface TagVo
*/
export interface TagVo {
/**
*
* @type {Metadata}
* @memberof TagVo
*/
metadata: Metadata;
/**
*
* @type {number}
* @memberof TagVo
*/
postCount?: number;
/**
*
* @type {TagSpec}
* @memberof TagVo
*/
spec?: TagSpec;
/**
*
* @type {TagStatus}
* @memberof TagVo
*/
status?: TagStatus;
}

View File

@ -49,4 +49,4 @@ export const ThemeStatusPhaseEnum = {
} as const;
export type ThemeStatusPhaseEnum =
typeof ThemeStatusPhaseEnum[keyof typeof ThemeStatusPhaseEnum];
(typeof ThemeStatusPhaseEnum)[keyof typeof ThemeStatusPhaseEnum];