@scopieflows/app-apollo 0.1.1

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.
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.organizationSearch = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const __1 = require("../../");
6
+ const pieces_common_1 = require("@scopieflows/pieces-common");
7
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
8
+ exports.organizationSearch = (0, pieces_framework_1.createAction)({
9
+ auth: __1.apolloAuth,
10
+ name: 'organizationSearch',
11
+ displayName: 'Organization Search',
12
+ description: 'Search for companies in the Apollo database with various filters',
13
+ props: {
14
+ q_organization_name: pieces_framework_1.Property.ShortText({
15
+ displayName: 'Organization Name',
16
+ description: 'Search by organization name',
17
+ required: false,
18
+ }),
19
+ organization_locations: pieces_framework_1.Property.Array({
20
+ displayName: 'Organization Locations',
21
+ description: 'Filter by locations (e.g., texas, tokyo)',
22
+ required: false,
23
+ }),
24
+ organization_not_locations: pieces_framework_1.Property.Array({
25
+ displayName: 'Exclude Locations',
26
+ description: 'Exclude specific locations (e.g., minnesota)',
27
+ required: false,
28
+ }),
29
+ organization_num_employees_ranges: pieces_framework_1.Property.Array({
30
+ displayName: 'Employee Count Ranges',
31
+ description: 'Filter by employee count ranges (e.g., "1,10", "250,500")',
32
+ required: false,
33
+ }),
34
+ organization_ids: pieces_framework_1.Property.Array({
35
+ displayName: 'Organization IDs',
36
+ description: 'Filter by specific organization IDs',
37
+ required: false,
38
+ }),
39
+ q_organization_domains: pieces_framework_1.Property.Array({
40
+ displayName: 'Domains',
41
+ description: 'Filter by organization domains',
42
+ required: false,
43
+ }),
44
+ organization_industry_tag_ids: pieces_framework_1.Property.Array({
45
+ displayName: 'Industry Tag IDs',
46
+ description: 'Filter by industry tag IDs',
47
+ required: false,
48
+ }),
49
+ cacheResponse: pieces_framework_1.Property.Checkbox({
50
+ displayName: 'Cache Response',
51
+ description: 'Store the response in the project store for future use.',
52
+ required: false,
53
+ defaultValue: false,
54
+ }),
55
+ },
56
+ run(_a) {
57
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ propsValue, auth, store }) {
58
+ const queryParams = new URLSearchParams();
59
+ if (propsValue.q_organization_name) {
60
+ queryParams.append('q_organization_name', propsValue.q_organization_name);
61
+ }
62
+ if (propsValue.organization_locations &&
63
+ propsValue.organization_locations.length > 0) {
64
+ propsValue.organization_locations.forEach((location) => {
65
+ queryParams.append('organization_locations[]', location);
66
+ });
67
+ }
68
+ if (propsValue.organization_not_locations &&
69
+ propsValue.organization_not_locations.length > 0) {
70
+ propsValue.organization_not_locations.forEach((location) => {
71
+ queryParams.append('organization_not_locations[]', location);
72
+ });
73
+ }
74
+ if (propsValue.organization_num_employees_ranges &&
75
+ propsValue.organization_num_employees_ranges.length > 0) {
76
+ propsValue.organization_num_employees_ranges.forEach((range) => {
77
+ queryParams.append('organization_num_employees_ranges[]', range);
78
+ });
79
+ }
80
+ if (propsValue.organization_ids && propsValue.organization_ids.length > 0) {
81
+ propsValue.organization_ids.forEach((id) => {
82
+ queryParams.append('organization_ids[]', id);
83
+ });
84
+ }
85
+ if (propsValue.q_organization_domains &&
86
+ propsValue.q_organization_domains.length > 0) {
87
+ propsValue.q_organization_domains.forEach((domain) => {
88
+ queryParams.append('q_organization_domains[]', domain);
89
+ });
90
+ }
91
+ if (propsValue.organization_industry_tag_ids &&
92
+ propsValue.organization_industry_tag_ids.length > 0) {
93
+ propsValue.organization_industry_tag_ids.forEach((tagId) => {
94
+ queryParams.append('organization_industry_tag_ids[]', tagId);
95
+ });
96
+ }
97
+ const cacheKey = `_apollo_org_search_${queryParams.toString()}`;
98
+ if (propsValue.cacheResponse) {
99
+ const cachedResult = yield store.get(cacheKey, pieces_framework_1.StoreScope.PROJECT);
100
+ if (cachedResult) {
101
+ return cachedResult;
102
+ }
103
+ }
104
+ const result = yield pieces_common_1.httpClient.sendRequest({
105
+ method: pieces_common_1.HttpMethod.POST,
106
+ url: `https://api.apollo.io/api/v1/mixed_companies/search?${queryParams.toString()}`,
107
+ headers: {
108
+ 'Content-Type': 'application/json',
109
+ 'Cache-Control': 'no-cache',
110
+ 'x-api-key': `${auth.secret_text}`,
111
+ },
112
+ });
113
+ if (propsValue.cacheResponse) {
114
+ yield store.put(cacheKey, result.body, pieces_framework_1.StoreScope.PROJECT);
115
+ }
116
+ return result.body;
117
+ });
118
+ },
119
+ });
120
+ //# sourceMappingURL=organization-search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization-search.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/apollo/src/lib/actions/organization-search.ts"],"names":[],"mappings":";;;;AAAA,8BAAoC;AACpC,8DAAoE;AACpE,oEAIuC;AAE1B,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,cAAU;IAChB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EACT,kEAAkE;IACpE,KAAK,EAAE;QACL,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACtC,WAAW,EAAE,mBAAmB;YAChC,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,sBAAsB,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACrC,WAAW,EAAE,wBAAwB;YACrC,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,0BAA0B,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACzC,WAAW,EAAE,mBAAmB;YAChC,WAAW,EAAE,8CAA8C;YAC3D,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,iCAAiC,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAChD,WAAW,EAAE,uBAAuB;YACpC,WAAW,EAAE,2DAA2D;YACxE,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,gBAAgB,EAAE,2BAAQ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AI,UAAU,CAAC,aAAa,EAAE,CAAC;gBAC7B,MAAM,YAAY,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,6BAAU,CAAC,OAAO,CAAC,CAAC;gBACnE,IAAI,YAAY,EAAE,CAAC;oBACjB,OAAO,YAAY,CAAC;gBACtB,CAAC;YACH,CAAC;YAED,MAAM,MAAM,GAAG,MAAM,0BAAU,CAAC,WAAW,CAGxC;gBACD,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,uDAAuD,WAAW,CAAC,QAAQ,EAAE,EAAE;gBACpF,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;oBAClC,eAAe,EAAE,UAAU;oBAC3B,WAAW,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;iBACnC;aACF,CAAC,CAAC;YAEH,IAAI,UAAU,CAAC,aAAa,EAAE,CAAC;gBAC7B,MAAM,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,IAAI,EAAE,6BAAU,CAAC,OAAO,CAAC,CAAC;YAC7D,CAAC;YAED,OAAO,MAAM,CAAC,IAAI,CAAC;QACrB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const peopleSearch: import("@scopieflows/pieces-framework").IAction<import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
2
+ q_keywords: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
3
+ person_titles: import("@scopieflows/pieces-framework").ArrayProperty<false>;
4
+ person_locations: import("@scopieflows/pieces-framework").ArrayProperty<false>;
5
+ person_seniorities: import("@scopieflows/pieces-framework").ArrayProperty<false>;
6
+ organization_ids: import("@scopieflows/pieces-framework").ArrayProperty<false>;
7
+ organization_num_employees_ranges: import("@scopieflows/pieces-framework").ArrayProperty<false>;
8
+ q_organization_domains: import("@scopieflows/pieces-framework").ArrayProperty<false>;
9
+ organization_locations: import("@scopieflows/pieces-framework").ArrayProperty<false>;
10
+ cacheResponse: import("@scopieflows/pieces-framework").CheckboxProperty<false>;
11
+ }>;
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.peopleSearch = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const __1 = require("../../");
6
+ const pieces_common_1 = require("@scopieflows/pieces-common");
7
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
8
+ exports.peopleSearch = (0, pieces_framework_1.createAction)({
9
+ auth: __1.apolloAuth,
10
+ name: 'peopleSearch',
11
+ displayName: 'People Search',
12
+ description: 'Search for people in the Apollo database (does not return email/phone, use enrichment for that)',
13
+ props: {
14
+ q_keywords: pieces_framework_1.Property.ShortText({
15
+ displayName: 'Keywords',
16
+ description: 'Search keywords for people',
17
+ required: false,
18
+ }),
19
+ person_titles: pieces_framework_1.Property.Array({
20
+ displayName: 'Person Titles',
21
+ description: 'Filter by job titles (e.g., "CEO", "Sales Manager")',
22
+ required: false,
23
+ }),
24
+ person_locations: pieces_framework_1.Property.Array({
25
+ displayName: 'Person Locations',
26
+ description: 'Filter by person locations',
27
+ required: false,
28
+ }),
29
+ person_seniorities: pieces_framework_1.Property.Array({
30
+ displayName: 'Person Seniorities',
31
+ description: 'Filter by seniority levels (e.g., "senior", "manager", "director")',
32
+ required: false,
33
+ }),
34
+ organization_ids: pieces_framework_1.Property.Array({
35
+ displayName: 'Organization IDs',
36
+ description: 'Filter by specific organization IDs',
37
+ required: false,
38
+ }),
39
+ organization_num_employees_ranges: pieces_framework_1.Property.Array({
40
+ displayName: 'Organization Employee Ranges',
41
+ description: 'Filter by organization employee count ranges (e.g., "1,10", "250,500")',
42
+ required: false,
43
+ }),
44
+ q_organization_domains: pieces_framework_1.Property.Array({
45
+ displayName: 'Organization Domains',
46
+ description: 'Filter by organization domains',
47
+ required: false,
48
+ }),
49
+ organization_locations: pieces_framework_1.Property.Array({
50
+ displayName: 'Organization Locations',
51
+ description: 'Filter by organization locations',
52
+ required: false,
53
+ }),
54
+ cacheResponse: pieces_framework_1.Property.Checkbox({
55
+ displayName: 'Cache Response',
56
+ description: 'Store the response in the project store for future use.',
57
+ required: false,
58
+ defaultValue: false,
59
+ }),
60
+ },
61
+ run(_a) {
62
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ propsValue, auth, store }) {
63
+ const queryParams = new URLSearchParams();
64
+ if (propsValue.q_keywords) {
65
+ queryParams.append('q_keywords', propsValue.q_keywords);
66
+ }
67
+ if (propsValue.person_titles && propsValue.person_titles.length > 0) {
68
+ propsValue.person_titles.forEach((title) => {
69
+ queryParams.append('person_titles[]', title);
70
+ });
71
+ }
72
+ if (propsValue.person_locations && propsValue.person_locations.length > 0) {
73
+ propsValue.person_locations.forEach((location) => {
74
+ queryParams.append('person_locations[]', location);
75
+ });
76
+ }
77
+ if (propsValue.person_seniorities &&
78
+ propsValue.person_seniorities.length > 0) {
79
+ propsValue.person_seniorities.forEach((seniority) => {
80
+ queryParams.append('person_seniorities[]', seniority);
81
+ });
82
+ }
83
+ if (propsValue.organization_ids && propsValue.organization_ids.length > 0) {
84
+ propsValue.organization_ids.forEach((id) => {
85
+ queryParams.append('organization_ids[]', id);
86
+ });
87
+ }
88
+ if (propsValue.organization_num_employees_ranges &&
89
+ propsValue.organization_num_employees_ranges.length > 0) {
90
+ propsValue.organization_num_employees_ranges.forEach((range) => {
91
+ queryParams.append('organization_num_employees_ranges[]', range);
92
+ });
93
+ }
94
+ if (propsValue.q_organization_domains &&
95
+ propsValue.q_organization_domains.length > 0) {
96
+ propsValue.q_organization_domains.forEach((domain) => {
97
+ queryParams.append('q_organization_domains[]', domain);
98
+ });
99
+ }
100
+ if (propsValue.organization_locations &&
101
+ propsValue.organization_locations.length > 0) {
102
+ propsValue.organization_locations.forEach((location) => {
103
+ queryParams.append('organization_locations[]', location);
104
+ });
105
+ }
106
+ const cacheKey = `_apollo_people_search_${queryParams.toString()}`;
107
+ if (propsValue.cacheResponse) {
108
+ const cachedResult = yield store.get(cacheKey, pieces_framework_1.StoreScope.PROJECT);
109
+ if (cachedResult) {
110
+ return cachedResult;
111
+ }
112
+ }
113
+ const result = yield pieces_common_1.httpClient.sendRequest({
114
+ method: pieces_common_1.HttpMethod.POST,
115
+ url: `https://api.apollo.io/api/v1/mixed_people/api_search?${queryParams.toString()}`,
116
+ headers: {
117
+ 'Content-Type': 'application/json',
118
+ 'Cache-Control': 'no-cache',
119
+ 'x-api-key': `${auth.secret_text}`,
120
+ },
121
+ });
122
+ const response = {
123
+ people: result.body.people || [],
124
+ pagination: result.body.pagination || {},
125
+ };
126
+ if (propsValue.cacheResponse) {
127
+ yield store.put(cacheKey, response, pieces_framework_1.StoreScope.PROJECT);
128
+ }
129
+ return response;
130
+ });
131
+ },
132
+ });
133
+ //# sourceMappingURL=people-search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"people-search.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/apollo/src/lib/actions/people-search.ts"],"names":[],"mappings":";;;;AAAA,8BAAoC;AACpC,8DAAoE;AACpE,oEAIuC;AAE1B,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,cAAU;IAChB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,eAAe;IAC5B,WAAW,EACT,iGAAiG;IACnG,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,aAAa,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAC5B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,gBAAgB,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAC/B,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,kBAAkB,EAAE,2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