/** * Dispatch glue for what the bridge cannot do on a data entity, and for the table-field * properties written to the XML (AllowEdit / IgnoreEDTRelation). Lives here because modifyD365File.ts is held to a line budget * (tests/utils/layering.test.ts); the writers are in directXmlWriters.ts. */ import { z } from 'zod'; import { bridgeModifyField } from '../../bridge/index.js'; type Args = Record; export type OpResult = { success: boolean; message: string; viaXmlFallback?: boolean; } | null; /** add-data-source on a data-entity: an embedded, joined query datasource. */ export declare function entityAddDataSource(filePath: string, args: Args): Promise; /** add-field on a data-entity: the refusal text when the binding is half-given, else null. */ export declare function entityAddFieldBindingError(args: Args): string | null; /** add-field on a data-entity: one mapped field bound to an entity datasource. */ export declare function entityAddField(filePath: string, args: Args): Promise; /** modify-field properties written to the XML (AllowEdit / IgnoreEDTRelation), as XML property → value. */ export declare function xmlOnlyFieldProps(args: Args): Record; /** Apply those properties; joins the bridge's message when it also changed something. */ export declare function applyXmlOnlyFieldProps(filePath: string, fieldName: string, props: Record, bridgeResult: OpResult, bridgeChangedSomething: boolean): Promise; /** * modify-field: the other field params go through the bridge; AllowEdit / IgnoreEDTRelation are * written to the XML afterwards (the bridge reads allowEdit but not IgnoreEDTRelation, and the * XML path also works without it). `bridge` is the context's bridge client. */ export declare function modifyFieldOp(bridge: Parameters[0], objectName: string, filePath: string, args: Args): Promise; /** Zod members for the parameters these operations add (spread into the modify schema). */ export declare const ENTITY_AND_FIELD_ZOD_PARAMS: { fieldAllowEdit: z.ZodOptional; fieldIgnoreEdtRelation: z.ZodOptional; joinField: z.ZodOptional; relatedField: z.ZodOptional; dataSourceReadOnly: z.ZodOptional; }; export {}; //# sourceMappingURL=dataEntityOps.d.ts.map