@wix/auto_sdk_email-marketing_campaigns 1.0.17 → 1.0.19
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 +12 -11
- 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/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
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
import { F as GetCampaignRequest$1, H as GetCampaignResponse$1, J as ListCampaignsRequest$1, a as ListCampaignsResponse$1, Z as PublishCampaignRequest$1, b as PublishCampaignResponse$1, aa as SendTestRequest$1, an as SendTestResponse$1, ao as PauseSchedulingRequest$1, ap as PauseSchedulingResponse$1, ar as RescheduleRequest$1, as as RescheduleResponse$1, aB as DeleteCampaignRequest$1, aC as DeleteCampaignResponse$1, aD as ReuseCampaignRequest$1, R as ReuseCampaignResponse$1, aR as GetAudienceRequest$1, c as GetAudienceResponse$1, aT as IdentifySenderAddressRequest$1, I as IdentifySenderAddressResponse$1, bg as ListStatisticsRequest$1, d as ListStatisticsResponse$1, bi as ListRecipientsRequest$1, g as ListRecipientsResponse$1 } from './email-marketing-v1-campaign-campaigns.universal-DhdBwhrW.js';
|
|
2
|
+
|
|
3
|
+
interface Campaign {
|
|
4
|
+
/**
|
|
5
|
+
* Campaign ID.
|
|
6
|
+
* @format GUID
|
|
7
|
+
*/
|
|
8
|
+
campaignId?: string;
|
|
9
|
+
/** Marketing campaign title. If you don't provide the value, the title automatically gets the value of an email subject. */
|
|
10
|
+
title?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* URL of the first image after the logo.
|
|
13
|
+
* @format WEB_URL
|
|
14
|
+
*/
|
|
15
|
+
firstImageUrl?: string | null;
|
|
16
|
+
/** Editor type. */
|
|
17
|
+
editorType?: CampaignEditorTypeEnumWithLiterals;
|
|
18
|
+
/** Campaign status. */
|
|
19
|
+
status?: CampaignStatusEnumWithLiterals;
|
|
20
|
+
/** Campaign visibility status. */
|
|
21
|
+
visibilityStatus?: CampaignVisibilityStatusEnumWithLiterals;
|
|
22
|
+
/** Campaign distribution status. */
|
|
23
|
+
distributionStatus?: EnumWithLiterals;
|
|
24
|
+
/** Publishing data. The field is returned empty if the campaign isn't published. */
|
|
25
|
+
publishingData?: PublishingData;
|
|
26
|
+
/** Date and time when the campaign was created. */
|
|
27
|
+
dateCreated?: Date | null;
|
|
28
|
+
/** Date and time when the campaign was updated. */
|
|
29
|
+
dateUpdated?: Date | null;
|
|
30
|
+
/**
|
|
31
|
+
* Email subject of the campaign (initially copied from the template).
|
|
32
|
+
* @maxLength 1000
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
35
|
+
emailSubject?: string;
|
|
36
|
+
}
|
|
37
|
+
declare enum CampaignEditorTypeEnum {
|
|
38
|
+
/** Unknown editor. This value isn't used. */
|
|
39
|
+
UNKNOWN = "UNKNOWN",
|
|
40
|
+
/** Classic web editor. */
|
|
41
|
+
WEB = "WEB",
|
|
42
|
+
/** Classic mobile editor. */
|
|
43
|
+
MOBILE = "MOBILE",
|
|
44
|
+
/** Chat (AI) based web editor. */
|
|
45
|
+
MJML = "MJML"
|
|
46
|
+
}
|
|
47
|
+
/** @enumType */
|
|
48
|
+
type CampaignEditorTypeEnumWithLiterals = CampaignEditorTypeEnum | 'UNKNOWN' | 'WEB' | 'MOBILE' | 'MJML';
|
|
49
|
+
declare enum CampaignStatusEnum {
|
|
50
|
+
/** Unknown campaign. This value isn't used. */
|
|
51
|
+
UNKNOWN = "UNKNOWN",
|
|
52
|
+
/** Campaign is active. */
|
|
53
|
+
ACTIVE = "ACTIVE",
|
|
54
|
+
/** Campaign is archived. */
|
|
55
|
+
ARCHIVED = "ARCHIVED",
|
|
56
|
+
/** Campaign is deleted. */
|
|
57
|
+
DELETED = "DELETED"
|
|
58
|
+
}
|
|
59
|
+
/** @enumType */
|
|
60
|
+
type CampaignStatusEnumWithLiterals = CampaignStatusEnum | 'UNKNOWN' | 'ACTIVE' | 'ARCHIVED' | 'DELETED';
|
|
61
|
+
declare enum CampaignVisibilityStatusEnum {
|
|
62
|
+
/** Unknown status. This value isn't used. */
|
|
63
|
+
UNKNOWN = "UNKNOWN",
|
|
64
|
+
/** Campaign isn't published yet. */
|
|
65
|
+
DRAFT = "DRAFT",
|
|
66
|
+
/** Campaign is published. */
|
|
67
|
+
PUBLISHED = "PUBLISHED",
|
|
68
|
+
/** Campaign is a template. */
|
|
69
|
+
TEMPLATE = "TEMPLATE"
|
|
70
|
+
}
|
|
71
|
+
/** @enumType */
|
|
72
|
+
type CampaignVisibilityStatusEnumWithLiterals = CampaignVisibilityStatusEnum | 'UNKNOWN' | 'DRAFT' | 'PUBLISHED' | 'TEMPLATE';
|
|
73
|
+
declare enum Enum {
|
|
74
|
+
/** Unknown distribution status. */
|
|
75
|
+
UNKNOWN = "UNKNOWN",
|
|
76
|
+
/** Campaign isn't distributed to recipients yet. */
|
|
77
|
+
NOT_STARTED = "NOT_STARTED",
|
|
78
|
+
/** Campaign is scheduled for distribution. */
|
|
79
|
+
SCHEDULED = "SCHEDULED",
|
|
80
|
+
/** Campaign is in screening for malicious content. */
|
|
81
|
+
IN_DETECTION = "IN_DETECTION",
|
|
82
|
+
/** Campaign is in review by the site moderators. */
|
|
83
|
+
IN_MODERATION = "IN_MODERATION",
|
|
84
|
+
/** Several recipients are selected for campaign testing, and campaign is sent out to them. */
|
|
85
|
+
SAMPLING = "SAMPLING",
|
|
86
|
+
/** Campaign is being sent out to all recipients. */
|
|
87
|
+
SENDING = "SENDING",
|
|
88
|
+
/** Campaign is rejected. */
|
|
89
|
+
REJECTED = "REJECTED",
|
|
90
|
+
/** Campaign is terminated after a failed sampling test. */
|
|
91
|
+
TERMINATED = "TERMINATED",
|
|
92
|
+
/** Campaign is fully distributed to all recipients. */
|
|
93
|
+
DISTRIBUTED = "DISTRIBUTED",
|
|
94
|
+
/** Scheduled campaign is paused. */
|
|
95
|
+
PAUSED = "PAUSED"
|
|
96
|
+
}
|
|
97
|
+
/** @enumType */
|
|
98
|
+
type EnumWithLiterals = Enum | 'UNKNOWN' | 'NOT_STARTED' | 'SCHEDULED' | 'IN_DETECTION' | 'IN_MODERATION' | 'SAMPLING' | 'SENDING' | 'REJECTED' | 'TERMINATED' | 'DISTRIBUTED' | 'PAUSED';
|
|
99
|
+
interface PublishingData {
|
|
100
|
+
/**
|
|
101
|
+
* Landing page URL.
|
|
102
|
+
* @format WEB_URL
|
|
103
|
+
*/
|
|
104
|
+
landingPageUrl?: string;
|
|
105
|
+
/** Marketing campaign statistics. */
|
|
106
|
+
statistics?: CampaignStatistics;
|
|
107
|
+
/** Marketing campaign publish date. */
|
|
108
|
+
datePublished?: Date | null;
|
|
109
|
+
}
|
|
110
|
+
interface CampaignStatistics {
|
|
111
|
+
/** Landing page statistics of a marketing campaign. */
|
|
112
|
+
landingPage?: LandingPageStatistics;
|
|
113
|
+
/** Email distribution statistics of a marketing campaign. */
|
|
114
|
+
emailCampaign?: DistributionStatistics;
|
|
115
|
+
/** Combined statistics of landing page and email distribution. */
|
|
116
|
+
total?: TotalStatistics;
|
|
117
|
+
}
|
|
118
|
+
interface LandingPageStatistics {
|
|
119
|
+
/** Number of times when a landing page was loaded or viewed. */
|
|
120
|
+
opened?: number;
|
|
121
|
+
/** Number of times a link was clicked in a landing page. */
|
|
122
|
+
clicked?: number;
|
|
123
|
+
}
|
|
124
|
+
interface DistributionStatistics {
|
|
125
|
+
/** Number of delivered emails. */
|
|
126
|
+
delivered?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Number of recipients who opened an email.
|
|
129
|
+
*
|
|
130
|
+
* If the same recipient opened the same email twice, it is counted as a one unique open.
|
|
131
|
+
*/
|
|
132
|
+
opened?: number;
|
|
133
|
+
/**
|
|
134
|
+
* Number of recipients who clicked a link in the email.
|
|
135
|
+
*
|
|
136
|
+
* If the same recipient clicked the same link twice, it is counted as a one unique click.
|
|
137
|
+
*
|
|
138
|
+
* If the same recipient clicked different links, it is counted as a one unique click.
|
|
139
|
+
*/
|
|
140
|
+
clicked?: number;
|
|
141
|
+
/** Number of emails that didn't reach the recipient. */
|
|
142
|
+
bounced?: number;
|
|
143
|
+
/** Number of recipients who reported the email as a spam. */
|
|
144
|
+
complained?: number;
|
|
145
|
+
/** Number of emails that weren't sent due to the campaign termination. */
|
|
146
|
+
notSent?: number;
|
|
147
|
+
}
|
|
148
|
+
interface TotalStatistics {
|
|
149
|
+
/** Total number of emails sent. */
|
|
150
|
+
mailsSent?: number;
|
|
151
|
+
/** Number of landing page views and opened emails. */
|
|
152
|
+
opened?: number;
|
|
153
|
+
/** Number of landing page and email link clicks. */
|
|
154
|
+
clicked?: number;
|
|
155
|
+
}
|
|
156
|
+
interface GetCampaignRequest {
|
|
157
|
+
/**
|
|
158
|
+
* Campaign ID.
|
|
159
|
+
* @format GUID
|
|
160
|
+
*/
|
|
161
|
+
campaignId: string;
|
|
162
|
+
/**
|
|
163
|
+
* Whether a returned campaign should include `publishingData.statistics`.
|
|
164
|
+
*
|
|
165
|
+
* Default: `false`.
|
|
166
|
+
*/
|
|
167
|
+
optionIncludeStatistics?: boolean;
|
|
168
|
+
}
|
|
169
|
+
interface GetCampaignResponse {
|
|
170
|
+
/** Campaign information. */
|
|
171
|
+
campaign?: Campaign;
|
|
172
|
+
}
|
|
173
|
+
interface ListCampaignsRequest {
|
|
174
|
+
/** Paging parameters. */
|
|
175
|
+
paging?: Paging;
|
|
176
|
+
/**
|
|
177
|
+
* Whether to include `publishingData.statistics` in the returned campaign object.
|
|
178
|
+
*
|
|
179
|
+
* Default: `false`.
|
|
180
|
+
*/
|
|
181
|
+
optionIncludeStatistics?: boolean;
|
|
182
|
+
/** Campaign status. */
|
|
183
|
+
statuses?: CampaignStatusEnumWithLiterals[];
|
|
184
|
+
/** Visibility status. */
|
|
185
|
+
visibilityStatuses?: CampaignVisibilityStatusEnumWithLiterals[];
|
|
186
|
+
}
|
|
187
|
+
interface Paging {
|
|
188
|
+
/** Number of items to load. */
|
|
189
|
+
limit?: number | null;
|
|
190
|
+
/** Number of items to skip in the current sort order. */
|
|
191
|
+
offset?: number | null;
|
|
192
|
+
}
|
|
193
|
+
interface ListCampaignsResponse {
|
|
194
|
+
/** Paging parameters. */
|
|
195
|
+
paging?: Paging;
|
|
196
|
+
/** List of campaigns. */
|
|
197
|
+
campaigns?: Campaign[];
|
|
198
|
+
}
|
|
199
|
+
interface PublishCampaignRequest {
|
|
200
|
+
/**
|
|
201
|
+
* Campaign ID
|
|
202
|
+
* @format GUID
|
|
203
|
+
*/
|
|
204
|
+
campaignId: string;
|
|
205
|
+
/** Email distribution options. Pass this object in the request if you need to distribute your marketing campaign with emails. */
|
|
206
|
+
emailDistributionOptions?: EmailDistributionOptions;
|
|
207
|
+
}
|
|
208
|
+
interface EmailDistributionOptions {
|
|
209
|
+
/**
|
|
210
|
+
* The subject line for the email campaign, which appears in recipients’ inboxes.
|
|
211
|
+
* @maxLength 1000
|
|
212
|
+
*/
|
|
213
|
+
emailSubject?: string | null;
|
|
214
|
+
/** Contact label IDs. */
|
|
215
|
+
labelIds?: string[];
|
|
216
|
+
/**
|
|
217
|
+
* IDs of contacts to whom to send out the campaign.
|
|
218
|
+
* @format GUID
|
|
219
|
+
*/
|
|
220
|
+
contactIds?: string[];
|
|
221
|
+
/**
|
|
222
|
+
* Filter ids to send campaign to (unsupported).
|
|
223
|
+
* @format GUID
|
|
224
|
+
* @deprecated Filter ids to send campaign to (unsupported).
|
|
225
|
+
* @replacedBy contacts_filter
|
|
226
|
+
* @targetRemovalDate 2023-10-10
|
|
227
|
+
*/
|
|
228
|
+
filterIds?: string[];
|
|
229
|
+
/** 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. */
|
|
230
|
+
sendAt?: Date | null;
|
|
231
|
+
}
|
|
232
|
+
interface PublishCampaignResponse {
|
|
233
|
+
/** Publishing info. */
|
|
234
|
+
publishingData?: PublishingData;
|
|
235
|
+
}
|
|
236
|
+
interface SendTestRequest {
|
|
237
|
+
/**
|
|
238
|
+
* Campaign ID.
|
|
239
|
+
* @format GUID
|
|
240
|
+
*/
|
|
241
|
+
campaignId: string;
|
|
242
|
+
/**
|
|
243
|
+
* Email subject.
|
|
244
|
+
* @maxLength 1000
|
|
245
|
+
*/
|
|
246
|
+
emailSubject?: string | null;
|
|
247
|
+
/**
|
|
248
|
+
* Recipient email address.
|
|
249
|
+
* @format EMAIL
|
|
250
|
+
*/
|
|
251
|
+
toEmailAddress: string;
|
|
252
|
+
}
|
|
253
|
+
interface SendTestResponse {
|
|
254
|
+
}
|
|
255
|
+
interface PauseSchedulingRequest {
|
|
256
|
+
/**
|
|
257
|
+
* Campaign ID.
|
|
258
|
+
* @format GUID
|
|
259
|
+
*/
|
|
260
|
+
campaignId: string;
|
|
261
|
+
}
|
|
262
|
+
interface PauseSchedulingResponse {
|
|
263
|
+
}
|
|
264
|
+
interface RescheduleRequest {
|
|
265
|
+
/**
|
|
266
|
+
* ID of the campaign to reschedule.
|
|
267
|
+
* @format GUID
|
|
268
|
+
*/
|
|
269
|
+
campaignId: string;
|
|
270
|
+
/** New time for sending out the campaign. */
|
|
271
|
+
sendAt: Date | null;
|
|
272
|
+
}
|
|
273
|
+
interface RescheduleResponse {
|
|
274
|
+
}
|
|
275
|
+
interface DeleteCampaignRequest {
|
|
276
|
+
/**
|
|
277
|
+
* Campaign ID.
|
|
278
|
+
* @format GUID
|
|
279
|
+
*/
|
|
280
|
+
campaignId: string;
|
|
281
|
+
}
|
|
282
|
+
interface DeleteCampaignResponse {
|
|
283
|
+
}
|
|
284
|
+
interface ReuseCampaignRequest {
|
|
285
|
+
/**
|
|
286
|
+
* ID of the message to be duplicated.
|
|
287
|
+
* @format GUID
|
|
288
|
+
*/
|
|
289
|
+
campaignId: string;
|
|
290
|
+
}
|
|
291
|
+
interface ReuseCampaignResponse {
|
|
292
|
+
/** Campaign information. */
|
|
293
|
+
campaign?: Campaign;
|
|
294
|
+
}
|
|
295
|
+
interface GetAudienceRequest {
|
|
296
|
+
/**
|
|
297
|
+
* Campaign ID.
|
|
298
|
+
* @format GUID
|
|
299
|
+
*/
|
|
300
|
+
campaignId: string;
|
|
301
|
+
}
|
|
302
|
+
interface GetAudienceResponse {
|
|
303
|
+
/** Campaign audience. */
|
|
304
|
+
audience?: CampaignAudience;
|
|
305
|
+
}
|
|
306
|
+
interface CampaignAudience {
|
|
307
|
+
/**
|
|
308
|
+
* IDs of contacts to whom to send the campaign.
|
|
309
|
+
* @format GUID
|
|
310
|
+
* @maxSize 100
|
|
311
|
+
*/
|
|
312
|
+
contactIds?: string[];
|
|
313
|
+
/**
|
|
314
|
+
* Labels IDs.
|
|
315
|
+
* @maxLength 100
|
|
316
|
+
* @maxSize 20
|
|
317
|
+
*/
|
|
318
|
+
labelIds?: string[];
|
|
319
|
+
/**
|
|
320
|
+
* Segment IDs.
|
|
321
|
+
* @format GUID
|
|
322
|
+
* @maxSize 20
|
|
323
|
+
*/
|
|
324
|
+
segmentIds?: string[];
|
|
325
|
+
/** Filter for contacts in JSON format. */
|
|
326
|
+
contactsFilter?: Record<string, any> | null;
|
|
327
|
+
/**
|
|
328
|
+
* Contacts plain text search expression (searches in name, phone and email fields).
|
|
329
|
+
* @minLength 1
|
|
330
|
+
* @maxLength 100
|
|
331
|
+
*/
|
|
332
|
+
contactsSearchTerm?: string | null;
|
|
333
|
+
/** Should "inactive" contacts be excluded or not. */
|
|
334
|
+
activeContactsOnly?: boolean;
|
|
335
|
+
}
|
|
336
|
+
interface IdentifySenderAddressRequest {
|
|
337
|
+
/**
|
|
338
|
+
* Email address to verify.
|
|
339
|
+
* @format EMAIL
|
|
340
|
+
* @minLength 6
|
|
341
|
+
* @maxLength 254
|
|
342
|
+
*/
|
|
343
|
+
emailAddress: string;
|
|
344
|
+
}
|
|
345
|
+
interface IdentifySenderAddressResponse {
|
|
346
|
+
/**
|
|
347
|
+
* Actual "from" address that will be used for sending emails.
|
|
348
|
+
* @format EMAIL
|
|
349
|
+
* @minLength 6
|
|
350
|
+
* @maxLength 254
|
|
351
|
+
*/
|
|
352
|
+
senderAddress?: string;
|
|
353
|
+
}
|
|
354
|
+
interface ListStatisticsRequest {
|
|
355
|
+
/**
|
|
356
|
+
* IDs of the campaigns to retrieve (max 100 campaigns).
|
|
357
|
+
* @format GUID
|
|
358
|
+
* @minSize 1
|
|
359
|
+
* @maxSize 100
|
|
360
|
+
*/
|
|
361
|
+
campaignIds: string[];
|
|
362
|
+
}
|
|
363
|
+
interface ListStatisticsResponse {
|
|
364
|
+
/** List of statistics. */
|
|
365
|
+
statistics?: CampaignStatisticsContainer[];
|
|
366
|
+
}
|
|
367
|
+
interface CampaignStatisticsContainer {
|
|
368
|
+
/**
|
|
369
|
+
* Campaign ID.
|
|
370
|
+
* @format GUID
|
|
371
|
+
*/
|
|
372
|
+
campaignId?: string;
|
|
373
|
+
/** Landing page statistics. */
|
|
374
|
+
landingPage?: LandingPageStatistics;
|
|
375
|
+
/** Email campaign statistics. */
|
|
376
|
+
email?: DistributionStatistics;
|
|
377
|
+
}
|
|
378
|
+
interface ListRecipientsRequest {
|
|
379
|
+
/**
|
|
380
|
+
* Campaign ID.
|
|
381
|
+
* @format GUID
|
|
382
|
+
*/
|
|
383
|
+
campaignId: string;
|
|
384
|
+
/** Email activity to filter. */
|
|
385
|
+
activity: RecipientsActivityEnumWithLiterals;
|
|
386
|
+
/** Pagination options. */
|
|
387
|
+
paging?: CursorPaging;
|
|
388
|
+
}
|
|
389
|
+
declare enum RecipientsActivityEnum {
|
|
390
|
+
UNKNOWN = "UNKNOWN",
|
|
391
|
+
DELIVERED = "DELIVERED",
|
|
392
|
+
OPENED = "OPENED",
|
|
393
|
+
CLICKED = "CLICKED",
|
|
394
|
+
BOUNCED = "BOUNCED",
|
|
395
|
+
NOT_SENT = "NOT_SENT",
|
|
396
|
+
SENT = "SENT",
|
|
397
|
+
NOT_OPENED = "NOT_OPENED"
|
|
398
|
+
}
|
|
399
|
+
/** @enumType */
|
|
400
|
+
type RecipientsActivityEnumWithLiterals = RecipientsActivityEnum | 'UNKNOWN' | 'DELIVERED' | 'OPENED' | 'CLICKED' | 'BOUNCED' | 'NOT_SENT' | 'SENT' | 'NOT_OPENED';
|
|
401
|
+
interface CursorPaging {
|
|
402
|
+
/**
|
|
403
|
+
* Number of items to load.
|
|
404
|
+
* @max 1000
|
|
405
|
+
*/
|
|
406
|
+
limit?: number | null;
|
|
407
|
+
/**
|
|
408
|
+
* Pointer to the next or previous page in the list of results.
|
|
409
|
+
*
|
|
410
|
+
* You can get the relevant cursor token
|
|
411
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
412
|
+
* Not relevant for the first request.
|
|
413
|
+
* @maxLength 1000
|
|
414
|
+
*/
|
|
415
|
+
cursor?: string | null;
|
|
416
|
+
}
|
|
417
|
+
interface ListRecipientsResponse {
|
|
418
|
+
/** List of recipients. */
|
|
419
|
+
recipients?: CampaignRecipientDetails[];
|
|
420
|
+
/** Details on the paged set of returned results. */
|
|
421
|
+
pagingMetadata?: PagingMetadataV2;
|
|
422
|
+
}
|
|
423
|
+
interface CampaignRecipientDetails {
|
|
424
|
+
/**
|
|
425
|
+
* Contact ID.
|
|
426
|
+
* @format GUID
|
|
427
|
+
*/
|
|
428
|
+
contactId?: string;
|
|
429
|
+
/** Date and time of the last activity. */
|
|
430
|
+
lastActivityDate?: Date | null;
|
|
431
|
+
/**
|
|
432
|
+
* Primary email address of the contact.
|
|
433
|
+
* @format EMAIL
|
|
434
|
+
*/
|
|
435
|
+
emailAddress?: string;
|
|
436
|
+
/**
|
|
437
|
+
* Full name of the contact (optional).
|
|
438
|
+
* @maxLength 100
|
|
439
|
+
*/
|
|
440
|
+
fullName?: string | null;
|
|
441
|
+
/** Is this contact currently deleted from the site or not. */
|
|
442
|
+
contactDeleted?: boolean;
|
|
443
|
+
}
|
|
444
|
+
interface PagingMetadataV2 {
|
|
445
|
+
/** Number of items returned in the response. */
|
|
446
|
+
count?: number | null;
|
|
447
|
+
/** Offset that was requested. */
|
|
448
|
+
offset?: number | null;
|
|
449
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
450
|
+
total?: number | null;
|
|
451
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
452
|
+
tooManyToCount?: boolean | null;
|
|
453
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
454
|
+
cursors?: Cursors;
|
|
455
|
+
}
|
|
456
|
+
interface Cursors {
|
|
457
|
+
/**
|
|
458
|
+
* Cursor string pointing to the next page in the list of results.
|
|
459
|
+
* @maxLength 16000
|
|
460
|
+
*/
|
|
461
|
+
next?: string | null;
|
|
462
|
+
/**
|
|
463
|
+
* Cursor pointing to the previous page in the list of results.
|
|
464
|
+
* @maxLength 16000
|
|
465
|
+
*/
|
|
466
|
+
prev?: string | null;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
470
|
+
getUrl: (context: any) => string;
|
|
471
|
+
httpMethod: K;
|
|
472
|
+
path: string;
|
|
473
|
+
pathParams: M;
|
|
474
|
+
__requestType: T;
|
|
475
|
+
__originalRequestType: S;
|
|
476
|
+
__responseType: Q;
|
|
477
|
+
__originalResponseType: R;
|
|
478
|
+
};
|
|
479
|
+
declare function getCampaign(): __PublicMethodMetaInfo<'GET', {
|
|
480
|
+
campaignId: string;
|
|
481
|
+
}, GetCampaignRequest$1, GetCampaignRequest, GetCampaignResponse$1, GetCampaignResponse>;
|
|
482
|
+
declare function listCampaigns(): __PublicMethodMetaInfo<'GET', {}, ListCampaignsRequest$1, ListCampaignsRequest, ListCampaignsResponse$1, ListCampaignsResponse>;
|
|
483
|
+
declare function publishCampaign(): __PublicMethodMetaInfo<'POST', {
|
|
484
|
+
campaignId: string;
|
|
485
|
+
}, PublishCampaignRequest$1, PublishCampaignRequest, PublishCampaignResponse$1, PublishCampaignResponse>;
|
|
486
|
+
declare function sendTest(): __PublicMethodMetaInfo<'POST', {
|
|
487
|
+
campaignId: string;
|
|
488
|
+
}, SendTestRequest$1, SendTestRequest, SendTestResponse$1, SendTestResponse>;
|
|
489
|
+
declare function pauseScheduling(): __PublicMethodMetaInfo<'POST', {
|
|
490
|
+
campaignId: string;
|
|
491
|
+
}, PauseSchedulingRequest$1, PauseSchedulingRequest, PauseSchedulingResponse$1, PauseSchedulingResponse>;
|
|
492
|
+
declare function reschedule(): __PublicMethodMetaInfo<'POST', {
|
|
493
|
+
campaignId: string;
|
|
494
|
+
}, RescheduleRequest$1, RescheduleRequest, RescheduleResponse$1, RescheduleResponse>;
|
|
495
|
+
declare function deleteCampaign(): __PublicMethodMetaInfo<'DELETE', {
|
|
496
|
+
campaignId: string;
|
|
497
|
+
}, DeleteCampaignRequest$1, DeleteCampaignRequest, DeleteCampaignResponse$1, DeleteCampaignResponse>;
|
|
498
|
+
declare function reuseCampaign(): __PublicMethodMetaInfo<'POST', {
|
|
499
|
+
campaignId: string;
|
|
500
|
+
}, ReuseCampaignRequest$1, ReuseCampaignRequest, ReuseCampaignResponse$1, ReuseCampaignResponse>;
|
|
501
|
+
declare function getAudience(): __PublicMethodMetaInfo<'POST', {
|
|
502
|
+
campaignId: string;
|
|
503
|
+
}, GetAudienceRequest$1, GetAudienceRequest, GetAudienceResponse$1, GetAudienceResponse>;
|
|
504
|
+
declare function identifySenderAddress(): __PublicMethodMetaInfo<'POST', {}, IdentifySenderAddressRequest$1, IdentifySenderAddressRequest, IdentifySenderAddressResponse$1, IdentifySenderAddressResponse>;
|
|
505
|
+
declare function listStatistics(): __PublicMethodMetaInfo<'GET', {}, ListStatisticsRequest$1, ListStatisticsRequest, ListStatisticsResponse$1, ListStatisticsResponse>;
|
|
506
|
+
declare function listRecipients(): __PublicMethodMetaInfo<'GET', {
|
|
507
|
+
campaignId: string;
|
|
508
|
+
}, ListRecipientsRequest$1, ListRecipientsRequest, ListRecipientsResponse$1, ListRecipientsResponse>;
|
|
509
|
+
|
|
510
|
+
export { type __PublicMethodMetaInfo, deleteCampaign, getAudience, getCampaign, identifySenderAddress, listCampaigns, listRecipients, listStatistics, pauseScheduling, publishCampaign, reschedule, reuseCampaign, sendTest };
|