import { SxcInstance, SxcRoot } from "@2sic.com/2sxc-typings"; /** * The context in which the current app is running. * Important to interact with the server * or with the DNN around it. */ export interface ContextInfo { /** * The $2sxc root object which is globally accessible through window.$2sxc */ $2sxc: SxcRoot; /** * the helper sxc-object to communicate with the server */ sxc: SxcInstance; /** * If false, does not append any custom headers to DNN requests */ addHttpHeaders: boolean; /** * Replace app name in path; replaces /app/auto/ */ appNameInPath: string; /** * the edition of the current app - if you are working with polymorph editions */ edition: string; /** * the edition to be used in the api * usually it's the same as the edition, but in same cases you may want to use another edition, especially when developing */ apiEdition: string; /** * The id of the current module */ moduleId: number; /** * The content block id of the current block */ contentBlockId: number; /** * Location for the angular files * * New in v11.01 * @type {string} * @memberof ContextInfo */ angularPath?: string; }