@pipe0/react-sdk 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,20 +7,20 @@ export declare function usePipeCatalogTable(config?: {
|
|
|
7
7
|
}): {
|
|
8
8
|
table: import("@tanstack/react-table").Table<PipeCatalogTableData>;
|
|
9
9
|
sidebar: {
|
|
10
|
-
sortedInputFieldEntries: [string, ("
|
|
11
|
-
sortedOutputFieldEntries: [string, ("
|
|
12
|
-
sortedTagEntries: [string, ("
|
|
13
|
-
sortedProviderEntries: [string, ("
|
|
14
|
-
pipeIdsByInputField: Record<string, ("
|
|
15
|
-
pipeIdsByOutputField: Record<string, ("
|
|
16
|
-
pipeIdsByProvider: Record<string, ("
|
|
17
|
-
pipeIdsByTag: Record<string, ("
|
|
10
|
+
sortedInputFieldEntries: [string, ("run:prompt@1" | "company:newssummary:website@1" | "company:profile:builtwith@1" | "website:technologystack:builtwith@1" | "company:websiteurl:email@1" | "people:workemail:waterfall@1" | "people:is:workemail@1" | "people:split:name@1" | "people:validate:email:zerobounce@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:personalemail:professionalprofile:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1" | "people:mobilenumber:workemail:waterfall@1" | "people:join:name@1" | "company:identity@1" | "company:overview@1" | "json:extract@1" | "action:sendmail:resend@1")[]][];
|
|
11
|
+
sortedOutputFieldEntries: [string, ("run:prompt@1" | "company:newssummary:website@1" | "company:profile:builtwith@1" | "website:technologystack:builtwith@1" | "company:websiteurl:email@1" | "people:workemail:waterfall@1" | "people:is:workemail@1" | "people:split:name@1" | "people:validate:email:zerobounce@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:personalemail:professionalprofile:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1" | "people:mobilenumber:workemail:waterfall@1" | "people:join:name@1" | "company:identity@1" | "company:overview@1" | "json:extract@1" | "action:sendmail:resend@1")[]][];
|
|
12
|
+
sortedTagEntries: [string, ("run:prompt@1" | "company:newssummary:website@1" | "company:profile:builtwith@1" | "website:technologystack:builtwith@1" | "company:websiteurl:email@1" | "people:workemail:waterfall@1" | "people:is:workemail@1" | "people:split:name@1" | "people:validate:email:zerobounce@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:personalemail:professionalprofile:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1" | "people:mobilenumber:workemail:waterfall@1" | "people:join:name@1" | "company:identity@1" | "company:overview@1" | "json:extract@1" | "action:sendmail:resend@1")[]][];
|
|
13
|
+
sortedProviderEntries: [string, ("run:prompt@1" | "company:newssummary:website@1" | "company:profile:builtwith@1" | "website:technologystack:builtwith@1" | "company:websiteurl:email@1" | "people:workemail:waterfall@1" | "people:is:workemail@1" | "people:split:name@1" | "people:validate:email:zerobounce@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:personalemail:professionalprofile:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1" | "people:mobilenumber:workemail:waterfall@1" | "people:join:name@1" | "company:identity@1" | "company:overview@1" | "json:extract@1" | "action:sendmail:resend@1")[]][];
|
|
14
|
+
pipeIdsByInputField: Record<string, ("run:prompt@1" | "company:newssummary:website@1" | "company:profile:builtwith@1" | "website:technologystack:builtwith@1" | "company:websiteurl:email@1" | "people:workemail:waterfall@1" | "people:is:workemail@1" | "people:split:name@1" | "people:validate:email:zerobounce@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:personalemail:professionalprofile:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1" | "people:mobilenumber:workemail:waterfall@1" | "people:join:name@1" | "company:identity@1" | "company:overview@1" | "json:extract@1" | "action:sendmail:resend@1")[]>;
|
|
15
|
+
pipeIdsByOutputField: Record<string, ("run:prompt@1" | "company:newssummary:website@1" | "company:profile:builtwith@1" | "website:technologystack:builtwith@1" | "company:websiteurl:email@1" | "people:workemail:waterfall@1" | "people:is:workemail@1" | "people:split:name@1" | "people:validate:email:zerobounce@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:personalemail:professionalprofile:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1" | "people:mobilenumber:workemail:waterfall@1" | "people:join:name@1" | "company:identity@1" | "company:overview@1" | "json:extract@1" | "action:sendmail:resend@1")[]>;
|
|
16
|
+
pipeIdsByProvider: Record<string, ("run:prompt@1" | "company:newssummary:website@1" | "company:profile:builtwith@1" | "website:technologystack:builtwith@1" | "company:websiteurl:email@1" | "people:workemail:waterfall@1" | "people:is:workemail@1" | "people:split:name@1" | "people:validate:email:zerobounce@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:personalemail:professionalprofile:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1" | "people:mobilenumber:workemail:waterfall@1" | "people:join:name@1" | "company:identity@1" | "company:overview@1" | "json:extract@1" | "action:sendmail:resend@1")[]>;
|
|
17
|
+
pipeIdsByTag: Record<string, ("run:prompt@1" | "company:newssummary:website@1" | "company:profile:builtwith@1" | "website:technologystack:builtwith@1" | "company:websiteurl:email@1" | "people:workemail:waterfall@1" | "people:is:workemail@1" | "people:split:name@1" | "people:validate:email:zerobounce@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:personalemail:professionalprofile:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1" | "people:mobilenumber:workemail:waterfall@1" | "people:join:name@1" | "company:identity@1" | "company:overview@1" | "json:extract@1" | "action:sendmail:resend@1")[]>;
|
|
18
18
|
expandedSidebarSections: string[];
|
|
19
19
|
setExpandedSidebarSections: import("react").Dispatch<import("react").SetStateAction<string[]>>;
|
|
20
20
|
removeColumnFilter: (id: "inputFields" | "outputFields" | "tags" | "providers") => void;
|
|
21
21
|
addColumnFilter: (id: "inputFields" | "outputFields" | "tags" | "providers", value: string) => void;
|
|
22
22
|
};
|
|
23
|
-
pipeEntriesByBasePipe: Record<string, (import("@pipe0/client-sdk").PipeCatalogEntry<"
|
|
23
|
+
pipeEntriesByBasePipe: Record<string, (import("@pipe0/client-sdk").PipeCatalogEntry<"run:prompt@1" | "company:newssummary:website@1" | "company:profile:builtwith@1" | "website:technologystack:builtwith@1" | "company:websiteurl:email@1" | "people:workemail:waterfall@1" | "people:is:workemail@1" | "people:split:name@1" | "people:validate:email:zerobounce@1" | "people:professionalprofile:waterfall@1" | "people:professionalprofileurl:name@1" | "people:professionalprofileurl:email:waterfall@1" | "people:personalemail:professionalprofile:waterfall@1" | "people:mobilenumber:professionalprofile:waterfall@1" | "people:mobilenumber:workemail:waterfall@1" | "people:join:name@1" | "company:identity@1" | "company:overview@1" | "json:extract@1" | "action:sendmail:resend@1"> & {
|
|
24
24
|
pipeId: PipeId;
|
|
25
25
|
})[]>;
|
|
26
26
|
filterByField: (id: "inputFields" | "outputFields", fieldName: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePipeCatalogTable.d.ts","sourceRoot":"","sources":["../../src/hooks/usePipeCatalogTable.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"usePipeCatalogTable.d.ts","sourceRoot":"","sources":["../../src/hooks/usePipeCatalogTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,YAAY,EAOlB,MAAM,uBAAuB,CAAC;AA2C/B,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AACzD,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAuC1D,wBAAgB,mBAAmB,CACjC,MAAM,GAAE;IACN,oBAAoB,CAAC,EAAE,YAAY,EAAE,CAAC;CAClC;;;;;;;;;;;;;iCA2FC,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW;8BAlBpD,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW,SAClD,MAAM;;;;;wBAkCV,aAAa,GAAG,cAAc,aAAa,MAAM;;;0BAThD,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW,SAClD,MAAM;;;4BAjDJ,YAAY,GAAG,IAAI;;EAsGjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getInitialTableData, getTableDataAggregates, } from "@pipe0/client-sdk";
|
|
1
|
+
import { getDefaultOutputFields, getDefaultPipeProviders, getInitialTableData, getTableDataAggregates, } from "@pipe0/client-sdk";
|
|
2
2
|
import { createColumnHelper, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, useReactTable, } from "@tanstack/react-table";
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
const globalFilterFn = (row, columnId, filterValue) => {
|
|
@@ -36,7 +36,7 @@ const columns = [
|
|
|
36
36
|
filterFn: "arrIncludes",
|
|
37
37
|
enableGlobalFilter: true,
|
|
38
38
|
}),
|
|
39
|
-
columnHelper.accessor((row) => row
|
|
39
|
+
columnHelper.accessor((row) => getDefaultOutputFields(row) || [], {
|
|
40
40
|
id: "outputFields",
|
|
41
41
|
filterFn: "arrIncludes",
|
|
42
42
|
enableGlobalFilter: true,
|
|
@@ -46,7 +46,7 @@ const columns = [
|
|
|
46
46
|
filterFn: "arrIncludes",
|
|
47
47
|
enableGlobalFilter: true,
|
|
48
48
|
}),
|
|
49
|
-
columnHelper.accessor((row) => row.
|
|
49
|
+
columnHelper.accessor((row) => getDefaultPipeProviders(row.pipeId) || [], {
|
|
50
50
|
id: "providers",
|
|
51
51
|
filterFn: "arrIncludes",
|
|
52
52
|
enableGlobalFilter: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSearchCatalogTable.d.ts","sourceRoot":"","sources":["../../src/hooks/useSearchCatalogTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,QAAQ,EACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,YAAY,EAOlB,MAAM,uBAAuB,CAAC;AA2C/B,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"useSearchCatalogTable.d.ts","sourceRoot":"","sources":["../../src/hooks/useSearchCatalogTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,QAAQ,EACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,YAAY,EAOlB,MAAM,uBAAuB,CAAC;AA2C/B,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;AA8BlE,wBAAgB,qBAAqB,CACnC,MAAM,GAAE;IACN,oBAAoB,CAAC,EAAE,YAAY,EAAE,CAAC;CAClC;;;;;;;;;;;iCAmFA,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW;8BAhBrD,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW,SAClD,MAAM;;;wBA4BT,aAAa,GAAG,cAAc,aACvB,MAAM;;;0BARb,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW,SAClD,MAAM;;;4BA1CgB,cAAc,GAAG,IAAI;;EA2FrD"}
|
|
@@ -41,9 +41,8 @@ const columns = [
|
|
|
41
41
|
filterFn: "arrIncludes",
|
|
42
42
|
enableGlobalFilter: true,
|
|
43
43
|
}),
|
|
44
|
-
columnHelper.accessor((row) => row.
|
|
44
|
+
columnHelper.accessor((row) => row.provider, {
|
|
45
45
|
id: "providers",
|
|
46
|
-
filterFn: "arrIncludes",
|
|
47
46
|
enableGlobalFilter: true,
|
|
48
47
|
}),
|
|
49
48
|
columnHelper.accessor((row) => row.categories || [], {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipe0/react-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React utils to work with pipe0",
|
|
6
6
|
"keywords": [
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"lucide-react": "^0.475.0",
|
|
30
30
|
"react": "^19.0.0",
|
|
31
31
|
"react-dom": "^19.0.0",
|
|
32
|
-
"@pipe0/client-sdk": "0.0.
|
|
32
|
+
"@pipe0/client-sdk": "0.0.64"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^22.13.2",
|