Utilities

getIntelligemsConfig()

Fetches the Intelligems headless configuration for an organization.

import { getIntelligemsConfig } from "@intelligems/headless";

const config = await getIntelligemsConfig("org_id", 5);
import type { PluginConfigType } from "@intelligems/ig-types";

const getIntelligemsConfig: (
  organizationId: string,
  cacheIntervalMinutes?: number
) => Promise<PluginConfigType | undefined>;

setLogLevel()

Sets the internal logger level. Allowed values are "DEBUG", "INFO", "WARNING", and "ERROR".

import { setLogLevel } from "@intelligems/headless";

setLogLevel("INFO");
const setLogLevel: (level: "DEBUG" | "INFO" | "WARNING" | "ERROR") => void;

IntelligemsContext

React context that exposes the Intelligems client state.

Last updated