@absolutejs/engagement-apollo 0.0.13 → 0.0.14

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/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import type { EngagementSource } from "@absolutejs/engagement";
2
2
  export type ApolloOptions = {
3
- apiKey: string;
4
- /** Override for testing or a proxy. Defaults to https://api.apollo.io. */
5
- baseUrl?: string;
6
- /** Inject a fetch (tests, instrumentation). Defaults to global fetch. */
7
- fetchImpl?: typeof fetch;
3
+ apiKey: string;
4
+ /** Override for testing or a proxy. Defaults to https://api.apollo.io. */
5
+ baseUrl?: string;
6
+ /** Inject a fetch (tests, instrumentation). Defaults to global fetch. */
7
+ fetchImpl?: typeof fetch;
8
8
  };
9
9
  export declare const apolloSource: (options: ApolloOptions) => EngagementSource;
package/dist/index.js CHANGED
@@ -80,7 +80,7 @@ var apolloSource = (options) => {
80
80
  ].filter((value) => value !== null).filter((value) => !LOCKED_EMAIL.test(value))));
81
81
  return {
82
82
  company: org ? str(org.name) : null,
83
- companyDomain: org ? str(org.primary_domain) : null,
83
+ companyDomain: org ? companyDomain(org) : null,
84
84
  emails,
85
85
  facebookUrl: str(person.facebook_url),
86
86
  firstName: str(person.first_name),
@@ -1,27 +1,10 @@
1
1
  import type { ApolloOptions } from "./index";
2
- export declare const manifest: Omit<
3
- import("@absolutejs/manifest").PackageManifest<ApolloOptions, never>,
4
- "contract" | "settings" | "tools"
5
- > &
6
- ((
7
- | {
8
- contract: 1;
9
- tools?:
10
- | Record<
11
- string,
12
- import("@absolutejs/manifest").LegacyManifestTool<never>
13
- >
14
- | undefined;
15
- }
16
- | {
17
- contract: 2;
18
- tools?:
19
- | Record<
20
- string,
21
- import("@absolutejs/manifest").AuthorizedManifestTool<never>
22
- >
23
- | undefined;
24
- }
25
- ) & {
2
+ export declare const manifest: Omit<import("@absolutejs/manifest").PackageManifest<ApolloOptions, never>, "contract" | "settings" | "tools"> & (({
3
+ contract: 1;
4
+ tools?: Record<string, import("@absolutejs/manifest").LegacyManifestTool<never>> | undefined;
5
+ } | {
6
+ contract: 2;
7
+ tools?: Record<string, import("@absolutejs/manifest").AuthorizedManifestTool<never>> | undefined;
8
+ }) & {
26
9
  settings: import("@sinclair/typebox").TObject<{}>;
27
- });
10
+ });
@@ -1,73 +1,86 @@
1
1
  {
2
- "contract": 2,
3
- "discovery": {
4
- "audiences": ["agent-hosts", "application-developers"],
5
- "intents": [
6
- "enrich a person with Apollo",
7
- "enrich a company with Apollo",
8
- "search people by role",
9
- "research company revenue and ownership",
10
- "read Apollo outreach activity"
11
- ],
12
- "keywords": ["apollo", "engagement", "enrichment", "outreach", "sales"],
13
- "protocols": ["HTTPS"]
14
- },
15
- "identity": {
16
- "accent": "#5c4cff",
17
- "category": "sales",
18
- "description": "Apollo-backed EngagementSource for person and company enrichment, role-based people search, and outreach activity with explicit provider-credit accounting.",
19
- "docsUrl": "https://github.com/absolutejs/engagement-adapters/tree/main/apollo",
20
- "name": "@absolutejs/engagement-apollo",
21
- "tagline": "Connect Apollo enrichment and outreach to your site."
22
- },
23
- "implements": [
24
- {
25
- "contract": "engagement/source",
26
- "factory": "apolloSource",
27
- "from": "@absolutejs/engagement-apollo",
28
- "requires": {
29
- "env": [
30
- {
31
- "description": "Apollo API key",
32
- "docsUrl": "https://developer.apollo.io/keys/",
33
- "key": "APOLLO_API_KEY",
34
- "secret": true
35
- }
36
- ],
37
- "peers": [
38
- {
39
- "name": "@absolutejs/engagement",
40
- "range": ">=0.0.10 <0.1",
41
- "reason": "Shared engagement contracts and rate-limit identity"
42
- }
43
- ]
44
- },
45
- "settings": {
46
- "type": "object",
47
- "properties": {
48
- "baseUrl": {
49
- "description": "Apollo-compatible API origin. Leave empty for the official Apollo API.",
50
- "format": "uri",
51
- "title": "API origin",
52
- "type": "string"
53
- }
54
- }
55
- },
56
- "title": "Apollo",
57
- "wiring": {
58
- "code": "apolloSource({ apiKey: ${env.APOLLO_API_KEY}, ...${settings} })",
59
- "imports": [
60
- {
61
- "from": "@absolutejs/engagement-apollo",
62
- "names": ["apolloSource"]
63
- }
64
- ]
65
- }
66
- }
67
- ],
68
- "settings": {
69
- "type": "object",
70
- "properties": {}
71
- },
72
- "wiring": []
2
+ "contract": 2,
3
+ "discovery": {
4
+ "audiences": [
5
+ "agent-hosts",
6
+ "application-developers"
7
+ ],
8
+ "intents": [
9
+ "enrich a person with Apollo",
10
+ "enrich a company with Apollo",
11
+ "search people by role",
12
+ "research company revenue and ownership",
13
+ "read Apollo outreach activity"
14
+ ],
15
+ "keywords": [
16
+ "apollo",
17
+ "engagement",
18
+ "enrichment",
19
+ "outreach",
20
+ "sales"
21
+ ],
22
+ "protocols": [
23
+ "HTTPS"
24
+ ]
25
+ },
26
+ "identity": {
27
+ "accent": "#5c4cff",
28
+ "category": "sales",
29
+ "description": "Apollo-backed EngagementSource for person and company enrichment, role-based people search, and outreach activity with explicit provider-credit accounting.",
30
+ "docsUrl": "https://github.com/absolutejs/engagement-adapters/tree/main/apollo",
31
+ "name": "@absolutejs/engagement-apollo",
32
+ "tagline": "Connect Apollo enrichment and outreach to your site."
33
+ },
34
+ "implements": [
35
+ {
36
+ "contract": "engagement/source",
37
+ "factory": "apolloSource",
38
+ "from": "@absolutejs/engagement-apollo",
39
+ "requires": {
40
+ "env": [
41
+ {
42
+ "description": "Apollo API key",
43
+ "docsUrl": "https://developer.apollo.io/keys/",
44
+ "key": "APOLLO_API_KEY",
45
+ "secret": true
46
+ }
47
+ ],
48
+ "peers": [
49
+ {
50
+ "name": "@absolutejs/engagement",
51
+ "range": ">=0.0.10 <0.1",
52
+ "reason": "Shared engagement contracts and rate-limit identity"
53
+ }
54
+ ]
55
+ },
56
+ "settings": {
57
+ "type": "object",
58
+ "properties": {
59
+ "baseUrl": {
60
+ "description": "Apollo-compatible API origin. Leave empty for the official Apollo API.",
61
+ "format": "uri",
62
+ "title": "API origin",
63
+ "type": "string"
64
+ }
65
+ }
66
+ },
67
+ "title": "Apollo",
68
+ "wiring": {
69
+ "code": "apolloSource({ apiKey: ${env.APOLLO_API_KEY}, ...${settings} })",
70
+ "imports": [
71
+ {
72
+ "from": "@absolutejs/engagement-apollo",
73
+ "names": [
74
+ "apolloSource"
75
+ ]
76
+ }
77
+ ]
78
+ }
79
+ }
80
+ ],
81
+ "settings": {
82
+ "type": "object",
83
+ "properties": {}
84
+ },
85
+ "wiring": []
73
86
  }
package/package.json CHANGED
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "type": "module",
46
46
  "types": "./dist/index.d.ts",
47
- "version": "0.0.13",
47
+ "version": "0.0.14",
48
48
  "exports": {
49
49
  ".": {
50
50
  "types": "./dist/index.d.ts",