@wix/auto_sdk_email-marketing_campaigns 1.0.31 → 1.0.32

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.
@@ -1452,6 +1452,7 @@ interface SubscribeFromLandingPageResponse {
1452
1452
  /** @format GUID */
1453
1453
  contactId?: string;
1454
1454
  }
1455
+ /** @docsIgnore */
1455
1456
  type PublishCampaignApplicationErrors = {
1456
1457
  code?: 'ALREADY_SENT';
1457
1458
  description?: string;
@@ -1707,7 +1708,6 @@ interface CampaignEmailActivityUpdatedEnvelope {
1707
1708
  * @slug email_activity_updated
1708
1709
  */
1709
1710
  declare function onCampaignEmailActivityUpdated(handler: (event: CampaignEmailActivityUpdatedEnvelope) => void | Promise<void>): void;
1710
- 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`;
1711
1711
  /**
1712
1712
  * Retrieves a list of statistics for up to 100 selected campaigns.
1713
1713
  *
@@ -1723,7 +1723,7 @@ type CampaignNonNullablePaths = `campaignId` | `editorType` | `status` | `visibi
1723
1723
  * @applicableIdentity APP
1724
1724
  * @fqn wix.emailmarketing.api.v1.CampaignStatisticsService.ListStatistics
1725
1725
  */
1726
- declare function listStatistics(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`>>;
1726
+ declare function listStatistics(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>>;
1727
1727
  /**
1728
1728
  * Retrieves a list of recipients for a selected campaign based on a specific recipient activity.
1729
1729
  *
@@ -1743,7 +1743,7 @@ declare function listStatistics(campaignIds: string[]): Promise<NonNullablePaths
1743
1743
  * @applicableIdentity APP
1744
1744
  * @fqn wix.emailmarketing.api.v1.CampaignStatisticsService.ListRecipients
1745
1745
  */
1746
- declare function listRecipients(campaignId: string, activity: RecipientsActivityEnumWithLiterals, options?: ListRecipientsOptions): Promise<NonNullablePaths<ListRecipientsResponse, `recipients` | `recipients.${number}.contactId` | `recipients.${number}.emailAddress` | `recipients.${number}.contactDeleted`>>;
1746
+ declare function listRecipients(campaignId: string, activity: RecipientsActivityEnumWithLiterals, options?: ListRecipientsOptions): Promise<NonNullablePaths<ListRecipientsResponse, `recipients` | `recipients.${number}.contactId` | `recipients.${number}.emailAddress` | `recipients.${number}.contactDeleted`, 4>>;
1747
1747
  interface ListRecipientsOptions {
1748
1748
  /** Pagination options. */
1749
1749
  paging?: CursorPaging;
@@ -1759,7 +1759,7 @@ interface ListRecipientsOptions {
1759
1759
  * @returns Campaign information.
1760
1760
  * @fqn wix.emailmarketing.api.v1.CampaignService.Get
1761
1761
  */
1762
- declare function getCampaign(campaignId: string, options?: GetCampaignOptions): Promise<NonNullablePaths<Campaign, CampaignNonNullablePaths>>;
1762
+ declare function getCampaign(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>>;
1763
1763
  interface GetCampaignOptions {
1764
1764
  /**
1765
1765
  * Whether a returned campaign should include `publishingData.statistics`.
@@ -1778,9 +1778,7 @@ interface GetCampaignOptions {
1778
1778
  * @applicableIdentity APP
1779
1779
  * @fqn wix.emailmarketing.api.v1.CampaignService.List
1780
1780
  */
1781
- declare function listCampaigns(options?: ListCampaignsOptions): Promise<NonNullablePaths<ListCampaignsResponse, {
1782
- [P in CampaignNonNullablePaths]: `campaigns.${number}.${P}`;
1783
- }[CampaignNonNullablePaths]>>;
1781
+ declare function listCampaigns(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>>;
1784
1782
  interface ListCampaignsOptions {
1785
1783
  /** Paging parameters. */
1786
1784
  paging?: Paging;
@@ -1807,7 +1805,7 @@ interface ListCampaignsOptions {
1807
1805
  * @applicableIdentity APP
1808
1806
  * @fqn wix.emailmarketing.api.v1.CampaignService.Publish
1809
1807
  */
1810
- declare function publishCampaign(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`> & {
1808
+ declare function publishCampaign(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> & {
1811
1809
  __applicationErrorsType?: PublishCampaignApplicationErrors;
1812
1810
  }>;
1813
1811
  interface PublishCampaignOptions {
@@ -1827,7 +1825,7 @@ interface PublishCampaignOptions {
1827
1825
  * @applicableIdentity APP
1828
1826
  * @fqn wix.emailmarketing.api.v1.CampaignService.SendTest
1829
1827
  */
1830
- declare function sendTest(campaignId: string, options?: NonNullablePaths<SendTestOptions, `toEmailAddress`>): Promise<void>;
1828
+ declare function sendTest(campaignId: string, options?: NonNullablePaths<SendTestOptions, `toEmailAddress`, 2>): Promise<void>;
1831
1829
  interface SendTestOptions {
1832
1830
  /**
1833
1831
  * Email subject.
@@ -1881,9 +1879,7 @@ declare function deleteCampaign(campaignId: string): Promise<void>;
1881
1879
  * @applicableIdentity APP
1882
1880
  * @fqn wix.emailmarketing.api.v1.CampaignService.Reuse
1883
1881
  */
1884
- declare function reuseCampaign(campaignId: string): Promise<NonNullablePaths<ReuseCampaignResponse, {
1885
- [P in CampaignNonNullablePaths]: `campaign.${P}`;
1886
- }[CampaignNonNullablePaths]>>;
1882
+ declare function reuseCampaign(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>>;
1887
1883
  /**
1888
1884
  * 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.
1889
1885
  * @param campaignId - Campaign ID.
@@ -1893,7 +1889,7 @@ declare function reuseCampaign(campaignId: string): Promise<NonNullablePaths<Reu
1893
1889
  * @applicableIdentity APP
1894
1890
  * @fqn wix.emailmarketing.api.v1.CampaignService.GetAudience
1895
1891
  */
1896
- declare function getAudience(campaignId: string): Promise<NonNullablePaths<GetAudienceResponse, `audience.contactIds` | `audience.labelIds` | `audience.segmentIds` | `audience.activeContactsOnly`>>;
1892
+ declare function getAudience(campaignId: string): Promise<NonNullablePaths<GetAudienceResponse, `audience.contactIds` | `audience.labelIds` | `audience.segmentIds` | `audience.activeContactsOnly`, 3>>;
1897
1893
  /**
1898
1894
  * Checks if the sender's email address will be used as the "from" address or will it be replaced and to what exactly.
1899
1895
  * @param emailAddress - Email address to verify.
@@ -1903,7 +1899,7 @@ declare function getAudience(campaignId: string): Promise<NonNullablePaths<GetAu
1903
1899
  * @applicableIdentity APP
1904
1900
  * @fqn wix.emailmarketing.api.v1.CampaignService.IdentifySenderAddress
1905
1901
  */
1906
- declare function identifySenderAddress(emailAddress: string): Promise<NonNullablePaths<IdentifySenderAddressResponse, `senderAddress`>>;
1902
+ declare function identifySenderAddress(emailAddress: string): Promise<NonNullablePaths<IdentifySenderAddressResponse, `senderAddress`, 2>>;
1907
1903
  /**
1908
1904
  * Validates any provided link. Call this method when you want to check whether the link complies with the abuse rules and can be used in a campaign.
1909
1905
  *
@@ -1915,7 +1911,7 @@ declare function identifySenderAddress(emailAddress: string): Promise<NonNullabl
1915
1911
  * @applicableIdentity APP
1916
1912
  * @fqn wix.emailmarketing.api.v1.CampaignValidationService.ValidateLink
1917
1913
  */
1918
- declare function validateLink(url: string): Promise<NonNullablePaths<ValidateLinkResponse, `valid`>>;
1914
+ declare function validateLink(url: string): Promise<NonNullablePaths<ValidateLinkResponse, `valid`, 2>>;
1919
1915
  /**
1920
1916
  * 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.
1921
1917
  * @param html - HTML string with links.
@@ -1925,6 +1921,6 @@ declare function validateLink(url: string): Promise<NonNullablePaths<ValidateLin
1925
1921
  * @applicableIdentity APP
1926
1922
  * @fqn wix.emailmarketing.api.v1.CampaignValidationService.ValidateHtmlLinks
1927
1923
  */
1928
- declare function validateHtmlLinks(html: string): Promise<NonNullablePaths<ValidateHtmlLinksResponse, `blacklistedLinks`>>;
1924
+ declare function validateHtmlLinks(html: string): Promise<NonNullablePaths<ValidateHtmlLinksResponse, `blacklistedLinks`, 2>>;
1929
1925
 
1930
1926
  export { type ActionEvent, ActivityType, type ActivityTypeWithLiterals, type ArchiveCampaignRequest, type ArchiveCampaignResponse, type Archived, type Attachment, type AutomationTranslatorContent, type BaseEventMetadata, type Campaign, type CampaignAudience, type CampaignCreatedEnvelope, type CampaignDeletedEnvelope, type CampaignDistributedEnvelope, type CampaignEditorType, CampaignEditorTypeEnum, type CampaignEditorTypeEnumWithLiterals, type CampaignEmailActivityUpdatedEnvelope, type CampaignPausedEnvelope, type CampaignPublishedEnvelope, type CampaignRecipientDetails, type CampaignRejectedEnvelope, type CampaignScheduledEnvelope, CampaignSendingStateEnum, type CampaignSendingStateEnumWithLiterals, type CampaignStatistics, type CampaignStatisticsContainer, CampaignStatusEnum, type CampaignStatusEnumWithLiterals, type CampaignTerminatedEnvelope, CampaignTypeEnum, type CampaignTypeEnumWithLiterals, CampaignVisibilityStatusEnum, type CampaignVisibilityStatusEnumWithLiterals, type Click, type Composer, type Contact, type CountCampaignsRequest, type CountCampaignsResponse, type CreateCampaignRequest, type CreateCampaignResponse, type CreateFromTemplateRequest, type CreateFromTemplateResponse, type CreateFromUserTemplateRequest, type CreateFromUserTemplateResponse, type CreateUserTemplateRequest, type CreateUserTemplateResponse, type CursorPaging, type Cursors, type DateTime, type Decimal, type DefaultValues, type DeleteCampaignRequest, type DeleteCampaignResponse, type Distributed, type DistributionStatistics, type DomainEvent, type DomainEventBodyOneOf, type EmailActivityUpdated, type EmailActivityUpdatedEventTypeOneOf, type EmailDistributionOptions, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EnumWithLiterals, type EstimateAudienceSizeRequest, type EstimateAudienceSizeResponse, type EstimateFilterSizeRequest, type EstimateFilterSizeResponse, type EventMetadata, type GetAudienceRequest, type GetAudienceResponse, type GetAutomationTranslatorContentRequest, type GetAutomationTranslatorContentResponse, type GetCampaignMappingRequest, type GetCampaignMappingResponse, type GetCampaignOptions, type GetCampaignRequest, type GetCampaignResponse, type GetComposerRequest, type GetComposerResponse, type GetDefaultComponentsRequest, type GetDefaultComponentsResponse, type GetLabelsRequest, type GetLabelsResponse, type GetPlaceholderKeysRequest, type GetPlaceholderKeysResponse, type GetUsedPlaceholderKeysRequest, type GetUsedPlaceholderKeysResponse, type HardBounce, type Html, type IdentificationData, type IdentificationDataIdOneOf, type IdentifySenderAddressRequest, type IdentifySenderAddressResponse, type Integer, type Label, type LandingPageStatistics, type ListCampaignsOptions, type ListCampaignsRequest, type ListCampaignsResponse, type ListRecipientsOptions, type ListRecipientsRequest, type ListRecipientsResponse, type ListStatisticsRequest, type ListStatisticsResponse, type LookupCampaignMappingRequest, type LookupCampaignMappingResponse, type Map, type MessageEnvelope, type Money, type Open, type Paging, type PagingMetadataV2, type PauseSchedulingRequest, type PauseSchedulingResponse, type Paused, type PlaceholderContent, type PlaceholderContentEnum, type PlaceholderContentValueOneOf, type PlainText, type PreviewCampaignRequest, type PreviewCampaignResponse, type PublishCampaignApplicationErrors, type PublishCampaignOptions, type PublishCampaignRequest, type PublishCampaignResponse, type Published, type PublishingData, RecipientsActivityEnum, type RecipientsActivityEnumWithLiterals, type ReconcileContactRequest, type ReconcileContactResponse, type Rejected, type RejectionData, RejectionReasonEnum, type RejectionReasonEnumWithLiterals, type RescheduleRequest, type RescheduleResponse, type ResendToNonOpenersRequest, type ResendToNonOpenersResponse, type RestoreInfo, type ReuseCampaignRequest, type ReuseCampaignResponse, type Scheduled, type SearchContactsRequest, type SearchContactsResponse, type SendTestBulkRequest, type SendTestBulkResponse, type SendTestOptions, type SendTestRequest, type SendTestResponse, type SoftBounce, type SubscribeFromLandingPageRequest, type SubscribeFromLandingPageResponse, type Terminated, type TotalStatistics, type UnarchiveCampaignRequest, type UnarchiveCampaignResponse, type Unarchived, type UpdateComposerRequest, type UpdateComposerResponse, type UpdateTitleRequest, type UpdateTitleResponse, type UpsertAutomationTranslatorContentRequest, type UpsertAutomationTranslatorContentResponse, type UpsertTranslationRequest, type UpsertTranslationResponse, type ValidateHtmlLinksRequest, type ValidateHtmlLinksResponse, type ValidateLinkRequest, type ValidateLinkResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type _Array, deleteCampaign, getAudience, getCampaign, identifySenderAddress, listCampaigns, listRecipients, listStatistics, onCampaignCreated, onCampaignDeleted, onCampaignDistributedEvent, onCampaignEmailActivityUpdated, onCampaignPausedEvent, onCampaignPublishedEvent, onCampaignRejectedEvent, onCampaignScheduledEvent, onCampaignTerminatedEvent, pauseScheduling, publishCampaign, reschedule, reuseCampaign, sendTest, validateHtmlLinks, validateLink };