vlocode-project - v2.4.3
    Preparing search index...

    Class DatapackInfoService

    Index

    Constructors

    Properties

    datapackConfiguration: DatapackConfigAccess
    localDefinitions: DatapackTypeDefinition[] = ...

    Datapack type definitions registered from a local source (e.g. derived from export definitions); take precedence over the datapack configurations in the org and the built-in definitions.

    logger: Logger
    salesforce: SalesforceService

    Methods

    • Gets the datapack configuration for the specified datapack type, returns undefined if no configuration is found for the type.

      Parameters

      • datapackType: string

        Datapack type

      Returns Promise<DatapackConfiguration | undefined>

      Datapack configuration record or undefined if no configuration is found for the type

    • Gets all datapack configurations defined in the org, returns an empty array if no datapack configurations are found.

      Returns Promise<DatapackConfiguration[]>

      Array of datapack configuration records, empty array if no configurations are found

    • Gets the datapack name for the specified SObject type, namespaces prefixes are replaced with %vlocity_namespace% when applicable

      Parameters

      • sobjectType: string

        Salesforce object type

      Returns Promise<string | undefined>

    • Register datapack type definitions from a local source such as loaded export definitions. Registered definitions take precedence over the datapack configurations in the org and the built-in definitions, so datapacks resolve to their actual datapack type (e.g. ProductRule) instead of the generic SObject type when no org configuration exists for the object.

      Parameters

      • definitions: { datapackType: string; sobjectType: string; typeLabel?: string }[]

      Returns void