import { EmbedBuilder } from './embed_builder' ; import { LookerEmbedDashboard } from './dashboard_client' ; import { LookerEmbedExplore } from './explore_client' ; import { LookerEmbedExtension } from './extension_client' ; import { LookerEmbedLook } from './look_client' ; import { LookerAuthConfig } from './types' ; export type { LookerEmbedDashboard } from './dashboard_client' ; export type { LookerEmbedExplore } from './explore_client' ; export type { LookerEmbedExtension } from './extension_client' ; export type { LookerEmbedLook } from './look_client' ; export * from './types' ; export class LookerEmbedSDK { param apiHost param authUrl static init ( apiHost , auth ? ) { this . apiHost = apiHost ; this . auth = typeof auth === 'string' ? { url : auth } : auth ; } param url static createDashboardWithUrl ( url ) { return new EmbedBuilder < LookerEmbedDashboard > ( this , 'dashboard' , '/embed/dashboards' , LookerEmbedDashboard ) . withUrl ( url ) ; } param id static createDashboardWithId ( id ) { return new EmbedBuilder < LookerEmbedDashboard > ( this , 'dashboard' , '/embed/dashboards' , LookerEmbedDashboard ) . withId ( id ) ; } param url static createExploreWithUrl ( url ) { return new EmbedBuilder < LookerEmbedExplore > ( this , 'explore' , '/embed/explore' , LookerEmbedExplore ) . withUrl ( url ) ; } param id static createExploreWithId ( id ) { id = id . replace ( '::' , '/' ) ; return new EmbedBuilder < LookerEmbedExplore > ( this , 'explore' , '/embed/explore' , LookerEmbedExplore ) . withId ( id ) ; } param url static createLookWithUrl ( url ) { return new EmbedBuilder < LookerEmbedLook > ( this , 'look' , '/embed/looks' , LookerEmbedLook ) . withUrl ( url ) ; } param id static createLookWithId ( id ) { return new EmbedBuilder < LookerEmbedLook > ( this , 'look' , '/embed/looks' , LookerEmbedLook ) . withId ( id ) ; } param url static createExtensionWithUrl ( url ) { return new EmbedBuilder < LookerEmbedExtension > ( this , 'extension' , '/embed/extensions' , LookerEmbedExtension ) . withUrl ( url ) ; } param id static createExtensionWithId ( id ) { return new EmbedBuilder < LookerEmbedExtension > ( this , 'extension' , '/embed/extensions' , LookerEmbedExtension ) . withId ( id ) ; } hidden static apiHost : string ; hidden static auth ? : LookerAuthConfig ; }