@activepieces/piece-dataforb2b 0.0.1 → 0.0.3
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.
- package/package.json +7 -12
- package/src/i18n/de.json +95 -0
- package/src/i18n/es.json +95 -0
- package/src/i18n/fr.json +95 -0
- package/src/i18n/ja.json +95 -0
- package/src/i18n/nl.json +95 -0
- package/src/i18n/pt.json +95 -0
- package/src/i18n/translation.json +95 -0
- package/src/i18n/zh.json +95 -0
- package/src/index.js +13 -42
- package/src/index.d.ts +0 -2
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/enrich-company.d.ts +0 -4
- package/src/lib/actions/enrich-company.d.ts.map +0 -1
- package/src/lib/actions/enrich-company.js +0 -28
- package/src/lib/actions/enrich-company.js.map +0 -1
- package/src/lib/actions/enrich-profile.d.ts +0 -9
- package/src/lib/actions/enrich-profile.d.ts.map +0 -1
- package/src/lib/actions/enrich-profile.js +0 -67
- package/src/lib/actions/enrich-profile.js.map +0 -1
- package/src/lib/actions/reasoning-search.d.ts +0 -9
- package/src/lib/actions/reasoning-search.d.ts.map +0 -1
- package/src/lib/actions/reasoning-search.js +0 -74
- package/src/lib/actions/reasoning-search.js.map +0 -1
- package/src/lib/actions/search-companies.d.ts +0 -9
- package/src/lib/actions/search-companies.d.ts.map +0 -1
- package/src/lib/actions/search-companies.js +0 -52
- package/src/lib/actions/search-companies.js.map +0 -1
- package/src/lib/actions/search-people.d.ts +0 -9
- package/src/lib/actions/search-people.d.ts.map +0 -1
- package/src/lib/actions/search-people.js +0 -52
- package/src/lib/actions/search-people.js.map +0 -1
- package/src/lib/actions/typeahead.d.ts +0 -6
- package/src/lib/actions/typeahead.d.ts.map +0 -1
- package/src/lib/actions/typeahead.js +0 -43
- package/src/lib/actions/typeahead.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -40
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -286
- package/src/lib/common/index.js.map +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.enrichCompany = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.enrichCompany = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.dataforb2bAuth,
|
|
9
|
-
name: 'enrich_company',
|
|
10
|
-
displayName: 'Enrich Company',
|
|
11
|
-
description: 'Retrieve comprehensive information about a company.',
|
|
12
|
-
props: {
|
|
13
|
-
companyIdentifier: pieces_framework_1.Property.ShortText({
|
|
14
|
-
displayName: 'Company Identifier',
|
|
15
|
-
description: 'Company slug, LinkedIn URL, or encoded ID',
|
|
16
|
-
required: true,
|
|
17
|
-
}),
|
|
18
|
-
},
|
|
19
|
-
run(context) {
|
|
20
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const { companyIdentifier } = context.propsValue;
|
|
22
|
-
return (0, common_1.dataForB2BRequest)(context.auth.secret_text, '/enrich/company', {
|
|
23
|
-
company_identifier: companyIdentifier,
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=enrich-company.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enrich-company.js","sourceRoot":"","sources":["../../../../src/lib/actions/enrich-company.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAA8D;AAEjD,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,IAAI,EAAE,uBAAc;IACpB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,qDAAqD;IAClE,KAAK,EAAE;QACL,iBAAiB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACpC,WAAW,EAAE,oBAAoB;YACjC,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACjD,OAAO,IAAA,0BAAiB,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,EAAE;gBACpE,kBAAkB,EAAE,iBAAiB;aACtC,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const enrichProfile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
profileIdentifier: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
includeProfile: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
4
|
-
enrichWorkEmail: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
5
|
-
enrichPersonalEmail: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
6
|
-
enrichPhone: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
7
|
-
enrichGithub: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
-
}>;
|
|
9
|
-
//# sourceMappingURL=enrich-profile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enrich-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/enrich-profile.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;;;;EAqExB,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.enrichProfile = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.enrichProfile = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.dataforb2bAuth,
|
|
9
|
-
name: 'enrich_profile',
|
|
10
|
-
displayName: 'Enrich Profile',
|
|
11
|
-
description: 'Retrieve detailed professional data, work/personal email and phone for a person.',
|
|
12
|
-
props: {
|
|
13
|
-
profileIdentifier: pieces_framework_1.Property.ShortText({
|
|
14
|
-
displayName: 'Profile Identifier',
|
|
15
|
-
description: 'LinkedIn URL, public ID, or encoded ID',
|
|
16
|
-
required: true,
|
|
17
|
-
}),
|
|
18
|
-
includeProfile: pieces_framework_1.Property.Checkbox({
|
|
19
|
-
displayName: 'Enrich Profile',
|
|
20
|
-
description: 'Retrieve full profile data',
|
|
21
|
-
required: false,
|
|
22
|
-
defaultValue: true,
|
|
23
|
-
}),
|
|
24
|
-
enrichWorkEmail: pieces_framework_1.Property.Checkbox({
|
|
25
|
-
displayName: 'Enrich Work Email',
|
|
26
|
-
description: 'Retrieve professional email',
|
|
27
|
-
required: false,
|
|
28
|
-
defaultValue: false,
|
|
29
|
-
}),
|
|
30
|
-
enrichPersonalEmail: pieces_framework_1.Property.Checkbox({
|
|
31
|
-
displayName: 'Enrich Personal Email',
|
|
32
|
-
description: 'Retrieve personal email',
|
|
33
|
-
required: false,
|
|
34
|
-
defaultValue: false,
|
|
35
|
-
}),
|
|
36
|
-
enrichPhone: pieces_framework_1.Property.Checkbox({
|
|
37
|
-
displayName: 'Enrich Phone',
|
|
38
|
-
description: 'Retrieve phone number',
|
|
39
|
-
required: false,
|
|
40
|
-
defaultValue: false,
|
|
41
|
-
}),
|
|
42
|
-
enrichGithub: pieces_framework_1.Property.Checkbox({
|
|
43
|
-
displayName: 'Enrich GitHub',
|
|
44
|
-
description: 'Retrieve GitHub profile and repositories',
|
|
45
|
-
required: false,
|
|
46
|
-
defaultValue: false,
|
|
47
|
-
}),
|
|
48
|
-
},
|
|
49
|
-
run(context) {
|
|
50
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
const { profileIdentifier, includeProfile, enrichWorkEmail, enrichPersonalEmail, enrichPhone, enrichGithub, } = context.propsValue;
|
|
52
|
-
const flags = {
|
|
53
|
-
enrich_profile: includeProfile !== null && includeProfile !== void 0 ? includeProfile : false,
|
|
54
|
-
enrich_work_email: enrichWorkEmail !== null && enrichWorkEmail !== void 0 ? enrichWorkEmail : false,
|
|
55
|
-
enrich_personal_email: enrichPersonalEmail !== null && enrichPersonalEmail !== void 0 ? enrichPersonalEmail : false,
|
|
56
|
-
enrich_phone: enrichPhone !== null && enrichPhone !== void 0 ? enrichPhone : false,
|
|
57
|
-
enrich_github: enrichGithub !== null && enrichGithub !== void 0 ? enrichGithub : false,
|
|
58
|
-
};
|
|
59
|
-
// The API requires at least one enrich_* flag — default to full profile.
|
|
60
|
-
if (!Object.values(flags).some(Boolean)) {
|
|
61
|
-
flags.enrich_profile = true;
|
|
62
|
-
}
|
|
63
|
-
return (0, common_1.dataForB2BRequest)(context.auth.secret_text, '/enrich/profile', Object.assign({ profile_identifier: profileIdentifier }, flags));
|
|
64
|
-
});
|
|
65
|
-
},
|
|
66
|
-
});
|
|
67
|
-
//# sourceMappingURL=enrich-profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enrich-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/enrich-profile.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAA8D;AAEjD,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,IAAI,EAAE,uBAAc;IACpB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,kFAAkF;IAC/F,KAAK,EAAE;QACL,iBAAiB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACpC,WAAW,EAAE,oBAAoB;YACjC,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,cAAc,EAAE,2BAAQ,C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,YAAY,cAAZ,YAAY,GAAI,KAAK;aACrC,CAAC;YACF,yEAAyE;YACzE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;gBACxC,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC;YAC9B,CAAC;YAED,OAAO,IAAA,0BAAiB,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,kBAClE,kBAAkB,EAAE,iBAAiB,IAClC,KAAK,EACR,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const reasoningSearch: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
query: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
3
|
-
category: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
4
|
-
maxResults: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
5
|
-
sessionId: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
-
answers: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
7
|
-
enrichLive: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
-
}>;
|
|
9
|
-
//# sourceMappingURL=reasoning-search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reasoning-search.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/reasoning-search.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;EAuE1B,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.reasoningSearch = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.reasoningSearch = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.dataforb2bAuth,
|
|
9
|
-
name: 'reasoning_search',
|
|
10
|
-
displayName: 'Reasoning Search',
|
|
11
|
-
description: 'Describe who you are looking for in plain language. An AI agent builds the best filters and runs the search. It may return status "needs_input" with questions — answer by calling again with the returned session_id and an answers object.',
|
|
12
|
-
props: {
|
|
13
|
-
query: pieces_framework_1.Property.LongText({
|
|
14
|
-
displayName: 'Query',
|
|
15
|
-
description: 'Plain-language description, e.g. "Heads of Sales at French fintech scale-ups" (max 3000 chars). Required on the first call.',
|
|
16
|
-
required: false,
|
|
17
|
-
}),
|
|
18
|
-
category: pieces_framework_1.Property.StaticDropdown({
|
|
19
|
-
displayName: 'Category',
|
|
20
|
-
description: 'Whether to search people or companies',
|
|
21
|
-
required: false,
|
|
22
|
-
defaultValue: 'people',
|
|
23
|
-
options: {
|
|
24
|
-
options: [
|
|
25
|
-
{ label: 'People', value: 'people' },
|
|
26
|
-
{ label: 'Companies', value: 'companies' },
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
}),
|
|
30
|
-
maxResults: pieces_framework_1.Property.Number({
|
|
31
|
-
displayName: 'Max Results',
|
|
32
|
-
description: 'Number of results for the final search (1-100)',
|
|
33
|
-
required: false,
|
|
34
|
-
defaultValue: 25,
|
|
35
|
-
}),
|
|
36
|
-
sessionId: pieces_framework_1.Property.ShortText({
|
|
37
|
-
displayName: 'Session ID',
|
|
38
|
-
description: 'Session id returned by a previous call. Send it back to answer questions or refine the same search.',
|
|
39
|
-
required: false,
|
|
40
|
-
}),
|
|
41
|
-
answers: pieces_framework_1.Property.Json({
|
|
42
|
-
displayName: 'Answers (JSON)',
|
|
43
|
-
description: 'Answers to a needs_input turn, e.g. {"company_size":"201-500"}. Requires Session ID.',
|
|
44
|
-
required: false,
|
|
45
|
-
}),
|
|
46
|
-
enrichLive: pieces_framework_1.Property.Checkbox({
|
|
47
|
-
displayName: 'Enrich Live',
|
|
48
|
-
description: 'Enrich results with fresh live data instead of cached data',
|
|
49
|
-
required: false,
|
|
50
|
-
defaultValue: false,
|
|
51
|
-
}),
|
|
52
|
-
},
|
|
53
|
-
run(context) {
|
|
54
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
const { query, category, maxResults, sessionId, answers, enrichLive } = context.propsValue;
|
|
56
|
-
if (!query && !(sessionId && answers)) {
|
|
57
|
-
throw new Error("Provide 'query' (first call) or 'session_id' + 'answers' (to resolve a needs_input turn).");
|
|
58
|
-
}
|
|
59
|
-
const body = {
|
|
60
|
-
category: category !== null && category !== void 0 ? category : 'people',
|
|
61
|
-
max_results: maxResults !== null && maxResults !== void 0 ? maxResults : 25,
|
|
62
|
-
enrich_live: enrichLive !== null && enrichLive !== void 0 ? enrichLive : false,
|
|
63
|
-
};
|
|
64
|
-
if (query)
|
|
65
|
-
body['query'] = query;
|
|
66
|
-
if (sessionId)
|
|
67
|
-
body['session_id'] = sessionId;
|
|
68
|
-
if (answers)
|
|
69
|
-
body['answers'] = answers;
|
|
70
|
-
return (0, common_1.dataForB2BRequest)(context.auth.secret_text, '/search/reasoning', body);
|
|
71
|
-
});
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
//# sourceMappingURL=reasoning-search.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reasoning-search.js","sourceRoot":"","sources":["../../../../src/lib/actions/reasoning-search.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAA8D;AAEjD,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,uBAAc;IACpB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EACT,8OAA8O;IAChP,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACvB,WAAW,EAAE,OAAO;YACpB,WAAW,EACT,6HAA6H;YAC/H,QA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,MAAM,IAAI,GAA4B;gBACpC,QAAQ,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,QAAQ;gBAC9B,WAAW,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE;gBAC7B,WAAW,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,KAAK;aACjC,CAAC;YACF,IAAI,KAAK;gBAAE,IAAI,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;YACjC,IAAI,SAAS;gBAAE,IAAI,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;YAC9C,IAAI,OAAO;gBAAE,IAAI,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC;YAEvC,OAAO,IAAA,0BAAiB,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,mBAAmB,EAAE,IAAI,CAAC,CAAC;QAChF,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const searchCompanies: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
match: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
3
|
-
filters: import("@activepieces/pieces-framework").ArrayProperty<false> | import("@activepieces/pieces-framework").ArrayProperty<true>;
|
|
4
|
-
advancedFilters: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
5
|
-
count: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
6
|
-
offset: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
7
|
-
enrichLive: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
-
}>;
|
|
9
|
-
//# sourceMappingURL=search-companies.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-companies.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-companies.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,eAAe;;;;;;;EA6C1B,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchCompanies = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.searchCompanies = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.dataforb2bAuth,
|
|
9
|
-
name: 'search_companies',
|
|
10
|
-
displayName: 'Search Companies',
|
|
11
|
-
description: 'Find companies with advanced filters (industry, LinkedIn URL, size, location, growth, funding, investor...).',
|
|
12
|
-
props: {
|
|
13
|
-
match: common_1.filterLogicProp,
|
|
14
|
-
filters: (0, common_1.buildFiltersProp)(common_1.companyFilterFields, 'name'),
|
|
15
|
-
advancedFilters: common_1.advancedFiltersProp,
|
|
16
|
-
count: pieces_framework_1.Property.Number({
|
|
17
|
-
displayName: 'Count',
|
|
18
|
-
description: 'Number of results to return (max 1000)',
|
|
19
|
-
required: false,
|
|
20
|
-
defaultValue: 25,
|
|
21
|
-
}),
|
|
22
|
-
offset: pieces_framework_1.Property.Number({
|
|
23
|
-
displayName: 'Offset',
|
|
24
|
-
description: 'Pagination offset - number of results to skip',
|
|
25
|
-
required: false,
|
|
26
|
-
defaultValue: 0,
|
|
27
|
-
}),
|
|
28
|
-
enrichLive: pieces_framework_1.Property.Checkbox({
|
|
29
|
-
displayName: 'Enrich Live',
|
|
30
|
-
description: 'Enrich results with fresh live data',
|
|
31
|
-
required: false,
|
|
32
|
-
defaultValue: false,
|
|
33
|
-
}),
|
|
34
|
-
},
|
|
35
|
-
run(context) {
|
|
36
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
const { match, filters, advancedFilters, count, offset, enrichLive } = context.propsValue;
|
|
38
|
-
const conditions = (0, common_1.buildConditions)((filters !== null && filters !== void 0 ? filters : []));
|
|
39
|
-
const finalFilters = (0, common_1.finalizeFilters)(conditions, match !== null && match !== void 0 ? match : 'and', advancedFilters);
|
|
40
|
-
if (!finalFilters) {
|
|
41
|
-
throw new Error('Provide at least one filter or an advanced filter group.');
|
|
42
|
-
}
|
|
43
|
-
return (0, common_1.dataForB2BRequest)(context.auth.secret_text, '/search/companies', {
|
|
44
|
-
filters: finalFilters,
|
|
45
|
-
count: count !== null && count !== void 0 ? count : 25,
|
|
46
|
-
offset: offset !== null && offset !== void 0 ? offset : 0,
|
|
47
|
-
enrich_live: enrichLive !== null && enrichLive !== void 0 ? enrichLive : false,
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
//# sourceMappingURL=search-companies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-companies.js","sourceRoot":"","sources":["../../../../src/lib/actions/search-companies.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAUmB;AAEN,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,uBAAc;IACpB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,8GAA8G;IAC3H,KAAK,EAAE;QACL,KAAK,EAAE,wBAAe;QACtB,OAAO,EAAE,IAAA,yBAAgB,EAAC,4BAAmB,EAAE,MAAM,CAAC;QACtD,eAAe,EAAE,4BAAmB;QACpC,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SACjB,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACtB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,+CAA+C;YAC5D,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,CAAC;SAChB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC5B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,KAAK;SACpB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,GAClE,OAAO,CAAC,UAAU,CAAC;YACrB,MAAM,UAAU,GAAG,IAAA,wBAAe,EAAC,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAgB,CAAC,CAAC;YACnE,MAAM,YAAY,GAAG,IAAA,wBAAe,EAAC,UAAU,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,KAAK,EAAE,eAAe,CAAC,CAAC;YAElF,IAAI,CAAC,YAAY,EAAE,CAAC;gBAClB,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;YAC9E,CAAC;YAED,OAAO,IAAA,0BAAiB,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,mBAAmB,EAAE;gBACtE,OAAO,EAAE,YAAY;gBACrB,KAAK,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE;gBAClB,MAAM,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,CAAC;gBACnB,WAAW,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,KAAK;aACjC,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const searchPeople: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
match: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
3
|
-
filters: import("@activepieces/pieces-framework").ArrayProperty<false> | import("@activepieces/pieces-framework").ArrayProperty<true>;
|
|
4
|
-
advancedFilters: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
5
|
-
count: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
6
|
-
offset: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
7
|
-
enrichLive: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
-
}>;
|
|
9
|
-
//# sourceMappingURL=search-people.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-people.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-people.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY;;;;;;;EA6CvB,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchPeople = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.searchPeople = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.dataforb2bAuth,
|
|
9
|
-
name: 'search_people',
|
|
10
|
-
displayName: 'Search People',
|
|
11
|
-
description: 'Find professionals using 50+ filters (title, company, LinkedIn URL, skills, location, education, funding...).',
|
|
12
|
-
props: {
|
|
13
|
-
match: common_1.filterLogicProp,
|
|
14
|
-
filters: (0, common_1.buildFiltersProp)(common_1.peopleFilterFields, 'current_title'),
|
|
15
|
-
advancedFilters: common_1.advancedFiltersProp,
|
|
16
|
-
count: pieces_framework_1.Property.Number({
|
|
17
|
-
displayName: 'Count',
|
|
18
|
-
description: 'Number of results to return (max 1000)',
|
|
19
|
-
required: false,
|
|
20
|
-
defaultValue: 25,
|
|
21
|
-
}),
|
|
22
|
-
offset: pieces_framework_1.Property.Number({
|
|
23
|
-
displayName: 'Offset',
|
|
24
|
-
description: 'Pagination offset - number of results to skip',
|
|
25
|
-
required: false,
|
|
26
|
-
defaultValue: 0,
|
|
27
|
-
}),
|
|
28
|
-
enrichLive: pieces_framework_1.Property.Checkbox({
|
|
29
|
-
displayName: 'Enrich Live',
|
|
30
|
-
description: 'Enrich results with fresh live data',
|
|
31
|
-
required: false,
|
|
32
|
-
defaultValue: false,
|
|
33
|
-
}),
|
|
34
|
-
},
|
|
35
|
-
run(context) {
|
|
36
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
const { match, filters, advancedFilters, count, offset, enrichLive } = context.propsValue;
|
|
38
|
-
const conditions = (0, common_1.buildConditions)((filters !== null && filters !== void 0 ? filters : []));
|
|
39
|
-
const finalFilters = (0, common_1.finalizeFilters)(conditions, match !== null && match !== void 0 ? match : 'and', advancedFilters);
|
|
40
|
-
if (!finalFilters) {
|
|
41
|
-
throw new Error('Provide at least one filter or an advanced filter group.');
|
|
42
|
-
}
|
|
43
|
-
return (0, common_1.dataForB2BRequest)(context.auth.secret_text, '/search/people', {
|
|
44
|
-
filters: finalFilters,
|
|
45
|
-
count: count !== null && count !== void 0 ? count : 25,
|
|
46
|
-
offset: offset !== null && offset !== void 0 ? offset : 0,
|
|
47
|
-
enrich_live: enrichLive !== null && enrichLive !== void 0 ? enrichLive : false,
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
//# sourceMappingURL=search-people.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-people.js","sourceRoot":"","sources":["../../../../src/lib/actions/search-people.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAUmB;AAEN,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,uBAAc;IACpB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,+GAA+G;IAC5H,KAAK,EAAE;QACL,KAAK,EAAE,wBAAe;QACtB,OAAO,EAAE,IAAA,yBAAgB,EAAC,2BAAkB,EAAE,eAAe,CAAC;QAC9D,eAAe,EAAE,4BAAmB;QAC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,KAAK;aACjC,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const typeahead: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
3
|
-
q: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
limit: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
5
|
-
}>;
|
|
6
|
-
//# sourceMappingURL=typeahead.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeahead.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/typeahead.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;EAkCpB,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.typeahead = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.typeahead = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.dataforb2bAuth,
|
|
9
|
-
name: 'typeahead',
|
|
10
|
-
displayName: 'Typeahead',
|
|
11
|
-
description: 'Resolve the exact stored value for a search filter (company, industry, category, location, school, title, skill, investor). Use it before filtering, or when a search returns few/no results.',
|
|
12
|
-
props: {
|
|
13
|
-
type: pieces_framework_1.Property.StaticDropdown({
|
|
14
|
-
displayName: 'Type',
|
|
15
|
-
description: 'The category to autocomplete',
|
|
16
|
-
required: true,
|
|
17
|
-
options: { options: common_1.typeaheadTypeOptions },
|
|
18
|
-
}),
|
|
19
|
-
q: pieces_framework_1.Property.ShortText({
|
|
20
|
-
displayName: 'Query',
|
|
21
|
-
description: 'Partial text to autocomplete (1-100 characters), e.g. "pyth"',
|
|
22
|
-
required: true,
|
|
23
|
-
}),
|
|
24
|
-
limit: pieces_framework_1.Property.Number({
|
|
25
|
-
displayName: 'Limit',
|
|
26
|
-
description: 'Maximum number of results (1-20)',
|
|
27
|
-
required: false,
|
|
28
|
-
defaultValue: 20,
|
|
29
|
-
}),
|
|
30
|
-
},
|
|
31
|
-
run(context) {
|
|
32
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const { type, q, limit } = context.propsValue;
|
|
34
|
-
const clamped = Math.max(1, Math.min(Number(limit !== null && limit !== void 0 ? limit : 20), 20));
|
|
35
|
-
return (0, common_1.dataForB2BGet)(context.auth.secret_text, '/typeahead', {
|
|
36
|
-
type: type,
|
|
37
|
-
q: q,
|
|
38
|
-
limit: String(clamped),
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=typeahead.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeahead.js","sourceRoot":"","sources":["../../../../src/lib/actions/typeahead.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAgF;AAEnE,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,uBAAc;IACpB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,WAAW;IACxB,WAAW,EACT,+LAA+L;IACjM,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC5B,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,8BAA8B;YAC3C,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,EAAE,OAAO,EAAE,6BAAoB,EAAE;SAC3C,CAAC;QACF,CAAC,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACpB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,8DAA8D;YAC3E,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SACjB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC9C,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;YAC/D,OAAO,IAAA,sBAAa,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,YAAY,EAAE;gBAC3D,IAAI,EAAE,IAAc;gBACpB,CAAC,EAAE,CAAW;gBACd,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC;aACvB,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export declare const DATAFORB2B_API_BASE_URL = "https://api.dataforb2b.ai";
|
|
2
|
-
export declare const dataforb2bAuth: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
3
|
-
export declare function dataForB2BRequest<T = unknown>(apiKey: string, endpoint: string, body: Record<string, unknown>): Promise<T>;
|
|
4
|
-
export declare function dataForB2BGet<T = unknown>(apiKey: string, endpoint: string, queryParams: Record<string, string>): Promise<T>;
|
|
5
|
-
export declare const operatorMap: Record<string, string>;
|
|
6
|
-
export declare const operatorOptions: {
|
|
7
|
-
label: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}[];
|
|
10
|
-
export declare const peopleFilterFields: {
|
|
11
|
-
label: string;
|
|
12
|
-
value: string;
|
|
13
|
-
}[];
|
|
14
|
-
export declare const companyFilterFields: {
|
|
15
|
-
label: string;
|
|
16
|
-
value: string;
|
|
17
|
-
}[];
|
|
18
|
-
export type RawFilter = {
|
|
19
|
-
field: string;
|
|
20
|
-
operator: string;
|
|
21
|
-
value: string;
|
|
22
|
-
value2?: string;
|
|
23
|
-
};
|
|
24
|
-
export declare const filterLogicProp: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
25
|
-
export declare function buildFiltersProp(fields: {
|
|
26
|
-
label: string;
|
|
27
|
-
value: string;
|
|
28
|
-
}[], defaultField: string): import("@activepieces/pieces-framework").ArrayProperty<false> | import("@activepieces/pieces-framework").ArrayProperty<true>;
|
|
29
|
-
export declare function buildConditions(filters: RawFilter[]): Record<string, unknown>[];
|
|
30
|
-
/**
|
|
31
|
-
* Combine the UI filter conditions (joined by `match` = and/or) with an optional
|
|
32
|
-
* advanced filter group provided as raw JSON. Mirrors the Dify plugin behaviour.
|
|
33
|
-
*/
|
|
34
|
-
export declare function finalizeFilters(conditions: Record<string, unknown>[], match: string, advanced: unknown): Record<string, unknown> | undefined;
|
|
35
|
-
export declare const advancedFiltersProp: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
36
|
-
export declare const typeaheadTypeOptions: {
|
|
37
|
-
label: string;
|
|
38
|
-
value: string;
|
|
39
|
-
}[];
|
|
40
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AAInE,eAAO,MAAM,cAAc,mEA6BzB,CAAC;AAIH,wBAAsB,iBAAiB,CAAC,CAAC,GAAG,OAAO,EACjD,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,CAAC,CAAC,CAWZ;AAED,wBAAsB,aAAa,CAAC,CAAC,GAAG,OAAO,EAC7C,MAAM,EAAE,MAAM,E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