@getlatedev/node 0.2.1467 → 0.2.1468

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.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.1467",
39
+ version: "0.2.1468",
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.1467",
8
+ version: "0.2.1468",
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.1467",
3
+ "version": "0.2.1468",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1755,6 +1755,27 @@ export type AdRuleAction = {
1755
1755
  * 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.
1756
1756
  */
1757
1757
  maxChangesPerDay?: number;
1758
+ } | {
1759
+ /**
1760
+ * Tag the object by its name. Meta, Google and LinkedIn campaigns and ad sets, and TikTok campaigns, ad groups and ads. An object whose name already has the tag (or lacks it, for `remove`) is skipped with `name_unchanged`.
1761
+ */
1762
+ type: 'edit_name';
1763
+ /**
1764
+ * Text to add, like `[WINNER]`. Compared without case.
1765
+ */
1766
+ add?: string;
1767
+ /**
1768
+ * Where `add` goes. Defaults to `start`.
1769
+ */
1770
+ at?: 'start' | 'end';
1771
+ /**
1772
+ * Text to take out of the name, every copy of it.
1773
+ */
1774
+ remove?: string;
1775
+ /**
1776
+ * 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.
1777
+ */
1778
+ maxChangesPerDay?: number;
1758
1779
  } | {
1759
1780
  /**
1760
1781
  * Set the daily budget to an exact amount, such as a reset every midnight. Same level rules as the percent change.
@@ -1793,10 +1814,15 @@ export type AdRuleAction = {
1793
1814
  */
1794
1815
  export type type2 = 'notify';
1795
1816
 
1817
+ /**
1818
+ * Where `add` goes. Defaults to `start`.
1819
+ */
1820
+ export type at = 'start' | 'end';
1821
+
1796
1822
  export type direction = 'increase' | 'decrease';
1797
1823
 
1798
1824
  /**
1799
- * Each type at most once, and at most one of `pause`, `activate`, `adjust_budget` and `duplicate`.
1825
+ * Each type at most once, and at most one of `pause`, `activate`, `adjust_budget`, `duplicate` and `edit_name`.
1800
1826
  */
1801
1827
  export type AdRuleActions = Array<AdRuleAction>;
1802
1828
 
@@ -1826,7 +1852,7 @@ export type AdRuleActivityEntry = {
1826
1852
  * Its name when the rule acted.
1827
1853
  */
1828
1854
  objectName: (string) | null;
1829
- type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
1855
+ type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate' | 'edit_name';
1830
1856
  status: 'done' | 'skipped' | 'failed';
1831
1857
  /**
1832
1858
  * Why it was skipped or failed, for example `already_paused`.
@@ -1834,12 +1860,20 @@ export type AdRuleActivityEntry = {
1834
1860
  reason: (string) | null;
1835
1861
  previousDailyBudget: (number) | null;
1836
1862
  newDailyBudget: (number) | null;
1863
+ /**
1864
+ * The name before an `edit_name`.
1865
+ */
1866
+ previousName: (string) | null;
1867
+ /**
1868
+ * The name an applied `edit_name` set.
1869
+ */
1870
+ newName: (string) | null;
1837
1871
  currency: (string) | null;
1838
1872
  };
1839
1873
 
1840
1874
  export type level = 'campaign' | 'adset';
1841
1875
 
1842
- export type type3 = 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
1876
+ export type type3 = 'pause' | 'activate' | 'adjust_budget' | 'duplicate' | 'edit_name';
1843
1877
 
1844
1878
  export type status3 = 'done' | 'skipped' | 'failed';
1845
1879
 
@@ -1992,7 +2026,7 @@ export type AdRuleRun = {
1992
2026
  matched?: Array<AdRuleObjectEvaluation>;
1993
2027
  actions?: Array<{
1994
2028
  objectId: string;
1995
- type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
2029
+ type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate' | 'edit_name';
1996
2030
  status: 'done' | 'skipped' | 'failed';
1997
2031
  /**
1998
2032
  * Why it was skipped or failed, for example `already_paused`.
@@ -2000,6 +2034,8 @@ export type AdRuleRun = {
2000
2034
  reason?: string;
2001
2035
  previousDailyBudget?: number;
2002
2036
  newDailyBudget?: number;
2037
+ previousName?: string;
2038
+ newName?: string;
2003
2039
  }>;
2004
2040
  /**
2005
2041
  * Set when a run of a rule with a `notify` action matched objects and tried to send the webhook. A notify-only rule whose webhook fails ends with outcome `failed`.
@@ -17706,7 +17742,7 @@ export type WebhookPayloadAdRuleTriggered = {
17706
17742
  * What the rule did to the object. Empty on a rule that only notifies.
17707
17743
  */
17708
17744
  actions: Array<{
17709
- type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
17745
+ type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate' | 'edit_name';
17710
17746
  /**
17711
17747
  * Action result.
17712
17748
  *
@@ -17726,6 +17762,14 @@ export type WebhookPayloadAdRuleTriggered = {
17726
17762
  * On `adjust_budget`, the daily budget after the change. Null when nothing changed.
17727
17763
  */
17728
17764
  newDailyBudget: (number) | null;
17765
+ /**
17766
+ * On `edit_name`, the object's name before the change. Null otherwise.
17767
+ */
17768
+ previousName: (string) | null;
17769
+ /**
17770
+ * On `edit_name`, the name after the change. Null when nothing changed.
17771
+ */
17772
+ newName: (string) | null;
17729
17773
  }>;
17730
17774
  }>;
17731
17775
  /**
@@ -51276,7 +51320,7 @@ export type ListAdRuleActivityData = {
51276
51320
  * ISO 8601 date-time, inclusive.
51277
51321
  */
51278
51322
  to?: string;
51279
- type?: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
51323
+ type?: 'pause' | 'activate' | 'adjust_budget' | 'duplicate' | 'edit_name';
51280
51324
  };
51281
51325
  };
51282
51326