/**
 * List of all possible calls from the page to the host.
 */
export var EPageToHostCmd;
(function (EPageToHostCmd) {
    // NOTE. Do NOT change existing enum values when introducing new ones!
    /** Host should store the current page state. Data: any */
    EPageToHostCmd[EPageToHostCmd["StorePageState"] = 1000] = "StorePageState";
    /** Host should answer with PageState. */
    EPageToHostCmd[EPageToHostCmd["RequestPageState"] = 1001] = "RequestPageState";
    /** Host should store the session state of the module. Data: any */
    EPageToHostCmd[EPageToHostCmd["StoreSessionState"] = 1100] = "StoreSessionState";
    /** Host should add the data to the storage of the module. Data: any */
    EPageToHostCmd[EPageToHostCmd["AddSessionState"] = 1101] = "AddSessionState";
    /** Host should answer with SessionState. */
    EPageToHostCmd[EPageToHostCmd["RequestSessionState"] = 1102] = "RequestSessionState";
    /** Like StoreSessionState, but saved outside the session */
    EPageToHostCmd[EPageToHostCmd["StoreClientState"] = 1110] = "StoreClientState";
    /** Like AddSessionState, but saved outside the session */
    EPageToHostCmd[EPageToHostCmd["AddClientState"] = 1111] = "AddClientState";
    /** Like RequestSessionState, but loaded from outside the session */
    EPageToHostCmd[EPageToHostCmd["RequestClientState"] = 1112] = "RequestClientState";
    /** Host should notice the next logical page to load when the user pushes the Next button. Data: url:string} */
    EPageToHostCmd[EPageToHostCmd["NextPageUrl"] = 1200] = "NextPageUrl";
    /**
     * Host should immediatly load the given page and set the new progress if given.
     * Data = {url: string, newProgress?: number, rollBackHistory?: boolean (default: false)} or
     * Data = url: string
     * (rollBackHistory deletes the last entries of the page history list
     * until the last visit of the given url.
     * Example:
     * - PageHistory is [A, B, C]
     * - LoadPageUrl {url: B, rollBackHistory: false} leads to history [A, B, C, B]
     * - LoadPageUrl {url: B, rollBackHistory: true} leads to history [A, B]
     * )
     */
    EPageToHostCmd[EPageToHostCmd["LoadPageUrl"] = 1201] = "LoadPageUrl";
    /** Host should answer with the current page url (the same that has been loaded with LoadPageUrl) */
    EPageToHostCmd[EPageToHostCmd["RequestCurrentPageUrl"] = 1202] = "RequestCurrentPageUrl";
    /** Host should update the progress control. 100 tells the Host that the Module is on it's last page.
     * So the host may change button labels, e.g. from Next to Submit, etc.
     * Data: number (percentage 0..100)
     */
    EPageToHostCmd[EPageToHostCmd["SetProgress"] = 1210] = "SetProgress";
    /** Host should answer with current progress. */
    EPageToHostCmd[EPageToHostCmd["RequestProgress"] = 1211] = "RequestProgress";
    /** Page can send scoped logging messages which will be stored at the host */
    EPageToHostCmd[EPageToHostCmd["Log"] = 1220] = "Log";
    /** Host should provide the text resources for a page */
    EPageToHostCmd[EPageToHostCmd["RequestTextResources"] = 1300] = "RequestTextResources";
    /** Host should provide the content of the given Json file */
    EPageToHostCmd[EPageToHostCmd["RequestJsonFile"] = 1301] = "RequestJsonFile";
    /** Host should provide the content of the given image file */
    EPageToHostCmd[EPageToHostCmd["RequestImageFile"] = 1302] = "RequestImageFile";
    /** Host should provide the content of the specifief text file */
    EPageToHostCmd[EPageToHostCmd["RequestTextFile"] = 1303] = "RequestTextFile";
    /** Host should provide the content of the localized version of a given Json file */
    EPageToHostCmd[EPageToHostCmd["RequestJsonFileLocalized"] = 1304] = "RequestJsonFileLocalized";
    /** Host should validate passed Login and Password */
    EPageToHostCmd[EPageToHostCmd["ValidateUserCredentials"] = 1400] = "ValidateUserCredentials";
    /** The Module requests it's termination including the submission of the created data. */
    EPageToHostCmd[EPageToHostCmd["FinishModuleSubmitData"] = 1500] = "FinishModuleSubmitData";
    /** The Module requests its termination without adding any articles. */
    EPageToHostCmd[EPageToHostCmd["CancelModule"] = 1501] = "CancelModule";
    /** Advices the host to save the module state in some way */
    EPageToHostCmd[EPageToHostCmd["SaveModuleState"] = 1502] = "SaveModuleState";
    /** Request to load a formerly saved module state */
    EPageToHostCmd[EPageToHostCmd["LoadModuleState"] = 1503] = "LoadModuleState";
    /** Host answers always /true/ when it's there */
    EPageToHostCmd[EPageToHostCmd["IsHostReady"] = 1599] = "IsHostReady";
    /** Host should show a message box */
    EPageToHostCmd[EPageToHostCmd["ShowMessageBox"] = 1600] = "ShowMessageBox";
    /**  Initiate Actions normaly triggered from outside, even outside the host
     *	 Used by Plugin, Launcher etc. i.e. JSBoundUniversal API
     *
     *	Request to import a formerly saved module state, this might involve merging or
     *   specifiying a completely different Origin (wsz instead of Pin or something)
     */
    EPageToHostCmd[EPageToHostCmd["InitiateImportFromJSBU"] = 1700] = "InitiateImportFromJSBU";
    /** Request to load a formerly saved module state from the standard Origin (e.g. Pin)
     */
    EPageToHostCmd[EPageToHostCmd["InitiateLoadFromJSBU"] = 1701] = "InitiateLoadFromJSBU";
    /** Request to export all data if wanted
     *
     */
    EPageToHostCmd[EPageToHostCmd["InitiateSaveToJSBU"] = 1702] = "InitiateSaveToJSBU";
    /** Request to save the given File(s), e.g. per Download or save-as Dialog or something
     *   Parameter: IShowSaveDialogParameters
     */
    EPageToHostCmd[EPageToHostCmd["ShowSaveDialog"] = 1800] = "ShowSaveDialog";
    /** Overwrite locale and defaultLocale from inside wizard */
    EPageToHostCmd[EPageToHostCmd["SetHostProperties"] = 1900] = "SetHostProperties";
})(EPageToHostCmd || (EPageToHostCmd = {}));
