import { ProxyVersions } from '@vtex/raccoon-core' export interface AdminContext { /** * The account in which the app is running */ account: string /** * The workspace in which the app is running */ workspace: string /** * The locale of the current user. This information * comes from the Sales Channel. */ locale?: string /** * The currency of the current user. This information * comes from the Sales Channel. */ currency?: string /** * The country of the current user. This information * comes from the Sales Channel. */ country?: string /** * VTEX ID token from the user */ token: string /** * The production URL of the app */ prodUrl: string /** * The development URL of the app */ devUrl?: string /** * Whether the app is running in production mode */ production: boolean /** * The base path of the application relative to the admin * It is the app's path that appears on the admin sidebar * @example * /admin/rocket */ basePath: string /** * The top window href of the admin * @example * https://teamadmin.myvtex.com/admin/rocket */ topWindowHref: string /** * The current path relative to the admin * @example * /admin/rocket/nextjs-internal-route */ path?: string proxy?: ProxyOptions } export interface AdminIframeEvent { type: 'admin-iframe-message' data: AdminContext } export interface ProxyOptions { version: ProxyVersions appUrl: string } export interface BootstrapOptions { /** * Proxy version to be used by the application. * * Enable this option if you want your application to be served * under *.myvtex.com. * * @default undefined */ proxy?: ProxyOptions /** * Render mode to be used by the application. * * @default 'client' */ renderMode?: 'client' /** * Enable Activity Flow script load in development mode. * * In production, the Activity Flow script is always loaded. * In development, it is disabled by default to avoid polluting metrics. * Enable this option if you need to capture events during development. * * @default true */ enableActivityFlow?: boolean }