import { SalesforceService, SalesforcePackage } from '@vlocode/salesforce'; import { Logger } from '@vlocode/core'; import { VlocityNamespaceService } from '@vlocode/vlocity'; import { FlexCardDefinition, FlexCardDefinitionAccess } from './flexCardDefinition'; interface CompiledResource { name: string; source: string; } export interface FlexCardCompileOptions { lwcName?: string; apiVersion?: string; useStandardRuntime?: boolean; } /** * Compiler that transforms activated OmniScripts into LWC components that can easily be deployed or written to the disk. */ export declare class FlexCardLwcCompiler { private readonly salesforceService; private readonly cardAccess; private readonly namespaceService; private readonly logger; constructor(salesforceService: SalesforceService, cardAccess: FlexCardDefinitionAccess, namespaceService: VlocityNamespaceService, logger: Logger); private initializeLwcGenerator; /** * Compiles an OmniScript into LWC components * @param scriptDefinition Definition of the OmniScript to compile * @param options Options to control the compilation * @returns */ compile(card: FlexCardDefinition, options?: FlexCardCompileOptions): Promise<{ name: string; resources: Array; }>; private getCardMeta; /** * Compile an OmniScript into a deployable Salesforce Tooling record * @param scriptDefinition Definition of the OmniScript to compile * @param options Options to control the compilation * @returns */ compileToToolingRecord(card: FlexCardDefinition, options?: FlexCardCompileOptions): Promise<{ FullName: string; Metadata: { apiVersion: any; lwcResources: { lwcResource: { filePath: string; source: string; }[]; }; capabilities: { capability: never[]; }; isExposed: any; description: any; masterLabel: string; runtimeNamespace: any; targets: any; targetConfigs: string | null; }; }>; /** * Compile and package an OmniScript into a deployable Metadata package * @param scriptDefinition Definition of the OmniScript to compile * @param options Options to control the compilation and bundling * @returns */ compileToPackage(card: FlexCardDefinition, options?: FlexCardCompileOptions): Promise; /** * Generated the LWC component name from the OmniScript definition * @param scriptDefinition Definition of the OmniScript for which to generate the name */ getLwcName(card: FlexCardDefinition): any; private getDeployedLwcBundles; } export {}; //# sourceMappingURL=flexCardLwcCompiler.d.ts.map