@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
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as ListClientsInput,
|
|
2
|
-
export {
|
|
3
|
-
import { QueryDefinition, QueryStepConfig, Query, QueryResult,
|
|
1
|
+
import { C as CreateDraftCampaignInput, a as CampaignIdentity, b as Connection, c as CreateListInput, L as ListIdentity, d as CreateSegmentInput, S as SegmentIdentity, D as DeleteCampaignInput, e as DeleteListInput, f as DeleteSegmentInput, g as DeleteSubscriberInput, h as SubscriberIdentity, G as GetCampaignSummaryInput, i as CampaignSummary, j as GetListInput, k as ListProfile, l as GetSegmentInput, m as SegmentProfile, n as GetSubscriberInput, o as SubscriberProfile, p as ListCampaignsInput, q as CampaignsPage, r as ListClientsInput, s as ClientsList, t as ListSegmentsInput, u as SegmentsList, v as ListSubscriberListsInput, w as SubscriberLists, x as ListSubscribersInput, y as SubscribersPage, z as SendCampaignPreviewInput, A as SendCampaignInput, U as UnscheduleCampaignInput, B as UnsubscribeSubscriberInput, E as UpdateListInput, F as UpdateSegmentInput, H as UpdateSubscriberInput, I as UpsertSubscriberInput, O as Operations, J as Config, K as Credentials } from './connection-8jj_z6ZP.js';
|
|
2
|
+
export { M as CampaignIdentitySchema, N as CampaignProfile, P as CampaignProfileSchema, Q as CampaignSummarySchema, R as CampaignsPageSchema, T as ClientMetadata, V as ClientMetadataSchema, W as ClientsListSchema, X as ConfigSchema, Y as CreateDraftCampaignInputSchema, Z as CreateListInputSchema, _ as CreateSegmentInputSchema, $ as CredentialMaterialError, a0 as CredentialSource, a1 as DeleteCampaignInputSchema, a2 as DeleteListInputSchema, a3 as DeleteSegmentInputSchema, a4 as DeleteSubscriberInputSchema, a5 as GetCampaignSummaryInputSchema, a6 as GetListInputSchema, a7 as GetSegmentInputSchema, a8 as GetSubscriberInputSchema, a9 as ListCampaignsInputSchema, aa as ListClientsInputSchema, ab as ListIdentitySchema, ac as ListProfileSchema, ad as ListSegmentsInputSchema, ae as ListSubscriberListsInputSchema, af as ListSubscribersInputSchema, ag as SegmentIdentitySchema, ah as SegmentProfileSchema, ai as SegmentRule, aj as SegmentRuleGroup, ak as SegmentRuleGroupSchema, al as SegmentRuleSchema, am as SegmentsListSchema, an as SendCampaignInputSchema, ao as SendCampaignPreviewInputSchema, ap as SignedInteger, aq as SubscriberIdentitySchema, ar as SubscriberListIdentity, as as SubscriberListIdentitySchema, at as SubscriberListsSchema, au as SubscriberProfileSchema, av as SubscribersPageSchema, aw as UnscheduleCampaignInputSchema, ax as UnsubscribeSubscriberInputSchema, ay as UpdateListInputSchema, az as UpdateSegmentInputSchema, aA as UpdateSubscriberInputSchema, aB as UpsertSubscriberInputSchema, aC as decodeCredentials, aD as decodeSignedInteger, aE as exactIntegerJSONCodec, aF as isCredentialMaterialError, aG as newConnection, aH as newConnectionWithOperations, aI as parseExactIntegerJSON, aJ as parseJSONNumberTokens } from './connection-8jj_z6ZP.js';
|
|
3
|
+
import { MutationDefinition, QueryDefinition, MutationStepConfig, Mutation, MutationResult, QueryStepConfig, Query, QueryResult, MutationStep, QueryStep, Call, QueryAttempt, MutationAttempt, CredentialProvider, Failure } from '@superdurable/connectors-sdk';
|
|
4
4
|
import { StepTarget } from '@superdurable/dex';
|
|
5
5
|
import { LoadedProject } from '@superdurable/connectors-sdk/projectconfig';
|
|
6
6
|
import { ProviderRequest, ProviderResponse } from '@superdurable/connectors-sdk/providerhttp';
|
|
@@ -10,6 +10,556 @@ import 'zod';
|
|
|
10
10
|
declare const ConnectorID = "campaignmonitor";
|
|
11
11
|
/** Provider identity for named connections. */
|
|
12
12
|
declare const ProviderID = "campaignmonitor";
|
|
13
|
+
/** Branch IDs for listCampaigns. */
|
|
14
|
+
declare const ListCampaignsBranch: {
|
|
15
|
+
readonly Listed: "listed";
|
|
16
|
+
readonly ProviderRejected: "providerRejected";
|
|
17
|
+
readonly InvalidResponse: "invalidResponse";
|
|
18
|
+
readonly Defect: "defect";
|
|
19
|
+
};
|
|
20
|
+
/** Campaign Monitor returned the campaigns. */
|
|
21
|
+
declare const ListCampaignsBranchListed: "listed";
|
|
22
|
+
/** Campaign Monitor rejected the lookup. */
|
|
23
|
+
declare const ListCampaignsBranchProviderRejected: "providerRejected";
|
|
24
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
25
|
+
declare const ListCampaignsBranchInvalidResponse: "invalidResponse";
|
|
26
|
+
/** Local input or credentials are invalid. */
|
|
27
|
+
declare const ListCampaignsBranchDefect: "defect";
|
|
28
|
+
/** Manifest definition for listCampaigns. */
|
|
29
|
+
declare const ListCampaignsDefinition: QueryDefinition;
|
|
30
|
+
/** Manifest metadata for listCampaigns. */
|
|
31
|
+
declare const ListCampaignsMetadata: {
|
|
32
|
+
readonly kind: "query";
|
|
33
|
+
readonly idempotency: "none";
|
|
34
|
+
readonly authorization: "required";
|
|
35
|
+
};
|
|
36
|
+
/** Branch IDs for getCampaignSummary. */
|
|
37
|
+
declare const GetCampaignSummaryBranch: {
|
|
38
|
+
readonly Found: "found";
|
|
39
|
+
readonly NotFound: "notFound";
|
|
40
|
+
readonly ProviderRejected: "providerRejected";
|
|
41
|
+
readonly InvalidResponse: "invalidResponse";
|
|
42
|
+
readonly Defect: "defect";
|
|
43
|
+
};
|
|
44
|
+
/** Campaign Monitor returned the summary. */
|
|
45
|
+
declare const GetCampaignSummaryBranchFound: "found";
|
|
46
|
+
/** Campaign Monitor did not find the campaign. */
|
|
47
|
+
declare const GetCampaignSummaryBranchNotFound: "notFound";
|
|
48
|
+
/** Campaign Monitor rejected the lookup. */
|
|
49
|
+
declare const GetCampaignSummaryBranchProviderRejected: "providerRejected";
|
|
50
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
51
|
+
declare const GetCampaignSummaryBranchInvalidResponse: "invalidResponse";
|
|
52
|
+
/** Local input or credentials are invalid. */
|
|
53
|
+
declare const GetCampaignSummaryBranchDefect: "defect";
|
|
54
|
+
/** Manifest definition for getCampaignSummary. */
|
|
55
|
+
declare const GetCampaignSummaryDefinition: QueryDefinition;
|
|
56
|
+
/** Manifest metadata for getCampaignSummary. */
|
|
57
|
+
declare const GetCampaignSummaryMetadata: {
|
|
58
|
+
readonly kind: "query";
|
|
59
|
+
readonly idempotency: "none";
|
|
60
|
+
readonly authorization: "required";
|
|
61
|
+
};
|
|
62
|
+
/** Branch IDs for createDraftCampaign. */
|
|
63
|
+
declare const CreateDraftCampaignBranch: {
|
|
64
|
+
readonly Created: "created";
|
|
65
|
+
readonly ProviderRejected: "providerRejected";
|
|
66
|
+
readonly Uncertain: "uncertain";
|
|
67
|
+
readonly Defect: "defect";
|
|
68
|
+
};
|
|
69
|
+
/** Campaign Monitor created the draft. */
|
|
70
|
+
declare const CreateDraftCampaignBranchCreated: "created";
|
|
71
|
+
/** Campaign Monitor rejected draft creation. */
|
|
72
|
+
declare const CreateDraftCampaignBranchProviderRejected: "providerRejected";
|
|
73
|
+
/** A draft may have been created but cannot be confirmed. */
|
|
74
|
+
declare const CreateDraftCampaignBranchUncertain: "uncertain";
|
|
75
|
+
/** Local input or credentials are invalid. */
|
|
76
|
+
declare const CreateDraftCampaignBranchDefect: "defect";
|
|
77
|
+
/** Manifest definition for createDraftCampaign. */
|
|
78
|
+
declare const CreateDraftCampaignDefinition: MutationDefinition;
|
|
79
|
+
/** Manifest metadata for createDraftCampaign. */
|
|
80
|
+
declare const CreateDraftCampaignMetadata: {
|
|
81
|
+
readonly kind: "mutation";
|
|
82
|
+
readonly idempotency: "required";
|
|
83
|
+
readonly authorization: "required";
|
|
84
|
+
};
|
|
85
|
+
/** Branch IDs for sendCampaign. */
|
|
86
|
+
declare const SendCampaignBranch: {
|
|
87
|
+
readonly Sent: "sent";
|
|
88
|
+
readonly ProviderRejected: "providerRejected";
|
|
89
|
+
readonly Uncertain: "uncertain";
|
|
90
|
+
readonly Defect: "defect";
|
|
91
|
+
};
|
|
92
|
+
/** Campaign Monitor accepted the campaign send. */
|
|
93
|
+
declare const SendCampaignBranchSent: "sent";
|
|
94
|
+
/** Campaign Monitor rejected the send. */
|
|
95
|
+
declare const SendCampaignBranchProviderRejected: "providerRejected";
|
|
96
|
+
/** The campaign may have sent but cannot be confirmed. */
|
|
97
|
+
declare const SendCampaignBranchUncertain: "uncertain";
|
|
98
|
+
/** Local input or credentials are invalid. */
|
|
99
|
+
declare const SendCampaignBranchDefect: "defect";
|
|
100
|
+
/** Manifest definition for sendCampaign. */
|
|
101
|
+
declare const SendCampaignDefinition: MutationDefinition;
|
|
102
|
+
/** Manifest metadata for sendCampaign. */
|
|
103
|
+
declare const SendCampaignMetadata: {
|
|
104
|
+
readonly kind: "mutation";
|
|
105
|
+
readonly idempotency: "required";
|
|
106
|
+
readonly authorization: "required";
|
|
107
|
+
};
|
|
108
|
+
/** Branch IDs for sendCampaignPreview. */
|
|
109
|
+
declare const SendCampaignPreviewBranch: {
|
|
110
|
+
readonly Sent: "sent";
|
|
111
|
+
readonly ProviderRejected: "providerRejected";
|
|
112
|
+
readonly Uncertain: "uncertain";
|
|
113
|
+
readonly Defect: "defect";
|
|
114
|
+
};
|
|
115
|
+
/** Campaign Monitor accepted the preview. */
|
|
116
|
+
declare const SendCampaignPreviewBranchSent: "sent";
|
|
117
|
+
/** Campaign Monitor rejected the preview. */
|
|
118
|
+
declare const SendCampaignPreviewBranchProviderRejected: "providerRejected";
|
|
119
|
+
/** A preview may have sent but cannot be confirmed. */
|
|
120
|
+
declare const SendCampaignPreviewBranchUncertain: "uncertain";
|
|
121
|
+
/** Local input or credentials are invalid. */
|
|
122
|
+
declare const SendCampaignPreviewBranchDefect: "defect";
|
|
123
|
+
/** Manifest definition for sendCampaignPreview. */
|
|
124
|
+
declare const SendCampaignPreviewDefinition: MutationDefinition;
|
|
125
|
+
/** Manifest metadata for sendCampaignPreview. */
|
|
126
|
+
declare const SendCampaignPreviewMetadata: {
|
|
127
|
+
readonly kind: "mutation";
|
|
128
|
+
readonly idempotency: "required";
|
|
129
|
+
readonly authorization: "required";
|
|
130
|
+
};
|
|
131
|
+
/** Branch IDs for unscheduleCampaign. */
|
|
132
|
+
declare const UnscheduleCampaignBranch: {
|
|
133
|
+
readonly Unscheduled: "unscheduled";
|
|
134
|
+
readonly ProviderRejected: "providerRejected";
|
|
135
|
+
readonly InvalidResponse: "invalidResponse";
|
|
136
|
+
readonly Defect: "defect";
|
|
137
|
+
};
|
|
138
|
+
/** Campaign Monitor unscheduled the campaign. */
|
|
139
|
+
declare const UnscheduleCampaignBranchUnscheduled: "unscheduled";
|
|
140
|
+
/** Campaign Monitor rejected unscheduling. */
|
|
141
|
+
declare const UnscheduleCampaignBranchProviderRejected: "providerRejected";
|
|
142
|
+
/** Campaign Monitor returned an oversized response. */
|
|
143
|
+
declare const UnscheduleCampaignBranchInvalidResponse: "invalidResponse";
|
|
144
|
+
/** Local input or credentials are invalid. */
|
|
145
|
+
declare const UnscheduleCampaignBranchDefect: "defect";
|
|
146
|
+
/** Manifest definition for unscheduleCampaign. */
|
|
147
|
+
declare const UnscheduleCampaignDefinition: MutationDefinition;
|
|
148
|
+
/** Manifest metadata for unscheduleCampaign. */
|
|
149
|
+
declare const UnscheduleCampaignMetadata: {
|
|
150
|
+
readonly kind: "mutation";
|
|
151
|
+
readonly idempotency: "required";
|
|
152
|
+
readonly authorization: "required";
|
|
153
|
+
};
|
|
154
|
+
/** Branch IDs for deleteCampaign. */
|
|
155
|
+
declare const DeleteCampaignBranch: {
|
|
156
|
+
readonly Deleted: "deleted";
|
|
157
|
+
readonly ProviderRejected: "providerRejected";
|
|
158
|
+
readonly InvalidResponse: "invalidResponse";
|
|
159
|
+
readonly Defect: "defect";
|
|
160
|
+
};
|
|
161
|
+
/** Campaign Monitor deleted the campaign. */
|
|
162
|
+
declare const DeleteCampaignBranchDeleted: "deleted";
|
|
163
|
+
/** Campaign Monitor rejected deletion. */
|
|
164
|
+
declare const DeleteCampaignBranchProviderRejected: "providerRejected";
|
|
165
|
+
/** Campaign Monitor returned an oversized response. */
|
|
166
|
+
declare const DeleteCampaignBranchInvalidResponse: "invalidResponse";
|
|
167
|
+
/** Local input or credentials are invalid. */
|
|
168
|
+
declare const DeleteCampaignBranchDefect: "defect";
|
|
169
|
+
/** Manifest definition for deleteCampaign. */
|
|
170
|
+
declare const DeleteCampaignDefinition: MutationDefinition;
|
|
171
|
+
/** Manifest metadata for deleteCampaign. */
|
|
172
|
+
declare const DeleteCampaignMetadata: {
|
|
173
|
+
readonly kind: "mutation";
|
|
174
|
+
readonly idempotency: "required";
|
|
175
|
+
readonly authorization: "required";
|
|
176
|
+
};
|
|
177
|
+
/** Branch IDs for listSegments. */
|
|
178
|
+
declare const ListSegmentsBranch: {
|
|
179
|
+
readonly Listed: "listed";
|
|
180
|
+
readonly ProviderRejected: "providerRejected";
|
|
181
|
+
readonly InvalidResponse: "invalidResponse";
|
|
182
|
+
readonly Defect: "defect";
|
|
183
|
+
};
|
|
184
|
+
/** Campaign Monitor returned the list's segments. */
|
|
185
|
+
declare const ListSegmentsBranchListed: "listed";
|
|
186
|
+
/** Campaign Monitor rejected segment discovery. */
|
|
187
|
+
declare const ListSegmentsBranchProviderRejected: "providerRejected";
|
|
188
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
189
|
+
declare const ListSegmentsBranchInvalidResponse: "invalidResponse";
|
|
190
|
+
/** Local input or credentials are invalid. */
|
|
191
|
+
declare const ListSegmentsBranchDefect: "defect";
|
|
192
|
+
/** Manifest definition for listSegments. */
|
|
193
|
+
declare const ListSegmentsDefinition: QueryDefinition;
|
|
194
|
+
/** Manifest metadata for listSegments. */
|
|
195
|
+
declare const ListSegmentsMetadata: {
|
|
196
|
+
readonly kind: "query";
|
|
197
|
+
readonly idempotency: "none";
|
|
198
|
+
readonly authorization: "required";
|
|
199
|
+
};
|
|
200
|
+
/** Branch IDs for getSegment. */
|
|
201
|
+
declare const GetSegmentBranch: {
|
|
202
|
+
readonly Found: "found";
|
|
203
|
+
readonly NotFound: "notFound";
|
|
204
|
+
readonly ProviderRejected: "providerRejected";
|
|
205
|
+
readonly InvalidResponse: "invalidResponse";
|
|
206
|
+
readonly Defect: "defect";
|
|
207
|
+
};
|
|
208
|
+
/** Campaign Monitor returned the segment. */
|
|
209
|
+
declare const GetSegmentBranchFound: "found";
|
|
210
|
+
/** Campaign Monitor did not find the segment. */
|
|
211
|
+
declare const GetSegmentBranchNotFound: "notFound";
|
|
212
|
+
/** Campaign Monitor rejected the lookup. */
|
|
213
|
+
declare const GetSegmentBranchProviderRejected: "providerRejected";
|
|
214
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
215
|
+
declare const GetSegmentBranchInvalidResponse: "invalidResponse";
|
|
216
|
+
/** Local input or credentials are invalid. */
|
|
217
|
+
declare const GetSegmentBranchDefect: "defect";
|
|
218
|
+
/** Manifest definition for getSegment. */
|
|
219
|
+
declare const GetSegmentDefinition: QueryDefinition;
|
|
220
|
+
/** Manifest metadata for getSegment. */
|
|
221
|
+
declare const GetSegmentMetadata: {
|
|
222
|
+
readonly kind: "query";
|
|
223
|
+
readonly idempotency: "none";
|
|
224
|
+
readonly authorization: "required";
|
|
225
|
+
};
|
|
226
|
+
/** Branch IDs for createSegment. */
|
|
227
|
+
declare const CreateSegmentBranch: {
|
|
228
|
+
readonly Created: "created";
|
|
229
|
+
readonly ProviderRejected: "providerRejected";
|
|
230
|
+
readonly Uncertain: "uncertain";
|
|
231
|
+
readonly Defect: "defect";
|
|
232
|
+
};
|
|
233
|
+
/** Campaign Monitor created the segment. */
|
|
234
|
+
declare const CreateSegmentBranchCreated: "created";
|
|
235
|
+
/** Campaign Monitor rejected segment creation. */
|
|
236
|
+
declare const CreateSegmentBranchProviderRejected: "providerRejected";
|
|
237
|
+
/** A segment may have been created but cannot be confirmed. */
|
|
238
|
+
declare const CreateSegmentBranchUncertain: "uncertain";
|
|
239
|
+
/** Local input or credentials are invalid. */
|
|
240
|
+
declare const CreateSegmentBranchDefect: "defect";
|
|
241
|
+
/** Manifest definition for createSegment. */
|
|
242
|
+
declare const CreateSegmentDefinition: MutationDefinition;
|
|
243
|
+
/** Manifest metadata for createSegment. */
|
|
244
|
+
declare const CreateSegmentMetadata: {
|
|
245
|
+
readonly kind: "mutation";
|
|
246
|
+
readonly idempotency: "required";
|
|
247
|
+
readonly authorization: "required";
|
|
248
|
+
};
|
|
249
|
+
/** Branch IDs for updateSegment. */
|
|
250
|
+
declare const UpdateSegmentBranch: {
|
|
251
|
+
readonly Updated: "updated";
|
|
252
|
+
readonly NotFound: "notFound";
|
|
253
|
+
readonly ProviderRejected: "providerRejected";
|
|
254
|
+
readonly InvalidResponse: "invalidResponse";
|
|
255
|
+
readonly Defect: "defect";
|
|
256
|
+
};
|
|
257
|
+
/** Campaign Monitor updated the segment. */
|
|
258
|
+
declare const UpdateSegmentBranchUpdated: "updated";
|
|
259
|
+
/** Campaign Monitor did not find the segment. */
|
|
260
|
+
declare const UpdateSegmentBranchNotFound: "notFound";
|
|
261
|
+
/** Campaign Monitor rejected the update. */
|
|
262
|
+
declare const UpdateSegmentBranchProviderRejected: "providerRejected";
|
|
263
|
+
/** Campaign Monitor returned an oversized response. */
|
|
264
|
+
declare const UpdateSegmentBranchInvalidResponse: "invalidResponse";
|
|
265
|
+
/** Local input or credentials are invalid. */
|
|
266
|
+
declare const UpdateSegmentBranchDefect: "defect";
|
|
267
|
+
/** Manifest definition for updateSegment. */
|
|
268
|
+
declare const UpdateSegmentDefinition: MutationDefinition;
|
|
269
|
+
/** Manifest metadata for updateSegment. */
|
|
270
|
+
declare const UpdateSegmentMetadata: {
|
|
271
|
+
readonly kind: "mutation";
|
|
272
|
+
readonly idempotency: "required";
|
|
273
|
+
readonly authorization: "required";
|
|
274
|
+
};
|
|
275
|
+
/** Branch IDs for deleteSegment. */
|
|
276
|
+
declare const DeleteSegmentBranch: {
|
|
277
|
+
readonly Deleted: "deleted";
|
|
278
|
+
readonly ProviderRejected: "providerRejected";
|
|
279
|
+
readonly InvalidResponse: "invalidResponse";
|
|
280
|
+
readonly Defect: "defect";
|
|
281
|
+
};
|
|
282
|
+
/** Campaign Monitor deleted the segment. */
|
|
283
|
+
declare const DeleteSegmentBranchDeleted: "deleted";
|
|
284
|
+
/** Campaign Monitor rejected deletion. */
|
|
285
|
+
declare const DeleteSegmentBranchProviderRejected: "providerRejected";
|
|
286
|
+
/** Campaign Monitor returned an oversized response. */
|
|
287
|
+
declare const DeleteSegmentBranchInvalidResponse: "invalidResponse";
|
|
288
|
+
/** Local input or credentials are invalid. */
|
|
289
|
+
declare const DeleteSegmentBranchDefect: "defect";
|
|
290
|
+
/** Manifest definition for deleteSegment. */
|
|
291
|
+
declare const DeleteSegmentDefinition: MutationDefinition;
|
|
292
|
+
/** Manifest metadata for deleteSegment. */
|
|
293
|
+
declare const DeleteSegmentMetadata: {
|
|
294
|
+
readonly kind: "mutation";
|
|
295
|
+
readonly idempotency: "required";
|
|
296
|
+
readonly authorization: "required";
|
|
297
|
+
};
|
|
298
|
+
/** Branch IDs for getList. */
|
|
299
|
+
declare const GetListBranch: {
|
|
300
|
+
readonly Found: "found";
|
|
301
|
+
readonly NotFound: "notFound";
|
|
302
|
+
readonly ProviderRejected: "providerRejected";
|
|
303
|
+
readonly InvalidResponse: "invalidResponse";
|
|
304
|
+
readonly Defect: "defect";
|
|
305
|
+
};
|
|
306
|
+
/** Campaign Monitor returned the list. */
|
|
307
|
+
declare const GetListBranchFound: "found";
|
|
308
|
+
/** Campaign Monitor did not find the list. */
|
|
309
|
+
declare const GetListBranchNotFound: "notFound";
|
|
310
|
+
/** Campaign Monitor rejected the lookup. */
|
|
311
|
+
declare const GetListBranchProviderRejected: "providerRejected";
|
|
312
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
313
|
+
declare const GetListBranchInvalidResponse: "invalidResponse";
|
|
314
|
+
/** Local input or credentials are invalid. */
|
|
315
|
+
declare const GetListBranchDefect: "defect";
|
|
316
|
+
/** Manifest definition for getList. */
|
|
317
|
+
declare const GetListDefinition: QueryDefinition;
|
|
318
|
+
/** Manifest metadata for getList. */
|
|
319
|
+
declare const GetListMetadata: {
|
|
320
|
+
readonly kind: "query";
|
|
321
|
+
readonly idempotency: "none";
|
|
322
|
+
readonly authorization: "required";
|
|
323
|
+
};
|
|
324
|
+
/** Branch IDs for createList. */
|
|
325
|
+
declare const CreateListBranch: {
|
|
326
|
+
readonly Created: "created";
|
|
327
|
+
readonly ProviderRejected: "providerRejected";
|
|
328
|
+
readonly Uncertain: "uncertain";
|
|
329
|
+
readonly Defect: "defect";
|
|
330
|
+
};
|
|
331
|
+
/** Campaign Monitor created the list. */
|
|
332
|
+
declare const CreateListBranchCreated: "created";
|
|
333
|
+
/** Campaign Monitor rejected list creation. */
|
|
334
|
+
declare const CreateListBranchProviderRejected: "providerRejected";
|
|
335
|
+
/** A list may have been created but cannot be confirmed. */
|
|
336
|
+
declare const CreateListBranchUncertain: "uncertain";
|
|
337
|
+
/** Local input or credentials are invalid. */
|
|
338
|
+
declare const CreateListBranchDefect: "defect";
|
|
339
|
+
/** Manifest definition for createList. */
|
|
340
|
+
declare const CreateListDefinition: MutationDefinition;
|
|
341
|
+
/** Manifest metadata for createList. */
|
|
342
|
+
declare const CreateListMetadata: {
|
|
343
|
+
readonly kind: "mutation";
|
|
344
|
+
readonly idempotency: "required";
|
|
345
|
+
readonly authorization: "required";
|
|
346
|
+
};
|
|
347
|
+
/** Branch IDs for updateList. */
|
|
348
|
+
declare const UpdateListBranch: {
|
|
349
|
+
readonly Updated: "updated";
|
|
350
|
+
readonly NotFound: "notFound";
|
|
351
|
+
readonly ProviderRejected: "providerRejected";
|
|
352
|
+
readonly InvalidResponse: "invalidResponse";
|
|
353
|
+
readonly Defect: "defect";
|
|
354
|
+
};
|
|
355
|
+
/** Campaign Monitor updated the list. */
|
|
356
|
+
declare const UpdateListBranchUpdated: "updated";
|
|
357
|
+
/** Campaign Monitor did not find the list. */
|
|
358
|
+
declare const UpdateListBranchNotFound: "notFound";
|
|
359
|
+
/** Campaign Monitor rejected the update. */
|
|
360
|
+
declare const UpdateListBranchProviderRejected: "providerRejected";
|
|
361
|
+
/** Campaign Monitor returned an oversized response. */
|
|
362
|
+
declare const UpdateListBranchInvalidResponse: "invalidResponse";
|
|
363
|
+
/** Local input or credentials are invalid. */
|
|
364
|
+
declare const UpdateListBranchDefect: "defect";
|
|
365
|
+
/** Manifest definition for updateList. */
|
|
366
|
+
declare const UpdateListDefinition: MutationDefinition;
|
|
367
|
+
/** Manifest metadata for updateList. */
|
|
368
|
+
declare const UpdateListMetadata: {
|
|
369
|
+
readonly kind: "mutation";
|
|
370
|
+
readonly idempotency: "required";
|
|
371
|
+
readonly authorization: "required";
|
|
372
|
+
};
|
|
373
|
+
/** Branch IDs for deleteList. */
|
|
374
|
+
declare const DeleteListBranch: {
|
|
375
|
+
readonly Deleted: "deleted";
|
|
376
|
+
readonly ProviderRejected: "providerRejected";
|
|
377
|
+
readonly InvalidResponse: "invalidResponse";
|
|
378
|
+
readonly Defect: "defect";
|
|
379
|
+
};
|
|
380
|
+
/** Campaign Monitor deleted the list. */
|
|
381
|
+
declare const DeleteListBranchDeleted: "deleted";
|
|
382
|
+
/** Campaign Monitor rejected deletion. */
|
|
383
|
+
declare const DeleteListBranchProviderRejected: "providerRejected";
|
|
384
|
+
/** Campaign Monitor returned an oversized response. */
|
|
385
|
+
declare const DeleteListBranchInvalidResponse: "invalidResponse";
|
|
386
|
+
/** Local input or credentials are invalid. */
|
|
387
|
+
declare const DeleteListBranchDefect: "defect";
|
|
388
|
+
/** Manifest definition for deleteList. */
|
|
389
|
+
declare const DeleteListDefinition: MutationDefinition;
|
|
390
|
+
/** Manifest metadata for deleteList. */
|
|
391
|
+
declare const DeleteListMetadata: {
|
|
392
|
+
readonly kind: "mutation";
|
|
393
|
+
readonly idempotency: "required";
|
|
394
|
+
readonly authorization: "required";
|
|
395
|
+
};
|
|
396
|
+
/** Branch IDs for listSubscribers. */
|
|
397
|
+
declare const ListSubscribersBranch: {
|
|
398
|
+
readonly Listed: "listed";
|
|
399
|
+
readonly ProviderRejected: "providerRejected";
|
|
400
|
+
readonly InvalidResponse: "invalidResponse";
|
|
401
|
+
readonly Defect: "defect";
|
|
402
|
+
};
|
|
403
|
+
/** Campaign Monitor returned a subscriber page. */
|
|
404
|
+
declare const ListSubscribersBranchListed: "listed";
|
|
405
|
+
/** Campaign Monitor rejected the page lookup. */
|
|
406
|
+
declare const ListSubscribersBranchProviderRejected: "providerRejected";
|
|
407
|
+
/** Campaign Monitor returned malformed or oversized JSON. */
|
|
408
|
+
declare const ListSubscribersBranchInvalidResponse: "invalidResponse";
|
|
409
|
+
/** Local input or credentials are invalid. */
|
|
410
|
+
declare const ListSubscribersBranchDefect: "defect";
|
|
411
|
+
/** Manifest definition for listSubscribers. */
|
|
412
|
+
declare const ListSubscribersDefinition: QueryDefinition;
|
|
413
|
+
/** Manifest metadata for listSubscribers. */
|
|
414
|
+
declare const ListSubscribersMetadata: {
|
|
415
|
+
readonly kind: "query";
|
|
416
|
+
readonly idempotency: "none";
|
|
417
|
+
readonly authorization: "required";
|
|
418
|
+
};
|
|
419
|
+
/** Branch IDs for listSubscriberLists. */
|
|
420
|
+
declare const ListSubscriberListsBranch: {
|
|
421
|
+
readonly Listed: "listed";
|
|
422
|
+
readonly ProviderRejected: "providerRejected";
|
|
423
|
+
readonly InvalidResponse: "invalidResponse";
|
|
424
|
+
readonly Defect: "defect";
|
|
425
|
+
};
|
|
426
|
+
/** Campaign Monitor returned the client's lists. */
|
|
427
|
+
declare const ListSubscriberListsBranchListed: "listed";
|
|
428
|
+
/** Campaign Monitor rejected the list lookup. */
|
|
429
|
+
declare const ListSubscriberListsBranchProviderRejected: "providerRejected";
|
|
430
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
431
|
+
declare const ListSubscriberListsBranchInvalidResponse: "invalidResponse";
|
|
432
|
+
/** Local input or credentials are invalid. */
|
|
433
|
+
declare const ListSubscriberListsBranchDefect: "defect";
|
|
434
|
+
/** Manifest definition for listSubscriberLists. */
|
|
435
|
+
declare const ListSubscriberListsDefinition: QueryDefinition;
|
|
436
|
+
/** Manifest metadata for listSubscriberLists. */
|
|
437
|
+
declare const ListSubscriberListsMetadata: {
|
|
438
|
+
readonly kind: "query";
|
|
439
|
+
readonly idempotency: "none";
|
|
440
|
+
readonly authorization: "required";
|
|
441
|
+
};
|
|
442
|
+
/** Branch IDs for getSubscriber. */
|
|
443
|
+
declare const GetSubscriberBranch: {
|
|
444
|
+
readonly Found: "found";
|
|
445
|
+
readonly NotFound: "notFound";
|
|
446
|
+
readonly ProviderRejected: "providerRejected";
|
|
447
|
+
readonly InvalidResponse: "invalidResponse";
|
|
448
|
+
readonly Defect: "defect";
|
|
449
|
+
};
|
|
450
|
+
/** Campaign Monitor returned the subscriber. */
|
|
451
|
+
declare const GetSubscriberBranchFound: "found";
|
|
452
|
+
/** Campaign Monitor did not find the subscriber. */
|
|
453
|
+
declare const GetSubscriberBranchNotFound: "notFound";
|
|
454
|
+
/** Campaign Monitor rejected the lookup. */
|
|
455
|
+
declare const GetSubscriberBranchProviderRejected: "providerRejected";
|
|
456
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
457
|
+
declare const GetSubscriberBranchInvalidResponse: "invalidResponse";
|
|
458
|
+
/** Local input or credentials are invalid. */
|
|
459
|
+
declare const GetSubscriberBranchDefect: "defect";
|
|
460
|
+
/** Manifest definition for getSubscriber. */
|
|
461
|
+
declare const GetSubscriberDefinition: QueryDefinition;
|
|
462
|
+
/** Manifest metadata for getSubscriber. */
|
|
463
|
+
declare const GetSubscriberMetadata: {
|
|
464
|
+
readonly kind: "query";
|
|
465
|
+
readonly idempotency: "none";
|
|
466
|
+
readonly authorization: "required";
|
|
467
|
+
};
|
|
468
|
+
/** Branch IDs for upsertSubscriber. */
|
|
469
|
+
declare const UpsertSubscriberBranch: {
|
|
470
|
+
readonly Saved: "saved";
|
|
471
|
+
readonly ProviderRejected: "providerRejected";
|
|
472
|
+
readonly InvalidResponse: "invalidResponse";
|
|
473
|
+
readonly Defect: "defect";
|
|
474
|
+
};
|
|
475
|
+
/** Campaign Monitor queued the subscriber upsert. */
|
|
476
|
+
declare const UpsertSubscriberBranchSaved: "saved";
|
|
477
|
+
/** Campaign Monitor rejected the upsert. */
|
|
478
|
+
declare const UpsertSubscriberBranchProviderRejected: "providerRejected";
|
|
479
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
480
|
+
declare const UpsertSubscriberBranchInvalidResponse: "invalidResponse";
|
|
481
|
+
/** Local input or credentials are invalid. */
|
|
482
|
+
declare const UpsertSubscriberBranchDefect: "defect";
|
|
483
|
+
/** Manifest definition for upsertSubscriber. */
|
|
484
|
+
declare const UpsertSubscriberDefinition: MutationDefinition;
|
|
485
|
+
/** Manifest metadata for upsertSubscriber. */
|
|
486
|
+
declare const UpsertSubscriberMetadata: {
|
|
487
|
+
readonly kind: "mutation";
|
|
488
|
+
readonly idempotency: "required";
|
|
489
|
+
readonly authorization: "required";
|
|
490
|
+
};
|
|
491
|
+
/** Branch IDs for updateSubscriber. */
|
|
492
|
+
declare const UpdateSubscriberBranch: {
|
|
493
|
+
readonly Updated: "updated";
|
|
494
|
+
readonly NotFound: "notFound";
|
|
495
|
+
readonly ProviderRejected: "providerRejected";
|
|
496
|
+
readonly InvalidResponse: "invalidResponse";
|
|
497
|
+
readonly Defect: "defect";
|
|
498
|
+
};
|
|
499
|
+
/** Campaign Monitor updated the subscriber. */
|
|
500
|
+
declare const UpdateSubscriberBranchUpdated: "updated";
|
|
501
|
+
/** Campaign Monitor did not find the subscriber. */
|
|
502
|
+
declare const UpdateSubscriberBranchNotFound: "notFound";
|
|
503
|
+
/** Campaign Monitor rejected the update. */
|
|
504
|
+
declare const UpdateSubscriberBranchProviderRejected: "providerRejected";
|
|
505
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
506
|
+
declare const UpdateSubscriberBranchInvalidResponse: "invalidResponse";
|
|
507
|
+
/** Local input or credentials are invalid. */
|
|
508
|
+
declare const UpdateSubscriberBranchDefect: "defect";
|
|
509
|
+
/** Manifest definition for updateSubscriber. */
|
|
510
|
+
declare const UpdateSubscriberDefinition: MutationDefinition;
|
|
511
|
+
/** Manifest metadata for updateSubscriber. */
|
|
512
|
+
declare const UpdateSubscriberMetadata: {
|
|
513
|
+
readonly kind: "mutation";
|
|
514
|
+
readonly idempotency: "required";
|
|
515
|
+
readonly authorization: "required";
|
|
516
|
+
};
|
|
517
|
+
/** Branch IDs for deleteSubscriber. */
|
|
518
|
+
declare const DeleteSubscriberBranch: {
|
|
519
|
+
readonly Deleted: "deleted";
|
|
520
|
+
readonly ProviderRejected: "providerRejected";
|
|
521
|
+
readonly InvalidResponse: "invalidResponse";
|
|
522
|
+
readonly Defect: "defect";
|
|
523
|
+
};
|
|
524
|
+
/** Campaign Monitor accepted the deletion. */
|
|
525
|
+
declare const DeleteSubscriberBranchDeleted: "deleted";
|
|
526
|
+
/** Campaign Monitor rejected the deletion. */
|
|
527
|
+
declare const DeleteSubscriberBranchProviderRejected: "providerRejected";
|
|
528
|
+
/** Campaign Monitor returned an oversized response. */
|
|
529
|
+
declare const DeleteSubscriberBranchInvalidResponse: "invalidResponse";
|
|
530
|
+
/** Local input or credentials are invalid. */
|
|
531
|
+
declare const DeleteSubscriberBranchDefect: "defect";
|
|
532
|
+
/** Manifest definition for deleteSubscriber. */
|
|
533
|
+
declare const DeleteSubscriberDefinition: MutationDefinition;
|
|
534
|
+
/** Manifest metadata for deleteSubscriber. */
|
|
535
|
+
declare const DeleteSubscriberMetadata: {
|
|
536
|
+
readonly kind: "mutation";
|
|
537
|
+
readonly idempotency: "required";
|
|
538
|
+
readonly authorization: "required";
|
|
539
|
+
};
|
|
540
|
+
/** Branch IDs for unsubscribeSubscriber. */
|
|
541
|
+
declare const UnsubscribeSubscriberBranch: {
|
|
542
|
+
readonly Unsubscribed: "unsubscribed";
|
|
543
|
+
readonly ProviderRejected: "providerRejected";
|
|
544
|
+
readonly InvalidResponse: "invalidResponse";
|
|
545
|
+
readonly Defect: "defect";
|
|
546
|
+
};
|
|
547
|
+
/** Campaign Monitor accepted the unsubscribe. */
|
|
548
|
+
declare const UnsubscribeSubscriberBranchUnsubscribed: "unsubscribed";
|
|
549
|
+
/** Campaign Monitor rejected the unsubscribe. */
|
|
550
|
+
declare const UnsubscribeSubscriberBranchProviderRejected: "providerRejected";
|
|
551
|
+
/** Campaign Monitor returned an unexpected or oversized response. */
|
|
552
|
+
declare const UnsubscribeSubscriberBranchInvalidResponse: "invalidResponse";
|
|
553
|
+
/** Local input or credentials are invalid. */
|
|
554
|
+
declare const UnsubscribeSubscriberBranchDefect: "defect";
|
|
555
|
+
/** Manifest definition for unsubscribeSubscriber. */
|
|
556
|
+
declare const UnsubscribeSubscriberDefinition: MutationDefinition;
|
|
557
|
+
/** Manifest metadata for unsubscribeSubscriber. */
|
|
558
|
+
declare const UnsubscribeSubscriberMetadata: {
|
|
559
|
+
readonly kind: "mutation";
|
|
560
|
+
readonly idempotency: "required";
|
|
561
|
+
readonly authorization: "required";
|
|
562
|
+
};
|
|
13
563
|
/** Branch IDs for listClients. */
|
|
14
564
|
declare const ListClientsBranch: {
|
|
15
565
|
readonly Listed: "listed";
|
|
@@ -34,6 +584,477 @@ declare const ListClientsMetadata: {
|
|
|
34
584
|
readonly authorization: "required";
|
|
35
585
|
};
|
|
36
586
|
|
|
587
|
+
/** Configuration for the listCampaigns connector Step. */
|
|
588
|
+
interface ListCampaignsStepConfig<StepInput, OperationInput = ListCampaignsInput, OperationOutput = CampaignsPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
589
|
+
/** Named connection supplying this operation. */
|
|
590
|
+
connection: Connection<{
|
|
591
|
+
listCampaigns(): Query<OperationInput, OperationOutput>;
|
|
592
|
+
}>;
|
|
593
|
+
/** Name matching the bound connection. */
|
|
594
|
+
connectionName: string;
|
|
595
|
+
/** Campaign Monitor returned the campaigns. */
|
|
596
|
+
listed: StepTarget<QueryResult<OperationOutput>>;
|
|
597
|
+
/** Campaign Monitor rejected the lookup. */
|
|
598
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
599
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
600
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
601
|
+
/** Local input or credentials are invalid. */
|
|
602
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
603
|
+
}
|
|
604
|
+
/** Build the listCampaigns Step from a named connection. */
|
|
605
|
+
declare function newListCampaignsStep<StepInput, OperationInput = ListCampaignsInput, OperationOutput = CampaignsPage>(configuration: ListCampaignsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
606
|
+
/** Configuration for the getCampaignSummary connector Step. */
|
|
607
|
+
interface GetCampaignSummaryStepConfig<StepInput, OperationInput = GetCampaignSummaryInput, OperationOutput = CampaignSummary> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
608
|
+
/** Named connection supplying this operation. */
|
|
609
|
+
connection: Connection<{
|
|
610
|
+
getCampaignSummary(): Query<OperationInput, OperationOutput>;
|
|
611
|
+
}>;
|
|
612
|
+
/** Name matching the bound connection. */
|
|
613
|
+
connectionName: string;
|
|
614
|
+
/** Campaign Monitor returned the summary. */
|
|
615
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
616
|
+
/** Campaign Monitor did not find the campaign. */
|
|
617
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
618
|
+
/** Campaign Monitor rejected the lookup. */
|
|
619
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
620
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
621
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
622
|
+
/** Local input or credentials are invalid. */
|
|
623
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
624
|
+
}
|
|
625
|
+
/** Build the getCampaignSummary Step from a named connection. */
|
|
626
|
+
declare function newGetCampaignSummaryStep<StepInput, OperationInput = GetCampaignSummaryInput, OperationOutput = CampaignSummary>(configuration: GetCampaignSummaryStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
627
|
+
/** Configuration for the createDraftCampaign connector Step. */
|
|
628
|
+
interface CreateDraftCampaignStepConfig<StepInput, OperationInput = CreateDraftCampaignInput, OperationOutput = CampaignIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
629
|
+
/** Named connection supplying this operation. */
|
|
630
|
+
connection: Connection<{
|
|
631
|
+
createDraftCampaign(): Mutation<OperationInput, OperationOutput>;
|
|
632
|
+
}>;
|
|
633
|
+
/** Name matching the bound connection. */
|
|
634
|
+
connectionName: string;
|
|
635
|
+
/** Campaign Monitor created the draft. */
|
|
636
|
+
created: StepTarget<MutationResult<OperationOutput>>;
|
|
637
|
+
/** Campaign Monitor rejected draft creation. */
|
|
638
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
639
|
+
/** A draft may have been created but cannot be confirmed. */
|
|
640
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
641
|
+
/** Local input or credentials are invalid. */
|
|
642
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
643
|
+
}
|
|
644
|
+
/** Build the createDraftCampaign Step from a named connection. */
|
|
645
|
+
declare function newCreateDraftCampaignStep<StepInput, OperationInput = CreateDraftCampaignInput, OperationOutput = CampaignIdentity>(configuration: CreateDraftCampaignStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
646
|
+
/** Configuration for the sendCampaign connector Step. */
|
|
647
|
+
interface SendCampaignStepConfig<StepInput, OperationInput = SendCampaignInput, OperationOutput = CampaignIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
648
|
+
/** Named connection supplying this operation. */
|
|
649
|
+
connection: Connection<{
|
|
650
|
+
sendCampaign(): Mutation<OperationInput, OperationOutput>;
|
|
651
|
+
}>;
|
|
652
|
+
/** Name matching the bound connection. */
|
|
653
|
+
connectionName: string;
|
|
654
|
+
/** Campaign Monitor accepted the campaign send. */
|
|
655
|
+
sent: StepTarget<MutationResult<OperationOutput>>;
|
|
656
|
+
/** Campaign Monitor rejected the send. */
|
|
657
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
658
|
+
/** The campaign may have sent but cannot be confirmed. */
|
|
659
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
660
|
+
/** Local input or credentials are invalid. */
|
|
661
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
662
|
+
}
|
|
663
|
+
/** Build the sendCampaign Step from a named connection. */
|
|
664
|
+
declare function newSendCampaignStep<StepInput, OperationInput = SendCampaignInput, OperationOutput = CampaignIdentity>(configuration: SendCampaignStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
665
|
+
/** Configuration for the sendCampaignPreview connector Step. */
|
|
666
|
+
interface SendCampaignPreviewStepConfig<StepInput, OperationInput = SendCampaignPreviewInput, OperationOutput = CampaignIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
667
|
+
/** Named connection supplying this operation. */
|
|
668
|
+
connection: Connection<{
|
|
669
|
+
sendCampaignPreview(): Mutation<OperationInput, OperationOutput>;
|
|
670
|
+
}>;
|
|
671
|
+
/** Name matching the bound connection. */
|
|
672
|
+
connectionName: string;
|
|
673
|
+
/** Campaign Monitor accepted the preview. */
|
|
674
|
+
sent: StepTarget<MutationResult<OperationOutput>>;
|
|
675
|
+
/** Campaign Monitor rejected the preview. */
|
|
676
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
677
|
+
/** A preview may have sent but cannot be confirmed. */
|
|
678
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
679
|
+
/** Local input or credentials are invalid. */
|
|
680
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
681
|
+
}
|
|
682
|
+
/** Build the sendCampaignPreview Step from a named connection. */
|
|
683
|
+
declare function newSendCampaignPreviewStep<StepInput, OperationInput = SendCampaignPreviewInput, OperationOutput = CampaignIdentity>(configuration: SendCampaignPreviewStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
684
|
+
/** Configuration for the unscheduleCampaign connector Step. */
|
|
685
|
+
interface UnscheduleCampaignStepConfig<StepInput, OperationInput = UnscheduleCampaignInput, OperationOutput = CampaignIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
686
|
+
/** Named connection supplying this operation. */
|
|
687
|
+
connection: Connection<{
|
|
688
|
+
unscheduleCampaign(): Mutation<OperationInput, OperationOutput>;
|
|
689
|
+
}>;
|
|
690
|
+
/** Name matching the bound connection. */
|
|
691
|
+
connectionName: string;
|
|
692
|
+
/** Campaign Monitor unscheduled the campaign. */
|
|
693
|
+
unscheduled: StepTarget<MutationResult<OperationOutput>>;
|
|
694
|
+
/** Campaign Monitor rejected unscheduling. */
|
|
695
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
696
|
+
/** Campaign Monitor returned an oversized response. */
|
|
697
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
698
|
+
/** Local input or credentials are invalid. */
|
|
699
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
700
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
701
|
+
maxSends?: number;
|
|
702
|
+
}
|
|
703
|
+
/** Build the unscheduleCampaign Step from a named connection. */
|
|
704
|
+
declare function newUnscheduleCampaignStep<StepInput, OperationInput = UnscheduleCampaignInput, OperationOutput = CampaignIdentity>(configuration: UnscheduleCampaignStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
705
|
+
/** Configuration for the deleteCampaign connector Step. */
|
|
706
|
+
interface DeleteCampaignStepConfig<StepInput, OperationInput = DeleteCampaignInput, OperationOutput = CampaignIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
707
|
+
/** Named connection supplying this operation. */
|
|
708
|
+
connection: Connection<{
|
|
709
|
+
deleteCampaign(): Mutation<OperationInput, OperationOutput>;
|
|
710
|
+
}>;
|
|
711
|
+
/** Name matching the bound connection. */
|
|
712
|
+
connectionName: string;
|
|
713
|
+
/** Campaign Monitor deleted the campaign. */
|
|
714
|
+
deleted: StepTarget<MutationResult<OperationOutput>>;
|
|
715
|
+
/** Campaign Monitor rejected deletion. */
|
|
716
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
717
|
+
/** Campaign Monitor returned an oversized response. */
|
|
718
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
719
|
+
/** Local input or credentials are invalid. */
|
|
720
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
721
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
722
|
+
maxSends?: number;
|
|
723
|
+
}
|
|
724
|
+
/** Build the deleteCampaign Step from a named connection. */
|
|
725
|
+
declare function newDeleteCampaignStep<StepInput, OperationInput = DeleteCampaignInput, OperationOutput = CampaignIdentity>(configuration: DeleteCampaignStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
726
|
+
/** Configuration for the listSegments connector Step. */
|
|
727
|
+
interface ListSegmentsStepConfig<StepInput, OperationInput = ListSegmentsInput, OperationOutput = SegmentsList> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
728
|
+
/** Named connection supplying this operation. */
|
|
729
|
+
connection: Connection<{
|
|
730
|
+
listSegments(): Query<OperationInput, OperationOutput>;
|
|
731
|
+
}>;
|
|
732
|
+
/** Name matching the bound connection. */
|
|
733
|
+
connectionName: string;
|
|
734
|
+
/** Campaign Monitor returned the list's segments. */
|
|
735
|
+
listed: StepTarget<QueryResult<OperationOutput>>;
|
|
736
|
+
/** Campaign Monitor rejected segment discovery. */
|
|
737
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
738
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
739
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
740
|
+
/** Local input or credentials are invalid. */
|
|
741
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
742
|
+
}
|
|
743
|
+
/** Build the listSegments Step from a named connection. */
|
|
744
|
+
declare function newListSegmentsStep<StepInput, OperationInput = ListSegmentsInput, OperationOutput = SegmentsList>(configuration: ListSegmentsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
745
|
+
/** Configuration for the getSegment connector Step. */
|
|
746
|
+
interface GetSegmentStepConfig<StepInput, OperationInput = GetSegmentInput, OperationOutput = SegmentProfile> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
747
|
+
/** Named connection supplying this operation. */
|
|
748
|
+
connection: Connection<{
|
|
749
|
+
getSegment(): Query<OperationInput, OperationOutput>;
|
|
750
|
+
}>;
|
|
751
|
+
/** Name matching the bound connection. */
|
|
752
|
+
connectionName: string;
|
|
753
|
+
/** Campaign Monitor returned the segment. */
|
|
754
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
755
|
+
/** Campaign Monitor did not find the segment. */
|
|
756
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
757
|
+
/** Campaign Monitor rejected the lookup. */
|
|
758
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
759
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
760
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
761
|
+
/** Local input or credentials are invalid. */
|
|
762
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
763
|
+
}
|
|
764
|
+
/** Build the getSegment Step from a named connection. */
|
|
765
|
+
declare function newGetSegmentStep<StepInput, OperationInput = GetSegmentInput, OperationOutput = SegmentProfile>(configuration: GetSegmentStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
766
|
+
/** Configuration for the createSegment connector Step. */
|
|
767
|
+
interface CreateSegmentStepConfig<StepInput, OperationInput = CreateSegmentInput, OperationOutput = SegmentIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
768
|
+
/** Named connection supplying this operation. */
|
|
769
|
+
connection: Connection<{
|
|
770
|
+
createSegment(): Mutation<OperationInput, OperationOutput>;
|
|
771
|
+
}>;
|
|
772
|
+
/** Name matching the bound connection. */
|
|
773
|
+
connectionName: string;
|
|
774
|
+
/** Campaign Monitor created the segment. */
|
|
775
|
+
created: StepTarget<MutationResult<OperationOutput>>;
|
|
776
|
+
/** Campaign Monitor rejected segment creation. */
|
|
777
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
778
|
+
/** A segment may have been created but cannot be confirmed. */
|
|
779
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
780
|
+
/** Local input or credentials are invalid. */
|
|
781
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
782
|
+
}
|
|
783
|
+
/** Build the createSegment Step from a named connection. */
|
|
784
|
+
declare function newCreateSegmentStep<StepInput, OperationInput = CreateSegmentInput, OperationOutput = SegmentIdentity>(configuration: CreateSegmentStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
785
|
+
/** Configuration for the updateSegment connector Step. */
|
|
786
|
+
interface UpdateSegmentStepConfig<StepInput, OperationInput = UpdateSegmentInput, OperationOutput = SegmentIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
787
|
+
/** Named connection supplying this operation. */
|
|
788
|
+
connection: Connection<{
|
|
789
|
+
updateSegment(): Mutation<OperationInput, OperationOutput>;
|
|
790
|
+
}>;
|
|
791
|
+
/** Name matching the bound connection. */
|
|
792
|
+
connectionName: string;
|
|
793
|
+
/** Campaign Monitor updated the segment. */
|
|
794
|
+
updated: StepTarget<MutationResult<OperationOutput>>;
|
|
795
|
+
/** Campaign Monitor did not find the segment. */
|
|
796
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
797
|
+
/** Campaign Monitor rejected the update. */
|
|
798
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
799
|
+
/** Campaign Monitor returned an oversized response. */
|
|
800
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
801
|
+
/** Local input or credentials are invalid. */
|
|
802
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
803
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
804
|
+
maxSends?: number;
|
|
805
|
+
}
|
|
806
|
+
/** Build the updateSegment Step from a named connection. */
|
|
807
|
+
declare function newUpdateSegmentStep<StepInput, OperationInput = UpdateSegmentInput, OperationOutput = SegmentIdentity>(configuration: UpdateSegmentStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
808
|
+
/** Configuration for the deleteSegment connector Step. */
|
|
809
|
+
interface DeleteSegmentStepConfig<StepInput, OperationInput = DeleteSegmentInput, OperationOutput = SegmentIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
810
|
+
/** Named connection supplying this operation. */
|
|
811
|
+
connection: Connection<{
|
|
812
|
+
deleteSegment(): Mutation<OperationInput, OperationOutput>;
|
|
813
|
+
}>;
|
|
814
|
+
/** Name matching the bound connection. */
|
|
815
|
+
connectionName: string;
|
|
816
|
+
/** Campaign Monitor deleted the segment. */
|
|
817
|
+
deleted: StepTarget<MutationResult<OperationOutput>>;
|
|
818
|
+
/** Campaign Monitor rejected deletion. */
|
|
819
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
820
|
+
/** Campaign Monitor returned an oversized response. */
|
|
821
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
822
|
+
/** Local input or credentials are invalid. */
|
|
823
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
824
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
825
|
+
maxSends?: number;
|
|
826
|
+
}
|
|
827
|
+
/** Build the deleteSegment Step from a named connection. */
|
|
828
|
+
declare function newDeleteSegmentStep<StepInput, OperationInput = DeleteSegmentInput, OperationOutput = SegmentIdentity>(configuration: DeleteSegmentStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
829
|
+
/** Configuration for the getList connector Step. */
|
|
830
|
+
interface GetListStepConfig<StepInput, OperationInput = GetListInput, OperationOutput = ListProfile> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
831
|
+
/** Named connection supplying this operation. */
|
|
832
|
+
connection: Connection<{
|
|
833
|
+
getList(): Query<OperationInput, OperationOutput>;
|
|
834
|
+
}>;
|
|
835
|
+
/** Name matching the bound connection. */
|
|
836
|
+
connectionName: string;
|
|
837
|
+
/** Campaign Monitor returned the list. */
|
|
838
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
839
|
+
/** Campaign Monitor did not find the list. */
|
|
840
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
841
|
+
/** Campaign Monitor rejected the lookup. */
|
|
842
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
843
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
844
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
845
|
+
/** Local input or credentials are invalid. */
|
|
846
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
847
|
+
}
|
|
848
|
+
/** Build the getList Step from a named connection. */
|
|
849
|
+
declare function newGetListStep<StepInput, OperationInput = GetListInput, OperationOutput = ListProfile>(configuration: GetListStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
850
|
+
/** Configuration for the createList connector Step. */
|
|
851
|
+
interface CreateListStepConfig<StepInput, OperationInput = CreateListInput, OperationOutput = ListIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
852
|
+
/** Named connection supplying this operation. */
|
|
853
|
+
connection: Connection<{
|
|
854
|
+
createList(): Mutation<OperationInput, OperationOutput>;
|
|
855
|
+
}>;
|
|
856
|
+
/** Name matching the bound connection. */
|
|
857
|
+
connectionName: string;
|
|
858
|
+
/** Campaign Monitor created the list. */
|
|
859
|
+
created: StepTarget<MutationResult<OperationOutput>>;
|
|
860
|
+
/** Campaign Monitor rejected list creation. */
|
|
861
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
862
|
+
/** A list may have been created but cannot be confirmed. */
|
|
863
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
864
|
+
/** Local input or credentials are invalid. */
|
|
865
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
866
|
+
}
|
|
867
|
+
/** Build the createList Step from a named connection. */
|
|
868
|
+
declare function newCreateListStep<StepInput, OperationInput = CreateListInput, OperationOutput = ListIdentity>(configuration: CreateListStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
869
|
+
/** Configuration for the updateList connector Step. */
|
|
870
|
+
interface UpdateListStepConfig<StepInput, OperationInput = UpdateListInput, OperationOutput = ListIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
871
|
+
/** Named connection supplying this operation. */
|
|
872
|
+
connection: Connection<{
|
|
873
|
+
updateList(): Mutation<OperationInput, OperationOutput>;
|
|
874
|
+
}>;
|
|
875
|
+
/** Name matching the bound connection. */
|
|
876
|
+
connectionName: string;
|
|
877
|
+
/** Campaign Monitor updated the list. */
|
|
878
|
+
updated: StepTarget<MutationResult<OperationOutput>>;
|
|
879
|
+
/** Campaign Monitor did not find the list. */
|
|
880
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
881
|
+
/** Campaign Monitor rejected the update. */
|
|
882
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
883
|
+
/** Campaign Monitor returned an oversized response. */
|
|
884
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
885
|
+
/** Local input or credentials are invalid. */
|
|
886
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
887
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
888
|
+
maxSends?: number;
|
|
889
|
+
}
|
|
890
|
+
/** Build the updateList Step from a named connection. */
|
|
891
|
+
declare function newUpdateListStep<StepInput, OperationInput = UpdateListInput, OperationOutput = ListIdentity>(configuration: UpdateListStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
892
|
+
/** Configuration for the deleteList connector Step. */
|
|
893
|
+
interface DeleteListStepConfig<StepInput, OperationInput = DeleteListInput, OperationOutput = ListIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
894
|
+
/** Named connection supplying this operation. */
|
|
895
|
+
connection: Connection<{
|
|
896
|
+
deleteList(): Mutation<OperationInput, OperationOutput>;
|
|
897
|
+
}>;
|
|
898
|
+
/** Name matching the bound connection. */
|
|
899
|
+
connectionName: string;
|
|
900
|
+
/** Campaign Monitor deleted the list. */
|
|
901
|
+
deleted: StepTarget<MutationResult<OperationOutput>>;
|
|
902
|
+
/** Campaign Monitor rejected deletion. */
|
|
903
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
904
|
+
/** Campaign Monitor returned an oversized response. */
|
|
905
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
906
|
+
/** Local input or credentials are invalid. */
|
|
907
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
908
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
909
|
+
maxSends?: number;
|
|
910
|
+
}
|
|
911
|
+
/** Build the deleteList Step from a named connection. */
|
|
912
|
+
declare function newDeleteListStep<StepInput, OperationInput = DeleteListInput, OperationOutput = ListIdentity>(configuration: DeleteListStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
913
|
+
/** Configuration for the listSubscribers connector Step. */
|
|
914
|
+
interface ListSubscribersStepConfig<StepInput, OperationInput = ListSubscribersInput, OperationOutput = SubscribersPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
915
|
+
/** Named connection supplying this operation. */
|
|
916
|
+
connection: Connection<{
|
|
917
|
+
listSubscribers(): Query<OperationInput, OperationOutput>;
|
|
918
|
+
}>;
|
|
919
|
+
/** Name matching the bound connection. */
|
|
920
|
+
connectionName: string;
|
|
921
|
+
/** Campaign Monitor returned a subscriber page. */
|
|
922
|
+
listed: StepTarget<QueryResult<OperationOutput>>;
|
|
923
|
+
/** Campaign Monitor rejected the page lookup. */
|
|
924
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
925
|
+
/** Campaign Monitor returned malformed or oversized JSON. */
|
|
926
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
927
|
+
/** Local input or credentials are invalid. */
|
|
928
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
929
|
+
}
|
|
930
|
+
/** Build the listSubscribers Step from a named connection. */
|
|
931
|
+
declare function newListSubscribersStep<StepInput, OperationInput = ListSubscribersInput, OperationOutput = SubscribersPage>(configuration: ListSubscribersStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
932
|
+
/** Configuration for the listSubscriberLists connector Step. */
|
|
933
|
+
interface ListSubscriberListsStepConfig<StepInput, OperationInput = ListSubscriberListsInput, OperationOutput = SubscriberLists> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
934
|
+
/** Named connection supplying this operation. */
|
|
935
|
+
connection: Connection<{
|
|
936
|
+
listSubscriberLists(): Query<OperationInput, OperationOutput>;
|
|
937
|
+
}>;
|
|
938
|
+
/** Name matching the bound connection. */
|
|
939
|
+
connectionName: string;
|
|
940
|
+
/** Campaign Monitor returned the client's lists. */
|
|
941
|
+
listed: StepTarget<QueryResult<OperationOutput>>;
|
|
942
|
+
/** Campaign Monitor rejected the list lookup. */
|
|
943
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
944
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
945
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
946
|
+
/** Local input or credentials are invalid. */
|
|
947
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
948
|
+
}
|
|
949
|
+
/** Build the listSubscriberLists Step from a named connection. */
|
|
950
|
+
declare function newListSubscriberListsStep<StepInput, OperationInput = ListSubscriberListsInput, OperationOutput = SubscriberLists>(configuration: ListSubscriberListsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
951
|
+
/** Configuration for the getSubscriber connector Step. */
|
|
952
|
+
interface GetSubscriberStepConfig<StepInput, OperationInput = GetSubscriberInput, OperationOutput = SubscriberProfile> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
953
|
+
/** Named connection supplying this operation. */
|
|
954
|
+
connection: Connection<{
|
|
955
|
+
getSubscriber(): Query<OperationInput, OperationOutput>;
|
|
956
|
+
}>;
|
|
957
|
+
/** Name matching the bound connection. */
|
|
958
|
+
connectionName: string;
|
|
959
|
+
/** Campaign Monitor returned the subscriber. */
|
|
960
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
961
|
+
/** Campaign Monitor did not find the subscriber. */
|
|
962
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
963
|
+
/** Campaign Monitor rejected the lookup. */
|
|
964
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
965
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
966
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
967
|
+
/** Local input or credentials are invalid. */
|
|
968
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
969
|
+
}
|
|
970
|
+
/** Build the getSubscriber Step from a named connection. */
|
|
971
|
+
declare function newGetSubscriberStep<StepInput, OperationInput = GetSubscriberInput, OperationOutput = SubscriberProfile>(configuration: GetSubscriberStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
972
|
+
/** Configuration for the upsertSubscriber connector Step. */
|
|
973
|
+
interface UpsertSubscriberStepConfig<StepInput, OperationInput = UpsertSubscriberInput, OperationOutput = SubscriberIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
974
|
+
/** Named connection supplying this operation. */
|
|
975
|
+
connection: Connection<{
|
|
976
|
+
upsertSubscriber(): Mutation<OperationInput, OperationOutput>;
|
|
977
|
+
}>;
|
|
978
|
+
/** Name matching the bound connection. */
|
|
979
|
+
connectionName: string;
|
|
980
|
+
/** Campaign Monitor queued the subscriber upsert. */
|
|
981
|
+
saved: StepTarget<MutationResult<OperationOutput>>;
|
|
982
|
+
/** Campaign Monitor rejected the upsert. */
|
|
983
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
984
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
985
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
986
|
+
/** Local input or credentials are invalid. */
|
|
987
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
988
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
989
|
+
maxSends?: number;
|
|
990
|
+
}
|
|
991
|
+
/** Build the upsertSubscriber Step from a named connection. */
|
|
992
|
+
declare function newUpsertSubscriberStep<StepInput, OperationInput = UpsertSubscriberInput, OperationOutput = SubscriberIdentity>(configuration: UpsertSubscriberStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
993
|
+
/** Configuration for the updateSubscriber connector Step. */
|
|
994
|
+
interface UpdateSubscriberStepConfig<StepInput, OperationInput = UpdateSubscriberInput, OperationOutput = SubscriberIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
995
|
+
/** Named connection supplying this operation. */
|
|
996
|
+
connection: Connection<{
|
|
997
|
+
updateSubscriber(): Mutation<OperationInput, OperationOutput>;
|
|
998
|
+
}>;
|
|
999
|
+
/** Name matching the bound connection. */
|
|
1000
|
+
connectionName: string;
|
|
1001
|
+
/** Campaign Monitor updated the subscriber. */
|
|
1002
|
+
updated: StepTarget<MutationResult<OperationOutput>>;
|
|
1003
|
+
/** Campaign Monitor did not find the subscriber. */
|
|
1004
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
1005
|
+
/** Campaign Monitor rejected the update. */
|
|
1006
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
1007
|
+
/** Campaign Monitor returned invalid JSON. */
|
|
1008
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
1009
|
+
/** Local input or credentials are invalid. */
|
|
1010
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
1011
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
1012
|
+
maxSends?: number;
|
|
1013
|
+
}
|
|
1014
|
+
/** Build the updateSubscriber Step from a named connection. */
|
|
1015
|
+
declare function newUpdateSubscriberStep<StepInput, OperationInput = UpdateSubscriberInput, OperationOutput = SubscriberIdentity>(configuration: UpdateSubscriberStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
1016
|
+
/** Configuration for the deleteSubscriber connector Step. */
|
|
1017
|
+
interface DeleteSubscriberStepConfig<StepInput, OperationInput = DeleteSubscriberInput, OperationOutput = SubscriberIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
1018
|
+
/** Named connection supplying this operation. */
|
|
1019
|
+
connection: Connection<{
|
|
1020
|
+
deleteSubscriber(): Mutation<OperationInput, OperationOutput>;
|
|
1021
|
+
}>;
|
|
1022
|
+
/** Name matching the bound connection. */
|
|
1023
|
+
connectionName: string;
|
|
1024
|
+
/** Campaign Monitor accepted the deletion. */
|
|
1025
|
+
deleted: StepTarget<MutationResult<OperationOutput>>;
|
|
1026
|
+
/** Campaign Monitor rejected the deletion. */
|
|
1027
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
1028
|
+
/** Campaign Monitor returned an oversized response. */
|
|
1029
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
1030
|
+
/** Local input or credentials are invalid. */
|
|
1031
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
1032
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
1033
|
+
maxSends?: number;
|
|
1034
|
+
}
|
|
1035
|
+
/** Build the deleteSubscriber Step from a named connection. */
|
|
1036
|
+
declare function newDeleteSubscriberStep<StepInput, OperationInput = DeleteSubscriberInput, OperationOutput = SubscriberIdentity>(configuration: DeleteSubscriberStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
1037
|
+
/** Configuration for the unsubscribeSubscriber connector Step. */
|
|
1038
|
+
interface UnsubscribeSubscriberStepConfig<StepInput, OperationInput = UnsubscribeSubscriberInput, OperationOutput = SubscriberIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
1039
|
+
/** Named connection supplying this operation. */
|
|
1040
|
+
connection: Connection<{
|
|
1041
|
+
unsubscribeSubscriber(): Mutation<OperationInput, OperationOutput>;
|
|
1042
|
+
}>;
|
|
1043
|
+
/** Name matching the bound connection. */
|
|
1044
|
+
connectionName: string;
|
|
1045
|
+
/** Campaign Monitor accepted the unsubscribe. */
|
|
1046
|
+
unsubscribed: StepTarget<MutationResult<OperationOutput>>;
|
|
1047
|
+
/** Campaign Monitor rejected the unsubscribe. */
|
|
1048
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
1049
|
+
/** Campaign Monitor returned an unexpected or oversized response. */
|
|
1050
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
1051
|
+
/** Local input or credentials are invalid. */
|
|
1052
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
1053
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
1054
|
+
maxSends?: number;
|
|
1055
|
+
}
|
|
1056
|
+
/** Build the unsubscribeSubscriber Step from a named connection. */
|
|
1057
|
+
declare function newUnsubscribeSubscriberStep<StepInput, OperationInput = UnsubscribeSubscriberInput, OperationOutput = SubscriberIdentity>(configuration: UnsubscribeSubscriberStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
37
1058
|
/** Configuration for the listClients connector Step. */
|
|
38
1059
|
interface ListClientsStepConfig<StepInput, OperationInput = ListClientsInput, OperationOutput = ClientsList> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
39
1060
|
/** Named connection supplying this operation. */
|
|
@@ -57,6 +1078,163 @@ declare function newListClientsStep<StepInput, OperationInput = ListClientsInput
|
|
|
57
1078
|
/** Open one named Campaign Monitor connection from Dex project configuration. */
|
|
58
1079
|
declare function newProjectConnection(project: LoadedProject, connectionName: string): Connection<Operations>;
|
|
59
1080
|
|
|
1081
|
+
declare abstract class CampaignMonitorQuery {
|
|
1082
|
+
protected readonly client: CampaignMonitorClient;
|
|
1083
|
+
protected abstract readonly contract: QueryDefinition;
|
|
1084
|
+
/** Bind an authenticated Campaign Monitor client. */
|
|
1085
|
+
constructor(client: CampaignMonitorClient);
|
|
1086
|
+
/** Return the generated operation contract. */
|
|
1087
|
+
definition(): QueryDefinition;
|
|
1088
|
+
}
|
|
1089
|
+
declare abstract class CampaignMonitorMutation {
|
|
1090
|
+
protected readonly client: CampaignMonitorClient;
|
|
1091
|
+
protected abstract readonly contract: MutationDefinition;
|
|
1092
|
+
/** Bind an authenticated Campaign Monitor client. */
|
|
1093
|
+
constructor(client: CampaignMonitorClient);
|
|
1094
|
+
/** Return the generated operation contract. */
|
|
1095
|
+
definition(): MutationDefinition;
|
|
1096
|
+
/** Return the same Call ID for each attempt of the logical write. */
|
|
1097
|
+
idempotencyKey(callID: string): string;
|
|
1098
|
+
}
|
|
1099
|
+
/** List draft, scheduled, or sent campaigns for one client. */
|
|
1100
|
+
declare class ListCampaignsOperation extends CampaignMonitorQuery implements Query<ListCampaignsInput, CampaignsPage> {
|
|
1101
|
+
protected readonly contract: QueryDefinition;
|
|
1102
|
+
/** Run the operation through the authenticated client. */
|
|
1103
|
+
invoke(call: Call, input: ListCampaignsInput): Promise<QueryAttempt<CampaignsPage>>;
|
|
1104
|
+
}
|
|
1105
|
+
/** Read sent campaign result counts. */
|
|
1106
|
+
declare class GetCampaignSummaryOperation extends CampaignMonitorQuery implements Query<GetCampaignSummaryInput, CampaignSummary> {
|
|
1107
|
+
protected readonly contract: QueryDefinition;
|
|
1108
|
+
/** Run the operation through the authenticated client. */
|
|
1109
|
+
invoke(call: Call, input: GetCampaignSummaryInput): Promise<QueryAttempt<CampaignSummary>>;
|
|
1110
|
+
}
|
|
1111
|
+
/** Create a draft campaign with hosted HTML and selected recipients. */
|
|
1112
|
+
declare class CreateDraftCampaignOperation extends CampaignMonitorMutation implements Mutation<CreateDraftCampaignInput, CampaignIdentity> {
|
|
1113
|
+
protected readonly contract: MutationDefinition;
|
|
1114
|
+
/** Run the operation through the authenticated client. */
|
|
1115
|
+
invoke(call: Call, input: CreateDraftCampaignInput): Promise<MutationAttempt<CampaignIdentity>>;
|
|
1116
|
+
}
|
|
1117
|
+
/** Send or schedule an existing draft campaign in the client's timezone. */
|
|
1118
|
+
declare class SendCampaignOperation extends CampaignMonitorMutation implements Mutation<SendCampaignInput, CampaignIdentity> {
|
|
1119
|
+
protected readonly contract: MutationDefinition;
|
|
1120
|
+
/** Run the operation through the authenticated client. */
|
|
1121
|
+
invoke(call: Call, input: SendCampaignInput): Promise<MutationAttempt<CampaignIdentity>>;
|
|
1122
|
+
}
|
|
1123
|
+
/** Send a draft campaign preview to selected addresses. */
|
|
1124
|
+
declare class SendCampaignPreviewOperation extends CampaignMonitorMutation implements Mutation<SendCampaignPreviewInput, CampaignIdentity> {
|
|
1125
|
+
protected readonly contract: MutationDefinition;
|
|
1126
|
+
/** Run the operation through the authenticated client. */
|
|
1127
|
+
invoke(call: Call, input: SendCampaignPreviewInput): Promise<MutationAttempt<CampaignIdentity>>;
|
|
1128
|
+
}
|
|
1129
|
+
/** Move a scheduled campaign back to drafts. */
|
|
1130
|
+
declare class UnscheduleCampaignOperation extends CampaignMonitorMutation implements Mutation<UnscheduleCampaignInput, CampaignIdentity> {
|
|
1131
|
+
protected readonly contract: MutationDefinition;
|
|
1132
|
+
/** Run the operation through the authenticated client. */
|
|
1133
|
+
invoke(call: Call, input: UnscheduleCampaignInput): Promise<MutationAttempt<CampaignIdentity>>;
|
|
1134
|
+
}
|
|
1135
|
+
/** Delete a campaign by ID. */
|
|
1136
|
+
declare class DeleteCampaignOperation extends CampaignMonitorMutation implements Mutation<DeleteCampaignInput, CampaignIdentity> {
|
|
1137
|
+
protected readonly contract: MutationDefinition;
|
|
1138
|
+
/** Run the operation through the authenticated client. */
|
|
1139
|
+
invoke(call: Call, input: DeleteCampaignInput): Promise<MutationAttempt<CampaignIdentity>>;
|
|
1140
|
+
}
|
|
1141
|
+
/** List segment IDs and names for one subscriber list. */
|
|
1142
|
+
declare class ListSegmentsOperation extends CampaignMonitorQuery implements Query<ListSegmentsInput, SegmentsList> {
|
|
1143
|
+
protected readonly contract: QueryDefinition;
|
|
1144
|
+
/** Run the operation through the authenticated client. */
|
|
1145
|
+
invoke(call: Call, input: ListSegmentsInput): Promise<QueryAttempt<SegmentsList>>;
|
|
1146
|
+
}
|
|
1147
|
+
/** Read a segment's title, list, rules, and active count. */
|
|
1148
|
+
declare class GetSegmentOperation extends CampaignMonitorQuery implements Query<GetSegmentInput, SegmentProfile> {
|
|
1149
|
+
protected readonly contract: QueryDefinition;
|
|
1150
|
+
/** Run the operation through the authenticated client. */
|
|
1151
|
+
invoke(call: Call, input: GetSegmentInput): Promise<QueryAttempt<SegmentProfile>>;
|
|
1152
|
+
}
|
|
1153
|
+
/** Create a segment with optional rule groups. */
|
|
1154
|
+
declare class CreateSegmentOperation extends CampaignMonitorMutation implements Mutation<CreateSegmentInput, SegmentIdentity> {
|
|
1155
|
+
protected readonly contract: MutationDefinition;
|
|
1156
|
+
/** Run the operation through the authenticated client. */
|
|
1157
|
+
invoke(call: Call, input: CreateSegmentInput): Promise<MutationAttempt<SegmentIdentity>>;
|
|
1158
|
+
}
|
|
1159
|
+
/** Replace a segment's title and optionally its complete rule groups. */
|
|
1160
|
+
declare class UpdateSegmentOperation extends CampaignMonitorMutation implements Mutation<UpdateSegmentInput, SegmentIdentity> {
|
|
1161
|
+
protected readonly contract: MutationDefinition;
|
|
1162
|
+
/** Run the operation through the authenticated client. */
|
|
1163
|
+
invoke(call: Call, input: UpdateSegmentInput): Promise<MutationAttempt<SegmentIdentity>>;
|
|
1164
|
+
}
|
|
1165
|
+
/** Delete one segment by ID. */
|
|
1166
|
+
declare class DeleteSegmentOperation extends CampaignMonitorMutation implements Mutation<DeleteSegmentInput, SegmentIdentity> {
|
|
1167
|
+
protected readonly contract: MutationDefinition;
|
|
1168
|
+
/** Run the operation through the authenticated client. */
|
|
1169
|
+
invoke(call: Call, input: DeleteSegmentInput): Promise<MutationAttempt<SegmentIdentity>>;
|
|
1170
|
+
}
|
|
1171
|
+
/** Read one subscriber list's settings. */
|
|
1172
|
+
declare class GetListOperation extends CampaignMonitorQuery implements Query<GetListInput, ListProfile> {
|
|
1173
|
+
protected readonly contract: QueryDefinition;
|
|
1174
|
+
/** Run the operation through the authenticated client. */
|
|
1175
|
+
invoke(call: Call, input: GetListInput): Promise<QueryAttempt<ListProfile>>;
|
|
1176
|
+
}
|
|
1177
|
+
/** Create a subscriber list for one client. */
|
|
1178
|
+
declare class CreateListOperation extends CampaignMonitorMutation implements Mutation<CreateListInput, ListIdentity> {
|
|
1179
|
+
protected readonly contract: MutationDefinition;
|
|
1180
|
+
/** Run the operation through the authenticated client. */
|
|
1181
|
+
invoke(call: Call, input: CreateListInput): Promise<MutationAttempt<ListIdentity>>;
|
|
1182
|
+
}
|
|
1183
|
+
/** Replace one list's basic settings without suppression-list scrubbing. */
|
|
1184
|
+
declare class UpdateListOperation extends CampaignMonitorMutation implements Mutation<UpdateListInput, ListIdentity> {
|
|
1185
|
+
protected readonly contract: MutationDefinition;
|
|
1186
|
+
/** Run the operation through the authenticated client. */
|
|
1187
|
+
invoke(call: Call, input: UpdateListInput): Promise<MutationAttempt<ListIdentity>>;
|
|
1188
|
+
}
|
|
1189
|
+
/** Delete one subscriber list by ID. */
|
|
1190
|
+
declare class DeleteListOperation extends CampaignMonitorMutation implements Mutation<DeleteListInput, ListIdentity> {
|
|
1191
|
+
protected readonly contract: MutationDefinition;
|
|
1192
|
+
/** Run the operation through the authenticated client. */
|
|
1193
|
+
invoke(call: Call, input: DeleteListInput): Promise<MutationAttempt<ListIdentity>>;
|
|
1194
|
+
}
|
|
1195
|
+
/** List one page of subscribers in a selected list state. */
|
|
1196
|
+
declare class ListSubscribersOperation extends CampaignMonitorQuery implements Query<ListSubscribersInput, SubscribersPage> {
|
|
1197
|
+
protected readonly contract: QueryDefinition;
|
|
1198
|
+
/** Run the operation through the authenticated client. */
|
|
1199
|
+
invoke(call: Call, input: ListSubscribersInput): Promise<QueryAttempt<SubscribersPage>>;
|
|
1200
|
+
}
|
|
1201
|
+
/** List subscriber list IDs and names for one client. */
|
|
1202
|
+
declare class ListSubscriberListsOperation extends CampaignMonitorQuery implements Query<ListSubscriberListsInput, SubscriberLists> {
|
|
1203
|
+
protected readonly contract: QueryDefinition;
|
|
1204
|
+
/** Run the operation through the authenticated client. */
|
|
1205
|
+
invoke(call: Call, input: ListSubscriberListsInput): Promise<QueryAttempt<SubscriberLists>>;
|
|
1206
|
+
}
|
|
1207
|
+
/** Read one subscriber's email, name, and state. */
|
|
1208
|
+
declare class GetSubscriberOperation extends CampaignMonitorQuery implements Query<GetSubscriberInput, SubscriberProfile> {
|
|
1209
|
+
protected readonly contract: QueryDefinition;
|
|
1210
|
+
/** Run the operation through the authenticated client. */
|
|
1211
|
+
invoke(call: Call, input: GetSubscriberInput): Promise<QueryAttempt<SubscriberProfile>>;
|
|
1212
|
+
}
|
|
1213
|
+
/** Add a subscriber or replace the existing subscriber's name. */
|
|
1214
|
+
declare class UpsertSubscriberOperation extends CampaignMonitorMutation implements Mutation<UpsertSubscriberInput, SubscriberIdentity> {
|
|
1215
|
+
protected readonly contract: MutationDefinition;
|
|
1216
|
+
/** Run the operation through the authenticated client. */
|
|
1217
|
+
invoke(call: Call, input: UpsertSubscriberInput): Promise<MutationAttempt<SubscriberIdentity>>;
|
|
1218
|
+
}
|
|
1219
|
+
/** Replace one existing subscriber's name without resubscribing. */
|
|
1220
|
+
declare class UpdateSubscriberOperation extends CampaignMonitorMutation implements Mutation<UpdateSubscriberInput, SubscriberIdentity> {
|
|
1221
|
+
protected readonly contract: MutationDefinition;
|
|
1222
|
+
/** Run the operation through the authenticated client. */
|
|
1223
|
+
invoke(call: Call, input: UpdateSubscriberInput): Promise<MutationAttempt<SubscriberIdentity>>;
|
|
1224
|
+
}
|
|
1225
|
+
/** Mark one active subscriber deleted in a list. */
|
|
1226
|
+
declare class DeleteSubscriberOperation extends CampaignMonitorMutation implements Mutation<DeleteSubscriberInput, SubscriberIdentity> {
|
|
1227
|
+
protected readonly contract: MutationDefinition;
|
|
1228
|
+
/** Run the operation through the authenticated client. */
|
|
1229
|
+
invoke(call: Call, input: DeleteSubscriberInput): Promise<MutationAttempt<SubscriberIdentity>>;
|
|
1230
|
+
}
|
|
1231
|
+
/** Unsubscribe one active subscriber and apply the list's suppression policy. */
|
|
1232
|
+
declare class UnsubscribeSubscriberOperation extends CampaignMonitorMutation implements Mutation<UnsubscribeSubscriberInput, SubscriberIdentity> {
|
|
1233
|
+
protected readonly contract: MutationDefinition;
|
|
1234
|
+
/** Run the operation through the authenticated client. */
|
|
1235
|
+
invoke(call: Call, input: UnsubscribeSubscriberInput): Promise<MutationAttempt<SubscriberIdentity>>;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
60
1238
|
/** Optional transport dependency for provider tests and local Dex examples. */
|
|
61
1239
|
interface CampaignMonitorClientOptions {
|
|
62
1240
|
/** One bounded provider request sender. */ send?: (request: ProviderRequest) => Promise<ProviderResponse>;
|
|
@@ -68,6 +1246,13 @@ interface ProviderOutcome {
|
|
|
68
1246
|
retry?: boolean;
|
|
69
1247
|
retryAfterMs?: number;
|
|
70
1248
|
}
|
|
1249
|
+
/** Bounded HTTP result with status retained after headers arrive. */
|
|
1250
|
+
interface CampaignMonitorExchange {
|
|
1251
|
+
/** HTTP status, or zero if the request did not receive headers. */ status: number;
|
|
1252
|
+
/** Complete raw body when available. */ body: Uint8Array;
|
|
1253
|
+
/** Delay requested by the provider in milliseconds. */ retryAfterMs: number;
|
|
1254
|
+
/** Request or response failure. */ error?: 'credential' | 'request' | 'tooLarge' | 'interrupted';
|
|
1255
|
+
}
|
|
71
1256
|
/** Authenticated Campaign Monitor API v3.3 client with call-time API key resolution. */
|
|
72
1257
|
declare class CampaignMonitorClient {
|
|
73
1258
|
private readonly credentials;
|
|
@@ -78,8 +1263,56 @@ declare class CampaignMonitorClient {
|
|
|
78
1263
|
/** Validate account configuration without contacting Campaign Monitor. */
|
|
79
1264
|
constructor(config: Config, credentials: CredentialProvider<Credentials>, options?: CampaignMonitorClientOptions);
|
|
80
1265
|
/** Bind the client discovery Query. */ listClients(): ListClientsOperation;
|
|
1266
|
+
/** List draft, scheduled, or sent campaigns for one client. */
|
|
1267
|
+
listCampaigns(): ListCampaignsOperation;
|
|
1268
|
+
/** Read sent campaign result counts. */
|
|
1269
|
+
getCampaignSummary(): GetCampaignSummaryOperation;
|
|
1270
|
+
/** Create a draft campaign with hosted HTML and selected recipients. */
|
|
1271
|
+
createDraftCampaign(): CreateDraftCampaignOperation;
|
|
1272
|
+
/** Send or schedule an existing draft campaign in the client's timezone. */
|
|
1273
|
+
sendCampaign(): SendCampaignOperation;
|
|
1274
|
+
/** Send a draft campaign preview to selected addresses. */
|
|
1275
|
+
sendCampaignPreview(): SendCampaignPreviewOperation;
|
|
1276
|
+
/** Move a scheduled campaign back to drafts. */
|
|
1277
|
+
unscheduleCampaign(): UnscheduleCampaignOperation;
|
|
1278
|
+
/** Delete a campaign by ID. */
|
|
1279
|
+
deleteCampaign(): DeleteCampaignOperation;
|
|
1280
|
+
/** List segment IDs and names for one subscriber list. */
|
|
1281
|
+
listSegments(): ListSegmentsOperation;
|
|
1282
|
+
/** Read a segment's title, list, rules, and active count. */
|
|
1283
|
+
getSegment(): GetSegmentOperation;
|
|
1284
|
+
/** Create a segment with optional rule groups. */
|
|
1285
|
+
createSegment(): CreateSegmentOperation;
|
|
1286
|
+
/** Replace a segment's title and optionally its complete rule groups. */
|
|
1287
|
+
updateSegment(): UpdateSegmentOperation;
|
|
1288
|
+
/** Delete one segment by ID. */
|
|
1289
|
+
deleteSegment(): DeleteSegmentOperation;
|
|
1290
|
+
/** Read one subscriber list's settings. */
|
|
1291
|
+
getList(): GetListOperation;
|
|
1292
|
+
/** Create a subscriber list for one client. */
|
|
1293
|
+
createList(): CreateListOperation;
|
|
1294
|
+
/** Replace one list's basic settings without suppression-list scrubbing. */
|
|
1295
|
+
updateList(): UpdateListOperation;
|
|
1296
|
+
/** Delete one subscriber list by ID. */
|
|
1297
|
+
deleteList(): DeleteListOperation;
|
|
1298
|
+
/** List one page of subscribers in a selected list state. */
|
|
1299
|
+
listSubscribers(): ListSubscribersOperation;
|
|
1300
|
+
/** List subscriber list IDs and names for one client. */
|
|
1301
|
+
listSubscriberLists(): ListSubscriberListsOperation;
|
|
1302
|
+
/** Read one subscriber's email, name, and state. */
|
|
1303
|
+
getSubscriber(): GetSubscriberOperation;
|
|
1304
|
+
/** Add a subscriber or replace the existing subscriber's name. */
|
|
1305
|
+
upsertSubscriber(): UpsertSubscriberOperation;
|
|
1306
|
+
/** Replace one existing subscriber's name without resubscribing. */
|
|
1307
|
+
updateSubscriber(): UpdateSubscriberOperation;
|
|
1308
|
+
/** Mark one active subscriber deleted in a list. */
|
|
1309
|
+
deleteSubscriber(): DeleteSubscriberOperation;
|
|
1310
|
+
/** Unsubscribe one active subscriber and apply the list's suppression policy. */
|
|
1311
|
+
unsubscribeSubscriber(): UnsubscribeSubscriberOperation;
|
|
81
1312
|
/** Send one read and classify transport, HTTP, and response-size outcomes. */
|
|
82
1313
|
exchange(call: Call): Promise<ProviderOutcome>;
|
|
1314
|
+
/** Resolve credentials and send one bounded provider request. */
|
|
1315
|
+
request(call: Call, method: string, path: string, payload?: Record<string, unknown>, signal?: AbortSignal): Promise<CampaignMonitorExchange>;
|
|
83
1316
|
}
|
|
84
1317
|
/** Read client IDs and names without provider credentials or billing fields. */
|
|
85
1318
|
declare class ListClientsOperation implements Query<ListClientsInput, ClientsList> {
|
|
@@ -90,4 +1323,4 @@ declare class ListClientsOperation implements Query<ListClientsInput, ClientsLis
|
|
|
90
1323
|
invoke(call: Call, input: ListClientsInput): Promise<QueryAttempt<ClientsList>>;
|
|
91
1324
|
}
|
|
92
1325
|
|
|
93
|
-
export { CampaignMonitorClient, type CampaignMonitorClientOptions, ClientsList, Config, Connection, ConnectorID, Credentials, ListClientsBranch, ListClientsBranchDefect, ListClientsBranchInvalidResponse, ListClientsBranchListed, ListClientsBranchProviderRejected, ListClientsDefinition, ListClientsInput, ListClientsMetadata, ListClientsOperation, type ListClientsStepConfig, ProviderID, newListClientsStep, newProjectConnection };
|
|
1326
|
+
export { CampaignIdentity, CampaignMonitorClient, type CampaignMonitorClientOptions, CampaignSummary, CampaignsPage, ClientsList, Config, Connection, ConnectorID, CreateDraftCampaignBranch, CreateDraftCampaignBranchCreated, CreateDraftCampaignBranchDefect, CreateDraftCampaignBranchProviderRejected, CreateDraftCampaignBranchUncertain, CreateDraftCampaignDefinition, CreateDraftCampaignInput, CreateDraftCampaignMetadata, CreateDraftCampaignOperation, type CreateDraftCampaignStepConfig, CreateListBranch, CreateListBranchCreated, CreateListBranchDefect, CreateListBranchProviderRejected, CreateListBranchUncertain, CreateListDefinition, CreateListInput, CreateListMetadata, CreateListOperation, type CreateListStepConfig, CreateSegmentBranch, CreateSegmentBranchCreated, CreateSegmentBranchDefect, CreateSegmentBranchProviderRejected, CreateSegmentBranchUncertain, CreateSegmentDefinition, CreateSegmentInput, CreateSegmentMetadata, CreateSegmentOperation, type CreateSegmentStepConfig, Credentials, DeleteCampaignBranch, DeleteCampaignBranchDefect, DeleteCampaignBranchDeleted, DeleteCampaignBranchInvalidResponse, DeleteCampaignBranchProviderRejected, DeleteCampaignDefinition, DeleteCampaignInput, DeleteCampaignMetadata, DeleteCampaignOperation, type DeleteCampaignStepConfig, DeleteListBranch, DeleteListBranchDefect, DeleteListBranchDeleted, DeleteListBranchInvalidResponse, DeleteListBranchProviderRejected, DeleteListDefinition, DeleteListInput, DeleteListMetadata, DeleteListOperation, type DeleteListStepConfig, DeleteSegmentBranch, DeleteSegmentBranchDefect, DeleteSegmentBranchDeleted, DeleteSegmentBranchInvalidResponse, DeleteSegmentBranchProviderRejected, DeleteSegmentDefinition, DeleteSegmentInput, DeleteSegmentMetadata, DeleteSegmentOperation, type DeleteSegmentStepConfig, DeleteSubscriberBranch, DeleteSubscriberBranchDefect, DeleteSubscriberBranchDeleted, DeleteSubscriberBranchInvalidResponse, DeleteSubscriberBranchProviderRejected, DeleteSubscriberDefinition, DeleteSubscriberInput, DeleteSubscriberMetadata, DeleteSubscriberOperation, type DeleteSubscriberStepConfig, GetCampaignSummaryBranch, GetCampaignSummaryBranchDefect, GetCampaignSummaryBranchFound, GetCampaignSummaryBranchInvalidResponse, GetCampaignSummaryBranchNotFound, GetCampaignSummaryBranchProviderRejected, GetCampaignSummaryDefinition, GetCampaignSummaryInput, GetCampaignSummaryMetadata, GetCampaignSummaryOperation, type GetCampaignSummaryStepConfig, GetListBranch, GetListBranchDefect, GetListBranchFound, GetListBranchInvalidResponse, GetListBranchNotFound, GetListBranchProviderRejected, GetListDefinition, GetListInput, GetListMetadata, GetListOperation, type GetListStepConfig, GetSegmentBranch, GetSegmentBranchDefect, GetSegmentBranchFound, GetSegmentBranchInvalidResponse, GetSegmentBranchNotFound, GetSegmentBranchProviderRejected, GetSegmentDefinition, GetSegmentInput, GetSegmentMetadata, GetSegmentOperation, type GetSegmentStepConfig, GetSubscriberBranch, GetSubscriberBranchDefect, GetSubscriberBranchFound, GetSubscriberBranchInvalidResponse, GetSubscriberBranchNotFound, GetSubscriberBranchProviderRejected, GetSubscriberDefinition, GetSubscriberInput, GetSubscriberMetadata, GetSubscriberOperation, type GetSubscriberStepConfig, ListCampaignsBranch, ListCampaignsBranchDefect, ListCampaignsBranchInvalidResponse, ListCampaignsBranchListed, ListCampaignsBranchProviderRejected, ListCampaignsDefinition, ListCampaignsInput, ListCampaignsMetadata, ListCampaignsOperation, type ListCampaignsStepConfig, ListClientsBranch, ListClientsBranchDefect, ListClientsBranchInvalidResponse, ListClientsBranchListed, ListClientsBranchProviderRejected, ListClientsDefinition, ListClientsInput, ListClientsMetadata, ListClientsOperation, type ListClientsStepConfig, ListIdentity, ListProfile, ListSegmentsBranch, ListSegmentsBranchDefect, ListSegmentsBranchInvalidResponse, ListSegmentsBranchListed, ListSegmentsBranchProviderRejected, ListSegmentsDefinition, ListSegmentsInput, ListSegmentsMetadata, ListSegmentsOperation, type ListSegmentsStepConfig, ListSubscriberListsBranch, ListSubscriberListsBranchDefect, ListSubscriberListsBranchInvalidResponse, ListSubscriberListsBranchListed, ListSubscriberListsBranchProviderRejected, ListSubscriberListsDefinition, ListSubscriberListsInput, ListSubscriberListsMetadata, ListSubscriberListsOperation, type ListSubscriberListsStepConfig, ListSubscribersBranch, ListSubscribersBranchDefect, ListSubscribersBranchInvalidResponse, ListSubscribersBranchListed, ListSubscribersBranchProviderRejected, ListSubscribersDefinition, ListSubscribersInput, ListSubscribersMetadata, ListSubscribersOperation, type ListSubscribersStepConfig, ProviderID, SegmentIdentity, SegmentProfile, SegmentsList, SendCampaignBranch, SendCampaignBranchDefect, SendCampaignBranchProviderRejected, SendCampaignBranchSent, SendCampaignBranchUncertain, SendCampaignDefinition, SendCampaignInput, SendCampaignMetadata, SendCampaignOperation, SendCampaignPreviewBranch, SendCampaignPreviewBranchDefect, SendCampaignPreviewBranchProviderRejected, SendCampaignPreviewBranchSent, SendCampaignPreviewBranchUncertain, SendCampaignPreviewDefinition, SendCampaignPreviewInput, SendCampaignPreviewMetadata, SendCampaignPreviewOperation, type SendCampaignPreviewStepConfig, type SendCampaignStepConfig, SubscriberIdentity, SubscriberLists, SubscriberProfile, SubscribersPage, UnscheduleCampaignBranch, UnscheduleCampaignBranchDefect, UnscheduleCampaignBranchInvalidResponse, UnscheduleCampaignBranchProviderRejected, UnscheduleCampaignBranchUnscheduled, UnscheduleCampaignDefinition, UnscheduleCampaignInput, UnscheduleCampaignMetadata, UnscheduleCampaignOperation, type UnscheduleCampaignStepConfig, UnsubscribeSubscriberBranch, UnsubscribeSubscriberBranchDefect, UnsubscribeSubscriberBranchInvalidResponse, UnsubscribeSubscriberBranchProviderRejected, UnsubscribeSubscriberBranchUnsubscribed, UnsubscribeSubscriberDefinition, UnsubscribeSubscriberInput, UnsubscribeSubscriberMetadata, UnsubscribeSubscriberOperation, type UnsubscribeSubscriberStepConfig, UpdateListBranch, UpdateListBranchDefect, UpdateListBranchInvalidResponse, UpdateListBranchNotFound, UpdateListBranchProviderRejected, UpdateListBranchUpdated, UpdateListDefinition, UpdateListInput, UpdateListMetadata, UpdateListOperation, type UpdateListStepConfig, UpdateSegmentBranch, UpdateSegmentBranchDefect, UpdateSegmentBranchInvalidResponse, UpdateSegmentBranchNotFound, UpdateSegmentBranchProviderRejected, UpdateSegmentBranchUpdated, UpdateSegmentDefinition, UpdateSegmentInput, UpdateSegmentMetadata, UpdateSegmentOperation, type UpdateSegmentStepConfig, UpdateSubscriberBranch, UpdateSubscriberBranchDefect, UpdateSubscriberBranchInvalidResponse, UpdateSubscriberBranchNotFound, UpdateSubscriberBranchProviderRejected, UpdateSubscriberBranchUpdated, UpdateSubscriberDefinition, UpdateSubscriberInput, UpdateSubscriberMetadata, UpdateSubscriberOperation, type UpdateSubscriberStepConfig, UpsertSubscriberBranch, UpsertSubscriberBranchDefect, UpsertSubscriberBranchInvalidResponse, UpsertSubscriberBranchProviderRejected, UpsertSubscriberBranchSaved, UpsertSubscriberDefinition, UpsertSubscriberInput, UpsertSubscriberMetadata, UpsertSubscriberOperation, type UpsertSubscriberStepConfig, newCreateDraftCampaignStep, newCreateListStep, newCreateSegmentStep, newDeleteCampaignStep, newDeleteListStep, newDeleteSegmentStep, newDeleteSubscriberStep, newGetCampaignSummaryStep, newGetListStep, newGetSegmentStep, newGetSubscriberStep, newListCampaignsStep, newListClientsStep, newListSegmentsStep, newListSubscriberListsStep, newListSubscribersStep, newProjectConnection, newSendCampaignPreviewStep, newSendCampaignStep, newUnscheduleCampaignStep, newUnsubscribeSubscriberStep, newUpdateListStep, newUpdateSegmentStep, newUpdateSubscriberStep, newUpsertSubscriberStep };
|