/* * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE.txt file */ /** * The `lightning/analyticsWaveApi` module includes wire adapters and methods to work with CRM Analytics APIs. * @see {@link https://developer.salesforce.com/docs/component-library/bundle/lightning-analytics-wave-api/documentation | Lightning Analytics Wave API Documentation} */ declare module "lightning/analyticsWaveApi" { import { WireAdapterConstructor } from "lwc"; import { FetchResponse } from "@luvio/engine"; /** * Error body for the wire adapter error response. */ export interface ErrorBody { enhancedErrorType?: string; message?: string; output?: { errors: Array<{ message?: string; }>; }; } /** * Wire adapter response. * @template Data - The response data type. */ export interface Value { error?: FetchResponse; data?: Data; } /** * The general wire adapter. * @template Config - The request configuration. * @template Data - The response data type. */ export type LdsWireAdapter< Config extends object, Data, > = WireAdapterConstructor>; /** * Query metadata contains query Id and query sequence Id used for performance tracking and monitoring purposes. */ export interface SaqlQueryMetadataInputRepresentation { [key: string]: unknown; } /** * Analtyics query specification. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_query.htm#SaqlQueryInputRepresentation | SaqlQueryInputRepresentation Documentation} */ export interface SaqlQueryInputRepresentation { metadata?: SaqlQueryMetadataInputRepresentation; /** The query name */ name?: string; /** The query */ query: string; /** The language in which the query is written: Saql, Sql. */ queryLanguage?: string; /** The timezone requested. */ timezone?: string; } /** * Query configuration for the executeQuery wire adapter. */ export interface ExecuteQueryConfig { query: SaqlQueryInputRepresentation; } /** * Record and metadata results of a query execution. */ export interface SaqlQueryResultsRepresentation { [key: string]: unknown; metadata?: Array; records: Array; } /** * SAQL query result representation for the executeQuery wire adapter. */ export interface SaqlQueryResultRepresentation { [key: string]: unknown; action?: string; query: string; responseId?: string; responseTime?: number; results: SaqlQueryResultsRepresentation; } /** * Wire adapter for executing a query. * @see {@link https://developer.salesforce.com/docs/platform/lwc/guide/reference-analytics-execute-query.html | executeQuery Documentation} */ export const executeQuery: LdsWireAdapter< ExecuteQueryConfig, SaqlQueryResultRepresentation >; /** * Configuration for the getActions wire adapter. */ export interface GetActionsConfig { entityId: string; } /** * Action representation for the getActions wire adapter. */ export interface ActionRepresentation { apiName: string; iconUrl?: string; label: string; primaryColor?: string; subType?: string; } /** * Action collection representation for the getActions wire adapter. */ export interface ActionCollectionRepresentation { actions: Array; } /** * A type representing a wire adapter for getting actions. * @see {@link https://developer.salesforce.com/docs/platform/lwc/guide/reference-wire-adapters-get-actions.html | getActions Documentation} */ export const getActions: LdsWireAdapter< GetActionsConfig, ActionCollectionRepresentation >; /** * Configuration for the getAnalyticsLimist wire adapter. */ export interface GetAnalyticsLimitsConfig { licenseType?: string; types?: Array; } /** * The analytics license type and other properties. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#LicenseAttributesRepresentation | LicenseAttributesRepresentation Documentation} */ export interface LicenseAttributesRepresentation { /** The associated analytics license type */ type: string; } /** * Limit representation for the getAnalyticsLimits wire adapter. */ export interface WaveAnalyticsLimitRepresentation { current: number; interval: string; licenseAttributes?: LicenseAttributesRepresentation; max: number; threshold?: number; type: string; } /** * A collection of analytics limits. */ export interface WaveAnalyticsLimitCollectionRepresentation { limits: Array; } /** * Wire adapter for getting analytics limits. * @see {@link https://developer.salesforce.com/docs/platform/lwc/guide/reference-wire-adapters-get-analytics-limits.html | getAnalyticsLimits Documentation} */ export const getAnalyticsLimits: LdsWireAdapter< GetAnalyticsLimitsConfig, WaveAnalyticsLimitCollectionRepresentation >; /** * Base CRM Analytics Asset input Representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#BaseAssetInputRepresentation | BaseAssetInputRepresentation Documentation} */ export interface BaseAssetInputRepresentation { description?: string; label?: string; name?: string; } /** * CRM Analytics Data Connector input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_dataconnectors.htm#DataConnectorInputRepresentation | DataConnectorInputRepresentation Documentation} */ export interface DataConnectorInputRepresentation extends BaseAssetInputRepresentation { /** Connection properties for the connector */ connectionProperties?: Array; /** Third party driver used for connection */ connectorHandler?: string; /** The type of the Data Connector. */ connectorType?: string; /** Folder for the Live connector */ folder?: { [key: string]: string; }; /** AssetReference containing ID or API name of target connector associated with the current source connector */ targetConnector?: { [key: string]: string; }; } /** * Permissions of the user on an asset. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#PermissionsRepresentation | PermissionsRepresentation Documentation} */ export interface PermissionsRepresentation { /** The value which indicates whether the user can create an asset */ create?: boolean; /** The value which indicates whether the user can manage access control on an asset */ manage?: boolean; /** The value which indicates whether the user can modify an asset */ modify?: boolean; /** The value which indicates whether the user can view an asset. */ view?: boolean; } /** * Base CRM Analytics asset representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#BaseWaveAssetRepresentation | BaseWaveAssetRepresentation Documentation} */ export interface BaseWaveAssetRepresentation { /** Sharing URL for the asset. */ assetSharingUrl?: string | null; /** The user that created the asset. */ createdBy?: WaveUserRepresentation; /** Time the asset was created. */ createdDate?: string; /** Short description of the asset. */ description?: string; /** The 18 character asset ID. */ id: string; /** The label of the asset. */ label?: string; /** Last time the asset was accessed. */ lastAccessedDate?: string | null; /** The user that last updated the asset. */ lastModifiedBy?: WaveUserRepresentation | null; /** Last time the asset was modified. */ lastModifiedDate?: string | null; /** The name of the asset. */ name?: string; /** The namespace of the Asset. */ namespace?: string; /** Represents permissions for the present user. */ permissions?: PermissionsRepresentation | null; /** The asset type. */ type: string; /** URL to get the definition of the asset. */ url: string; } /** * A Connection Property Name and Value. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_dataconnectors.htm#ConnectionPropertyValueRepresentation | ConnectionPropertyValueRepresentation Documentation} */ export interface ConnectionPropertyValueRepresentation { name: string; value: string | number | boolean; } /** * Base asset reference representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#AssetReferenceRepresentation | AssetReferenceRepresentation Documentation} */ export interface BaseAssetReferenceRepresentation { /** The 18 character ID of the asset. */ id: string; /** The asset label. */ label?: string; /** The asset developer name. */ name?: string; /** The namespace that qualifies the asset name */ namespace?: string; /** The asset URL. */ url?: string; } /** * Asset reference representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#AssetReferenceRepresentation | AssetReferenceRepresentation Documentation} */ export type AssetReferenceRepresentation = BaseAssetReferenceRepresentation; /** * Information about a time zone. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#TimeZoneRepresentation | TimeZoneRepresentation Documentation} */ export interface TimeZoneRepresentation { /** The signed offset, in hours, from GMT. */ gmtOffset: number; /** The display name of this time zone. */ name: string; /** The zone ID of this time zone. */ zoneId: string; } /** * Time at which something should happen. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#TimeRepresentation | TimeRepresentation Documentation} */ export interface TimeRepresentation { /** Hour at which this schedule is run (0-23). */ hour: number; /** Minute at which this schedule is run (0-59). */ minute: number; /** Time zone of the hour at which the schedule is run. */ timeZone: TimeZoneRepresentation; } /** * Schedule on which to execute some type of job. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_schedule.htm#ScheduleRepresentation | ScheduleRepresentation Documentation} */ export interface ScheduleRepresentation { /** The 18 character ID of the asset. */ assetId: string; frequency: string; /** Next scheduled time (in UTC) for this schedule. */ nextScheduledDate?: string; /** Email notification level of dataflow associated with this schedule. */ notificationLevel?: string; /** Hour and timezone in which this schedule is run. */ time?: TimeRepresentation; } /** * A schedule which can run multiple times a day. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#HourlyScheduleRepresentation | HourlyScheduleRepresentation Documentation} */ export interface HourlyScheduleRepresentation extends ScheduleRepresentation { frequency: "hourly" | "Hourly"; /** Days of the week on which the schedule will run. */ daysOfWeek: Array; /** Hours in between each queueing of task. */ hourlyInterval: number; /** Hour at which schedule stops queueing. */ lastHour?: number; } /** * A schedule which runs once a month on specific (numerical) days of the month or on the 'last' day of the month. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#MonthlySpecificScheduleRepresentation | MonthlySpecificScheduleRepresentation Documentation} */ export interface MonthlySpecificScheduleRepresentation extends ScheduleRepresentation { frequency: "monthly" | "Monthly"; /** Days of the month on which the schedule will run (-1, 1-31). Note that months lacking specific days will skip the job. Can specify a single value of -1 to indicate the last day of the month (-1 cannot be used with additional days). */ daysOfMonth: Array; } /** * A schedule which can run multiple times an hour. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#MinutelyScheduleRepresentation | MinutelyScheduleRepresentation Documentation} */ export interface MinutelyScheduleRepresentation extends ScheduleRepresentation { frequency: "minutely" | "Minutely"; /** Days of the week on which the schedule will run. */ daysOfWeek: Array; /** Hour at which schedule stops queueing. */ lastHour?: number; /** Minutes in between each queueing of task. */ minutelyInterval: number; } /** * A schedule triggered by an event, e.g., the completion of a data sync job. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#EventDrivenScheduleRepresentation | EventDrivenScheduleRepresentation Documentation} */ export interface EventDrivenScheduleRepresentation extends ScheduleRepresentation { frequency: "eventdriven" | "EventDriven"; } /** * Weekly schedule on which to execute some type of job. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#WeeklyScheduleRepresentation | WeeklyScheduleRepresentation Documentation} */ export interface WeeklyScheduleRepresentation extends ScheduleRepresentation { frequency: "weekly" | "Weekly"; /** Days of the week on which the schedule will run. */ daysOfWeek: Array; } /** * Schedule which runs monthly on a relative day within the month. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#MonthlyRelativeScheduleRepresentation | MonthlyRelativeScheduleRepresentation Documentation} */ export interface MonthlyRelativeScheduleRepresentation extends ScheduleRepresentation { frequency: "monthlyrelative" | "MonthlyRelative"; /** Day within a week. */ dayInWeek: string; /** Week within a month. */ weekInMonth: string; } /** * Daily schedule on which to execute some type of job. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#DailyScheduleRepresentation | DailyScheduleRepresentation Documentation} */ export interface DailyScheduleRepresentation extends ScheduleRepresentation { frequency: "daily" | "Daily"; } /** * Represents an empty schedule on an asset. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#EmptyScheduleRepresentation | EmptyScheduleRepresentation Documentation} */ export interface EmptyScheduleRepresentation extends ScheduleRepresentation { frequency: "none" | "None"; } /** * A Data Connector represents a connection. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_dataconnectors.htm#DataConnectorRepresentation | DataConnectorRepresentation Documentation} */ export interface DataConnectorRepresentation extends BaseWaveAssetRepresentation { connectionProperties: Array; connectorHandler?: string; connectorType: string; folder?: AssetReferenceRepresentation; ingestionSchedule: | HourlyScheduleRepresentation | MonthlySpecificScheduleRepresentation | MinutelyScheduleRepresentation | EventDrivenScheduleRepresentation | WeeklyScheduleRepresentation | MonthlyRelativeScheduleRepresentation | DailyScheduleRepresentation | EmptyScheduleRepresentation; targetConnector?: AssetReferenceRepresentation; type: "dataconnector"; } /** * Creates a CRM Analytics connector. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_create_data_connector | createDataConnector Documentation} * @param dataConnector.connectionProperties Connection properties for the connector. * @param dataConnector.connectorHandler Third party driver used for connection. * @param dataConnector.connectorType The type of the Data Connector. * @param dataConnector.folder Folder for the Live connector. * @param dataConnector.targetConnector AssetReference containing ID or API name of target connector associated with the current source connector. * @returns A promise that will resolve to the data connector response. */ export const createDataConnector: ({ dataConnector, }: { dataConnector: DataConnectorInputRepresentation; }) => Promise; /** * DataflowJob input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_dataflowjobs_id.htm#DataflowJobInputRepresentation | DataflowJobInputRepresentation Documentation} */ export interface DataflowJobInputRepresentation { /** Dataflow Job command */ command: string; /** Dataflow ID */ dataflowId?: string; } /** * A CRM Analytics dataflow node. */ export interface AbstractDataflowNodeRepresentation { /** Node action */ action: string; /** Node sources */ sources: Array; } /** * A CRM Analytics dataflow definition. */ export interface DataflowDefinitionRepresentation { /** node definitions */ nodes: { [key: string]: AbstractDataflowNodeRepresentation; }; } /** * A CRM Analytics dataflow version. */ export interface DataflowVersionRepresentation { /** The user that created the asset. */ createdBy: WaveUserRepresentation; /** Time the asset was created. */ createdDate: string; /** Dataflow definition */ definition: DataflowDefinitionRepresentation; /** The 18 character asset ID. */ id: string; } /** * CRM Analytics dataflow asset representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_dataflows_id.htm#DataflowRepresentation | DataflowRepresentation Documentation} */ export interface DataflowRepresentation extends BaseWaveAssetRepresentation { /** Current version of dataflow. */ current?: DataflowVersionRepresentation | null; /** The representation of the dataflow nodes */ definition: { [key: string]: string; }; /** Email notification level of dataflow. */ emailNotificationLevel?: string | null; /** The URL for the dataflow histories associated with the dataflow. */ historiesUrl?: string | null; /** Next scheduled run of dataflow. */ nextScheduledDate?: string | null; /** Schedule attributes of dataflow. */ scheduleAttributes?: string | null; type: "dataflow"; } /** * A collection of Dataflows. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_dataflows.htm#DataflowCollectionRepresentation | DataflowCollectionRepresentation Documentation} */ export interface DataflowCollectionRepresentation { dataflows: Array; } /** * CRM Analytics dataflow job representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_dataflowjobs_id.htm#DataflowJobRepresentation | DataflowJobRepresentation Documentation} */ export interface DataflowJobRepresentation extends BaseWaveAssetRepresentation { /** The runtime in seconds of a dataflow job */ duration?: number; /** The start date of a job's execution. */ executedDate?: string | null; /** The type of a job */ jobType: string; /** The analytics license type and other properties */ licenseAttributes?: LicenseAttributesRepresentation | null; /** The error or informational message of a dataflow job */ message?: string | null; /** The URL of job nodes */ nodesUrl: string; /** The progress of a job */ progress: number; /** The source of a job */ source?: AssetReferenceRepresentation | null; /** The start date of a dataflow job */ startDate?: string; /** The runtime status of a dataflow job */ status: string; /** The dataflows to sync when the job is triggered. */ syncDataflows: DataflowCollectionRepresentation; type: "dataflowjob"; } /** * Creates a CRM Analytics dataflow job, which is the equivalent of clicking Run Now for a data prep recipe, a data sync, * or a dataflow in the CRM Analytics Data Manager UI. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_create_dataflow_job | createDataflowJob Documentation} * @param dataflowJob.dataflowId The dataflow, data prep recipe, or data sync ID for the job. * @param dataflowJob.command The job command to execute. Must be `Start` to create a dataflow job. * @returns A promise that will resolve to the dataflow job response. */ export const createDataflowJob: ({ dataflowJob, }: { dataflowJob: DataflowJobInputRepresentation; }) => Promise; /** * Base class for Asset reference input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#AssetReferenceInputRepresentation | AssetReferenceInputRepresentation Documentation} */ export interface BaseAssetReferenceInputRepresentation { /** ID of the asset */ id?: string; /** Developer name of the asset */ name?: string; /** The namespace that qualifies the asset name */ namespace?: string; } /** * Simple, reference input representation for wave assets. */ export type AssetReferenceInputRepresentation = BaseAssetReferenceInputRepresentation; /** * Connection details for a live dataset. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_live_connection_input.htm | LiveConnectionInputRepresentation Documentation} */ export interface LiveConnectionInputRepresentation { /** The developer name of the connection */ connectionName: string; /** The source object name from the connection */ sourceObjectName: string; } /** * Wave XMD Dataset input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_dataset_input.htm | XmdDatasetInputRepresentation Documentation} */ export interface XmdDatasetInputRepresentation { /** Connector source for the dataset. */ connector?: string; /** Description of the dataset. */ description?: string; /** Fully qualified name of the dataset version. */ fullyQualifiedName?: string; /** Origin representing where this dataset version comes from. */ origin?: string; } /** * Wave XMD Date Fields input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_date_field_input.htm | XmdDateFieldsInputRepresentation Documentation} */ export interface XmdDateFieldsInputRepresentation { /** day field. */ day?: string; /** epochDay field. */ epochDay?: string; /** epochSecond field. */ epochSecond?: string; /** fiscalMonth field. */ fiscalMonth?: string; /** fiscalQuarter field. */ fiscalQuarter?: string; /** fiscalWeek field. */ fiscalWeek?: string; /** fiscalYear field. */ fiscalYear?: string; /** fullField field. */ fullField?: string; /** hour field. */ hour?: string; /** minute field. */ minute?: string; /** month field. */ month?: string; /** quarter field. */ quarter?: string; /** second field. */ second?: string; /** week field. */ week?: string; /** year field. */ year?: string; } /** * Wave XMD Date input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_date_input.htm | XmdDateInputRepresentation Documentation} */ export interface XmdDateInputRepresentation { /** Alias of the Date column. */ alias?: string; /** Whether the Date should be displayed as compact. */ compact?: boolean; /** Description of the Date column. */ description?: string; /** Formatting information for the date fields. */ fields?: XmdDateFieldsInputRepresentation; /** What the first day of the week is. */ firstDayOfWeek?: number; /** Offset number of months for the fiscal year in relation to the calendar year. */ fiscalMonthOffset?: number; /** Fully qualified name of the date. */ fullyQualifiedName?: string; /** Whether the Year End is the Fiscal year. */ isYearEndFiscalYear?: boolean; /** Label of the Date column. */ label?: string; /** Whether the Date should be show in the explorer. */ showInExplorer?: boolean; } /** * Extended metadata for property in conditional formatting linked to a Dimension / Measure. */ export interface ConditionalFormattingPropertyInputRepresentation { /** Valid conditional formatting parameters based on its type */ parameters?: { [key: string]: unknown; }; /** Conditional Formatting based on Reference field if any. */ referenceField?: string; /** The type of the conditional formatting */ type?: string; } /** * Base class for Wave XMD Dimension and Derived Dimension input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_dimension_input.htm | XmdBaseDimensionInputRepresentation Documentation} */ export interface XmdBaseDimensionInputRepresentation { /** Conditional formatting for a Dimension. */ conditionalFormatting?: { [key: string]: ConditionalFormattingPropertyInputRepresentation; }; /** Whether the Dimension has custom actions enabled. */ customActionsEnabled?: boolean; /** Date format to be used for a Date that is a dimension. */ dateFormat?: string; /** Default action for the dimension. */ defaultAction?: string; /** Description of the Dimension. */ description?: string; /** Field name of the Dimension (used in queries). */ field: string; /** Fully qualified name of the dimension. */ fullyQualifiedName?: string; /** Image template. */ imageTemplate?: string; /** Label for the Dimension. */ label?: string; /** Template for formatting a Link. */ linkTemplate?: string; /** Whether the Dimension has link templates enabled. */ linkTemplateEnabled?: boolean; /** Tooltip to be displayed for links. */ linkTooltip?: string; /** Origin of this dimension. */ origin?: string; /** Ordered list of Dimensions and Measures. Represents the default order to show them in the UI. */ recordDisplayFields?: Array; /** Record Id for this dimension. */ recordIdField?: string; /** Record Organization Id for this dimension. */ recordOrganizationIdField?: string; /** Whether the Dimension has salesforce actions enabled. */ salesforceActionsEnabled?: boolean; /** Whether the Dimension should be shown in the Explorer. */ showInExplorer?: boolean; } /** * Base class for XMD Dimension and Derived Dimension Action. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_derived_dimension_salesforce_action_input.htm | XmdBaseDimensionActionInputRepresentation Documentation} */ export interface XmdBaseDimensionActionInputRepresentation { /** Whether the Action is enabled. */ enabled: boolean; /** Name of the action. */ name: string; } /** * Base class for Wave XMD Dimension and Dervied Dimension Custom Action input representation. */ export interface XmdBaseDimensionCustomActionInputRepresentation extends XmdBaseDimensionActionInputRepresentation { /** icon for the action. */ icon?: string; /** method for the action. */ method?: string; /** target for the action. */ target?: string; /** tooltip for the action. */ tooltip?: string; /** Url for the action. */ url?: string; } /** * Base class for Wave XMD Dimension and Derived Dimension Member input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_derived_dimension_member_input.htm | XmdBaseDimensionMemberInputRepresentation Documentation} */ export interface XmdBaseDimensionMemberInputRepresentation { /** Color for the member. */ color?: string; /** Label for the member. */ label?: string; /** Member value. */ member?: string; } /** * Wave XMD Derived Dimension Member input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_derived_dimension_member_input.htm | XmdDerivedDimensionMemberInputRepresentation Documentation} */ export type XmdDerivedDimensionMemberInputRepresentation = XmdBaseDimensionMemberInputRepresentation; /** * Wave XMD Derived Dimension Salesforce Action input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_derived_dimension_salesforce_action_input.htm | XmdDerivedDimensionSalesforceActionInputRepresentation Documentation} */ export type XmdDerivedDimensionSalesforceActionInputRepresentation = XmdBaseDimensionActionInputRepresentation; /** * Wave XMD Derived Dimension input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_derived_dimension_input.htm | XmdDerivedDimensionInputRepresentation Documentation} */ export interface XmdDerivedDimensionInputRepresentation extends XmdBaseDimensionInputRepresentation { /** Custom Actions linked to this Derived Dimension. */ customActions?: Array; /** Whether the Derived Dimension is multi-value. */ isMultiValue?: boolean; /** Member overrides for a Derived Dimension. */ members?: Array; /** Salesfoce Actions linked to this Derived Dimension. */ salesforceActions?: Array; } /** * Base class for Wave XMD Measure and Derived Measure input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_derived_measure_input.htm | XmdBaseMeasureInputRepresentation Documentation} */ export interface XmdBaseMeasureInputRepresentation { /** Conditional formatting for a Measure. */ conditionalFormatting?: { [key: string]: ConditionalFormattingPropertyInputRepresentation; }; /** Date format to be used for a Date that is a measure. */ dateFormat?: string; /** Description of the Measure. */ description?: string; /** Field name of the Measure (used in queries). */ field: string; /** Fully qualified name of the Measure. */ fullyQualifiedName?: string; /** Label for the Measure. */ label?: string; /** Origin of the Measure. */ origin?: string; /** Whether the Measure should be shown in the Explorer. */ showInExplorer?: boolean; } /** * Wave XMD measure format number input representation with numeric separators. */ export interface NumericSeparatorsInputRepresentation { /** Decimal separator */ decimal?: string; /** Thousands separator */ thousands?: string; } /** * Base class for Wave XMD Measure and Derived Measure Format input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_derived_measure_format_input.htm | XmdBaseMeasureFormatInputRepresentation Documentation} */ export interface XmdBaseMeasureFormatInputRepresentation { /** displays the original xmd 1.1 format array as a String. */ customFormat?: string; /** Number of digits to be displayed after the decimal place. */ decimalDigits?: number; /** Thousands and decimal numeric separators for number formatting */ delimiters?: NumericSeparatorsInputRepresentation; /** displays negative numbers with parenthesis or not minus sign */ negativeParentheses?: boolean; /** Prefix to be placed before the field value. */ prefix?: string; /** Suffix to be placed after the field value. */ suffix?: string; /** Unit string for the measure. (eg. 'cm') */ unit?: string; /** Multiplier for the unit. */ unitMultiplier?: number; } /** * Wave XMD Derived Measure input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_derived_measure_input.htm | XmdDerivedMeasureInputRepresentation Documentation} */ export interface XmdDerivedMeasureInputRepresentation extends XmdBaseMeasureInputRepresentation { /** Format details for the Derived Measure. */ format?: XmdBaseMeasureFormatInputRepresentation; } /** * Wave XMD Dimension Member input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_dimension_member_input.htm | XmdDimensionMemberInputRepresentation Documentation} */ export type XmdDimensionMemberInputRepresentation = XmdBaseDimensionMemberInputRepresentation; /** * Wave XMD Dimension Salesforce Action input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_dimension_salesforce_action_input.htm | XmdDimensionSalesforceActionInputRepresentation Documentation} */ export type XmdDimensionSalesforceActionInputRepresentation = XmdBaseDimensionActionInputRepresentation; /** * Wave XMD Dimension input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_dimension_input.htm | XmdDimensionInputRepresentation Documentation} */ export interface XmdDimensionInputRepresentation extends XmdBaseDimensionInputRepresentation { /** Custom Actions linked to this Dimension. */ customActions?: Array; /** Member overrides for a Dimension. */ members?: Array; /** Salesfoce Actions linked to this Dimension. */ salesforceActions?: Array; } /** * Wave XMD Measure input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_measure_input.htm | XmdMeasureInputRepresentation Documentation} */ export interface XmdMeasureInputRepresentation extends XmdBaseMeasureInputRepresentation { /** Format details for the Measure. */ format?: XmdBaseMeasureFormatInputRepresentation; } /** * Wave XMD Organization input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_organization_input.htm | XmdOrganizationInputRepresentation Documentation} */ export interface XmdOrganizationInputRepresentation { /** ID of the organization. */ id?: string; /** Instance Url for the organization. */ instanceUrl?: string; /** Label for the organization. */ label?: string; } /** * Wave XMD input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_xmd_input.htm | XmdInputRepresentation Documentation} */ export interface XmdInputRepresentation { /** Locale specific information about the Dataset represented by this xmd. */ dataset?: XmdDatasetInputRepresentation; /** List of dates with formatting information. */ dates?: Array; /** List of derived dimensions with formatting information. */ derivedDimensions?: Array; /** List of derived measures with formatting information. */ derivedMeasures?: Array; /** List of dimensions with formatting information. */ dimensions?: Array; /** List of measures with formatting information. */ measures?: Array; /** List of organizations for multi organization support. */ organizations?: Array; /** Ordered list of Dimensions and Measures. Represents the default order to show them in the UI. */ showDetailsDefaultFields?: Array; } /** * Wave Dataset input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_dataset_input.htm | DatasetInputRepresentation Documentation} */ export interface DatasetInputRepresentation extends BaseAssetInputRepresentation { /** Type of the dataset */ datasetType?: string; /** Folder in which this dataset is stored */ folder?: AssetReferenceInputRepresentation; liveConnection?: LiveConnectionInputRepresentation; userXmd?: XmdInputRepresentation; /** If dataset should be hidden from users with view access */ visibility?: string; } /** * Connection details of a live dataset. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_live_connection.htm | LiveConnectionRepresentation Documentation} */ export interface LiveConnectionRepresentation { /** The label of the connection */ connectionLabel: string; /** The developer name of the connection */ connectionName: string; /** The type of the connection */ connectionType: string; /** The source object name from the connection */ sourceObjectName: string; } /** * Extended metadata for the formatting of a Date Field in a Dataset. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_xmd_date_field.htm | XmdDateFieldRepresentation Documentation} */ export interface XmdDateFieldRepresentation { /** day field. */ day?: string; /** epochDay field. */ epochDay?: string; /** epochSecond field. */ epochSecond?: string; /** fiscalMonth field. */ fiscalMonth?: string; /** fiscalQuarter field. */ fiscalQuarter?: string; /** fiscalWeek field. */ fiscalWeek?: string; /** fiscalYear field. */ fiscalYear?: string; /** fullField field. */ fullField?: string; /** hour field */ hour?: string; /** minute field */ minute?: string; /** month field. */ month?: string; /** quarter field. */ quarter?: string; /** second field */ second?: string; /** week field. */ week?: string; /** year field. */ year?: string; } /** * Extended metadata for the dataset. */ export interface XmdDatasetRepresentation { /** Connector source for the dataset */ connector?: string; /** Description of the dataset. */ description?: string; /** Fully qualified name of the dataset version. */ fullyQualifiedName?: string; /** Origin representing where this dataset version comes from. */ origin?: string; } /** * Extended metadata for a date. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_xmd_date.htm | XmdDateRepresentation Documentation} */ export interface XmdDateRepresentation { /** Alias of the Date column. */ alias?: string; /** Whether or not the Date should be displayed as compact. */ compact?: boolean; /** Description of the Date column. */ description?: string; /** Formatting information for the date fields. */ fields: XmdDateFieldRepresentation; /** What the first day of the week is. */ firstDayOfWeek?: number; /** Offset number of months for the fiscal year in relation to the calendar year. */ fiscalMonthOffset?: number; /** Format of the date field. */ format?: string; /** Fully qualified name of the date. */ fullyQualifiedName?: string; /** If the DateTime type is from timezone auto conversion. */ isConvertedDateTime?: boolean; /** If the Year End is the Fiscal year. */ isYearEndFiscalYear?: boolean; /** Label of the Date column. */ label?: string; /** Whether or not the Date should be show in the explorer. */ showInExplorer?: boolean; /** Date type of the Date column. */ type?: string; } /** * Base Action Representation for a Dimension in an Xmd. */ export interface XmdDimensionBaseActionRepresentation { /** If Action is enabled for a specific dimension. */ enabled: boolean; /** Name of the action. */ name: string; } /** * Custom Action Representation for a Dimension in an Xmd. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_xmd_dimension_custom_action.htm | XmdDimensionCustomActionRepresentation Documentation} */ export interface XmdDimensionCustomActionRepresentation extends XmdDimensionBaseActionRepresentation { /** icon for the action. */ icon?: string; /** method for the action. */ method?: string; /** target for the action. */ target?: string; /** tooltip for the action. */ tooltip?: string; /** Url for the action. */ url: string; } /** * Extended metadata a Member linked to a Dimension in a Dataset. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_xmd_dimension_member.htm | XmdDimensionMemberRepresentation Documentation} */ export interface XmdDimensionMemberRepresentation { /** Color for the member. */ color?: string; /** Label for the member. */ label?: string; /** Member value. */ member: string; } /** * Salesforce Action Representation for a Dimension in an Xmd. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_xmd_dimension_salesforce_action.htm | XmdDimensionSalesforceActionRepresentation Documentation} */ export type XmdDimensionSalesforceActionRepresentation = XmdDimensionBaseActionRepresentation; /** * Extended metadata a Dimension in a Dataset. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_xmd_dimension.htm | XmdDimensionRepresentation Documentation} */ export interface XmdDimensionRepresentation { /** Conditional formatting for a Dimension. */ conditionalFormatting: { [key: string]: unknown; }; /** Custom Actions linked to this Dimension. */ customActions: Array; /** Whether the Dimension has custom actions enabled. */ customActionsEnabled?: boolean; /** Date format to be used for a Date that is a dimension. */ dateFormat?: string; /** Default action for the dimension. */ defaultAction?: string; /** Description of the Dimension. */ description?: string; /** Field name of the Dimension (used in queries). */ field: string; /** Fully qualified name of the dimension. */ fullyQualifiedName?: string; /** Image template. */ imageTemplate?: string; /** Whether the Dimension is multi-value. */ isMultiValue?: boolean; /** Label for the Dimension. */ label?: string; /** Template for formatting a Link. */ linkTemplate?: string; /** Whether the Dimension has link templates enabled. */ linkTemplateEnabled?: boolean; /** Tooltip to be displayed for links. */ linkTooltip?: string; /** Member overrides for a Dimension. */ members: Array; /** Origin of this dimension. */ origin?: string; /** Ordered list of Dimensions and Measures. Represents the default order to show them in the UI. */ recordDisplayFields: Array; /** Record Id for this dimension. */ recordIdField?: string; /** Record Organization Id for this dimension. */ recordOrganizationIdField?: string; /** Salesfoce Actions linked to this Dimension. */ salesforceActions: Array; /** Whether the Dimension has salesforce actions enabled. */ salesforceActionsEnabled?: boolean; /** Whether the Dimension should be shown in the Explorer. */ showInExplorer?: boolean; } /** * Thousands and decimal numeric separators. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_numeric_separators.htm | NumericSeparatorsRepresentation Documentation} */ export interface NumericSeparatorsRepresentation { /** Decimal separator */ decimal?: string; /** Thousand separator */ thousands?: string; } /** * Format for a Measure in a Dataset. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_xmd_measure_format.htm | XmdMeasureFormatRepresentation Documentation} */ export interface XmdMeasureFormatRepresentation { /** displays the original xmd 1.1 format array as a String. */ customFormat?: string; /** Number of digits to be displayed after the decimal place. */ decimalDigits?: number; /** Thousands and decimal numeric separators. */ delimiters?: NumericSeparatorsRepresentation; /** displays negative numbers with parenthesis or not minus sign */ negativeParentheses?: boolean; /** Prefix to be placed before the field value. */ prefix?: string; /** Suffix to be places after the field value. */ suffix?: string; /** Unit string for the measure. (eg. 'cm') */ unit?: string; /** Multiplier for the unit. */ unitMultiplier?: number; } /** * Extended metadata for a Measure in a Dataset. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_xmd_measure.htm | XmdMeasureRepresentation Documentation} */ export interface XmdMeasureRepresentation { /** Conditional formatting for a Measure. */ conditionalFormatting: { [key: string]: unknown; }; /** Date format to be used for a Date that is a measure. */ dateFormat?: string; /** Description of the Measure. */ description?: string; /** Field name of the Measure (used in queries). */ field: string; /** Format details for the Measure. */ format?: XmdMeasureFormatRepresentation; /** Fully qualified name of the Measure. */ fullyQualifiedName?: string; /** Label for the Measure. */ label?: string; /** Origin of this measure. */ origin?: string; /** Whether the Measure should be shown in the Explorer. */ showInExplorer?: boolean; } /** * Extended metadata for an organization. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_xmd_organization.htm | XmdOrganizationRepresentation Documentation} */ export interface XmdOrganizationRepresentation { /** id of the organization */ id: string; /** Instance Url for an organization. */ instanceUrl: string; /** Label for an organization. */ label: string; } /** * Extended Metadata (Xmd) for a Dataset Version. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_xmd.htm | XmdInnerRepresentation Documentation} */ export interface XmdInnerRepresentation { /** Represents the creator of this Xmd */ createdBy: WaveUserRepresentation; /** Time the Xmd was created */ createdDate: string; /** Locale specific information about the Dataset represented by this xmd. */ dataset: XmdDatasetRepresentation; /** List of dates with formatting information. */ dates: Array; /** List of derived dimensions with formatting information. */ derivedDimensions: Array; /** List of derived measures with formatting information. */ derivedMeasures: Array; /** List of dimensions with formatting information. */ dimensions: Array; /** Message if there was error copying forward the current version's user xmd to the newly created version. */ errorMessage?: string; /** The type of language this xmd is localized for */ language: string; /** Represents the user who last modified this Xmd */ lastModifiedBy: WaveUserRepresentation; /** Time the Xmd was last modified */ lastModifiedDate: string; /** List of measures with formatting information. */ measures: Array; /** List of organizations for multi organization support. */ organizations: Array; /** Ordered list of Dimensions and Measures. Represents the default order to show them in the UI. */ showDetailsDefaultFields: Array; /** The type of Xmd (Main, User, System) */ type: string; /** Location where this XMD is stored. */ url?: string; } /** * A Wave dataset. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_dataset.htm | DatasetRepresentation Documentation} */ export interface DatasetRepresentation extends BaseWaveAssetRepresentation { /** The URL for dataset shards. */ clientShardsUrl?: string; currentVersionCreatedBy?: WaveUserRepresentation; /** Date on which the current version was created. */ currentVersionCreatedDate?: string; /** The 18 character ID of the current DatasetVersion. */ currentVersionId?: string; currentVersionLastModifiedBy?: WaveUserRepresentation; /** Date on which the current version was last modified. */ currentVersionLastModifiedDate?: string; /** Current dataset version supports new date format */ currentVersionSupportsNewDates?: boolean; /** The total number of rows in the dataset. */ currentVersionTotalRowCount?: number; /** The URL for the current DatasetVersion. */ currentVersionUrl?: string; /** Date/time when this dataset was last updated by a dataflow. */ dataRefreshDate?: string; /** The type of the dataset. */ datasetType: string; /** A reference to the folder in which this dataset is stored. */ folder: AssetReferenceRepresentation; /** Date/time when the metadata(Edgemart's Folder, MasterLabel, Current, EdgemartData's Sharing and security predicate) of dataset was last changed. */ lastMetadataChangedDate?: string; /** Date/time when this dataset was last queried. */ lastQueriedDate?: string; licenseAttributes?: LicenseAttributesRepresentation; liveConnection?: LiveConnectionRepresentation; userXmd?: XmdInnerRepresentation; /** The URL for dataset versions. */ versionsUrl: string; /** If dataset should be hidden from users with view access */ visibility: string; } /** * Creates a CRM Analytics dataset. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_analytics_create_dataset | createDataset Documentation} * @param dataset The dataset to create. * @returns A promise that will resolve to the dataset response. */ export const createDataset: ({ dataset, }: { dataset: DatasetInputRepresentation; }) => Promise; /** * Input representation for Restore Dataset Version. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_restore_dataset_version_input.htm | RestoreDatasetVersionInputRepresentation Documentation} */ export interface RestoreDatasetVersionInputRepresentation { /** Source Version to which restore should happen */ sourceVersion: AssetReferenceInputRepresentation; } /** * Representation of a dataset version restore. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_dataconnectors_connectorid_ingest.htm#RestoreDatasetVersionRepresentation | RestoreDatasetVersionRepresentation Documentation} */ export interface RestoreDatasetVersionRepresentation { message: string; url: string; } /** * Creates a version of a CRM Analytics dataset. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_analytics_create_dataset_version | createDatasetVersion Documentation} * @param datasetIdOrApiName The ID or developer name of the dataset. * @param sourceVersion The Source Version to which restore should happen. * @returns A promise that will resolve to the dataset version response. */ export const createDatasetVersion: ({ datasetIdOrApiName, sourceVersion, }: { datasetIdOrApiName: string; sourceVersion: RestoreDatasetVersionInputRepresentation; }) => Promise; /** * Replicates data from an external source object into CRM Analytics as a dataset. Replicated Datasets are not intended to be visualized directly, but are used like a cache to speed up other workflows which refer to the same source object. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_replicateddatasets.htm#ReplicatedDatasetInputRepresentation | ReplicatedDatasetInputRepresentation Documentation} */ export interface ReplicatedDatasetInputRepresentation { advancedProperties?: Array<{ [key: string]: unknown; }>; connectionMode?: string; connectorId?: string; fullRefresh?: boolean; passThroughFilter?: string; rowLevelSharing?: boolean; sourceObjectName?: string; } /** * Information about a user. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#WaveUserRepresentation | WaveUserRepresentation Documentation} */ export interface WaveUserRepresentation { /** The 18 character user ID. */ id: string; /** The name of the user. */ name?: string; /** The Chatter profile photo of the user. */ profilePhotoUrl?: string | null; } /** * An advanced property Name and Value. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#AdvancedPropertyValueReprensentation | AdvancedPropertyValueRepresentation Documentation} */ export interface AdvancedPropertyValueRepresentation { name: string; value: string; } /** * Output source for output objects. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_replicateddatasets.htm#OutputSourceRepresentation | OutputSourceRepresentation Documentation} */ export interface OutputSourceRepresentation { inputRows?: number; isSyncOut: boolean; name: string; nextScheduledDate?: string; outputRows?: number; } /** * Replicates data from an external source object into CRM Analytics as a dataset. Replicated Datasets are not intended to be visualized directly, but are used like a cache to speed up other workflows which refer to the same source object. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_replicateddatasets.htm#ReplicatedDatasetRepresentation | ReplicatedDatasetRepresentation Documentation} */ export interface ReplicatedDatasetRepresentation { assetSharingUrl?: string | null; createdBy?: WaveUserRepresentation; createdDate?: string; description?: string; id: string; label?: string; lastAccessedDate?: string | null; lastModifiedBy?: WaveUserRepresentation | null; lastModifiedDate?: string | null; name?: string; namespace?: string; permissions?: PermissionsRepresentation | null; type: string; url: string; advancedProperties: Array; connectionMode?: string; connector: DataConnectorRepresentation; datasetId?: string; fieldCount?: number; fieldsUrl: string; filterApplied: boolean; lastRefreshedDate?: string; outputSource?: OutputSourceRepresentation; passThroughFilter?: string; replicationDataflowId?: string; rowLevelSharing?: boolean; sourceObjectName: string; status?: string; supportedConnectionModes?: Array; uuid: string; } /** * Creates a CRM Analytics replicated dataset. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_create_replicated_dataset | createReplicatedDataset Documentation} * @param replicatedDataset.advancedProperties List of user-specified advanced properties associated with this. * @param replicatedDataset.connectionMode Connection mode for pulling the data from the replicated dataset. * @param replicatedDataset.connectorId The id of the connector object used to replicate. * @param replicatedDataset.fullRefresh Whether to perform a one-time full refresh (during the next run) as opposed to incremental. * @param replicatedDataset.passThroughFilter Passthrough filter for the replicated object. * @param replicatedDataset.rowLevelSharing Inherit row level sharing rules for this object. * @param replicatedDataset.sourceObjectName The name of the source object to be replicated. * @returns A promise that will resolve to the replicated dataset response. */ export const createReplicatedDataset: ({ replicatedDataset, }: { replicatedDataset: ReplicatedDatasetInputRepresentation; }) => Promise; /** * Deletes a specific CRM Analytics data connector by ID or developer name. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_analytics_delete_data_connector | deleteDataConnector Documentation} * @param connectorIdOrApiName The ID or developer name of the connector. * @returns A promise that will resolve on completion. */ export const deleteDataConnector: ({ connectorIdOrApiName, }: { connectorIdOrApiName: string; }) => Promise; /** * Deletes a specific CRM Analytics dataset by ID or developer name. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_delete_dataset | deleteDataset Documentation} * @param datasetIdOrApiName The ID or developer name of the dataset. * @returns A promise that will resolve on completion. */ export const deleteDataset: ({ datasetIdOrApiName, }: { datasetIdOrApiName: string; }) => Promise; /** * Deletes a specific CRM Analytics data prep recipe by ID. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_delete_recipe | deleteRecipe Documentation} * @param id The ID of the data prep recipe. * @returns A promise that will resolve on completion. */ export const deleteRecipe: ({ id }: { id: string }) => Promise; /** * Deletes a specific CRM Analytics replicated dataset by ID. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_delete_replicated_dataset | deleteReplicatedDataset Documentation} * @param id The ID of the replicated dataset. * @returns A promise that will resolve on completion. */ export const deleteReplicatedDataset: ({ id, }: { id: string; }) => Promise; /** * Wire adapter to trigger the CRM Analytics connector to run a data sync. This API is the equivalent of the “Run Now” UI feature. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_ingest_data_connector | ingestDataConnector Documentation} * @param connectorIdOrApiName The ID or developer name of the dataset. * @returns A promise that will resolve to the ingest data connector response. */ export const ingestDataConnector: ({ connectorIdOrApiName, }: { connectorIdOrApiName: string; }) => Promise; /** * Configuration for the getDataConnector wire adapter. * @param connectorIdOrApiName The ID or developer name of the dataset. */ export interface GetDataConnectorConfig { connectorIdOrApiName: string; } /** * Wire adapter to retrieve the Connector for CRM Analytics. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_data_connector | getDataConnector Documentation} */ export const getDataConnector: LdsWireAdapter< GetDataConnectorConfig, DataConnectorRepresentation >; /** * A Connection Property Name and Value. */ export interface ConnectionsStatsRepresentation { currentParquetOptInObjects: number; maximumParquetOptInObjects: number; } /** * A list of Data Connectors. */ export interface DataConnectorCollectionRepresentation { dataConnectors: Array; stats?: ConnectionsStatsRepresentation; url: string; } /** * Configuration for the getDataConnectors wire adapter. * @param category The category of the connector. * @param connectorType The type of the connector. * @param scope The scope of the connector. */ export interface GetDataConnectorsConfig { category?: string; connectorType?: string; scope?: string; } /** * Wire adapter to retrieve the collection of Connectors for CRM Analytics. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_data_connectors | getDataConnectors Documentation} */ export const getDataConnectors: LdsWireAdapter< GetDataConnectorsConfig, DataConnectorCollectionRepresentation >; /** * Base representation for fields in CRM Analytics. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#AbstractFieldRepresentation | AbstractFieldRepresentation Documentation} */ export interface AbstractFieldRepresentation { defaultValue?: string | number | null | boolean; description?: string; fieldType: string; format?: string; label: string; multiValue?: boolean; multiValueSeparator?: string; name: string; precision?: number; scale?: number; systemField?: boolean; uniqueId?: boolean; } /** * A field of a Source Object. */ export interface SourceFieldRepresentation extends AbstractFieldRepresentation { accessDeniedReason?: string; accessible?: boolean; fieldType: "sourceField"; } /** * A list of Source Fields. */ export interface SourceFieldCollectionRepresentation { dataConnector: AssetReferenceRepresentation; fields: Array; sourceObjectName: string; url: string; } /** * Configuration for the getDataConnectorSourceFields wire adapter. * @param connectorIdOrApiName The ID of the connector. * @param sourceObjectName The name of the source object. */ export interface GetDataConnectorSourceFieldsConfig { connectorIdOrApiName: string; sourceObjectName: string; } /** * Wire adapter to retrieve the collection of source fields for a particular source object. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_data_connector_source_fields | getDataConnectorSourceFields Documentation} */ export const getDataConnectorSourceFields: LdsWireAdapter< GetDataConnectorSourceFieldsConfig, SourceFieldCollectionRepresentation >; /** * Configuration for the getDataConnectorSourceObject wire adapter. * @param connectorIdOrApiName The ID of the connector. * @param sourceObjectName The name of the source object. */ export interface GetDataConnectorSourceObjectConfig { connectorIdOrApiName: string; sourceObjectName: string; } /** * A Source Object represents a specific category or type of data that the Data Connector knows about. When a Source Object is replicated into Wave, it can be use to create Datasets. */ export interface SourceObjectRepresentation { accessDeniedReason?: string; accessible?: boolean; dataConnector: AssetReferenceRepresentation; dataPreviewUrl: string; fieldsUrl: string; name: string; replicated: boolean; url: string; } /** * Wire adapter to retrieve a source object resource for a CRM Analytics connector. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_data_connector_source_object | getDataConnectorSourceObject Documentation} */ export const getDataConnectorSourceObject: LdsWireAdapter< GetDataConnectorSourceObjectConfig, SourceObjectRepresentation >; /** * Configuration for the getDataConnectorSourceObjectDataPreviewWithFields wire adapter. * @param connectorIdOrApiName The ID of the connector. * @param sourceObjectName The name of the source object. * @param sourceObjectParam The fields of the source object. */ export interface GetDataConnectorSourceObjectDataPreviewWithFieldsConfig { connectorIdOrApiName: string; sourceObjectName: string; sourceObjectParam: SourceObjectDataInputRepresentation; } /** * Wave Data Connector Advanced Property input representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_advanced_property_value_input.htm | AdvancedPropertyValueInputRepresentation Documentation} */ export interface AdvancedPropertyValueInputRepresentation { /** The name of the advanced property. */ name: string; /** The value of the advanced property */ value: string; } /** * Input representation for getting source object data given a list of fields and advanced properties. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_source_object_data_input.htm | SourceObjectDataInputRepresentation Documentation} */ export interface SourceObjectDataInputRepresentation { /** List of user-specified advanced properties associated with this object. */ advancedProperties?: Array; /** List of fields as a way to filter the fields returned in the response. */ sourceObjectFields: Array; } /** * A Source Object Data represents the data to be previewed that the selected Data Connector knows about. */ export interface SourceObjectDataRepresentation { dataListJson: string; url: string; } /** * Wire adapter to retrieve a preview collection of source fields for a source object used by a CRM Analytics data connector. * @see {@link https://developer.salesforce.com/docs/platform/lwc/guide/reference-wire-adapters-get-data-connector-source-object-data-previewwithfields.html | getDataConnectorSourceObjectDataPreviewWithFields Documentation} */ export const getDataConnectorSourceObjectDataPreviewWithFields: LdsWireAdapter< GetDataConnectorSourceObjectDataPreviewWithFieldsConfig, SourceObjectDataRepresentation >; /** * Configuration for the getDataConnectorStatus wire adapter. * @param connectorIdOrApiName The ID of the connector. */ export interface GetDataConnectorStatusConfig { connectorIdOrApiName: string; } /** * A representation for the status of a connection. */ export interface DataConnectorStatusRepresentation { message: string; status: string; url: string; } /** * Wire adapter to test the status of an external CRM Analytics connector. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_data_connector_status | getDataConnectorStatus Documentation} */ export const getDataConnectorStatus: LdsWireAdapter< GetDataConnectorStatusConfig, DataConnectorStatusRepresentation >; /** * An advanced property is an object-level replication property for a data source. */ export interface AdvancedPropertyRepresentation { dataType: string; defaultValue: string | number | null | boolean; description: string; isRequired: boolean; label: string; name: string; } /** * A Condition represents a condition under which a connection property will appear in the UI. */ export interface PropertyConditionRepresentation { propKey: string; values: Array; } /** * An Option represents a value option for connection properties of type Select. */ export interface PropertyOptionRepresentation { key: string; label: string; value: string; } /** * A Connection Property represents a property to connect to a data connector. */ export interface ConnectionPropertyRepresentation { conditions?: Array; dataType: string; defaultValue: string | number | null | boolean; isEncrypted: boolean; isRequired: boolean; label: string; maxLength: number; name: string; options?: Array; } /** * A Data Connector Type represents a type of connector that can be used for replicating data into Wave. */ export interface DataConnectorTypeRepresentation { advancedProperties?: Array; associatedCategories: Array; bundle?: string; connectionProperties: Array; isExternal: boolean; label: string; name: string; supportedConnectorHandlers?: Array; type: string; } /** * A list of Data Connector Types. */ export interface DataConnectorTypeCollectionRepresentation { types: Array; url: string; } /** * Configuration for the getDataConnectorTypes wire adapter. */ export type GetDataConnectorTypesConfig = object; /** * Wire adapter to retrieve a collection of CRM Analytics connector types. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_data_connector_types | getDataConnectorTypes Documentation} */ export const getDataConnectorTypes: LdsWireAdapter< GetDataConnectorTypesConfig, DataConnectorTypeCollectionRepresentation >; /** * Configuration for the getDataflowJob wire adapter. * @param dataflowjobId The ID of the dataflow job. */ export interface GetDataflowJobConfig { dataflowjobId: string; } /** * Wire adapter to retrieve a specific CRM Analytics dataflow job. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_dataflow_job | getDataflowJob Documentation} */ export const getDataflowJob: LdsWireAdapter< GetDataflowJobConfig, DataflowJobRepresentation >; /** * Configuration for the getDataflowJobNode wire adapter. * @param dataflowjobId The ID of the dataflow job. * @param nodeId The ID of the node. */ export interface GetDataflowJobNodeConfig { dataflowjobId: string; nodeId: string; } /** * CRM Analytics dataflow job node representation. */ export interface DataflowJobNodeRepresentation { /** The type of the node */ nodeType: string; /** The status of the node */ status: string; } /** * Wire adapter to retrieve a specific CRM Analytics dataflow job node for a recipe or dataflow. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_dataflow_job_node | getDataflowJobNode Documentation} */ export const getDataflowJobNode: LdsWireAdapter< GetDataflowJobNodeConfig, DataflowJobNodeRepresentation >; /** * Configuration for the getDataflowJobNodes wire adapter. * @param dataflowjobId The ID of the dataflow job. */ export interface GetDataflowJobNodesConfig { dataflowjobId: string; } /** * A collection of Dataflow Job Nodes. */ export interface DataflowJobNodeCollectionRepresentation { nodes: Array; url: string; } /** * Wire adapter to retrieve a collection of CRM Analytics dataflow job nodes. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_dataflow_job_nodes | getDataflowJobNodes Documentation} */ export const getDataflowJobNodes: LdsWireAdapter< GetDataflowJobNodesConfig, DataflowJobNodeCollectionRepresentation >; /** * Configuration for the getDataflowJobs wire adapter. * @param dataflowId Filters the collection to only contain dataflow jobs tied to this specific dataflow. The ID must start with '02K'. * @param jobTypes The response includes dataflow jobs with these job types. Valid values are `EinsteinAnalytics` or `Sonic`. * @param licenseType The response includes dataflow jobs with this license type. Valid values are `EinsteinAnalytics` or `Sonic`. * @param page Generated token that indicates the view of dataflow jobs to be returned. * @param pageSize Number of items to be returned in a single page. Minimum is 1, maximum is 200, and the default is 25. */ export interface GetDataflowJobsConfig { dataflowId?: string; jobTypes?: Array; licenseType?: string; page?: string; pageSize?: number; q?: string; startedAfter?: string; startedBefore?: string; status?: string; } /** * A list of CRM Analytics dataflow jobs. */ export interface DataflowJobCollectionRepresentation { dataflowJobs: Array; nextPageUrl?: string | null; totalSize?: number | null; url: string; } /** * Wire adapter to retrieve a collection of CRM Analytics dataflow jobs. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_dataflow_jobs | getDataflowJobs Documentation} * @param dataflowId Filters the collection to only contain dataflow jobs tied to this specific dataflow. The ID must start with '02K'. * @param licenseType The response includes dataflow jobs with this license type. Valid values are `EinsteinAnalytics` or `Sonic`. * @param page Generated token that indicates the view of dataflow jobs to be returned. * @param pageSize Number of items to be returned in a single page. Minimum is 1, maximum is 200, and the default is 25. * @param q Search terms. Individual terms are separated by spaces. A wildcard is automatically appended to the last token in the query string. * If the user’s search query contains quotation marks or wildcards, those symbols are automatically removed from the query string in * the URI along with any other special characters. * @param status Filters the collection to only contain dataflow jobs with a specific runtime status. * Valid values are `Failure`, `Queued`, `Running`, `Success`, or `Warning`. */ export const getDataflowJobs: LdsWireAdapter< GetDataflowJobsConfig, DataflowJobCollectionRepresentation >; /** * Configuration for the getDataflows wire adapter. * @param q Search terms. Individual terms are separated by spaces. A wildcard is automatically appended to the last token in the query string. * If the user’s search query contains quotation marks or wildcards, those symbols are automatically removed from the query string in * the URI along with any other special characters. */ export interface GetDataflowsConfig { q?: string; } /** * Wire adapter to retrieve a collection of CRM Analytics dataflows. * @see {@link https://developer.salesforce.com/docs/platform/lwc/guide/reference-wire-adapters-get-dataflows.html | getDataflows Documentation} */ export const getDataflows: LdsWireAdapter< GetDataflowsConfig, DataflowCollectionRepresentation >; /** * Configuration for the getDataset wire adapter. * @param datasetIdOrApiName The ID or developer name of the dataset. */ export interface GetDatasetConfig { datasetIdOrApiName: string; } /** * Wire adapter to retrieve a specific CRM Analytics dataset by ID or developer name. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_dataset | getDataset Documentation} */ export const getDataset: LdsWireAdapter< GetDatasetConfig, DatasetRepresentation >; /** * Configuration for the getDatasets wire adapter. * @param datasetTypes Filters the collection to include only datasets of one or more of the specified types. * Valid values are `Default`, `Live`, or `Trended`. * @param folderId Filters the collection to only contain datasets for the specified folder. The ID can be the requesting user's ID for * datasets in the user's private folder. * @param hasCurrentOnly Filters the collection of datasets to include only those datasets that have a current version. The default is `false`. * @param ids Filter the collection to include only datasets with the specified IDs. * @param includeCurrentVersion Specifies if the response should include the current version metadata. The default is `false`. * @param licenseType The response includes dataflow jobs with this license type. Valid values are `EinsteinAnalytics` or `Sonic`. * @param order Ordering to apply to the collection results. Valid values are `Ascending` or `Descending`. * @param page Generated token that indicates the view of datasets to be returned. * @param pageSize Number of items to be returned in a single page. Minimum is 1, maximum is 200, and the default is 25. * @param q Search terms. Individual terms are separated by spaces. A wildcard is automatically appended to the last token in the query string. * If the user’s search query contains quotation marks or wildcards, those symbols are automatically removed from the query string in * the URI along with any other special characters. * @param scope Scope type to apply to the collection results. * Valid values are `CreatedByMe`, `Favorites`, `IncludeAllPrivate`, `Mru` (Most Recently Used), or `SharedWithMe`. * @param sort Sort order to apply to the collection results. * Valid values are `CreatedBy`, `CreatedDate`, `LastModified`, `LastQueried`, `LastRefreshed`, * `Mru` (Most Recently Used, last viewed date), `Name`, or `TotalRows`. * @param typeOfDataflow Filter the collection to include only datasets with the specified type of dataflow. */ export interface GetDatasetsConfig { createdAfter?: string; createdBefore?: string; datasetTypes?: Array; folderId?: string; hasCurrentOnly?: boolean; ids?: Array; includeCurrentVersion?: boolean; lastQueriedAfter?: string; lastQueriedBefore?: string; licenseType?: string; order?: string; page?: string; pageSize?: number; q?: string; scope?: string; sort?: string; typeOfDataflow?: string; } /** * A collection of Wave Datasets. */ export interface DatasetCollectionRepresentation { datasets: Array; nextPageUrl: string | null; totalSize: number; url: string | null; } /** * Wire adapter to retrieve a collection of CRM Analytics datasets. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_datasets | getDatasets Documentation} */ export const getDatasets: LdsWireAdapter< GetDatasetsConfig, DatasetCollectionRepresentation >; /** * Configuration for the getDatasetVersion wire adapter. * @param datasetIdOrApiName The ID or developer name of the dataset. * @param versionId The ID of the dataset version. */ export interface GetDatasetVersionConfig { datasetIdOrApiName: string; versionId: string; } /** * Information about a file. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_wave_file_metadata.htm | WaveFileMetadataRepresentation Documentation}) */ export interface WaveFileMetadataRepresentation { createdBy?: WaveUserRepresentation; /** created date */ createdDate?: string; /** The 18 character lens file ID. */ id?: string; /** last accessed date */ lastAccessedDate?: string; /** last modified date */ lastModifiedDate?: string; /** size of the lens file */ length?: number; /** name of lens file */ name?: string; /** url of file. */ url?: string; } /** * Asset reference representation. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_asset_reference.htm | DatasetVersionSharingSourceRepresentation Documentation} */ export interface DatasetVersionSharingSourceRepresentation { /** The asset developer name. */ name: string; /** The namespace that qualifies the asset name */ namespace?: string; } /** * An instantiated version of a Wave dataset. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_dataset_version.htm | DatasetVersionRepresentation Documentation} */ export interface DatasetVersionRepresentation extends BaseWaveAssetRepresentation { /** A reference to the dataset. */ dataset?: AssetReferenceRepresentation; /** Information about the data files that make up the dataset version. */ files?: Array; /** The URL of the files resource for this dataset version. */ filesUrl?: string; /** The row level security predicate. */ predicate?: string; /** The version of the row level security predicate. */ predicateVersion?: number; /** Dataset sharing inheritance coverage information resource. */ securityCoverageUrl: string; /** Entity from which sharing rules will be inherited for this dataset version */ sharingSource?: DatasetVersionSharingSourceRepresentation; /** The parent dataflow or file for this dataset version. */ source?: AssetReferenceRepresentation; /** Dataset version supports new date format */ supportsNewDates?: boolean; /** Total number of rows for this dataset version */ totalRowCount?: number; xmdMain?: XmdInnerRepresentation; /** The URL of the Xmd Collection resource for this dataset version. */ xmdsUrl?: string; } /** * Wire adapter to retrieve a specific CRM Analytics dataset version by dataset ID or developer name and version ID. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_get_dataset_version | getDatasetVersion Documentation} */ export const getDatasetVersion: LdsWireAdapter< GetDatasetVersionConfig, DatasetVersionRepresentation >; /** * Configuration for the getDatasetVersions wire adapter. * @param datasetIdOrApiName The ID or developer name of the dataset. */ export interface GetDatasetVersionsConfig { datasetIdOrApiName: string; } /** * A collection of Dataset Versions. */ export interface DatasetVersionCollectionRepresentation { url: string; versions: Array; } /** * Wire adapter to retrieve a list of CRM Analytics dataset versions for a specific dataset. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_get_dataset_versions | getDatasetVersions Documentation} */ export const getDatasetVersions: LdsWireAdapter< GetDatasetVersionsConfig, DatasetVersionCollectionRepresentation >; /** * A collection of Wave dependencies. */ export interface DependencyCollectionRepresentation { dependencies: Array; totalSize: number; } /** * Wave asset dependencies representation. */ export interface DependencyRepresentation { assetSharingUrl?: string; components?: DependencyCollectionRepresentation; dashboards?: DependencyCollectionRepresentation; datasets?: DependencyCollectionRepresentation; folder: AssetReferenceRepresentation; id: string; lastAccessedDate: string; lastModifiedBy: WaveUserRepresentation; lastModifiedDate: string; lenses?: DependencyCollectionRepresentation; name: string; recipes?: DependencyCollectionRepresentation; type: string; url: string; workflows?: DependencyCollectionRepresentation; } /** * Configuration for the getDependencies wire adapter. * @param assetId The ID of the CRM Analytics asset. */ export interface GetDependenciesConfig { assetId: string; } /** * Wire adapter to retrieve the dependencies for an asset. * The dependencies resource returns only assets for which the user has view access. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_get_dependencies | getDependencies Documentation} */ export const getDependencies: LdsWireAdapter< GetDependenciesConfig, DependencyRepresentation >; /** * Configuration for the getRecipe wire adapter. * @param id The ID of the recipe. * @param format Specifies the format of the returned recipe. Valid values are `R2 or `R3`. The default is `R3`. */ export interface GetRecipeConfig { id: string; format?: string; } /** * Recipe conversion details during upconversion. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_responses_recipe_conversion_detail.htm | RecipeConversionDetailRepresentation Documentation} */ export interface RecipeConversionDetailRepresentation { /** Message */ message: string; /** Node name */ nodeName: string; /** Severity */ severity: string; } /** * Representation of 3.0 Recipe Definition. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_responses_recipe_definition.htm | RecipeDefinitionRepresentation Documentation} */ export interface RecipeDefinitionRepresentation { /** Recipe name */ name?: string; /** Recipe nodes */ nodes: { [key: string]: unknown; }; /** Recipe ui metadata */ ui: { [key: string]: unknown; }; /** Recipe version */ version: string; } /** * Validation detail on recipe graph or recipe node. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_responses_recipe_validation_detail.htm | RecipeValidationDetailRepresentation Documentation} */ export interface RecipeValidationDetailRepresentation { /** Message */ message?: string; /** Node name */ nodeName?: string; /** Node type */ nodeType?: string; /** Severity */ severity?: string; /** Validation action */ validationAction?: string; /** Validation code */ validationCode?: number; } /** * A Data Prep recipe. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_responses_recipe.htm | RecipeRepresentation Documentation} */ export interface RecipeRepresentation extends BaseWaveAssetRepresentation { /** The upconversion details when converting dataflow to R3 */ conversionDetails: Array; /** Last dataflow update. */ dataflowLastUpdate?: string; /** Target Dataset */ dataset?: AssetReferenceRepresentation; /** URL to get the recipe's file content. */ fileUrl?: string; /** The format of the recipe */ format?: string; /** The URL for the version histories associated with the recipe. */ historiesUrl?: string; /** The analytics license attributes associated with the recipe. */ licenseAttributes?: LicenseAttributesRepresentation; /** The next scheduled run of this recipe. */ nextScheduledDate?: string; /** The target format or system to publish to. Dataset, DataPool, or IoT. */ publishingTarget?: string; /** Recipe definition for 3.0 format */ recipeDefinition?: RecipeDefinitionRepresentation; /** The security predicate of the target dataset */ rowLevelSecurityPredicate?: string; /** The schedule cron expression current dataflow. */ schedule?: string; scheduleAttributes: | DailyScheduleRepresentation | EmptyScheduleRepresentation | EventDrivenScheduleRepresentation | HourlyScheduleRepresentation | MinutelyScheduleRepresentation | MonthlyRelativeScheduleRepresentation | MonthlySpecificScheduleRepresentation | WeeklyScheduleRepresentation; /** The schedule type of the recipe */ scheduleType?: string; /** dataflow from which the current recipe was upconverted to or was reverted from. */ sourceDataflow?: string; /** Recipe from which the current recipe was upconverted to or was reverted from. */ sourceRecipe?: string; /** The status of recipe. */ status?: string; /** Target Dataflow ID. */ targetDataflowId?: string; /** The validation details for the recipe 3.0 */ validationDetails: Array; } /** * Configuration for the getRecipeNotification wire adapter. * @param id The ID of the recipe. */ export interface GetRecipeNotificationConfig { id: string; } /** * Wire adapter to retrieve a specific CRM Analytics data prep recipe by ID. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_recipe | getRecipe Documentation} */ export const getRecipe: LdsWireAdapter; /** * Notification conditions on a recipe for the current user. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_responses_recipe_notification.htm | RecipeNotificationRepresentation Documentation} */ export interface RecipeNotificationRepresentation { /** Number of minutes that a recipe can run before sending an alert. */ longRunningAlertInMins?: number; /** Notification level for emails. */ notificationLevel: string; /** A reference to the Recipe that the notification belongs to. */ recipe: AssetReferenceRepresentation; } /** * Wire adapter to retrieve a Data Prep recipe job notification. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_resources_recipes_id_notification.htm | getRecipeNotification Documentation} */ export const getRecipeNotification: LdsWireAdapter< GetRecipeNotificationConfig, RecipeNotificationRepresentation >; /** * Configuration for the getRecipes wire adapter. * @param format Filters the collection to include only recipes of the specified format. Valid values are `R2` or `R3`. * @param licenseType The response includes dataflow jobs with this license type. Valid values are `EinsteinAnalytics` or `Sonic`. * @param page Generated token that indicates the view of recipes to be returned. * @param pageSize Number of items to be returned in a single page. Minimum is 1, maximum is 200, and the default is 25. * @param q Search terms. Individual terms are separated by spaces. A wildcard is automatically appended to the last token in the query string. * If the user’s search query contains quotation marks or wildcards, those symbols are automatically removed from the query string in * the URI along with any other special characters. * @param sort Sort order to apply to the collection results. * Valid values are `LastModified`, `LastModifiedBy`, `Mru` (Most Recently Used, last viewed date), or `Name`. */ export interface GetRecipesConfig { format?: string; lastModifiedAfter?: string; lastModifiedBefore?: string; licenseType?: string; nextScheduledAfter?: string; nextScheduledBefore?: string; page?: string; pageSize?: number; q?: string; sort?: string; status?: Array; } /** * A collection of Data Prep recipes. */ export interface RecipeCollectionRepresentation { nextPageUrl: string | null; recipes: Array; totalSize?: number | null; url: string; } /** * Wire adapter to retrieve a collection of CRM Analytics data prep recipes. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_recipes | getRecipes Documentation} */ export const getRecipes: LdsWireAdapter< GetRecipesConfig, RecipeCollectionRepresentation >; /** * Configuration for the getReplicatedDataset wire adapter. * @param id The ID of the replicated dataset. */ export interface GetReplicatedDatasetConfig { id: string; } /** * Wire adapter to retrieve a specific CRM Analytics replicated dataset by ID. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_replicated_dataset | getReplicatedDataset Documentation} */ export const getReplicatedDataset: LdsWireAdapter< GetReplicatedDatasetConfig, ReplicatedDatasetRepresentation >; /** * Configuration for the getReplicatedDatasets wire adapter. * @param category Filters the collection to include only connected objects of the specified category. Valid values are `Input` or `Output`. * @param connector Filters the collection to include only connected objects belonging to the specified CRM Analytics connector. * @param sourceObject Filters the collection to include only connected objects belonging to the specified source object. * @param q Search terms. Individual terms are separated by spaces. A wildcard is automatically appended to the last token. * @param includeLive Filters the collection to include live datasets. The default is false. */ export interface GetReplicatedDatasetsConfig { category?: string; connector?: string; q?: string; sourceObject?: string; includeLive?: boolean; } /** * A list of Replicated Datasets. */ export interface ReplicatedDatasetCollectionRepresentation { replicatedDatasets: Array; url: string; } /** * Wire adapter to retrieve a collection of CRM Analytics replicated datasets, also known as connected objects. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_replicated_datasets | getReplicatedDatasets Documentation} */ export const getReplicatedDatasets: LdsWireAdapter< GetReplicatedDatasetsConfig, ReplicatedDatasetCollectionRepresentation >; /** * Configuration for the getReplicatedFields wire adapter. * @param id The ID of the replicated dataset. */ export interface GetReplicatedFieldsConfig { id: string; } /** * Metadata/configuration for a single field of a Replicated Dataset. */ export interface ReplicatedFieldRepresentation extends AbstractFieldRepresentation { skipped: boolean; fieldType: "date" | "dateonly" | "datetime" | "numeric" | "text"; } /** * A list of Replicated Fields. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_replicateddatasets_id_fields.htm#ReplicatedFieldCollectionInputRepresentation#ReplicatedFieldCollectionRepresentation | ReplicatedFieldCollectionRepresentation Documentation} */ export interface ReplicatedFieldCollectionRepresentation { fields: Array; replicatedDataset: AssetReferenceRepresentation; url: string; } /** * Wire adapter to retrieve a list of fields for the specified connected object. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_replicated_fields | getReplicatedFields Documentation} */ export const getReplicatedFields: LdsWireAdapter< GetReplicatedFieldsConfig, ReplicatedFieldCollectionRepresentation >; /** * Configuration for the getSchedule wire adapter. * @param assetId The ID of the dataflow, recipe, or data sync. */ export interface GetScheduleConfig { assetId: string; } /** * Wire adapter to retrieve a schedule for a CRM Analytics recipe, dataflow, or data sync. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_schedule | getSchedule Documentation} */ export const getSchedule: LdsWireAdapter< GetScheduleConfig, ScheduleRepresentation >; /** * Configuration for the getSecurityCoverageDatasetVersion wire adapter. * @param datasetIdOrApiName The ID or developer name of the dataset. * @param versionId The ID of the dataset version. */ export interface GetSecurityCoverageDatasetVersionConfig { datasetIdOrApiName: string; versionId: string; } /** * Reference to a dataset version. */ export interface DatasetVersionReferenceRepresentation { dataset: AssetReferenceRepresentation; id: string; url: string; } /** * Output representation of sharing usage of instances of objects based on insights limits. */ export interface UnsupportedRecordRepresentation { descriptorCount: number; id: string; } /** * Output representation of objects not supported by sharing inheritance based on insights limits. */ export interface UnsupportedRecordCollectionRepresentation { count: number; values: Array; } /** * Security coverage for an object. */ export interface ObjectCoverageRepresentation { eligibleSharingSource: boolean; label: string; name: string; namespace?: string; securityFields: Array; unsupportedRecords?: UnsupportedRecordCollectionRepresentation; url: string; } /** * Source from which a dataset is constructed. */ export interface DatasetSourceRepresentation { object: ObjectCoverageRepresentation; securityFields: Array; } /** * Security coverage for a dataset version. */ export interface DatasetCoverageRepresentation { datasetVersion: DatasetVersionReferenceRepresentation; sources: Array; url: string; } /** * Wire adapter to retrieve the security coverage, also known as sharing inheritance, for a particular dataset version. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_get_security_coverage_dataset_version | getSecurityCoverageDatasetVersion Documentation} */ export const getSecurityCoverageDatasetVersion: LdsWireAdapter< GetSecurityCoverageDatasetVersionConfig, DatasetCoverageRepresentation >; /** * Configuration for the getWaveFolders wire adapter. * @param isPinned Filters the collection to include only folders which are pinned (`true`) or not (`false`). The default is `false`. * @param mobileOnlyFeaturedAssets Filters the collection to only contain folders which contain dashboards that are enabled for the * CRM Analytics mobile app. The default is `false`. * @param page Generated token that indicates the view of folders to be returned. * @param pageSize Number of items to be returned in a single page. Minimum is 1, maximum is 200, and the default is 25. * @param q Search terms. Individual terms are separated by spaces. A wildcard is automatically appended to the last token in the query string. * If the user’s search query contains quotation marks or wildcards, those symbols are automatically removed from the query string in * the URI along with any other special characters. * @param scope Scope type to apply to the collection results. * Valid values are `CreatedByMe`, `Favorites`, `IncludeAllPrivate`, `Mru` (Most Recently Used), or `SharedWithMe`. * @param sort Sort order to apply to the collection results. * Valid values are `LastModified`, `LastModifiedBy`, `Mru` (Most Recently Used, last viewed date), or `Name`. * @param templateSourceId Filters the collection to include only folders that are created from a specific template source */ export interface GetWaveFoldersConfig { isPinned?: boolean; mobileOnlyFeaturedAssets?: boolean; page?: string; pageSize?: number; q?: string; scope?: string; sort?: string; templateSourceId?: string; } /** * Wave action representation. */ export interface AppLogRepresentation { message: string; } /** * An instantiated version of a Wave share. */ export interface WaveFolderShareRepresentation { accessType: string; imageUrl: string; shareType: string; sharedWithId: string; sharedWithLabel: string; } /** * Representation for a single Wave analytics folder or application. */ export interface WaveFolderRepresentation extends BaseWaveAssetRepresentation { appLog?: Array; applicationStatus: string; attachedFiles: Array; canBeSharedExternally: boolean; defaultAsset?: AssetReferenceRepresentation; featuredAssets: { [key: string]: unknown; }; icon: AssetReferenceRepresentation; installationHistoryUrl?: string | null; isPinned: boolean; shares: Array; templateOptions: unknown; templateSourceId?: string; templateValues: { [key: string]: unknown; }; templateVersion?: string; usageUrl?: string; type: "WaveFolder"; } /** * Representation for a collection of Wave analytics folders or applications. */ export interface WaveFolderCollectionRepresentation { folders: Array; nextPageUrl: string | null; totalSize?: number; url: string; } /** * Wire adapter to retrieve a collection of CRM Analytics apps or folders. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_wave_folders | getWaveFolders Documentation} */ export const getWaveFolders: LdsWireAdapter< GetWaveFoldersConfig, WaveFolderCollectionRepresentation >; /** * Configuration for the getWaveTemplate wire adapter. * @param templateIdOrApiName The ID or developer name of the template. * @param options Template visibility options to apply to the collection results. * Valid values are `CreateApp`, `ManageableOnly`, or `ViewOnly`. */ export interface GetWaveTemplateConfig { templateIdOrApiName: string; options?: string; } /** * Representation for template extra metadata. */ export interface TemplateCustomAttributesRepresentation { label: string | null; values: Array; } /** * An Analytics template asset reference. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_asset_reference.htm | TemplateAssetReferenceRepresentation Documentation} */ export interface TemplateAssetReferenceRepresentation { /** The 18 character ID of the asset. */ id?: string; /** The asset label. */ label?: string; /** The asset developer name. */ name?: string; /** The namespace that qualifies the asset name */ namespace?: string; /** The asset URL. */ url?: string; } /** * Image reference representation. */ export interface ImageAssetReferenceRepresentation extends TemplateAssetReferenceRepresentation { description?: string; } /** * Representation for describing the icons configured for a wave template. */ export interface TemplateIconsRepresentation { appBadge: TemplateAssetReferenceRepresentation | null; templateBadge: TemplateAssetReferenceRepresentation | null; templatePreviews: Array; } /** * Representation for a wave templates release information. */ export interface TemplateReleaseRepresentation { notesUrl: string | null; templateVersion: string | null; } /** * Representation for describing a particular video. */ export interface VideoInfoRepresentation { id: string; label: string; linkType: string; purpose: string; showPlaylist: boolean; } /** * Representation for a single Wave analytics template. */ export interface TemplateRepresentation { assetVersion: number; configurationUrl: string; createdBy: WaveUserRepresentation | null; createdDate: string | null; customAttributes: Array; description: string | null; folderSource: AssetReferenceRepresentation | null; icons: TemplateIconsRepresentation; id: string; label: string; lastModifiedBy: WaveUserRepresentation | null; lastModifiedDate: string | null; name: string; namespace: string | null; releaseInfo: TemplateReleaseRepresentation; tags: Array; templateType: string; url: string; videos: Array; } /** * Wire adapter to retrieve a CRM Analytics template. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_get_wave_template | getWaveTemplate Documentation} */ export const getWaveTemplate: LdsWireAdapter< GetWaveTemplateConfig, TemplateRepresentation >; /** * Configuration for the getWaveTemplateConfig wire adapter. * @param templateIdOrApiName The ID or developer name of the template. * @param disableApex Indicates whether Apex integration hooks are disabled (true) or not (false). * @param options Template visibility options to apply to the collection results. * Valid values are `CreateApp`, `ManageableOnly`, or `ViewOnly`. */ export interface GetWaveTemplateConfigConfig { templateIdOrApiName: string; disableApex?: boolean; options?: string; } /** * Configuration for the guidance panel on wizard pages. */ export interface GuidancePanelRepresentation { backgroundImage?: TemplateAssetReferenceRepresentation | null; items: Array; title: string; } /** * Configuration for how a page appears in the navigation panel. */ export interface PageNavigationInfoRepresentation { label?: string; parentLabel?: string; } /** * Configuration for the app details page in the wizard. */ export interface AppDetailsRepresentation { guidancePanel?: GuidancePanelRepresentation | null; navigation?: PageNavigationInfoRepresentation | null; } /** * Representation for a display message in the ui configuration of a wave template. */ export interface DisplayMessageRepresentation { location: string | null; text: string | null; } /** * Configuration for the navigation panel in the wizard. */ export interface NavigationPanelRepresentation { title?: string; } /** * Representation for UI definition of Wave templates with layout support. */ export interface UiLayoutDefinitionRepresentation { appDetails?: AppDetailsRepresentation; displayMessages: Array; navigationPanel?: NavigationPanelRepresentation; pages: Array; } /** * Representation for a page variable in the page definition which is part of a wave template. */ export interface PageVariableRepresentation { name: string; visibility: string | null; } /** * Representation for a single page layout definition for Wave templates. */ export interface PageRepresentation { condition: string | null; helpUrl: string | null; title: string; variables: Array; vfPage: TemplateAssetReferenceRepresentation | null; } /** * Representation for UI definition of Wave templates. */ export interface UiDefinitionRepresentation { displayMessages: Array; pages: Array; } /** * Representation for Wave analytics template configuration. */ export interface TemplateConfigurationRepresentation { id: string; layout: UiLayoutDefinitionRepresentation | null; name: string; namespace: string | null; ui: UiDefinitionRepresentation; variables: { [key: string]: unknown; }; } /** * Wire adapter to retrieve the configuration for a CRM Analytics template. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_get_wave_template_config | getWaveTemplateConfig Documentation} */ export const getWaveTemplateConfig: LdsWireAdapter< GetWaveTemplateConfigConfig, TemplateConfigurationRepresentation >; /** * Configuration for the getWaveTemplateReleaseNotes wire adapter. * @param templateIdOrApiName The ID or developer name of the template. */ export interface GetWaveTemplateReleaseNotesConfig { templateIdOrApiName: string; } /** * Representation for a wave template's release notes. */ export interface TemplateReleaseNotesRepresentation { id: string; name: string; namespace: string | null; notes: string | null; } /** * Wire adapter to retrieve the release notes for a CRM Analytics template. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_get_wave_template_release_notes | getWaveTemplateReleaseNotes Documentation} */ export const getWaveTemplateReleaseNotes: LdsWireAdapter< GetWaveTemplateReleaseNotesConfig, TemplateReleaseNotesRepresentation >; /** * Configuration for the getWaveTemplates wire adapter. * @param options Template visibility options to apply to the collection results. * Valid values are `CreateApp`, `ManageableOnly`, or `ViewOnly`. * @param type Template type to apply to the collection results. * Valid values are `App`, `Dashboard`, `Data`, `Embedded`, or `Lens`. */ export interface GetWaveTemplatesConfig { options?: string; type?: string; } /** * Representation for Wave analytics application templates. */ export interface TemplateCollectionRepresentation { templates: Array; } /** * Wire adapter to retrieve a collection of CRM Analytics templates. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_get_wave_templates | getWaveTemplates Documentation} */ export const getWaveTemplates: LdsWireAdapter< GetWaveTemplatesConfig, TemplateCollectionRepresentation >; /** * Configuration for the getXmd wire adapter. * @param datasetIdOrApiName The ID or developer name of the dataset. * @param versionId The ID of the dataset version. * @param xmdType The xmd type. Valid values are `Asset`, `Main`, `System`, or `User`. */ export interface GetXmdConfig { datasetIdOrApiName: string; versionId: string; xmdType: string; } /** * Extended Metadata (Xmd) for a Dataset Version. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_xmd.htm | XmdRepresentation Documentation} */ export interface XmdRepresentation { /** Represents the creator of this Xmd */ createdBy: WaveUserRepresentation; /** Time the Xmd was created */ createdDate: string; /** Locale specific information about the Dataset represented by this xmd. */ dataset: XmdDatasetRepresentation; /** List of dates with formatting information. */ dates: Array; /** List of derived dimensions with formatting information. */ derivedDimensions: Array; /** List of derived measures with formatting information. */ derivedMeasures: Array; /** List of dimensions with formatting information. */ dimensions: Array; /** Message if there was error copying forward the current version's user xmd to the newly created version. */ errorMessage?: string; /** The type of language this xmd is localized for */ language: string; /** Represents the user who last modified this Xmd */ lastModifiedBy: WaveUserRepresentation; /** Time the Xmd was last modified */ lastModifiedDate: string; /** List of measures with formatting information. */ measures: Array; /** List of organizations for multi organization support. */ organizations: Array; /** Ordered list of Dimensions and Measures. Represents the default order to show them in the UI. */ showDetailsDefaultFields: Array; /** The type of Xmd (Main, User, System) */ type: string; /** Location where this XMD is stored. */ url: string; } /** * Wire adapter to retrieve a specific CRM Analytics extended metadata type (Xmd) for a version of a dataset. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_wire_adapters_get_xmd | getXmd Documentation} */ export const getXmd: LdsWireAdapter; /** * Wire adapter to updates CRM Analytics connectors. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_update_data_connector | updateDataConnector Documentation} */ export const updateDataConnector: ({ connectorIdOrApiName, dataConnector, }: { connectorIdOrApiName: string; dataConnector: DataConnectorInputRepresentation; }) => Promise; /** * Updates a CRM Analytics dataflow job, which is the equivalent of clicking Stop for a data prep recipe, a data sync, or a dataflow in the CRM Analytics Data Manager UI. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_update_dataflow_job | updateDataflowJob Documentation} * @param dataflowJobId The dataflow job ID. * @param dataflowJob The dataflow job to update. * @returns A promise that will resolve to the dataflow job response. */ export const updateDataflowJob: ({ dataflowJobId, dataflowJob, }: { dataflowJobId: string; dataflowJob: DataflowJobInputRepresentation; }) => Promise; /** * Updates a specific CRM Analytics dataset by ID. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_analytics_update_dataset | updateDataset Documentation} * @param datasetIdOrApiName The ID or API name of the dataset. * @param dataset The dataset to update. * @returns A promise that will resolve to the dataset response. */ export const updateDataset: ({ datasetIdOrApiName, dataset, }: { datasetIdOrApiName: string; dataset: DatasetInputRepresentation; }) => Promise; /** * Input representation for wave Dataset Version. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_dataset_version_input.htm | DatasetVersionInputRepresentation Documentation} */ export interface DatasetVersionInputRepresentation { /** Indicates whether the Dataset Version is complete */ isComplete?: boolean; /** The row level security predicate to be applied to this Dataset Version. */ predicate?: string; /** Entity from which sharing rules should be inherited */ sharingSource?: AssetReferenceInputRepresentation | null; /** The total number of rows for the dataset version */ totalRowCount?: number; } /** * Updates a specific CRM Analytics dataset version by dataset ID and version ID. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_analytics_update_dataset_version | updateDatasetVersion Documentation} * @param datasetIdOrApiName The ID or API name of the dataset. * @param versionId The ID of the dataset version. * @param datasetVersion The dataset version to update. * @returns A promise that will resolve to the dataset version response. */ export const updateDatasetVersion: ({ datasetIdOrApiName, versionId, datasetVersion, }: { datasetIdOrApiName: string; versionId: string; datasetVersion: DatasetVersionInputRepresentation; }) => Promise; /** * Input representation for wave folders. */ export interface WaveFolderInputRepresentation { [key: string]: unknown; } /** * Performs a partial a specific CRM Analytics folder by ID. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_analytics_update_partial_wave_folder | updatePartialWaveFolder Documentation} * @param folderId The ID of the wave folder. * @param folder The wave folder to update. * @returns A promise that will resolve to the wave folder response. */ export const updatePartialWaveFolder: ({ folderId, folder, }: { folderId: string; folder: WaveFolderInputRepresentation; }) => Promise; /** * The conversion detail that will be kept. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_requests_recipe_conversion_detail_input.htm | RecipeConversionDetailInputRepresentation Documentation} */ export interface RecipeConversionDetailInputRepresentation { /** conversion detail id */ conversionDetailId: number; /** conversion detail message */ message: string; /** conversion detail node name */ nodeName: string; /** conversion detail severity */ severity?: string; } /** * Input representation for analytics license attributes. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_requests_license_attributes_input.htm | LicenseAttributesInputRepresentation Documentation} */ export interface LicenseAttributesInputRepresentation { /** Analytics license type associated with the asset. */ type: string; } /** * Format for symbols. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_requests_schema_field_format_symbols_input.htm | SchemaFormatSymbolsInputRepresentation Documentation} */ export interface SchemaFormatSymbolsInputRepresentation { /** Currency symbol format */ currencySymbol?: string; /** Decimal symbol format */ decimalSymbol?: string; /** Grouping symbol format */ groupingSymbol?: string; } /** * Cast for types. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_requests_schema_field_type_properties_input.htm | SchemaTypePropertiesCastInputRepresentation Documentation} */ export interface SchemaTypePropertiesCastInputRepresentation { /** DateTime Format */ format?: string; /** Total length of text */ length?: number; /** Length of arbitrary precision value */ precision?: number; /** Number of digits to right of decimal point */ scale?: number; /** Number Format */ symbols?: SchemaFormatSymbolsInputRepresentation; /** DataType to Convert to */ type?: string; } /** * Common field properties. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_requests_schema_field_properties_input.htm | SchemaFieldPropertiesInputRepresentation Documentation} */ export interface SchemaFieldPropertiesInputRepresentation { /** Field label */ label?: string; /** Field name */ name?: string; typeProperties: SchemaTypePropertiesCastInputRepresentation; } /** * Schema node field. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_requests_schema_field_parameters_input.htm | SchemaFieldParametersInputRepresentation Documentation} */ export interface SchemaFieldParametersInputRepresentation { /** Value to output on error */ errorValue?: string; /** Schema field name */ name?: string; /** Field Properties */ newProperties?: SchemaFieldPropertiesInputRepresentation; } /** * Slice definition. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_requests_schema_slice_input.htm | SchemaSliceInputRepresentation Documentation} */ export interface SchemaSliceInputRepresentation { /** Fields for SELECT or DROP */ fields: Array; /** Ignore missing fields */ ignoreMissingFields?: boolean; /** Slice mode SELECT or DROP */ mode?: string; } /** * Schema Node in Recipes. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_requests_schema_parameters_input.htm | SchemaParametersInputRepresentation Documentation} */ export interface SchemaParametersInputRepresentation { /** Schema Fields */ fields: Array; slice?: SchemaSliceInputRepresentation; } /** * Represents a single step used in building a dashboard. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_requests_recipe_node_input.htm | RecipeNodeInputRepresentation Documentation} */ export interface RecipeNodeInputRepresentation { /** Node action. */ action: string; schema?: SchemaParametersInputRepresentation; /** Source node ids. */ sources: Array; } /** * Input representation of 3.0 Recipe Definition format. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_requests_recipe_definition_input.htm | RecipeDefinitionInputRepresentation Documentation} */ export interface RecipeDefinitionInputRepresentation { /** Recipe Name */ name: string; /** Recipe nodes */ nodes: { [key: string]: RecipeNodeInputRepresentation; }; /** Recipe ui metadata */ ui: { [key: string]: unknown; }; /** Recipe version */ version: string; } /** * Input representation of a Data Prep recipe. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_requests_recipe_input.htm | RecipeInputRepresentation Documentation} */ export interface RecipeInputRepresentation { /** The list of conversion detail ids that will be kept */ conversionDetails?: Array; /** The recipe's dataflow definition. */ dataflowDefinition?: string; /** The recipe's execution engine. Spark or Dataflow. */ executionEngine?: string; /** The recipe's file content, base64 encoded. Consider using multipart form data instead. */ fileContent?: string; /** The recipe's publish folder. */ folder?: AssetReferenceInputRepresentation; /** Recipe format type (2.0 or 3.0) */ format?: string; /** A short label for the recipe. */ label?: string; /** An optional representation to tag the license attributes of the recipe being saved. */ licenseAttributes?: LicenseAttributesInputRepresentation; /** The name of the recipe. */ name?: string; /** Target system or format to publish the recipe to. Dataset, DataPool, or IoT */ publishingTarget?: string; /** Recipe definition for 3.0 format */ recipeDefinition?: RecipeDefinitionInputRepresentation; /** The recipe's target dataset's security predicate. */ rowLevelSecurityPredicate?: string; /** The recipe's schedule dataflow run. */ schedule?: string; /** The source dataflow asset which will be converted to the recipe 3.0 */ sourceDataflow?: AssetReferenceInputRepresentation; } /** * Updates a specific CRM Analytics recipe by ID. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_analytics_update_recipe | updateRecipe Documentation} * @param id The ID of the recipe. * @param enableEditorValidation Indicates whether editor validation for the recipe is enabled (true) or not ( false). * @param validationContext The recipe validation context. Valid values are `Default` or `Editor`. * @param recipeObject The recipe to update. * @returns A promise that will resolce to the recipe response. */ export const updateRecipe: ({ id, enableEditorValidation, validationContext, recipeObject, }: { id: string; enableEditorValidation?: boolean; validationContext?: string; recipeObject: RecipeInputRepresentation; }) => Promise; /** * Input required to create recipe notifications that are sent to the current user. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_requests_recipe_notification_input.htm | RecipeNotificationInputRepresentation Documentation} */ export interface RecipeNotificationInputRepresentation { /** Number of minutes that a recipe can run before sending an alert. */ longRunningAlertInMins?: number | null; /** Notification level for emails. */ notificationLevel: string; } /** * Updates a Data Prep recipe job notification. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.salesforce_recipes_api.meta/salesforce_recipes_api/sforce_recipes_api_resources_recipes_id_notification.htm | updateRecipeNotification Documentation} * @param id The ID of the recipe. * @param recipeNotification The recipe notification to update. * @returns A promise that will resolve to the recipe notification response. */ export const updateRecipeNotification: ({ id, recipeNotification, }: { id: string; recipeNotification: RecipeNotificationInputRepresentation; }) => Promise; /** * A list of configuration metadata that specifies how to replicate each field of a Replicated Dataset. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_replicateddatasets_id_fields.htm#ReplicatedFieldCollectionInputRepresentation | ReplicatedFieldCollectionInputRepresentation Documentation} */ export interface ReplicatedFieldCollectionInputRepresentation { fields: Array; } /** * Wire adapter to update the CRM Analytics replicated dataset. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_update_replicated_dataset | updateReplicatedDataset Documentation} * @param id The ID of the replicated dataset. * @param replicatedDataset.advancedProperties List of user-specified advanced properties associated with this. * @param replicatedDataset.connectionMode Connection mode for pulling the data from the replicated dataset. * @param replicatedDataset.connectorId The id of the connector object used to replicate. * @param replicatedDataset.fullRefresh Whether to perform a one-time full refresh (during the next run) as opposed to incremental. * @param replicatedDataset.passThroughFilter Passthrough filter for the replicated object. * @param replicatedDataset.rowLevelSharing Inherit row level sharing rules for this object. * @param replicatedDataset.sourceObjectName The name of the source object to be replicated. * @returns A promise that will resolve to the replicated dataset response. */ export const updateReplicatedDataset: ({ id, replicatedDataset, }: { id: string; replicatedDataset: ReplicatedDatasetInputRepresentation; }) => Promise; /** * Wire adapter to update the CRM Analytics replicated fields. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_update_replicated_dataset_fields | updateReplicatedFields Documentation} * @param id The ID of the replicated dataset. * @param replicatedFields.fields A list of configuration metadata that specifies how to replicate each field of a Replicated Dataset. * @returns A promise that will resolve to the replicated fields response. */ export const updateReplicatedFields: ({ id, replicatedFields, }: { id: string; replicatedFields: ReplicatedFieldCollectionInputRepresentation; }) => Promise; /** * Input representation for specifying a schedule on which to execute some type of job. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#ScheduleInputRepresentation | ScheduleInputRepresentation Documentation} */ export interface ScheduleInputRepresentation { /** Frequency on which this schedule is run. This is case-insensitive. */ frequency: string; /** Level of subscription for the related job. */ notificationLevel?: string; /** When the schedule should be run. */ time?: { [key: string]: unknown; }; } /** * Updates the schedule for a CRM Analytics data prep recipe, data sync, or dataflow. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_update_schedule | updateSchedule Documentation} * @param assetId The ID of the dataflow, recipe, or data sync. * @param schedule The schedule to create or update for the dataflow, recipe, or data sync. Use a * {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_resources_appendix.htm#ScheduleInputRepresentation|ScheduleInputRepresentation}. * Schedules are hourly, daily, weekly, monthly (relative), monthly (specific), and event based. * @returns A promise that will resolve to the schedule response. */ export const updateSchedule: ({ assetId, schedule, }: { assetId: string; schedule: ScheduleInputRepresentation; }) => Promise< | DailyScheduleRepresentation | EmptyScheduleRepresentation | EventDrivenScheduleRepresentation | HourlyScheduleRepresentation | MinutelyScheduleRepresentation | MonthlyRelativeScheduleRepresentation | MonthlySpecificScheduleRepresentation | WeeklyScheduleRepresentation >; /** * Updates a specific CRM Analytics folder by ID.. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_analytics_update_wave_folder | updateWaveFolder Documentation} * @param id The ID of the wave folder. * @param waveFolder The wave folder to update. * @returns A promise that will resolve to the wave folder response. */ export const updateWaveFolder: ({ folderId, folder, }: { folderId: string; folder: WaveFolderInputRepresentation; }) => Promise; /** * Updates a specific CRM Analytics user Xmd by dataset ID. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_analytics_update_xmd | updateXmd Documentation} * @param datasetIdOrApiName The ID or developer name of the dataset. * @param versionId The ID of the dataset version. * @param xmdType The xmd type. Valid values are `Asset`, `Main`, `System`, or `User`. * @param xmd The xmd to update. * @returns A promise that will resolve to the xmd response. */ export const updateXmd: ({ datasetIdOrApiName, versionId, xmdType, xmd, }: { datasetIdOrApiName: string; versionId: string; xmdType: string; xmd: XmdInputRepresentation; }) => Promise; /** * Representation for individual validation task. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_template_readiness_item.htm | TemplateReadinessItemRepresentation Documentation} */ export interface TemplateReadinessItemRepresentation { /** The icon/image associated with the validation task. */ image: TemplateAssetReferenceRepresentation | null; /** The task specific label. */ label: string | null; /** The task specific message. */ message: string | null; /** The status for the readiness task */ readinessStatus: string | null; /** The collection of tags describing the purpose of the validation. */ tags: Array; /** The task specific type, associated with readiness check type. */ type: string | null; } /** * Representation for a single Wave Template verification. * @see {@link https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_responses_template_validate.htm | TemplateValidateRepresentation Documentation} */ export interface TemplateValidateRepresentation { /** The ID or fully qualified API name of this template. */ id: string; /** The individual validation tasks for this template */ tasks: Array; } /** * Validates an Analytics template for org readiness. * @see {@link https://developer.salesforce.com/docs/component-library/documentation/en/lwc/reference_analytics_validate_wave_template | validateWaveTemplate Documentation} * @param templateIdOrApiName The ID of template to retrieve the validation value for. * @param templateValidateParam The input to validate an Analytics template. * @param templateValidateParam.values A map of runtime template values to use during validation. These values override any default values. * @returns A promise that will resolve to the template validate response. */ export const validateWaveTemplate: ({ templateIdOrApiName, templateValidateParam, }: { templateIdOrApiName: string; templateValidateParam: { values?: { [key: string]: unknown } }; }) => Promise; }