@zernio/node 0.2.1836 → 0.2.1838

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
@@ -67163,7 +67163,7 @@ type GetAutomationTestSampleError = (ErrorResponse | {
67163
67163
  error?: string;
67164
67164
  });
67165
67165
  type PreviewAutomationDraftData = {
67166
- body: AutomationDefinition;
67166
+ body: (AutomationDefinition | GraphAutomationDefinition);
67167
67167
  query?: {
67168
67168
  /**
67169
67169
  * How many subjects to list, matches first. `evaluated` and `matched` always count them all.
@@ -67619,7 +67619,7 @@ type RejectAutomationApprovalError = (ErrorResponse | {
67619
67619
  error?: string;
67620
67620
  });
67621
67621
  type BacktestAutomationDraftData = {
67622
- body: AutomationDefinition;
67622
+ body: (AutomationDefinition | GraphAutomationDefinition);
67623
67623
  query?: {
67624
67624
  /**
67625
67625
  * How many whole days before today to replay. Today is not replayed.
@@ -68478,7 +68478,7 @@ type UpdateAdCampaignStatusData = {
68478
68478
  status: 'active' | 'paused';
68479
68479
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
68480
68480
  /**
68481
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
68481
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
68482
68482
  */
68483
68483
  stage?: boolean;
68484
68484
  };
@@ -68714,7 +68714,7 @@ type GetAdCampaignDetailsError = (ErrorResponse | unknown);
68714
68714
  type UpdateAdCampaignData = {
68715
68715
  body: {
68716
68716
  /**
68717
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
68717
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
68718
68718
  */
68719
68719
  stage?: boolean;
68720
68720
  /**
@@ -69895,7 +69895,7 @@ type GetAdSetDetailsError = (unknown | ErrorResponse);
69895
69895
  type UpdateAdSetData = {
69896
69896
  body: {
69897
69897
  /**
69898
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
69898
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
69899
69899
  */
69900
69900
  stage?: boolean;
69901
69901
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'snapchat';
@@ -70294,7 +70294,7 @@ type UpdateAdSetStatusData = {
70294
70294
  status: 'active' | 'paused';
70295
70295
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
70296
70296
  /**
70297
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
70297
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
70298
70298
  */
70299
70299
  stage?: boolean;
70300
70300
  };
@@ -70690,7 +70690,7 @@ type GetAdError = (ErrorResponse | {
70690
70690
  type UpdateAdData = {
70691
70691
  body: {
70692
70692
  /**
70693
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
70693
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
70694
70694
  */
70695
70695
  stage?: boolean;
70696
70696
  /**
@@ -71000,7 +71000,7 @@ type UpdateAdStatusData = {
71000
71000
  body: {
71001
71001
  status: 'active' | 'paused';
71002
71002
  /**
71003
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
71003
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
71004
71004
  */
71005
71005
  stage?: boolean;
71006
71006
  };
package/dist/index.d.ts CHANGED
@@ -67163,7 +67163,7 @@ type GetAutomationTestSampleError = (ErrorResponse | {
67163
67163
  error?: string;
67164
67164
  });
67165
67165
  type PreviewAutomationDraftData = {
67166
- body: AutomationDefinition;
67166
+ body: (AutomationDefinition | GraphAutomationDefinition);
67167
67167
  query?: {
67168
67168
  /**
67169
67169
  * How many subjects to list, matches first. `evaluated` and `matched` always count them all.
@@ -67619,7 +67619,7 @@ type RejectAutomationApprovalError = (ErrorResponse | {
67619
67619
  error?: string;
67620
67620
  });
67621
67621
  type BacktestAutomationDraftData = {
67622
- body: AutomationDefinition;
67622
+ body: (AutomationDefinition | GraphAutomationDefinition);
67623
67623
  query?: {
67624
67624
  /**
67625
67625
  * How many whole days before today to replay. Today is not replayed.
@@ -68478,7 +68478,7 @@ type UpdateAdCampaignStatusData = {
68478
68478
  status: 'active' | 'paused';
68479
68479
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
68480
68480
  /**
68481
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
68481
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
68482
68482
  */
68483
68483
  stage?: boolean;
68484
68484
  };
@@ -68714,7 +68714,7 @@ type GetAdCampaignDetailsError = (ErrorResponse | unknown);
68714
68714
  type UpdateAdCampaignData = {
68715
68715
  body: {
68716
68716
  /**
68717
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
68717
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
68718
68718
  */
68719
68719
  stage?: boolean;
68720
68720
  /**
@@ -69895,7 +69895,7 @@ type GetAdSetDetailsError = (unknown | ErrorResponse);
69895
69895
  type UpdateAdSetData = {
69896
69896
  body: {
69897
69897
  /**
69898
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
69898
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
69899
69899
  */
69900
69900
  stage?: boolean;
69901
69901
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'snapchat';
@@ -70294,7 +70294,7 @@ type UpdateAdSetStatusData = {
70294
70294
  status: 'active' | 'paused';
70295
70295
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
70296
70296
  /**
70297
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
70297
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
70298
70298
  */
70299
70299
  stage?: boolean;
70300
70300
  };
@@ -70690,7 +70690,7 @@ type GetAdError = (ErrorResponse | {
70690
70690
  type UpdateAdData = {
70691
70691
  body: {
70692
70692
  /**
70693
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
70693
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
70694
70694
  */
70695
70695
  stage?: boolean;
70696
70696
  /**
@@ -71000,7 +71000,7 @@ type UpdateAdStatusData = {
71000
71000
  body: {
71001
71001
  status: 'active' | 'paused';
71002
71002
  /**
71003
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
71003
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
71004
71004
  */
71005
71005
  stage?: boolean;
71006
71006
  };
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.1836",
39
+ version: "0.2.1838",
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.1836",
8
+ version: "0.2.1838",
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.1836",
3
+ "version": "0.2.1838",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -15032,6 +15032,8 @@ export const getAutomationTestSample = <ThrowOnError extends boolean = false>(op
15032
15032
  *
15033
15033
  * Event and scheduled automations cannot be previewed yet (400, `not_supported`).
15034
15034
  *
15035
+ * The draft can instead be sent as `name` and an automation `graph` (`AutomationGraph`), previewed exactly as its own shape would be. A comment to DM or flow graph is refused (`not_supported`).
15036
+ *
15035
15037
  */
15036
15038
  export const previewAutomationDraft = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PreviewAutomationDraftData, ThrowOnError>) => {
15037
15039
  return (options?.client ?? client).post<PreviewAutomationDraftResponse, PreviewAutomationDraftError, ThrowOnError>({
@@ -15372,6 +15374,8 @@ export const rejectAutomationApproval = <ThrowOnError extends boolean = false>(o
15372
15374
  *
15373
15375
  * Only ad automations can be backtested, on at most 5,000 ads.
15374
15376
  *
15377
+ * The draft can instead be sent as `name` and an automation `graph` (`AutomationGraph`), replayed exactly as its own shape would be. A comment to DM or flow graph is refused (`not_supported`).
15378
+ *
15375
15379
  */
15376
15380
  export const backtestAutomationDraft = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<BacktestAutomationDraftData, ThrowOnError>) => {
15377
15381
  return (options?.client ?? client).post<BacktestAutomationDraftResponse, BacktestAutomationDraftError, ThrowOnError>({
@@ -68386,7 +68386,7 @@ export type GetAutomationTestSampleError = (ErrorResponse | {
68386
68386
  });
68387
68387
 
68388
68388
  export type PreviewAutomationDraftData = {
68389
- body: AutomationDefinition;
68389
+ body: (AutomationDefinition | GraphAutomationDefinition);
68390
68390
  query?: {
68391
68391
  /**
68392
68392
  * How many subjects to list, matches first. `evaluated` and `matched` always count them all.
@@ -68916,7 +68916,7 @@ export type RejectAutomationApprovalError = (ErrorResponse | {
68916
68916
  });
68917
68917
 
68918
68918
  export type BacktestAutomationDraftData = {
68919
- body: AutomationDefinition;
68919
+ body: (AutomationDefinition | GraphAutomationDefinition);
68920
68920
  query?: {
68921
68921
  /**
68922
68922
  * How many whole days before today to replay. Today is not replayed.
@@ -69869,7 +69869,7 @@ export type UpdateAdCampaignStatusData = {
69869
69869
  status: 'active' | 'paused';
69870
69870
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
69871
69871
  /**
69872
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
69872
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
69873
69873
  */
69874
69874
  stage?: boolean;
69875
69875
  };
@@ -70120,7 +70120,7 @@ export type GetAdCampaignDetailsError = (ErrorResponse | unknown);
70120
70120
  export type UpdateAdCampaignData = {
70121
70121
  body: {
70122
70122
  /**
70123
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
70123
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
70124
70124
  */
70125
70125
  stage?: boolean;
70126
70126
  /**
@@ -71343,7 +71343,7 @@ export type GetAdSetDetailsError = (unknown | ErrorResponse);
71343
71343
  export type UpdateAdSetData = {
71344
71344
  body: {
71345
71345
  /**
71346
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
71346
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
71347
71347
  */
71348
71348
  stage?: boolean;
71349
71349
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'snapchat';
@@ -71751,7 +71751,7 @@ export type UpdateAdSetStatusData = {
71751
71751
  status: 'active' | 'paused';
71752
71752
  platform: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit' | 'microsoft' | 'amazon' | 'tradedesk' | 'snapchat';
71753
71753
  /**
71754
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
71754
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
71755
71755
  */
71756
71756
  stage?: boolean;
71757
71757
  };
@@ -72162,7 +72162,7 @@ export type GetAdError = (ErrorResponse | {
72162
72162
  export type UpdateAdData = {
72163
72163
  body: {
72164
72164
  /**
72165
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
72165
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
72166
72166
  */
72167
72167
  stage?: boolean;
72168
72168
  /**
@@ -72478,7 +72478,7 @@ export type UpdateAdStatusData = {
72478
72478
  body: {
72479
72479
  status: 'active' | 'paused';
72480
72480
  /**
72481
- * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly` or `dryRun`.
72481
+ * Send true to stage this change instead of applying it. Nothing is written to the ad network; the response is `202` with the staged change and its diff. Apply it with POST /v1/ads/changes/{changeId}/confirm. Meta, Google, TikTok, X, Snapchat and Reddit; cannot be combined with `validateOnly` or `dryRun`.
72482
72482
  */
72483
72483
  stage?: boolean;
72484
72484
  };