BOBINA PARA VÁLVULA

type DcsEmbeddedToolConfig = { /** Culture of the embedded tool. If specified country ISO is not supported tool will fallback to english */ culture: string; /** Tools that are available as embedded version */ tool: 'txv-selection' /** * Your wholesaler id which you received for the basket-to-basket or stock integration. * This id is used, amongst other things, to show your stock information in the tool. * wholesalerId is required unless `useDemoWholesaler` is set to true */ wholesalerId: string; /** * For testing purposes, you can enable this option to bypassing setting your wholesaler id */ useDemoWholesaler?: boolean; /** * Listen to tracking events reported from the embedded tool. * - '*' to listen to all events * - The string array refers to */ enableTrackingEvents?: '*' | boolean | string[]; /** * Customize the tool by overriding the default configuration. * Currently this allows to override the primary color. */ overrides?: OverridesEventData; /** * Specific configuration data that is relevant for individual tool */ toolSpecificData: ToolSpecificEventData[T extends Tool]; }; type ToolSpecificEventData = { 'demo': {}, 'txv-selection': { refrigerantKey?: string; productFamilyKey?: string; usefulSuperheat?: { /** Value in Kelvin */ value: number; }; condensationBubble?: { /** Value in Kelvin */ value: number; }; distributePressureDrop?: { /** Value in Pascal */ value: number; }; /** Custom label for the CTA button in the Results step. * If this is set, the basket icon will be hidden. */ ctaLabel?: string; /** Hide the "Add to basket" CTA button. * If this is set to `true`, the checkboxes will be hidden on the last step "Results" */ hideCta?: string; /** Hide the stock information from selection tables and code number checkboxes on the last step "Results" */ hideStockInfo?: string; }, }; type OverridesEventData = { colors?: { primary?: string; primaryActive?: string; }; /** Choose wether or not to create a `basketToken` for `BasketEventSelection` */ useBasketToken?: boolean; }; type SelectionChangeHandler = (event: BasketEventData) => void; type BasketEventData = { selection: BasketEventSelection; previousSelection?: BasketEventSelection; }; type BasketEventSelection = { /** This is included if `useBasketToken` is set to true in the tool config. */ basketToken?: string; items: { codeNumber: string; quantity: number; }[]; }; type TrackingEventType = { eventName: string; data: any; } type TrackingEventHandler = (event: TrackingEventType) => void;