@getlatedev/node 0.2.1452 → 0.2.1454

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 CHANGED
@@ -50441,6 +50441,10 @@ type GetCampaignResultsUploadResponse = ({
50441
50441
  campaign?: string;
50442
50442
  reason?: 'no_campaign' | 'ambiguous';
50443
50443
  }>;
50444
+ /**
50445
+ * Set when `status` is `failed`. `queue_unavailable`: the upload could not be queued. `processing_failed`: its rows could not be stored after several retries. Both are on our side.
50446
+ */
50447
+ failureReason: ('queue_unavailable' | 'processing_failed') | null;
50444
50448
  createdAt: string;
50445
50449
  completedAt: (string) | null;
50446
50450
  });
package/dist/index.d.ts CHANGED
@@ -50441,6 +50441,10 @@ type GetCampaignResultsUploadResponse = ({
50441
50441
  campaign?: string;
50442
50442
  reason?: 'no_campaign' | 'ambiguous';
50443
50443
  }>;
50444
+ /**
50445
+ * Set when `status` is `failed`. `queue_unavailable`: the upload could not be queued. `processing_failed`: its rows could not be stored after several retries. Both are on our side.
50446
+ */
50447
+ failureReason: ('queue_unavailable' | 'processing_failed') | null;
50444
50448
  createdAt: string;
50445
50449
  completedAt: (string) | null;
50446
50450
  });
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.1452",
39
+ version: "0.2.1454",
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.1452",
8
+ version: "0.2.1454",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1452",
3
+ "version": "0.2.1454",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -11896,7 +11896,7 @@ export const listCommentAutomations = <ThrowOnError extends boolean = false>(opt
11896
11896
  *
11897
11897
  * The DM fields are rejected with a 400 naming the field: `dmMessage`, `dmMessageVariations`, `buttons`, `template`, `quickReplies`, `alsoMatchInDms`, `audience`, `followGate`, `dmDelaySeconds`, `commentReplyDelaySeconds`.
11898
11898
  *
11899
- * TikTok comments arrive by webhook (TikTok business accounts only). The others are read by the comment poll, so a reply follows the comment by up to the poll interval (10 minutes on posts from the last 24 hours, longer on older posts).
11899
+ * TikTok comments (TikTok business accounts only) and Threads comments arrive by webhook, so the reply follows within seconds; Threads keeps the comment poll as a fallback. LinkedIn and YouTube are read by the comment poll, so a reply follows the comment by up to the poll interval (10 minutes on posts from the last 24 hours, longer on older posts).
11900
11900
  *
11901
11901
  * `repeatPolicy` applies there too: with the default `once`, a person gets one public reply per automation, and their later comments get none.
11902
11902
  *
@@ -12519,6 +12519,8 @@ export const listCampaignResults = <ThrowOnError extends boolean = false>(option
12519
12519
  *
12520
12520
  * `status` turns `done` once every row is processed, usually within seconds. Uploads are kept for 30 days.
12521
12521
  *
12522
+ * A `failed` upload says why in `failureReason`. Send it again: re-sending a day replaces it, so nothing is counted twice.
12523
+ *
12522
12524
  */
12523
12525
  export const getCampaignResultsUpload = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetCampaignResultsUploadData, ThrowOnError>) => {
12524
12526
  return (options?.client ?? client).get<GetCampaignResultsUploadResponse, GetCampaignResultsUploadError, ThrowOnError>({
@@ -51192,6 +51192,10 @@ export type GetCampaignResultsUploadResponse = ({
51192
51192
  campaign?: string;
51193
51193
  reason?: 'no_campaign' | 'ambiguous';
51194
51194
  }>;
51195
+ /**
51196
+ * Set when `status` is `failed`. `queue_unavailable`: the upload could not be queued. `processing_failed`: its rows could not be stored after several retries. Both are on our side.
51197
+ */
51198
+ failureReason: ('queue_unavailable' | 'processing_failed') | null;
51195
51199
  createdAt: string;
51196
51200
  completedAt: (string) | null;
51197
51201
  });