@zernio/node 0.2.1514 → 0.2.1516

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.mts CHANGED
@@ -4042,7 +4042,9 @@ type AdRuleAction = {
4042
4042
  maxChangesPerObject?: number;
4043
4043
  } | {
4044
4044
  /**
4045
- * Move a Google campaign's target CPA or target ROAS inside the strategy it is on (Target CPA or Maximize conversions for `cpa`, Target ROAS or Maximize conversion value for `roas`), never switching strategies. Campaign rules on Google only. Skipped with `portfolio_bid_strategy` on a portfolio strategy, `unsupported_bid_strategy` on one with no target (Manual CPC, Maximize clicks), and `no_target_cpa` or `no_target_roas` when the strategy holds no such target. A target CPA in a zero-decimal currency is rounded to whole units.
4045
+ * Move a Google campaign's target CPA or target ROAS inside the strategy it is on (Target CPA or Maximize conversions for `cpa`, Target ROAS or Maximize conversion value for `roas`), never switching strategies. Campaign rules on Google only.
4046
+ *
4047
+ * Skipped with `portfolio_bid_strategy` on a portfolio strategy, `unsupported_bid_strategy` on one with no target (Manual CPC, Maximize clicks), and `no_target_cpa` or `no_target_roas` when the strategy holds no such target. A target CPA in a zero-decimal currency is rounded to whole units.
4046
4048
  */
4047
4049
  type: 'adjust_target';
4048
4050
  /**
@@ -4072,11 +4074,19 @@ type AdRuleAction = {
4072
4074
  maxChangesPerObject?: number;
4073
4075
  } | {
4074
4076
  /**
4075
- * Move daily budget from the matched objects ranked worst by `metric` to those ranked best, keeping the total the same. Campaign or ad set rules where the budget sits at that level: objects whose budget sits at another level (Meta CBO and ad set budgets), Google shared budgets and lifetime budgets are left out. Changes are reserved all at once: when `maxChangesPerDay` would hold back any of them, none is made. A receiver is raised only after every giver's cut applied (else it fails with `reallocation_incomplete` and the move is tried again next run). Amounts move in the currency's smallest unit (whole units for JPY or KRW). Counts as raising live spend for the free ads allowance. Not with `lifecycle` or `groups`.
4077
+ * Move daily budget from the matched objects ranked worst by `metric` to those ranked best, keeping the total the same. Not with `lifecycle` or `groups`.
4078
+ *
4079
+ * Campaign or ad set rules where the budget sits at that level: objects whose budget sits at another level (Meta CBO and ad set budgets), Google shared budgets and lifetime budgets are left out.
4080
+ *
4081
+ * Changes are reserved all at once: when `maxChangesPerDay` would hold back any of them, none is made. A receiver is raised only after every giver's cut applied (else it fails with `reallocation_incomplete` and the move is tried again next run).
4082
+ *
4083
+ * Amounts move in the currency's smallest unit (whole units for JPY or KRW). Counts as raising live spend for the free ads allowance.
4076
4084
  */
4077
4085
  type: 'reallocate_budget';
4078
4086
  /**
4079
- * What objects are ranked by: any condition metric except `day_of_month` and `working_day_of_month`, or a result metric (`result:<key>`) on campaign rules. Objects without a value are not ranked, except one that spent with no result on a metric where lower is best (a CPA with no conversions): it ranks worst and only gives.
4087
+ * What objects are ranked by: any condition metric except `day_of_month` and `working_day_of_month`, or a result metric (`result:<key>`) on campaign rules.
4088
+ *
4089
+ * Objects without a value are not ranked, except one that spent with no result on a metric where lower is best (a CPA with no conversions): it ranks worst and only gives.
4080
4090
  */
4081
4091
  metric: string;
4082
4092
  /**
@@ -12476,6 +12486,10 @@ type HubSpotSettings = {
12476
12486
  * Whether Zernio sends closed-won deals as Purchase events to the profile's event destinations.
12477
12487
  */
12478
12488
  reportDeals: boolean;
12489
+ /**
12490
+ * Whether closed-won deals count as sales on the ad campaign that brought their contact, in campaign results and ad rules.
12491
+ */
12492
+ useDealsAsResults: boolean;
12479
12493
  };
