@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
package/build/cjs/meta.d.ts
CHANGED
|
@@ -944,25 +944,6 @@ interface BulkCountAutomationsWithDraftsRequest {
|
|
|
944
944
|
* @targetRemovalDate 2025-09-01
|
|
945
945
|
*/
|
|
946
946
|
filters?: Record<string, any>[] | null;
|
|
947
|
-
/** @maxSize 3 */
|
|
948
|
-
automationFilters?: AutomationFilters[];
|
|
949
|
-
}
|
|
950
|
-
interface AutomationFilters {
|
|
951
|
-
/**
|
|
952
|
-
* Array of filters in the following format:
|
|
953
|
-
*
|
|
954
|
-
* `"filter" :
|
|
955
|
-
* [{
|
|
956
|
-
* "fieldName1": "value1",
|
|
957
|
-
* "fieldName2":{"$operator":"value2"}
|
|
958
|
-
* }, {
|
|
959
|
-
* "fieldName3": "value3",
|
|
960
|
-
* "fieldName4":{"$operator":"value4"}
|
|
961
|
-
* }]`
|
|
962
|
-
*
|
|
963
|
-
* Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
|
|
964
|
-
*/
|
|
965
|
-
filter?: Record<string, any> | null;
|
|
966
947
|
}
|
|
967
948
|
interface BulkCountAutomationsWithDraftsResponse {
|
|
968
949
|
/** Total automations count */
|
|
@@ -1011,46 +992,52 @@ interface ValidationSettings {
|
|
|
1011
992
|
skipProviderValidations?: boolean;
|
|
1012
993
|
}
|
|
1013
994
|
interface ValidateAutomationResponse {
|
|
1014
|
-
/**
|
|
1015
|
-
|
|
995
|
+
/** Automation validation status. */
|
|
996
|
+
status?: ValidationResultStatusWithLiterals;
|
|
1016
997
|
/**
|
|
1017
|
-
* Validation errors
|
|
998
|
+
* Validation errors related to the automation's trigger configuration.
|
|
1018
999
|
* @maxSize 100
|
|
1019
1000
|
*/
|
|
1020
1001
|
triggerValidationErrors?: TriggerValidationError[];
|
|
1021
1002
|
/**
|
|
1022
|
-
* Validation
|
|
1003
|
+
* Validation errors related to the automation's actions configuration.
|
|
1023
1004
|
* @maxSize 100
|
|
1024
1005
|
*/
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1006
|
+
actionValidationErrors?: ActionValidationError[];
|
|
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"
|
|
1031
1016
|
}
|
|
1017
|
+
/** @enumType */
|
|
1018
|
+
type ValidationResultStatusWithLiterals = ValidationResultStatus | 'UNKNOWN_STATUS' | 'VALID' | 'VALID_WITH_WARNINGS' | 'INVALID';
|
|
1032
1019
|
interface TriggerValidationError extends TriggerValidationErrorErrorOneOf {
|
|
1033
|
-
/** Trigger configuration error. */
|
|
1020
|
+
/** Automation's Trigger configuration error. */
|
|
1034
1021
|
configurationError?: TriggerConfigurationError;
|
|
1035
|
-
/** Provider configuration error. */
|
|
1022
|
+
/** Trigger Provider configuration error. */
|
|
1036
1023
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1037
1024
|
/** Validation error type. */
|
|
1038
1025
|
errorType?: TriggerValidationErrorValidationErrorTypeWithLiterals;
|
|
1039
1026
|
/** Validation error severity */
|
|
1040
|
-
|
|
1027
|
+
errorSeverity?: SeverityWithLiterals;
|
|
1041
1028
|
}
|
|
1042
1029
|
/** @oneof */
|
|
1043
1030
|
interface TriggerValidationErrorErrorOneOf {
|
|
1044
|
-
/** Trigger configuration error. */
|
|
1031
|
+
/** Automation's Trigger configuration error. */
|
|
1045
1032
|
configurationError?: TriggerConfigurationError;
|
|
1046
|
-
/** Provider configuration error. */
|
|
1033
|
+
/** Trigger Provider configuration error. */
|
|
1047
1034
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1048
1035
|
}
|
|
1049
1036
|
declare enum TriggerValidationErrorValidationErrorType {
|
|
1050
1037
|
UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
|
|
1051
|
-
/** Configuration error. */
|
|
1038
|
+
/** Automation's Trigger Configuration error. */
|
|
1052
1039
|
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
1053
|
-
/** Provider error. */
|
|
1040
|
+
/** Trigger Provider related error. */
|
|
1054
1041
|
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
1055
1042
|
}
|
|
1056
1043
|
/** @enumType */
|
|
@@ -1061,14 +1048,10 @@ interface TriggerConfigurationError {
|
|
|
1061
1048
|
}
|
|
1062
1049
|
declare enum TriggerErrorType {
|
|
1063
1050
|
UNKNOWN_TRIGGER_ERROR_TYPE = "UNKNOWN_TRIGGER_ERROR_TYPE",
|
|
1064
|
-
/**
|
|
1051
|
+
/** Configured trigger was not found. */
|
|
1065
1052
|
NOT_FOUND = "NOT_FOUND",
|
|
1066
1053
|
/** App not installed. */
|
|
1067
1054
|
APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
|
|
1068
|
-
/** Moderation mismatch. */
|
|
1069
|
-
MODERATION_MISMATCH = "MODERATION_MISMATCH",
|
|
1070
|
-
/** Deprecated. */
|
|
1071
|
-
DEPRECATED = "DEPRECATED",
|
|
1072
1055
|
/** Invalid trigger key. */
|
|
1073
1056
|
INVALID_TRIGGER_KEY = "INVALID_TRIGGER_KEY",
|
|
1074
1057
|
/** Invalid filter field key. */
|
|
@@ -1079,7 +1062,7 @@ declare enum TriggerErrorType {
|
|
|
1079
1062
|
MISSING_REQUIRED_FILTER = "MISSING_REQUIRED_FILTER"
|
|
1080
1063
|
}
|
|
1081
1064
|
/** @enumType */
|
|
1082
|
-
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';
|
|
1083
1066
|
interface ProviderConfigurationError {
|
|
1084
1067
|
/** Key corresponding to the field in the schema. */
|
|
1085
1068
|
fieldKey?: string | null;
|
|
@@ -1092,21 +1075,25 @@ interface ProviderConfigurationError {
|
|
|
1092
1075
|
/** Title for the error. */
|
|
1093
1076
|
title?: string;
|
|
1094
1077
|
}
|
|
1095
|
-
declare enum
|
|
1096
|
-
|
|
1097
|
-
/**
|
|
1078
|
+
declare enum Severity {
|
|
1079
|
+
UNKNOWN_SEVERITY = "UNKNOWN_SEVERITY",
|
|
1080
|
+
/** Low severity error - may affect automation execution. */
|
|
1098
1081
|
WARNING = "WARNING",
|
|
1099
|
-
/**
|
|
1100
|
-
|
|
1082
|
+
/** Critical severity error - prevents proper automation execution and should be fixed. */
|
|
1083
|
+
CRITICAL = "CRITICAL"
|
|
1101
1084
|
}
|
|
1102
1085
|
/** @enumType */
|
|
1103
|
-
type
|
|
1104
|
-
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;
|
|
1105
1092
|
/**
|
|
1106
|
-
* Action
|
|
1093
|
+
* Action Identifier in the Automation.
|
|
1107
1094
|
* @format GUID
|
|
1108
1095
|
*/
|
|
1109
|
-
actionId?: string
|
|
1096
|
+
actionId?: string;
|
|
1110
1097
|
/**
|
|
1111
1098
|
* ID of the app that defined the action.
|
|
1112
1099
|
* @format GUID
|
|
@@ -1118,21 +1105,10 @@ interface ActionValidationInfo {
|
|
|
1118
1105
|
* @maxLength 100
|
|
1119
1106
|
*/
|
|
1120
1107
|
actionKey?: string;
|
|
1121
|
-
/**
|
|
1122
|
-
* Action validation errors.
|
|
1123
|
-
* @maxSize 100
|
|
1124
|
-
*/
|
|
1125
|
-
validationErrors?: ActionValidationError[];
|
|
1126
|
-
}
|
|
1127
|
-
interface ActionValidationError extends ActionValidationErrorErrorOneOf {
|
|
1128
|
-
/** Action configuration error. */
|
|
1129
|
-
configurationError?: ActionConfigurationError;
|
|
1130
|
-
/** Provider configuration error. */
|
|
1131
|
-
providerConfigurationError?: ProviderConfigurationError;
|
|
1132
1108
|
/** Validation error type. */
|
|
1133
1109
|
errorType?: ValidationErrorTypeWithLiterals;
|
|
1134
1110
|
/** Validation error severity */
|
|
1135
|
-
|
|
1111
|
+
errorSeverity?: SeverityWithLiterals;
|
|
1136
1112
|
}
|
|
1137
1113
|
/** @oneof */
|
|
1138
1114
|
interface ActionValidationErrorErrorOneOf {
|
|
@@ -1153,62 +1129,32 @@ type ValidationErrorTypeWithLiterals = ValidationErrorType | 'UNKNOWN_VALIDATION
|
|
|
1153
1129
|
interface ActionConfigurationError {
|
|
1154
1130
|
/** Action error type. */
|
|
1155
1131
|
errorType?: ActionErrorTypeWithLiterals;
|
|
1156
|
-
/**
|
|
1157
|
-
* Related field key.
|
|
1158
|
-
* @maxLength 110
|
|
1159
|
-
*/
|
|
1160
|
-
fieldKey?: string | null;
|
|
1161
1132
|
}
|
|
1162
1133
|
declare enum ActionErrorType {
|
|
1163
1134
|
UNKNOWN_ACTION_ERROR_TYPE = "UNKNOWN_ACTION_ERROR_TYPE",
|
|
1135
|
+
/** Configured action was not found. */
|
|
1164
1136
|
NOT_FOUND = "NOT_FOUND",
|
|
1137
|
+
/** App not installed. */
|
|
1165
1138
|
APP_NOT_INSTALLED = "APP_NOT_INSTALLED",
|
|
1166
|
-
|
|
1167
|
-
DEPRECATED = "DEPRECATED",
|
|
1139
|
+
/** Invalid action key. */
|
|
1168
1140
|
INVALID_ACTION_KEY = "INVALID_ACTION_KEY",
|
|
1141
|
+
/** Invalid mapping */
|
|
1169
1142
|
INVALID_MAPPING = "INVALID_MAPPING",
|
|
1143
|
+
/** Mapping type mismatch. */
|
|
1170
1144
|
MAPPING_TYPE_MISMATCH = "MAPPING_TYPE_MISMATCH",
|
|
1145
|
+
/** Mapping missing required field. */
|
|
1171
1146
|
MAPPING_MISSING_REQUIRED_FIELD = "MAPPING_MISSING_REQUIRED_FIELD",
|
|
1147
|
+
/** Mapping schema mismatch. */
|
|
1172
1148
|
MAPPING_SCHEMA_MISMATCH = "MAPPING_SCHEMA_MISMATCH",
|
|
1149
|
+
/** Mapping variable missing from schema. */
|
|
1173
1150
|
MAPPING_VARIABLE_MISSING_FROM_SCHEMA = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA",
|
|
1151
|
+
/** Sample code run failed. */
|
|
1174
1152
|
SAMPLE_CODE_RUN_FAILED = "SAMPLE_CODE_RUN_FAILED",
|
|
1153
|
+
/** Configured post action not found. */
|
|
1175
1154
|
POST_ACTION_NOT_FOUND = "POST_ACTION_NOT_FOUND"
|
|
1176
1155
|
}
|
|
1177
1156
|
/** @enumType */
|
|
1178
|
-
type ActionErrorTypeWithLiterals = ActionErrorType | 'UNKNOWN_ACTION_ERROR_TYPE' | 'NOT_FOUND' | 'APP_NOT_INSTALLED' | '
|
|
1179
|
-
interface AutomationValidationError extends AutomationValidationErrorErrorOneOf {
|
|
1180
|
-
/** Automation configuration error. */
|
|
1181
|
-
configurationError?: AutomationConfigurationError;
|
|
1182
|
-
/** Provider configuration error. */
|
|
1183
|
-
providerConfigurationError?: ProviderConfigurationError;
|
|
1184
|
-
/** Validation error type. */
|
|
1185
|
-
errorType?: AutomationValidationErrorValidationErrorTypeWithLiterals;
|
|
1186
|
-
/** Validation error severity. */
|
|
1187
|
-
severity?: ValidationErrorSeverityWithLiterals;
|
|
1188
|
-
}
|
|
1189
|
-
/** @oneof */
|
|
1190
|
-
interface AutomationValidationErrorErrorOneOf {
|
|
1191
|
-
/** Automation configuration error. */
|
|
1192
|
-
configurationError?: AutomationConfigurationError;
|
|
1193
|
-
/** Provider configuration error. */
|
|
1194
|
-
providerConfigurationError?: ProviderConfigurationError;
|
|
1195
|
-
}
|
|
1196
|
-
declare enum AutomationValidationErrorValidationErrorType {
|
|
1197
|
-
UNKNOWN_VALIDATION_ERROR_TYPE = "UNKNOWN_VALIDATION_ERROR_TYPE",
|
|
1198
|
-
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
1199
|
-
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
1200
|
-
}
|
|
1201
|
-
/** @enumType */
|
|
1202
|
-
type AutomationValidationErrorValidationErrorTypeWithLiterals = AutomationValidationErrorValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
|
|
1203
|
-
interface AutomationConfigurationError {
|
|
1204
|
-
/** Automation error type. */
|
|
1205
|
-
errorType?: AutomationErrorTypeWithLiterals;
|
|
1206
|
-
}
|
|
1207
|
-
declare enum AutomationErrorType {
|
|
1208
|
-
UNKNOWN_AUTOMATION_ERROR_TYPE = "UNKNOWN_AUTOMATION_ERROR_TYPE"
|
|
1209
|
-
}
|
|
1210
|
-
/** @enumType */
|
|
1211
|
-
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';
|
|
1212
1158
|
interface ValidateAutomationByIdRequest {
|
|
1213
1159
|
/**
|
|
1214
1160
|
* Automation ID.
|
|
@@ -1219,23 +1165,18 @@ interface ValidateAutomationByIdRequest {
|
|
|
1219
1165
|
validationSettings?: ValidationSettings;
|
|
1220
1166
|
}
|
|
1221
1167
|
interface ValidateAutomationByIdResponse {
|
|
1222
|
-
/**
|
|
1223
|
-
|
|
1168
|
+
/** Automation validation status. */
|
|
1169
|
+
status?: ValidationResultStatusWithLiterals;
|
|
1224
1170
|
/**
|
|
1225
|
-
* Validation errors
|
|
1171
|
+
* Validation errors related to the automation's trigger configuration.
|
|
1226
1172
|
* @maxSize 100
|
|
1227
1173
|
*/
|
|
1228
1174
|
triggerValidationErrors?: TriggerValidationError[];
|
|
1229
1175
|
/**
|
|
1230
|
-
* Validation
|
|
1231
|
-
* @maxSize 100
|
|
1232
|
-
*/
|
|
1233
|
-
actionValidationInfo?: ActionValidationInfo[];
|
|
1234
|
-
/**
|
|
1235
|
-
* Additional validation errors generated by the automation.
|
|
1176
|
+
* Validation errors related to the automation's actions configuration.
|
|
1236
1177
|
* @maxSize 100
|
|
1237
1178
|
*/
|
|
1238
|
-
|
|
1179
|
+
actionValidationErrors?: ActionValidationError[];
|
|
1239
1180
|
}
|
|
1240
1181
|
interface GetAutomationRevisionRequest {
|
|
1241
1182
|
/**
|
package/build/es/index.d.mts
CHANGED
|
@@ -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.mjs';
|
|
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,
|
|
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.mjs';
|
|
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 {
|
package/build/es/index.mjs
CHANGED
|
@@ -785,6 +785,13 @@ var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
|
785
785
|
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
786
786
|
return DeleteStatus2;
|
|
787
787
|
})(DeleteStatus || {});
|
|
788
|
+
var ValidationResultStatus = /* @__PURE__ */ ((ValidationResultStatus2) => {
|
|
789
|
+
ValidationResultStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
790
|
+
ValidationResultStatus2["VALID"] = "VALID";
|
|
791
|
+
ValidationResultStatus2["VALID_WITH_WARNINGS"] = "VALID_WITH_WARNINGS";
|
|
792
|
+
ValidationResultStatus2["INVALID"] = "INVALID";
|
|
793
|
+
return ValidationResultStatus2;
|
|
794
|
+
})(ValidationResultStatus || {});
|
|
788
795
|
var TriggerValidationErrorValidationErrorType = /* @__PURE__ */ ((TriggerValidationErrorValidationErrorType2) => {
|
|
789
796
|
TriggerValidationErrorValidationErrorType2["UNKNOWN_VALIDATION_ERROR_TYPE"] = "UNKNOWN_VALIDATION_ERROR_TYPE";
|
|
790
797
|
TriggerValidationErrorValidationErrorType2["CONFIGURATION_ERROR"] = "CONFIGURATION_ERROR";
|
|
@@ -795,8 +802,6 @@ var TriggerErrorType = /* @__PURE__ */ ((TriggerErrorType2) => {
|
|
|
795
802
|
TriggerErrorType2["UNKNOWN_TRIGGER_ERROR_TYPE"] = "UNKNOWN_TRIGGER_ERROR_TYPE";
|
|
796
803
|
TriggerErrorType2["NOT_FOUND"] = "NOT_FOUND";
|
|
797
804
|
TriggerErrorType2["APP_NOT_INSTALLED"] = "APP_NOT_INSTALLED";
|
|
798
|
-
TriggerErrorType2["MODERATION_MISMATCH"] = "MODERATION_MISMATCH";
|
|
799
|
-
TriggerErrorType2["DEPRECATED"] = "DEPRECATED";
|
|
800
805
|
TriggerErrorType2["INVALID_TRIGGER_KEY"] = "INVALID_TRIGGER_KEY";
|
|
801
806
|
TriggerErrorType2["INVALID_FILTER_FIELD_KEY"] = "INVALID_FILTER_FIELD_KEY";
|
|
802
807
|
TriggerErrorType2["INVALID_FILTER_EXPRESSION"] = "INVALID_FILTER_EXPRESSION";
|
|
@@ -809,6 +814,12 @@ var ValidationErrorSeverity = /* @__PURE__ */ ((ValidationErrorSeverity2) => {
|
|
|
809
814
|
ValidationErrorSeverity2["ERROR"] = "ERROR";
|
|
810
815
|
return ValidationErrorSeverity2;
|
|
811
816
|
})(ValidationErrorSeverity || {});
|
|
817
|
+
var Severity = /* @__PURE__ */ ((Severity2) => {
|
|
818
|
+
Severity2["UNKNOWN_SEVERITY"] = "UNKNOWN_SEVERITY";
|
|
819
|
+
Severity2["WARNING"] = "WARNING";
|
|
820
|
+
Severity2["CRITICAL"] = "CRITICAL";
|
|
821
|
+
return Severity2;
|
|
822
|
+
})(Severity || {});
|
|
812
823
|
var ValidationErrorType = /* @__PURE__ */ ((ValidationErrorType2) => {
|
|
813
824
|
ValidationErrorType2["UNKNOWN_VALIDATION_ERROR_TYPE"] = "UNKNOWN_VALIDATION_ERROR_TYPE";
|
|
814
825
|
ValidationErrorType2["CONFIGURATION_ERROR"] = "CONFIGURATION_ERROR";
|
|
@@ -819,8 +830,6 @@ var ActionErrorType = /* @__PURE__ */ ((ActionErrorType2) => {
|
|
|
819
830
|
ActionErrorType2["UNKNOWN_ACTION_ERROR_TYPE"] = "UNKNOWN_ACTION_ERROR_TYPE";
|
|
820
831
|
ActionErrorType2["NOT_FOUND"] = "NOT_FOUND";
|
|
821
832
|
ActionErrorType2["APP_NOT_INSTALLED"] = "APP_NOT_INSTALLED";
|
|
822
|
-
ActionErrorType2["MODERATION_MISMATCH"] = "MODERATION_MISMATCH";
|
|
823
|
-
ActionErrorType2["DEPRECATED"] = "DEPRECATED";
|
|
824
833
|
ActionErrorType2["INVALID_ACTION_KEY"] = "INVALID_ACTION_KEY";
|
|
825
834
|
ActionErrorType2["INVALID_MAPPING"] = "INVALID_MAPPING";
|
|
826
835
|
ActionErrorType2["MAPPING_TYPE_MISMATCH"] = "MAPPING_TYPE_MISMATCH";
|
|
@@ -1195,8 +1204,7 @@ async function queryAutomationsWithDrafts2(options) {
|
|
|
1195
1204
|
async function bulkCountAutomationsWithDrafts2(options) {
|
|
1196
1205
|
const { httpClient, sideEffects } = arguments[1];
|
|
1197
1206
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1198
|
-
filters: options?.filters
|
|
1199
|
-
automationFilters: options?.automationFilters
|
|
1207
|
+
filters: options?.filters
|
|
1200
1208
|
});
|
|
1201
1209
|
const reqOpts = bulkCountAutomationsWithDrafts(
|
|
1202
1210
|
payload
|
|
@@ -1211,10 +1219,7 @@ async function bulkCountAutomationsWithDrafts2(options) {
|
|
|
1211
1219
|
err,
|
|
1212
1220
|
{
|
|
1213
1221
|
spreadPathsToArguments: {},
|
|
1214
|
-
explicitPathsToArguments: {
|
|
1215
|
-
filters: "$[0].filters",
|
|
1216
|
-
automationFilters: "$[0].automationFilters"
|
|
1217
|
-
},
|
|
1222
|
+
explicitPathsToArguments: { filters: "$[0].filters" },
|
|
1218
1223
|
singleArgumentUnchanged: false
|
|
1219
1224
|
},
|
|
1220
1225
|
["options"]
|
|
@@ -1599,6 +1604,7 @@ export {
|
|
|
1599
1604
|
Operator,
|
|
1600
1605
|
Origin,
|
|
1601
1606
|
RequestedFields,
|
|
1607
|
+
Severity,
|
|
1602
1608
|
SiteCreatedContext,
|
|
1603
1609
|
SortOrder,
|
|
1604
1610
|
State,
|
|
@@ -1609,6 +1615,7 @@ export {
|
|
|
1609
1615
|
Type,
|
|
1610
1616
|
ValidationErrorSeverity,
|
|
1611
1617
|
ValidationErrorType,
|
|
1618
|
+
ValidationResultStatus,
|
|
1612
1619
|
WebhookIdentityType,
|
|
1613
1620
|
bulkCountAutomationsWithDrafts4 as bulkCountAutomationsWithDrafts,
|
|
1614
1621
|
bulkDeleteAutomations4 as bulkDeleteAutomations,
|