@wix/automations 1.0.19 → 1.0.21

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.
@@ -2061,8 +2061,6 @@ interface Automation$1 extends AutomationOriginInfoOneOf$1 {
2061
2061
  applicationInfo?: ApplicationOrigin$1;
2062
2062
  /** Preinstalled info */
2063
2063
  preinstalledInfo?: PreinstalledOrigin$1;
2064
- /** Draft info */
2065
- draftInfo?: DraftOrigin$1;
2066
2064
  /**
2067
2065
  * Automation ID.
2068
2066
  * @readonly
@@ -2107,6 +2105,11 @@ interface Automation$1 extends AutomationOriginInfoOneOf$1 {
2107
2105
  origin?: Origin$1;
2108
2106
  /** Automation settings. */
2109
2107
  settings?: AutomationSettings$1;
2108
+ /**
2109
+ * Draft info (optional - only if the automation is a draft)
2110
+ * @readonly
2111
+ */
2112
+ draftInfo?: DraftInfo$1;
2110
2113
  }
2111
2114
  /** @oneof */
2112
2115
  interface AutomationOriginInfoOneOf$1 {
@@ -2114,8 +2117,6 @@ interface AutomationOriginInfoOneOf$1 {
2114
2117
  applicationInfo?: ApplicationOrigin$1;
2115
2118
  /** Preinstalled info */
2116
2119
  preinstalledInfo?: PreinstalledOrigin$1;
2117
- /** Draft info */
2118
- draftInfo?: DraftOrigin$1;
2119
2120
  }
2120
2121
  interface ActionSettings$1 {
2121
2122
  /**
@@ -2338,9 +2339,7 @@ declare enum Origin$1 {
2338
2339
  /** automation created by application (site specific) */
2339
2340
  APPLICATION = "APPLICATION",
2340
2341
  /** preinstalled application automation */
2341
- PREINSTALLED = "PREINSTALLED",
2342
- /** draft automation */
2343
- DRAFT = "DRAFT"
2342
+ PREINSTALLED = "PREINSTALLED"
2344
2343
  }
2345
2344
  interface ApplicationOrigin$1 {
2346
2345
  /** Application ID. */
@@ -2363,10 +2362,6 @@ interface PreinstalledOrigin$1 {
2363
2362
  */
2364
2363
  override?: boolean | null;
2365
2364
  }
2366
- interface DraftOrigin$1 {
2367
- /** id of the automation that this draft belongs to, if it exists */
2368
- parentId?: string | null;
2369
- }
2370
2365
  interface AutomationSettings$1 {
2371
2366
  /**
2372
2367
  * Whether the automation is hidden from users.
@@ -2391,6 +2386,13 @@ interface AutomationSettings$1 {
2391
2386
  /** Automation action settings. */
2392
2387
  actionSettings?: ActionSettings$1;
2393
2388
  }
2389
+ interface DraftInfo$1 {
2390
+ /**
2391
+ * optional - automationId of the original automation
2392
+ * @readonly
2393
+ */
2394
+ originalAutomationId?: string | null;
2395
+ }
2394
2396
  interface CreateAutomationRequest$1 {
2395
2397
  /** Automation to be created. */
2396
2398
  automation: Automation$1;
@@ -2791,8 +2793,6 @@ interface Automation extends AutomationOriginInfoOneOf {
2791
2793
  applicationInfo?: ApplicationOrigin;
2792
2794
  /** Preinstalled info */
2793
2795
  preinstalledInfo?: PreinstalledOrigin;
2794
- /** Draft info */
2795
- draftInfo?: DraftOrigin;
2796
2796
  /**
2797
2797
  * Automation ID.
2798
2798
  * @readonly
@@ -2837,6 +2837,11 @@ interface Automation extends AutomationOriginInfoOneOf {
2837
2837
  origin?: Origin;
2838
2838
  /** Automation settings. */
2839
2839
  settings?: AutomationSettings;
2840
+ /**
2841
+ * Draft info (optional - only if the automation is a draft)
2842
+ * @readonly
2843
+ */
2844
+ draftInfo?: DraftInfo;
2840
2845
  }
2841
2846
  /** @oneof */
2842
2847
  interface AutomationOriginInfoOneOf {
@@ -2844,8 +2849,6 @@ interface AutomationOriginInfoOneOf {
2844
2849
  applicationInfo?: ApplicationOrigin;
2845
2850
  /** Preinstalled info */
2846
2851
  preinstalledInfo?: PreinstalledOrigin;
2847
- /** Draft info */
2848
- draftInfo?: DraftOrigin;
2849
2852
  }
2850
2853
  interface ActionSettings {
2851
2854
  /**
@@ -3068,9 +3071,7 @@ declare enum Origin {
3068
3071
  /** automation created by application (site specific) */
3069
3072
  APPLICATION = "APPLICATION",
3070
3073
  /** preinstalled application automation */
3071
- PREINSTALLED = "PREINSTALLED",
3072
- /** draft automation */
3073
- DRAFT = "DRAFT"
3074
+ PREINSTALLED = "PREINSTALLED"
3074
3075
  }
3075
3076
  interface ApplicationOrigin {
3076
3077
  /** Application ID. */
@@ -3093,10 +3094,6 @@ interface PreinstalledOrigin {
3093
3094
  */
3094
3095
  override?: boolean | null;
3095
3096
  }
3096
- interface DraftOrigin {
3097
- /** id of the automation that this draft belongs to, if it exists */
3098
- parentId?: string | null;
3099
- }
3100
3097
  interface AutomationSettings {
3101
3098
  /**
3102
3099
  * Whether the automation is hidden from users.
@@ -3121,6 +3118,13 @@ interface AutomationSettings {
3121
3118
  /** Automation action settings. */
3122
3119
  actionSettings?: ActionSettings;
3123
3120
  }
3121
+ interface DraftInfo {
3122
+ /**
3123
+ * optional - automationId of the original automation
3124
+ * @readonly
3125
+ */
3126
+ originalAutomationId?: string | null;
3127
+ }
3124
3128
  interface CreateAutomationRequest {
3125
3129
  /** Automation to be created. */
3126
3130
  automation: Automation;