@wix/auto_sdk_automations_automations-v-2 1.0.54 → 1.0.56
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/build/cjs/index.d.ts +10 -15
- package/build/cjs/index.js +56 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +19 -6
- package/build/cjs/index.typings.js +35 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +9 -4
- package/build/cjs/meta.js +0 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +10 -15
- package/build/es/index.mjs +56 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +19 -6
- package/build/es/index.typings.mjs +34 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +9 -4
- package/build/es/meta.mjs +0 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +10 -15
- package/build/internal/cjs/index.js +56 -7
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +19 -6
- package/build/internal/cjs/index.typings.js +35 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +9 -4
- package/build/internal/cjs/meta.js +0 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +10 -15
- package/build/internal/es/index.mjs +56 -7
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +19 -6
- package/build/internal/es/index.typings.mjs +34 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +9 -4
- package/build/internal/es/meta.mjs +0 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
|
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' | '
|
|
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;
|
|
@@ -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 || {});
|