@rnaga/wp-node
Version:
👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**
47 lines • 2.44 kB
TypeScript
import { Alias } from "./alias";
import { QueryBuilder } from "./query-builder";
import { QueryBuilders } from "./query-builders";
import type * as types from "../types";
export declare class TermsQuery extends QueryBuilder<TermsQuery> {
alias: Alias<"cte_terms" | "c" | "c2">;
protected builders: QueryBuilders;
builder: types.QueryBuilder;
readonly table = "terms";
constructor(alias: Alias<"cte_terms" | "c" | "c2">, builders: QueryBuilders, builder: types.QueryBuilder);
get from(): this;
get selectTerms(): this;
get selectTermTaxonomy(): this;
get selectTermRelationships(): this;
exists(column: "term_id" | "name" | "slug", value: string | number, taxonomy?: string): this;
maxGroup(): import("knex").Knex.QueryBuilder<{}, {
max: any;
} | {
_base: unknown;
_hasSelection: boolean;
_keys: string;
_aliases: {};
_single: boolean;
_intersectProps: {
max: any;
};
_unionProps: unknown;
}>;
get(id: number): this;
joinTermRelationships(left: string): this;
joinTerms(): this;
joinTermTaxonomy(): this;
withMeta(type?: "inner" | "right"): this;
withoutObjectIds(ids: number[]): this;
withObjectIds(ids: number[], exclude?: boolean): this;
withChildren(column: "name" | "slug" | "term_id" | "taxonomy" | "parent" | "term_taxonomy_id", obj: Array<string | number>): this;
private getColumn;
select(columns: "*" | Array<Exclude<types.Columns<"terms">, "term_id"> | Exclude<types.Columns<"term_taxonomy">, "term_id"> | "object_id" | "depth" | "term_id" | "term_order">): this;
groupBy(column: Exclude<types.Columns<"terms">, "term_id"> | Exclude<types.Columns<"term_taxonomy">, "term_id"> | "object_id" | "depth" | "term_id"): this;
whereIn(column: Exclude<types.Columns<"term_taxonomy">, "parent"> | types.Columns<"terms">, obj: Array<string | number>): this;
where(column: types.Columns<"terms"> | types.Columns<"term_taxonomy"> | "terms.term_id" | "terms.slug" | "terms.name" | "object_id" | "term_order" | "terms_relationships.term_taxonomy_id", v: string | number | Array<string | number>, op?: string): this;
whereLike(column: "name" | "description" | "slug", search: string, options?: {
not: boolean;
}): this;
whereNotLike(column: "name" | "description" | "slug", search: string): this;
}
//# sourceMappingURL=terms.query.d.ts.map