@memberjunction/actions-apollo 2.0.0

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,5 @@
1
+ import { ActionResultSimple, BaseAction, RunActionParams } from "@memberjunction/actions";
2
+ export declare class ApolloAccountsEnrichment extends BaseAction {
3
+ protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
4
+ }
5
+ //# sourceMappingURL=accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../src/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1F,qBACa,wBAAyB,SAAQ,UAAU;cACpC,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAO1F"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.ApolloAccountsEnrichment = void 0;
10
+ const actions_1 = require("@memberjunction/actions");
11
+ const global_1 = require("@memberjunction/global");
12
+ let ApolloAccountsEnrichment = class ApolloAccountsEnrichment extends actions_1.BaseAction {
13
+ async InternalRunAction(params) {
14
+ return {
15
+ Success: true,
16
+ Message: "ApolloAccountsEnrichment executed successfully.",
17
+ ResultCode: "SUCCESS"
18
+ };
19
+ }
20
+ };
21
+ exports.ApolloAccountsEnrichment = ApolloAccountsEnrichment;
22
+ exports.ApolloAccountsEnrichment = ApolloAccountsEnrichment = __decorate([
23
+ (0, global_1.RegisterClass)(actions_1.BaseAction, "Apollo Enrichment - Accounts")
24
+ ], ApolloAccountsEnrichment);
25
+ //# sourceMappingURL=accounts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../src/accounts.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qDAA0F;AAC1F,mDAAuD;AAGhD,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,oBAAU;IAC1C,KAAK,CAAC,iBAAiB,CAAC,MAAuB;QACrD,OAAO;YACH,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,iDAAiD;YAC1D,UAAU,EAAE,SAAS;SACxB,CAAC;IACN,CAAC;CACJ,CAAA;AARY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,sBAAa,EAAC,oBAAU,EAAE,8BAA8B,CAAC;GAC7C,wBAAwB,CAQpC"}
@@ -0,0 +1,5 @@
1
+ import { ActionResultSimple, BaseAction, RunActionParams } from "@memberjunction/actions";
2
+ export declare class ApolloContactsEnrichment extends BaseAction {
3
+ protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
4
+ }
5
+ //# sourceMappingURL=contacts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../src/contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1F,qBACa,wBAAyB,SAAQ,UAAU;cACpC,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAO1F"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.ApolloContactsEnrichment = void 0;
10
+ const actions_1 = require("@memberjunction/actions");
11
+ const global_1 = require("@memberjunction/global");
12
+ let ApolloContactsEnrichment = class ApolloContactsEnrichment extends actions_1.BaseAction {
13
+ async InternalRunAction(params) {
14
+ return {
15
+ Success: true,
16
+ Message: "ApolloContactsEnrichment executed successfully.",
17
+ ResultCode: "SUCCESS"
18
+ };
19
+ }
20
+ };
21
+ exports.ApolloContactsEnrichment = ApolloContactsEnrichment;
22
+ exports.ApolloContactsEnrichment = ApolloContactsEnrichment = __decorate([
23
+ (0, global_1.RegisterClass)(actions_1.BaseAction, "Apollo Enrichment - Contacts")
24
+ ], ApolloContactsEnrichment);
25
+ //# sourceMappingURL=contacts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.js","sourceRoot":"","sources":["../src/contacts.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qDAA0F;AAC1F,mDAAuD;AAGhD,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,oBAAU;IAC1C,KAAK,CAAC,iBAAiB,CAAC,MAAuB;QACrD,OAAO;YACH,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,iDAAiD;YAC1D,UAAU,EAAE,SAAS;SACxB,CAAC;IACN,CAAC;CACJ,CAAA;AARY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,sBAAa,EAAC,oBAAU,EAAE,8BAA8B,CAAC;GAC7C,wBAAwB,CAQpC"}
@@ -0,0 +1,3 @@
1
+ export * from './accounts';
2
+ export * from './contacts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./accounts"), exports);
18
+ __exportStar(require("./contacts"), exports);
19
+ // ApolloEnrichContact this Action would use the www.apollo.io enrichment service and enrich a "contact" type of record. The parameters to this Action would be:
20
+ // EntityName - entity in question that contacts "contact" types of records
21
+ // EmailField - string - field name in the target entity that contains the email to be used for lookups
22
+ // FirstNameField - string
23
+ // LastNameField - string
24
+ // AccountNameField - string
25
+ // EnrichmentFieldMapping - JSON - this JSON string would contain mappings for the wide array of enrichment outputs. The idea is that the outputs could include a wide array of things and this would map any of the scalar values that Apollo.io provides back to entity field names in the target entity
26
+ // EducationHistoryEntityName - string - optional - this would contain the name of the entity that will be used to stored the retrieved education history for each contact
27
+ // EmploymentHistoryEntityName - string - optional - would contain the name of the entity that will be used to store the retrieved employment history for each contact
28
+ // ApolloEnrichAccount - same idea and pattern as above, but would be for Account style entities
29
+ // Would appreciate feedback on (a) the approach to how we package this stuff and (b) the approach to params noted above.
30
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAI3B,gKAAgK;AAChK,2EAA2E;AAC3E,uGAAuG;AACvG,2BAA2B;AAC3B,yBAAyB;AACzB,4BAA4B;AAC5B,0SAA0S;AAC1S,0KAA0K;AAC1K,sKAAsK;AACtK,gGAAgG;AAChG,yHAAyH"}
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@memberjunction/actions-apollo",
3
+ "version": "2.0.0",
4
+ "description": "Action classes that wrap the Apollo.io data enrichment API for contacts and accounts",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "/dist"
9
+ ],
10
+ "scripts": {
11
+ "start": "ts-node-dev src/index.ts",
12
+ "build": "tsc",
13
+ "test": "echo \"Error: no test specified\" && exit 1"
14
+ },
15
+ "author": "MemberJunction.com",
16
+ "license": "ISC",
17
+ "devDependencies": {
18
+ "ts-node-dev": "^2.0.0",
19
+ "typescript": "^5.4.5"
20
+ },
21
+ "dependencies": {
22
+ "@memberjunction/global": "2.0.0",
23
+ "@memberjunction/core": "2.0.0",
24
+ "@memberjunction/core-entities": "2.0.0",
25
+ "@memberjunction/actions": "2.0.0",
26
+ "axios": "^1.7.2"
27
+ }
28
+ }