@wix/auto_sdk_automations_automations-v-2 1.0.53 → 1.0.55

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +11 -11
  2. package/build/cjs/index.js +0 -1
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +27 -34
  5. package/build/cjs/index.typings.js +0 -1
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +9 -16
  8. package/build/cjs/meta.js +0 -1
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +11 -11
  11. package/build/es/index.mjs +0 -1
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +27 -34
  14. package/build/es/index.typings.mjs +0 -1
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +9 -16
  17. package/build/es/meta.mjs +0 -1
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +11 -11
  20. package/build/internal/cjs/index.js +0 -1
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +27 -34
  23. package/build/internal/cjs/index.typings.js +0 -1
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +9 -16
  26. package/build/internal/cjs/meta.js +0 -1
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +11 -11
  29. package/build/internal/es/index.mjs +0 -1
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +27 -34
  32. package/build/internal/es/index.typings.mjs +0 -1
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +9 -16
  35. package/build/internal/es/meta.mjs +0 -1
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -98,18 +98,6 @@ interface ActionSettings {
98
98
  * @format GUID
99
99
  */
100
100
  readonlyActionIds?: string[];
101
- /**
102
- * Whether to disable the ability to add a delay to the automation.
103
- *
104
- * Default: `false`.
105
- */
106
- disableDelayAddition?: boolean;
107
- /**
108
- * Whether to disable the ability to add a condition to the automation.
109
- *
110
- * Default: `false`.
111
- */
112
- disableConditionAddition?: boolean;
113
101
  }
114
102
  declare enum Domain {
115
103
  /** User domain (default). */
@@ -350,7 +338,7 @@ interface AppDefinedAction {
350
338
  * @deprecated Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.
351
339
  *
352
340
  * > **Note**: Actions that follow a skipped action still run.
353
- * @replacedBy skip_expression
341
+ * @replacedBy skip_action_expression
354
342
  * @targetRemovalDate 2026-02-01
355
343
  */
356
344
  skipConditionOrExpressionGroups?: ConditionExpressionGroup[];
@@ -386,6 +374,13 @@ interface ConditionAction {
386
374
  interface CodeConditionAction {
387
375
  /** condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean. */
388
376
  snippet?: CodeSnippet;
377
+ /**
378
+ * dynamic variables used in the code snippet. these variables can be used inside the code using var('variableName') function.
379
+ * this list is mainly for validation purpose.
380
+ * @maxSize 50
381
+ * @maxLength 100
382
+ */
383
+ dynamicVariableExpressions?: string[];
389
384
  /**
390
385
  * IDs of actions to run when the condition evaluates to `true`.
391
386
  * @maxSize 1
@@ -2096,13 +2091,11 @@ declare enum ActionErrorType {
2096
2091
  MAPPING_SCHEMA_MISMATCH = "MAPPING_SCHEMA_MISMATCH",
2097
2092
  /** Mapping variable missing from schema. */
2098
2093
  MAPPING_VARIABLE_MISSING_FROM_SCHEMA = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA",
2099
- /** Sample code run failed. */
2100
- SAMPLE_CODE_RUN_FAILED = "SAMPLE_CODE_RUN_FAILED",
2101
2094
  /** Configured post action not found. */
2102
2095
  POST_ACTION_NOT_FOUND = "POST_ACTION_NOT_FOUND"
2103
2096
  }
2104
2097
  /** @enumType */
2105
- type ActionErrorTypeWithLiterals = ActionErrorType | 'UNKNOWN_ACTION_ERROR_TYPE' | 'NOT_FOUND' | 'APP_NOT_INSTALLED' | 'INVALID_ACTION_KEY' | 'INVALID_MAPPING' | 'MAPPING_TYPE_MISMATCH' | 'MAPPING_MISSING_REQUIRED_FIELD' | 'MAPPING_SCHEMA_MISMATCH' | 'MAPPING_VARIABLE_MISSING_FROM_SCHEMA' | 'SAMPLE_CODE_RUN_FAILED' | 'POST_ACTION_NOT_FOUND';
2098
+ type ActionErrorTypeWithLiterals = ActionErrorType | 'UNKNOWN_ACTION_ERROR_TYPE' | 'NOT_FOUND' | 'APP_NOT_INSTALLED' | 'INVALID_ACTION_KEY' | 'INVALID_MAPPING' | 'MAPPING_TYPE_MISMATCH' | 'MAPPING_MISSING_REQUIRED_FIELD' | 'MAPPING_SCHEMA_MISMATCH' | 'MAPPING_VARIABLE_MISSING_FROM_SCHEMA' | 'POST_ACTION_NOT_FOUND';
2106
2099
  interface AutomationValidationError extends AutomationValidationErrorErrorOneOf {
2107
2100
  /** Automation configuration error. */
2108
2101
  configurationError?: AutomationConfigurationError;
package/build/cjs/meta.js CHANGED
@@ -945,7 +945,6 @@ var ActionErrorType = /* @__PURE__ */ ((ActionErrorType2) => {
945
945
  ActionErrorType2["MAPPING_MISSING_REQUIRED_FIELD"] = "MAPPING_MISSING_REQUIRED_FIELD";
946
946
  ActionErrorType2["MAPPING_SCHEMA_MISMATCH"] = "MAPPING_SCHEMA_MISMATCH";
947
947
  ActionErrorType2["MAPPING_VARIABLE_MISSING_FROM_SCHEMA"] = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA";
948
- ActionErrorType2["SAMPLE_CODE_RUN_FAILED"] = "SAMPLE_CODE_RUN_FAILED";
949
948
  ActionErrorType2["POST_ACTION_NOT_FOUND"] = "POST_ACTION_NOT_FOUND";
950
949
  return ActionErrorType2;
951
950
  })(ActionErrorType || {});