UNPKG

@zextras/carbonio-shell-ui

Version:

The Zextras Carbonio web client

27 lines (26 loc) 1.63 kB
import type { Mods, CreateIdentityResponse, ModifyPropertiesResponse, ModifyPrefsResponse, ModifyIdentityResponse, RevokeRightsResponse, DeleteIdentityResponse, GrantRightsResponse } from '../types/network'; export type EditSettingsBatchResponse = { ModifyPropertiesResponse?: ModifyPropertiesResponse[]; ModifyPrefsResponse?: ModifyPrefsResponse[]; ModifyIdentityResponse?: ModifyIdentityResponse[]; DeleteIdentityResponse?: DeleteIdentityResponse[]; CreateIdentityResponse?: CreateIdentityResponse[]; RevokeRightsResponse?: RevokeRightsResponse[]; GrantRightsResponse?: GrantRightsResponse[]; }; /** * @deprecated Use a specific soap fetch request per module instead. * * The edit settings function is performing a xml request which leads to network errors due to * the content, and it is highly linking shell with modules. * When the data are not related to the account, the management of the settings should be internal * to the module itself. When the data to update are something strictly related to the account, and * are or might be useful to other modules, the network update should be performed by the module itself, * and then be propagated to other modules, to let every module interested in those data to react to the update. * * See SHELL-226, SHELL-222 to see how to propagate the update of settings to all other modules. */ export declare const editSettings: (mods: Partial<Mods>, appId?: string) => Promise<EditSettingsBatchResponse>; export declare const getEditSettingsForApp: (app: string) => (mods: Mods) => Promise<EditSettingsBatchResponse & { type: "fulfilled"; }>;