import { ISettingsChange } from "@springtree/eva-sdk-core-settings"; /** * The settings for the module * * @export * @interface IEvaServiceSettings */ export interface IEvaServiceSettings { /** * The default service timeout * * @type {number} */ defaultTimeout: number; /** * The current application token that will be sent along with every * service call to a specific origin. * Will be automatically updated when a new header value is received. * Takes precedence of the applicationToken setting. * * @type {{[origin: string]: string}} */ applicationTokens?: { [origin: string]: string; }; /** * Can be used by clients to set the current station ID header value * This should always reflect the ID from the currently used station from * the `ListStationsForOrganization` response. Added for legal reasons * * @type {(string|undefined)} */ currentStationID?: string; /** * Can be used to set the `EVA-Requested-OrganizationUnitID` header. * This is used to select a specific organization unit when making calls without * a specific user token by ID. * * @type {string} */ requestedOrganizationUnitID?: string; /** * Can be used to set the `EVA-Requested-OrganizationUnit-Query` header. * This is used to select a specific organization unit when making calls without * a specific user token using an exact match query on name and backend id. * * * @type {{ Name: string; BackendID: string; }} */ requestedOrganizationUnitQuery?: { Name: string; BackendID: string; }; /** * Can be used to set the `EVA-IDs-Mode` header which can be used to let the EVA * backend to use external identifiers instead of EVA identifiers for * things like products. * Is usually set using the service settings but can be overridden per call * using this setting * * @type {string} */ backendIdMode?: string; /** * Used to populate the `EVA-IDs-BackendSystemID` header which can be sent * along with the `EVA-IDs-Mode` header to enable response metadata to help * with mapping identifiers between EVA and an external system * * @type {string} */ backendIdSystemID?: string; /** * Can be used to specify a custom fetch handler * */ fetch?: (input: string | URL | Request, init?: RequestInit) => Promise; /** * Used to populate the `EVA-App-InstanceId` header which is useful for debugging and diagnostics in the back-end analytics * * @type {string} */ applicationInstanceId?: string; } export declare const SETTINGS_GROUP_NAME = "evaCoreService"; /** * Retrieves the settings for the EvaService module * * @export * @returns {IEvaServiceSettings} */ export declare function getServiceSettings(): IEvaServiceSettings; /** * Changes a setting for the EvaService module * * @export * @param {string} settingName * @param {*} setting * @returns {ISettingsChange} */ export declare function setServiceSetting(settingName: keyof IEvaServiceSettings, setting: IEvaServiceSettings[keyof IEvaServiceSettings]): ISettingsChange; //# sourceMappingURL=settings.d.ts.map