import { AddinClientReadyArgs } from './addin-client-ready-args'; import { AddinClientThemeSettings } from './addin-client-theme-settings'; import { AddinType } from './addin-type'; /** * Interface for contextual information that will be provided in the init callback. */ export interface AddinClientInitArgs { /** * The environment id of the host page. */ envId?: string; /** * Additional context of the host page, which will vary for different extension points. */ context?: any; /** * Identifies the canonical pattern in which the host displays the add-in. * Undefined when the host does not provide it or provides a type this client does not recognize. */ addinType?: AddinType; /** * Event types that are supported by the host page. */ supportedEventTypes?: string[]; /** * The UX theme of the host page, which will vary for different extension points. */ themeSettings?: AddinClientThemeSettings; /** * Call to inform the add-in client that the add-in is initialized and ready to be shown. * @param args Arguments describing how the add-in should render. */ ready: (args: AddinClientReadyArgs) => void; }