@getlatedev/node 0.2.1817 → 0.2.1819

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
@@ -55169,6 +55169,9 @@ type ListInboxCommentsData = {
55169
55169
  *
55170
55170
  */
55171
55171
  accountId?: string;
55172
+ /**
55173
+ * Pass back `pagination.nextCursor` of the previous page unchanged, with the same `sortBy` and `sortOrder`.
55174
+ */
55172
55175
  cursor?: string;
55173
55176
  limit?: number;
55174
55177
  /**
@@ -70224,9 +70227,9 @@ type GetAdTreeData = {
70224
70227
  */
70225
70228
  search?: string;
70226
70229
  /**
70227
- * Campaign-level sort order. `newest` (default) / `oldest` order by the campaign's newest-ad createdAt. `spend_desc` / `spend_asc` order by aggregated spend in the requested date range; campaigns with no spend land at the end.
70230
+ * Campaign order. `newest` (default) / `oldest`: by the newest ad's createdAt. `spend_*`: by spend in the date range. `results_*` / `cost_per_result_*`: by results, or spend per result, for each campaign's objective (reach summed across its ads); no-result campaigns end a cost order.
70228
70231
  */
70229
- sort?: 'newest' | 'oldest' | 'spend_desc' | 'spend_asc';
70232
+ sort?: 'newest' | 'oldest' | 'spend_desc' | 'spend_asc' | 'results_desc' | 'results_asc' | 'cost_per_result_asc' | 'cost_per_result_desc';
70230
70233
  /**
70231
70234
  * `all` (default) returns both Zernio-created ads and those discovered from the platform's ad manager. Matches the web UI's default view. Pass `zernio` to restrict to isExternal=false only. Status is NOT filtered by default; use the `status` param for that.
70232
70235
  */
package/dist/index.d.ts CHANGED
@@ -55169,6 +55169,9 @@ type ListInboxCommentsData = {
55169
55169
  *
55170
55170
  */
55171
55171
  accountId?: string;
55172
+ /**
55173
+ * Pass back `pagination.nextCursor` of the previous page unchanged, with the same `sortBy` and `sortOrder`.
55174
+ */
55172
55175
  cursor?: string;
55173
55176
  limit?: number;
55174
55177
  /**
@@ -70224,9 +70227,9 @@ type GetAdTreeData = {
70224
70227
  */
70225
70228
  search?: string;
70226
70229
  /**
70227
- * Campaign-level sort order. `newest` (default) / `oldest` order by the campaign's newest-ad createdAt. `spend_desc` / `spend_asc` order by aggregated spend in the requested date range; campaigns with no spend land at the end.
70230
+ * Campaign order. `newest` (default) / `oldest`: by the newest ad's createdAt. `spend_*`: by spend in the date range. `results_*` / `cost_per_result_*`: by results, or spend per result, for each campaign's objective (reach summed across its ads); no-result campaigns end a cost order.
70228
70231
  */
70229
- sort?: 'newest' | 'oldest' | 'spend_desc' | 'spend_asc';
70232
+ sort?: 'newest' | 'oldest' | 'spend_desc' | 'spend_asc' | 'results_desc' | 'results_asc' | 'cost_per_result_asc' | 'cost_per_result_desc';
70230
70233
  /**
70231
70234
  * `all` (default) returns both Zernio-created ads and those discovered from the platform's ad manager. Matches the web UI's default view. Pass `zernio` to restrict to isExternal=false only. Status is NOT filtered by default; use the `status` param for that.
70232
70235
  */
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.1817",
39
+ version: "0.2.1819",
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.1817",
8
+ version: "0.2.1819",
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.1817",
3
+ "version": "0.2.1819",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9340,7 +9340,7 @@ export const getMessageAttachment = <ThrowOnError extends boolean = false>(optio
9340
9340
  *
9341
9341
  * Pagination walks each account's platform listing. Following `nextCursor` reaches past the first page on Facebook, Instagram, Threads, LinkedIn and YouTube, the platforms that support a server-side date window. On the others the listing stops at its first page.
9342
9342
  *
9343
- * Cursor pagination is only coherent for the default sort (`sortBy=date`, `sortOrder=desc`). With `sortOrder=asc`, or with `sortBy=comments`, the cursor filter does not match the sort order and the second page is unreliable.
9343
+ * With `sortOrder=asc` or `sortBy=comments`, the pages cover the newest posts of each account that the first page is drawn from, in the requested order; following `nextCursor` does not reach older posts.
9344
9344
  *
9345
9345
  * `minComments` is applied to each page after pagination. A page can hold fewer than `limit` posts, even none, while `hasMore` is true; keep following `nextCursor`.
9346
9346
  *
@@ -55401,6 +55401,9 @@ export type ListInboxCommentsData = {
55401
55401
  *
55402
55402
  */
55403
55403
  accountId?: string;
55404
+ /**
55405
+ * Pass back `pagination.nextCursor` of the previous page unchanged, with the same `sortBy` and `sortOrder`.
55406
+ */
55404
55407
  cursor?: string;
55405
55408
  limit?: number;
55406
55409
  /**
@@ -71682,9 +71685,9 @@ export type GetAdTreeData = {
71682
71685
  */
71683
71686
  search?: string;
71684
71687
  /**
71685
- * Campaign-level sort order. `newest` (default) / `oldest` order by the campaign's newest-ad createdAt. `spend_desc` / `spend_asc` order by aggregated spend in the requested date range; campaigns with no spend land at the end.
71688
+ * Campaign order. `newest` (default) / `oldest`: by the newest ad's createdAt. `spend_*`: by spend in the date range. `results_*` / `cost_per_result_*`: by results, or spend per result, for each campaign's objective (reach summed across its ads); no-result campaigns end a cost order.
71686
71689
  */
71687
- sort?: 'newest' | 'oldest' | 'spend_desc' | 'spend_asc';
71690
+ sort?: 'newest' | 'oldest' | 'spend_desc' | 'spend_asc' | 'results_desc' | 'results_asc' | 'cost_per_result_asc' | 'cost_per_result_desc';
71688
71691
  /**
71689
71692
  * `all` (default) returns both Zernio-created ads and those discovered from the platform's ad manager. Matches the web UI's default view. Pass `zernio` to restrict to isExternal=false only. Status is NOT filtered by default; use the `status` param for that.
71690
71693
  */