unomi-sdk-node
Version:
Node module to interact with unomi.
16 lines (12 loc) • 529 B
text/typescript
import { callResponse } from "../utils/connection";
import { getProfileSegmentMatchTypes } from "../utils/helpers";
import { FilteredResponse } from "../../src/types/sdkResponse";
/**
* @function getAll
* @returns {FilteredResponse}
*/
export function getAll(): FilteredResponse { // get an array of all match types
const url = ""; // this function has no url (custom function)
const body = getProfileSegmentMatchTypes(); // get match types
return callResponse("GET", url, body, 200); // return result object
}