@getlatedev/node 0.2.1462 → 0.2.1463
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 +23 -6
- package/dist/index.d.ts +23 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +23 -6
package/dist/index.d.mts
CHANGED
|
@@ -3962,6 +3962,23 @@ type AdRuleAction = {
|
|
|
3962
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.
|
|
3963
3963
|
*/
|
|
3964
3964
|
maxChangesPerDay?: number;
|
|
3965
|
+
} | {
|
|
3966
|
+
/**
|
|
3967
|
+
* Copy the campaign or ad set with its ads, on Meta and TikTok campaigns and ad sets and LinkedIn campaigns. Not on ad-level rules.
|
|
3968
|
+
*/
|
|
3969
|
+
type: 'duplicate';
|
|
3970
|
+
/**
|
|
3971
|
+
* How the copy starts. Defaults to `paused`.
|
|
3972
|
+
*/
|
|
3973
|
+
status?: 'paused' | 'active';
|
|
3974
|
+
/**
|
|
3975
|
+
* Text added to the copy's name.
|
|
3976
|
+
*/
|
|
3977
|
+
renameSuffix?: string;
|
|
3978
|
+
/**
|
|
3979
|
+
* 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.
|
|
3980
|
+
*/
|
|
3981
|
+
maxChangesPerDay?: number;
|
|
3965
3982
|
} | {
|
|
3966
3983
|
/**
|
|
3967
3984
|
* Set the daily budget to an exact amount, such as a reset every midnight. Same level rules as the percent change.
|
|
@@ -4000,7 +4017,7 @@ type AdRuleAction = {
|
|
|
4000
4017
|
type type2 = 'notify';
|
|
4001
4018
|
type direction = 'increase' | 'decrease';
|
|
4002
4019
|
/**
|
|
4003
|
-
* Each type at most once, and at most one of `pause`, `activate` and `
|
|
4020
|
+
* Each type at most once, and at most one of `pause`, `activate`, `adjust_budget` and `duplicate`.
|
|
4004
4021
|
*/
|
|
4005
4022
|
type AdRuleActions = Array<AdRuleAction>;
|
|
4006
4023
|
type AdRuleActivityEntry = {
|
|
@@ -4029,7 +4046,7 @@ type AdRuleActivityEntry = {
|
|
|
4029
4046
|
* Its name when the rule acted.
|
|
4030
4047
|
*/
|
|
4031
4048
|
objectName: (string) | null;
|
|
4032
|
-
type: 'pause' | 'activate' | 'adjust_budget';
|
|
4049
|
+
type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
4033
4050
|
status: 'done' | 'skipped' | 'failed';
|
|
4034
4051
|
/**
|
|
4035
4052
|
* Why it was skipped or failed, for example `already_paused`.
|
|
@@ -4040,7 +4057,7 @@ type AdRuleActivityEntry = {
|
|
|
4040
4057
|
currency: (string) | null;
|
|
4041
4058
|
};
|
|
4042
4059
|
type level = 'campaign' | 'adset';
|
|
4043
|
-
type type3 = 'pause' | 'activate' | 'adjust_budget';
|
|
4060
|
+
type type3 = 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
4044
4061
|
type status3 = 'done' | 'skipped' | 'failed';
|
|
4045
4062
|
type AdRuleCondition = {
|
|
4046
4063
|
/**
|
|
@@ -4172,7 +4189,7 @@ type AdRuleRun = {
|
|
|
4172
4189
|
matched?: Array<AdRuleObjectEvaluation>;
|
|
4173
4190
|
actions?: Array<{
|
|
4174
4191
|
objectId: string;
|
|
4175
|
-
type: 'pause' | 'activate' | 'adjust_budget';
|
|
4192
|
+
type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
4176
4193
|
status: 'done' | 'skipped' | 'failed';
|
|
4177
4194
|
/**
|
|
4178
4195
|
* Why it was skipped or failed, for example `already_paused`.
|
|
@@ -19172,7 +19189,7 @@ type WebhookPayloadAdRuleTriggered = {
|
|
|
19172
19189
|
* What the rule did to the object. Empty on a rule that only notifies.
|
|
19173
19190
|
*/
|
|
19174
19191
|
actions: Array<{
|
|
19175
|
-
type: 'pause' | 'activate' | 'adjust_budget';
|
|
19192
|
+
type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
19176
19193
|
/**
|
|
19177
19194
|
* Action result.
|
|
19178
19195
|
*
|
|
@@ -50485,7 +50502,7 @@ type ListAdRuleActivityData = {
|
|
|
50485
50502
|
* ISO 8601 date-time, inclusive.
|
|
50486
50503
|
*/
|
|
50487
50504
|
to?: string;
|
|
50488
|
-
type?: 'pause' | 'activate' | 'adjust_budget';
|
|
50505
|
+
type?: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
50489
50506
|
};
|
|
50490
50507
|
};
|
|
50491
50508
|
type ListAdRuleActivityResponse = ({
|
package/dist/index.d.ts
CHANGED
|
@@ -3962,6 +3962,23 @@ type AdRuleAction = {
|
|
|
3962
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.
|
|
3963
3963
|
*/
|
|
3964
3964
|
maxChangesPerDay?: number;
|
|
3965
|
+
} | {
|
|
3966
|
+
/**
|
|
3967
|
+
* Copy the campaign or ad set with its ads, on Meta and TikTok campaigns and ad sets and LinkedIn campaigns. Not on ad-level rules.
|
|
3968
|
+
*/
|
|
3969
|
+
type: 'duplicate';
|
|
3970
|
+
/**
|
|
3971
|
+
* How the copy starts. Defaults to `paused`.
|
|
3972
|
+
*/
|
|
3973
|
+
status?: 'paused' | 'active';
|
|
3974
|
+
/**
|
|
3975
|
+
* Text added to the copy's name.
|
|
3976
|
+
*/
|
|
3977
|
+
renameSuffix?: string;
|
|
3978
|
+
/**
|
|
3979
|
+
* 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.
|
|
3980
|
+
*/
|
|
3981
|
+
maxChangesPerDay?: number;
|
|
3965
3982
|
} | {
|
|
3966
3983
|
/**
|
|
3967
3984
|
* Set the daily budget to an exact amount, such as a reset every midnight. Same level rules as the percent change.
|
|
@@ -4000,7 +4017,7 @@ type AdRuleAction = {
|
|
|
4000
4017
|
type type2 = 'notify';
|
|
4001
4018
|
type direction = 'increase' | 'decrease';
|
|
4002
4019
|
/**
|
|
4003
|
-
* Each type at most once, and at most one of `pause`, `activate` and `
|
|
4020
|
+
* Each type at most once, and at most one of `pause`, `activate`, `adjust_budget` and `duplicate`.
|
|
4004
4021
|
*/
|
|
4005
4022
|
type AdRuleActions = Array<AdRuleAction>;
|
|
4006
4023
|
type AdRuleActivityEntry = {
|
|
@@ -4029,7 +4046,7 @@ type AdRuleActivityEntry = {
|
|
|
4029
4046
|
* Its name when the rule acted.
|
|
4030
4047
|
*/
|
|
4031
4048
|
objectName: (string) | null;
|
|
4032
|
-
type: 'pause' | 'activate' | 'adjust_budget';
|
|
4049
|
+
type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
4033
4050
|
status: 'done' | 'skipped' | 'failed';
|
|
4034
4051
|
/**
|
|
4035
4052
|
* Why it was skipped or failed, for example `already_paused`.
|
|
@@ -4040,7 +4057,7 @@ type AdRuleActivityEntry = {
|
|
|
4040
4057
|
currency: (string) | null;
|
|
4041
4058
|
};
|
|
4042
4059
|
type level = 'campaign' | 'adset';
|
|
4043
|
-
type type3 = 'pause' | 'activate' | 'adjust_budget';
|
|
4060
|
+
type type3 = 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
4044
4061
|
type status3 = 'done' | 'skipped' | 'failed';
|
|
4045
4062
|
type AdRuleCondition = {
|
|
4046
4063
|
/**
|
|
@@ -4172,7 +4189,7 @@ type AdRuleRun = {
|
|
|
4172
4189
|
matched?: Array<AdRuleObjectEvaluation>;
|
|
4173
4190
|
actions?: Array<{
|
|
4174
4191
|
objectId: string;
|
|
4175
|
-
type: 'pause' | 'activate' | 'adjust_budget';
|
|
4192
|
+
type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
4176
4193
|
status: 'done' | 'skipped' | 'failed';
|
|
4177
4194
|
/**
|
|
4178
4195
|
* Why it was skipped or failed, for example `already_paused`.
|
|
@@ -19172,7 +19189,7 @@ type WebhookPayloadAdRuleTriggered = {
|
|
|
19172
19189
|
* What the rule did to the object. Empty on a rule that only notifies.
|
|
19173
19190
|
*/
|
|
19174
19191
|
actions: Array<{
|
|
19175
|
-
type: 'pause' | 'activate' | 'adjust_budget';
|
|
19192
|
+
type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
19176
19193
|
/**
|
|
19177
19194
|
* Action result.
|
|
19178
19195
|
*
|
|
@@ -50485,7 +50502,7 @@ type ListAdRuleActivityData = {
|
|
|
50485
50502
|
* ISO 8601 date-time, inclusive.
|
|
50486
50503
|
*/
|
|
50487
50504
|
to?: string;
|
|
50488
|
-
type?: 'pause' | 'activate' | 'adjust_budget';
|
|
50505
|
+
type?: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
50489
50506
|
};
|
|
50490
50507
|
};
|
|
50491
50508
|
type ListAdRuleActivityResponse = ({
|
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.
|
|
39
|
+
version: "0.2.1463",
|
|
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.
|
|
8
|
+
version: "0.2.1463",
|
|
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
|
@@ -1737,6 +1737,23 @@ export type AdRuleAction = {
|
|
|
1737
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.
|
|
1738
1738
|
*/
|
|
1739
1739
|
maxChangesPerDay?: number;
|
|
1740
|
+
} | {
|
|
1741
|
+
/**
|
|
1742
|
+
* Copy the campaign or ad set with its ads, on Meta and TikTok campaigns and ad sets and LinkedIn campaigns. Not on ad-level rules.
|
|
1743
|
+
*/
|
|
1744
|
+
type: 'duplicate';
|
|
1745
|
+
/**
|
|
1746
|
+
* How the copy starts. Defaults to `paused`.
|
|
1747
|
+
*/
|
|
1748
|
+
status?: 'paused' | 'active';
|
|
1749
|
+
/**
|
|
1750
|
+
* Text added to the copy's name.
|
|
1751
|
+
*/
|
|
1752
|
+
renameSuffix?: string;
|
|
1753
|
+
/**
|
|
1754
|
+
* 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.
|
|
1755
|
+
*/
|
|
1756
|
+
maxChangesPerDay?: number;
|
|
1740
1757
|
} | {
|
|
1741
1758
|
/**
|
|
1742
1759
|
* Set the daily budget to an exact amount, such as a reset every midnight. Same level rules as the percent change.
|
|
@@ -1778,7 +1795,7 @@ export type type2 = 'notify';
|
|
|
1778
1795
|
export type direction = 'increase' | 'decrease';
|
|
1779
1796
|
|
|
1780
1797
|
/**
|
|
1781
|
-
* Each type at most once, and at most one of `pause`, `activate` and `
|
|
1798
|
+
* Each type at most once, and at most one of `pause`, `activate`, `adjust_budget` and `duplicate`.
|
|
1782
1799
|
*/
|
|
1783
1800
|
export type AdRuleActions = Array<AdRuleAction>;
|
|
1784
1801
|
|
|
@@ -1808,7 +1825,7 @@ export type AdRuleActivityEntry = {
|
|
|
1808
1825
|
* Its name when the rule acted.
|
|
1809
1826
|
*/
|
|
1810
1827
|
objectName: (string) | null;
|
|
1811
|
-
type: 'pause' | 'activate' | 'adjust_budget';
|
|
1828
|
+
type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
1812
1829
|
status: 'done' | 'skipped' | 'failed';
|
|
1813
1830
|
/**
|
|
1814
1831
|
* Why it was skipped or failed, for example `already_paused`.
|
|
@@ -1821,7 +1838,7 @@ export type AdRuleActivityEntry = {
|
|
|
1821
1838
|
|
|
1822
1839
|
export type level = 'campaign' | 'adset';
|
|
1823
1840
|
|
|
1824
|
-
export type type3 = 'pause' | 'activate' | 'adjust_budget';
|
|
1841
|
+
export type type3 = 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
1825
1842
|
|
|
1826
1843
|
export type status3 = 'done' | 'skipped' | 'failed';
|
|
1827
1844
|
|
|
@@ -1962,7 +1979,7 @@ export type AdRuleRun = {
|
|
|
1962
1979
|
matched?: Array<AdRuleObjectEvaluation>;
|
|
1963
1980
|
actions?: Array<{
|
|
1964
1981
|
objectId: string;
|
|
1965
|
-
type: 'pause' | 'activate' | 'adjust_budget';
|
|
1982
|
+
type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
1966
1983
|
status: 'done' | 'skipped' | 'failed';
|
|
1967
1984
|
/**
|
|
1968
1985
|
* Why it was skipped or failed, for example `already_paused`.
|
|
@@ -17655,7 +17672,7 @@ export type WebhookPayloadAdRuleTriggered = {
|
|
|
17655
17672
|
* What the rule did to the object. Empty on a rule that only notifies.
|
|
17656
17673
|
*/
|
|
17657
17674
|
actions: Array<{
|
|
17658
|
-
type: 'pause' | 'activate' | 'adjust_budget';
|
|
17675
|
+
type: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
17659
17676
|
/**
|
|
17660
17677
|
* Action result.
|
|
17661
17678
|
*
|
|
@@ -51220,7 +51237,7 @@ export type ListAdRuleActivityData = {
|
|
|
51220
51237
|
* ISO 8601 date-time, inclusive.
|
|
51221
51238
|
*/
|
|
51222
51239
|
to?: string;
|
|
51223
|
-
type?: 'pause' | 'activate' | 'adjust_budget';
|
|
51240
|
+
type?: 'pause' | 'activate' | 'adjust_budget' | 'duplicate';
|
|
51224
51241
|
};
|
|
51225
51242
|
};
|
|
51226
51243
|
|