import { SalesforceSchemaService, DescribeSObjectResult } from "@vlocode/salesforce"; import { DatapackExportDefinition } from "./exportDefinitions"; import { DatapackExportDefinitionStore } from "./exportDefinitionStore"; export interface ExportDefinitionError { message: string; type: 'INVALID_FIELD' | 'INVALID_OBJECT' | 'INVALID_CONFIGURATION'; sobjectType: string; field?: string; definition: DatapackExportDefinition; } /** * Validates the export definitions for datapacks. */ export declare class DatapackExportDefinitionValidator { private readonly schema; /** * Creates an instance of DatapackExportDefinitionValidator. * @param schema - The Salesforce schema service. */ constructor(schema: SalesforceSchemaService); /** * Validates all the export definitions. * @param definitions - The datapack export definitions. * @returns An array of export definition errors. */ validateAll(definitions: DatapackExportDefinitionStore): Promise; /** * Validates a single export definition. * @param definition - The datapack export definition. * @returns An array of export definition errors. */ validate(definition: DatapackExportDefinition): Promise; /** * Gets the invalid fields from the describe result. * @param describe - The describe result of the sObject. * @param fields - The list of field names to validate. * @returns An array of invalid field names. */ getInvalidFields(describe: DescribeSObjectResult, fields: string[]): string[]; /** * Finds a field in the describe result. * @param describe - The describe result of the sObject. * @param field - The name of the field to find. * @returns The field if found, otherwise undefined. */ findField(describe: DescribeSObjectResult, field: string): import("@vlocode/salesforce").Field | undefined; } //# sourceMappingURL=definitionValidator.d.ts.map