@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.
- package/build/cjs/index.js +0 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +9 -4
- package/build/cjs/index.typings.js +0 -1
- 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.mjs +0 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +9 -4
- package/build/es/index.typings.mjs +0 -1
- 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.js +0 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +9 -4
- package/build/internal/cjs/index.typings.js +0 -1
- 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.mjs +0 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +9 -4
- package/build/internal/es/index.typings.mjs +0 -1
- 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 +2 -2
|
@@ -337,7 +337,7 @@ interface AppDefinedAction {
|
|
|
337
337
|
* @deprecated Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.
|
|
338
338
|
*
|
|
339
339
|
* > **Note**: Actions that follow a skipped action still run.
|
|
340
|
-
* @replacedBy
|
|
340
|
+
* @replacedBy skip_action_expression
|
|
341
341
|
* @targetRemovalDate 2026-02-01
|
|
342
342
|
*/
|
|
343
343
|
skipConditionOrExpressionGroups?: ConditionExpressionGroup[];
|
|
@@ -373,6 +373,13 @@ interface ConditionAction {
|
|
|
373
373
|
interface CodeConditionAction {
|
|
374
374
|
/** 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. */
|
|
375
375
|
snippet?: CodeSnippet;
|
|
376
|
+
/**
|
|
377
|
+
* dynamic variables used in the code snippet. these variables can be used inside the code using var('variableName') function.
|
|
378
|
+
* this list is mainly for validation purpose.
|
|
379
|
+
* @maxSize 50
|
|
380
|
+
* @maxLength 100
|
|
381
|
+
*/
|
|
382
|
+
dynamicVariableExpressions?: string[];
|
|
376
383
|
/**
|
|
377
384
|
* IDs of actions to run when the condition evaluates to `true`.
|
|
378
385
|
* @maxSize 1
|
|
@@ -2081,13 +2088,11 @@ declare enum ActionErrorType {
|
|
|
2081
2088
|
MAPPING_SCHEMA_MISMATCH = "MAPPING_SCHEMA_MISMATCH",
|
|
2082
2089
|
/** Mapping variable missing from schema. */
|
|
2083
2090
|
MAPPING_VARIABLE_MISSING_FROM_SCHEMA = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA",
|
|
2084
|
-
/** Sample code run failed. */
|
|
2085
|
-
SAMPLE_CODE_RUN_FAILED = "SAMPLE_CODE_RUN_FAILED",
|
|
2086
2091
|
/** Configured post action not found. */
|
|
2087
2092
|
POST_ACTION_NOT_FOUND = "POST_ACTION_NOT_FOUND"
|
|
2088
2093
|
}
|
|
2089
2094
|
/** @enumType */
|
|
2090
|
-
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' | '
|
|
2095
|
+
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';
|
|
2091
2096
|
interface AutomationValidationError extends AutomationValidationErrorErrorOneOf {
|
|
2092
2097
|
/** Automation configuration error. */
|
|
2093
2098
|
configurationError?: AutomationConfigurationError;
|
|
@@ -887,7 +887,6 @@ var ActionErrorType = /* @__PURE__ */ ((ActionErrorType2) => {
|
|
|
887
887
|
ActionErrorType2["MAPPING_MISSING_REQUIRED_FIELD"] = "MAPPING_MISSING_REQUIRED_FIELD";
|
|
888
888
|
ActionErrorType2["MAPPING_SCHEMA_MISMATCH"] = "MAPPING_SCHEMA_MISMATCH";
|
|
889
889
|
ActionErrorType2["MAPPING_VARIABLE_MISSING_FROM_SCHEMA"] = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA";
|
|
890
|
-
ActionErrorType2["SAMPLE_CODE_RUN_FAILED"] = "SAMPLE_CODE_RUN_FAILED";
|
|
891
890
|
ActionErrorType2["POST_ACTION_NOT_FOUND"] = "POST_ACTION_NOT_FOUND";
|
|
892
891
|
return ActionErrorType2;
|
|
893
892
|
})(ActionErrorType || {});
|