@wix/auto_sdk_automations_automations-v-2 1.0.41 → 1.0.43
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 +3 -3
- package/build/cjs/index.js +19 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +72 -68
- package/build/cjs/index.typings.js +19 -10
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +55 -114
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +17 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +72 -68
- package/build/es/index.typings.mjs +17 -10
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +55 -114
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.js +19 -10
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +72 -68
- package/build/internal/cjs/index.typings.js +19 -10
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +55 -114
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.mjs +17 -10
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +72 -68
- package/build/internal/es/index.typings.mjs +17 -10
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +55 -114
- package/package.json +2 -2
|
@@ -1803,25 +1803,6 @@ interface BulkCountAutomationsWithDraftsRequest {
|
|
|
1803
1803
|
* @targetRemovalDate 2025-09-01
|
|
1804
1804
|
*/
|
|
1805
1805
|
filters?: Record<string, any>[] | null;
|
|
1806
|
-
/** @maxSize 3 */
|
|
1807
|
-
automationFilters?: AutomationFilters[];
|
|
1808
|
-
}
|
|
1809
|
-
interface AutomationFilters {
|
|
1810
|
-
/**
|
|
1811
|
-
* Array of filters in the following format:
|
|
1812
|
-
*
|
|
1813
|
-
* `"filter" :
|
|
1814
|
-
* [{
|
|
1815
|
-
* "fieldName1": "value1",
|
|
1816
|
-
* "fieldName2":{"$operator":"value2"}
|
|
1817
|
-
* }, {
|
|
1818
|
-
* "fieldName3": "value3",
|
|
1819
|
-
* "fieldName4":{"$operator":"value4"}
|
|
1820
|
-
* }]`
|
|
1821
|
-
*
|
|
1822
|
-
* Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
|
|
1823
|
-
*/
|
|
1824
|
-
filter?: Record<string, any> | null;
|
|
1825
1806
|
}
|
|
1826
1807
|
interface BulkCountAutomationsWithDraftsResponse {
|
|
1827
1808
|
/** Total automations count */
|
|
@@ -1870,46 +1851,52 @@ interface ValidationSettings {
|
|
|
1870
1851
|
skipProviderValidations?: boolean;
|
|
1871
1852
|
}
|
|
1872
1853
|
interface ValidateAutomationResponse {
|
|
1873
|
-
/**
|
|
1874
|
-
|
|
1854
|
+
/** Automation validation status. */
|
|
1855
|
+
status?: ValidationResultStatusWithLiterals;
|
|
1875
1856
|
/**
|
|
1876
|
-
* Validation errors
|
|
1857
|
+
* Validation errors related to the automation's trigger configuration.
|
|
1877
1858
|
* @maxSize 100
|
|
1878
1859
|
*/
|
|
1879
1860
|
triggerValidationErrors?: TriggerValidationError[];
|
|
1880
1861
|
/**
|
|
1881
|
-
* Validation
|
|
1862
|
+
* Validation errors related to the automation's actions configuration.
|
|
1882
1863
|
* @maxSize 100
|
|
1883
1864
|
*/
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1865
|
+
actionValidationErrors?: ActionValidationError[];
|
|
1866
|
+
}
|
|
1867
|
+
declare enum ValidationResultStatus {
|
|
1868
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
1869
|
+
/** Automation is valid - no validation errors found. */
|
|
1870
|
+
VALID = "VALID",
|
|
1871
|
+
/** Automation is partially valid - validation errors with Warning severity were found - might affect automation execution */
|
|
1872
|
+
VALID_WITH_WARNINGS = "VALID_WITH_WARNINGS",
|
|
1873
|
+
/** Automation is not valid, validation errors with Critical severity were found - prevents proper automation/action execution and should be fixed. */
|
|
1874
|
+
INVALID = "INVALID"
|
|
1890
1875
|
}
|
|
1876
|
+
/** @enumType */
|
|
1877
|
+
type ValidationResultStatusWithLiterals = ValidationResultStatus | 'UNKNOWN_STATUS' | 'VALID' | 'VALID_WITH_WARNINGS' | 'INVALID';
|
|
1891
1878
|
interface TriggerValidationError extends TriggerValidationErrorErrorOneOf {
|
|
1892
|
-
/** Trigger configuration error. */
|
|
1879
|
+
/** Automation's Trigger configuration error. */
|
|
1893
1880
|
configurationError?: TriggerConfigurationError;
|
|
1894
|
-
/** Provider configuration error. */
|
|
1881
|
+
/** Trigger Provider configuration error. */
|
|
1895
1882
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1896
1883
|
/** Validation error type. */
|
|
1897
1884
|
errorType?: TriggerValidationErrorValidationErrorTypeWithLiterals;
|
|
1898
1885
|
/** Validation error severity */
|
|
1899
|
-
|
|
1886
|
+
errorSeverity?: SeverityWithLiterals;
|
|
1900
1887
|
}
|
|
1901
1888
|
/** @oneof */
|
|
1902
1889
|
interface TriggerValidationErrorErrorOneOf {
|
|
1903
|
-
/** Trigger configuration error. */
|
|
1890
|
+
/** Automation's Trigger configuration error. */
|
|
1904
1891
|
configurationError?: TriggerConfigurationError;
|
|
1905
|
-
/** Provider configuration error. */
|
|
1892
|
+
/** Trigger Provider configuration error. */
|
|
1906
1893
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1907
1894
|
}
|
|
1908
1895
|
declare enum TriggerValidationErrorValidationErrorType {
|
|
1909
1896
|
UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
|
|
1910
|
-
/** Configuration error. */
|
|
1897
|
+
/** Automation's Trigger Configuration error. */
|
|
1911
1898
|
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
1912
|
-
/** Provider error. */
|
|
1899
|
+
/** Trigger Provider related error. */
|
|
1913
1900
|
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
1914
1901
|
}
|
|
1915
1902
|
/** @enumType */
|
|
@@ -1920,14 +1907,10 @@ interface TriggerConfigurationError {
|
|
|
1920
1907
|
}
|
|
1921
1908
|
declare enum TriggerErrorType {
|
|
1922
1909
|
UNKNOWN_TRIGGER_ERROR_TYPE = "UNKNOWN_TRIGGER_ERROR_TYPE",
|
|
1923
|
-
/**
|
|
1910
|
+
/** Configured trigger was not found. */
|
|
1924
1911
|
NOT_FOUND = "NOT_FOUND",
|
|
1925
1912
|
/** App not installed. */
|
|
1926
1913
|
APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
|
|
1927
|
-
/** Moderation mismatch. */
|
|
1928
|
-
MODERATION_MISMATCH = "MODERATION_MISMATCH",
|
|
1929
|
-
/** Deprecated. */
|
|
1930
|
-
DEPRECATED = "DEPRECATED",
|
|
1931
1914
|
/** Invalid trigger key. */
|
|
1932
1915
|
INVALID_TRIGGER_KEY = "INVALID_TRIGGER_KEY",
|
|
1933
1916
|
/** Invalid filter field key. */
|
|
@@ -1938,7 +1921,7 @@ declare enum TriggerErrorType {
|
|
|
1938
1921
|
MISSING_REQUIRED_FILTER = "MISSING_REQUIRED_FILTER"
|
|
1939
1922
|
}
|
|
1940
1923
|
/** @enumType */
|
|
1941
|
-
type TriggerErrorTypeWithLiterals = TriggerErrorType | 'UNKNOWN_TRIGGER_ERROR_TYPE' | 'NOT_FOUND' | 'APP_NOT_INSTALLED' | '
|
|
1924
|
+
type TriggerErrorTypeWithLiterals = TriggerErrorType | 'UNKNOWN_TRIGGER_ERROR_TYPE' | 'NOT_FOUND' | 'APP_NOT_INSTALLED' | 'INVALID_TRIGGER_KEY' | 'INVALID_FILTER_FIELD_KEY' | 'INVALID_FILTER_EXPRESSION' | 'MISSING_REQUIRED_FILTER';
|
|
1942
1925
|
interface ProviderConfigurationError {
|
|
1943
1926
|
/** Key corresponding to the field in the schema. */
|
|
1944
1927
|
fieldKey?: string | null;
|
|
@@ -1960,6 +1943,15 @@ declare enum ValidationErrorSeverity {
|
|
|
1960
1943
|
}
|
|
1961
1944
|
/** @enumType */
|
|
1962
1945
|
type ValidationErrorSeverityWithLiterals = ValidationErrorSeverity | 'UNKNOWN_VALIDATION_ERROR_SEVERITY' | 'WARNING' | 'ERROR';
|
|
1946
|
+
declare enum Severity {
|
|
1947
|
+
UNKNOWN_SEVERITY = "UNKNOWN_SEVERITY",
|
|
1948
|
+
/** Low severity error - may affect automation execution. */
|
|
1949
|
+
WARNING = "WARNING",
|
|
1950
|
+
/** Critical severity error - prevents proper automation execution and should be fixed. */
|
|
1951
|
+
CRITICAL = "CRITICAL"
|
|
1952
|
+
}
|
|
1953
|
+
/** @enumType */
|
|
1954
|
+
type SeverityWithLiterals = Severity | 'UNKNOWN_SEVERITY' | 'WARNING' | 'CRITICAL';
|
|
1963
1955
|
interface ActionValidationInfo {
|
|
1964
1956
|
/**
|
|
1965
1957
|
* Action ID.
|
|
@@ -1988,10 +1980,26 @@ interface ActionValidationError extends ActionValidationErrorErrorOneOf {
|
|
|
1988
1980
|
configurationError?: ActionConfigurationError;
|
|
1989
1981
|
/** Provider configuration error. */
|
|
1990
1982
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1983
|
+
/**
|
|
1984
|
+
* Action Identifier in the Automation.
|
|
1985
|
+
* @format GUID
|
|
1986
|
+
*/
|
|
1987
|
+
actionId?: string;
|
|
1988
|
+
/**
|
|
1989
|
+
* ID of the app that defined the action.
|
|
1990
|
+
* @format GUID
|
|
1991
|
+
*/
|
|
1992
|
+
appId?: string;
|
|
1993
|
+
/**
|
|
1994
|
+
* Human-readable action identifier.
|
|
1995
|
+
* @minLength 1
|
|
1996
|
+
* @maxLength 100
|
|
1997
|
+
*/
|
|
1998
|
+
actionKey?: string;
|
|
1991
1999
|
/** Validation error type. */
|
|
1992
2000
|
errorType?: ValidationErrorTypeWithLiterals;
|
|
1993
2001
|
/** Validation error severity */
|
|
1994
|
-
|
|
2002
|
+
errorSeverity?: SeverityWithLiterals;
|
|
1995
2003
|
}
|
|
1996
2004
|
/** @oneof */
|
|
1997
2005
|
interface ActionValidationErrorErrorOneOf {
|
|
@@ -2012,29 +2020,32 @@ type ValidationErrorTypeWithLiterals = ValidationErrorType | 'UNKNOWN_VALIDATION
|
|
|
2012
2020
|
interface ActionConfigurationError {
|
|
2013
2021
|
/** Action error type. */
|
|
2014
2022
|
errorType?: ActionErrorTypeWithLiterals;
|
|
2015
|
-
/**
|
|
2016
|
-
* Related field key.
|
|
2017
|
-
* @maxLength 110
|
|
2018
|
-
*/
|
|
2019
|
-
fieldKey?: string | null;
|
|
2020
2023
|
}
|
|
2021
2024
|
declare enum ActionErrorType {
|
|
2022
2025
|
UNKNOWN_ACTION_ERROR_TYPE = "UNKNOWN_ACTION_ERROR_TYPE",
|
|
2026
|
+
/** Configured action was not found. */
|
|
2023
2027
|
NOT_FOUND = "NOT_FOUND",
|
|
2028
|
+
/** App not installed. */
|
|
2024
2029
|
APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
|
|
2025
|
-
|
|
2026
|
-
DEPRECATED = "DEPRECATED",
|
|
2030
|
+
/** Invalid action key. */
|
|
2027
2031
|
INVALID_ACTION_KEY = "INVALID_ACTION_KEY",
|
|
2032
|
+
/** Invalid mapping */
|
|
2028
2033
|
INVALID_MAPPING = "INVALID_MAPPING",
|
|
2034
|
+
/** Mapping type mismatch. */
|
|
2029
2035
|
MAPPING_TYPE_MISMATCH = "MAPPING_TYPE_MISMATCH",
|
|
2036
|
+
/** Mapping missing required field. */
|
|
2030
2037
|
MAPPING_MISSING_REQUIRED_FIELD = "MAPPING_MISSING_REQUIRED_FIELD",
|
|
2038
|
+
/** Mapping schema mismatch. */
|
|
2031
2039
|
MAPPING_SCHEMA_MISMATCH = "MAPPING_SCHEMA_MISMATCH",
|
|
2040
|
+
/** Mapping variable missing from schema. */
|
|
2032
2041
|
MAPPING_VARIABLE_MISSING_FROM_SCHEMA = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA",
|
|
2042
|
+
/** Sample code run failed. */
|
|
2033
2043
|
SAMPLE_CODE_RUN_FAILED = "SAMPLE_CODE_RUN_FAILED",
|
|
2044
|
+
/** Configured post action not found. */
|
|
2034
2045
|
POST_ACTION_NOT_FOUND = "POST_ACTION_NOT_FOUND"
|
|
2035
2046
|
}
|
|
2036
2047
|
/** @enumType */
|
|
2037
|
-
type ActionErrorTypeWithLiterals = ActionErrorType | 'UNKNOWN_ACTION_ERROR_TYPE' | 'NOT_FOUND' | 'APP_NOT_INSTALLED' | '
|
|
2048
|
+
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';
|
|
2038
2049
|
interface AutomationValidationError extends AutomationValidationErrorErrorOneOf {
|
|
2039
2050
|
/** Automation configuration error. */
|
|
2040
2051
|
configurationError?: AutomationConfigurationError;
|
|
@@ -2042,8 +2053,8 @@ interface AutomationValidationError extends AutomationValidationErrorErrorOneOf
|
|
|
2042
2053
|
providerConfigurationError?: ProviderConfigurationError;
|
|
2043
2054
|
/** Validation error type. */
|
|
2044
2055
|
errorType?: AutomationValidationErrorValidationErrorTypeWithLiterals;
|
|
2045
|
-
/** Validation error severity
|
|
2046
|
-
|
|
2056
|
+
/** Validation error severity */
|
|
2057
|
+
errorSeverity?: SeverityWithLiterals;
|
|
2047
2058
|
}
|
|
2048
2059
|
/** @oneof */
|
|
2049
2060
|
interface AutomationValidationErrorErrorOneOf {
|
|
@@ -2078,23 +2089,18 @@ interface ValidateAutomationByIdRequest {
|
|
|
2078
2089
|
validationSettings?: ValidationSettings;
|
|
2079
2090
|
}
|
|
2080
2091
|
interface ValidateAutomationByIdResponse {
|
|
2081
|
-
/**
|
|
2082
|
-
|
|
2092
|
+
/** Automation validation status. */
|
|
2093
|
+
status?: ValidationResultStatusWithLiterals;
|
|
2083
2094
|
/**
|
|
2084
|
-
* Validation errors
|
|
2095
|
+
* Validation errors related to the automation's trigger configuration.
|
|
2085
2096
|
* @maxSize 100
|
|
2086
2097
|
*/
|
|
2087
2098
|
triggerValidationErrors?: TriggerValidationError[];
|
|
2088
2099
|
/**
|
|
2089
|
-
* Validation
|
|
2090
|
-
* @maxSize 100
|
|
2091
|
-
*/
|
|
2092
|
-
actionValidationInfo?: ActionValidationInfo[];
|
|
2093
|
-
/**
|
|
2094
|
-
* Additional validation errors generated by the automation.
|
|
2100
|
+
* Validation errors related to the automation's actions configuration.
|
|
2095
2101
|
* @maxSize 100
|
|
2096
2102
|
*/
|
|
2097
|
-
|
|
2103
|
+
actionValidationErrors?: ActionValidationError[];
|
|
2098
2104
|
}
|
|
2099
2105
|
interface GetAutomationActionSchemaRequest {
|
|
2100
2106
|
/**
|
|
@@ -2834,8 +2840,6 @@ interface BulkCountAutomationsWithDraftsOptions {
|
|
|
2834
2840
|
* @targetRemovalDate 2025-09-01
|
|
2835
2841
|
*/
|
|
2836
2842
|
filters?: Record<string, any>[] | null;
|
|
2837
|
-
/** @maxSize 3 */
|
|
2838
|
-
automationFilters?: AutomationFilters[];
|
|
2839
2843
|
}
|
|
2840
2844
|
/**
|
|
2841
2845
|
* Deletes a draft automation.
|
|
@@ -2869,7 +2873,7 @@ declare function publishDraftAutomation(automationId: string): Promise<NonNullab
|
|
|
2869
2873
|
* @applicableIdentity APP
|
|
2870
2874
|
* @fqn wix.automations.v2.AutomationsService.ValidateAutomation
|
|
2871
2875
|
*/
|
|
2872
|
-
declare function validateAutomation(automation: Automation, options?: ValidateAutomationOptions): Promise<NonNullablePaths<ValidateAutomationResponse, `
|
|
2876
|
+
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>>;
|
|
2873
2877
|
interface ValidateAutomationOptions {
|
|
2874
2878
|
/** Automation validation settings. */
|
|
2875
2879
|
validationSettings?: ValidationSettings;
|
|
@@ -2884,7 +2888,7 @@ interface ValidateAutomationOptions {
|
|
|
2884
2888
|
* @applicableIdentity APP
|
|
2885
2889
|
* @fqn wix.automations.v2.AutomationsService.ValidateAutomationById
|
|
2886
2890
|
*/
|
|
2887
|
-
declare function validateAutomationById(automationId: string, options?: ValidateAutomationByIdOptions): Promise<NonNullablePaths<ValidateAutomationByIdResponse, `
|
|
2891
|
+
declare function validateAutomationById(automationId: string, options?: ValidateAutomationByIdOptions): Promise<NonNullablePaths<ValidateAutomationByIdResponse, `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>>;
|
|
2888
2892
|
interface ValidateAutomationByIdOptions {
|
|
2889
2893
|
/** Validation settings. */
|
|
2890
2894
|
validationSettings?: ValidationSettings;
|
|
@@ -2910,4 +2914,4 @@ interface GetAutomationRevisionOptions {
|
|
|
2910
2914
|
fields?: RequestedFieldsWithLiterals[];
|
|
2911
2915
|
}
|
|
2912
2916
|
|
|
2913
|
-
export { type Action, type ActionConfigurationError, ActionErrorType, type ActionErrorTypeWithLiterals, type ActionEvent, type ActionInfoOneOf, type ActionProviderQuotaInfo, type ActionQuotaInfo, type ActionSettings, type ActionUsageSummary, type ActionValidationError, type ActionValidationErrorErrorOneOf, type ActionValidationInfo, type AdditionalInfo, type AppDefinedAction, type ApplicationError, type ApplicationOrigin, type Asset, type AuditInfo, type AuditInfoIdOneOf, type AutoArchivePolicy, type Automation, type AutomationConfiguration, type AutomationConfigurationError, type AutomationCreatedEnvelope, type AutomationDeletedEnvelope, AutomationErrorType, type AutomationErrorTypeWithLiterals, type
|
|
2917
|
+
export { type Action, type ActionConfigurationError, ActionErrorType, type ActionErrorTypeWithLiterals, type ActionEvent, type ActionInfoOneOf, type ActionProviderQuotaInfo, type ActionQuotaInfo, type ActionSettings, type ActionUsageSummary, type ActionValidationError, type ActionValidationErrorErrorOneOf, type ActionValidationInfo, type AdditionalInfo, type AppDefinedAction, type ApplicationError, type ApplicationOrigin, type Asset, type AuditInfo, type AuditInfoIdOneOf, type AutoArchivePolicy, type Automation, type AutomationConfiguration, type AutomationConfigurationError, type AutomationCreatedEnvelope, type AutomationDeletedEnvelope, AutomationErrorType, type AutomationErrorTypeWithLiterals, type AutomationOriginInfoOneOf, type AutomationSettings, type AutomationUpdatedEnvelope, type AutomationValidationError, type AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, type AutomationValidationErrorValidationErrorTypeWithLiterals, type AutomationsQueryBuilder, type AutomationsQueryResult, type BaseEventMetadata, type BulkActionMetadata, type BulkCountAutomationsWithDraftsOptions, type BulkCountAutomationsWithDraftsRequest, type BulkCountAutomationsWithDraftsResponse, type BulkDeleteAutomationsRequest, type BulkDeleteAutomationsResponse, type BulkDeleteResult, type CTA, type CodeConditionAction, type CodeSnippet, type ConditionAction, type ConditionExpressionGroup, type CopyAutomationOptions, type CopyAutomationRequest, type CopyAutomationResponse, type CreateAutomationRequest, type CreateAutomationResponse, type CreateDraftAutomationOptions, type CreateDraftAutomationRequest, type CreateDraftAutomationResponse, type CreatePreinstalledAutomationRequest, type CreatePreinstalledAutomationResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DelayAction, type DeleteAutomationRequest, type DeleteAutomationResponse, type DeleteContext, type DeleteDraftAutomationRequest, type DeleteDraftAutomationResponse, type DeletePreinstalledAutomationRequest, type DeletePreinstalledAutomationResponse, DeleteStatus, type DeleteStatusWithLiterals, type DeletedWithEntity, type Dimensions, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type DraftPublished, type DraftsInfo, type Empty, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type Filter, type FilterValueSelection, type FilterableAppDefinedActions, type FutureDateActivationOffset, type GeneratePreinstalledAutomationOptions, type GeneratePreinstalledAutomationRequest, type GeneratePreinstalledAutomationResponse, type GetActionsQuotaInfoRequest, type GetActionsQuotaInfoResponse, type GetAggregatedUsageInfoOptions, type GetAggregatedUsageInfoRequest, type GetAggregatedUsageInfoResponse, type GetAutomationActionSchemaRequest, type GetAutomationActionSchemaResponse, type GetAutomationRequest, type GetAutomationResponse, type GetAutomationRevisionOptions, type GetAutomationRevisionRequest, type GetAutomationRevisionResponse, type GetOrCreateDraftAutomationRequest, type GetOrCreateDraftAutomationResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, Language, type LanguageWithLiterals, type MergeOverridePreinstalledWithRuntimeVersionRequest, type MergeOverridePreinstalledWithRuntimeVersionResponse, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MigrateVeloActionAutomationsRequest, type MigrateVeloActionAutomationsResponse, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type Note, type Notes, type OdeditorAssigned, type OdeditorUnassigned, type Offset, Operator, type OperatorWithLiterals, Origin, type OriginAutomationInfo, type OriginWithLiterals, type OutputAction, type Path, type PicassoAssigned, type PicassoUnassigned, type Plan, type Position, type PreinstalledAutomationSpecInfo, type PreinstalledOrigin, type ProviderConfigurationError, type PublishDraftAutomationRequest, type PublishDraftAutomationResponse, type QueryAutomationsRequest, type QueryAutomationsResponse, type QueryAutomationsWithDraftsOptions, type QueryAutomationsWithDraftsRequest, type QueryAutomationsWithDraftsResponse, type QueryPreinstalledAutomationsForAppRequest, type QueryPreinstalledAutomationsForAppResponse, type QueryPreinstalledAutomationsRequest, type QueryPreinstalledAutomationsResponse, type Quota, type QuotaInfo, type RateLimit, type RateLimitAction, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SetVariablesAction, Severity, type SeverityWithLiterals, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SplitAction, State, type StateWithLiterals, Status, type StatusWithLiterals, type StudioAssigned, type StudioUnassigned, TimeUnit, type TimeUnitWithLiterals, type Trigger, type TriggerConfigurationError, TriggerErrorType, type TriggerErrorTypeWithLiterals, type TriggerUsageSummary, type TriggerValidationError, type TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, type TriggerValidationErrorValidationErrorTypeWithLiterals, Type, type TypeWithLiterals, type UpdateAutomation, type UpdateAutomationRequest, type UpdateAutomationResponse, type UpdateDraftAutomation, type UpdateDraftAutomationRequest, type UpdateDraftAutomationResponse, type UpdatePreinstalledAutomationRequest, type UpdatePreinstalledAutomationResponse, type UpdatedWithPreviousEntity, type UpgradeCTA, type ValidateAutomationByIdOptions, type ValidateAutomationByIdRequest, type ValidateAutomationByIdResponse, type ValidateAutomationOptions, type ValidateAutomationRequest, type ValidateAutomationResponse, ValidationErrorSeverity, type ValidationErrorSeverityWithLiterals, ValidationErrorType, type ValidationErrorTypeWithLiterals, ValidationResultStatus, type ValidationResultStatusWithLiterals, type ValidationSettings, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCountAutomationsWithDrafts, bulkDeleteAutomations, copyAutomation, createAutomation, createDraftAutomation, deleteAutomation, deleteDraftAutomation, generatePreinstalledAutomation, getAggregatedUsageInfo, getAutomation, getAutomationRevision, getOrCreateDraftAutomation, onAutomationCreated, onAutomationDeleted, onAutomationUpdated, publishDraftAutomation, queryAutomations, queryAutomationsWithDrafts, updateAutomation, updateDraftAutomation, validateAutomation, validateAutomationById };
|
|
@@ -30,6 +30,7 @@ __export(index_typings_exports, {
|
|
|
30
30
|
Operator: () => Operator,
|
|
31
31
|
Origin: () => Origin,
|
|
32
32
|
RequestedFields: () => RequestedFields,
|
|
33
|
+
Severity: () => Severity,
|
|
33
34
|
SiteCreatedContext: () => SiteCreatedContext,
|
|
34
35
|
SortOrder: () => SortOrder,
|
|
35
36
|
State: () => State,
|
|
@@ -40,6 +41,7 @@ __export(index_typings_exports, {
|
|
|
40
41
|
Type: () => Type,
|
|
41
42
|
ValidationErrorSeverity: () => ValidationErrorSeverity,
|
|
42
43
|
ValidationErrorType: () => ValidationErrorType,
|
|
44
|
+
ValidationResultStatus: () => ValidationResultStatus,
|
|
43
45
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
44
46
|
bulkCountAutomationsWithDrafts: () => bulkCountAutomationsWithDrafts2,
|
|
45
47
|
bulkDeleteAutomations: () => bulkDeleteAutomations2,
|
|
@@ -841,6 +843,13 @@ var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
|
841
843
|
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
842
844
|
return DeleteStatus2;
|
|
843
845
|
})(DeleteStatus || {});
|
|
846
|
+
var ValidationResultStatus = /* @__PURE__ */ ((ValidationResultStatus2) => {
|
|
847
|
+
ValidationResultStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
848
|
+
ValidationResultStatus2["VALID"] = "VALID";
|
|
849
|
+
ValidationResultStatus2["VALID_WITH_WARNINGS"] = "VALID_WITH_WARNINGS";
|
|
850
|
+
ValidationResultStatus2["INVALID"] = "INVALID";
|
|
851
|
+
return ValidationResultStatus2;
|
|
852
|
+
})(ValidationResultStatus || {});
|
|
844
853
|
var TriggerValidationErrorValidationErrorType = /* @__PURE__ */ ((TriggerValidationErrorValidationErrorType2) => {
|
|
845
854
|
TriggerValidationErrorValidationErrorType2["UNKNOWN_VALIDATION_ERROR_TYPE"] = "UNKNOWN_VALIDATION_ERROR_TYPE";
|
|
846
855
|
TriggerValidationErrorValidationErrorType2["CONFIGURATION_ERROR"] = "CONFIGURATION_ERROR";
|
|
@@ -851,8 +860,6 @@ var TriggerErrorType = /* @__PURE__ */ ((TriggerErrorType2) => {
|
|
|
851
860
|
TriggerErrorType2["UNKNOWN_TRIGGER_ERROR_TYPE"] = "UNKNOWN_TRIGGER_ERROR_TYPE";
|
|
852
861
|
TriggerErrorType2["NOT_FOUND"] = "NOT_FOUND";
|
|
853
862
|
TriggerErrorType2["APP_NOT_INSTALLED"] = "APP_NOT_INSTALLED";
|
|
854
|
-
TriggerErrorType2["MODERATION_MISMATCH"] = "MODERATION_MISMATCH";
|
|
855
|
-
TriggerErrorType2["DEPRECATED"] = "DEPRECATED";
|
|
856
863
|
TriggerErrorType2["INVALID_TRIGGER_KEY"] = "INVALID_TRIGGER_KEY";
|
|
857
864
|
TriggerErrorType2["INVALID_FILTER_FIELD_KEY"] = "INVALID_FILTER_FIELD_KEY";
|
|
858
865
|
TriggerErrorType2["INVALID_FILTER_EXPRESSION"] = "INVALID_FILTER_EXPRESSION";
|
|
@@ -865,6 +872,12 @@ var ValidationErrorSeverity = /* @__PURE__ */ ((ValidationErrorSeverity2) => {
|
|
|
865
872
|
ValidationErrorSeverity2["ERROR"] = "ERROR";
|
|
866
873
|
return ValidationErrorSeverity2;
|
|
867
874
|
})(ValidationErrorSeverity || {});
|
|
875
|
+
var Severity = /* @__PURE__ */ ((Severity2) => {
|
|
876
|
+
Severity2["UNKNOWN_SEVERITY"] = "UNKNOWN_SEVERITY";
|
|
877
|
+
Severity2["WARNING"] = "WARNING";
|
|
878
|
+
Severity2["CRITICAL"] = "CRITICAL";
|
|
879
|
+
return Severity2;
|
|
880
|
+
})(Severity || {});
|
|
868
881
|
var ValidationErrorType = /* @__PURE__ */ ((ValidationErrorType2) => {
|
|
869
882
|
ValidationErrorType2["UNKNOWN_VALIDATION_ERROR_TYPE"] = "UNKNOWN_VALIDATION_ERROR_TYPE";
|
|
870
883
|
ValidationErrorType2["CONFIGURATION_ERROR"] = "CONFIGURATION_ERROR";
|
|
@@ -875,8 +888,6 @@ var ActionErrorType = /* @__PURE__ */ ((ActionErrorType2) => {
|
|
|
875
888
|
ActionErrorType2["UNKNOWN_ACTION_ERROR_TYPE"] = "UNKNOWN_ACTION_ERROR_TYPE";
|
|
876
889
|
ActionErrorType2["NOT_FOUND"] = "NOT_FOUND";
|
|
877
890
|
ActionErrorType2["APP_NOT_INSTALLED"] = "APP_NOT_INSTALLED";
|
|
878
|
-
ActionErrorType2["MODERATION_MISMATCH"] = "MODERATION_MISMATCH";
|
|
879
|
-
ActionErrorType2["DEPRECATED"] = "DEPRECATED";
|
|
880
891
|
ActionErrorType2["INVALID_ACTION_KEY"] = "INVALID_ACTION_KEY";
|
|
881
892
|
ActionErrorType2["INVALID_MAPPING"] = "INVALID_MAPPING";
|
|
882
893
|
ActionErrorType2["MAPPING_TYPE_MISMATCH"] = "MAPPING_TYPE_MISMATCH";
|
|
@@ -1251,8 +1262,7 @@ async function queryAutomationsWithDrafts2(options) {
|
|
|
1251
1262
|
async function bulkCountAutomationsWithDrafts2(options) {
|
|
1252
1263
|
const { httpClient, sideEffects } = arguments[1];
|
|
1253
1264
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1254
|
-
filters: options?.filters
|
|
1255
|
-
automationFilters: options?.automationFilters
|
|
1265
|
+
filters: options?.filters
|
|
1256
1266
|
});
|
|
1257
1267
|
const reqOpts = bulkCountAutomationsWithDrafts(
|
|
1258
1268
|
payload
|
|
@@ -1267,10 +1277,7 @@ async function bulkCountAutomationsWithDrafts2(options) {
|
|
|
1267
1277
|
err,
|
|
1268
1278
|
{
|
|
1269
1279
|
spreadPathsToArguments: {},
|
|
1270
|
-
explicitPathsToArguments: {
|
|
1271
|
-
filters: "$[0].filters",
|
|
1272
|
-
automationFilters: "$[0].automationFilters"
|
|
1273
|
-
},
|
|
1280
|
+
explicitPathsToArguments: { filters: "$[0].filters" },
|
|
1274
1281
|
singleArgumentUnchanged: false
|
|
1275
1282
|
},
|
|
1276
1283
|
["options"]
|
|
@@ -1429,6 +1436,7 @@ async function getAutomationRevision2(automationId, options) {
|
|
|
1429
1436
|
Operator,
|
|
1430
1437
|
Origin,
|
|
1431
1438
|
RequestedFields,
|
|
1439
|
+
Severity,
|
|
1432
1440
|
SiteCreatedContext,
|
|
1433
1441
|
SortOrder,
|
|
1434
1442
|
State,
|
|
@@ -1439,6 +1447,7 @@ async function getAutomationRevision2(automationId, options) {
|
|
|
1439
1447
|
Type,
|
|
1440
1448
|
ValidationErrorSeverity,
|
|
1441
1449
|
ValidationErrorType,
|
|
1450
|
+
ValidationResultStatus,
|
|
1442
1451
|
WebhookIdentityType,
|
|
1443
1452
|
bulkCountAutomationsWithDrafts,
|
|
1444
1453
|
bulkDeleteAutomations,
|