@causalfoundry/js-sdk
Version:
Causal Foundry WEB SDK (JS/TS)
24 lines (19 loc) • 763 B
text/typescript
import {NavigationTypes, SearchModuleType, LegacySearchProperties, ContentBlock} from "./typings";
import { searchPropertiesMapper } from "./mappers";
import Navigation from "./index";
export const logSearchEvent = (
properties: LegacySearchProperties,
searchId?: string,
sendNow = false
): string => {
// searchId is not used in the new properties
const newProperties = searchPropertiesMapper(properties);
Navigation.logIngestEvent(NavigationTypes.Search, newProperties, sendNow);
return "no-search-id";
};
export const setCurrentBlock = (block: ContentBlock) => {
// no-op, just dummy function to satisfy the legacy interface
};
export const setTitle = (title: string) => {
// no-op, just dummy function to satisfy the legacy interface
};