@wix/auto_sdk_automations_automations-v-2 1.0.54 → 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.
@@ -338,7 +338,7 @@ interface AppDefinedAction {
338
338
  * @deprecated Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.
339
339
  *
340
340
  * > **Note**: Actions that follow a skipped action still run.
341
- * @replacedBy skip_expression
341
+ * @replacedBy skip_action_expression
342
342
  * @targetRemovalDate 2026-02-01
343
343
  */
344
344
  skipConditionOrExpressionGroups?: ConditionExpressionGroup[];
@@ -374,6 +374,13 @@ interface ConditionAction {
374
374
  interface CodeConditionAction {
375
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. */
376
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[];
377
384
  /**
378
385
  * IDs of actions to run when the condition evaluates to `true`.
379
386
  * @maxSize 1
@@ -2084,13 +2091,11 @@ declare enum ActionErrorType {
2084
2091
  MAPPING_SCHEMA_MISMATCH = "MAPPING_SCHEMA_MISMATCH",
2085
2092
  /** Mapping variable missing from schema. */
2086
2093
  MAPPING_VARIABLE_MISSING_FROM_SCHEMA = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA",
2087
- /** Sample code run failed. */
2088
- SAMPLE_CODE_RUN_FAILED = "SAMPLE_CODE_RUN_FAILED",
2089
2094
  /** Configured post action not found. */
2090
2095
  POST_ACTION_NOT_FOUND = "POST_ACTION_NOT_FOUND"
2091
2096
  }
2092
2097
  /** @enumType */
2093
- 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';
2094
2099
  interface AutomationValidationError extends AutomationValidationErrorErrorOneOf {
2095
2100
  /** Automation configuration error. */
2096
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 || {});