@wix/automations 1.0.66 → 1.0.67
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/package.json +5 -5
- package/type-bundles/context.bundle.d.ts +389 -391
- package/type-bundles/index.bundle.d.ts +389 -391
- package/type-bundles/meta.bundle.d.ts +28 -28
|
@@ -1891,21 +1891,21 @@ interface AutomationCreatedEnvelope$1 {
|
|
|
1891
1891
|
entity: Automation$2;
|
|
1892
1892
|
metadata: EventMetadata$2;
|
|
1893
1893
|
}
|
|
1894
|
+
interface AutomationDeletedEnvelope$1 {
|
|
1895
|
+
metadata: EventMetadata$2;
|
|
1896
|
+
}
|
|
1894
1897
|
interface AutomationUpdatedEnvelope$1 {
|
|
1895
1898
|
entity: Automation$2;
|
|
1896
1899
|
metadata: EventMetadata$2;
|
|
1897
1900
|
}
|
|
1898
|
-
interface
|
|
1901
|
+
interface AutomationDeletedWithEntityEnvelope$1 {
|
|
1902
|
+
data: DeletedWithEntity$1;
|
|
1899
1903
|
metadata: EventMetadata$2;
|
|
1900
1904
|
}
|
|
1901
1905
|
interface AutomationUpdatedWithPreviousEntityEnvelope$1 {
|
|
1902
1906
|
data: UpdatedWithPreviousEntity$1;
|
|
1903
1907
|
metadata: EventMetadata$2;
|
|
1904
1908
|
}
|
|
1905
|
-
interface AutomationDeletedWithEntityEnvelope$1 {
|
|
1906
|
-
data: DeletedWithEntity$1;
|
|
1907
|
-
metadata: EventMetadata$2;
|
|
1908
|
-
}
|
|
1909
1909
|
interface GetAutomationOptions$1 {
|
|
1910
1910
|
/** Automation type */
|
|
1911
1911
|
automationType?: Type$2;
|
|
@@ -2212,10 +2212,10 @@ interface GenerateActionInputMappingFromTemplateSignature {
|
|
|
2212
2212
|
(appId: string, options: GenerateActionInputMappingFromTemplateOptions): Promise<GenerateActionInputMappingFromTemplateResponse>;
|
|
2213
2213
|
}
|
|
2214
2214
|
declare const onAutomationCreated$3: EventDefinition<AutomationCreatedEnvelope$1, "wix.automations.v1.automation_created">;
|
|
2215
|
-
declare const onAutomationUpdated$3: EventDefinition<AutomationUpdatedEnvelope$1, "wix.automations.v1.automation_updated">;
|
|
2216
2215
|
declare const onAutomationDeleted$3: EventDefinition<AutomationDeletedEnvelope$1, "wix.automations.v1.automation_deleted">;
|
|
2217
|
-
declare const
|
|
2216
|
+
declare const onAutomationUpdated$3: EventDefinition<AutomationUpdatedEnvelope$1, "wix.automations.v1.automation_updated">;
|
|
2218
2217
|
declare const onAutomationDeletedWithEntity$3: EventDefinition<AutomationDeletedWithEntityEnvelope$1, "wix.automations.v1.automation_deleted_with_entity">;
|
|
2218
|
+
declare const onAutomationUpdatedWithPreviousEntity$3: EventDefinition<AutomationUpdatedWithPreviousEntityEnvelope$1, "wix.automations.v1.automation_updated_with_previous_entity">;
|
|
2219
2219
|
|
|
2220
2220
|
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
2221
2221
|
|
|
@@ -2236,22 +2236,22 @@ type _publicOnAutomationCreatedType$1 = typeof onAutomationCreated$3;
|
|
|
2236
2236
|
/** */
|
|
2237
2237
|
declare const onAutomationCreated$2: ReturnType<typeof createEventModule$2<_publicOnAutomationCreatedType>>;
|
|
2238
2238
|
|
|
2239
|
-
type _publicOnAutomationUpdatedType$1 = typeof onAutomationUpdated$3;
|
|
2240
|
-
/** */
|
|
2241
|
-
declare const onAutomationUpdated$2: ReturnType<typeof createEventModule$2<_publicOnAutomationUpdatedType>>;
|
|
2242
|
-
|
|
2243
2239
|
type _publicOnAutomationDeletedType$1 = typeof onAutomationDeleted$3;
|
|
2244
2240
|
/** */
|
|
2245
2241
|
declare const onAutomationDeleted$2: ReturnType<typeof createEventModule$2<_publicOnAutomationDeletedType>>;
|
|
2246
2242
|
|
|
2247
|
-
type
|
|
2243
|
+
type _publicOnAutomationUpdatedType$1 = typeof onAutomationUpdated$3;
|
|
2248
2244
|
/** */
|
|
2249
|
-
declare const
|
|
2245
|
+
declare const onAutomationUpdated$2: ReturnType<typeof createEventModule$2<_publicOnAutomationUpdatedType>>;
|
|
2250
2246
|
|
|
2251
2247
|
type _publicOnAutomationDeletedWithEntityType$1 = typeof onAutomationDeletedWithEntity$3;
|
|
2252
2248
|
/** */
|
|
2253
2249
|
declare const onAutomationDeletedWithEntity$2: ReturnType<typeof createEventModule$2<_publicOnAutomationDeletedWithEntityType>>;
|
|
2254
2250
|
|
|
2251
|
+
type _publicOnAutomationUpdatedWithPreviousEntityType$1 = typeof onAutomationUpdatedWithPreviousEntity$3;
|
|
2252
|
+
/** */
|
|
2253
|
+
declare const onAutomationUpdatedWithPreviousEntity$2: ReturnType<typeof createEventModule$2<_publicOnAutomationUpdatedWithPreviousEntityType>>;
|
|
2254
|
+
|
|
2255
2255
|
type index_d$2_ActivationReport = ActivationReport;
|
|
2256
2256
|
type index_d$2_AutomationMetadata = AutomationMetadata;
|
|
2257
2257
|
type index_d$2_BulkCreateApplicationAutomationRequest = BulkCreateApplicationAutomationRequest;
|
|
@@ -3022,6 +3022,10 @@ declare enum WebhookIdentityType$1 {
|
|
|
3022
3022
|
WIX_USER = "WIX_USER",
|
|
3023
3023
|
APP = "APP"
|
|
3024
3024
|
}
|
|
3025
|
+
interface BatchActivationRequest {
|
|
3026
|
+
/** List of Activation-Request. */
|
|
3027
|
+
activationRequests?: ActivationRequest[];
|
|
3028
|
+
}
|
|
3025
3029
|
interface ActivationRequest {
|
|
3026
3030
|
/** Activation's ID. */
|
|
3027
3031
|
activationId?: string;
|
|
@@ -3249,219 +3253,6 @@ interface ActionsData {
|
|
|
3249
3253
|
/** Map of action id to action data. */
|
|
3250
3254
|
actions?: Record<string, Action$1>;
|
|
3251
3255
|
}
|
|
3252
|
-
interface ActionStatus {
|
|
3253
|
-
/** Action's status. */
|
|
3254
|
-
_id?: string;
|
|
3255
|
-
/** Activation's ID. */
|
|
3256
|
-
activationId?: string;
|
|
3257
|
-
/** Action's name. */
|
|
3258
|
-
actionName?: string | null;
|
|
3259
|
-
/** Action's status. */
|
|
3260
|
-
status?: Status$1;
|
|
3261
|
-
/** Action's error reason (if there is one). */
|
|
3262
|
-
errorReason?: string | null;
|
|
3263
|
-
/** Activation external id. */
|
|
3264
|
-
activationExternalId?: string;
|
|
3265
|
-
/** Trigger app id. */
|
|
3266
|
-
triggerAppId?: string | null;
|
|
3267
|
-
/** Trigger key. */
|
|
3268
|
-
triggerKey?: string | null;
|
|
3269
|
-
/** The configuration correlation id */
|
|
3270
|
-
configurationCorrelationId?: string | null;
|
|
3271
|
-
}
|
|
3272
|
-
interface BatchActivationRequest {
|
|
3273
|
-
/** List of Activation-Request. */
|
|
3274
|
-
activationRequests?: ActivationRequest[];
|
|
3275
|
-
}
|
|
3276
|
-
interface Empty$1 {
|
|
3277
|
-
}
|
|
3278
|
-
interface ActivationActionStatusChanged extends ActivationActionStatusChangedStatusInfoOneOf {
|
|
3279
|
-
/** Started status information */
|
|
3280
|
-
startedInfo?: StartedStatusInfo;
|
|
3281
|
-
/** Ended status information */
|
|
3282
|
-
endedInfo?: EndedStatusInfo;
|
|
3283
|
-
/** Failed status information */
|
|
3284
|
-
failedInfo?: FailedStatusInfo;
|
|
3285
|
-
/** Action ID */
|
|
3286
|
-
_id?: string;
|
|
3287
|
-
/** Activation ID */
|
|
3288
|
-
activationId?: string;
|
|
3289
|
-
/** Automation info */
|
|
3290
|
-
automationInfo?: AutomationInfo;
|
|
3291
|
-
/** Action type */
|
|
3292
|
-
type?: Type$1;
|
|
3293
|
-
/** Event date */
|
|
3294
|
-
statusChangedDate?: Date | null;
|
|
3295
|
-
/** Action activation status */
|
|
3296
|
-
status?: ActivationActionStatusChangedStatus;
|
|
3297
|
-
}
|
|
3298
|
-
/** @oneof */
|
|
3299
|
-
interface ActivationActionStatusChangedStatusInfoOneOf {
|
|
3300
|
-
/** Started status information */
|
|
3301
|
-
startedInfo?: StartedStatusInfo;
|
|
3302
|
-
/** Ended status information */
|
|
3303
|
-
endedInfo?: EndedStatusInfo;
|
|
3304
|
-
/** Failed status information */
|
|
3305
|
-
failedInfo?: FailedStatusInfo;
|
|
3306
|
-
}
|
|
3307
|
-
interface StartedStatusInfoAppDefinedActionInfo {
|
|
3308
|
-
/** Action input */
|
|
3309
|
-
input?: Record<string, any> | null;
|
|
3310
|
-
}
|
|
3311
|
-
interface DelayActionInfo {
|
|
3312
|
-
/** Indicates when this action becomes completed and the activation will move to the post actions */
|
|
3313
|
-
date?: Date | null;
|
|
3314
|
-
}
|
|
3315
|
-
interface ExpressionEvaluationResult {
|
|
3316
|
-
/** Indicates if the expression was evaluated to true or false */
|
|
3317
|
-
passed?: boolean;
|
|
3318
|
-
/** Indicates if there was an error in the evaluation process */
|
|
3319
|
-
error?: boolean;
|
|
3320
|
-
}
|
|
3321
|
-
interface AppDefinedActionInfo {
|
|
3322
|
-
/** Output returned by the action implementer. */
|
|
3323
|
-
output?: Record<string, any> | null;
|
|
3324
|
-
}
|
|
3325
|
-
interface ConditionActionInfo {
|
|
3326
|
-
/** Indicates that the condition `if` clause evaluated to `true`. */
|
|
3327
|
-
passed?: boolean;
|
|
3328
|
-
/** Collects results per each expression evaluation that took place */
|
|
3329
|
-
expressionResults?: Record<string, ExpressionEvaluationResult>;
|
|
3330
|
-
}
|
|
3331
|
-
interface RateLimitActionInfo {
|
|
3332
|
-
/** Indicates if the rate limiter passed (not reached the quota) */
|
|
3333
|
-
passed?: boolean;
|
|
3334
|
-
}
|
|
3335
|
-
interface AutomationInfo extends AutomationInfoOriginInfoOneOf {
|
|
3336
|
-
/** Application info */
|
|
3337
|
-
applicationInfo?: ApplicationOrigin$1;
|
|
3338
|
-
/** Preinstalled info */
|
|
3339
|
-
preinstalledInfo?: PreinstalledOrigin$1;
|
|
3340
|
-
/** Automation ID */
|
|
3341
|
-
_id?: string;
|
|
3342
|
-
/** Origin type */
|
|
3343
|
-
origin?: Origin$1;
|
|
3344
|
-
}
|
|
3345
|
-
/** @oneof */
|
|
3346
|
-
interface AutomationInfoOriginInfoOneOf {
|
|
3347
|
-
/** Application info */
|
|
3348
|
-
applicationInfo?: ApplicationOrigin$1;
|
|
3349
|
-
/** Preinstalled info */
|
|
3350
|
-
preinstalledInfo?: PreinstalledOrigin$1;
|
|
3351
|
-
}
|
|
3352
|
-
declare enum ActivationActionStatusChangedStatus {
|
|
3353
|
-
UNKNOWN_ACTION_ACTIVATION_STATUS = "UNKNOWN_ACTION_ACTIVATION_STATUS",
|
|
3354
|
-
/**
|
|
3355
|
-
* Indicates that action activation has started and is in progress.
|
|
3356
|
-
* Relevant to action types: APP_DEFINED, DELAY.
|
|
3357
|
-
*/
|
|
3358
|
-
STARTED = "STARTED",
|
|
3359
|
-
/**
|
|
3360
|
-
* Indicates that the action activation was completed without errors.
|
|
3361
|
-
* Relevant to action types: APP_DEFINED, DELAY, CONDITION, RATE_LIMIT.
|
|
3362
|
-
*/
|
|
3363
|
-
ENDED = "ENDED",
|
|
3364
|
-
/**
|
|
3365
|
-
* Indicates that the action was skipped and post actions won't start.
|
|
3366
|
-
* Relevant to action types: APP_DEFINED.
|
|
3367
|
-
*/
|
|
3368
|
-
SKIPPED = "SKIPPED",
|
|
3369
|
-
/**
|
|
3370
|
-
* Indicates that the action failed.
|
|
3371
|
-
* Relevant to action types: APP_DEFINED, DELAY, RATE_LIMIT.
|
|
3372
|
-
*/
|
|
3373
|
-
FAILED = "FAILED"
|
|
3374
|
-
}
|
|
3375
|
-
interface StartedStatusInfo extends StartedStatusInfoTypeInfoOneOf {
|
|
3376
|
-
/** APP DEFINED action additional info */
|
|
3377
|
-
appDefinedActionInfo?: StartedStatusInfoAppDefinedActionInfo;
|
|
3378
|
-
/** Delay action additional info */
|
|
3379
|
-
delayActionInfo?: DelayActionInfo;
|
|
3380
|
-
}
|
|
3381
|
-
/** @oneof */
|
|
3382
|
-
interface StartedStatusInfoTypeInfoOneOf {
|
|
3383
|
-
/** APP DEFINED action additional info */
|
|
3384
|
-
appDefinedActionInfo?: StartedStatusInfoAppDefinedActionInfo;
|
|
3385
|
-
/** Delay action additional info */
|
|
3386
|
-
delayActionInfo?: DelayActionInfo;
|
|
3387
|
-
}
|
|
3388
|
-
interface EndedStatusInfo extends EndedStatusInfoTypeInfoOneOf {
|
|
3389
|
-
/** APP DEFINED action additional info */
|
|
3390
|
-
appDefinedActionInfo?: AppDefinedActionInfo;
|
|
3391
|
-
/** Condition action additional info */
|
|
3392
|
-
conditionActionInfo?: ConditionActionInfo;
|
|
3393
|
-
/** Rate limit action additional info */
|
|
3394
|
-
rateLimitActionInfo?: RateLimitActionInfo;
|
|
3395
|
-
}
|
|
3396
|
-
/** @oneof */
|
|
3397
|
-
interface EndedStatusInfoTypeInfoOneOf {
|
|
3398
|
-
/** APP DEFINED action additional info */
|
|
3399
|
-
appDefinedActionInfo?: AppDefinedActionInfo;
|
|
3400
|
-
/** Condition action additional info */
|
|
3401
|
-
conditionActionInfo?: ConditionActionInfo;
|
|
3402
|
-
/** Rate limit action additional info */
|
|
3403
|
-
rateLimitActionInfo?: RateLimitActionInfo;
|
|
3404
|
-
}
|
|
3405
|
-
interface FailedStatusInfo {
|
|
3406
|
-
/** Error description */
|
|
3407
|
-
errorDescription?: string;
|
|
3408
|
-
/** Error code */
|
|
3409
|
-
errorCode?: string | null;
|
|
3410
|
-
}
|
|
3411
|
-
interface ActivationResumeAfterDelay {
|
|
3412
|
-
/** Activation identifier */
|
|
3413
|
-
_id?: string;
|
|
3414
|
-
/** Activation schedule identifier */
|
|
3415
|
-
scheduleId?: string;
|
|
3416
|
-
/** Activation schedule due date */
|
|
3417
|
-
scheduleDate?: Date | null;
|
|
3418
|
-
/** Activation payload */
|
|
3419
|
-
payload?: Record<string, any> | null;
|
|
3420
|
-
/** Activation Automation */
|
|
3421
|
-
automation?: Automation$1;
|
|
3422
|
-
/** Scheduled action identifier - with the intent to execute that action's post actions */
|
|
3423
|
-
scheduledActionId?: string;
|
|
3424
|
-
/** Optional - external entity id that this activation is related to */
|
|
3425
|
-
externalEntityId?: string | null;
|
|
3426
|
-
}
|
|
3427
|
-
interface ActionCompletedRequest {
|
|
3428
|
-
/** The execution identifier that was given to the spi provider when we invoked the action */
|
|
3429
|
-
executionIdentifier?: string;
|
|
3430
|
-
/** The result of invoking the action. Must conform to the output schema configured by the action provider. */
|
|
3431
|
-
result?: Record<string, any> | null;
|
|
3432
|
-
}
|
|
3433
|
-
interface RefreshPayloadRequest {
|
|
3434
|
-
/** Application definition ID. */
|
|
3435
|
-
appDefId?: string;
|
|
3436
|
-
/** Trigger key. */
|
|
3437
|
-
triggerKey?: string;
|
|
3438
|
-
/** Payload to refresh. */
|
|
3439
|
-
payload?: Record<string, any> | null;
|
|
3440
|
-
/** External entity ID. */
|
|
3441
|
-
externalEntityId?: string | null;
|
|
3442
|
-
}
|
|
3443
|
-
interface RefreshPayloadResponse {
|
|
3444
|
-
/** Updated payload. */
|
|
3445
|
-
payload?: Record<string, any> | null;
|
|
3446
|
-
/** If the automation activation should be canceled (default is false) */
|
|
3447
|
-
cancelActivation?: boolean | null;
|
|
3448
|
-
}
|
|
3449
|
-
interface RunAutomationRequest {
|
|
3450
|
-
/** App of the automation trigger */
|
|
3451
|
-
appId?: string;
|
|
3452
|
-
/** Trigger key of the action */
|
|
3453
|
-
triggerKey?: string;
|
|
3454
|
-
/** Payload of the triggered event */
|
|
3455
|
-
triggerPayload?: Record<string, any> | null;
|
|
3456
|
-
/** Specific automation id to run */
|
|
3457
|
-
automationId?: string;
|
|
3458
|
-
/** Schema of the trigger */
|
|
3459
|
-
triggerSchema?: Record<string, any> | null;
|
|
3460
|
-
}
|
|
3461
|
-
interface RunAutomationResponse {
|
|
3462
|
-
/** Automation activation output payload */
|
|
3463
|
-
output?: Record<string, any> | null;
|
|
3464
|
-
}
|
|
3465
3256
|
interface ActivationScheduleRequested {
|
|
3466
3257
|
/** Activation identifier */
|
|
3467
3258
|
_id?: string;
|
|
@@ -3730,6 +3521,8 @@ interface ExecuteFromActionRequest {
|
|
|
3730
3521
|
}
|
|
3731
3522
|
interface ExecuteFromActionResponse {
|
|
3732
3523
|
}
|
|
3524
|
+
interface Empty$1 {
|
|
3525
|
+
}
|
|
3733
3526
|
interface ActivationScheduleCompleted {
|
|
3734
3527
|
/** Activation identifier */
|
|
3735
3528
|
_id?: string;
|
|
@@ -3744,17 +3537,224 @@ interface ActivationScheduleCompleted {
|
|
|
3744
3537
|
/** Optional - external entity id that this activation is related to */
|
|
3745
3538
|
externalEntityId?: string | null;
|
|
3746
3539
|
}
|
|
3747
|
-
interface
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3540
|
+
interface ActionStatus {
|
|
3541
|
+
/** Action's status. */
|
|
3542
|
+
_id?: string;
|
|
3543
|
+
/** Activation's ID. */
|
|
3544
|
+
activationId?: string;
|
|
3545
|
+
/** Action's name. */
|
|
3546
|
+
actionName?: string | null;
|
|
3547
|
+
/** Action's status. */
|
|
3548
|
+
status?: Status$1;
|
|
3549
|
+
/** Action's error reason (if there is one). */
|
|
3550
|
+
errorReason?: string | null;
|
|
3551
|
+
/** Activation external id. */
|
|
3552
|
+
activationExternalId?: string;
|
|
3553
|
+
/** Trigger app id. */
|
|
3554
|
+
triggerAppId?: string | null;
|
|
3555
|
+
/** Trigger key. */
|
|
3556
|
+
triggerKey?: string | null;
|
|
3557
|
+
/** The configuration correlation id */
|
|
3558
|
+
configurationCorrelationId?: string | null;
|
|
3559
|
+
}
|
|
3560
|
+
interface ActivationActionStatusChanged extends ActivationActionStatusChangedStatusInfoOneOf {
|
|
3561
|
+
/** Started status information */
|
|
3562
|
+
startedInfo?: StartedStatusInfo;
|
|
3563
|
+
/** Ended status information */
|
|
3564
|
+
endedInfo?: EndedStatusInfo;
|
|
3565
|
+
/** Failed status information */
|
|
3566
|
+
failedInfo?: FailedStatusInfo;
|
|
3567
|
+
/** Action ID */
|
|
3568
|
+
_id?: string;
|
|
3569
|
+
/** Activation ID */
|
|
3570
|
+
activationId?: string;
|
|
3571
|
+
/** Automation info */
|
|
3572
|
+
automationInfo?: AutomationInfo;
|
|
3573
|
+
/** Action type */
|
|
3574
|
+
type?: Type$1;
|
|
3575
|
+
/** Event date */
|
|
3576
|
+
statusChangedDate?: Date | null;
|
|
3577
|
+
/** Action activation status */
|
|
3578
|
+
status?: ActivationActionStatusChangedStatus;
|
|
3579
|
+
}
|
|
3580
|
+
/** @oneof */
|
|
3581
|
+
interface ActivationActionStatusChangedStatusInfoOneOf {
|
|
3582
|
+
/** Started status information */
|
|
3583
|
+
startedInfo?: StartedStatusInfo;
|
|
3584
|
+
/** Ended status information */
|
|
3585
|
+
endedInfo?: EndedStatusInfo;
|
|
3586
|
+
/** Failed status information */
|
|
3587
|
+
failedInfo?: FailedStatusInfo;
|
|
3588
|
+
}
|
|
3589
|
+
interface StartedStatusInfoAppDefinedActionInfo {
|
|
3590
|
+
/** Action input */
|
|
3591
|
+
input?: Record<string, any> | null;
|
|
3592
|
+
}
|
|
3593
|
+
interface DelayActionInfo {
|
|
3594
|
+
/** Indicates when this action becomes completed and the activation will move to the post actions */
|
|
3595
|
+
date?: Date | null;
|
|
3596
|
+
}
|
|
3597
|
+
interface ExpressionEvaluationResult {
|
|
3598
|
+
/** Indicates if the expression was evaluated to true or false */
|
|
3599
|
+
passed?: boolean;
|
|
3600
|
+
/** Indicates if there was an error in the evaluation process */
|
|
3601
|
+
error?: boolean;
|
|
3602
|
+
}
|
|
3603
|
+
interface AppDefinedActionInfo {
|
|
3604
|
+
/** Output returned by the action implementer. */
|
|
3605
|
+
output?: Record<string, any> | null;
|
|
3606
|
+
}
|
|
3607
|
+
interface ConditionActionInfo {
|
|
3608
|
+
/** Indicates that the condition `if` clause evaluated to `true`. */
|
|
3609
|
+
passed?: boolean;
|
|
3610
|
+
/** Collects results per each expression evaluation that took place */
|
|
3611
|
+
expressionResults?: Record<string, ExpressionEvaluationResult>;
|
|
3612
|
+
}
|
|
3613
|
+
interface RateLimitActionInfo {
|
|
3614
|
+
/** Indicates if the rate limiter passed (not reached the quota) */
|
|
3615
|
+
passed?: boolean;
|
|
3616
|
+
}
|
|
3617
|
+
interface AutomationInfo extends AutomationInfoOriginInfoOneOf {
|
|
3618
|
+
/** Application info */
|
|
3619
|
+
applicationInfo?: ApplicationOrigin$1;
|
|
3620
|
+
/** Preinstalled info */
|
|
3621
|
+
preinstalledInfo?: PreinstalledOrigin$1;
|
|
3622
|
+
/** Automation ID */
|
|
3623
|
+
_id?: string;
|
|
3624
|
+
/** Origin type */
|
|
3625
|
+
origin?: Origin$1;
|
|
3626
|
+
}
|
|
3627
|
+
/** @oneof */
|
|
3628
|
+
interface AutomationInfoOriginInfoOneOf {
|
|
3629
|
+
/** Application info */
|
|
3630
|
+
applicationInfo?: ApplicationOrigin$1;
|
|
3631
|
+
/** Preinstalled info */
|
|
3632
|
+
preinstalledInfo?: PreinstalledOrigin$1;
|
|
3633
|
+
}
|
|
3634
|
+
declare enum ActivationActionStatusChangedStatus {
|
|
3635
|
+
UNKNOWN_ACTION_ACTIVATION_STATUS = "UNKNOWN_ACTION_ACTIVATION_STATUS",
|
|
3636
|
+
/**
|
|
3637
|
+
* Indicates that action activation has started and is in progress.
|
|
3638
|
+
* Relevant to action types: APP_DEFINED, DELAY.
|
|
3639
|
+
*/
|
|
3640
|
+
STARTED = "STARTED",
|
|
3641
|
+
/**
|
|
3642
|
+
* Indicates that the action activation was completed without errors.
|
|
3643
|
+
* Relevant to action types: APP_DEFINED, DELAY, CONDITION, RATE_LIMIT.
|
|
3644
|
+
*/
|
|
3645
|
+
ENDED = "ENDED",
|
|
3646
|
+
/**
|
|
3647
|
+
* Indicates that the action was skipped and post actions won't start.
|
|
3648
|
+
* Relevant to action types: APP_DEFINED.
|
|
3649
|
+
*/
|
|
3650
|
+
SKIPPED = "SKIPPED",
|
|
3651
|
+
/**
|
|
3652
|
+
* Indicates that the action failed.
|
|
3653
|
+
* Relevant to action types: APP_DEFINED, DELAY, RATE_LIMIT.
|
|
3654
|
+
*/
|
|
3655
|
+
FAILED = "FAILED"
|
|
3656
|
+
}
|
|
3657
|
+
interface StartedStatusInfo extends StartedStatusInfoTypeInfoOneOf {
|
|
3658
|
+
/** APP DEFINED action additional info */
|
|
3659
|
+
appDefinedActionInfo?: StartedStatusInfoAppDefinedActionInfo;
|
|
3660
|
+
/** Delay action additional info */
|
|
3661
|
+
delayActionInfo?: DelayActionInfo;
|
|
3662
|
+
}
|
|
3663
|
+
/** @oneof */
|
|
3664
|
+
interface StartedStatusInfoTypeInfoOneOf {
|
|
3665
|
+
/** APP DEFINED action additional info */
|
|
3666
|
+
appDefinedActionInfo?: StartedStatusInfoAppDefinedActionInfo;
|
|
3667
|
+
/** Delay action additional info */
|
|
3668
|
+
delayActionInfo?: DelayActionInfo;
|
|
3669
|
+
}
|
|
3670
|
+
interface EndedStatusInfo extends EndedStatusInfoTypeInfoOneOf {
|
|
3671
|
+
/** APP DEFINED action additional info */
|
|
3672
|
+
appDefinedActionInfo?: AppDefinedActionInfo;
|
|
3673
|
+
/** Condition action additional info */
|
|
3674
|
+
conditionActionInfo?: ConditionActionInfo;
|
|
3675
|
+
/** Rate limit action additional info */
|
|
3676
|
+
rateLimitActionInfo?: RateLimitActionInfo;
|
|
3677
|
+
}
|
|
3678
|
+
/** @oneof */
|
|
3679
|
+
interface EndedStatusInfoTypeInfoOneOf {
|
|
3680
|
+
/** APP DEFINED action additional info */
|
|
3681
|
+
appDefinedActionInfo?: AppDefinedActionInfo;
|
|
3682
|
+
/** Condition action additional info */
|
|
3683
|
+
conditionActionInfo?: ConditionActionInfo;
|
|
3684
|
+
/** Rate limit action additional info */
|
|
3685
|
+
rateLimitActionInfo?: RateLimitActionInfo;
|
|
3686
|
+
}
|
|
3687
|
+
interface FailedStatusInfo {
|
|
3688
|
+
/** Error description */
|
|
3689
|
+
errorDescription?: string;
|
|
3690
|
+
/** Error code */
|
|
3691
|
+
errorCode?: string | null;
|
|
3692
|
+
}
|
|
3693
|
+
interface ActivationResumeAfterDelay {
|
|
3694
|
+
/** Activation identifier */
|
|
3695
|
+
_id?: string;
|
|
3696
|
+
/** Activation schedule identifier */
|
|
3697
|
+
scheduleId?: string;
|
|
3698
|
+
/** Activation schedule due date */
|
|
3699
|
+
scheduleDate?: Date | null;
|
|
3700
|
+
/** Activation payload */
|
|
3701
|
+
payload?: Record<string, any> | null;
|
|
3702
|
+
/** Activation Automation */
|
|
3703
|
+
automation?: Automation$1;
|
|
3704
|
+
/** Scheduled action identifier - with the intent to execute that action's post actions */
|
|
3705
|
+
scheduledActionId?: string;
|
|
3706
|
+
/** Optional - external entity id that this activation is related to */
|
|
3707
|
+
externalEntityId?: string | null;
|
|
3708
|
+
}
|
|
3709
|
+
interface ActionCompletedRequest {
|
|
3710
|
+
/** The execution identifier that was given to the spi provider when we invoked the action */
|
|
3711
|
+
executionIdentifier?: string;
|
|
3712
|
+
/** The result of invoking the action. Must conform to the output schema configured by the action provider. */
|
|
3713
|
+
result?: Record<string, any> | null;
|
|
3714
|
+
}
|
|
3715
|
+
interface RefreshPayloadRequest {
|
|
3716
|
+
/** Application definition ID. */
|
|
3717
|
+
appDefId?: string;
|
|
3718
|
+
/** Trigger key. */
|
|
3719
|
+
triggerKey?: string;
|
|
3720
|
+
/** Payload to refresh. */
|
|
3721
|
+
payload?: Record<string, any> | null;
|
|
3722
|
+
/** External entity ID. */
|
|
3723
|
+
externalEntityId?: string | null;
|
|
3724
|
+
}
|
|
3725
|
+
interface RefreshPayloadResponse {
|
|
3726
|
+
/** Updated payload. */
|
|
3727
|
+
payload?: Record<string, any> | null;
|
|
3728
|
+
/** If the automation activation should be canceled (default is false) */
|
|
3729
|
+
cancelActivation?: boolean | null;
|
|
3730
|
+
}
|
|
3731
|
+
interface RunAutomationRequest {
|
|
3732
|
+
/** App of the automation trigger */
|
|
3733
|
+
appId?: string;
|
|
3734
|
+
/** Trigger key of the action */
|
|
3735
|
+
triggerKey?: string;
|
|
3736
|
+
/** Payload of the triggered event */
|
|
3737
|
+
triggerPayload?: Record<string, any> | null;
|
|
3738
|
+
/** Specific automation id to run */
|
|
3739
|
+
automationId?: string;
|
|
3740
|
+
/** Schema of the trigger */
|
|
3741
|
+
triggerSchema?: Record<string, any> | null;
|
|
3742
|
+
}
|
|
3743
|
+
interface RunAutomationResponse {
|
|
3744
|
+
/** Automation activation output payload */
|
|
3745
|
+
output?: Record<string, any> | null;
|
|
3746
|
+
}
|
|
3747
|
+
interface ReportEventResponseNonNullableFields {
|
|
3748
|
+
activationIds: string[];
|
|
3749
|
+
}
|
|
3750
|
+
interface ApplicationErrorNonNullableFields$1 {
|
|
3751
|
+
code: string;
|
|
3752
|
+
description: string;
|
|
3753
|
+
}
|
|
3754
|
+
interface ItemMetadataNonNullableFields$1 {
|
|
3755
|
+
originalIndex: number;
|
|
3756
|
+
success: boolean;
|
|
3757
|
+
error?: ApplicationErrorNonNullableFields$1;
|
|
3758
3758
|
}
|
|
3759
3759
|
interface IdempotencyNonNullableFields {
|
|
3760
3760
|
key: string;
|
|
@@ -3949,9 +3949,7 @@ declare const bulkCancelEvent: MaybeContext<BuildRESTFunction<typeof bulkCancelE
|
|
|
3949
3949
|
declare const cancelEvent: MaybeContext<BuildRESTFunction<typeof cancelEvent$1> & typeof cancelEvent$1>;
|
|
3950
3950
|
|
|
3951
3951
|
type _publicOnActivationStatusChangedType = typeof onActivationStatusChanged$1;
|
|
3952
|
-
/**
|
|
3953
|
-
* activation status changed message
|
|
3954
|
-
*/
|
|
3952
|
+
/** */
|
|
3955
3953
|
declare const onActivationStatusChanged: ReturnType<typeof createEventModule$1<_publicOnActivationStatusChangedType>>;
|
|
3956
3954
|
|
|
3957
3955
|
type index_d$1_ActionActionOneOf = ActionActionOneOf;
|
|
@@ -4163,9 +4161,9 @@ interface ActionSettings {
|
|
|
4163
4161
|
disableConditionAddition?: boolean;
|
|
4164
4162
|
}
|
|
4165
4163
|
declare enum Domain {
|
|
4166
|
-
/** User domain (default) */
|
|
4164
|
+
/** User domain (default). */
|
|
4167
4165
|
USER = "USER",
|
|
4168
|
-
/** Wix domain */
|
|
4166
|
+
/** Wix domain. */
|
|
4169
4167
|
WIX = "WIX"
|
|
4170
4168
|
}
|
|
4171
4169
|
interface AuditInfo extends AuditInfoIdOneOf {
|
|
@@ -4242,19 +4240,19 @@ declare enum Operator {
|
|
|
4242
4240
|
AND = "AND"
|
|
4243
4241
|
}
|
|
4244
4242
|
declare enum Type {
|
|
4245
|
-
/** Automation will be triggered according to the trigger configuration */
|
|
4243
|
+
/** Automation will be triggered according to the trigger configuration. */
|
|
4246
4244
|
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
4247
|
-
/** App defined Action */
|
|
4245
|
+
/** App defined Action. */
|
|
4248
4246
|
APP_DEFINED = "APP_DEFINED",
|
|
4249
|
-
/** Condition Action */
|
|
4247
|
+
/** Condition Action. */
|
|
4250
4248
|
CONDITION = "CONDITION",
|
|
4251
|
-
/** Delay Action */
|
|
4249
|
+
/** Delay Action. */
|
|
4252
4250
|
DELAY = "DELAY",
|
|
4253
|
-
/** RateLimit Action */
|
|
4251
|
+
/** RateLimit Action. */
|
|
4254
4252
|
RATE_LIMIT = "RATE_LIMIT",
|
|
4255
|
-
/** Set Variables Action */
|
|
4253
|
+
/** Set Variables Action. */
|
|
4256
4254
|
SET_VARIABLES = "SET_VARIABLES",
|
|
4257
|
-
/** Output Action */
|
|
4255
|
+
/** Output Action. */
|
|
4258
4256
|
OUTPUT = "OUTPUT"
|
|
4259
4257
|
}
|
|
4260
4258
|
interface AppDefinedAction {
|
|
@@ -4386,13 +4384,13 @@ interface ActionInfoOneOf {
|
|
|
4386
4384
|
rateLimitInfo?: RateLimitAction;
|
|
4387
4385
|
}
|
|
4388
4386
|
declare enum Origin {
|
|
4389
|
-
/**
|
|
4387
|
+
/** Default value. This is unused. */
|
|
4390
4388
|
UNKNOWN_ORIGIN = "UNKNOWN_ORIGIN",
|
|
4391
|
-
/**
|
|
4389
|
+
/** User created automation. */
|
|
4392
4390
|
USER = "USER",
|
|
4393
|
-
/**
|
|
4391
|
+
/** Automation created by application (site specific). */
|
|
4394
4392
|
APPLICATION = "APPLICATION",
|
|
4395
|
-
/**
|
|
4393
|
+
/** Preinstalled application automation. */
|
|
4396
4394
|
PREINSTALLED = "PREINSTALLED"
|
|
4397
4395
|
}
|
|
4398
4396
|
interface ApplicationOrigin {
|
|
@@ -4442,7 +4440,7 @@ interface AutomationSettings {
|
|
|
4442
4440
|
}
|
|
4443
4441
|
interface DraftInfo {
|
|
4444
4442
|
/**
|
|
4445
|
-
*
|
|
4443
|
+
* Optional - automationId of the original automation.
|
|
4446
4444
|
* @readonly
|
|
4447
4445
|
*/
|
|
4448
4446
|
originalAutomationId?: string | null;
|
|
@@ -4468,126 +4466,6 @@ interface DraftPublished {
|
|
|
4468
4466
|
/** Updated automation after publishing the draft. */
|
|
4469
4467
|
updatedAutomation?: Automation;
|
|
4470
4468
|
}
|
|
4471
|
-
interface GetAutomationRevisionRequest {
|
|
4472
|
-
/** Automation ID. */
|
|
4473
|
-
automationId?: string;
|
|
4474
|
-
/** Automation revision. */
|
|
4475
|
-
revision?: string | null;
|
|
4476
|
-
}
|
|
4477
|
-
interface GetAutomationRevisionResponse {
|
|
4478
|
-
/** Automation with the relevant revision. */
|
|
4479
|
-
automation?: Automation;
|
|
4480
|
-
}
|
|
4481
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
4482
|
-
createdEvent?: EntityCreatedEvent;
|
|
4483
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
4484
|
-
deletedEvent?: EntityDeletedEvent;
|
|
4485
|
-
actionEvent?: ActionEvent;
|
|
4486
|
-
/**
|
|
4487
|
-
* Unique event ID.
|
|
4488
|
-
* Allows clients to ignore duplicate webhooks.
|
|
4489
|
-
*/
|
|
4490
|
-
_id?: string;
|
|
4491
|
-
/**
|
|
4492
|
-
* Assumes actions are also always typed to an entity_type
|
|
4493
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
4494
|
-
*/
|
|
4495
|
-
entityFqdn?: string;
|
|
4496
|
-
/**
|
|
4497
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
4498
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
4499
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
4500
|
-
*/
|
|
4501
|
-
slug?: string;
|
|
4502
|
-
/** ID of the entity associated with the event. */
|
|
4503
|
-
entityId?: string;
|
|
4504
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
4505
|
-
eventTime?: Date | null;
|
|
4506
|
-
/**
|
|
4507
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
4508
|
-
* (for example, GDPR).
|
|
4509
|
-
*/
|
|
4510
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
4511
|
-
/** If present, indicates the action that triggered the event. */
|
|
4512
|
-
originatedFrom?: string | null;
|
|
4513
|
-
/**
|
|
4514
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
4515
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
4516
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
4517
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
4518
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
4519
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
4520
|
-
*/
|
|
4521
|
-
entityEventSequence?: string | null;
|
|
4522
|
-
}
|
|
4523
|
-
/** @oneof */
|
|
4524
|
-
interface DomainEventBodyOneOf {
|
|
4525
|
-
createdEvent?: EntityCreatedEvent;
|
|
4526
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
4527
|
-
deletedEvent?: EntityDeletedEvent;
|
|
4528
|
-
actionEvent?: ActionEvent;
|
|
4529
|
-
}
|
|
4530
|
-
interface EntityCreatedEvent {
|
|
4531
|
-
entity?: string;
|
|
4532
|
-
}
|
|
4533
|
-
interface RestoreInfo {
|
|
4534
|
-
deletedDate?: Date | null;
|
|
4535
|
-
}
|
|
4536
|
-
interface EntityUpdatedEvent {
|
|
4537
|
-
/**
|
|
4538
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
4539
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
4540
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
4541
|
-
*/
|
|
4542
|
-
currentEntity?: string;
|
|
4543
|
-
}
|
|
4544
|
-
interface EntityDeletedEvent {
|
|
4545
|
-
/** Entity that was deleted */
|
|
4546
|
-
deletedEntity?: string | null;
|
|
4547
|
-
}
|
|
4548
|
-
interface ActionEvent {
|
|
4549
|
-
body?: string;
|
|
4550
|
-
}
|
|
4551
|
-
interface MessageEnvelope {
|
|
4552
|
-
/** App instance ID. */
|
|
4553
|
-
instanceId?: string | null;
|
|
4554
|
-
/** Event type. */
|
|
4555
|
-
eventType?: string;
|
|
4556
|
-
/** The identification type and identity data. */
|
|
4557
|
-
identity?: IdentificationData;
|
|
4558
|
-
/** Stringify payload. */
|
|
4559
|
-
data?: string;
|
|
4560
|
-
}
|
|
4561
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
4562
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
4563
|
-
anonymousVisitorId?: string;
|
|
4564
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
4565
|
-
memberId?: string;
|
|
4566
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
4567
|
-
wixUserId?: string;
|
|
4568
|
-
/** ID of an app. */
|
|
4569
|
-
appId?: string;
|
|
4570
|
-
/** @readonly */
|
|
4571
|
-
identityType?: WebhookIdentityType;
|
|
4572
|
-
}
|
|
4573
|
-
/** @oneof */
|
|
4574
|
-
interface IdentificationDataIdOneOf {
|
|
4575
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
4576
|
-
anonymousVisitorId?: string;
|
|
4577
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
4578
|
-
memberId?: string;
|
|
4579
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
4580
|
-
wixUserId?: string;
|
|
4581
|
-
/** ID of an app. */
|
|
4582
|
-
appId?: string;
|
|
4583
|
-
}
|
|
4584
|
-
declare enum WebhookIdentityType {
|
|
4585
|
-
UNKNOWN = "UNKNOWN",
|
|
4586
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
4587
|
-
MEMBER = "MEMBER",
|
|
4588
|
-
WIX_USER = "WIX_USER",
|
|
4589
|
-
APP = "APP"
|
|
4590
|
-
}
|
|
4591
4469
|
interface CreateAutomationRequest {
|
|
4592
4470
|
/** Automation to be created. */
|
|
4593
4471
|
automation: Automation;
|
|
@@ -4868,6 +4746,76 @@ interface Cursors {
|
|
|
4868
4746
|
/** Cursor pointing to the previous page in the list of results. */
|
|
4869
4747
|
prev?: string | null;
|
|
4870
4748
|
}
|
|
4749
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
4750
|
+
createdEvent?: EntityCreatedEvent;
|
|
4751
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
4752
|
+
deletedEvent?: EntityDeletedEvent;
|
|
4753
|
+
actionEvent?: ActionEvent;
|
|
4754
|
+
/**
|
|
4755
|
+
* Unique event ID.
|
|
4756
|
+
* Allows clients to ignore duplicate webhooks.
|
|
4757
|
+
*/
|
|
4758
|
+
_id?: string;
|
|
4759
|
+
/**
|
|
4760
|
+
* Assumes actions are also always typed to an entity_type
|
|
4761
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
4762
|
+
*/
|
|
4763
|
+
entityFqdn?: string;
|
|
4764
|
+
/**
|
|
4765
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
4766
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
4767
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
4768
|
+
*/
|
|
4769
|
+
slug?: string;
|
|
4770
|
+
/** ID of the entity associated with the event. */
|
|
4771
|
+
entityId?: string;
|
|
4772
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
4773
|
+
eventTime?: Date | null;
|
|
4774
|
+
/**
|
|
4775
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
4776
|
+
* (for example, GDPR).
|
|
4777
|
+
*/
|
|
4778
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
4779
|
+
/** If present, indicates the action that triggered the event. */
|
|
4780
|
+
originatedFrom?: string | null;
|
|
4781
|
+
/**
|
|
4782
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
4783
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
4784
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
4785
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
4786
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
4787
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
4788
|
+
*/
|
|
4789
|
+
entityEventSequence?: string | null;
|
|
4790
|
+
}
|
|
4791
|
+
/** @oneof */
|
|
4792
|
+
interface DomainEventBodyOneOf {
|
|
4793
|
+
createdEvent?: EntityCreatedEvent;
|
|
4794
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
4795
|
+
deletedEvent?: EntityDeletedEvent;
|
|
4796
|
+
actionEvent?: ActionEvent;
|
|
4797
|
+
}
|
|
4798
|
+
interface EntityCreatedEvent {
|
|
4799
|
+
entity?: string;
|
|
4800
|
+
}
|
|
4801
|
+
interface RestoreInfo {
|
|
4802
|
+
deletedDate?: Date | null;
|
|
4803
|
+
}
|
|
4804
|
+
interface EntityUpdatedEvent {
|
|
4805
|
+
/**
|
|
4806
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
4807
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
4808
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
4809
|
+
*/
|
|
4810
|
+
currentEntity?: string;
|
|
4811
|
+
}
|
|
4812
|
+
interface EntityDeletedEvent {
|
|
4813
|
+
/** Entity that was deleted */
|
|
4814
|
+
deletedEntity?: string | null;
|
|
4815
|
+
}
|
|
4816
|
+
interface ActionEvent {
|
|
4817
|
+
body?: string;
|
|
4818
|
+
}
|
|
4871
4819
|
interface Empty {
|
|
4872
4820
|
}
|
|
4873
4821
|
interface CopyAutomationRequest {
|
|
@@ -5481,6 +5429,56 @@ interface UpgradeCTA {
|
|
|
5481
5429
|
/** CTA button label. */
|
|
5482
5430
|
label?: string;
|
|
5483
5431
|
}
|
|
5432
|
+
interface MessageEnvelope {
|
|
5433
|
+
/** App instance ID. */
|
|
5434
|
+
instanceId?: string | null;
|
|
5435
|
+
/** Event type. */
|
|
5436
|
+
eventType?: string;
|
|
5437
|
+
/** The identification type and identity data. */
|
|
5438
|
+
identity?: IdentificationData;
|
|
5439
|
+
/** Stringify payload. */
|
|
5440
|
+
data?: string;
|
|
5441
|
+
}
|
|
5442
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
5443
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
5444
|
+
anonymousVisitorId?: string;
|
|
5445
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
5446
|
+
memberId?: string;
|
|
5447
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
5448
|
+
wixUserId?: string;
|
|
5449
|
+
/** ID of an app. */
|
|
5450
|
+
appId?: string;
|
|
5451
|
+
/** @readonly */
|
|
5452
|
+
identityType?: WebhookIdentityType;
|
|
5453
|
+
}
|
|
5454
|
+
/** @oneof */
|
|
5455
|
+
interface IdentificationDataIdOneOf {
|
|
5456
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
5457
|
+
anonymousVisitorId?: string;
|
|
5458
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
5459
|
+
memberId?: string;
|
|
5460
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
5461
|
+
wixUserId?: string;
|
|
5462
|
+
/** ID of an app. */
|
|
5463
|
+
appId?: string;
|
|
5464
|
+
}
|
|
5465
|
+
declare enum WebhookIdentityType {
|
|
5466
|
+
UNKNOWN = "UNKNOWN",
|
|
5467
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
5468
|
+
MEMBER = "MEMBER",
|
|
5469
|
+
WIX_USER = "WIX_USER",
|
|
5470
|
+
APP = "APP"
|
|
5471
|
+
}
|
|
5472
|
+
interface GetAutomationRevisionRequest {
|
|
5473
|
+
/** Automation ID. */
|
|
5474
|
+
automationId?: string;
|
|
5475
|
+
/** Automation revision. */
|
|
5476
|
+
revision?: string | null;
|
|
5477
|
+
}
|
|
5478
|
+
interface GetAutomationRevisionResponse {
|
|
5479
|
+
/** Automation with the relevant revision. */
|
|
5480
|
+
automation?: Automation;
|
|
5481
|
+
}
|
|
5484
5482
|
interface ApplicationOriginNonNullableFields {
|
|
5485
5483
|
appId: string;
|
|
5486
5484
|
}
|
|
@@ -5732,19 +5730,19 @@ interface AutomationCreatedEnvelope {
|
|
|
5732
5730
|
entity: Automation;
|
|
5733
5731
|
metadata: EventMetadata;
|
|
5734
5732
|
}
|
|
5735
|
-
interface
|
|
5736
|
-
entity: Automation;
|
|
5733
|
+
interface AutomationDeletedEnvelope {
|
|
5737
5734
|
metadata: EventMetadata;
|
|
5738
5735
|
}
|
|
5739
|
-
interface
|
|
5736
|
+
interface AutomationDeletedWithEntityEnvelope {
|
|
5737
|
+
data: DeletedWithEntity;
|
|
5740
5738
|
metadata: EventMetadata;
|
|
5741
5739
|
}
|
|
5742
|
-
interface
|
|
5743
|
-
|
|
5740
|
+
interface AutomationUpdatedEnvelope {
|
|
5741
|
+
entity: Automation;
|
|
5744
5742
|
metadata: EventMetadata;
|
|
5745
5743
|
}
|
|
5746
|
-
interface
|
|
5747
|
-
data:
|
|
5744
|
+
interface AutomationUpdatedWithPreviousEntityEnvelope {
|
|
5745
|
+
data: UpdatedWithPreviousEntity;
|
|
5748
5746
|
metadata: EventMetadata;
|
|
5749
5747
|
}
|
|
5750
5748
|
interface GetAutomationOptions {
|
|
@@ -6164,10 +6162,10 @@ interface GetActionsQuotaInfoSignature {
|
|
|
6164
6162
|
(): Promise<GetActionsQuotaInfoResponse & GetActionsQuotaInfoResponseNonNullableFields>;
|
|
6165
6163
|
}
|
|
6166
6164
|
declare const onAutomationCreated$1: EventDefinition<AutomationCreatedEnvelope, "wix.automations.v2.automation_created">;
|
|
6167
|
-
declare const onAutomationUpdated$1: EventDefinition<AutomationUpdatedEnvelope, "wix.automations.v2.automation_updated">;
|
|
6168
6165
|
declare const onAutomationDeleted$1: EventDefinition<AutomationDeletedEnvelope, "wix.automations.v2.automation_deleted">;
|
|
6169
|
-
declare const onAutomationUpdatedWithPreviousEntity$1: EventDefinition<AutomationUpdatedWithPreviousEntityEnvelope, "wix.automations.v2.automation_updated_with_previous_entity">;
|
|
6170
6166
|
declare const onAutomationDeletedWithEntity$1: EventDefinition<AutomationDeletedWithEntityEnvelope, "wix.automations.v2.automation_deleted_with_entity">;
|
|
6167
|
+
declare const onAutomationUpdated$1: EventDefinition<AutomationUpdatedEnvelope, "wix.automations.v2.automation_updated">;
|
|
6168
|
+
declare const onAutomationUpdatedWithPreviousEntity$1: EventDefinition<AutomationUpdatedWithPreviousEntityEnvelope, "wix.automations.v2.automation_updated_with_previous_entity">;
|
|
6171
6169
|
|
|
6172
6170
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
6173
6171
|
|
|
@@ -6196,22 +6194,22 @@ type _publicOnAutomationCreatedType = typeof onAutomationCreated$1;
|
|
|
6196
6194
|
/** */
|
|
6197
6195
|
declare const onAutomationCreated: ReturnType<typeof createEventModule<_publicOnAutomationCreatedType>>;
|
|
6198
6196
|
|
|
6199
|
-
type _publicOnAutomationUpdatedType = typeof onAutomationUpdated$1;
|
|
6200
|
-
/** */
|
|
6201
|
-
declare const onAutomationUpdated: ReturnType<typeof createEventModule<_publicOnAutomationUpdatedType>>;
|
|
6202
|
-
|
|
6203
6197
|
type _publicOnAutomationDeletedType = typeof onAutomationDeleted$1;
|
|
6204
6198
|
/** */
|
|
6205
6199
|
declare const onAutomationDeleted: ReturnType<typeof createEventModule<_publicOnAutomationDeletedType>>;
|
|
6206
6200
|
|
|
6207
|
-
type _publicOnAutomationUpdatedWithPreviousEntityType = typeof onAutomationUpdatedWithPreviousEntity$1;
|
|
6208
|
-
/** */
|
|
6209
|
-
declare const onAutomationUpdatedWithPreviousEntity: ReturnType<typeof createEventModule<_publicOnAutomationUpdatedWithPreviousEntityType>>;
|
|
6210
|
-
|
|
6211
6201
|
type _publicOnAutomationDeletedWithEntityType = typeof onAutomationDeletedWithEntity$1;
|
|
6212
6202
|
/** */
|
|
6213
6203
|
declare const onAutomationDeletedWithEntity: ReturnType<typeof createEventModule<_publicOnAutomationDeletedWithEntityType>>;
|
|
6214
6204
|
|
|
6205
|
+
type _publicOnAutomationUpdatedType = typeof onAutomationUpdated$1;
|
|
6206
|
+
/** */
|
|
6207
|
+
declare const onAutomationUpdated: ReturnType<typeof createEventModule<_publicOnAutomationUpdatedType>>;
|
|
6208
|
+
|
|
6209
|
+
type _publicOnAutomationUpdatedWithPreviousEntityType = typeof onAutomationUpdatedWithPreviousEntity$1;
|
|
6210
|
+
/** */
|
|
6211
|
+
declare const onAutomationUpdatedWithPreviousEntity: ReturnType<typeof createEventModule<_publicOnAutomationUpdatedWithPreviousEntityType>>;
|
|
6212
|
+
|
|
6215
6213
|
type index_d_Action = Action;
|
|
6216
6214
|
type index_d_ActionConfigurationError = ActionConfigurationError;
|
|
6217
6215
|
type index_d_ActionErrorType = ActionErrorType;
|