Hierarchy

  • DatapackLookupService

Implements

  • DatapackDependencyResolver

Constructors

Properties

distinctLogger: Logger
logger: Logger = ...
lookupCache: Map<string, {
    entries: Map<string, undefined | string>;
    refreshed: number;
}> = ...

Type declaration

  • entries: Map<string, undefined | string>
  • refreshed: number
matchingKeyService: VlocityMatchingKeyService
namespaceService: VlocityNamespaceService

Methods

  • Parameters

    • sobjectType: string

    Returns {
        entries: Map<string, undefined | string>;
        refreshed: number;
    }

    • entries: Map<string, undefined | string>
    • refreshed: number
  • Parameters

    • sobjectType: string
    • key: undefined | string

    Returns undefined | string

  • Parameters

    • sobjectType: string
    • key: undefined | string
    • Optional resolver: ((key) => undefined | string | Promise<undefined | string>)
        • (key): undefined | string | Promise<undefined | string>
        • Parameters

          • key: string

          Returns undefined | string | Promise<undefined | string>

    Returns Promise<string>

  • Lookup multiple records over multiple SObjects using the specified filters

    Parameters

    • lookups: {
          filter: object;
          sobjectType: string;
      }[]

      lookup requests

    Returns Promise<(undefined | string[])[]>

    Array with all matched records or undefined when no matches found

  • Resolve the record if od a dependency in Salesforce; returns the real record ID of a decency.

    Parameters

    • dependencies: DependencyResolutionRequest[]

    Returns Promise<{
        resolution: undefined | string;
    }[]>