@wix/auto_sdk_email-marketing_campaigns 1.0.31 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +22 -27
- package/build/cjs/index.js +21 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +12 -16
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +22 -27
- package/build/es/index.mjs +21 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +12 -16
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +22 -27
- package/build/internal/cjs/index.js +21 -7
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +12 -16
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +22 -27
- package/build/internal/es/index.mjs +21 -7
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +12 -16
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { ListStatisticsResponse, RecipientsActivityEnumWithLiterals, ListRecipientsOptions, ListRecipientsResponse, GetCampaignOptions, Campaign, ListCampaignsOptions, ListCampaignsResponse, PublishCampaignOptions, PublishCampaignResponse, PublishCampaignApplicationErrors, SendTestOptions, ReuseCampaignResponse, GetAudienceResponse, IdentifySenderAddressResponse, ValidateLinkResponse, ValidateHtmlLinksResponse, CampaignDistributedEnvelope, CampaignPausedEnvelope, CampaignPublishedEnvelope, CampaignRejectedEnvelope, CampaignScheduledEnvelope, CampaignTerminatedEnvelope, CampaignCreatedEnvelope, CampaignDeletedEnvelope, CampaignEmailActivityUpdatedEnvelope } from './index.typings.js';
|
|
3
|
-
export { ActionEvent, ActivityType, ArchiveCampaignRequest, ArchiveCampaignResponse, Archived, Attachment, AutomationTranslatorContent, BaseEventMetadata, CampaignAudience, CampaignEditorType, CampaignEditorTypeEnum, CampaignRecipientDetails, CampaignSendingStateEnum, CampaignStatistics, CampaignStatisticsContainer, CampaignStatusEnum, CampaignTypeEnum, CampaignVisibilityStatusEnum, Click, Composer, Contact, CountCampaignsRequest, CountCampaignsResponse, CreateCampaignRequest, CreateCampaignResponse, CreateFromTemplateRequest, CreateFromTemplateResponse, CreateFromUserTemplateRequest, CreateFromUserTemplateResponse, CreateUserTemplateRequest, CreateUserTemplateResponse, CursorPaging, Cursors, DateTime, Decimal, DefaultValues, DeleteCampaignRequest, DeleteCampaignResponse, Distributed, DistributionStatistics, DomainEvent, DomainEventBodyOneOf, EmailActivityUpdated, EmailActivityUpdatedEventTypeOneOf, EmailDistributionOptions, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EstimateAudienceSizeRequest, EstimateAudienceSizeResponse, EstimateFilterSizeRequest, EstimateFilterSizeResponse, EventMetadata, GetAudienceRequest, GetAutomationTranslatorContentRequest, GetAutomationTranslatorContentResponse, GetCampaignMappingRequest, GetCampaignMappingResponse, GetCampaignRequest, GetCampaignResponse, GetComposerRequest, GetComposerResponse, GetDefaultComponentsRequest, GetDefaultComponentsResponse, GetLabelsRequest, GetLabelsResponse, GetPlaceholderKeysRequest, GetPlaceholderKeysResponse, GetUsedPlaceholderKeysRequest, GetUsedPlaceholderKeysResponse, HardBounce, Html, IdentificationData, IdentificationDataIdOneOf, IdentifySenderAddressRequest, Integer, Label, LandingPageStatistics, ListCampaignsRequest, ListRecipientsRequest, ListStatisticsRequest, LookupCampaignMappingRequest, LookupCampaignMappingResponse, Map, MessageEnvelope, Money, Open, Paging, PagingMetadataV2, PauseSchedulingRequest, PauseSchedulingResponse, Paused, PlaceholderContent, PlaceholderContentEnum, PlaceholderContentValueOneOf, PlainText, PreviewCampaignRequest, PreviewCampaignResponse, PublishCampaignRequest, Published, PublishingData, RecipientsActivityEnum, ReconcileContactRequest, ReconcileContactResponse, Rejected, RejectionData, RejectionReasonEnum, RescheduleRequest, RescheduleResponse, ResendToNonOpenersRequest, ResendToNonOpenersResponse, RestoreInfo, ReuseCampaignRequest, Scheduled, SearchContactsRequest, SearchContactsResponse, SendTestBulkRequest, SendTestBulkResponse, SendTestRequest, SendTestResponse, SoftBounce, SubscribeFromLandingPageRequest, SubscribeFromLandingPageResponse, Terminated, TotalStatistics, UnarchiveCampaignRequest, UnarchiveCampaignResponse, Unarchived, UpdateComposerRequest, UpdateComposerResponse, UpdateTitleRequest, UpdateTitleResponse, UpsertAutomationTranslatorContentRequest, UpsertAutomationTranslatorContentResponse, UpsertTranslationRequest, UpsertTranslationResponse, ValidateHtmlLinksRequest, ValidateLinkRequest, WebhookIdentityType, _Array } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, ActivityType, ActivityTypeWithLiterals, ArchiveCampaignRequest, ArchiveCampaignResponse, Archived, Attachment, AutomationTranslatorContent, BaseEventMetadata, CampaignAudience, CampaignEditorType, CampaignEditorTypeEnum, CampaignEditorTypeEnumWithLiterals, CampaignRecipientDetails, CampaignSendingStateEnum, CampaignSendingStateEnumWithLiterals, CampaignStatistics, CampaignStatisticsContainer, CampaignStatusEnum, CampaignStatusEnumWithLiterals, CampaignTypeEnum, CampaignTypeEnumWithLiterals, CampaignVisibilityStatusEnum, CampaignVisibilityStatusEnumWithLiterals, Click, Composer, Contact, CountCampaignsRequest, CountCampaignsResponse, CreateCampaignRequest, CreateCampaignResponse, CreateFromTemplateRequest, CreateFromTemplateResponse, CreateFromUserTemplateRequest, CreateFromUserTemplateResponse, CreateUserTemplateRequest, CreateUserTemplateResponse, CursorPaging, Cursors, DateTime, Decimal, DefaultValues, DeleteCampaignRequest, DeleteCampaignResponse, Distributed, DistributionStatistics, DomainEvent, DomainEventBodyOneOf, EmailActivityUpdated, EmailActivityUpdatedEventTypeOneOf, EmailDistributionOptions, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EnumWithLiterals, EstimateAudienceSizeRequest, EstimateAudienceSizeResponse, EstimateFilterSizeRequest, EstimateFilterSizeResponse, EventMetadata, GetAudienceRequest, GetAutomationTranslatorContentRequest, GetAutomationTranslatorContentResponse, GetCampaignMappingRequest, GetCampaignMappingResponse, GetCampaignRequest, GetCampaignResponse, GetComposerRequest, GetComposerResponse, GetDefaultComponentsRequest, GetDefaultComponentsResponse, GetLabelsRequest, GetLabelsResponse, GetPlaceholderKeysRequest, GetPlaceholderKeysResponse, GetUsedPlaceholderKeysRequest, GetUsedPlaceholderKeysResponse, HardBounce, Html, IdentificationData, IdentificationDataIdOneOf, IdentifySenderAddressRequest, Integer, Label, LandingPageStatistics, ListCampaignsRequest, ListRecipientsRequest, ListStatisticsRequest, LookupCampaignMappingRequest, LookupCampaignMappingResponse, Map, MessageEnvelope, Money, Open, Paging, PagingMetadataV2, PauseSchedulingRequest, PauseSchedulingResponse, Paused, PlaceholderContent, PlaceholderContentEnum, PlaceholderContentValueOneOf, PlainText, PreviewCampaignRequest, PreviewCampaignResponse, PublishCampaignRequest, Published, PublishingData, RecipientsActivityEnum, ReconcileContactRequest, ReconcileContactResponse, Rejected, RejectionData, RejectionReasonEnum, RejectionReasonEnumWithLiterals, RescheduleRequest, RescheduleResponse, ResendToNonOpenersRequest, ResendToNonOpenersResponse, RestoreInfo, ReuseCampaignRequest, Scheduled, SearchContactsRequest, SearchContactsResponse, SendTestBulkRequest, SendTestBulkResponse, SendTestRequest, SendTestResponse, SoftBounce, SubscribeFromLandingPageRequest, SubscribeFromLandingPageResponse, Terminated, TotalStatistics, UnarchiveCampaignRequest, UnarchiveCampaignResponse, Unarchived, UpdateComposerRequest, UpdateComposerResponse, UpdateTitleRequest, UpdateTitleResponse, UpsertAutomationTranslatorContentRequest, UpsertAutomationTranslatorContentResponse, UpsertTranslationRequest, UpsertTranslationResponse, ValidateHtmlLinksRequest, ValidateLinkRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals, _Array } from './index.typings.js';
|
|
4
4
|
|
|
5
|
-
type CampaignNonNullablePaths = `campaignId` | `editorType` | `status` | `visibilityStatus` | `distributionStatus` | `publishingData.landingPageUrl` | `publishingData.statistics.landingPage.opened` | `publishingData.statistics.landingPage.clicked` | `publishingData.statistics.emailCampaign.delivered` | `publishingData.statistics.emailCampaign.opened` | `publishingData.statistics.emailCampaign.clicked` | `publishingData.statistics.emailCampaign.bounced` | `publishingData.statistics.emailCampaign.complained` | `publishingData.statistics.emailCampaign.notSent` | `publishingData.statistics.total.mailsSent` | `publishingData.statistics.total.opened` | `publishingData.statistics.total.clicked` | `emailSubject`;
|
|
6
5
|
declare function listStatistics$1(httpClient: HttpClient): ListStatisticsSignature;
|
|
7
6
|
interface ListStatisticsSignature {
|
|
8
7
|
/**
|
|
@@ -15,7 +14,7 @@ interface ListStatisticsSignature {
|
|
|
15
14
|
* Call List Recipients to retrieve a list of recipients and their activities related to a selected campaign.
|
|
16
15
|
* @param - IDs of the campaigns to retrieve (max 100 campaigns).
|
|
17
16
|
*/
|
|
18
|
-
(campaignIds: string[]): Promise<NonNullablePaths<ListStatisticsResponse, `statistics` | `statistics.${number}.campaignId` | `statistics.${number}.landingPage.opened` | `statistics.${number}.landingPage.clicked` | `statistics.${number}.email.delivered` | `statistics.${number}.email.opened` | `statistics.${number}.email.clicked` | `statistics.${number}.email.bounced` | `statistics.${number}.email.complained` | `statistics.${number}.email.notSent
|
|
17
|
+
(campaignIds: string[]): Promise<NonNullablePaths<ListStatisticsResponse, `statistics` | `statistics.${number}.campaignId` | `statistics.${number}.landingPage.opened` | `statistics.${number}.landingPage.clicked` | `statistics.${number}.email.delivered` | `statistics.${number}.email.opened` | `statistics.${number}.email.clicked` | `statistics.${number}.email.bounced` | `statistics.${number}.email.complained` | `statistics.${number}.email.notSent`, 5>>;
|
|
19
18
|
}
|
|
20
19
|
declare function listRecipients$1(httpClient: HttpClient): ListRecipientsSignature;
|
|
21
20
|
interface ListRecipientsSignature {
|
|
@@ -32,7 +31,7 @@ interface ListRecipientsSignature {
|
|
|
32
31
|
* @param - Email activity to filter.
|
|
33
32
|
* @param - Options to use when getting the list of recipients.
|
|
34
33
|
*/
|
|
35
|
-
(campaignId: string, activity: RecipientsActivityEnumWithLiterals, options?: ListRecipientsOptions): Promise<NonNullablePaths<ListRecipientsResponse, `recipients` | `recipients.${number}.contactId` | `recipients.${number}.emailAddress` | `recipients.${number}.contactDeleted
|
|
34
|
+
(campaignId: string, activity: RecipientsActivityEnumWithLiterals, options?: ListRecipientsOptions): Promise<NonNullablePaths<ListRecipientsResponse, `recipients` | `recipients.${number}.contactId` | `recipients.${number}.emailAddress` | `recipients.${number}.contactDeleted`, 4>>;
|
|
36
35
|
}
|
|
37
36
|
declare function getCampaign$1(httpClient: HttpClient): GetCampaignSignature;
|
|
38
37
|
interface GetCampaignSignature {
|
|
@@ -42,7 +41,7 @@ interface GetCampaignSignature {
|
|
|
42
41
|
* @param - Options to use when getting a campaign.
|
|
43
42
|
* @returns Campaign information.
|
|
44
43
|
*/
|
|
45
|
-
(campaignId: string, options?: GetCampaignOptions): Promise<NonNullablePaths<Campaign,
|
|
44
|
+
(campaignId: string, options?: GetCampaignOptions): Promise<NonNullablePaths<Campaign, `campaignId` | `editorType` | `status` | `visibilityStatus` | `distributionStatus` | `publishingData.landingPageUrl` | `publishingData.statistics.landingPage.opened` | `publishingData.statistics.landingPage.clicked` | `publishingData.statistics.emailCampaign.delivered` | `publishingData.statistics.emailCampaign.opened` | `publishingData.statistics.emailCampaign.clicked` | `publishingData.statistics.emailCampaign.bounced` | `publishingData.statistics.emailCampaign.complained` | `publishingData.statistics.emailCampaign.notSent` | `publishingData.statistics.total.mailsSent` | `publishingData.statistics.total.opened` | `publishingData.statistics.total.clicked` | `emailSubject`, 5>>;
|
|
46
45
|
}
|
|
47
46
|
declare function listCampaigns$1(httpClient: HttpClient): ListCampaignsSignature;
|
|
48
47
|
interface ListCampaignsSignature {
|
|
@@ -52,9 +51,7 @@ interface ListCampaignsSignature {
|
|
|
52
51
|
* Default sorts by `dateUpdated` in `DESC` order.
|
|
53
52
|
* @param - Options to use when getting the list of campaigns.
|
|
54
53
|
*/
|
|
55
|
-
(options?: ListCampaignsOptions): Promise<NonNullablePaths<ListCampaignsResponse, {
|
|
56
|
-
[P in CampaignNonNullablePaths]: `campaigns.${number}.${P}`;
|
|
57
|
-
}[CampaignNonNullablePaths]>>;
|
|
54
|
+
(options?: ListCampaignsOptions): Promise<NonNullablePaths<ListCampaignsResponse, `campaigns` | `campaigns.${number}.campaignId` | `campaigns.${number}.editorType` | `campaigns.${number}.status` | `campaigns.${number}.visibilityStatus` | `campaigns.${number}.distributionStatus` | `campaigns.${number}.publishingData.landingPageUrl` | `campaigns.${number}.emailSubject`, 5>>;
|
|
58
55
|
}
|
|
59
56
|
declare function publishCampaign$1(httpClient: HttpClient): PublishCampaignSignature;
|
|
60
57
|
interface PublishCampaignSignature {
|
|
@@ -65,7 +62,7 @@ interface PublishCampaignSignature {
|
|
|
65
62
|
* @param - Campaign ID
|
|
66
63
|
* @param - Options to use when publishing a campaign.
|
|
67
64
|
*/
|
|
68
|
-
(campaignId: string, options?: PublishCampaignOptions): Promise<NonNullablePaths<PublishCampaignResponse, `publishingData.landingPageUrl` | `publishingData.statistics.landingPage.opened` | `publishingData.statistics.landingPage.clicked` | `publishingData.statistics.emailCampaign.delivered` | `publishingData.statistics.emailCampaign.opened` | `publishingData.statistics.emailCampaign.clicked` | `publishingData.statistics.emailCampaign.bounced` | `publishingData.statistics.emailCampaign.complained` | `publishingData.statistics.emailCampaign.notSent` | `publishingData.statistics.total.mailsSent` | `publishingData.statistics.total.opened` | `publishingData.statistics.total.clicked
|
|
65
|
+
(campaignId: string, options?: PublishCampaignOptions): Promise<NonNullablePaths<PublishCampaignResponse, `publishingData.landingPageUrl` | `publishingData.statistics.landingPage.opened` | `publishingData.statistics.landingPage.clicked` | `publishingData.statistics.emailCampaign.delivered` | `publishingData.statistics.emailCampaign.opened` | `publishingData.statistics.emailCampaign.clicked` | `publishingData.statistics.emailCampaign.bounced` | `publishingData.statistics.emailCampaign.complained` | `publishingData.statistics.emailCampaign.notSent` | `publishingData.statistics.total.mailsSent` | `publishingData.statistics.total.opened` | `publishingData.statistics.total.clicked`, 5> & {
|
|
69
66
|
__applicationErrorsType?: PublishCampaignApplicationErrors;
|
|
70
67
|
}>;
|
|
71
68
|
}
|
|
@@ -78,7 +75,7 @@ interface SendTestSignature {
|
|
|
78
75
|
* @param - Campaign ID.
|
|
79
76
|
* @param - Options for sending a test email.
|
|
80
77
|
*/
|
|
81
|
-
(campaignId: string, options?: NonNullablePaths<SendTestOptions, `toEmailAddress
|
|
78
|
+
(campaignId: string, options?: NonNullablePaths<SendTestOptions, `toEmailAddress`, 2>): Promise<void>;
|
|
82
79
|
}
|
|
83
80
|
declare function pauseScheduling$1(httpClient: HttpClient): PauseSchedulingSignature;
|
|
84
81
|
interface PauseSchedulingSignature {
|
|
@@ -111,9 +108,7 @@ interface ReuseCampaignSignature {
|
|
|
111
108
|
* Creates a copy of an existing campaign.
|
|
112
109
|
* @param - ID of the message to be duplicated.
|
|
113
110
|
*/
|
|
114
|
-
(campaignId: string): Promise<NonNullablePaths<ReuseCampaignResponse,
|
|
115
|
-
[P in CampaignNonNullablePaths]: `campaign.${P}`;
|
|
116
|
-
}[CampaignNonNullablePaths]>>;
|
|
111
|
+
(campaignId: string): Promise<NonNullablePaths<ReuseCampaignResponse, `campaign.campaignId` | `campaign.editorType` | `campaign.status` | `campaign.visibilityStatus` | `campaign.distributionStatus` | `campaign.publishingData.landingPageUrl` | `campaign.publishingData.statistics.landingPage.opened` | `campaign.publishingData.statistics.landingPage.clicked` | `campaign.publishingData.statistics.emailCampaign.delivered` | `campaign.publishingData.statistics.emailCampaign.opened` | `campaign.publishingData.statistics.emailCampaign.clicked` | `campaign.publishingData.statistics.emailCampaign.bounced` | `campaign.publishingData.statistics.emailCampaign.complained` | `campaign.publishingData.statistics.emailCampaign.notSent` | `campaign.publishingData.statistics.total.mailsSent` | `campaign.publishingData.statistics.total.opened` | `campaign.publishingData.statistics.total.clicked` | `campaign.emailSubject`, 6>>;
|
|
117
112
|
}
|
|
118
113
|
declare function getAudience$1(httpClient: HttpClient): GetAudienceSignature;
|
|
119
114
|
interface GetAudienceSignature {
|
|
@@ -121,7 +116,7 @@ interface GetAudienceSignature {
|
|
|
121
116
|
* Retrieves the audience of a paused campaign. Use this method to retrieve all selected audience of the paused campaign at once, so they can be passed in bulk when the campaign is published again after being paused.
|
|
122
117
|
* @param - Campaign ID.
|
|
123
118
|
*/
|
|
124
|
-
(campaignId: string): Promise<NonNullablePaths<GetAudienceResponse, `audience.contactIds` | `audience.labelIds` | `audience.segmentIds` | `audience.activeContactsOnly
|
|
119
|
+
(campaignId: string): Promise<NonNullablePaths<GetAudienceResponse, `audience.contactIds` | `audience.labelIds` | `audience.segmentIds` | `audience.activeContactsOnly`, 3>>;
|
|
125
120
|
}
|
|
126
121
|
declare function identifySenderAddress$1(httpClient: HttpClient): IdentifySenderAddressSignature;
|
|
127
122
|
interface IdentifySenderAddressSignature {
|
|
@@ -129,7 +124,7 @@ interface IdentifySenderAddressSignature {
|
|
|
129
124
|
* Checks if the sender's email address will be used as the "from" address or will it be replaced and to what exactly.
|
|
130
125
|
* @param - Email address to verify.
|
|
131
126
|
*/
|
|
132
|
-
(emailAddress: string): Promise<NonNullablePaths<IdentifySenderAddressResponse, `senderAddress
|
|
127
|
+
(emailAddress: string): Promise<NonNullablePaths<IdentifySenderAddressResponse, `senderAddress`, 2>>;
|
|
133
128
|
}
|
|
134
129
|
declare function validateLink$1(httpClient: HttpClient): ValidateLinkSignature;
|
|
135
130
|
interface ValidateLinkSignature {
|
|
@@ -139,7 +134,7 @@ interface ValidateLinkSignature {
|
|
|
139
134
|
* If you provide a link as a placeholder, it's returned in a response as valid.
|
|
140
135
|
* @param - URL to validate.
|
|
141
136
|
*/
|
|
142
|
-
(url: string): Promise<NonNullablePaths<ValidateLinkResponse, `valid
|
|
137
|
+
(url: string): Promise<NonNullablePaths<ValidateLinkResponse, `valid`, 2>>;
|
|
143
138
|
}
|
|
144
139
|
declare function validateHtmlLinks$1(httpClient: HttpClient): ValidateHtmlLinksSignature;
|
|
145
140
|
interface ValidateHtmlLinksSignature {
|
|
@@ -147,7 +142,7 @@ interface ValidateHtmlLinksSignature {
|
|
|
147
142
|
* Validates links that are inside the provided HTML. This method automatically takes out links from the HTML block and validates them. Call this method when you want to check whether the link complies with the abuse rules and can be used in a campaign.
|
|
148
143
|
* @param - HTML string with links.
|
|
149
144
|
*/
|
|
150
|
-
(html: string): Promise<NonNullablePaths<ValidateHtmlLinksResponse, `blacklistedLinks
|
|
145
|
+
(html: string): Promise<NonNullablePaths<ValidateHtmlLinksResponse, `blacklistedLinks`, 2>>;
|
|
151
146
|
}
|
|
152
147
|
declare const onCampaignDistributedEvent$1: EventDefinition<CampaignDistributedEnvelope, "wix.email_marketing.v1.campaign_campaign_distributed_event">;
|
|
153
148
|
declare const onCampaignPausedEvent$1: EventDefinition<CampaignPausedEnvelope, "wix.email_marketing.v1.campaign_campaign_paused_event">;
|
|
@@ -176,38 +171,38 @@ declare const validateHtmlLinks: MaybeContext<BuildRESTFunction<typeof validateH
|
|
|
176
171
|
/**
|
|
177
172
|
* Triggered when a campaign is successfully distributed to all recipients.
|
|
178
173
|
*/
|
|
179
|
-
declare const onCampaignDistributedEvent: BuildEventDefinition<typeof onCampaignDistributedEvent$1
|
|
174
|
+
declare const onCampaignDistributedEvent: BuildEventDefinition<typeof onCampaignDistributedEvent$1> & typeof onCampaignDistributedEvent$1;
|
|
180
175
|
/**
|
|
181
176
|
* Triggered when a scheduled campaign is paused.
|
|
182
177
|
*/
|
|
183
|
-
declare const onCampaignPausedEvent: BuildEventDefinition<typeof onCampaignPausedEvent$1
|
|
178
|
+
declare const onCampaignPausedEvent: BuildEventDefinition<typeof onCampaignPausedEvent$1> & typeof onCampaignPausedEvent$1;
|
|
184
179
|
/**
|
|
185
180
|
* Triggered when a draft campaign is published.
|
|
186
181
|
*/
|
|
187
|
-
declare const onCampaignPublishedEvent: BuildEventDefinition<typeof onCampaignPublishedEvent$1
|
|
182
|
+
declare const onCampaignPublishedEvent: BuildEventDefinition<typeof onCampaignPublishedEvent$1> & typeof onCampaignPublishedEvent$1;
|
|
188
183
|
/**
|
|
189
184
|
* Triggered when a campaign is identified as abusive and rejected without sending emails to recipients.
|
|
190
185
|
*/
|
|
191
|
-
declare const onCampaignRejectedEvent: BuildEventDefinition<typeof onCampaignRejectedEvent$1
|
|
186
|
+
declare const onCampaignRejectedEvent: BuildEventDefinition<typeof onCampaignRejectedEvent$1> & typeof onCampaignRejectedEvent$1;
|
|
192
187
|
/**
|
|
193
188
|
* Triggered when a campaign is scheduled to be sent out at the specific time.
|
|
194
189
|
*/
|
|
195
|
-
declare const onCampaignScheduledEvent: BuildEventDefinition<typeof onCampaignScheduledEvent$1
|
|
190
|
+
declare const onCampaignScheduledEvent: BuildEventDefinition<typeof onCampaignScheduledEvent$1> & typeof onCampaignScheduledEvent$1;
|
|
196
191
|
/**
|
|
197
192
|
* Triggered when the mailing list isn't clean and campaign was terminated.
|
|
198
193
|
*/
|
|
199
|
-
declare const onCampaignTerminatedEvent: BuildEventDefinition<typeof onCampaignTerminatedEvent$1
|
|
194
|
+
declare const onCampaignTerminatedEvent: BuildEventDefinition<typeof onCampaignTerminatedEvent$1> & typeof onCampaignTerminatedEvent$1;
|
|
200
195
|
/**
|
|
201
196
|
* Triggered when a campaign is created.
|
|
202
197
|
*/
|
|
203
|
-
declare const onCampaignCreated: BuildEventDefinition<typeof onCampaignCreated$1
|
|
198
|
+
declare const onCampaignCreated: BuildEventDefinition<typeof onCampaignCreated$1> & typeof onCampaignCreated$1;
|
|
204
199
|
/**
|
|
205
200
|
* Triggered when a campaign is deleted.
|
|
206
201
|
*/
|
|
207
|
-
declare const onCampaignDeleted: BuildEventDefinition<typeof onCampaignDeleted$1
|
|
202
|
+
declare const onCampaignDeleted: BuildEventDefinition<typeof onCampaignDeleted$1> & typeof onCampaignDeleted$1;
|
|
208
203
|
/**
|
|
209
204
|
* Triggered when an email campaign has a new recipient activity.
|
|
210
205
|
*/
|
|
211
|
-
declare const onCampaignEmailActivityUpdated: BuildEventDefinition<typeof onCampaignEmailActivityUpdated$1
|
|
206
|
+
declare const onCampaignEmailActivityUpdated: BuildEventDefinition<typeof onCampaignEmailActivityUpdated$1> & typeof onCampaignEmailActivityUpdated$1;
|
|
212
207
|
|
|
213
|
-
export { Campaign, CampaignCreatedEnvelope, CampaignDeletedEnvelope, CampaignDistributedEnvelope, CampaignEmailActivityUpdatedEnvelope, CampaignPausedEnvelope, CampaignPublishedEnvelope, CampaignRejectedEnvelope, CampaignScheduledEnvelope, CampaignTerminatedEnvelope, GetAudienceResponse, GetCampaignOptions, IdentifySenderAddressResponse, ListCampaignsOptions, ListCampaignsResponse, ListRecipientsOptions, ListRecipientsResponse, ListStatisticsResponse, PublishCampaignOptions, PublishCampaignResponse, ReuseCampaignResponse, SendTestOptions, ValidateHtmlLinksResponse, ValidateLinkResponse, deleteCampaign, getAudience, getCampaign, identifySenderAddress, listCampaigns, listRecipients, listStatistics, onCampaignCreated, onCampaignDeleted, onCampaignDistributedEvent, onCampaignEmailActivityUpdated, onCampaignPausedEvent, onCampaignPublishedEvent, onCampaignRejectedEvent, onCampaignScheduledEvent, onCampaignTerminatedEvent, pauseScheduling, publishCampaign, reschedule, reuseCampaign, sendTest, validateHtmlLinks, validateLink };
|
|
208
|
+
export { Campaign, CampaignCreatedEnvelope, CampaignDeletedEnvelope, CampaignDistributedEnvelope, CampaignEmailActivityUpdatedEnvelope, CampaignPausedEnvelope, CampaignPublishedEnvelope, CampaignRejectedEnvelope, CampaignScheduledEnvelope, CampaignTerminatedEnvelope, GetAudienceResponse, GetCampaignOptions, IdentifySenderAddressResponse, ListCampaignsOptions, ListCampaignsResponse, ListRecipientsOptions, ListRecipientsResponse, ListStatisticsResponse, PublishCampaignApplicationErrors, PublishCampaignOptions, PublishCampaignResponse, RecipientsActivityEnumWithLiterals, ReuseCampaignResponse, SendTestOptions, ValidateHtmlLinksResponse, ValidateLinkResponse, deleteCampaign, getAudience, getCampaign, identifySenderAddress, listCampaigns, listRecipients, listStatistics, onCampaignCreated, onCampaignDeleted, onCampaignDistributedEvent, onCampaignEmailActivityUpdated, onCampaignPausedEvent, onCampaignPublishedEvent, onCampaignRejectedEvent, onCampaignScheduledEvent, onCampaignTerminatedEvent, pauseScheduling, publishCampaign, reschedule, reuseCampaign, sendTest, validateHtmlLinks, validateLink };
|
|
@@ -1333,15 +1333,29 @@ var getAudience4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(ge
|
|
|
1333
1333
|
var identifySenderAddress4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(identifySenderAddress3);
|
|
1334
1334
|
var validateLink4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(validateLink3);
|
|
1335
1335
|
var validateHtmlLinks4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(validateHtmlLinks3);
|
|
1336
|
-
var onCampaignDistributedEvent2 = (0, import_event_definition_modules.createEventModule)(
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
var
|
|
1340
|
-
|
|
1341
|
-
|
|
1336
|
+
var onCampaignDistributedEvent2 = (0, import_event_definition_modules.createEventModule)(
|
|
1337
|
+
onCampaignDistributedEvent
|
|
1338
|
+
);
|
|
1339
|
+
var onCampaignPausedEvent2 = (0, import_event_definition_modules.createEventModule)(
|
|
1340
|
+
onCampaignPausedEvent
|
|
1341
|
+
);
|
|
1342
|
+
var onCampaignPublishedEvent2 = (0, import_event_definition_modules.createEventModule)(
|
|
1343
|
+
onCampaignPublishedEvent
|
|
1344
|
+
);
|
|
1345
|
+
var onCampaignRejectedEvent2 = (0, import_event_definition_modules.createEventModule)(
|
|
1346
|
+
onCampaignRejectedEvent
|
|
1347
|
+
);
|
|
1348
|
+
var onCampaignScheduledEvent2 = (0, import_event_definition_modules.createEventModule)(
|
|
1349
|
+
onCampaignScheduledEvent
|
|
1350
|
+
);
|
|
1351
|
+
var onCampaignTerminatedEvent2 = (0, import_event_definition_modules.createEventModule)(
|
|
1352
|
+
onCampaignTerminatedEvent
|
|
1353
|
+
);
|
|
1342
1354
|
var onCampaignCreated2 = (0, import_event_definition_modules.createEventModule)(onCampaignCreated);
|
|
1343
1355
|
var onCampaignDeleted2 = (0, import_event_definition_modules.createEventModule)(onCampaignDeleted);
|
|
1344
|
-
var onCampaignEmailActivityUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
1356
|
+
var onCampaignEmailActivityUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
1357
|
+
onCampaignEmailActivityUpdated
|
|
1358
|
+
);
|
|
1345
1359
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1346
1360
|
0 && (module.exports = {
|
|
1347
1361
|
ActivityType,
|