@graph8/sdk 0.293.0 → 0.294.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.
package/README.md CHANGED
@@ -311,8 +311,8 @@ Two things to know before reaching for it:
311
311
 
312
312
  | Method | Description |
313
313
  |--------|-------------|
314
- | `g8.enrich.person(params)` | Look up a person (2 credits, charged even when no match is found). REST: `POST /enrichment/lookup/person` (`POST /enrichment/person` is an alias) |
315
- | `g8.enrich.company(params)` | Look up a company (2 credits, charged even when no match is found) |
314
+ | `g8.enrich.person(params)` | Look up a person (2 credits, charged only when a match is found). REST: `POST /enrichment/lookup/person` (`POST /enrichment/person` is an alias) |
315
+ | `g8.enrich.company(params)` | Look up a company (2 credits, charged only when a match is found) |
316
316
  | `g8.enrich.verifyEmail(email)` | Verify email (1 credit) |
317
317
  | `g8.enrich.search(filters)` | Search 700M+ contacts (no credits) |
318
318
 
package/dist/index.d.mts CHANGED
@@ -46299,7 +46299,6 @@ interface ApiOperationMap {
46299
46299
  get_company_revenue_summary_stripe_companies__company_id__revenue_summary_get: {
46300
46300
  input: {
46301
46301
  path: {
46302
- /** graph8 company id. */
46303
46302
  company_id: number;
46304
46303
  };
46305
46304
  headers?: {
@@ -46367,7 +46366,6 @@ interface ApiOperationMap {
46367
46366
  get_company_stripe_invoices_stripe_companies__company_id__invoices_get: {
46368
46367
  input: {
46369
46368
  path: {
46370
- /** graph8 company id. */
46371
46369
  company_id: number;
46372
46370
  };
46373
46371
  query?: {
@@ -46389,7 +46387,6 @@ interface ApiOperationMap {
46389
46387
  get_company_stripe_subscriptions_stripe_companies__company_id__subscriptions_get: {
46390
46388
  input: {
46391
46389
  path: {
46392
- /** graph8 company id. */
46393
46390
  company_id: number;
46394
46391
  };
46395
46392
  headers?: {
@@ -60586,7 +60583,7 @@ interface ApiOperationMap {
60586
60583
  name?: string | null;
60587
60584
  /** Filter by job title (partial match) */
60588
60585
  job_title?: string | null;
60589
- /** Filter by seniority level (exact match, case-insensitive). Spellings of the same level match each other: VP = Vice President; SVP/EVP = SVP = EVP = Senior/Executive Vice President; C-Suite = C-Level = CXO. Pass several levels comma-separated to match any of them, e.g. `VP,SVP/EVP`. */
60586
+ /** Filter by seniority level (exact match, case-insensitive). Spellings of the same level match each other: VP = Vice President; SVP/EVP = SVP = EVP = Senior/Executive Vice President; C-Suite = C-Level = CXO. `VP` (or `Vice President`) means VP and above, so it also returns the SVP/EVP band; `SVP/EVP` alone returns only that band. Pass several levels comma-separated to match any of them, e.g. `Director,VP`. */
60590
60587
  seniority_level?: string | null;
60591
60588
  /** Filter by company name (partial match) */
60592
60589
  company_name?: string | null;
@@ -93493,7 +93490,7 @@ interface SearchResults {
93493
93490
  declare const createEnrichClient: (apiKey: string, apiUrl?: string) => {
93494
93491
  /**
93495
93492
  * Look up a person by email, LinkedIn, or name + company. Costs 2 credits per
93496
- * lookup, charged even when no match is found (`found: false`).
93493
+ * lookup, charged only when a match is found (`found: false` costs nothing).
93497
93494
  */
93498
93495
  person(params: {
93499
93496
  email?: string;
@@ -93504,7 +93501,7 @@ declare const createEnrichClient: (apiKey: string, apiUrl?: string) => {
93504
93501
  }): Promise<PersonEnrichment>;
93505
93502
  /**
93506
93503
  * Look up a company by domain or name. Costs 2 credits per lookup, charged
93507
- * even when no match is found (`found: false`).
93504
+ * only when a match is found (`found: false` costs nothing).
93508
93505
  */
93509
93506
  company(params: {
93510
93507
  domain?: string;
package/dist/index.d.ts CHANGED
@@ -46299,7 +46299,6 @@ interface ApiOperationMap {
46299
46299
  get_company_revenue_summary_stripe_companies__company_id__revenue_summary_get: {
46300
46300
  input: {
46301
46301
  path: {
46302
- /** graph8 company id. */
46303
46302
  company_id: number;
46304
46303
  };
46305
46304
  headers?: {
@@ -46367,7 +46366,6 @@ interface ApiOperationMap {
46367
46366
  get_company_stripe_invoices_stripe_companies__company_id__invoices_get: {
46368
46367
  input: {
46369
46368
  path: {
46370
- /** graph8 company id. */
46371
46369
  company_id: number;
46372
46370
  };
46373
46371
  query?: {
@@ -46389,7 +46387,6 @@ interface ApiOperationMap {
46389
46387
  get_company_stripe_subscriptions_stripe_companies__company_id__subscriptions_get: {
46390
46388
  input: {
46391
46389
  path: {
46392
- /** graph8 company id. */
46393
46390
  company_id: number;
46394
46391
  };
46395
46392
  headers?: {
@@ -60586,7 +60583,7 @@ interface ApiOperationMap {
60586
60583
  name?: string | null;
60587
60584
  /** Filter by job title (partial match) */
60588
60585
  job_title?: string | null;
60589
- /** Filter by seniority level (exact match, case-insensitive). Spellings of the same level match each other: VP = Vice President; SVP/EVP = SVP = EVP = Senior/Executive Vice President; C-Suite = C-Level = CXO. Pass several levels comma-separated to match any of them, e.g. `VP,SVP/EVP`. */
60586
+ /** Filter by seniority level (exact match, case-insensitive). Spellings of the same level match each other: VP = Vice President; SVP/EVP = SVP = EVP = Senior/Executive Vice President; C-Suite = C-Level = CXO. `VP` (or `Vice President`) means VP and above, so it also returns the SVP/EVP band; `SVP/EVP` alone returns only that band. Pass several levels comma-separated to match any of them, e.g. `Director,VP`. */
60590
60587
  seniority_level?: string | null;
60591
60588
  /** Filter by company name (partial match) */
60592
60589
  company_name?: string | null;
@@ -93493,7 +93490,7 @@ interface SearchResults {
93493
93490
  declare const createEnrichClient: (apiKey: string, apiUrl?: string) => {
93494
93491
  /**
93495
93492
  * Look up a person by email, LinkedIn, or name + company. Costs 2 credits per
93496
- * lookup, charged even when no match is found (`found: false`).
93493
+ * lookup, charged only when a match is found (`found: false` costs nothing).
93497
93494
  */
93498
93495
  person(params: {
93499
93496
  email?: string;
@@ -93504,7 +93501,7 @@ declare const createEnrichClient: (apiKey: string, apiUrl?: string) => {
93504
93501
  }): Promise<PersonEnrichment>;
93505
93502
  /**
93506
93503
  * Look up a company by domain or name. Costs 2 credits per lookup, charged
93507
- * even when no match is found (`found: false`).
93504
+ * only when a match is found (`found: false` costs nothing).
93508
93505
  */
93509
93506
  company(params: {
93510
93507
  domain?: string;
package/dist/index.js CHANGED
@@ -991,7 +991,7 @@ var EXTERNAL_ROUTES = {
991
991
  };
992
992
 
993
993
  // src/version.ts
994
- var SDK_VERSION = "0.293.0";
994
+ var SDK_VERSION = "0.294.1";
995
995
  var SDK_CLIENT_ID = `js-sdk/${SDK_VERSION}`;
996
996
 
997
997
  // src/http.ts
@@ -1257,7 +1257,7 @@ var createEnrichClient = (apiKey, apiUrl) => {
1257
1257
  return {
1258
1258
  /**
1259
1259
  * Look up a person by email, LinkedIn, or name + company. Costs 2 credits per
1260
- * lookup, charged even when no match is found (`found: false`).
1260
+ * lookup, charged only when a match is found (`found: false` costs nothing).
1261
1261
  */
1262
1262
  async person(params) {
1263
1263
  const resp = await request(baseUrl, "/api/v1/enrichment/lookup/person", apiKey, {
@@ -1268,7 +1268,7 @@ var createEnrichClient = (apiKey, apiUrl) => {
1268
1268
  },
1269
1269
  /**
1270
1270
  * Look up a company by domain or name. Costs 2 credits per lookup, charged
1271
- * even when no match is found (`found: false`).
1271
+ * only when a match is found (`found: false` costs nothing).
1272
1272
  */
1273
1273
  async company(params) {
1274
1274
  const resp = await request(baseUrl, "/api/v1/enrichment/lookup/company", apiKey, {