@wix/auto_sdk_automations_automations-v-2 1.0.77 → 1.0.78
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 +1 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +61 -139
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +59 -123
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -9
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +61 -139
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +59 -123
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -9
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +61 -139
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +59 -123
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -9
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +61 -139
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +59 -123
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1895,123 +1895,93 @@ interface PublishDraftAutomationResponse {
|
|
|
1895
1895
|
interface ValidateAutomationRequest {
|
|
1896
1896
|
/** Automation to validate. */
|
|
1897
1897
|
automation: Automation;
|
|
1898
|
-
/**
|
|
1899
|
-
* Validation settings.
|
|
1900
|
-
*
|
|
1901
|
-
* When not specified, validates the full automation including trigger, actions, and provider validations.
|
|
1902
|
-
*
|
|
1903
|
-
* > **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).
|
|
1904
|
-
*/
|
|
1898
|
+
/** Automation validation settings. */
|
|
1905
1899
|
validationSettings?: ValidationSettings;
|
|
1906
1900
|
}
|
|
1907
1901
|
interface ValidationSettings {
|
|
1908
1902
|
/**
|
|
1909
|
-
* IDs of actions to validate.
|
|
1903
|
+
* IDs of actions to validate. Only actions whose IDs are specified are validated.
|
|
1910
1904
|
*
|
|
1911
|
-
* When specified,
|
|
1905
|
+
* When action IDs are specified, triggers are not validated. When empty, the full automation is validated, including triggers.
|
|
1912
1906
|
* @maxSize 30
|
|
1913
1907
|
* @format GUID
|
|
1914
1908
|
*/
|
|
1915
1909
|
actionIds?: string[];
|
|
1916
1910
|
/**
|
|
1917
|
-
* Whether to skip
|
|
1911
|
+
* Whether to skip provider validations.
|
|
1918
1912
|
*
|
|
1919
1913
|
* Default: `false`.
|
|
1920
1914
|
*/
|
|
1921
1915
|
skipProviderValidations?: boolean;
|
|
1922
1916
|
}
|
|
1923
1917
|
interface ValidateAutomationResponse {
|
|
1924
|
-
/**
|
|
1918
|
+
/** Automation validation status. */
|
|
1925
1919
|
status?: ValidationResultStatusWithLiterals;
|
|
1926
1920
|
/**
|
|
1927
|
-
*
|
|
1921
|
+
* Validation errors related to the automation's trigger configuration.
|
|
1928
1922
|
* @maxSize 100
|
|
1929
1923
|
*/
|
|
1930
1924
|
triggerValidationErrors?: TriggerValidationError[];
|
|
1931
1925
|
/**
|
|
1932
|
-
*
|
|
1926
|
+
* Validation errors related to the automation's actions configuration.
|
|
1933
1927
|
* @maxSize 100
|
|
1934
1928
|
*/
|
|
1935
1929
|
actionValidationErrors?: ActionValidationError[];
|
|
1936
1930
|
}
|
|
1937
1931
|
declare enum ValidationResultStatus {
|
|
1938
1932
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
1939
|
-
/**
|
|
1940
|
-
* Automation is valid. No errors found.
|
|
1941
|
-
*
|
|
1942
|
-
* You can save and run valid automations on user sites.
|
|
1943
|
-
*/
|
|
1933
|
+
/** Automation is valid - no validation errors found. */
|
|
1944
1934
|
VALID = "VALID",
|
|
1945
|
-
/**
|
|
1946
|
-
* Automation is valid but contains at least one error with a `WARNING` severity.
|
|
1947
|
-
*
|
|
1948
|
-
* Errors with a `WARNING` allow you to save and run the automation on user sites, but this can result in unexpected behavior.
|
|
1949
|
-
*/
|
|
1935
|
+
/** Automation is partially valid - validation errors with Warning severity were found - might affect automation execution */
|
|
1950
1936
|
VALID_WITH_WARNINGS = "VALID_WITH_WARNINGS",
|
|
1951
|
-
/**
|
|
1952
|
-
* Automation is not valid. It contains at least one error with a `CRITICAL` severity.
|
|
1953
|
-
*
|
|
1954
|
-
* Errors with a `CRITICAL` severity do not allow you to save and run the automation on user sites.
|
|
1955
|
-
*/
|
|
1937
|
+
/** Automation is not valid, validation errors with Critical severity were found - prevents proper automation/action execution and should be fixed. */
|
|
1956
1938
|
INVALID = "INVALID"
|
|
1957
1939
|
}
|
|
1958
1940
|
/** @enumType */
|
|
1959
1941
|
type ValidationResultStatusWithLiterals = ValidationResultStatus | 'UNKNOWN_STATUS' | 'VALID' | 'VALID_WITH_WARNINGS' | 'INVALID';
|
|
1960
1942
|
interface TriggerValidationError extends TriggerValidationErrorErrorOneOf {
|
|
1961
|
-
/**
|
|
1943
|
+
/** Automation's Trigger configuration error. */
|
|
1962
1944
|
configurationError?: TriggerConfigurationError;
|
|
1963
|
-
/**
|
|
1945
|
+
/** Trigger Provider configuration error. */
|
|
1964
1946
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1965
|
-
/**
|
|
1947
|
+
/** Validation error type. */
|
|
1966
1948
|
errorType?: TriggerValidationErrorValidationErrorTypeWithLiterals;
|
|
1967
|
-
/**
|
|
1949
|
+
/** Validation error severity */
|
|
1968
1950
|
errorSeverity?: SeverityWithLiterals;
|
|
1969
1951
|
}
|
|
1970
1952
|
/** @oneof */
|
|
1971
1953
|
interface TriggerValidationErrorErrorOneOf {
|
|
1972
|
-
/**
|
|
1954
|
+
/** Automation's Trigger configuration error. */
|
|
1973
1955
|
configurationError?: TriggerConfigurationError;
|
|
1974
|
-
/**
|
|
1956
|
+
/** Trigger Provider configuration error. */
|
|
1975
1957
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1976
1958
|
}
|
|
1977
1959
|
declare enum TriggerValidationErrorValidationErrorType {
|
|
1978
1960
|
UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
|
|
1979
|
-
/**
|
|
1961
|
+
/** Automation's Trigger Configuration error. */
|
|
1980
1962
|
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
1981
|
-
/**
|
|
1963
|
+
/** Trigger Provider related error. */
|
|
1982
1964
|
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
1983
1965
|
}
|
|
1984
1966
|
/** @enumType */
|
|
1985
1967
|
type TriggerValidationErrorValidationErrorTypeWithLiterals = TriggerValidationErrorValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
|
|
1986
1968
|
interface TriggerConfigurationError {
|
|
1987
|
-
/**
|
|
1969
|
+
/** Trigger error type. */
|
|
1988
1970
|
errorType?: TriggerErrorTypeWithLiterals;
|
|
1989
1971
|
}
|
|
1990
1972
|
declare enum TriggerErrorType {
|
|
1991
1973
|
UNKNOWN_TRIGGER_ERROR_TYPE = "UNKNOWN_TRIGGER_ERROR_TYPE",
|
|
1992
|
-
/**
|
|
1974
|
+
/** Configured trigger was not found. */
|
|
1993
1975
|
NOT_FOUND = "NOT_FOUND",
|
|
1994
|
-
/**
|
|
1976
|
+
/** App not installed. */
|
|
1995
1977
|
APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
|
|
1996
|
-
/**
|
|
1978
|
+
/** Invalid trigger key. */
|
|
1997
1979
|
INVALID_TRIGGER_KEY = "INVALID_TRIGGER_KEY",
|
|
1998
|
-
/**
|
|
1999
|
-
* Filter field key is invalid.
|
|
2000
|
-
*
|
|
2001
|
-
* Learn more about [trigger filter](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#filters).
|
|
2002
|
-
*/
|
|
1980
|
+
/** Invalid filter field key. */
|
|
2003
1981
|
INVALID_FILTER_FIELD_KEY = "INVALID_FILTER_FIELD_KEY",
|
|
2004
|
-
/**
|
|
2005
|
-
* Filter expression is invalid.
|
|
2006
|
-
*
|
|
2007
|
-
* Learn more about [trigger filter expressions](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#filters).
|
|
2008
|
-
*/
|
|
1982
|
+
/** Invalid filter expression. */
|
|
2009
1983
|
INVALID_FILTER_EXPRESSION = "INVALID_FILTER_EXPRESSION",
|
|
2010
|
-
/**
|
|
2011
|
-
* Required trigger filter was not found.
|
|
2012
|
-
*
|
|
2013
|
-
* Learn more about [required trigger filters](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#filters).
|
|
2014
|
-
*/
|
|
1984
|
+
/** Missing configuration for a required trigger filter */
|
|
2015
1985
|
MISSING_REQUIRED_FILTER = "MISSING_REQUIRED_FILTER"
|
|
2016
1986
|
}
|
|
2017
1987
|
/** @enumType */
|
|
@@ -2039,159 +2009,125 @@ declare enum ValidationErrorSeverity {
|
|
|
2039
2009
|
type ValidationErrorSeverityWithLiterals = ValidationErrorSeverity | 'UNKNOWN_VALIDATION_ERROR_SEVERITY' | 'WARNING' | 'ERROR';
|
|
2040
2010
|
declare enum Severity {
|
|
2041
2011
|
UNKNOWN_SEVERITY = "UNKNOWN_SEVERITY",
|
|
2042
|
-
/**
|
|
2043
|
-
* Low-severity error.
|
|
2044
|
-
*
|
|
2045
|
-
* Errors with a `WARNING` severity allow you to save and run the automation, but the results might be unexpected.
|
|
2046
|
-
*/
|
|
2012
|
+
/** Low severity error - may affect automation execution. */
|
|
2047
2013
|
WARNING = "WARNING",
|
|
2048
|
-
/**
|
|
2049
|
-
* High-severity error.
|
|
2050
|
-
*
|
|
2051
|
-
* Errors with a `CRITICAL` severity do not allow you to save and run the automation.
|
|
2052
|
-
*/
|
|
2014
|
+
/** Critical severity error - prevents proper automation execution and should be fixed. */
|
|
2053
2015
|
CRITICAL = "CRITICAL"
|
|
2054
2016
|
}
|
|
2055
2017
|
/** @enumType */
|
|
2056
2018
|
type SeverityWithLiterals = Severity | 'UNKNOWN_SEVERITY' | 'WARNING' | 'CRITICAL';
|
|
2057
2019
|
interface ActionValidationInfo {
|
|
2058
2020
|
/**
|
|
2059
|
-
* ID
|
|
2021
|
+
* Action ID.
|
|
2060
2022
|
* @format GUID
|
|
2061
2023
|
*/
|
|
2062
2024
|
actionId?: string | null;
|
|
2063
2025
|
/**
|
|
2064
|
-
* ID of the
|
|
2026
|
+
* ID of the app that defined the action.
|
|
2065
2027
|
* @format GUID
|
|
2066
2028
|
*/
|
|
2067
2029
|
appId?: string;
|
|
2068
2030
|
/**
|
|
2069
|
-
*
|
|
2070
|
-
*
|
|
2071
|
-
* 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.
|
|
2031
|
+
* Human-readable action identifier.
|
|
2072
2032
|
* @minLength 1
|
|
2073
2033
|
* @maxLength 100
|
|
2074
2034
|
*/
|
|
2075
2035
|
actionKey?: string;
|
|
2076
2036
|
/**
|
|
2077
|
-
*
|
|
2037
|
+
* Action validation errors.
|
|
2078
2038
|
* @maxSize 100
|
|
2079
2039
|
*/
|
|
2080
2040
|
validationErrors?: ActionValidationError[];
|
|
2081
2041
|
}
|
|
2082
2042
|
interface ActionValidationError extends ActionValidationErrorErrorOneOf {
|
|
2083
|
-
/**
|
|
2043
|
+
/** Action configuration error. */
|
|
2084
2044
|
configurationError?: ActionConfigurationError;
|
|
2085
|
-
/**
|
|
2045
|
+
/** Provider configuration error. */
|
|
2086
2046
|
providerConfigurationError?: ProviderConfigurationError;
|
|
2087
2047
|
/**
|
|
2088
|
-
*
|
|
2048
|
+
* Action Identifier in the Automation.
|
|
2089
2049
|
* @format GUID
|
|
2090
2050
|
*/
|
|
2091
2051
|
actionId?: string;
|
|
2092
2052
|
/**
|
|
2093
|
-
* ID of the
|
|
2053
|
+
* ID of the app that defined the action.
|
|
2094
2054
|
* @format GUID
|
|
2095
2055
|
*/
|
|
2096
2056
|
appId?: string;
|
|
2097
2057
|
/**
|
|
2098
|
-
*
|
|
2099
|
-
*
|
|
2100
|
-
* This remains consistent across different automations.
|
|
2058
|
+
* Human-readable action identifier.
|
|
2101
2059
|
* @minLength 1
|
|
2102
2060
|
* @maxLength 100
|
|
2103
2061
|
*/
|
|
2104
2062
|
actionKey?: string;
|
|
2105
|
-
/**
|
|
2063
|
+
/** Validation error type. */
|
|
2106
2064
|
errorType?: ValidationErrorTypeWithLiterals;
|
|
2107
|
-
/**
|
|
2065
|
+
/** Validation error severity */
|
|
2108
2066
|
errorSeverity?: SeverityWithLiterals;
|
|
2109
2067
|
}
|
|
2110
2068
|
/** @oneof */
|
|
2111
2069
|
interface ActionValidationErrorErrorOneOf {
|
|
2112
|
-
/**
|
|
2070
|
+
/** Action configuration error. */
|
|
2113
2071
|
configurationError?: ActionConfigurationError;
|
|
2114
|
-
/**
|
|
2072
|
+
/** Provider configuration error. */
|
|
2115
2073
|
providerConfigurationError?: ProviderConfigurationError;
|
|
2116
2074
|
}
|
|
2117
2075
|
declare enum ValidationErrorType {
|
|
2118
2076
|
UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
|
|
2119
|
-
/**
|
|
2077
|
+
/** Configuration error. */
|
|
2120
2078
|
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
2121
|
-
/**
|
|
2079
|
+
/** Provider error. */
|
|
2122
2080
|
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
2123
2081
|
}
|
|
2124
2082
|
/** @enumType */
|
|
2125
2083
|
type ValidationErrorTypeWithLiterals = ValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
|
|
2126
2084
|
interface ActionConfigurationError {
|
|
2127
|
-
/**
|
|
2085
|
+
/** Action error type. */
|
|
2128
2086
|
errorType?: ActionErrorTypeWithLiterals;
|
|
2129
2087
|
}
|
|
2130
2088
|
declare enum ActionErrorType {
|
|
2131
2089
|
UNKNOWN_ACTION_ERROR_TYPE = "UNKNOWN_ACTION_ERROR_TYPE",
|
|
2132
|
-
/**
|
|
2090
|
+
/** Configured action was not found. */
|
|
2133
2091
|
NOT_FOUND = "NOT_FOUND",
|
|
2134
|
-
/**
|
|
2092
|
+
/** App not installed. */
|
|
2135
2093
|
APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
|
|
2136
2094
|
/** Invalid action key. */
|
|
2137
2095
|
INVALID_ACTION_KEY = "INVALID_ACTION_KEY",
|
|
2138
|
-
/**
|
|
2139
|
-
* Invalid action mapping.
|
|
2140
|
-
*
|
|
2141
|
-
* 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.
|
|
2142
|
-
*/
|
|
2096
|
+
/** Invalid mapping */
|
|
2143
2097
|
INVALID_MAPPING = "INVALID_MAPPING",
|
|
2144
|
-
/**
|
|
2145
|
-
* Action mapping type mismatch.
|
|
2146
|
-
*
|
|
2147
|
-
* 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.
|
|
2148
|
-
*/
|
|
2098
|
+
/** Mapping type mismatch. */
|
|
2149
2099
|
MAPPING_TYPE_MISMATCH = "MAPPING_TYPE_MISMATCH",
|
|
2150
|
-
/**
|
|
2151
|
-
* Action mapping missing a required schema field.
|
|
2152
|
-
*
|
|
2153
|
-
* 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.
|
|
2154
|
-
*/
|
|
2100
|
+
/** Mapping missing required field. */
|
|
2155
2101
|
MAPPING_MISSING_REQUIRED_FIELD = "MAPPING_MISSING_REQUIRED_FIELD",
|
|
2156
|
-
/**
|
|
2157
|
-
* Action schema mapping mismatch.
|
|
2158
|
-
*
|
|
2159
|
-
* 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.
|
|
2160
|
-
*/
|
|
2102
|
+
/** Mapping schema mismatch. */
|
|
2161
2103
|
MAPPING_SCHEMA_MISMATCH = "MAPPING_SCHEMA_MISMATCH",
|
|
2162
|
-
/**
|
|
2104
|
+
/** Mapping variable missing from schema. */
|
|
2163
2105
|
MAPPING_VARIABLE_MISSING_FROM_SCHEMA = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA",
|
|
2164
|
-
/**
|
|
2165
|
-
* Configured post action not found.
|
|
2166
|
-
*
|
|
2167
|
-
* 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.
|
|
2168
|
-
*/
|
|
2106
|
+
/** Configured post action not found. */
|
|
2169
2107
|
POST_ACTION_NOT_FOUND = "POST_ACTION_NOT_FOUND"
|
|
2170
2108
|
}
|
|
2171
2109
|
/** @enumType */
|
|
2172
2110
|
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';
|
|
2173
2111
|
interface AutomationValidationError extends AutomationValidationErrorErrorOneOf {
|
|
2174
|
-
/**
|
|
2112
|
+
/** Automation configuration error. */
|
|
2175
2113
|
configurationError?: AutomationConfigurationError;
|
|
2176
|
-
/**
|
|
2114
|
+
/** Provider configuration error. */
|
|
2177
2115
|
providerConfigurationError?: ProviderConfigurationError;
|
|
2178
|
-
/**
|
|
2116
|
+
/** Validation error type. */
|
|
2179
2117
|
errorType?: AutomationValidationErrorValidationErrorTypeWithLiterals;
|
|
2180
|
-
/**
|
|
2118
|
+
/** Validation error severity */
|
|
2181
2119
|
errorSeverity?: SeverityWithLiterals;
|
|
2182
2120
|
}
|
|
2183
2121
|
/** @oneof */
|
|
2184
2122
|
interface AutomationValidationErrorErrorOneOf {
|
|
2185
|
-
/**
|
|
2123
|
+
/** Automation configuration error. */
|
|
2186
2124
|
configurationError?: AutomationConfigurationError;
|
|
2187
|
-
/**
|
|
2125
|
+
/** Provider configuration error. */
|
|
2188
2126
|
providerConfigurationError?: ProviderConfigurationError;
|
|
2189
2127
|
}
|
|
2190
2128
|
declare enum AutomationValidationErrorValidationErrorType {
|
|
2191
2129
|
UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
|
|
2192
|
-
/** Automation-level error caused by an error in the automation's configuration. */
|
|
2193
2130
|
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
2194
|
-
/** 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. */
|
|
2195
2131
|
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
2196
2132
|
}
|
|
2197
2133
|
/** @enumType */
|
|
@@ -2218,12 +2154,12 @@ interface ValidateAutomationByIdResponse {
|
|
|
2218
2154
|
/** Automation validation status. */
|
|
2219
2155
|
status?: ValidationResultStatusWithLiterals;
|
|
2220
2156
|
/**
|
|
2221
|
-
*
|
|
2157
|
+
* Validation errors related to the automation's trigger configuration.
|
|
2222
2158
|
* @maxSize 100
|
|
2223
2159
|
*/
|
|
2224
2160
|
triggerValidationErrors?: TriggerValidationError[];
|
|
2225
2161
|
/**
|
|
2226
|
-
*
|
|
2162
|
+
* Validation errors related to the automation's actions configuration.
|
|
2227
2163
|
* @maxSize 100
|
|
2228
2164
|
*/
|
|
2229
2165
|
actionValidationErrors?: ActionValidationError[];
|
|
@@ -3004,15 +2940,7 @@ declare function deleteDraftAutomation(automationId: string): Promise<void>;
|
|
|
3004
2940
|
*/
|
|
3005
2941
|
declare function publishDraftAutomation(automationId: string): Promise<NonNullablePaths<PublishDraftAutomationResponse, `automation.applicationInfo.appId` | `automation.preinstalledInfo.appId` | `automation.createdBy.userId` | `automation.createdBy.appId` | `automation.name` | `automation.configuration.status` | `automation.configuration.trigger.appId` | `automation.configuration.trigger.triggerKey` | `automation.configuration.trigger.filters` | `automation.configuration.trigger.filters.${number}._id` | `automation.configuration.trigger.filters.${number}.fieldKey` | `automation.configuration.trigger.filters.${number}.filterExpression` | `automation.configuration.trigger.scheduledEventOffset.preScheduledEventOffsetExpression` | `automation.configuration.trigger.scheduledEventOffset.scheduledEventOffsetTimeUnit` | `automation.configuration.trigger.rateLimit.maxActivationsExpression` | `automation.configuration.trigger.rateLimit.durationTimeUnit` | `automation.configuration.rootActionIds` | `automation.origin` | `automation.settings.hidden` | `automation.settings.readonly` | `automation.settings.disableDelete` | `automation.settings.disableStatusChange` | `automation.settings.actionSettings.permanentActionIds` | `automation.settings.actionSettings.readonlyActionIds` | `automation.archived`, 7>>;
|
|
3006
2942
|
/**
|
|
3007
|
-
* Validates
|
|
3008
|
-
*
|
|
3009
|
-
* This method:
|
|
3010
|
-
*
|
|
3011
|
-
* - Validates that the [trigger is properly configured](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-the-trigger).
|
|
3012
|
-
* - Validates that all [actions are properly configured](https://dev.wix.com/docs/api-reference/business-management/automations/automations/automations-v2/configure-your-automation#configuring-actions) with correct [input](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#understanding-input-mapping) and other mappings.
|
|
3013
|
-
* - Validates custom logic added by [trigger](https://dev.wix.com/docs/api-reference/business-management/automations/triggers/trigger-provider-service-plugin/validate-configuration) and [action providers](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/validate-configuration).
|
|
3014
|
-
*
|
|
3015
|
-
* > **Note**: This method identifies configuration errors but doesn't fix them. It does not modify the automation.
|
|
2943
|
+
* Validates the specified automation.
|
|
3016
2944
|
* @param automation - Automation to validate.
|
|
3017
2945
|
* @public
|
|
3018
2946
|
* @documentationMaturity preview
|
|
@@ -3023,13 +2951,7 @@ declare function publishDraftAutomation(automationId: string): Promise<NonNullab
|
|
|
3023
2951
|
*/
|
|
3024
2952
|
declare function validateAutomation(automation: Automation, options?: ValidateAutomationOptions): Promise<NonNullablePaths<ValidateAutomationResponse, `status` | `triggerValidationErrors` | `triggerValidationErrors.${number}.configurationError.errorType` | `triggerValidationErrors.${number}.providerConfigurationError.message` | `triggerValidationErrors.${number}.providerConfigurationError.title` | `triggerValidationErrors.${number}.errorType` | `triggerValidationErrors.${number}.errorSeverity` | `actionValidationErrors` | `actionValidationErrors.${number}.configurationError.errorType` | `actionValidationErrors.${number}.providerConfigurationError.message` | `actionValidationErrors.${number}.providerConfigurationError.title` | `actionValidationErrors.${number}.actionId` | `actionValidationErrors.${number}.appId` | `actionValidationErrors.${number}.actionKey` | `actionValidationErrors.${number}.errorType` | `actionValidationErrors.${number}.errorSeverity`, 5>>;
|
|
3025
2953
|
interface ValidateAutomationOptions {
|
|
3026
|
-
/**
|
|
3027
|
-
* Validation settings.
|
|
3028
|
-
*
|
|
3029
|
-
* When not specified, validates the full automation including trigger, actions, and provider validations.
|
|
3030
|
-
*
|
|
3031
|
-
* > **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).
|
|
3032
|
-
*/
|
|
2954
|
+
/** Automation validation settings. */
|
|
3033
2955
|
validationSettings?: ValidationSettings;
|
|
3034
2956
|
}
|
|
3035
2957
|
/**
|