n8n-nodes-resend 2.5.2 → 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 +36 -186
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/credentials/ResendApi.credentials.d.ts +15 -9
- package/dist/credentials/ResendApi.credentials.js +31 -37
- package/dist/credentials/ResendOAuth2Api.credentials.d.ts +15 -0
- package/dist/credentials/ResendOAuth2Api.credentials.js +27 -0
- package/dist/credentials/ResendWebhookSigningSecretApi.credentials.d.ts +10 -7
- package/dist/credentials/ResendWebhookSigningSecretApi.credentials.js +20 -23
- 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 +60 -57
- package/dist/nodes/Resend/Resend.node.js +196 -205
- package/dist/nodes/Resend/Resend.node.json +12 -12
- package/dist/nodes/Resend/ResendTrigger.node.d.ts +7 -4
- package/dist/nodes/Resend/ResendTrigger.node.js +180 -174
- 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 +8 -3
- package/dist/nodes/Resend/actions/broadcast/create.operation.js +146 -159
- package/dist/nodes/Resend/actions/broadcast/delete.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/broadcast/delete.operation.js +35 -26
- package/dist/nodes/Resend/actions/broadcast/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/broadcast/execute.js +18 -51
- package/dist/nodes/Resend/actions/broadcast/get.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/broadcast/get.operation.js +35 -26
- package/dist/nodes/Resend/actions/broadcast/index.d.ts +13 -11
- package/dist/nodes/Resend/actions/broadcast/index.js +120 -110
- package/dist/nodes/Resend/actions/broadcast/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/broadcast/list.operation.js +20 -9
- package/dist/nodes/Resend/actions/broadcast/send.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/broadcast/send.operation.js +56 -54
- package/dist/nodes/Resend/actions/broadcast/update.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/broadcast/update.operation.js +123 -133
- package/dist/nodes/Resend/actions/contact/addToSegment.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contact/addToSegment.operation.js +47 -41
- package/dist/nodes/Resend/actions/contact/create.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contact/create.operation.js +167 -192
- package/dist/nodes/Resend/actions/contact/delete.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contact/delete.operation.js +35 -26
- package/dist/nodes/Resend/actions/contact/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/contact/execute.js +26 -59
- package/dist/nodes/Resend/actions/contact/get.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contact/get.operation.js +35 -26
- package/dist/nodes/Resend/actions/contact/getTopics.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contact/getTopics.operation.js +67 -67
- package/dist/nodes/Resend/actions/contact/index.d.ts +17 -15
- package/dist/nodes/Resend/actions/contact/index.js +180 -146
- package/dist/nodes/Resend/actions/contact/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contact/list.operation.js +60 -59
- package/dist/nodes/Resend/actions/contact/listSegments.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contact/listSegments.operation.js +67 -67
- package/dist/nodes/Resend/actions/contact/removeFromSegment.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contact/removeFromSegment.operation.js +47 -41
- package/dist/nodes/Resend/actions/contact/update.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contact/update.operation.js +140 -151
- package/dist/nodes/Resend/actions/contact/updateTopics.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contact/updateTopics.operation.js +80 -89
- package/dist/nodes/Resend/actions/contactProperty/create.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contactProperty/create.operation.js +74 -63
- package/dist/nodes/Resend/actions/contactProperty/delete.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contactProperty/delete.operation.js +35 -26
- package/dist/nodes/Resend/actions/contactProperty/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/contactProperty/execute.js +16 -49
- package/dist/nodes/Resend/actions/contactProperty/get.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contactProperty/get.operation.js +35 -26
- package/dist/nodes/Resend/actions/contactProperty/index.d.ts +12 -10
- package/dist/nodes/Resend/actions/contactProperty/index.js +105 -101
- package/dist/nodes/Resend/actions/contactProperty/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contactProperty/list.operation.js +20 -9
- package/dist/nodes/Resend/actions/contactProperty/update.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/contactProperty/update.operation.js +56 -53
- 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 +8 -3
- package/dist/nodes/Resend/actions/domain/create.operation.js +173 -159
- package/dist/nodes/Resend/actions/domain/createTrackingDomain.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/domain/createTrackingDomain.operation.js +60 -54
- package/dist/nodes/Resend/actions/domain/delete.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/domain/delete.operation.js +35 -26
- package/dist/nodes/Resend/actions/domain/deleteTrackingDomain.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/domain/deleteTrackingDomain.operation.js +60 -53
- package/dist/nodes/Resend/actions/domain/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/domain/execute.js +34 -61
- package/dist/nodes/Resend/actions/domain/get.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/domain/get.operation.js +35 -26
- 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 +8 -3
- package/dist/nodes/Resend/actions/domain/getTrackingDomain.operation.js +60 -53
- package/dist/nodes/Resend/actions/domain/index.d.ts +21 -16
- package/dist/nodes/Resend/actions/domain/index.js +241 -156
- package/dist/nodes/Resend/actions/domain/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/domain/list.operation.js +20 -9
- package/dist/nodes/Resend/actions/domain/listTrackingDomains.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/domain/listTrackingDomains.operation.js +50 -46
- package/dist/nodes/Resend/actions/domain/update.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/domain/update.operation.js +80 -77
- package/dist/nodes/Resend/actions/domain/verify.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/domain/verify.operation.js +35 -26
- 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 +8 -3
- package/dist/nodes/Resend/actions/domain/verifyTrackingDomain.operation.js +60 -53
- package/dist/nodes/Resend/actions/email/cancel.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/email/cancel.operation.js +35 -26
- package/dist/nodes/Resend/actions/email/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/email/execute.js +25 -58
- package/dist/nodes/Resend/actions/email/getAttachment.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/email/getAttachment.operation.js +48 -42
- package/dist/nodes/Resend/actions/email/index.d.ts +16 -14
- package/dist/nodes/Resend/actions/email/index.js +166 -138
- package/dist/nodes/Resend/actions/email/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/email/list.operation.js +42 -40
- package/dist/nodes/Resend/actions/email/listAttachments.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/email/listAttachments.operation.js +67 -67
- package/dist/nodes/Resend/actions/email/retrieve.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/email/retrieve.operation.js +35 -26
- package/dist/nodes/Resend/actions/email/send.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/email/send.operation.js +494 -602
- package/dist/nodes/Resend/actions/email/sendAndWait.operation.d.ts +8 -5
- package/dist/nodes/Resend/actions/email/sendAndWait.operation.js +45 -35
- package/dist/nodes/Resend/actions/email/sendBatch.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/email/sendBatch.operation.js +347 -402
- package/dist/nodes/Resend/actions/email/update.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/email/update.operation.js +49 -45
- package/dist/nodes/Resend/actions/event/create.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/event/create.operation.js +60 -57
- package/dist/nodes/Resend/actions/event/delete.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/event/delete.operation.js +44 -39
- package/dist/nodes/Resend/actions/event/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/event/execute.js +18 -51
- package/dist/nodes/Resend/actions/event/get.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/event/get.operation.js +44 -39
- package/dist/nodes/Resend/actions/event/index.d.ts +13 -11
- package/dist/nodes/Resend/actions/event/index.js +120 -110
- package/dist/nodes/Resend/actions/event/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/event/list.operation.js +29 -23
- package/dist/nodes/Resend/actions/event/send.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/event/send.operation.js +110 -114
- package/dist/nodes/Resend/actions/event/update.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/event/update.operation.js +63 -62
- package/dist/nodes/Resend/actions/log/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/log/execute.js +8 -41
- package/dist/nodes/Resend/actions/log/index.d.ts +9 -7
- package/dist/nodes/Resend/actions/log/index.js +57 -74
- package/dist/nodes/Resend/actions/log/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/log/list.operation.js +42 -40
- package/dist/nodes/Resend/actions/log/retrieve.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/log/retrieve.operation.js +35 -26
- package/dist/nodes/Resend/actions/receivingEmail/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/receivingEmail/execute.js +14 -47
- package/dist/nodes/Resend/actions/receivingEmail/get.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/receivingEmail/get.operation.js +35 -26
- package/dist/nodes/Resend/actions/receivingEmail/getAttachment.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/receivingEmail/getAttachment.operation.js +48 -42
- package/dist/nodes/Resend/actions/receivingEmail/index.d.ts +11 -9
- package/dist/nodes/Resend/actions/receivingEmail/index.js +90 -92
- package/dist/nodes/Resend/actions/receivingEmail/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/receivingEmail/list.operation.js +20 -9
- package/dist/nodes/Resend/actions/receivingEmail/listAttachments.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/receivingEmail/listAttachments.operation.js +67 -67
- package/dist/nodes/Resend/actions/router.d.ts +5 -2
- package/dist/nodes/Resend/actions/router.js +58 -97
- package/dist/nodes/Resend/actions/segment/create.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/segment/create.operation.js +51 -51
- package/dist/nodes/Resend/actions/segment/delete.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/segment/delete.operation.js +35 -26
- package/dist/nodes/Resend/actions/segment/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/segment/execute.js +17 -47
- package/dist/nodes/Resend/actions/segment/get.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/segment/get.operation.js +35 -26
- package/dist/nodes/Resend/actions/segment/index.d.ts +12 -10
- package/dist/nodes/Resend/actions/segment/index.js +105 -101
- package/dist/nodes/Resend/actions/segment/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/segment/list.operation.js +20 -9
- package/dist/nodes/Resend/actions/segment/listContacts.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/segment/listContacts.operation.js +58 -55
- package/dist/nodes/Resend/actions/template/create.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/template/create.operation.js +144 -145
- package/dist/nodes/Resend/actions/template/delete.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/template/delete.operation.js +35 -26
- package/dist/nodes/Resend/actions/template/duplicate.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/template/duplicate.operation.js +35 -26
- package/dist/nodes/Resend/actions/template/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/template/execute.js +20 -53
- package/dist/nodes/Resend/actions/template/get.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/template/get.operation.js +35 -26
- package/dist/nodes/Resend/actions/template/index.d.ts +14 -12
- package/dist/nodes/Resend/actions/template/index.js +135 -119
- package/dist/nodes/Resend/actions/template/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/template/list.operation.js +20 -9
- package/dist/nodes/Resend/actions/template/publish.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/template/publish.operation.js +35 -26
- package/dist/nodes/Resend/actions/template/update.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/template/update.operation.js +164 -161
- package/dist/nodes/Resend/actions/topic/create.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/topic/create.operation.js +94 -88
- package/dist/nodes/Resend/actions/topic/delete.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/topic/delete.operation.js +35 -26
- package/dist/nodes/Resend/actions/topic/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/topic/execute.js +16 -49
- package/dist/nodes/Resend/actions/topic/get.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/topic/get.operation.js +35 -26
- package/dist/nodes/Resend/actions/topic/index.d.ts +12 -10
- package/dist/nodes/Resend/actions/topic/index.js +105 -101
- package/dist/nodes/Resend/actions/topic/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/topic/list.operation.js +20 -9
- package/dist/nodes/Resend/actions/topic/update.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/topic/update.operation.js +80 -77
- package/dist/nodes/Resend/actions/webhook/create.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/webhook/create.operation.js +54 -48
- package/dist/nodes/Resend/actions/webhook/delete.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/webhook/delete.operation.js +35 -26
- package/dist/nodes/Resend/actions/webhook/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/webhook/execute.js +16 -49
- package/dist/nodes/Resend/actions/webhook/get.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/webhook/get.operation.js +35 -26
- package/dist/nodes/Resend/actions/webhook/index.d.ts +13 -11
- package/dist/nodes/Resend/actions/webhook/index.js +176 -119
- package/dist/nodes/Resend/actions/webhook/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/webhook/list.operation.js +20 -9
- package/dist/nodes/Resend/actions/webhook/update.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/webhook/update.operation.js +80 -73
- package/dist/nodes/Resend/actions/workflow/create.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/workflow/create.operation.js +104 -103
- package/dist/nodes/Resend/actions/workflow/delete.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/workflow/delete.operation.js +44 -39
- package/dist/nodes/Resend/actions/workflow/execute.d.ts +4 -1
- package/dist/nodes/Resend/actions/workflow/execute.js +24 -57
- package/dist/nodes/Resend/actions/workflow/get.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/workflow/get.operation.js +44 -39
- package/dist/nodes/Resend/actions/workflow/getRun.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/workflow/getRun.operation.js +60 -54
- package/dist/nodes/Resend/actions/workflow/getRunStep.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/workflow/getRunStep.operation.js +74 -70
- package/dist/nodes/Resend/actions/workflow/index.d.ts +16 -14
- package/dist/nodes/Resend/actions/workflow/index.js +165 -137
- package/dist/nodes/Resend/actions/workflow/list.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/workflow/list.operation.js +29 -23
- package/dist/nodes/Resend/actions/workflow/listRunSteps.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/workflow/listRunSteps.operation.js +66 -62
- package/dist/nodes/Resend/actions/workflow/listRuns.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/workflow/listRuns.operation.js +50 -47
- package/dist/nodes/Resend/actions/workflow/update.operation.d.ts +8 -3
- package/dist/nodes/Resend/actions/workflow/update.operation.js +66 -58
- package/dist/nodes/Resend/methods/index.d.ts +26 -23
- package/dist/nodes/Resend/methods/index.js +227 -253
- package/dist/nodes/Resend/transport/index.d.ts +28 -26
- package/dist/nodes/Resend/transport/index.js +243 -321
- package/dist/nodes/Resend/utils/dynamicFields.d.ts +36 -33
- package/dist/nodes/Resend/utils/dynamicFields.js +118 -59
- package/dist/nodes/Resend/utils/sendAndWait/descriptions.d.ts +7 -4
- package/dist/nodes/Resend/utils/sendAndWait/descriptions.js +97 -111
- package/dist/nodes/Resend/utils/sendAndWait/email-templates.d.ts +10 -7
- package/dist/nodes/Resend/utils/sendAndWait/email-templates.js +20 -20
- package/dist/nodes/Resend/utils/sendAndWait/index.d.ts +5 -4
- package/dist/nodes/Resend/utils/sendAndWait/index.js +20 -23
- package/dist/nodes/Resend/utils/sendAndWait/interfaces.d.ts +31 -28
- package/dist/nodes/Resend/utils/sendAndWait/interfaces.js +0 -3
- package/dist/nodes/Resend/utils/sendAndWait/utils.d.ts +38 -35
- package/dist/nodes/Resend/utils/sendAndWait/utils.js +360 -468
- package/package.json +70 -71
- package/dist/credentials/ResendApi.credentials.js.map +0 -1
- package/dist/credentials/ResendWebhookSigningSecretApi.credentials.js.map +0 -1
- package/dist/nodes/Resend/Resend.node.js.map +0 -1
- package/dist/nodes/Resend/ResendTrigger.node.js.map +0 -1
- package/dist/nodes/Resend/actions/broadcast/create.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/broadcast/delete.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/broadcast/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/broadcast/get.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/broadcast/index.js.map +0 -1
- package/dist/nodes/Resend/actions/broadcast/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/broadcast/send.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/broadcast/update.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contact/addToSegment.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contact/create.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contact/delete.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contact/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/contact/get.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contact/getTopics.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contact/index.js.map +0 -1
- package/dist/nodes/Resend/actions/contact/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contact/listSegments.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contact/removeFromSegment.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contact/update.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contact/updateTopics.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contactProperty/create.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contactProperty/delete.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contactProperty/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/contactProperty/get.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contactProperty/index.js.map +0 -1
- package/dist/nodes/Resend/actions/contactProperty/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/contactProperty/update.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/create.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/createTrackingDomain.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/delete.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/deleteTrackingDomain.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/get.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/getTrackingDomain.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/index.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/listTrackingDomains.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/update.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/verify.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/domain/verifyTrackingDomain.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/email/cancel.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/email/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/email/getAttachment.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/email/index.js.map +0 -1
- package/dist/nodes/Resend/actions/email/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/email/listAttachments.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/email/retrieve.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/email/send.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/email/sendAndWait.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/email/sendBatch.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/email/update.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/event/create.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/event/delete.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/event/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/event/get.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/event/index.js.map +0 -1
- package/dist/nodes/Resend/actions/event/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/event/send.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/event/update.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/log/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/log/index.js.map +0 -1
- package/dist/nodes/Resend/actions/log/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/log/retrieve.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/receivingEmail/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/receivingEmail/get.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/receivingEmail/getAttachment.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/receivingEmail/index.js.map +0 -1
- package/dist/nodes/Resend/actions/receivingEmail/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/receivingEmail/listAttachments.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/router.js.map +0 -1
- package/dist/nodes/Resend/actions/segment/create.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/segment/delete.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/segment/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/segment/get.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/segment/index.js.map +0 -1
- package/dist/nodes/Resend/actions/segment/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/segment/listContacts.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/template/create.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/template/delete.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/template/duplicate.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/template/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/template/get.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/template/index.js.map +0 -1
- package/dist/nodes/Resend/actions/template/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/template/publish.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/template/update.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/topic/create.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/topic/delete.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/topic/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/topic/get.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/topic/index.js.map +0 -1
- package/dist/nodes/Resend/actions/topic/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/topic/update.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/webhook/create.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/webhook/delete.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/webhook/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/webhook/get.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/webhook/index.js.map +0 -1
- package/dist/nodes/Resend/actions/webhook/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/webhook/update.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/workflow/create.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/workflow/delete.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/workflow/execute.js.map +0 -1
- package/dist/nodes/Resend/actions/workflow/get.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/workflow/getRun.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/workflow/getRunStep.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/workflow/index.js.map +0 -1
- package/dist/nodes/Resend/actions/workflow/list.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/workflow/listRunSteps.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/workflow/listRuns.operation.js.map +0 -1
- package/dist/nodes/Resend/actions/workflow/update.operation.js.map +0 -1
- package/dist/nodes/Resend/methods/index.js.map +0 -1
- package/dist/nodes/Resend/transport/index.js.map +0 -1
- package/dist/nodes/Resend/utils/dynamicFields.js.map +0 -1
- package/dist/nodes/Resend/utils/sendAndWait/descriptions.js.map +0 -1
- package/dist/nodes/Resend/utils/sendAndWait/email-templates.js.map +0 -1
- package/dist/nodes/Resend/utils/sendAndWait/index.js.map +0 -1
- package/dist/nodes/Resend/utils/sendAndWait/interfaces.js.map +0 -1
- package/dist/nodes/Resend/utils/sendAndWait/utils.js.map +0 -1
- package/dist/package.json +0 -72
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,194 +1,169 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
name: 'subscription',
|
|
139
|
-
type: 'options',
|
|
140
|
-
default: 'opt_in',
|
|
141
|
-
description: 'Whether the contact is subscribed (opt_in) or unsubscribed (opt_out) from this topic',
|
|
142
|
-
options: [
|
|
143
|
-
{ name: 'Opt In', value: 'opt_in', description: 'Contact wants to receive emails on this topic' },
|
|
144
|
-
{ name: 'Opt Out', value: 'opt_out', description: 'Contact does not want emails on this topic' },
|
|
145
|
-
],
|
|
146
|
-
},
|
|
147
|
-
],
|
|
148
|
-
},
|
|
149
|
-
],
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
displayName: 'Unsubscribed',
|
|
153
|
-
name: 'unsubscribed',
|
|
154
|
-
type: 'boolean',
|
|
155
|
-
default: false,
|
|
156
|
-
description: 'Whether the contact is globally unsubscribed from all emails. Set to true to prevent all email delivery to this contact.',
|
|
157
|
-
},
|
|
158
|
-
],
|
|
159
|
-
},
|
|
160
|
-
];
|
|
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/contact/create.operation.ts
|
|
5
|
+
var create_operation_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
6
|
+
description: () => description,
|
|
7
|
+
execute: () => execute
|
|
8
|
+
});
|
|
9
|
+
const description = [{
|
|
10
|
+
displayName: "Email",
|
|
11
|
+
name: "email",
|
|
12
|
+
type: "string",
|
|
13
|
+
required: true,
|
|
14
|
+
default: "",
|
|
15
|
+
placeholder: "contact@example.com",
|
|
16
|
+
displayOptions: { show: {
|
|
17
|
+
resource: ["contacts"],
|
|
18
|
+
operation: ["create"]
|
|
19
|
+
} },
|
|
20
|
+
description: "The email address for the new contact. This will be used for sending emails and must be unique within the audience."
|
|
21
|
+
}, {
|
|
22
|
+
displayName: "Create Fields",
|
|
23
|
+
name: "contactCreateFields",
|
|
24
|
+
type: "collection",
|
|
25
|
+
placeholder: "Add Field",
|
|
26
|
+
default: {},
|
|
27
|
+
displayOptions: { show: {
|
|
28
|
+
resource: ["contacts"],
|
|
29
|
+
operation: ["create"]
|
|
30
|
+
} },
|
|
31
|
+
options: [
|
|
32
|
+
{
|
|
33
|
+
displayName: "First Name",
|
|
34
|
+
name: "firstName",
|
|
35
|
+
type: "string",
|
|
36
|
+
default: "",
|
|
37
|
+
description: "The contact's first name. Used for personalization in email templates."
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: "Last Name",
|
|
41
|
+
name: "lastName",
|
|
42
|
+
type: "string",
|
|
43
|
+
default: "",
|
|
44
|
+
description: "The contact's last name. Used for personalization in email templates."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: "Properties",
|
|
48
|
+
name: "properties",
|
|
49
|
+
type: "fixedCollection",
|
|
50
|
+
default: { properties: [] },
|
|
51
|
+
typeOptions: { multipleValues: true },
|
|
52
|
+
description: "Custom key-value properties to store additional contact information like company, role, or any custom data",
|
|
53
|
+
options: [{
|
|
54
|
+
name: "properties",
|
|
55
|
+
displayName: "Property",
|
|
56
|
+
values: [{
|
|
57
|
+
displayName: "Key",
|
|
58
|
+
name: "key",
|
|
59
|
+
type: "string",
|
|
60
|
+
required: true,
|
|
61
|
+
default: "",
|
|
62
|
+
description: "The property name. Example: \"company\", \"role\", \"plan\"."
|
|
63
|
+
}, {
|
|
64
|
+
displayName: "Value",
|
|
65
|
+
name: "value",
|
|
66
|
+
type: "string",
|
|
67
|
+
default: "",
|
|
68
|
+
description: "The property value. Example: \"Acme Inc\", \"Developer\", \"Pro\"."
|
|
69
|
+
}]
|
|
70
|
+
}]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: "Segments",
|
|
74
|
+
name: "segments",
|
|
75
|
+
type: "fixedCollection",
|
|
76
|
+
default: { segments: [] },
|
|
77
|
+
typeOptions: { multipleValues: true },
|
|
78
|
+
description: "Assign the contact to one or more segments on creation",
|
|
79
|
+
options: [{
|
|
80
|
+
name: "segments",
|
|
81
|
+
displayName: "Segment",
|
|
82
|
+
values: [{
|
|
83
|
+
displayName: "Segment Name or ID",
|
|
84
|
+
name: "id",
|
|
85
|
+
type: "options",
|
|
86
|
+
required: true,
|
|
87
|
+
default: "",
|
|
88
|
+
typeOptions: { loadOptionsMethod: "getSegments" },
|
|
89
|
+
description: "The segment to add this contact to. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
|
|
90
|
+
}]
|
|
91
|
+
}]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
displayName: "Topics",
|
|
95
|
+
name: "topics",
|
|
96
|
+
type: "fixedCollection",
|
|
97
|
+
default: { topics: [] },
|
|
98
|
+
typeOptions: { multipleValues: true },
|
|
99
|
+
description: "Set topic subscription preferences for the contact on creation",
|
|
100
|
+
options: [{
|
|
101
|
+
name: "topics",
|
|
102
|
+
displayName: "Topic",
|
|
103
|
+
values: [{
|
|
104
|
+
displayName: "Topic Name or ID",
|
|
105
|
+
name: "id",
|
|
106
|
+
type: "options",
|
|
107
|
+
required: true,
|
|
108
|
+
default: "",
|
|
109
|
+
typeOptions: { loadOptionsMethod: "getTopics" },
|
|
110
|
+
description: "The subscription topic. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
|
|
111
|
+
}, {
|
|
112
|
+
displayName: "Subscription",
|
|
113
|
+
name: "subscription",
|
|
114
|
+
type: "options",
|
|
115
|
+
default: "opt_in",
|
|
116
|
+
description: "Whether the contact is subscribed (opt_in) or unsubscribed (opt_out) from this topic",
|
|
117
|
+
options: [{
|
|
118
|
+
name: "Opt In",
|
|
119
|
+
value: "opt_in",
|
|
120
|
+
description: "Contact wants to receive emails on this topic"
|
|
121
|
+
}, {
|
|
122
|
+
name: "Opt Out",
|
|
123
|
+
value: "opt_out",
|
|
124
|
+
description: "Contact does not want emails on this topic"
|
|
125
|
+
}]
|
|
126
|
+
}]
|
|
127
|
+
}]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
displayName: "Unsubscribed",
|
|
131
|
+
name: "unsubscribed",
|
|
132
|
+
type: "boolean",
|
|
133
|
+
default: false,
|
|
134
|
+
description: "Whether the contact is globally unsubscribed from all emails. Set to true to prevent all email delivery to this contact."
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}];
|
|
161
138
|
async function execute(index) {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
body.segments = createFields.segments.segments.map((s) => ({ id: s.id }));
|
|
184
|
-
}
|
|
185
|
-
if ((_f = (_e = createFields.topics) === null || _e === void 0 ? void 0 : _e.topics) === null || _f === void 0 ? void 0 : _f.length) {
|
|
186
|
-
body.topics = createFields.topics.topics.map((t) => ({
|
|
187
|
-
id: t.id,
|
|
188
|
-
subscription: t.subscription,
|
|
189
|
-
}));
|
|
190
|
-
}
|
|
191
|
-
const response = await transport_1.apiRequest.call(this, 'POST', '/contacts', body);
|
|
192
|
-
return [{ json: response, pairedItem: { item: index } }];
|
|
139
|
+
var _createFields$propert, _createFields$segment, _createFields$topics;
|
|
140
|
+
const email = this.getNodeParameter("email", index);
|
|
141
|
+
const createFields = this.getNodeParameter("contactCreateFields", index, {});
|
|
142
|
+
const body = { email };
|
|
143
|
+
if (createFields.firstName) body.first_name = createFields.firstName;
|
|
144
|
+
if (createFields.lastName) body.last_name = createFields.lastName;
|
|
145
|
+
if (createFields.unsubscribed !== void 0) body.unsubscribed = createFields.unsubscribed;
|
|
146
|
+
if ((_createFields$propert = createFields.properties) === null || _createFields$propert === void 0 || (_createFields$propert = _createFields$propert.properties) === null || _createFields$propert === void 0 ? void 0 : _createFields$propert.length) {
|
|
147
|
+
const props = {};
|
|
148
|
+
for (const p of createFields.properties.properties) props[p.key] = p.value;
|
|
149
|
+
body.properties = props;
|
|
150
|
+
}
|
|
151
|
+
if ((_createFields$segment = createFields.segments) === null || _createFields$segment === void 0 || (_createFields$segment = _createFields$segment.segments) === null || _createFields$segment === void 0 ? void 0 : _createFields$segment.length) body.segments = createFields.segments.segments.map((s) => ({ id: s.id }));
|
|
152
|
+
if ((_createFields$topics = createFields.topics) === null || _createFields$topics === void 0 || (_createFields$topics = _createFields$topics.topics) === null || _createFields$topics === void 0 ? void 0 : _createFields$topics.length) body.topics = createFields.topics.topics.map((t) => ({
|
|
153
|
+
id: t.id,
|
|
154
|
+
subscription: t.subscription
|
|
155
|
+
}));
|
|
156
|
+
return [{
|
|
157
|
+
json: await require_nodes_Resend_transport_index.apiRequest.call(this, "POST", "/contacts", body),
|
|
158
|
+
pairedItem: { item: index }
|
|
159
|
+
}];
|
|
193
160
|
}
|
|
194
|
-
//#
|
|
161
|
+
//#endregion
|
|
162
|
+
Object.defineProperty(exports, "create_operation_exports", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function() {
|
|
165
|
+
return create_operation_exports;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
exports.description = description;
|
|
169
|
+
exports.execute = execute;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
|
|
2
|
+
declare namespace delete_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 { delete_operation_d_exports, description, execute };
|
|
@@ -1,28 +1,37 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
];
|
|
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/contact/delete.operation.ts
|
|
6
|
+
var delete_operation_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
7
|
+
description: () => description,
|
|
8
|
+
execute: () => execute
|
|
9
|
+
});
|
|
10
|
+
const description = [require_nodes_Resend_utils_dynamicFields.createDynamicIdField({
|
|
11
|
+
fieldName: "contactIdentifier",
|
|
12
|
+
resourceName: "contact",
|
|
13
|
+
displayName: "Contact",
|
|
14
|
+
required: true,
|
|
15
|
+
placeholder: "e169aa45-1ecf-4183-9955-b1499d5701d3 or contact@example.com",
|
|
16
|
+
description: "The contact to delete, specified by either UUID (e.g., e169aa45-1ecf-4183-9955-b1499d5701d3) or email address (e.g., contact@example.com). This action is permanent and cannot be undone.",
|
|
17
|
+
displayOptions: { show: {
|
|
18
|
+
resource: ["contacts"],
|
|
19
|
+
operation: ["delete"]
|
|
20
|
+
} }
|
|
21
|
+
})];
|
|
23
22
|
async function execute(index) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
const contactIdentifier = require_nodes_Resend_utils_dynamicFields.resolveDynamicIdValue(this, "contactIdentifier", index);
|
|
24
|
+
return [{
|
|
25
|
+
json: await require_nodes_Resend_transport_index.apiRequest.call(this, "DELETE", `/contacts/${encodeURIComponent(contactIdentifier)}`),
|
|
26
|
+
pairedItem: { item: index }
|
|
27
|
+
}];
|
|
27
28
|
}
|
|
28
|
-
//#
|
|
29
|
+
//#endregion
|
|
30
|
+
Object.defineProperty(exports, "delete_operation_exports", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function() {
|
|
33
|
+
return delete_operation_exports;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
exports.description = description;
|
|
37
|
+
exports.execute = execute;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//#region nodes/Resend/actions/contact/execute.d.ts
|
|
2
|
+
declare const execute: (this: import("n8n-workflow").IExecuteFunctions, index: number, operation: string) => Promise<import("n8n-workflow").INodeExecutionData[]>;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { execute };
|
|
@@ -1,59 +1,26 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.execute = void 0;
|
|
37
|
-
const transport_1 = require("../../transport");
|
|
38
|
-
const create = __importStar(require("./create.operation"));
|
|
39
|
-
const get = __importStar(require("./get.operation"));
|
|
40
|
-
const list = __importStar(require("./list.operation"));
|
|
41
|
-
const update = __importStar(require("./update.operation"));
|
|
42
|
-
const del = __importStar(require("./delete.operation"));
|
|
43
|
-
const addToSegment = __importStar(require("./addToSegment.operation"));
|
|
44
|
-
const listSegments = __importStar(require("./listSegments.operation"));
|
|
45
|
-
const removeFromSegment = __importStar(require("./removeFromSegment.operation"));
|
|
46
|
-
const getTopics = __importStar(require("./getTopics.operation"));
|
|
47
|
-
const updateTopics = __importStar(require("./updateTopics.operation"));
|
|
48
|
-
exports.execute = (0, transport_1.createOperationRouter)({
|
|
49
|
-
create,
|
|
50
|
-
get,
|
|
51
|
-
update,
|
|
52
|
-
delete: del,
|
|
53
|
-
addToSegment,
|
|
54
|
-
listSegments,
|
|
55
|
-
removeFromSegment,
|
|
56
|
-
getTopics,
|
|
57
|
-
updateTopics,
|
|
58
|
-
}, { list });
|
|
59
|
-
//# sourceMappingURL=execute.js.map
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_nodes_Resend_transport_index = require("../../transport/index.js");
|
|
3
|
+
const require_nodes_Resend_actions_contact_addToSegment_operation = require("./addToSegment.operation.js");
|
|
4
|
+
const require_nodes_Resend_actions_contact_create_operation = require("./create.operation.js");
|
|
5
|
+
const require_nodes_Resend_actions_contact_delete_operation = require("./delete.operation.js");
|
|
6
|
+
const require_nodes_Resend_actions_contact_get_operation = require("./get.operation.js");
|
|
7
|
+
const require_nodes_Resend_actions_contact_getTopics_operation = require("./getTopics.operation.js");
|
|
8
|
+
const require_nodes_Resend_actions_contact_list_operation = require("./list.operation.js");
|
|
9
|
+
const require_nodes_Resend_actions_contact_listSegments_operation = require("./listSegments.operation.js");
|
|
10
|
+
const require_nodes_Resend_actions_contact_removeFromSegment_operation = require("./removeFromSegment.operation.js");
|
|
11
|
+
const require_nodes_Resend_actions_contact_update_operation = require("./update.operation.js");
|
|
12
|
+
const require_nodes_Resend_actions_contact_updateTopics_operation = require("./updateTopics.operation.js");
|
|
13
|
+
//#region nodes/Resend/actions/contact/execute.ts
|
|
14
|
+
const execute = require_nodes_Resend_transport_index.createOperationRouter({
|
|
15
|
+
create: require_nodes_Resend_actions_contact_create_operation.create_operation_exports,
|
|
16
|
+
get: require_nodes_Resend_actions_contact_get_operation.get_operation_exports,
|
|
17
|
+
update: require_nodes_Resend_actions_contact_update_operation.update_operation_exports,
|
|
18
|
+
delete: require_nodes_Resend_actions_contact_delete_operation.delete_operation_exports,
|
|
19
|
+
addToSegment: require_nodes_Resend_actions_contact_addToSegment_operation.addToSegment_operation_exports,
|
|
20
|
+
listSegments: require_nodes_Resend_actions_contact_listSegments_operation.listSegments_operation_exports,
|
|
21
|
+
removeFromSegment: require_nodes_Resend_actions_contact_removeFromSegment_operation.removeFromSegment_operation_exports,
|
|
22
|
+
getTopics: require_nodes_Resend_actions_contact_getTopics_operation.getTopics_operation_exports,
|
|
23
|
+
updateTopics: require_nodes_Resend_actions_contact_updateTopics_operation.updateTopics_operation_exports
|
|
24
|
+
}, { list: require_nodes_Resend_actions_contact_list_operation.list_operation_exports });
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.execute = execute;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
|
|
2
|
+
declare namespace get_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, get_operation_d_exports };
|
|
@@ -1,28 +1,37 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
];
|
|
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/contact/get.operation.ts
|
|
6
|
+
var get_operation_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
7
|
+
description: () => description,
|
|
8
|
+
execute: () => execute
|
|
9
|
+
});
|
|
10
|
+
const description = [require_nodes_Resend_utils_dynamicFields.createDynamicIdField({
|
|
11
|
+
fieldName: "contactIdentifier",
|
|
12
|
+
resourceName: "contact",
|
|
13
|
+
displayName: "Contact",
|
|
14
|
+
required: true,
|
|
15
|
+
placeholder: "e169aa45-1ecf-4183-9955-b1499d5701d3 or contact@example.com",
|
|
16
|
+
description: "The contact to retrieve, specified by either UUID (e.g., e169aa45-1ecf-4183-9955-b1499d5701d3) or email address (e.g., contact@example.com). Returns full contact details including name, subscription status, and custom properties.",
|
|
17
|
+
displayOptions: { show: {
|
|
18
|
+
resource: ["contacts"],
|
|
19
|
+
operation: ["get"]
|
|
20
|
+
} }
|
|
21
|
+
})];
|
|
23
22
|
async function execute(index) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
const contactIdentifier = require_nodes_Resend_utils_dynamicFields.resolveDynamicIdValue(this, "contactIdentifier", index);
|
|
24
|
+
return [{
|
|
25
|
+
json: await require_nodes_Resend_transport_index.apiRequest.call(this, "GET", `/contacts/${encodeURIComponent(contactIdentifier)}`),
|
|
26
|
+
pairedItem: { item: index }
|
|
27
|
+
}];
|
|
27
28
|
}
|
|
28
|
-
//#
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.description = description;
|
|
31
|
+
exports.execute = execute;
|
|
32
|
+
Object.defineProperty(exports, "get_operation_exports", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function() {
|
|
35
|
+
return get_operation_exports;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
|
|
2
|
+
declare namespace getTopics_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, getTopics_operation_d_exports };
|