@zernio/node 0.2.1509 → 0.2.1510

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
@@ -52141,9 +52141,9 @@ type ListAdCampaignsData = {
52141
52141
  */
52142
52142
  source?: 'zernio' | 'all';
52143
52143
  /**
52144
- * Filter by derived campaign status (post-aggregation)
52144
+ * Filter by derived campaign status (post-aggregation). `not_deleted` keeps every status except `cancelled`.
52145
52145
  */
52146
- status?: AdStatus;
52146
+ status?: (AdStatus | 'not_deleted');
52147
52147
  /**
52148
52148
  * End of metrics date range (YYYY-MM-DD, inclusive). Defaults to today. Max 730-day range.
52149
52149
  */
@@ -54052,9 +54052,9 @@ type GetAdTreeData = {
54052
54052
  */
54053
54053
  source?: 'zernio' | 'all';
54054
54054
  /**
54055
- * Filter by derived campaign status (post-aggregation)
54055
+ * Filter by derived campaign status (post-aggregation). `not_deleted` keeps every status except `cancelled`.
54056
54056
  */
54057
- status?: AdStatus;
54057
+ status?: (AdStatus | 'not_deleted');
54058
54058
  /**
54059
54059
  * Set to `1` to also return a daily breakdown (mirrors Meta Insights' `time_increment=1`). Only `1` (daily) is supported. See `dailyLevel` to control which levels carry it.
54060
54060
  *
package/dist/index.d.ts CHANGED
@@ -52141,9 +52141,9 @@ type ListAdCampaignsData = {
52141
52141
  */
52142
52142
  source?: 'zernio' | 'all';
52143
52143
  /**
52144
- * Filter by derived campaign status (post-aggregation)
52144
+ * Filter by derived campaign status (post-aggregation). `not_deleted` keeps every status except `cancelled`.
52145
52145
  */
52146
- status?: AdStatus;
52146
+ status?: (AdStatus | 'not_deleted');
52147
52147
  /**
52148
52148
  * End of metrics date range (YYYY-MM-DD, inclusive). Defaults to today. Max 730-day range.
52149
52149
  */
@@ -54052,9 +54052,9 @@ type GetAdTreeData = {
54052
54052
  */
54053
54053
  source?: 'zernio' | 'all';
54054
54054
  /**
54055
- * Filter by derived campaign status (post-aggregation)
54055
+ * Filter by derived campaign status (post-aggregation). `not_deleted` keeps every status except `cancelled`.
54056
54056
  */
54057
- status?: AdStatus;
54057
+ status?: (AdStatus | 'not_deleted');
54058
54058
  /**
54059
54059
  * Set to `1` to also return a daily breakdown (mirrors Meta Insights' `time_increment=1`). Only `1` (daily) is supported. See `dailyLevel` to control which levels carry it.
54060
54060
  *
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.1509",
39
+ version: "0.2.1510",
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.1509",
8
+ version: "0.2.1510",
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": "@zernio/node",
3
- "version": "0.2.1509",
3
+ "version": "0.2.1510",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13691,7 +13691,7 @@ export const updateAdSetStatus = <ThrowOnError extends boolean = false>(options:
13691
13691
  *
13692
13692
  * Deleting an ad or a campaign is a soft delete: the Ad documents move to `status: cancelled` and are kept indefinitely. Their historical spend still counts toward the metrics of any date range they fall in. There is no pruning job and no retention window.
13693
13693
  *
13694
- * Filter on `status` if your view should hide them, but do that after reading the totals, not before.
13694
+ * Pass `status=not_deleted` if your view should hide them, but do that after reading the totals, not before.
13695
13695
  *
13696
13696
  */
13697
13697
  export const getAdTree = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetAdTreeData, ThrowOnError>) => {
@@ -52938,9 +52938,9 @@ export type ListAdCampaignsData = {
52938
52938
  */
52939
52939
  source?: 'zernio' | 'all';
52940
52940
  /**
52941
- * Filter by derived campaign status (post-aggregation)
52941
+ * Filter by derived campaign status (post-aggregation). `not_deleted` keeps every status except `cancelled`.
52942
52942
  */
52943
- status?: AdStatus;
52943
+ status?: (AdStatus | 'not_deleted');
52944
52944
  /**
52945
52945
  * End of metrics date range (YYYY-MM-DD, inclusive). Defaults to today. Max 730-day range.
52946
52946
  */
@@ -54921,9 +54921,9 @@ export type GetAdTreeData = {
54921
54921
  */
54922
54922
  source?: 'zernio' | 'all';
54923
54923
  /**
54924
- * Filter by derived campaign status (post-aggregation)
54924
+ * Filter by derived campaign status (post-aggregation). `not_deleted` keeps every status except `cancelled`.
54925
54925
  */
54926
- status?: AdStatus;
54926
+ status?: (AdStatus | 'not_deleted');
54927
54927
  /**
54928
54928
  * Set to `1` to also return a daily breakdown (mirrors Meta Insights' `time_increment=1`). Only `1` (daily) is supported. See `dailyLevel` to control which levels carry it.
54929
54929
  *