import { Plugin } from "../../types.mjs"; //#region src/plugin/builtin/seed/index.d.ts /** Unique identifier for the seed generator plugin. */ export declare const SeedGeneratorID = "@tailor-platform/seed"; type DisableIdpUserSyncDirections = { /** * Skip emitting the foreign key from `.` to * `_User.name`. Defaults to `false` (FK emitted). * * Set to `true` to seed pre-registration states such as * invited-but-not-registered users. */ userToIdp?: boolean; /** * Skip emitting the foreign key from `_User.name` to * `.`. Defaults to `false` (FK emitted). * * Set to `true` to seed `_User` rows that do not yet have a corresponding * userProfile row. */ idpToUser?: boolean; }; export type SeedPluginOptions = { distPath: string; machineUserName?: string; /** * Disable individual `_User <-> userProfile` foreign keys emitted into * the generated seed schema. Both directions are emitted by default. * * Set a direction to `true` to relax it — for example to seed invited * users that do not yet have an IdP credential. */ disableIdpUserSync?: DisableIdpUserSyncDirections; }; declare module "@tailor-platform/sdk/plugin" { interface PluginConfigRegistry { "@tailor-platform/seed": SeedPluginOptions; } } /** * Plugin that generates seed data and schema files consumed by the * `tailor seed` commands (@tailor-platform/sdk-plugin-seed). * @param options - Plugin options * @param options.distPath - Output directory path for generated seed files * @param options.machineUserName - Default machine user name for authentication * @param options.disableIdpUserSync - Skip emitting individual `_User <-> userProfile` foreign keys. Both directions are emitted by default; set a direction to `true` to relax that side. * @returns Plugin instance with onTailorDBReady hook */ export declare function seedPlugin(options: SeedPluginOptions): Plugin; //#endregion