@getlatedev/node 0.2.1434 → 0.2.1436
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 +21 -10
- package/dist/index.d.ts +21 -10
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +21 -10
package/dist/index.d.mts
CHANGED
|
@@ -10046,14 +10046,25 @@ type ErrorResponse = {
|
|
|
10046
10046
|
/**
|
|
10047
10047
|
* Additional structured context for the error (for example field-level validation errors). What it carries depends on the endpoint and platform.
|
|
10048
10048
|
*
|
|
10049
|
-
* **Meta ads refusals.** The ones customers hit most come back with their own `code` instead of `platform_api_error`, the field to fix in `param`, and `details.fix` ({ label, url })
|
|
10050
|
-
*
|
|
10051
|
-
*
|
|
10052
|
-
*
|
|
10053
|
-
* - `
|
|
10054
|
-
* - `
|
|
10055
|
-
* - `
|
|
10056
|
-
* - `
|
|
10049
|
+
* **Meta ads refusals.** The ones customers hit most come back with their own `code` instead of `platform_api_error`, the field to fix in `param`, and an English `details.hint` saying how to fix it. `details.fix` ({ label, url }) links the Meta page that resolves it, when there is one.
|
|
10050
|
+
*
|
|
10051
|
+
* The code is picked from Meta's numeric `code` and `error_subcode`, never from the message, so it is the same whatever language Meta wrote `error_user_msg` in. Branch on `code` and show `details.hint`.
|
|
10052
|
+
*
|
|
10053
|
+
* - `ad_account_payment_required`: the ad account has no usable payment method (subcode 1815010, 1359188).
|
|
10054
|
+
* - `ad_account_policy_not_accepted`: a business admin has to accept Meta's non-discrimination policy (subcode 2859002, 2859024).
|
|
10055
|
+
* - `lead_ads_terms_not_accepted`: the Facebook Page has not accepted the Lead Ads terms (subcode 1815089).
|
|
10056
|
+
* - `verified_advertiser_required`: the market requires a verified beneficiary and payer; send `regionalRegulationIdentities` (subcode 3858634, 3858636, 3858442, 3858548, 3858495).
|
|
10057
|
+
* - `ad_account_unusable`: the ad account is not active, or the business is restricted from advertising (subcode 1885316, 2446325, and 2490592, 4841021 below).
|
|
10058
|
+
* - `meta_security_check_required`: the Facebook user behind the connection is held at a security check (code 31).
|
|
10059
|
+
* - `meta_action_blocked`: Meta temporarily blocked the Facebook user from this action (subcode 2859015).
|
|
10060
|
+
* - `meta_ad_consent_required`: the Page or Instagram owner chose Meta without ads or less personalized ads (subcode 3858231, 3858412).
|
|
10061
|
+
* - `instagram_account_restricted`: Meta restricted the Instagram account the ad runs as (subcode 2207070).
|
|
10062
|
+
* - `insufficient_permissions`: the ad account cannot use the Instagram account, or the Facebook user has no advertiser permission on the Page (subcode 1815199, 1815202, 1885499, 1341012, and the Advertise permission case below).
|
|
10063
|
+
* - `whatsapp_number_not_linked`: the WhatsApp number is no longer linked to the Page (subcode 2446880).
|
|
10064
|
+
* - `invalid_targeting`: Meta refused the audience or a placement (subcode 1487079, 1870247, 2909035, 1870189, 1870188, 1487756, 1487843, 2490562).
|
|
10065
|
+
* - `post_not_boostable`: Meta does not allow the post to be promoted (subcode 2446187, 2875030, 1487472).
|
|
10066
|
+
* - `budget_too_low`: the budget is below Meta's minimum, which `platformError.error_user_msg` states (subcode 1885272).
|
|
10067
|
+
* - `meta_object_not_accessible`: Meta cannot load an object the request names (wrong ID, deleted, or no access); `platformError.message` names the ID (subcode 33, on ads routes only).
|
|
10057
10068
|
*
|
|
10058
10069
|
* Meta's own error stays in the message and in `platformError`.
|
|
10059
10070
|
*
|
|
@@ -57075,7 +57086,7 @@ type BoostPostData = {
|
|
|
57075
57086
|
body: {
|
|
57076
57087
|
creativeFeatures?: MetaCreativeFeatures;
|
|
57077
57088
|
/**
|
|
57078
|
-
* Zernio post
|
|
57089
|
+
* The Zernio post id (24 hex characters) returned when the post was created through Zernio. Send this or platformPostId. A value that is not a Zernio id is boosted as the platform post id, the same as platformPostId; a Zernio id that matches no post is a 404 on postId.
|
|
57079
57090
|
*/
|
|
57080
57091
|
postId?: string;
|
|
57081
57092
|
/**
|
|
@@ -57089,7 +57100,7 @@ type BoostPostData = {
|
|
|
57089
57100
|
/**
|
|
57090
57101
|
* Zernio account id. Normally the connected posting account (facebook, instagram, tiktok, linkedin, pinterest, twitter), a googleads account or a redditads account.
|
|
57091
57102
|
*
|
|
57092
|
-
* TikTok: the TikTok Ads connection (platform tiktokads) is also accepted when the post brings its own authorization (sparkAuthCode or sparkPosts), so Spark ads need no organic TikTok account connected. Such a call
|
|
57103
|
+
* TikTok: the TikTok Ads connection (platform tiktokads) is also accepted when the post brings its own authorization (sparkAuthCode or sparkPosts), so Spark ads need no organic TikTok account connected. Such a call cannot use a Zernio postId: send the TikTok item id (as platformPostId, or in postId).
|
|
57093
57104
|
*/
|
|
57094
57105
|
accountId: string;
|
|
57095
57106
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -10046,14 +10046,25 @@ type ErrorResponse = {
|
|
|
10046
10046
|
/**
|
|
10047
10047
|
* Additional structured context for the error (for example field-level validation errors). What it carries depends on the endpoint and platform.
|
|
10048
10048
|
*
|
|
10049
|
-
* **Meta ads refusals.** The ones customers hit most come back with their own `code` instead of `platform_api_error`, the field to fix in `param`, and `details.fix` ({ label, url })
|
|
10050
|
-
*
|
|
10051
|
-
*
|
|
10052
|
-
*
|
|
10053
|
-
* - `
|
|
10054
|
-
* - `
|
|
10055
|
-
* - `
|
|
10056
|
-
* - `
|
|
10049
|
+
* **Meta ads refusals.** The ones customers hit most come back with their own `code` instead of `platform_api_error`, the field to fix in `param`, and an English `details.hint` saying how to fix it. `details.fix` ({ label, url }) links the Meta page that resolves it, when there is one.
|
|
10050
|
+
*
|
|
10051
|
+
* The code is picked from Meta's numeric `code` and `error_subcode`, never from the message, so it is the same whatever language Meta wrote `error_user_msg` in. Branch on `code` and show `details.hint`.
|
|
10052
|
+
*
|
|
10053
|
+
* - `ad_account_payment_required`: the ad account has no usable payment method (subcode 1815010, 1359188).
|
|
10054
|
+
* - `ad_account_policy_not_accepted`: a business admin has to accept Meta's non-discrimination policy (subcode 2859002, 2859024).
|
|
10055
|
+
* - `lead_ads_terms_not_accepted`: the Facebook Page has not accepted the Lead Ads terms (subcode 1815089).
|
|
10056
|
+
* - `verified_advertiser_required`: the market requires a verified beneficiary and payer; send `regionalRegulationIdentities` (subcode 3858634, 3858636, 3858442, 3858548, 3858495).
|
|
10057
|
+
* - `ad_account_unusable`: the ad account is not active, or the business is restricted from advertising (subcode 1885316, 2446325, and 2490592, 4841021 below).
|
|
10058
|
+
* - `meta_security_check_required`: the Facebook user behind the connection is held at a security check (code 31).
|
|
10059
|
+
* - `meta_action_blocked`: Meta temporarily blocked the Facebook user from this action (subcode 2859015).
|
|
10060
|
+
* - `meta_ad_consent_required`: the Page or Instagram owner chose Meta without ads or less personalized ads (subcode 3858231, 3858412).
|
|
10061
|
+
* - `instagram_account_restricted`: Meta restricted the Instagram account the ad runs as (subcode 2207070).
|
|
10062
|
+
* - `insufficient_permissions`: the ad account cannot use the Instagram account, or the Facebook user has no advertiser permission on the Page (subcode 1815199, 1815202, 1885499, 1341012, and the Advertise permission case below).
|
|
10063
|
+
* - `whatsapp_number_not_linked`: the WhatsApp number is no longer linked to the Page (subcode 2446880).
|
|
10064
|
+
* - `invalid_targeting`: Meta refused the audience or a placement (subcode 1487079, 1870247, 2909035, 1870189, 1870188, 1487756, 1487843, 2490562).
|
|
10065
|
+
* - `post_not_boostable`: Meta does not allow the post to be promoted (subcode 2446187, 2875030, 1487472).
|
|
10066
|
+
* - `budget_too_low`: the budget is below Meta's minimum, which `platformError.error_user_msg` states (subcode 1885272).
|
|
10067
|
+
* - `meta_object_not_accessible`: Meta cannot load an object the request names (wrong ID, deleted, or no access); `platformError.message` names the ID (subcode 33, on ads routes only).
|
|
10057
10068
|
*
|
|
10058
10069
|
* Meta's own error stays in the message and in `platformError`.
|
|
10059
10070
|
*
|
|
@@ -57075,7 +57086,7 @@ type BoostPostData = {
|
|
|
57075
57086
|
body: {
|
|
57076
57087
|
creativeFeatures?: MetaCreativeFeatures;
|
|
57077
57088
|
/**
|
|
57078
|
-
* Zernio post
|
|
57089
|
+
* The Zernio post id (24 hex characters) returned when the post was created through Zernio. Send this or platformPostId. A value that is not a Zernio id is boosted as the platform post id, the same as platformPostId; a Zernio id that matches no post is a 404 on postId.
|
|
57079
57090
|
*/
|
|
57080
57091
|
postId?: string;
|
|
57081
57092
|
/**
|
|
@@ -57089,7 +57100,7 @@ type BoostPostData = {
|
|
|
57089
57100
|
/**
|
|
57090
57101
|
* Zernio account id. Normally the connected posting account (facebook, instagram, tiktok, linkedin, pinterest, twitter), a googleads account or a redditads account.
|
|
57091
57102
|
*
|
|
57092
|
-
* TikTok: the TikTok Ads connection (platform tiktokads) is also accepted when the post brings its own authorization (sparkAuthCode or sparkPosts), so Spark ads need no organic TikTok account connected. Such a call
|
|
57103
|
+
* TikTok: the TikTok Ads connection (platform tiktokads) is also accepted when the post brings its own authorization (sparkAuthCode or sparkPosts), so Spark ads need no organic TikTok account connected. Such a call cannot use a Zernio postId: send the TikTok item id (as platformPostId, or in postId).
|
|
57093
57104
|
*/
|
|
57094
57105
|
accountId: string;
|
|
57095
57106
|
/**
|
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.1436",
|
|
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.1436",
|
|
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
|
@@ -8111,14 +8111,25 @@ export type ErrorResponse = {
|
|
|
8111
8111
|
/**
|
|
8112
8112
|
* Additional structured context for the error (for example field-level validation errors). What it carries depends on the endpoint and platform.
|
|
8113
8113
|
*
|
|
8114
|
-
* **Meta ads refusals.** The ones customers hit most come back with their own `code` instead of `platform_api_error`, the field to fix in `param`, and `details.fix` ({ label, url })
|
|
8115
|
-
*
|
|
8116
|
-
*
|
|
8117
|
-
*
|
|
8118
|
-
* - `
|
|
8119
|
-
* - `
|
|
8120
|
-
* - `
|
|
8121
|
-
* - `
|
|
8114
|
+
* **Meta ads refusals.** The ones customers hit most come back with their own `code` instead of `platform_api_error`, the field to fix in `param`, and an English `details.hint` saying how to fix it. `details.fix` ({ label, url }) links the Meta page that resolves it, when there is one.
|
|
8115
|
+
*
|
|
8116
|
+
* The code is picked from Meta's numeric `code` and `error_subcode`, never from the message, so it is the same whatever language Meta wrote `error_user_msg` in. Branch on `code` and show `details.hint`.
|
|
8117
|
+
*
|
|
8118
|
+
* - `ad_account_payment_required`: the ad account has no usable payment method (subcode 1815010, 1359188).
|
|
8119
|
+
* - `ad_account_policy_not_accepted`: a business admin has to accept Meta's non-discrimination policy (subcode 2859002, 2859024).
|
|
8120
|
+
* - `lead_ads_terms_not_accepted`: the Facebook Page has not accepted the Lead Ads terms (subcode 1815089).
|
|
8121
|
+
* - `verified_advertiser_required`: the market requires a verified beneficiary and payer; send `regionalRegulationIdentities` (subcode 3858634, 3858636, 3858442, 3858548, 3858495).
|
|
8122
|
+
* - `ad_account_unusable`: the ad account is not active, or the business is restricted from advertising (subcode 1885316, 2446325, and 2490592, 4841021 below).
|
|
8123
|
+
* - `meta_security_check_required`: the Facebook user behind the connection is held at a security check (code 31).
|
|
8124
|
+
* - `meta_action_blocked`: Meta temporarily blocked the Facebook user from this action (subcode 2859015).
|
|
8125
|
+
* - `meta_ad_consent_required`: the Page or Instagram owner chose Meta without ads or less personalized ads (subcode 3858231, 3858412).
|
|
8126
|
+
* - `instagram_account_restricted`: Meta restricted the Instagram account the ad runs as (subcode 2207070).
|
|
8127
|
+
* - `insufficient_permissions`: the ad account cannot use the Instagram account, or the Facebook user has no advertiser permission on the Page (subcode 1815199, 1815202, 1885499, 1341012, and the Advertise permission case below).
|
|
8128
|
+
* - `whatsapp_number_not_linked`: the WhatsApp number is no longer linked to the Page (subcode 2446880).
|
|
8129
|
+
* - `invalid_targeting`: Meta refused the audience or a placement (subcode 1487079, 1870247, 2909035, 1870189, 1870188, 1487756, 1487843, 2490562).
|
|
8130
|
+
* - `post_not_boostable`: Meta does not allow the post to be promoted (subcode 2446187, 2875030, 1487472).
|
|
8131
|
+
* - `budget_too_low`: the budget is below Meta's minimum, which `platformError.error_user_msg` states (subcode 1885272).
|
|
8132
|
+
* - `meta_object_not_accessible`: Meta cannot load an object the request names (wrong ID, deleted, or no access); `platformError.message` names the ID (subcode 33, on ads routes only).
|
|
8122
8133
|
*
|
|
8123
8134
|
* Meta's own error stays in the message and in `platformError`.
|
|
8124
8135
|
*
|
|
@@ -58244,7 +58255,7 @@ export type BoostPostData = {
|
|
|
58244
58255
|
body: {
|
|
58245
58256
|
creativeFeatures?: MetaCreativeFeatures;
|
|
58246
58257
|
/**
|
|
58247
|
-
* Zernio post
|
|
58258
|
+
* The Zernio post id (24 hex characters) returned when the post was created through Zernio. Send this or platformPostId. A value that is not a Zernio id is boosted as the platform post id, the same as platformPostId; a Zernio id that matches no post is a 404 on postId.
|
|
58248
58259
|
*/
|
|
58249
58260
|
postId?: string;
|
|
58250
58261
|
/**
|
|
@@ -58258,7 +58269,7 @@ export type BoostPostData = {
|
|
|
58258
58269
|
/**
|
|
58259
58270
|
* Zernio account id. Normally the connected posting account (facebook, instagram, tiktok, linkedin, pinterest, twitter), a googleads account or a redditads account.
|
|
58260
58271
|
*
|
|
58261
|
-
* TikTok: the TikTok Ads connection (platform tiktokads) is also accepted when the post brings its own authorization (sparkAuthCode or sparkPosts), so Spark ads need no organic TikTok account connected. Such a call
|
|
58272
|
+
* TikTok: the TikTok Ads connection (platform tiktokads) is also accepted when the post brings its own authorization (sparkAuthCode or sparkPosts), so Spark ads need no organic TikTok account connected. Such a call cannot use a Zernio postId: send the TikTok item id (as platformPostId, or in postId).
|
|
58262
58273
|
*/
|
|
58263
58274
|
accountId: string;
|
|
58264
58275
|
/**
|