@pipe0/react-sdk
Version:
React utils to work with pipe0
35 lines • 13.5 kB
TypeScript
import { type PipeEntryWithLatestVersion, type PipeCategory, type PipeId } from "@pipe0/client-sdk";
import { type ColumnFilter } from "@tanstack/react-table";
export type InputFieldEntries = Record<string, PipeId[]>;
export type OutputFieldEntries = Record<string, PipeId[]>;
export declare function usePipeCatalogTable(config?: {
initialColumnFilters?: ColumnFilter[];
}): {
table: import("@tanstack/react-table").Table<PipeEntryWithLatestVersion>;
sidebar: {
sortedInputFieldEntries: [string, ("prompt:run@1" | "company:newssummary:website@1" | "company:techstack:builtwith@1" | "company:websiteurl:email@1" | "company:funding:leadmagic@1" | "people:workemail:waterfall@1" | "people:email:iswork@1" | "people:name:split@1" | "people:validate:email:zerobounce@1" | "people:mobilenumber:workemail:waterfall@1" | "people:name:join@1" | "company:overview@1" | "company:overview@2" | "json:extract@1" | "email:send:resend@1" | "contact:create:resend@1" | "email:send:gmail@1" | "message:send:slack@1" | "message:write@1" | "email:write@1" | "template:fill@1" | "fields:merge@1" | "people:personalemail:profile:waterfall@1" | "people:email:validate:zerobounce@1" | "people:email:validate:zerobounce@2" | "people:email:validate:millionverifier@1" | "people:phone:workemail:waterfall@1" | "website:scrape:firecrawl@1" | "website:scrapelist:firecrawl@1" | "website:extract:firecrawl@1" | "website:maplinks:firecrawl@1" | "company:identity@2" | "people:phone:profile:waterfall@1" | "people:profile:waterfall@1" | "people:profileurl:email:waterfall@1" | "people:profileurl:name@1" | "company:identity@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1")[]][];
sortedOutputFieldEntries: [string, ("prompt:run@1" | "company:newssummary:website@1" | "company:techstack:builtwith@1" | "company:websiteurl:email@1" | "company:funding:leadmagic@1" | "people:workemail:waterfall@1" | "people:email:iswork@1" | "people:name:split@1" | "people:validate:email:zerobounce@1" | "people:mobilenumber:workemail:waterfall@1" | "people:name:join@1" | "company:overview@1" | "company:overview@2" | "json:extract@1" | "email:send:resend@1" | "contact:create:resend@1" | "email:send:gmail@1" | "message:send:slack@1" | "message:write@1" | "email:write@1" | "template:fill@1" | "fields:merge@1" | "people:personalemail:profile:waterfall@1" | "people:email:validate:zerobounce@1" | "people:email:validate:zerobounce@2" | "people:email:validate:millionverifier@1" | "people:phone:workemail:waterfall@1" | "website:scrape:firecrawl@1" | "website:scrapelist:firecrawl@1" | "website:extract:firecrawl@1" | "website:maplinks:firecrawl@1" | "company:identity@2" | "people:phone:profile:waterfall@1" | "people:profile:waterfall@1" | "people:profileurl:email:waterfall@1" | "people:profileurl:name@1" | "company:identity@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1")[]][];
sortedTagEntries: [string, ("prompt:run@1" | "company:newssummary:website@1" | "company:techstack:builtwith@1" | "company:websiteurl:email@1" | "company:funding:leadmagic@1" | "people:workemail:waterfall@1" | "people:email:iswork@1" | "people:name:split@1" | "people:validate:email:zerobounce@1" | "people:mobilenumber:workemail:waterfall@1" | "people:name:join@1" | "company:overview@1" | "company:overview@2" | "json:extract@1" | "email:send:resend@1" | "contact:create:resend@1" | "email:send:gmail@1" | "message:send:slack@1" | "message:write@1" | "email:write@1" | "template:fill@1" | "fields:merge@1" | "people:personalemail:profile:waterfall@1" | "people:email:validate:zerobounce@1" | "people:email:validate:zerobounce@2" | "people:email:validate:millionverifier@1" | "people:phone:workemail:waterfall@1" | "website:scrape:firecrawl@1" | "website:scrapelist:firecrawl@1" | "website:extract:firecrawl@1" | "website:maplinks:firecrawl@1" | "company:identity@2" | "people:phone:profile:waterfall@1" | "people:profile:waterfall@1" | "people:profileurl:email:waterfall@1" | "people:profileurl:name@1" | "company:identity@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1")[]][];
sortedProviderEntries: [string, ("prompt:run@1" | "company:newssummary:website@1" | "company:techstack:builtwith@1" | "company:websiteurl:email@1" | "company:funding:leadmagic@1" | "people:workemail:waterfall@1" | "people:email:iswork@1" | "people:name:split@1" | "people:validate:email:zerobounce@1" | "people:mobilenumber:workemail:waterfall@1" | "people:name:join@1" | "company:overview@1" | "company:overview@2" | "json:extract@1" | "email:send:resend@1" | "contact:create:resend@1" | "email:send:gmail@1" | "message:send:slack@1" | "message:write@1" | "email:write@1" | "template:fill@1" | "fields:merge@1" | "people:personalemail:profile:waterfall@1" | "people:email:validate:zerobounce@1" | "people:email:validate:zerobounce@2" | "people:email:validate:millionverifier@1" | "people:phone:workemail:waterfall@1" | "website:scrape:firecrawl@1" | "website:scrapelist:firecrawl@1" | "website:extract:firecrawl@1" | "website:maplinks:firecrawl@1" | "company:identity@2" | "people:phone:profile:waterfall@1" | "people:profile:waterfall@1" | "people:profileurl:email:waterfall@1" | "people:profileurl:name@1" | "company:identity@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1")[]][];
pipeIdsByInputField: Record<string, ("prompt:run@1" | "company:newssummary:website@1" | "company:techstack:builtwith@1" | "company:websiteurl:email@1" | "company:funding:leadmagic@1" | "people:workemail:waterfall@1" | "people:email:iswork@1" | "people:name:split@1" | "people:validate:email:zerobounce@1" | "people:mobilenumber:workemail:waterfall@1" | "people:name:join@1" | "company:overview@1" | "company:overview@2" | "json:extract@1" | "email:send:resend@1" | "contact:create:resend@1" | "email:send:gmail@1" | "message:send:slack@1" | "message:write@1" | "email:write@1" | "template:fill@1" | "fields:merge@1" | "people:personalemail:profile:waterfall@1" | "people:email:validate:zerobounce@1" | "people:email:validate:zerobounce@2" | "people:email:validate:millionverifier@1" | "people:phone:workemail:waterfall@1" | "website:scrape:firecrawl@1" | "website:scrapelist:firecrawl@1" | "website:extract:firecrawl@1" | "website:maplinks:firecrawl@1" | "company:identity@2" | "people:phone:profile:waterfall@1" | "people:profile:waterfall@1" | "people:profileurl:email:waterfall@1" | "people:profileurl:name@1" | "company:identity@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1")[]>;
pipeIdsByOutputField: Record<string, ("prompt:run@1" | "company:newssummary:website@1" | "company:techstack:builtwith@1" | "company:websiteurl:email@1" | "company:funding:leadmagic@1" | "people:workemail:waterfall@1" | "people:email:iswork@1" | "people:name:split@1" | "people:validate:email:zerobounce@1" | "people:mobilenumber:workemail:waterfall@1" | "people:name:join@1" | "company:overview@1" | "company:overview@2" | "json:extract@1" | "email:send:resend@1" | "contact:create:resend@1" | "email:send:gmail@1" | "message:send:slack@1" | "message:write@1" | "email:write@1" | "template:fill@1" | "fields:merge@1" | "people:personalemail:profile:waterfall@1" | "people:email:validate:zerobounce@1" | "people:email:validate:zerobounce@2" | "people:email:validate:millionverifier@1" | "people:phone:workemail:waterfall@1" | "website:scrape:firecrawl@1" | "website:scrapelist:firecrawl@1" | "website:extract:firecrawl@1" | "website:maplinks:firecrawl@1" | "company:identity@2" | "people:phone:profile:waterfall@1" | "people:profile:waterfall@1" | "people:profileurl:email:waterfall@1" | "people:profileurl:name@1" | "company:identity@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1")[]>;
pipeIdsByProvider: Record<string, ("prompt:run@1" | "company:newssummary:website@1" | "company:techstack:builtwith@1" | "company:websiteurl:email@1" | "company:funding:leadmagic@1" | "people:workemail:waterfall@1" | "people:email:iswork@1" | "people:name:split@1" | "people:validate:email:zerobounce@1" | "people:mobilenumber:workemail:waterfall@1" | "people:name:join@1" | "company:overview@1" | "company:overview@2" | "json:extract@1" | "email:send:resend@1" | "contact:create:resend@1" | "email:send:gmail@1" | "message:send:slack@1" | "message:write@1" | "email:write@1" | "template:fill@1" | "fields:merge@1" | "people:personalemail:profile:waterfall@1" | "people:email:validate:zerobounce@1" | "people:email:validate:zerobounce@2" | "people:email:validate:millionverifier@1" | "people:phone:workemail:waterfall@1" | "website:scrape:firecrawl@1" | "website:scrapelist:firecrawl@1" | "website:extract:firecrawl@1" | "website:maplinks:firecrawl@1" | "company:identity@2" | "people:phone:profile:waterfall@1" | "people:profile:waterfall@1" | "people:profileurl:email:waterfall@1" | "people:profileurl:name@1" | "company:identity@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1")[]>;
pipeIdsByTag: Record<string, ("prompt:run@1" | "company:newssummary:website@1" | "company:techstack:builtwith@1" | "company:websiteurl:email@1" | "company:funding:leadmagic@1" | "people:workemail:waterfall@1" | "people:email:iswork@1" | "people:name:split@1" | "people:validate:email:zerobounce@1" | "people:mobilenumber:workemail:waterfall@1" | "people:name:join@1" | "company:overview@1" | "company:overview@2" | "json:extract@1" | "email:send:resend@1" | "contact:create:resend@1" | "email:send:gmail@1" | "message:send:slack@1" | "message:write@1" | "email:write@1" | "template:fill@1" | "fields:merge@1" | "people:personalemail:profile:waterfall@1" | "people:email:validate:zerobounce@1" | "people:email:validate:zerobounce@2" | "people:email:validate:millionverifier@1" | "people:phone:workemail:waterfall@1" | "website:scrape:firecrawl@1" | "website:scrapelist:firecrawl@1" | "website:extract:firecrawl@1" | "website:maplinks:firecrawl@1" | "company:identity@2" | "people:phone:profile:waterfall@1" | "people:profile:waterfall@1" | "people:profileurl:email:waterfall@1" | "people:profileurl:name@1" | "company:identity@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1")[]>;
expandedSidebarSections: string[];
setExpandedSidebarSections: import("react").Dispatch<import("react").SetStateAction<string[]>>;
removeColumnFilter: (id: "inputFields" | "outputFields" | "tags" | "providers") => void;
addColumnFilter: (id: "inputFields" | "outputFields" | "tags" | "providers", value: string) => void;
};
pipeEntriesByBasePipe: Record<string, (import("@pipe0/client-sdk").PipeCatalogEntry<"prompt:run@1" | "company:newssummary:website@1" | "company:techstack:builtwith@1" | "company:websiteurl:email@1" | "company:funding:leadmagic@1" | "people:workemail:waterfall@1" | "people:email:iswork@1" | "people:name:split@1" | "people:validate:email:zerobounce@1" | "people:mobilenumber:workemail:waterfall@1" | "people:name:join@1" | "company:overview@1" | "company:overview@2" | "json:extract@1" | "email:send:resend@1" | "contact:create:resend@1" | "email:send:gmail@1" | "message:send:slack@1" | "message:write@1" | "email:write@1" | "template:fill@1" | "fields:merge@1" | "people:personalemail:profile:waterfall@1" | "people:email:validate:zerobounce@1" | "people:email:validate:zerobounce@2" | "people:email:validate:millionverifier@1" | "people:phone:workemail:waterfall@1" | "website:scrape:firecrawl@1" | "website:scrapelist:firecrawl@1" | "website:extract:firecrawl@1" | "website:maplinks:firecrawl@1" | "company:identity@2" | "people:phone:profile:waterfall@1" | "people:profile:waterfall@1" | "people:profileurl:email:waterfall@1" | "people:profileurl:name@1" | "company:identity@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1"> & {
pipeId: PipeId;
})[]>;
filterByField: (id: "inputFields" | "outputFields", fieldName: string) => void;
globalFilterInput: string;
setGlobalFilterInput: import("react").Dispatch<import("react").SetStateAction<string>>;
isFilterChecked: (id: "inputFields" | "outputFields" | "tags" | "providers", value: string) => boolean;
resetColumnFilters: () => void;
category: PipeCategory | null;
setCategory: (category: PipeCategory | null) => void;
showFeaturedPipes: boolean;
};
//# sourceMappingURL=usePipeCatalogTable.d.ts.map