import { LookerDashboardOptions , LookerEmbedFilterParams } from './types' ; import { LookerEmbedBase } from './embed_base' ; /**
 * Client that communicates with an embedded Looker dashboard. Messages are documented
 * [here](https://docs.looker.com/r/sdk/events)
 */ export class LookerEmbedDashboard extends LookerEmbedBase { /**
     * Convenience method for sending a run message to the embedded dashboard.
     */ run ( ) { this . send ( 'dashboard:run' ) ; } /**
     * Convenience method for sending a stop message to the embedded dashboard.
     *
     * Requires Looker 7.14 and Dashboards Next (see [[EmbedBuilder.withNext]]).
     */ stop ( ) { this . send ( 'dashboard:stop' ) ; } param filters updateFilters ( params ) { this . send ( 'dashboard:filters:update' , { filters : params } ) ; } param options setOptions ( options ) { this . send ( 'dashboard:options:set' , options ) ; } /**
     * Convenience method for opening the dashboard schedule dialog.
     *
     * Requires Looker 7.18 and Dashboards Next (see [[EmbedBuilder.withNext]]).
     */ async openScheduleDialog ( ) { return this . sendAndReceive ( 'dashboard:schedule_modal:open' ) ; } param id param pushHistory async loadDashboard ( id , pushHistory = false ) { return this . sendAndReceive ( 'dashboard:load' , { id , pushHistory } ) ; } }