@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 };
|
|
@@ -779,6 +779,13 @@ var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
|
779
779
|
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
780
780
|
return DeleteStatus2;
|
|
781
781
|
})(DeleteStatus || {});
|
|
782
|
+
var ValidationResultStatus = /* @__PURE__ */ ((ValidationResultStatus2) => {
|
|
783
|
+
ValidationResultStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
784
|
+
ValidationResultStatus2["VALID"] = "VALID";
|
|
785
|
+
ValidationResultStatus2["VALID_WITH_WARNINGS"] = "VALID_WITH_WARNINGS";
|
|
786
|
+
ValidationResultStatus2["INVALID"] = "INVALID";
|
|
787
|
+
return ValidationResultStatus2;
|
|
788
|
+
})(ValidationResultStatus || {});
|
|
782
789
|
var TriggerValidationErrorValidationErrorType = /* @__PURE__ */ ((TriggerValidationErrorValidationErrorType2) => {
|
|
783
790
|
TriggerValidationErrorValidationErrorType2["UNKNOWN_VALIDATION_ERROR_TYPE"] = "UNKNOWN_VALIDATION_ERROR_TYPE";
|
|
784
791
|
TriggerValidationErrorValidationErrorType2["CONFIGURATION_ERROR"] = "CONFIGURATION_ERROR";
|
|
@@ -789,8 +796,6 @@ var TriggerErrorType = /* @__PURE__ */ ((TriggerErrorType2) => {
|
|
|
789
796
|
TriggerErrorType2["UNKNOWN_TRIGGER_ERROR_TYPE"] = "UNKNOWN_TRIGGER_ERROR_TYPE";
|
|
790
797
|
TriggerErrorType2["NOT_FOUND"] = "NOT_FOUND";
|
|
791
798
|
TriggerErrorType2["APP_NOT_INSTALLED"] = "APP_NOT_INSTALLED";
|
|
792
|
-
TriggerErrorType2["MODERATION_MISMATCH"] = "MODERATION_MISMATCH";
|
|
793
|
-
TriggerErrorType2["DEPRECATED"] = "DEPRECATED";
|
|
794
799
|
TriggerErrorType2["INVALID_TRIGGER_KEY"] = "INVALID_TRIGGER_KEY";
|
|
795
800
|
TriggerErrorType2["INVALID_FILTER_FIELD_KEY"] = "INVALID_FILTER_FIELD_KEY";
|
|
796
801
|
TriggerErrorType2["INVALID_FILTER_EXPRESSION"] = "INVALID_FILTER_EXPRESSION";
|
|
@@ -803,6 +808,12 @@ var ValidationErrorSeverity = /* @__PURE__ */ ((ValidationErrorSeverity2) => {
|
|
|
803
808
|
ValidationErrorSeverity2["ERROR"] = "ERROR";
|
|
804
809
|
return ValidationErrorSeverity2;
|
|
805
810
|
})(ValidationErrorSeverity || {});
|
|
811
|
+
var Severity = /* @__PURE__ */ ((Severity2) => {
|
|
812
|
+
Severity2["UNKNOWN_SEVERITY"] = "UNKNOWN_SEVERITY";
|
|
813
|
+
Severity2["WARNING"] = "WARNING";
|
|
814
|
+
Severity2["CRITICAL"] = "CRITICAL";
|
|
815
|
+
return Severity2;
|
|
816
|
+
})(Severity || {});
|
|
806
817
|
var ValidationErrorType = /* @__PURE__ */ ((ValidationErrorType2) => {
|
|
807
818
|
ValidationErrorType2["UNKNOWN_VALIDATION_ERROR_TYPE"] = "UNKNOWN_VALIDATION_ERROR_TYPE";
|
|
808
819
|
ValidationErrorType2["CONFIGURATION_ERROR"] = "CONFIGURATION_ERROR";
|
|
@@ -813,8 +824,6 @@ var ActionErrorType = /* @__PURE__ */ ((ActionErrorType2) => {
|
|
|
813
824
|
ActionErrorType2["UNKNOWN_ACTION_ERROR_TYPE"] = "UNKNOWN_ACTION_ERROR_TYPE";
|
|
814
825
|
ActionErrorType2["NOT_FOUND"] = "NOT_FOUND";
|
|
815
826
|
ActionErrorType2["APP_NOT_INSTALLED"] = "APP_NOT_INSTALLED";
|
|
816
|
-
ActionErrorType2["MODERATION_MISMATCH"] = "MODERATION_MISMATCH";
|
|
817
|
-
ActionErrorType2["DEPRECATED"] = "DEPRECATED";
|
|
818
827
|
ActionErrorType2["INVALID_ACTION_KEY"] = "INVALID_ACTION_KEY";
|
|
819
828
|
ActionErrorType2["INVALID_MAPPING"] = "INVALID_MAPPING";
|
|
820
829
|
ActionErrorType2["MAPPING_TYPE_MISMATCH"] = "MAPPING_TYPE_MISMATCH";
|
|
@@ -1189,8 +1198,7 @@ async function queryAutomationsWithDrafts2(options) {
|
|
|
1189
1198
|
async function bulkCountAutomationsWithDrafts2(options) {
|
|
1190
1199
|
const { httpClient, sideEffects } = arguments[1];
|
|
1191
1200
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1192
|
-
filters: options?.filters
|
|
1193
|
-
automationFilters: options?.automationFilters
|
|
1201
|
+
filters: options?.filters
|
|
1194
1202
|
});
|
|
1195
1203
|
const reqOpts = bulkCountAutomationsWithDrafts(
|
|
1196
1204
|
payload
|
|
@@ -1205,10 +1213,7 @@ async function bulkCountAutomationsWithDrafts2(options) {
|
|
|
1205
1213
|
err,
|
|
1206
1214
|
{
|
|
1207
1215
|
spreadPathsToArguments: {},
|
|
1208
|
-
explicitPathsToArguments: {
|
|
1209
|
-
filters: "$[0].filters",
|
|
1210
|
-
automationFilters: "$[0].automationFilters"
|
|
1211
|
-
},
|
|
1216
|
+
explicitPathsToArguments: { filters: "$[0].filters" },
|
|
1212
1217
|
singleArgumentUnchanged: false
|
|
1213
1218
|
},
|
|
1214
1219
|
["options"]
|
|
@@ -1366,6 +1371,7 @@ export {
|
|
|
1366
1371
|
Operator,
|
|
1367
1372
|
Origin,
|
|
1368
1373
|
RequestedFields,
|
|
1374
|
+
Severity,
|
|
1369
1375
|
SiteCreatedContext,
|
|
1370
1376
|
SortOrder,
|
|
1371
1377
|
State,
|
|
@@ -1376,6 +1382,7 @@ export {
|
|
|
1376
1382
|
Type,
|
|
1377
1383
|
ValidationErrorSeverity,
|
|
1378
1384
|
ValidationErrorType,
|
|
1385
|
+
ValidationResultStatus,
|
|
1379
1386
|
WebhookIdentityType,
|
|
1380
1387
|
bulkCountAutomationsWithDrafts2 as bulkCountAutomationsWithDrafts,
|
|
1381
1388
|
bulkDeleteAutomations2 as bulkDeleteAutomations,
|