@zernio/node 0.2.1836 → 0.2.1837

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.
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.
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.1837",
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.1837",
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.1837",
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.