n8n-nodes-resend 2.5.3 → 2.6.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 +13 -2
- package/dist/credentials/ResendApi.credentials.d.ts +4 -2
- package/dist/credentials/ResendApi.credentials.js +4 -1
- package/dist/credentials/ResendOAuth2Api.credentials.d.ts +15 -0
- package/dist/credentials/ResendOAuth2Api.credentials.js +27 -0
- package/dist/credentials/ResendWebhookSigningSecretApi.credentials.d.ts +1 -2
- package/dist/credentials/resend-icon-black.svg +3 -0
- package/dist/credentials/resend-icon-white.svg +3 -0
- package/dist/nodes/Resend/Resend.node.d.ts +13 -15
- package/dist/nodes/Resend/Resend.node.js +28 -1
- package/dist/nodes/Resend/ResendTrigger.node.d.ts +0 -1
- package/dist/nodes/Resend/actions/account/disconnect.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/account/disconnect.operation.js +49 -0
- package/dist/nodes/Resend/actions/account/execute.d.ts +4 -0
- package/dist/nodes/Resend/actions/account/execute.js +7 -0
- package/dist/nodes/Resend/actions/account/index.d.ts +8 -0
- package/dist/nodes/Resend/actions/account/index.js +42 -0
- package/dist/nodes/Resend/actions/broadcast/create.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/broadcast/delete.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/broadcast/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/broadcast/get.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/broadcast/index.d.ts +0 -1
- package/dist/nodes/Resend/actions/broadcast/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/broadcast/send.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/broadcast/update.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contact/addToSegment.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contact/create.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contact/delete.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contact/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/contact/get.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contact/getTopics.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contact/index.d.ts +0 -1
- package/dist/nodes/Resend/actions/contact/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contact/listSegments.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contact/removeFromSegment.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contact/update.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contact/updateTopics.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contactProperty/create.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contactProperty/delete.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contactProperty/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/contactProperty/get.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contactProperty/index.d.ts +0 -1
- package/dist/nodes/Resend/actions/contactProperty/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/contactProperty/update.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/domain/claim.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/domain/claim.operation.js +124 -0
- package/dist/nodes/Resend/actions/domain/create.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/domain/createTrackingDomain.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/domain/delete.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/domain/deleteTrackingDomain.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/domain/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/domain/execute.js +6 -0
- package/dist/nodes/Resend/actions/domain/get.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/domain/getClaim.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/domain/getClaim.operation.js +37 -0
- package/dist/nodes/Resend/actions/domain/getTrackingDomain.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/domain/index.d.ts +4 -2
- package/dist/nodes/Resend/actions/domain/index.js +45 -0
- package/dist/nodes/Resend/actions/domain/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/domain/listTrackingDomains.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/domain/update.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/domain/verify.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/domain/verifyClaim.operation.d.ts +8 -0
- package/dist/nodes/Resend/actions/domain/verifyClaim.operation.js +46 -0
- package/dist/nodes/Resend/actions/domain/verifyTrackingDomain.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/email/cancel.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/email/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/email/getAttachment.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/email/index.d.ts +0 -1
- package/dist/nodes/Resend/actions/email/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/email/listAttachments.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/email/retrieve.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/email/send.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/email/sendAndWait.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/email/sendBatch.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/email/update.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/event/create.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/event/delete.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/event/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/event/get.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/event/index.d.ts +0 -1
- package/dist/nodes/Resend/actions/event/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/event/send.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/event/update.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/log/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/log/index.d.ts +0 -1
- package/dist/nodes/Resend/actions/log/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/log/retrieve.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/receivingEmail/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/receivingEmail/get.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/receivingEmail/getAttachment.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/receivingEmail/index.d.ts +0 -1
- package/dist/nodes/Resend/actions/receivingEmail/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/receivingEmail/listAttachments.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/router.d.ts +0 -1
- package/dist/nodes/Resend/actions/router.js +2 -0
- package/dist/nodes/Resend/actions/segment/create.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/segment/delete.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/segment/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/segment/get.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/segment/index.d.ts +0 -1
- package/dist/nodes/Resend/actions/segment/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/segment/listContacts.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/template/create.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/template/delete.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/template/duplicate.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/template/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/template/get.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/template/index.d.ts +0 -1
- package/dist/nodes/Resend/actions/template/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/template/publish.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/template/update.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/topic/create.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/topic/delete.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/topic/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/topic/get.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/topic/index.d.ts +0 -1
- package/dist/nodes/Resend/actions/topic/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/topic/update.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/webhook/create.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/webhook/delete.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/webhook/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/webhook/get.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/webhook/index.d.ts +0 -1
- package/dist/nodes/Resend/actions/webhook/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/webhook/update.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/workflow/create.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/workflow/delete.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/workflow/execute.d.ts +1 -3
- package/dist/nodes/Resend/actions/workflow/get.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/workflow/getRun.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/workflow/getRunStep.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/workflow/index.d.ts +0 -1
- package/dist/nodes/Resend/actions/workflow/list.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/workflow/listRunSteps.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/workflow/listRuns.operation.d.ts +0 -2
- package/dist/nodes/Resend/actions/workflow/update.operation.d.ts +0 -2
- package/dist/nodes/Resend/methods/index.d.ts +0 -1
- package/dist/nodes/Resend/transport/index.d.ts +0 -1
- package/dist/nodes/Resend/transport/index.js +5 -2
- package/dist/nodes/Resend/utils/dynamicFields.d.ts +20 -21
- package/dist/nodes/Resend/utils/sendAndWait/descriptions.d.ts +0 -1
- package/dist/nodes/Resend/utils/sendAndWait/interfaces.d.ts +0 -1
- package/dist/nodes/Resend/utils/sendAndWait/utils.d.ts +2 -3
- package/package.json +8 -7
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
|
|
2
|
+
declare namespace claim_operation_d_exports {
|
|
3
|
+
export { description, execute };
|
|
4
|
+
}
|
|
5
|
+
declare const description: INodeProperties[];
|
|
6
|
+
declare function execute(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { claim_operation_d_exports, description, execute };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
+
const require_nodes_Resend_transport_index = require("../../transport/index.js");
|
|
4
|
+
//#region nodes/Resend/actions/domain/claim.operation.ts
|
|
5
|
+
var claim_operation_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
6
|
+
description: () => description,
|
|
7
|
+
execute: () => execute
|
|
8
|
+
});
|
|
9
|
+
const description = [
|
|
10
|
+
{
|
|
11
|
+
displayName: "Use this operation when creating a domain fails because the domain is already verified by another team. Resend creates a placeholder domain and returns a TXT record to add to your DNS.",
|
|
12
|
+
name: "claimDomainNotice",
|
|
13
|
+
type: "notice",
|
|
14
|
+
default: "",
|
|
15
|
+
displayOptions: { show: {
|
|
16
|
+
resource: ["domains"],
|
|
17
|
+
operation: ["claim"]
|
|
18
|
+
} }
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: "Domain Name",
|
|
22
|
+
name: "domainName",
|
|
23
|
+
type: "string",
|
|
24
|
+
required: true,
|
|
25
|
+
default: "",
|
|
26
|
+
placeholder: "example.com",
|
|
27
|
+
displayOptions: { show: {
|
|
28
|
+
resource: ["domains"],
|
|
29
|
+
operation: ["claim"]
|
|
30
|
+
} },
|
|
31
|
+
description: "The name of the domain you want to claim"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: "Additional Options",
|
|
35
|
+
name: "additionalOptions",
|
|
36
|
+
type: "collection",
|
|
37
|
+
placeholder: "Add Option",
|
|
38
|
+
default: {},
|
|
39
|
+
displayOptions: { show: {
|
|
40
|
+
resource: ["domains"],
|
|
41
|
+
operation: ["claim"]
|
|
42
|
+
} },
|
|
43
|
+
options: [
|
|
44
|
+
{
|
|
45
|
+
displayName: "Click Tracking",
|
|
46
|
+
name: "click_tracking",
|
|
47
|
+
type: "boolean",
|
|
48
|
+
default: false,
|
|
49
|
+
description: "Whether to track clicks within the body of each HTML email. Only applied if a tracking_subdomain is configured and verified."
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: "Custom Return Path",
|
|
53
|
+
name: "custom_return_path",
|
|
54
|
+
type: "string",
|
|
55
|
+
default: "send",
|
|
56
|
+
placeholder: "send",
|
|
57
|
+
description: "Choose a subdomain for the Return-Path address. Defaults to \"send\" (i.e., send.yourdomain.tld)."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: "Open Tracking",
|
|
61
|
+
name: "open_tracking",
|
|
62
|
+
type: "boolean",
|
|
63
|
+
default: false,
|
|
64
|
+
description: "Whether to track the open rate of each email. Only applied if a tracking_subdomain is configured and verified."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
displayName: "Region",
|
|
68
|
+
name: "region",
|
|
69
|
+
type: "options",
|
|
70
|
+
options: [
|
|
71
|
+
{
|
|
72
|
+
name: "US East (N. Virginia)",
|
|
73
|
+
value: "us-east-1"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "EU West (Ireland)",
|
|
77
|
+
value: "eu-west-1"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "South America (São Paulo)",
|
|
81
|
+
value: "sa-east-1"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "Asia Pacific (Tokyo)",
|
|
85
|
+
value: "ap-northeast-1"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
default: "us-east-1",
|
|
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
|
+
];
|
|
102
|
+
async function execute(index) {
|
|
103
|
+
const domainName = this.getNodeParameter("domainName", index);
|
|
104
|
+
const additionalOptions = this.getNodeParameter("additionalOptions", index);
|
|
105
|
+
const body = { name: domainName };
|
|
106
|
+
if (additionalOptions.region) body.region = additionalOptions.region;
|
|
107
|
+
if (additionalOptions.custom_return_path) body.custom_return_path = additionalOptions.custom_return_path;
|
|
108
|
+
if (additionalOptions.open_tracking !== void 0) body.open_tracking = additionalOptions.open_tracking;
|
|
109
|
+
if (additionalOptions.click_tracking !== void 0) body.click_tracking = additionalOptions.click_tracking;
|
|
110
|
+
if (additionalOptions.tracking_subdomain) body.tracking_subdomain = additionalOptions.tracking_subdomain;
|
|
111
|
+
return [{
|
|
112
|
+
json: await require_nodes_Resend_transport_index.apiRequest.call(this, "POST", "/domains/claim", body),
|
|
113
|
+
pairedItem: { item: index }
|
|
114
|
+
}];
|
|
115
|
+
}
|
|
116
|
+
//#endregion
|
|
117
|
+
Object.defineProperty(exports, "claim_operation_exports", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function() {
|
|
120
|
+
return claim_operation_exports;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
exports.description = description;
|
|
124
|
+
exports.execute = execute;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import * as _$n8n_workflow0 from "n8n-workflow";
|
|
2
|
-
|
|
3
1
|
//#region nodes/Resend/actions/domain/execute.d.ts
|
|
4
|
-
declare const execute: (this:
|
|
2
|
+
declare const execute: (this: import("n8n-workflow").IExecuteFunctions, index: number, operation: string) => Promise<import("n8n-workflow").INodeExecutionData[]>;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { execute };
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_nodes_Resend_transport_index = require("../../transport/index.js");
|
|
3
|
+
const require_nodes_Resend_actions_domain_claim_operation = require("./claim.operation.js");
|
|
3
4
|
const require_nodes_Resend_actions_domain_create_operation = require("./create.operation.js");
|
|
4
5
|
const require_nodes_Resend_actions_domain_createTrackingDomain_operation = require("./createTrackingDomain.operation.js");
|
|
5
6
|
const require_nodes_Resend_actions_domain_delete_operation = require("./delete.operation.js");
|
|
6
7
|
const require_nodes_Resend_actions_domain_deleteTrackingDomain_operation = require("./deleteTrackingDomain.operation.js");
|
|
7
8
|
const require_nodes_Resend_actions_domain_get_operation = require("./get.operation.js");
|
|
9
|
+
const require_nodes_Resend_actions_domain_getClaim_operation = require("./getClaim.operation.js");
|
|
8
10
|
const require_nodes_Resend_actions_domain_getTrackingDomain_operation = require("./getTrackingDomain.operation.js");
|
|
9
11
|
const require_nodes_Resend_actions_domain_list_operation = require("./list.operation.js");
|
|
10
12
|
const require_nodes_Resend_actions_domain_listTrackingDomains_operation = require("./listTrackingDomains.operation.js");
|
|
11
13
|
const require_nodes_Resend_actions_domain_update_operation = require("./update.operation.js");
|
|
12
14
|
const require_nodes_Resend_actions_domain_verify_operation = require("./verify.operation.js");
|
|
15
|
+
const require_nodes_Resend_actions_domain_verifyClaim_operation = require("./verifyClaim.operation.js");
|
|
13
16
|
const require_nodes_Resend_actions_domain_verifyTrackingDomain_operation = require("./verifyTrackingDomain.operation.js");
|
|
14
17
|
//#region nodes/Resend/actions/domain/execute.ts
|
|
15
18
|
const execute = require_nodes_Resend_transport_index.createOperationRouter({
|
|
19
|
+
claim: require_nodes_Resend_actions_domain_claim_operation.claim_operation_exports,
|
|
16
20
|
create: require_nodes_Resend_actions_domain_create_operation.create_operation_exports,
|
|
17
21
|
get: require_nodes_Resend_actions_domain_get_operation.get_operation_exports,
|
|
22
|
+
getClaim: require_nodes_Resend_actions_domain_getClaim_operation.getClaim_operation_exports,
|
|
18
23
|
update: require_nodes_Resend_actions_domain_update_operation.update_operation_exports,
|
|
19
24
|
delete: require_nodes_Resend_actions_domain_delete_operation.delete_operation_exports,
|
|
20
25
|
verify: require_nodes_Resend_actions_domain_verify_operation.verify_operation_exports,
|
|
26
|
+
verifyClaim: require_nodes_Resend_actions_domain_verifyClaim_operation.verifyClaim_operation_exports,
|
|
21
27
|
createTrackingDomain: require_nodes_Resend_actions_domain_createTrackingDomain_operation.createTrackingDomain_operation_exports,
|
|
22
28
|
getTrackingDomain: require_nodes_Resend_actions_domain_getTrackingDomain_operation.getTrackingDomain_operation_exports,
|
|
23
29
|
listTrackingDomains: require_nodes_Resend_actions_domain_listTrackingDomains_operation.listTrackingDomains_operation_exports,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
|
|
2
|
+
declare namespace getClaim_operation_d_exports {
|
|
3
|
+
export { description, execute };
|
|
4
|
+
}
|
|
5
|
+
declare const description: INodeProperties[];
|
|
6
|
+
declare function execute(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { description, execute, getClaim_operation_d_exports };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
+
const require_nodes_Resend_transport_index = require("../../transport/index.js");
|
|
4
|
+
const require_nodes_Resend_utils_dynamicFields = require("../../utils/dynamicFields.js");
|
|
5
|
+
//#region nodes/Resend/actions/domain/getClaim.operation.ts
|
|
6
|
+
var getClaim_operation_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
7
|
+
description: () => description,
|
|
8
|
+
execute: () => execute
|
|
9
|
+
});
|
|
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 placeholder Domain ID returned when the claim was created. 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: ["getClaim"]
|
|
20
|
+
} }
|
|
21
|
+
})];
|
|
22
|
+
async function execute(index) {
|
|
23
|
+
const domainId = require_nodes_Resend_utils_dynamicFields.resolveDynamicIdValue(this, "domainId", index);
|
|
24
|
+
return [{
|
|
25
|
+
json: await require_nodes_Resend_transport_index.apiRequest.call(this, "GET", `/domains/${encodeURIComponent(domainId)}/claim`),
|
|
26
|
+
pairedItem: { item: index }
|
|
27
|
+
}];
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.description = description;
|
|
31
|
+
exports.execute = execute;
|
|
32
|
+
Object.defineProperty(exports, "getClaim_operation_exports", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function() {
|
|
35
|
+
return getClaim_operation_exports;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
+
import { claim_operation_d_exports } from "./claim.operation.js";
|
|
1
2
|
import { create_operation_d_exports } from "./create.operation.js";
|
|
2
3
|
import { createTrackingDomain_operation_d_exports } from "./createTrackingDomain.operation.js";
|
|
3
4
|
import { delete_operation_d_exports } from "./delete.operation.js";
|
|
4
5
|
import { deleteTrackingDomain_operation_d_exports } from "./deleteTrackingDomain.operation.js";
|
|
5
6
|
import { execute } from "./execute.js";
|
|
6
7
|
import { get_operation_d_exports } from "./get.operation.js";
|
|
8
|
+
import { getClaim_operation_d_exports } from "./getClaim.operation.js";
|
|
7
9
|
import { getTrackingDomain_operation_d_exports } from "./getTrackingDomain.operation.js";
|
|
8
10
|
import { list_operation_d_exports } from "./list.operation.js";
|
|
9
11
|
import { listTrackingDomains_operation_d_exports } from "./listTrackingDomains.operation.js";
|
|
10
12
|
import { update_operation_d_exports } from "./update.operation.js";
|
|
11
13
|
import { verify_operation_d_exports } from "./verify.operation.js";
|
|
14
|
+
import { verifyClaim_operation_d_exports } from "./verifyClaim.operation.js";
|
|
12
15
|
import { verifyTrackingDomain_operation_d_exports } from "./verifyTrackingDomain.operation.js";
|
|
13
16
|
import { INodeProperties } from "n8n-workflow";
|
|
14
|
-
|
|
15
17
|
//#region nodes/Resend/actions/domain/index.d.ts
|
|
16
18
|
declare const operations: INodeProperties[];
|
|
17
19
|
declare const descriptions: INodeProperties[];
|
|
18
20
|
//#endregion
|
|
19
|
-
export { create_operation_d_exports as create, createTrackingDomain_operation_d_exports as createTrackingDomain, delete_operation_d_exports as delete, deleteTrackingDomain_operation_d_exports as deleteTrackingDomain, descriptions, execute, get_operation_d_exports as get, getTrackingDomain_operation_d_exports as getTrackingDomain, list_operation_d_exports as list, listTrackingDomains_operation_d_exports as listTrackingDomains, operations, update_operation_d_exports as update, verify_operation_d_exports as verify, verifyTrackingDomain_operation_d_exports as verifyTrackingDomain };
|
|
21
|
+
export { claim_operation_d_exports as claim, create_operation_d_exports as create, createTrackingDomain_operation_d_exports as createTrackingDomain, delete_operation_d_exports as delete, deleteTrackingDomain_operation_d_exports as deleteTrackingDomain, descriptions, execute, get_operation_d_exports as get, getClaim_operation_d_exports as getClaim, getTrackingDomain_operation_d_exports as getTrackingDomain, list_operation_d_exports as list, listTrackingDomains_operation_d_exports as listTrackingDomains, operations, update_operation_d_exports as update, verify_operation_d_exports as verify, verifyClaim_operation_d_exports as verifyClaim, verifyTrackingDomain_operation_d_exports as verifyTrackingDomain };
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
+
const require_nodes_Resend_actions_domain_claim_operation = require("./claim.operation.js");
|
|
3
4
|
const require_nodes_Resend_actions_domain_create_operation = require("./create.operation.js");
|
|
4
5
|
const require_nodes_Resend_actions_domain_createTrackingDomain_operation = require("./createTrackingDomain.operation.js");
|
|
5
6
|
const require_nodes_Resend_actions_domain_delete_operation = require("./delete.operation.js");
|
|
6
7
|
const require_nodes_Resend_actions_domain_deleteTrackingDomain_operation = require("./deleteTrackingDomain.operation.js");
|
|
7
8
|
const require_nodes_Resend_actions_domain_get_operation = require("./get.operation.js");
|
|
9
|
+
const require_nodes_Resend_actions_domain_getClaim_operation = require("./getClaim.operation.js");
|
|
8
10
|
const require_nodes_Resend_actions_domain_getTrackingDomain_operation = require("./getTrackingDomain.operation.js");
|
|
9
11
|
const require_nodes_Resend_actions_domain_list_operation = require("./list.operation.js");
|
|
10
12
|
const require_nodes_Resend_actions_domain_listTrackingDomains_operation = require("./listTrackingDomains.operation.js");
|
|
11
13
|
const require_nodes_Resend_actions_domain_update_operation = require("./update.operation.js");
|
|
12
14
|
const require_nodes_Resend_actions_domain_verify_operation = require("./verify.operation.js");
|
|
15
|
+
const require_nodes_Resend_actions_domain_verifyClaim_operation = require("./verifyClaim.operation.js");
|
|
13
16
|
const require_nodes_Resend_actions_domain_verifyTrackingDomain_operation = require("./verifyTrackingDomain.operation.js");
|
|
14
17
|
const require_nodes_Resend_actions_domain_execute = require("./execute.js");
|
|
15
18
|
//#region nodes/Resend/actions/domain/index.ts
|
|
16
19
|
var domain_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
20
|
+
claim: () => require_nodes_Resend_actions_domain_claim_operation.claim_operation_exports,
|
|
17
21
|
create: () => require_nodes_Resend_actions_domain_create_operation.create_operation_exports,
|
|
18
22
|
createTrackingDomain: () => require_nodes_Resend_actions_domain_createTrackingDomain_operation.createTrackingDomain_operation_exports,
|
|
19
23
|
delete: () => require_nodes_Resend_actions_domain_delete_operation.delete_operation_exports,
|
|
@@ -21,12 +25,14 @@ var domain_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
|
21
25
|
descriptions: () => descriptions,
|
|
22
26
|
execute: () => require_nodes_Resend_actions_domain_execute.execute,
|
|
23
27
|
get: () => require_nodes_Resend_actions_domain_get_operation.get_operation_exports,
|
|
28
|
+
getClaim: () => require_nodes_Resend_actions_domain_getClaim_operation.getClaim_operation_exports,
|
|
24
29
|
getTrackingDomain: () => require_nodes_Resend_actions_domain_getTrackingDomain_operation.getTrackingDomain_operation_exports,
|
|
25
30
|
list: () => require_nodes_Resend_actions_domain_list_operation.list_operation_exports,
|
|
26
31
|
listTrackingDomains: () => require_nodes_Resend_actions_domain_listTrackingDomains_operation.listTrackingDomains_operation_exports,
|
|
27
32
|
operations: () => operations,
|
|
28
33
|
update: () => require_nodes_Resend_actions_domain_update_operation.update_operation_exports,
|
|
29
34
|
verify: () => require_nodes_Resend_actions_domain_verify_operation.verify_operation_exports,
|
|
35
|
+
verifyClaim: () => require_nodes_Resend_actions_domain_verifyClaim_operation.verifyClaim_operation_exports,
|
|
30
36
|
verifyTrackingDomain: () => require_nodes_Resend_actions_domain_verifyTrackingDomain_operation.verifyTrackingDomain_operation_exports
|
|
31
37
|
});
|
|
32
38
|
const operations = [{
|
|
@@ -36,6 +42,12 @@ const operations = [{
|
|
|
36
42
|
noDataExpression: true,
|
|
37
43
|
displayOptions: { show: { resource: ["domains"] } },
|
|
38
44
|
options: [
|
|
45
|
+
{
|
|
46
|
+
name: "Claim",
|
|
47
|
+
value: "claim",
|
|
48
|
+
description: "Claim a domain already verified by another team. Returns a TXT record to add to your DNS for ownership verification.",
|
|
49
|
+
action: "Claim a domain from another team"
|
|
50
|
+
},
|
|
39
51
|
{
|
|
40
52
|
name: "Create",
|
|
41
53
|
value: "create",
|
|
@@ -66,6 +78,12 @@ const operations = [{
|
|
|
66
78
|
description: "Retrieve details of a domain including DNS records, verification status, and configuration",
|
|
67
79
|
action: "Get domain details"
|
|
68
80
|
},
|
|
81
|
+
{
|
|
82
|
+
name: "Get Claim",
|
|
83
|
+
value: "getClaim",
|
|
84
|
+
description: "Retrieve the latest claim status for a domain. Poll this endpoint to follow a claim status after starting a claim.",
|
|
85
|
+
action: "Get domain claim status"
|
|
86
|
+
},
|
|
69
87
|
{
|
|
70
88
|
name: "Get Tracking Domain",
|
|
71
89
|
value: "getTrackingDomain",
|
|
@@ -96,6 +114,12 @@ const operations = [{
|
|
|
96
114
|
description: "Trigger verification of DNS records for a domain. Use after configuring DNS to check if domain is ready for sending.",
|
|
97
115
|
action: "Verify domain DNS records"
|
|
98
116
|
},
|
|
117
|
+
{
|
|
118
|
+
name: "Verify Claim",
|
|
119
|
+
value: "verifyClaim",
|
|
120
|
+
description: "Trigger DNS verification for a domain claim. Add the TXT record from the Claim operation before calling this.",
|
|
121
|
+
action: "Verify domain claim ownership"
|
|
122
|
+
},
|
|
99
123
|
{
|
|
100
124
|
name: "Verify Tracking Domain",
|
|
101
125
|
value: "verifyTrackingDomain",
|
|
@@ -107,12 +131,15 @@ const operations = [{
|
|
|
107
131
|
}];
|
|
108
132
|
const descriptions = [
|
|
109
133
|
...operations,
|
|
134
|
+
...require_nodes_Resend_actions_domain_claim_operation.description,
|
|
110
135
|
...require_nodes_Resend_actions_domain_create_operation.description,
|
|
111
136
|
...require_nodes_Resend_actions_domain_get_operation.description,
|
|
137
|
+
...require_nodes_Resend_actions_domain_getClaim_operation.description,
|
|
112
138
|
...require_nodes_Resend_actions_domain_list_operation.description,
|
|
113
139
|
...require_nodes_Resend_actions_domain_update_operation.description,
|
|
114
140
|
...require_nodes_Resend_actions_domain_delete_operation.description,
|
|
115
141
|
...require_nodes_Resend_actions_domain_verify_operation.description,
|
|
142
|
+
...require_nodes_Resend_actions_domain_verifyClaim_operation.description,
|
|
116
143
|
...require_nodes_Resend_actions_domain_createTrackingDomain_operation.description,
|
|
117
144
|
...require_nodes_Resend_actions_domain_getTrackingDomain_operation.description,
|
|
118
145
|
...require_nodes_Resend_actions_domain_listTrackingDomains_operation.description,
|
|
@@ -120,6 +147,12 @@ const descriptions = [
|
|
|
120
147
|
...require_nodes_Resend_actions_domain_verifyTrackingDomain_operation.description
|
|
121
148
|
];
|
|
122
149
|
//#endregion
|
|
150
|
+
Object.defineProperty(exports, "claim", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function() {
|
|
153
|
+
return require_nodes_Resend_actions_domain_claim_operation.claim_operation_exports;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
123
156
|
Object.defineProperty(exports, "create", {
|
|
124
157
|
enumerable: true,
|
|
125
158
|
get: function() {
|
|
@@ -158,6 +191,12 @@ Object.defineProperty(exports, "get", {
|
|
|
158
191
|
return require_nodes_Resend_actions_domain_get_operation.get_operation_exports;
|
|
159
192
|
}
|
|
160
193
|
});
|
|
194
|
+
Object.defineProperty(exports, "getClaim", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function() {
|
|
197
|
+
return require_nodes_Resend_actions_domain_getClaim_operation.getClaim_operation_exports;
|
|
198
|
+
}
|
|
199
|
+
});
|
|
161
200
|
Object.defineProperty(exports, "getTrackingDomain", {
|
|
162
201
|
enumerable: true,
|
|
163
202
|
get: function() {
|
|
@@ -189,6 +228,12 @@ Object.defineProperty(exports, "verify", {
|
|
|
189
228
|
return require_nodes_Resend_actions_domain_verify_operation.verify_operation_exports;
|
|
190
229
|
}
|
|
191
230
|
});
|
|
231
|
+
Object.defineProperty(exports, "verifyClaim", {
|
|
232
|
+
enumerable: true,
|
|
233
|
+
get: function() {
|
|
234
|
+
return require_nodes_Resend_actions_domain_verifyClaim_operation.verifyClaim_operation_exports;
|
|
235
|
+
}
|
|
236
|
+
});
|
|
192
237
|
Object.defineProperty(exports, "verifyTrackingDomain", {
|
|
193
238
|
enumerable: true,
|
|
194
239
|
get: function() {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
|
|
2
|
+
declare namespace verifyClaim_operation_d_exports {
|
|
3
|
+
export { description, execute };
|
|
4
|
+
}
|
|
5
|
+
declare const description: INodeProperties[];
|
|
6
|
+
declare function execute(this: IExecuteFunctions, index: number): Promise<INodeExecutionData[]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { description, execute, verifyClaim_operation_d_exports };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
+
const require_nodes_Resend_transport_index = require("../../transport/index.js");
|
|
4
|
+
const require_nodes_Resend_utils_dynamicFields = require("../../utils/dynamicFields.js");
|
|
5
|
+
//#region nodes/Resend/actions/domain/verifyClaim.operation.ts
|
|
6
|
+
var verifyClaim_operation_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
7
|
+
description: () => description,
|
|
8
|
+
execute: () => execute
|
|
9
|
+
});
|
|
10
|
+
const description = [{
|
|
11
|
+
displayName: "Add the TXT record returned by the Claim Domain operation before calling this. Resend checks the TXT record and runs ownership-safety checks before transferring the domain. Poll Get Domain Claim to follow the status.",
|
|
12
|
+
name: "verifyClaimNotice",
|
|
13
|
+
type: "notice",
|
|
14
|
+
default: "",
|
|
15
|
+
displayOptions: { show: {
|
|
16
|
+
resource: ["domains"],
|
|
17
|
+
operation: ["verifyClaim"]
|
|
18
|
+
} }
|
|
19
|
+
}, require_nodes_Resend_utils_dynamicFields.createDynamicIdField({
|
|
20
|
+
fieldName: "domainId",
|
|
21
|
+
resourceName: "domain",
|
|
22
|
+
displayName: "Domain",
|
|
23
|
+
required: true,
|
|
24
|
+
placeholder: "d91cd9bd-1176-453e-8fc1-35364d380206",
|
|
25
|
+
description: "The placeholder Domain ID returned when the claim was created. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
|
|
26
|
+
displayOptions: { show: {
|
|
27
|
+
resource: ["domains"],
|
|
28
|
+
operation: ["verifyClaim"]
|
|
29
|
+
} }
|
|
30
|
+
})];
|
|
31
|
+
async function execute(index) {
|
|
32
|
+
const domainId = require_nodes_Resend_utils_dynamicFields.resolveDynamicIdValue(this, "domainId", index);
|
|
33
|
+
return [{
|
|
34
|
+
json: await require_nodes_Resend_transport_index.apiRequest.call(this, "POST", `/domains/${encodeURIComponent(domainId)}/claim/verify`),
|
|
35
|
+
pairedItem: { item: index }
|
|
36
|
+
}];
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
exports.description = description;
|
|
40
|
+
exports.execute = execute;
|
|
41
|
+
Object.defineProperty(exports, "verifyClaim_operation_exports", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function() {
|
|
44
|
+
return verifyClaim_operation_exports;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import * as _$n8n_workflow0 from "n8n-workflow";
|
|
2
|
-
|
|
3
1
|
//#region nodes/Resend/actions/email/execute.d.ts
|
|
4
|
-
declare const execute: (this:
|
|
2
|
+
declare const execute: (this: import("n8n-workflow").IExecuteFunctions, index: number, operation: string) => Promise<import("n8n-workflow").INodeExecutionData[]>;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { execute };
|
|
@@ -9,7 +9,6 @@ import { sendAndWait_operation_d_exports } from "./sendAndWait.operation.js";
|
|
|
9
9
|
import { sendBatch_operation_d_exports } from "./sendBatch.operation.js";
|
|
10
10
|
import { update_operation_d_exports } from "./update.operation.js";
|
|
11
11
|
import { INodeProperties } from "n8n-workflow";
|
|
12
|
-
|
|
13
12
|
//#region nodes/Resend/actions/email/index.d.ts
|
|
14
13
|
declare const operations: INodeProperties[];
|
|
15
14
|
declare const descriptions: INodeProperties[];
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { IExecuteFunctions, INodeExecutionData, INodeProperties, SEND_AND_WAIT_OPERATION } from "n8n-workflow";
|
|
2
|
-
|
|
3
|
-
//#region nodes/Resend/actions/email/sendAndWait.operation.d.ts
|
|
4
2
|
declare namespace sendAndWait_operation_d_exports {
|
|
5
3
|
export { SEND_AND_WAIT_OPERATION, description, execute };
|
|
6
4
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import * as _$n8n_workflow0 from "n8n-workflow";
|
|
2
|
-
|
|
3
1
|
//#region nodes/Resend/actions/event/execute.d.ts
|
|
4
|
-
declare const execute: (this:
|
|
2
|
+
declare const execute: (this: import("n8n-workflow").IExecuteFunctions, index: number, operation: string) => Promise<import("n8n-workflow").INodeExecutionData[]>;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { execute };
|