@getlatedev/node 0.2.1752 → 0.2.1754

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
@@ -5628,6 +5628,10 @@ type AdsTimelineResponse = {
5628
5628
  * An account whose ad accounts bill in different currencies gets one row per currency for that day, never a sum across currencies.
5629
5629
  */
5630
5630
  currency?: (string) | null;
5631
+ /**
5632
+ * Only with `breakdown=adAccount`. The platform ad account of this row (e.g. Meta `act_…`); null for rows ingested before 2026-05-13. Added 2026-11-23.
5633
+ */
5634
+ adAccountId?: (string) | null;
5631
5635
  /**
5632
5636
  * Native currency units (matches /ads/tree convention), in `currency`.
5633
5637
  */
@@ -61574,6 +61578,10 @@ type DeleteSipTrunkData = {
61574
61578
  };
61575
61579
  type DeleteSipTrunkResponse = ({
61576
61580
  deleted?: boolean;
61581
+ /**
61582
+ * Numbers (E.164) that were attached to the trunk and are now detached.
61583
+ */
61584
+ detachedNumbers?: Array<(string)>;
61577
61585
  });
61578
61586
  type DeleteSipTrunkError = (ErrorResponse | unknown);
61579
61587
  type RotateSipTrunkCredentialsData = {
@@ -69272,6 +69280,10 @@ type GetAdsTimelineData = {
69272
69280
  * Optional platform-native ad account ID (e.g. Meta `act_…`, TikTok advertiser ID). Use when the connection wraps multiple platform ad accounts and the chart should show one only. Note: rows ingested before 2026-05-13 don't carry this column; the recurring 7-day re-sync repopulates them naturally.
69273
69281
  */
69274
69282
  adAccountId?: string;
69283
+ /**
69284
+ * Set to `adAccount` to keep one row per day and platform ad account, each carrying its `adAccountId`, instead of one row per day and currency. Two connections that reach the same ad account both return it: add their timelines per `adAccountId` to count it once.
69285
+ */
69286
+ breakdown?: 'adAccount';
69275
69287
  /**
69276
69288
  * Set to `previous` to also return `previousRows` for the period of the same length that ends the day before `fromDate`, with that period as `previousRange`. Needs a `fromDate` (sent or defaulted); `toDate` alone answers 400.
69277
69289
  */
package/dist/index.d.ts CHANGED
@@ -5628,6 +5628,10 @@ type AdsTimelineResponse = {
5628
5628
  * An account whose ad accounts bill in different currencies gets one row per currency for that day, never a sum across currencies.
5629
5629
  */
5630
5630
  currency?: (string) | null;
5631
+ /**
5632
+ * Only with `breakdown=adAccount`. The platform ad account of this row (e.g. Meta `act_…`); null for rows ingested before 2026-05-13. Added 2026-11-23.
5633
+ */
5634
+ adAccountId?: (string) | null;
5631
5635
  /**
5632
5636
  * Native currency units (matches /ads/tree convention), in `currency`.
5633
5637
  */
@@ -61574,6 +61578,10 @@ type DeleteSipTrunkData = {
61574
61578
  };
61575
61579
  type DeleteSipTrunkResponse = ({
61576
61580
  deleted?: boolean;
61581
+ /**
61582
+ * Numbers (E.164) that were attached to the trunk and are now detached.
61583
+ */
61584
+ detachedNumbers?: Array<(string)>;
61577
61585
  });
61578
61586
  type DeleteSipTrunkError = (ErrorResponse | unknown);
61579
61587
  type RotateSipTrunkCredentialsData = {
@@ -69272,6 +69280,10 @@ type GetAdsTimelineData = {
69272
69280
  * Optional platform-native ad account ID (e.g. Meta `act_…`, TikTok advertiser ID). Use when the connection wraps multiple platform ad accounts and the chart should show one only. Note: rows ingested before 2026-05-13 don't carry this column; the recurring 7-day re-sync repopulates them naturally.
69273
69281
  */
69274
69282
  adAccountId?: string;
69283
+ /**
69284
+ * Set to `adAccount` to keep one row per day and platform ad account, each carrying its `adAccountId`, instead of one row per day and currency. Two connections that reach the same ad account both return it: add their timelines per `adAccountId` to count it once.
69285
+ */
69286
+ breakdown?: 'adAccount';
69275
69287
  /**
69276
69288
  * Set to `previous` to also return `previousRows` for the period of the same length that ends the day before `fromDate`, with that period as `previousRange`. Needs a `fromDate` (sent or defaulted); `toDate` alone answers 400.
69277
69289
  */
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.1752",
39
+ version: "0.2.1754",
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.1752",
8
+ version: "0.2.1754",
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.1752",
3
+ "version": "0.2.1754",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -12859,8 +12859,9 @@ export const getSipTrunk = <ThrowOnError extends boolean = false>(options: Optio
12859
12859
 
12860
12860
  /**
12861
12861
  * Delete a SIP trunk
12862
- * Tears down the trunk and its carrier-side objects. Refused while any
12863
- * number is still attached: detach them first.
12862
+ * Detaches every number still attached to the trunk (their inbound calls
12863
+ * go back to Zernio calling), then tears down the trunk and its
12864
+ * carrier-side objects. Its credentials stop working immediately.
12864
12865
  *
12865
12866
  */
12866
12867
  export const deleteSipTrunk = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteSipTrunkData, ThrowOnError>) => {
@@ -3099,6 +3099,10 @@ export type AdsTimelineResponse = {
3099
3099
  * An account whose ad accounts bill in different currencies gets one row per currency for that day, never a sum across currencies.
3100
3100
  */
3101
3101
  currency?: (string) | null;
3102
+ /**
3103
+ * Only with `breakdown=adAccount`. The platform ad account of this row (e.g. Meta `act_…`); null for rows ingested before 2026-05-13. Added 2026-11-23.
3104
+ */
3105
+ adAccountId?: (string) | null;
3102
3106
  /**
3103
3107
  * Native currency units (matches /ads/tree convention), in `currency`.
3104
3108
  */
@@ -62385,6 +62389,10 @@ export type DeleteSipTrunkData = {
62385
62389
 
62386
62390
  export type DeleteSipTrunkResponse = ({
62387
62391
  deleted?: boolean;
62392
+ /**
62393
+ * Numbers (E.164) that were attached to the trunk and are now detached.
62394
+ */
62395
+ detachedNumbers?: Array<(string)>;
62388
62396
  });
62389
62397
 
62390
62398
  export type DeleteSipTrunkError = (ErrorResponse | unknown);
@@ -70689,6 +70697,10 @@ export type GetAdsTimelineData = {
70689
70697
  * Optional platform-native ad account ID (e.g. Meta `act_…`, TikTok advertiser ID). Use when the connection wraps multiple platform ad accounts and the chart should show one only. Note: rows ingested before 2026-05-13 don't carry this column; the recurring 7-day re-sync repopulates them naturally.
70690
70698
  */
70691
70699
  adAccountId?: string;
70700
+ /**
70701
+ * Set to `adAccount` to keep one row per day and platform ad account, each carrying its `adAccountId`, instead of one row per day and currency. Two connections that reach the same ad account both return it: add their timelines per `adAccountId` to count it once.
70702
+ */
70703
+ breakdown?: 'adAccount';
70692
70704
  /**
70693
70705
  * Set to `previous` to also return `previousRows` for the period of the same length that ends the day before `fromDate`, with that period as `previousRange`. Needs a `fromDate` (sent or defaulted); `toDate` alone answers 400.
70694
70706
  */