@wix/automations 1.0.19 → 1.0.21
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 +519 -223
- package/type-bundles/index.bundle.d.ts +519 -223
- package/type-bundles/meta.bundle.d.ts +26 -22
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
+
interface HttpClient {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4
|
+
fetchWithAuth: typeof fetch;
|
|
5
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
|
+
}
|
|
7
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
+
type HttpResponse<T = any> = {
|
|
9
|
+
data: T;
|
|
10
|
+
status: number;
|
|
11
|
+
statusText: string;
|
|
12
|
+
headers: any;
|
|
13
|
+
request?: any;
|
|
14
|
+
};
|
|
15
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
16
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
|
+
url: string;
|
|
18
|
+
data?: Data;
|
|
19
|
+
params?: URLSearchParams;
|
|
20
|
+
} & APIMetadata;
|
|
21
|
+
type APIMetadata = {
|
|
22
|
+
methodFqn?: string;
|
|
23
|
+
entityFqdn?: string;
|
|
24
|
+
packageName?: string;
|
|
25
|
+
};
|
|
26
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
28
|
+
__type: 'event-definition';
|
|
29
|
+
type: Type;
|
|
30
|
+
isDomainEvent?: boolean;
|
|
31
|
+
transformations?: (envelope: unknown) => Payload;
|
|
32
|
+
__payload: Payload;
|
|
33
|
+
};
|
|
34
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
37
|
+
|
|
38
|
+
declare global {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
40
|
+
interface SymbolConstructor {
|
|
41
|
+
readonly observable: symbol;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
1
45
|
/** Automation */
|
|
2
46
|
interface Automation$2 {
|
|
3
47
|
/**
|
|
@@ -871,7 +915,7 @@ interface UpdateAutomationResponse$1 {
|
|
|
871
915
|
/** The updated Automation */
|
|
872
916
|
automation?: Automation$2;
|
|
873
917
|
}
|
|
874
|
-
interface UpdatedWithPreviousEntity$
|
|
918
|
+
interface UpdatedWithPreviousEntity$2 {
|
|
875
919
|
/** previous automation */
|
|
876
920
|
previousAutomation?: Automation$2;
|
|
877
921
|
/** updated automation */
|
|
@@ -885,7 +929,7 @@ interface DeleteAutomationRequest$1 {
|
|
|
885
929
|
}
|
|
886
930
|
interface DeleteAutomationResponse$1 {
|
|
887
931
|
}
|
|
888
|
-
interface DeletedWithEntity$
|
|
932
|
+
interface DeletedWithEntity$2 {
|
|
889
933
|
/** Deleted automation */
|
|
890
934
|
automation?: Automation$2;
|
|
891
935
|
}
|
|
@@ -1429,11 +1473,11 @@ interface AutomationDeletedEnvelope$1 {
|
|
|
1429
1473
|
metadata: EventMetadata$2;
|
|
1430
1474
|
}
|
|
1431
1475
|
interface AutomationUpdatedWithPreviousEntityEnvelope$1 {
|
|
1432
|
-
data: UpdatedWithPreviousEntity$
|
|
1476
|
+
data: UpdatedWithPreviousEntity$2;
|
|
1433
1477
|
metadata: EventMetadata$2;
|
|
1434
1478
|
}
|
|
1435
1479
|
interface AutomationDeletedWithEntityEnvelope$1 {
|
|
1436
|
-
data: DeletedWithEntity$
|
|
1480
|
+
data: DeletedWithEntity$2;
|
|
1437
1481
|
metadata: EventMetadata$2;
|
|
1438
1482
|
}
|
|
1439
1483
|
interface GetAutomationOptions$1 {
|
|
@@ -1595,61 +1639,93 @@ interface GenerateActionInputMappingFromTemplateOptions {
|
|
|
1595
1639
|
actionInputMappingTemplate: Record<string, any> | null;
|
|
1596
1640
|
}
|
|
1597
1641
|
|
|
1598
|
-
|
|
1599
|
-
interface
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1642
|
+
declare function createAutomation$3(httpClient: HttpClient): CreateAutomationSignature$1;
|
|
1643
|
+
interface CreateAutomationSignature$1 {
|
|
1644
|
+
/**
|
|
1645
|
+
* Creates a new Automation
|
|
1646
|
+
* @param - Automation to be created
|
|
1647
|
+
* @returns The created Automation
|
|
1648
|
+
*/
|
|
1649
|
+
(automation: Automation$2): Promise<Automation$2 & AutomationNonNullableFields$1>;
|
|
1603
1650
|
}
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
}
|
|
1631
|
-
declare function
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1651
|
+
declare function getAutomation$3(httpClient: HttpClient): GetAutomationSignature$1;
|
|
1652
|
+
interface GetAutomationSignature$1 {
|
|
1653
|
+
/**
|
|
1654
|
+
* Get a Automation by id
|
|
1655
|
+
* @param - Automation ID
|
|
1656
|
+
* @returns Automation
|
|
1657
|
+
*/
|
|
1658
|
+
(automationId: string, options?: GetAutomationOptions$1 | undefined): Promise<Automation$2 & AutomationNonNullableFields$1>;
|
|
1659
|
+
}
|
|
1660
|
+
declare function updateAutomation$3(httpClient: HttpClient): UpdateAutomationSignature$1;
|
|
1661
|
+
interface UpdateAutomationSignature$1 {
|
|
1662
|
+
/**
|
|
1663
|
+
* Update a Automation, supports partial update
|
|
1664
|
+
* Pass the latest `revision` for a successful update
|
|
1665
|
+
* @param - Automation ID
|
|
1666
|
+
* @returns The updated Automation
|
|
1667
|
+
*/
|
|
1668
|
+
(_id: string | null, automation: UpdateAutomation$1): Promise<Automation$2 & AutomationNonNullableFields$1>;
|
|
1669
|
+
}
|
|
1670
|
+
declare function deleteAutomation$3(httpClient: HttpClient): DeleteAutomationSignature$1;
|
|
1671
|
+
interface DeleteAutomationSignature$1 {
|
|
1672
|
+
/**
|
|
1673
|
+
* Delete an Automation
|
|
1674
|
+
* @param - Id of the Automation to delete
|
|
1675
|
+
*/
|
|
1676
|
+
(automationId: string, options?: DeleteAutomationOptions | undefined): Promise<void>;
|
|
1677
|
+
}
|
|
1678
|
+
declare function queryAutomations$3(httpClient: HttpClient): QueryAutomationsSignature$1;
|
|
1679
|
+
interface QueryAutomationsSignature$1 {
|
|
1680
|
+
/**
|
|
1681
|
+
* Query Automations using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
1682
|
+
*/
|
|
1683
|
+
(options?: QueryAutomationsOptions | undefined): AutomationsQueryBuilder$1;
|
|
1684
|
+
}
|
|
1685
|
+
declare function overrideApplicationAutomation$1(httpClient: HttpClient): OverrideApplicationAutomationSignature;
|
|
1686
|
+
interface OverrideApplicationAutomationSignature {
|
|
1687
|
+
/**
|
|
1688
|
+
* Creates a new Automation
|
|
1689
|
+
* @param - Application Automation
|
|
1690
|
+
*/
|
|
1691
|
+
(automation: Automation$2): Promise<OverrideApplicationAutomationResponse & OverrideApplicationAutomationResponseNonNullableFields>;
|
|
1692
|
+
}
|
|
1693
|
+
declare function validateAutomationById$1(httpClient: HttpClient): ValidateAutomationByIdSignature;
|
|
1694
|
+
interface ValidateAutomationByIdSignature {
|
|
1695
|
+
/**
|
|
1696
|
+
* Validate Automation by Id
|
|
1697
|
+
* @param - Automation ID
|
|
1698
|
+
*/
|
|
1699
|
+
(automationId: string, options?: ValidateAutomationByIdOptions | undefined): Promise<ValidateAutomationByIdResponse & ValidateAutomationByIdResponseNonNullableFields>;
|
|
1700
|
+
}
|
|
1701
|
+
declare function validateAutomation$3(httpClient: HttpClient): ValidateAutomationSignature$1;
|
|
1702
|
+
interface ValidateAutomationSignature$1 {
|
|
1703
|
+
/**
|
|
1704
|
+
* Validate Automation
|
|
1705
|
+
* @param - Automation to validate
|
|
1706
|
+
*/
|
|
1707
|
+
(automation: Automation$2): Promise<ValidateAutomationResponse$1 & ValidateAutomationResponseNonNullableFields$1>;
|
|
1708
|
+
}
|
|
1709
|
+
declare function getAutomationActivationStats$1(httpClient: HttpClient): GetAutomationActivationStatsSignature;
|
|
1710
|
+
interface GetAutomationActivationStatsSignature {
|
|
1711
|
+
/** @param - Automation ID */
|
|
1712
|
+
(automationId: string, options?: GetAutomationActivationStatsOptions | undefined): Promise<GetAutomationActivationReportsResponse & GetAutomationActivationReportsResponseNonNullableFields>;
|
|
1713
|
+
}
|
|
1714
|
+
declare function getActionsQuotaInfo$1(httpClient: HttpClient): GetActionsQuotaInfoSignature;
|
|
1715
|
+
interface GetActionsQuotaInfoSignature {
|
|
1716
|
+
/**
|
|
1717
|
+
* Get actions quota information
|
|
1718
|
+
*/
|
|
1719
|
+
(): Promise<GetActionsQuotaInfoResponse$1 & GetActionsQuotaInfoResponseNonNullableFields>;
|
|
1720
|
+
}
|
|
1721
|
+
declare function generateActionInputMappingFromTemplate$1(httpClient: HttpClient): GenerateActionInputMappingFromTemplateSignature;
|
|
1722
|
+
interface GenerateActionInputMappingFromTemplateSignature {
|
|
1723
|
+
/**
|
|
1724
|
+
* Generate action input mapping from a template
|
|
1725
|
+
* @param - action app id
|
|
1726
|
+
*/
|
|
1727
|
+
(appId: string, options: GenerateActionInputMappingFromTemplateOptions): Promise<GenerateActionInputMappingFromTemplateResponse>;
|
|
1640
1728
|
}
|
|
1641
|
-
|
|
1642
|
-
declare function createAutomation$3(httpClient: HttpClient): (automation: Automation$2) => Promise<Automation$2 & AutomationNonNullableFields$1>;
|
|
1643
|
-
declare function getAutomation$3(httpClient: HttpClient): (automationId: string, options?: GetAutomationOptions$1) => Promise<Automation$2 & AutomationNonNullableFields$1>;
|
|
1644
|
-
declare function updateAutomation$3(httpClient: HttpClient): (_id: string | null, automation: UpdateAutomation$1) => Promise<Automation$2 & AutomationNonNullableFields$1>;
|
|
1645
|
-
declare function deleteAutomation$3(httpClient: HttpClient): (automationId: string, options?: DeleteAutomationOptions) => Promise<void>;
|
|
1646
|
-
declare function queryAutomations$3(httpClient: HttpClient): (options?: QueryAutomationsOptions) => AutomationsQueryBuilder$1;
|
|
1647
|
-
declare function overrideApplicationAutomation$1(httpClient: HttpClient): (automation: Automation$2) => Promise<OverrideApplicationAutomationResponse & OverrideApplicationAutomationResponseNonNullableFields>;
|
|
1648
|
-
declare function validateAutomationById$1(httpClient: HttpClient): (automationId: string, options?: ValidateAutomationByIdOptions) => Promise<ValidateAutomationByIdResponse & ValidateAutomationByIdResponseNonNullableFields>;
|
|
1649
|
-
declare function validateAutomation$3(httpClient: HttpClient): (automation: Automation$2) => Promise<ValidateAutomationResponse$1 & ValidateAutomationResponseNonNullableFields$1>;
|
|
1650
|
-
declare function getAutomationActivationStats$1(httpClient: HttpClient): (automationId: string, options?: GetAutomationActivationStatsOptions) => Promise<GetAutomationActivationReportsResponse & GetAutomationActivationReportsResponseNonNullableFields>;
|
|
1651
|
-
declare function getActionsQuotaInfo$1(httpClient: HttpClient): () => Promise<GetActionsQuotaInfoResponse$1 & GetActionsQuotaInfoResponseNonNullableFields>;
|
|
1652
|
-
declare function generateActionInputMappingFromTemplate$1(httpClient: HttpClient): (appId: string, options: GenerateActionInputMappingFromTemplateOptions) => Promise<GenerateActionInputMappingFromTemplateResponse>;
|
|
1653
1729
|
declare const onAutomationCreated$3: EventDefinition<AutomationCreatedEnvelope$1, "wix.automations.v1.automation_created">;
|
|
1654
1730
|
declare const onAutomationUpdated$3: EventDefinition<AutomationUpdatedEnvelope$1, "wix.automations.v1.automation_updated">;
|
|
1655
1731
|
declare const onAutomationDeleted$3: EventDefinition<AutomationDeletedEnvelope$1, "wix.automations.v1.automation_deleted">;
|
|
@@ -1684,18 +1760,23 @@ type _publicGenerateActionInputMappingFromTemplateType = typeof generateActionIn
|
|
|
1684
1760
|
declare const generateActionInputMappingFromTemplate: ReturnType<typeof createRESTModule$2<_publicGenerateActionInputMappingFromTemplateType>>;
|
|
1685
1761
|
|
|
1686
1762
|
type _publicOnAutomationCreatedType$1 = typeof onAutomationCreated$3;
|
|
1763
|
+
/** */
|
|
1687
1764
|
declare const onAutomationCreated$2: ReturnType<typeof createEventModule$2<_publicOnAutomationCreatedType>>;
|
|
1688
1765
|
|
|
1689
1766
|
type _publicOnAutomationUpdatedType$1 = typeof onAutomationUpdated$3;
|
|
1767
|
+
/** */
|
|
1690
1768
|
declare const onAutomationUpdated$2: ReturnType<typeof createEventModule$2<_publicOnAutomationUpdatedType>>;
|
|
1691
1769
|
|
|
1692
1770
|
type _publicOnAutomationDeletedType$1 = typeof onAutomationDeleted$3;
|
|
1771
|
+
/** */
|
|
1693
1772
|
declare const onAutomationDeleted$2: ReturnType<typeof createEventModule$2<_publicOnAutomationDeletedType>>;
|
|
1694
1773
|
|
|
1695
1774
|
type _publicOnAutomationUpdatedWithPreviousEntityType$1 = typeof onAutomationUpdatedWithPreviousEntity$3;
|
|
1775
|
+
/** */
|
|
1696
1776
|
declare const onAutomationUpdatedWithPreviousEntity$2: ReturnType<typeof createEventModule$2<_publicOnAutomationUpdatedWithPreviousEntityType>>;
|
|
1697
1777
|
|
|
1698
1778
|
type _publicOnAutomationDeletedWithEntityType$1 = typeof onAutomationDeletedWithEntity$3;
|
|
1779
|
+
/** */
|
|
1699
1780
|
declare const onAutomationDeletedWithEntity$2: ReturnType<typeof createEventModule$2<_publicOnAutomationDeletedWithEntityType>>;
|
|
1700
1781
|
|
|
1701
1782
|
type context$2_ActivationReport = ActivationReport;
|
|
@@ -1763,7 +1844,7 @@ declare const context$2_getAutomationActivationStats: typeof getAutomationActiva
|
|
|
1763
1844
|
declare const context$2_overrideApplicationAutomation: typeof overrideApplicationAutomation;
|
|
1764
1845
|
declare const context$2_validateAutomationById: typeof validateAutomationById;
|
|
1765
1846
|
declare namespace context$2 {
|
|
1766
|
-
export { type Action$2 as Action, type ActionConfigurationError$1 as ActionConfigurationError, ActionErrorType$1 as ActionErrorType, type ActionEvent$2 as ActionEvent, type ActionProviderQuotaInfo$1 as ActionProviderQuotaInfo, type ActionQuotaInfo$1 as ActionQuotaInfo, type ActionValidationError$1 as ActionValidationError, type ActionValidationErrorErrorOneOf$1 as ActionValidationErrorErrorOneOf, type ActionValidationInfo$1 as ActionValidationInfo, type context$2_ActivationReport as ActivationReport, ActivationStatus$1 as ActivationStatus, type AdditionalInfo$1 as AdditionalInfo, type ApplicationError$2 as ApplicationError, type Asset$1 as Asset, type Automation$2 as Automation, type AutomationCreatedEnvelope$1 as AutomationCreatedEnvelope, type AutomationDeletedEnvelope$1 as AutomationDeletedEnvelope, type AutomationDeletedWithEntityEnvelope$1 as AutomationDeletedWithEntityEnvelope, type context$2_AutomationMetadata as AutomationMetadata, type AutomationNonNullableFields$1 as AutomationNonNullableFields, type AutomationUpdatedEnvelope$1 as AutomationUpdatedEnvelope, type AutomationUpdatedWithPreviousEntityEnvelope$1 as AutomationUpdatedWithPreviousEntityEnvelope, type AutomationsQueryBuilder$1 as AutomationsQueryBuilder, type AutomationsQueryResult$1 as AutomationsQueryResult, type BaseEventMetadata$2 as BaseEventMetadata, BlockType$1 as BlockType, type BulkActionMetadata$2 as BulkActionMetadata, type context$2_BulkCreateApplicationAutomationRequest as BulkCreateApplicationAutomationRequest, type context$2_BulkCreateApplicationAutomationResponse as BulkCreateApplicationAutomationResponse, type BulkDeleteAutomationsRequest$1 as BulkDeleteAutomationsRequest, type BulkDeleteAutomationsResponse$1 as BulkDeleteAutomationsResponse, type CTA$1 as CTA, type context$2_Condition as Condition, type ConditionBlock$1 as ConditionBlock, type context$2_Conditions as Conditions, type CreateAutomationRequest$1 as CreateAutomationRequest, type CreateAutomationResponse$1 as CreateAutomationResponse, type CreateAutomationResponseNonNullableFields$1 as CreateAutomationResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type context$2_Debounce as Debounce, type Delay$1 as Delay, type context$2_DelayTypeOneOf as DelayTypeOneOf, type context$2_DeleteAutomationOptions as DeleteAutomationOptions, type DeleteAutomationRequest$1 as DeleteAutomationRequest, type DeleteAutomationResponse$1 as DeleteAutomationResponse, type DeleteContext$1 as DeleteContext, DeleteStatus$1 as DeleteStatus, type DeletedWithEntity$1 as DeletedWithEntity, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type context$2_ExtendedFields as ExtendedFields, type File$1 as File, type Filter$2 as Filter, type context$2_GenerateActionInputMappingFromTemplateOptions as GenerateActionInputMappingFromTemplateOptions, type context$2_GenerateActionInputMappingFromTemplateRequest as GenerateActionInputMappingFromTemplateRequest, type context$2_GenerateActionInputMappingFromTemplateResponse as GenerateActionInputMappingFromTemplateResponse, type context$2_GenerateApplicationAutomationFromCustomRequest as GenerateApplicationAutomationFromCustomRequest, type context$2_GenerateApplicationAutomationFromCustomResponse as GenerateApplicationAutomationFromCustomResponse, type GetActionsQuotaInfoRequest$1 as GetActionsQuotaInfoRequest, type GetActionsQuotaInfoResponse$1 as GetActionsQuotaInfoResponse, type context$2_GetActionsQuotaInfoResponseNonNullableFields as GetActionsQuotaInfoResponseNonNullableFields, type context$2_GetApplicationAutomationRequest as GetApplicationAutomationRequest, type context$2_GetApplicationAutomationResponse as GetApplicationAutomationResponse, type GetAutomationActionSchemaRequest$1 as GetAutomationActionSchemaRequest, type GetAutomationActionSchemaResponse$1 as GetAutomationActionSchemaResponse, type context$2_GetAutomationActivationReportsRequest as GetAutomationActivationReportsRequest, type context$2_GetAutomationActivationReportsResponse as GetAutomationActivationReportsResponse, type context$2_GetAutomationActivationReportsResponseNonNullableFields as GetAutomationActivationReportsResponseNonNullableFields, type context$2_GetAutomationActivationStatsOptions as GetAutomationActivationStatsOptions, type GetAutomationOptions$1 as GetAutomationOptions, type GetAutomationRequest$1 as GetAutomationRequest, type GetAutomationResponse$1 as GetAutomationResponse, type GetAutomationResponseNonNullableFields$1 as GetAutomationResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type ItemMetadata$2 as ItemMetadata, type MessageEnvelope$2 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, type context$2_MigrationBulkCreateAutomations as MigrationBulkCreateAutomations, type context$2_MigrationBulkCreateAutomationsRequest as MigrationBulkCreateAutomationsRequest, type context$2_MigrationBulkCreateAutomationsResponse as MigrationBulkCreateAutomationsResponse, type context$2_MigrationUpdateMigratedToV3AutomationRequest as MigrationUpdateMigratedToV3AutomationRequest, type context$2_MigrationUpdateMigratedToV3AutomationResponse as MigrationUpdateMigratedToV3AutomationResponse, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type context$2_Offset as Offset, type context$2_OffsetValueOneOf as OffsetValueOneOf, type context$2_OverrideApplicationAutomationRequest as OverrideApplicationAutomationRequest, type context$2_OverrideApplicationAutomationResponse as OverrideApplicationAutomationResponse, type context$2_OverrideApplicationAutomationResponseNonNullableFields as OverrideApplicationAutomationResponseNonNullableFields, type context$2_Paging as Paging, type context$2_PagingMetadata as PagingMetadata, type context$2_PagingMetadataV2 as PagingMetadataV2, type Plan$1 as Plan, type ProviderConfigurationError$1 as ProviderConfigurationError, type context$2_QueryApplicationAutomationsRequest as QueryApplicationAutomationsRequest, type context$2_QueryApplicationAutomationsResponse as QueryApplicationAutomationsResponse, type context$2_QueryAutomationsOptions as QueryAutomationsOptions, type QueryAutomationsRequest$1 as QueryAutomationsRequest, type QueryAutomationsResponse$1 as QueryAutomationsResponse, type QueryAutomationsResponseNonNullableFields$1 as QueryAutomationsResponseNonNullableFields, type context$2_QueryV2 as QueryV2, type context$2_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type Quota$1 as Quota, type QuotaInfo$1 as QuotaInfo, type RateLimit$2 as RateLimit, type RestoreInfo$2 as RestoreInfo, type context$2_Rule as Rule, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type SiteCreated$1 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, type context$2_Source as Source, State$1 as State, Status$2 as Status, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type context$2_SyncApplicationAutomationsRequest as SyncApplicationAutomationsRequest, type context$2_SyncApplicationAutomationsResponse as SyncApplicationAutomationsResponse, type Target$1 as Target, TargetType$1 as TargetType, type Trigger$2 as Trigger, type TriggerConfigurationError$1 as TriggerConfigurationError, TriggerErrorType$1 as TriggerErrorType, type TriggerValidationError$1 as TriggerValidationError, type TriggerValidationErrorErrorOneOf$1 as TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType$1 as TriggerValidationErrorValidationErrorType, Type$2 as Type, type UnprocessedTargetEvent$1 as UnprocessedTargetEvent, type context$2_Until as Until, type context$2_UpdateApplicationAutomationConfigurationIdRequest as UpdateApplicationAutomationConfigurationIdRequest, type context$2_UpdateApplicationAutomationConfigurationIdResponse as UpdateApplicationAutomationConfigurationIdResponse, type context$2_UpdateApplicationAutomationToMigratedFromV1Request as UpdateApplicationAutomationToMigratedFromV1Request, type context$2_UpdateApplicationAutomationToMigratedFromV1Response as UpdateApplicationAutomationToMigratedFromV1Response, type UpdateAutomation$1 as UpdateAutomation, type UpdateAutomationRequest$1 as UpdateAutomationRequest, type UpdateAutomationResponse$1 as UpdateAutomationResponse, type UpdateAutomationResponseNonNullableFields$1 as UpdateAutomationResponseNonNullableFields, type context$2_UpdatedAutomationsWithEsb as UpdatedAutomationsWithEsb, type UpdatedWithPreviousEntity$1 as UpdatedWithPreviousEntity, type UpgradeCTA$1 as UpgradeCTA, type context$2_ValidateAutomationByIdOptions as ValidateAutomationByIdOptions, type context$2_ValidateAutomationByIdRequest as ValidateAutomationByIdRequest, type context$2_ValidateAutomationByIdResponse as ValidateAutomationByIdResponse, type context$2_ValidateAutomationByIdResponseNonNullableFields as ValidateAutomationByIdResponseNonNullableFields, type ValidateAutomationRequest$1 as ValidateAutomationRequest, type ValidateAutomationResponse$1 as ValidateAutomationResponse, type ValidateAutomationResponseNonNullableFields$1 as ValidateAutomationResponseNonNullableFields, ValidationErrorType$1 as ValidationErrorType, WebhookIdentityType$2 as WebhookIdentityType, type _publicCreateAutomationType$1 as _publicCreateAutomationType, type _publicDeleteAutomationType$1 as _publicDeleteAutomationType, type context$2__publicGenerateActionInputMappingFromTemplateType as _publicGenerateActionInputMappingFromTemplateType, type context$2__publicGetActionsQuotaInfoType as _publicGetActionsQuotaInfoType, type context$2__publicGetAutomationActivationStatsType as _publicGetAutomationActivationStatsType, type _publicGetAutomationType$1 as _publicGetAutomationType, type _publicOnAutomationCreatedType$1 as _publicOnAutomationCreatedType, type _publicOnAutomationDeletedType$1 as _publicOnAutomationDeletedType, type _publicOnAutomationDeletedWithEntityType$1 as _publicOnAutomationDeletedWithEntityType, type _publicOnAutomationUpdatedType$1 as _publicOnAutomationUpdatedType, type _publicOnAutomationUpdatedWithPreviousEntityType$1 as _publicOnAutomationUpdatedWithPreviousEntityType, type context$2__publicOverrideApplicationAutomationType as _publicOverrideApplicationAutomationType, type _publicQueryAutomationsType$1 as _publicQueryAutomationsType, type _publicUpdateAutomationType$1 as _publicUpdateAutomationType, type context$2__publicValidateAutomationByIdType as _publicValidateAutomationByIdType, type _publicValidateAutomationType$1 as _publicValidateAutomationType, createAutomation$2 as createAutomation, deleteAutomation$2 as deleteAutomation, context$2_generateActionInputMappingFromTemplate as generateActionInputMappingFromTemplate, context$2_getActionsQuotaInfo as getActionsQuotaInfo, getAutomation$2 as getAutomation, context$2_getAutomationActivationStats as getAutomationActivationStats, onAutomationCreated$2 as onAutomationCreated, onAutomationDeleted$2 as onAutomationDeleted, onAutomationDeletedWithEntity$2 as onAutomationDeletedWithEntity, onAutomationUpdated$2 as onAutomationUpdated, onAutomationUpdatedWithPreviousEntity$2 as onAutomationUpdatedWithPreviousEntity, context$2_overrideApplicationAutomation as overrideApplicationAutomation, onAutomationCreated$3 as publicOnAutomationCreated, onAutomationDeleted$3 as publicOnAutomationDeleted, onAutomationDeletedWithEntity$3 as publicOnAutomationDeletedWithEntity, onAutomationUpdated$3 as publicOnAutomationUpdated, onAutomationUpdatedWithPreviousEntity$3 as publicOnAutomationUpdatedWithPreviousEntity, queryAutomations$2 as queryAutomations, updateAutomation$2 as updateAutomation, validateAutomation$2 as validateAutomation, context$2_validateAutomationById as validateAutomationById };
|
|
1847
|
+
export { type Action$2 as Action, type ActionConfigurationError$1 as ActionConfigurationError, ActionErrorType$1 as ActionErrorType, type ActionEvent$2 as ActionEvent, type ActionProviderQuotaInfo$1 as ActionProviderQuotaInfo, type ActionQuotaInfo$1 as ActionQuotaInfo, type ActionValidationError$1 as ActionValidationError, type ActionValidationErrorErrorOneOf$1 as ActionValidationErrorErrorOneOf, type ActionValidationInfo$1 as ActionValidationInfo, type context$2_ActivationReport as ActivationReport, ActivationStatus$1 as ActivationStatus, type AdditionalInfo$1 as AdditionalInfo, type ApplicationError$2 as ApplicationError, type Asset$1 as Asset, type Automation$2 as Automation, type AutomationCreatedEnvelope$1 as AutomationCreatedEnvelope, type AutomationDeletedEnvelope$1 as AutomationDeletedEnvelope, type AutomationDeletedWithEntityEnvelope$1 as AutomationDeletedWithEntityEnvelope, type context$2_AutomationMetadata as AutomationMetadata, type AutomationNonNullableFields$1 as AutomationNonNullableFields, type AutomationUpdatedEnvelope$1 as AutomationUpdatedEnvelope, type AutomationUpdatedWithPreviousEntityEnvelope$1 as AutomationUpdatedWithPreviousEntityEnvelope, type AutomationsQueryBuilder$1 as AutomationsQueryBuilder, type AutomationsQueryResult$1 as AutomationsQueryResult, type BaseEventMetadata$2 as BaseEventMetadata, BlockType$1 as BlockType, type BulkActionMetadata$2 as BulkActionMetadata, type context$2_BulkCreateApplicationAutomationRequest as BulkCreateApplicationAutomationRequest, type context$2_BulkCreateApplicationAutomationResponse as BulkCreateApplicationAutomationResponse, type BulkDeleteAutomationsRequest$1 as BulkDeleteAutomationsRequest, type BulkDeleteAutomationsResponse$1 as BulkDeleteAutomationsResponse, type CTA$1 as CTA, type context$2_Condition as Condition, type ConditionBlock$1 as ConditionBlock, type context$2_Conditions as Conditions, type CreateAutomationRequest$1 as CreateAutomationRequest, type CreateAutomationResponse$1 as CreateAutomationResponse, type CreateAutomationResponseNonNullableFields$1 as CreateAutomationResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type context$2_Debounce as Debounce, type Delay$1 as Delay, type context$2_DelayTypeOneOf as DelayTypeOneOf, type context$2_DeleteAutomationOptions as DeleteAutomationOptions, type DeleteAutomationRequest$1 as DeleteAutomationRequest, type DeleteAutomationResponse$1 as DeleteAutomationResponse, type DeleteContext$1 as DeleteContext, DeleteStatus$1 as DeleteStatus, type DeletedWithEntity$2 as DeletedWithEntity, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type context$2_ExtendedFields as ExtendedFields, type File$1 as File, type Filter$2 as Filter, type context$2_GenerateActionInputMappingFromTemplateOptions as GenerateActionInputMappingFromTemplateOptions, type context$2_GenerateActionInputMappingFromTemplateRequest as GenerateActionInputMappingFromTemplateRequest, type context$2_GenerateActionInputMappingFromTemplateResponse as GenerateActionInputMappingFromTemplateResponse, type context$2_GenerateApplicationAutomationFromCustomRequest as GenerateApplicationAutomationFromCustomRequest, type context$2_GenerateApplicationAutomationFromCustomResponse as GenerateApplicationAutomationFromCustomResponse, type GetActionsQuotaInfoRequest$1 as GetActionsQuotaInfoRequest, type GetActionsQuotaInfoResponse$1 as GetActionsQuotaInfoResponse, type context$2_GetActionsQuotaInfoResponseNonNullableFields as GetActionsQuotaInfoResponseNonNullableFields, type context$2_GetApplicationAutomationRequest as GetApplicationAutomationRequest, type context$2_GetApplicationAutomationResponse as GetApplicationAutomationResponse, type GetAutomationActionSchemaRequest$1 as GetAutomationActionSchemaRequest, type GetAutomationActionSchemaResponse$1 as GetAutomationActionSchemaResponse, type context$2_GetAutomationActivationReportsRequest as GetAutomationActivationReportsRequest, type context$2_GetAutomationActivationReportsResponse as GetAutomationActivationReportsResponse, type context$2_GetAutomationActivationReportsResponseNonNullableFields as GetAutomationActivationReportsResponseNonNullableFields, type context$2_GetAutomationActivationStatsOptions as GetAutomationActivationStatsOptions, type GetAutomationOptions$1 as GetAutomationOptions, type GetAutomationRequest$1 as GetAutomationRequest, type GetAutomationResponse$1 as GetAutomationResponse, type GetAutomationResponseNonNullableFields$1 as GetAutomationResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type ItemMetadata$2 as ItemMetadata, type MessageEnvelope$2 as MessageEnvelope, type MetaSiteSpecialEvent$1 as MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf$1 as MetaSiteSpecialEventPayloadOneOf, type context$2_MigrationBulkCreateAutomations as MigrationBulkCreateAutomations, type context$2_MigrationBulkCreateAutomationsRequest as MigrationBulkCreateAutomationsRequest, type context$2_MigrationBulkCreateAutomationsResponse as MigrationBulkCreateAutomationsResponse, type context$2_MigrationUpdateMigratedToV3AutomationRequest as MigrationUpdateMigratedToV3AutomationRequest, type context$2_MigrationUpdateMigratedToV3AutomationResponse as MigrationUpdateMigratedToV3AutomationResponse, Namespace$1 as Namespace, type NamespaceChanged$1 as NamespaceChanged, type context$2_Offset as Offset, type context$2_OffsetValueOneOf as OffsetValueOneOf, type context$2_OverrideApplicationAutomationRequest as OverrideApplicationAutomationRequest, type context$2_OverrideApplicationAutomationResponse as OverrideApplicationAutomationResponse, type context$2_OverrideApplicationAutomationResponseNonNullableFields as OverrideApplicationAutomationResponseNonNullableFields, type context$2_Paging as Paging, type context$2_PagingMetadata as PagingMetadata, type context$2_PagingMetadataV2 as PagingMetadataV2, type Plan$1 as Plan, type ProviderConfigurationError$1 as ProviderConfigurationError, type context$2_QueryApplicationAutomationsRequest as QueryApplicationAutomationsRequest, type context$2_QueryApplicationAutomationsResponse as QueryApplicationAutomationsResponse, type context$2_QueryAutomationsOptions as QueryAutomationsOptions, type QueryAutomationsRequest$1 as QueryAutomationsRequest, type QueryAutomationsResponse$1 as QueryAutomationsResponse, type QueryAutomationsResponseNonNullableFields$1 as QueryAutomationsResponseNonNullableFields, type context$2_QueryV2 as QueryV2, type context$2_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type Quota$1 as Quota, type QuotaInfo$1 as QuotaInfo, type RateLimit$2 as RateLimit, type RestoreInfo$2 as RestoreInfo, type context$2_Rule as Rule, type ServiceProvisioned$1 as ServiceProvisioned, type ServiceRemoved$1 as ServiceRemoved, type SiteCreated$1 as SiteCreated, SiteCreatedContext$1 as SiteCreatedContext, type SiteDeleted$1 as SiteDeleted, type SiteHardDeleted$1 as SiteHardDeleted, type SiteMarkedAsTemplate$1 as SiteMarkedAsTemplate, type SiteMarkedAsWixSite$1 as SiteMarkedAsWixSite, type SitePublished$1 as SitePublished, type SiteRenamed$1 as SiteRenamed, type SiteTransferred$1 as SiteTransferred, type SiteUndeleted$1 as SiteUndeleted, type SiteUnpublished$1 as SiteUnpublished, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, type context$2_Source as Source, State$1 as State, Status$2 as Status, type StudioAssigned$1 as StudioAssigned, type StudioUnassigned$1 as StudioUnassigned, type context$2_SyncApplicationAutomationsRequest as SyncApplicationAutomationsRequest, type context$2_SyncApplicationAutomationsResponse as SyncApplicationAutomationsResponse, type Target$1 as Target, TargetType$1 as TargetType, type Trigger$2 as Trigger, type TriggerConfigurationError$1 as TriggerConfigurationError, TriggerErrorType$1 as TriggerErrorType, type TriggerValidationError$1 as TriggerValidationError, type TriggerValidationErrorErrorOneOf$1 as TriggerValidationErrorErrorOneOf, TriggerValidationErrorValidationErrorType$1 as TriggerValidationErrorValidationErrorType, Type$2 as Type, type UnprocessedTargetEvent$1 as UnprocessedTargetEvent, type context$2_Until as Until, type context$2_UpdateApplicationAutomationConfigurationIdRequest as UpdateApplicationAutomationConfigurationIdRequest, type context$2_UpdateApplicationAutomationConfigurationIdResponse as UpdateApplicationAutomationConfigurationIdResponse, type context$2_UpdateApplicationAutomationToMigratedFromV1Request as UpdateApplicationAutomationToMigratedFromV1Request, type context$2_UpdateApplicationAutomationToMigratedFromV1Response as UpdateApplicationAutomationToMigratedFromV1Response, type UpdateAutomation$1 as UpdateAutomation, type UpdateAutomationRequest$1 as UpdateAutomationRequest, type UpdateAutomationResponse$1 as UpdateAutomationResponse, type UpdateAutomationResponseNonNullableFields$1 as UpdateAutomationResponseNonNullableFields, type context$2_UpdatedAutomationsWithEsb as UpdatedAutomationsWithEsb, type UpdatedWithPreviousEntity$2 as UpdatedWithPreviousEntity, type UpgradeCTA$1 as UpgradeCTA, type context$2_ValidateAutomationByIdOptions as ValidateAutomationByIdOptions, type context$2_ValidateAutomationByIdRequest as ValidateAutomationByIdRequest, type context$2_ValidateAutomationByIdResponse as ValidateAutomationByIdResponse, type context$2_ValidateAutomationByIdResponseNonNullableFields as ValidateAutomationByIdResponseNonNullableFields, type ValidateAutomationRequest$1 as ValidateAutomationRequest, type ValidateAutomationResponse$1 as ValidateAutomationResponse, type ValidateAutomationResponseNonNullableFields$1 as ValidateAutomationResponseNonNullableFields, ValidationErrorType$1 as ValidationErrorType, WebhookIdentityType$2 as WebhookIdentityType, type _publicCreateAutomationType$1 as _publicCreateAutomationType, type _publicDeleteAutomationType$1 as _publicDeleteAutomationType, type context$2__publicGenerateActionInputMappingFromTemplateType as _publicGenerateActionInputMappingFromTemplateType, type context$2__publicGetActionsQuotaInfoType as _publicGetActionsQuotaInfoType, type context$2__publicGetAutomationActivationStatsType as _publicGetAutomationActivationStatsType, type _publicGetAutomationType$1 as _publicGetAutomationType, type _publicOnAutomationCreatedType$1 as _publicOnAutomationCreatedType, type _publicOnAutomationDeletedType$1 as _publicOnAutomationDeletedType, type _publicOnAutomationDeletedWithEntityType$1 as _publicOnAutomationDeletedWithEntityType, type _publicOnAutomationUpdatedType$1 as _publicOnAutomationUpdatedType, type _publicOnAutomationUpdatedWithPreviousEntityType$1 as _publicOnAutomationUpdatedWithPreviousEntityType, type context$2__publicOverrideApplicationAutomationType as _publicOverrideApplicationAutomationType, type _publicQueryAutomationsType$1 as _publicQueryAutomationsType, type _publicUpdateAutomationType$1 as _publicUpdateAutomationType, type context$2__publicValidateAutomationByIdType as _publicValidateAutomationByIdType, type _publicValidateAutomationType$1 as _publicValidateAutomationType, createAutomation$2 as createAutomation, deleteAutomation$2 as deleteAutomation, context$2_generateActionInputMappingFromTemplate as generateActionInputMappingFromTemplate, context$2_getActionsQuotaInfo as getActionsQuotaInfo, getAutomation$2 as getAutomation, context$2_getAutomationActivationStats as getAutomationActivationStats, onAutomationCreated$2 as onAutomationCreated, onAutomationDeleted$2 as onAutomationDeleted, onAutomationDeletedWithEntity$2 as onAutomationDeletedWithEntity, onAutomationUpdated$2 as onAutomationUpdated, onAutomationUpdatedWithPreviousEntity$2 as onAutomationUpdatedWithPreviousEntity, context$2_overrideApplicationAutomation as overrideApplicationAutomation, onAutomationCreated$3 as publicOnAutomationCreated, onAutomationDeleted$3 as publicOnAutomationDeleted, onAutomationDeletedWithEntity$3 as publicOnAutomationDeletedWithEntity, onAutomationUpdated$3 as publicOnAutomationUpdated, onAutomationUpdatedWithPreviousEntity$3 as publicOnAutomationUpdatedWithPreviousEntity, queryAutomations$2 as queryAutomations, updateAutomation$2 as updateAutomation, validateAutomation$2 as validateAutomation, context$2_validateAutomationById as validateAutomationById };
|
|
1767
1848
|
}
|
|
1768
1849
|
|
|
1769
1850
|
interface Activation {
|
|
@@ -1777,8 +1858,6 @@ interface Automation$1 extends AutomationOriginInfoOneOf$1 {
|
|
|
1777
1858
|
applicationInfo?: ApplicationOrigin$1;
|
|
1778
1859
|
/** Preinstalled info */
|
|
1779
1860
|
preinstalledInfo?: PreinstalledOrigin$1;
|
|
1780
|
-
/** Draft info */
|
|
1781
|
-
draftInfo?: DraftOrigin$1;
|
|
1782
1861
|
/**
|
|
1783
1862
|
* Automation ID.
|
|
1784
1863
|
* @readonly
|
|
@@ -1823,6 +1902,11 @@ interface Automation$1 extends AutomationOriginInfoOneOf$1 {
|
|
|
1823
1902
|
origin?: Origin$1;
|
|
1824
1903
|
/** Automation settings. */
|
|
1825
1904
|
settings?: AutomationSettings$1;
|
|
1905
|
+
/**
|
|
1906
|
+
* Draft info (optional - only if the automation is a draft)
|
|
1907
|
+
* @readonly
|
|
1908
|
+
*/
|
|
1909
|
+
draftInfo?: DraftInfo$1;
|
|
1826
1910
|
}
|
|
1827
1911
|
/** @oneof */
|
|
1828
1912
|
interface AutomationOriginInfoOneOf$1 {
|
|
@@ -1830,8 +1914,6 @@ interface AutomationOriginInfoOneOf$1 {
|
|
|
1830
1914
|
applicationInfo?: ApplicationOrigin$1;
|
|
1831
1915
|
/** Preinstalled info */
|
|
1832
1916
|
preinstalledInfo?: PreinstalledOrigin$1;
|
|
1833
|
-
/** Draft info */
|
|
1834
|
-
draftInfo?: DraftOrigin$1;
|
|
1835
1917
|
}
|
|
1836
1918
|
interface ActionSettings$1 {
|
|
1837
1919
|
/**
|
|
@@ -2058,9 +2140,7 @@ declare enum Origin$1 {
|
|
|
2058
2140
|
/** automation created by application (site specific) */
|
|
2059
2141
|
APPLICATION = "APPLICATION",
|
|
2060
2142
|
/** preinstalled application automation */
|
|
2061
|
-
PREINSTALLED = "PREINSTALLED"
|
|
2062
|
-
/** draft automation */
|
|
2063
|
-
DRAFT = "DRAFT"
|
|
2143
|
+
PREINSTALLED = "PREINSTALLED"
|
|
2064
2144
|
}
|
|
2065
2145
|
interface ApplicationOrigin$1 {
|
|
2066
2146
|
/** Application ID. */
|
|
@@ -2083,10 +2163,6 @@ interface PreinstalledOrigin$1 {
|
|
|
2083
2163
|
*/
|
|
2084
2164
|
override?: boolean | null;
|
|
2085
2165
|
}
|
|
2086
|
-
interface DraftOrigin$1 {
|
|
2087
|
-
/** id of the automation that this draft belongs to, if it exists */
|
|
2088
|
-
parentId?: string | null;
|
|
2089
|
-
}
|
|
2090
2166
|
interface AutomationSettings$1 {
|
|
2091
2167
|
/**
|
|
2092
2168
|
* Whether the automation is hidden from users.
|
|
@@ -2111,6 +2187,13 @@ interface AutomationSettings$1 {
|
|
|
2111
2187
|
/** Automation action settings. */
|
|
2112
2188
|
actionSettings?: ActionSettings$1;
|
|
2113
2189
|
}
|
|
2190
|
+
interface DraftInfo$1 {
|
|
2191
|
+
/**
|
|
2192
|
+
* optional - automationId of the original automation
|
|
2193
|
+
* @readonly
|
|
2194
|
+
*/
|
|
2195
|
+
originalAutomationId?: string | null;
|
|
2196
|
+
}
|
|
2114
2197
|
interface ActivationStatus {
|
|
2115
2198
|
/** Activation's ID. */
|
|
2116
2199
|
_id?: string;
|
|
@@ -2234,6 +2317,16 @@ interface ActivationStatusChangedFailedStatusInfo {
|
|
|
2234
2317
|
*/
|
|
2235
2318
|
errorCode?: string | null;
|
|
2236
2319
|
}
|
|
2320
|
+
interface UpdatedWithPreviousEntity$1 {
|
|
2321
|
+
/** previous automation */
|
|
2322
|
+
previousAutomation?: Automation$1;
|
|
2323
|
+
/** updated automation */
|
|
2324
|
+
currentAutomation?: Automation$1;
|
|
2325
|
+
}
|
|
2326
|
+
interface DeletedWithEntity$1 {
|
|
2327
|
+
/** Deleted automation */
|
|
2328
|
+
automation?: Automation$1;
|
|
2329
|
+
}
|
|
2237
2330
|
interface UnprocessedTargetEvent {
|
|
2238
2331
|
/** The target that was not marked as processed */
|
|
2239
2332
|
target?: InternalTarget;
|
|
@@ -3300,10 +3393,73 @@ interface ReportEventOptions {
|
|
|
3300
3393
|
idempotency?: Idempotency;
|
|
3301
3394
|
}
|
|
3302
3395
|
|
|
3303
|
-
declare function reportEvent$1(httpClient: HttpClient):
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3396
|
+
declare function reportEvent$1(httpClient: HttpClient): ReportEventSignature;
|
|
3397
|
+
interface ReportEventSignature {
|
|
3398
|
+
/**
|
|
3399
|
+
* Reports an event and activates site automations with the specified trigger key.
|
|
3400
|
+
*
|
|
3401
|
+
*
|
|
3402
|
+
* Only the app that created a trigger can report events for it.
|
|
3403
|
+
* This means other apps can't report events for your triggers,
|
|
3404
|
+
* and you can't report events for another app's triggers.
|
|
3405
|
+
*
|
|
3406
|
+
* If your app supports canceling events,
|
|
3407
|
+
* `externalEntityId` must be provided.
|
|
3408
|
+
* `externalEntityId` is required when calling [cancelEvent()](#cancel-event).
|
|
3409
|
+
* @param - Trigger key as defined in your app's trigger configuration
|
|
3410
|
+
* in the Wix Developers Center.
|
|
3411
|
+
* For example, `form_submitted` or `invoice_due`.
|
|
3412
|
+
*/
|
|
3413
|
+
(triggerKey: string, options?: ReportEventOptions | undefined): Promise<ReportEventResponse & ReportEventResponseNonNullableFields>;
|
|
3414
|
+
}
|
|
3415
|
+
declare function bulkReportEvent$1(httpClient: HttpClient): BulkReportEventSignature;
|
|
3416
|
+
interface BulkReportEventSignature {
|
|
3417
|
+
/**
|
|
3418
|
+
* Bulk reports events and activates site automations with the specified trigger key.
|
|
3419
|
+
* @param - Trigger key as defined in your app's trigger configuration
|
|
3420
|
+
* in the Wix Developers Center.
|
|
3421
|
+
* For example, `form_submitted` or `invoice_due`.
|
|
3422
|
+
* @param - Repeated list of event details for bulk reporting
|
|
3423
|
+
*/
|
|
3424
|
+
(triggerKey: string, eventsInfo: EventInfo[]): Promise<BulkReportEventResponse & BulkReportEventResponseNonNullableFields>;
|
|
3425
|
+
}
|
|
3426
|
+
declare function bulkCancelEvent$1(httpClient: HttpClient): BulkCancelEventSignature;
|
|
3427
|
+
interface BulkCancelEventSignature {
|
|
3428
|
+
/**
|
|
3429
|
+
* Bulk cancels any remaining actions for a trigger and external entities.
|
|
3430
|
+
* @param - Trigger key whose events you want to cancel.
|
|
3431
|
+
* For example, `form_submitted` or `invoice_due`.
|
|
3432
|
+
* @param - Repeated list of external_entity_id, representing the related resources' IDs
|
|
3433
|
+
*/
|
|
3434
|
+
(triggerKey: string, externalEntityIds: string[]): Promise<BulkCancelEventResponse & BulkCancelEventResponseNonNullableFields>;
|
|
3435
|
+
}
|
|
3436
|
+
declare function cancelEvent$1(httpClient: HttpClient): CancelEventSignature;
|
|
3437
|
+
interface CancelEventSignature {
|
|
3438
|
+
/**
|
|
3439
|
+
* Cancels any remaining actions for a trigger and external entity.
|
|
3440
|
+
*
|
|
3441
|
+
*
|
|
3442
|
+
* Events are not cancelable by default.
|
|
3443
|
+
* To make an event cancelable,
|
|
3444
|
+
* you must first pass an `externalEntityId`
|
|
3445
|
+
* and the applicable `triggerKey` to [reportEvent()](#report-event).
|
|
3446
|
+
* When you call cancelEvent() with the same `externalEntityId` and `triggerKey`,
|
|
3447
|
+
* the event is canceled,
|
|
3448
|
+
* as are all other events that share the `externalEntityId` and `triggerKey`.
|
|
3449
|
+
* @param - Trigger key whose event you want to cancel.
|
|
3450
|
+
* For example, `form_submitted` or `invoice_due`.
|
|
3451
|
+
* @param - ID of the related resource in GUID format.
|
|
3452
|
+
* For example, `fc81a355-3429-50fc-a4c7-def486e828f3`.
|
|
3453
|
+
*
|
|
3454
|
+
* Typically, this ID is defined in your system,
|
|
3455
|
+
* but you can also use any Wix resource GUID,
|
|
3456
|
+
* such as contact ID, member ID, or invoice ID.
|
|
3457
|
+
* See
|
|
3458
|
+
* [Choose the right `externalEntityId`](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/reporting-and-canceling-events#choose-the-right-externalentityid)
|
|
3459
|
+
* for more information.
|
|
3460
|
+
*/
|
|
3461
|
+
(triggerKey: string, externalEntityId: string): Promise<void>;
|
|
3462
|
+
}
|
|
3307
3463
|
declare const onActivationStatusChanged$1: EventDefinition<ActivationStatusChangedEnvelope, "wix.automations.v2.activation_activation_status_changed">;
|
|
3308
3464
|
|
|
3309
3465
|
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
@@ -3320,6 +3476,9 @@ type _publicCancelEventType = typeof cancelEvent$1;
|
|
|
3320
3476
|
declare const cancelEvent: ReturnType<typeof createRESTModule$1<_publicCancelEventType>>;
|
|
3321
3477
|
|
|
3322
3478
|
type _publicOnActivationStatusChangedType = typeof onActivationStatusChanged$1;
|
|
3479
|
+
/**
|
|
3480
|
+
* activation status changed message
|
|
3481
|
+
*/
|
|
3323
3482
|
declare const onActivationStatusChanged: ReturnType<typeof createEventModule$1<_publicOnActivationStatusChangedType>>;
|
|
3324
3483
|
|
|
3325
3484
|
type context$1_ActionActionOneOf = ActionActionOneOf;
|
|
@@ -3454,7 +3613,7 @@ declare const context$1_cancelEvent: typeof cancelEvent;
|
|
|
3454
3613
|
declare const context$1_onActivationStatusChanged: typeof onActivationStatusChanged;
|
|
3455
3614
|
declare const context$1_reportEvent: typeof reportEvent;
|
|
3456
3615
|
declare namespace context$1 {
|
|
3457
|
-
export { type Action$1 as Action, type context$1_ActionActionOneOf as ActionActionOneOf, type context$1_ActionCompletedRequest as ActionCompletedRequest, type context$1_ActionData as ActionData, type ActionEvent$1 as ActionEvent, type ActionSettings$1 as ActionSettings, type context$1_ActionStatus as ActionStatus, type context$1_ActionsData as ActionsData, type context$1_Activation as Activation, type context$1_ActivationActionStatusChanged as ActivationActionStatusChanged, context$1_ActivationActionStatusChangedStatus as ActivationActionStatusChangedStatus, type context$1_ActivationActionStatusChangedStatusInfoOneOf as ActivationActionStatusChangedStatusInfoOneOf, type context$1_ActivationContinuedAfterSchedule as ActivationContinuedAfterSchedule, type context$1_ActivationRequest as ActivationRequest, type context$1_ActivationResumeAfterDelay as ActivationResumeAfterDelay, type context$1_ActivationScheduleCompleted as ActivationScheduleCompleted, type context$1_ActivationScheduleRequested as ActivationScheduleRequested, type context$1_ActivationSource as ActivationSource, type context$1_ActivationSourceOfOneOf as ActivationSourceOfOneOf, type context$1_ActivationStatus as ActivationStatus, type context$1_ActivationStatusChanged as ActivationStatusChanged, type context$1_ActivationStatusChangedEnvelope as ActivationStatusChangedEnvelope, type context$1_ActivationStatusChangedFailedStatusInfo as ActivationStatusChangedFailedStatusInfo, context$1_ActivationStatusChangedStatus as ActivationStatusChangedStatus, type context$1_ActivationStatusChangedStatusInfoOneOf as ActivationStatusChangedStatusInfoOneOf, type AppDefinedAction$1 as AppDefinedAction, type context$1_AppDefinedActionInfo as AppDefinedActionInfo, type ApplicationError$1 as ApplicationError, type ApplicationOrigin$1 as ApplicationOrigin, type context$1_AsyncAction as AsyncAction, type AuditInfo$1 as AuditInfo, type AuditInfoIdOneOf$1 as AuditInfoIdOneOf, type Automation$1 as Automation, type AutomationConfiguration$1 as AutomationConfiguration, type context$1_AutomationConfigurationAction as AutomationConfigurationAction, type context$1_AutomationConfigurationActionInfoOneOf as AutomationConfigurationActionInfoOneOf, context$1_AutomationConfigurationStatus as AutomationConfigurationStatus, type context$1_AutomationIdentifier as AutomationIdentifier, type context$1_AutomationInfo as AutomationInfo, type context$1_AutomationInfoOriginInfoOneOf as AutomationInfoOriginInfoOneOf, type AutomationOriginInfoOneOf$1 as AutomationOriginInfoOneOf, type AutomationSettings$1 as AutomationSettings, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_BatchActivationRequest as BatchActivationRequest, context$1_BlockType as BlockType, type BulkActionMetadata$1 as BulkActionMetadata, type context$1_BulkCancelEventRequest as BulkCancelEventRequest, type context$1_BulkCancelEventResponse as BulkCancelEventResponse, type context$1_BulkCancelEventResponseNonNullableFields as BulkCancelEventResponseNonNullableFields, type context$1_BulkCancelEventResult as BulkCancelEventResult, type context$1_BulkReportEventRequest as BulkReportEventRequest, type context$1_BulkReportEventResponse as BulkReportEventResponse, type context$1_BulkReportEventResponseNonNullableFields as BulkReportEventResponseNonNullableFields, type context$1_BulkReportEventResult as BulkReportEventResult, type context$1_CancelEventRequest as CancelEventRequest, type context$1_CancelEventResponse as CancelEventResponse, type context$1_CancelPendingScheduleRequest as CancelPendingScheduleRequest, type context$1_CancelPendingScheduleRequestByOneOf as CancelPendingScheduleRequestByOneOf, type context$1_CancelPendingScheduleResponse as CancelPendingScheduleResponse, context$1_CancellationReason as CancellationReason, type context$1_CancelledStatusInfo as CancelledStatusInfo, type context$1_Case as Case, type ConditionAction$1 as ConditionAction, type context$1_ConditionActionInfo as ConditionActionInfo, type context$1_ConditionBlock as ConditionBlock, type ConditionExpressionGroup$1 as ConditionExpressionGroup, type context$1_ConditionFilter as ConditionFilter, type context$1_Delay as Delay, type DelayAction$1 as DelayAction, type context$1_DelayActionInfo as DelayActionInfo, type context$1_DelayHelper as DelayHelper, type context$1_DelayOfOneOf as DelayOfOneOf, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type
|
|
3616
|
+
export { type Action$1 as Action, type context$1_ActionActionOneOf as ActionActionOneOf, type context$1_ActionCompletedRequest as ActionCompletedRequest, type context$1_ActionData as ActionData, type ActionEvent$1 as ActionEvent, type ActionSettings$1 as ActionSettings, type context$1_ActionStatus as ActionStatus, type context$1_ActionsData as ActionsData, type context$1_Activation as Activation, type context$1_ActivationActionStatusChanged as ActivationActionStatusChanged, context$1_ActivationActionStatusChangedStatus as ActivationActionStatusChangedStatus, type context$1_ActivationActionStatusChangedStatusInfoOneOf as ActivationActionStatusChangedStatusInfoOneOf, type context$1_ActivationContinuedAfterSchedule as ActivationContinuedAfterSchedule, type context$1_ActivationRequest as ActivationRequest, type context$1_ActivationResumeAfterDelay as ActivationResumeAfterDelay, type context$1_ActivationScheduleCompleted as ActivationScheduleCompleted, type context$1_ActivationScheduleRequested as ActivationScheduleRequested, type context$1_ActivationSource as ActivationSource, type context$1_ActivationSourceOfOneOf as ActivationSourceOfOneOf, type context$1_ActivationStatus as ActivationStatus, type context$1_ActivationStatusChanged as ActivationStatusChanged, type context$1_ActivationStatusChangedEnvelope as ActivationStatusChangedEnvelope, type context$1_ActivationStatusChangedFailedStatusInfo as ActivationStatusChangedFailedStatusInfo, context$1_ActivationStatusChangedStatus as ActivationStatusChangedStatus, type context$1_ActivationStatusChangedStatusInfoOneOf as ActivationStatusChangedStatusInfoOneOf, type AppDefinedAction$1 as AppDefinedAction, type context$1_AppDefinedActionInfo as AppDefinedActionInfo, type ApplicationError$1 as ApplicationError, type ApplicationOrigin$1 as ApplicationOrigin, type context$1_AsyncAction as AsyncAction, type AuditInfo$1 as AuditInfo, type AuditInfoIdOneOf$1 as AuditInfoIdOneOf, type Automation$1 as Automation, type AutomationConfiguration$1 as AutomationConfiguration, type context$1_AutomationConfigurationAction as AutomationConfigurationAction, type context$1_AutomationConfigurationActionInfoOneOf as AutomationConfigurationActionInfoOneOf, context$1_AutomationConfigurationStatus as AutomationConfigurationStatus, type context$1_AutomationIdentifier as AutomationIdentifier, type context$1_AutomationInfo as AutomationInfo, type context$1_AutomationInfoOriginInfoOneOf as AutomationInfoOriginInfoOneOf, type AutomationOriginInfoOneOf$1 as AutomationOriginInfoOneOf, type AutomationSettings$1 as AutomationSettings, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_BatchActivationRequest as BatchActivationRequest, context$1_BlockType as BlockType, type BulkActionMetadata$1 as BulkActionMetadata, type context$1_BulkCancelEventRequest as BulkCancelEventRequest, type context$1_BulkCancelEventResponse as BulkCancelEventResponse, type context$1_BulkCancelEventResponseNonNullableFields as BulkCancelEventResponseNonNullableFields, type context$1_BulkCancelEventResult as BulkCancelEventResult, type context$1_BulkReportEventRequest as BulkReportEventRequest, type context$1_BulkReportEventResponse as BulkReportEventResponse, type context$1_BulkReportEventResponseNonNullableFields as BulkReportEventResponseNonNullableFields, type context$1_BulkReportEventResult as BulkReportEventResult, type context$1_CancelEventRequest as CancelEventRequest, type context$1_CancelEventResponse as CancelEventResponse, type context$1_CancelPendingScheduleRequest as CancelPendingScheduleRequest, type context$1_CancelPendingScheduleRequestByOneOf as CancelPendingScheduleRequestByOneOf, type context$1_CancelPendingScheduleResponse as CancelPendingScheduleResponse, context$1_CancellationReason as CancellationReason, type context$1_CancelledStatusInfo as CancelledStatusInfo, type context$1_Case as Case, type ConditionAction$1 as ConditionAction, type context$1_ConditionActionInfo as ConditionActionInfo, type context$1_ConditionBlock as ConditionBlock, type ConditionExpressionGroup$1 as ConditionExpressionGroup, type context$1_ConditionFilter as ConditionFilter, type context$1_Delay as Delay, type DelayAction$1 as DelayAction, type context$1_DelayActionInfo as DelayActionInfo, type context$1_DelayHelper as DelayHelper, type context$1_DelayOfOneOf as DelayOfOneOf, type DeletedWithEntity$1 as DeletedWithEntity, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type DraftInfo$1 as DraftInfo, type Empty$1 as Empty, type context$1_EndedStatusInfo as EndedStatusInfo, type context$1_EndedStatusInfoTypeInfoOneOf as EndedStatusInfoTypeInfoOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type context$1_EventInfo as EventInfo, type EventMetadata$1 as EventMetadata, type context$1_ExecuteFromActionRequest as ExecuteFromActionRequest, type context$1_ExecuteFromActionResponse as ExecuteFromActionResponse, type context$1_ExpressionEvaluationResult as ExpressionEvaluationResult, type context$1_FailedStatusInfo as FailedStatusInfo, type context$1_File as File, type Filter$1 as Filter, type FutureDateActivationOffset$1 as FutureDateActivationOffset, type context$1_Idempotency as Idempotency, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, context$1_IdentifierType as IdentifierType, type context$1_Identity as Identity, type context$1_IfFilter as IfFilter, type context$1_InitiatedStatusInfo as InitiatedStatusInfo, type context$1_InternalTarget as InternalTarget, type ItemMetadata$1 as ItemMetadata, type MessageEnvelope$1 as MessageEnvelope, Operator$1 as Operator, Origin$1 as Origin, type context$1_Output as Output, type OutputAction$1 as OutputAction, type context$1_PreinstalledIdentifier as PreinstalledIdentifier, type PreinstalledOrigin$1 as PreinstalledOrigin, type RateLimit$1 as RateLimit, type RateLimitAction$1 as RateLimitAction, type context$1_RateLimitActionInfo as RateLimitActionInfo, type context$1_RateLimiting as RateLimiting, type context$1_RefreshPayloadRequest as RefreshPayloadRequest, type context$1_RefreshPayloadResponse as RefreshPayloadResponse, type context$1_ReportDomainEventRequest as ReportDomainEventRequest, type context$1_ReportDomainEventResponse as ReportDomainEventResponse, type context$1_ReportEventOptions as ReportEventOptions, type context$1_ReportEventRequest as ReportEventRequest, type context$1_ReportEventResponse as ReportEventResponse, type context$1_ReportEventResponseNonNullableFields as ReportEventResponseNonNullableFields, type RestoreInfo$1 as RestoreInfo, type context$1_RunAutomationRequest as RunAutomationRequest, type context$1_RunAutomationResponse as RunAutomationResponse, type context$1_Runtime as Runtime, type context$1_Schedule as Schedule, type context$1_ScheduleRequest as ScheduleRequest, type context$1_ScheduleResponse as ScheduleResponse, context$1_ScheduleStatus as ScheduleStatus, type context$1_ScheduledAction as ScheduledAction, type context$1_ScheduledStatusInfo as ScheduledStatusInfo, type context$1_Scheduler as Scheduler, type context$1_Service as Service, type context$1_ServiceMapping as ServiceMapping, type context$1_SimpleDelay as SimpleDelay, type context$1_SpiAction as SpiAction, type context$1_StartedStatusInfo as StartedStatusInfo, type context$1_StartedStatusInfoAppDefinedActionInfo as StartedStatusInfoAppDefinedActionInfo, type context$1_StartedStatusInfoTypeInfoOneOf as StartedStatusInfoTypeInfoOneOf, Status$1 as Status, type context$1_SwitchFilter as SwitchFilter, type context$1_SystemHelper as SystemHelper, type context$1_SystemHelperHelperOneOf as SystemHelperHelperOneOf, context$1_Target as Target, context$1_TargetType as TargetType, TimeUnit$1 as TimeUnit, type Trigger$1 as Trigger, type context$1_TriggerInfo as TriggerInfo, Type$1 as Type, context$1_Units as Units, type context$1_UnprocessedTargetEvent as UnprocessedTargetEvent, type context$1_UpdatePendingSchedulesPayloadRequest as UpdatePendingSchedulesPayloadRequest, type context$1_UpdatePendingSchedulesPayloadResponse as UpdatePendingSchedulesPayloadResponse, type UpdatedWithPreviousEntity$1 as UpdatedWithPreviousEntity, type context$1_V1RunAutomationRequest as V1RunAutomationRequest, type context$1_V1RunAutomationRequestIdentifierOneOf as V1RunAutomationRequestIdentifierOneOf, type context$1_V1RunAutomationResponse as V1RunAutomationResponse, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicBulkCancelEventType as _publicBulkCancelEventType, type context$1__publicBulkReportEventType as _publicBulkReportEventType, type context$1__publicCancelEventType as _publicCancelEventType, type context$1__publicOnActivationStatusChangedType as _publicOnActivationStatusChangedType, type context$1__publicReportEventType as _publicReportEventType, context$1_bulkCancelEvent as bulkCancelEvent, context$1_bulkReportEvent as bulkReportEvent, context$1_cancelEvent as cancelEvent, context$1_onActivationStatusChanged as onActivationStatusChanged, onActivationStatusChanged$1 as publicOnActivationStatusChanged, context$1_reportEvent as reportEvent };
|
|
3458
3617
|
}
|
|
3459
3618
|
|
|
3460
3619
|
interface Automation extends AutomationOriginInfoOneOf {
|
|
@@ -3462,8 +3621,6 @@ interface Automation extends AutomationOriginInfoOneOf {
|
|
|
3462
3621
|
applicationInfo?: ApplicationOrigin;
|
|
3463
3622
|
/** Preinstalled info */
|
|
3464
3623
|
preinstalledInfo?: PreinstalledOrigin;
|
|
3465
|
-
/** Draft info */
|
|
3466
|
-
draftInfo?: DraftOrigin;
|
|
3467
3624
|
/**
|
|
3468
3625
|
* Automation ID.
|
|
3469
3626
|
* @readonly
|
|
@@ -3508,6 +3665,11 @@ interface Automation extends AutomationOriginInfoOneOf {
|
|
|
3508
3665
|
origin?: Origin;
|
|
3509
3666
|
/** Automation settings. */
|
|
3510
3667
|
settings?: AutomationSettings;
|
|
3668
|
+
/**
|
|
3669
|
+
* Draft info (optional - only if the automation is a draft)
|
|
3670
|
+
* @readonly
|
|
3671
|
+
*/
|
|
3672
|
+
draftInfo?: DraftInfo;
|
|
3511
3673
|
}
|
|
3512
3674
|
/** @oneof */
|
|
3513
3675
|
interface AutomationOriginInfoOneOf {
|
|
@@ -3515,8 +3677,6 @@ interface AutomationOriginInfoOneOf {
|
|
|
3515
3677
|
applicationInfo?: ApplicationOrigin;
|
|
3516
3678
|
/** Preinstalled info */
|
|
3517
3679
|
preinstalledInfo?: PreinstalledOrigin;
|
|
3518
|
-
/** Draft info */
|
|
3519
|
-
draftInfo?: DraftOrigin;
|
|
3520
3680
|
}
|
|
3521
3681
|
interface ActionSettings {
|
|
3522
3682
|
/**
|
|
@@ -3743,9 +3903,7 @@ declare enum Origin {
|
|
|
3743
3903
|
/** automation created by application (site specific) */
|
|
3744
3904
|
APPLICATION = "APPLICATION",
|
|
3745
3905
|
/** preinstalled application automation */
|
|
3746
|
-
PREINSTALLED = "PREINSTALLED"
|
|
3747
|
-
/** draft automation */
|
|
3748
|
-
DRAFT = "DRAFT"
|
|
3906
|
+
PREINSTALLED = "PREINSTALLED"
|
|
3749
3907
|
}
|
|
3750
3908
|
interface ApplicationOrigin {
|
|
3751
3909
|
/** Application ID. */
|
|
@@ -3768,10 +3926,6 @@ interface PreinstalledOrigin {
|
|
|
3768
3926
|
*/
|
|
3769
3927
|
override?: boolean | null;
|
|
3770
3928
|
}
|
|
3771
|
-
interface DraftOrigin {
|
|
3772
|
-
/** id of the automation that this draft belongs to, if it exists */
|
|
3773
|
-
parentId?: string | null;
|
|
3774
|
-
}
|
|
3775
3929
|
interface AutomationSettings {
|
|
3776
3930
|
/**
|
|
3777
3931
|
* Whether the automation is hidden from users.
|
|
@@ -3796,6 +3950,23 @@ interface AutomationSettings {
|
|
|
3796
3950
|
/** Automation action settings. */
|
|
3797
3951
|
actionSettings?: ActionSettings;
|
|
3798
3952
|
}
|
|
3953
|
+
interface DraftInfo {
|
|
3954
|
+
/**
|
|
3955
|
+
* optional - automationId of the original automation
|
|
3956
|
+
* @readonly
|
|
3957
|
+
*/
|
|
3958
|
+
originalAutomationId?: string | null;
|
|
3959
|
+
}
|
|
3960
|
+
interface UpdatedWithPreviousEntity {
|
|
3961
|
+
/** previous automation */
|
|
3962
|
+
previousAutomation?: Automation;
|
|
3963
|
+
/** updated automation */
|
|
3964
|
+
currentAutomation?: Automation;
|
|
3965
|
+
}
|
|
3966
|
+
interface DeletedWithEntity {
|
|
3967
|
+
/** Deleted automation */
|
|
3968
|
+
automation?: Automation;
|
|
3969
|
+
}
|
|
3799
3970
|
interface GetAutomationRevisionRequest {
|
|
3800
3971
|
/** Automation ID. */
|
|
3801
3972
|
automationId?: string;
|
|
@@ -3806,6 +3977,116 @@ interface GetAutomationRevisionResponse {
|
|
|
3806
3977
|
/** Automation with the relevant revision. */
|
|
3807
3978
|
automation?: Automation;
|
|
3808
3979
|
}
|
|
3980
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3981
|
+
createdEvent?: EntityCreatedEvent;
|
|
3982
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3983
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3984
|
+
actionEvent?: ActionEvent;
|
|
3985
|
+
/**
|
|
3986
|
+
* Unique event ID.
|
|
3987
|
+
* Allows clients to ignore duplicate webhooks.
|
|
3988
|
+
*/
|
|
3989
|
+
_id?: string;
|
|
3990
|
+
/**
|
|
3991
|
+
* Assumes actions are also always typed to an entity_type
|
|
3992
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
3993
|
+
*/
|
|
3994
|
+
entityFqdn?: string;
|
|
3995
|
+
/**
|
|
3996
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
3997
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
3998
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
3999
|
+
*/
|
|
4000
|
+
slug?: string;
|
|
4001
|
+
/** ID of the entity associated with the event. */
|
|
4002
|
+
entityId?: string;
|
|
4003
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
4004
|
+
eventTime?: Date;
|
|
4005
|
+
/**
|
|
4006
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
4007
|
+
* (for example, GDPR).
|
|
4008
|
+
*/
|
|
4009
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
4010
|
+
/** If present, indicates the action that triggered the event. */
|
|
4011
|
+
originatedFrom?: string | null;
|
|
4012
|
+
/**
|
|
4013
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
4014
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
4015
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
4016
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
4017
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
4018
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
4019
|
+
*/
|
|
4020
|
+
entityEventSequence?: string | null;
|
|
4021
|
+
}
|
|
4022
|
+
/** @oneof */
|
|
4023
|
+
interface DomainEventBodyOneOf {
|
|
4024
|
+
createdEvent?: EntityCreatedEvent;
|
|
4025
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
4026
|
+
deletedEvent?: EntityDeletedEvent;
|
|
4027
|
+
actionEvent?: ActionEvent;
|
|
4028
|
+
}
|
|
4029
|
+
interface EntityCreatedEvent {
|
|
4030
|
+
entity?: string;
|
|
4031
|
+
}
|
|
4032
|
+
interface RestoreInfo {
|
|
4033
|
+
deletedDate?: Date;
|
|
4034
|
+
}
|
|
4035
|
+
interface EntityUpdatedEvent {
|
|
4036
|
+
/**
|
|
4037
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
4038
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
4039
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
4040
|
+
*/
|
|
4041
|
+
currentEntity?: string;
|
|
4042
|
+
}
|
|
4043
|
+
interface EntityDeletedEvent {
|
|
4044
|
+
/** Entity that was deleted */
|
|
4045
|
+
deletedEntity?: string | null;
|
|
4046
|
+
}
|
|
4047
|
+
interface ActionEvent {
|
|
4048
|
+
body?: string;
|
|
4049
|
+
}
|
|
4050
|
+
interface MessageEnvelope {
|
|
4051
|
+
/** App instance ID. */
|
|
4052
|
+
instanceId?: string | null;
|
|
4053
|
+
/** Event type. */
|
|
4054
|
+
eventType?: string;
|
|
4055
|
+
/** The identification type and identity data. */
|
|
4056
|
+
identity?: IdentificationData;
|
|
4057
|
+
/** Stringify payload. */
|
|
4058
|
+
data?: string;
|
|
4059
|
+
}
|
|
4060
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
4061
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
4062
|
+
anonymousVisitorId?: string;
|
|
4063
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
4064
|
+
memberId?: string;
|
|
4065
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
4066
|
+
wixUserId?: string;
|
|
4067
|
+
/** ID of an app. */
|
|
4068
|
+
appId?: string;
|
|
4069
|
+
/** @readonly */
|
|
4070
|
+
identityType?: WebhookIdentityType;
|
|
4071
|
+
}
|
|
4072
|
+
/** @oneof */
|
|
4073
|
+
interface IdentificationDataIdOneOf {
|
|
4074
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
4075
|
+
anonymousVisitorId?: string;
|
|
4076
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
4077
|
+
memberId?: string;
|
|
4078
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
4079
|
+
wixUserId?: string;
|
|
4080
|
+
/** ID of an app. */
|
|
4081
|
+
appId?: string;
|
|
4082
|
+
}
|
|
4083
|
+
declare enum WebhookIdentityType {
|
|
4084
|
+
UNKNOWN = "UNKNOWN",
|
|
4085
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
4086
|
+
MEMBER = "MEMBER",
|
|
4087
|
+
WIX_USER = "WIX_USER",
|
|
4088
|
+
APP = "APP"
|
|
4089
|
+
}
|
|
3809
4090
|
interface CreateAutomationRequest {
|
|
3810
4091
|
/** Automation to be created. */
|
|
3811
4092
|
automation: Automation;
|
|
@@ -3832,22 +4113,12 @@ interface UpdateAutomationResponse {
|
|
|
3832
4113
|
/** Updated automation. */
|
|
3833
4114
|
automation?: Automation;
|
|
3834
4115
|
}
|
|
3835
|
-
interface UpdatedWithPreviousEntity {
|
|
3836
|
-
/** previous automation */
|
|
3837
|
-
previousAutomation?: Automation;
|
|
3838
|
-
/** updated automation */
|
|
3839
|
-
currentAutomation?: Automation;
|
|
3840
|
-
}
|
|
3841
4116
|
interface DeleteAutomationRequest {
|
|
3842
4117
|
/** Automation ID. */
|
|
3843
4118
|
automationId: string;
|
|
3844
4119
|
}
|
|
3845
4120
|
interface DeleteAutomationResponse {
|
|
3846
4121
|
}
|
|
3847
|
-
interface DeletedWithEntity {
|
|
3848
|
-
/** Deleted automation */
|
|
3849
|
-
automation?: Automation;
|
|
3850
|
-
}
|
|
3851
4122
|
interface BulkDeleteAutomationsRequest {
|
|
3852
4123
|
/** Automation IDs to delete. */
|
|
3853
4124
|
automationIds: string[];
|
|
@@ -3980,76 +4251,6 @@ interface Cursors {
|
|
|
3980
4251
|
/** Cursor pointing to the previous page in the list of results. */
|
|
3981
4252
|
prev?: string | null;
|
|
3982
4253
|
}
|
|
3983
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3984
|
-
createdEvent?: EntityCreatedEvent;
|
|
3985
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
3986
|
-
deletedEvent?: EntityDeletedEvent;
|
|
3987
|
-
actionEvent?: ActionEvent;
|
|
3988
|
-
/**
|
|
3989
|
-
* Unique event ID.
|
|
3990
|
-
* Allows clients to ignore duplicate webhooks.
|
|
3991
|
-
*/
|
|
3992
|
-
_id?: string;
|
|
3993
|
-
/**
|
|
3994
|
-
* Assumes actions are also always typed to an entity_type
|
|
3995
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
3996
|
-
*/
|
|
3997
|
-
entityFqdn?: string;
|
|
3998
|
-
/**
|
|
3999
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
4000
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
4001
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
4002
|
-
*/
|
|
4003
|
-
slug?: string;
|
|
4004
|
-
/** ID of the entity associated with the event. */
|
|
4005
|
-
entityId?: string;
|
|
4006
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
4007
|
-
eventTime?: Date;
|
|
4008
|
-
/**
|
|
4009
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
4010
|
-
* (for example, GDPR).
|
|
4011
|
-
*/
|
|
4012
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
4013
|
-
/** If present, indicates the action that triggered the event. */
|
|
4014
|
-
originatedFrom?: string | null;
|
|
4015
|
-
/**
|
|
4016
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
4017
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
4018
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
4019
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
4020
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
4021
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
4022
|
-
*/
|
|
4023
|
-
entityEventSequence?: string | null;
|
|
4024
|
-
}
|
|
4025
|
-
/** @oneof */
|
|
4026
|
-
interface DomainEventBodyOneOf {
|
|
4027
|
-
createdEvent?: EntityCreatedEvent;
|
|
4028
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
4029
|
-
deletedEvent?: EntityDeletedEvent;
|
|
4030
|
-
actionEvent?: ActionEvent;
|
|
4031
|
-
}
|
|
4032
|
-
interface EntityCreatedEvent {
|
|
4033
|
-
entity?: string;
|
|
4034
|
-
}
|
|
4035
|
-
interface RestoreInfo {
|
|
4036
|
-
deletedDate?: Date;
|
|
4037
|
-
}
|
|
4038
|
-
interface EntityUpdatedEvent {
|
|
4039
|
-
/**
|
|
4040
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
4041
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
4042
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
4043
|
-
*/
|
|
4044
|
-
currentEntity?: string;
|
|
4045
|
-
}
|
|
4046
|
-
interface EntityDeletedEvent {
|
|
4047
|
-
/** Entity that was deleted */
|
|
4048
|
-
deletedEntity?: string | null;
|
|
4049
|
-
}
|
|
4050
|
-
interface ActionEvent {
|
|
4051
|
-
body?: string;
|
|
4052
|
-
}
|
|
4053
4254
|
interface Empty {
|
|
4054
4255
|
}
|
|
4055
4256
|
interface CopyAutomationRequest {
|
|
@@ -4333,6 +4534,56 @@ interface StudioAssigned {
|
|
|
4333
4534
|
/** Unassigned Studio editor */
|
|
4334
4535
|
interface StudioUnassigned {
|
|
4335
4536
|
}
|
|
4537
|
+
interface CreateDraftAutomationRequest {
|
|
4538
|
+
/** Draft automation to be created. */
|
|
4539
|
+
automation?: Automation;
|
|
4540
|
+
}
|
|
4541
|
+
interface CreateDraftAutomationResponse {
|
|
4542
|
+
/** The created draft automation. */
|
|
4543
|
+
automation?: Automation;
|
|
4544
|
+
}
|
|
4545
|
+
interface GetOrCreateDraftAutomationRequest {
|
|
4546
|
+
/** Original automation id */
|
|
4547
|
+
originalAutomationId?: string;
|
|
4548
|
+
}
|
|
4549
|
+
interface GetOrCreateDraftAutomationResponse {
|
|
4550
|
+
/** Draft automation. */
|
|
4551
|
+
automation?: Automation;
|
|
4552
|
+
}
|
|
4553
|
+
interface UpdateDraftAutomationRequest {
|
|
4554
|
+
/** Automation to be updated, may be partial. */
|
|
4555
|
+
automation?: Automation;
|
|
4556
|
+
}
|
|
4557
|
+
interface UpdateDraftAutomationResponse {
|
|
4558
|
+
/** Updated draft automation. */
|
|
4559
|
+
automation?: Automation;
|
|
4560
|
+
}
|
|
4561
|
+
interface QueryAutomationsWithDraftsRequest {
|
|
4562
|
+
/** WQL expression. */
|
|
4563
|
+
query?: CursorQuery;
|
|
4564
|
+
}
|
|
4565
|
+
interface QueryAutomationsWithDraftsResponse {
|
|
4566
|
+
/** List of automations. */
|
|
4567
|
+
automations?: Automation[];
|
|
4568
|
+
/** Paging metadata */
|
|
4569
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
4570
|
+
/**
|
|
4571
|
+
* map of existing automationIds and their relevant drafts' automationIds
|
|
4572
|
+
* if include_draft_data: false was passed, the map will be empty
|
|
4573
|
+
* The key is the automationId of the original automation, and the value a list of related draft automationIds
|
|
4574
|
+
*/
|
|
4575
|
+
originalAutomationIdToDrafts?: Record<string, DraftsInfo>;
|
|
4576
|
+
}
|
|
4577
|
+
interface DraftsInfo {
|
|
4578
|
+
/** list of drafts of an existing Automation */
|
|
4579
|
+
draftAutomationIds?: string[];
|
|
4580
|
+
}
|
|
4581
|
+
interface DeleteDraftAutomationRequest {
|
|
4582
|
+
/** Id of the draft automation to delete. */
|
|
4583
|
+
automationId?: string;
|
|
4584
|
+
}
|
|
4585
|
+
interface DeleteDraftAutomationResponse {
|
|
4586
|
+
}
|
|
4336
4587
|
interface ValidateAutomationRequest {
|
|
4337
4588
|
/** Automation to validate. */
|
|
4338
4589
|
automation: Automation;
|
|
@@ -4553,46 +4804,6 @@ interface UpgradeCTA {
|
|
|
4553
4804
|
/** CTA button label. */
|
|
4554
4805
|
label?: string;
|
|
4555
4806
|
}
|
|
4556
|
-
interface MessageEnvelope {
|
|
4557
|
-
/** App instance ID. */
|
|
4558
|
-
instanceId?: string | null;
|
|
4559
|
-
/** Event type. */
|
|
4560
|
-
eventType?: string;
|
|
4561
|
-
/** The identification type and identity data. */
|
|
4562
|
-
identity?: IdentificationData;
|
|
4563
|
-
/** Stringify payload. */
|
|
4564
|
-
data?: string;
|
|
4565
|
-
}
|
|
4566
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
4567
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
4568
|
-
anonymousVisitorId?: string;
|
|
4569
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
4570
|
-
memberId?: string;
|
|
4571
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
4572
|
-
wixUserId?: string;
|
|
4573
|
-
/** ID of an app. */
|
|
4574
|
-
appId?: string;
|
|
4575
|
-
/** @readonly */
|
|
4576
|
-
identityType?: WebhookIdentityType;
|
|
4577
|
-
}
|
|
4578
|
-
/** @oneof */
|
|
4579
|
-
interface IdentificationDataIdOneOf {
|
|
4580
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
4581
|
-
anonymousVisitorId?: string;
|
|
4582
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
4583
|
-
memberId?: string;
|
|
4584
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
4585
|
-
wixUserId?: string;
|
|
4586
|
-
/** ID of an app. */
|
|
4587
|
-
appId?: string;
|
|
4588
|
-
}
|
|
4589
|
-
declare enum WebhookIdentityType {
|
|
4590
|
-
UNKNOWN = "UNKNOWN",
|
|
4591
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
4592
|
-
MEMBER = "MEMBER",
|
|
4593
|
-
WIX_USER = "WIX_USER",
|
|
4594
|
-
APP = "APP"
|
|
4595
|
-
}
|
|
4596
4807
|
interface ApplicationOriginNonNullableFields {
|
|
4597
4808
|
appId: string;
|
|
4598
4809
|
}
|
|
@@ -4770,11 +4981,11 @@ interface AutomationUpdatedEnvelope {
|
|
|
4770
4981
|
entity: Automation;
|
|
4771
4982
|
metadata: EventMetadata;
|
|
4772
4983
|
}
|
|
4773
|
-
interface
|
|
4774
|
-
data: UpdatedWithPreviousEntity;
|
|
4984
|
+
interface AutomationDeletedEnvelope {
|
|
4775
4985
|
metadata: EventMetadata;
|
|
4776
4986
|
}
|
|
4777
|
-
interface
|
|
4987
|
+
interface AutomationUpdatedWithPreviousEntityEnvelope {
|
|
4988
|
+
data: UpdatedWithPreviousEntity;
|
|
4778
4989
|
metadata: EventMetadata;
|
|
4779
4990
|
}
|
|
4780
4991
|
interface AutomationDeletedWithEntityEnvelope {
|
|
@@ -4790,8 +5001,6 @@ interface UpdateAutomation {
|
|
|
4790
5001
|
applicationInfo?: ApplicationOrigin;
|
|
4791
5002
|
/** Preinstalled info */
|
|
4792
5003
|
preinstalledInfo?: PreinstalledOrigin;
|
|
4793
|
-
/** Draft info */
|
|
4794
|
-
draftInfo?: DraftOrigin;
|
|
4795
5004
|
/**
|
|
4796
5005
|
* Automation ID.
|
|
4797
5006
|
* @readonly
|
|
@@ -4836,6 +5045,11 @@ interface UpdateAutomation {
|
|
|
4836
5045
|
origin?: Origin;
|
|
4837
5046
|
/** Automation settings. */
|
|
4838
5047
|
settings?: AutomationSettings;
|
|
5048
|
+
/**
|
|
5049
|
+
* Draft info (optional - only if the automation is a draft)
|
|
5050
|
+
* @readonly
|
|
5051
|
+
*/
|
|
5052
|
+
draftInfo?: DraftInfo;
|
|
4839
5053
|
}
|
|
4840
5054
|
interface QueryCursorResult {
|
|
4841
5055
|
cursors: Cursors;
|
|
@@ -4904,17 +5118,83 @@ interface ValidateAutomationOptions {
|
|
|
4904
5118
|
validationSettings?: ValidationSettings;
|
|
4905
5119
|
}
|
|
4906
5120
|
|
|
4907
|
-
declare function createAutomation$1(httpClient: HttpClient):
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
5121
|
+
declare function createAutomation$1(httpClient: HttpClient): CreateAutomationSignature;
|
|
5122
|
+
interface CreateAutomationSignature {
|
|
5123
|
+
/**
|
|
5124
|
+
* Creates an automation.
|
|
5125
|
+
* @param - Automation to be created.
|
|
5126
|
+
* @returns The created automation.
|
|
5127
|
+
*/
|
|
5128
|
+
(automation: Automation): Promise<Automation & AutomationNonNullableFields>;
|
|
5129
|
+
}
|
|
5130
|
+
declare function getAutomation$1(httpClient: HttpClient): GetAutomationSignature;
|
|
5131
|
+
interface GetAutomationSignature {
|
|
5132
|
+
/**
|
|
5133
|
+
* Retrieves an automation.
|
|
5134
|
+
* @param - Automation ID.
|
|
5135
|
+
* @returns The requested automation.
|
|
5136
|
+
*/
|
|
5137
|
+
(automationId: string, options?: GetAutomationOptions | undefined): Promise<Automation & AutomationNonNullableFields>;
|
|
5138
|
+
}
|
|
5139
|
+
declare function updateAutomation$1(httpClient: HttpClient): UpdateAutomationSignature;
|
|
5140
|
+
interface UpdateAutomationSignature {
|
|
5141
|
+
/**
|
|
5142
|
+
* Updates an automation.
|
|
5143
|
+
*
|
|
5144
|
+
* Each time the automation is updated,
|
|
5145
|
+
* `revision` increments by 1.
|
|
5146
|
+
* The current `revision` must be passed when updating the automation.
|
|
5147
|
+
* This ensures you're working with the latest automation
|
|
5148
|
+
* and prevents unintended overwrites.
|
|
5149
|
+
* @param - Automation ID.
|
|
5150
|
+
* @returns Updated automation.
|
|
5151
|
+
*/
|
|
5152
|
+
(_id: string | null, automation: UpdateAutomation): Promise<Automation & AutomationNonNullableFields>;
|
|
5153
|
+
}
|
|
5154
|
+
declare function deleteAutomation$1(httpClient: HttpClient): DeleteAutomationSignature;
|
|
5155
|
+
interface DeleteAutomationSignature {
|
|
5156
|
+
/**
|
|
5157
|
+
* Deletes an Automation.
|
|
5158
|
+
* @param - Automation ID.
|
|
5159
|
+
*/
|
|
5160
|
+
(automationId: string): Promise<void>;
|
|
5161
|
+
}
|
|
5162
|
+
declare function bulkDeleteAutomations$1(httpClient: HttpClient): BulkDeleteAutomationsSignature;
|
|
5163
|
+
interface BulkDeleteAutomationsSignature {
|
|
5164
|
+
/**
|
|
5165
|
+
* Deletes multiple automations.
|
|
5166
|
+
* @param - Automation IDs to delete.
|
|
5167
|
+
*/
|
|
5168
|
+
(automationIds: string[]): Promise<BulkDeleteAutomationsResponse & BulkDeleteAutomationsResponseNonNullableFields>;
|
|
5169
|
+
}
|
|
5170
|
+
declare function queryAutomations$1(httpClient: HttpClient): QueryAutomationsSignature;
|
|
5171
|
+
interface QueryAutomationsSignature {
|
|
5172
|
+
/**
|
|
5173
|
+
* Retrieves a list of automations. Max query filter depth is 3.
|
|
5174
|
+
*
|
|
5175
|
+
* Relevant automations for the query are returned. This includes automations created on the site and pre-installed automations.
|
|
5176
|
+
* If there's an existing override for a pre-installed automation, the override is returned in the query result.
|
|
5177
|
+
* The query only returns automations from apps that are installed on the site.
|
|
5178
|
+
*
|
|
5179
|
+
* To learn about working with _Query_ endpoints, see
|
|
5180
|
+
* [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language),
|
|
5181
|
+
* [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination),
|
|
5182
|
+
* and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
|
|
5183
|
+
*/
|
|
5184
|
+
(): AutomationsQueryBuilder;
|
|
5185
|
+
}
|
|
5186
|
+
declare function validateAutomation$1(httpClient: HttpClient): ValidateAutomationSignature;
|
|
5187
|
+
interface ValidateAutomationSignature {
|
|
5188
|
+
/**
|
|
5189
|
+
* Validates the automation without requiring the automation ID to be passed in.
|
|
5190
|
+
* @param - Automation to validate.
|
|
5191
|
+
*/
|
|
5192
|
+
(automation: Automation, options?: ValidateAutomationOptions | undefined): Promise<ValidateAutomationResponse & ValidateAutomationResponseNonNullableFields>;
|
|
5193
|
+
}
|
|
4914
5194
|
declare const onAutomationCreated$1: EventDefinition<AutomationCreatedEnvelope, "wix.automations.v2.automation_created">;
|
|
4915
5195
|
declare const onAutomationUpdated$1: EventDefinition<AutomationUpdatedEnvelope, "wix.automations.v2.automation_updated">;
|
|
4916
|
-
declare const onAutomationUpdatedWithPreviousEntity$1: EventDefinition<AutomationUpdatedWithPreviousEntityEnvelope, "wix.automations.v2.automation_updated_with_previous_entity">;
|
|
4917
5196
|
declare const onAutomationDeleted$1: EventDefinition<AutomationDeletedEnvelope, "wix.automations.v2.automation_deleted">;
|
|
5197
|
+
declare const onAutomationUpdatedWithPreviousEntity$1: EventDefinition<AutomationUpdatedWithPreviousEntityEnvelope, "wix.automations.v2.automation_updated_with_previous_entity">;
|
|
4918
5198
|
declare const onAutomationDeletedWithEntity$1: EventDefinition<AutomationDeletedWithEntityEnvelope, "wix.automations.v2.automation_deleted_with_entity">;
|
|
4919
5199
|
|
|
4920
5200
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
@@ -4937,18 +5217,23 @@ type _publicValidateAutomationType = typeof validateAutomation$1;
|
|
|
4937
5217
|
declare const validateAutomation: ReturnType<typeof createRESTModule<_publicValidateAutomationType>>;
|
|
4938
5218
|
|
|
4939
5219
|
type _publicOnAutomationCreatedType = typeof onAutomationCreated$1;
|
|
5220
|
+
/** */
|
|
4940
5221
|
declare const onAutomationCreated: ReturnType<typeof createEventModule<_publicOnAutomationCreatedType>>;
|
|
4941
5222
|
|
|
4942
5223
|
type _publicOnAutomationUpdatedType = typeof onAutomationUpdated$1;
|
|
5224
|
+
/** */
|
|
4943
5225
|
declare const onAutomationUpdated: ReturnType<typeof createEventModule<_publicOnAutomationUpdatedType>>;
|
|
4944
5226
|
|
|
4945
|
-
type _publicOnAutomationUpdatedWithPreviousEntityType = typeof onAutomationUpdatedWithPreviousEntity$1;
|
|
4946
|
-
declare const onAutomationUpdatedWithPreviousEntity: ReturnType<typeof createEventModule<_publicOnAutomationUpdatedWithPreviousEntityType>>;
|
|
4947
|
-
|
|
4948
5227
|
type _publicOnAutomationDeletedType = typeof onAutomationDeleted$1;
|
|
5228
|
+
/** */
|
|
4949
5229
|
declare const onAutomationDeleted: ReturnType<typeof createEventModule<_publicOnAutomationDeletedType>>;
|
|
4950
5230
|
|
|
5231
|
+
type _publicOnAutomationUpdatedWithPreviousEntityType = typeof onAutomationUpdatedWithPreviousEntity$1;
|
|
5232
|
+
/** */
|
|
5233
|
+
declare const onAutomationUpdatedWithPreviousEntity: ReturnType<typeof createEventModule<_publicOnAutomationUpdatedWithPreviousEntityType>>;
|
|
5234
|
+
|
|
4951
5235
|
type _publicOnAutomationDeletedWithEntityType = typeof onAutomationDeletedWithEntity$1;
|
|
5236
|
+
/** */
|
|
4952
5237
|
declare const onAutomationDeletedWithEntity: ReturnType<typeof createEventModule<_publicOnAutomationDeletedWithEntityType>>;
|
|
4953
5238
|
|
|
4954
5239
|
type context_Action = Action;
|
|
@@ -4996,6 +5281,8 @@ type context_CopyAutomationResponse = CopyAutomationResponse;
|
|
|
4996
5281
|
type context_CreateAutomationRequest = CreateAutomationRequest;
|
|
4997
5282
|
type context_CreateAutomationResponse = CreateAutomationResponse;
|
|
4998
5283
|
type context_CreateAutomationResponseNonNullableFields = CreateAutomationResponseNonNullableFields;
|
|
5284
|
+
type context_CreateDraftAutomationRequest = CreateDraftAutomationRequest;
|
|
5285
|
+
type context_CreateDraftAutomationResponse = CreateDraftAutomationResponse;
|
|
4999
5286
|
type context_CreatePreinstalledAutomationRequest = CreatePreinstalledAutomationRequest;
|
|
5000
5287
|
type context_CreatePreinstalledAutomationResponse = CreatePreinstalledAutomationResponse;
|
|
5001
5288
|
type context_CursorPaging = CursorPaging;
|
|
@@ -5007,6 +5294,8 @@ type context_DelayAction = DelayAction;
|
|
|
5007
5294
|
type context_DeleteAutomationRequest = DeleteAutomationRequest;
|
|
5008
5295
|
type context_DeleteAutomationResponse = DeleteAutomationResponse;
|
|
5009
5296
|
type context_DeleteContext = DeleteContext;
|
|
5297
|
+
type context_DeleteDraftAutomationRequest = DeleteDraftAutomationRequest;
|
|
5298
|
+
type context_DeleteDraftAutomationResponse = DeleteDraftAutomationResponse;
|
|
5010
5299
|
type context_DeletePreinstalledAutomationRequest = DeletePreinstalledAutomationRequest;
|
|
5011
5300
|
type context_DeletePreinstalledAutomationResponse = DeletePreinstalledAutomationResponse;
|
|
5012
5301
|
type context_DeleteStatus = DeleteStatus;
|
|
@@ -5014,7 +5303,8 @@ declare const context_DeleteStatus: typeof DeleteStatus;
|
|
|
5014
5303
|
type context_DeletedWithEntity = DeletedWithEntity;
|
|
5015
5304
|
type context_DomainEvent = DomainEvent;
|
|
5016
5305
|
type context_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
5017
|
-
type
|
|
5306
|
+
type context_DraftInfo = DraftInfo;
|
|
5307
|
+
type context_DraftsInfo = DraftsInfo;
|
|
5018
5308
|
type context_Empty = Empty;
|
|
5019
5309
|
type context_EntityCreatedEvent = EntityCreatedEvent;
|
|
5020
5310
|
type context_EntityDeletedEvent = EntityDeletedEvent;
|
|
@@ -5032,6 +5322,8 @@ type context_GetAutomationResponse = GetAutomationResponse;
|
|
|
5032
5322
|
type context_GetAutomationResponseNonNullableFields = GetAutomationResponseNonNullableFields;
|
|
5033
5323
|
type context_GetAutomationRevisionRequest = GetAutomationRevisionRequest;
|
|
5034
5324
|
type context_GetAutomationRevisionResponse = GetAutomationRevisionResponse;
|
|
5325
|
+
type context_GetOrCreateDraftAutomationRequest = GetOrCreateDraftAutomationRequest;
|
|
5326
|
+
type context_GetOrCreateDraftAutomationResponse = GetOrCreateDraftAutomationResponse;
|
|
5035
5327
|
type context_IdentificationData = IdentificationData;
|
|
5036
5328
|
type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
5037
5329
|
type context_ItemMetadata = ItemMetadata;
|
|
@@ -5052,6 +5344,8 @@ type context_ProviderConfigurationError = ProviderConfigurationError;
|
|
|
5052
5344
|
type context_QueryAutomationsRequest = QueryAutomationsRequest;
|
|
5053
5345
|
type context_QueryAutomationsResponse = QueryAutomationsResponse;
|
|
5054
5346
|
type context_QueryAutomationsResponseNonNullableFields = QueryAutomationsResponseNonNullableFields;
|
|
5347
|
+
type context_QueryAutomationsWithDraftsRequest = QueryAutomationsWithDraftsRequest;
|
|
5348
|
+
type context_QueryAutomationsWithDraftsResponse = QueryAutomationsWithDraftsResponse;
|
|
5055
5349
|
type context_Quota = Quota;
|
|
5056
5350
|
type context_QuotaInfo = QuotaInfo;
|
|
5057
5351
|
type context_RateLimit = RateLimit;
|
|
@@ -5096,6 +5390,8 @@ type context_UpdateAutomation = UpdateAutomation;
|
|
|
5096
5390
|
type context_UpdateAutomationRequest = UpdateAutomationRequest;
|
|
5097
5391
|
type context_UpdateAutomationResponse = UpdateAutomationResponse;
|
|
5098
5392
|
type context_UpdateAutomationResponseNonNullableFields = UpdateAutomationResponseNonNullableFields;
|
|
5393
|
+
type context_UpdateDraftAutomationRequest = UpdateDraftAutomationRequest;
|
|
5394
|
+
type context_UpdateDraftAutomationResponse = UpdateDraftAutomationResponse;
|
|
5099
5395
|
type context_UpdatedWithPreviousEntity = UpdatedWithPreviousEntity;
|
|
5100
5396
|
type context_UpgradeCTA = UpgradeCTA;
|
|
5101
5397
|
type context_ValidateAutomationOptions = ValidateAutomationOptions;
|
|
@@ -5132,7 +5428,7 @@ declare const context_queryAutomations: typeof queryAutomations;
|
|
|
5132
5428
|
declare const context_updateAutomation: typeof updateAutomation;
|
|
5133
5429
|
declare const context_validateAutomation: typeof validateAutomation;
|
|
5134
5430
|
declare namespace context {
|
|
5135
|
-
export { type context_Action as Action, type context_ActionConfigurationError as ActionConfigurationError, context_ActionErrorType as ActionErrorType, type context_ActionEvent as ActionEvent, type context_ActionInfoOneOf as ActionInfoOneOf, type context_ActionProviderQuotaInfo as ActionProviderQuotaInfo, type context_ActionQuotaInfo as ActionQuotaInfo, type context_ActionSettings as ActionSettings, type context_ActionValidationError as ActionValidationError, type context_ActionValidationErrorErrorOneOf as ActionValidationErrorErrorOneOf, type context_ActionValidationInfo as ActionValidationInfo, type context_AdditionalInfo as AdditionalInfo, type context_AppDefinedAction as AppDefinedAction, type context_ApplicationError as ApplicationError, type context_ApplicationOrigin as ApplicationOrigin, type context_Asset as Asset, type context_AuditInfo as AuditInfo, type context_AuditInfoIdOneOf as AuditInfoIdOneOf, type context_Automation as Automation, type context_AutomationConfiguration as AutomationConfiguration, type context_AutomationCreatedEnvelope as AutomationCreatedEnvelope, type context_AutomationDeletedEnvelope as AutomationDeletedEnvelope, type context_AutomationDeletedWithEntityEnvelope as AutomationDeletedWithEntityEnvelope, type context_AutomationNonNullableFields as AutomationNonNullableFields, type context_AutomationOriginInfoOneOf as AutomationOriginInfoOneOf, type context_AutomationSettings as AutomationSettings, type context_AutomationUpdatedEnvelope as AutomationUpdatedEnvelope, type context_AutomationUpdatedWithPreviousEntityEnvelope as AutomationUpdatedWithPreviousEntityEnvelope, type context_AutomationsQueryBuilder as AutomationsQueryBuilder, type context_AutomationsQueryResult as AutomationsQueryResult, type context_BaseEventMetadata as BaseEventMetadata, type context_BulkActionMetadata as BulkActionMetadata, type context_BulkDeleteAutomationsRequest as BulkDeleteAutomationsRequest, type context_BulkDeleteAutomationsResponse as BulkDeleteAutomationsResponse, type context_BulkDeleteAutomationsResponseNonNullableFields as BulkDeleteAutomationsResponseNonNullableFields, type context_BulkDeleteResult as BulkDeleteResult, type context_CTA as CTA, type context_ConditionAction as ConditionAction, type context_ConditionExpressionGroup as ConditionExpressionGroup, type context_CopyAutomationRequest as CopyAutomationRequest, type context_CopyAutomationResponse as CopyAutomationResponse, type context_CreateAutomationRequest as CreateAutomationRequest, type context_CreateAutomationResponse as CreateAutomationResponse, type context_CreateAutomationResponseNonNullableFields as CreateAutomationResponseNonNullableFields, type context_CreatePreinstalledAutomationRequest as CreatePreinstalledAutomationRequest, type context_CreatePreinstalledAutomationResponse as CreatePreinstalledAutomationResponse, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DelayAction as DelayAction, type context_DeleteAutomationRequest as DeleteAutomationRequest, type context_DeleteAutomationResponse as DeleteAutomationResponse, type context_DeleteContext as DeleteContext, type context_DeletePreinstalledAutomationRequest as DeletePreinstalledAutomationRequest, type context_DeletePreinstalledAutomationResponse as DeletePreinstalledAutomationResponse, context_DeleteStatus as DeleteStatus, type context_DeletedWithEntity as DeletedWithEntity, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_DraftOrigin as DraftOrigin, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_Filter as Filter, type context_FutureDateActivationOffset as FutureDateActivationOffset, type context_GetActionsQuotaInfoRequest as GetActionsQuotaInfoRequest, type context_GetActionsQuotaInfoResponse as GetActionsQuotaInfoResponse, type context_GetAutomationActionSchemaRequest as GetAutomationActionSchemaRequest, type context_GetAutomationActionSchemaResponse as GetAutomationActionSchemaResponse, type context_GetAutomationOptions as GetAutomationOptions, type context_GetAutomationRequest as GetAutomationRequest, type context_GetAutomationResponse as GetAutomationResponse, type context_GetAutomationResponseNonNullableFields as GetAutomationResponseNonNullableFields, type context_GetAutomationRevisionRequest as GetAutomationRevisionRequest, type context_GetAutomationRevisionResponse as GetAutomationRevisionResponse, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ItemMetadata as ItemMetadata, type context_MessageEnvelope as MessageEnvelope, type context_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context_Namespace as Namespace, type context_NamespaceChanged as NamespaceChanged, context_Operator as Operator, context_Origin as Origin, type context_OutputAction as OutputAction, type context_Plan as Plan, type context_PreinstalledOrigin as PreinstalledOrigin, type context_ProviderConfigurationError as ProviderConfigurationError, type context_QueryAutomationsRequest as QueryAutomationsRequest, type context_QueryAutomationsResponse as QueryAutomationsResponse, type context_QueryAutomationsResponseNonNullableFields as QueryAutomationsResponseNonNullableFields, type context_Quota as Quota, type context_QuotaInfo as QuotaInfo, type context_RateLimit as RateLimit, type context_RateLimitAction as RateLimitAction, type context_RestoreInfo as RestoreInfo, type context_ServiceProvisioned as ServiceProvisioned, type context_ServiceRemoved as ServiceRemoved, type context_SiteCreated as SiteCreated, context_SiteCreatedContext as SiteCreatedContext, type context_SiteDeleted as SiteDeleted, type context_SiteHardDeleted as SiteHardDeleted, type context_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context_SitePublished as SitePublished, type context_SiteRenamed as SiteRenamed, type context_SiteTransferred as SiteTransferred, type context_SiteUndeleted as SiteUndeleted, type context_SiteUnpublished as SiteUnpublished, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_State as State, context_Status as Status, type context_StudioAssigned as StudioAssigned, type context_StudioUnassigned as StudioUnassigned, context_TimeUnit as TimeUnit, type context_Trigger as Trigger, type context_TriggerConfigurationError as TriggerConfigurationError, context_TriggerErrorType as TriggerErrorType, type context_TriggerValidationError as TriggerValidationError, type context_TriggerValidationErrorErrorOneOf as TriggerValidationErrorErrorOneOf, context_TriggerValidationErrorValidationErrorType as TriggerValidationErrorValidationErrorType, context_Type as Type, type context_UpdateAutomation as UpdateAutomation, type context_UpdateAutomationRequest as UpdateAutomationRequest, type context_UpdateAutomationResponse as UpdateAutomationResponse, type context_UpdateAutomationResponseNonNullableFields as UpdateAutomationResponseNonNullableFields, type context_UpdatedWithPreviousEntity as UpdatedWithPreviousEntity, type context_UpgradeCTA as UpgradeCTA, type context_ValidateAutomationOptions as ValidateAutomationOptions, type context_ValidateAutomationRequest as ValidateAutomationRequest, type context_ValidateAutomationResponse as ValidateAutomationResponse, type context_ValidateAutomationResponseNonNullableFields as ValidateAutomationResponseNonNullableFields, context_ValidationErrorType as ValidationErrorType, type context_ValidationSettings as ValidationSettings, context_WebhookIdentityType as WebhookIdentityType, type context__publicBulkDeleteAutomationsType as _publicBulkDeleteAutomationsType, type context__publicCreateAutomationType as _publicCreateAutomationType, type context__publicDeleteAutomationType as _publicDeleteAutomationType, type context__publicGetAutomationType as _publicGetAutomationType, type context__publicOnAutomationCreatedType as _publicOnAutomationCreatedType, type context__publicOnAutomationDeletedType as _publicOnAutomationDeletedType, type context__publicOnAutomationDeletedWithEntityType as _publicOnAutomationDeletedWithEntityType, type context__publicOnAutomationUpdatedType as _publicOnAutomationUpdatedType, type context__publicOnAutomationUpdatedWithPreviousEntityType as _publicOnAutomationUpdatedWithPreviousEntityType, type context__publicQueryAutomationsType as _publicQueryAutomationsType, type context__publicUpdateAutomationType as _publicUpdateAutomationType, type context__publicValidateAutomationType as _publicValidateAutomationType, context_bulkDeleteAutomations as bulkDeleteAutomations, context_createAutomation as createAutomation, context_deleteAutomation as deleteAutomation, context_getAutomation as getAutomation, context_onAutomationCreated as onAutomationCreated, context_onAutomationDeleted as onAutomationDeleted, context_onAutomationDeletedWithEntity as onAutomationDeletedWithEntity, context_onAutomationUpdated as onAutomationUpdated, context_onAutomationUpdatedWithPreviousEntity as onAutomationUpdatedWithPreviousEntity, onAutomationCreated$1 as publicOnAutomationCreated, onAutomationDeleted$1 as publicOnAutomationDeleted, onAutomationDeletedWithEntity$1 as publicOnAutomationDeletedWithEntity, onAutomationUpdated$1 as publicOnAutomationUpdated, onAutomationUpdatedWithPreviousEntity$1 as publicOnAutomationUpdatedWithPreviousEntity, context_queryAutomations as queryAutomations, context_updateAutomation as updateAutomation, context_validateAutomation as validateAutomation };
|
|
5431
|
+
export { type context_Action as Action, type context_ActionConfigurationError as ActionConfigurationError, context_ActionErrorType as ActionErrorType, type context_ActionEvent as ActionEvent, type context_ActionInfoOneOf as ActionInfoOneOf, type context_ActionProviderQuotaInfo as ActionProviderQuotaInfo, type context_ActionQuotaInfo as ActionQuotaInfo, type context_ActionSettings as ActionSettings, type context_ActionValidationError as ActionValidationError, type context_ActionValidationErrorErrorOneOf as ActionValidationErrorErrorOneOf, type context_ActionValidationInfo as ActionValidationInfo, type context_AdditionalInfo as AdditionalInfo, type context_AppDefinedAction as AppDefinedAction, type context_ApplicationError as ApplicationError, type context_ApplicationOrigin as ApplicationOrigin, type context_Asset as Asset, type context_AuditInfo as AuditInfo, type context_AuditInfoIdOneOf as AuditInfoIdOneOf, type context_Automation as Automation, type context_AutomationConfiguration as AutomationConfiguration, type context_AutomationCreatedEnvelope as AutomationCreatedEnvelope, type context_AutomationDeletedEnvelope as AutomationDeletedEnvelope, type context_AutomationDeletedWithEntityEnvelope as AutomationDeletedWithEntityEnvelope, type context_AutomationNonNullableFields as AutomationNonNullableFields, type context_AutomationOriginInfoOneOf as AutomationOriginInfoOneOf, type context_AutomationSettings as AutomationSettings, type context_AutomationUpdatedEnvelope as AutomationUpdatedEnvelope, type context_AutomationUpdatedWithPreviousEntityEnvelope as AutomationUpdatedWithPreviousEntityEnvelope, type context_AutomationsQueryBuilder as AutomationsQueryBuilder, type context_AutomationsQueryResult as AutomationsQueryResult, type context_BaseEventMetadata as BaseEventMetadata, type context_BulkActionMetadata as BulkActionMetadata, type context_BulkDeleteAutomationsRequest as BulkDeleteAutomationsRequest, type context_BulkDeleteAutomationsResponse as BulkDeleteAutomationsResponse, type context_BulkDeleteAutomationsResponseNonNullableFields as BulkDeleteAutomationsResponseNonNullableFields, type context_BulkDeleteResult as BulkDeleteResult, type context_CTA as CTA, type context_ConditionAction as ConditionAction, type context_ConditionExpressionGroup as ConditionExpressionGroup, type context_CopyAutomationRequest as CopyAutomationRequest, type context_CopyAutomationResponse as CopyAutomationResponse, type context_CreateAutomationRequest as CreateAutomationRequest, type context_CreateAutomationResponse as CreateAutomationResponse, type context_CreateAutomationResponseNonNullableFields as CreateAutomationResponseNonNullableFields, type context_CreateDraftAutomationRequest as CreateDraftAutomationRequest, type context_CreateDraftAutomationResponse as CreateDraftAutomationResponse, type context_CreatePreinstalledAutomationRequest as CreatePreinstalledAutomationRequest, type context_CreatePreinstalledAutomationResponse as CreatePreinstalledAutomationResponse, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, type context_DelayAction as DelayAction, type context_DeleteAutomationRequest as DeleteAutomationRequest, type context_DeleteAutomationResponse as DeleteAutomationResponse, type context_DeleteContext as DeleteContext, type context_DeleteDraftAutomationRequest as DeleteDraftAutomationRequest, type context_DeleteDraftAutomationResponse as DeleteDraftAutomationResponse, type context_DeletePreinstalledAutomationRequest as DeletePreinstalledAutomationRequest, type context_DeletePreinstalledAutomationResponse as DeletePreinstalledAutomationResponse, context_DeleteStatus as DeleteStatus, type context_DeletedWithEntity as DeletedWithEntity, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_DraftInfo as DraftInfo, type context_DraftsInfo as DraftsInfo, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_Filter as Filter, type context_FutureDateActivationOffset as FutureDateActivationOffset, type context_GetActionsQuotaInfoRequest as GetActionsQuotaInfoRequest, type context_GetActionsQuotaInfoResponse as GetActionsQuotaInfoResponse, type context_GetAutomationActionSchemaRequest as GetAutomationActionSchemaRequest, type context_GetAutomationActionSchemaResponse as GetAutomationActionSchemaResponse, type context_GetAutomationOptions as GetAutomationOptions, type context_GetAutomationRequest as GetAutomationRequest, type context_GetAutomationResponse as GetAutomationResponse, type context_GetAutomationResponseNonNullableFields as GetAutomationResponseNonNullableFields, type context_GetAutomationRevisionRequest as GetAutomationRevisionRequest, type context_GetAutomationRevisionResponse as GetAutomationRevisionResponse, type context_GetOrCreateDraftAutomationRequest as GetOrCreateDraftAutomationRequest, type context_GetOrCreateDraftAutomationResponse as GetOrCreateDraftAutomationResponse, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ItemMetadata as ItemMetadata, type context_MessageEnvelope as MessageEnvelope, type context_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, context_Namespace as Namespace, type context_NamespaceChanged as NamespaceChanged, context_Operator as Operator, context_Origin as Origin, type context_OutputAction as OutputAction, type context_Plan as Plan, type context_PreinstalledOrigin as PreinstalledOrigin, type context_ProviderConfigurationError as ProviderConfigurationError, type context_QueryAutomationsRequest as QueryAutomationsRequest, type context_QueryAutomationsResponse as QueryAutomationsResponse, type context_QueryAutomationsResponseNonNullableFields as QueryAutomationsResponseNonNullableFields, type context_QueryAutomationsWithDraftsRequest as QueryAutomationsWithDraftsRequest, type context_QueryAutomationsWithDraftsResponse as QueryAutomationsWithDraftsResponse, type context_Quota as Quota, type context_QuotaInfo as QuotaInfo, type context_RateLimit as RateLimit, type context_RateLimitAction as RateLimitAction, type context_RestoreInfo as RestoreInfo, type context_ServiceProvisioned as ServiceProvisioned, type context_ServiceRemoved as ServiceRemoved, type context_SiteCreated as SiteCreated, context_SiteCreatedContext as SiteCreatedContext, type context_SiteDeleted as SiteDeleted, type context_SiteHardDeleted as SiteHardDeleted, type context_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context_SitePublished as SitePublished, type context_SiteRenamed as SiteRenamed, type context_SiteTransferred as SiteTransferred, type context_SiteUndeleted as SiteUndeleted, type context_SiteUnpublished as SiteUnpublished, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_State as State, context_Status as Status, type context_StudioAssigned as StudioAssigned, type context_StudioUnassigned as StudioUnassigned, context_TimeUnit as TimeUnit, type context_Trigger as Trigger, type context_TriggerConfigurationError as TriggerConfigurationError, context_TriggerErrorType as TriggerErrorType, type context_TriggerValidationError as TriggerValidationError, type context_TriggerValidationErrorErrorOneOf as TriggerValidationErrorErrorOneOf, context_TriggerValidationErrorValidationErrorType as TriggerValidationErrorValidationErrorType, context_Type as Type, type context_UpdateAutomation as UpdateAutomation, type context_UpdateAutomationRequest as UpdateAutomationRequest, type context_UpdateAutomationResponse as UpdateAutomationResponse, type context_UpdateAutomationResponseNonNullableFields as UpdateAutomationResponseNonNullableFields, type context_UpdateDraftAutomationRequest as UpdateDraftAutomationRequest, type context_UpdateDraftAutomationResponse as UpdateDraftAutomationResponse, type context_UpdatedWithPreviousEntity as UpdatedWithPreviousEntity, type context_UpgradeCTA as UpgradeCTA, type context_ValidateAutomationOptions as ValidateAutomationOptions, type context_ValidateAutomationRequest as ValidateAutomationRequest, type context_ValidateAutomationResponse as ValidateAutomationResponse, type context_ValidateAutomationResponseNonNullableFields as ValidateAutomationResponseNonNullableFields, context_ValidationErrorType as ValidationErrorType, type context_ValidationSettings as ValidationSettings, context_WebhookIdentityType as WebhookIdentityType, type context__publicBulkDeleteAutomationsType as _publicBulkDeleteAutomationsType, type context__publicCreateAutomationType as _publicCreateAutomationType, type context__publicDeleteAutomationType as _publicDeleteAutomationType, type context__publicGetAutomationType as _publicGetAutomationType, type context__publicOnAutomationCreatedType as _publicOnAutomationCreatedType, type context__publicOnAutomationDeletedType as _publicOnAutomationDeletedType, type context__publicOnAutomationDeletedWithEntityType as _publicOnAutomationDeletedWithEntityType, type context__publicOnAutomationUpdatedType as _publicOnAutomationUpdatedType, type context__publicOnAutomationUpdatedWithPreviousEntityType as _publicOnAutomationUpdatedWithPreviousEntityType, type context__publicQueryAutomationsType as _publicQueryAutomationsType, type context__publicUpdateAutomationType as _publicUpdateAutomationType, type context__publicValidateAutomationType as _publicValidateAutomationType, context_bulkDeleteAutomations as bulkDeleteAutomations, context_createAutomation as createAutomation, context_deleteAutomation as deleteAutomation, context_getAutomation as getAutomation, context_onAutomationCreated as onAutomationCreated, context_onAutomationDeleted as onAutomationDeleted, context_onAutomationDeletedWithEntity as onAutomationDeletedWithEntity, context_onAutomationUpdated as onAutomationUpdated, context_onAutomationUpdatedWithPreviousEntity as onAutomationUpdatedWithPreviousEntity, onAutomationCreated$1 as publicOnAutomationCreated, onAutomationDeleted$1 as publicOnAutomationDeleted, onAutomationDeletedWithEntity$1 as publicOnAutomationDeletedWithEntity, onAutomationUpdated$1 as publicOnAutomationUpdated, onAutomationUpdatedWithPreviousEntity$1 as publicOnAutomationUpdatedWithPreviousEntity, context_queryAutomations as queryAutomations, context_updateAutomation as updateAutomation, context_validateAutomation as validateAutomation };
|
|
5136
5432
|
}
|
|
5137
5433
|
|
|
5138
5434
|
export { context$1 as activations, context$2 as automationsService, context as automationsServiceV2 };
|