@superdurable/connector-campaignmonitor 0.1.0 → 0.2.0
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/README.md +1 -1
- package/dex-connector.json +1448 -2
- package/dist/chunk-XSS3TJM2.js +1092 -0
- package/dist/connection-8jj_z6ZP.d.ts +777 -0
- package/dist/index.d.ts +1237 -4
- package/dist/index.js +1606 -39
- package/dist/mock.d.ts +441 -3
- package/dist/mock.js +1111 -5
- package/package.json +5 -4
- package/dist/chunk-VKND2LIG.js +0 -103
- package/dist/connection-CcQeWY_i.d.ts +0 -77
|
@@ -0,0 +1,777 @@
|
|
|
1
|
+
import { SecretString, CredentialProvider, Query, Mutation, ConnectionRef } from '@superdurable/connectors-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { Codec } from '@superdurable/dex';
|
|
4
|
+
|
|
5
|
+
/** A signed 64-bit JSON integer. Values outside the safe number range retain their decimal token. */
|
|
6
|
+
type SignedInteger = number | Readonly<{
|
|
7
|
+
rawJSON: string;
|
|
8
|
+
}>;
|
|
9
|
+
/** Decode one signed Go integer from a safe number or a native raw JSON number token. */
|
|
10
|
+
declare function decodeSignedInteger(value: unknown): SignedInteger;
|
|
11
|
+
/** Read provider JSON with the original syntax of every numeric token for typed field validation. */
|
|
12
|
+
declare function parseJSONNumberTokens(text: string): unknown;
|
|
13
|
+
/** Decode JSON while retaining exact decimal tokens for integers outside JavaScript's safe range. */
|
|
14
|
+
declare function parseExactIntegerJSON(text: string): unknown;
|
|
15
|
+
/** JSON-wire codec for records with signed integer fields. An optional decoder validates the application type. */
|
|
16
|
+
declare function exactIntegerJSONCodec<T>(decode?: (value: unknown) => T): Codec<T>;
|
|
17
|
+
/** Connector configuration; omitted fields use manifest defaults. */
|
|
18
|
+
interface Config {
|
|
19
|
+
/** HTTPS Campaign Monitor API v3.3 root. Blank uses the displayed default; override only for a compatible private test endpoint. */
|
|
20
|
+
baseUrl?: string;
|
|
21
|
+
/** Maximum duration of one API request as a positive Go duration such as 15s or 1m. Blank uses the displayed default; increase for slow responses. Runtime value in milliseconds. */
|
|
22
|
+
timeoutMs?: number;
|
|
23
|
+
/** Positive maximum complete API response in bytes. Blank uses the displayed default; increase for accounts with many clients. Oversized responses select invalidResponse. */
|
|
24
|
+
maxResponseBytes?: number;
|
|
25
|
+
}
|
|
26
|
+
/** Runtime schema for manifest configuration. */
|
|
27
|
+
declare const ConfigSchema: z.ZodObject<{
|
|
28
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
29
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
maxResponseBytes: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
/** Private connector credentials resolved by the host. */
|
|
33
|
+
interface Credentials {
|
|
34
|
+
/** Secret API key. Sign in at https://login.createsend.com/l, then open Profile image > Account settings > API keys. Generate or show and copy the full key; blank makes calls select defect. Rotate it on that page when retired. */
|
|
35
|
+
apiKey: SecretString;
|
|
36
|
+
}
|
|
37
|
+
/** Stored credential material that fails the connector credential checks, so no retry can succeed. */
|
|
38
|
+
declare class CredentialMaterialError extends TypeError {
|
|
39
|
+
constructor(message: string);
|
|
40
|
+
}
|
|
41
|
+
/** Report malformed stored credential material, also behind the SDK provider's decoding TypeError. */
|
|
42
|
+
declare function isCredentialMaterialError(error: unknown): boolean;
|
|
43
|
+
/** Decode private credential fields for the connector. */
|
|
44
|
+
declare function decodeCredentials(value: unknown): Credentials;
|
|
45
|
+
/** Host-owned source of private connector credentials. */
|
|
46
|
+
type CredentialSource = CredentialProvider<Credentials>;
|
|
47
|
+
/** ListCampaignsInput selects draft, scheduled, or sent campaigns for a client. */
|
|
48
|
+
interface ListCampaignsInput {
|
|
49
|
+
/** ClientID is returned by ListClients. */
|
|
50
|
+
"clientId": string;
|
|
51
|
+
/** Status is draft, scheduled, or sent; blank uses draft. */
|
|
52
|
+
"status"?: string | undefined;
|
|
53
|
+
/** PageNumber is one-based for sent campaigns; zero uses the first page. */
|
|
54
|
+
"pageNumber"?: SignedInteger | undefined;
|
|
55
|
+
/** PageSize is 1 to 1000 for sent campaigns; zero uses 100. */
|
|
56
|
+
"pageSize"?: SignedInteger | undefined;
|
|
57
|
+
}
|
|
58
|
+
/** CampaignProfile identifies a campaign without sender addresses or content. */
|
|
59
|
+
interface CampaignProfile {
|
|
60
|
+
/** ID is the opaque campaign ID. */
|
|
61
|
+
"id": string;
|
|
62
|
+
/** Name is the campaign's internal name. */
|
|
63
|
+
"name": string;
|
|
64
|
+
/** Subject is the email subject. */
|
|
65
|
+
"subject": string;
|
|
66
|
+
/** Status is draft, scheduled, or sent. */
|
|
67
|
+
"status": string;
|
|
68
|
+
}
|
|
69
|
+
/** CampaignsPage contains campaigns and pagination counts. */
|
|
70
|
+
interface CampaignsPage {
|
|
71
|
+
/** Campaigns are the selected campaign identities. */
|
|
72
|
+
"campaigns": Array<CampaignProfile> | null;
|
|
73
|
+
/** PageNumber is the returned page number. */
|
|
74
|
+
"pageNumber": SignedInteger;
|
|
75
|
+
/** PageSize is the returned page size. */
|
|
76
|
+
"pageSize": SignedInteger;
|
|
77
|
+
/** TotalRecords is the count across all pages. */
|
|
78
|
+
"totalRecords": SignedInteger;
|
|
79
|
+
/** NumberOfPages is the available page count. */
|
|
80
|
+
"numberOfPages": SignedInteger;
|
|
81
|
+
}
|
|
82
|
+
/** GetCampaignSummaryInput selects one sent campaign. */
|
|
83
|
+
interface GetCampaignSummaryInput {
|
|
84
|
+
/** CampaignID is returned by ListCampaigns or CreateDraftCampaign. */
|
|
85
|
+
"campaignId": string;
|
|
86
|
+
}
|
|
87
|
+
/** CampaignSummary contains aggregate sent campaign metrics. */
|
|
88
|
+
interface CampaignSummary {
|
|
89
|
+
/** Name is the campaign's internal name. */
|
|
90
|
+
"name": string;
|
|
91
|
+
/** Recipients is the provider recipient count. */
|
|
92
|
+
"recipients": SignedInteger;
|
|
93
|
+
/** TotalOpened is the total opens reported by the provider. */
|
|
94
|
+
"totalOpened": SignedInteger;
|
|
95
|
+
/** Clicks is the total clicks reported by the provider. */
|
|
96
|
+
"clicks": SignedInteger;
|
|
97
|
+
/** Unsubscribed is the number of unsubscribes. */
|
|
98
|
+
"unsubscribed": SignedInteger;
|
|
99
|
+
}
|
|
100
|
+
/** CreateDraftCampaignInput creates a draft from hosted HTML content. */
|
|
101
|
+
interface CreateDraftCampaignInput {
|
|
102
|
+
/** ClientID is returned by ListClients. */
|
|
103
|
+
"clientId": string;
|
|
104
|
+
/** Name is unique among the client's campaigns. */
|
|
105
|
+
"name": string;
|
|
106
|
+
/** Subject is the nonempty email subject. */
|
|
107
|
+
"subject": string;
|
|
108
|
+
/** FromName is the sender's display name. */
|
|
109
|
+
"fromName": string;
|
|
110
|
+
/** FromEmail is a complete sender email address. */
|
|
111
|
+
"fromEmail": string;
|
|
112
|
+
/** ReplyTo is a complete reply-to email address. */
|
|
113
|
+
"replyTo": string;
|
|
114
|
+
/** HTMLURL is an HTTPS URL for Campaign Monitor to import email HTML. */
|
|
115
|
+
"htmlUrl": string;
|
|
116
|
+
/** ListIDs are recipient list IDs. */
|
|
117
|
+
"listIds"?: Array<string> | undefined;
|
|
118
|
+
/** SegmentIDs are recipient segment IDs. */
|
|
119
|
+
"segmentIds"?: Array<string> | undefined;
|
|
120
|
+
/** InlineCSS overrides the provider's default when nonnil. */
|
|
121
|
+
"inlineCss"?: boolean | undefined;
|
|
122
|
+
}
|
|
123
|
+
/** CampaignIdentity identifies the campaign changed by a Mutation. */
|
|
124
|
+
interface CampaignIdentity {
|
|
125
|
+
/** ID is the opaque campaign ID. */
|
|
126
|
+
"id": string;
|
|
127
|
+
/** Name is known for draft creation; blank for send or deletion. */
|
|
128
|
+
"name": string;
|
|
129
|
+
}
|
|
130
|
+
/** SendCampaignInput sends one draft campaign immediately. */
|
|
131
|
+
interface SendCampaignInput {
|
|
132
|
+
/** ClientID owns the campaign and enables read-back after an unknown send. */
|
|
133
|
+
"clientId": string;
|
|
134
|
+
/** CampaignID is returned by CreateDraftCampaign or ListCampaigns. */
|
|
135
|
+
"campaignId": string;
|
|
136
|
+
/** ConfirmationEmail receives the provider's send confirmation. */
|
|
137
|
+
"confirmationEmail": string;
|
|
138
|
+
/** SendDate is YYYY-MM-DD HH:MM in the client's timezone; blank sends immediately. */
|
|
139
|
+
"sendDate"?: string | undefined;
|
|
140
|
+
}
|
|
141
|
+
/** SendCampaignPreviewInput sends a draft preview to up to five addresses. */
|
|
142
|
+
interface SendCampaignPreviewInput {
|
|
143
|
+
/** CampaignID is returned by CreateDraftCampaign or ListCampaigns. */
|
|
144
|
+
"campaignId": string;
|
|
145
|
+
/** Recipients are one to five complete email addresses. */
|
|
146
|
+
"recipients": Array<string> | null;
|
|
147
|
+
}
|
|
148
|
+
/** UnscheduleCampaignInput selects a scheduled campaign to move to drafts. */
|
|
149
|
+
interface UnscheduleCampaignInput {
|
|
150
|
+
/** CampaignID is returned by ListCampaigns. */
|
|
151
|
+
"campaignId": string;
|
|
152
|
+
}
|
|
153
|
+
/** DeleteCampaignInput selects one campaign for deletion. */
|
|
154
|
+
interface DeleteCampaignInput {
|
|
155
|
+
/** CampaignID is returned by ListCampaigns. */
|
|
156
|
+
"campaignId": string;
|
|
157
|
+
}
|
|
158
|
+
/** ListSegmentsInput selects one list's segments. */
|
|
159
|
+
interface ListSegmentsInput {
|
|
160
|
+
/** ListID is returned by ListSubscriberLists. */
|
|
161
|
+
"listId": string;
|
|
162
|
+
}
|
|
163
|
+
/** SegmentIdentity identifies one segment and its owning list when known. */
|
|
164
|
+
interface SegmentIdentity {
|
|
165
|
+
/** ID is the opaque segment ID. */
|
|
166
|
+
"id": string;
|
|
167
|
+
/** ListID is the owning list ID when known. */
|
|
168
|
+
"listId": string;
|
|
169
|
+
/** Title is the segment title when known. */
|
|
170
|
+
"title": string;
|
|
171
|
+
}
|
|
172
|
+
/** SegmentsList contains segment identities for one list. */
|
|
173
|
+
interface SegmentsList {
|
|
174
|
+
/** Segments are the visible segments in the list. */
|
|
175
|
+
"segments": Array<SegmentIdentity> | null;
|
|
176
|
+
}
|
|
177
|
+
/** GetSegmentInput selects one segment by ID. */
|
|
178
|
+
interface GetSegmentInput {
|
|
179
|
+
/** SegmentID is returned by ListSegments. */
|
|
180
|
+
"segmentId": string;
|
|
181
|
+
}
|
|
182
|
+
/** SegmentRule selects subscribers using a provider rule type and clause. */
|
|
183
|
+
interface SegmentRule {
|
|
184
|
+
/** RuleType is a provider-supported field such as EmailAddress. */
|
|
185
|
+
"ruleType": string;
|
|
186
|
+
/** Clause is a provider expression such as CONTAINS @example.com. */
|
|
187
|
+
"clause": string;
|
|
188
|
+
}
|
|
189
|
+
/** SegmentRuleGroup combines its rules according to Campaign Monitor semantics. */
|
|
190
|
+
interface SegmentRuleGroup {
|
|
191
|
+
/** Rules are nonempty provider rule expressions. */
|
|
192
|
+
"rules": Array<SegmentRule> | null;
|
|
193
|
+
}
|
|
194
|
+
/** SegmentProfile contains a segment's identity, active count, and rules. */
|
|
195
|
+
interface SegmentProfile {
|
|
196
|
+
/** ID is the opaque segment ID. */
|
|
197
|
+
"id": string;
|
|
198
|
+
/** ListID is the owning list ID. */
|
|
199
|
+
"listId": string;
|
|
200
|
+
/** Title is the segment name. */
|
|
201
|
+
"title": string;
|
|
202
|
+
/** ActiveSubscribers is the current provider count. */
|
|
203
|
+
"activeSubscribers": SignedInteger;
|
|
204
|
+
/** RuleGroups are the provider's current rules. */
|
|
205
|
+
"ruleGroups": Array<SegmentRuleGroup> | null;
|
|
206
|
+
}
|
|
207
|
+
/** CreateSegmentInput creates a segment on a subscriber list. */
|
|
208
|
+
interface CreateSegmentInput {
|
|
209
|
+
/** ListID is returned by ListSubscriberLists. */
|
|
210
|
+
"listId": string;
|
|
211
|
+
/** Title is the nonempty segment title. */
|
|
212
|
+
"title": string;
|
|
213
|
+
/** RuleGroups optionally constrain subscribers; nil creates a segment without rules. */
|
|
214
|
+
"ruleGroups"?: Array<SegmentRuleGroup> | undefined;
|
|
215
|
+
}
|
|
216
|
+
/** UpdateSegmentInput replaces the title and optionally all rules. */
|
|
217
|
+
interface UpdateSegmentInput {
|
|
218
|
+
/** SegmentID is returned by ListSegments. */
|
|
219
|
+
"segmentId": string;
|
|
220
|
+
/** Title is the replacement segment title. */
|
|
221
|
+
"title": string;
|
|
222
|
+
/** RuleGroups replaces all rules when nonnil; nil preserves existing rules. */
|
|
223
|
+
"ruleGroups"?: Array<SegmentRuleGroup> | undefined;
|
|
224
|
+
}
|
|
225
|
+
/** DeleteSegmentInput selects a segment for deletion. */
|
|
226
|
+
interface DeleteSegmentInput {
|
|
227
|
+
/** SegmentID is returned by ListSegments. */
|
|
228
|
+
"segmentId": string;
|
|
229
|
+
}
|
|
230
|
+
/** GetListInput selects one subscriber list by ID. */
|
|
231
|
+
interface GetListInput {
|
|
232
|
+
/** ListID is returned by ListSubscriberLists. */
|
|
233
|
+
"listId": string;
|
|
234
|
+
}
|
|
235
|
+
/** ListProfile contains one list's basic settings. */
|
|
236
|
+
interface ListProfile {
|
|
237
|
+
/** ID is the opaque list ID. */
|
|
238
|
+
"id": string;
|
|
239
|
+
/** Title is the list display name. */
|
|
240
|
+
"title": string;
|
|
241
|
+
/** UnsubscribeSetting controls list-wide unsubscribe behavior. */
|
|
242
|
+
"unsubscribeSetting": string;
|
|
243
|
+
/** ConfirmedOptIn reports whether subscriber confirmation is required. */
|
|
244
|
+
"confirmedOptIn": boolean;
|
|
245
|
+
/** UnsubscribePage is the configured unsubscribe landing page. */
|
|
246
|
+
"unsubscribePage"?: string | undefined;
|
|
247
|
+
/** ConfirmationSuccessPage is the configured confirmation landing page. */
|
|
248
|
+
"confirmationSuccessPage"?: string | undefined;
|
|
249
|
+
}
|
|
250
|
+
/** CreateListInput contains the basic settings of a new list. */
|
|
251
|
+
interface CreateListInput {
|
|
252
|
+
/** ClientID is returned by ListClients. */
|
|
253
|
+
"clientId": string;
|
|
254
|
+
/** Title is unique among the client's lists. */
|
|
255
|
+
"title": string;
|
|
256
|
+
/** UnsubscribeSetting is AllClientLists or OnlyThisList. */
|
|
257
|
+
"unsubscribeSetting": string;
|
|
258
|
+
/** ConfirmedOptIn enables double opt-in. */
|
|
259
|
+
"confirmedOptIn": boolean;
|
|
260
|
+
/** UnsubscribePage is an optional HTTPS landing page. */
|
|
261
|
+
"unsubscribePage"?: string | undefined;
|
|
262
|
+
/** ConfirmationSuccessPage is an optional HTTPS confirmation page. */
|
|
263
|
+
"confirmationSuccessPage"?: string | undefined;
|
|
264
|
+
}
|
|
265
|
+
/** ListIdentity identifies the list changed by a Mutation. */
|
|
266
|
+
interface ListIdentity {
|
|
267
|
+
/** ID is the opaque list ID. */
|
|
268
|
+
"id": string;
|
|
269
|
+
/** Title is known for create and update operations; blank for deletion. */
|
|
270
|
+
"title": string;
|
|
271
|
+
}
|
|
272
|
+
/** UpdateListInput replaces one list's basic settings. */
|
|
273
|
+
interface UpdateListInput {
|
|
274
|
+
/** ListID is returned by ListSubscriberLists. */
|
|
275
|
+
"listId": string;
|
|
276
|
+
/** Title is the new nonempty list title. */
|
|
277
|
+
"title": string;
|
|
278
|
+
/** UnsubscribeSetting is AllClientLists or OnlyThisList. */
|
|
279
|
+
"unsubscribeSetting": string;
|
|
280
|
+
/** ConfirmedOptIn enables double opt-in. */
|
|
281
|
+
"confirmedOptIn": boolean;
|
|
282
|
+
/** UnsubscribePage is an optional HTTPS landing page. */
|
|
283
|
+
"unsubscribePage"?: string | undefined;
|
|
284
|
+
/** ConfirmationSuccessPage is an optional HTTPS confirmation page. */
|
|
285
|
+
"confirmationSuccessPage"?: string | undefined;
|
|
286
|
+
}
|
|
287
|
+
/** DeleteListInput selects a list for deletion. */
|
|
288
|
+
interface DeleteListInput {
|
|
289
|
+
/** ListID is returned by ListSubscriberLists. */
|
|
290
|
+
"listId": string;
|
|
291
|
+
}
|
|
292
|
+
/** ListSubscribersInput selects a page of subscribers in one list state. */
|
|
293
|
+
interface ListSubscribersInput {
|
|
294
|
+
/** ListID is an opaque ID from ListSubscriberLists. */
|
|
295
|
+
"listId": string;
|
|
296
|
+
/** State is active, unconfirmed, unsubscribed, bounced, or deleted; blank uses active. */
|
|
297
|
+
"state"?: string | undefined;
|
|
298
|
+
/** PageNumber starts at 1; zero uses the first page. */
|
|
299
|
+
"pageNumber"?: SignedInteger | undefined;
|
|
300
|
+
/** PageSize is 1 to 1000; zero uses 100. */
|
|
301
|
+
"pageSize"?: SignedInteger | undefined;
|
|
302
|
+
}
|
|
303
|
+
/** SubscriberProfile contains a subscriber's non-secret identity and state. */
|
|
304
|
+
interface SubscriberProfile {
|
|
305
|
+
/** Email is the subscriber's email address. */
|
|
306
|
+
"email": string;
|
|
307
|
+
/** Name is the subscriber's display name. */
|
|
308
|
+
"name": string;
|
|
309
|
+
/** State is the provider state, such as Active or Deleted. */
|
|
310
|
+
"state": string;
|
|
311
|
+
}
|
|
312
|
+
/** SubscribersPage contains one page and its pagination counts. */
|
|
313
|
+
interface SubscribersPage {
|
|
314
|
+
/** Subscribers are non-secret subscriber identities in this page. */
|
|
315
|
+
"subscribers": Array<SubscriberProfile> | null;
|
|
316
|
+
/** PageNumber is the returned one-based page number. */
|
|
317
|
+
"pageNumber": SignedInteger;
|
|
318
|
+
/** PageSize is the returned requested page size. */
|
|
319
|
+
"pageSize": SignedInteger;
|
|
320
|
+
/** TotalRecords is the count across pages. */
|
|
321
|
+
"totalRecords": SignedInteger;
|
|
322
|
+
/** NumberOfPages is the available page count. */
|
|
323
|
+
"numberOfPages": SignedInteger;
|
|
324
|
+
}
|
|
325
|
+
/** ListSubscriberListsInput selects one client returned by ListClients. */
|
|
326
|
+
interface ListSubscriberListsInput {
|
|
327
|
+
/** ClientID is an opaque ID from ListClients; blank is invalid. */
|
|
328
|
+
"clientId": string;
|
|
329
|
+
}
|
|
330
|
+
/** SubscriberListIdentity contains a list ID and display name. */
|
|
331
|
+
interface SubscriberListIdentity {
|
|
332
|
+
/** ID is the opaque list ID for subscriber operations. */
|
|
333
|
+
"id": string;
|
|
334
|
+
/** Name is the provider's list name. */
|
|
335
|
+
"name": string;
|
|
336
|
+
}
|
|
337
|
+
/** SubscriberLists contains the lists owned by a client. */
|
|
338
|
+
interface SubscriberLists {
|
|
339
|
+
/** Lists contains all lists visible for the client. */
|
|
340
|
+
"lists": Array<SubscriberListIdentity> | null;
|
|
341
|
+
}
|
|
342
|
+
/** GetSubscriberInput selects one subscriber in a list. */
|
|
343
|
+
interface GetSubscriberInput {
|
|
344
|
+
/** ListID is an opaque ID from ListSubscriberLists. */
|
|
345
|
+
"listId": string;
|
|
346
|
+
/** Email is the complete subscriber email address. */
|
|
347
|
+
"email": string;
|
|
348
|
+
}
|
|
349
|
+
/** UpsertSubscriberInput adds or updates one email address on a list. */
|
|
350
|
+
interface UpsertSubscriberInput {
|
|
351
|
+
/** ListID is an opaque ID from ListSubscriberLists. */
|
|
352
|
+
"listId": string;
|
|
353
|
+
/** Email is the complete subscriber email address. */
|
|
354
|
+
"email": string;
|
|
355
|
+
/** Name is the nonblank subscriber display name. */
|
|
356
|
+
"name": string;
|
|
357
|
+
}
|
|
358
|
+
/** SubscriberIdentity identifies the email address changed by a Mutation. */
|
|
359
|
+
interface SubscriberIdentity {
|
|
360
|
+
/** Email is the subscriber email address used for the write. */
|
|
361
|
+
"email": string;
|
|
362
|
+
}
|
|
363
|
+
/** UpdateSubscriberInput replaces an existing subscriber's name. */
|
|
364
|
+
interface UpdateSubscriberInput {
|
|
365
|
+
/** ListID is an opaque ID from ListSubscriberLists. */
|
|
366
|
+
"listId": string;
|
|
367
|
+
/** Email is the current complete subscriber email address. */
|
|
368
|
+
"email": string;
|
|
369
|
+
/** Name replaces the subscriber's current display name. */
|
|
370
|
+
"name": string;
|
|
371
|
+
}
|
|
372
|
+
/** DeleteSubscriberInput marks a subscriber deleted on one list. */
|
|
373
|
+
interface DeleteSubscriberInput {
|
|
374
|
+
/** ListID is an opaque ID from ListSubscriberLists. */
|
|
375
|
+
"listId": string;
|
|
376
|
+
/** Email is the complete subscriber email address. */
|
|
377
|
+
"email": string;
|
|
378
|
+
}
|
|
379
|
+
/** UnsubscribeSubscriberInput removes one address from campaign delivery. */
|
|
380
|
+
interface UnsubscribeSubscriberInput {
|
|
381
|
+
/** ListID is an opaque ID from ListSubscriberLists. */
|
|
382
|
+
"listId": string;
|
|
383
|
+
/** Email is the complete subscriber email address. */
|
|
384
|
+
"email": string;
|
|
385
|
+
}
|
|
386
|
+
/** ListClientsInput selects the account's accessible clients without filters. */
|
|
387
|
+
interface ListClientsInput {
|
|
388
|
+
}
|
|
389
|
+
/** ClientMetadata identifies one Campaign Monitor client without secrets. */
|
|
390
|
+
interface ClientMetadata {
|
|
391
|
+
/** ID is the provider's client identifier. */
|
|
392
|
+
"id": string;
|
|
393
|
+
/** Name is the client display name. */
|
|
394
|
+
"name": string;
|
|
395
|
+
}
|
|
396
|
+
/** ClientsList contains all returned client identities. */
|
|
397
|
+
interface ClientsList {
|
|
398
|
+
/** Clients is the account's accessible client list. */
|
|
399
|
+
"clients": Array<ClientMetadata> | null;
|
|
400
|
+
}
|
|
401
|
+
/** Runtime validator for ListCampaignsInput. */
|
|
402
|
+
declare const ListCampaignsInputSchema: z.ZodObject<{
|
|
403
|
+
clientId: z.ZodString;
|
|
404
|
+
status: z.ZodOptional<z.ZodString>;
|
|
405
|
+
pageNumber: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
406
|
+
rawJSON: string;
|
|
407
|
+
}>, unknown>>>;
|
|
408
|
+
pageSize: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
409
|
+
rawJSON: string;
|
|
410
|
+
}>, unknown>>>;
|
|
411
|
+
}, z.core.$strict>;
|
|
412
|
+
/** Runtime validator for CampaignProfile. */
|
|
413
|
+
declare const CampaignProfileSchema: z.ZodObject<{
|
|
414
|
+
id: z.ZodString;
|
|
415
|
+
name: z.ZodString;
|
|
416
|
+
subject: z.ZodString;
|
|
417
|
+
status: z.ZodString;
|
|
418
|
+
}, z.core.$strict>;
|
|
419
|
+
/** Runtime validator for CampaignsPage. */
|
|
420
|
+
declare const CampaignsPageSchema: z.ZodObject<{
|
|
421
|
+
campaigns: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
422
|
+
id: z.ZodString;
|
|
423
|
+
name: z.ZodString;
|
|
424
|
+
subject: z.ZodString;
|
|
425
|
+
status: z.ZodString;
|
|
426
|
+
}, z.core.$strict>>>;
|
|
427
|
+
pageNumber: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
428
|
+
rawJSON: string;
|
|
429
|
+
}>, unknown>>;
|
|
430
|
+
pageSize: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
431
|
+
rawJSON: string;
|
|
432
|
+
}>, unknown>>;
|
|
433
|
+
totalRecords: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
434
|
+
rawJSON: string;
|
|
435
|
+
}>, unknown>>;
|
|
436
|
+
numberOfPages: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
437
|
+
rawJSON: string;
|
|
438
|
+
}>, unknown>>;
|
|
439
|
+
}, z.core.$strict>;
|
|
440
|
+
/** Runtime validator for GetCampaignSummaryInput. */
|
|
441
|
+
declare const GetCampaignSummaryInputSchema: z.ZodObject<{
|
|
442
|
+
campaignId: z.ZodString;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
/** Runtime validator for CampaignSummary. */
|
|
445
|
+
declare const CampaignSummarySchema: z.ZodObject<{
|
|
446
|
+
name: z.ZodString;
|
|
447
|
+
recipients: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
448
|
+
rawJSON: string;
|
|
449
|
+
}>, unknown>>;
|
|
450
|
+
totalOpened: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
451
|
+
rawJSON: string;
|
|
452
|
+
}>, unknown>>;
|
|
453
|
+
clicks: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
454
|
+
rawJSON: string;
|
|
455
|
+
}>, unknown>>;
|
|
456
|
+
unsubscribed: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
457
|
+
rawJSON: string;
|
|
458
|
+
}>, unknown>>;
|
|
459
|
+
}, z.core.$strict>;
|
|
460
|
+
/** Runtime validator for CreateDraftCampaignInput. */
|
|
461
|
+
declare const CreateDraftCampaignInputSchema: z.ZodObject<{
|
|
462
|
+
clientId: z.ZodString;
|
|
463
|
+
name: z.ZodString;
|
|
464
|
+
subject: z.ZodString;
|
|
465
|
+
fromName: z.ZodString;
|
|
466
|
+
fromEmail: z.ZodString;
|
|
467
|
+
replyTo: z.ZodString;
|
|
468
|
+
htmlUrl: z.ZodString;
|
|
469
|
+
listIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
470
|
+
segmentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
471
|
+
inlineCss: z.ZodOptional<z.ZodBoolean>;
|
|
472
|
+
}, z.core.$strict>;
|
|
473
|
+
/** Runtime validator for CampaignIdentity. */
|
|
474
|
+
declare const CampaignIdentitySchema: z.ZodObject<{
|
|
475
|
+
id: z.ZodString;
|
|
476
|
+
name: z.ZodString;
|
|
477
|
+
}, z.core.$strict>;
|
|
478
|
+
/** Runtime validator for SendCampaignInput. */
|
|
479
|
+
declare const SendCampaignInputSchema: z.ZodObject<{
|
|
480
|
+
clientId: z.ZodString;
|
|
481
|
+
campaignId: z.ZodString;
|
|
482
|
+
confirmationEmail: z.ZodString;
|
|
483
|
+
sendDate: z.ZodOptional<z.ZodString>;
|
|
484
|
+
}, z.core.$strict>;
|
|
485
|
+
/** Runtime validator for SendCampaignPreviewInput. */
|
|
486
|
+
declare const SendCampaignPreviewInputSchema: z.ZodObject<{
|
|
487
|
+
campaignId: z.ZodString;
|
|
488
|
+
recipients: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
489
|
+
}, z.core.$strict>;
|
|
490
|
+
/** Runtime validator for UnscheduleCampaignInput. */
|
|
491
|
+
declare const UnscheduleCampaignInputSchema: z.ZodObject<{
|
|
492
|
+
campaignId: z.ZodString;
|
|
493
|
+
}, z.core.$strict>;
|
|
494
|
+
/** Runtime validator for DeleteCampaignInput. */
|
|
495
|
+
declare const DeleteCampaignInputSchema: z.ZodObject<{
|
|
496
|
+
campaignId: z.ZodString;
|
|
497
|
+
}, z.core.$strict>;
|
|
498
|
+
/** Runtime validator for ListSegmentsInput. */
|
|
499
|
+
declare const ListSegmentsInputSchema: z.ZodObject<{
|
|
500
|
+
listId: z.ZodString;
|
|
501
|
+
}, z.core.$strict>;
|
|
502
|
+
/** Runtime validator for SegmentIdentity. */
|
|
503
|
+
declare const SegmentIdentitySchema: z.ZodObject<{
|
|
504
|
+
id: z.ZodString;
|
|
505
|
+
listId: z.ZodString;
|
|
506
|
+
title: z.ZodString;
|
|
507
|
+
}, z.core.$strict>;
|
|
508
|
+
/** Runtime validator for SegmentsList. */
|
|
509
|
+
declare const SegmentsListSchema: z.ZodObject<{
|
|
510
|
+
segments: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
511
|
+
id: z.ZodString;
|
|
512
|
+
listId: z.ZodString;
|
|
513
|
+
title: z.ZodString;
|
|
514
|
+
}, z.core.$strict>>>;
|
|
515
|
+
}, z.core.$strict>;
|
|
516
|
+
/** Runtime validator for GetSegmentInput. */
|
|
517
|
+
declare const GetSegmentInputSchema: z.ZodObject<{
|
|
518
|
+
segmentId: z.ZodString;
|
|
519
|
+
}, z.core.$strict>;
|
|
520
|
+
/** Runtime validator for SegmentRule. */
|
|
521
|
+
declare const SegmentRuleSchema: z.ZodObject<{
|
|
522
|
+
ruleType: z.ZodString;
|
|
523
|
+
clause: z.ZodString;
|
|
524
|
+
}, z.core.$strict>;
|
|
525
|
+
/** Runtime validator for SegmentRuleGroup. */
|
|
526
|
+
declare const SegmentRuleGroupSchema: z.ZodObject<{
|
|
527
|
+
rules: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
528
|
+
ruleType: z.ZodString;
|
|
529
|
+
clause: z.ZodString;
|
|
530
|
+
}, z.core.$strict>>>;
|
|
531
|
+
}, z.core.$strict>;
|
|
532
|
+
/** Runtime validator for SegmentProfile. */
|
|
533
|
+
declare const SegmentProfileSchema: z.ZodObject<{
|
|
534
|
+
id: z.ZodString;
|
|
535
|
+
listId: z.ZodString;
|
|
536
|
+
title: z.ZodString;
|
|
537
|
+
activeSubscribers: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
538
|
+
rawJSON: string;
|
|
539
|
+
}>, unknown>>;
|
|
540
|
+
ruleGroups: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
541
|
+
rules: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
542
|
+
ruleType: z.ZodString;
|
|
543
|
+
clause: z.ZodString;
|
|
544
|
+
}, z.core.$strict>>>;
|
|
545
|
+
}, z.core.$strict>>>;
|
|
546
|
+
}, z.core.$strict>;
|
|
547
|
+
/** Runtime validator for CreateSegmentInput. */
|
|
548
|
+
declare const CreateSegmentInputSchema: z.ZodObject<{
|
|
549
|
+
listId: z.ZodString;
|
|
550
|
+
title: z.ZodString;
|
|
551
|
+
ruleGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
552
|
+
rules: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
553
|
+
ruleType: z.ZodString;
|
|
554
|
+
clause: z.ZodString;
|
|
555
|
+
}, z.core.$strict>>>;
|
|
556
|
+
}, z.core.$strict>>>;
|
|
557
|
+
}, z.core.$strict>;
|
|
558
|
+
/** Runtime validator for UpdateSegmentInput. */
|
|
559
|
+
declare const UpdateSegmentInputSchema: z.ZodObject<{
|
|
560
|
+
segmentId: z.ZodString;
|
|
561
|
+
title: z.ZodString;
|
|
562
|
+
ruleGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
563
|
+
rules: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
564
|
+
ruleType: z.ZodString;
|
|
565
|
+
clause: z.ZodString;
|
|
566
|
+
}, z.core.$strict>>>;
|
|
567
|
+
}, z.core.$strict>>>;
|
|
568
|
+
}, z.core.$strict>;
|
|
569
|
+
/** Runtime validator for DeleteSegmentInput. */
|
|
570
|
+
declare const DeleteSegmentInputSchema: z.ZodObject<{
|
|
571
|
+
segmentId: z.ZodString;
|
|
572
|
+
}, z.core.$strict>;
|
|
573
|
+
/** Runtime validator for GetListInput. */
|
|
574
|
+
declare const GetListInputSchema: z.ZodObject<{
|
|
575
|
+
listId: z.ZodString;
|
|
576
|
+
}, z.core.$strict>;
|
|
577
|
+
/** Runtime validator for ListProfile. */
|
|
578
|
+
declare const ListProfileSchema: z.ZodObject<{
|
|
579
|
+
id: z.ZodString;
|
|
580
|
+
title: z.ZodString;
|
|
581
|
+
unsubscribeSetting: z.ZodString;
|
|
582
|
+
confirmedOptIn: z.ZodBoolean;
|
|
583
|
+
unsubscribePage: z.ZodOptional<z.ZodString>;
|
|
584
|
+
confirmationSuccessPage: z.ZodOptional<z.ZodString>;
|
|
585
|
+
}, z.core.$strict>;
|
|
586
|
+
/** Runtime validator for CreateListInput. */
|
|
587
|
+
declare const CreateListInputSchema: z.ZodObject<{
|
|
588
|
+
clientId: z.ZodString;
|
|
589
|
+
title: z.ZodString;
|
|
590
|
+
unsubscribeSetting: z.ZodString;
|
|
591
|
+
confirmedOptIn: z.ZodBoolean;
|
|
592
|
+
unsubscribePage: z.ZodOptional<z.ZodString>;
|
|
593
|
+
confirmationSuccessPage: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, z.core.$strict>;
|
|
595
|
+
/** Runtime validator for ListIdentity. */
|
|
596
|
+
declare const ListIdentitySchema: z.ZodObject<{
|
|
597
|
+
id: z.ZodString;
|
|
598
|
+
title: z.ZodString;
|
|
599
|
+
}, z.core.$strict>;
|
|
600
|
+
/** Runtime validator for UpdateListInput. */
|
|
601
|
+
declare const UpdateListInputSchema: z.ZodObject<{
|
|
602
|
+
listId: z.ZodString;
|
|
603
|
+
title: z.ZodString;
|
|
604
|
+
unsubscribeSetting: z.ZodString;
|
|
605
|
+
confirmedOptIn: z.ZodBoolean;
|
|
606
|
+
unsubscribePage: z.ZodOptional<z.ZodString>;
|
|
607
|
+
confirmationSuccessPage: z.ZodOptional<z.ZodString>;
|
|
608
|
+
}, z.core.$strict>;
|
|
609
|
+
/** Runtime validator for DeleteListInput. */
|
|
610
|
+
declare const DeleteListInputSchema: z.ZodObject<{
|
|
611
|
+
listId: z.ZodString;
|
|
612
|
+
}, z.core.$strict>;
|
|
613
|
+
/** Runtime validator for ListSubscribersInput. */
|
|
614
|
+
declare const ListSubscribersInputSchema: z.ZodObject<{
|
|
615
|
+
listId: z.ZodString;
|
|
616
|
+
state: z.ZodOptional<z.ZodString>;
|
|
617
|
+
pageNumber: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
618
|
+
rawJSON: string;
|
|
619
|
+
}>, unknown>>>;
|
|
620
|
+
pageSize: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
621
|
+
rawJSON: string;
|
|
622
|
+
}>, unknown>>>;
|
|
623
|
+
}, z.core.$strict>;
|
|
624
|
+
/** Runtime validator for SubscriberProfile. */
|
|
625
|
+
declare const SubscriberProfileSchema: z.ZodObject<{
|
|
626
|
+
email: z.ZodString;
|
|
627
|
+
name: z.ZodString;
|
|
628
|
+
state: z.ZodString;
|
|
629
|
+
}, z.core.$strict>;
|
|
630
|
+
/** Runtime validator for SubscribersPage. */
|
|
631
|
+
declare const SubscribersPageSchema: z.ZodObject<{
|
|
632
|
+
subscribers: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
633
|
+
email: z.ZodString;
|
|
634
|
+
name: z.ZodString;
|
|
635
|
+
state: z.ZodString;
|
|
636
|
+
}, z.core.$strict>>>;
|
|
637
|
+
pageNumber: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
638
|
+
rawJSON: string;
|
|
639
|
+
}>, unknown>>;
|
|
640
|
+
pageSize: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
641
|
+
rawJSON: string;
|
|
642
|
+
}>, unknown>>;
|
|
643
|
+
totalRecords: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
644
|
+
rawJSON: string;
|
|
645
|
+
}>, unknown>>;
|
|
646
|
+
numberOfPages: z.ZodPipe<z.ZodUnknown, z.ZodTransform<number | Readonly<{
|
|
647
|
+
rawJSON: string;
|
|
648
|
+
}>, unknown>>;
|
|
649
|
+
}, z.core.$strict>;
|
|
650
|
+
/** Runtime validator for ListSubscriberListsInput. */
|
|
651
|
+
declare const ListSubscriberListsInputSchema: z.ZodObject<{
|
|
652
|
+
clientId: z.ZodString;
|
|
653
|
+
}, z.core.$strict>;
|
|
654
|
+
/** Runtime validator for SubscriberListIdentity. */
|
|
655
|
+
declare const SubscriberListIdentitySchema: z.ZodObject<{
|
|
656
|
+
id: z.ZodString;
|
|
657
|
+
name: z.ZodString;
|
|
658
|
+
}, z.core.$strict>;
|
|
659
|
+
/** Runtime validator for SubscriberLists. */
|
|
660
|
+
declare const SubscriberListsSchema: z.ZodObject<{
|
|
661
|
+
lists: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
662
|
+
id: z.ZodString;
|
|
663
|
+
name: z.ZodString;
|
|
664
|
+
}, z.core.$strict>>>;
|
|
665
|
+
}, z.core.$strict>;
|
|
666
|
+
/** Runtime validator for GetSubscriberInput. */
|
|
667
|
+
declare const GetSubscriberInputSchema: z.ZodObject<{
|
|
668
|
+
listId: z.ZodString;
|
|
669
|
+
email: z.ZodString;
|
|
670
|
+
}, z.core.$strict>;
|
|
671
|
+
/** Runtime validator for UpsertSubscriberInput. */
|
|
672
|
+
declare const UpsertSubscriberInputSchema: z.ZodObject<{
|
|
673
|
+
listId: z.ZodString;
|
|
674
|
+
email: z.ZodString;
|
|
675
|
+
name: z.ZodString;
|
|
676
|
+
}, z.core.$strict>;
|
|
677
|
+
/** Runtime validator for SubscriberIdentity. */
|
|
678
|
+
declare const SubscriberIdentitySchema: z.ZodObject<{
|
|
679
|
+
email: z.ZodString;
|
|
680
|
+
}, z.core.$strict>;
|
|
681
|
+
/** Runtime validator for UpdateSubscriberInput. */
|
|
682
|
+
declare const UpdateSubscriberInputSchema: z.ZodObject<{
|
|
683
|
+
listId: z.ZodString;
|
|
684
|
+
email: z.ZodString;
|
|
685
|
+
name: z.ZodString;
|
|
686
|
+
}, z.core.$strict>;
|
|
687
|
+
/** Runtime validator for DeleteSubscriberInput. */
|
|
688
|
+
declare const DeleteSubscriberInputSchema: z.ZodObject<{
|
|
689
|
+
listId: z.ZodString;
|
|
690
|
+
email: z.ZodString;
|
|
691
|
+
}, z.core.$strict>;
|
|
692
|
+
/** Runtime validator for UnsubscribeSubscriberInput. */
|
|
693
|
+
declare const UnsubscribeSubscriberInputSchema: z.ZodObject<{
|
|
694
|
+
listId: z.ZodString;
|
|
695
|
+
email: z.ZodString;
|
|
696
|
+
}, z.core.$strict>;
|
|
697
|
+
/** Runtime validator for ListClientsInput. */
|
|
698
|
+
declare const ListClientsInputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
699
|
+
/** Runtime validator for ClientMetadata. */
|
|
700
|
+
declare const ClientMetadataSchema: z.ZodObject<{
|
|
701
|
+
id: z.ZodString;
|
|
702
|
+
name: z.ZodString;
|
|
703
|
+
}, z.core.$strict>;
|
|
704
|
+
/** Runtime validator for ClientsList. */
|
|
705
|
+
declare const ClientsListSchema: z.ZodObject<{
|
|
706
|
+
clients: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
707
|
+
id: z.ZodString;
|
|
708
|
+
name: z.ZodString;
|
|
709
|
+
}, z.core.$strict>>>;
|
|
710
|
+
}, z.core.$strict>;
|
|
711
|
+
|
|
712
|
+
/** Typed operations supplied by a client or mock. */
|
|
713
|
+
interface Operations {
|
|
714
|
+
/** Invoke listCampaigns through this connection. */
|
|
715
|
+
listCampaigns(): Query<ListCampaignsInput, CampaignsPage>;
|
|
716
|
+
/** Invoke getCampaignSummary through this connection. */
|
|
717
|
+
getCampaignSummary(): Query<GetCampaignSummaryInput, CampaignSummary>;
|
|
718
|
+
/** Invoke createDraftCampaign through this connection. */
|
|
719
|
+
createDraftCampaign(): Mutation<CreateDraftCampaignInput, CampaignIdentity>;
|
|
720
|
+
/** Invoke sendCampaign through this connection. */
|
|
721
|
+
sendCampaign(): Mutation<SendCampaignInput, CampaignIdentity>;
|
|
722
|
+
/** Invoke sendCampaignPreview through this connection. */
|
|
723
|
+
sendCampaignPreview(): Mutation<SendCampaignPreviewInput, CampaignIdentity>;
|
|
724
|
+
/** Invoke unscheduleCampaign through this connection. */
|
|
725
|
+
unscheduleCampaign(): Mutation<UnscheduleCampaignInput, CampaignIdentity>;
|
|
726
|
+
/** Invoke deleteCampaign through this connection. */
|
|
727
|
+
deleteCampaign(): Mutation<DeleteCampaignInput, CampaignIdentity>;
|
|
728
|
+
/** Invoke listSegments through this connection. */
|
|
729
|
+
listSegments(): Query<ListSegmentsInput, SegmentsList>;
|
|
730
|
+
/** Invoke getSegment through this connection. */
|
|
731
|
+
getSegment(): Query<GetSegmentInput, SegmentProfile>;
|
|
732
|
+
/** Invoke createSegment through this connection. */
|
|
733
|
+
createSegment(): Mutation<CreateSegmentInput, SegmentIdentity>;
|
|
734
|
+
/** Invoke updateSegment through this connection. */
|
|
735
|
+
updateSegment(): Mutation<UpdateSegmentInput, SegmentIdentity>;
|
|
736
|
+
/** Invoke deleteSegment through this connection. */
|
|
737
|
+
deleteSegment(): Mutation<DeleteSegmentInput, SegmentIdentity>;
|
|
738
|
+
/** Invoke getList through this connection. */
|
|
739
|
+
getList(): Query<GetListInput, ListProfile>;
|
|
740
|
+
/** Invoke createList through this connection. */
|
|
741
|
+
createList(): Mutation<CreateListInput, ListIdentity>;
|
|
742
|
+
/** Invoke updateList through this connection. */
|
|
743
|
+
updateList(): Mutation<UpdateListInput, ListIdentity>;
|
|
744
|
+
/** Invoke deleteList through this connection. */
|
|
745
|
+
deleteList(): Mutation<DeleteListInput, ListIdentity>;
|
|
746
|
+
/** Invoke listSubscribers through this connection. */
|
|
747
|
+
listSubscribers(): Query<ListSubscribersInput, SubscribersPage>;
|
|
748
|
+
/** Invoke listSubscriberLists through this connection. */
|
|
749
|
+
listSubscriberLists(): Query<ListSubscriberListsInput, SubscriberLists>;
|
|
750
|
+
/** Invoke getSubscriber through this connection. */
|
|
751
|
+
getSubscriber(): Query<GetSubscriberInput, SubscriberProfile>;
|
|
752
|
+
/** Invoke upsertSubscriber through this connection. */
|
|
753
|
+
upsertSubscriber(): Mutation<UpsertSubscriberInput, SubscriberIdentity>;
|
|
754
|
+
/** Invoke updateSubscriber through this connection. */
|
|
755
|
+
updateSubscriber(): Mutation<UpdateSubscriberInput, SubscriberIdentity>;
|
|
756
|
+
/** Invoke deleteSubscriber through this connection. */
|
|
757
|
+
deleteSubscriber(): Mutation<DeleteSubscriberInput, SubscriberIdentity>;
|
|
758
|
+
/** Invoke unsubscribeSubscriber through this connection. */
|
|
759
|
+
unsubscribeSubscriber(): Mutation<UnsubscribeSubscriberInput, SubscriberIdentity>;
|
|
760
|
+
/** Invoke listClients through this connection. */
|
|
761
|
+
listClients(): Query<ListClientsInput, ClientsList>;
|
|
762
|
+
}
|
|
763
|
+
/** Named connector connection kept outside Flow state. */
|
|
764
|
+
declare class Connection<BoundOperations = Operations> {
|
|
765
|
+
/** Stable provider and connection name. */
|
|
766
|
+
readonly reference: ConnectionRef;
|
|
767
|
+
/** Bound provider operations. */
|
|
768
|
+
readonly operations: BoundOperations;
|
|
769
|
+
/** Validate a reference and bind operations. */
|
|
770
|
+
constructor(reference: ConnectionRef, operations: BoundOperations);
|
|
771
|
+
}
|
|
772
|
+
/** Bind a client to a named connection. */
|
|
773
|
+
declare function newConnection(client: Operations, reference: ConnectionRef): Connection;
|
|
774
|
+
/** Bind scripted operations to a named connection. */
|
|
775
|
+
declare function newConnectionWithOperations(operations: Operations, reference: ConnectionRef): Connection;
|
|
776
|
+
|
|
777
|
+
export { CredentialMaterialError as $, type SendCampaignInput as A, type UnsubscribeSubscriberInput as B, type CreateDraftCampaignInput as C, type DeleteCampaignInput as D, type UpdateListInput as E, type UpdateSegmentInput as F, type GetCampaignSummaryInput as G, type UpdateSubscriberInput as H, type UpsertSubscriberInput as I, type Config as J, type Credentials as K, type ListIdentity as L, CampaignIdentitySchema as M, type CampaignProfile as N, type Operations as O, CampaignProfileSchema as P, CampaignSummarySchema as Q, CampaignsPageSchema as R, type SegmentIdentity as S, type ClientMetadata as T, type UnscheduleCampaignInput as U, ClientMetadataSchema as V, ClientsListSchema as W, ConfigSchema as X, CreateDraftCampaignInputSchema as Y, CreateListInputSchema as Z, CreateSegmentInputSchema as _, type CampaignIdentity as a, type CredentialSource as a0, DeleteCampaignInputSchema as a1, DeleteListInputSchema as a2, DeleteSegmentInputSchema as a3, DeleteSubscriberInputSchema as a4, GetCampaignSummaryInputSchema as a5, GetListInputSchema as a6, GetSegmentInputSchema as a7, GetSubscriberInputSchema as a8, ListCampaignsInputSchema as a9, UpdateSubscriberInputSchema as aA, UpsertSubscriberInputSchema as aB, decodeCredentials as aC, decodeSignedInteger as aD, exactIntegerJSONCodec as aE, isCredentialMaterialError as aF, newConnection as aG, newConnectionWithOperations as aH, parseExactIntegerJSON as aI, parseJSONNumberTokens as aJ, ListClientsInputSchema as aa, ListIdentitySchema as ab, ListProfileSchema as ac, ListSegmentsInputSchema as ad, ListSubscriberListsInputSchema as ae, ListSubscribersInputSchema as af, SegmentIdentitySchema as ag, SegmentProfileSchema as ah, type SegmentRule as ai, type SegmentRuleGroup as aj, SegmentRuleGroupSchema as ak, SegmentRuleSchema as al, SegmentsListSchema as am, SendCampaignInputSchema as an, SendCampaignPreviewInputSchema as ao, type SignedInteger as ap, SubscriberIdentitySchema as aq, type SubscriberListIdentity as ar, SubscriberListIdentitySchema as as, SubscriberListsSchema as at, SubscriberProfileSchema as au, SubscribersPageSchema as av, UnscheduleCampaignInputSchema as aw, UnsubscribeSubscriberInputSchema as ax, UpdateListInputSchema as ay, UpdateSegmentInputSchema as az, Connection as b, type CreateListInput as c, type CreateSegmentInput as d, type DeleteListInput as e, type DeleteSegmentInput as f, type DeleteSubscriberInput as g, type SubscriberIdentity as h, type CampaignSummary as i, type GetListInput as j, type ListProfile as k, type GetSegmentInput as l, type SegmentProfile as m, type GetSubscriberInput as n, type SubscriberProfile as o, type ListCampaignsInput as p, type CampaignsPage as q, type ListClientsInput as r, type ClientsList as s, type ListSegmentsInput as t, type SegmentsList as u, type ListSubscriberListsInput as v, type SubscriberLists as w, type ListSubscribersInput as x, type SubscribersPage as y, type SendCampaignPreviewInput as z };
|