Skip to content

Commit

Permalink
fix: taxonomy and terms fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithad0703 committed Oct 9, 2023
1 parent e383a94 commit ee4ffed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions types/stack/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ export interface Stack extends SystemFields {
role(): Roles
role(uid: string): Role

taxonomy(): Taxonomy
taxonomies(uid: string): Taxonomies
taxonomy(): Taxonomies
taxonomy(uid: string): Taxonomy
}
6 changes: 3 additions & 3 deletions types/stack/taxonomy/terms/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { AnyProperty, SystemFields } from "../../../utility/fields";
import { Creatable, Queryable, SystemFunction } from "../../../utility/operations";

export interface Term extends SystemFields, SystemFunction<Term> {
ancestors(data: {term_uid: TermData, include_children_count: boolean, include_referenced_entries_count: boolean, include_count: boolean, skip: number, limit: number}): Promise<Response>
descendants(data: {term_uid: TermData, include_children_count: boolean, include_referenced_entries_count: boolean, include_count: boolean, skip: number, limit: number}): Promise<Response>
move(data: {term_uid: TermData, force: boolean}): Promise<Response>
ancestors(data: { include_children_count?: boolean, include_referenced_entries_count?: boolean, include_count?: boolean, skip?: number, limit?: number}): Promise<Response>
descendants(data: { include_children_count?: boolean, include_referenced_entries_count?: boolean, include_count?: boolean, skip?: number, limit?: number}): Promise<Response>
move(data: { term: { parent_uid?: string, order: number } }, force?: boolean): Promise<Response>
}

export interface Term extends Creatable<Term, {term: TermData}> {
Expand Down

0 comments on commit ee4ffed

Please sign in to comment.