@wix/auto_sdk_email-marketing_campaigns 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{cjs/src/email-marketing-v1-campaign-campaigns.types.d.ts → email-marketing-v1-campaign-campaigns.universal-DhdBwhrW.d.mts} +472 -544
- package/build/{internal/cjs/src/email-marketing-v1-campaign-campaigns.types.d.ts → email-marketing-v1-campaign-campaigns.universal-DhdBwhrW.d.ts} +472 -544
- package/build/index.d.mts +186 -0
- package/build/index.d.ts +186 -0
- package/build/index.js +1206 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1152 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/email-marketing-v1-campaign-campaigns.types.d.ts → email-marketing-v1-campaign-campaigns.universal-DhdBwhrW.d.mts} +472 -544
- package/build/{es/src/email-marketing-v1-campaign-campaigns.types.d.ts → internal/email-marketing-v1-campaign-campaigns.universal-DhdBwhrW.d.ts} +472 -544
- package/build/internal/index.d.mts +186 -0
- package/build/internal/index.d.ts +186 -0
- package/build/internal/index.js +1206 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1152 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +510 -0
- package/build/internal/meta.d.ts +510 -0
- package/build/internal/meta.js +713 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +675 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +510 -0
- package/build/meta.d.ts +510 -0
- package/build/meta.js +713 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +675 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.context.d.ts +0 -64
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.context.js +0 -77
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.context.js.map +0 -1
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.http.d.ts +0 -62
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.http.js +0 -559
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.http.js.map +0 -1
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.meta.d.ts +0 -44
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.meta.js +0 -294
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.meta.js.map +0 -1
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.public.d.ts +0 -155
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.public.js +0 -171
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.public.js.map +0 -1
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.types.js +0 -148
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.types.js.map +0 -1
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.universal.d.ts +0 -2039
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.universal.js +0 -805
- package/build/cjs/src/email-marketing-v1-campaign-campaigns.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/email-marketing-v1-campaign-campaigns.context.d.ts +0 -64
- package/build/es/src/email-marketing-v1-campaign-campaigns.context.js +0 -64
- package/build/es/src/email-marketing-v1-campaign-campaigns.context.js.map +0 -1
- package/build/es/src/email-marketing-v1-campaign-campaigns.http.d.ts +0 -62
- package/build/es/src/email-marketing-v1-campaign-campaigns.http.js +0 -542
- package/build/es/src/email-marketing-v1-campaign-campaigns.http.js.map +0 -1
- package/build/es/src/email-marketing-v1-campaign-campaigns.meta.d.ts +0 -44
- package/build/es/src/email-marketing-v1-campaign-campaigns.meta.js +0 -254
- package/build/es/src/email-marketing-v1-campaign-campaigns.meta.js.map +0 -1
- package/build/es/src/email-marketing-v1-campaign-campaigns.public.d.ts +0 -155
- package/build/es/src/email-marketing-v1-campaign-campaigns.public.js +0 -144
- package/build/es/src/email-marketing-v1-campaign-campaigns.public.js.map +0 -1
- package/build/es/src/email-marketing-v1-campaign-campaigns.types.js +0 -145
- package/build/es/src/email-marketing-v1-campaign-campaigns.types.js.map +0 -1
- package/build/es/src/email-marketing-v1-campaign-campaigns.universal.d.ts +0 -2039
- package/build/es/src/email-marketing-v1-campaign-campaigns.universal.js +0 -765
- package/build/es/src/email-marketing-v1-campaign-campaigns.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.context.d.ts +0 -64
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.context.js +0 -77
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.context.js.map +0 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.http.d.ts +0 -62
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.http.js +0 -559
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.http.js.map +0 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.meta.d.ts +0 -44
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.meta.js +0 -294
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.meta.js.map +0 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.public.d.ts +0 -155
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.public.js +0 -171
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.public.js.map +0 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.types.js +0 -148
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.types.js.map +0 -1
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.universal.d.ts +0 -2039
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.universal.js +0 -805
- package/build/internal/cjs/src/email-marketing-v1-campaign-campaigns.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.context.d.ts +0 -64
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.context.js +0 -64
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.context.js.map +0 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.http.d.ts +0 -62
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.http.js +0 -542
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.http.js.map +0 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.meta.d.ts +0 -44
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.meta.js +0 -254
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.meta.js.map +0 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.public.d.ts +0 -155
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.public.js +0 -144
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.public.js.map +0 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.types.js +0 -145
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.types.js.map +0 -1
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.d.ts +0 -2039
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.js +0 -765
- package/build/internal/es/src/email-marketing-v1-campaign-campaigns.universal.js.map +0 -1
|
@@ -1,2039 +0,0 @@
|
|
|
1
|
-
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
-
export interface Campaign {
|
|
3
|
-
/**
|
|
4
|
-
* Campaign ID.
|
|
5
|
-
* @format GUID
|
|
6
|
-
*/
|
|
7
|
-
campaignId?: string;
|
|
8
|
-
/** Marketing campaign title. If you don't provide the value, the title automatically gets the value of an email subject. */
|
|
9
|
-
title?: string | null;
|
|
10
|
-
/**
|
|
11
|
-
* URL of the first image after the logo.
|
|
12
|
-
* @format WEB_URL
|
|
13
|
-
*/
|
|
14
|
-
firstImageUrl?: string | null;
|
|
15
|
-
/** Editor type. */
|
|
16
|
-
editorType?: CampaignEditorTypeEnumWithLiterals;
|
|
17
|
-
/** Campaign status. */
|
|
18
|
-
status?: CampaignStatusEnumWithLiterals;
|
|
19
|
-
/** Campaign visibility status. */
|
|
20
|
-
visibilityStatus?: CampaignVisibilityStatusEnumWithLiterals;
|
|
21
|
-
/** Campaign distribution status. */
|
|
22
|
-
distributionStatus?: EnumWithLiterals;
|
|
23
|
-
/** Publishing data. The field is returned empty if the campaign isn't published. */
|
|
24
|
-
publishingData?: PublishingData;
|
|
25
|
-
/** Date and time when the campaign was created. */
|
|
26
|
-
dateCreated?: Date | null;
|
|
27
|
-
/** Date and time when the campaign was updated. */
|
|
28
|
-
dateUpdated?: Date | null;
|
|
29
|
-
/**
|
|
30
|
-
* Email subject of the campaign (initially copied from the template).
|
|
31
|
-
* @maxLength 1000
|
|
32
|
-
* @deprecated
|
|
33
|
-
*/
|
|
34
|
-
emailSubject?: string;
|
|
35
|
-
}
|
|
36
|
-
export declare enum CampaignEditorTypeEnum {
|
|
37
|
-
/** Unknown editor. This value isn't used. */
|
|
38
|
-
UNKNOWN = "UNKNOWN",
|
|
39
|
-
/** Classic web editor. */
|
|
40
|
-
WEB = "WEB",
|
|
41
|
-
/** Classic mobile editor. */
|
|
42
|
-
MOBILE = "MOBILE",
|
|
43
|
-
/** Chat (AI) based web editor. */
|
|
44
|
-
MJML = "MJML"
|
|
45
|
-
}
|
|
46
|
-
/** @enumType */
|
|
47
|
-
export type CampaignEditorTypeEnumWithLiterals = CampaignEditorTypeEnum | 'UNKNOWN' | 'WEB' | 'MOBILE' | 'MJML';
|
|
48
|
-
export declare enum CampaignStatusEnum {
|
|
49
|
-
/** Unknown campaign. This value isn't used. */
|
|
50
|
-
UNKNOWN = "UNKNOWN",
|
|
51
|
-
/** Campaign is active. */
|
|
52
|
-
ACTIVE = "ACTIVE",
|
|
53
|
-
/** Campaign is archived. */
|
|
54
|
-
ARCHIVED = "ARCHIVED",
|
|
55
|
-
/** Campaign is deleted. */
|
|
56
|
-
DELETED = "DELETED"
|
|
57
|
-
}
|
|
58
|
-
/** @enumType */
|
|
59
|
-
export type CampaignStatusEnumWithLiterals = CampaignStatusEnum | 'UNKNOWN' | 'ACTIVE' | 'ARCHIVED' | 'DELETED';
|
|
60
|
-
export declare enum CampaignVisibilityStatusEnum {
|
|
61
|
-
/** Unknown status. This value isn't used. */
|
|
62
|
-
UNKNOWN = "UNKNOWN",
|
|
63
|
-
/** Campaign isn't published yet. */
|
|
64
|
-
DRAFT = "DRAFT",
|
|
65
|
-
/** Campaign is published. */
|
|
66
|
-
PUBLISHED = "PUBLISHED",
|
|
67
|
-
/** Campaign is a template. */
|
|
68
|
-
TEMPLATE = "TEMPLATE"
|
|
69
|
-
}
|
|
70
|
-
/** @enumType */
|
|
71
|
-
export type CampaignVisibilityStatusEnumWithLiterals = CampaignVisibilityStatusEnum | 'UNKNOWN' | 'DRAFT' | 'PUBLISHED' | 'TEMPLATE';
|
|
72
|
-
export declare enum Enum {
|
|
73
|
-
/** Unknown distribution status. */
|
|
74
|
-
UNKNOWN = "UNKNOWN",
|
|
75
|
-
/** Campaign isn't distributed to recipients yet. */
|
|
76
|
-
NOT_STARTED = "NOT_STARTED",
|
|
77
|
-
/** Campaign is scheduled for distribution. */
|
|
78
|
-
SCHEDULED = "SCHEDULED",
|
|
79
|
-
/** Campaign is in screening for malicious content. */
|
|
80
|
-
IN_DETECTION = "IN_DETECTION",
|
|
81
|
-
/** Campaign is in review by the site moderators. */
|
|
82
|
-
IN_MODERATION = "IN_MODERATION",
|
|
83
|
-
/** Several recipients are selected for campaign testing, and campaign is sent out to them. */
|
|
84
|
-
SAMPLING = "SAMPLING",
|
|
85
|
-
/** Campaign is being sent out to all recipients. */
|
|
86
|
-
SENDING = "SENDING",
|
|
87
|
-
/** Campaign is rejected. */
|
|
88
|
-
REJECTED = "REJECTED",
|
|
89
|
-
/** Campaign is terminated after a failed sampling test. */
|
|
90
|
-
TERMINATED = "TERMINATED",
|
|
91
|
-
/** Campaign is fully distributed to all recipients. */
|
|
92
|
-
DISTRIBUTED = "DISTRIBUTED",
|
|
93
|
-
/** Scheduled campaign is paused. */
|
|
94
|
-
PAUSED = "PAUSED"
|
|
95
|
-
}
|
|
96
|
-
/** @enumType */
|
|
97
|
-
export type EnumWithLiterals = Enum | 'UNKNOWN' | 'NOT_STARTED' | 'SCHEDULED' | 'IN_DETECTION' | 'IN_MODERATION' | 'SAMPLING' | 'SENDING' | 'REJECTED' | 'TERMINATED' | 'DISTRIBUTED' | 'PAUSED';
|
|
98
|
-
export interface PublishingData {
|
|
99
|
-
/**
|
|
100
|
-
* Landing page URL.
|
|
101
|
-
* @format WEB_URL
|
|
102
|
-
*/
|
|
103
|
-
landingPageUrl?: string;
|
|
104
|
-
/** Marketing campaign statistics. */
|
|
105
|
-
statistics?: CampaignStatistics;
|
|
106
|
-
/** Marketing campaign publish date. */
|
|
107
|
-
datePublished?: Date | null;
|
|
108
|
-
}
|
|
109
|
-
export interface CampaignStatistics {
|
|
110
|
-
/** Landing page statistics of a marketing campaign. */
|
|
111
|
-
landingPage?: LandingPageStatistics;
|
|
112
|
-
/** Email distribution statistics of a marketing campaign. */
|
|
113
|
-
emailCampaign?: DistributionStatistics;
|
|
114
|
-
/** Combined statistics of landing page and email distribution. */
|
|
115
|
-
total?: TotalStatistics;
|
|
116
|
-
}
|
|
117
|
-
export interface LandingPageStatistics {
|
|
118
|
-
/** Number of times when a landing page was loaded or viewed. */
|
|
119
|
-
opened?: number;
|
|
120
|
-
/** Number of times a link was clicked in a landing page. */
|
|
121
|
-
clicked?: number;
|
|
122
|
-
}
|
|
123
|
-
export interface DistributionStatistics {
|
|
124
|
-
/** Number of delivered emails. */
|
|
125
|
-
delivered?: number;
|
|
126
|
-
/**
|
|
127
|
-
* Number of recipients who opened an email.
|
|
128
|
-
*
|
|
129
|
-
* If the same recipient opened the same email twice, it is counted as a one unique open.
|
|
130
|
-
*/
|
|
131
|
-
opened?: number;
|
|
132
|
-
/**
|
|
133
|
-
* Number of recipients who clicked a link in the email.
|
|
134
|
-
*
|
|
135
|
-
* If the same recipient clicked the same link twice, it is counted as a one unique click.
|
|
136
|
-
*
|
|
137
|
-
* If the same recipient clicked different links, it is counted as a one unique click.
|
|
138
|
-
*/
|
|
139
|
-
clicked?: number;
|
|
140
|
-
/** Number of emails that didn't reach the recipient. */
|
|
141
|
-
bounced?: number;
|
|
142
|
-
/** Number of recipients who reported the email as a spam. */
|
|
143
|
-
complained?: number;
|
|
144
|
-
/** Number of emails that weren't sent due to the campaign termination. */
|
|
145
|
-
notSent?: number;
|
|
146
|
-
}
|
|
147
|
-
export interface TotalStatistics {
|
|
148
|
-
/** Total number of emails sent. */
|
|
149
|
-
mailsSent?: number;
|
|
150
|
-
/** Number of landing page views and opened emails. */
|
|
151
|
-
opened?: number;
|
|
152
|
-
/** Number of landing page and email link clicks. */
|
|
153
|
-
clicked?: number;
|
|
154
|
-
}
|
|
155
|
-
export interface RejectionData {
|
|
156
|
-
rejectionReasons?: RejectionReasonEnumWithLiterals[];
|
|
157
|
-
}
|
|
158
|
-
export declare enum RejectionReasonEnum {
|
|
159
|
-
UNKNOWN = "UNKNOWN",
|
|
160
|
-
LOW_ENGAGEMENT = "LOW_ENGAGEMENT",
|
|
161
|
-
SENDER_DETAILS = "SENDER_DETAILS",
|
|
162
|
-
SPAM_TRAPS = "SPAM_TRAPS",
|
|
163
|
-
OTHER = "OTHER",
|
|
164
|
-
ADULT_SEXUAL_CONTENT = "ADULT_SEXUAL_CONTENT",
|
|
165
|
-
AFFILIATE_MARKETING = "AFFILIATE_MARKETING",
|
|
166
|
-
BETTING_OR_GAMBLING = "BETTING_OR_GAMBLING",
|
|
167
|
-
CREDIT_REPAIR_OR_DEBT_RELIEF = "CREDIT_REPAIR_OR_DEBT_RELIEF",
|
|
168
|
-
GET_RICH_QUICK_SCHEME = "GET_RICH_QUICK_SCHEME",
|
|
169
|
-
ILLEGAL_SUBSTANCES_OR_WEAPONS = "ILLEGAL_SUBSTANCES_OR_WEAPONS",
|
|
170
|
-
MISLEADING_SUBJECT_LINE = "MISLEADING_SUBJECT_LINE",
|
|
171
|
-
TRADING_OR_CRYPTOCURRENCIES = "TRADING_OR_CRYPTOCURRENCIES",
|
|
172
|
-
UNSOLICITED_CONTENT = "UNSOLICITED_CONTENT"
|
|
173
|
-
}
|
|
174
|
-
/** @enumType */
|
|
175
|
-
export type RejectionReasonEnumWithLiterals = RejectionReasonEnum | 'UNKNOWN' | 'LOW_ENGAGEMENT' | 'SENDER_DETAILS' | 'SPAM_TRAPS' | 'OTHER' | 'ADULT_SEXUAL_CONTENT' | 'AFFILIATE_MARKETING' | 'BETTING_OR_GAMBLING' | 'CREDIT_REPAIR_OR_DEBT_RELIEF' | 'GET_RICH_QUICK_SCHEME' | 'ILLEGAL_SUBSTANCES_OR_WEAPONS' | 'MISLEADING_SUBJECT_LINE' | 'TRADING_OR_CRYPTOCURRENCIES' | 'UNSOLICITED_CONTENT';
|
|
176
|
-
export declare enum CampaignSendingStateEnum {
|
|
177
|
-
/** Campaign not yet published. */
|
|
178
|
-
DRAFT = "DRAFT",
|
|
179
|
-
/** Campaign is being reviewed. */
|
|
180
|
-
REVIEW = "REVIEW",
|
|
181
|
-
/** Campaign was rejected. */
|
|
182
|
-
REJECTED = "REJECTED",
|
|
183
|
-
/** Campaign is scheduled. */
|
|
184
|
-
SCHEDULED = "SCHEDULED",
|
|
185
|
-
/** Scheduled campaign was paused. */
|
|
186
|
-
PAUSED = "PAUSED",
|
|
187
|
-
/** Campaign is published. */
|
|
188
|
-
PUBLISHED = "PUBLISHED",
|
|
189
|
-
/** Campaign is being send. */
|
|
190
|
-
SENDING = "SENDING",
|
|
191
|
-
/**
|
|
192
|
-
* Campaign was partially sent.
|
|
193
|
-
* Happens when too many recipients bounce.
|
|
194
|
-
*/
|
|
195
|
-
PARTIALLY_SENT = "PARTIALLY_SENT",
|
|
196
|
-
/** Campaign was sent. */
|
|
197
|
-
SENT = "SENT"
|
|
198
|
-
}
|
|
199
|
-
/** @enumType */
|
|
200
|
-
export type CampaignSendingStateEnumWithLiterals = CampaignSendingStateEnum | 'DRAFT' | 'REVIEW' | 'REJECTED' | 'SCHEDULED' | 'PAUSED' | 'PUBLISHED' | 'SENDING' | 'PARTIALLY_SENT' | 'SENT';
|
|
201
|
-
export declare enum CampaignTypeEnum {
|
|
202
|
-
UNKNOWN = "UNKNOWN",
|
|
203
|
-
/** Email marketing campaign. */
|
|
204
|
-
EMAIL_MARKETING = "EMAIL_MARKETING",
|
|
205
|
-
/** Mobile place invitation email. */
|
|
206
|
-
INVITATION = "INVITATION",
|
|
207
|
-
/** Automation campaign. */
|
|
208
|
-
AUTOMATION = "AUTOMATION",
|
|
209
|
-
/** Triggered email. */
|
|
210
|
-
TRIGGERED = "TRIGGERED"
|
|
211
|
-
}
|
|
212
|
-
/** @enumType */
|
|
213
|
-
export type CampaignTypeEnumWithLiterals = CampaignTypeEnum | 'UNKNOWN' | 'EMAIL_MARKETING' | 'INVITATION' | 'AUTOMATION' | 'TRIGGERED';
|
|
214
|
-
export interface ListStatisticsRequest {
|
|
215
|
-
/**
|
|
216
|
-
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
217
|
-
* @format GUID
|
|
218
|
-
* @minSize 1
|
|
219
|
-
* @maxSize 100
|
|
220
|
-
*/
|
|
221
|
-
campaignIds: string[];
|
|
222
|
-
}
|
|
223
|
-
export interface ListStatisticsResponse {
|
|
224
|
-
/** List of statistics. */
|
|
225
|
-
statistics?: CampaignStatisticsContainer[];
|
|
226
|
-
}
|
|
227
|
-
export interface CampaignStatisticsContainer {
|
|
228
|
-
/**
|
|
229
|
-
* Campaign ID.
|
|
230
|
-
* @format GUID
|
|
231
|
-
*/
|
|
232
|
-
campaignId?: string;
|
|
233
|
-
/** Landing page statistics. */
|
|
234
|
-
landingPage?: LandingPageStatistics;
|
|
235
|
-
/** Email campaign statistics. */
|
|
236
|
-
email?: DistributionStatistics;
|
|
237
|
-
}
|
|
238
|
-
export interface ListRecipientsRequest {
|
|
239
|
-
/**
|
|
240
|
-
* Campaign ID.
|
|
241
|
-
* @format GUID
|
|
242
|
-
*/
|
|
243
|
-
campaignId: string;
|
|
244
|
-
/** Email activity to filter. */
|
|
245
|
-
activity: RecipientsActivityEnumWithLiterals;
|
|
246
|
-
/** Pagination options. */
|
|
247
|
-
paging?: CursorPaging;
|
|
248
|
-
}
|
|
249
|
-
export declare enum RecipientsActivityEnum {
|
|
250
|
-
UNKNOWN = "UNKNOWN",
|
|
251
|
-
DELIVERED = "DELIVERED",
|
|
252
|
-
OPENED = "OPENED",
|
|
253
|
-
CLICKED = "CLICKED",
|
|
254
|
-
BOUNCED = "BOUNCED",
|
|
255
|
-
NOT_SENT = "NOT_SENT",
|
|
256
|
-
SENT = "SENT",
|
|
257
|
-
NOT_OPENED = "NOT_OPENED"
|
|
258
|
-
}
|
|
259
|
-
/** @enumType */
|
|
260
|
-
export type RecipientsActivityEnumWithLiterals = RecipientsActivityEnum | 'UNKNOWN' | 'DELIVERED' | 'OPENED' | 'CLICKED' | 'BOUNCED' | 'NOT_SENT' | 'SENT' | 'NOT_OPENED';
|
|
261
|
-
export interface CursorPaging {
|
|
262
|
-
/**
|
|
263
|
-
* Number of items to load.
|
|
264
|
-
* @max 1000
|
|
265
|
-
*/
|
|
266
|
-
limit?: number | null;
|
|
267
|
-
/**
|
|
268
|
-
* Pointer to the next or previous page in the list of results.
|
|
269
|
-
*
|
|
270
|
-
* You can get the relevant cursor token
|
|
271
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
272
|
-
* Not relevant for the first request.
|
|
273
|
-
* @maxLength 1000
|
|
274
|
-
*/
|
|
275
|
-
cursor?: string | null;
|
|
276
|
-
}
|
|
277
|
-
export interface ListRecipientsResponse {
|
|
278
|
-
/** List of recipients. */
|
|
279
|
-
recipients?: CampaignRecipientDetails[];
|
|
280
|
-
/** Details on the paged set of returned results. */
|
|
281
|
-
pagingMetadata?: PagingMetadataV2;
|
|
282
|
-
}
|
|
283
|
-
export interface CampaignRecipientDetails {
|
|
284
|
-
/**
|
|
285
|
-
* Contact ID.
|
|
286
|
-
* @format GUID
|
|
287
|
-
*/
|
|
288
|
-
contactId?: string;
|
|
289
|
-
/** Date and time of the last activity. */
|
|
290
|
-
lastActivityDate?: Date | null;
|
|
291
|
-
/**
|
|
292
|
-
* Primary email address of the contact.
|
|
293
|
-
* @format EMAIL
|
|
294
|
-
*/
|
|
295
|
-
emailAddress?: string;
|
|
296
|
-
/**
|
|
297
|
-
* Full name of the contact (optional).
|
|
298
|
-
* @maxLength 100
|
|
299
|
-
*/
|
|
300
|
-
fullName?: string | null;
|
|
301
|
-
/** Is this contact currently deleted from the site or not. */
|
|
302
|
-
contactDeleted?: boolean;
|
|
303
|
-
}
|
|
304
|
-
export interface PagingMetadataV2 {
|
|
305
|
-
/** Number of items returned in the response. */
|
|
306
|
-
count?: number | null;
|
|
307
|
-
/** Offset that was requested. */
|
|
308
|
-
offset?: number | null;
|
|
309
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
310
|
-
total?: number | null;
|
|
311
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
312
|
-
tooManyToCount?: boolean | null;
|
|
313
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
314
|
-
cursors?: Cursors;
|
|
315
|
-
}
|
|
316
|
-
export interface Cursors {
|
|
317
|
-
/**
|
|
318
|
-
* Cursor string pointing to the next page in the list of results.
|
|
319
|
-
* @maxLength 16000
|
|
320
|
-
*/
|
|
321
|
-
next?: string | null;
|
|
322
|
-
/**
|
|
323
|
-
* Cursor pointing to the previous page in the list of results.
|
|
324
|
-
* @maxLength 16000
|
|
325
|
-
*/
|
|
326
|
-
prev?: string | null;
|
|
327
|
-
}
|
|
328
|
-
export interface GetCampaignMappingRequest {
|
|
329
|
-
/**
|
|
330
|
-
* rule ID in automations
|
|
331
|
-
* @format GUID
|
|
332
|
-
*/
|
|
333
|
-
automationRuleId?: string;
|
|
334
|
-
/**
|
|
335
|
-
* template ID configured for the automation
|
|
336
|
-
* @format GUID
|
|
337
|
-
*/
|
|
338
|
-
templateId?: string;
|
|
339
|
-
}
|
|
340
|
-
export interface GetCampaignMappingResponse {
|
|
341
|
-
/** @format GUID */
|
|
342
|
-
campaignId?: string;
|
|
343
|
-
}
|
|
344
|
-
export interface UpsertTranslationRequest {
|
|
345
|
-
/**
|
|
346
|
-
* Campaign ID.
|
|
347
|
-
* @format GUID
|
|
348
|
-
*/
|
|
349
|
-
campaignId?: string;
|
|
350
|
-
/** Composer data. */
|
|
351
|
-
composer?: Composer;
|
|
352
|
-
/**
|
|
353
|
-
* Translation language (optional, default value "EN").
|
|
354
|
-
* @format LANGUAGE
|
|
355
|
-
*/
|
|
356
|
-
language?: string | null;
|
|
357
|
-
/**
|
|
358
|
-
* For BI event [36:1031] only (optional, default value "n/a").
|
|
359
|
-
* @format GUID
|
|
360
|
-
*/
|
|
361
|
-
automationRuleId?: string | null;
|
|
362
|
-
/** Should campaign also be published or not (default value "false"). */
|
|
363
|
-
publish?: boolean;
|
|
364
|
-
/**
|
|
365
|
-
* Campaign subject (optional).
|
|
366
|
-
* @maxLength 1000
|
|
367
|
-
*/
|
|
368
|
-
emailSubject?: string | null;
|
|
369
|
-
/**
|
|
370
|
-
* Campaign preheader (optional).
|
|
371
|
-
* @maxLength 1000
|
|
372
|
-
*/
|
|
373
|
-
emailPreheader?: string | null;
|
|
374
|
-
}
|
|
375
|
-
export interface Composer {
|
|
376
|
-
/**
|
|
377
|
-
* Internal data structure for editor/viewer to render the campaign.
|
|
378
|
-
* @maxLength 10000000
|
|
379
|
-
*/
|
|
380
|
-
composerDataJson?: string;
|
|
381
|
-
/** Default values of existing placeholders. */
|
|
382
|
-
defaultValues?: DefaultValues;
|
|
383
|
-
}
|
|
384
|
-
export interface DefaultValues {
|
|
385
|
-
/** @maxSize 500 */
|
|
386
|
-
map?: Record<string, string>;
|
|
387
|
-
}
|
|
388
|
-
export interface UpsertTranslationResponse {
|
|
389
|
-
}
|
|
390
|
-
export interface GetUsedPlaceholderKeysRequest {
|
|
391
|
-
/**
|
|
392
|
-
* Campaign ID.
|
|
393
|
-
* @format GUID
|
|
394
|
-
*/
|
|
395
|
-
campaignId?: string;
|
|
396
|
-
}
|
|
397
|
-
export interface GetUsedPlaceholderKeysResponse {
|
|
398
|
-
/**
|
|
399
|
-
* Keys of placeholders used in the automation.
|
|
400
|
-
* @maxLength 200
|
|
401
|
-
* @maxSize 300
|
|
402
|
-
*/
|
|
403
|
-
placeholderKeys?: string[];
|
|
404
|
-
}
|
|
405
|
-
export interface LookupCampaignMappingRequest {
|
|
406
|
-
/**
|
|
407
|
-
* rule ID in automations
|
|
408
|
-
* @format GUID
|
|
409
|
-
*/
|
|
410
|
-
automationRuleId?: string;
|
|
411
|
-
/**
|
|
412
|
-
* template ID configured for the automation
|
|
413
|
-
* @format GUID
|
|
414
|
-
*/
|
|
415
|
-
templateId?: string;
|
|
416
|
-
}
|
|
417
|
-
export interface LookupCampaignMappingResponse {
|
|
418
|
-
/** @format GUID */
|
|
419
|
-
campaignId?: string | null;
|
|
420
|
-
}
|
|
421
|
-
export interface UpsertAutomationTranslatorContentRequest {
|
|
422
|
-
/**
|
|
423
|
-
* Campaign ID that the content belongs to
|
|
424
|
-
* @format GUID
|
|
425
|
-
*/
|
|
426
|
-
campaignId?: string;
|
|
427
|
-
/** Automation translator content */
|
|
428
|
-
automationTranslatorContent?: AutomationTranslatorContent;
|
|
429
|
-
}
|
|
430
|
-
/** Automation Translator Content */
|
|
431
|
-
export interface AutomationTranslatorContent {
|
|
432
|
-
/**
|
|
433
|
-
* AutomationTranslatorContent ID
|
|
434
|
-
* @minLength 1
|
|
435
|
-
* @maxLength 256
|
|
436
|
-
* @immutable
|
|
437
|
-
*/
|
|
438
|
-
_id?: string;
|
|
439
|
-
/**
|
|
440
|
-
* Content that can contain multiple strings. It represents a json file, that is stored on Smartling
|
|
441
|
-
* @minLength 1
|
|
442
|
-
* @maxLength 800000
|
|
443
|
-
*/
|
|
444
|
-
json?: string;
|
|
445
|
-
}
|
|
446
|
-
export interface UpsertAutomationTranslatorContentResponse {
|
|
447
|
-
}
|
|
448
|
-
export interface GetAutomationTranslatorContentRequest {
|
|
449
|
-
/**
|
|
450
|
-
* Campaign ID
|
|
451
|
-
* @format GUID
|
|
452
|
-
*/
|
|
453
|
-
campaignId?: string;
|
|
454
|
-
}
|
|
455
|
-
export interface GetAutomationTranslatorContentResponse {
|
|
456
|
-
/** Automation translator content */
|
|
457
|
-
automationTranslatorContent?: AutomationTranslatorContent;
|
|
458
|
-
}
|
|
459
|
-
export interface SendTestBulkRequest {
|
|
460
|
-
/**
|
|
461
|
-
* Campaign ID
|
|
462
|
-
* @format GUID
|
|
463
|
-
*/
|
|
464
|
-
campaignId?: string;
|
|
465
|
-
/**
|
|
466
|
-
* Recipient email address
|
|
467
|
-
* @format EMAIL
|
|
468
|
-
*/
|
|
469
|
-
toEmailAddress?: string;
|
|
470
|
-
/** Values to replace campaign placeholders with (unique for each campaign) */
|
|
471
|
-
placeholders?: Record<string, PlaceholderContent>;
|
|
472
|
-
/**
|
|
473
|
-
* Sender from name
|
|
474
|
-
* @maxLength 100
|
|
475
|
-
*/
|
|
476
|
-
fromName?: string | null;
|
|
477
|
-
/**
|
|
478
|
-
* Reply-to email address
|
|
479
|
-
* @format EMAIL
|
|
480
|
-
*/
|
|
481
|
-
replyToEmailAddress?: string | null;
|
|
482
|
-
/**
|
|
483
|
-
* Preferred language for campaign content (optional). If not provided, a test email for each campaign language is sent
|
|
484
|
-
* @format LANGUAGE
|
|
485
|
-
*/
|
|
486
|
-
language?: string | null;
|
|
487
|
-
}
|
|
488
|
-
export interface PlaceholderContent extends PlaceholderContentValueOneOf {
|
|
489
|
-
text?: PlainText;
|
|
490
|
-
html?: Html;
|
|
491
|
-
money?: Money;
|
|
492
|
-
dateTime?: DateTime;
|
|
493
|
-
map?: Map;
|
|
494
|
-
array?: _Array;
|
|
495
|
-
enum?: PlaceholderContentEnum;
|
|
496
|
-
attachment?: Attachment;
|
|
497
|
-
integer?: Integer;
|
|
498
|
-
decimal?: Decimal;
|
|
499
|
-
}
|
|
500
|
-
/** @oneof */
|
|
501
|
-
export interface PlaceholderContentValueOneOf {
|
|
502
|
-
text?: PlainText;
|
|
503
|
-
html?: Html;
|
|
504
|
-
money?: Money;
|
|
505
|
-
dateTime?: DateTime;
|
|
506
|
-
map?: Map;
|
|
507
|
-
array?: _Array;
|
|
508
|
-
enum?: PlaceholderContentEnum;
|
|
509
|
-
attachment?: Attachment;
|
|
510
|
-
integer?: Integer;
|
|
511
|
-
decimal?: Decimal;
|
|
512
|
-
}
|
|
513
|
-
export interface PlainText {
|
|
514
|
-
text?: string;
|
|
515
|
-
}
|
|
516
|
-
export interface Html {
|
|
517
|
-
html?: string;
|
|
518
|
-
}
|
|
519
|
-
/**
|
|
520
|
-
* Money.
|
|
521
|
-
* Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
|
|
522
|
-
*/
|
|
523
|
-
export interface Money {
|
|
524
|
-
/**
|
|
525
|
-
* Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.
|
|
526
|
-
* @format DECIMAL_VALUE
|
|
527
|
-
*/
|
|
528
|
-
value?: string;
|
|
529
|
-
/**
|
|
530
|
-
* Currency code. Must be valid ISO 4217 currency code (e.g., USD).
|
|
531
|
-
* @format CURRENCY
|
|
532
|
-
*/
|
|
533
|
-
currency?: string;
|
|
534
|
-
/** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */
|
|
535
|
-
formattedValue?: string | null;
|
|
536
|
-
}
|
|
537
|
-
export interface DateTime {
|
|
538
|
-
timestamp?: Date | null;
|
|
539
|
-
/** optional time zone is the full name. example: "Asia/Jerusalem" */
|
|
540
|
-
timeZone?: string | null;
|
|
541
|
-
}
|
|
542
|
-
export interface Map {
|
|
543
|
-
variables?: Record<string, PlaceholderContent>;
|
|
544
|
-
}
|
|
545
|
-
export interface _Array {
|
|
546
|
-
items?: PlaceholderContent[];
|
|
547
|
-
}
|
|
548
|
-
export interface PlaceholderContentEnum {
|
|
549
|
-
value?: string;
|
|
550
|
-
translation?: string;
|
|
551
|
-
}
|
|
552
|
-
export interface Attachment {
|
|
553
|
-
fileName?: string;
|
|
554
|
-
downloadUrl?: string;
|
|
555
|
-
}
|
|
556
|
-
export interface Integer {
|
|
557
|
-
/** min value: -2147483648, max value: 2147483647 */
|
|
558
|
-
value?: number;
|
|
559
|
-
}
|
|
560
|
-
export interface Decimal {
|
|
561
|
-
/**
|
|
562
|
-
* when converted from Double, has a limitation of max 16 digits (including fractional part)
|
|
563
|
-
* highest possible value for precise representation is 9999999999999998 (9999999999999999 is represented as 10000000000000000)
|
|
564
|
-
* @format DECIMAL_VALUE
|
|
565
|
-
*/
|
|
566
|
-
value?: string;
|
|
567
|
-
}
|
|
568
|
-
export interface SendTestBulkResponse {
|
|
569
|
-
}
|
|
570
|
-
export interface GetCampaignRequest {
|
|
571
|
-
/**
|
|
572
|
-
* Campaign ID.
|
|
573
|
-
* @format GUID
|
|
574
|
-
*/
|
|
575
|
-
campaignId: string;
|
|
576
|
-
/**
|
|
577
|
-
* Whether a returned campaign should include `publishingData.statistics`.
|
|
578
|
-
*
|
|
579
|
-
* Default: `false`.
|
|
580
|
-
*/
|
|
581
|
-
optionIncludeStatistics?: boolean;
|
|
582
|
-
}
|
|
583
|
-
export interface GetCampaignResponse {
|
|
584
|
-
/** Campaign information. */
|
|
585
|
-
campaign?: Campaign;
|
|
586
|
-
}
|
|
587
|
-
export interface ListCampaignsRequest {
|
|
588
|
-
/** Paging parameters. */
|
|
589
|
-
paging?: Paging;
|
|
590
|
-
/**
|
|
591
|
-
* Whether to include `publishingData.statistics` in the returned campaign object.
|
|
592
|
-
*
|
|
593
|
-
* Default: `false`.
|
|
594
|
-
*/
|
|
595
|
-
optionIncludeStatistics?: boolean;
|
|
596
|
-
/** Campaign status. */
|
|
597
|
-
statuses?: CampaignStatusEnumWithLiterals[];
|
|
598
|
-
/** Visibility status. */
|
|
599
|
-
visibilityStatuses?: CampaignVisibilityStatusEnumWithLiterals[];
|
|
600
|
-
}
|
|
601
|
-
export interface Paging {
|
|
602
|
-
/** Number of items to load. */
|
|
603
|
-
limit?: number | null;
|
|
604
|
-
/** Number of items to skip in the current sort order. */
|
|
605
|
-
offset?: number | null;
|
|
606
|
-
}
|
|
607
|
-
export interface ListCampaignsResponse {
|
|
608
|
-
/** Paging parameters. */
|
|
609
|
-
paging?: Paging;
|
|
610
|
-
/** List of campaigns. */
|
|
611
|
-
campaigns?: Campaign[];
|
|
612
|
-
}
|
|
613
|
-
export interface CountCampaignsRequest {
|
|
614
|
-
/** Since when should we start counting (optional, default value "1970-01-01T00:00:00.000Z") */
|
|
615
|
-
dateFrom?: Date | null;
|
|
616
|
-
}
|
|
617
|
-
export interface CountCampaignsResponse {
|
|
618
|
-
/** "drafts" + "scheduled" + "published" (excluding "archived"). */
|
|
619
|
-
total?: number;
|
|
620
|
-
/** Non published (draft) campaigns. */
|
|
621
|
-
drafts?: number;
|
|
622
|
-
/** Campaigns scheduled for publishing in the future. */
|
|
623
|
-
scheduled?: number;
|
|
624
|
-
/** Campaigns published or sent. */
|
|
625
|
-
published?: number;
|
|
626
|
-
/** Campaigns moved to archive (regardless of the status). */
|
|
627
|
-
archived?: number;
|
|
628
|
-
}
|
|
629
|
-
export interface CreateFromTemplateRequest {
|
|
630
|
-
/**
|
|
631
|
-
* ID of the template to fork.
|
|
632
|
-
* @format GUID
|
|
633
|
-
*/
|
|
634
|
-
templateId?: string;
|
|
635
|
-
/** Values to replace template placeholders with (unique for each template). */
|
|
636
|
-
variables?: Record<string, string>;
|
|
637
|
-
/** Campaign editor type. */
|
|
638
|
-
campaignEditorType?: CampaignEditorTypeEnumWithLiterals;
|
|
639
|
-
}
|
|
640
|
-
export interface CreateFromTemplateResponse {
|
|
641
|
-
/** Campaign information. */
|
|
642
|
-
campaign?: Campaign;
|
|
643
|
-
}
|
|
644
|
-
export interface CreateUserTemplateRequest {
|
|
645
|
-
/**
|
|
646
|
-
* ID of campaign to create template from.
|
|
647
|
-
* @format GUID
|
|
648
|
-
*/
|
|
649
|
-
campaignId?: string;
|
|
650
|
-
/**
|
|
651
|
-
* Title of template.
|
|
652
|
-
* @maxLength 1000
|
|
653
|
-
*/
|
|
654
|
-
title?: string | null;
|
|
655
|
-
}
|
|
656
|
-
export interface CreateUserTemplateResponse {
|
|
657
|
-
/** Created user template information. */
|
|
658
|
-
campaign?: Campaign;
|
|
659
|
-
}
|
|
660
|
-
export interface CreateFromUserTemplateRequest {
|
|
661
|
-
/**
|
|
662
|
-
* ID of the user template campaign to use.
|
|
663
|
-
* @format GUID
|
|
664
|
-
*/
|
|
665
|
-
campaignId?: string;
|
|
666
|
-
}
|
|
667
|
-
export interface CreateFromUserTemplateResponse {
|
|
668
|
-
/** Campaign created from user template. */
|
|
669
|
-
campaign?: Campaign;
|
|
670
|
-
}
|
|
671
|
-
export interface PublishCampaignRequest {
|
|
672
|
-
/**
|
|
673
|
-
* Campaign ID
|
|
674
|
-
* @format GUID
|
|
675
|
-
*/
|
|
676
|
-
campaignId: string;
|
|
677
|
-
/** Email distribution options. Pass this object in the request if you need to distribute your marketing campaign with emails. */
|
|
678
|
-
emailDistributionOptions?: EmailDistributionOptions;
|
|
679
|
-
}
|
|
680
|
-
export interface EmailDistributionOptions {
|
|
681
|
-
/**
|
|
682
|
-
* The subject line for the email campaign, which appears in recipients’ inboxes.
|
|
683
|
-
* @maxLength 1000
|
|
684
|
-
*/
|
|
685
|
-
emailSubject?: string | null;
|
|
686
|
-
/** Contact label IDs. */
|
|
687
|
-
labelIds?: string[];
|
|
688
|
-
/**
|
|
689
|
-
* IDs of contacts to whom to send out the campaign.
|
|
690
|
-
* @format GUID
|
|
691
|
-
*/
|
|
692
|
-
contactIds?: string[];
|
|
693
|
-
/**
|
|
694
|
-
* Filter ids to send campaign to (unsupported).
|
|
695
|
-
* @format GUID
|
|
696
|
-
* @deprecated Filter ids to send campaign to (unsupported).
|
|
697
|
-
* @replacedBy contacts_filter
|
|
698
|
-
* @targetRemovalDate 2023-10-10
|
|
699
|
-
*/
|
|
700
|
-
filterIds?: string[];
|
|
701
|
-
/** Campaign scheduling. You can schedule the campaign no less than 30 minutes until the sending time. [Upgrade your plan](https://support.wix.com/en/article/email-marketing-upgrading-your-email-marketing-plan) to schedule the campaign. */
|
|
702
|
-
sendAt?: Date | null;
|
|
703
|
-
}
|
|
704
|
-
export interface PublishCampaignResponse {
|
|
705
|
-
/** Publishing info. */
|
|
706
|
-
publishingData?: PublishingData;
|
|
707
|
-
}
|
|
708
|
-
export interface Rejected {
|
|
709
|
-
/**
|
|
710
|
-
* ID of the campaign that was rejected.
|
|
711
|
-
* @format GUID
|
|
712
|
-
*/
|
|
713
|
-
campaignId?: string;
|
|
714
|
-
}
|
|
715
|
-
export interface Published {
|
|
716
|
-
/**
|
|
717
|
-
* ID of the campaign that was published.
|
|
718
|
-
* @format GUID
|
|
719
|
-
*/
|
|
720
|
-
campaignId?: string;
|
|
721
|
-
/**
|
|
722
|
-
* Campaign landing page URL.
|
|
723
|
-
* @format WEB_URL
|
|
724
|
-
* @maxLength 2048
|
|
725
|
-
*/
|
|
726
|
-
landingPageUrl?: string;
|
|
727
|
-
/** Estimation of recipient list size (optional). */
|
|
728
|
-
mailingListSizeEstimate?: number | null;
|
|
729
|
-
}
|
|
730
|
-
export interface Terminated {
|
|
731
|
-
/**
|
|
732
|
-
* ID of the campaign that was terminated.
|
|
733
|
-
* @format GUID
|
|
734
|
-
*/
|
|
735
|
-
campaignId?: string;
|
|
736
|
-
}
|
|
737
|
-
export interface Distributed {
|
|
738
|
-
/**
|
|
739
|
-
* ID of the campaign that was distributed.
|
|
740
|
-
* @format GUID
|
|
741
|
-
*/
|
|
742
|
-
campaignId?: string;
|
|
743
|
-
}
|
|
744
|
-
export interface EmailActivityUpdated extends EmailActivityUpdatedEventTypeOneOf {
|
|
745
|
-
/** Recipient clicked on an email. */
|
|
746
|
-
click?: Click;
|
|
747
|
-
/** Recipient opened an email. */
|
|
748
|
-
open?: Open;
|
|
749
|
-
/**
|
|
750
|
-
* Email soft bounced when sent to a recipient.
|
|
751
|
-
*
|
|
752
|
-
* Indicates a temporary issue sending your email. For example, the email server receiving the email is under a heavy load.
|
|
753
|
-
* For soft bounces, you should wait and try again at a later time.
|
|
754
|
-
*/
|
|
755
|
-
softBounce?: SoftBounce;
|
|
756
|
-
/**
|
|
757
|
-
* Email hard bounced when sent to a recipient.
|
|
758
|
-
*
|
|
759
|
-
* Indicates a permanent error sending your email. For example, the email address does not exist.
|
|
760
|
-
*/
|
|
761
|
-
hardBounce?: HardBounce;
|
|
762
|
-
/**
|
|
763
|
-
* Campaign ID.
|
|
764
|
-
* @format GUID
|
|
765
|
-
*/
|
|
766
|
-
campaignId?: string;
|
|
767
|
-
/**
|
|
768
|
-
* [Contact ID](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4/contact-object) of a recipient.
|
|
769
|
-
* @format GUID
|
|
770
|
-
*/
|
|
771
|
-
contactId?: string;
|
|
772
|
-
/**
|
|
773
|
-
* Email address of a recipient.
|
|
774
|
-
* @format EMAIL
|
|
775
|
-
*/
|
|
776
|
-
recipientEmailAddress?: string;
|
|
777
|
-
/** Date and time of the event. */
|
|
778
|
-
timestamp?: Date | null;
|
|
779
|
-
activityType?: ActivityTypeWithLiterals;
|
|
780
|
-
/**
|
|
781
|
-
* email metadata
|
|
782
|
-
* @maxSize 20
|
|
783
|
-
*/
|
|
784
|
-
metadata?: Record<string, string>;
|
|
785
|
-
}
|
|
786
|
-
/** @oneof */
|
|
787
|
-
export interface EmailActivityUpdatedEventTypeOneOf {
|
|
788
|
-
/** Recipient clicked on an email. */
|
|
789
|
-
click?: Click;
|
|
790
|
-
/** Recipient opened an email. */
|
|
791
|
-
open?: Open;
|
|
792
|
-
/**
|
|
793
|
-
* Email soft bounced when sent to a recipient.
|
|
794
|
-
*
|
|
795
|
-
* Indicates a temporary issue sending your email. For example, the email server receiving the email is under a heavy load.
|
|
796
|
-
* For soft bounces, you should wait and try again at a later time.
|
|
797
|
-
*/
|
|
798
|
-
softBounce?: SoftBounce;
|
|
799
|
-
/**
|
|
800
|
-
* Email hard bounced when sent to a recipient.
|
|
801
|
-
*
|
|
802
|
-
* Indicates a permanent error sending your email. For example, the email address does not exist.
|
|
803
|
-
*/
|
|
804
|
-
hardBounce?: HardBounce;
|
|
805
|
-
}
|
|
806
|
-
/** The type of email activity that triggered the webhook. */
|
|
807
|
-
export declare enum ActivityType {
|
|
808
|
-
/** Triggered when an email is delivered to the recipient. */
|
|
809
|
-
DELIVERY = "DELIVERY",
|
|
810
|
-
/** Triggered when the recipient clicks on a URL inside of the email. */
|
|
811
|
-
CLICK = "CLICK",
|
|
812
|
-
/** Triggered when the email is opened by the recipient. */
|
|
813
|
-
OPEN = "OPEN",
|
|
814
|
-
/** Triggered when the email is bounced softly. */
|
|
815
|
-
SOFT_BOUNCE = "SOFT_BOUNCE",
|
|
816
|
-
/** Triggered when the email bounces. */
|
|
817
|
-
HARD_BOUNCED = "HARD_BOUNCED"
|
|
818
|
-
}
|
|
819
|
-
/** @enumType */
|
|
820
|
-
export type ActivityTypeWithLiterals = ActivityType | 'DELIVERY' | 'CLICK' | 'OPEN' | 'SOFT_BOUNCE' | 'HARD_BOUNCED';
|
|
821
|
-
export interface Click {
|
|
822
|
-
/** URL that was clicked. */
|
|
823
|
-
url?: string;
|
|
824
|
-
/** Browser user agent of the recipient. */
|
|
825
|
-
userAgent?: string;
|
|
826
|
-
}
|
|
827
|
-
export interface Open {
|
|
828
|
-
/** Browser user agent of the recipient. */
|
|
829
|
-
userAgent?: string;
|
|
830
|
-
}
|
|
831
|
-
export interface SoftBounce {
|
|
832
|
-
/** Reason the email soft bounced. */
|
|
833
|
-
reason?: string;
|
|
834
|
-
}
|
|
835
|
-
export interface HardBounce {
|
|
836
|
-
/** Reason the email hard bounced. */
|
|
837
|
-
reason?: string;
|
|
838
|
-
}
|
|
839
|
-
export interface Scheduled {
|
|
840
|
-
/**
|
|
841
|
-
* ID of the campaign that was scheduled.
|
|
842
|
-
* @format GUID
|
|
843
|
-
*/
|
|
844
|
-
campaignId?: string;
|
|
845
|
-
/** The timestamp campaign is scheduled for. */
|
|
846
|
-
sendAt?: Date | null;
|
|
847
|
-
/** Shows if this is a rescheduling of previously scheduled campaign. */
|
|
848
|
-
rescheduled?: boolean;
|
|
849
|
-
}
|
|
850
|
-
export interface SendTestRequest {
|
|
851
|
-
/**
|
|
852
|
-
* Campaign ID.
|
|
853
|
-
* @format GUID
|
|
854
|
-
*/
|
|
855
|
-
campaignId: string;
|
|
856
|
-
/**
|
|
857
|
-
* Email subject.
|
|
858
|
-
* @maxLength 1000
|
|
859
|
-
*/
|
|
860
|
-
emailSubject?: string | null;
|
|
861
|
-
/**
|
|
862
|
-
* Recipient email address.
|
|
863
|
-
* @format EMAIL
|
|
864
|
-
*/
|
|
865
|
-
toEmailAddress: string;
|
|
866
|
-
}
|
|
867
|
-
export interface SendTestResponse {
|
|
868
|
-
}
|
|
869
|
-
export interface PauseSchedulingRequest {
|
|
870
|
-
/**
|
|
871
|
-
* Campaign ID.
|
|
872
|
-
* @format GUID
|
|
873
|
-
*/
|
|
874
|
-
campaignId: string;
|
|
875
|
-
}
|
|
876
|
-
export interface PauseSchedulingResponse {
|
|
877
|
-
}
|
|
878
|
-
export interface Paused {
|
|
879
|
-
/**
|
|
880
|
-
* ID of the campaign that was paused.
|
|
881
|
-
* @format GUID
|
|
882
|
-
*/
|
|
883
|
-
campaignId?: string;
|
|
884
|
-
}
|
|
885
|
-
export interface RescheduleRequest {
|
|
886
|
-
/**
|
|
887
|
-
* ID of the campaign to reschedule.
|
|
888
|
-
* @format GUID
|
|
889
|
-
*/
|
|
890
|
-
campaignId: string;
|
|
891
|
-
/** New time for sending out the campaign. */
|
|
892
|
-
sendAt: Date | null;
|
|
893
|
-
}
|
|
894
|
-
export interface RescheduleResponse {
|
|
895
|
-
}
|
|
896
|
-
export interface ArchiveCampaignRequest {
|
|
897
|
-
/**
|
|
898
|
-
* ID of the campaign to archive.
|
|
899
|
-
* @format GUID
|
|
900
|
-
*/
|
|
901
|
-
campaignId?: string;
|
|
902
|
-
}
|
|
903
|
-
export interface ArchiveCampaignResponse {
|
|
904
|
-
}
|
|
905
|
-
/** Sent when status of the campaign is changed from "Active" to "Archived" */
|
|
906
|
-
export interface Archived {
|
|
907
|
-
/**
|
|
908
|
-
* ID of the campaign that was archived.
|
|
909
|
-
* @format GUID
|
|
910
|
-
*/
|
|
911
|
-
campaignId?: string;
|
|
912
|
-
}
|
|
913
|
-
export interface UnarchiveCampaignRequest {
|
|
914
|
-
/**
|
|
915
|
-
* ID of the campaign to unarchive.
|
|
916
|
-
* @format GUID
|
|
917
|
-
*/
|
|
918
|
-
campaignId?: string;
|
|
919
|
-
}
|
|
920
|
-
export interface UnarchiveCampaignResponse {
|
|
921
|
-
}
|
|
922
|
-
/** Sent when status of the campaign is changed from "Archived" to "Active" */
|
|
923
|
-
export interface Unarchived {
|
|
924
|
-
/**
|
|
925
|
-
* ID of the campaign whose status was changed to active.
|
|
926
|
-
* @format GUID
|
|
927
|
-
*/
|
|
928
|
-
campaignId?: string;
|
|
929
|
-
}
|
|
930
|
-
export interface UpdateTitleRequest {
|
|
931
|
-
/**
|
|
932
|
-
* ID of the campaign to change title of.
|
|
933
|
-
* @format GUID
|
|
934
|
-
*/
|
|
935
|
-
campaignId?: string;
|
|
936
|
-
/**
|
|
937
|
-
* New title to set.
|
|
938
|
-
* @maxLength 1000
|
|
939
|
-
*/
|
|
940
|
-
title?: string;
|
|
941
|
-
}
|
|
942
|
-
export interface UpdateTitleResponse {
|
|
943
|
-
}
|
|
944
|
-
export interface DeleteCampaignRequest {
|
|
945
|
-
/**
|
|
946
|
-
* Campaign ID.
|
|
947
|
-
* @format GUID
|
|
948
|
-
*/
|
|
949
|
-
campaignId: string;
|
|
950
|
-
}
|
|
951
|
-
export interface DeleteCampaignResponse {
|
|
952
|
-
}
|
|
953
|
-
export interface ReuseCampaignRequest {
|
|
954
|
-
/**
|
|
955
|
-
* ID of the message to be duplicated.
|
|
956
|
-
* @format GUID
|
|
957
|
-
*/
|
|
958
|
-
campaignId: string;
|
|
959
|
-
}
|
|
960
|
-
export interface ReuseCampaignResponse {
|
|
961
|
-
/** Campaign information. */
|
|
962
|
-
campaign?: Campaign;
|
|
963
|
-
}
|
|
964
|
-
export interface PreviewCampaignRequest {
|
|
965
|
-
/**
|
|
966
|
-
* ID of the campaign to preview.
|
|
967
|
-
* @format GUID
|
|
968
|
-
*/
|
|
969
|
-
campaignId?: string;
|
|
970
|
-
/**
|
|
971
|
-
* Preferred language for campaign content (optional).
|
|
972
|
-
* @format LANGUAGE
|
|
973
|
-
*/
|
|
974
|
-
language?: string | null;
|
|
975
|
-
/** Values to replace campaign placeholders with (unique for each campaign). */
|
|
976
|
-
placeholders?: Record<string, PlaceholderContent>;
|
|
977
|
-
/** Whether to hide the ad (default value "false"). */
|
|
978
|
-
forceHideAd?: boolean;
|
|
979
|
-
}
|
|
980
|
-
export interface PreviewCampaignResponse {
|
|
981
|
-
/** Preview HTML. */
|
|
982
|
-
html?: string;
|
|
983
|
-
}
|
|
984
|
-
export interface GetComposerRequest {
|
|
985
|
-
/**
|
|
986
|
-
* Campaign ID.
|
|
987
|
-
* @format GUID
|
|
988
|
-
*/
|
|
989
|
-
campaignId?: string;
|
|
990
|
-
/**
|
|
991
|
-
* Preferred language for campaign content (optional).
|
|
992
|
-
* @format LANGUAGE
|
|
993
|
-
*/
|
|
994
|
-
language?: string | null;
|
|
995
|
-
}
|
|
996
|
-
export interface GetComposerResponse {
|
|
997
|
-
/** Composer. */
|
|
998
|
-
composer?: Composer;
|
|
999
|
-
/**
|
|
1000
|
-
* Campaign subject.
|
|
1001
|
-
* @maxLength 1000
|
|
1002
|
-
*/
|
|
1003
|
-
emailSubject?: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* Campaign preheader (optional).
|
|
1006
|
-
* @maxLength 1000
|
|
1007
|
-
*/
|
|
1008
|
-
emailPreheader?: string | null;
|
|
1009
|
-
}
|
|
1010
|
-
export interface UpdateComposerRequest {
|
|
1011
|
-
/**
|
|
1012
|
-
* Campaign ID.
|
|
1013
|
-
* @format GUID
|
|
1014
|
-
*/
|
|
1015
|
-
campaignId?: string;
|
|
1016
|
-
/** Campaign composer. */
|
|
1017
|
-
composer?: Composer;
|
|
1018
|
-
/** Campaign editor type (optional, default "WEB"). */
|
|
1019
|
-
campaignEditorType?: CampaignEditorType;
|
|
1020
|
-
/**
|
|
1021
|
-
* Campaign subject (optional).
|
|
1022
|
-
* @maxLength 1000
|
|
1023
|
-
*/
|
|
1024
|
-
emailSubject?: string | null;
|
|
1025
|
-
/**
|
|
1026
|
-
* Campaign preheader (optional).
|
|
1027
|
-
* @maxLength 1000
|
|
1028
|
-
*/
|
|
1029
|
-
emailPreheader?: string | null;
|
|
1030
|
-
}
|
|
1031
|
-
/** Editor type. */
|
|
1032
|
-
export interface CampaignEditorType {
|
|
1033
|
-
value?: CampaignEditorTypeEnumWithLiterals;
|
|
1034
|
-
}
|
|
1035
|
-
export interface UpdateComposerResponse {
|
|
1036
|
-
}
|
|
1037
|
-
export interface CreateCampaignRequest {
|
|
1038
|
-
/** Campaign composer. */
|
|
1039
|
-
composer?: Composer;
|
|
1040
|
-
/** Campaign editor type (optional, default "WEB"). */
|
|
1041
|
-
campaignEditorType?: CampaignEditorType;
|
|
1042
|
-
/**
|
|
1043
|
-
* Campaign subject (optional).
|
|
1044
|
-
* @maxLength 1000
|
|
1045
|
-
*/
|
|
1046
|
-
emailSubject?: string | null;
|
|
1047
|
-
/**
|
|
1048
|
-
* Campaign preheader (optional).
|
|
1049
|
-
* @maxLength 1000
|
|
1050
|
-
*/
|
|
1051
|
-
emailPreheader?: string | null;
|
|
1052
|
-
}
|
|
1053
|
-
export interface CreateCampaignResponse {
|
|
1054
|
-
/** Campaign information. */
|
|
1055
|
-
campaign?: Campaign;
|
|
1056
|
-
}
|
|
1057
|
-
export interface ResendToNonOpenersRequest {
|
|
1058
|
-
/**
|
|
1059
|
-
* ID of the campaign to resend.
|
|
1060
|
-
* @format GUID
|
|
1061
|
-
*/
|
|
1062
|
-
campaignId?: string;
|
|
1063
|
-
/**
|
|
1064
|
-
* Subject line to use with the resent copy of campaign.
|
|
1065
|
-
* @maxLength 1000
|
|
1066
|
-
*/
|
|
1067
|
-
emailSubject?: string | null;
|
|
1068
|
-
}
|
|
1069
|
-
export interface ResendToNonOpenersResponse {
|
|
1070
|
-
/**
|
|
1071
|
-
* ID of the newly created and resent campaign.
|
|
1072
|
-
* @format GUID
|
|
1073
|
-
*/
|
|
1074
|
-
campaignId?: string;
|
|
1075
|
-
}
|
|
1076
|
-
export interface GetAudienceRequest {
|
|
1077
|
-
/**
|
|
1078
|
-
* Campaign ID.
|
|
1079
|
-
* @format GUID
|
|
1080
|
-
*/
|
|
1081
|
-
campaignId: string;
|
|
1082
|
-
}
|
|
1083
|
-
export interface GetAudienceResponse {
|
|
1084
|
-
/** Campaign audience. */
|
|
1085
|
-
audience?: CampaignAudience;
|
|
1086
|
-
}
|
|
1087
|
-
export interface CampaignAudience {
|
|
1088
|
-
/**
|
|
1089
|
-
* IDs of contacts to whom to send the campaign.
|
|
1090
|
-
* @format GUID
|
|
1091
|
-
* @maxSize 100
|
|
1092
|
-
*/
|
|
1093
|
-
contactIds?: string[];
|
|
1094
|
-
/**
|
|
1095
|
-
* Labels IDs.
|
|
1096
|
-
* @maxLength 100
|
|
1097
|
-
* @maxSize 20
|
|
1098
|
-
*/
|
|
1099
|
-
labelIds?: string[];
|
|
1100
|
-
/**
|
|
1101
|
-
* Segment IDs.
|
|
1102
|
-
* @format GUID
|
|
1103
|
-
* @maxSize 20
|
|
1104
|
-
*/
|
|
1105
|
-
segmentIds?: string[];
|
|
1106
|
-
/** Filter for contacts in JSON format. */
|
|
1107
|
-
contactsFilter?: Record<string, any> | null;
|
|
1108
|
-
/**
|
|
1109
|
-
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1110
|
-
* @minLength 1
|
|
1111
|
-
* @maxLength 100
|
|
1112
|
-
*/
|
|
1113
|
-
contactsSearchTerm?: string | null;
|
|
1114
|
-
/** Should "inactive" contacts be excluded or not. */
|
|
1115
|
-
activeContactsOnly?: boolean;
|
|
1116
|
-
}
|
|
1117
|
-
export interface IdentifySenderAddressRequest {
|
|
1118
|
-
/**
|
|
1119
|
-
* Email address to verify.
|
|
1120
|
-
* @format EMAIL
|
|
1121
|
-
* @minLength 6
|
|
1122
|
-
* @maxLength 254
|
|
1123
|
-
*/
|
|
1124
|
-
emailAddress: string;
|
|
1125
|
-
}
|
|
1126
|
-
export interface IdentifySenderAddressResponse {
|
|
1127
|
-
/**
|
|
1128
|
-
* Actual "from" address that will be used for sending emails.
|
|
1129
|
-
* @format EMAIL
|
|
1130
|
-
* @minLength 6
|
|
1131
|
-
* @maxLength 254
|
|
1132
|
-
*/
|
|
1133
|
-
senderAddress?: string;
|
|
1134
|
-
}
|
|
1135
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
1136
|
-
createdEvent?: EntityCreatedEvent;
|
|
1137
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1138
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1139
|
-
actionEvent?: ActionEvent;
|
|
1140
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1141
|
-
_id?: string;
|
|
1142
|
-
/**
|
|
1143
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1144
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1145
|
-
*/
|
|
1146
|
-
entityFqdn?: string;
|
|
1147
|
-
/**
|
|
1148
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1149
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1150
|
-
*/
|
|
1151
|
-
slug?: string;
|
|
1152
|
-
/** ID of the entity associated with the event. */
|
|
1153
|
-
entityId?: string;
|
|
1154
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1155
|
-
eventTime?: Date | null;
|
|
1156
|
-
/**
|
|
1157
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
1158
|
-
* (for example, GDPR).
|
|
1159
|
-
*/
|
|
1160
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
1161
|
-
/** If present, indicates the action that triggered the event. */
|
|
1162
|
-
originatedFrom?: string | null;
|
|
1163
|
-
/**
|
|
1164
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1165
|
-
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1166
|
-
*/
|
|
1167
|
-
entityEventSequence?: string | null;
|
|
1168
|
-
}
|
|
1169
|
-
/** @oneof */
|
|
1170
|
-
export interface DomainEventBodyOneOf {
|
|
1171
|
-
createdEvent?: EntityCreatedEvent;
|
|
1172
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1173
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1174
|
-
actionEvent?: ActionEvent;
|
|
1175
|
-
}
|
|
1176
|
-
export interface EntityCreatedEvent {
|
|
1177
|
-
entity?: string;
|
|
1178
|
-
}
|
|
1179
|
-
export interface RestoreInfo {
|
|
1180
|
-
deletedDate?: Date | null;
|
|
1181
|
-
}
|
|
1182
|
-
export interface EntityUpdatedEvent {
|
|
1183
|
-
/**
|
|
1184
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1185
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1186
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1187
|
-
*/
|
|
1188
|
-
currentEntity?: string;
|
|
1189
|
-
}
|
|
1190
|
-
export interface EntityDeletedEvent {
|
|
1191
|
-
/** Entity that was deleted. */
|
|
1192
|
-
deletedEntity?: string | null;
|
|
1193
|
-
}
|
|
1194
|
-
export interface ActionEvent {
|
|
1195
|
-
body?: string;
|
|
1196
|
-
}
|
|
1197
|
-
export interface MessageEnvelope {
|
|
1198
|
-
/**
|
|
1199
|
-
* App instance ID.
|
|
1200
|
-
* @format GUID
|
|
1201
|
-
*/
|
|
1202
|
-
instanceId?: string | null;
|
|
1203
|
-
/**
|
|
1204
|
-
* Event type.
|
|
1205
|
-
* @maxLength 150
|
|
1206
|
-
*/
|
|
1207
|
-
eventType?: string;
|
|
1208
|
-
/** The identification type and identity data. */
|
|
1209
|
-
identity?: IdentificationData;
|
|
1210
|
-
/** Stringify payload. */
|
|
1211
|
-
data?: string;
|
|
1212
|
-
}
|
|
1213
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1214
|
-
/**
|
|
1215
|
-
* ID of a site visitor that has not logged in to the site.
|
|
1216
|
-
* @format GUID
|
|
1217
|
-
*/
|
|
1218
|
-
anonymousVisitorId?: string;
|
|
1219
|
-
/**
|
|
1220
|
-
* ID of a site visitor that has logged in to the site.
|
|
1221
|
-
* @format GUID
|
|
1222
|
-
*/
|
|
1223
|
-
memberId?: string;
|
|
1224
|
-
/**
|
|
1225
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
1226
|
-
* @format GUID
|
|
1227
|
-
*/
|
|
1228
|
-
wixUserId?: string;
|
|
1229
|
-
/**
|
|
1230
|
-
* ID of an app.
|
|
1231
|
-
* @format GUID
|
|
1232
|
-
*/
|
|
1233
|
-
appId?: string;
|
|
1234
|
-
/** @readonly */
|
|
1235
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
1236
|
-
}
|
|
1237
|
-
/** @oneof */
|
|
1238
|
-
export interface IdentificationDataIdOneOf {
|
|
1239
|
-
/**
|
|
1240
|
-
* ID of a site visitor that has not logged in to the site.
|
|
1241
|
-
* @format GUID
|
|
1242
|
-
*/
|
|
1243
|
-
anonymousVisitorId?: string;
|
|
1244
|
-
/**
|
|
1245
|
-
* ID of a site visitor that has logged in to the site.
|
|
1246
|
-
* @format GUID
|
|
1247
|
-
*/
|
|
1248
|
-
memberId?: string;
|
|
1249
|
-
/**
|
|
1250
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
1251
|
-
* @format GUID
|
|
1252
|
-
*/
|
|
1253
|
-
wixUserId?: string;
|
|
1254
|
-
/**
|
|
1255
|
-
* ID of an app.
|
|
1256
|
-
* @format GUID
|
|
1257
|
-
*/
|
|
1258
|
-
appId?: string;
|
|
1259
|
-
}
|
|
1260
|
-
export declare enum WebhookIdentityType {
|
|
1261
|
-
UNKNOWN = "UNKNOWN",
|
|
1262
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1263
|
-
MEMBER = "MEMBER",
|
|
1264
|
-
WIX_USER = "WIX_USER",
|
|
1265
|
-
APP = "APP"
|
|
1266
|
-
}
|
|
1267
|
-
/** @enumType */
|
|
1268
|
-
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1269
|
-
export interface GetPlaceholderKeysRequest {
|
|
1270
|
-
/**
|
|
1271
|
-
* Campaign ID.
|
|
1272
|
-
* @format GUID
|
|
1273
|
-
*/
|
|
1274
|
-
campaignId?: string;
|
|
1275
|
-
}
|
|
1276
|
-
export interface GetPlaceholderKeysResponse {
|
|
1277
|
-
/** Keys of placeholders used in the campaign. */
|
|
1278
|
-
placeholderKeys?: string[];
|
|
1279
|
-
}
|
|
1280
|
-
export interface GetDefaultComponentsRequest {
|
|
1281
|
-
}
|
|
1282
|
-
export interface GetDefaultComponentsResponse {
|
|
1283
|
-
footer?: Record<string, any> | null;
|
|
1284
|
-
logo?: Record<string, any> | null;
|
|
1285
|
-
follow?: Record<string, any> | null;
|
|
1286
|
-
}
|
|
1287
|
-
export interface ValidateLinkRequest {
|
|
1288
|
-
/**
|
|
1289
|
-
* URL to validate.
|
|
1290
|
-
* @minLength 1
|
|
1291
|
-
*/
|
|
1292
|
-
url: string;
|
|
1293
|
-
}
|
|
1294
|
-
export interface ValidateLinkResponse {
|
|
1295
|
-
/** Whether the link is valid. */
|
|
1296
|
-
valid?: boolean;
|
|
1297
|
-
}
|
|
1298
|
-
export interface ValidateHtmlLinksRequest {
|
|
1299
|
-
/**
|
|
1300
|
-
* HTML string with links.
|
|
1301
|
-
* @maxLength 1000000
|
|
1302
|
-
*/
|
|
1303
|
-
html: string;
|
|
1304
|
-
}
|
|
1305
|
-
export interface ValidateHtmlLinksResponse {
|
|
1306
|
-
/** Non-valid links. */
|
|
1307
|
-
blacklistedLinks?: string[];
|
|
1308
|
-
}
|
|
1309
|
-
export interface EstimateFilterSizeRequest {
|
|
1310
|
-
/** Contacts filter expression. */
|
|
1311
|
-
filter?: Record<string, any> | null;
|
|
1312
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1313
|
-
activeContactsOnly?: boolean;
|
|
1314
|
-
/**
|
|
1315
|
-
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1316
|
-
* @minLength 1
|
|
1317
|
-
* @maxLength 100
|
|
1318
|
-
*/
|
|
1319
|
-
search?: string | null;
|
|
1320
|
-
}
|
|
1321
|
-
export interface EstimateFilterSizeResponse {
|
|
1322
|
-
/** Mailing list size estimation. */
|
|
1323
|
-
estimation?: number;
|
|
1324
|
-
}
|
|
1325
|
-
export interface EstimateAudienceSizeRequest {
|
|
1326
|
-
/**
|
|
1327
|
-
* Contact IDs of a campaign audience.
|
|
1328
|
-
* @format GUID
|
|
1329
|
-
*/
|
|
1330
|
-
contactIds?: string[];
|
|
1331
|
-
/** Label IDs of a campaign audience. */
|
|
1332
|
-
labelIds?: string[];
|
|
1333
|
-
/** Contacts filter expression (json). */
|
|
1334
|
-
contactsFilter?: Record<string, any> | null;
|
|
1335
|
-
/**
|
|
1336
|
-
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
1337
|
-
* @minLength 1
|
|
1338
|
-
* @maxLength 100
|
|
1339
|
-
*/
|
|
1340
|
-
search?: string | null;
|
|
1341
|
-
/**
|
|
1342
|
-
* Segment ids of a campaign audience.
|
|
1343
|
-
* @format GUID
|
|
1344
|
-
*/
|
|
1345
|
-
segmentIds?: string[];
|
|
1346
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1347
|
-
activeContactsOnly?: boolean;
|
|
1348
|
-
/**
|
|
1349
|
-
* Id of a campaign that is to be resent.
|
|
1350
|
-
* @format GUID
|
|
1351
|
-
*/
|
|
1352
|
-
resendCampaignId?: string | null;
|
|
1353
|
-
/** Should total number of contacts in provided audience be returned or not (default value "false"). */
|
|
1354
|
-
withTotal?: boolean;
|
|
1355
|
-
}
|
|
1356
|
-
export interface EstimateAudienceSizeResponse {
|
|
1357
|
-
/** Audience size (estimated number of emails to be sent). */
|
|
1358
|
-
estimation?: number;
|
|
1359
|
-
/** Total number of contacts in provided audience (optional). */
|
|
1360
|
-
total?: number | null;
|
|
1361
|
-
}
|
|
1362
|
-
export interface ReconcileContactRequest {
|
|
1363
|
-
/**
|
|
1364
|
-
* Email address of the contact.
|
|
1365
|
-
* @format EMAIL
|
|
1366
|
-
*/
|
|
1367
|
-
emailAddress?: string;
|
|
1368
|
-
}
|
|
1369
|
-
export interface ReconcileContactResponse {
|
|
1370
|
-
/** Created or retrieved contact. */
|
|
1371
|
-
contact?: Contact;
|
|
1372
|
-
}
|
|
1373
|
-
export interface Contact {
|
|
1374
|
-
/**
|
|
1375
|
-
* Unique ID of the contact entity.
|
|
1376
|
-
* @format GUID
|
|
1377
|
-
*/
|
|
1378
|
-
_id?: string;
|
|
1379
|
-
/**
|
|
1380
|
-
* Primary email address of the contact.
|
|
1381
|
-
* @format EMAIL
|
|
1382
|
-
*/
|
|
1383
|
-
emailAddress?: string;
|
|
1384
|
-
/**
|
|
1385
|
-
* Full name of the contact (optional).
|
|
1386
|
-
* @maxLength 100
|
|
1387
|
-
*/
|
|
1388
|
-
fullName?: string | null;
|
|
1389
|
-
/**
|
|
1390
|
-
* Profile picture of the contact (optional).
|
|
1391
|
-
* @format WEB_URL
|
|
1392
|
-
* @maxLength 2048
|
|
1393
|
-
*/
|
|
1394
|
-
pictureUrl?: string | null;
|
|
1395
|
-
}
|
|
1396
|
-
export interface SearchContactsRequest {
|
|
1397
|
-
/**
|
|
1398
|
-
* Text to search contacts by - can search by name or email address.
|
|
1399
|
-
* @maxLength 100
|
|
1400
|
-
*/
|
|
1401
|
-
searchTerm?: string;
|
|
1402
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1403
|
-
activeContactsOnly?: boolean;
|
|
1404
|
-
/**
|
|
1405
|
-
* Page size (default 50, max 1000).
|
|
1406
|
-
* @max 1000
|
|
1407
|
-
*/
|
|
1408
|
-
pageSize?: number | null;
|
|
1409
|
-
}
|
|
1410
|
-
export interface SearchContactsResponse {
|
|
1411
|
-
/** Search results. */
|
|
1412
|
-
contacts?: Contact[];
|
|
1413
|
-
}
|
|
1414
|
-
export interface GetLabelsRequest {
|
|
1415
|
-
/** Should "inactive" contacts be excluded or not (default value "false"). */
|
|
1416
|
-
activeContactsOnly?: boolean;
|
|
1417
|
-
}
|
|
1418
|
-
export interface GetLabelsResponse {
|
|
1419
|
-
/** Returned labels with contact counts. */
|
|
1420
|
-
labels?: Label[];
|
|
1421
|
-
}
|
|
1422
|
-
export interface Label {
|
|
1423
|
-
/**
|
|
1424
|
-
* Unique ID of the label entity.
|
|
1425
|
-
* @maxLength 100
|
|
1426
|
-
*/
|
|
1427
|
-
_id?: string;
|
|
1428
|
-
/**
|
|
1429
|
-
* Name of the label.
|
|
1430
|
-
* @maxLength 100
|
|
1431
|
-
*/
|
|
1432
|
-
name?: string;
|
|
1433
|
-
/** Amount of contacts assigned to the label. */
|
|
1434
|
-
contactsCount?: number;
|
|
1435
|
-
}
|
|
1436
|
-
export interface SubscribeFromLandingPageRequest {
|
|
1437
|
-
/**
|
|
1438
|
-
* Campaign ID that the subscription is happening from.
|
|
1439
|
-
* @format GUID
|
|
1440
|
-
*/
|
|
1441
|
-
campaignId?: string;
|
|
1442
|
-
/**
|
|
1443
|
-
* Email address that is entered into subscription field.
|
|
1444
|
-
* @format EMAIL
|
|
1445
|
-
*/
|
|
1446
|
-
emailAddress?: string;
|
|
1447
|
-
/** Did UoU explicitly consent to terms of use or not (optional, default value "false") */
|
|
1448
|
-
consent?: boolean;
|
|
1449
|
-
}
|
|
1450
|
-
export interface SubscribeFromLandingPageResponse {
|
|
1451
|
-
/** @format GUID */
|
|
1452
|
-
contactId?: string;
|
|
1453
|
-
}
|
|
1454
|
-
export interface BaseEventMetadata {
|
|
1455
|
-
/**
|
|
1456
|
-
* App instance ID.
|
|
1457
|
-
* @format GUID
|
|
1458
|
-
*/
|
|
1459
|
-
instanceId?: string | null;
|
|
1460
|
-
/**
|
|
1461
|
-
* Event type.
|
|
1462
|
-
* @maxLength 150
|
|
1463
|
-
*/
|
|
1464
|
-
eventType?: string;
|
|
1465
|
-
/** The identification type and identity data. */
|
|
1466
|
-
identity?: IdentificationData;
|
|
1467
|
-
}
|
|
1468
|
-
export interface EventMetadata extends BaseEventMetadata {
|
|
1469
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1470
|
-
_id?: string;
|
|
1471
|
-
/**
|
|
1472
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1473
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1474
|
-
*/
|
|
1475
|
-
entityFqdn?: string;
|
|
1476
|
-
/**
|
|
1477
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1478
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1479
|
-
*/
|
|
1480
|
-
slug?: string;
|
|
1481
|
-
/** ID of the entity associated with the event. */
|
|
1482
|
-
entityId?: string;
|
|
1483
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1484
|
-
eventTime?: Date | null;
|
|
1485
|
-
/**
|
|
1486
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
1487
|
-
* (for example, GDPR).
|
|
1488
|
-
*/
|
|
1489
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
1490
|
-
/** If present, indicates the action that triggered the event. */
|
|
1491
|
-
originatedFrom?: string | null;
|
|
1492
|
-
/**
|
|
1493
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
1494
|
-
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1495
|
-
*/
|
|
1496
|
-
entityEventSequence?: string | null;
|
|
1497
|
-
}
|
|
1498
|
-
export interface CampaignDistributedEnvelope {
|
|
1499
|
-
data: Distributed;
|
|
1500
|
-
metadata: EventMetadata;
|
|
1501
|
-
}
|
|
1502
|
-
/**
|
|
1503
|
-
* Triggered when a campaign is successfully distributed to all recipients.
|
|
1504
|
-
* @permissionScope Manage Stores
|
|
1505
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1506
|
-
* @permissionScope Access Verticals by Automations
|
|
1507
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1508
|
-
* @permissionScope Set Up Automations
|
|
1509
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1510
|
-
* @permissionScope Read Email Marketing
|
|
1511
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1512
|
-
* @permissionScope Manage Email Marketing
|
|
1513
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1514
|
-
* @permissionId Shoutout.Read
|
|
1515
|
-
* @webhook
|
|
1516
|
-
* @eventType wix.email_marketing.v1.campaign_campaign_distributed_event
|
|
1517
|
-
* @serviceIdentifier wix.emailmarketing.api.v1.CampaignService
|
|
1518
|
-
* @slug campaign_distributed_event
|
|
1519
|
-
*/
|
|
1520
|
-
export declare function onCampaignDistributedEvent(handler: (event: CampaignDistributedEnvelope) => void | Promise<void>): void;
|
|
1521
|
-
export interface CampaignPausedEnvelope {
|
|
1522
|
-
data: Paused;
|
|
1523
|
-
metadata: EventMetadata;
|
|
1524
|
-
}
|
|
1525
|
-
/**
|
|
1526
|
-
* Triggered when a scheduled campaign is paused.
|
|
1527
|
-
* @permissionScope Manage Stores
|
|
1528
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1529
|
-
* @permissionScope Access Verticals by Automations
|
|
1530
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1531
|
-
* @permissionScope Set Up Automations
|
|
1532
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1533
|
-
* @permissionScope Read Email Marketing
|
|
1534
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1535
|
-
* @permissionScope Manage Email Marketing
|
|
1536
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1537
|
-
* @permissionId Shoutout.Read
|
|
1538
|
-
* @webhook
|
|
1539
|
-
* @eventType wix.email_marketing.v1.campaign_campaign_paused_event
|
|
1540
|
-
* @serviceIdentifier wix.emailmarketing.api.v1.CampaignService
|
|
1541
|
-
* @slug campaign_paused_event
|
|
1542
|
-
*/
|
|
1543
|
-
export declare function onCampaignPausedEvent(handler: (event: CampaignPausedEnvelope) => void | Promise<void>): void;
|
|
1544
|
-
export interface CampaignPublishedEnvelope {
|
|
1545
|
-
data: Published;
|
|
1546
|
-
metadata: EventMetadata;
|
|
1547
|
-
}
|
|
1548
|
-
/**
|
|
1549
|
-
* Triggered when a draft campaign is published.
|
|
1550
|
-
* @permissionScope Manage Stores
|
|
1551
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1552
|
-
* @permissionScope Access Verticals by Automations
|
|
1553
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1554
|
-
* @permissionScope Set Up Automations
|
|
1555
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1556
|
-
* @permissionScope Read Email Marketing
|
|
1557
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1558
|
-
* @permissionScope Manage Email Marketing
|
|
1559
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1560
|
-
* @permissionId Shoutout.Read
|
|
1561
|
-
* @webhook
|
|
1562
|
-
* @eventType wix.email_marketing.v1.campaign_campaign_published_event
|
|
1563
|
-
* @serviceIdentifier wix.emailmarketing.api.v1.CampaignService
|
|
1564
|
-
* @slug campaign_published_event
|
|
1565
|
-
*/
|
|
1566
|
-
export declare function onCampaignPublishedEvent(handler: (event: CampaignPublishedEnvelope) => void | Promise<void>): void;
|
|
1567
|
-
export interface CampaignRejectedEnvelope {
|
|
1568
|
-
data: Rejected;
|
|
1569
|
-
metadata: EventMetadata;
|
|
1570
|
-
}
|
|
1571
|
-
/**
|
|
1572
|
-
* Triggered when a campaign is identified as abusive and rejected without sending emails to recipients.
|
|
1573
|
-
* @permissionScope Manage Stores
|
|
1574
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1575
|
-
* @permissionScope Access Verticals by Automations
|
|
1576
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1577
|
-
* @permissionScope Set Up Automations
|
|
1578
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1579
|
-
* @permissionScope Read Email Marketing
|
|
1580
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1581
|
-
* @permissionScope Manage Email Marketing
|
|
1582
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1583
|
-
* @permissionId Shoutout.Read
|
|
1584
|
-
* @webhook
|
|
1585
|
-
* @eventType wix.email_marketing.v1.campaign_campaign_rejected_event
|
|
1586
|
-
* @serviceIdentifier wix.emailmarketing.api.v1.CampaignService
|
|
1587
|
-
* @slug campaign_rejected_event
|
|
1588
|
-
*/
|
|
1589
|
-
export declare function onCampaignRejectedEvent(handler: (event: CampaignRejectedEnvelope) => void | Promise<void>): void;
|
|
1590
|
-
export interface CampaignScheduledEnvelope {
|
|
1591
|
-
data: Scheduled;
|
|
1592
|
-
metadata: EventMetadata;
|
|
1593
|
-
}
|
|
1594
|
-
/**
|
|
1595
|
-
* Triggered when a campaign is scheduled to be sent out at the specific time.
|
|
1596
|
-
* @permissionScope Manage Stores
|
|
1597
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1598
|
-
* @permissionScope Access Verticals by Automations
|
|
1599
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1600
|
-
* @permissionScope Set Up Automations
|
|
1601
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1602
|
-
* @permissionScope Read Email Marketing
|
|
1603
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1604
|
-
* @permissionScope Manage Email Marketing
|
|
1605
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1606
|
-
* @permissionId Shoutout.Read
|
|
1607
|
-
* @webhook
|
|
1608
|
-
* @eventType wix.email_marketing.v1.campaign_campaign_scheduled_event
|
|
1609
|
-
* @serviceIdentifier wix.emailmarketing.api.v1.CampaignService
|
|
1610
|
-
* @slug campaign_scheduled_event
|
|
1611
|
-
*/
|
|
1612
|
-
export declare function onCampaignScheduledEvent(handler: (event: CampaignScheduledEnvelope) => void | Promise<void>): void;
|
|
1613
|
-
export interface CampaignTerminatedEnvelope {
|
|
1614
|
-
data: Terminated;
|
|
1615
|
-
metadata: EventMetadata;
|
|
1616
|
-
}
|
|
1617
|
-
/**
|
|
1618
|
-
* Triggered when the mailing list isn't clean and campaign was terminated.
|
|
1619
|
-
* @permissionScope Manage Stores
|
|
1620
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1621
|
-
* @permissionScope Access Verticals by Automations
|
|
1622
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1623
|
-
* @permissionScope Set Up Automations
|
|
1624
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1625
|
-
* @permissionScope Read Email Marketing
|
|
1626
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1627
|
-
* @permissionScope Manage Email Marketing
|
|
1628
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1629
|
-
* @permissionId Shoutout.Read
|
|
1630
|
-
* @webhook
|
|
1631
|
-
* @eventType wix.email_marketing.v1.campaign_campaign_terminated_event
|
|
1632
|
-
* @serviceIdentifier wix.emailmarketing.api.v1.CampaignService
|
|
1633
|
-
* @slug campaign_terminated_event
|
|
1634
|
-
*/
|
|
1635
|
-
export declare function onCampaignTerminatedEvent(handler: (event: CampaignTerminatedEnvelope) => void | Promise<void>): void;
|
|
1636
|
-
export interface CampaignCreatedEnvelope {
|
|
1637
|
-
entity: Campaign;
|
|
1638
|
-
metadata: EventMetadata;
|
|
1639
|
-
}
|
|
1640
|
-
/**
|
|
1641
|
-
* Triggered when a campaign is created.
|
|
1642
|
-
* @permissionScope Manage Stores
|
|
1643
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1644
|
-
* @permissionScope Access Verticals by Automations
|
|
1645
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1646
|
-
* @permissionScope Set Up Automations
|
|
1647
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1648
|
-
* @permissionScope Read Email Marketing
|
|
1649
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1650
|
-
* @permissionScope Manage Email Marketing
|
|
1651
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1652
|
-
* @permissionId Shoutout.Read
|
|
1653
|
-
* @webhook
|
|
1654
|
-
* @eventType wix.email_marketing.v1.campaign_created
|
|
1655
|
-
* @serviceIdentifier wix.emailmarketing.api.v1.CampaignService
|
|
1656
|
-
* @slug created
|
|
1657
|
-
*/
|
|
1658
|
-
export declare function onCampaignCreated(handler: (event: CampaignCreatedEnvelope) => void | Promise<void>): void;
|
|
1659
|
-
export interface CampaignDeletedEnvelope {
|
|
1660
|
-
metadata: EventMetadata;
|
|
1661
|
-
}
|
|
1662
|
-
/**
|
|
1663
|
-
* Triggered when a campaign is deleted.
|
|
1664
|
-
* @permissionScope Manage Stores
|
|
1665
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1666
|
-
* @permissionScope Access Verticals by Automations
|
|
1667
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1668
|
-
* @permissionScope Set Up Automations
|
|
1669
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1670
|
-
* @permissionScope Read Email Marketing
|
|
1671
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1672
|
-
* @permissionScope Manage Email Marketing
|
|
1673
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1674
|
-
* @permissionId Shoutout.Read
|
|
1675
|
-
* @webhook
|
|
1676
|
-
* @eventType wix.email_marketing.v1.campaign_deleted
|
|
1677
|
-
* @serviceIdentifier wix.emailmarketing.api.v1.CampaignService
|
|
1678
|
-
* @slug deleted
|
|
1679
|
-
*/
|
|
1680
|
-
export declare function onCampaignDeleted(handler: (event: CampaignDeletedEnvelope) => void | Promise<void>): void;
|
|
1681
|
-
export interface CampaignEmailActivityUpdatedEnvelope {
|
|
1682
|
-
data: EmailActivityUpdated;
|
|
1683
|
-
metadata: EventMetadata;
|
|
1684
|
-
}
|
|
1685
|
-
/**
|
|
1686
|
-
* Triggered when an email campaign has a new recipient activity.
|
|
1687
|
-
* @permissionScope Manage Stores
|
|
1688
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1689
|
-
* @permissionScope Access Verticals by Automations
|
|
1690
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1691
|
-
* @permissionScope Set Up Automations
|
|
1692
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1693
|
-
* @permissionScope Read Email Marketing
|
|
1694
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1695
|
-
* @permissionScope Manage Email Marketing
|
|
1696
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1697
|
-
* @permissionId Shoutout.Read
|
|
1698
|
-
* @webhook
|
|
1699
|
-
* @eventType wix.email_marketing.v1.campaign_email_activity_updated
|
|
1700
|
-
* @serviceIdentifier wix.emailmarketing.api.v1.CampaignService
|
|
1701
|
-
* @slug email_activity_updated
|
|
1702
|
-
*/
|
|
1703
|
-
export declare function onCampaignEmailActivityUpdated(handler: (event: CampaignEmailActivityUpdatedEnvelope) => void | Promise<void>): void;
|
|
1704
|
-
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`;
|
|
1705
|
-
/**
|
|
1706
|
-
* Retrieves a list of statistics for up to 100 selected campaigns.
|
|
1707
|
-
*
|
|
1708
|
-
* For each campaign, you receive the total activity count for the campaign's landing page and email. For example, the total
|
|
1709
|
-
* amount of times the landing page was opened, or the total amount of email recipients that clicked a link in an email.
|
|
1710
|
-
*
|
|
1711
|
-
* Call List Campaigns to retrieve additional information for a site's campaigns.
|
|
1712
|
-
* Call List Recipients to retrieve a list of recipients and their activities related to a selected campaign.
|
|
1713
|
-
* @param campaignIds - IDs of the campaigns to retrieve (max 100 campaigns).
|
|
1714
|
-
* @public
|
|
1715
|
-
* @requiredField campaignIds
|
|
1716
|
-
* @permissionId Shoutout.Read
|
|
1717
|
-
* @permissionScope Manage Stores
|
|
1718
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1719
|
-
* @permissionScope Access Verticals by Automations
|
|
1720
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1721
|
-
* @permissionScope Set Up Automations
|
|
1722
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1723
|
-
* @permissionScope Read Email Marketing
|
|
1724
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1725
|
-
* @permissionScope Manage Email Marketing
|
|
1726
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1727
|
-
* @applicableIdentity APP
|
|
1728
|
-
* @fqn wix.emailmarketing.api.v1.CampaignStatisticsService.ListStatistics
|
|
1729
|
-
*/
|
|
1730
|
-
export 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`>>;
|
|
1731
|
-
/**
|
|
1732
|
-
* Retrieves a list of recipients for a selected campaign based on a specific recipient activity.
|
|
1733
|
-
*
|
|
1734
|
-
* Pages are returned with a maximum of 1,000 recipients per page and defaults to 40 recipients per page.
|
|
1735
|
-
*
|
|
1736
|
-
* Call List Statistics to retrieve a list of activity for selected campaigns.
|
|
1737
|
-
* Call List Campaigns to retrieve additional information for your campaigns.
|
|
1738
|
-
*
|
|
1739
|
-
* If no `activity` is included, this method returns an error.
|
|
1740
|
-
* @param campaignId - Campaign ID.
|
|
1741
|
-
* @param activity - Email activity to filter.
|
|
1742
|
-
* @public
|
|
1743
|
-
* @requiredField activity
|
|
1744
|
-
* @requiredField campaignId
|
|
1745
|
-
* @param options - Options to use when getting the list of recipients.
|
|
1746
|
-
* @permissionId Shoutout.Read
|
|
1747
|
-
* @permissionScope Manage Stores
|
|
1748
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1749
|
-
* @permissionScope Access Verticals by Automations
|
|
1750
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1751
|
-
* @permissionScope Set Up Automations
|
|
1752
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1753
|
-
* @permissionScope Read Email Marketing
|
|
1754
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1755
|
-
* @permissionScope Manage Email Marketing
|
|
1756
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1757
|
-
* @applicableIdentity APP
|
|
1758
|
-
* @fqn wix.emailmarketing.api.v1.CampaignStatisticsService.ListRecipients
|
|
1759
|
-
*/
|
|
1760
|
-
export declare function listRecipients(campaignId: string, activity: RecipientsActivityEnumWithLiterals, options?: ListRecipientsOptions): Promise<NonNullablePaths<ListRecipientsResponse, `recipients` | `recipients.${number}.contactId` | `recipients.${number}.emailAddress` | `recipients.${number}.contactDeleted`>>;
|
|
1761
|
-
export interface ListRecipientsOptions {
|
|
1762
|
-
/** Pagination options. */
|
|
1763
|
-
paging?: CursorPaging;
|
|
1764
|
-
}
|
|
1765
|
-
/**
|
|
1766
|
-
* Retrieves information about an email campaign.
|
|
1767
|
-
* @param campaignId - Campaign ID.
|
|
1768
|
-
* @public
|
|
1769
|
-
* @requiredField campaignId
|
|
1770
|
-
* @param options - Options to use when getting a campaign.
|
|
1771
|
-
* @permissionId Shoutout.Manage
|
|
1772
|
-
* @permissionScope Manage Stores
|
|
1773
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1774
|
-
* @permissionScope Access Verticals by Automations
|
|
1775
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1776
|
-
* @permissionScope Set Up Automations
|
|
1777
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1778
|
-
* @permissionScope Manage Email Marketing
|
|
1779
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1780
|
-
* @applicableIdentity APP
|
|
1781
|
-
* @returns Campaign information.
|
|
1782
|
-
* @fqn wix.emailmarketing.api.v1.CampaignService.Get
|
|
1783
|
-
*/
|
|
1784
|
-
export declare function getCampaign(campaignId: string, options?: GetCampaignOptions): Promise<NonNullablePaths<Campaign, CampaignNonNullablePaths>>;
|
|
1785
|
-
export interface GetCampaignOptions {
|
|
1786
|
-
/**
|
|
1787
|
-
* Whether a returned campaign should include `publishingData.statistics`.
|
|
1788
|
-
*
|
|
1789
|
-
* Default: `false`.
|
|
1790
|
-
*/
|
|
1791
|
-
optionIncludeStatistics?: boolean;
|
|
1792
|
-
}
|
|
1793
|
-
/**
|
|
1794
|
-
* Retrieves a list of email campaigns.
|
|
1795
|
-
*
|
|
1796
|
-
* Default sorts by `dateUpdated` in `DESC` order.
|
|
1797
|
-
* @public
|
|
1798
|
-
* @param options - Options to use when getting the list of campaigns.
|
|
1799
|
-
* @permissionId Shoutout.Read
|
|
1800
|
-
* @permissionScope Manage Stores
|
|
1801
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1802
|
-
* @permissionScope Access Verticals by Automations
|
|
1803
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1804
|
-
* @permissionScope Set Up Automations
|
|
1805
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1806
|
-
* @permissionScope Read Email Marketing
|
|
1807
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.READ-EMAIL-MARKETING
|
|
1808
|
-
* @permissionScope Manage Email Marketing
|
|
1809
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1810
|
-
* @applicableIdentity APP
|
|
1811
|
-
* @fqn wix.emailmarketing.api.v1.CampaignService.List
|
|
1812
|
-
*/
|
|
1813
|
-
export declare function listCampaigns(options?: ListCampaignsOptions): Promise<NonNullablePaths<ListCampaignsResponse, {
|
|
1814
|
-
[P in CampaignNonNullablePaths]: `campaigns.${number}.${P}`;
|
|
1815
|
-
}[CampaignNonNullablePaths]>>;
|
|
1816
|
-
export interface ListCampaignsOptions {
|
|
1817
|
-
/** Paging parameters. */
|
|
1818
|
-
paging?: Paging;
|
|
1819
|
-
/**
|
|
1820
|
-
* Whether to include `publishingData.statistics` in the returned campaign object.
|
|
1821
|
-
*
|
|
1822
|
-
* Default: `false`.
|
|
1823
|
-
*/
|
|
1824
|
-
optionIncludeStatistics?: boolean;
|
|
1825
|
-
/** Campaign status. */
|
|
1826
|
-
statuses?: CampaignStatusEnumWithLiterals[];
|
|
1827
|
-
/** Visibility status. */
|
|
1828
|
-
visibilityStatuses?: CampaignVisibilityStatusEnumWithLiterals[];
|
|
1829
|
-
}
|
|
1830
|
-
/**
|
|
1831
|
-
* Publishes and sends a specified campaign.
|
|
1832
|
-
*
|
|
1833
|
-
* If the `email_distribution_options` object isn't passed in the request, the campaign is only published as a landing page.
|
|
1834
|
-
* @param campaignId - Campaign ID
|
|
1835
|
-
* @public
|
|
1836
|
-
* @requiredField campaignId
|
|
1837
|
-
* @param options - Options to use when publishing a campaign.
|
|
1838
|
-
* @permissionId Shoutout.Manage
|
|
1839
|
-
* @permissionScope Manage Stores
|
|
1840
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1841
|
-
* @permissionScope Access Verticals by Automations
|
|
1842
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1843
|
-
* @permissionScope Set Up Automations
|
|
1844
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1845
|
-
* @permissionScope Manage Email Marketing
|
|
1846
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1847
|
-
* @applicableIdentity APP
|
|
1848
|
-
* @fqn wix.emailmarketing.api.v1.CampaignService.Publish
|
|
1849
|
-
*/
|
|
1850
|
-
export 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`>>;
|
|
1851
|
-
export interface PublishCampaignOptions {
|
|
1852
|
-
/** Email distribution options. Pass this object in the request if you need to distribute your marketing campaign with emails. */
|
|
1853
|
-
emailDistributionOptions?: EmailDistributionOptions;
|
|
1854
|
-
}
|
|
1855
|
-
/**
|
|
1856
|
-
* Sends a test email. Call this method to preview your email campaign.
|
|
1857
|
-
*
|
|
1858
|
-
* We strongly recommend calling this method only a few times in a row, as there is a rate limit to prevent abuse of the Send Test method.
|
|
1859
|
-
* @param campaignId - Campaign ID.
|
|
1860
|
-
* @public
|
|
1861
|
-
* @requiredField campaignId
|
|
1862
|
-
* @requiredField options.toEmailAddress
|
|
1863
|
-
* @param options - Options for sending a test email.
|
|
1864
|
-
* @permissionId Shoutout.Manage
|
|
1865
|
-
* @permissionScope Manage Stores
|
|
1866
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1867
|
-
* @permissionScope Access Verticals by Automations
|
|
1868
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1869
|
-
* @permissionScope Set Up Automations
|
|
1870
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1871
|
-
* @permissionScope Manage Email Marketing
|
|
1872
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1873
|
-
* @applicableIdentity APP
|
|
1874
|
-
* @fqn wix.emailmarketing.api.v1.CampaignService.SendTest
|
|
1875
|
-
*/
|
|
1876
|
-
export declare function sendTest(campaignId: string, options?: NonNullablePaths<SendTestOptions, `toEmailAddress`>): Promise<void>;
|
|
1877
|
-
export interface SendTestOptions {
|
|
1878
|
-
/**
|
|
1879
|
-
* Email subject.
|
|
1880
|
-
* @maxLength 1000
|
|
1881
|
-
*/
|
|
1882
|
-
emailSubject?: string | null;
|
|
1883
|
-
/**
|
|
1884
|
-
* Recipient email address.
|
|
1885
|
-
* @format EMAIL
|
|
1886
|
-
*/
|
|
1887
|
-
toEmailAddress: string;
|
|
1888
|
-
}
|
|
1889
|
-
/**
|
|
1890
|
-
* Pauses a scheduled campaign.
|
|
1891
|
-
* @param campaignId - Campaign ID.
|
|
1892
|
-
* @public
|
|
1893
|
-
* @requiredField campaignId
|
|
1894
|
-
* @permissionId Shoutout.Manage
|
|
1895
|
-
* @permissionScope Manage Stores
|
|
1896
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1897
|
-
* @permissionScope Access Verticals by Automations
|
|
1898
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1899
|
-
* @permissionScope Set Up Automations
|
|
1900
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1901
|
-
* @permissionScope Manage Email Marketing
|
|
1902
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1903
|
-
* @applicableIdentity APP
|
|
1904
|
-
* @fqn wix.emailmarketing.api.v1.CampaignService.PauseScheduling
|
|
1905
|
-
*/
|
|
1906
|
-
export declare function pauseScheduling(campaignId: string): Promise<void>;
|
|
1907
|
-
/**
|
|
1908
|
-
* Changes the sending time for an already scheduled campaign.
|
|
1909
|
-
* @param campaignId - ID of the campaign to reschedule.
|
|
1910
|
-
* @param sendAt - New time for sending out the campaign.
|
|
1911
|
-
* @public
|
|
1912
|
-
* @requiredField campaignId
|
|
1913
|
-
* @requiredField sendAt
|
|
1914
|
-
* @permissionId Shoutout.Manage
|
|
1915
|
-
* @permissionScope Manage Stores
|
|
1916
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1917
|
-
* @permissionScope Access Verticals by Automations
|
|
1918
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1919
|
-
* @permissionScope Set Up Automations
|
|
1920
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1921
|
-
* @permissionScope Manage Email Marketing
|
|
1922
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1923
|
-
* @applicableIdentity APP
|
|
1924
|
-
* @fqn wix.emailmarketing.api.v1.CampaignService.Reschedule
|
|
1925
|
-
*/
|
|
1926
|
-
export declare function reschedule(campaignId: string, sendAt: Date): Promise<void>;
|
|
1927
|
-
/**
|
|
1928
|
-
* Permanently deletes a campaign.
|
|
1929
|
-
* @param campaignId - Campaign ID.
|
|
1930
|
-
* @public
|
|
1931
|
-
* @requiredField campaignId
|
|
1932
|
-
* @permissionId Shoutout.Manage
|
|
1933
|
-
* @permissionScope Manage Stores
|
|
1934
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1935
|
-
* @permissionScope Access Verticals by Automations
|
|
1936
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1937
|
-
* @permissionScope Set Up Automations
|
|
1938
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1939
|
-
* @permissionScope Manage Email Marketing
|
|
1940
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1941
|
-
* @applicableIdentity APP
|
|
1942
|
-
* @fqn wix.emailmarketing.api.v1.CampaignService._delete
|
|
1943
|
-
*/
|
|
1944
|
-
export declare function deleteCampaign(campaignId: string): Promise<void>;
|
|
1945
|
-
/**
|
|
1946
|
-
* Creates a copy of an existing campaign.
|
|
1947
|
-
* @param campaignId - ID of the message to be duplicated.
|
|
1948
|
-
* @public
|
|
1949
|
-
* @requiredField campaignId
|
|
1950
|
-
* @permissionId Shoutout.Manage
|
|
1951
|
-
* @permissionScope Manage Stores
|
|
1952
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1953
|
-
* @permissionScope Access Verticals by Automations
|
|
1954
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1955
|
-
* @permissionScope Set Up Automations
|
|
1956
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1957
|
-
* @permissionScope Manage Email Marketing
|
|
1958
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1959
|
-
* @applicableIdentity APP
|
|
1960
|
-
* @fqn wix.emailmarketing.api.v1.CampaignService.Reuse
|
|
1961
|
-
*/
|
|
1962
|
-
export declare function reuseCampaign(campaignId: string): Promise<NonNullablePaths<ReuseCampaignResponse, {
|
|
1963
|
-
[P in CampaignNonNullablePaths]: `campaign.${P}`;
|
|
1964
|
-
}[CampaignNonNullablePaths]>>;
|
|
1965
|
-
/**
|
|
1966
|
-
* 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.
|
|
1967
|
-
* @param campaignId - Campaign ID.
|
|
1968
|
-
* @public
|
|
1969
|
-
* @requiredField campaignId
|
|
1970
|
-
* @permissionId Shoutout.Manage
|
|
1971
|
-
* @permissionScope Manage Stores
|
|
1972
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1973
|
-
* @permissionScope Access Verticals by Automations
|
|
1974
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1975
|
-
* @permissionScope Set Up Automations
|
|
1976
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1977
|
-
* @permissionScope Manage Email Marketing
|
|
1978
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1979
|
-
* @applicableIdentity APP
|
|
1980
|
-
* @fqn wix.emailmarketing.api.v1.CampaignService.GetAudience
|
|
1981
|
-
*/
|
|
1982
|
-
export declare function getAudience(campaignId: string): Promise<NonNullablePaths<GetAudienceResponse, `audience.contactIds` | `audience.labelIds` | `audience.segmentIds` | `audience.activeContactsOnly`>>;
|
|
1983
|
-
/**
|
|
1984
|
-
* Checks if the sender's email address will be used as the "from" address or will it be replaced and to what exactly.
|
|
1985
|
-
* @param emailAddress - Email address to verify.
|
|
1986
|
-
* @public
|
|
1987
|
-
* @requiredField emailAddress
|
|
1988
|
-
* @permissionId Shoutout.Manage
|
|
1989
|
-
* @permissionScope Manage Stores
|
|
1990
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1991
|
-
* @permissionScope Access Verticals by Automations
|
|
1992
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1993
|
-
* @permissionScope Set Up Automations
|
|
1994
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1995
|
-
* @permissionScope Manage Email Marketing
|
|
1996
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
1997
|
-
* @applicableIdentity APP
|
|
1998
|
-
* @fqn wix.emailmarketing.api.v1.CampaignService.IdentifySenderAddress
|
|
1999
|
-
*/
|
|
2000
|
-
export declare function identifySenderAddress(emailAddress: string): Promise<NonNullablePaths<IdentifySenderAddressResponse, `senderAddress`>>;
|
|
2001
|
-
/**
|
|
2002
|
-
* 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.
|
|
2003
|
-
*
|
|
2004
|
-
* If you provide a link as a placeholder, it's returned in a response as valid.
|
|
2005
|
-
* @param url - URL to validate.
|
|
2006
|
-
* @public
|
|
2007
|
-
* @requiredField url
|
|
2008
|
-
* @permissionId Shoutout.Manage
|
|
2009
|
-
* @permissionScope Manage Stores
|
|
2010
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
2011
|
-
* @permissionScope Access Verticals by Automations
|
|
2012
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
2013
|
-
* @permissionScope Set Up Automations
|
|
2014
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
2015
|
-
* @permissionScope Manage Email Marketing
|
|
2016
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
2017
|
-
* @applicableIdentity APP
|
|
2018
|
-
* @fqn wix.emailmarketing.api.v1.CampaignValidationService.ValidateLink
|
|
2019
|
-
*/
|
|
2020
|
-
export declare function validateLink(url: string): Promise<NonNullablePaths<ValidateLinkResponse, `valid`>>;
|
|
2021
|
-
/**
|
|
2022
|
-
* 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.
|
|
2023
|
-
* @param html - HTML string with links.
|
|
2024
|
-
* @public
|
|
2025
|
-
* @requiredField html
|
|
2026
|
-
* @permissionId Shoutout.Manage
|
|
2027
|
-
* @permissionScope Manage Stores
|
|
2028
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
2029
|
-
* @permissionScope Access Verticals by Automations
|
|
2030
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
2031
|
-
* @permissionScope Set Up Automations
|
|
2032
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
2033
|
-
* @permissionScope Manage Email Marketing
|
|
2034
|
-
* @permissionScopeId SCOPE.DC-PROMOTE.EMAIL-MARKETING
|
|
2035
|
-
* @applicableIdentity APP
|
|
2036
|
-
* @fqn wix.emailmarketing.api.v1.CampaignValidationService.ValidateHtmlLinks
|
|
2037
|
-
*/
|
|
2038
|
-
export declare function validateHtmlLinks(html: string): Promise<NonNullablePaths<ValidateHtmlLinksResponse, `blacklistedLinks`>>;
|
|
2039
|
-
export {};
|