UNPKG

@hoover-institution/hubspot-lib

Version:

A toolkit for deep integration with HubSpot's Marketing Events API with a plugin-based architecture.

57 lines (47 loc) 1.47 kB
// --- HubSpot SDK --- /** * Core marketing event class used to interact with HubSpot's Marketing Event API. */ export { MarketingEvent, SUBSCRIBER_STATE, } from "./lib/hubspot/MarketingEvent.js"; // --- Event & Hook Constants --- /** * Official lifecycle hook names used in plugin registration (e.g. CREATE_EVENT). */ export { EVENTS } from "./lib/core/events.js"; /** * Native SDK plugin names (e.g. LOG_TO_CONSOLE). */ export { PLUGINS } from "./lib/core/plugins.js"; // --- Plugin Author Helpers --- /** * Registers a plugin with event handlers. * Used by custom plugin authors to declare lifecycle hooks. */ export { createPlugin } from "./lib/core/createPlugin.js"; /** * Utility for resolving plugin names to a combined bitmask. */ export { resolveHooks } from "./lib/core/resolveHooks.js"; /** * Used to define plugins manually or via filesystem directory scanning. */ export { definePlugins } from "./lib/core/definePlugin.js"; /** * Internally used to bind plugin handlers to hook points. */ export { castHook } from "./lib/core/pluginSDK.js"; /** * Loads and merges native + user-defined plugins for use in the SDK. */ export { loadPlugins } from "./lib/core/loadPlugins.js"; /** * Index the plugin results so the caller can easily look up results by plugin ID. */ export { getPluginResults } from "./lib/core/plugins.js"; /** * Some contact functions */ export { ContactManager } from "./lib/hubspot/ContactManager.js";