n8n-nodes-resend 2.6.0 → 2.6.2
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/credentials/ResendOAuth2Api.credentials.js +26 -11
- package/dist/nodes/Resend/actions/account/disconnect.operation.js +1 -1
- package/dist/nodes/Resend/actions/domain/claim.operation.js +80 -93
- package/dist/nodes/Resend/actions/domain/create.operation.js +120 -133
- package/dist/nodes/Resend/actions/domain/createTrackingDomain.operation.js +24 -37
- package/dist/nodes/Resend/actions/domain/deleteTrackingDomain.operation.js +24 -37
- package/dist/nodes/Resend/actions/domain/getTrackingDomain.operation.js +24 -37
- package/dist/nodes/Resend/actions/domain/listTrackingDomains.operation.js +1 -10
- package/dist/nodes/Resend/actions/domain/verifyClaim.operation.js +1 -10
- package/dist/nodes/Resend/actions/domain/verifyTrackingDomain.operation.js +24 -37
- package/dist/nodes/Resend/actions/email/send.operation.js +0 -10
- package/dist/nodes/Resend/actions/event/create.operation.js +23 -36
- package/dist/nodes/Resend/actions/event/delete.operation.js +0 -9
- package/dist/nodes/Resend/actions/event/get.operation.js +0 -9
- package/dist/nodes/Resend/actions/event/list.operation.js +1 -10
- package/dist/nodes/Resend/actions/event/send.operation.js +0 -10
- package/dist/nodes/Resend/actions/event/update.operation.js +25 -38
- package/dist/nodes/Resend/actions/workflow/create.operation.js +0 -10
- package/dist/nodes/Resend/actions/workflow/delete.operation.js +0 -9
- package/dist/nodes/Resend/actions/workflow/get.operation.js +0 -9
- package/dist/nodes/Resend/actions/workflow/getRun.operation.js +25 -38
- package/dist/nodes/Resend/actions/workflow/getRunStep.operation.js +0 -10
- package/dist/nodes/Resend/actions/workflow/list.operation.js +1 -10
- package/dist/nodes/Resend/actions/workflow/listRunSteps.operation.js +25 -38
- package/dist/nodes/Resend/actions/workflow/listRuns.operation.js +0 -9
- package/dist/nodes/Resend/actions/workflow/update.operation.js +31 -44
- package/package.json +1 -1
|
@@ -10,17 +10,32 @@ var ResendOAuth2Api = class {
|
|
|
10
10
|
light: "file:resend-icon-black.svg",
|
|
11
11
|
dark: "file:resend-icon-white.svg"
|
|
12
12
|
};
|
|
13
|
-
this.properties = [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
this.properties = [
|
|
14
|
+
{
|
|
15
|
+
displayName: "This one-click connection requires a recent version of n8n. If the <b>Connect</b> button does not work, update n8n, or use the <b>Resend API</b> credential (API key) instead.",
|
|
16
|
+
name: "versionNotice",
|
|
17
|
+
type: "notice",
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: "Getting a 400 error when connecting? Check the <b>OAuth Redirect URL</b> shown above, it must be a public <code>https://</code> URL. If it shows an internal address like <code>http://n8n.local:5678</code>, your n8n instance's public URL is misconfigured. Set the <code>WEBHOOK_URL</code> environment variable to your instance's real HTTPS address (e.g. <code>https://your-n8n-domain.com/</code>) and restart n8n.",
|
|
22
|
+
name: "redirectUrlNotice",
|
|
23
|
+
type: "notice",
|
|
24
|
+
default: ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
displayName: "Server URL",
|
|
28
|
+
name: "serverUrl",
|
|
29
|
+
type: "hidden",
|
|
30
|
+
default: "https://api.resend.com"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: "Use Dynamic Client Registration",
|
|
34
|
+
name: "useDynamicClientRegistration",
|
|
35
|
+
type: "hidden",
|
|
36
|
+
default: true
|
|
37
|
+
}
|
|
38
|
+
];
|
|
24
39
|
}
|
|
25
40
|
};
|
|
26
41
|
//#endregion
|
|
@@ -16,7 +16,7 @@ async function execute(index) {
|
|
|
16
16
|
const refreshToken = (_credentials$oauthTok = credentials.oauthTokenData) === null || _credentials$oauthTok === void 0 ? void 0 : _credentials$oauthTok.refresh_token;
|
|
17
17
|
if (!clientId || !refreshToken) throw new n8n_workflow.NodeOperationError(this.getNode(), "No active Resend OAuth connection was found to disconnect. Connect the credential first.", { itemIndex: index });
|
|
18
18
|
try {
|
|
19
|
-
await this.helpers.
|
|
19
|
+
await this.helpers.httpRequestWithAuthentication.call(this, "resendOAuth2Api", {
|
|
20
20
|
method: "POST",
|
|
21
21
|
url: "https://api.resend.com/oauth/revoke",
|
|
22
22
|
headers: {
|
|
@@ -6,99 +6,86 @@ var claim_operation_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
6
6
|
description: () => description,
|
|
7
7
|
execute: () => execute
|
|
8
8
|
});
|
|
9
|
-
const description = [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
description: "The region where emails will be sent from"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
displayName: "Tracking Subdomain",
|
|
93
|
-
name: "tracking_subdomain",
|
|
94
|
-
type: "string",
|
|
95
|
-
default: "",
|
|
96
|
-
placeholder: "links",
|
|
97
|
-
description: "Configure a custom subdomain for click and open tracking (e.g., \"links\" on domain example.com produces links.example.com)"
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
];
|
|
9
|
+
const description = [{
|
|
10
|
+
displayName: "Domain Name",
|
|
11
|
+
name: "domainName",
|
|
12
|
+
type: "string",
|
|
13
|
+
required: true,
|
|
14
|
+
default: "",
|
|
15
|
+
placeholder: "example.com",
|
|
16
|
+
displayOptions: { show: {
|
|
17
|
+
resource: ["domains"],
|
|
18
|
+
operation: ["claim"]
|
|
19
|
+
} },
|
|
20
|
+
description: "The name of the domain you want to claim"
|
|
21
|
+
}, {
|
|
22
|
+
displayName: "Additional Options",
|
|
23
|
+
name: "additionalOptions",
|
|
24
|
+
type: "collection",
|
|
25
|
+
placeholder: "Add Option",
|
|
26
|
+
default: {},
|
|
27
|
+
displayOptions: { show: {
|
|
28
|
+
resource: ["domains"],
|
|
29
|
+
operation: ["claim"]
|
|
30
|
+
} },
|
|
31
|
+
options: [
|
|
32
|
+
{
|
|
33
|
+
displayName: "Click Tracking",
|
|
34
|
+
name: "click_tracking",
|
|
35
|
+
type: "boolean",
|
|
36
|
+
default: false,
|
|
37
|
+
description: "Whether to track clicks within the body of each HTML email. Only applied if a tracking_subdomain is configured and verified."
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: "Custom Return Path",
|
|
41
|
+
name: "custom_return_path",
|
|
42
|
+
type: "string",
|
|
43
|
+
default: "send",
|
|
44
|
+
placeholder: "send",
|
|
45
|
+
description: "Choose a subdomain for the Return-Path address. Defaults to \"send\" (i.e., send.yourdomain.tld)."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: "Open Tracking",
|
|
49
|
+
name: "open_tracking",
|
|
50
|
+
type: "boolean",
|
|
51
|
+
default: false,
|
|
52
|
+
description: "Whether to track the open rate of each email. Only applied if a tracking_subdomain is configured and verified."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: "Region",
|
|
56
|
+
name: "region",
|
|
57
|
+
type: "options",
|
|
58
|
+
options: [
|
|
59
|
+
{
|
|
60
|
+
name: "US East (N. Virginia)",
|
|
61
|
+
value: "us-east-1"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "EU West (Ireland)",
|
|
65
|
+
value: "eu-west-1"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "South America (São Paulo)",
|
|
69
|
+
value: "sa-east-1"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "Asia Pacific (Tokyo)",
|
|
73
|
+
value: "ap-northeast-1"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
default: "us-east-1",
|
|
77
|
+
description: "The region where emails will be sent from"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: "Tracking Subdomain",
|
|
81
|
+
name: "tracking_subdomain",
|
|
82
|
+
type: "string",
|
|
83
|
+
default: "",
|
|
84
|
+
placeholder: "links",
|
|
85
|
+
description: "Configure a custom subdomain for click and open tracking (e.g., \"links\" on domain example.com produces links.example.com)"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}];
|
|
102
89
|
async function execute(index) {
|
|
103
90
|
const domainName = this.getNodeParameter("domainName", index);
|
|
104
91
|
const additionalOptions = this.getNodeParameter("additionalOptions", index);
|
|
@@ -6,142 +6,129 @@ var create_operation_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
6
6
|
description: () => description,
|
|
7
7
|
execute: () => execute
|
|
8
8
|
});
|
|
9
|
-
const description = [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
displayOptions: { show: {
|
|
40
|
-
resource: ["domains"],
|
|
41
|
-
operation: ["create"]
|
|
42
|
-
} },
|
|
43
|
-
options: [
|
|
44
|
-
{
|
|
9
|
+
const description = [{
|
|
10
|
+
displayName: "Domain Name",
|
|
11
|
+
name: "domainName",
|
|
12
|
+
type: "string",
|
|
13
|
+
required: true,
|
|
14
|
+
default: "",
|
|
15
|
+
placeholder: "example.com",
|
|
16
|
+
displayOptions: { show: {
|
|
17
|
+
resource: ["domains"],
|
|
18
|
+
operation: ["create"]
|
|
19
|
+
} },
|
|
20
|
+
description: "The domain name to add to Resend (e.g., example.com). After adding, you must configure DNS records to verify ownership before sending emails."
|
|
21
|
+
}, {
|
|
22
|
+
displayName: "Additional Options",
|
|
23
|
+
name: "additionalOptions",
|
|
24
|
+
type: "collection",
|
|
25
|
+
placeholder: "Add Option",
|
|
26
|
+
default: {},
|
|
27
|
+
displayOptions: { show: {
|
|
28
|
+
resource: ["domains"],
|
|
29
|
+
operation: ["create"]
|
|
30
|
+
} },
|
|
31
|
+
options: [
|
|
32
|
+
{
|
|
33
|
+
displayName: "Capabilities",
|
|
34
|
+
name: "capabilities",
|
|
35
|
+
type: "fixedCollection",
|
|
36
|
+
default: {},
|
|
37
|
+
description: "Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled.",
|
|
38
|
+
options: [{
|
|
45
39
|
displayName: "Capabilities",
|
|
46
|
-
name: "
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
displayName: "Sending",
|
|
55
|
-
name: "sending",
|
|
56
|
-
type: "options",
|
|
57
|
-
options: [{
|
|
58
|
-
name: "Enabled",
|
|
59
|
-
value: "enabled"
|
|
60
|
-
}, {
|
|
61
|
-
name: "Disabled",
|
|
62
|
-
value: "disabled"
|
|
63
|
-
}],
|
|
64
|
-
default: "enabled",
|
|
65
|
-
description: "Whether this domain can be used to send emails"
|
|
40
|
+
name: "capabilitiesValues",
|
|
41
|
+
values: [{
|
|
42
|
+
displayName: "Sending",
|
|
43
|
+
name: "sending",
|
|
44
|
+
type: "options",
|
|
45
|
+
options: [{
|
|
46
|
+
name: "Enabled",
|
|
47
|
+
value: "enabled"
|
|
66
48
|
}, {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
value: "enabled"
|
|
73
|
-
}, {
|
|
74
|
-
name: "Disabled",
|
|
75
|
-
value: "disabled"
|
|
76
|
-
}],
|
|
77
|
-
default: "disabled",
|
|
78
|
-
description: "Whether this domain can receive inbound emails"
|
|
79
|
-
}]
|
|
80
|
-
}]
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
displayName: "Click Tracking",
|
|
84
|
-
name: "clickTracking",
|
|
85
|
-
type: "boolean",
|
|
86
|
-
default: false,
|
|
87
|
-
description: "Whether to track clicks within the body of each HTML email sent from this domain"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
displayName: "Custom Return Path",
|
|
91
|
-
name: "customReturnPath",
|
|
92
|
-
type: "string",
|
|
93
|
-
default: "send",
|
|
94
|
-
description: "Custom subdomain for email bounce handling (Return-Path address). Defaults to \"send\". This subdomain needs to be configured in your DNS."
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
displayName: "Open Tracking",
|
|
98
|
-
name: "openTracking",
|
|
99
|
-
type: "boolean",
|
|
100
|
-
default: false,
|
|
101
|
-
description: "Whether to track the open rate of each email sent from this domain"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
displayName: "Region",
|
|
105
|
-
name: "region",
|
|
106
|
-
type: "options",
|
|
107
|
-
options: [
|
|
108
|
-
{
|
|
109
|
-
name: "US East 1",
|
|
110
|
-
value: "us-east-1"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
name: "EU West 1",
|
|
114
|
-
value: "eu-west-1"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: "South America East 1",
|
|
118
|
-
value: "sa-east-1"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
name: "Asia Pacific Northeast 1",
|
|
122
|
-
value: "ap-northeast-1"
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
default: "us-east-1",
|
|
126
|
-
description: "The AWS region where emails will be sent from. Choose a region closest to your recipients for better deliverability."
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
displayName: "TLS",
|
|
130
|
-
name: "tls",
|
|
131
|
-
type: "options",
|
|
132
|
-
options: [{
|
|
133
|
-
name: "Opportunistic",
|
|
134
|
-
value: "opportunistic"
|
|
49
|
+
name: "Disabled",
|
|
50
|
+
value: "disabled"
|
|
51
|
+
}],
|
|
52
|
+
default: "enabled",
|
|
53
|
+
description: "Whether this domain can be used to send emails"
|
|
135
54
|
}, {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
55
|
+
displayName: "Receiving",
|
|
56
|
+
name: "receiving",
|
|
57
|
+
type: "options",
|
|
58
|
+
options: [{
|
|
59
|
+
name: "Enabled",
|
|
60
|
+
value: "enabled"
|
|
61
|
+
}, {
|
|
62
|
+
name: "Disabled",
|
|
63
|
+
value: "disabled"
|
|
64
|
+
}],
|
|
65
|
+
default: "disabled",
|
|
66
|
+
description: "Whether this domain can receive inbound emails"
|
|
67
|
+
}]
|
|
68
|
+
}]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
displayName: "Click Tracking",
|
|
72
|
+
name: "clickTracking",
|
|
73
|
+
type: "boolean",
|
|
74
|
+
default: false,
|
|
75
|
+
description: "Whether to track clicks within the body of each HTML email sent from this domain"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
displayName: "Custom Return Path",
|
|
79
|
+
name: "customReturnPath",
|
|
80
|
+
type: "string",
|
|
81
|
+
default: "send",
|
|
82
|
+
description: "Custom subdomain for email bounce handling (Return-Path address). Defaults to \"send\". This subdomain needs to be configured in your DNS."
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
displayName: "Open Tracking",
|
|
86
|
+
name: "openTracking",
|
|
87
|
+
type: "boolean",
|
|
88
|
+
default: false,
|
|
89
|
+
description: "Whether to track the open rate of each email sent from this domain"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
displayName: "Region",
|
|
93
|
+
name: "region",
|
|
94
|
+
type: "options",
|
|
95
|
+
options: [
|
|
96
|
+
{
|
|
97
|
+
name: "US East 1",
|
|
98
|
+
value: "us-east-1"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "EU West 1",
|
|
102
|
+
value: "eu-west-1"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "South America East 1",
|
|
106
|
+
value: "sa-east-1"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "Asia Pacific Northeast 1",
|
|
110
|
+
value: "ap-northeast-1"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
default: "us-east-1",
|
|
114
|
+
description: "The AWS region where emails will be sent from. Choose a region closest to your recipients for better deliverability."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
displayName: "TLS",
|
|
118
|
+
name: "tls",
|
|
119
|
+
type: "options",
|
|
120
|
+
options: [{
|
|
121
|
+
name: "Opportunistic",
|
|
122
|
+
value: "opportunistic"
|
|
123
|
+
}, {
|
|
124
|
+
name: "Enforced",
|
|
125
|
+
value: "enforced"
|
|
126
|
+
}],
|
|
127
|
+
default: "opportunistic",
|
|
128
|
+
description: "TLS setting for email delivery. Opportunistic attempts secure connection but falls back to unencrypted. Enforced requires TLS."
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}];
|
|
145
132
|
async function execute(index) {
|
|
146
133
|
var _additionalOptions$ca;
|
|
147
134
|
const name = this.getNodeParameter("domainName", index);
|
|
@@ -7,43 +7,30 @@ var createTrackingDomain_operation_exports = /* @__PURE__ */ require_runtime.__e
|
|
|
7
7
|
description: () => description,
|
|
8
8
|
execute: () => execute
|
|
9
9
|
});
|
|
10
|
-
const description = [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
displayName: "Subdomain",
|
|
35
|
-
name: "trackingSubdomain",
|
|
36
|
-
type: "string",
|
|
37
|
-
required: true,
|
|
38
|
-
default: "links",
|
|
39
|
-
placeholder: "links",
|
|
40
|
-
displayOptions: { show: {
|
|
41
|
-
resource: ["domains"],
|
|
42
|
-
operation: ["createTrackingDomain"]
|
|
43
|
-
} },
|
|
44
|
-
description: "The subdomain to use for click tracking (e.g., \"links\" results in links.example.com)"
|
|
45
|
-
}
|
|
46
|
-
];
|
|
10
|
+
const description = [require_nodes_Resend_utils_dynamicFields.createDynamicIdField({
|
|
11
|
+
fieldName: "domainId",
|
|
12
|
+
resourceName: "domain",
|
|
13
|
+
displayName: "Domain",
|
|
14
|
+
required: true,
|
|
15
|
+
placeholder: "d91cd9bd-1176-453e-8fc1-35364d380206",
|
|
16
|
+
description: "The domain to create a tracking subdomain for. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
|
|
17
|
+
displayOptions: { show: {
|
|
18
|
+
resource: ["domains"],
|
|
19
|
+
operation: ["createTrackingDomain"]
|
|
20
|
+
} }
|
|
21
|
+
}), {
|
|
22
|
+
displayName: "Subdomain",
|
|
23
|
+
name: "trackingSubdomain",
|
|
24
|
+
type: "string",
|
|
25
|
+
required: true,
|
|
26
|
+
default: "links",
|
|
27
|
+
placeholder: "links",
|
|
28
|
+
displayOptions: { show: {
|
|
29
|
+
resource: ["domains"],
|
|
30
|
+
operation: ["createTrackingDomain"]
|
|
31
|
+
} },
|
|
32
|
+
description: "The subdomain to use for click tracking (e.g., \"links\" results in links.example.com)"
|
|
33
|
+
}];
|
|
47
34
|
async function execute(index) {
|
|
48
35
|
const domainId = require_nodes_Resend_utils_dynamicFields.resolveDynamicIdValue(this, "domainId", index);
|
|
49
36
|
const body = { subdomain: this.getNodeParameter("trackingSubdomain", index) };
|
|
@@ -7,43 +7,30 @@ var deleteTrackingDomain_operation_exports = /* @__PURE__ */ require_runtime.__e
|
|
|
7
7
|
description: () => description,
|
|
8
8
|
execute: () => execute
|
|
9
9
|
});
|
|
10
|
-
const description = [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
displayName: "Tracking Domain ID",
|
|
35
|
-
name: "trackingDomainId",
|
|
36
|
-
type: "string",
|
|
37
|
-
required: true,
|
|
38
|
-
default: "",
|
|
39
|
-
placeholder: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
40
|
-
displayOptions: { show: {
|
|
41
|
-
resource: ["domains"],
|
|
42
|
-
operation: ["deleteTrackingDomain"]
|
|
43
|
-
} },
|
|
44
|
-
description: "The unique identifier of the tracking domain to delete"
|
|
45
|
-
}
|
|
46
|
-
];
|
|
10
|
+
const description = [require_nodes_Resend_utils_dynamicFields.createDynamicIdField({
|
|
11
|
+
fieldName: "domainId",
|
|
12
|
+
resourceName: "domain",
|
|
13
|
+
displayName: "Domain",
|
|
14
|
+
required: true,
|
|
15
|
+
placeholder: "d91cd9bd-1176-453e-8fc1-35364d380206",
|
|
16
|
+
description: "The parent domain. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
|
|
17
|
+
displayOptions: { show: {
|
|
18
|
+
resource: ["domains"],
|
|
19
|
+
operation: ["deleteTrackingDomain"]
|
|
20
|
+
} }
|
|
21
|
+
}), {
|
|
22
|
+
displayName: "Tracking Domain ID",
|
|
23
|
+
name: "trackingDomainId",
|
|
24
|
+
type: "string",
|
|
25
|
+
required: true,
|
|
26
|
+
default: "",
|
|
27
|
+
placeholder: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
28
|
+
displayOptions: { show: {
|
|
29
|
+
resource: ["domains"],
|
|
30
|
+
operation: ["deleteTrackingDomain"]
|
|
31
|
+
} },
|
|
32
|
+
description: "The unique identifier of the tracking domain to delete"
|
|
33
|
+
}];
|
|
47
34
|
async function execute(index) {
|
|
48
35
|
const domainId = require_nodes_Resend_utils_dynamicFields.resolveDynamicIdValue(this, "domainId", index);
|
|
49
36
|
const trackingDomainId = this.getNodeParameter("trackingDomainId", index);
|