@looker/embed-services
Version:
33 lines (32 loc) • 1.05 kB
TypeScript
export declare enum ContentType {
Look = "look",
Explore = "explore",
Dashboard = "dashboard",
Invalid = "invalid"
}
export interface IEmbedUrl {
readonly url: string;
readonly path: string;
readonly searchParams: Record<string, string>;
readonly isDashboard: boolean;
readonly isExplore: boolean;
readonly isLook: boolean;
readonly contentType: ContentType;
readonly isThemable: boolean;
embedUrl(includeSearchParams: boolean, overrides: Record<string, any>): string;
}
export declare class EmbedUrl implements IEmbedUrl {
private _url;
readonly path: string;
readonly searchParams: Record<string, string>;
readonly isDashboard: boolean;
readonly isExplore: boolean;
readonly isLook: boolean;
readonly isThemable: boolean;
readonly contentType: ContentType;
private readonly _embedUrl;
constructor(url?: string);
get url(): string;
protected type(): ContentType;
embedUrl(includeSearchParams?: boolean, overrides?: Record<string, any>): string;
}