@paroicms/server
Version:
The ParoiCMS server
18 lines (17 loc) • 776 B
TypeScript
import type { ReadTermFieldValue, ScLabelingFieldType } from "@paroicms/public-anywhere-lib";
import type { Knex } from "knex";
import type { SiteContext } from "../../site-context/site-context.types.js";
export interface LabelingSeed {
termId: string;
taxonomyTypeName: string;
}
export declare function loadFieldLabelingValues(siteContext: Pick<SiteContext, "cn">, { nodeId, fieldTypes, publishedOnly, }: {
nodeId: string;
fieldTypes: ScLabelingFieldType[];
publishedOnly: boolean;
}): Promise<Map<string, ReadTermFieldValue[]> | undefined>;
export declare function saveFieldLabeling(tx: Knex.Transaction, { fieldType, nodeId, termNodeIds, }: {
fieldType: ScLabelingFieldType;
nodeId: string;
termNodeIds: string[] | null;
}): Promise<void>;