Compiler that transforms activated OmniScripts into LWC components that can easily be deployed or written to the disk.

Hierarchy

  • OmniScriptLwcCompiler

Constructors

Properties

compiler: OmniCompiler
compilerApiVersion: string
lwcCompilerResource: "OmniscriptLwcCompiler" = 'OmniscriptLwcCompiler'
namespaceService: VlocityNamespaceService
salesforceService: SalesforceService

Methods

  • Compile an OmniScript into a deployable Salesforce Tooling record

    Parameters

    • scriptDefinition: OmniScriptDefinition

      Definition of the OmniScript to compile

    • Optional options: {
          lwcName?: string;
      }

      Options to control the compilation

      • Optional lwcName?: string

    Returns Promise<{
        FullName: string;
        Metadata: {
            apiVersion: any;
            capabilities: {
                capability: never[];
            };
            description: any;
            isExposed: any;
            lwcResources: {
                lwcResource: {
                    filePath: string;
                    source: string;
                }[];
            };
            masterLabel: any;
            runtimeNamespace: any;
            targetConfigs: string;
            targets: any;
        };
    }>