@superdurable/connector-intuit-mailchimp 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +22 -2
- package/dex-connector.json +440 -0
- package/dist/chunk-Z4CC3JDG.js +355 -0
- package/dist/connection-CNe_v9QS.d.ts +372 -0
- package/dist/index.d.ts +505 -0
- package/dist/index.js +1239 -0
- package/dist/mock.d.ts +149 -0
- package/dist/mock.js +359 -0
- package/package.json +63 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Super Durable
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Mailchimp TypeScript connector
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@superdurable/connector-intuit-mailchimp` provides typed Dex operations for reading and listing audience contacts, upserting contacts, updating tags, and sending a reviewed campaign, and the `memberChanged` poll Trigger. It requires `@superdurable/connectors-sdk` 0.12.0, the release of the poll Trigger kit.
|
|
4
|
+
|
|
5
|
+
Install with `npm install @superdurable/connector-intuit-mailchimp@0.2.0`. Configure a Mailchimp API key in Dex Web as described in the [connector README](../README.md#mailchimp-setup). The package derives the data center from the key suffix and never puts the key in Flow input or output.
|
|
6
|
+
|
|
7
|
+
The runnable [get-member example](examples/get-member/README.md) shows the static connection name, Worker, and Flow. Its integration test uses a local Mailchimp stand-in and a real `dexcli dev` server. The Go-recorded [conformance scenarios](../../../../conformance/connectors/intuit/mailchimp/scenarios.json) cover all five operations, including retries and campaign send recovery.
|
|
8
|
+
|
|
9
|
+
For `sendCampaign`, a Mailchimp throttle or a connection failure proven to occur before the send clears the dispatch checkpoint and retries. A send that might have reached Mailchimp keeps the checkpoint; a later attempt reads campaign status and reports `alreadySent` only when Mailchimp shows `sending` or `sent`, otherwise `uncertain`.
|
|
10
|
+
|
|
11
|
+
## memberChanged Trigger
|
|
12
|
+
|
|
13
|
+
`memberChanged` delivers each contact added to or changed in one audience, at behavior parity with the Go connector; the [connector README](../README.md#memberchanged-trigger) describes the baseline, lookback, paging, event IDs, status filter, rate limits, and cursor resets. The poll cursor token, the keyed snapshot entries, and the Trigger event IDs match Go byte for byte, so Go and TypeScript replicas share one cursor document and one Trigger inbox; `test/member_changed_go_parity.test.ts` replays a recording of the Go fetcher, including HTML-escaped and non-ASCII merge fields, numbers in exponent form, reordered tags, paging by time and by offset, and every failure class.
|
|
14
|
+
|
|
15
|
+
- `newProjectMemberTriggerRunner(project, connection, routes)` loads each binding's saved `audienceId` and `statuses` and records each change in the binding's project Trigger inbox before its cursor commits, as [`examples/member-changed/app.ts`](examples/member-changed/app.ts) does. A binding without a saved audience throws.
|
|
16
|
+
- `newMemberTriggerRunner(connection, routes)` takes routes with a configuration, a target, and an optional cursor store.
|
|
17
|
+
- `newMemberChangedTrigger(...)` keeps its cursor in memory, like Go's generated `NewMemberChangedTrigger`, so it records a new baseline on every start.
|
|
18
|
+
|
|
19
|
+
`newProjectConnection` reads the connection's `pollInterval` (at least 5 seconds); `MailchimpClient` takes it as `pollIntervalMs` and throws below `MinimumPollIntervalMs`. The runner sends one request at a time for every binding of a connection. A 429, or a 403 without an error document, is `markRateLimited` with `Retry-After`; a 400 for the poll query, an undecodable cursor, or a cursor for another audience is `markCursorInvalid`, which records a new baseline. `MemberChangedEventSchema` and `MemberChangedTriggerConfigurationSchema` are zod schemas with the Go JSON fields.
|
|
20
|
+
|
|
21
|
+
The [member-changed example](examples/member-changed/README.md) starts one `MailchimpMemberChangeTypeScript` Flow per change and reads the contact back with `newGetMemberStep`.
|
|
22
|
+
|
|
23
|
+
Live Mailchimp provider authorization and behavior have not been verified for this TypeScript package, nor have the Trigger's live assumptions: whether `since_last_changed` is exclusive at one-second resolution, how soon a change becomes listable, and whether Mailchimp ever sends `Retry-After`.
|
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
{
|
|
2
|
+
"connectorId": "mailchimp",
|
|
3
|
+
"releaseTag": "connectors/intuit/mailchimp/go/v0.24.0",
|
|
4
|
+
"package": {
|
|
5
|
+
"ecosystem": "npm",
|
|
6
|
+
"name": "@superdurable/connector-intuit-mailchimp",
|
|
7
|
+
"version": "0.2.0"
|
|
8
|
+
},
|
|
9
|
+
"factories": [
|
|
10
|
+
{
|
|
11
|
+
"name": "newGetMemberStep",
|
|
12
|
+
"kind": "query",
|
|
13
|
+
"operationId": "getMember",
|
|
14
|
+
"inputType": "GetMemberInput",
|
|
15
|
+
"description": "Read one audience contact by email address, addressed by the MD5 hash of the lowercased address, with its status, merge fields, and up to 50 tags.",
|
|
16
|
+
"fields": {
|
|
17
|
+
"stepType": "stepType",
|
|
18
|
+
"annotations": "annotations",
|
|
19
|
+
"connectionName": "connectionName",
|
|
20
|
+
"resultAttribute": "resultAttribute"
|
|
21
|
+
},
|
|
22
|
+
"branches": [
|
|
23
|
+
{
|
|
24
|
+
"id": "found",
|
|
25
|
+
"field": "found",
|
|
26
|
+
"optional": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "notFound",
|
|
30
|
+
"field": "notFound",
|
|
31
|
+
"optional": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "providerRejected",
|
|
35
|
+
"field": "providerRejected",
|
|
36
|
+
"optional": true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "invalidResponse",
|
|
40
|
+
"field": "invalidResponse",
|
|
41
|
+
"optional": true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "defect",
|
|
45
|
+
"field": "defect",
|
|
46
|
+
"optional": true
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"inputSchema": {
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"description": "GetMemberInput identifies one audience contact.",
|
|
52
|
+
"properties": {
|
|
53
|
+
"emailAddress": {
|
|
54
|
+
"description": "EmailAddress is the contact's bare email address. The connector requests the MD5 hash of its lowercased form, so letter case does not matter.",
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"listId": {
|
|
58
|
+
"description": "ListID is the audience ID, Mailchimp's list_id, such as 57afe96172.",
|
|
59
|
+
"type": "string"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"required": [
|
|
63
|
+
"emailAddress",
|
|
64
|
+
"listId"
|
|
65
|
+
],
|
|
66
|
+
"type": "object"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "newListMembersStep",
|
|
71
|
+
"kind": "query",
|
|
72
|
+
"operationId": "listMembers",
|
|
73
|
+
"inputType": "ListMembersInput",
|
|
74
|
+
"description": "List one bounded page of an audience's contacts, oldest change first, optionally only one status or contacts changed or opted in since a time, continuing at the returned offset.",
|
|
75
|
+
"fields": {
|
|
76
|
+
"stepType": "stepType",
|
|
77
|
+
"annotations": "annotations",
|
|
78
|
+
"connectionName": "connectionName",
|
|
79
|
+
"resultAttribute": "resultAttribute"
|
|
80
|
+
},
|
|
81
|
+
"branches": [
|
|
82
|
+
{
|
|
83
|
+
"id": "listed",
|
|
84
|
+
"field": "listed",
|
|
85
|
+
"optional": false
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "notFound",
|
|
89
|
+
"field": "notFound",
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "providerRejected",
|
|
94
|
+
"field": "providerRejected",
|
|
95
|
+
"optional": true
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "invalidResponse",
|
|
99
|
+
"field": "invalidResponse",
|
|
100
|
+
"optional": true
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "defect",
|
|
104
|
+
"field": "defect",
|
|
105
|
+
"optional": true
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"inputSchema": {
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"description": "ListMembersInput selects one page of an audience's contacts. Pages are ordered by last change, oldest first, and continue with Offset.",
|
|
111
|
+
"properties": {
|
|
112
|
+
"changedSince": {
|
|
113
|
+
"description": "ChangedSince keeps only contacts whose information changed after this time; nil applies no bound.",
|
|
114
|
+
"format": "date-time",
|
|
115
|
+
"type": [
|
|
116
|
+
"string",
|
|
117
|
+
"null"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"listId": {
|
|
121
|
+
"description": "ListID is the audience ID, Mailchimp's list_id.",
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"offset": {
|
|
125
|
+
"description": "Offset is the number of matching contacts to skip; use the previous page's NextOffset.",
|
|
126
|
+
"type": "integer"
|
|
127
|
+
},
|
|
128
|
+
"optedInSince": {
|
|
129
|
+
"description": "OptedInSince keeps only contacts who opted in after this time; nil applies no bound.",
|
|
130
|
+
"format": "date-time",
|
|
131
|
+
"type": [
|
|
132
|
+
"string",
|
|
133
|
+
"null"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
"pageSize": {
|
|
137
|
+
"description": "PageSize is the number of contacts to read, 1 to 1000; zero reads 100.",
|
|
138
|
+
"type": "integer"
|
|
139
|
+
},
|
|
140
|
+
"status": {
|
|
141
|
+
"description": "Status keeps only contacts in one status, including cleaned or archived; empty lists every status.",
|
|
142
|
+
"enum": [
|
|
143
|
+
"archived",
|
|
144
|
+
"cleaned",
|
|
145
|
+
"pending",
|
|
146
|
+
"subscribed",
|
|
147
|
+
"transactional",
|
|
148
|
+
"unsubscribed"
|
|
149
|
+
],
|
|
150
|
+
"type": "string"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"required": [
|
|
154
|
+
"listId"
|
|
155
|
+
],
|
|
156
|
+
"type": "object"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "newUpsertMemberStep",
|
|
161
|
+
"kind": "mutation",
|
|
162
|
+
"operationId": "upsertMember",
|
|
163
|
+
"inputType": "UpsertMemberInput",
|
|
164
|
+
"description": "Add a contact or update an existing one with PUT, which Mailchimp keys by the contact's address, so a repeated attempt writes the same values. statusIfNew applies only to a new contact; changing an existing contact to subscribed or pending requires isResubscribeAllowed.",
|
|
165
|
+
"fields": {
|
|
166
|
+
"stepType": "stepType",
|
|
167
|
+
"annotations": "annotations",
|
|
168
|
+
"connectionName": "connectionName",
|
|
169
|
+
"resultAttribute": "resultAttribute"
|
|
170
|
+
},
|
|
171
|
+
"branches": [
|
|
172
|
+
{
|
|
173
|
+
"id": "upserted",
|
|
174
|
+
"field": "upserted",
|
|
175
|
+
"optional": false
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "providerRejected",
|
|
179
|
+
"field": "providerRejected",
|
|
180
|
+
"optional": true
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"id": "invalidResponse",
|
|
184
|
+
"field": "invalidResponse",
|
|
185
|
+
"optional": true
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"id": "defect",
|
|
189
|
+
"field": "defect",
|
|
190
|
+
"optional": true
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"inputSchema": {
|
|
194
|
+
"$defs": {
|
|
195
|
+
"MarketingPermissionInput": {
|
|
196
|
+
"additionalProperties": false,
|
|
197
|
+
"description": "MarketingPermissionInput is one GDPR marketing permission the contact opted in to or out of.",
|
|
198
|
+
"properties": {
|
|
199
|
+
"isEnabled": {
|
|
200
|
+
"description": "IsEnabled reports that the contact opted in.",
|
|
201
|
+
"type": "boolean"
|
|
202
|
+
},
|
|
203
|
+
"marketingPermissionId": {
|
|
204
|
+
"description": "MarketingPermissionID is the audience's marketing_permission_id, listed on a contact read with marketing permissions enabled.",
|
|
205
|
+
"type": "string"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"required": [
|
|
209
|
+
"isEnabled",
|
|
210
|
+
"marketingPermissionId"
|
|
211
|
+
],
|
|
212
|
+
"type": "object"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"additionalProperties": false,
|
|
216
|
+
"description": "UpsertMemberInput adds a contact to an audience or updates the existing contact with the same address. Mailchimp applies StatusIfNew only when it creates the contact, and Status to an existing contact too, so an unsubscribed contact keeps its status unless Status says otherwise.",
|
|
217
|
+
"properties": {
|
|
218
|
+
"emailAddress": {
|
|
219
|
+
"description": "EmailAddress is the contact's bare email address; letter case does not change which contact is written.",
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
"isResubscribeAllowed": {
|
|
223
|
+
"description": "IsResubscribeAllowed must be true when Status is subscribed or pending, because Mailchimp then resubscribes, or emails a confirmation to, a contact who unsubscribed or was cleaned. Set it only when the contact asked to subscribe again.",
|
|
224
|
+
"type": "boolean"
|
|
225
|
+
},
|
|
226
|
+
"listId": {
|
|
227
|
+
"description": "ListID is the audience ID, Mailchimp's list_id.",
|
|
228
|
+
"type": "string"
|
|
229
|
+
},
|
|
230
|
+
"marketingPermissions": {
|
|
231
|
+
"description": "MarketingPermissions records the contact's consent to the audience's GDPR marketing permissions.",
|
|
232
|
+
"items": {
|
|
233
|
+
"$ref": "#/$defs/MarketingPermissionInput"
|
|
234
|
+
},
|
|
235
|
+
"type": "array"
|
|
236
|
+
},
|
|
237
|
+
"mergeFields": {
|
|
238
|
+
"additionalProperties": {},
|
|
239
|
+
"description": "MergeFields maps merge tags such as FNAME to values: a string, a number, or an address object with addr1, city, state, and zip. Tags that are omitted keep their stored values.",
|
|
240
|
+
"type": "object"
|
|
241
|
+
},
|
|
242
|
+
"shouldSkipMergeValidation": {
|
|
243
|
+
"description": "ShouldSkipMergeValidation sends skip_merge_validation=true, so Mailchimp accepts the contact without the audience's required merge fields.",
|
|
244
|
+
"type": "boolean"
|
|
245
|
+
},
|
|
246
|
+
"status": {
|
|
247
|
+
"description": "Status, when set, also changes an existing contact's status: subscribed, pending, unsubscribed, or transactional. Empty keeps the existing contact's status. Unsubscribed records an opt-out.",
|
|
248
|
+
"enum": [
|
|
249
|
+
"archived",
|
|
250
|
+
"cleaned",
|
|
251
|
+
"pending",
|
|
252
|
+
"subscribed",
|
|
253
|
+
"transactional",
|
|
254
|
+
"unsubscribed"
|
|
255
|
+
],
|
|
256
|
+
"type": "string"
|
|
257
|
+
},
|
|
258
|
+
"statusIfNew": {
|
|
259
|
+
"description": "StatusIfNew is the status of a contact Mailchimp creates: subscribed for a contact who gave permission, pending to send Mailchimp's confirmation email first, unsubscribed, or transactional. It is required and ignored for an existing contact.",
|
|
260
|
+
"enum": [
|
|
261
|
+
"archived",
|
|
262
|
+
"cleaned",
|
|
263
|
+
"pending",
|
|
264
|
+
"subscribed",
|
|
265
|
+
"transactional",
|
|
266
|
+
"unsubscribed"
|
|
267
|
+
],
|
|
268
|
+
"type": "string"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"required": [
|
|
272
|
+
"emailAddress",
|
|
273
|
+
"listId",
|
|
274
|
+
"statusIfNew"
|
|
275
|
+
],
|
|
276
|
+
"type": "object"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "newUpdateMemberTagsStep",
|
|
281
|
+
"kind": "mutation",
|
|
282
|
+
"operationId": "updateMemberTags",
|
|
283
|
+
"inputType": "UpdateMemberTagsInput",
|
|
284
|
+
"description": "Add and remove tags on one audience contact by declaring each tag active or inactive, so a repeated attempt leaves the same tags.",
|
|
285
|
+
"fields": {
|
|
286
|
+
"stepType": "stepType",
|
|
287
|
+
"annotations": "annotations",
|
|
288
|
+
"connectionName": "connectionName",
|
|
289
|
+
"resultAttribute": "resultAttribute"
|
|
290
|
+
},
|
|
291
|
+
"branches": [
|
|
292
|
+
{
|
|
293
|
+
"id": "updated",
|
|
294
|
+
"field": "updated",
|
|
295
|
+
"optional": false
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"id": "notFound",
|
|
299
|
+
"field": "notFound",
|
|
300
|
+
"optional": true
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"id": "providerRejected",
|
|
304
|
+
"field": "providerRejected",
|
|
305
|
+
"optional": true
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"id": "invalidResponse",
|
|
309
|
+
"field": "invalidResponse",
|
|
310
|
+
"optional": true
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"id": "defect",
|
|
314
|
+
"field": "defect",
|
|
315
|
+
"optional": true
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
"inputSchema": {
|
|
319
|
+
"additionalProperties": false,
|
|
320
|
+
"description": "UpdateMemberTagsInput adds and removes tags on one existing audience contact.",
|
|
321
|
+
"properties": {
|
|
322
|
+
"addTags": {
|
|
323
|
+
"description": "AddTags are declared active. Mailchimp creates a tag that does not exist yet, and a tag the contact already has stays as it is.",
|
|
324
|
+
"items": {
|
|
325
|
+
"type": "string"
|
|
326
|
+
},
|
|
327
|
+
"type": "array"
|
|
328
|
+
},
|
|
329
|
+
"emailAddress": {
|
|
330
|
+
"description": "EmailAddress is the contact's bare email address.",
|
|
331
|
+
"type": "string"
|
|
332
|
+
},
|
|
333
|
+
"listId": {
|
|
334
|
+
"description": "ListID is the audience ID, Mailchimp's list_id.",
|
|
335
|
+
"type": "string"
|
|
336
|
+
},
|
|
337
|
+
"removeTags": {
|
|
338
|
+
"description": "RemoveTags are declared inactive; a tag the contact does not have is ignored.",
|
|
339
|
+
"items": {
|
|
340
|
+
"type": "string"
|
|
341
|
+
},
|
|
342
|
+
"type": "array"
|
|
343
|
+
},
|
|
344
|
+
"shouldSuppressAutomations": {
|
|
345
|
+
"description": "ShouldSuppressAutomations sends is_syncing=true, so Mailchimp does not start automations triggered by these tag changes.",
|
|
346
|
+
"type": "boolean"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"required": [
|
|
350
|
+
"emailAddress",
|
|
351
|
+
"listId"
|
|
352
|
+
],
|
|
353
|
+
"type": "object"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"name": "newSendCampaignStep",
|
|
358
|
+
"kind": "mutation",
|
|
359
|
+
"operationId": "sendCampaign",
|
|
360
|
+
"inputType": "SendCampaignInput",
|
|
361
|
+
"description": "Send one existing draft campaign now. The connector reads the campaign first and sends only a draft; a send is irreversible and Mailchimp has no idempotency key, so the Step runs with sync durability and sends at most once per Step execution.",
|
|
362
|
+
"fields": {
|
|
363
|
+
"stepType": "stepType",
|
|
364
|
+
"annotations": "annotations",
|
|
365
|
+
"connectionName": "connectionName",
|
|
366
|
+
"resultAttribute": "resultAttribute"
|
|
367
|
+
},
|
|
368
|
+
"branches": [
|
|
369
|
+
{
|
|
370
|
+
"id": "sent",
|
|
371
|
+
"field": "sent",
|
|
372
|
+
"optional": false
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"id": "alreadySent",
|
|
376
|
+
"field": "alreadySent",
|
|
377
|
+
"optional": true
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"id": "notSendable",
|
|
381
|
+
"field": "notSendable",
|
|
382
|
+
"optional": true
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"id": "notFound",
|
|
386
|
+
"field": "notFound",
|
|
387
|
+
"optional": true
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"id": "providerRejected",
|
|
391
|
+
"field": "providerRejected",
|
|
392
|
+
"optional": true
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"id": "invalidResponse",
|
|
396
|
+
"field": "invalidResponse",
|
|
397
|
+
"optional": true
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"id": "uncertain",
|
|
401
|
+
"field": "uncertain",
|
|
402
|
+
"optional": true
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"id": "defect",
|
|
406
|
+
"field": "defect",
|
|
407
|
+
"optional": true
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"inputSchema": {
|
|
411
|
+
"additionalProperties": false,
|
|
412
|
+
"description": "SendCampaignInput identifies one existing campaign to send now. Create and review the campaign in Mailchimp first; the connector never edits campaign content or recipients.",
|
|
413
|
+
"properties": {
|
|
414
|
+
"campaignId": {
|
|
415
|
+
"description": "CampaignID is Mailchimp's campaign ID, such as 42694e9e57.",
|
|
416
|
+
"type": "string"
|
|
417
|
+
},
|
|
418
|
+
"expectedListId": {
|
|
419
|
+
"description": "ExpectedListID, when set, sends only when the campaign targets this audience; a campaign whose audience was changed after it was approved selects notSendable. Empty skips the check.",
|
|
420
|
+
"type": "string"
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"required": [
|
|
424
|
+
"campaignId"
|
|
425
|
+
],
|
|
426
|
+
"type": "object"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"name": "defineMemberChangedTriggerBinding",
|
|
431
|
+
"kind": "trigger",
|
|
432
|
+
"triggerName": "memberChanged",
|
|
433
|
+
"fields": {
|
|
434
|
+
"connectionName": "connectionName",
|
|
435
|
+
"bindingName": "bindingName",
|
|
436
|
+
"configurationUI": "configurationUI"
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
]
|
|
440
|
+
}
|