12480
12494
  type platform8 = 'hubspot';
12481
12495
  type ImessageAudienceContact = {
@@ -19733,7 +19747,13 @@ type WebhookPayloadAdRuleTriggered = {
19733
19747
  */
19734
19748
  status: 'done' | 'skipped' | 'failed';
19735
19749
  /**
19736
- * Why the action was skipped or failed: `already_paused`, `already_active`, `at_limit`, `budget_unknown`, `budget_not_daily`, `budget_level_mismatch`, `no_live_ads`, `daily_limit_reached` (held back by the action's `maxChangesPerDay`), `ads_allowance_exceeded` (a reactivation or budget increase for a team past its free live-ads allowance), `budget_shared`, `reallocation_incomplete` (failed: a receiver left alone because a giver's cut did not apply, tried again next run), `portfolio_bid_strategy`, `unsupported_bid_strategy`, `no_target_cpa`, `no_target_roas`, or the platform's message. Null when done.
19750
+ * Why the action was skipped or failed, or the platform's message. Null when done.
19751
+ *
19752
+ * Skipped: `already_paused`, `already_active`, `at_limit`, `budget_unknown`, `budget_not_daily`, `budget_level_mismatch`, `no_live_ads`, `budget_shared`, `portfolio_bid_strategy`, `unsupported_bid_strategy`, `no_target_cpa`, `no_target_roas`.
19753
+ *
19754
+ * `daily_limit_reached`: held back by the action's `maxChangesPerDay`. `ads_allowance_exceeded`: a reactivation or budget increase for a team past its free live-ads allowance.
19755
+ *
19756
+ * `reallocation_incomplete` (failed): a receiver left alone because a giver's cut did not apply, tried again next run.
19737
19757
  */
19738
19758
  reason: (string) | null;
19739
19759
  /**
@@ -36602,6 +36622,10 @@ type UpdateHubSpotSettingsData = {
36602
36622
  * Send each deal that becomes closed won as a Purchase to the profile's event destinations, about once an hour. Requires the portal to have granted `crm.objects.deals.read`; otherwise 400. Deals closed before it was turned on are not sent.
36603
36623
  */
36604
36624
  reportDeals?: boolean;
36625
+ /**
36626
+ * Count each closed-won deal as a sale with its amount on the ad campaign that brought its contact, in `GET /v1/ads/campaign-results` and ad rules. Requires `crm.objects.deals.read`; otherwise 400. Turning it on fills in the deals of the last 90 days, never sent to the ad platforms.
36627
+ */
36628
+ useDealsAsResults?: boolean;
36605
36629
  };
36606
36630
  path: {
36607
36631
  accountId: string;
package/dist/index.d.ts CHANGED
@@ -4042,7 +4042,9 @@ type AdRuleAction = {
4042
4042
  maxChangesPerObject?: number;
4043
4043
  } | {
4044
4044
  /**
4045
- * Move a Google campaign's target CPA or target ROAS inside the strategy it is on (Target CPA or Maximize conversions for `cpa`, Target ROAS or Maximize conversion value for `roas`), never switching strategies. Campaign rules on Google only. Skipped with `portfolio_bid_strategy` on a portfolio strategy, `unsupported_bid_strategy` on one with no target (Manual CPC, Maximize clicks), and `no_target_cpa` or `no_target_roas` when the strategy holds no such target. A target CPA in a zero-decimal currency is rounded to whole units.
4045
+ * Move a Google campaign's target CPA or target ROAS inside the strategy it is on (Target CPA or Maximize conversions for `cpa`, Target ROAS or Maximize conversion value for `roas`), never switching strategies. Campaign rules on Google only.
4046
+ *
4047
+ * Skipped with `portfolio_bid_strategy` on a portfolio strategy, `unsupported_bid_strategy` on one with no target (Manual CPC, Maximize clicks), and `no_target_cpa` or `no_target_roas` when the strategy holds no such target. A target CPA in a zero-decimal currency is rounded to whole units.
4046
4048
  */
4047
4049
  type: 'adjust_target';
4048
4050
  /**
@@ -4072,11 +4074,19 @@ type AdRuleAction = {
4072
4074
  maxChangesPerObject?: number;
4073
4075
  } | {
4074
4076
  /**
4075
- * Move daily budget from the matched objects ranked worst by `metric` to those ranked best, keeping the total the same. Campaign or ad set rules where the budget sits at that level: objects whose budget sits at another level (Meta CBO and ad set budgets), Google shared budgets and lifetime budgets are left out. Changes are reserved all at once: when `maxChangesPerDay` would hold back any of them, none is made. A receiver is raised only after every giver's cut applied (else it fails with `reallocation_incomplete` and the move is tried again next run). Amounts move in the currency's smallest unit (whole units for JPY or KRW). Counts as raising live spend for the free ads allowance. Not with `lifecycle` or `groups`.
4077
+ * Move daily budget from the matched objects ranked worst by `metric` to those ranked best, keeping the total the same. Not with `lifecycle` or `groups`.
4078
+ *
4079
+ * Campaign or ad set rules where the budget sits at that level: objects whose budget sits at another level (Meta CBO and ad set budgets), Google shared budgets and lifetime budgets are left out.
4080
+ *
4081
+ * Changes are reserved all at once: when `maxChangesPerDay` would hold back any of them, none is made. A receiver is raised only after every giver's cut applied (else it fails with `reallocation_incomplete` and the move is tried again next run).
4082
+ *
4083
+ * Amounts move in the currency's smallest unit (whole units for JPY or KRW). Counts as raising live spend for the free ads allowance.
4076
4084
  */
4077
4085
  type: 'reallocate_budget';
4078
4086
  /**
4079
- * What objects are ranked by: any condition metric except `day_of_month` and `working_day_of_month`, or a result metric (`result:<key>`) on campaign rules. Objects without a value are not ranked, except one that spent with no result on a metric where lower is best (a CPA with no conversions): it ranks worst and only gives.
4087
+ * What objects are ranked by: any condition metric except `day_of_month` and `working_day_of_month`, or a result metric (`result:<key>`) on campaign rules.
4088
+ *
4089
+ * Objects without a value are not ranked, except one that spent with no result on a metric where lower is best (a CPA with no conversions): it ranks worst and only gives.
4080
4090
  */
4081
4091
  metric: string;
4082
4092
  /**
@@ -12476,6 +12486,10 @@ type HubSpotSettings = {
12476
12486
  * Whether Zernio sends closed-won deals as Purchase events to the profile's event destinations.
12477
12487
  */
12478
12488
  reportDeals: boolean;
12489
+ /**
12490
+ * Whether closed-won deals count as sales on the ad campaign that brought their contact, in campaign results and ad rules.
12491
+ */
12492
+ useDealsAsResults: boolean;
12479
12493
  };
12480
12494
  type platform8 = 'hubspot';
12481
12495
  type ImessageAudienceContact = {
@@ -19733,7 +19747,13 @@ type WebhookPayloadAdRuleTriggered = {
19733
19747
  */
19734
19748
  status: 'done' | 'skipped' | 'failed';
19735
19749
  /**
19736
- * Why the action was skipped or failed: `already_paused`, `already_active`, `at_limit`, `budget_unknown`, `budget_not_daily`, `budget_level_mismatch`, `no_live_ads`, `daily_limit_reached` (held back by the action's `maxChangesPerDay`), `ads_allowance_exceeded` (a reactivation or budget increase for a team past its free live-ads allowance), `budget_shared`, `reallocation_incomplete` (failed: a receiver left alone because a giver's cut did not apply, tried again next run), `portfolio_bid_strategy`, `unsupported_bid_strategy`, `no_target_cpa`, `no_target_roas`, or the platform's message. Null when done.
19750
+ * Why the action was skipped or failed, or the platform's message. Null when done.
19751
+ *
19752
+ * Skipped: `already_paused`, `already_active`, `at_limit`, `budget_unknown`, `budget_not_daily`, `budget_level_mismatch`, `no_live_ads`, `budget_shared`, `portfolio_bid_strategy`, `unsupported_bid_strategy`, `no_target_cpa`, `no_target_roas`.
19753
+ *
19754
+ * `daily_limit_reached`: held back by the action's `maxChangesPerDay`. `ads_allowance_exceeded`: a reactivation or budget increase for a team past its free live-ads allowance.
19755
+ *
19756
+ * `reallocation_incomplete` (failed): a receiver left alone because a giver's cut did not apply, tried again next run.
19737
19757
  */
19738
19758
  reason: (string) | null;
19739
19759
  /**
@@ -36602,6 +36622,10 @@ type UpdateHubSpotSettingsData = {
36602
36622
  * Send each deal that becomes closed won as a Purchase to the profile's event destinations, about once an hour. Requires the portal to have granted `crm.objects.deals.read`; otherwise 400. Deals closed before it was turned on are not sent.
36603
36623
  */
36604
36624
  reportDeals?: boolean;
36625
+ /**
36626
+ * Count each closed-won deal as a sale with its amount on the ad campaign that brought its contact, in `GET /v1/ads/campaign-results` and ad rules. Requires `crm.objects.deals.read`; otherwise 400. Turning it on fills in the deals of the last 90 days, never sent to the ad platforms.
36627
+ */
36628
+ useDealsAsResults?: boolean;
36605
36629
  };
36606
36630
  path: {
36607
36631
  accountId: string;
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@zernio/node",
39
- version: "0.2.1514",
39
+ version: "0.2.1516",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@zernio/node",
8
- version: "0.2.1514",
8
+ version: "0.2.1516",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.1514",
3
+ "version": "0.2.1516",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1804,7 +1804,9 @@ export type AdRuleAction = {
1804
1804
  maxChangesPerObject?: number;
1805
1805
  } | {
1806
1806
  /**
1807
- * Move a Google campaign's target CPA or target ROAS inside the strategy it is on (Target CPA or Maximize conversions for `cpa`, Target ROAS or Maximize conversion value for `roas`), never switching strategies. Campaign rules on Google only. Skipped with `portfolio_bid_strategy` on a portfolio strategy, `unsupported_bid_strategy` on one with no target (Manual CPC, Maximize clicks), and `no_target_cpa` or `no_target_roas` when the strategy holds no such target. A target CPA in a zero-decimal currency is rounded to whole units.
1807
+ * Move a Google campaign's target CPA or target ROAS inside the strategy it is on (Target CPA or Maximize conversions for `cpa`, Target ROAS or Maximize conversion value for `roas`), never switching strategies. Campaign rules on Google only.
1808
+ *
1809
+ * Skipped with `portfolio_bid_strategy` on a portfolio strategy, `unsupported_bid_strategy` on one with no target (Manual CPC, Maximize clicks), and `no_target_cpa` or `no_target_roas` when the strategy holds no such target. A target CPA in a zero-decimal currency is rounded to whole units.
1808
1810
  */
1809
1811
  type: 'adjust_target';
1810
1812
  /**
@@ -1834,11 +1836,19 @@ export type AdRuleAction = {
1834
1836
  maxChangesPerObject?: number;
1835
1837
  } | {
1836
1838
  /**
1837
- * Move daily budget from the matched objects ranked worst by `metric` to those ranked best, keeping the total the same. Campaign or ad set rules where the budget sits at that level: objects whose budget sits at another level (Meta CBO and ad set budgets), Google shared budgets and lifetime budgets are left out. Changes are reserved all at once: when `maxChangesPerDay` would hold back any of them, none is made. A receiver is raised only after every giver's cut applied (else it fails with `reallocation_incomplete` and the move is tried again next run). Amounts move in the currency's smallest unit (whole units for JPY or KRW). Counts as raising live spend for the free ads allowance. Not with `lifecycle` or `groups`.
1839
+ * Move daily budget from the matched objects ranked worst by `metric` to those ranked best, keeping the total the same. Not with `lifecycle` or `groups`.
1840
+ *
1841
+ * Campaign or ad set rules where the budget sits at that level: objects whose budget sits at another level (Meta CBO and ad set budgets), Google shared budgets and lifetime budgets are left out.
1842
+ *
1843
+ * Changes are reserved all at once: when `maxChangesPerDay` would hold back any of them, none is made. A receiver is raised only after every giver's cut applied (else it fails with `reallocation_incomplete` and the move is tried again next run).
1844
+ *
1845
+ * Amounts move in the currency's smallest unit (whole units for JPY or KRW). Counts as raising live spend for the free ads allowance.
1838
1846
  */
1839
1847
  type: 'reallocate_budget';
1840
1848
  /**
1841
- * What objects are ranked by: any condition metric except `day_of_month` and `working_day_of_month`, or a result metric (`result:<key>`) on campaign rules. Objects without a value are not ranked, except one that spent with no result on a metric where lower is best (a CPA with no conversions): it ranks worst and only gives.
1849
+ * What objects are ranked by: any condition metric except `day_of_month` and `working_day_of_month`, or a result metric (`result:<key>`) on campaign rules.
1850
+ *
1851
+ * Objects without a value are not ranked, except one that spent with no result on a metric where lower is best (a CPA with no conversions): it ranks worst and only gives.
1842
1852
  */
1843
1853
  metric: string;
1844
1854
  /**
@@ -10631,6 +10641,10 @@ export type HubSpotSettings = {
10631
10641
  * Whether Zernio sends closed-won deals as Purchase events to the profile's event destinations.
10632
10642
  */
10633
10643
  reportDeals: boolean;
10644
+ /**
10645
+ * Whether closed-won deals count as sales on the ad campaign that brought their contact, in campaign results and ad rules.
10646
+ */
10647
+ useDealsAsResults: boolean;
10634
10648
  };
10635
10649
 
10636
10650
  export type platform8 = 'hubspot';
@@ -18216,7 +18230,13 @@ export type WebhookPayloadAdRuleTriggered = {
18216
18230
  */
18217
18231
  status: 'done' | 'skipped' | 'failed';
18218
18232
  /**
18219
- * Why the action was skipped or failed: `already_paused`, `already_active`, `at_limit`, `budget_unknown`, `budget_not_daily`, `budget_level_mismatch`, `no_live_ads`, `daily_limit_reached` (held back by the action's `maxChangesPerDay`), `ads_allowance_exceeded` (a reactivation or budget increase for a team past its free live-ads allowance), `budget_shared`, `reallocation_incomplete` (failed: a receiver left alone because a giver's cut did not apply, tried again next run), `portfolio_bid_strategy`, `unsupported_bid_strategy`, `no_target_cpa`, `no_target_roas`, or the platform's message. Null when done.
18233
+ * Why the action was skipped or failed, or the platform's message. Null when done.
18234
+ *
18235
+ * Skipped: `already_paused`, `already_active`, `at_limit`, `budget_unknown`, `budget_not_daily`, `budget_level_mismatch`, `no_live_ads`, `budget_shared`, `portfolio_bid_strategy`, `unsupported_bid_strategy`, `no_target_cpa`, `no_target_roas`.
18236
+ *
18237
+ * `daily_limit_reached`: held back by the action's `maxChangesPerDay`. `ads_allowance_exceeded`: a reactivation or budget increase for a team past its free live-ads allowance.
18238
+ *
18239
+ * `reallocation_incomplete` (failed): a receiver left alone because a giver's cut did not apply, tried again next run.
18220
18240
  */
18221
18241
  reason: (string) | null;
18222
18242
  /**
@@ -36057,6 +36077,10 @@ export type UpdateHubSpotSettingsData = {
36057
36077
  * Send each deal that becomes closed won as a Purchase to the profile's event destinations, about once an hour. Requires the portal to have granted `crm.objects.deals.read`; otherwise 400. Deals closed before it was turned on are not sent.
36058
36078
  */
36059
36079
  reportDeals?: boolean;
36080
+ /**
36081
+ * Count each closed-won deal as a sale with its amount on the ad campaign that brought its contact, in `GET /v1/ads/campaign-results` and ad rules. Requires `crm.objects.deals.read`; otherwise 400. Turning it on fills in the deals of the last 90 days, never sent to the ad platforms.
36082
+ */
36083
+ useDealsAsResults?: boolean;
36060
36084
  };
36061
36085
  path: {
36062
36086
  accountId: string;