@getlatedev/node 0.2.1450 → 0.2.1451
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +12 -0
- package/src/generated/types.gen.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -50735,7 +50735,7 @@ type UpdateAdCampaignStatusResponse = ({
|
|
|
50735
50735
|
*/
|
|
50736
50736
|
skippedReasons?: Array<(string)>;
|
|
50737
50737
|
});
|
|
50738
|
-
type UpdateAdCampaignStatusError = (unknown
|
|
50738
|
+
type UpdateAdCampaignStatusError = (unknown);
|
|
50739
50739
|
type GetCampaignAdScheduleData = {
|
|
50740
50740
|
path: {
|
|
50741
50741
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -50735,7 +50735,7 @@ type UpdateAdCampaignStatusResponse = ({
|
|
|
50735
50735
|
*/
|
|
50736
50736
|
skippedReasons?: Array<(string)>;
|
|
50737
50737
|
});
|
|
50738
|
-
type UpdateAdCampaignStatusError = (unknown
|
|
50738
|
+
type UpdateAdCampaignStatusError = (unknown);
|
|
50739
50739
|
type GetCampaignAdScheduleData = {
|
|
50740
50740
|
path: {
|
|
50741
50741
|
/**
|
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.1451",
|
|
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.1451",
|
|
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
|
@@ -12671,6 +12671,18 @@ export const createAdCampaign = <ThrowOnError extends boolean = false>(options:
|
|
|
12671
12671
|
*
|
|
12672
12672
|
* On Meta the check reads the campaign's own `status`, so a delivery status such as `IN_PROCESS` or `WITH_ISSUES` does not force a write.
|
|
12673
12673
|
*
|
|
12674
|
+
* ### Retrying
|
|
12675
|
+
*
|
|
12676
|
+
* Retrying the same request is safe: when the first call already switched the campaign, the live read answers `skipped: 1` and nothing is written twice. A call that timed out on your side may still have completed, so retry it instead of assuming it failed.
|
|
12677
|
+
*
|
|
12678
|
+
* These errors fail the same way on every retry until something changes:
|
|
12679
|
+
*
|
|
12680
|
+
* - `401` `reconnect_required`: the platform no longer accepts the connection's token (on Meta, code 190: expired, revoked, password changed or security checkpoint). Reconnect the account, then retry.
|
|
12681
|
+
* - `422` `ad_account_unusable`: the ad account's status does not allow edits. Resolve it in the platform, then retry.
|
|
12682
|
+
* - `400` `platform_api_error` saying the campaign was deleted or archived (Meta subcodes 1487566 and 3858863): there is nothing left to switch.
|
|
12683
|
+
*
|
|
12684
|
+
* A Meta code 190 with subcode 464 means Meta considers the Facebook user unconfirmed. It answers `400` `platform_api_error` and retrying does not clear it: the user must log in to facebook.com and complete what Meta asks (usually confirming their email or phone), then retry.
|
|
12685
|
+
*
|
|
12674
12686
|
*/
|
|
12675
12687
|
export const updateAdCampaignStatus = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateAdCampaignStatusData, ThrowOnError>) => {
|
|
12676
12688
|
return (options?.client ?? client).put<UpdateAdCampaignStatusResponse, UpdateAdCampaignStatusError, ThrowOnError>({
|
|
@@ -51504,7 +51504,7 @@ export type UpdateAdCampaignStatusResponse = ({
|
|
|
51504
51504
|
skippedReasons?: Array<(string)>;
|
|
51505
51505
|
});
|
|
51506
51506
|
|
|
51507
|
-
export type UpdateAdCampaignStatusError = (unknown
|
|
51507
|
+
export type UpdateAdCampaignStatusError = (unknown);
|
|
51508
51508
|
|
|
51509
51509
|
export type GetCampaignAdScheduleData = {
|
|
51510
51510
|
path: {
|