interface PixelEventsCartViewedData { cart: Cart | null; } interface PixelEventsCheckoutAddressInfoSubmittedData { checkout: Checkout; } interface PixelEventsCheckoutCompletedData { checkout: Checkout; } interface PixelEventsCheckoutContactInfoSubmittedData { checkout: Checkout; } interface PixelEventsCheckoutShippingInfoSubmittedData { checkout: Checkout; } interface PixelEventsCheckoutStartedData { checkout: Checkout; } interface PixelEventsCollectionViewedData { collection: Collection; } interface PixelEventsPageViewedData { } interface PixelEventsPaymentInfoSubmittedData { checkout: Checkout; } interface PixelEventsProductAddedToCartData { cartLine: CartLine | null; } interface PixelEventsProductRemovedFromCartData { cartLine: CartLine | null; } interface PixelEventsProductVariantViewedData { productVariant: ProductVariant; } interface PixelEventsProductViewedData { productVariant: ProductVariant; } interface PixelEventsSearchSubmittedData { searchResult: SearchResult; } /** * Custom attributes associated with the cart or checkout. */ interface Attribute { /** * The key for the attribute. */ key: string; /** * The value for the attribute. */ value: string; } /** * A cart represents the merchandise that a customer intends to purchase, and * the estimated cost associated with the cart. */ interface Cart { /** * The attributes associated with the cart. This property * is only available if the shop has [upgraded to Checkout * Extensibility](https://help.shopify.com/en/manual/checkout- * settings/checkout-extensibility/checkout-upgrade). */ attributes: Attribute[]; /** * The estimated costs that the customer will pay at checkout. */ cost: CartCost; /** * A globally unique identifier. */ id: string | null; /** * A list of lines containing information about the items the customer intends * to purchase. */ lines: CartLine[]; /** * The total number of items in the cart. */ totalQuantity: number; } /** * The costs that the customer will pay at checkout. It uses * [`CartBuyerIdentity`](https://shopify.dev/api/storefront/reference/cart/cartb * uyeridentity) to determine [international pricing](https://shopify.dev/custom- * storefronts/internationalization/international-pricing#create-a-cart). */ interface CartCost { /** * The total amount for the customer to pay. */ totalAmount: MoneyV2; } /** * Information about the merchandise in the cart. */ interface CartLine { /** * The cost of the merchandise that the customer will pay for at checkout. The * costs are subject to change and changes will be reflected at checkout. */ cost: CartLineCost; /** * The merchandise that the buyer intends to purchase. */ merchandise: ProductVariant; /** * The quantity of the merchandise that the customer intends to purchase. */ quantity: number; } /** * The cost of the merchandise line that the customer will pay at checkout. */ interface CartLineCost { /** * The total cost of the merchandise line. */ totalAmount: MoneyV2; } /** * A container for all the information required to add items to checkout and * pay. */ interface Checkout { /** * A list of attributes accumulated throughout the checkout process. */ attributes: Attribute[]; /** * The billing address to where the order will be charged. */ billingAddress: MailingAddress | null; /** * Indicates whether the customer has consented to be sent marketing material * via email. This property is only available if the shop has [upgraded * to Checkout Extensibility](https://help.shopify.com/en/manual/checkout- * settings/checkout-extensibility/checkout-upgrade). */ buyerAcceptsEmailMarketing: boolean; /** * Indicates whether the customer has consented to be sent marketing material * via SMS. This property is only available if the shop has [upgraded to * Checkout Extensibility](https://help.shopify.com/en/manual/checkout- * settings/checkout-extensibility/checkout-upgrade). */ buyerAcceptsSmsMarketing: boolean; /** * The three-letter code that represents the currency, for example, USD. * Supported codes include standard ISO 4217 codes, legacy codes, and non- * standard codes. */ currencyCode: string | null; /** * Represents the selected delivery options for a checkout. This * property is only available if the shop has [upgraded to Checkout * Extensibility](https://help.shopify.com/en/manual/checkout- * settings/checkout-extensibility/checkout-upgrade). */ delivery: Delivery | null; /** * A list of discount applications. */ discountApplications: DiscountApplication[]; /** * The total amount of the discounts applied to the price of the checkout. * This property is only available if the shop has [upgraded to Checkout * Extensibility](https://help.shopify.com/manual/checkout-settings/checkout- * extensibility/checkout-upgrade). */ discountsAmount: MoneyV2 | null; /** * The email attached to this checkout. */ email: string | null; /** * A list of line item objects, each one containing information about an item * in the checkout. */ lineItems: CheckoutLineItem[]; /** * Information about the active localized experience. This * property is only available if the shop has [upgraded to Checkout * Extensibility](https://help.shopify.com/en/manual/checkout- * settings/checkout-extensibility/checkout-upgrade). */ localization: Localization; /** * The resulting order from a paid checkout. */ order: Order | null; /** * A unique phone number for the customer. Formatted using E.164 standard. For * example, *+16135551111*. */ phone: string | null; /** * The shipping address to where the line items will be shipped. */ shippingAddress: MailingAddress | null; /** * Once a shipping rate is selected by the customer it is transitioned to a * `shipping_line` object. */ shippingLine: ShippingRate | null; /** * The phone number provided by the buyer after opting in to SMS * marketing. This property is only available if the shop has [upgraded * to Checkout Extensibility](https://help.shopify.com/en/manual/checkout- * settings/checkout-extensibility/checkout-upgrade). */ smsMarketingPhone: string | null; /** * The price at checkout before duties, shipping, and taxes. */ subtotalPrice: MoneyV2 | null; /** * A unique identifier for a particular checkout. */ token: string | null; /** * The sum of all the prices of all the items in the checkout, including * duties, taxes, and discounts. */ totalPrice: MoneyV2 | null; /** * The sum of all the taxes applied to the line items and shipping lines in * the checkout. */ totalTax: MoneyV2; /** * A list of transactions associated with a checkout or order. Certain * transactions, such as credit card transactions, may only be present in the * checkout_completed event. */ transactions: Transaction[]; } /** * A single line item in the checkout, grouped by variant and attributes. */ interface CheckoutLineItem { /** * The discounts that have been applied to the checkout line item by a * discount application. */ discountAllocations: DiscountAllocation[]; /** * The combined price of all of the items in the line item * after line-level discounts have been applied. This property * is only available if the shop has [upgraded to Checkout * Extensibility](https://help.shopify.com/manual/checkout-settings/checkout- * extensibility/checkout-upgrade). */ finalLinePrice: MoneyV2; /** * A globally unique identifier. */ id: string | null; /** * The properties of the line item. A shop may add, or enable customers to add * custom information to a line item. Line item properties consist of a key * and value pair. This property is only available if the shop has [upgraded * to Checkout Extensibility](https://help.shopify.com/manual/checkout- * settings/checkout-extensibility/checkout-upgrade). */ properties: Property[]; /** * The quantity of the line item. */ quantity: number; /** * The selling plan associated with the line item and the effect that * each selling plan has on variants when they're purchased. This * property is only available if the shop has [upgraded to Checkout * Extensibility](https://help.shopify.com/manual/checkout-settings/checkout- * extensibility/checkout-upgrade). */ sellingPlanAllocation: SellingPlanAllocation | null; /** * The title of the line item. Defaults to the product's title. */ title: string | null; /** * Product variant of the line item. */ variant: ProductVariant | null; } /** * A collection is a group of products that a shop owner can create to organize * them or make their shops easier to browse. */ interface Collection { /** * A globally unique identifier. */ id: string; productVariants: ProductVariant[]; /** * The collection’s name. Maximum length: 255 characters. */ title: string; } /** * A country. */ interface Country { /** * The ISO-3166-1 code for this country, for example, "US". */ isoCode: string | null; } /** * The delivery information for the event. */ interface Delivery { /** * The selected delivery options for the event. */ selectedDeliveryOptions: DeliveryOption[]; } /** * Represents a delivery option that the customer can choose from. */ interface DeliveryOption { /** * The cost of the delivery option. */ cost: MoneyV2 | null; /** * The cost of the delivery option after discounts have been applied. */ costAfterDiscounts: MoneyV2 | null; /** * The description of the delivery option. */ description: string | null; /** * The unique identifier of the delivery option. */ handle: string; /** * The title of the delivery option. */ title: string | null; /** * The type of delivery option. * * - `pickup` * - `pickupPoint` * - `shipping` * - `local` */ type: string; } /** * The discount that has been applied to the checkout line item. */ interface DiscountAllocation { /** * The monetary value with currency allocated to the discount. */ amount: MoneyV2; /** * The information about the intent of the discount. */ discountApplication: DiscountApplication; } /** * The information about the intent of the discount. */ interface DiscountApplication { /** * The method by which the discount's value is applied to its entitled items. * * - `ACROSS`: The value is spread across all entitled lines. * - `EACH`: The value is applied onto every entitled line. */ allocationMethod: string; /** * How the discount amount is distributed on the discounted lines. * * - `ALL`: The discount is allocated onto all the lines. * - `ENTITLED`: The discount is allocated onto only the lines that it's * entitled for. * - `EXPLICIT`: The discount is allocated onto explicitly chosen lines. */ targetSelection: string; /** * The type of line (i.e. line item or shipping line) on an order that the * discount is applicable towards. * * - `LINE_ITEM`: The discount applies onto line items. * - `SHIPPING_LINE`: The discount applies onto shipping lines. */ targetType: string; /** * The customer-facing name of the discount. If the type of discount is * a `DISCOUNT_CODE`, this `title` attribute represents the code of the * discount. */ title: string; /** * The type of the discount. * * - `AUTOMATIC`: A discount automatically at checkout or in the cart without * the need for a code. * - `DISCOUNT_CODE`: A discount applied onto checkouts through the use of * a code. * - `MANUAL`: A discount that is applied to an order by a merchant or store * owner manually, rather than being automatically applied by the system or * through a script. * - `SCRIPT`: A discount applied to a customer's order using a script */ type: string; /** * The value of the discount. Fixed discounts return a `Money` Object, while * Percentage discounts return a `PricingPercentageValue` object. */ value: MoneyV2 | PricingPercentageValue; } /** * An image resource. */ interface Image { /** * The location of the image as a URL. */ src: string | null; } /** * A language. */ interface Language { /** * The BCP-47 language tag. It may contain a dash followed by an ISO 3166-1 * alpha-2 region code, for example, "en-US". */ isoCode: string; } /** * Information about the active localized experience. */ interface Localization { /** * The country of the active localized experience. */ country: Country; /** * The language of the active localized experience. */ language: Language; /** * The market including the country of the active localized experience. */ market: Market; } /** * A mailing address for customers and shipping. */ interface MailingAddress { /** * The first line of the address. This is usually the street address or a P.O. * Box number. */ address1: string | null; /** * The second line of the address. This is usually an apartment, suite, or * unit number. */ address2: string | null; /** * The name of the city, district, village, or town. */ city: string | null; /** * The name of the country. */ country: string | null; /** * The two-letter code that represents the country, for example, US. * The country codes generally follows ISO 3166-1 alpha-2 guidelines. */ countryCode: string | null; /** * The customer’s first name. */ firstName: string | null; /** * The customer’s last name. */ lastName: string | null; /** * The phone number for this mailing address as entered by the customer. */ phone: string | null; /** * The region of the address, such as the province, state, or district. */ province: string | null; /** * The two-letter code for the region. * For example, ON. */ provinceCode: string | null; /** * The ZIP or postal code of the address. */ zip: string | null; } /** * A group of one or more regions of the world that a merchant * is targeting for sales. To learn more about markets, refer to * [this](https://shopify.dev/docs/apps/markets) conceptual overview. */ interface Market { /** * A human-readable, shop-scoped identifier. */ handle: string | null; /** * A globally unique identifier. */ id: string | null; } /** * A monetary value with currency. */ interface MoneyV2 { /** * The decimal money amount. */ amount: number; /** * The three-letter code that represents the currency, for example, USD. * Supported codes include standard ISO 4217 codes, legacy codes, and non- * standard codes. */ currencyCode: string; } /** * An order is a customer’s completed request to purchase one or more products * from a shop. An order is created when a customer completes the checkout * process. */ interface Order { /** * The customer that placed the order. */ customer: OrderCustomer | null; /** * The ID of the order. ID will be null for all events except * checkout_completed. */ id: string | null; } /** * The customer that placed the order. */ interface OrderCustomer { /** * The ID of the customer. */ id: string | null; /** * Indicates if the order is the customer’s first order. This * property is only available if the shop has [upgraded to Checkout * Extensibility](https://help.shopify.com/en/manual/checkout- * settings/checkout-extensibility/checkout-upgrade). */ isFirstOrder: boolean | null; } /** * A value given to a customer when a discount is applied to an order. The * application of a discount with this value gives the customer the specified * percentage off a specified item. */ interface PricingPercentageValue { /** * The percentage value of the object. */ percentage: number; } /** * A product is an individual item for sale in a Shopify store. */ interface Product { /** * The ID of the product. */ id: string | null; /** * The product’s title. */ title: string; /** * The [product * type](https://help.shopify.com/en/manual/products/details/product-type) * specified by the merchant. */ type: string | null; /** * The product’s untranslated title. */ untranslatedTitle: string | null; /** * The relative URL of the product. */ url: string | null; /** * The product’s vendor name. */ vendor: string; } /** * A product variant represents a different version of a product, such as * differing sizes or differing colors. */ interface ProductVariant { /** * A globally unique identifier. */ id: string | null; /** * Image associated with the product variant. This field falls back to the * product image if no image is available. */ image: Image | null; /** * The product variant’s price. */ price: MoneyV2; /** * The product object that the product variant belongs to. */ product: Product; /** * The SKU (stock keeping unit) associated with the variant. */ sku: string | null; /** * The product variant’s title. */ title: string | null; /** * The product variant’s untranslated title. */ untranslatedTitle: string | null; } /** * The line item additional custom properties. */ interface Property { /** * The key for the property. */ key: string; /** * The value for the property. */ value: string; } /** * An object that contains the metadata of when a search has been performed. */ interface SearchResult { productVariants: ProductVariant[]; /** * The search query that was executed */ query: string; } /** * Represents how products and variants can be sold and purchased. */ interface SellingPlan { /** * A globally unique identifier. */ id: string; /** * The name of the selling plan. For example, '6 weeks of prepaid granola, * delivered weekly'. */ name: string; } /** * Represents an association between a variant and a selling plan. */ interface SellingPlanAllocation { /** * A representation of how products and variants can be sold and purchased. * For example, an individual selling plan could be '6 weeks of prepaid * granola, delivered weekly'. */ sellingPlan: SellingPlan; } /** * A shipping rate to be applied to a checkout. */ interface ShippingRate { /** * Price of this shipping rate. */ price: MoneyV2; } /** * The payment method used for the transaction. This property * is only available if the shop has [upgraded to Checkout * Extensibility](https://help.shopify.com/en/manual/checkout-settings/checkout- * extensibility/checkout-upgrade). */ interface TransactionPaymentMethod { /** * The name of the payment method used for the transaction. This may further * specify the payment method used. */ name: string; /** * The type of payment method used for the transaction. * * - `creditCard`: A vaulted or manually entered credit card. * - `redeemable`: A redeemable payment method, such as a gift card or store * credit. * - `deferred`: A [deferred * payment](https://help.shopify.com/en/manual/orders/deferred-payments), such * as invoicing the buyer and collecting payment later. * - `local`: A [local payment * method](https://help.shopify.com/en/manual/payments/shopify-payments/local- * payment-methods) specific to the current region or market. * - `manualPayment`: A manual payment method, such as an in-person retail * transaction. * - `paymentOnDelivery`: A payment that will be collected on delivery. * - `wallet`: An integrated wallet, such as PayPal, Google Pay, Apple Pay, * etc. * - `offsite`: A payment processed outside of Shopify's checkout, excluding * integrated wallets. * - `customOnSite`: A custom payment method that is processed through a * checkout extension with a payments app. * - `other`: Another type of payment not defined here. */ type: string; } /** * A transaction associated with a checkout or order. */ interface Transaction { /** * The monetary value with currency allocated to the transaction method. */ amount: MoneyV2; /** * The name of the payment provider used for the transaction. */ gateway: string; /** * The payment method used for the transaction. This property * is only available if the shop has [upgraded to Checkout * Extensibility](https://help.shopify.com/en/manual/checkout- * settings/checkout-extensibility/checkout-upgrade). */ paymentMethod: TransactionPaymentMethod; } type CommonPayloadValues = { shopifyEventId: string; shopifyClientId?: string; shopifyShopURL: string; }; type EventSpecificPayloads = { product_viewed: CommonPayloadValues & { shopifyPageDetail: string; shopifyPageProductId: string | null; shopifyPageType: string; shopifyEventData: PixelEventsProductViewedData; }; collection_viewed: CommonPayloadValues & { shopifyPageDetail: string; shopifyPageType: string; shopifyPageCollectionId: string | undefined; shopifyEventData: PixelEventsCollectionViewedData; }; checkout_completed: CommonPayloadValues & { shopifyPageType: string; shopifyOrderId: string | null | undefined; shopifyCustomerEmail?: string | undefined; shopifyOrderSubtotalPrice: number | undefined; shopifyOrderTotalPrice: number | undefined; shopifyOrderCurrency: string | null; shopifyOrderLineItems: { lineItemId: string | null; lineItemProductId: string | null | undefined; lineItemTitle: string | null; lineItemVariantId: string | null | undefined; }[]; shopifyEventData: PixelEventsCheckoutCompletedData; }; page_viewed: CommonPayloadValues & { shopifyPageType?: string; shopifyEventData?: PixelEventsPageViewedData; }; cart_viewed: CommonPayloadValues & { shopifyEventData?: PixelEventsCartViewedData; }; checkout_address_info_submitted: CommonPayloadValues & { shopifyEventData?: PixelEventsCheckoutAddressInfoSubmittedData; }; checkout_contact_info_submitted: CommonPayloadValues & { shopifyEventData?: PixelEventsCheckoutContactInfoSubmittedData; }; checkout_shipping_info_submitted: CommonPayloadValues & { shopifyEventData?: PixelEventsCheckoutShippingInfoSubmittedData; }; checkout_started: CommonPayloadValues & { shopifyEventData?: PixelEventsCheckoutStartedData; }; payment_info_submitted: CommonPayloadValues & { shopifyEventData?: PixelEventsPaymentInfoSubmittedData; }; product_added_to_cart: CommonPayloadValues & { shopifyEventData?: PixelEventsProductAddedToCartData; }; product_removed_from_cart: CommonPayloadValues & { shopifyEventData?: PixelEventsProductRemovedFromCartData; }; product_variant_viewed: CommonPayloadValues & { shopifyEventData?: PixelEventsProductVariantViewedData; }; search_submitted: CommonPayloadValues & { shopifyEventData?: PixelEventsSearchSubmittedData; }; custom: CommonPayloadValues & { shopifyEventName: string; shopifyEventData?: Record; }; }; type EventSpecificPayload = { /** * It is recommended to generate the event specific data using the * corresponding {@link eventFactory}. */ data?: EventSpecificPayloads[keyof EventSpecificPayloads] & { shopifyEventName: string; }; errors?: string[]; }; /** * If you find this generator hard to read, please look at the * {@link EventSpecificPayloads} for the arguments for each event generator. */ declare const eventFactory: { [Key in keyof EventSpecificPayloads]: (v: EventSpecificPayloads[Key]) => EventSpecificPayloads[Key] & { shopifyEventName: Key; }; }; interface PayloadBase { timestamp: number; errors: string[]; data: Record; } type StorageWithPromises = { getItem: (...args: Parameters) => Promise>; setItem: (...args: Parameters) => Promise>; }; type StorageDependency = Pick | StorageWithPromises; type CustomerPrivacy = { analyticsProcessingAllowed: boolean; marketingAllowed: boolean; preferencesProcessingAllowed: boolean; saleOfDataAllowed: boolean; }; type PixelSettings = { tenantId: string; shop: string; datasourceId: string; }; type LocationSnapshot = { hash: string; host: string; hostname: string; href: string; origin: string; pathname: string; port: string; protocol: string; search: string; }; type DocumentSnapshot = { characterSet: string; location: LocationSnapshot; referrer: string; title: string; }; type DocumentDependency = Document | DocumentSnapshot; interface NavigatorSnapshot { cookieEnabled: boolean; language: string; languages: ReadonlyArray; userAgent: string; } type NavigatorDependency = Navigator | NavigatorSnapshot; type GeneratePayloadBaseArgs = { /** * The timestamp of the event. In the case of many events like page visits * etc. it can be helpful to compute a timestamp on page load and pass that * along. * * Defaults to the time of the call (i.e. Date.now()) */ timestamp?: number; /** * The storage dependency to be used, defaults to localStorage. */ storage?: StorageDependency; /** * The document dependency to be used, defaults to window.document. */ document?: DocumentDependency; /** * The navigator dependency to be used, defaults to navigator. */ navigator?: NavigatorDependency; /** * Information about the customer, if available. */ customer?: { id?: string | null; email?: string | null; } | null; /** * Information about the browser's cookie, if available. */ cookie?: string; /** * Information about the customer privacy setting, if available. * Could be retrieved from the Shopify's `window.Shopify.customerPrivacy` object. * { * analyticsProcessingAllowed: window.Shopify.customerPrivacy.analyticsProcessingAllowed(), * marketingAllowed: window.Shopify.customerPrivacy.marketingAllowed(), * preferencesProcessingAllowed: window.Shopify.customerPrivacy.preferencesProcessingAllowed(), * saleOfDataAllowed: window.Shopify.customerPrivacy.saleOfDataAllowed() * } * or through the cookie consent provider. */ customerPrivacy?: CustomerPrivacy; /** * Indicates whether the SDK is being used by a headless installation, * instead of relying directly on Shopify events. * * Defaults to true. */ isHeadless?: boolean; /** * Settings we put when install the pixel in the shopify store */ settings?: PixelSettings; }; /** * Creates a payload base by retrieving numerous parameters from the storage * and document dependencies for use as metadata. */ declare const generatePayloadBase: ({ timestamp, customer, isHeadless, ...dependencies }: GeneratePayloadBaseArgs) => Promise; interface SendPixelEventOptions { /** * Maximum number of retry attempts on failure. Default: 3 */ maxRetries?: number; /** * Base delay in ms for exponential backoff. Default: 1000 (1 second) * Actual delay = baseDelay * 2^attemptNumber (e.g., 1s, 2s, 4s) */ baseDelayMs?: number; /** * Use sendBeacon API when available (useful for page unload scenarios). * Falls back to fetch if beacon fails or is unavailable. Default: false */ useBeacon?: boolean; /** * Callback invoked on each retry attempt */ onRetry?: (attempt: number, error: Error, nextDelayMs: number) => void; /** * AbortSignal to cancel the request */ signal?: AbortSignal; /** * Fires after a successful fetch with the Response object */ onSuccess?: (response: Response) => void; /** * Fires when all retries are exhausted with the error and attempt count */ onError?: (error: Error, attempts: number) => void; } interface SendPixelEventResult { success: boolean; /** * Number of attempts made (1 = succeeded on first try) */ attempts: number; /** * Error if the request failed after all retries */ error?: Error; /** * Whether the event was sent via beacon API */ usedBeacon?: boolean; } /** * Dispatches a pixel event to the endpoint specified with retry support. */ declare const sendPixelEvent: (endpoint: string, payloadBase: PayloadBase, eventPayload?: EventSpecificPayload, options?: SendPixelEventOptions) => Promise; type CartTrackingData = { userId?: string; sessionId?: string; gclid?: string; fbp?: string; ttclid?: string; userAgent?: string; }; type GenerateCartAttributeArgs = { storage?: StorageDependency; document?: DocumentDependency; navigator?: NavigatorDependency; cookie?: string; existingPolarAttr?: string; }; type GenerateCartAttributeResult = { encoded: string; data: CartTrackingData; }; declare const POLAR_ATTR_KEY = "polar_attr"; declare const generateCartAttribute: (args?: GenerateCartAttributeArgs) => Promise; declare const generateUniqueId: () => string; export { type Attribute, type Cart, type CartCost, type CartLine, type CartLineCost, type CartTrackingData, type Checkout, type CheckoutLineItem, type Collection, type CommonPayloadValues, type Country, type CustomerPrivacy, type Delivery, type DeliveryOption, type DiscountAllocation, type DiscountApplication, type DocumentDependency, type DocumentSnapshot, type EventSpecificPayload, type EventSpecificPayloads, type GenerateCartAttributeArgs, type GenerateCartAttributeResult, type GeneratePayloadBaseArgs, type Image, type Language, type Localization, type LocationSnapshot, type MailingAddress, type Market, type MoneyV2, type NavigatorDependency, type NavigatorSnapshot, type Order, type OrderCustomer, POLAR_ATTR_KEY, type PayloadBase, type PixelEventsCartViewedData, type PixelEventsCheckoutAddressInfoSubmittedData, type PixelEventsCheckoutCompletedData, type PixelEventsCheckoutContactInfoSubmittedData, type PixelEventsCheckoutShippingInfoSubmittedData, type PixelEventsCheckoutStartedData, type PixelEventsCollectionViewedData, type PixelEventsPageViewedData, type PixelEventsPaymentInfoSubmittedData, type PixelEventsProductAddedToCartData, type PixelEventsProductRemovedFromCartData, type PixelEventsProductVariantViewedData, type PixelEventsProductViewedData, type PixelEventsSearchSubmittedData, type PixelSettings, type PricingPercentageValue, type Product, type ProductVariant, type Property, type SearchResult, type SellingPlan, type SellingPlanAllocation, type SendPixelEventOptions, type SendPixelEventResult, type ShippingRate, type StorageDependency, type StorageWithPromises, type Transaction, type TransactionPaymentMethod, eventFactory, generateCartAttribute, generatePayloadBase, generateUniqueId, sendPixelEvent };