Interface DatapackTypeDefinition

Interface defining the query properties for a datapack type

Hierarchy

  • DatapackTypeDefinition

Properties

datapackType: string

Name of the datapack type

description?: string | ((record) => string)

Description of a single datapack for the UI. Single line format.

Type declaration

    • (record): string
    • Parameters

      • record: any

      Returns string

displayName?: string | ((record) => string)

Function to format the name of the datapack for display in the UI

Type declaration

    • (record): string
    • Parameters

      • record: any

      Returns string

grouping?: {
    displayName: string | ((record) => string);
    fields: string[];
}

Defines optional grouping logic for the datapack type.

Type declaration

  • displayName: string | ((record) => string)
  • fields: string[]
matchingKey?: {
    fields: string[];
    returnField?: string;
}

Allows changing the default Matching Key for the datapack type.

Type declaration

  • fields: string[]
  • Optional returnField?: string
salesforceUrl?: Record<string, ((record) => string)> | ((record) => string)

Allows overwriting the default Salesforce URL for the datapack type.

Type declaration

    • (record): string
    • Parameters

      • record: any

      Returns string

Defines the source query how to retrieve the datapack records from Salesforce.

typeLabel: string