@walkeros/web-destination-meta
Version:
Meta pixel web destination for walkerOS
86 lines (75 loc) • 3.06 kB
TypeScript
import { Mapping as Mapping$1 } from '@walkeros/core';
import { DestinationWeb } from '@walkeros/web-core';
declare global {
namespace WalkerOS {
interface Elb extends Elb.RegisterDestination<Destination, Config> {
}
}
interface Window {
_fbq?: facebook.Pixel.Event;
fbq?: facebook.Pixel.Event;
}
}
type Destination = DestinationWeb.Destination<Settings, Mapping>;
type Config = DestinationWeb.Config<Settings, Mapping>;
interface Settings {
pixelId?: string;
}
interface Mapping {
track?: StandardEventNames;
trackCustom?: string;
}
type Rule = Mapping$1.Rule<Mapping>;
type Rules = Mapping$1.Rules<Rule>;
type StandardEventNames = 'PageView' | 'AddPaymentInfo' | 'AddToCart' | 'AddToWishlist' | 'CompleteRegistration' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'InitiateCheckout' | 'Lead' | 'Purchase' | 'Schedule' | 'Search' | 'StartTrial' | 'SubmitApplication' | 'Subscribe' | 'ViewContent' | string;
type index$1_Config = Config;
type index$1_Destination = Destination;
type index$1_Mapping = Mapping;
type index$1_Rule = Rule;
type index$1_Rules = Rules;
type index$1_Settings = Settings;
type index$1_StandardEventNames = StandardEventNames;
declare namespace index$1 {
export type { index$1_Config as Config, index$1_Destination as Destination, index$1_Mapping as Mapping, index$1_Rule as Rule, index$1_Rules as Rules, index$1_Settings as Settings, index$1_StandardEventNames as StandardEventNames };
}
declare function Purchase$1(): unknown[];
declare function AddToCart$1(): unknown[];
declare function InitiateCheckout$1(): unknown[];
declare function ViewContent$1(): unknown[];
declare namespace events {
export { AddToCart$1 as AddToCart, InitiateCheckout$1 as InitiateCheckout, Purchase$1 as Purchase, ViewContent$1 as ViewContent };
}
declare const Purchase: Rule;
declare const AddToCart: Rule;
declare const InitiateCheckout: Rule;
declare const ViewContent: Rule;
declare const config: {
order: {
complete: Rule;
};
product: {
view: Rule;
add: Rule;
};
cart: {
view: Rule;
};
};
declare const mapping_AddToCart: typeof AddToCart;
declare const mapping_InitiateCheckout: typeof InitiateCheckout;
declare const mapping_Purchase: typeof Purchase;
declare const mapping_ViewContent: typeof ViewContent;
declare const mapping_config: typeof config;
declare namespace mapping {
export { mapping_AddToCart as AddToCart, mapping_InitiateCheckout as InitiateCheckout, mapping_Purchase as Purchase, mapping_ViewContent as ViewContent, mapping_config as config };
}
declare const destinationMetaExamples: {
events: typeof events;
mapping: typeof mapping;
};
declare const index_destinationMetaExamples: typeof destinationMetaExamples;
declare namespace index {
export { index_destinationMetaExamples as destinationMetaExamples };
}
declare const destinationMeta: Destination;
export { index$1 as DestinationMeta, destinationMeta as default, destinationMeta, index as destinationMetaExamples };