UNPKG

@beamimpact/web-sdk

Version:

The Beam SDK enables brands to connect with their customers over shared values, not transactional discounts, to build stronger loyalty. Our integration achieves this by allowing customers to (a) choose a nonprofit where the brand will donate part of their

37 lines (34 loc) 1 kB
import { BeamPlugin, BeamConfigOptions } from './beam.js'; import '../chunks/types-CPxMwnoR.esm.js'; type PromoManagerPluginOptions = { disableDiscountCodeCookieCheck?: boolean; }; /** * Manages promo code lifecycle including: * - URL sanitization * - Storage management * - Event emission * * @implements {BeamPlugin} */ declare class PromoManagerPlugin implements BeamPlugin { #private; name: string; /** * When true, disables Shopify discount cookie checking. * Set this to true for non-Shopify integrations. */ disableDiscountCodeCookieCheck: boolean; private promoCodes; constructor(options: PromoManagerPluginOptions); /** * Initializes promo code management: * - Extracts and sanitizes promo codes from URL * - Stores formatted codes * - Emits storage event * * @param {BeamConfigOptions} config - Plugin configuration */ init(config: BeamConfigOptions): Promise<void>; } export { PromoManagerPlugin };