@activepieces/piece-enrichlayer 0.0.2 → 0.0.4
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/index.js +13 -80
- 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/get-company-id-lookup.d.ts +0 -4
- package/src/lib/actions/get-company-id-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-company-id-lookup.js +0 -29
- package/src/lib/actions/get-company-id-lookup.js.map +0 -1
- package/src/lib/actions/get-company-lookup.d.ts +0 -7
- package/src/lib/actions/get-company-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-company-lookup.js +0 -53
- package/src/lib/actions/get-company-lookup.js.map +0 -1
- package/src/lib/actions/get-company-picture.d.ts +0 -4
- package/src/lib/actions/get-company-picture.d.ts.map +0 -1
- package/src/lib/actions/get-company-picture.js +0 -29
- package/src/lib/actions/get-company-picture.js.map +0 -1
- package/src/lib/actions/get-company-profile.d.ts +0 -11
- package/src/lib/actions/get-company-profile.d.ts.map +0 -1
- package/src/lib/actions/get-company-profile.js +0 -113
- package/src/lib/actions/get-company-profile.js.map +0 -1
- package/src/lib/actions/get-company-search.d.ts +0 -29
- package/src/lib/actions/get-company-search.d.ts.map +0 -1
- package/src/lib/actions/get-company-search.js +0 -213
- package/src/lib/actions/get-company-search.js.map +0 -1
- package/src/lib/actions/get-credit-balance.d.ts +0 -2
- package/src/lib/actions/get-credit-balance.d.ts.map +0 -1
- package/src/lib/actions/get-credit-balance.js +0 -21
- package/src/lib/actions/get-credit-balance.js.map +0 -1
- package/src/lib/actions/get-disposable-email-check.d.ts +0 -4
- package/src/lib/actions/get-disposable-email-check.d.ts.map +0 -1
- package/src/lib/actions/get-disposable-email-check.js +0 -29
- package/src/lib/actions/get-disposable-email-check.js.map +0 -1
- package/src/lib/actions/get-employee-count.d.ts +0 -9
- package/src/lib/actions/get-employee-count.d.ts.map +0 -1
- package/src/lib/actions/get-employee-count.js +0 -84
- package/src/lib/actions/get-employee-count.js.map +0 -1
- package/src/lib/actions/get-employee-listing.d.ts +0 -14
- package/src/lib/actions/get-employee-listing.d.ts.map +0 -1
- package/src/lib/actions/get-employee-listing.js +0 -128
- package/src/lib/actions/get-employee-listing.js.map +0 -1
- package/src/lib/actions/get-employee-search.d.ts +0 -10
- package/src/lib/actions/get-employee-search.d.ts.map +0 -1
- package/src/lib/actions/get-employee-search.js +0 -77
- package/src/lib/actions/get-employee-search.js.map +0 -1
- package/src/lib/actions/get-job-count.d.ts +0 -10
- package/src/lib/actions/get-job-count.d.ts.map +0 -1
- package/src/lib/actions/get-job-count.js +0 -102
- package/src/lib/actions/get-job-count.js.map +0 -1
- package/src/lib/actions/get-job-profile.d.ts +0 -4
- package/src/lib/actions/get-job-profile.d.ts.map +0 -1
- package/src/lib/actions/get-job-profile.js +0 -29
- package/src/lib/actions/get-job-profile.js.map +0 -1
- package/src/lib/actions/get-job-search.d.ts +0 -10
- package/src/lib/actions/get-job-search.d.ts.map +0 -1
- package/src/lib/actions/get-job-search.js +0 -102
- package/src/lib/actions/get-job-search.js.map +0 -1
- package/src/lib/actions/get-person-lookup.d.ts +0 -10
- package/src/lib/actions/get-person-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-person-lookup.js +0 -77
- package/src/lib/actions/get-person-lookup.js.map +0 -1
- package/src/lib/actions/get-person-picture.d.ts +0 -4
- package/src/lib/actions/get-person-picture.d.ts.map +0 -1
- package/src/lib/actions/get-person-picture.js +0 -29
- package/src/lib/actions/get-person-picture.js.map +0 -1
- package/src/lib/actions/get-person-profile.d.ts +0 -17
- package/src/lib/actions/get-person-profile.d.ts.map +0 -1
- package/src/lib/actions/get-person-profile.js +0 -173
- package/src/lib/actions/get-person-profile.js.map +0 -1
- package/src/lib/actions/get-person-search.d.ts +0 -57
- package/src/lib/actions/get-person-search.d.ts.map +0 -1
- package/src/lib/actions/get-person-search.js +0 -381
- package/src/lib/actions/get-person-search.js.map +0 -1
- package/src/lib/actions/get-personal-contact.d.ts +0 -7
- package/src/lib/actions/get-personal-contact.d.ts.map +0 -1
- package/src/lib/actions/get-personal-contact.js +0 -47
- package/src/lib/actions/get-personal-contact.js.map +0 -1
- package/src/lib/actions/get-personal-email.d.ts +0 -8
- package/src/lib/actions/get-personal-email.d.ts.map +0 -1
- package/src/lib/actions/get-personal-email.js +0 -63
- package/src/lib/actions/get-personal-email.js.map +0 -1
- package/src/lib/actions/get-reverse-email-lookup.d.ts +0 -6
- package/src/lib/actions/get-reverse-email-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-reverse-email-lookup.js +0 -56
- package/src/lib/actions/get-reverse-email-lookup.js.map +0 -1
- package/src/lib/actions/get-reverse-phone-lookup.d.ts +0 -4
- package/src/lib/actions/get-reverse-phone-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-reverse-phone-lookup.js +0 -29
- package/src/lib/actions/get-reverse-phone-lookup.js.map +0 -1
- package/src/lib/actions/get-role-lookup.d.ts +0 -6
- package/src/lib/actions/get-role-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-role-lookup.js +0 -47
- package/src/lib/actions/get-role-lookup.js.map +0 -1
- package/src/lib/actions/get-school-profile.d.ts +0 -6
- package/src/lib/actions/get-school-profile.d.ts.map +0 -1
- package/src/lib/actions/get-school-profile.js +0 -53
- package/src/lib/actions/get-school-profile.js.map +0 -1
- package/src/lib/actions/get-student-listing.d.ts +0 -11
- package/src/lib/actions/get-student-listing.d.ts.map +0 -1
- package/src/lib/actions/get-student-listing.js +0 -97
- package/src/lib/actions/get-student-listing.js.map +0 -1
- package/src/lib/actions/get-work-email-lookup.d.ts +0 -5
- package/src/lib/actions/get-work-email-lookup.d.ts.map +0 -1
- package/src/lib/actions/get-work-email-lookup.js +0 -35
- package/src/lib/actions/get-work-email-lookup.js.map +0 -1
- package/src/lib/auth.d.ts +0 -2
- package/src/lib/auth.d.ts.map +0 -1
- package/src/lib/auth.js +0 -22
- package/src/lib/auth.js.map +0 -1
- package/src/lib/common/client.d.ts +0 -2
- package/src/lib/common/client.d.ts.map +0 -1
- package/src/lib/common/client.js +0 -28
- package/src/lib/common/client.js.map +0 -1
- package/src/lib/common/constants.d.ts +0 -29
- package/src/lib/common/constants.d.ts.map +0 -1
- package/src/lib/common/constants.js +0 -32
- package/src/lib/common/constants.js.map +0 -1
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCompanyIdLookup = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const client_1 = require("../common/client");
|
|
7
|
-
const constants_1 = require("../common/constants");
|
|
8
|
-
const auth_1 = require("../auth");
|
|
9
|
-
exports.getCompanyIdLookup = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'get_company_id_lookup',
|
|
11
|
-
auth: auth_1.enrichlayerAuth,
|
|
12
|
-
displayName: 'Look Up Company by Numeric ID',
|
|
13
|
-
description: 'Resolve the vanity ID of a company from its numeric ID (0 credits)',
|
|
14
|
-
props: {
|
|
15
|
-
id: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Numeric Company ID',
|
|
17
|
-
description: "The company's internal, immutable numeric ID (e.g., 1441 for Google)",
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
},
|
|
21
|
-
run(context) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return yield (0, client_1.enrichlayerApiCall)(context.auth.secret_text, constants_1.ENDPOINTS.COMPANY_ID_LOOKUP, {
|
|
24
|
-
id: context.propsValue.id,
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=get-company-id-lookup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-company-id-lookup.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-company-id-lookup.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6CAAsD;AACtD,mDAAgD;AAChD,kCAA0C;AAE7B,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,sBAAe;IACrB,WAAW,EAAE,+BAA+B;IAC5C,WAAW,EACT,oEAAoE;IACtE,KAAK,EAAE;QACL,EAAE,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,oBAAoB;YACjC,WAAW,EACT,sEAAsE;YACxE,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,MAAM,IAAA,2BAAkB,EAC7B,OAAO,CAAC,IAAI,CAAC,WAAqB,EAClC,qBAAS,CAAC,iBAAiB,EAC3B;gBACE,EAAE,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE;aAC1B,CACF,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const getCompanyLookup: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
company_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
3
|
-
company_domain: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
company_location: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
enrich_profile: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=get-company-lookup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-company-lookup.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-company-lookup.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;EAiD3B,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCompanyLookup = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const client_1 = require("../common/client");
|
|
8
|
-
const constants_1 = require("../common/constants");
|
|
9
|
-
exports.getCompanyLookup = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'get_company_lookup',
|
|
11
|
-
auth: auth_1.enrichlayerAuth,
|
|
12
|
-
displayName: 'Look Up Company',
|
|
13
|
-
description: 'Resolve a Company Profile from company name, domain, or location (2 credits)',
|
|
14
|
-
props: {
|
|
15
|
-
company_name: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Company Name',
|
|
17
|
-
description: 'Name of the company. Requires either Company Name or Company Domain.',
|
|
18
|
-
required: false,
|
|
19
|
-
}),
|
|
20
|
-
company_domain: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Company Domain',
|
|
22
|
-
description: 'Company website or domain (e.g., accenture.com). Requires either Company Name or Company Domain.',
|
|
23
|
-
required: false,
|
|
24
|
-
}),
|
|
25
|
-
company_location: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'Company Location',
|
|
27
|
-
description: 'ISO 3166-1 alpha-2 country code (e.g., sg, us)',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
enrich_profile: pieces_framework_1.Property.StaticDropdown({
|
|
31
|
-
displayName: 'Enrich Profile',
|
|
32
|
-
description: 'Enrich the result with cached company profile data (+1 credit)',
|
|
33
|
-
required: false,
|
|
34
|
-
options: {
|
|
35
|
-
options: [
|
|
36
|
-
{ label: 'Skip (default)', value: 'skip' },
|
|
37
|
-
{ label: 'Enrich (+1 credit)', value: 'enrich' },
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
}),
|
|
41
|
-
},
|
|
42
|
-
run(context) {
|
|
43
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
return yield (0, client_1.enrichlayerApiCall)(context.auth.secret_text, constants_1.ENDPOINTS.COMPANY_LOOKUP, {
|
|
45
|
-
company_name: context.propsValue.company_name,
|
|
46
|
-
company_domain: context.propsValue.company_domain,
|
|
47
|
-
company_location: context.propsValue.company_location,
|
|
48
|
-
enrich_profile: context.propsValue.enrich_profile,
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=get-company-lookup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-company-lookup.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-company-lookup.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAA0C;AAC1C,6CAAsD;AACtD,mDAAgD;AAEnC,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,sBAAe;IACrB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EACT,8EAA8E;IAChF,KAAK,EAAE;QACL,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,cAAc;YAC3B,WAAW,EACT,sEAAsE;YACxE,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACjC,WAAW,EAAE,gBAAgB;YAC7B,WAAW,EACT,kGAAkG;YACpG,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,gBAAgB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACnC,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACtC,WAAW,EAAE,gBAAgB;YAC7B,WAAW,EACT,gEAAgE;YAClE,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,EAAE;oBAC1C,EAAE,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,QAAQ,EAAE;iBACjD;aACF;SACF,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,MAAM,IAAA,2BAAkB,EAC7B,OAAO,CAAC,IAAI,CAAC,WAAqB,EAClC,qBAAS,CAAC,cAAc,EACxB;gBACE,YAAY,EAAE,OAAO,CAAC,UAAU,CAAC,YAAY;gBAC7C,cAAc,EAAE,OAAO,CAAC,UAAU,CAAC,cAAc;gBACjD,gBAAgB,EAAE,OAAO,CAAC,UAAU,CAAC,gBAAgB;gBACrD,cAAc,EAAE,OAAO,CAAC,UAAU,CAAC,cAAc;aAClD,CACF,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const getCompanyPicture: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
company_profile_url: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=get-company-picture.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-company-picture.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-company-picture.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB;;EAuB5B,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCompanyPicture = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const client_1 = require("../common/client");
|
|
8
|
-
const constants_1 = require("../common/constants");
|
|
9
|
-
exports.getCompanyPicture = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'get_company_picture',
|
|
11
|
-
auth: auth_1.enrichlayerAuth,
|
|
12
|
-
displayName: 'Get Company Profile Picture',
|
|
13
|
-
description: 'Get the profile picture URL of a company from cached profiles (0 credits)',
|
|
14
|
-
props: {
|
|
15
|
-
company_profile_url: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Company Profile URL',
|
|
17
|
-
description: 'Professional network company URL (e.g., https://www.linkedin.com/company/apple/)',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
},
|
|
21
|
-
run(context) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return yield (0, client_1.enrichlayerApiCall)(context.auth.secret_text, constants_1.ENDPOINTS.COMPANY_PICTURE, {
|
|
24
|
-
company_profile_url: context.propsValue.company_profile_url,
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=get-company-picture.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-company-picture.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-company-picture.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAA0C;AAC1C,6CAAsD;AACtD,mDAAgD;AAEnC,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,sBAAe;IACrB,WAAW,EAAE,6BAA6B;IAC1C,WAAW,EACT,2EAA2E;IAC7E,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EACT,kFAAkF;YACpF,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,MAAM,IAAA,2BAAkB,EAC7B,OAAO,CAAC,IAAI,CAAC,WAAqB,EAClC,qBAAS,CAAC,eAAe,EACzB;gBACE,mBAAmB,EAAE,OAAO,CAAC,UAAU,CAAC,mBAAmB;aAC5D,CACF,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const getCompanyProfile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
url: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
categories: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
4
|
-
funding_data: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
5
|
-
exit_data: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
6
|
-
acquisitions: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
7
|
-
extra: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
8
|
-
use_cache: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
9
|
-
fallback_to_cache: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
10
|
-
}>;
|
|
11
|
-
//# sourceMappingURL=get-company-profile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-company-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-company-profile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB;;;;;;;;;EA4G5B,CAAC"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCompanyProfile = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const client_1 = require("../common/client");
|
|
8
|
-
const constants_1 = require("../common/constants");
|
|
9
|
-
exports.getCompanyProfile = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'get_company_profile',
|
|
11
|
-
auth: auth_1.enrichlayerAuth,
|
|
12
|
-
displayName: 'Get Company Profile',
|
|
13
|
-
description: 'Get structured data of a Company Profile from a professional network URL (1 credit)',
|
|
14
|
-
props: {
|
|
15
|
-
url: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Company URL',
|
|
17
|
-
description: 'Professional network company URL to enrich (e.g., https://www.linkedin.com/company/google/)',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
categories: pieces_framework_1.Property.StaticDropdown({
|
|
21
|
-
displayName: 'Include Categories',
|
|
22
|
-
description: 'Append category data for this company (+1 credit)',
|
|
23
|
-
required: false,
|
|
24
|
-
options: {
|
|
25
|
-
options: [
|
|
26
|
-
{ label: 'Exclude (default)', value: 'exclude' },
|
|
27
|
-
{ label: 'Include (+1 credit)', value: 'include' },
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
}),
|
|
31
|
-
funding_data: pieces_framework_1.Property.StaticDropdown({
|
|
32
|
-
displayName: 'Include Funding Data',
|
|
33
|
-
description: 'Return a list of funding rounds (+1 credit)',
|
|
34
|
-
required: false,
|
|
35
|
-
options: {
|
|
36
|
-
options: [
|
|
37
|
-
{ label: 'Exclude (default)', value: 'exclude' },
|
|
38
|
-
{ label: 'Include (+1 credit)', value: 'include' },
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
}),
|
|
42
|
-
exit_data: pieces_framework_1.Property.StaticDropdown({
|
|
43
|
-
displayName: 'Include Exit Data',
|
|
44
|
-
description: 'Return investment portfolio exits (+1 credit)',
|
|
45
|
-
required: false,
|
|
46
|
-
options: {
|
|
47
|
-
options: [
|
|
48
|
-
{ label: 'Exclude (default)', value: 'exclude' },
|
|
49
|
-
{ label: 'Include (+1 credit)', value: 'include' },
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
}),
|
|
53
|
-
acquisitions: pieces_framework_1.Property.StaticDropdown({
|
|
54
|
-
displayName: 'Include Acquisitions',
|
|
55
|
-
description: 'Return enriched acquisition data (+1 credit)',
|
|
56
|
-
required: false,
|
|
57
|
-
options: {
|
|
58
|
-
options: [
|
|
59
|
-
{ label: 'Exclude (default)', value: 'exclude' },
|
|
60
|
-
{ label: 'Include (+1 credit)', value: 'include' },
|
|
61
|
-
],
|
|
62
|
-
},
|
|
63
|
-
}),
|
|
64
|
-
extra: pieces_framework_1.Property.StaticDropdown({
|
|
65
|
-
displayName: 'Include Extra Data',
|
|
66
|
-
description: 'Enrich with Crunchbase ranking, contact info, social accounts, funding details, IPO status (+1 credit)',
|
|
67
|
-
required: false,
|
|
68
|
-
options: {
|
|
69
|
-
options: [
|
|
70
|
-
{ label: 'Exclude (default)', value: 'exclude' },
|
|
71
|
-
{ label: 'Include (+1 credit)', value: 'include' },
|
|
72
|
-
],
|
|
73
|
-
},
|
|
74
|
-
}),
|
|
75
|
-
use_cache: pieces_framework_1.Property.StaticDropdown({
|
|
76
|
-
displayName: 'Cache Strategy',
|
|
77
|
-
description: 'Control how cached data is used',
|
|
78
|
-
required: false,
|
|
79
|
-
options: {
|
|
80
|
-
options: [
|
|
81
|
-
{ label: 'If Present (default)', value: 'if-present' },
|
|
82
|
-
{ label: 'If Recent (+1 credit)', value: 'if-recent' },
|
|
83
|
-
],
|
|
84
|
-
},
|
|
85
|
-
}),
|
|
86
|
-
fallback_to_cache: pieces_framework_1.Property.StaticDropdown({
|
|
87
|
-
displayName: 'Fallback to Cache',
|
|
88
|
-
description: 'Fallback behavior if fetching a fresh profile fails',
|
|
89
|
-
required: false,
|
|
90
|
-
options: {
|
|
91
|
-
options: [
|
|
92
|
-
{ label: 'On Error (default)', value: 'on-error' },
|
|
93
|
-
{ label: 'Never', value: 'never' },
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
|
-
}),
|
|
97
|
-
},
|
|
98
|
-
run(context) {
|
|
99
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
return yield (0, client_1.enrichlayerApiCall)(context.auth.secret_text, constants_1.ENDPOINTS.COMPANY_PROFILE, {
|
|
101
|
-
url: context.propsValue.url,
|
|
102
|
-
categories: context.propsValue.categories,
|
|
103
|
-
funding_data: context.propsValue.funding_data,
|
|
104
|
-
exit_data: context.propsValue.exit_data,
|
|
105
|
-
acquisitions: context.propsValue.acquisitions,
|
|
106
|
-
extra: context.propsValue.extra,
|
|
107
|
-
use_cache: context.propsValue.use_cache,
|
|
108
|
-
fallback_to_cache: context.propsValue.fallback_to_cache,
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
},
|
|
112
|
-
});
|
|
113
|
-
//# sourceMappingURL=get-company-profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-company-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-company-profile.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAA0C;AAC1C,6CAAsD;AACtD,mDAAgD;AAEnC,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,sBAAe;IACrB,WAAW,EAAE,qBAAqB;IAClC,WAAW,EACT,qFAAqF;IACvF,KAAK,EAAE;QACL,GAAG,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtB,WAAW,EAAE,aAAa;YAC1B,WAAW,EACT,6FAA6F;YAC/F,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAClC,WAAW,EAAE,oBAAoB;YACjC,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,SAAS,EAAE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xD,CACF,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const getCompanySearch: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
3
|
-
country: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
region: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
city: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
-
industry: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
primary_industry: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
|
-
type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
9
|
-
employee_count_category: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
10
|
-
employee_count_min: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
11
|
-
employee_count_max: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
12
|
-
follower_count_min: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
13
|
-
follower_count_max: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
-
description: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
15
|
-
specialities: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
16
|
-
founded_after_year: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
17
|
-
founded_before_year: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
18
|
-
funding_amount_min: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
19
|
-
funding_amount_max: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
20
|
-
funding_raised_after: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
21
|
-
funding_raised_before: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
22
|
-
domain_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
23
|
-
public_identifier_in_list: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
24
|
-
public_identifier_not_in_list: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
25
|
-
page_size: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
26
|
-
enrich_profiles: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
27
|
-
use_cache: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
28
|
-
}>;
|
|
29
|
-
//# sourceMappingURL=get-company-search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-company-search.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-company-search.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyN3B,CAAC"}
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCompanySearch = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const client_1 = require("../common/client");
|
|
8
|
-
const constants_1 = require("../common/constants");
|
|
9
|
-
exports.getCompanySearch = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'get_company_search',
|
|
11
|
-
auth: auth_1.enrichlayerAuth,
|
|
12
|
-
displayName: 'Search Companies',
|
|
13
|
-
description: 'Search for companies matching a set of criteria across an exhaustive dataset (3 credits per company URL returned)',
|
|
14
|
-
props: {
|
|
15
|
-
name: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Company Name',
|
|
17
|
-
description: 'Filter by company name (boolean search syntax, e.g., "circle || amelex")',
|
|
18
|
-
required: false,
|
|
19
|
-
}),
|
|
20
|
-
country: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Country',
|
|
22
|
-
description: 'Filter by country (ISO 3166-1 alpha-2, e.g., US)',
|
|
23
|
-
required: false,
|
|
24
|
-
}),
|
|
25
|
-
region: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'Region',
|
|
27
|
-
description: 'Filter by state/province (e.g., Maryland OR "New York")',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
city: pieces_framework_1.Property.ShortText({
|
|
31
|
-
displayName: 'City',
|
|
32
|
-
description: 'Filter by city (e.g., "Los Angeles")',
|
|
33
|
-
required: false,
|
|
34
|
-
}),
|
|
35
|
-
industry: pieces_framework_1.Property.ShortText({
|
|
36
|
-
displayName: 'Industry',
|
|
37
|
-
description: 'Filter by industry (boolean search, e.g., "technology || manufacturing")',
|
|
38
|
-
required: false,
|
|
39
|
-
}),
|
|
40
|
-
primary_industry: pieces_framework_1.Property.ShortText({
|
|
41
|
-
displayName: 'Primary Industry',
|
|
42
|
-
description: 'Filter by primary industry only',
|
|
43
|
-
required: false,
|
|
44
|
-
}),
|
|
45
|
-
type: pieces_framework_1.Property.StaticDropdown({
|
|
46
|
-
displayName: 'Company Type',
|
|
47
|
-
description: 'Filter by company type',
|
|
48
|
-
required: false,
|
|
49
|
-
options: {
|
|
50
|
-
options: [
|
|
51
|
-
{ label: 'Educational', value: 'EDUCATIONAL' },
|
|
52
|
-
{ label: 'Government Agency', value: 'GOVERNMENT_AGENCY' },
|
|
53
|
-
{ label: 'Non-Profit', value: 'NON_PROFIT' },
|
|
54
|
-
{ label: 'Partnership', value: 'PARTNERSHIP' },
|
|
55
|
-
{ label: 'Privately Held', value: 'PRIVATELY_HELD' },
|
|
56
|
-
{ label: 'Public Company', value: 'PUBLIC_COMPANY' },
|
|
57
|
-
{ label: 'Self-Employed', value: 'SELF_EMPLOYED' },
|
|
58
|
-
{ label: 'Sole Proprietorship', value: 'SELF_OWNED' },
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
}),
|
|
62
|
-
employee_count_category: pieces_framework_1.Property.StaticDropdown({
|
|
63
|
-
displayName: 'Employee Count Category',
|
|
64
|
-
description: 'Filter by employee count category (takes precedence over min/max)',
|
|
65
|
-
required: false,
|
|
66
|
-
options: {
|
|
67
|
-
options: [
|
|
68
|
-
{ label: 'Custom (default)', value: 'custom' },
|
|
69
|
-
{ label: 'Startup (1-10)', value: 'startup' },
|
|
70
|
-
{ label: 'Small (11-50)', value: 'small' },
|
|
71
|
-
{ label: 'Medium (51-250)', value: 'medium' },
|
|
72
|
-
{ label: 'Large (251-1000)', value: 'large' },
|
|
73
|
-
{ label: 'Enterprise (1001+)', value: 'enterprise' },
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
}),
|
|
77
|
-
employee_count_min: pieces_framework_1.Property.ShortText({
|
|
78
|
-
displayName: 'Employee Count Min',
|
|
79
|
-
description: 'Minimum number of employees',
|
|
80
|
-
required: false,
|
|
81
|
-
}),
|
|
82
|
-
employee_count_max: pieces_framework_1.Property.ShortText({
|
|
83
|
-
displayName: 'Employee Count Max',
|
|
84
|
-
description: 'Maximum number of employees',
|
|
85
|
-
required: false,
|
|
86
|
-
}),
|
|
87
|
-
follower_count_min: pieces_framework_1.Property.ShortText({
|
|
88
|
-
displayName: 'Follower Count Min',
|
|
89
|
-
description: 'Minimum follower count',
|
|
90
|
-
required: false,
|
|
91
|
-
}),
|
|
92
|
-
follower_count_max: pieces_framework_1.Property.ShortText({
|
|
93
|
-
displayName: 'Follower Count Max',
|
|
94
|
-
description: 'Maximum follower count',
|
|
95
|
-
required: false,
|
|
96
|
-
}),
|
|
97
|
-
description: pieces_framework_1.Property.ShortText({
|
|
98
|
-
displayName: 'Description',
|
|
99
|
-
description: 'Filter by company description (boolean search)',
|
|
100
|
-
required: false,
|
|
101
|
-
}),
|
|
102
|
-
specialities: pieces_framework_1.Property.ShortText({
|
|
103
|
-
displayName: 'Specialities',
|
|
104
|
-
description: 'Filter by speciality (boolean search)',
|
|
105
|
-
required: false,
|
|
106
|
-
}),
|
|
107
|
-
founded_after_year: pieces_framework_1.Property.ShortText({
|
|
108
|
-
displayName: 'Founded After Year',
|
|
109
|
-
description: 'Filter companies founded after this year',
|
|
110
|
-
required: false,
|
|
111
|
-
}),
|
|
112
|
-
founded_before_year: pieces_framework_1.Property.ShortText({
|
|
113
|
-
displayName: 'Founded Before Year',
|
|
114
|
-
description: 'Filter companies founded before this year',
|
|
115
|
-
required: false,
|
|
116
|
-
}),
|
|
117
|
-
funding_amount_min: pieces_framework_1.Property.ShortText({
|
|
118
|
-
displayName: 'Funding Amount Min (USD)',
|
|
119
|
-
description: 'Minimum funding raised',
|
|
120
|
-
required: false,
|
|
121
|
-
}),
|
|
122
|
-
funding_amount_max: pieces_framework_1.Property.ShortText({
|
|
123
|
-
displayName: 'Funding Amount Max (USD)',
|
|
124
|
-
description: 'Maximum funding raised',
|
|
125
|
-
required: false,
|
|
126
|
-
}),
|
|
127
|
-
funding_raised_after: pieces_framework_1.Property.ShortText({
|
|
128
|
-
displayName: 'Funding Raised After',
|
|
129
|
-
description: 'Filter companies that raised funding after this date (YYYY-MM-DD)',
|
|
130
|
-
required: false,
|
|
131
|
-
}),
|
|
132
|
-
funding_raised_before: pieces_framework_1.Property.ShortText({
|
|
133
|
-
displayName: 'Funding Raised Before',
|
|
134
|
-
description: 'Filter companies that raised funding before this date (YYYY-MM-DD)',
|
|
135
|
-
required: false,
|
|
136
|
-
}),
|
|
137
|
-
domain_name: pieces_framework_1.Property.ShortText({
|
|
138
|
-
displayName: 'Domain Name',
|
|
139
|
-
description: 'Filter by domain name (e.g., pfizer.com)',
|
|
140
|
-
required: false,
|
|
141
|
-
}),
|
|
142
|
-
public_identifier_in_list: pieces_framework_1.Property.ShortText({
|
|
143
|
-
displayName: 'Public Identifier In List',
|
|
144
|
-
description: 'Comma-separated list of public identifiers the company must be in',
|
|
145
|
-
required: false,
|
|
146
|
-
}),
|
|
147
|
-
public_identifier_not_in_list: pieces_framework_1.Property.ShortText({
|
|
148
|
-
displayName: 'Public Identifier Not In List',
|
|
149
|
-
description: 'Comma-separated list of public identifiers the company must not be in',
|
|
150
|
-
required: false,
|
|
151
|
-
}),
|
|
152
|
-
page_size: pieces_framework_1.Property.ShortText({
|
|
153
|
-
displayName: 'Page Size',
|
|
154
|
-
description: 'Maximum results per call (1-100, default: 100)',
|
|
155
|
-
required: false,
|
|
156
|
-
}),
|
|
157
|
-
enrich_profiles: pieces_framework_1.Property.StaticDropdown({
|
|
158
|
-
displayName: 'Enrich Profiles',
|
|
159
|
-
description: 'Return full profiles instead of just URLs (+1 credit each)',
|
|
160
|
-
required: false,
|
|
161
|
-
options: {
|
|
162
|
-
options: [
|
|
163
|
-
{ label: 'Skip (default)', value: 'skip' },
|
|
164
|
-
{ label: 'Enrich (+1 credit each)', value: 'enrich' },
|
|
165
|
-
],
|
|
166
|
-
},
|
|
167
|
-
}),
|
|
168
|
-
use_cache: pieces_framework_1.Property.StaticDropdown({
|
|
169
|
-
displayName: 'Cache Strategy',
|
|
170
|
-
description: 'Control how cached data is used',
|
|
171
|
-
required: false,
|
|
172
|
-
options: {
|
|
173
|
-
options: [
|
|
174
|
-
{ label: 'If Present (default)', value: 'if-present' },
|
|
175
|
-
{ label: 'If Recent (+1-2 credits per result)', value: 'if-recent' },
|
|
176
|
-
],
|
|
177
|
-
},
|
|
178
|
-
}),
|
|
179
|
-
},
|
|
180
|
-
run(context) {
|
|
181
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
182
|
-
return yield (0, client_1.enrichlayerApiCall)(context.auth.secret_text, constants_1.ENDPOINTS.COMPANY_SEARCH, {
|
|
183
|
-
name: context.propsValue.name,
|
|
184
|
-
country: context.propsValue.country,
|
|
185
|
-
region: context.propsValue.region,
|
|
186
|
-
city: context.propsValue.city,
|
|
187
|
-
industry: context.propsValue.industry,
|
|
188
|
-
primary_industry: context.propsValue.primary_industry,
|
|
189
|
-
type: context.propsValue.type,
|
|
190
|
-
employee_count_category: context.propsValue.employee_count_category,
|
|
191
|
-
employee_count_min: context.propsValue.employee_count_min,
|
|
192
|
-
employee_count_max: context.propsValue.employee_count_max,
|
|
193
|
-
follower_count_min: context.propsValue.follower_count_min,
|
|
194
|
-
follower_count_max: context.propsValue.follower_count_max,
|
|
195
|
-
description: context.propsValue.description,
|
|
196
|
-
specialities: context.propsValue.specialities,
|
|
197
|
-
founded_after_year: context.propsValue.founded_after_year,
|
|
198
|
-
founded_before_year: context.propsValue.founded_before_year,
|
|
199
|
-
funding_amount_min: context.propsValue.funding_amount_min,
|
|
200
|
-
funding_amount_max: context.propsValue.funding_amount_max,
|
|
201
|
-
funding_raised_after: context.propsValue.funding_raised_after,
|
|
202
|
-
funding_raised_before: context.propsValue.funding_raised_before,
|
|
203
|
-
domain_name: context.propsValue.domain_name,
|
|
204
|
-
public_identifier_in_list: context.propsValue.public_identifier_in_list,
|
|
205
|
-
public_identifier_not_in_list: context.propsValue.public_identifier_not_in_list,
|
|
206
|
-
page_size: context.propsValue.page_size,
|
|
207
|
-
enrich_profiles: context.propsValue.enrich_profiles,
|
|
208
|
-
use_cache: context.propsValue.use_cache,
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
},
|
|
212
|
-
});
|
|
213
|
-
//# sourceMappingURL=get-company-search.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-company-search.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-company-search.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAA0C;AAC1C,6CAAsD;AACtD,mDAAgD;AAEnC,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,sBAAe;IACrB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EACT,mHAAmH;IACrH,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,cAAc;YAC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SAAS;gBACvC,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,eAAe;gBACnD,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,SAAS;aACxC,CACF,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-credit-balance.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-credit-balance.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,yHAc3B,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCreditBalance = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const client_1 = require("../common/client");
|
|
8
|
-
const constants_1 = require("../common/constants");
|
|
9
|
-
exports.getCreditBalance = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'get_credit_balance',
|
|
11
|
-
auth: auth_1.enrichlayerAuth,
|
|
12
|
-
displayName: 'Get Credit Balance',
|
|
13
|
-
description: 'View your Enrich Layer API credit balance (0 credits)',
|
|
14
|
-
props: {},
|
|
15
|
-
run(context) {
|
|
16
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
return yield (0, client_1.enrichlayerApiCall)(context.auth.secret_text, constants_1.ENDPOINTS.CREDIT_BALANCE, {});
|
|
18
|
-
});
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
//# sourceMappingURL=get-credit-balance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-credit-balance.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-credit-balance.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,kCAA0C;AAC1C,6CAAsD;AACtD,mDAAgD;AAEnC,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE,sBAAe;IACrB,WAAW,EAAE,oBAAoB;IACjC,WAAW,EACT,uDAAuD;IACzD,KAAK,EAAE,EAAE;IACH,GAAG,CAAC,OAAO;;YACf,OAAO,MAAM,IAAA,2BAAkB,EAC7B,OAAO,CAAC,IAAI,CAAC,WAAqB,EAClC,qBAAS,CAAC,cAAc,EACxB,EAAE,CACH,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const getDisposableEmailCheck: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=get-disposable-email-check.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-disposable-email-check.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-disposable-email-check.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB;;EAuBlC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDisposableEmailCheck = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
const client_1 = require("../common/client");
|
|
8
|
-
const constants_1 = require("../common/constants");
|
|
9
|
-
exports.getDisposableEmailCheck = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'get_disposable_email_check',
|
|
11
|
-
auth: auth_1.enrichlayerAuth,
|
|
12
|
-
displayName: 'Check Disposable Email',
|
|
13
|
-
description: 'Check if an email address belongs to a disposable email service (0 credits)',
|
|
14
|
-
props: {
|
|
15
|
-
email: pieces_framework_1.Property.ShortText({
|
|
16
|
-
displayName: 'Email Address',
|
|
17
|
-
description: 'Email address to check (e.g., johndoe@enrichlayer.com)',
|
|
18
|
-
required: true,
|
|
19
|
-
}),
|
|
20
|
-
},
|
|
21
|
-
run(context) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return yield (0, client_1.enrichlayerApiCall)(context.auth.secret_text, constants_1.ENDPOINTS.DISPOSABLE_EMAIL, {
|
|
24
|
-
email: context.propsValue.email,
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=get-disposable-email-check.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-disposable-email-check.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-disposable-email-check.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,kCAA0C;AAC1C,6CAAsD;AACtD,mDAAgD;AAEnC,QAAA,uBAAuB,GAAG,IAAA,+BAAY,EAAC;IAClD,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE,sBAAe;IACrB,WAAW,EAAE,wBAAwB;IACrC,WAAW,EACT,6EAA6E;IAC/E,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,eAAe;YAC5B,WAAW,EACT,wDAAwD;YAC1D,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,MAAM,IAAA,2BAAkB,EAC7B,OAAO,CAAC,IAAI,CAAC,WAAqB,EAClC,qBAAS,CAAC,gBAAgB,EAC1B;gBACE,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;aAChC,CACF,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|