@wix/auto_sdk_automations_automations-v-2 1.0.1 → 1.0.3
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/src/automations-v2-automation-automations-v-2.types.d.ts +70 -28
- package/build/cjs/src/automations-v2-automation-automations-v-2.types.js.map +1 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.universal.d.ts +94 -32
- package/build/cjs/src/automations-v2-automation-automations-v-2.universal.js.map +1 -1
- package/build/es/src/automations-v2-automation-automations-v-2.types.d.ts +70 -28
- package/build/es/src/automations-v2-automation-automations-v-2.types.js.map +1 -1
- package/build/es/src/automations-v2-automation-automations-v-2.universal.d.ts +94 -32
- package/build/es/src/automations-v2-automation-automations-v-2.universal.js.map +1 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.d.ts +70 -28
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.js.map +1 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.universal.d.ts +94 -32
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.universal.js.map +1 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.types.d.ts +70 -28
- package/build/internal/es/src/automations-v2-automation-automations-v-2.types.js.map +1 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.universal.d.ts +94 -32
- package/build/internal/es/src/automations-v2-automation-automations-v-2.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -52,7 +52,7 @@ export interface Automation extends AutomationOriginInfoOneOf {
|
|
|
52
52
|
* How the automation was added to the user's site.
|
|
53
53
|
* @immutable
|
|
54
54
|
*/
|
|
55
|
-
origin?:
|
|
55
|
+
origin?: OriginWithLiterals;
|
|
56
56
|
/** Automation settings. */
|
|
57
57
|
settings?: AutomationSettings;
|
|
58
58
|
/**
|
|
@@ -112,6 +112,8 @@ export declare enum Domain {
|
|
|
112
112
|
/** Wix account-level domain. */
|
|
113
113
|
WIX_ACCOUNT = "WIX_ACCOUNT"
|
|
114
114
|
}
|
|
115
|
+
/** @enumType */
|
|
116
|
+
export type DomainWithLiterals = Domain | 'USER' | 'WIX' | 'WIX_ACCOUNT';
|
|
115
117
|
export interface Enrichment {
|
|
116
118
|
/**
|
|
117
119
|
* Enrichment input mappings.
|
|
@@ -150,7 +152,7 @@ export interface AuditInfoIdOneOf {
|
|
|
150
152
|
}
|
|
151
153
|
export interface AutomationConfiguration {
|
|
152
154
|
/** Status of the automation on the site. */
|
|
153
|
-
status?:
|
|
155
|
+
status?: StatusWithLiterals;
|
|
154
156
|
/** Trigger configuration. */
|
|
155
157
|
trigger?: Trigger;
|
|
156
158
|
/**
|
|
@@ -177,6 +179,8 @@ export declare enum TimeUnit {
|
|
|
177
179
|
/** Months. */
|
|
178
180
|
MONTHS = "MONTHS"
|
|
179
181
|
}
|
|
182
|
+
/** @enumType */
|
|
183
|
+
export type TimeUnitWithLiterals = TimeUnit | 'UNKNOWN_TIME_UNIT' | 'MINUTES' | 'HOURS' | 'DAYS' | 'WEEKS' | 'MONTHS';
|
|
180
184
|
export interface Filter {
|
|
181
185
|
/**
|
|
182
186
|
* Filter ID.
|
|
@@ -208,7 +212,7 @@ export interface FutureDateActivationOffset {
|
|
|
208
212
|
*/
|
|
209
213
|
preScheduledEventOffsetExpression?: string;
|
|
210
214
|
/** Unit in which to set the action offset. */
|
|
211
|
-
scheduledEventOffsetTimeUnit?:
|
|
215
|
+
scheduledEventOffsetTimeUnit?: TimeUnitWithLiterals;
|
|
212
216
|
}
|
|
213
217
|
export interface RateLimit {
|
|
214
218
|
/**
|
|
@@ -224,7 +228,7 @@ export interface RateLimit {
|
|
|
224
228
|
*/
|
|
225
229
|
durationExpression?: string | null;
|
|
226
230
|
/** Unit in which to set the duration of the rate limit. */
|
|
227
|
-
durationTimeUnit?:
|
|
231
|
+
durationTimeUnit?: TimeUnitWithLiterals;
|
|
228
232
|
/**
|
|
229
233
|
* Activation identifier used to count the number of activations.
|
|
230
234
|
* @minLength 1
|
|
@@ -242,7 +246,7 @@ export interface FilterValueSelection {
|
|
|
242
246
|
}
|
|
243
247
|
export interface ConditionExpressionGroup {
|
|
244
248
|
/** Logical operator used to evaluate the condition expressions. */
|
|
245
|
-
operator?:
|
|
249
|
+
operator?: OperatorWithLiterals;
|
|
246
250
|
/**
|
|
247
251
|
* Expressions evaluated using the selected operator.
|
|
248
252
|
* @minSize 1
|
|
@@ -259,6 +263,8 @@ export declare enum Operator {
|
|
|
259
263
|
/** `AND` operator. */
|
|
260
264
|
AND = "AND"
|
|
261
265
|
}
|
|
266
|
+
/** @enumType */
|
|
267
|
+
export type OperatorWithLiterals = Operator | 'UNKNOWN_OPERATOR' | 'OR' | 'AND';
|
|
262
268
|
/** Path definition */
|
|
263
269
|
export interface Path {
|
|
264
270
|
/**
|
|
@@ -290,6 +296,8 @@ export declare enum Type {
|
|
|
290
296
|
/** Rate-limiter. This stops the automation flow if the subsequent action has reached its maximum allowed executions. */
|
|
291
297
|
RATE_LIMIT = "RATE_LIMIT"
|
|
292
298
|
}
|
|
299
|
+
/** @enumType */
|
|
300
|
+
export type TypeWithLiterals = Type | 'UNKNOWN_ACTION_TYPE' | 'APP_DEFINED' | 'CONDITION' | 'DELAY' | 'RATE_LIMIT';
|
|
293
301
|
export interface AppDefinedAction {
|
|
294
302
|
/**
|
|
295
303
|
* ID of the app that defines the action.
|
|
@@ -349,7 +357,7 @@ export interface DelayAction {
|
|
|
349
357
|
*/
|
|
350
358
|
offsetExpression?: string | null;
|
|
351
359
|
/** Unit in which to set the wait time to wait before the action runs. */
|
|
352
|
-
offsetTimeUnit?:
|
|
360
|
+
offsetTimeUnit?: TimeUnitWithLiterals;
|
|
353
361
|
/**
|
|
354
362
|
* Action run date in milliseconds elapsed since January 1, 1970 UTC.
|
|
355
363
|
*
|
|
@@ -378,7 +386,7 @@ export interface RateLimitAction {
|
|
|
378
386
|
*/
|
|
379
387
|
rateLimitDurationExpression?: string | null;
|
|
380
388
|
/** Unit in which to set the duration of the rate limit. */
|
|
381
|
-
rateLimitDurationTimeUnit?:
|
|
389
|
+
rateLimitDurationTimeUnit?: TimeUnitWithLiterals;
|
|
382
390
|
/**
|
|
383
391
|
* Unique identifier of each activation by which rate limiter counts activations.
|
|
384
392
|
* @minLength 1
|
|
@@ -428,6 +436,8 @@ export declare enum Status {
|
|
|
428
436
|
/** Inactive. Inactive automations cannot be triggered. */
|
|
429
437
|
INACTIVE = "INACTIVE"
|
|
430
438
|
}
|
|
439
|
+
/** @enumType */
|
|
440
|
+
export type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'ACTIVE' | 'INACTIVE';
|
|
431
441
|
export interface Trigger {
|
|
432
442
|
/**
|
|
433
443
|
* ID of the app that defines the trigger.
|
|
@@ -479,7 +489,7 @@ export interface Action extends ActionInfoOneOf {
|
|
|
479
489
|
*/
|
|
480
490
|
id?: string | null;
|
|
481
491
|
/** [Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#action-type). */
|
|
482
|
-
type?:
|
|
492
|
+
type?: TypeWithLiterals;
|
|
483
493
|
/**
|
|
484
494
|
* [Action namespace](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#namespace). This differentiates it from other actions of the same type.
|
|
485
495
|
*
|
|
@@ -522,6 +532,8 @@ export declare enum Origin {
|
|
|
522
532
|
/** [Preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations). */
|
|
523
533
|
PREINSTALLED = "PREINSTALLED"
|
|
524
534
|
}
|
|
535
|
+
/** @enumType */
|
|
536
|
+
export type OriginWithLiterals = Origin | 'UNKNOWN_ORIGIN' | 'USER' | 'APPLICATION' | 'PREINSTALLED';
|
|
525
537
|
export interface ApplicationOrigin {
|
|
526
538
|
/**
|
|
527
539
|
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
@@ -817,7 +829,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
817
829
|
*/
|
|
818
830
|
appId?: string;
|
|
819
831
|
/** @readonly */
|
|
820
|
-
identityType?:
|
|
832
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
821
833
|
}
|
|
822
834
|
/** @oneof */
|
|
823
835
|
export interface IdentificationDataIdOneOf {
|
|
@@ -849,9 +861,11 @@ export declare enum WebhookIdentityType {
|
|
|
849
861
|
WIX_USER = "WIX_USER",
|
|
850
862
|
APP = "APP"
|
|
851
863
|
}
|
|
864
|
+
/** @enumType */
|
|
865
|
+
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
852
866
|
export interface CodeSnippet {
|
|
853
867
|
/** Logical operator used to evaluate the condition expressions. */
|
|
854
|
-
language?:
|
|
868
|
+
language?: LanguageWithLiterals;
|
|
855
869
|
/**
|
|
856
870
|
* Expressions evaluated using the selected operator. this code should comply the language syntax. and format
|
|
857
871
|
* @maxLength 1000
|
|
@@ -864,6 +878,8 @@ export declare enum Language {
|
|
|
864
878
|
/** `JAVASCRIPT` language. */
|
|
865
879
|
JAVASCRIPT = "JAVASCRIPT"
|
|
866
880
|
}
|
|
881
|
+
/** @enumType */
|
|
882
|
+
export type LanguageWithLiterals = Language | 'UNKNOWN_LANGUAGE' | 'JAVASCRIPT';
|
|
867
883
|
export interface CodeConditionAction {
|
|
868
884
|
/** condition code. This is a code that can be used to identify the condition in the automation. code should return a boolean value. otherwise the value will be tried to be casted to boolean. */
|
|
869
885
|
snippet?: CodeSnippet;
|
|
@@ -889,6 +905,8 @@ export declare enum RequestedFields {
|
|
|
889
905
|
/** whether to return in response `configuration.trigger.override_output_schema` field and in `configuration.actions` the `override_output_schema` field */
|
|
890
906
|
OVERRIDE_SCHEMA = "OVERRIDE_SCHEMA"
|
|
891
907
|
}
|
|
908
|
+
/** @enumType */
|
|
909
|
+
export type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'OVERRIDE_SCHEMA';
|
|
892
910
|
export interface CreateAutomationResponse {
|
|
893
911
|
/** Details of the created automation. */
|
|
894
912
|
automation?: Automation;
|
|
@@ -1130,12 +1148,14 @@ export interface Sorting {
|
|
|
1130
1148
|
*/
|
|
1131
1149
|
fieldName?: string;
|
|
1132
1150
|
/** Sort order. */
|
|
1133
|
-
order?:
|
|
1151
|
+
order?: SortOrderWithLiterals;
|
|
1134
1152
|
}
|
|
1135
1153
|
export declare enum SortOrder {
|
|
1136
1154
|
ASC = "ASC",
|
|
1137
1155
|
DESC = "DESC"
|
|
1138
1156
|
}
|
|
1157
|
+
/** @enumType */
|
|
1158
|
+
export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
1139
1159
|
export interface CursorPaging {
|
|
1140
1160
|
/**
|
|
1141
1161
|
* Maximum number of items to return in the results.
|
|
@@ -1255,7 +1275,7 @@ export interface CopyAutomationRequest {
|
|
|
1255
1275
|
*/
|
|
1256
1276
|
automationId: string;
|
|
1257
1277
|
/** Origin of the automation to copy. */
|
|
1258
|
-
origin?:
|
|
1278
|
+
origin?: OriginWithLiterals;
|
|
1259
1279
|
/** Automation to copy. Skips fetching by ID. */
|
|
1260
1280
|
automation?: Automation;
|
|
1261
1281
|
}
|
|
@@ -1391,7 +1411,7 @@ export interface Asset {
|
|
|
1391
1411
|
*/
|
|
1392
1412
|
instanceId?: string;
|
|
1393
1413
|
/** An application state. */
|
|
1394
|
-
state?:
|
|
1414
|
+
state?: StateWithLiterals;
|
|
1395
1415
|
}
|
|
1396
1416
|
export declare enum State {
|
|
1397
1417
|
UNKNOWN = "UNKNOWN",
|
|
@@ -1400,6 +1420,8 @@ export declare enum State {
|
|
|
1400
1420
|
PENDING = "PENDING",
|
|
1401
1421
|
DEMO = "DEMO"
|
|
1402
1422
|
}
|
|
1423
|
+
/** @enumType */
|
|
1424
|
+
export type StateWithLiterals = State | 'UNKNOWN' | 'ENABLED' | 'DISABLED' | 'PENDING' | 'DEMO';
|
|
1403
1425
|
export interface SiteCreated {
|
|
1404
1426
|
/**
|
|
1405
1427
|
* A template identifier (empty if not created from a template).
|
|
@@ -1412,7 +1434,7 @@ export interface SiteCreated {
|
|
|
1412
1434
|
*/
|
|
1413
1435
|
ownerId?: string;
|
|
1414
1436
|
/** A context in which meta site was created. */
|
|
1415
|
-
context?:
|
|
1437
|
+
context?: SiteCreatedContextWithLiterals;
|
|
1416
1438
|
/**
|
|
1417
1439
|
* A meta site id from which this site was created.
|
|
1418
1440
|
*
|
|
@@ -1427,7 +1449,7 @@ export interface SiteCreated {
|
|
|
1427
1449
|
*/
|
|
1428
1450
|
siteName?: string;
|
|
1429
1451
|
/** A namespace. */
|
|
1430
|
-
namespace?:
|
|
1452
|
+
namespace?: NamespaceWithLiterals;
|
|
1431
1453
|
}
|
|
1432
1454
|
export declare enum SiteCreatedContext {
|
|
1433
1455
|
/** A valid option, we don't expose all reasons why site might be created. */
|
|
@@ -1443,6 +1465,8 @@ export declare enum SiteCreatedContext {
|
|
|
1443
1465
|
/** deprecated A meta site was created for Flash editor. */
|
|
1444
1466
|
FLASH = "FLASH"
|
|
1445
1467
|
}
|
|
1468
|
+
/** @enumType */
|
|
1469
|
+
export type SiteCreatedContextWithLiterals = SiteCreatedContext | 'OTHER' | 'FROM_TEMPLATE' | 'DUPLICATE_BY_SITE_TRANSFER' | 'DUPLICATE' | 'OLD_SITE_TRANSFER' | 'FLASH';
|
|
1446
1470
|
export declare enum Namespace {
|
|
1447
1471
|
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
1448
1472
|
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
@@ -1525,6 +1549,8 @@ export declare enum Namespace {
|
|
|
1525
1549
|
/** MIMIR - Siteless account for MIMIR Ai Job runner. */
|
|
1526
1550
|
MIMIR = "MIMIR"
|
|
1527
1551
|
}
|
|
1552
|
+
/** @enumType */
|
|
1553
|
+
export type NamespaceWithLiterals = Namespace | 'UNKNOWN_NAMESPACE' | 'WIX' | 'SHOUT_OUT' | 'ALBUMS' | 'WIX_STORES_TEST_DRIVE' | 'HOTELS' | 'CLUBS' | 'ONBOARDING_DRAFT' | 'DEV_SITE' | 'LOGOS' | 'VIDEO_MAKER' | 'PARTNER_DASHBOARD' | 'DEV_CENTER_COMPANY' | 'HTML_DRAFT' | 'SITELESS_BUSINESS' | 'CREATOR_ECONOMY' | 'DASHBOARD_FIRST' | 'ANYWHERE' | 'HEADLESS' | 'ACCOUNT_MASTER_CMS' | 'RISE' | 'BRANDED_FIRST' | 'NOWNIA' | 'UGC_TEMPLATE' | 'CODUX' | 'MEDIA_DESIGN_CREATOR' | 'SHARED_BLOG_ENTERPRISE' | 'STANDALONE_FORMS' | 'STANDALONE_EVENTS' | 'MIMIR';
|
|
1528
1554
|
/** Site transferred to another user. */
|
|
1529
1555
|
export interface SiteTransferred {
|
|
1530
1556
|
/**
|
|
@@ -1547,7 +1573,7 @@ export interface DeleteContext {
|
|
|
1547
1573
|
/** When the meta site was deleted. */
|
|
1548
1574
|
dateDeleted?: Date | null;
|
|
1549
1575
|
/** A status. */
|
|
1550
|
-
deleteStatus?:
|
|
1576
|
+
deleteStatus?: DeleteStatusWithLiterals;
|
|
1551
1577
|
/**
|
|
1552
1578
|
* A reason (flow).
|
|
1553
1579
|
* @maxLength 255
|
|
@@ -1566,6 +1592,8 @@ export declare enum DeleteStatus {
|
|
|
1566
1592
|
PENDING_PURGE = "PENDING_PURGE",
|
|
1567
1593
|
PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
|
|
1568
1594
|
}
|
|
1595
|
+
/** @enumType */
|
|
1596
|
+
export type DeleteStatusWithLiterals = DeleteStatus | 'UNKNOWN' | 'TRASH' | 'DELETED' | 'PENDING_PURGE' | 'PURGED_EXTERNALLY';
|
|
1569
1597
|
/** Restoration of the meta site. */
|
|
1570
1598
|
export interface SiteUndeleted {
|
|
1571
1599
|
}
|
|
@@ -1667,9 +1695,9 @@ export interface SiteHardDeleted {
|
|
|
1667
1695
|
}
|
|
1668
1696
|
export interface NamespaceChanged {
|
|
1669
1697
|
/** A previous namespace. */
|
|
1670
|
-
oldNamespace?:
|
|
1698
|
+
oldNamespace?: NamespaceWithLiterals;
|
|
1671
1699
|
/** A new namespace. */
|
|
1672
|
-
newNamespace?:
|
|
1700
|
+
newNamespace?: NamespaceWithLiterals;
|
|
1673
1701
|
}
|
|
1674
1702
|
/** Assigned Studio editor */
|
|
1675
1703
|
export interface StudioAssigned {
|
|
@@ -1833,9 +1861,9 @@ export interface TriggerValidationError extends TriggerValidationErrorErrorOneOf
|
|
|
1833
1861
|
/** Provider configuration error. */
|
|
1834
1862
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1835
1863
|
/** Validation error type. */
|
|
1836
|
-
errorType?:
|
|
1864
|
+
errorType?: TriggerValidationErrorValidationErrorTypeWithLiterals;
|
|
1837
1865
|
/** Validation error severity */
|
|
1838
|
-
severity?:
|
|
1866
|
+
severity?: ValidationErrorSeverityWithLiterals;
|
|
1839
1867
|
}
|
|
1840
1868
|
/** @oneof */
|
|
1841
1869
|
export interface TriggerValidationErrorErrorOneOf {
|
|
@@ -1851,9 +1879,11 @@ export declare enum TriggerValidationErrorValidationErrorType {
|
|
|
1851
1879
|
/** Provider error. */
|
|
1852
1880
|
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
1853
1881
|
}
|
|
1882
|
+
/** @enumType */
|
|
1883
|
+
export type TriggerValidationErrorValidationErrorTypeWithLiterals = TriggerValidationErrorValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
|
|
1854
1884
|
export interface TriggerConfigurationError {
|
|
1855
1885
|
/** Trigger error type. */
|
|
1856
|
-
errorType?:
|
|
1886
|
+
errorType?: TriggerErrorTypeWithLiterals;
|
|
1857
1887
|
/**
|
|
1858
1888
|
* Related filter field key.
|
|
1859
1889
|
* @maxLength 110
|
|
@@ -1877,6 +1907,8 @@ export declare enum TriggerErrorType {
|
|
|
1877
1907
|
/** Invalid filter expression. */
|
|
1878
1908
|
INVALID_FILTER_EXPRESSION = "INVALID_FILTER_EXPRESSION"
|
|
1879
1909
|
}
|
|
1910
|
+
/** @enumType */
|
|
1911
|
+
export type TriggerErrorTypeWithLiterals = TriggerErrorType | 'UNKNOWN_TRIGGER_ERROR_TYPE' | 'NOT_FOUND' | 'APP_NOT_INSTALLED' | 'MODERATION_MISMATCH' | 'DEPRECATED' | 'INVALID_TRIGGER_KEY' | 'INVALID_FILTER_FIELD_KEY' | 'INVALID_FILTER_EXPRESSION';
|
|
1880
1912
|
export interface ProviderConfigurationError {
|
|
1881
1913
|
/** Key corresponding to the field in the schema. */
|
|
1882
1914
|
fieldKey?: string | null;
|
|
@@ -1896,6 +1928,8 @@ export declare enum ValidationErrorSeverity {
|
|
|
1896
1928
|
/** Error. */
|
|
1897
1929
|
ERROR = "ERROR"
|
|
1898
1930
|
}
|
|
1931
|
+
/** @enumType */
|
|
1932
|
+
export type ValidationErrorSeverityWithLiterals = ValidationErrorSeverity | 'UNKNOWN_VALIDATION_ERROR_SEVERITY' | 'WARNING' | 'ERROR';
|
|
1899
1933
|
export interface ActionValidationInfo {
|
|
1900
1934
|
/**
|
|
1901
1935
|
* Action ID.
|
|
@@ -1925,9 +1959,9 @@ export interface ActionValidationError extends ActionValidationErrorErrorOneOf {
|
|
|
1925
1959
|
/** Provider configuration error. */
|
|
1926
1960
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1927
1961
|
/** Validation error type. */
|
|
1928
|
-
errorType?:
|
|
1962
|
+
errorType?: ValidationErrorTypeWithLiterals;
|
|
1929
1963
|
/** Validation error severity */
|
|
1930
|
-
severity?:
|
|
1964
|
+
severity?: ValidationErrorSeverityWithLiterals;
|
|
1931
1965
|
}
|
|
1932
1966
|
/** @oneof */
|
|
1933
1967
|
export interface ActionValidationErrorErrorOneOf {
|
|
@@ -1943,9 +1977,11 @@ export declare enum ValidationErrorType {
|
|
|
1943
1977
|
/** Provider error. */
|
|
1944
1978
|
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
1945
1979
|
}
|
|
1980
|
+
/** @enumType */
|
|
1981
|
+
export type ValidationErrorTypeWithLiterals = ValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
|
|
1946
1982
|
export interface ActionConfigurationError {
|
|
1947
1983
|
/** Action error type. */
|
|
1948
|
-
errorType?:
|
|
1984
|
+
errorType?: ActionErrorTypeWithLiterals;
|
|
1949
1985
|
/**
|
|
1950
1986
|
* Related field key.
|
|
1951
1987
|
* @maxLength 110
|
|
@@ -1965,15 +2001,17 @@ export declare enum ActionErrorType {
|
|
|
1965
2001
|
MAPPING_SCHEMA_MISMATCH = "MAPPING_SCHEMA_MISMATCH",
|
|
1966
2002
|
MAPPING_VARIABLE_MISSING_FROM_SCHEMA = "MAPPING_VARIABLE_MISSING_FROM_SCHEMA"
|
|
1967
2003
|
}
|
|
2004
|
+
/** @enumType */
|
|
2005
|
+
export type ActionErrorTypeWithLiterals = ActionErrorType | 'UNKNOWN_ACTION_ERROR_TYPE' | 'NOT_FOUND' | 'APP_NOT_INSTALLED' | 'MODERATION_MISMATCH' | 'DEPRECATED' | 'INVALID_ACTION_KEY' | 'INVALID_MAPPING' | 'MAPPING_TYPE_MISMATCH' | 'MAPPING_MISSING_REQUIRED_FIELD' | 'MAPPING_SCHEMA_MISMATCH' | 'MAPPING_VARIABLE_MISSING_FROM_SCHEMA';
|
|
1968
2006
|
export interface AutomationValidationError extends AutomationValidationErrorErrorOneOf {
|
|
1969
2007
|
/** Automation configuration error. */
|
|
1970
2008
|
configurationError?: AutomationConfigurationError;
|
|
1971
2009
|
/** Provider configuration error. */
|
|
1972
2010
|
providerConfigurationError?: ProviderConfigurationError;
|
|
1973
2011
|
/** Validation error type. */
|
|
1974
|
-
errorType?:
|
|
2012
|
+
errorType?: AutomationValidationErrorValidationErrorTypeWithLiterals;
|
|
1975
2013
|
/** Validation error severity. */
|
|
1976
|
-
severity?:
|
|
2014
|
+
severity?: ValidationErrorSeverityWithLiterals;
|
|
1977
2015
|
}
|
|
1978
2016
|
/** @oneof */
|
|
1979
2017
|
export interface AutomationValidationErrorErrorOneOf {
|
|
@@ -1987,13 +2025,17 @@ export declare enum AutomationValidationErrorValidationErrorType {
|
|
|
1987
2025
|
CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
|
|
1988
2026
|
PROVIDER_ERROR = "PROVIDER_ERROR"
|
|
1989
2027
|
}
|
|
2028
|
+
/** @enumType */
|
|
2029
|
+
export type AutomationValidationErrorValidationErrorTypeWithLiterals = AutomationValidationErrorValidationErrorType | 'UNKNOWN_VALIDATION_ERROR_TYPE' | 'CONFIGURATION_ERROR' | 'PROVIDER_ERROR';
|
|
1990
2030
|
export interface AutomationConfigurationError {
|
|
1991
2031
|
/** Automation error type. */
|
|
1992
|
-
errorType?:
|
|
2032
|
+
errorType?: AutomationErrorTypeWithLiterals;
|
|
1993
2033
|
}
|
|
1994
2034
|
export declare enum AutomationErrorType {
|
|
1995
2035
|
UNKNOWN_AUTOMATION_ERROR_TYPE = "UNKNOWN_AUTOMATION_ERROR_TYPE"
|
|
1996
2036
|
}
|
|
2037
|
+
/** @enumType */
|
|
2038
|
+
export type AutomationErrorTypeWithLiterals = AutomationErrorType | 'UNKNOWN_AUTOMATION_ERROR_TYPE';
|
|
1997
2039
|
export interface ValidateAutomationByIdRequest {
|
|
1998
2040
|
/**
|
|
1999
2041
|
* Automation ID.
|
|
@@ -2172,7 +2214,7 @@ export interface GetAutomationRevisionRequest {
|
|
|
2172
2214
|
* Requested fields.
|
|
2173
2215
|
* @maxSize 20
|
|
2174
2216
|
*/
|
|
2175
|
-
fields?:
|
|
2217
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
2176
2218
|
}
|
|
2177
2219
|
export interface GetAutomationRevisionResponse {
|
|
2178
2220
|
/** Automation revision. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automations-v2-automation-automations-v-2.types.js","sourceRoot":"","sources":["../../../src/automations-v2-automation-automations-v-2.types.ts"],"names":[],"mappings":";;;AA6GA,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,6BAA6B;IAC7B,uBAAa,CAAA;IACb,kBAAkB;IAClB,qBAAW,CAAA;IACX,gCAAgC;IAChC,qCAA2B,CAAA;AAC7B,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;
|
|
1
|
+
{"version":3,"file":"automations-v2-automation-automations-v-2.types.js","sourceRoot":"","sources":["../../../src/automations-v2-automation-automations-v-2.types.ts"],"names":[],"mappings":";;;AA6GA,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,6BAA6B;IAC7B,uBAAa,CAAA;IACb,kBAAkB;IAClB,qBAAW,CAAA;IACX,gCAAgC;IAChC,qCAA2B,CAAA;AAC7B,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;AA6DD,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,mDAAuC,CAAA;IACvC,eAAe;IACf,+BAAmB,CAAA;IACnB,aAAa;IACb,2BAAe,CAAA;IACf,YAAY;IACZ,yBAAa,CAAA;IACb,aAAa;IACb,2BAAe,CAAA;IACf,cAAc;IACd,6BAAiB,CAAA;AACnB,CAAC,EAZW,QAAQ,wBAAR,QAAQ,QAYnB;AA2FD,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,eAAe;IACf,iDAAqC,CAAA;IACrC,qBAAqB;IACrB,qBAAS,CAAA;IACT,sBAAsB;IACtB,uBAAW,CAAA;AACb,CAAC,EAPW,QAAQ,wBAAR,QAAQ,QAOnB;AAyBD,IAAY,IAWX;AAXD,WAAY,IAAI;IACd,4BAA4B;IAC5B,mDAA2C,CAAA;IAC3C,gOAAgO;IAChO,mCAA2B,CAAA;IAC3B,yDAAyD;IACzD,+BAAuB,CAAA;IACvB,sEAAsE;IACtE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