@segment/action-destinations 3.333.0 → 3.333.1-staging-e1fa4982f.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/dist/destinations/actions-pardot/pa-operations.d.ts +1 -1
- package/dist/destinations/adjust/functions.d.ts +1 -1
- package/dist/destinations/adobe-target/adobeTarget_operations.d.ts +1 -1
- package/dist/destinations/airship/utilities.d.ts +7 -7
- package/dist/destinations/cordial/cordial-client.d.ts +8 -8
- package/dist/destinations/customerio/test-helper.d.ts +1 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/PushSender.d.ts +1 -1
- package/dist/destinations/engage-messaging-twilio/utils/PhoneMessageSender.d.ts +1 -1
- package/dist/destinations/facebook-custom-audiences/fbca-operations.d.ts +2 -2
- package/dist/destinations/gameball/util.d.ts +1 -1
- package/dist/destinations/google-analytics-4/ga4-functions.d.ts +1 -1
- package/dist/destinations/google-campaign-manager-360/utils.d.ts +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +5 -5
- package/dist/destinations/google-enhanced-conversions/functions.js +18 -18
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/index.js +2 -2
- package/dist/destinations/google-enhanced-conversions/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/types.d.ts +3 -0
- package/dist/destinations/google-enhanced-conversions/userList/index.js +9 -9
- package/dist/destinations/google-enhanced-conversions/userList/index.js.map +1 -1
- package/dist/destinations/google-sheets/postSheet/operations.d.ts +1 -1
- package/dist/destinations/google-sheets/postSheet2/operations2.d.ts +1 -1
- package/dist/destinations/hubspot/customEvent/event-completion.d.ts +1 -1
- package/dist/destinations/hubspot/upsertObject/client.d.ts +3 -3
- package/dist/destinations/klaviyo/addProfileToList/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/addProfileToList/index.js +5 -14
- package/dist/destinations/klaviyo/addProfileToList/index.js.map +1 -1
- package/dist/destinations/klaviyo/config.d.ts +4 -0
- package/dist/destinations/klaviyo/config.js +250 -1
- package/dist/destinations/klaviyo/config.js.map +1 -1
- package/dist/destinations/klaviyo/functions.d.ts +15 -7
- package/dist/destinations/klaviyo/functions.js +256 -7
- package/dist/destinations/klaviyo/functions.js.map +1 -1
- package/dist/destinations/klaviyo/orderCompleted/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/orderCompleted/index.js +6 -4
- package/dist/destinations/klaviyo/orderCompleted/index.js.map +1 -1
- package/dist/destinations/klaviyo/properties.d.ts +3 -0
- package/dist/destinations/klaviyo/properties.js +19 -1
- package/dist/destinations/klaviyo/properties.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfile/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/removeProfile/index.js +10 -5
- package/dist/destinations/klaviyo/removeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/removeProfileFromList/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/removeProfileFromList/index.js +9 -6
- package/dist/destinations/klaviyo/removeProfileFromList/index.js.map +1 -1
- package/dist/destinations/klaviyo/subscribeProfile/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/subscribeProfile/index.js +11 -5
- package/dist/destinations/klaviyo/subscribeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/trackEvent/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/trackEvent/index.js +8 -4
- package/dist/destinations/klaviyo/trackEvent/index.js.map +1 -1
- package/dist/destinations/klaviyo/types.d.ts +18 -0
- package/dist/destinations/klaviyo/unsubscribeProfile/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/unsubscribeProfile/index.js +11 -5
- package/dist/destinations/klaviyo/unsubscribeProfile/index.js.map +1 -1
- package/dist/destinations/klaviyo/upsertProfile/generated-types.d.ts +1 -0
- package/dist/destinations/klaviyo/upsertProfile/index.js +10 -5
- package/dist/destinations/klaviyo/upsertProfile/index.js.map +1 -1
- package/dist/destinations/launchdarkly-audiences/syncAudience/custom-audience-operations.d.ts +1 -1
- package/dist/destinations/linkedin-audiences/api/index.js +0 -1
- package/dist/destinations/linkedin-audiences/api/index.js.map +1 -1
- package/dist/destinations/linkedin-audiences/constants.d.ts +1 -1
- package/dist/destinations/linkedin-audiences/constants.js +1 -1
- package/dist/destinations/magellan-ai/addToCart/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/addToCart/index.js +2 -1
- package/dist/destinations/magellan-ai/addToCart/index.js.map +1 -1
- package/dist/destinations/magellan-ai/checkout/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/checkout/index.js +2 -1
- package/dist/destinations/magellan-ai/checkout/index.js.map +1 -1
- package/dist/destinations/magellan-ai/code/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/code/index.js +3 -1
- package/dist/destinations/magellan-ai/code/index.js.map +1 -1
- package/dist/destinations/magellan-ai/identify/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/identify/index.js +3 -1
- package/dist/destinations/magellan-ai/identify/index.js.map +1 -1
- package/dist/destinations/magellan-ai/install/generated-types.d.ts +2 -2
- package/dist/destinations/magellan-ai/install/index.js +4 -1
- package/dist/destinations/magellan-ai/install/index.js.map +1 -1
- package/dist/destinations/magellan-ai/lead/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/lead/index.js +2 -1
- package/dist/destinations/magellan-ai/lead/index.js.map +1 -1
- package/dist/destinations/magellan-ai/product/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/product/index.js +4 -1
- package/dist/destinations/magellan-ai/product/index.js.map +1 -1
- package/dist/destinations/magellan-ai/purchase/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/purchase/index.js +2 -1
- package/dist/destinations/magellan-ai/purchase/index.js.map +1 -1
- package/dist/destinations/magellan-ai/schema.d.ts +1 -0
- package/dist/destinations/magellan-ai/schema.js +24 -22
- package/dist/destinations/magellan-ai/schema.js.map +1 -1
- package/dist/destinations/magellan-ai/thirdPartyEvent/generated-types.d.ts +2 -2
- package/dist/destinations/magellan-ai/thirdPartyEvent/index.js +2 -1
- package/dist/destinations/magellan-ai/thirdPartyEvent/index.js.map +1 -1
- package/dist/destinations/magellan-ai/view/generated-types.d.ts +2 -0
- package/dist/destinations/magellan-ai/view/index.js +3 -1
- package/dist/destinations/magellan-ai/view/index.js.map +1 -1
- package/dist/destinations/mantle/identify/generated-types.d.ts +1 -0
- package/dist/destinations/mantle/identify/index.js +8 -0
- package/dist/destinations/mantle/identify/index.js.map +1 -1
- package/dist/destinations/mixpanel/common/utils.d.ts +15 -0
- package/dist/destinations/mixpanel/common/utils.js +28 -1
- package/dist/destinations/mixpanel/common/utils.js.map +1 -1
- package/dist/destinations/mixpanel/trackEvent/index.js +30 -2
- package/dist/destinations/mixpanel/trackEvent/index.js.map +1 -1
- package/dist/destinations/mixpanel/trackPurchase/index.js +28 -2
- package/dist/destinations/mixpanel/trackPurchase/index.js.map +1 -1
- package/dist/destinations/recombee/deleteBookmark/index.js +1 -1
- package/dist/destinations/recombee/deleteBookmark/index.js.map +1 -1
- package/dist/destinations/recombee/deleteCartAddition/index.js +1 -1
- package/dist/destinations/recombee/deleteCartAddition/index.js.map +1 -1
- package/dist/destinations/recombee/setViewPortion/index.js +1 -1
- package/dist/destinations/recombee/setViewPortion/index.js.map +1 -1
- package/dist/destinations/recombee/setViewPortionFromWatchTime/index.d.ts +1 -1
- package/dist/destinations/recombee/setViewPortionFromWatchTime/index.js +6 -2
- package/dist/destinations/recombee/setViewPortionFromWatchTime/index.js.map +1 -1
- package/dist/destinations/responsys/index.js +14 -5
- package/dist/destinations/responsys/index.js.map +1 -1
- package/dist/destinations/responsys/sendAudience/index.js +1 -1
- package/dist/destinations/responsys/sendAudienceAsPet/functions.d.ts +10 -0
- package/dist/destinations/responsys/sendAudienceAsPet/functions.js +152 -0
- package/dist/destinations/responsys/sendAudienceAsPet/functions.js.map +1 -0
- package/dist/destinations/responsys/sendAudienceAsPet/generated-types.d.ts +15 -0
- package/dist/destinations/responsys/sendAudienceAsPet/generated-types.js +3 -0
- package/dist/destinations/responsys/sendAudienceAsPet/generated-types.js.map +1 -0
- package/dist/destinations/responsys/sendAudienceAsPet/index.d.ts +5 -0
- package/dist/destinations/responsys/sendAudienceAsPet/index.js +143 -0
- package/dist/destinations/responsys/sendAudienceAsPet/index.js.map +1 -0
- package/dist/destinations/responsys/sendCustomTraits/index.js +1 -1
- package/dist/destinations/responsys/{shared_properties.js → shared-properties.js} +1 -1
- package/dist/destinations/responsys/{shared_properties.js.map → shared-properties.js.map} +1 -1
- package/dist/destinations/responsys/types.d.ts +18 -9
- package/dist/destinations/responsys/upsertListMember/index.js +1 -1
- package/dist/destinations/responsys/utils.d.ts +5 -4
- package/dist/destinations/responsys/utils.js +14 -42
- package/dist/destinations/responsys/utils.js.map +1 -1
- package/dist/destinations/s3/fields.js +9 -0
- package/dist/destinations/s3/fields.js.map +1 -1
- package/dist/destinations/s3/functions.d.ts +2 -1
- package/dist/destinations/s3/functions.js +14 -3
- package/dist/destinations/s3/functions.js.map +1 -1
- package/dist/destinations/s3/syncToS3/generated-types.d.ts +1 -0
- package/dist/destinations/s3/syncToS3/index.js +4 -2
- package/dist/destinations/s3/syncToS3/index.js.map +1 -1
- package/dist/destinations/sendgrid/index.js +3 -1
- package/dist/destinations/sendgrid/index.js.map +1 -1
- package/dist/destinations/sendgrid/sendEmail/constants.d.ts +4 -0
- package/dist/destinations/sendgrid/sendEmail/constants.js +8 -0
- package/dist/destinations/sendgrid/sendEmail/constants.js.map +1 -0
- package/dist/destinations/sendgrid/sendEmail/fields.d.ts +2 -0
- package/dist/destinations/sendgrid/sendEmail/fields.js +396 -0
- package/dist/destinations/sendgrid/sendEmail/fields.js.map +1 -0
- package/dist/destinations/sendgrid/sendEmail/generated-types.d.ts +73 -0
- package/dist/destinations/sendgrid/sendEmail/generated-types.js +3 -0
- package/dist/destinations/sendgrid/sendEmail/generated-types.js.map +1 -0
- package/dist/destinations/sendgrid/sendEmail/index.d.ts +5 -0
- package/dist/destinations/sendgrid/sendEmail/index.js +14 -0
- package/dist/destinations/sendgrid/sendEmail/index.js.map +1 -0
- package/dist/destinations/sendgrid/sendEmail/types.d.ts +72 -0
- package/dist/destinations/sendgrid/sendEmail/types.js +3 -0
- package/dist/destinations/sendgrid/sendEmail/types.js.map +1 -0
- package/dist/destinations/sendgrid/sendEmail/utils.d.ts +3 -0
- package/dist/destinations/sendgrid/sendEmail/utils.js +86 -0
- package/dist/destinations/sendgrid/sendEmail/utils.js.map +1 -0
- package/dist/destinations/webhook-audiences/index.js +14 -2
- package/dist/destinations/webhook-audiences/index.js.map +1 -1
- package/package.json +2 -2
- /package/dist/destinations/responsys/{shared_properties.d.ts → shared-properties.d.ts} +0 -0
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fields = void 0;
|
|
4
|
+
exports.fields = {
|
|
5
|
+
from: {
|
|
6
|
+
label: 'From',
|
|
7
|
+
description: 'From details.',
|
|
8
|
+
type: 'object',
|
|
9
|
+
required: true,
|
|
10
|
+
additionalProperties: false,
|
|
11
|
+
defaultObjectUI: 'keyvalue',
|
|
12
|
+
properties: {
|
|
13
|
+
email: {
|
|
14
|
+
label: 'Email',
|
|
15
|
+
description: 'The email address of the sender.',
|
|
16
|
+
type: 'string',
|
|
17
|
+
required: true
|
|
18
|
+
},
|
|
19
|
+
name: {
|
|
20
|
+
label: 'Name',
|
|
21
|
+
description: 'From name of the sender, displayed to the recipient.',
|
|
22
|
+
type: 'string',
|
|
23
|
+
required: false
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
to: {
|
|
28
|
+
label: 'To',
|
|
29
|
+
description: 'Recipient details.',
|
|
30
|
+
type: 'object',
|
|
31
|
+
multiple: true,
|
|
32
|
+
required: true,
|
|
33
|
+
additionalProperties: false,
|
|
34
|
+
defaultObjectUI: 'keyvalue',
|
|
35
|
+
properties: {
|
|
36
|
+
email: {
|
|
37
|
+
label: 'Email',
|
|
38
|
+
description: 'The email address of the recipient.',
|
|
39
|
+
type: 'string',
|
|
40
|
+
required: true
|
|
41
|
+
},
|
|
42
|
+
name: {
|
|
43
|
+
label: 'Name',
|
|
44
|
+
description: 'The name of the recipient.',
|
|
45
|
+
type: 'string',
|
|
46
|
+
required: false
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
cc: {
|
|
51
|
+
label: 'CC',
|
|
52
|
+
description: 'CC recipient details',
|
|
53
|
+
type: 'object',
|
|
54
|
+
multiple: true,
|
|
55
|
+
required: false,
|
|
56
|
+
additionalProperties: false,
|
|
57
|
+
defaultObjectUI: 'keyvalue',
|
|
58
|
+
properties: {
|
|
59
|
+
email: {
|
|
60
|
+
label: 'Email',
|
|
61
|
+
description: 'The email address of the CC recipient.',
|
|
62
|
+
type: 'string',
|
|
63
|
+
required: true
|
|
64
|
+
},
|
|
65
|
+
name: {
|
|
66
|
+
label: 'Name',
|
|
67
|
+
description: 'The name of the CC recipient.',
|
|
68
|
+
type: 'string',
|
|
69
|
+
required: false
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
bcc: {
|
|
74
|
+
label: 'BCC',
|
|
75
|
+
description: 'BCC recipient details',
|
|
76
|
+
type: 'object',
|
|
77
|
+
multiple: true,
|
|
78
|
+
required: false,
|
|
79
|
+
additionalProperties: false,
|
|
80
|
+
defaultObjectUI: 'keyvalue',
|
|
81
|
+
properties: {
|
|
82
|
+
email: {
|
|
83
|
+
label: 'Email',
|
|
84
|
+
description: 'The email address of the BCC recipient.',
|
|
85
|
+
type: 'string',
|
|
86
|
+
required: true
|
|
87
|
+
},
|
|
88
|
+
name: {
|
|
89
|
+
label: 'Name',
|
|
90
|
+
description: 'The name of the BCC recipient.',
|
|
91
|
+
type: 'string',
|
|
92
|
+
required: false
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
subject: {
|
|
97
|
+
label: 'Subject',
|
|
98
|
+
description: 'The subject of the email.',
|
|
99
|
+
type: 'string',
|
|
100
|
+
required: true
|
|
101
|
+
},
|
|
102
|
+
headers: {
|
|
103
|
+
label: 'Headers',
|
|
104
|
+
description: 'Headers for the email.',
|
|
105
|
+
type: 'object',
|
|
106
|
+
required: false,
|
|
107
|
+
additionalProperties: true,
|
|
108
|
+
defaultObjectUI: 'keyvalue',
|
|
109
|
+
},
|
|
110
|
+
dynamic_template_data: {
|
|
111
|
+
label: 'Dynamic Template Data',
|
|
112
|
+
description: 'A collection property names that will be substituted by their corresponding property values in the subject, reply-to and content portions of a SendGrid Dynamic Template.',
|
|
113
|
+
type: 'object',
|
|
114
|
+
multiple: true,
|
|
115
|
+
required: false,
|
|
116
|
+
defaultObjectUI: 'keyvalue',
|
|
117
|
+
additionalProperties: true,
|
|
118
|
+
properties: {
|
|
119
|
+
key: {
|
|
120
|
+
label: 'Key',
|
|
121
|
+
description: 'The key of the dynamic template data.',
|
|
122
|
+
type: 'string',
|
|
123
|
+
required: true
|
|
124
|
+
},
|
|
125
|
+
value: {
|
|
126
|
+
label: 'Value',
|
|
127
|
+
description: 'The value of the dynamic template data.',
|
|
128
|
+
type: 'string',
|
|
129
|
+
required: true
|
|
130
|
+
},
|
|
131
|
+
required: {
|
|
132
|
+
label: 'Required',
|
|
133
|
+
description: 'If true, the email will not be sent if the Value field is empty, unless there is a default specified.',
|
|
134
|
+
type: 'boolean',
|
|
135
|
+
required: true,
|
|
136
|
+
default: false
|
|
137
|
+
},
|
|
138
|
+
default: {
|
|
139
|
+
label: 'Default value',
|
|
140
|
+
description: 'The default value to use if the value field is empty.',
|
|
141
|
+
type: 'string',
|
|
142
|
+
required: false
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
template_id: {
|
|
147
|
+
label: 'Template ID',
|
|
148
|
+
description: "The template ID to use for the email. This must be for a Dynamic Template and should start with a 'd-'",
|
|
149
|
+
type: 'string',
|
|
150
|
+
required: true
|
|
151
|
+
},
|
|
152
|
+
custom_args: {
|
|
153
|
+
label: 'Custom Args',
|
|
154
|
+
description: 'Custom arguments for the email.',
|
|
155
|
+
type: 'object',
|
|
156
|
+
required: false,
|
|
157
|
+
additionalProperties: true,
|
|
158
|
+
defaultObjectUI: 'keyvalue',
|
|
159
|
+
},
|
|
160
|
+
send_at: {
|
|
161
|
+
label: 'Send At',
|
|
162
|
+
description: 'The time to send the email. ISO 8601 format. E.g. 2024-09-23T12:00:00Z. A send cannot be scheduled more than 72 hours in advance.',
|
|
163
|
+
type: 'string',
|
|
164
|
+
format: 'date-time',
|
|
165
|
+
required: false,
|
|
166
|
+
},
|
|
167
|
+
reply_to: {
|
|
168
|
+
label: 'Reply To',
|
|
169
|
+
description: 'Reply to details.',
|
|
170
|
+
type: 'object',
|
|
171
|
+
required: true,
|
|
172
|
+
additionalProperties: false,
|
|
173
|
+
defaultObjectUI: 'keyvalue',
|
|
174
|
+
properties: {
|
|
175
|
+
reply_to_equals_from: {
|
|
176
|
+
label: 'Reply To Equals From',
|
|
177
|
+
description: 'Whether "reply to" settings are the same as "from"',
|
|
178
|
+
type: 'boolean',
|
|
179
|
+
required: true,
|
|
180
|
+
default: true
|
|
181
|
+
},
|
|
182
|
+
email: {
|
|
183
|
+
label: 'Email',
|
|
184
|
+
description: 'The email to reply to.',
|
|
185
|
+
type: 'string',
|
|
186
|
+
required: false
|
|
187
|
+
},
|
|
188
|
+
name: {
|
|
189
|
+
label: 'Name',
|
|
190
|
+
description: 'The name to reply to.',
|
|
191
|
+
type: 'string',
|
|
192
|
+
required: false
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
click_tracking: {
|
|
197
|
+
label: 'Click Tracking',
|
|
198
|
+
description: 'Click tracking settings for the email.',
|
|
199
|
+
type: 'object',
|
|
200
|
+
required: false,
|
|
201
|
+
additionalProperties: false,
|
|
202
|
+
defaultObjectUI: 'keyvalue',
|
|
203
|
+
properties: {
|
|
204
|
+
enable: {
|
|
205
|
+
label: 'Enabled',
|
|
206
|
+
description: 'Indicates if this setting is enabled',
|
|
207
|
+
type: 'boolean',
|
|
208
|
+
required: true,
|
|
209
|
+
default: true
|
|
210
|
+
},
|
|
211
|
+
enable_text: {
|
|
212
|
+
label: 'Enable Text',
|
|
213
|
+
description: 'Indicates if this setting should be included in the text/plain portion of your email.',
|
|
214
|
+
type: 'boolean',
|
|
215
|
+
required: false,
|
|
216
|
+
default: false
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
open_tracking: {
|
|
221
|
+
label: 'Open Tracking',
|
|
222
|
+
description: 'Allows you to track if the email was opened by including a single transparent pixel image in the body of the message content.',
|
|
223
|
+
type: 'object',
|
|
224
|
+
required: false,
|
|
225
|
+
additionalProperties: false,
|
|
226
|
+
defaultObjectUI: 'keyvalue',
|
|
227
|
+
properties: {
|
|
228
|
+
enable: {
|
|
229
|
+
label: 'Enabled',
|
|
230
|
+
description: 'Indicates if this setting is enabled',
|
|
231
|
+
type: 'boolean',
|
|
232
|
+
required: true,
|
|
233
|
+
default: true
|
|
234
|
+
},
|
|
235
|
+
substitution_tag: {
|
|
236
|
+
label: 'Substitution Tag',
|
|
237
|
+
description: 'Allows you to specify a substitution tag that you can insert in the body of your email at a location that you desire. This tag will be replaced by the open tracking pixel.',
|
|
238
|
+
type: 'string',
|
|
239
|
+
required: false
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
subscription_tracking: {
|
|
244
|
+
label: 'Subscription Tracking',
|
|
245
|
+
description: 'Allows you to insert a subscription management link at the bottom of the text and HTML bodies of your email.',
|
|
246
|
+
type: 'object',
|
|
247
|
+
required: false,
|
|
248
|
+
additionalProperties: false,
|
|
249
|
+
defaultObjectUI: 'keyvalue',
|
|
250
|
+
properties: {
|
|
251
|
+
enable: {
|
|
252
|
+
label: 'Enabled',
|
|
253
|
+
description: 'Indicates if this setting is enabled',
|
|
254
|
+
type: 'boolean',
|
|
255
|
+
required: true,
|
|
256
|
+
default: false
|
|
257
|
+
},
|
|
258
|
+
text: {
|
|
259
|
+
label: 'Text',
|
|
260
|
+
description: 'Text to be appended to the email with the subscription tracking link.',
|
|
261
|
+
type: 'string',
|
|
262
|
+
required: false
|
|
263
|
+
},
|
|
264
|
+
html: {
|
|
265
|
+
label: 'HTML',
|
|
266
|
+
description: 'HTML to be appended to the email with the subscription tracking link.',
|
|
267
|
+
type: 'string',
|
|
268
|
+
required: false
|
|
269
|
+
},
|
|
270
|
+
substitution_tag: {
|
|
271
|
+
label: 'Substitution Tag',
|
|
272
|
+
description: 'A tag that will be replaced with the unsubscribe URL. If this property is used, it will override both the text and html properties.',
|
|
273
|
+
type: 'string',
|
|
274
|
+
required: false
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
categories: {
|
|
279
|
+
label: 'Categories',
|
|
280
|
+
description: 'Categories for the email.',
|
|
281
|
+
type: 'object',
|
|
282
|
+
multiple: true,
|
|
283
|
+
required: false,
|
|
284
|
+
defaultObjectUI: 'keyvalue',
|
|
285
|
+
additionalProperties: false,
|
|
286
|
+
properties: {
|
|
287
|
+
category: {
|
|
288
|
+
label: 'Category name',
|
|
289
|
+
description: 'Category name.',
|
|
290
|
+
type: 'string',
|
|
291
|
+
required: true
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
googleAnalytics: {
|
|
296
|
+
label: 'Google Analytics',
|
|
297
|
+
description: 'Allows you to enable tracking provided by Google Analytics.',
|
|
298
|
+
type: 'object',
|
|
299
|
+
required: false,
|
|
300
|
+
defaultObjectUI: 'keyvalue',
|
|
301
|
+
additionalProperties: false,
|
|
302
|
+
properties: {
|
|
303
|
+
enable: {
|
|
304
|
+
label: 'Enabled',
|
|
305
|
+
description: 'Indicates if this setting is enabled',
|
|
306
|
+
type: 'boolean',
|
|
307
|
+
required: true,
|
|
308
|
+
default: false
|
|
309
|
+
},
|
|
310
|
+
utm_source: {
|
|
311
|
+
label: 'UTM Source',
|
|
312
|
+
description: 'Name of the referrer source. (e.g., Google, SomeDomain.com, or Marketing Email)',
|
|
313
|
+
type: 'string',
|
|
314
|
+
required: false
|
|
315
|
+
},
|
|
316
|
+
utm_medium: {
|
|
317
|
+
label: 'UTM Medium',
|
|
318
|
+
description: 'Name of the marketing medium. (e.g., Email)',
|
|
319
|
+
type: 'string',
|
|
320
|
+
required: false
|
|
321
|
+
},
|
|
322
|
+
utm_term: {
|
|
323
|
+
label: 'UTM Term',
|
|
324
|
+
description: 'Used to identify any paid keywords.',
|
|
325
|
+
type: 'string',
|
|
326
|
+
required: false
|
|
327
|
+
},
|
|
328
|
+
utm_content: {
|
|
329
|
+
label: 'UTM Content',
|
|
330
|
+
description: 'Used to differentiate your campaign from advertisements.',
|
|
331
|
+
type: 'string',
|
|
332
|
+
required: false
|
|
333
|
+
},
|
|
334
|
+
utm_campaign: {
|
|
335
|
+
label: 'UTM Campaign',
|
|
336
|
+
description: 'The name of the campaign.',
|
|
337
|
+
type: 'string',
|
|
338
|
+
required: false
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
ip_pool_name: {
|
|
343
|
+
label: 'IP Pool',
|
|
344
|
+
description: 'Send email with an ip pool.',
|
|
345
|
+
type: 'string',
|
|
346
|
+
required: false
|
|
347
|
+
},
|
|
348
|
+
ASM: {
|
|
349
|
+
label: 'Subscription Settings',
|
|
350
|
+
description: 'Subscription settings for the email.',
|
|
351
|
+
type: 'object',
|
|
352
|
+
required: false,
|
|
353
|
+
defaultObjectUI: 'keyvalue',
|
|
354
|
+
additionalProperties: false,
|
|
355
|
+
properties: {
|
|
356
|
+
groupId: {
|
|
357
|
+
label: 'Subscription Group ID',
|
|
358
|
+
description: 'Specify a Subscription Group ID to ensure emails are sent to only users who are subscribed to that group.',
|
|
359
|
+
type: 'integer',
|
|
360
|
+
required: false
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
mail_settings: {
|
|
365
|
+
label: 'Mail Settings',
|
|
366
|
+
description: 'A collection of different mail settings that you can use to specify how you would like this email to be handled.',
|
|
367
|
+
type: 'object',
|
|
368
|
+
required: false,
|
|
369
|
+
additionalProperties: false,
|
|
370
|
+
defaultObjectUI: 'keyvalue',
|
|
371
|
+
properties: {
|
|
372
|
+
bypass_list_management: {
|
|
373
|
+
label: 'Bypass List Management',
|
|
374
|
+
description: 'Allows you to bypass all unsubscribe groups and suppressions to ensure that the email is delivered to every single recipient.',
|
|
375
|
+
type: 'boolean',
|
|
376
|
+
required: false,
|
|
377
|
+
default: false
|
|
378
|
+
},
|
|
379
|
+
bypass_unsubscribe_management: {
|
|
380
|
+
label: 'Bypass Unsubscribe Management',
|
|
381
|
+
description: 'Allows you to bypass the global unsubscribe list to ensure that the email is delivered to recipients. This filter applies only to global unsubscribes and will not bypass group unsubscribes. This filter cannot be combined with the bypass_list_management.',
|
|
382
|
+
type: 'boolean',
|
|
383
|
+
required: false,
|
|
384
|
+
default: false
|
|
385
|
+
},
|
|
386
|
+
sandbox_mode: {
|
|
387
|
+
label: 'Sandbox Mode',
|
|
388
|
+
description: 'Sandbox Mode allows you to send a test email to ensure that your request body is valid and formatted correctly.',
|
|
389
|
+
type: 'boolean',
|
|
390
|
+
required: false,
|
|
391
|
+
default: false
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../src/destinations/sendgrid/sendEmail/fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,MAAM,GAA+B;IAC9C,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,oBAAoB,EAAE,KAA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Q,EAAE,KAAK;QACf,oBAAoB,EAAE,KAAK;QAC3B,eAAe,EAAE,UAAU;QAC3B,UAAU,EAAE;YACV,sBAAsB,EAAE;gBACtB,KAAK,EAAE,wBAAwB;gBAC/B,WAAW,EAAE,+HAA+H;gBAC5I,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,KAAK;aACf;YACD,6BAA6B,EAAE;gBAC7B,KAAK,EAAE,+BAA+B;gBACtC,WAAW,EAAE,+PAA+P;gBAC5Q,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,KAAK;aACf;YACD,YAAY,EAAE;gBACZ,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,iHAAiH;gBAC9H,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,KAAK;aACf;SACF;KACF;CACJ,CAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
from: {
|
|
3
|
+
email: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
};
|
|
6
|
+
to: {
|
|
7
|
+
email: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
}[];
|
|
10
|
+
cc?: {
|
|
11
|
+
email: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
}[];
|
|
14
|
+
bcc?: {
|
|
15
|
+
email: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
}[];
|
|
18
|
+
subject: string;
|
|
19
|
+
headers?: {
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
dynamic_template_data?: {
|
|
23
|
+
key: string;
|
|
24
|
+
value: string;
|
|
25
|
+
required: boolean;
|
|
26
|
+
default?: string;
|
|
27
|
+
[k: string]: unknown;
|
|
28
|
+
}[];
|
|
29
|
+
template_id: string;
|
|
30
|
+
custom_args?: {
|
|
31
|
+
[k: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
send_at?: string;
|
|
34
|
+
reply_to: {
|
|
35
|
+
reply_to_equals_from: boolean;
|
|
36
|
+
email?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
};
|
|
39
|
+
click_tracking?: {
|
|
40
|
+
enable: boolean;
|
|
41
|
+
enable_text?: boolean;
|
|
42
|
+
};
|
|
43
|
+
open_tracking?: {
|
|
44
|
+
enable: boolean;
|
|
45
|
+
substitution_tag?: string;
|
|
46
|
+
};
|
|
47
|
+
subscription_tracking?: {
|
|
48
|
+
enable: boolean;
|
|
49
|
+
text?: string;
|
|
50
|
+
html?: string;
|
|
51
|
+
substitution_tag?: string;
|
|
52
|
+
};
|
|
53
|
+
categories?: {
|
|
54
|
+
category: string;
|
|
55
|
+
}[];
|
|
56
|
+
googleAnalytics?: {
|
|
57
|
+
enable: boolean;
|
|
58
|
+
utm_source?: string;
|
|
59
|
+
utm_medium?: string;
|
|
60
|
+
utm_term?: string;
|
|
61
|
+
utm_content?: string;
|
|
62
|
+
utm_campaign?: string;
|
|
63
|
+
};
|
|
64
|
+
ip_pool_name?: string;
|
|
65
|
+
ASM?: {
|
|
66
|
+
groupId?: number;
|
|
67
|
+
};
|
|
68
|
+
mail_settings?: {
|
|
69
|
+
bypass_list_management?: boolean;
|
|
70
|
+
bypass_unsubscribe_management?: boolean;
|
|
71
|
+
sandbox_mode?: boolean;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/sendgrid/sendEmail/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("./utils");
|
|
4
|
+
const fields_1 = require("./fields");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Send email with Dynamic Template',
|
|
7
|
+
description: 'Send email to recipient(s) using a Dynamic Template in Sendgrid',
|
|
8
|
+
fields: fields_1.fields,
|
|
9
|
+
perform: async (request, { payload }) => {
|
|
10
|
+
return await utils_1.send(request, payload);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
exports.default = action;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/sendgrid/sendEmail/index.ts"],"names":[],"mappings":";;AAGA,mCAA8B;AAC9B,qCAAiC;AAEjC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kCAAkC;IACzC,WAAW,EAAE,iEAAiE;IAC9E,MAAM,EAAN,eAAM;IACN,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACtC,OAAO,MAAM,YAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACrC,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export interface sendEmailReq {
|
|
2
|
+
personalizations: [
|
|
3
|
+
{
|
|
4
|
+
from: {
|
|
5
|
+
email: string;
|
|
6
|
+
name: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
to: {
|
|
9
|
+
email: string;
|
|
10
|
+
name: string | undefined;
|
|
11
|
+
}[];
|
|
12
|
+
cc?: {
|
|
13
|
+
email: string;
|
|
14
|
+
name: string | undefined;
|
|
15
|
+
}[];
|
|
16
|
+
bcc?: {
|
|
17
|
+
email: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
}[];
|
|
20
|
+
subject: string;
|
|
21
|
+
headers?: {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
dynamic_template_data?: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
custom_args?: {
|
|
28
|
+
[key: string]: string;
|
|
29
|
+
};
|
|
30
|
+
send_at?: number;
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
reply_to?: {
|
|
34
|
+
email: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
};
|
|
37
|
+
template_id: string;
|
|
38
|
+
categories?: string[];
|
|
39
|
+
asm?: {
|
|
40
|
+
group_id: number;
|
|
41
|
+
};
|
|
42
|
+
ip_pool_name?: string;
|
|
43
|
+
tracking_settings?: {
|
|
44
|
+
click_tracking?: {
|
|
45
|
+
enable: boolean;
|
|
46
|
+
enable_text?: boolean;
|
|
47
|
+
};
|
|
48
|
+
open_tracking?: {
|
|
49
|
+
enable: boolean;
|
|
50
|
+
substitution_tag?: string;
|
|
51
|
+
};
|
|
52
|
+
subscription_tracking?: {
|
|
53
|
+
enable: boolean;
|
|
54
|
+
text?: string;
|
|
55
|
+
html?: string;
|
|
56
|
+
substitution_tag?: string;
|
|
57
|
+
};
|
|
58
|
+
ganalytics?: {
|
|
59
|
+
enable: boolean;
|
|
60
|
+
utm_source?: string;
|
|
61
|
+
utm_medium?: string;
|
|
62
|
+
utm_term?: string;
|
|
63
|
+
utm_content?: string;
|
|
64
|
+
utm_campaign?: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
mail_settings?: {
|
|
68
|
+
bypass_list_management?: boolean;
|
|
69
|
+
bypass_unsubscribe_management?: boolean;
|
|
70
|
+
sandbox_mode?: boolean;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/destinations/sendgrid/sendEmail/types.ts"],"names":[],"mappings":""}
|