@getlatedev/node 0.2.476 → 0.2.478
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 -1
- package/dist/index.d.ts +40 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +40 -1
package/dist/index.d.mts
CHANGED
|
@@ -22973,7 +22973,10 @@ type BulkCreateContactsData = {
|
|
|
22973
22973
|
platform?: string;
|
|
22974
22974
|
contacts: Array<{
|
|
22975
22975
|
name: string;
|
|
22976
|
-
|
|
22976
|
+
/**
|
|
22977
|
+
* Required when the top-level accountId is set (channel mode). A row missing it in that mode is rejected individually and reported in errors[], not a 400 for the whole import.
|
|
22978
|
+
*/
|
|
22979
|
+
platformIdentifier?: string;
|
|
22977
22980
|
displayIdentifier?: string;
|
|
22978
22981
|
email?: string;
|
|
22979
22982
|
company?: string;
|
|
@@ -26660,7 +26663,43 @@ type ListAdAccountsResponse = ({
|
|
|
26660
26663
|
id?: string;
|
|
26661
26664
|
name?: string;
|
|
26662
26665
|
currency?: string;
|
|
26666
|
+
/**
|
|
26667
|
+
* 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`.
|
|
26668
|
+
*/
|
|
26663
26669
|
status?: string;
|
|
26670
|
+
/**
|
|
26671
|
+
* The platform's own account status, forwarded unchanged. No JSON type is
|
|
26672
|
+
* declared because the type differs per platform: Meta sends an integer,
|
|
26673
|
+
* Google, TikTok and Pinterest send a string. Absent on LinkedIn (reports
|
|
26674
|
+
* `status`) and on X (reports `approvalStatus`).
|
|
26675
|
+
*
|
|
26676
|
+
* If all you need is whether the account can run ads right now, read
|
|
26677
|
+
* `selectable` and skip this field. Read this one when you need to tell
|
|
26678
|
+
* the states apart, because they call for different responses:
|
|
26679
|
+
*
|
|
26680
|
+
* - `1` ACTIVE. Running normally.
|
|
26681
|
+
* - `2` DISABLED. Disabled by Meta. Read `disableReason` to tell a policy
|
|
26682
|
+
* action apart from a billing one; they need very different follow-ups.
|
|
26683
|
+
* - `3` UNSETTLED. There is an unpaid balance, but the account still runs
|
|
26684
|
+
* ads. Not a ban.
|
|
26685
|
+
* - `7` PENDING_RISK_REVIEW. Meta is reviewing the account. Wait for the
|
|
26686
|
+
* outcome.
|
|
26687
|
+
* - `8` PENDING_SETTLEMENT. Meta blocks new ads until an outstanding
|
|
26688
|
+
* balance clears. Settle it and the account runs again.
|
|
26689
|
+
* - `9` IN_GRACE_PERIOD. Still running, on a deadline.
|
|
26690
|
+
* - `100` PENDING_CLOSURE. Scheduled to close.
|
|
26691
|
+
* - `101` CLOSED. Terminal.
|
|
26692
|
+
*
|
|
26693
|
+
*/
|
|
26694
|
+
accountStatus?: unknown;
|
|
26695
|
+
/**
|
|
26696
|
+
* 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.
|
|
26697
|
+
*/
|
|
26698
|
+
approvalStatus?: string;
|
|
26699
|
+
/**
|
|
26700
|
+
* 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.
|
|
26701
|
+
*/
|
|
26702
|
+
disableReason?: number;
|
|
26664
26703
|
/**
|
|
26665
26704
|
* IANA timezone of the ad account (Meta only). Drives daily-budget reset and Insights day boundaries.
|
|
26666
26705
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -22973,7 +22973,10 @@ type BulkCreateContactsData = {
|
|
|
22973
22973
|
platform?: string;
|
|
22974
22974
|
contacts: Array<{
|
|
22975
22975
|
name: string;
|
|
22976
|
-
|
|
22976
|
+
/**
|
|
22977
|
+
* Required when the top-level accountId is set (channel mode). A row missing it in that mode is rejected individually and reported in errors[], not a 400 for the whole import.
|
|
22978
|
+
*/
|
|
22979
|
+
platformIdentifier?: string;
|
|
22977
22980
|
displayIdentifier?: string;
|
|
22978
22981
|
email?: string;
|
|
22979
22982
|
company?: string;
|
|
@@ -26660,7 +26663,43 @@ type ListAdAccountsResponse = ({
|
|
|
26660
26663
|
id?: string;
|
|
26661
26664
|
name?: string;
|
|
26662
26665
|
currency?: string;
|
|
26666
|
+
/**
|
|
26667
|
+
* 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`.
|
|
26668
|
+
*/
|
|
26663
26669
|
status?: string;
|
|
26670
|
+
/**
|
|
26671
|
+
* The platform's own account status, forwarded unchanged. No JSON type is
|
|
26672
|
+
* declared because the type differs per platform: Meta sends an integer,
|
|
26673
|
+
* Google, TikTok and Pinterest send a string. Absent on LinkedIn (reports
|
|
26674
|
+
* `status`) and on X (reports `approvalStatus`).
|
|
26675
|
+
*
|
|
26676
|
+
* If all you need is whether the account can run ads right now, read
|
|
26677
|
+
* `selectable` and skip this field. Read this one when you need to tell
|
|
26678
|
+
* the states apart, because they call for different responses:
|
|
26679
|
+
*
|
|
26680
|
+
* - `1` ACTIVE. Running normally.
|
|
26681
|
+
* - `2` DISABLED. Disabled by Meta. Read `disableReason` to tell a policy
|
|
26682
|
+
* action apart from a billing one; they need very different follow-ups.
|
|
26683
|
+
* - `3` UNSETTLED. There is an unpaid balance, but the account still runs
|
|
26684
|
+
* ads. Not a ban.
|
|
26685
|
+
* - `7` PENDING_RISK_REVIEW. Meta is reviewing the account. Wait for the
|
|
26686
|
+
* outcome.
|
|
26687
|
+
* - `8` PENDING_SETTLEMENT. Meta blocks new ads until an outstanding
|
|
26688
|
+
* balance clears. Settle it and the account runs again.
|
|
26689
|
+
* - `9` IN_GRACE_PERIOD. Still running, on a deadline.
|
|
26690
|
+
* - `100` PENDING_CLOSURE. Scheduled to close.
|
|
26691
|
+
* - `101` CLOSED. Terminal.
|
|
26692
|
+
*
|
|
26693
|
+
*/
|
|
26694
|
+
accountStatus?: unknown;
|
|
26695
|
+
/**
|
|
26696
|
+
* 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.
|
|
26697
|
+
*/
|
|
26698
|
+
approvalStatus?: string;
|
|
26699
|
+
/**
|
|
26700
|
+
* 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.
|
|
26701
|
+
*/
|
|
26702
|
+
disableReason?: number;
|
|
26664
26703
|
/**
|
|
26665
26704
|
* IANA timezone of the ad account (Meta only). Drives daily-budget reset and Insights day boundaries.
|
|
26666
26705
|
*/
|
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.478",
|
|
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.478",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -6062,7 +6062,7 @@ export const getContactChannels = <ThrowOnError extends boolean = false>(options
|
|
|
6062
6062
|
|
|
6063
6063
|
/**
|
|
6064
6064
|
* Bulk create contacts
|
|
6065
|
-
* Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
|
|
6065
|
+
* Import up to 1000 contacts at a time. Skips duplicates, merging any new tags onto the existing contact. accountId is required whenever contacts carry a platformIdentifier (or a row-level accountId); platform is always derived from the resolved account, never used to decide whether channels are created, and a mismatched platform 404s as account not found. When accountId is set, each contact must carry a platformIdentifier; a row missing it is rejected individually (reported in errors[], HTTP 200), not a 400 for the whole import. On phone platforms (whatsapp, sms) the platformIdentifier is normalized to digits and a value that is not phone-shaped is rejected per contact and reported in errors[], not imported.
|
|
6066
6066
|
*/
|
|
6067
6067
|
export const bulkCreateContacts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => {
|
|
6068
6068
|
return (options?.client ?? client).post<BulkCreateContactsResponse, BulkCreateContactsError, ThrowOnError>({
|
|
@@ -23202,7 +23202,10 @@ export type BulkCreateContactsData = {
|
|
|
23202
23202
|
platform?: string;
|
|
23203
23203
|
contacts: Array<{
|
|
23204
23204
|
name: string;
|
|
23205
|
-
|
|
23205
|
+
/**
|
|
23206
|
+
* Required when the top-level accountId is set (channel mode). A row missing it in that mode is rejected individually and reported in errors[], not a 400 for the whole import.
|
|
23207
|
+
*/
|
|
23208
|
+
platformIdentifier?: string;
|
|
23206
23209
|
displayIdentifier?: string;
|
|
23207
23210
|
email?: string;
|
|
23208
23211
|
company?: string;
|
|
@@ -27175,7 +27178,43 @@ export type ListAdAccountsResponse = ({
|
|
|
27175
27178
|
id?: string;
|
|
27176
27179
|
name?: string;
|
|
27177
27180
|
currency?: string;
|
|
27181
|
+
/**
|
|
27182
|
+
* 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`.
|
|
27183
|
+
*/
|
|
27178
27184
|
status?: string;
|
|
27185
|
+
/**
|
|
27186
|
+
* The platform's own account status, forwarded unchanged. No JSON type is
|
|
27187
|
+
* declared because the type differs per platform: Meta sends an integer,
|
|
27188
|
+
* Google, TikTok and Pinterest send a string. Absent on LinkedIn (reports
|
|
27189
|
+
* `status`) and on X (reports `approvalStatus`).
|
|
27190
|
+
*
|
|
27191
|
+
* If all you need is whether the account can run ads right now, read
|
|
27192
|
+
* `selectable` and skip this field. Read this one when you need to tell
|
|
27193
|
+
* the states apart, because they call for different responses:
|
|
27194
|
+
*
|
|
27195
|
+
* - `1` ACTIVE. Running normally.
|
|
27196
|
+
* - `2` DISABLED. Disabled by Meta. Read `disableReason` to tell a policy
|
|
27197
|
+
* action apart from a billing one; they need very different follow-ups.
|
|
27198
|
+
* - `3` UNSETTLED. There is an unpaid balance, but the account still runs
|
|
27199
|
+
* ads. Not a ban.
|
|
27200
|
+
* - `7` PENDING_RISK_REVIEW. Meta is reviewing the account. Wait for the
|
|
27201
|
+
* outcome.
|
|
27202
|
+
* - `8` PENDING_SETTLEMENT. Meta blocks new ads until an outstanding
|
|
27203
|
+
* balance clears. Settle it and the account runs again.
|
|
27204
|
+
* - `9` IN_GRACE_PERIOD. Still running, on a deadline.
|
|
27205
|
+
* - `100` PENDING_CLOSURE. Scheduled to close.
|
|
27206
|
+
* - `101` CLOSED. Terminal.
|
|
27207
|
+
*
|
|
27208
|
+
*/
|
|
27209
|
+
accountStatus?: unknown;
|
|
27210
|
+
/**
|
|
27211
|
+
* 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.
|
|
27212
|
+
*/
|
|
27213
|
+
approvalStatus?: string;
|
|
27214
|
+
/**
|
|
27215
|
+
* 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.
|
|
27216
|
+
*/
|
|
27217
|
+
disableReason?: number;
|
|
27179
27218
|
/**
|
|
27180
27219
|
* IANA timezone of the ad account (Meta only). Drives daily-budget reset and Insights day boundaries.
|
|
27181
27220
|
*/
|