@graph8/sdk 0.294.1 → 0.295.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.
@@ -5,6 +5,6 @@
5
5
  * both together (the version-parity gate already pins package.json, the
6
6
  * lockfile and the CHANGELOG to each other).
7
7
  */
8
- export declare const SDK_VERSION = "0.294.1";
8
+ export declare const SDK_VERSION = "0.295.1";
9
9
  /** Value of the `X-G8-Client` header every SDK request carries (I-13). */
10
- export declare const SDK_CLIENT_ID = "js-sdk/0.294.1";
10
+ export declare const SDK_CLIENT_ID = "js-sdk/0.295.1";
@@ -1251,7 +1251,9 @@ export interface QuoteContactCreateRequest {
1251
1251
  *
1252
1252
  * Mirrors ``CreateQuoteDTO``. At least one of ``signer_contact_id`` or
1253
1253
  * ``signer_email`` is required. ``line_items`` must be non-empty —
1254
- * zero-line quotes can't be invoiced.
1254
+ * zero-line quotes can't be invoiced. ``deal_id`` is required: every new
1255
+ * quote must be linked to an existing deal (422 otherwise); the company
1256
+ * defaults to the deal's company when omitted.
1255
1257
  */
1256
1258
  export interface QuoteCreateRequest {
1257
1259
  accepted_payment_methods?: (Array<"ach" | "credit_card" | "wire">) | null;
@@ -1266,7 +1268,7 @@ export interface QuoteCreateRequest {
1266
1268
  contract_months?: number | null;
1267
1269
  contract_start_date?: string | null;
1268
1270
  currency?: string;
1269
- deal_id?: string | null;
1271
+ deal_id: string;
1270
1272
  line_items: Array<QuoteLineItemRequest>;
1271
1273
  marketing_rights?: (Array<"logo" | "quote" | "case_study">) | null;
1272
1274
  mashup_company_id?: number | null;
@@ -354,6 +354,7 @@ Body fields (`QuoteCreateRequest`):
354
354
 
355
355
  | Field | Type | Required | Description |
356
356
  |---|---|---|---|
357
+ | `body.deal_id` | `string` | yes | |
357
358
  | `body.line_items` | `Array<QuoteLineItemRequest>` | yes | min items 1 |
358
359
  | `body.title` | `string` | yes | min length 1, max length 500 |
359
360
  | `body.accepted_payment_methods` | `Array<"ach" \| "credit_card" \| "wire"> \| null` | no | |
@@ -368,7 +369,6 @@ Body fields (`QuoteCreateRequest`):
368
369
  | `body.contract_months` | `number \| null` | no | min 0.1, max 120 |
369
370
  | `body.contract_start_date` | `string \| null` | no | |
370
371
  | `body.currency` | `string` | no | default `"USD"`, min length 3, max length 3 |
371
- | `body.deal_id` | `string \| null` | no | |
372
372
  | `body.marketing_rights` | `Array<"logo" \| "quote" \| "case_study"> \| null` | no | |
373
373
  | `body.mashup_company_id` | `integer \| null` | no | |
374
374
  | `body.notes` | `string \| null` | no | max length 10000 |
@@ -406,6 +406,7 @@ Other envelope fields: `pagination` (PaginationMeta).
406
406
  // external: reaches real people (sends email/SMS, places a call, launches a send); the SDK never blindly retries it; confirm with a human first.
407
407
  const result = await g8.api.quotes.createQuote({
408
408
  body: {
409
+ deal_id: "id",
409
410
  line_items: [{ product_name: "Example", unit_amount: 0 }],
410
411
  title: "Example",
411
412
  },
@@ -261,7 +261,7 @@ export interface SubmitScrapeRequest {
261
261
  requirement: string;
262
262
  /** Re-run rows that already have a result. */
263
263
  rescrape?: boolean;
264
- /** Limit the run to these rows. */
264
+ /** Limit the run to these rows. Omit it to run every row; an empty list is rejected. */
265
265
  row_ids?: Array<number> | null;
266
266
  /** Cold start: add these as rows in `source_column` before scraping. */
267
267
  seed_targets?: Array<string> | null;
@@ -327,7 +327,7 @@ Body fields (`SubmitScrapeRequest`):
327
327
  | `body.params` | `Record<string, unknown>` | no | |
328
328
  | `body.preview` | `boolean` | no | Hold the run behind a 5-row preview. Leave it on for a first run. default `true` |
329
329
  | `body.rescrape` | `boolean` | no | Re-run rows that already have a result. default `false` |
330
- | `body.row_ids` | `Array<integer> \| null` | no | Limit the run to these rows. |
330
+ | `body.row_ids` | `Array<integer> \| null` | no | Limit the run to these rows. Omit it to run every row; an empty list is rejected. |
331
331
  | `body.seed_targets` | `Array<string> \| null` | no | Cold start: add these as rows in `source_column` before scraping. |
332
332
  | `body.source_column` | `string \| null` | no | Column holding the values to scrape from. |
333
333
  | `body.staging_table_id` | `string \| null` | no | Staging table to read from and write into. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graph8/sdk",
3
- "version": "0.294.1",
3
+ "version": "0.295.1",
4
4
  "description": "graph8 SDK - CRM, enrichment, sequences, campaigns, and tracking for B2B",
5
5
  "license": "MIT",
6
6
  "author": "graph8 <support@graph8.com> (https://graph8.com)",