@getlatedev/node 0.2.477 → 0.2.479
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 +40 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +40 -0
package/dist/index.d.mts
CHANGED
|
@@ -22749,6 +22749,10 @@ type ListContactsData = {
|
|
|
22749
22749
|
search?: string;
|
|
22750
22750
|
skip?: number;
|
|
22751
22751
|
tag?: string;
|
|
22752
|
+
/**
|
|
22753
|
+
* Comma-separated tags, matches contacts carrying any of them
|
|
22754
|
+
*/
|
|
22755
|
+
tags?: string;
|
|
22752
22756
|
};
|
|
22753
22757
|
};
|
|
22754
22758
|
type ListContactsResponse = ({
|
|
@@ -26663,7 +26667,43 @@ type ListAdAccountsResponse = ({
|
|
|
26663
26667
|
id?: string;
|
|
26664
26668
|
name?: string;
|
|
26665
26669
|
currency?: string;
|
|
26670
|
+
/**
|
|
26671
|
+
* LinkedIn only. LinkedIn's own ad account status. In practice always `ACTIVE`, because the LinkedIn query filters to active accounts. Meta, Google, TikTok and Pinterest report `accountStatus` instead; X reports `approvalStatus`.
|
|
26672
|
+
*/
|
|
26666
26673
|
status?: string;
|
|
26674
|
+
/**
|
|
26675
|
+
* The platform's own account status, forwarded unchanged. No JSON type is
|
|
26676
|
+
* declared because the type differs per platform: Meta sends an integer,
|
|
26677
|
+
* Google, TikTok and Pinterest send a string. Absent on LinkedIn (reports
|
|
26678
|
+
* `status`) and on X (reports `approvalStatus`).
|
|
26679
|
+
*
|
|
26680
|
+
* If all you need is whether the account can run ads right now, read
|
|
26681
|
+
* `selectable` and skip this field. Read this one when you need to tell
|
|
26682
|
+
* the states apart, because they call for different responses:
|
|
26683
|
+
*
|
|
26684
|
+
* - `1` ACTIVE. Running normally.
|
|
26685
|
+
* - `2` DISABLED. Disabled by Meta. Read `disableReason` to tell a policy
|
|
26686
|
+
* action apart from a billing one; they need very different follow-ups.
|
|
26687
|
+
* - `3` UNSETTLED. There is an unpaid balance, but the account still runs
|
|
26688
|
+
* ads. Not a ban.
|
|
26689
|
+
* - `7` PENDING_RISK_REVIEW. Meta is reviewing the account. Wait for the
|
|
26690
|
+
* outcome.
|
|
26691
|
+
* - `8` PENDING_SETTLEMENT. Meta blocks new ads until an outstanding
|
|
26692
|
+
* balance clears. Settle it and the account runs again.
|
|
26693
|
+
* - `9` IN_GRACE_PERIOD. Still running, on a deadline.
|
|
26694
|
+
* - `100` PENDING_CLOSURE. Scheduled to close.
|
|
26695
|
+
* - `101` CLOSED. Terminal.
|
|
26696
|
+
*
|
|
26697
|
+
*/
|
|
26698
|
+
accountStatus?: unknown;
|
|
26699
|
+
/**
|
|
26700
|
+
* X only. X's own ad account approval status. Observed values are `ACCEPTED`, `PENDING` and `REJECTED`, but X does not publish the full vocabulary, so treat an unrecognised value as not usable. Other platforms report `accountStatus` or `status` instead.
|
|
26701
|
+
*/
|
|
26702
|
+
approvalStatus?: string;
|
|
26703
|
+
/**
|
|
26704
|
+
* Meta only. Meta's `disable_reason` code, forwarded unchanged. Present when `accountStatus` is `2` (DISABLED) and Meta gives a reason, which is what separates a policy action from a payment problem. Meta does not publish a stable list of values for this field, so none are enumerated here: resolve the code against Meta's own ad account reference. Absent when Meta reports no reason, or when the connected token cannot read the field.
|
|
26705
|
+
*/
|
|
26706
|
+
disableReason?: number;
|
|
26667
26707
|
/**
|
|
26668
26708
|
* IANA timezone of the ad account (Meta only). Drives daily-budget reset and Insights day boundaries.
|
|
26669
26709
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -22749,6 +22749,10 @@ type ListContactsData = {
|
|
|
22749
22749
|
search?: string;
|
|
22750
22750
|
skip?: number;
|
|
22751
22751
|
tag?: string;
|
|
22752
|
+
/**
|
|
22753
|
+
* Comma-separated tags, matches contacts carrying any of them
|
|
22754
|
+
*/
|
|
22755
|
+
tags?: string;
|
|
22752
22756
|
};
|
|
22753
22757
|
};
|
|
22754
22758
|
type ListContactsResponse = ({
|
|
@@ -26663,7 +26667,43 @@ type ListAdAccountsResponse = ({
|
|
|
26663
26667
|
id?: string;
|
|
26664
26668
|
name?: string;
|
|
26665
26669
|
currency?: string;
|
|
26670
|
+
/**
|
|
26671
|
+
* LinkedIn only. LinkedIn's own ad account status. In practice always `ACTIVE`, because the LinkedIn query filters to active accounts. Meta, Google, TikTok and Pinterest report `accountStatus` instead; X reports `approvalStatus`.
|
|
26672
|
+
*/
|
|
26666
26673
|
status?: string;
|
|
26674
|
+
/**
|
|
26675
|
+
* The platform's own account status, forwarded unchanged. No JSON type is
|
|
26676
|
+
* declared because the type differs per platform: Meta sends an integer,
|
|
26677
|
+
* Google, TikTok and Pinterest send a string. Absent on LinkedIn (reports
|
|
26678
|
+
* `status`) and on X (reports `approvalStatus`).
|
|
26679
|
+
*
|
|
26680
|
+
* If all you need is whether the account can run ads right now, read
|
|
26681
|
+
* `selectable` and skip this field. Read this one when you need to tell
|
|
26682
|
+
* the states apart, because they call for different responses:
|
|
26683
|
+
*
|
|
26684
|
+
* - `1` ACTIVE. Running normally.
|
|
26685
|
+
* - `2` DISABLED. Disabled by Meta. Read `disableReason` to tell a policy
|
|
26686
|
+
* action apart from a billing one; they need very different follow-ups.
|
|
26687
|
+
* - `3` UNSETTLED. There is an unpaid balance, but the account still runs
|
|
26688
|
+
* ads. Not a ban.
|
|
26689
|
+
* - `7` PENDING_RISK_REVIEW. Meta is reviewing the account. Wait for the
|
|
26690
|
+
* outcome.
|
|
26691
|
+
* - `8` PENDING_SETTLEMENT. Meta blocks new ads until an outstanding
|
|
26692
|
+
* balance clears. Settle it and the account runs again.
|
|
26693
|
+
* - `9` IN_GRACE_PERIOD. Still running, on a deadline.
|
|
26694
|
+
* - `100` PENDING_CLOSURE. Scheduled to close.
|
|
26695
|
+
* - `101` CLOSED. Terminal.
|
|
26696
|
+
*
|
|
26697
|
+
*/
|
|
26698
|
+
accountStatus?: unknown;
|
|
26699
|
+
/**
|
|
26700
|
+
* X only. X's own ad account approval status. Observed values are `ACCEPTED`, `PENDING` and `REJECTED`, but X does not publish the full vocabulary, so treat an unrecognised value as not usable. Other platforms report `accountStatus` or `status` instead.
|
|
26701
|
+
*/
|
|
26702
|
+
approvalStatus?: string;
|
|
26703
|
+
/**
|
|
26704
|
+
* Meta only. Meta's `disable_reason` code, forwarded unchanged. Present when `accountStatus` is `2` (DISABLED) and Meta gives a reason, which is what separates a policy action from a payment problem. Meta does not publish a stable list of values for this field, so none are enumerated here: resolve the code against Meta's own ad account reference. Absent when Meta reports no reason, or when the connected token cannot read the field.
|
|
26705
|
+
*/
|
|
26706
|
+
disableReason?: number;
|
|
26667
26707
|
/**
|
|
26668
26708
|
* IANA timezone of the ad account (Meta only). Drives daily-budget reset and Insights day boundaries.
|
|
26669
26709
|
*/
|
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.479",
|
|
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.479",
|
|
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
|
@@ -22960,6 +22960,10 @@ export type ListContactsData = {
|
|
|
22960
22960
|
search?: string;
|
|
22961
22961
|
skip?: number;
|
|
22962
22962
|
tag?: string;
|
|
22963
|
+
/**
|
|
22964
|
+
* Comma-separated tags, matches contacts carrying any of them
|
|
22965
|
+
*/
|
|
22966
|
+
tags?: string;
|
|
22963
22967
|
};
|
|
22964
22968
|
};
|
|
22965
22969
|
|
|
@@ -27178,7 +27182,43 @@ export type ListAdAccountsResponse = ({
|
|
|
27178
27182
|
id?: string;
|
|
27179
27183
|
name?: string;
|
|
27180
27184
|
currency?: string;
|
|
27185
|
+
/**
|
|
27186
|
+
* LinkedIn only. LinkedIn's own ad account status. In practice always `ACTIVE`, because the LinkedIn query filters to active accounts. Meta, Google, TikTok and Pinterest report `accountStatus` instead; X reports `approvalStatus`.
|
|
27187
|
+
*/
|
|
27181
27188
|
status?: string;
|
|
27189
|
+
/**
|
|
27190
|
+
* The platform's own account status, forwarded unchanged. No JSON type is
|
|
27191
|
+
* declared because the type differs per platform: Meta sends an integer,
|
|
27192
|
+
* Google, TikTok and Pinterest send a string. Absent on LinkedIn (reports
|
|
27193
|
+
* `status`) and on X (reports `approvalStatus`).
|
|
27194
|
+
*
|
|
27195
|
+
* If all you need is whether the account can run ads right now, read
|
|
27196
|
+
* `selectable` and skip this field. Read this one when you need to tell
|
|
27197
|
+
* the states apart, because they call for different responses:
|
|
27198
|
+
*
|
|
27199
|
+
* - `1` ACTIVE. Running normally.
|
|
27200
|
+
* - `2` DISABLED. Disabled by Meta. Read `disableReason` to tell a policy
|
|
27201
|
+
* action apart from a billing one; they need very different follow-ups.
|
|
27202
|
+
* - `3` UNSETTLED. There is an unpaid balance, but the account still runs
|
|
27203
|
+
* ads. Not a ban.
|
|
27204
|
+
* - `7` PENDING_RISK_REVIEW. Meta is reviewing the account. Wait for the
|
|
27205
|
+
* outcome.
|
|
27206
|
+
* - `8` PENDING_SETTLEMENT. Meta blocks new ads until an outstanding
|
|
27207
|
+
* balance clears. Settle it and the account runs again.
|
|
27208
|
+
* - `9` IN_GRACE_PERIOD. Still running, on a deadline.
|
|
27209
|
+
* - `100` PENDING_CLOSURE. Scheduled to close.
|
|
27210
|
+
* - `101` CLOSED. Terminal.
|
|
27211
|
+
*
|
|
27212
|
+
*/
|
|
27213
|
+
accountStatus?: unknown;
|
|
27214
|
+
/**
|
|
27215
|
+
* X only. X's own ad account approval status. Observed values are `ACCEPTED`, `PENDING` and `REJECTED`, but X does not publish the full vocabulary, so treat an unrecognised value as not usable. Other platforms report `accountStatus` or `status` instead.
|
|
27216
|
+
*/
|
|
27217
|
+
approvalStatus?: string;
|
|
27218
|
+
/**
|
|
27219
|
+
* Meta only. Meta's `disable_reason` code, forwarded unchanged. Present when `accountStatus` is `2` (DISABLED) and Meta gives a reason, which is what separates a policy action from a payment problem. Meta does not publish a stable list of values for this field, so none are enumerated here: resolve the code against Meta's own ad account reference. Absent when Meta reports no reason, or when the connected token cannot read the field.
|
|
27220
|
+
*/
|
|
27221
|
+
disableReason?: number;
|
|
27182
27222
|
/**
|
|
27183
27223
|
* IANA timezone of the ad account (Meta only). Drives daily-budget reset and Insights day boundaries.
|
|
27184
27224
|
*/
|