@withone/platform-resend 0.0.0-stage → 0.1.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 +64 -2
- package/banner.svg +11 -0
- package/dist/index.d.mts +5927 -0
- package/dist/index.d.ts +5927 -0
- package/dist/index.js +897 -0
- package/dist/index.mjs +794 -0
- package/fingerprint.json +1 -0
- package/package.json +33 -4
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,794 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { Action as __Action, routeInput as __routeInput } from "@withone/sdk/codegen";
|
|
3
|
+
var __retrieveContactPropertyRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
4
|
+
function retrieveContactProperty(input) {
|
|
5
|
+
return new __Action({
|
|
6
|
+
systemId: "conn_mod_def::GJ6SQvW0Qps::sSgFPHr1Qgq-HRp_I6I46Q",
|
|
7
|
+
method: "GET",
|
|
8
|
+
path: "/contact-properties/{{id}}",
|
|
9
|
+
...__routeInput(input, __retrieveContactPropertyRouting, { "headers": { "Accept": "application/json" } })
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
var __deleteContactRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
13
|
+
function deleteContact(input) {
|
|
14
|
+
return new __Action({
|
|
15
|
+
systemId: "conn_mod_def::GJ6SQ6V8mMg::loR3evzrR-mCP4w9ybLO6A",
|
|
16
|
+
method: "DELETE",
|
|
17
|
+
path: "/contacts/{{id}}",
|
|
18
|
+
...__routeInput(input, __deleteContactRouting, { "headers": { "Accept": "application/json" } })
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
var __updateEmailRouting = { "routes": [["scheduled_at", "body"], ["emailId", "path"]], "requiredParts": ["body", "path"] };
|
|
22
|
+
function updateEmail(input) {
|
|
23
|
+
return new __Action({
|
|
24
|
+
systemId: "conn_mod_def::GJ6SRnxxnKo::vyJ_Tm94Q1Gjcv44rP0Cig",
|
|
25
|
+
method: "PATCH",
|
|
26
|
+
path: "/emails/{{emailId}}",
|
|
27
|
+
...__routeInput(input, __updateEmailRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
var __deleteTopicRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
31
|
+
function deleteTopic(input) {
|
|
32
|
+
return new __Action({
|
|
33
|
+
systemId: "conn_mod_def::GJ6SSJ7V0pU::05L95JI6RIaex4XJdxq5jQ",
|
|
34
|
+
method: "DELETE",
|
|
35
|
+
path: "/topics/{{id}}",
|
|
36
|
+
...__routeInput(input, __deleteTopicRouting, { "headers": { "Accept": "application/json" } })
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
var __deleteContactPropertyRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
40
|
+
function deleteContactProperty(input) {
|
|
41
|
+
return new __Action({
|
|
42
|
+
systemId: "conn_mod_def::GJ6SQfeZeys::Q5dycmGTT8W0kdZjc9hx-A",
|
|
43
|
+
method: "DELETE",
|
|
44
|
+
path: "/contact-properties/{{id}}",
|
|
45
|
+
...__routeInput(input, __deleteContactPropertyRouting, { "headers": { "Accept": "application/json" } })
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
var __createContactRouting = { "routes": [["audience_id", "body"], ["email", "body"], ["first_name", "body"], ["last_name", "body"], ["properties", "body"], ["segments", "body"], ["topics", "body"], ["unsubscribed", "body"]], "requiredParts": ["body"] };
|
|
49
|
+
function createContact(input) {
|
|
50
|
+
return new __Action({
|
|
51
|
+
systemId: "conn_mod_def::GJ6SQt3jhlI::10Leh5p5RR2V7V673_r8oA",
|
|
52
|
+
method: "POST",
|
|
53
|
+
path: "/contacts",
|
|
54
|
+
...__routeInput(input, __createContactRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
var __publishTemplateRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
58
|
+
function publishTemplate(input) {
|
|
59
|
+
return new __Action({
|
|
60
|
+
systemId: "conn_mod_def::GJ6SSC-PjSw::7OsF06T0QIarFuUXRgUSWA",
|
|
61
|
+
method: "POST",
|
|
62
|
+
path: "/templates/{{id}}/publish",
|
|
63
|
+
...__routeInput(input, __publishTemplateRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
var __listApiKeysRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
|
|
67
|
+
function listApiKeys(input) {
|
|
68
|
+
return new __Action({
|
|
69
|
+
systemId: "conn_mod_def::GJ6SQK6lvm8::trDTdSJeTeK1WKxhOkrLGQ",
|
|
70
|
+
method: "GET",
|
|
71
|
+
path: "/api-keys",
|
|
72
|
+
...__routeInput(input, __listApiKeysRouting, { "headers": { "Accept": "application/json" } })
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
var __createBroadcastRouting = { "routes": [["audience_id", "body"], ["from", "body"], ["html", "body"], ["name", "body"], ["preview_text", "body"], ["reply_to", "body"], ["scheduled_at", "body"], ["segment_id", "body"], ["send", "body"], ["subject", "body"], ["text", "body"], ["topic_id", "body"]], "requiredParts": ["body"] };
|
|
76
|
+
function createBroadcast(input) {
|
|
77
|
+
return new __Action({
|
|
78
|
+
systemId: "conn_mod_def::GJ6SQU-Yehs::sMxrd3AZSQOkWwwaHLU46g",
|
|
79
|
+
method: "POST",
|
|
80
|
+
path: "/broadcasts",
|
|
81
|
+
...__routeInput(input, __createBroadcastRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
var __listContactPropertiesRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
|
|
85
|
+
function listContactProperties(input) {
|
|
86
|
+
return new __Action({
|
|
87
|
+
systemId: "conn_mod_def::GJ6SQvvhIhQ::BPzfBHSiQQGcpjLz-m5UtA",
|
|
88
|
+
method: "GET",
|
|
89
|
+
path: "/contact-properties",
|
|
90
|
+
...__routeInput(input, __listContactPropertiesRouting, { "headers": { "Accept": "application/json" } })
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
var __removeContactFromSegmentRouting = { "routes": [["contactId", "path"], ["segmentId", "path"]], "requiredParts": ["path"] };
|
|
94
|
+
function removeContactFromSegment(input) {
|
|
95
|
+
return new __Action({
|
|
96
|
+
systemId: "conn_mod_def::GJ6SQ6Mv3Po::80Sh4zV6QEe1pMSRRsjyvQ",
|
|
97
|
+
method: "DELETE",
|
|
98
|
+
path: "/contacts/{{contactId}}/segments/{{segmentId}}",
|
|
99
|
+
...__routeInput(input, __removeContactFromSegmentRouting, { "headers": { "Accept": "application/json" } })
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
var __removeDomainRouting = { "routes": [["domainId", "path"]], "requiredParts": ["path"] };
|
|
103
|
+
function removeDomain(input) {
|
|
104
|
+
return new __Action({
|
|
105
|
+
systemId: "conn_mod_def::GJ6SRCly_Dg::WDYeJu9RT3ilFQja73FVxA",
|
|
106
|
+
method: "DELETE",
|
|
107
|
+
path: "/domains/{{domainId}}",
|
|
108
|
+
...__routeInput(input, __removeDomainRouting, { "headers": { "Accept": "application/json" } })
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
var __createDomainRouting = { "routes": [["capabilities", "body"], ["click_tracking", "body"], ["custom_return_path", "body"], ["name", "body"], ["open_tracking", "body"], ["region", "body"], ["tls", "body"]], "requiredParts": ["body"] };
|
|
112
|
+
function createDomain(input) {
|
|
113
|
+
return new __Action({
|
|
114
|
+
systemId: "conn_mod_def::GJ6SRDxtYJs::ooMtDHuoRUGsXRRmENF3IQ",
|
|
115
|
+
method: "POST",
|
|
116
|
+
path: "/domains",
|
|
117
|
+
...__routeInput(input, __createDomainRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
var __retrieveDomainRouting = { "routes": [["domainId", "path"]], "requiredParts": ["path"] };
|
|
121
|
+
function retrieveDomain(input) {
|
|
122
|
+
return new __Action({
|
|
123
|
+
systemId: "conn_mod_def::GJ6SRSBtDLM::uOwpomkXQ9qZX1M7nlJ01g",
|
|
124
|
+
method: "GET",
|
|
125
|
+
path: "/domains/{{domainId}}",
|
|
126
|
+
...__routeInput(input, __retrieveDomainRouting, { "headers": { "Accept": "application/json" } })
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
var __listDomainsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
|
|
130
|
+
function listDomains(input) {
|
|
131
|
+
return new __Action({
|
|
132
|
+
systemId: "conn_mod_def::GJ6SRTe7Fh8::tB_m8RIIRnSHLTTKV_-E2w",
|
|
133
|
+
method: "GET",
|
|
134
|
+
path: "/domains",
|
|
135
|
+
...__routeInput(input, __listDomainsRouting, { "headers": { "Accept": "application/json" } })
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
var __duplicateTemplateRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
139
|
+
function duplicateTemplate(input) {
|
|
140
|
+
return new __Action({
|
|
141
|
+
systemId: "conn_mod_def::GJ6SSAX30Io::KxA0MGP8QWSCNRORgmlvvQ",
|
|
142
|
+
method: "POST",
|
|
143
|
+
path: "/templates/{{id}}/duplicate",
|
|
144
|
+
...__routeInput(input, __duplicateTemplateRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
var __retrieveSingleEmailRouting = { "routes": [["emailId", "path"]], "requiredParts": ["path"] };
|
|
148
|
+
function retrieveSingleEmail(input) {
|
|
149
|
+
return new __Action({
|
|
150
|
+
systemId: "conn_mod_def::GJ6SRcerbx4::hFG382R8SteemlQRBdYvtQ",
|
|
151
|
+
method: "GET",
|
|
152
|
+
path: "/emails/{{emailId}}",
|
|
153
|
+
...__routeInput(input, __retrieveSingleEmailRouting, { "headers": { "Accept": "application/json" } })
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
var __listSentEmailsAttachmentsRouting = { "routes": [["emailId", "path"], ["query", "query", null]], "requiredParts": ["path"] };
|
|
157
|
+
function listSentEmailsAttachments(input) {
|
|
158
|
+
return new __Action({
|
|
159
|
+
systemId: "conn_mod_def::GJ6SReEHPcE::f1Q9958PTai145ogEOJ0Wg",
|
|
160
|
+
method: "GET",
|
|
161
|
+
path: "/emails/{{emailId}}/attachments",
|
|
162
|
+
...__routeInput(input, __listSentEmailsAttachmentsRouting, { "headers": { "Accept": "application/json" } })
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
var __sendBatchEmailsRouting = { "routes": [["body", "body", null]], "requiredParts": [] };
|
|
166
|
+
function sendBatchEmails(input) {
|
|
167
|
+
return new __Action({
|
|
168
|
+
systemId: "conn_mod_def::GJ6SRoHZm8Q::cVupy9ZORNmCasMiTRsJlg",
|
|
169
|
+
method: "POST",
|
|
170
|
+
path: "/emails/batch",
|
|
171
|
+
...__routeInput(input, __sendBatchEmailsRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
var __retrieveReceivedEmailAttachmentRouting = { "routes": [["attachmentId", "path"], ["emailId", "path"]], "requiredParts": ["path"] };
|
|
175
|
+
function retrieveReceivedEmailAttachment(input) {
|
|
176
|
+
return new __Action({
|
|
177
|
+
systemId: "conn_mod_def::GJ6SRohm7Kw::C1UB6v8MTtudwvCblNHswQ",
|
|
178
|
+
method: "GET",
|
|
179
|
+
path: "/emails/receiving/{{emailId}}/attachments/{{attachmentId}}",
|
|
180
|
+
...__routeInput(input, __retrieveReceivedEmailAttachmentRouting, { "headers": { "Accept": "application/json" } })
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
var __listSegmentsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
|
|
184
|
+
function listSegments(input) {
|
|
185
|
+
return new __Action({
|
|
186
|
+
systemId: "conn_mod_def::GJ6SR1Wx3bs::mVb7qoy0Tdexa4ecFQpXGQ",
|
|
187
|
+
method: "GET",
|
|
188
|
+
path: "/segments",
|
|
189
|
+
...__routeInput(input, __listSegmentsRouting, { "headers": { "Accept": "application/json" } })
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
var __retrieveReceivedEmailRouting = { "routes": [["emailId", "path"]], "requiredParts": ["path"] };
|
|
193
|
+
function retrieveReceivedEmail(input) {
|
|
194
|
+
return new __Action({
|
|
195
|
+
systemId: "conn_mod_def::GJ6SR1smyYk::jcWNj6MARdmjFJbPM10Biw",
|
|
196
|
+
method: "GET",
|
|
197
|
+
path: "/emails/receiving/{{emailId}}",
|
|
198
|
+
...__routeInput(input, __retrieveReceivedEmailRouting, { "headers": { "Accept": "application/json" } })
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
var __listAttachmentsReceivedEmailRouting = { "routes": [["emailId", "path"], ["query", "query", null]], "requiredParts": ["path"] };
|
|
202
|
+
function listAttachmentsReceivedEmail(input) {
|
|
203
|
+
return new __Action({
|
|
204
|
+
systemId: "conn_mod_def::GJ6SRqyQ5II::0whWu-NjTRaNHVzSa0tJNw",
|
|
205
|
+
method: "GET",
|
|
206
|
+
path: "/emails/receiving/{{emailId}}/attachments",
|
|
207
|
+
...__routeInput(input, __listAttachmentsReceivedEmailRouting, { "headers": { "Accept": "application/json" } })
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
var __createSegmentRouting = { "routes": [["audience_id", "body"], ["filter", "body"], ["name", "body"]], "requiredParts": ["body"] };
|
|
211
|
+
function createSegment(input) {
|
|
212
|
+
return new __Action({
|
|
213
|
+
systemId: "conn_mod_def::GJ6SR0vqLuY::iUGMTEnKS7-7exuUV-JB6Q",
|
|
214
|
+
method: "POST",
|
|
215
|
+
path: "/segments",
|
|
216
|
+
...__routeInput(input, __createSegmentRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
var __retrieveSegmentRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
220
|
+
function retrieveSegment(input) {
|
|
221
|
+
return new __Action({
|
|
222
|
+
systemId: "conn_mod_def::GJ6SR1dOqTc::HETT_IzIT8-Ctc1PbUVDaw",
|
|
223
|
+
method: "GET",
|
|
224
|
+
path: "/segments/{{id}}",
|
|
225
|
+
...__routeInput(input, __retrieveSegmentRouting, { "headers": { "Accept": "application/json" } })
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
var __createTemplateRouting = { "routes": [["alias", "body"], ["from", "body"], ["html", "body"], ["name", "body"], ["reply_to", "body"], ["subject", "body"], ["text", "body"], ["variables", "body"]], "requiredParts": ["body"] };
|
|
229
|
+
function createTemplate(input) {
|
|
230
|
+
return new __Action({
|
|
231
|
+
systemId: "conn_mod_def::GJ6SR9X5u0w::KBsye0N7QgybB-u4xrpSTA",
|
|
232
|
+
method: "POST",
|
|
233
|
+
path: "/templates",
|
|
234
|
+
...__routeInput(input, __createTemplateRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
var __retrieveTemplateRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
238
|
+
function retrieveTemplate(input) {
|
|
239
|
+
return new __Action({
|
|
240
|
+
systemId: "conn_mod_def::GJ6SSKFbhCI::vMg7ZSpRQkysU38sf3uzIQ",
|
|
241
|
+
method: "GET",
|
|
242
|
+
path: "/templates/{{id}}",
|
|
243
|
+
...__routeInput(input, __retrieveTemplateRouting, { "headers": { "Accept": "application/json" } })
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
var __createTopicRouting = { "routes": [["default_subscription", "body"], ["description", "body"], ["name", "body"], ["visibility", "body"]], "requiredParts": ["body"] };
|
|
247
|
+
function createTopic(input) {
|
|
248
|
+
return new __Action({
|
|
249
|
+
systemId: "conn_mod_def::GJ6SSKnUG08::vSVjmpJlQRymCrQEcNiLHg",
|
|
250
|
+
method: "POST",
|
|
251
|
+
path: "/topics",
|
|
252
|
+
...__routeInput(input, __createTopicRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
var __updateWebhookRouting = { "routes": [["endpoint", "body"], ["events", "body"], ["status", "body"], ["webhookId", "path"]], "requiredParts": ["body", "path"] };
|
|
256
|
+
function updateWebhook(input) {
|
|
257
|
+
return new __Action({
|
|
258
|
+
systemId: "conn_mod_def::GJ6SSjJ3Tbg::ivzeVeNyRyuD6MQv6vFsGw",
|
|
259
|
+
method: "PATCH",
|
|
260
|
+
path: "/webhooks/{{webhookId}}",
|
|
261
|
+
...__routeInput(input, __updateWebhookRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
var __createContactPropertyRouting = { "routes": [["fallback_value", "body"], ["key", "body"], ["type", "body"]], "requiredParts": ["body"] };
|
|
265
|
+
function createContactProperty(input) {
|
|
266
|
+
return new __Action({
|
|
267
|
+
systemId: "conn_mod_def::GJ6SQlTaP64::Ua2wW9ShQhy8f94Af_XdkA",
|
|
268
|
+
method: "POST",
|
|
269
|
+
path: "/contact-properties",
|
|
270
|
+
...__routeInput(input, __createContactPropertyRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
var __updateBroadcastRouting = { "routes": [["audience_id", "body"], ["from", "body"], ["html", "body"], ["name", "body"], ["preview_text", "body"], ["reply_to", "body"], ["segment_id", "body"], ["subject", "body"], ["text", "body"], ["topic_id", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
|
|
274
|
+
function updateBroadcast(input) {
|
|
275
|
+
return new __Action({
|
|
276
|
+
systemId: "conn_mod_def::GJ6SQmzVh5g::0CmkH8JwR4ip11kQL-2fEw",
|
|
277
|
+
method: "PATCH",
|
|
278
|
+
path: "/broadcasts/{{id}}",
|
|
279
|
+
...__routeInput(input, __updateBroadcastRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
var __addContactSegmentRouting = { "routes": [["contactId", "path"], ["segmentId", "path"]], "requiredParts": ["path"] };
|
|
283
|
+
function addContactSegment(input) {
|
|
284
|
+
return new __Action({
|
|
285
|
+
systemId: "conn_mod_def::GJ6SQuYl700::04X1vCBfR8WTQ15gP2ssXQ",
|
|
286
|
+
method: "POST",
|
|
287
|
+
path: "/contacts/{{contactId}}/segments/{{segmentId}}",
|
|
288
|
+
...__routeInput(input, __addContactSegmentRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
var __sendEmailRouting = { "routes": [["attachments", "body"], ["bcc", "body"], ["cc", "body"], ["from", "body"], ["headers", "body"], ["html", "body"], ["reply_to", "body"], ["scheduled_at", "body"], ["subject", "body"], ["tags", "body"], ["template", "body"], ["text", "body"], ["to", "body"], ["topic_id", "body"]], "requiredParts": ["body"] };
|
|
292
|
+
function sendEmail(input) {
|
|
293
|
+
return new __Action({
|
|
294
|
+
systemId: "conn_mod_def::GJ6SRgloL9U::ffk4sD2zRU-J_jTGGdBk5w",
|
|
295
|
+
method: "POST",
|
|
296
|
+
path: "/emails",
|
|
297
|
+
...__routeInput(input, __sendEmailRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
var __listReceivedEmailsRouting = { "routes": [["query", "query", null]], "requiredParts": [] };
|
|
301
|
+
function listReceivedEmails(input) {
|
|
302
|
+
return new __Action({
|
|
303
|
+
systemId: "conn_mod_def::GJ6SRt19kWs::cnNGF5y-QeOFXG-WqAZnQg",
|
|
304
|
+
method: "GET",
|
|
305
|
+
path: "/emails/receiving",
|
|
306
|
+
...__routeInput(input, __listReceivedEmailsRouting, { "headers": { "Accept": "application/json" } })
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
var __deleteSegmentRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
310
|
+
function deleteSegment(input) {
|
|
311
|
+
return new __Action({
|
|
312
|
+
systemId: "conn_mod_def::GJ6SR0y9eV4::eKxoccOqQoKJztiSwc25oA",
|
|
313
|
+
method: "DELETE",
|
|
314
|
+
path: "/segments/{{id}}",
|
|
315
|
+
...__routeInput(input, __deleteSegmentRouting, { "headers": { "Accept": "application/json" } })
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
var __deleteTemplateRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
319
|
+
function deleteTemplate(input) {
|
|
320
|
+
return new __Action({
|
|
321
|
+
systemId: "conn_mod_def::GJ6SR9I1k6Y::23njFYTfRjabj6776PqFeA",
|
|
322
|
+
method: "DELETE",
|
|
323
|
+
path: "/templates/{{id}}",
|
|
324
|
+
...__routeInput(input, __deleteTemplateRouting, { "headers": { "Accept": "application/json" } })
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
var __updateTemplateRouting = { "routes": [["alias", "body"], ["from", "body"], ["html", "body"], ["name", "body"], ["reply_to", "body"], ["subject", "body"], ["text", "body"], ["variables", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
|
|
328
|
+
function updateTemplate(input) {
|
|
329
|
+
return new __Action({
|
|
330
|
+
systemId: "conn_mod_def::GJ6SSKovHx4::FT0F0lo_SZ6RGQTZ2kWZUQ",
|
|
331
|
+
method: "PATCH",
|
|
332
|
+
path: "/templates/{{id}}",
|
|
333
|
+
...__routeInput(input, __updateTemplateRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
var __retrieveWebhookRouting = { "routes": [["webhookId", "path"]], "requiredParts": ["path"] };
|
|
337
|
+
function retrieveWebhook(input) {
|
|
338
|
+
return new __Action({
|
|
339
|
+
systemId: "conn_mod_def::GJ6SSfoVFJg::CbYmUEs4RXe87u3fXcI-0g",
|
|
340
|
+
method: "GET",
|
|
341
|
+
path: "/webhooks/{{webhookId}}",
|
|
342
|
+
...__routeInput(input, __retrieveWebhookRouting, { "headers": { "Accept": "application/json" } })
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
var __removeApiKeyRouting = { "routes": [["apiKeyId", "path"]], "requiredParts": ["path"] };
|
|
346
|
+
function removeApiKey(input) {
|
|
347
|
+
return new __Action({
|
|
348
|
+
systemId: "conn_mod_def::GJ6SQIU-98U::Uu_tg_ERRTqQl_gK_jivsw",
|
|
349
|
+
method: "DELETE",
|
|
350
|
+
path: "/api-keys/{{apiKeyId}}",
|
|
351
|
+
...__routeInput(input, __removeApiKeyRouting, { "headers": { "Accept": "application/json" } })
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
var __verifyDomainRouting = { "routes": [["domainId", "path"]], "requiredParts": ["path"] };
|
|
355
|
+
function verifyDomain(input) {
|
|
356
|
+
return new __Action({
|
|
357
|
+
systemId: "conn_mod_def::GJ6SRUbooAM::NCip1IyKRfiKuJQzwE2B4A",
|
|
358
|
+
method: "POST",
|
|
359
|
+
path: "/domains/{{domainId}}/verify",
|
|
360
|
+
...__routeInput(input, __verifyDomainRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
var __deleteBroadcastDraftRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
364
|
+
function deleteBroadcastDraft(input) {
|
|
365
|
+
return new __Action({
|
|
366
|
+
systemId: "conn_mod_def::GJ6SQTtCmwc::SCII7IsVS5Wio4qQdPZ0oQ",
|
|
367
|
+
method: "DELETE",
|
|
368
|
+
path: "/broadcasts/{{id}}",
|
|
369
|
+
...__routeInput(input, __deleteBroadcastDraftRouting, { "headers": { "Accept": "application/json" } })
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
var __createApiKeyRouting = { "routes": [["domain_id", "body"], ["name", "body"], ["permission", "body"]], "requiredParts": ["body"] };
|
|
373
|
+
function createApiKey(input) {
|
|
374
|
+
return new __Action({
|
|
375
|
+
systemId: "conn_mod_def::GJ6SQIayOl8::dwrNtslSTduCzlsGg_3bKg",
|
|
376
|
+
method: "POST",
|
|
377
|
+
path: "/api-keys",
|
|
378
|
+
...__routeInput(input, __createApiKeyRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
var __updateContactPropertyRouting = { "routes": [["fallback_value", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
|
|
382
|
+
function updateContactProperty(input) {
|
|
383
|
+
return new __Action({
|
|
384
|
+
systemId: "conn_mod_def::GJ6SQyOMWBc::L2m7Yfo7TSSYXC4rfgLjZA",
|
|
385
|
+
method: "PATCH",
|
|
386
|
+
path: "/contact-properties/{{id}}",
|
|
387
|
+
...__routeInput(input, __updateContactPropertyRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
var __sendOrScheduleBroadcastRouting = { "routes": [["scheduled_at", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
|
|
391
|
+
function sendOrScheduleBroadcast(input) {
|
|
392
|
+
return new __Action({
|
|
393
|
+
systemId: "conn_mod_def::GJ6SQf1CnvU::qYu8Ko0jRviqSVgIrsR9Wg",
|
|
394
|
+
method: "POST",
|
|
395
|
+
path: "/broadcasts/{{id}}/send",
|
|
396
|
+
...__routeInput(input, __sendOrScheduleBroadcastRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
var __listContactsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"], ["segment_id", "query"]], "requiredParts": [] };
|
|
400
|
+
function listContacts(input) {
|
|
401
|
+
return new __Action({
|
|
402
|
+
systemId: "conn_mod_def::GJ6SQ7DFu44::Ndbs37cHSEKvas_wTgG2mw",
|
|
403
|
+
method: "GET",
|
|
404
|
+
path: "/contacts",
|
|
405
|
+
...__routeInput(input, __listContactsRouting, { "headers": { "Accept": "application/json" } })
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
var __updateDomainRouting = { "routes": [["capabilities", "body"], ["click_tracking", "body"], ["open_tracking", "body"], ["tls", "body"], ["domainId", "path"]], "requiredParts": ["body", "path"] };
|
|
409
|
+
function updateDomain(input) {
|
|
410
|
+
return new __Action({
|
|
411
|
+
systemId: "conn_mod_def::GJ6SRRrKowA::2ARJbS8PQdOXDgjG10dGyg",
|
|
412
|
+
method: "PATCH",
|
|
413
|
+
path: "/domains/{{domainId}}",
|
|
414
|
+
...__routeInput(input, __updateDomainRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
var __listContactsTopicsRouting = { "routes": [["contactId", "path"], ["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": ["path"] };
|
|
418
|
+
function listContactsTopics(input) {
|
|
419
|
+
return new __Action({
|
|
420
|
+
systemId: "conn_mod_def::GJ6SRFeDA2g::tNICtRvLRpGnjZJShCAYAw",
|
|
421
|
+
method: "GET",
|
|
422
|
+
path: "/contacts/{{contactId}}/topics",
|
|
423
|
+
...__routeInput(input, __listContactsTopicsRouting, { "headers": { "Accept": "application/json" } })
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
var __retrieveContactIdOrEmailRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
427
|
+
function retrieveContactIdOrEmail(input) {
|
|
428
|
+
return new __Action({
|
|
429
|
+
systemId: "conn_mod_def::GJ6SQ5s1QZo::faJisv9DTHGzq_A19Zs8vA",
|
|
430
|
+
method: "GET",
|
|
431
|
+
path: "/contacts/{{id}}",
|
|
432
|
+
...__routeInput(input, __retrieveContactIdOrEmailRouting, { "headers": { "Accept": "application/json" } })
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
var __retrieveEmailsAttachmentRouting = { "routes": [["attachmentId", "path"], ["emailId", "path"]], "requiredParts": ["path"] };
|
|
436
|
+
function retrieveEmailsAttachment(input) {
|
|
437
|
+
return new __Action({
|
|
438
|
+
systemId: "conn_mod_def::GJ6SRfcBtYo::5N4OabrmSuqPqDqOmneDSw",
|
|
439
|
+
method: "GET",
|
|
440
|
+
path: "/emails/{{emailId}}/attachments/{{attachmentId}}",
|
|
441
|
+
...__routeInput(input, __retrieveEmailsAttachmentRouting, { "headers": { "Accept": "application/json" } })
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
var __updateContactIdOrEmailRouting = { "routes": [["email", "body"], ["first_name", "body"], ["last_name", "body"], ["properties", "body"], ["unsubscribed", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
|
|
445
|
+
function updateContactIdOrEmail(input) {
|
|
446
|
+
return new __Action({
|
|
447
|
+
systemId: "conn_mod_def::GJ6SRDQbg5k::hBgqy1SUTkGdj_S9aWBi8A",
|
|
448
|
+
method: "PATCH",
|
|
449
|
+
path: "/contacts/{{id}}",
|
|
450
|
+
...__routeInput(input, __updateContactIdOrEmailRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
var __updateContactsTopicsRouting = { "routes": [["topics", "body"], ["contactId", "path"]], "requiredParts": ["body", "path"] };
|
|
454
|
+
function updateContactsTopics(input) {
|
|
455
|
+
return new __Action({
|
|
456
|
+
systemId: "conn_mod_def::GJ6SRJ1ZBCk::NmI04M2QQmiDdUMeGw7A2w",
|
|
457
|
+
method: "PATCH",
|
|
458
|
+
path: "/contacts/{{contactId}}/topics",
|
|
459
|
+
...__routeInput(input, __updateContactsTopicsRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
var __cancelScheduledEmailRouting = { "routes": [["emailId", "path"]], "requiredParts": ["path"] };
|
|
463
|
+
function cancelScheduledEmail(input) {
|
|
464
|
+
return new __Action({
|
|
465
|
+
systemId: "conn_mod_def::GJ6SRU_IODQ::uZ-yJz-jSPKdMSPWhlI2KA",
|
|
466
|
+
method: "POST",
|
|
467
|
+
path: "/emails/{{emailId}}/cancel",
|
|
468
|
+
...__routeInput(input, __cancelScheduledEmailRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
var __listBroadcastsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
|
|
472
|
+
function listBroadcasts(input) {
|
|
473
|
+
return new __Action({
|
|
474
|
+
systemId: "conn_mod_def::GJ6SQX9Jyh0::U-CTSzAvSzKuD25Q3TIK4Q",
|
|
475
|
+
method: "GET",
|
|
476
|
+
path: "/broadcasts",
|
|
477
|
+
...__routeInput(input, __listBroadcastsRouting, { "headers": { "Accept": "application/json" } })
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
var __listContactsSegmentsRouting = { "routes": [["contactId", "path"], ["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": ["path"] };
|
|
481
|
+
function listContactsSegments(input) {
|
|
482
|
+
return new __Action({
|
|
483
|
+
systemId: "conn_mod_def::GJ6SQ6eEMoc::ENFPxMD9R-2cK93bcc7rDA",
|
|
484
|
+
method: "GET",
|
|
485
|
+
path: "/contacts/{{contactId}}/segments",
|
|
486
|
+
...__routeInput(input, __listContactsSegmentsRouting, { "headers": { "Accept": "application/json" } })
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
var __listEmailsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
|
|
490
|
+
function listEmails(input) {
|
|
491
|
+
return new __Action({
|
|
492
|
+
systemId: "conn_mod_def::GJ6SRf8FQWg::MmeqceRoTmSeLYCxbaAmUA",
|
|
493
|
+
method: "GET",
|
|
494
|
+
path: "/emails",
|
|
495
|
+
...__routeInput(input, __listEmailsRouting, { "headers": { "Accept": "application/json" } })
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
var __retrieveBroadcastRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
499
|
+
function retrieveBroadcast(input) {
|
|
500
|
+
return new __Action({
|
|
501
|
+
systemId: "conn_mod_def::GJ6SQgVHZXg::izwXC941TfS_CNMqtrvpIA",
|
|
502
|
+
method: "GET",
|
|
503
|
+
path: "/broadcasts/{{id}}",
|
|
504
|
+
...__routeInput(input, __retrieveBroadcastRouting, { "headers": { "Accept": "application/json" } })
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
var __deleteWebhookRouting = { "routes": [["webhookId", "path"]], "requiredParts": ["path"] };
|
|
508
|
+
function deleteWebhook(input) {
|
|
509
|
+
return new __Action({
|
|
510
|
+
systemId: "conn_mod_def::GJ6SSXL1wH8::Q-IpinknT7CiKabqtHTG9A",
|
|
511
|
+
method: "DELETE",
|
|
512
|
+
path: "/webhooks/{{webhookId}}",
|
|
513
|
+
...__routeInput(input, __deleteWebhookRouting, { "headers": { "Accept": "application/json" } })
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
var __retrieveTopicRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
517
|
+
function retrieveTopic(input) {
|
|
518
|
+
return new __Action({
|
|
519
|
+
systemId: "conn_mod_def::GJ6SSSdIGc8::Ax9LaEQ8SJe4QCPNyq9OBg",
|
|
520
|
+
method: "GET",
|
|
521
|
+
path: "/topics/{{id}}",
|
|
522
|
+
...__routeInput(input, __retrieveTopicRouting, { "headers": { "Accept": "application/json" } })
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
var __createWebhookRouting = { "routes": [["endpoint", "body"], ["events", "body"]], "requiredParts": ["body"] };
|
|
526
|
+
function createWebhook(input) {
|
|
527
|
+
return new __Action({
|
|
528
|
+
systemId: "conn_mod_def::GJ6SSSj-VGk::18at33nmRQiQhaT7OxoPXQ",
|
|
529
|
+
method: "POST",
|
|
530
|
+
path: "/webhooks",
|
|
531
|
+
...__routeInput(input, __createWebhookRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
var __listTemplatesRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
|
|
535
|
+
function listTemplates(input) {
|
|
536
|
+
return new __Action({
|
|
537
|
+
systemId: "conn_mod_def::GJ6SR9sumbc::BuAgBQSNTGGPrWPVu3JtNQ",
|
|
538
|
+
method: "GET",
|
|
539
|
+
path: "/templates",
|
|
540
|
+
...__routeInput(input, __listTemplatesRouting, { "headers": { "Accept": "application/json" } })
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
var __listTopicsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
|
|
544
|
+
function listTopics(input) {
|
|
545
|
+
return new __Action({
|
|
546
|
+
systemId: "conn_mod_def::GJ6SSKwhyis::qPHbHCC3TNO0DsmvIXWegA",
|
|
547
|
+
method: "GET",
|
|
548
|
+
path: "/topics",
|
|
549
|
+
...__routeInput(input, __listTopicsRouting, { "headers": { "Accept": "application/json" } })
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
var __updateTopicRouting = { "routes": [["description", "body"], ["name", "body"], ["visibility", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
|
|
553
|
+
function updateTopic(input) {
|
|
554
|
+
return new __Action({
|
|
555
|
+
systemId: "conn_mod_def::GJ6SSWg8Z8Q::-BqCdu1USTuSmaDeMN8T1g",
|
|
556
|
+
method: "PATCH",
|
|
557
|
+
path: "/topics/{{id}}",
|
|
558
|
+
...__routeInput(input, __updateTopicRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
var __listWebhooksRouting = { "routes": [["query", "query", null]], "requiredParts": [] };
|
|
562
|
+
function listWebhooks(input) {
|
|
563
|
+
return new __Action({
|
|
564
|
+
systemId: "conn_mod_def::GJ6SSTwQGjk::Lb29VMQaSHqKbU6ZZjdINw",
|
|
565
|
+
method: "GET",
|
|
566
|
+
path: "/webhooks",
|
|
567
|
+
...__routeInput(input, __listWebhooksRouting, { "headers": { "Accept": "application/json" } })
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
var __createAutomationRouting = { "routes": [["connections", "body"], ["name", "body"], ["status", "body"], ["steps", "body"]], "requiredParts": ["body"] };
|
|
571
|
+
function createAutomation(input) {
|
|
572
|
+
return new __Action({
|
|
573
|
+
systemId: "conn_mod_def::GOUbGrHb4sA::C7NTt7HKRzeCPvBZ1E_aUw",
|
|
574
|
+
method: "POST",
|
|
575
|
+
path: "/automations",
|
|
576
|
+
...__routeInput(input, __createAutomationRouting, { "headers": { "Content-Type": "application/json" } })
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
var __retrieveAutomationRunRouting = { "routes": [["automationId", "path"], ["runId", "path"]], "requiredParts": ["path"] };
|
|
580
|
+
function retrieveAutomationRun(input) {
|
|
581
|
+
return new __Action({
|
|
582
|
+
systemId: "conn_mod_def::GOUbG00_HyA::p_X1YD6RSOST4kQvAa-0AA",
|
|
583
|
+
method: "GET",
|
|
584
|
+
path: "/automations/{{automationId}}/runs/{{runId}}",
|
|
585
|
+
...__routeInput(input, __retrieveAutomationRunRouting)
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
var __updateAutomationRouting = { "routes": [["automationId", "path"], ["body", "body", null]], "requiredParts": ["path"] };
|
|
589
|
+
function updateAutomation(input) {
|
|
590
|
+
return new __Action({
|
|
591
|
+
systemId: "conn_mod_def::GOUbGzPuvpA::W84CT2kRQVeNcKxi2xlrvA",
|
|
592
|
+
method: "PATCH",
|
|
593
|
+
path: "/automations/{{automationId}}",
|
|
594
|
+
...__routeInput(input, __updateAutomationRouting, { "headers": { "Content-Type": "application/json" } })
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
var __listEventsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
|
|
598
|
+
function listEvents(input) {
|
|
599
|
+
return new __Action({
|
|
600
|
+
systemId: "conn_mod_def::GOUbG8nw-zg::uurqLMAFQGaq5JSKUs5oQQ",
|
|
601
|
+
method: "GET",
|
|
602
|
+
path: "/events",
|
|
603
|
+
...__routeInput(input, __listEventsRouting)
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
var __retrieveAutomationRouting = { "routes": [["automationId", "path"]], "requiredParts": ["path"] };
|
|
607
|
+
function retrieveAutomation(input) {
|
|
608
|
+
return new __Action({
|
|
609
|
+
systemId: "conn_mod_def::GOUbGoSWsrg::D-XxFHM-RoWzaLqddJRjeg",
|
|
610
|
+
method: "GET",
|
|
611
|
+
path: "/automations/{{automationId}}",
|
|
612
|
+
...__routeInput(input, __retrieveAutomationRouting)
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
var __listAutomationRunsRouting = { "routes": [["automationId", "path"], ["after", "query"], ["before", "query"], ["limit", "query"], ["status", "query"]], "requiredParts": ["path"] };
|
|
616
|
+
function listAutomationRuns(input) {
|
|
617
|
+
return new __Action({
|
|
618
|
+
systemId: "conn_mod_def::GOUbGpasx4A::dTV6V9t8SeaC1X5h6NXNow",
|
|
619
|
+
method: "GET",
|
|
620
|
+
path: "/automations/{{automationId}}/runs",
|
|
621
|
+
...__routeInput(input, __listAutomationRunsRouting)
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
var __deleteEventRouting = { "routes": [["identifier", "path"]], "requiredParts": ["path"] };
|
|
625
|
+
function deleteEvent(input) {
|
|
626
|
+
return new __Action({
|
|
627
|
+
systemId: "conn_mod_def::GOUbGzk2L1A::jzEQpaG6S5-lLu4HbeiSIw",
|
|
628
|
+
method: "DELETE",
|
|
629
|
+
path: "/events/{{identifier}}",
|
|
630
|
+
...__routeInput(input, __deleteEventRouting)
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
var __listAutomationsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"], ["status", "query"]], "requiredParts": [] };
|
|
634
|
+
function listAutomations(input) {
|
|
635
|
+
return new __Action({
|
|
636
|
+
systemId: "conn_mod_def::GOUbGqQ82xA::QwsDDIdcSXS070o4pGcRwg",
|
|
637
|
+
method: "GET",
|
|
638
|
+
path: "/automations",
|
|
639
|
+
...__routeInput(input, __listAutomationsRouting)
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
var __stopAutomationRouting = { "routes": [["automationId", "path"]], "requiredParts": ["path"] };
|
|
643
|
+
function stopAutomation(input) {
|
|
644
|
+
return new __Action({
|
|
645
|
+
systemId: "conn_mod_def::GOUbGx2IvFA::Z71kWDA0RnKzTGZK6f147A",
|
|
646
|
+
method: "POST",
|
|
647
|
+
path: "/automations/{{automationId}}/stop",
|
|
648
|
+
...__routeInput(input, __stopAutomationRouting)
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
var __sendEventRouting = { "routes": [["body", "body", null]], "requiredParts": [] };
|
|
652
|
+
function sendEvent(input) {
|
|
653
|
+
return new __Action({
|
|
654
|
+
systemId: "conn_mod_def::GOUbG9N96ZA::rMlh3387QECM6zGltFVECA",
|
|
655
|
+
method: "POST",
|
|
656
|
+
path: "/events/send",
|
|
657
|
+
...__routeInput(input, __sendEventRouting, { "headers": { "Content-Type": "application/json" } })
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
var __deleteAutomationRouting = { "routes": [["automationId", "path"]], "requiredParts": ["path"] };
|
|
661
|
+
function deleteAutomation(input) {
|
|
662
|
+
return new __Action({
|
|
663
|
+
systemId: "conn_mod_def::GOUbGovRGdg::7IZ4Sk9CR9m7L6DvSqOFJw",
|
|
664
|
+
method: "DELETE",
|
|
665
|
+
path: "/automations/{{automationId}}",
|
|
666
|
+
...__routeInput(input, __deleteAutomationRouting, { "headers": { "Accept": "application/json" } })
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
var __createEventRouting = { "routes": [["name", "body"], ["schema", "body"]], "requiredParts": ["body"] };
|
|
670
|
+
function createEvent(input) {
|
|
671
|
+
return new __Action({
|
|
672
|
+
systemId: "conn_mod_def::GOUbGy5oLag::Ld9CrdvMSB2f0p5QMLDhwQ",
|
|
673
|
+
method: "POST",
|
|
674
|
+
path: "/events",
|
|
675
|
+
...__routeInput(input, __createEventRouting, { "headers": { "Content-Type": "application/json" } })
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
var __retrieveEventRouting = { "routes": [["identifier", "path"]], "requiredParts": ["path"] };
|
|
679
|
+
function retrieveEvent(input) {
|
|
680
|
+
return new __Action({
|
|
681
|
+
systemId: "conn_mod_def::GOUbG7vt0rg::mPKT2AjfTx2dqpq1bCL0GQ",
|
|
682
|
+
method: "GET",
|
|
683
|
+
path: "/events/{{identifier}}",
|
|
684
|
+
...__routeInput(input, __retrieveEventRouting)
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
var __updateEventRouting = { "routes": [["schema", "body"], ["identifier", "path"]], "requiredParts": ["body", "path"] };
|
|
688
|
+
function updateEvent(input) {
|
|
689
|
+
return new __Action({
|
|
690
|
+
systemId: "conn_mod_def::GOUbG7-q_eA::nJr0hygZQ1in-6BTya8DQA",
|
|
691
|
+
method: "PATCH",
|
|
692
|
+
path: "/events/{{identifier}}",
|
|
693
|
+
...__routeInput(input, __updateEventRouting, { "headers": { "Content-Type": "application/json" } })
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
var __listLogsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
|
|
697
|
+
function listLogs(input) {
|
|
698
|
+
return new __Action({
|
|
699
|
+
systemId: "conn_mod_def::GOUbG8D5rZA::Vrz405fHRs2SCkFRqX5ihw",
|
|
700
|
+
method: "GET",
|
|
701
|
+
path: "/logs",
|
|
702
|
+
...__routeInput(input, __listLogsRouting)
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
var __retrieveLogRouting = { "routes": [["logId", "path"]], "requiredParts": ["path"] };
|
|
706
|
+
function retrieveLog(input) {
|
|
707
|
+
return new __Action({
|
|
708
|
+
systemId: "conn_mod_def::GOUbHFzLQ_A::ztMA7SGkRoqvEq_b5p8oCQ",
|
|
709
|
+
method: "GET",
|
|
710
|
+
path: "/logs/{{logId}}",
|
|
711
|
+
...__routeInput(input, __retrieveLogRouting)
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
export {
|
|
715
|
+
addContactSegment,
|
|
716
|
+
cancelScheduledEmail,
|
|
717
|
+
createApiKey,
|
|
718
|
+
createAutomation,
|
|
719
|
+
createBroadcast,
|
|
720
|
+
createContact,
|
|
721
|
+
createContactProperty,
|
|
722
|
+
createDomain,
|
|
723
|
+
createEvent,
|
|
724
|
+
createSegment,
|
|
725
|
+
createTemplate,
|
|
726
|
+
createTopic,
|
|
727
|
+
createWebhook,
|
|
728
|
+
deleteAutomation,
|
|
729
|
+
deleteBroadcastDraft,
|
|
730
|
+
deleteContact,
|
|
731
|
+
deleteContactProperty,
|
|
732
|
+
deleteEvent,
|
|
733
|
+
deleteSegment,
|
|
734
|
+
deleteTemplate,
|
|
735
|
+
deleteTopic,
|
|
736
|
+
deleteWebhook,
|
|
737
|
+
duplicateTemplate,
|
|
738
|
+
listApiKeys,
|
|
739
|
+
listAttachmentsReceivedEmail,
|
|
740
|
+
listAutomationRuns,
|
|
741
|
+
listAutomations,
|
|
742
|
+
listBroadcasts,
|
|
743
|
+
listContactProperties,
|
|
744
|
+
listContacts,
|
|
745
|
+
listContactsSegments,
|
|
746
|
+
listContactsTopics,
|
|
747
|
+
listDomains,
|
|
748
|
+
listEmails,
|
|
749
|
+
listEvents,
|
|
750
|
+
listLogs,
|
|
751
|
+
listReceivedEmails,
|
|
752
|
+
listSegments,
|
|
753
|
+
listSentEmailsAttachments,
|
|
754
|
+
listTemplates,
|
|
755
|
+
listTopics,
|
|
756
|
+
listWebhooks,
|
|
757
|
+
publishTemplate,
|
|
758
|
+
removeApiKey,
|
|
759
|
+
removeContactFromSegment,
|
|
760
|
+
removeDomain,
|
|
761
|
+
retrieveAutomation,
|
|
762
|
+
retrieveAutomationRun,
|
|
763
|
+
retrieveBroadcast,
|
|
764
|
+
retrieveContactIdOrEmail,
|
|
765
|
+
retrieveContactProperty,
|
|
766
|
+
retrieveDomain,
|
|
767
|
+
retrieveEmailsAttachment,
|
|
768
|
+
retrieveEvent,
|
|
769
|
+
retrieveLog,
|
|
770
|
+
retrieveReceivedEmail,
|
|
771
|
+
retrieveReceivedEmailAttachment,
|
|
772
|
+
retrieveSegment,
|
|
773
|
+
retrieveSingleEmail,
|
|
774
|
+
retrieveTemplate,
|
|
775
|
+
retrieveTopic,
|
|
776
|
+
retrieveWebhook,
|
|
777
|
+
sendBatchEmails,
|
|
778
|
+
sendEmail,
|
|
779
|
+
sendEvent,
|
|
780
|
+
sendOrScheduleBroadcast,
|
|
781
|
+
stopAutomation,
|
|
782
|
+
updateAutomation,
|
|
783
|
+
updateBroadcast,
|
|
784
|
+
updateContactIdOrEmail,
|
|
785
|
+
updateContactProperty,
|
|
786
|
+
updateContactsTopics,
|
|
787
|
+
updateDomain,
|
|
788
|
+
updateEmail,
|
|
789
|
+
updateEvent,
|
|
790
|
+
updateTemplate,
|
|
791
|
+
updateTopic,
|
|
792
|
+
updateWebhook,
|
|
793
|
+
verifyDomain
|
|
794
|
+
};
|