@wix/auto_sdk_automations_activation-log 1.0.0 → 1.0.2
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-activation-logs-v1-activation-log-activation-log.context.d.ts +1 -1
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +3 -3
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -1
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +5 -5
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -1
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +195 -192
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js +22 -18
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -1
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +212 -195
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +29 -18
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -1
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +1 -1
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +3 -3
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -1
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +5 -5
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -1
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +195 -192
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js +22 -18
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -1
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +212 -195
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +29 -18
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -1
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +1 -1
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +3 -3
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -1
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +5 -5
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -1
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +195 -192
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js +22 -18
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -1
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +212 -195
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +29 -18
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -1
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +1 -1
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +3 -3
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -1
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +5 -5
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -1
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +195 -192
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js +22 -18
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -1
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +212 -195
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +29 -18
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -1
- package/package.json +4 -4
package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
export interface ActivationLog {
|
|
2
3
|
/**
|
|
3
4
|
* Activation ID
|
|
@@ -312,9 +313,9 @@ export interface ActivationContinuedAfterSchedule {
|
|
|
312
313
|
automation?: Automation;
|
|
313
314
|
}
|
|
314
315
|
export interface Automation extends AutomationOriginInfoOneOf {
|
|
315
|
-
/**
|
|
316
|
+
/** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
|
|
316
317
|
applicationInfo?: ApplicationOrigin;
|
|
317
|
-
/**
|
|
318
|
+
/** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */
|
|
318
319
|
preinstalledInfo?: PreinstalledOrigin;
|
|
319
320
|
/**
|
|
320
321
|
* Automation ID.
|
|
@@ -323,37 +324,33 @@ export interface Automation extends AutomationOriginInfoOneOf {
|
|
|
323
324
|
*/
|
|
324
325
|
_id?: string | null;
|
|
325
326
|
/**
|
|
326
|
-
* Revision number
|
|
327
|
-
* To prevent conflicting changes,
|
|
328
|
-
* the current revision must be passed when updating the automation.
|
|
329
|
-
*
|
|
330
|
-
* Ignored when creating an automation.
|
|
327
|
+
* Revision number. This increments by 1 whenever the automation is updated. Specify the current revision number whenever updating an existing automation.
|
|
331
328
|
* @readonly
|
|
332
329
|
*/
|
|
333
330
|
revision?: string | null;
|
|
334
331
|
/**
|
|
335
|
-
*
|
|
332
|
+
* Who created the automation.
|
|
336
333
|
* @immutable
|
|
337
334
|
* @readonly
|
|
338
335
|
*/
|
|
339
336
|
createdBy?: AuditInfo;
|
|
340
337
|
/**
|
|
341
|
-
*
|
|
338
|
+
* When the automation was created.
|
|
342
339
|
* @readonly
|
|
343
340
|
*/
|
|
344
341
|
_createdDate?: Date | null;
|
|
345
342
|
/**
|
|
346
|
-
*
|
|
343
|
+
* Who last updated the automation.
|
|
347
344
|
* @readonly
|
|
348
345
|
*/
|
|
349
346
|
updatedBy?: AuditInfo;
|
|
350
347
|
/**
|
|
351
|
-
*
|
|
348
|
+
* When the automation was last updated.
|
|
352
349
|
* @readonly
|
|
353
350
|
*/
|
|
354
351
|
_updatedDate?: Date | null;
|
|
355
352
|
/**
|
|
356
|
-
* Automation name
|
|
353
|
+
* Automation name as displayed on the user's site.
|
|
357
354
|
* @minLength 1
|
|
358
355
|
* @maxLength 500
|
|
359
356
|
*/
|
|
@@ -363,60 +360,71 @@ export interface Automation extends AutomationOriginInfoOneOf {
|
|
|
363
360
|
* @maxLength 2000
|
|
364
361
|
*/
|
|
365
362
|
description?: string | null;
|
|
366
|
-
/**
|
|
363
|
+
/** Automation configuration. */
|
|
367
364
|
configuration?: AutomationConfiguration;
|
|
368
365
|
/**
|
|
369
|
-
*
|
|
366
|
+
* How the automation was added to the user's site.
|
|
370
367
|
* @immutable
|
|
371
368
|
*/
|
|
372
369
|
origin?: Origin;
|
|
373
370
|
/** Automation settings. */
|
|
374
371
|
settings?: AutomationSettings;
|
|
375
372
|
/**
|
|
376
|
-
*
|
|
373
|
+
* When the automation is a draft, the draft details.
|
|
377
374
|
* @readonly
|
|
378
375
|
*/
|
|
379
376
|
draftInfo?: DraftInfo;
|
|
380
377
|
/**
|
|
381
|
-
*
|
|
382
|
-
*
|
|
378
|
+
* Whether the automation is archived.
|
|
379
|
+
*
|
|
380
|
+
* To archive an automation, set this to `true`. To restore an archived automation, set this to `false`.
|
|
383
381
|
*/
|
|
384
|
-
|
|
385
|
-
/** Extended Fields */
|
|
386
|
-
extendedFields?: ExtendedFields;
|
|
382
|
+
archived?: boolean;
|
|
387
383
|
}
|
|
388
384
|
/** @oneof */
|
|
389
385
|
export interface AutomationOriginInfoOneOf {
|
|
390
|
-
/**
|
|
386
|
+
/** When the origin of the automation is `APPLICATION`, the details of the app that created it. */
|
|
391
387
|
applicationInfo?: ApplicationOrigin;
|
|
392
|
-
/**
|
|
388
|
+
/** When the origin of the automation is `PREINSTALLED`, the details of the preinstalled automation. */
|
|
393
389
|
preinstalledInfo?: PreinstalledOrigin;
|
|
394
390
|
}
|
|
395
391
|
export interface ActionSettings {
|
|
396
392
|
/**
|
|
397
|
-
*
|
|
398
|
-
*
|
|
393
|
+
* Permanent actions. Permanent actions cannot be deleted.
|
|
394
|
+
*
|
|
395
|
+
* When empty, all actions can be deleted by the user.
|
|
399
396
|
* @maxSize 30
|
|
400
397
|
* @format GUID
|
|
401
398
|
*/
|
|
402
399
|
permanentActionIds?: string[];
|
|
403
400
|
/**
|
|
404
|
-
*
|
|
405
|
-
*
|
|
401
|
+
* Read-only actions. Read-only actions cannot be edited.
|
|
402
|
+
*
|
|
403
|
+
* When empty, all actions are editable.
|
|
406
404
|
* @maxSize 30
|
|
407
405
|
* @format GUID
|
|
408
406
|
*/
|
|
409
407
|
readonlyActionIds?: string[];
|
|
410
|
-
/**
|
|
408
|
+
/**
|
|
409
|
+
* Whether to disable the ability to add a delay to the automation.
|
|
410
|
+
*
|
|
411
|
+
* Default: `false`.
|
|
412
|
+
*/
|
|
411
413
|
disableDelayAddition?: boolean;
|
|
412
|
-
/**
|
|
414
|
+
/**
|
|
415
|
+
* Whether to disable the ability to add a condition to the automation.
|
|
416
|
+
*
|
|
417
|
+
* Default: `false`.
|
|
418
|
+
*/
|
|
413
419
|
disableConditionAddition?: boolean;
|
|
414
420
|
}
|
|
415
421
|
export declare enum Domain {
|
|
416
422
|
/** User domain (default). */
|
|
417
423
|
USER = "USER",
|
|
418
424
|
/** Wix domain. */
|
|
419
|
-
WIX = "WIX"
|
|
425
|
+
WIX = "WIX",
|
|
426
|
+
/** Wix account-level domain. */
|
|
427
|
+
WIX_ACCOUNT = "WIX_ACCOUNT"
|
|
420
428
|
}
|
|
421
429
|
export interface Enrichment {
|
|
422
430
|
/**
|
|
@@ -427,12 +435,14 @@ export interface Enrichment {
|
|
|
427
435
|
}
|
|
428
436
|
export interface AuditInfo extends AuditInfoIdOneOf {
|
|
429
437
|
/**
|
|
430
|
-
* User ID.
|
|
438
|
+
* [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).
|
|
431
439
|
* @format GUID
|
|
432
440
|
*/
|
|
433
441
|
userId?: string;
|
|
434
442
|
/**
|
|
435
|
-
*
|
|
443
|
+
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
444
|
+
*
|
|
445
|
+
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
436
446
|
* @format GUID
|
|
437
447
|
*/
|
|
438
448
|
appId?: string;
|
|
@@ -440,40 +450,45 @@ export interface AuditInfo extends AuditInfoIdOneOf {
|
|
|
440
450
|
/** @oneof */
|
|
441
451
|
export interface AuditInfoIdOneOf {
|
|
442
452
|
/**
|
|
443
|
-
* User ID.
|
|
453
|
+
* [User ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#user-id).
|
|
444
454
|
* @format GUID
|
|
445
455
|
*/
|
|
446
456
|
userId?: string;
|
|
447
457
|
/**
|
|
448
|
-
*
|
|
458
|
+
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
459
|
+
*
|
|
460
|
+
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
449
461
|
* @format GUID
|
|
450
462
|
*/
|
|
451
463
|
appId?: string;
|
|
452
464
|
}
|
|
453
|
-
/** Automation runtime configuration */
|
|
454
465
|
export interface AutomationConfiguration {
|
|
455
466
|
/** Status of the automation on the site. */
|
|
456
467
|
status?: AutomationConfigurationStatus;
|
|
457
|
-
/**
|
|
468
|
+
/** Trigger configuration. */
|
|
458
469
|
trigger?: Trigger;
|
|
459
470
|
/**
|
|
460
|
-
*
|
|
471
|
+
* Root action IDs. A root action is the first action that runs after the trigger occurs. Root actions run in parallel.
|
|
472
|
+
*
|
|
473
|
+
* > **Note**: You can currently only specify 1 root action.
|
|
461
474
|
* @maxSize 20
|
|
462
475
|
* @format GUID
|
|
463
476
|
*/
|
|
464
477
|
rootActionIds?: string[];
|
|
465
|
-
/**
|
|
466
|
-
* Map of all actions that the automation may execute.
|
|
467
|
-
* The key is the action ID, and the value is the action configuration.
|
|
468
|
-
*/
|
|
478
|
+
/** Actions the automation can execute, as key:value pairs. For the key, specify the action ID. The value must be an object structured as described below. */
|
|
469
479
|
actions?: Record<string, Action>;
|
|
470
480
|
}
|
|
471
481
|
export declare enum TimeUnit {
|
|
472
482
|
UNKNOWN_TIME_UNIT = "UNKNOWN_TIME_UNIT",
|
|
483
|
+
/** Minutes. */
|
|
473
484
|
MINUTES = "MINUTES",
|
|
485
|
+
/** Hours. */
|
|
474
486
|
HOURS = "HOURS",
|
|
487
|
+
/** Days. */
|
|
475
488
|
DAYS = "DAYS",
|
|
489
|
+
/** Weeks. */
|
|
476
490
|
WEEKS = "WEEKS",
|
|
491
|
+
/** Months. */
|
|
477
492
|
MONTHS = "MONTHS"
|
|
478
493
|
}
|
|
479
494
|
export interface Filter {
|
|
@@ -483,42 +498,49 @@ export interface Filter {
|
|
|
483
498
|
*/
|
|
484
499
|
_id?: string;
|
|
485
500
|
/**
|
|
486
|
-
* Field key
|
|
501
|
+
* Field key.
|
|
502
|
+
*
|
|
503
|
+
* You can find the field key in [the trigger payload schema](https://dev.wix.com/docs/rest/business-management/automations/triggers/the-trigger-payload-schema).
|
|
487
504
|
* @minLength 1
|
|
488
505
|
* @maxLength 110
|
|
489
506
|
*/
|
|
490
507
|
fieldKey?: string;
|
|
491
508
|
/**
|
|
492
|
-
* Filter expression
|
|
509
|
+
* Filter expression.
|
|
510
|
+
*
|
|
511
|
+
* For the automation to run, the expression must evaluate to `true`.
|
|
493
512
|
* @maxLength 2500
|
|
494
513
|
*/
|
|
495
514
|
filterExpression?: string;
|
|
496
515
|
}
|
|
497
516
|
export interface FutureDateActivationOffset {
|
|
498
517
|
/**
|
|
499
|
-
*
|
|
500
|
-
*
|
|
518
|
+
* Amount of time before the trigger to run the automation.
|
|
519
|
+
*
|
|
520
|
+
* > **Note**: To delay an automation after the trigger event occurs, use a [delay action](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#delay-action).
|
|
501
521
|
* @maxLength 1000
|
|
502
522
|
*/
|
|
503
523
|
preScheduledEventOffsetExpression?: string;
|
|
504
|
-
/**
|
|
524
|
+
/** Unit in which to set the action offset. */
|
|
505
525
|
scheduledEventOffsetTimeUnit?: TimeUnit;
|
|
506
526
|
}
|
|
507
527
|
export interface RateLimit {
|
|
508
528
|
/**
|
|
509
|
-
*
|
|
529
|
+
* Maximum number of times the trigger can be activated.
|
|
510
530
|
* @maxLength 1000
|
|
511
531
|
*/
|
|
512
532
|
maxActivationsExpression?: string;
|
|
513
533
|
/**
|
|
514
|
-
* Duration of the rate
|
|
534
|
+
* Duration of the rate limit. The rate limit applies for the specified duration and then expires.
|
|
535
|
+
*
|
|
536
|
+
* When empty, the rate limit does not expire.
|
|
515
537
|
* @maxLength 1000
|
|
516
538
|
*/
|
|
517
539
|
durationExpression?: string | null;
|
|
518
|
-
/**
|
|
540
|
+
/** Unit in which to set the duration of the rate limit. */
|
|
519
541
|
durationTimeUnit?: TimeUnit;
|
|
520
542
|
/**
|
|
521
|
-
*
|
|
543
|
+
* Activation identifier used to count the number of activations.
|
|
522
544
|
* @minLength 1
|
|
523
545
|
* @maxLength 400
|
|
524
546
|
*/
|
|
@@ -526,17 +548,17 @@ export interface RateLimit {
|
|
|
526
548
|
}
|
|
527
549
|
export interface FilterValueSelection {
|
|
528
550
|
/**
|
|
529
|
-
* Values that can help the user filter certain automations
|
|
551
|
+
* Values that can help the user filter certain automations. Specify values in the following format: `<filter_id>__<selected_value>`.
|
|
530
552
|
* @maxLength 80
|
|
531
553
|
* @maxSize 50
|
|
532
554
|
*/
|
|
533
555
|
selectedFilterValues?: string[];
|
|
534
556
|
}
|
|
535
557
|
export interface ConditionExpressionGroup {
|
|
536
|
-
/**
|
|
558
|
+
/** Logical operator used to evaluate the condition expressions. */
|
|
537
559
|
operator?: Operator;
|
|
538
560
|
/**
|
|
539
|
-
*
|
|
561
|
+
* Expressions evaluated using the selected operator.
|
|
540
562
|
* @minSize 1
|
|
541
563
|
* @maxSize 20
|
|
542
564
|
* @maxLength 2500
|
|
@@ -544,25 +566,43 @@ export interface ConditionExpressionGroup {
|
|
|
544
566
|
booleanExpressions?: string[];
|
|
545
567
|
}
|
|
546
568
|
export declare enum Operator {
|
|
569
|
+
/** Unknown. */
|
|
547
570
|
UNKNOWN_OPERATOR = "UNKNOWN_OPERATOR",
|
|
571
|
+
/** `OR` operator. */
|
|
548
572
|
OR = "OR",
|
|
573
|
+
/** `AND` operator. */
|
|
549
574
|
AND = "AND"
|
|
550
575
|
}
|
|
576
|
+
/** Path definition */
|
|
577
|
+
export interface Path {
|
|
578
|
+
/**
|
|
579
|
+
* Unique path ID.
|
|
580
|
+
* @format GUID
|
|
581
|
+
*/
|
|
582
|
+
_id?: string;
|
|
583
|
+
/**
|
|
584
|
+
* Path display name.
|
|
585
|
+
* @minLength 1
|
|
586
|
+
* @maxLength 100
|
|
587
|
+
*/
|
|
588
|
+
name?: string;
|
|
589
|
+
/**
|
|
590
|
+
* ID of the action to run when this path is taken.
|
|
591
|
+
* @format GUID
|
|
592
|
+
*/
|
|
593
|
+
postActionId?: string | null;
|
|
594
|
+
}
|
|
551
595
|
export declare enum Type {
|
|
552
|
-
/**
|
|
596
|
+
/** Based on the trigger. */
|
|
553
597
|
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
554
|
-
/**
|
|
598
|
+
/** Defined by a [Wix app](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#app-defined-actions). This action type is available in the site dashboard. */
|
|
555
599
|
APP_DEFINED = "APP_DEFINED",
|
|
556
|
-
/** Condition
|
|
600
|
+
/** Condition. This determines which action runs next. */
|
|
557
601
|
CONDITION = "CONDITION",
|
|
558
|
-
/** Delay
|
|
602
|
+
/** Delay. The automation must wait before executing the next step. */
|
|
559
603
|
DELAY = "DELAY",
|
|
560
|
-
/**
|
|
561
|
-
RATE_LIMIT = "RATE_LIMIT"
|
|
562
|
-
/** Set Variables Action. */
|
|
563
|
-
SET_VARIABLES = "SET_VARIABLES",
|
|
564
|
-
/** Output Action. */
|
|
565
|
-
OUTPUT = "OUTPUT"
|
|
604
|
+
/** Rate-limiter. This stops the automation flow if the subsequent action has reached its maximum allowed executions. */
|
|
605
|
+
RATE_LIMIT = "RATE_LIMIT"
|
|
566
606
|
}
|
|
567
607
|
export interface AppDefinedAction {
|
|
568
608
|
/**
|
|
@@ -576,39 +616,39 @@ export interface AppDefinedAction {
|
|
|
576
616
|
* @maxLength 100
|
|
577
617
|
*/
|
|
578
618
|
actionKey?: string;
|
|
579
|
-
/** Action input mapping. */
|
|
619
|
+
/** Action input mapping as defined in the action's [input schema](https://dev.wix.com/docs/rest/business-management/automations/actions/the-action-input-schema). */
|
|
580
620
|
inputMapping?: Record<string, any> | null;
|
|
581
621
|
/**
|
|
582
|
-
*
|
|
583
|
-
*
|
|
584
|
-
* Actions
|
|
622
|
+
* Action skip conditions. An action is skipped if any of the specified conditions evaluates to `true`.
|
|
623
|
+
*
|
|
624
|
+
* > **Note**: Actions that follow a skipped action still run.
|
|
585
625
|
* @maxSize 10
|
|
586
626
|
*/
|
|
587
627
|
skipConditionOrExpressionGroups?: ConditionExpressionGroup[];
|
|
588
628
|
/**
|
|
589
|
-
*
|
|
629
|
+
* IDs of actions that run in parallel after the action completes.
|
|
590
630
|
* @maxSize 20
|
|
591
631
|
* @format GUID
|
|
592
632
|
*/
|
|
593
633
|
postActionIds?: string[];
|
|
594
|
-
/**
|
|
634
|
+
/** Action output schema. When specified, this replaces the action schema. */
|
|
595
635
|
overrideOutputSchema?: Record<string, any> | null;
|
|
596
636
|
}
|
|
597
637
|
export interface ConditionAction {
|
|
598
638
|
/**
|
|
599
|
-
*
|
|
639
|
+
* Condition is `true` if one or more of the expression groups evaluates to `true`.
|
|
600
640
|
* @minSize 1
|
|
601
641
|
* @maxSize 10
|
|
602
642
|
*/
|
|
603
643
|
orExpressionGroups?: ConditionExpressionGroup[];
|
|
604
644
|
/**
|
|
605
|
-
*
|
|
645
|
+
* IDs of actions to run when the condition evaluates to `true`.
|
|
606
646
|
* @maxSize 20
|
|
607
647
|
* @format GUID
|
|
608
648
|
*/
|
|
609
649
|
truePostActionIds?: string[];
|
|
610
650
|
/**
|
|
611
|
-
*
|
|
651
|
+
* IDs of actions to run when the condition evaluates to `false`.
|
|
612
652
|
* @maxSize 20
|
|
613
653
|
* @format GUID
|
|
614
654
|
*/
|
|
@@ -616,21 +656,23 @@ export interface ConditionAction {
|
|
|
616
656
|
}
|
|
617
657
|
export interface DelayAction {
|
|
618
658
|
/**
|
|
619
|
-
*
|
|
659
|
+
* Time to wait before running the action. The wait time starts from when the current action completes.
|
|
660
|
+
*
|
|
661
|
+
* > **Note**: To define the wait time from a specific moment in time, use `dueDateEpochExpression`.
|
|
620
662
|
* @maxLength 1000
|
|
621
663
|
*/
|
|
622
664
|
offsetExpression?: string | null;
|
|
623
|
-
/**
|
|
665
|
+
/** Unit in which to set the wait time to wait before the action runs. */
|
|
624
666
|
offsetTimeUnit?: TimeUnit;
|
|
625
667
|
/**
|
|
626
|
-
*
|
|
627
|
-
*
|
|
628
|
-
*
|
|
668
|
+
* Action run date in milliseconds elapsed since January 1, 1970 UTC.
|
|
669
|
+
*
|
|
670
|
+
* > **Note**: If an `offsetExpression` is defined, the delay is calculated from the time of the offset.
|
|
629
671
|
* @maxLength 1000
|
|
630
672
|
*/
|
|
631
673
|
dueDateEpochExpression?: string | null;
|
|
632
674
|
/**
|
|
633
|
-
*
|
|
675
|
+
* IDs of actions to run in parallel after the time delay.
|
|
634
676
|
* @maxSize 20
|
|
635
677
|
* @format GUID
|
|
636
678
|
*/
|
|
@@ -638,17 +680,18 @@ export interface DelayAction {
|
|
|
638
680
|
}
|
|
639
681
|
export interface RateLimitAction {
|
|
640
682
|
/**
|
|
641
|
-
*
|
|
683
|
+
* Maximum number of times the action can run.
|
|
642
684
|
* @maxLength 1000
|
|
643
685
|
*/
|
|
644
686
|
maxActivationsExpression?: string;
|
|
645
687
|
/**
|
|
646
|
-
*
|
|
647
|
-
*
|
|
688
|
+
* Rate limit duration.
|
|
689
|
+
*
|
|
690
|
+
* When empty, the rate limit does not expire.
|
|
648
691
|
* @maxLength 1000
|
|
649
692
|
*/
|
|
650
693
|
rateLimitDurationExpression?: string | null;
|
|
651
|
-
/**
|
|
694
|
+
/** Unit in which to set the duration of the rate limit. */
|
|
652
695
|
rateLimitDurationTimeUnit?: TimeUnit;
|
|
653
696
|
/**
|
|
654
697
|
* Unique identifier of each activation by which rate limiter counts activations.
|
|
@@ -657,25 +700,23 @@ export interface RateLimitAction {
|
|
|
657
700
|
*/
|
|
658
701
|
uniqueIdentifierExpression?: string | null;
|
|
659
702
|
/**
|
|
660
|
-
*
|
|
703
|
+
* IDs of actions to run in parallel after the action completes.
|
|
661
704
|
* @maxSize 20
|
|
662
705
|
* @format GUID
|
|
663
706
|
*/
|
|
664
707
|
postActionIds?: string[];
|
|
665
708
|
}
|
|
666
709
|
export interface SetVariablesAction {
|
|
667
|
-
/**
|
|
668
|
-
* output mapping
|
|
669
|
-
* for example: {"someField": "{{10}}", "someOtherField": "{{multiply( var('account.points.balance') ;2 )}}" }
|
|
670
|
-
*/
|
|
710
|
+
/** Output mapping. For example: `{"someField": "{{10}}", "someOtherField": "{{multiply( var('account.points.balance') ;2 )}}" }`. */
|
|
671
711
|
outputMapping?: Record<string, any> | null;
|
|
672
712
|
/**
|
|
673
|
-
*
|
|
674
|
-
*
|
|
713
|
+
* Output JSON schema representation.
|
|
714
|
+
*
|
|
715
|
+
* > **Note**: To minimize request size, you can also specify a string.
|
|
675
716
|
*/
|
|
676
717
|
outputSchema?: Record<string, any> | null;
|
|
677
718
|
/**
|
|
678
|
-
*
|
|
719
|
+
* IDs of actions to run in parallel after variable initialization.
|
|
679
720
|
* @maxSize 20
|
|
680
721
|
* @format GUID
|
|
681
722
|
*/
|
|
@@ -685,12 +726,20 @@ export interface OutputAction {
|
|
|
685
726
|
/** Output action output mapping. */
|
|
686
727
|
outputMapping?: Record<string, any> | null;
|
|
687
728
|
}
|
|
729
|
+
export interface SplitAction {
|
|
730
|
+
/**
|
|
731
|
+
* List of paths to split execution into.
|
|
732
|
+
* @minSize 2
|
|
733
|
+
* @maxSize 10
|
|
734
|
+
*/
|
|
735
|
+
paths?: Path[];
|
|
736
|
+
}
|
|
688
737
|
export declare enum AutomationConfigurationStatus {
|
|
689
|
-
/**
|
|
738
|
+
/** Unknown. */
|
|
690
739
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
691
|
-
/**
|
|
740
|
+
/** Active. Active automations can be triggered. */
|
|
692
741
|
ACTIVE = "ACTIVE",
|
|
693
|
-
/**
|
|
742
|
+
/** Inactive. Inactive automations cannot be triggered. */
|
|
694
743
|
INACTIVE = "INACTIVE"
|
|
695
744
|
}
|
|
696
745
|
export interface Trigger {
|
|
@@ -701,51 +750,52 @@ export interface Trigger {
|
|
|
701
750
|
appId?: string;
|
|
702
751
|
/**
|
|
703
752
|
* Trigger key.
|
|
753
|
+
*
|
|
754
|
+
* Learn about [setting up a trigger](https://dev.wix.com/docs/rest/business-management/automations/triggers/add-a-trigger-to-your-app#step-1--set-up-the-trigger).
|
|
704
755
|
* @minLength 1
|
|
705
756
|
* @maxLength 100
|
|
706
757
|
*/
|
|
707
758
|
triggerKey?: string;
|
|
708
759
|
/**
|
|
709
|
-
*
|
|
710
|
-
*
|
|
760
|
+
* Schema field filters. All filter conditions must be met for the automation to run.
|
|
761
|
+
*
|
|
762
|
+
* Learn more about setting up [automation filters](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#filters).
|
|
711
763
|
* @maxSize 5
|
|
712
764
|
*/
|
|
713
765
|
filters?: Filter[];
|
|
714
|
-
/** Defines the time offset between the trigger date and when the automation runs. */
|
|
715
|
-
scheduledEventOffset?: FutureDateActivationOffset;
|
|
716
|
-
/** Limits the number of times an automation can be triggered. */
|
|
717
|
-
rateLimit?: RateLimit;
|
|
718
766
|
/**
|
|
719
|
-
*
|
|
720
|
-
*
|
|
721
|
-
*
|
|
767
|
+
* Automation offset. You can schedule automations to run before the trigger occurs.
|
|
768
|
+
*
|
|
769
|
+
* Learn more about [scheduled events](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/configure-your-automation#scheduled-events).
|
|
722
770
|
*/
|
|
723
|
-
|
|
724
|
-
/**
|
|
771
|
+
scheduledEventOffset?: FutureDateActivationOffset;
|
|
772
|
+
/** Limit on the number of times an automation can be triggered. */
|
|
773
|
+
rateLimit?: RateLimit;
|
|
774
|
+
/** Trigger schema override. When specified, this replaces the trigger schema. */
|
|
725
775
|
overrideSchema?: Record<string, any> | null;
|
|
726
776
|
}
|
|
727
777
|
export interface Action extends ActionInfoOneOf {
|
|
728
|
-
/**
|
|
778
|
+
/** Details of the action when its `type` is `APP_DEFINED`. */
|
|
729
779
|
appDefinedInfo?: AppDefinedAction;
|
|
730
|
-
/**
|
|
780
|
+
/** Details of the action when its `type` is `CONDITION`. */
|
|
731
781
|
conditionInfo?: ConditionAction;
|
|
732
|
-
/**
|
|
782
|
+
/** Details of the action when its `type` is `DELAY`. */
|
|
733
783
|
delayInfo?: DelayAction;
|
|
734
|
-
/**
|
|
784
|
+
/** Details of the action when its `type` is `RATE_LIMIT`. */
|
|
735
785
|
rateLimitInfo?: RateLimitAction;
|
|
736
786
|
/**
|
|
737
|
-
* Action ID.
|
|
787
|
+
* Action ID.
|
|
788
|
+
*
|
|
789
|
+
* If not specified, automatically generated by Wix.
|
|
738
790
|
* @format GUID
|
|
739
791
|
*/
|
|
740
792
|
_id?: string | null;
|
|
741
|
-
/** Action type. */
|
|
793
|
+
/** [Action type](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#action-type). */
|
|
742
794
|
type?: Type;
|
|
743
795
|
/**
|
|
744
|
-
*
|
|
745
|
-
*
|
|
746
|
-
*
|
|
747
|
-
* If the action has output, the output will be available in the payload under this name.
|
|
748
|
-
* If the user has multiple actions with the same appId and actionKey, previous action output will be overwritten.
|
|
796
|
+
* [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.
|
|
797
|
+
*
|
|
798
|
+
* If the action outputs any data, the data appears under the namespace in the payload sent to the subsequent steps in the automation. If the user has multiple actions with the same `appId` and `actionKey`, the output of the previous action is overwritten.
|
|
749
799
|
* @minLength 1
|
|
750
800
|
* @maxLength 100
|
|
751
801
|
*/
|
|
@@ -753,18 +803,18 @@ export interface Action extends ActionInfoOneOf {
|
|
|
753
803
|
}
|
|
754
804
|
/** @oneof */
|
|
755
805
|
export interface ActionInfoOneOf {
|
|
756
|
-
/**
|
|
806
|
+
/** Details of the action when its `type` is `APP_DEFINED`. */
|
|
757
807
|
appDefinedInfo?: AppDefinedAction;
|
|
758
|
-
/**
|
|
808
|
+
/** Details of the action when its `type` is `CONDITION`. */
|
|
759
809
|
conditionInfo?: ConditionAction;
|
|
760
|
-
/**
|
|
810
|
+
/** Details of the action when its `type` is `DELAY`. */
|
|
761
811
|
delayInfo?: DelayAction;
|
|
762
|
-
/**
|
|
812
|
+
/** Details of the action when its `type` is `RATE_LIMIT`. */
|
|
763
813
|
rateLimitInfo?: RateLimitAction;
|
|
764
814
|
}
|
|
765
815
|
export interface FilterableAppDefinedActions {
|
|
766
816
|
/**
|
|
767
|
-
* App
|
|
817
|
+
* App-defined action identifiers. Identifiers have the following format: `${appId}_${actionKey}`.
|
|
768
818
|
* @minSize 1
|
|
769
819
|
* @maxSize 100
|
|
770
820
|
* @minLength 1
|
|
@@ -773,48 +823,40 @@ export interface FilterableAppDefinedActions {
|
|
|
773
823
|
actionIdentifiers?: string[];
|
|
774
824
|
}
|
|
775
825
|
export declare enum Origin {
|
|
776
|
-
/** Default value.
|
|
826
|
+
/** Default value. */
|
|
777
827
|
UNKNOWN_ORIGIN = "UNKNOWN_ORIGIN",
|
|
778
|
-
/**
|
|
828
|
+
/** Created by a [Wix user](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-user). */
|
|
779
829
|
USER = "USER",
|
|
780
|
-
/**
|
|
830
|
+
/** Created by a [Wix app](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-app) for a particular site. */
|
|
781
831
|
APPLICATION = "APPLICATION",
|
|
782
|
-
/** Preinstalled
|
|
783
|
-
PREINSTALLED = "PREINSTALLED"
|
|
784
|
-
/** Automation created from a recipe. */
|
|
785
|
-
RECIPE = "RECIPE"
|
|
832
|
+
/** [Preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations). */
|
|
833
|
+
PREINSTALLED = "PREINSTALLED"
|
|
786
834
|
}
|
|
787
835
|
export interface ApplicationOrigin {
|
|
788
836
|
/**
|
|
789
|
-
*
|
|
837
|
+
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
838
|
+
*
|
|
839
|
+
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
790
840
|
* @format GUID
|
|
791
841
|
*/
|
|
792
842
|
appId?: string;
|
|
793
|
-
/**
|
|
794
|
-
* External ID to correlate multiple sites to an automation
|
|
795
|
-
* @format GUID
|
|
796
|
-
*/
|
|
797
|
-
appDefinedExternalId?: string | null;
|
|
798
843
|
}
|
|
799
844
|
export interface PreinstalledOrigin {
|
|
800
845
|
/**
|
|
801
|
-
* ID of the app that
|
|
846
|
+
* ID of the app that added the [preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations).
|
|
802
847
|
* @format GUID
|
|
803
848
|
*/
|
|
804
849
|
appId?: string;
|
|
805
850
|
/**
|
|
806
|
-
*
|
|
807
|
-
* @format GUID
|
|
808
|
-
*/
|
|
809
|
-
componentId?: string;
|
|
810
|
-
/** Application component version. */
|
|
811
|
-
componentVersion?: number;
|
|
812
|
-
/**
|
|
813
|
-
* Whether the automation is an override automation. If the user modifies the preinstalled automation installed on their site, a site-specific
|
|
814
|
-
* automation is created that overrides the original one. If the user makes no modifications this boolean is set to `false` and the original
|
|
815
|
-
* preinstalled automation is used.
|
|
851
|
+
* Whether the automation is an override.
|
|
816
852
|
*
|
|
817
|
-
*
|
|
853
|
+
* When a user modifies the preinstalled automation installed on their site, a site-specific version of the automation is created that overrides the automation that was originally installed. This override automation has the same automation ID as the original preinstalled automation.
|
|
854
|
+
*
|
|
855
|
+
* > **Note**: An override automation can no longer be updated by the app that originally installed it.
|
|
856
|
+
* >
|
|
857
|
+
* > To revert to the original preinstalled version, the user must delete the override by calling the Delete Automation method. Calling Delete Automation on an override automation removes the override method and restores the preinstalled automation that was previously installed.
|
|
858
|
+
*
|
|
859
|
+
* Default: `false`.
|
|
818
860
|
* @immutable
|
|
819
861
|
* @readonly
|
|
820
862
|
*/
|
|
@@ -823,22 +865,26 @@ export interface PreinstalledOrigin {
|
|
|
823
865
|
export interface AutomationSettings {
|
|
824
866
|
/**
|
|
825
867
|
* Whether the automation is hidden from users.
|
|
868
|
+
*
|
|
826
869
|
* Default: `false`
|
|
827
870
|
*/
|
|
828
871
|
hidden?: boolean;
|
|
829
872
|
/**
|
|
830
873
|
* Whether the automation is read-only.
|
|
874
|
+
*
|
|
831
875
|
* Default: `false`
|
|
832
876
|
*/
|
|
833
877
|
readonly?: boolean;
|
|
834
878
|
/**
|
|
835
|
-
* Whether the option to delete the automation from the site
|
|
836
|
-
*
|
|
879
|
+
* Whether to disable the option to delete the automation from the site.
|
|
880
|
+
*
|
|
881
|
+
* Default: `false`.
|
|
837
882
|
*/
|
|
838
883
|
disableDelete?: boolean;
|
|
839
884
|
/**
|
|
840
|
-
* Whether the option to change the automation status
|
|
841
|
-
*
|
|
885
|
+
* Whether to disable the option to change the automation's `configuration.status`, for example from `ACTIVE` to `INACTIVE`.
|
|
886
|
+
*
|
|
887
|
+
* Default: `false`.
|
|
842
888
|
*/
|
|
843
889
|
disableStatusChange?: boolean;
|
|
844
890
|
/** Automation action settings. */
|
|
@@ -846,7 +892,7 @@ export interface AutomationSettings {
|
|
|
846
892
|
}
|
|
847
893
|
export interface DraftInfo {
|
|
848
894
|
/**
|
|
849
|
-
*
|
|
895
|
+
* ID of the original automation.
|
|
850
896
|
* @format GUID
|
|
851
897
|
* @readonly
|
|
852
898
|
*/
|
|
@@ -916,7 +962,7 @@ export interface ListActivationLogsRequest extends ListActivationLogsRequestIden
|
|
|
916
962
|
/** Should return payload in the response */
|
|
917
963
|
includePayload?: boolean | null;
|
|
918
964
|
/** identifier type for the activations to list */
|
|
919
|
-
identifierType
|
|
965
|
+
identifierType: IdentifierType;
|
|
920
966
|
}
|
|
921
967
|
/** @oneof */
|
|
922
968
|
export interface ListActivationLogsRequestIdentifierOneOf {
|
|
@@ -1098,47 +1144,7 @@ export declare enum WebhookIdentityType {
|
|
|
1098
1144
|
WIX_USER = "WIX_USER",
|
|
1099
1145
|
APP = "APP"
|
|
1100
1146
|
}
|
|
1101
|
-
|
|
1102
|
-
target: Target;
|
|
1103
|
-
}
|
|
1104
|
-
interface ScheduledStatusInfoNonNullableFields {
|
|
1105
|
-
scheduleId: string;
|
|
1106
|
-
}
|
|
1107
|
-
interface CancelledStatusInfoNonNullableFields {
|
|
1108
|
-
reason: CancellationReason;
|
|
1109
|
-
}
|
|
1110
|
-
interface FailedStatusInfoNonNullableFields {
|
|
1111
|
-
errorDescription: string;
|
|
1112
|
-
errorReason: ErrorReason;
|
|
1113
|
-
}
|
|
1114
|
-
interface SkippedStatusInfoNonNullableFields {
|
|
1115
|
-
reason: SkipReason;
|
|
1116
|
-
}
|
|
1117
|
-
interface WarningNonNullableFields {
|
|
1118
|
-
errorDescription: string;
|
|
1119
|
-
reason: WarningReason;
|
|
1120
|
-
}
|
|
1121
|
-
export interface ActivationLogNonNullableFields {
|
|
1122
|
-
_id: string;
|
|
1123
|
-
automationId: string;
|
|
1124
|
-
automationRevision: string;
|
|
1125
|
-
status: Status;
|
|
1126
|
-
initiatedInfo?: InitiatedStatusInfoNonNullableFields;
|
|
1127
|
-
scheduledInfo?: ScheduledStatusInfoNonNullableFields;
|
|
1128
|
-
cancelledInfo?: CancelledStatusInfoNonNullableFields;
|
|
1129
|
-
failedInfo?: FailedStatusInfoNonNullableFields;
|
|
1130
|
-
skippedInfo?: SkippedStatusInfoNonNullableFields;
|
|
1131
|
-
warnings: WarningNonNullableFields[];
|
|
1132
|
-
}
|
|
1133
|
-
export interface GetActivationLogResponseNonNullableFields {
|
|
1134
|
-
activationLog?: ActivationLogNonNullableFields;
|
|
1135
|
-
}
|
|
1136
|
-
export interface ListActivationLogsResponseNonNullableFields {
|
|
1137
|
-
activationLogs: ActivationLogNonNullableFields[];
|
|
1138
|
-
}
|
|
1139
|
-
export interface SearchActivationLogsByPayloadPiiValueResponseNonNullableFields {
|
|
1140
|
-
activationLogs: ActivationLogNonNullableFields[];
|
|
1141
|
-
}
|
|
1147
|
+
type ActivationLogNonNullablePaths = `_id` | `automationId` | `automationRevision` | `status` | `initiatedInfo.target` | `scheduledInfo.scheduleId` | `cancelledInfo.reason` | `failedInfo.errorDescription` | `failedInfo.errorReason` | `skippedInfo.reason` | `warnings` | `warnings.${number}.errorDescription` | `warnings.${number}.reason`;
|
|
1142
1148
|
/**
|
|
1143
1149
|
* Get activation log by ID
|
|
1144
1150
|
* @param activationId - Activation log ID
|
|
@@ -1146,24 +1152,31 @@ export interface SearchActivationLogsByPayloadPiiValueResponseNonNullableFields
|
|
|
1146
1152
|
* @documentationMaturity preview
|
|
1147
1153
|
* @requiredField activationId
|
|
1148
1154
|
* @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
|
|
1155
|
+
* @permissionScope Manage Stores
|
|
1156
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1149
1157
|
* @permissionScope Set Up Automations
|
|
1150
1158
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1151
1159
|
* @applicableIdentity APP
|
|
1152
1160
|
* @returns Activation log
|
|
1153
1161
|
* @fqn wix.automations.activation_logs.v1.ActivationLogsService.GetActivationLog
|
|
1154
1162
|
*/
|
|
1155
|
-
export declare function getActivationLog(activationId: string): Promise<ActivationLog
|
|
1163
|
+
export declare function getActivationLog(activationId: string): Promise<NonNullablePaths<ActivationLog, ActivationLogNonNullablePaths>>;
|
|
1156
1164
|
/**
|
|
1157
1165
|
* List activation logs
|
|
1158
1166
|
* @public
|
|
1159
1167
|
* @documentationMaturity preview
|
|
1168
|
+
* @requiredField options.identifierType
|
|
1160
1169
|
* @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
|
|
1170
|
+
* @permissionScope Manage Stores
|
|
1171
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1161
1172
|
* @permissionScope Set Up Automations
|
|
1162
1173
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1163
1174
|
* @applicableIdentity APP
|
|
1164
1175
|
* @fqn wix.automations.activation_logs.v1.ActivationLogsService.ListActivationLogs
|
|
1165
1176
|
*/
|
|
1166
|
-
export declare function listActivationLogs(options?: ListActivationLogsOptions): Promise<ListActivationLogsResponse
|
|
1177
|
+
export declare function listActivationLogs(options?: NonNullablePaths<ListActivationLogsOptions, `identifierType`>): Promise<NonNullablePaths<ListActivationLogsResponse, {
|
|
1178
|
+
[P in ActivationLogNonNullablePaths]: `activationLogs.${number}.${P}`;
|
|
1179
|
+
}[ActivationLogNonNullablePaths]>>;
|
|
1167
1180
|
export interface ListActivationLogsOptions extends ListActivationLogsOptionsIdentifierOneOf {
|
|
1168
1181
|
/** From created date, If not specified, defaults to 30 days before the current time. */
|
|
1169
1182
|
fromCreatedDate?: Date | null;
|
|
@@ -1174,7 +1187,7 @@ export interface ListActivationLogsOptions extends ListActivationLogsOptionsIden
|
|
|
1174
1187
|
/** Should return payload in the response */
|
|
1175
1188
|
includePayload?: boolean | null;
|
|
1176
1189
|
/** identifier type for the activations to list */
|
|
1177
|
-
identifierType
|
|
1190
|
+
identifierType: IdentifierType;
|
|
1178
1191
|
/** Look up activations by automation id */
|
|
1179
1192
|
automationIdInfo?: AutomationIdInfo;
|
|
1180
1193
|
/** Look up activations by preinstalled identifier */
|
|
@@ -1196,12 +1209,16 @@ export interface ListActivationLogsOptionsIdentifierOneOf {
|
|
|
1196
1209
|
* @documentationMaturity preview
|
|
1197
1210
|
* @requiredField value
|
|
1198
1211
|
* @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
|
|
1212
|
+
* @permissionScope Manage Stores
|
|
1213
|
+
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1199
1214
|
* @permissionScope Set Up Automations
|
|
1200
1215
|
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1201
1216
|
* @applicableIdentity APP
|
|
1202
1217
|
* @fqn wix.automations.activation_logs.v1.ActivationLogsService.SearchActivationLogsByPayloadPiiValue
|
|
1203
1218
|
*/
|
|
1204
|
-
export declare function searchActivationLogsByPayloadPiiValue(value: string, options?: SearchActivationLogsByPayloadPiiValueOptions): Promise<SearchActivationLogsByPayloadPiiValueResponse
|
|
1219
|
+
export declare function searchActivationLogsByPayloadPiiValue(value: string, options?: SearchActivationLogsByPayloadPiiValueOptions): Promise<NonNullablePaths<SearchActivationLogsByPayloadPiiValueResponse, {
|
|
1220
|
+
[P in ActivationLogNonNullablePaths]: `activationLogs.${number}.${P}`;
|
|
1221
|
+
}[ActivationLogNonNullablePaths]>>;
|
|
1205
1222
|
export interface SearchActivationLogsByPayloadPiiValueOptions extends SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf {
|
|
1206
1223
|
/** Paging */
|
|
1207
1224
|
cursorPaging?: CursorPaging;
|