@paroicms/server
Version:
The ParoiCMS server
17 lines (16 loc) • 729 B
TypeScript
import { type ScSiteSchema } from "@paroicms/public-anywhere-lib";
import type { Knex } from "knex";
import type { NodeRow } from "../row-types.js";
export declare function createNode(siteSchema: ScSiteSchema, cn: Knex | Knex.Transaction, { parentId, typeName, relativeId, }: {
parentId?: string;
typeName: string;
relativeId?: string;
}): Promise<NodeRow>;
export declare function findAvailableRelativeId(siteSchema: ScSiteSchema, cn: Knex | Knex.Transaction, { parentId, typeName, }: {
parentId?: string;
typeName: string;
}): Promise<string>;
export declare function isTypeNameChildOf(siteSchema: ScSiteSchema, { parentTypeName, typeName }: {
parentTypeName: string;
typeName: string;
}): boolean;