@getlatedev/node 0.2.1461 → 0.2.1462

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
@@ -3916,9 +3916,34 @@ type AdRule = {
3916
3916
  };
3917
3917
  type AdRuleAction = {
3918
3918
  /**
3919
- * Send the `ad_rule.triggered` webhook.
3919
+ * Send the `ad_rule.triggered` webhook, and the alert to every `send` destination.
3920
3920
  */
3921
3921
  type: 'notify';
3922
+ /**
3923
+ * Also send a short alert through accounts you connected: what matched, the values and what the rule did. Up to 5 destinations, checked when the rule is saved.
3924
+ *
3925
+ * A destination that fails is reported in the run's `notification`; it never undoes a change.
3926
+ *
3927
+ */
3928
+ send?: Array<({
3929
+ /**
3930
+ * A connected Slack account (`GET /v1/accounts`, platform `slack`).
3931
+ */
3932
+ accountId: string;
3933
+ /**
3934
+ * The Slack channel to post in. Defaults to the channel the account was connected with; the bot joins public channels on its own.
3935
+ */
3936
+ channelId?: string;
3937
+ } | {
3938
+ /**
3939
+ * A connected Gmail or Outlook mailbox with email access.
3940
+ */
3941
+ accountId: string;
3942
+ /**
3943
+ * The address that receives the alert, sent as a new email from that mailbox.
3944
+ */
3945
+ to: string;
3946
+ })>;
3922
3947
  } | {
3923
3948
  /**
3924
3949
  * Pause the campaign, ad set or ad.
@@ -3937,6 +3962,19 @@ type AdRuleAction = {
3937
3962
  * At most this many objects changed in any 24 hours, across runs. Matches over the limit are skipped with `daily_limit_reached` and tried again later.
3938
3963
  */
3939
3964
  maxChangesPerDay?: number;
3965
+ } | {
3966
+ /**
3967
+ * Set the daily budget to an exact amount, such as a reset every midnight. Same level rules as the percent change.
3968
+ */
3969
+ type: 'adjust_budget';
3970
+ /**
3971
+ * The daily budget to set, in the ad account currency. An object already at it is skipped with `already_at_amount`.
3972
+ */
3973
+ amount: number;
3974
+ /**
3975
+ * At most this many objects changed in any 24 hours, across runs. Matches over the limit are skipped with `daily_limit_reached` and tried again later.
3976
+ */
3977
+ maxChangesPerDay?: number;
3940
3978
  } | {
3941
3979
  /**
3942
3980
  * Change the daily budget. Not on ad-level rules (an ad has no budget), and on Google it needs a campaign-level rule (ad groups have no budget of their own).
@@ -3957,7 +3995,7 @@ type AdRuleAction = {
3957
3995
  maxChangesPerDay?: number;
3958
3996
  };
3959
3997
  /**
3960
- * Send the `ad_rule.triggered` webhook.
3998
+ * Send the `ad_rule.triggered` webhook, and the alert to every `send` destination.
3961
3999
  */
3962
4000
  type type2 = 'notify';
3963
4001
  type direction = 'increase' | 'decrease';
package/dist/index.d.ts CHANGED
@@ -3916,9 +3916,34 @@ type AdRule = {
3916
3916
  };
3917
3917
  type AdRuleAction = {
3918
3918
  /**
3919
- * Send the `ad_rule.triggered` webhook.
3919
+ * Send the `ad_rule.triggered` webhook, and the alert to every `send` destination.
3920
3920
  */
3921
3921
  type: 'notify';
3922
+ /**
3923
+ * Also send a short alert through accounts you connected: what matched, the values and what the rule did. Up to 5 destinations, checked when the rule is saved.
3924
+ *
3925
+ * A destination that fails is reported in the run's `notification`; it never undoes a change.
3926
+ *
3927
+ */
3928
+ send?: Array<({
3929
+ /**
3930
+ * A connected Slack account (`GET /v1/accounts`, platform `slack`).
3931
+ */
3932
+ accountId: string;
3933
+ /**
3934
+ * The Slack channel to post in. Defaults to the channel the account was connected with; the bot joins public channels on its own.
3935
+ */
3936
+ channelId?: string;
3937
+ } | {
3938
+ /**
3939
+ * A connected Gmail or Outlook mailbox with email access.
3940
+ */
3941
+ accountId: string;
3942
+ /**
3943
+ * The address that receives the alert, sent as a new email from that mailbox.
3944
+ */
3945
+ to: string;
3946
+ })>;
3922
3947
  } | {
3923
3948
  /**
3924
3949
  * Pause the campaign, ad set or ad.
@@ -3937,6 +3962,19 @@ type AdRuleAction = {
3937
3962
  * At most this many objects changed in any 24 hours, across runs. Matches over the limit are skipped with `daily_limit_reached` and tried again later.
3938
3963
  */
3939
3964
  maxChangesPerDay?: number;
3965
+ } | {
3966
+ /**
3967
+ * Set the daily budget to an exact amount, such as a reset every midnight. Same level rules as the percent change.
3968
+ */
3969
+ type: 'adjust_budget';
3970
+ /**
3971
+ * The daily budget to set, in the ad account currency. An object already at it is skipped with `already_at_amount`.
3972
+ */
3973
+ amount: number;
3974
+ /**
3975
+ * At most this many objects changed in any 24 hours, across runs. Matches over the limit are skipped with `daily_limit_reached` and tried again later.
3976
+ */
3977
+ maxChangesPerDay?: number;
3940
3978
  } | {
3941
3979
  /**
3942
3980
  * Change the daily budget. Not on ad-level rules (an ad has no budget), and on Google it needs a campaign-level rule (ad groups have no budget of their own).
@@ -3957,7 +3995,7 @@ type AdRuleAction = {
3957
3995
  maxChangesPerDay?: number;
3958
3996
  };
3959
3997
  /**
3960
- * Send the `ad_rule.triggered` webhook.
3998
+ * Send the `ad_rule.triggered` webhook, and the alert to every `send` destination.
3961
3999
  */
3962
4000
  type type2 = 'notify';
3963
4001
  type direction = 'increase' | 'decrease';
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: "@getlatedev/node",
39
- version: "0.2.1461",
39
+ version: "0.2.1462",
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: "@getlatedev/node",
8
- version: "0.2.1461",
8
+ version: "0.2.1462",
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": "@getlatedev/node",
3
- "version": "0.2.1461",
3
+ "version": "0.2.1462",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1691,9 +1691,34 @@ export type AdRule = {
1691
1691
 
1692
1692
  export type AdRuleAction = {
1693
1693
  /**
1694
- * Send the `ad_rule.triggered` webhook.
1694
+ * Send the `ad_rule.triggered` webhook, and the alert to every `send` destination.
1695
1695
  */
1696
1696
  type: 'notify';
1697
+ /**
1698
+ * Also send a short alert through accounts you connected: what matched, the values and what the rule did. Up to 5 destinations, checked when the rule is saved.
1699
+ *
1700
+ * A destination that fails is reported in the run's `notification`; it never undoes a change.
1701
+ *
1702
+ */
1703
+ send?: Array<({
1704
+ /**
1705
+ * A connected Slack account (`GET /v1/accounts`, platform `slack`).
1706
+ */
1707
+ accountId: string;
1708
+ /**
1709
+ * The Slack channel to post in. Defaults to the channel the account was connected with; the bot joins public channels on its own.
1710
+ */
1711
+ channelId?: string;
1712
+ } | {
1713
+ /**
1714
+ * A connected Gmail or Outlook mailbox with email access.
1715
+ */
1716
+ accountId: string;
1717
+ /**
1718
+ * The address that receives the alert, sent as a new email from that mailbox.
1719
+ */
1720
+ to: string;
1721
+ })>;
1697
1722
  } | {
1698
1723
  /**
1699
1724
  * Pause the campaign, ad set or ad.
@@ -1712,6 +1737,19 @@ export type AdRuleAction = {
1712
1737
  * At most this many objects changed in any 24 hours, across runs. Matches over the limit are skipped with `daily_limit_reached` and tried again later.
1713
1738
  */
1714
1739
  maxChangesPerDay?: number;
1740
+ } | {
1741
+ /**
1742
+ * Set the daily budget to an exact amount, such as a reset every midnight. Same level rules as the percent change.
1743
+ */
1744
+ type: 'adjust_budget';
1745
+ /**
1746
+ * The daily budget to set, in the ad account currency. An object already at it is skipped with `already_at_amount`.
1747
+ */
1748
+ amount: number;
1749
+ /**
1750
+ * At most this many objects changed in any 24 hours, across runs. Matches over the limit are skipped with `daily_limit_reached` and tried again later.
1751
+ */
1752
+ maxChangesPerDay?: number;
1715
1753
  } | {
1716
1754
  /**
1717
1755
  * Change the daily budget. Not on ad-level rules (an ad has no budget), and on Google it needs a campaign-level rule (ad groups have no budget of their own).
@@ -1733,7 +1771,7 @@ export type AdRuleAction = {
1733
1771
  };
1734
1772
 
1735
1773
  /**
1736
- * Send the `ad_rule.triggered` webhook.
1774
+ * Send the `ad_rule.triggered` webhook, and the alert to every `send` destination.
1737
1775
  */
1738
1776
  export type type2 = 'notify';
1739
1777