@zernio/node 0.2.1507 → 0.2.1508
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 +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +13 -3
package/dist/index.d.mts
CHANGED
|
@@ -10555,7 +10555,7 @@ type ErrorResponse = {
|
|
|
10555
10555
|
* **Failed Meta ad create** (`POST /v1/ads/create`, `POST /v1/ads/boost`, `POST /v1/ads/ctwa`). Carries `stage` (where it failed), `adAccountId` (on which ad account) and `createdObjects` (every object this request had already created, with what cleanup did to it).
|
|
10556
10556
|
*
|
|
10557
10557
|
* - `left_behind` objects still exist on the ad account (Meta refused the delete, typically on a held account, or the delete hit a network error). Delete them yourself or reuse them.
|
|
10558
|
-
* - `unconfirmedWrite` is set when Meta answered a create with a 5xx or dropped the connection and Zernio could not confirm whether the object exists. Check that parent before creating it again.
|
|
10558
|
+
* - `unconfirmedWrite` is set when Meta answered a create with a 5xx or a non-JSON body, or dropped the connection, and Zernio could not confirm whether the object exists. Check that parent before creating it again.
|
|
10559
10559
|
*
|
|
10560
10560
|
* **Ineligible ad account: 422 `ad_account_unusable`.** When Meta refuses a write because the ad account's status is ineligible to manage ads (Meta subcode 2490592 or 4841021, on the write itself or on a cleanup delete), any Meta ads write answers it.
|
|
10561
10561
|
*
|
|
@@ -10602,12 +10602,22 @@ type ErrorResponse = {
|
|
|
10602
10602
|
*/
|
|
10603
10603
|
id?: string;
|
|
10604
10604
|
/**
|
|
10605
|
-
* `deleted`: Zernio deleted it.
|
|
10605
|
+
* - `deleted`: Zernio deleted it.
|
|
10606
|
+
* - `left_behind`: cleanup could not delete it (Meta refused the delete, or the delete hit a network error), so it still exists.
|
|
10607
|
+
* - `kept`: deliberately not deleted. Either an image (hashes are shared by every upload of the same file), or an object Zernio found by name after Meta lost its answer to the create, which may belong to another request with the same name.
|
|
10608
|
+
*
|
|
10606
10609
|
*/
|
|
10607
10610
|
cleanup?: 'deleted' | 'left_behind' | 'kept';
|
|
10608
10611
|
}>;
|
|
10609
10612
|
/**
|
|
10610
|
-
* Meta ad create failures only
|
|
10613
|
+
* Meta ad create failures only. Set when Meta answered a create with a 5xx or a non-JSON body, or dropped the connection after the request was sent, and reading the parent back by name did not settle it. Zernio did not retry it.
|
|
10614
|
+
*
|
|
10615
|
+
* One of these left it open:
|
|
10616
|
+
*
|
|
10617
|
+
* - The read-back found several objects of the same name.
|
|
10618
|
+
* - The parent could not be read, or the object is a creative, which has no reliable read-back.
|
|
10619
|
+
* - The read-back found no such object, after a dropped connection, a non-JSON body, a 5xx with `retryOnServerError: false`, or a 5xx on a create whose own body is `status: ACTIVE`.
|
|
10620
|
+
*
|
|
10611
10621
|
*/
|
|
10612
10622
|
unconfirmedWrite?: {
|
|
10613
10623
|
type?: 'campaign' | 'adset' | 'creative' | 'ad';
|
package/dist/index.d.ts
CHANGED
|
@@ -10555,7 +10555,7 @@ type ErrorResponse = {
|
|
|
10555
10555
|
* **Failed Meta ad create** (`POST /v1/ads/create`, `POST /v1/ads/boost`, `POST /v1/ads/ctwa`). Carries `stage` (where it failed), `adAccountId` (on which ad account) and `createdObjects` (every object this request had already created, with what cleanup did to it).
|
|
10556
10556
|
*
|
|
10557
10557
|
* - `left_behind` objects still exist on the ad account (Meta refused the delete, typically on a held account, or the delete hit a network error). Delete them yourself or reuse them.
|
|
10558
|
-
* - `unconfirmedWrite` is set when Meta answered a create with a 5xx or dropped the connection and Zernio could not confirm whether the object exists. Check that parent before creating it again.
|
|
10558
|
+
* - `unconfirmedWrite` is set when Meta answered a create with a 5xx or a non-JSON body, or dropped the connection, and Zernio could not confirm whether the object exists. Check that parent before creating it again.
|
|
10559
10559
|
*
|
|
10560
10560
|
* **Ineligible ad account: 422 `ad_account_unusable`.** When Meta refuses a write because the ad account's status is ineligible to manage ads (Meta subcode 2490592 or 4841021, on the write itself or on a cleanup delete), any Meta ads write answers it.
|
|
10561
10561
|
*
|
|
@@ -10602,12 +10602,22 @@ type ErrorResponse = {
|
|
|
10602
10602
|
*/
|
|
10603
10603
|
id?: string;
|
|
10604
10604
|
/**
|
|
10605
|
-
* `deleted`: Zernio deleted it.
|
|
10605
|
+
* - `deleted`: Zernio deleted it.
|
|
10606
|
+
* - `left_behind`: cleanup could not delete it (Meta refused the delete, or the delete hit a network error), so it still exists.
|
|
10607
|
+
* - `kept`: deliberately not deleted. Either an image (hashes are shared by every upload of the same file), or an object Zernio found by name after Meta lost its answer to the create, which may belong to another request with the same name.
|
|
10608
|
+
*
|
|
10606
10609
|
*/
|
|
10607
10610
|
cleanup?: 'deleted' | 'left_behind' | 'kept';
|
|
10608
10611
|
}>;
|
|
10609
10612
|
/**
|
|
10610
|
-
* Meta ad create failures only
|
|
10613
|
+
* Meta ad create failures only. Set when Meta answered a create with a 5xx or a non-JSON body, or dropped the connection after the request was sent, and reading the parent back by name did not settle it. Zernio did not retry it.
|
|
10614
|
+
*
|
|
10615
|
+
* One of these left it open:
|
|
10616
|
+
*
|
|
10617
|
+
* - The read-back found several objects of the same name.
|
|
10618
|
+
* - The parent could not be read, or the object is a creative, which has no reliable read-back.
|
|
10619
|
+
* - The read-back found no such object, after a dropped connection, a non-JSON body, a 5xx with `retryOnServerError: false`, or a 5xx on a create whose own body is `status: ACTIVE`.
|
|
10620
|
+
*
|
|
10611
10621
|
*/
|
|
10612
10622
|
unconfirmedWrite?: {
|
|
10613
10623
|
type?: 'campaign' | 'adset' | 'creative' | 'ad';
|
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: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1508",
|
|
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: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1508",
|
|
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
|
@@ -8610,7 +8610,7 @@ export type ErrorResponse = {
|
|
|
8610
8610
|
* **Failed Meta ad create** (`POST /v1/ads/create`, `POST /v1/ads/boost`, `POST /v1/ads/ctwa`). Carries `stage` (where it failed), `adAccountId` (on which ad account) and `createdObjects` (every object this request had already created, with what cleanup did to it).
|
|
8611
8611
|
*
|
|
8612
8612
|
* - `left_behind` objects still exist on the ad account (Meta refused the delete, typically on a held account, or the delete hit a network error). Delete them yourself or reuse them.
|
|
8613
|
-
* - `unconfirmedWrite` is set when Meta answered a create with a 5xx or dropped the connection and Zernio could not confirm whether the object exists. Check that parent before creating it again.
|
|
8613
|
+
* - `unconfirmedWrite` is set when Meta answered a create with a 5xx or a non-JSON body, or dropped the connection, and Zernio could not confirm whether the object exists. Check that parent before creating it again.
|
|
8614
8614
|
*
|
|
8615
8615
|
* **Ineligible ad account: 422 `ad_account_unusable`.** When Meta refuses a write because the ad account's status is ineligible to manage ads (Meta subcode 2490592 or 4841021, on the write itself or on a cleanup delete), any Meta ads write answers it.
|
|
8616
8616
|
*
|
|
@@ -8657,12 +8657,22 @@ export type ErrorResponse = {
|
|
|
8657
8657
|
*/
|
|
8658
8658
|
id?: string;
|
|
8659
8659
|
/**
|
|
8660
|
-
* `deleted`: Zernio deleted it.
|
|
8660
|
+
* - `deleted`: Zernio deleted it.
|
|
8661
|
+
* - `left_behind`: cleanup could not delete it (Meta refused the delete, or the delete hit a network error), so it still exists.
|
|
8662
|
+
* - `kept`: deliberately not deleted. Either an image (hashes are shared by every upload of the same file), or an object Zernio found by name after Meta lost its answer to the create, which may belong to another request with the same name.
|
|
8663
|
+
*
|
|
8661
8664
|
*/
|
|
8662
8665
|
cleanup?: 'deleted' | 'left_behind' | 'kept';
|
|
8663
8666
|
}>;
|
|
8664
8667
|
/**
|
|
8665
|
-
* Meta ad create failures only
|
|
8668
|
+
* Meta ad create failures only. Set when Meta answered a create with a 5xx or a non-JSON body, or dropped the connection after the request was sent, and reading the parent back by name did not settle it. Zernio did not retry it.
|
|
8669
|
+
*
|
|
8670
|
+
* One of these left it open:
|
|
8671
|
+
*
|
|
8672
|
+
* - The read-back found several objects of the same name.
|
|
8673
|
+
* - The parent could not be read, or the object is a creative, which has no reliable read-back.
|
|
8674
|
+
* - The read-back found no such object, after a dropped connection, a non-JSON body, a 5xx with `retryOnServerError: false`, or a 5xx on a create whose own body is `status: ACTIVE`.
|
|
8675
|
+
*
|
|
8666
8676
|
*/
|
|
8667
8677
|
unconfirmedWrite?: {
|
|
8668
8678
|
type?: 'campaign' | 'adset' | 'creative' | 'ad';
|