@wix/auto_sdk_automations_automations-v-2 1.0.42 → 1.0.44
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 +17 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +84 -59
- package/build/cjs/index.typings.js +17 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +55 -95
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +15 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +84 -59
- package/build/es/index.typings.mjs +15 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +55 -95
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.js +17 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +84 -59
- package/build/internal/cjs/index.typings.js +17 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +55 -95
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.mjs +15 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +84 -59
- package/build/internal/es/index.typings.mjs +15 -4
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +55 -95
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -992,46 +992,52 @@ interface ValidationSettings {
|
|
|
992
992
|
skipProviderValidations?: boolean;
|
|
993
993
|
}
|
|
994
994
|
interface ValidateAutomationResponse {
|
|
995
|
-
/**
|
|
996
|
-
|
|
995
|
+
/** Automation validation status. */
|
|
996
|
+
status?: ValidationResultStatusWithLiterals;
|
|
997
997
|
/**
|
|
998
|
-
* Validation errors
|
|
998
|
+
* Validation errors related to the automation's trigger configuration.
|
|
999
999
|
* @maxSize 100
|
|
1000
1000
|
*/
|
|
1001
1001
|
triggerValidationErrors?: TriggerValidationError[];
|
|
1002
1002
|
/**
|
|
1003
|
-
* Validation
|
|
1003
|
+
* Validation errors related to the automation's actions configuration.
|
|
1004
1004
|
* @maxSize 100
|
|
1005
1005
|
*/
|
|
1006
|
-
|
|
1007
|
-
/**
|
|
1008
|
-
* Additional validation errors generated by the automation.
|
|
1009
|
-
* @maxSize 100
|
|
1010
|
-
*/
|
|
1011
|
-
automationValidationErrors?: AutomationValidationError[];
|
|
1006
|
+
actionValidationErrors?: ActionValidationError[];
|
|
1012
1007
|
}
|
|
1008
|
+
declare enum ValidationResultStatus {
|
|
1009
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
1010
|
+
/** Automation is valid - no validation errors found. */
|
|
1011
|
+
VALID = "VALID",
|
|
1012
|
+
/** Automation is partially valid - validation errors with Warning severity were found - might affect automation execution */
|
|
1013
|
+
VALID_WITH_WARNINGS = "VALID_WITH_WARNINGS",
|
|
1014
|
+
/** Automation is not valid, validation errors with Critical severity were found - prevents proper automation/action execution and should be fixed. */
|
|
1015
|
+
INVALID = "INVALID"
|
|
1016
|
+
}
|
|
1017
|
+
/** @enumType */
|
|
1018
|
+
type ValidationResultStatusWithLiterals = ValidationResultStatus | 'UNKNOWN_STATUS' | 'VALID' | 'VALID_WITH_WARNINGS' | 'INVALID';
|
|
1013
1019
|
interface TriggerValidationError extends TriggerValidationErrorErrorOneOf {
|
|
1014
|
-
/** Trigger configuration error. */
|
|
1020
|
+
/** Automation's Trigger configuration error. */
|
|
1015
1021
|
configurationError?: TriggerConfigurationError;
|
|
1016
|
-
/** Provider configuration error. */
|
|
1022
|
+
/** Trigger Provider configuration error. */
|
|
1017
1023
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1018
1024
|
/** Validation error type. */
|
|
1019
1025
|
errorType?: TriggerValidationErrorValidationErrorTypeWithLiterals;
|
|
1020
1026
|
/** Validation error severity */
|
|
1021
|
-
|
|
1027
|
+
errorSeverity?: SeverityWithLiterals;
|
|
1022
1028
|
}
|
|
1023
1029
|
/** @oneof */
|
|
1024
1030
|
interface TriggerValidationErrorErrorOneOf {
|
|
1025
|
-
/** Trigger configuration error. */
|
|
1031
|
+
/** Automation's Trigger configuration error. */
|
|
1026
1032
|
configurationError?: TriggerConfigurationError;
|
|
1027
|
-
/** Provider configuration error. */
|
|
1033
|
+
/** Trigger Provider configuration error. */
|
|
1028
1034
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1029
1035
|
}
|
|
1030
1036
|
declare enum TriggerValidationErrorValidationErrorType {
|
|
1031
1037
|
UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
|
|
1032
|
-
/** Configuration error. */
|
|
1038
|
+
/** Automation's Trigger Configuration error. */
|
|
1033
1039
|
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
1034
|
-
/** Provider error. */
|
|
1040
|
+
/** Trigger Provider related error. */
|
|
1035
1041
|
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
1036
1042
|
}
|
|
1037
1043
|
/** @enumType */
|
|
@@ -1042,14 +1048,10 @@ interface TriggerConfigurationError {
|
|
|
1042
1048
|
}
|
|
1043
1049
|
declare enum TriggerErrorType {
|
|
1044
1050
|
UNKNOWN_TRIGGER_ERROR_TYPE = "UNKNOWN_TRIGGER_ERROR_TYPE",
|
|
1045
|
-
/**
|
|
1051
|
+
/** Configured trigger was not found. */
|
|
1046
1052
|
NOT_FOUND = "NOT_FOUND",
|
|
1047
1053
|
/** App not installed. */
|
|
1048
1054
|
APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
|
|
1049
|
-
/** Moderation mismatch. */
|
|
1050
|
-
MODERATION_MISMATCH = "MODERATION_MISMATCH",
|
|
1051
|
-
/** Deprecated. */
|
|
1052
|
-
DEPRECATED = "DEPRECATED",
|
|
1053
1055
|
/** Invalid trigger key. */
|
|
1054
1056
|
INVALID_TRIGGER_KEY = "INVALID_TRIGGER_KEY",
|
|
1055
1057
|
/** Invalid filter field key. */
|
|
@@ -1060,7 +1062,7 @@ declare enum TriggerErrorType {
|
|
|
1060
1062
|
MISSING_REQUIRED_FILTER = "MISSING_REQUIRED_FILTER"
|
|
1061
1063
|
}
|
|
1062
1064
|
/** @enumType */
|
|
1063
|
-
type TriggerErrorTypeWithLiterals = TriggerErrorType | 'UNKNOWN_TRIGGER_ERROR_TYPE' | 'NOT_FOUND' | 'APP_NOT_INSTALLED' | '
|
|
1065
|
+
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';
|
|
1064
1066
|
interface ProviderConfigurationError {
|
|
1065
1067
|
/** Key corresponding to the field in the schema. */
|
|
1066
1068
|
fieldKey?: string | null;
|
|
@@ -1073,21 +1075,25 @@ interface ProviderConfigurationError {
|
|
|
1073
1075
|
/** Title for the error. */
|
|
1074
1076
|
title?: string;
|
|
1075
1077
|
}
|
|
1076
|
-
declare enum
|
|
1077
|
-
|
|
1078
|
-
/**
|
|
1078
|
+
declare enum Severity {
|
|
1079
|
+
UNKNOWN_SEVERITY = "UNKNOWN_SEVERITY",
|
|
1080
|
+
/** Low severity error - may affect automation execution. */
|
|
1079
1081
|
WARNING = "WARNING",
|
|
1080
|
-
/**
|
|
1081
|
-
|
|
1082
|
+
/** Critical severity error - prevents proper automation execution and should be fixed. */
|
|
1083
|
+
CRITICAL = "CRITICAL"
|
|
1082
1084
|
}
|
|
1083
1085
|
/** @enumType */
|
|
1084
|
-
type
|
|
1085
|
-
interface
|
|
1086
|
+
type SeverityWithLiterals = Severity | 'UNKNOWN_SEVERITY' | 'WARNING' | 'CRITICAL';
|
|
1087
|
+
interface ActionValidationError extends ActionValidationErrorErrorOneOf {
|
|
1088
|
+
/** Action configuration error. */
|
|
1089
|
+
configurationError?: ActionConfigurationError;
|
|
1090
|
+
/** Provider configuration error. */
|
|
1091
|
+
providerConfigurationError?: ProviderConfigurationError;
|
|
1086
1092
|
/**
|
|
1087
|
-
* Action
|
|
1093
|
+
* Action Identifier in the Automation.
|
|
1088
1094
|
* @format GUID
|
|
1089
1095
|
*/
|
|
1090
|
-
actionId?: string
|
|
1096
|
+
actionId?: string;
|
|
1091
1097
|
/**
|
|
1092
1098
|
* ID of the app that defined the action.
|
|
1093
1099
|
* @format GUID
|
|
@@ -1099,21 +1105,10 @@ interface ActionValidationInfo {
|
|
|
1099
1105
|
* @maxLength 100
|
|
1100
1106
|
*/
|
|
1101
1107
|
actionKey?: string;
|
|
1102
|
-
/**
|
|
1103
|
-
* Action validation errors.
|
|
1104
|
-
* @maxSize 100
|
|
1105
|
-
*/
|
|
1106
|
-
validationErrors?: ActionValidationError[];
|
|
1107
|
-
}
|
|
1108
|
-
interface ActionValidationError extends ActionValidationErrorErrorOneOf {
|
|
1109
|
-
/** Action configuration error. */
|
|
1110
|
-
configurationError?: ActionConfigurationError;
|
|
1111
|
-
/** Provider configuration error. */
|
|
1112
|
-
providerConfigurationError?: ProviderConfigurationError;
|
|
1113
1108
|
/** Validation error type. */
|
|
1114
1109
|
errorType?: ValidationErrorTypeWithLiterals;
|
|
1115
1110
|
/** Validation error severity */
|
|
1116
|
-
|
|
1111
|
+
errorSeverity?: SeverityWithLiterals;
|
|
1117
1112
|
}
|
|
1118
1113
|
/** @oneof */
|
|
1119
1114
|
interface ActionValidationErrorErrorOneOf {
|
|
@@ -1134,62 +1129,32 @@ type ValidationErrorTypeWithLiterals = ValidationErrorType | 'UNKNOWN_VALIDATION
|
|
|
1134
1129
|
interface ActionConfigurationError {
|
|
1135
1130
|
/** Action error type. */
|
|
1136
1131
|
errorType?: ActionErrorTypeWithLiterals;
|
|
1137
|
-
/**
|
|
1138
|
-
* Related field key.
|
|
1139
|
-
* @maxLength 110
|
|
1140
|
-
*/
|
|
1141
|
-
fieldKey?: string | null;
|
|
1142
1132
|
}
|
|
1143
1133
|
declare enum ActionErrorType {
|
|
1144
1134
|
UNKNOWN_ACTION_ERROR_TYPE = "UNKNOWN_ACTION_ERROR_TYPE",
|
|
1135
|
+
/** Configured action was not found. */
|
|
1145
1136
|
NOT_FOUND = "NOT_FOUND",
|
|
1137
|
+
/** App not installed. */
|
|
1146
1138
|
APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
|
|
1147
|
-
|
|
1148
|
-
DEPRECATED = "DEPRECATED",
|
|
1139
|
+
/** Invalid action key. */
|
|
1149
1140
|
INVALID_ACTION_KEY = "INVALID_ACTION_KEY",
|
|
1141
|
+
/** Invalid mapping */
|
|
1150
1142
|
INVALID_MAPPING = "INVALID_MAPPING",
|
|
1143
|
+
/** Mapping type mismatch. */
|
|
1151
1144
|
MAPPING_TYPE_MISMATCH = "MAPPING_TYPE_MISMATCH",
|
|
1145
|
+
/** Mapping missing required field. */
|
|
1152
1146
|
MAPPING_MISSING_REQUIRED_FIELD = "MAPPING_MISSING_REQUIRED_FIELD",
|
|
1147
|
+
/** Mapping schema mismatch. */
|
|
1153
1148
|
MAPPING_SCHEMA_MISMATCH = "MAPPING_SCHEMA_MISMATCH",
|
|
1149
|
+
/** Mapping variable missing from schema. */
|
|
1154
1150
|
MAPPING_VARIABLE_MISSING_FROM_SCHEMA = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA",
|
|
1151
|
+
/** Sample code run failed. */
|
|
1155
1152
|
SAMPLE_CODE_RUN_FAILED = "SAMPLE_CODE_RUN_FAILED",
|
|
1153
|
+
/** Configured post action not found. */
|
|
1156
1154
|
POST_ACTION_NOT_FOUND = "POST_ACTION_NOT_FOUND"
|
|
1157
1155
|
}
|
|
1158
1156
|
/** @enumType */
|
|
1159
|
-
type ActionErrorTypeWithLiterals = ActionErrorType | 'UNKNOWN_ACTION_ERROR_TYPE' | 'NOT_FOUND' | 'APP_NOT_INSTALLED' | '
|
|
1160
|
-
interface AutomationValidationError extends AutomationValidationErrorErrorOneOf {
|
|
1161
|
-
/** Automation configuration error. */
|
|
1162
|
-
configurationError?: AutomationConfigurationError;
|
|
1163
|
-
/** Provider configuration error. */
|
|
1164
|
-
providerConfigurationError?: ProviderConfigurationError;
|
|
1165
|
-
/** Validation error type. */
|
|
1166
|
-
errorType?: AutomationValidationErrorValidationErrorTypeWithLiterals;
|
|
1167
|
-
/** Validation error severity. */
|
|
1168
|
-
severity?: ValidationErrorSeverityWithLiterals;
|
|
1169
|
-
}
|
|
1170
|
-
/** @oneof */
|
|
1171
|
-
interface AutomationValidationErrorErrorOneOf {
|
|
1172
|
-
/** Automation configuration error. */
|
|
1173
|
-
configurationError?: AutomationConfigurationError;
|
|
1174
|
-
/** Provider configuration error. */
|
|
1175
|
-
providerConfigurationError?: ProviderConfigurationError;
|
|
1176
|
-
}
|
|
1177
|
-
declare enum AutomationValidationErrorValidationErrorType {
|
|
1178
|
-
UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
|
|
1179
|
-
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
1180
|
-
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
1181
|
-
}
|
|
1182
|
-
/** @enumType */
|
|
1183
|
-
type AutomationValidationErrorValidationErrorTypeWithLiterals = AutomationValidationErrorValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
|
|
1184
|
-
interface AutomationConfigurationError {
|
|
1185
|
-
/** Automation error type. */
|
|
1186
|
-
errorType?: AutomationErrorTypeWithLiterals;
|
|
1187
|
-
}
|
|
1188
|
-
declare enum AutomationErrorType {
|
|
1189
|
-
UNKNOWN_AUTOMATION_ERROR_TYPE = "UNKNOWN_AUTOMATION_ERROR_TYPE"
|
|
1190
|
-
}
|
|
1191
|
-
/** @enumType */
|
|
1192
|
-
type AutomationErrorTypeWithLiterals = AutomationErrorType | 'UNKNOWN_AUTOMATION_ERROR_TYPE';
|
|
1157
|
+
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';
|
|
1193
1158
|
interface ValidateAutomationByIdRequest {
|
|
1194
1159
|
/**
|
|
1195
1160
|
* Automation ID.
|
|
@@ -1200,23 +1165,18 @@ interface ValidateAutomationByIdRequest {
|
|
|
1200
1165
|
validationSettings?: ValidationSettings;
|
|
1201
1166
|
}
|
|
1202
1167
|
interface ValidateAutomationByIdResponse {
|
|
1203
|
-
/**
|
|
1204
|
-
|
|
1168
|
+
/** Automation validation status. */
|
|
1169
|
+
status?: ValidationResultStatusWithLiterals;
|
|
1205
1170
|
/**
|
|
1206
|
-
* Validation errors
|
|
1171
|
+
* Validation errors related to the automation's trigger configuration.
|
|
1207
1172
|
* @maxSize 100
|
|
1208
1173
|
*/
|
|
1209
1174
|
triggerValidationErrors?: TriggerValidationError[];
|
|
1210
1175
|
/**
|
|
1211
|
-
* Validation
|
|
1212
|
-
* @maxSize 100
|
|
1213
|
-
*/
|
|
1214
|
-
actionValidationInfo?: ActionValidationInfo[];
|
|
1215
|
-
/**
|
|
1216
|
-
* Additional validation errors generated by the automation.
|
|
1176
|
+
* Validation errors related to the automation's actions configuration.
|
|
1217
1177
|
* @maxSize 100
|
|
1218
1178
|
*/
|
|
1219
|
-
|
|
1179
|
+
actionValidationErrors?: ActionValidationError[];
|
|
1220
1180
|
}
|
|
1221
1181
|
interface GetAutomationRevisionRequest {
|
|
1222
1182
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { Automation, UpdateAutomation, BulkDeleteAutomationsResponse, GeneratePreinstalledAutomationOptions, GeneratePreinstalledAutomationResponse, AutomationsQueryBuilder, GetAggregatedUsageInfoOptions, GetAggregatedUsageInfoResponse, CopyAutomationOptions, CopyAutomationResponse, CreateDraftAutomationOptions, CreateDraftAutomationResponse, GetOrCreateDraftAutomationResponse, UpdateDraftAutomation, UpdateDraftAutomationResponse, QueryAutomationsWithDraftsOptions, QueryAutomationsWithDraftsResponse, BulkCountAutomationsWithDraftsOptions, BulkCountAutomationsWithDraftsResponse, PublishDraftAutomationResponse, ValidateAutomationOptions, ValidateAutomationResponse, ValidateAutomationByIdOptions, ValidateAutomationByIdResponse, GetAutomationRevisionOptions, GetAutomationRevisionResponse, AutomationCreatedEnvelope, AutomationDeletedEnvelope, AutomationUpdatedEnvelope } from './index.typings.js';
|
|
3
|
-
export { Action, ActionConfigurationError, ActionErrorType, ActionErrorTypeWithLiterals, ActionEvent, ActionInfoOneOf, ActionProviderQuotaInfo, ActionQuotaInfo, ActionSettings, ActionUsageSummary, ActionValidationError, ActionValidationErrorErrorOneOf, ActionValidationInfo, AdditionalInfo, AppDefinedAction, ApplicationError, ApplicationOrigin, Asset, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, AutomationConfiguration, AutomationConfigurationError, AutomationErrorType, AutomationErrorTypeWithLiterals, AutomationOriginInfoOneOf, AutomationSettings, AutomationValidationError, AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, AutomationValidationErrorValidationErrorTypeWithLiterals, AutomationsQueryResult, BaseEventMetadata, BulkActionMetadata, BulkCountAutomationsWithDraftsRequest, BulkDeleteAutomationsRequest, BulkDeleteResult, CTA, CodeConditionAction, CodeSnippet, ConditionAction, ConditionExpressionGroup, CopyAutomationRequest, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationRequest, CreatePreinstalledAutomationRequest, CreatePreinstalledAutomationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DelayAction, DeleteAutomationRequest, DeleteAutomationResponse, DeleteContext, DeleteDraftAutomationRequest, DeleteDraftAutomationResponse, DeletePreinstalledAutomationRequest, DeletePreinstalledAutomationResponse, DeleteStatus, DeleteStatusWithLiterals, DeletedWithEntity, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, DraftPublished, DraftsInfo, Empty, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GeneratePreinstalledAutomationRequest, GetActionsQuotaInfoRequest, GetActionsQuotaInfoResponse, GetAggregatedUsageInfoRequest, GetAutomationActionSchemaRequest, GetAutomationActionSchemaResponse, GetAutomationRequest, GetAutomationResponse, GetAutomationRevisionRequest, GetOrCreateDraftAutomationRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, Language, LanguageWithLiterals, MergeOverridePreinstalledWithRuntimeVersionRequest, MergeOverridePreinstalledWithRuntimeVersionResponse, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, MigrateVeloActionAutomationsRequest, MigrateVeloActionAutomationsResponse, Namespace, NamespaceChanged, NamespaceWithLiterals, Note, Notes, OdeditorAssigned, OdeditorUnassigned, Offset, Operator, OperatorWithLiterals, Origin, OriginAutomationInfo, OriginWithLiterals, OutputAction, Path, PicassoAssigned, PicassoUnassigned, Plan, Position, PreinstalledAutomationSpecInfo, PreinstalledOrigin, ProviderConfigurationError, PublishDraftAutomationRequest, QueryAutomationsRequest, QueryAutomationsResponse, QueryAutomationsWithDraftsRequest, QueryPreinstalledAutomationsForAppRequest, QueryPreinstalledAutomationsForAppResponse, QueryPreinstalledAutomationsRequest, QueryPreinstalledAutomationsResponse, Quota, QuotaInfo, RateLimit, RateLimitAction, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetVariablesAction, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SplitAction, State, StateWithLiterals, Status, StatusWithLiterals, StudioAssigned, StudioUnassigned, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerConfigurationError, TriggerErrorType, TriggerErrorTypeWithLiterals, TriggerUsageSummary, TriggerValidationError, TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, TriggerValidationErrorValidationErrorTypeWithLiterals, Type, TypeWithLiterals, UpdateAutomationRequest, UpdateAutomationResponse, UpdateDraftAutomationRequest, UpdatePreinstalledAutomationRequest, UpdatePreinstalledAutomationResponse, UpdatedWithPreviousEntity, UpgradeCTA, ValidateAutomationByIdRequest, ValidateAutomationRequest, ValidationErrorSeverity, ValidationErrorSeverityWithLiterals, ValidationErrorType, ValidationErrorTypeWithLiterals, ValidationSettings, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
3
|
+
export { Action, ActionConfigurationError, ActionErrorType, ActionErrorTypeWithLiterals, ActionEvent, ActionInfoOneOf, ActionProviderQuotaInfo, ActionQuotaInfo, ActionSettings, ActionUsageSummary, ActionValidationError, ActionValidationErrorErrorOneOf, ActionValidationInfo, AdditionalInfo, AppDefinedAction, ApplicationError, ApplicationOrigin, Asset, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, AutomationConfiguration, AutomationConfigurationError, AutomationErrorType, AutomationErrorTypeWithLiterals, AutomationOriginInfoOneOf, AutomationSettings, AutomationValidationError, AutomationValidationErrorErrorOneOf, AutomationValidationErrorValidationErrorType, AutomationValidationErrorValidationErrorTypeWithLiterals, AutomationsQueryResult, BaseEventMetadata, BulkActionMetadata, BulkCountAutomationsWithDraftsRequest, BulkDeleteAutomationsRequest, BulkDeleteResult, CTA, CodeConditionAction, CodeSnippet, ConditionAction, ConditionExpressionGroup, CopyAutomationRequest, CreateAutomationRequest, CreateAutomationResponse, CreateDraftAutomationRequest, CreatePreinstalledAutomationRequest, CreatePreinstalledAutomationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DelayAction, DeleteAutomationRequest, DeleteAutomationResponse, DeleteContext, DeleteDraftAutomationRequest, DeleteDraftAutomationResponse, DeletePreinstalledAutomationRequest, DeletePreinstalledAutomationResponse, DeleteStatus, DeleteStatusWithLiterals, DeletedWithEntity, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, DraftPublished, DraftsInfo, Empty, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GeneratePreinstalledAutomationRequest, GetActionsQuotaInfoRequest, GetActionsQuotaInfoResponse, GetAggregatedUsageInfoRequest, GetAutomationActionSchemaRequest, GetAutomationActionSchemaResponse, GetAutomationRequest, GetAutomationResponse, GetAutomationRevisionRequest, GetOrCreateDraftAutomationRequest, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, Language, LanguageWithLiterals, MergeOverridePreinstalledWithRuntimeVersionRequest, MergeOverridePreinstalledWithRuntimeVersionResponse, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, MigrateVeloActionAutomationsRequest, MigrateVeloActionAutomationsResponse, Namespace, NamespaceChanged, NamespaceWithLiterals, Note, Notes, OdeditorAssigned, OdeditorUnassigned, Offset, Operator, OperatorWithLiterals, Origin, OriginAutomationInfo, OriginWithLiterals, OutputAction, Path, PicassoAssigned, PicassoUnassigned, Plan, Position, PreinstalledAutomationSpecInfo, PreinstalledOrigin, ProviderConfigurationError, PublishDraftAutomationRequest, QueryAutomationsRequest, QueryAutomationsResponse, QueryAutomationsWithDraftsRequest, QueryPreinstalledAutomationsForAppRequest, QueryPreinstalledAutomationsForAppResponse, QueryPreinstalledAutomationsRequest, QueryPreinstalledAutomationsResponse, Quota, QuotaInfo, RateLimit, RateLimitAction, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, ServiceProvisioned, ServiceRemoved, SetVariablesAction, Severity, SeverityWithLiterals, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SplitAction, State, StateWithLiterals, Status, StatusWithLiterals, StudioAssigned, StudioUnassigned, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerConfigurationError, TriggerErrorType, TriggerErrorTypeWithLiterals, TriggerUsageSummary, TriggerValidationError, TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType, TriggerValidationErrorValidationErrorTypeWithLiterals, Type, TypeWithLiterals, UpdateAutomationRequest, UpdateAutomationResponse, UpdateDraftAutomationRequest, UpdatePreinstalledAutomationRequest, UpdatePreinstalledAutomationResponse, UpdatedWithPreviousEntity, UpgradeCTA, ValidateAutomationByIdRequest, ValidateAutomationRequest, ValidationErrorSeverity, ValidationErrorSeverityWithLiterals, ValidationErrorType, ValidationErrorTypeWithLiterals, ValidationResultStatus, ValidationResultStatusWithLiterals, ValidationSettings, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createAutomation$1(httpClient: HttpClient): CreateAutomationSignature;
|
|
6
6
|
interface CreateAutomationSignature {
|
|
@@ -159,7 +159,7 @@ interface ValidateAutomationSignature {
|
|
|
159
159
|
* Validates the specified automation.
|
|
160
160
|
* @param - Automation to validate.
|
|
161
161
|
*/
|
|
162
|
-
(automation: Automation, options?: ValidateAutomationOptions): Promise<NonNullablePaths<ValidateAutomationResponse, `
|
|
162
|
+
(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>>;
|
|
163
163
|
}
|
|
164
164
|
declare function validateAutomationById$1(httpClient: HttpClient): ValidateAutomationByIdSignature;
|
|
165
165
|
interface ValidateAutomationByIdSignature {
|
|
@@ -167,7 +167,7 @@ interface ValidateAutomationByIdSignature {
|
|
|
167
167
|
* Validates the automation specified by ID.
|
|
168
168
|
* @param - Automation ID.
|
|
169
169
|
*/
|
|
170
|
-
(automationId: string, options?: ValidateAutomationByIdOptions): Promise<NonNullablePaths<ValidateAutomationByIdResponse, `
|
|
170
|
+
(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>>;
|
|
171
171
|
}
|
|
172
172
|
declare function getAutomationRevision$1(httpClient: HttpClient): GetAutomationRevisionSignature;
|
|
173
173
|
interface GetAutomationRevisionSignature {
|
|
@@ -30,6 +30,7 @@ __export(index_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_exports, {
|
|
|
40
41
|
Type: () => Type,
|
|
41
42
|
ValidationErrorSeverity: () => ValidationErrorSeverity,
|
|
42
43
|
ValidationErrorType: () => ValidationErrorType,
|
|
44
|
+
ValidationResultStatus: () => ValidationResultStatus,
|
|
43
45
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
44
46
|
bulkCountAutomationsWithDrafts: () => bulkCountAutomationsWithDrafts4,
|
|
45
47
|
bulkDeleteAutomations: () => bulkDeleteAutomations4,
|
|
@@ -850,6 +852,13 @@ var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
|
850
852
|
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
851
853
|
return DeleteStatus2;
|
|
852
854
|
})(DeleteStatus || {});
|
|
855
|
+
var ValidationResultStatus = /* @__PURE__ */ ((ValidationResultStatus2) => {
|
|
856
|
+
ValidationResultStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
857
|
+
ValidationResultStatus2["VALID"] = "VALID";
|
|
858
|
+
ValidationResultStatus2["VALID_WITH_WARNINGS"] = "VALID_WITH_WARNINGS";
|
|
859
|
+
ValidationResultStatus2["INVALID"] = "INVALID";
|
|
860
|
+
return ValidationResultStatus2;
|
|
861
|
+
})(ValidationResultStatus || {});
|
|
853
862
|
var TriggerValidationErrorValidationErrorType = /* @__PURE__ */ ((TriggerValidationErrorValidationErrorType2) => {
|
|
854
863
|
TriggerValidationErrorValidationErrorType2["UNKNOWN_VALIDATION_ERROR_TYPE"] = "UNKNOWN_VALIDATION_ERROR_TYPE";
|
|
855
864
|
TriggerValidationErrorValidationErrorType2["CONFIGURATION_ERROR"] = "CONFIGURATION_ERROR";
|
|
@@ -860,8 +869,6 @@ var TriggerErrorType = /* @__PURE__ */ ((TriggerErrorType2) => {
|
|
|
860
869
|
TriggerErrorType2["UNKNOWN_TRIGGER_ERROR_TYPE"] = "UNKNOWN_TRIGGER_ERROR_TYPE";
|
|
861
870
|
TriggerErrorType2["NOT_FOUND"] = "NOT_FOUND";
|
|
862
871
|
TriggerErrorType2["APP_NOT_INSTALLED"] = "APP_NOT_INSTALLED";
|
|
863
|
-
TriggerErrorType2["MODERATION_MISMATCH"] = "MODERATION_MISMATCH";
|
|
864
|
-
TriggerErrorType2["DEPRECATED"] = "DEPRECATED";
|
|
865
872
|
TriggerErrorType2["INVALID_TRIGGER_KEY"] = "INVALID_TRIGGER_KEY";
|
|
866
873
|
TriggerErrorType2["INVALID_FILTER_FIELD_KEY"] = "INVALID_FILTER_FIELD_KEY";
|
|
867
874
|
TriggerErrorType2["INVALID_FILTER_EXPRESSION"] = "INVALID_FILTER_EXPRESSION";
|
|
@@ -874,6 +881,12 @@ var ValidationErrorSeverity = /* @__PURE__ */ ((ValidationErrorSeverity2) => {
|
|
|
874
881
|
ValidationErrorSeverity2["ERROR"] = "ERROR";
|
|
875
882
|
return ValidationErrorSeverity2;
|
|
876
883
|
})(ValidationErrorSeverity || {});
|
|
884
|
+
var Severity = /* @__PURE__ */ ((Severity2) => {
|
|
885
|
+
Severity2["UNKNOWN_SEVERITY"] = "UNKNOWN_SEVERITY";
|
|
886
|
+
Severity2["WARNING"] = "WARNING";
|
|
887
|
+
Severity2["CRITICAL"] = "CRITICAL";
|
|
888
|
+
return Severity2;
|
|
889
|
+
})(Severity || {});
|
|
877
890
|
var ValidationErrorType = /* @__PURE__ */ ((ValidationErrorType2) => {
|
|
878
891
|
ValidationErrorType2["UNKNOWN_VALIDATION_ERROR_TYPE"] = "UNKNOWN_VALIDATION_ERROR_TYPE";
|
|
879
892
|
ValidationErrorType2["CONFIGURATION_ERROR"] = "CONFIGURATION_ERROR";
|
|
@@ -884,8 +897,6 @@ var ActionErrorType = /* @__PURE__ */ ((ActionErrorType2) => {
|
|
|
884
897
|
ActionErrorType2["UNKNOWN_ACTION_ERROR_TYPE"] = "UNKNOWN_ACTION_ERROR_TYPE";
|
|
885
898
|
ActionErrorType2["NOT_FOUND"] = "NOT_FOUND";
|
|
886
899
|
ActionErrorType2["APP_NOT_INSTALLED"] = "APP_NOT_INSTALLED";
|
|
887
|
-
ActionErrorType2["MODERATION_MISMATCH"] = "MODERATION_MISMATCH";
|
|
888
|
-
ActionErrorType2["DEPRECATED"] = "DEPRECATED";
|
|
889
900
|
ActionErrorType2["INVALID_ACTION_KEY"] = "INVALID_ACTION_KEY";
|
|
890
901
|
ActionErrorType2["INVALID_MAPPING"] = "INVALID_MAPPING";
|
|
891
902
|
ActionErrorType2["MAPPING_TYPE_MISMATCH"] = "MAPPING_TYPE_MISMATCH";
|
|
@@ -1661,6 +1672,7 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
|
|
|
1661
1672
|
Operator,
|
|
1662
1673
|
Origin,
|
|
1663
1674
|
RequestedFields,
|
|
1675
|
+
Severity,
|
|
1664
1676
|
SiteCreatedContext,
|
|
1665
1677
|
SortOrder,
|
|
1666
1678
|
State,
|
|
@@ -1671,6 +1683,7 @@ var onAutomationUpdated2 = (0, import_event_definition_modules.createEventModule
|
|
|
1671
1683
|
Type,
|
|
1672
1684
|
ValidationErrorSeverity,
|
|
1673
1685
|
ValidationErrorType,
|
|
1686
|
+
ValidationResultStatus,
|
|
1674
1687
|
WebhookIdentityType,
|
|
1675
1688
|
bulkCountAutomationsWithDrafts,
|
|
1676
1689
|
bulkDeleteAutomations,
|