@wix/auto_sdk_automations_automations-v-2 1.0.76 → 1.0.77
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 +9 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +139 -61
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +123 -59
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +9 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +139 -61
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +123 -59
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +9 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +139 -61
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +123 -59
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +9 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +139 -61
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +123 -59
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1898,93 +1898,123 @@ interface PublishDraftAutomationResponse {
|
|
|
1898
1898
|
interface ValidateAutomationRequest {
|
|
1899
1899
|
/** Automation to validate. */
|
|
1900
1900
|
automation: Automation;
|
|
1901
|
-
/**
|
|
1901
|
+
/**
|
|
1902
|
+
* Validation settings.
|
|
1903
|
+
*
|
|
1904
|
+
* When not specified, validates the full automation including trigger, actions, and provider validations.
|
|
1905
|
+
*
|
|
1906
|
+
* > **Note**: Trigger and action providers can add custom validation logic by implementing the Validate Configuration method in the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action service plugins](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
|
|
1907
|
+
*/
|
|
1902
1908
|
validationSettings?: ValidationSettings;
|
|
1903
1909
|
}
|
|
1904
1910
|
interface ValidationSettings {
|
|
1905
1911
|
/**
|
|
1906
|
-
* IDs of actions to validate.
|
|
1912
|
+
* IDs of actions to validate.
|
|
1907
1913
|
*
|
|
1908
|
-
* When
|
|
1914
|
+
* When specified, only these actions are validated. When empty, the full automation is validated including the trigger. Any validations added by the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) and [action providers](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) are also performed.
|
|
1909
1915
|
* @maxSize 30
|
|
1910
1916
|
* @format GUID
|
|
1911
1917
|
*/
|
|
1912
1918
|
actionIds?: string[];
|
|
1913
1919
|
/**
|
|
1914
|
-
* Whether to skip provider validations.
|
|
1920
|
+
* Whether to skip [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) and [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) validations.
|
|
1915
1921
|
*
|
|
1916
1922
|
* Default: `false`.
|
|
1917
1923
|
*/
|
|
1918
1924
|
skipProviderValidations?: boolean;
|
|
1919
1925
|
}
|
|
1920
1926
|
interface ValidateAutomationResponse {
|
|
1921
|
-
/**
|
|
1927
|
+
/** Validation status. */
|
|
1922
1928
|
status?: ValidationResultStatusWithLiterals;
|
|
1923
1929
|
/**
|
|
1924
|
-
*
|
|
1930
|
+
* Errors found in the automation's trigger.
|
|
1925
1931
|
* @maxSize 100
|
|
1926
1932
|
*/
|
|
1927
1933
|
triggerValidationErrors?: TriggerValidationError[];
|
|
1928
1934
|
/**
|
|
1929
|
-
*
|
|
1935
|
+
* Errors found in the automation's actions.
|
|
1930
1936
|
* @maxSize 100
|
|
1931
1937
|
*/
|
|
1932
1938
|
actionValidationErrors?: ActionValidationError[];
|
|
1933
1939
|
}
|
|
1934
1940
|
declare enum ValidationResultStatus {
|
|
1935
1941
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
1936
|
-
/**
|
|
1942
|
+
/**
|
|
1943
|
+
* Automation is valid. No errors found.
|
|
1944
|
+
*
|
|
1945
|
+
* You can save and run valid automations on user sites.
|
|
1946
|
+
*/
|
|
1937
1947
|
VALID = "VALID",
|
|
1938
|
-
/**
|
|
1948
|
+
/**
|
|
1949
|
+
* Automation is valid but contains at least one error with a `WARNING` severity.
|
|
1950
|
+
*
|
|
1951
|
+
* Errors with a `WARNING` allow you to save and run the automation on user sites, but this can result in unexpected behavior.
|
|
1952
|
+
*/
|
|
1939
1953
|
VALID_WITH_WARNINGS = "VALID_WITH_WARNINGS",
|
|
1940
|
-
/**
|
|
1954
|
+
/**
|
|
1955
|
+
* Automation is not valid. It contains at least one error with a `CRITICAL` severity.
|
|
1956
|
+
*
|
|
1957
|
+
* Errors with a `CRITICAL` severity do not allow you to save and run the automation on user sites.
|
|
1958
|
+
*/
|
|
1941
1959
|
INVALID = "INVALID"
|
|
1942
1960
|
}
|
|
1943
1961
|
/** @enumType */
|
|
1944
1962
|
type ValidationResultStatusWithLiterals = ValidationResultStatus | 'UNKNOWN_STATUS' | 'VALID' | 'VALID_WITH_WARNINGS' | 'INVALID';
|
|
1945
1963
|
interface TriggerValidationError extends TriggerValidationErrorErrorOneOf {
|
|
1946
|
-
/**
|
|
1964
|
+
/** Error found in the automation's [trigger configuration](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/about-triggers#trigger-configuration). */
|
|
1947
1965
|
configurationError?: TriggerConfigurationError;
|
|
1948
|
-
/**
|
|
1966
|
+
/** Error found in how the [trigger provider](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) configured their trigger. */
|
|
1949
1967
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1950
|
-
/**
|
|
1968
|
+
/** Error type. */
|
|
1951
1969
|
errorType?: TriggerValidationErrorValidationErrorTypeWithLiterals;
|
|
1952
|
-
/**
|
|
1970
|
+
/** Error severity. */
|
|
1953
1971
|
errorSeverity?: SeverityWithLiterals;
|
|
1954
1972
|
}
|
|
1955
1973
|
/** @oneof */
|
|
1956
1974
|
interface TriggerValidationErrorErrorOneOf {
|
|
1957
|
-
/**
|
|
1975
|
+
/** Error found in the automation's [trigger configuration](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/about-triggers#trigger-configuration). */
|
|
1958
1976
|
configurationError?: TriggerConfigurationError;
|
|
1959
|
-
/**
|
|
1977
|
+
/** Error found in how the [trigger provider](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) configured their trigger. */
|
|
1960
1978
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1961
1979
|
}
|
|
1962
1980
|
declare enum TriggerValidationErrorValidationErrorType {
|
|
1963
1981
|
UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
|
|
1964
|
-
/**
|
|
1982
|
+
/** Error found in the automation's [trigger configuration](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/about-triggers#trigger-configuration). */
|
|
1965
1983
|
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
1966
|
-
/**
|
|
1984
|
+
/** Error found in how the [trigger provider](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) configured their trigger. */
|
|
1967
1985
|
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
1968
1986
|
}
|
|
1969
1987
|
/** @enumType */
|
|
1970
1988
|
type TriggerValidationErrorValidationErrorTypeWithLiterals = TriggerValidationErrorValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
|
|
1971
1989
|
interface TriggerConfigurationError {
|
|
1972
|
-
/**
|
|
1990
|
+
/** Type of the trigger error. */
|
|
1973
1991
|
errorType?: TriggerErrorTypeWithLiterals;
|
|
1974
1992
|
}
|
|
1975
1993
|
declare enum TriggerErrorType {
|
|
1976
1994
|
UNKNOWN_TRIGGER_ERROR_TYPE = "UNKNOWN_TRIGGER_ERROR_TYPE",
|
|
1977
|
-
/**
|
|
1995
|
+
/** Trigger was not found. */
|
|
1978
1996
|
NOT_FOUND = "NOT_FOUND",
|
|
1979
|
-
/**
|
|
1997
|
+
/** Required app is not installed on the site. */
|
|
1980
1998
|
APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
|
|
1981
|
-
/**
|
|
1999
|
+
/** Trigger key is invalid. */
|
|
1982
2000
|
INVALID_TRIGGER_KEY = "INVALID_TRIGGER_KEY",
|
|
1983
|
-
/**
|
|
2001
|
+
/**
|
|
2002
|
+
* Filter field key is invalid.
|
|
2003
|
+
*
|
|
2004
|
+
* Learn more about [trigger filter](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#filters).
|
|
2005
|
+
*/
|
|
1984
2006
|
INVALID_FILTER_FIELD_KEY = "INVALID_FILTER_FIELD_KEY",
|
|
1985
|
-
/**
|
|
2007
|
+
/**
|
|
2008
|
+
* Filter expression is invalid.
|
|
2009
|
+
*
|
|
2010
|
+
* Learn more about [trigger filter expressions](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#filters).
|
|
2011
|
+
*/
|
|
1986
2012
|
INVALID_FILTER_EXPRESSION = "INVALID_FILTER_EXPRESSION",
|
|
1987
|
-
/**
|
|
2013
|
+
/**
|
|
2014
|
+
* Required trigger filter was not found.
|
|
2015
|
+
*
|
|
2016
|
+
* Learn more about [required trigger filters](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#filters).
|
|
2017
|
+
*/
|
|
1988
2018
|
MISSING_REQUIRED_FILTER = "MISSING_REQUIRED_FILTER"
|
|
1989
2019
|
}
|
|
1990
2020
|
/** @enumType */
|
|
@@ -2012,125 +2042,159 @@ declare enum ValidationErrorSeverity {
|
|
|
2012
2042
|
type ValidationErrorSeverityWithLiterals = ValidationErrorSeverity | 'UNKNOWN_VALIDATION_ERROR_SEVERITY' | 'WARNING' | 'ERROR';
|
|
2013
2043
|
declare enum Severity {
|
|
2014
2044
|
UNKNOWN_SEVERITY = "UNKNOWN_SEVERITY",
|
|
2015
|
-
/**
|
|
2045
|
+
/**
|
|
2046
|
+
* Low-severity error.
|
|
2047
|
+
*
|
|
2048
|
+
* Errors with a `WARNING` severity allow you to save and run the automation, but the results might be unexpected.
|
|
2049
|
+
*/
|
|
2016
2050
|
WARNING = "WARNING",
|
|
2017
|
-
/**
|
|
2051
|
+
/**
|
|
2052
|
+
* High-severity error.
|
|
2053
|
+
*
|
|
2054
|
+
* Errors with a `CRITICAL` severity do not allow you to save and run the automation.
|
|
2055
|
+
*/
|
|
2018
2056
|
CRITICAL = "CRITICAL"
|
|
2019
2057
|
}
|
|
2020
2058
|
/** @enumType */
|
|
2021
2059
|
type SeverityWithLiterals = Severity | 'UNKNOWN_SEVERITY' | 'WARNING' | 'CRITICAL';
|
|
2022
2060
|
interface ActionValidationInfo {
|
|
2023
2061
|
/**
|
|
2024
|
-
*
|
|
2062
|
+
* ID of the [action as configured in the automation](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions).
|
|
2025
2063
|
* @format GUID
|
|
2026
2064
|
*/
|
|
2027
2065
|
actionId?: string | null;
|
|
2028
2066
|
/**
|
|
2029
|
-
* ID of the app that
|
|
2067
|
+
* ID of the [app that created the action](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#app-defined-action).
|
|
2030
2068
|
* @format GUID
|
|
2031
2069
|
*/
|
|
2032
2070
|
appId?: string;
|
|
2033
2071
|
/**
|
|
2034
|
-
*
|
|
2072
|
+
* Action key.
|
|
2073
|
+
*
|
|
2074
|
+
* This identifies the action in the [app that defined it in the Wix Dev Center](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction#how-to-set-up-an-action). This remains consistent across different automations.
|
|
2035
2075
|
* @minLength 1
|
|
2036
2076
|
* @maxLength 100
|
|
2037
2077
|
*/
|
|
2038
2078
|
actionKey?: string;
|
|
2039
2079
|
/**
|
|
2040
|
-
*
|
|
2080
|
+
* Errors found in the action's configuration.
|
|
2041
2081
|
* @maxSize 100
|
|
2042
2082
|
*/
|
|
2043
2083
|
validationErrors?: ActionValidationError[];
|
|
2044
2084
|
}
|
|
2045
2085
|
interface ActionValidationError extends ActionValidationErrorErrorOneOf {
|
|
2046
|
-
/**
|
|
2086
|
+
/** Error found in the [configuration of the action in the automation](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions). */
|
|
2047
2087
|
configurationError?: ActionConfigurationError;
|
|
2048
|
-
/**
|
|
2088
|
+
/** Error found in the configuration of the action as added by the [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction). */
|
|
2049
2089
|
providerConfigurationError?: ProviderConfigurationError;
|
|
2050
2090
|
/**
|
|
2051
|
-
*
|
|
2091
|
+
* ID of the action as [configured in the automation](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions).
|
|
2052
2092
|
* @format GUID
|
|
2053
2093
|
*/
|
|
2054
2094
|
actionId?: string;
|
|
2055
2095
|
/**
|
|
2056
|
-
* ID of the app that
|
|
2096
|
+
* ID of the [app that created the action](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#app-defined-action).
|
|
2057
2097
|
* @format GUID
|
|
2058
2098
|
*/
|
|
2059
2099
|
appId?: string;
|
|
2060
2100
|
/**
|
|
2061
|
-
*
|
|
2101
|
+
* Action key.
|
|
2102
|
+
*
|
|
2103
|
+
* This remains consistent across different automations.
|
|
2062
2104
|
* @minLength 1
|
|
2063
2105
|
* @maxLength 100
|
|
2064
2106
|
*/
|
|
2065
2107
|
actionKey?: string;
|
|
2066
|
-
/**
|
|
2108
|
+
/** Error type. */
|
|
2067
2109
|
errorType?: ValidationErrorTypeWithLiterals;
|
|
2068
|
-
/**
|
|
2110
|
+
/** Error severity. */
|
|
2069
2111
|
errorSeverity?: SeverityWithLiterals;
|
|
2070
2112
|
}
|
|
2071
2113
|
/** @oneof */
|
|
2072
2114
|
interface ActionValidationErrorErrorOneOf {
|
|
2073
|
-
/**
|
|
2115
|
+
/** Error found in the [configuration of the action in the automation](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions). */
|
|
2074
2116
|
configurationError?: ActionConfigurationError;
|
|
2075
|
-
/**
|
|
2117
|
+
/** Error found in the configuration of the action as added by the [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction). */
|
|
2076
2118
|
providerConfigurationError?: ProviderConfigurationError;
|
|
2077
2119
|
}
|
|
2078
2120
|
declare enum ValidationErrorType {
|
|
2079
2121
|
UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
|
|
2080
|
-
/**
|
|
2122
|
+
/** Error found in how the [action is configured in the automation](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions). */
|
|
2081
2123
|
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
2082
|
-
/**
|
|
2124
|
+
/** Error found in how the [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) configured their action. */
|
|
2083
2125
|
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
2084
2126
|
}
|
|
2085
2127
|
/** @enumType */
|
|
2086
2128
|
type ValidationErrorTypeWithLiterals = ValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
|
|
2087
2129
|
interface ActionConfigurationError {
|
|
2088
|
-
/**
|
|
2130
|
+
/** Error type. */
|
|
2089
2131
|
errorType?: ActionErrorTypeWithLiterals;
|
|
2090
2132
|
}
|
|
2091
2133
|
declare enum ActionErrorType {
|
|
2092
2134
|
UNKNOWN_ACTION_ERROR_TYPE = "UNKNOWN_ACTION_ERROR_TYPE",
|
|
2093
|
-
/**
|
|
2135
|
+
/** Action was not found. */
|
|
2094
2136
|
NOT_FOUND = "NOT_FOUND",
|
|
2095
|
-
/**
|
|
2137
|
+
/** Required app is not installed on the site. */
|
|
2096
2138
|
APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
|
|
2097
2139
|
/** Invalid action key. */
|
|
2098
2140
|
INVALID_ACTION_KEY = "INVALID_ACTION_KEY",
|
|
2099
|
-
/**
|
|
2141
|
+
/**
|
|
2142
|
+
* Invalid action mapping.
|
|
2143
|
+
*
|
|
2144
|
+
* At least one action parameter doesn't match the action's [input](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#understanding-input-mapping) or other schema.
|
|
2145
|
+
*/
|
|
2100
2146
|
INVALID_MAPPING = "INVALID_MAPPING",
|
|
2101
|
-
/**
|
|
2147
|
+
/**
|
|
2148
|
+
* Action mapping type mismatch.
|
|
2149
|
+
*
|
|
2150
|
+
* The type of at least one action parameter does not match the type configured in the action's [input](https://dev.wix.com/docs/api-reference/business-management/automations/actions/the-action-input-schema) or other schema.
|
|
2151
|
+
*/
|
|
2102
2152
|
MAPPING_TYPE_MISMATCH = "MAPPING_TYPE_MISMATCH",
|
|
2103
|
-
/**
|
|
2153
|
+
/**
|
|
2154
|
+
* Action mapping missing a required schema field.
|
|
2155
|
+
*
|
|
2156
|
+
* At least one field included in the action schema's [`required` array](https://dev.wix.com/docs/api-reference/business-management/automations/actions/the-action-input-schema#top-level-properties) is missing a matching action parameter.
|
|
2157
|
+
*/
|
|
2104
2158
|
MAPPING_MISSING_REQUIRED_FIELD = "MAPPING_MISSING_REQUIRED_FIELD",
|
|
2105
|
-
/**
|
|
2159
|
+
/**
|
|
2160
|
+
* Action schema mapping mismatch.
|
|
2161
|
+
*
|
|
2162
|
+
* The format or value of at least one action parameter does not match the action's [input](https://dev.wix.com/docs/api-reference/business-management/automations/actions/the-action-input-schema) or other schema.
|
|
2163
|
+
*/
|
|
2106
2164
|
MAPPING_SCHEMA_MISMATCH = "MAPPING_SCHEMA_MISMATCH",
|
|
2107
|
-
/**
|
|
2165
|
+
/** Action uses a variable not available to it in the current automation. */
|
|
2108
2166
|
MAPPING_VARIABLE_MISSING_FROM_SCHEMA = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA",
|
|
2109
|
-
/**
|
|
2167
|
+
/**
|
|
2168
|
+
* Configured post action not found.
|
|
2169
|
+
*
|
|
2170
|
+
* Learn more about [configuring actions](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions) in an automation.
|
|
2171
|
+
*/
|
|
2110
2172
|
POST_ACTION_NOT_FOUND = "POST_ACTION_NOT_FOUND"
|
|
2111
2173
|
}
|
|
2112
2174
|
/** @enumType */
|
|
2113
2175
|
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';
|
|
2114
2176
|
interface AutomationValidationError extends AutomationValidationErrorErrorOneOf {
|
|
2115
|
-
/**
|
|
2177
|
+
/** Error caused by an error in the automation's [configuration](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation). */
|
|
2116
2178
|
configurationError?: AutomationConfigurationError;
|
|
2117
|
-
/**
|
|
2179
|
+
/** Error caused by an error in how the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) or [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) configured their trigger or action. */
|
|
2118
2180
|
providerConfigurationError?: ProviderConfigurationError;
|
|
2119
|
-
/**
|
|
2181
|
+
/** Error type. */
|
|
2120
2182
|
errorType?: AutomationValidationErrorValidationErrorTypeWithLiterals;
|
|
2121
|
-
/**
|
|
2183
|
+
/** Error severity. */
|
|
2122
2184
|
errorSeverity?: SeverityWithLiterals;
|
|
2123
2185
|
}
|
|
2124
2186
|
/** @oneof */
|
|
2125
2187
|
interface AutomationValidationErrorErrorOneOf {
|
|
2126
|
-
/**
|
|
2188
|
+
/** Error caused by an error in the automation's [configuration](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation). */
|
|
2127
2189
|
configurationError?: AutomationConfigurationError;
|
|
2128
|
-
/**
|
|
2190
|
+
/** Error caused by an error in how the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) or [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) configured their trigger or action. */
|
|
2129
2191
|
providerConfigurationError?: ProviderConfigurationError;
|
|
2130
2192
|
}
|
|
2131
2193
|
declare enum AutomationValidationErrorValidationErrorType {
|
|
2132
2194
|
UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
|
|
2195
|
+
/** Automation-level error caused by an error in the automation's configuration. */
|
|
2133
2196
|
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
2197
|
+
/** Error caused by an error in how the [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/introduction) or [action provider](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/introduction) configured the automation. */
|
|
2134
2198
|
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
2135
2199
|
}
|
|
2136
2200
|
/** @enumType */
|
|
@@ -2157,12 +2221,12 @@ interface ValidateAutomationByIdResponse {
|
|
|
2157
2221
|
/** Automation validation status. */
|
|
2158
2222
|
status?: ValidationResultStatusWithLiterals;
|
|
2159
2223
|
/**
|
|
2160
|
-
*
|
|
2224
|
+
* Errors found in the trigger configuration.
|
|
2161
2225
|
* @maxSize 100
|
|
2162
2226
|
*/
|
|
2163
2227
|
triggerValidationErrors?: TriggerValidationError[];
|
|
2164
2228
|
/**
|
|
2165
|
-
*
|
|
2229
|
+
* Errors found in the configuration of one or more of the automation's actions.
|
|
2166
2230
|
* @maxSize 100
|
|
2167
2231
|
*/
|
|
2168
2232
|
actionValidationErrors?: ActionValidationError[];
|