From ee4ffed1e57bb484d6a52685175ec50ddb600a11 Mon Sep 17 00:00:00 2001 From: harshithad0703 Date: Mon, 9 Oct 2023 19:43:27 +0530 Subject: [PATCH] fix: taxonomy and terms fixes --- types/stack/index.d.ts | 4 ++-- types/stack/taxonomy/terms/index.d.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/types/stack/index.d.ts b/types/stack/index.d.ts index adf0d85d..a1363af3 100644 --- a/types/stack/index.d.ts +++ b/types/stack/index.d.ts @@ -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 } diff --git a/types/stack/taxonomy/terms/index.d.ts b/types/stack/taxonomy/terms/index.d.ts index c96e1de7..f61a860f 100644 --- a/types/stack/taxonomy/terms/index.d.ts +++ b/types/stack/taxonomy/terms/index.d.ts @@ -2,9 +2,9 @@ import { AnyProperty, SystemFields } from "../../../utility/fields"; import { Creatable, Queryable, SystemFunction } from "../../../utility/operations"; export interface Term extends SystemFields, SystemFunction { - ancestors(data: {term_uid: TermData, include_children_count: boolean, include_referenced_entries_count: boolean, include_count: boolean, skip: number, limit: number}): Promise - descendants(data: {term_uid: TermData, include_children_count: boolean, include_referenced_entries_count: boolean, include_count: boolean, skip: number, limit: number}): Promise - move(data: {term_uid: TermData, force: boolean}): Promise + ancestors(data: { include_children_count?: boolean, include_referenced_entries_count?: boolean, include_count?: boolean, skip?: number, limit?: number}): Promise + descendants(data: { include_children_count?: boolean, include_referenced_entries_count?: boolean, include_count?: boolean, skip?: number, limit?: number}): Promise + move(data: { term: { parent_uid?: string, order: number } }, force?: boolean): Promise } export interface Term extends Creatable {