@memberjunction/communication-sendgrid 2.124.0 → 2.125.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.
|
@@ -1,28 +1,86 @@
|
|
|
1
|
-
import { BaseCommunicationProvider, CreateDraftParams, CreateDraftResult, ForwardMessageParams, ForwardMessageResult, GetMessagesParams, GetMessagesResult, MessageResult, ProcessedMessage, ReplyToMessageParams, ReplyToMessageResult } from "@memberjunction/communication-types";
|
|
1
|
+
import { BaseCommunicationProvider, CreateDraftParams, CreateDraftResult, ForwardMessageParams, ForwardMessageResult, GetMessagesParams, GetMessagesResult, MessageResult, ProcessedMessage, ProviderCredentialsBase, ReplyToMessageParams, ReplyToMessageResult, ProviderOperation } from "@memberjunction/communication-types";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Credentials for SendGrid email provider.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```typescript
|
|
7
|
+
* // Use with SendSingleMessage
|
|
8
|
+
* await provider.SendSingleMessage(message, {
|
|
9
|
+
* apiKey: 'SG.your-api-key'
|
|
10
|
+
* });
|
|
11
|
+
*
|
|
12
|
+
* // Disable environment fallback
|
|
13
|
+
* await provider.SendSingleMessage(message, {
|
|
14
|
+
* apiKey: 'SG.your-api-key',
|
|
15
|
+
* disableEnvironmentFallback: true
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export interface SendGridCredentials extends ProviderCredentialsBase {
|
|
20
|
+
/**
|
|
21
|
+
* SendGrid API key. Typically starts with 'SG.'
|
|
22
|
+
* If not provided, falls back to COMMUNICATION_VENDOR_API_KEY__SENDGRID environment variable.
|
|
23
|
+
*/
|
|
24
|
+
apiKey?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Implementation of the SendGrid provider for sending and receiving messages.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* SendGrid is a transactional email service. This provider supports:
|
|
31
|
+
* - Sending single messages
|
|
32
|
+
* - Sending to multiple recipients (via engine)
|
|
33
|
+
*
|
|
34
|
+
* It does NOT support:
|
|
35
|
+
* - Fetching messages (no inbox access)
|
|
36
|
+
* - Forwarding messages
|
|
37
|
+
* - Replying to messages
|
|
38
|
+
* - Creating drafts
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```typescript
|
|
42
|
+
* // Using environment credentials (default)
|
|
43
|
+
* await engine.SendSingleMessage('SendGrid', 'Standard Email', message);
|
|
44
|
+
*
|
|
45
|
+
* // Using per-request credentials
|
|
46
|
+
* await engine.SendSingleMessage('SendGrid', 'Standard Email', message, undefined, false, {
|
|
47
|
+
* apiKey: 'SG.customer-specific-key'
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
4
50
|
*/
|
|
5
51
|
export declare class SendGridProvider extends BaseCommunicationProvider {
|
|
6
52
|
/**
|
|
7
|
-
*
|
|
53
|
+
* Returns the list of operations supported by the SendGrid provider.
|
|
54
|
+
* SendGrid is a transactional email service (send-only) and does not support
|
|
55
|
+
* mailbox operations like fetching messages, folders, or attachments.
|
|
56
|
+
*/
|
|
57
|
+
getSupportedOperations(): ProviderOperation[];
|
|
58
|
+
/**
|
|
59
|
+
* Sends a single message using SendGrid.
|
|
60
|
+
* @param message - The processed message to send
|
|
61
|
+
* @param credentials - Optional SendGrid credentials override
|
|
8
62
|
*/
|
|
9
|
-
SendSingleMessage(message: ProcessedMessage): Promise<MessageResult>;
|
|
63
|
+
SendSingleMessage(message: ProcessedMessage, credentials?: SendGridCredentials): Promise<MessageResult>;
|
|
10
64
|
/**
|
|
11
|
-
* Fetches messages from the provider
|
|
65
|
+
* Fetches messages from the provider.
|
|
66
|
+
* @remarks SendGrid does not support fetching messages (no inbox access).
|
|
12
67
|
*/
|
|
13
|
-
GetMessages(params: GetMessagesParams): Promise<GetMessagesResult>;
|
|
68
|
+
GetMessages(params: GetMessagesParams, credentials?: SendGridCredentials): Promise<GetMessagesResult>;
|
|
14
69
|
/**
|
|
15
|
-
* Forwards a message to another client using the provider
|
|
70
|
+
* Forwards a message to another client using the provider.
|
|
71
|
+
* @remarks SendGrid does not support forwarding messages.
|
|
16
72
|
*/
|
|
17
|
-
ForwardMessage(params: ForwardMessageParams): Promise<ForwardMessageResult>;
|
|
73
|
+
ForwardMessage(params: ForwardMessageParams, credentials?: SendGridCredentials): Promise<ForwardMessageResult>;
|
|
18
74
|
/**
|
|
19
|
-
* Replies to a message using the provider
|
|
75
|
+
* Replies to a message using the provider.
|
|
76
|
+
* @remarks SendGrid does not support replying to messages.
|
|
20
77
|
*/
|
|
21
|
-
ReplyToMessage(params: ReplyToMessageParams): Promise<ReplyToMessageResult>;
|
|
78
|
+
ReplyToMessage(params: ReplyToMessageParams, credentials?: SendGridCredentials): Promise<ReplyToMessageResult>;
|
|
22
79
|
/**
|
|
23
|
-
*
|
|
80
|
+
* Creates a draft message using the provider.
|
|
81
|
+
* @remarks SendGrid does not support creating drafts (no mailbox access).
|
|
24
82
|
*/
|
|
25
|
-
CreateDraft(params: CreateDraftParams): Promise<CreateDraftResult>;
|
|
83
|
+
CreateDraft(params: CreateDraftParams, credentials?: SendGridCredentials): Promise<CreateDraftResult>;
|
|
26
84
|
}
|
|
27
85
|
export declare function LoadProvider(): void;
|
|
28
86
|
//# sourceMappingURL=SendGridProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendGridProvider.d.ts","sourceRoot":"","sources":["../src/SendGridProvider.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SendGridProvider.d.ts","sourceRoot":"","sources":["../src/SendGridProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EAGpB,iBAAiB,EACpB,MAAM,qCAAqC,CAAC;AAM7C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB;IAChE;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBACa,gBAAiB,SAAQ,yBAAyB;IAC3D;;;;OAIG;IACa,sBAAsB,IAAI,iBAAiB,EAAE;IAS7D;;;;OAIG;IACU,iBAAiB,CAC1B,OAAO,EAAE,gBAAgB,EACzB,WAAW,CAAC,EAAE,mBAAmB,GAClC,OAAO,CAAC,aAAa,CAAC;IAkFzB;;;OAGG;IACU,WAAW,CACpB,MAAM,EAAE,iBAAiB,EACzB,WAAW,CAAC,EAAE,mBAAmB,GAClC,OAAO,CAAC,iBAAiB,CAAC;IAI7B;;;OAGG;IACI,cAAc,CACjB,MAAM,EAAE,oBAAoB,EAC5B,WAAW,CAAC,EAAE,mBAAmB,GAClC,OAAO,CAAC,oBAAoB,CAAC;IAIhC;;;OAGG;IACI,cAAc,CACjB,MAAM,EAAE,oBAAoB,EAC5B,WAAW,CAAC,EAAE,mBAAmB,GAClC,OAAO,CAAC,oBAAoB,CAAC;IAIhC;;;OAGG;IACU,WAAW,CACpB,MAAM,EAAE,iBAAiB,EACzB,WAAW,CAAC,EAAE,mBAAmB,GAClC,OAAO,CAAC,iBAAiB,CAAC;CAMhC;AAED,wBAAgB,YAAY,SAE3B"}
|
package/dist/SendGridProvider.js
CHANGED
|
@@ -16,16 +16,58 @@ const mail_1 = __importDefault(require("@sendgrid/mail"));
|
|
|
16
16
|
const config_1 = require("./config");
|
|
17
17
|
const core_1 = require("@memberjunction/core");
|
|
18
18
|
/**
|
|
19
|
-
* Implementation of the SendGrid provider for sending and receiving messages
|
|
19
|
+
* Implementation of the SendGrid provider for sending and receiving messages.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* SendGrid is a transactional email service. This provider supports:
|
|
23
|
+
* - Sending single messages
|
|
24
|
+
* - Sending to multiple recipients (via engine)
|
|
25
|
+
*
|
|
26
|
+
* It does NOT support:
|
|
27
|
+
* - Fetching messages (no inbox access)
|
|
28
|
+
* - Forwarding messages
|
|
29
|
+
* - Replying to messages
|
|
30
|
+
* - Creating drafts
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* // Using environment credentials (default)
|
|
35
|
+
* await engine.SendSingleMessage('SendGrid', 'Standard Email', message);
|
|
36
|
+
*
|
|
37
|
+
* // Using per-request credentials
|
|
38
|
+
* await engine.SendSingleMessage('SendGrid', 'Standard Email', message, undefined, false, {
|
|
39
|
+
* apiKey: 'SG.customer-specific-key'
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
20
42
|
*/
|
|
21
43
|
let SendGridProvider = class SendGridProvider extends communication_types_1.BaseCommunicationProvider {
|
|
22
44
|
/**
|
|
23
|
-
*
|
|
45
|
+
* Returns the list of operations supported by the SendGrid provider.
|
|
46
|
+
* SendGrid is a transactional email service (send-only) and does not support
|
|
47
|
+
* mailbox operations like fetching messages, folders, or attachments.
|
|
24
48
|
*/
|
|
25
|
-
|
|
49
|
+
getSupportedOperations() {
|
|
50
|
+
return [
|
|
51
|
+
'SendSingleMessage'
|
|
52
|
+
// Note: SendGrid is send-only - no inbox access, no fetching, no drafts
|
|
53
|
+
// GetMessages, ForwardMessage, ReplyToMessage throw errors
|
|
54
|
+
// CreateDraft returns not supported
|
|
55
|
+
];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Sends a single message using SendGrid.
|
|
59
|
+
* @param message - The processed message to send
|
|
60
|
+
* @param credentials - Optional SendGrid credentials override
|
|
61
|
+
*/
|
|
62
|
+
async SendSingleMessage(message, credentials) {
|
|
63
|
+
// Resolve credentials: request values override env vars
|
|
64
|
+
const disableFallback = credentials?.disableEnvironmentFallback ?? false;
|
|
65
|
+
const apiKey = (0, communication_types_1.resolveCredentialValue)(credentials?.apiKey, config_1.__API_KEY, disableFallback);
|
|
66
|
+
// Validate required credentials
|
|
67
|
+
(0, communication_types_1.validateRequiredCredentials)({ apiKey }, ['apiKey'], 'SendGrid');
|
|
26
68
|
const from = message.From;
|
|
27
|
-
//
|
|
28
|
-
mail_1.default.setApiKey(
|
|
69
|
+
// Set API key for this request
|
|
70
|
+
mail_1.default.setApiKey(apiKey);
|
|
29
71
|
const msg = {
|
|
30
72
|
to: message.To,
|
|
31
73
|
from: {
|
|
@@ -55,65 +97,65 @@ let SendGridProvider = class SendGridProvider extends communication_types_1.Base
|
|
|
55
97
|
msg.sendAt = unitTime;
|
|
56
98
|
}
|
|
57
99
|
try {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
(0, core_1.LogError)(result[0].body);
|
|
71
|
-
return {
|
|
72
|
-
Message: message,
|
|
73
|
-
Success: false,
|
|
74
|
-
Error: result[0].toString()
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
}).catch((error) => {
|
|
78
|
-
(0, core_1.LogError)(`Error sending email to ${msg.to}:`, undefined, error);
|
|
79
|
-
(0, core_1.LogError)(error?.response?.body);
|
|
100
|
+
const result = await mail_1.default.send(msg);
|
|
101
|
+
if (result && result.length > 0 && result[0].statusCode >= 200 && result[0].statusCode < 300) {
|
|
102
|
+
(0, core_1.LogStatus)(`Email sent to ${msg.to}: ${result[0].statusCode}`);
|
|
103
|
+
return {
|
|
104
|
+
Message: message,
|
|
105
|
+
Success: true,
|
|
106
|
+
Error: ''
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
(0, core_1.LogError)(`Error sending email to ${msg.to}:`, undefined, result);
|
|
111
|
+
(0, core_1.LogError)(result[0].body);
|
|
80
112
|
return {
|
|
81
113
|
Message: message,
|
|
82
114
|
Success: false,
|
|
83
|
-
Error:
|
|
115
|
+
Error: result[0].toString()
|
|
84
116
|
};
|
|
85
|
-
}
|
|
117
|
+
}
|
|
86
118
|
}
|
|
87
119
|
catch (error) {
|
|
120
|
+
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
121
|
+
const errorResponse = error?.response?.body;
|
|
122
|
+
(0, core_1.LogError)(`Error sending email to ${msg.to}:`, undefined, error);
|
|
123
|
+
if (errorResponse) {
|
|
124
|
+
(0, core_1.LogError)(errorResponse);
|
|
125
|
+
}
|
|
88
126
|
return {
|
|
89
127
|
Message: message,
|
|
90
128
|
Success: false,
|
|
91
|
-
Error:
|
|
129
|
+
Error: errorMessage
|
|
92
130
|
};
|
|
93
131
|
}
|
|
94
132
|
}
|
|
95
133
|
/**
|
|
96
|
-
* Fetches messages from the provider
|
|
134
|
+
* Fetches messages from the provider.
|
|
135
|
+
* @remarks SendGrid does not support fetching messages (no inbox access).
|
|
97
136
|
*/
|
|
98
|
-
async GetMessages(params) {
|
|
137
|
+
async GetMessages(params, credentials) {
|
|
99
138
|
throw new Error("SendGridProvider does not support fetching messages");
|
|
100
139
|
}
|
|
101
140
|
/**
|
|
102
|
-
* Forwards a message to another client using the provider
|
|
141
|
+
* Forwards a message to another client using the provider.
|
|
142
|
+
* @remarks SendGrid does not support forwarding messages.
|
|
103
143
|
*/
|
|
104
|
-
ForwardMessage(params) {
|
|
144
|
+
ForwardMessage(params, credentials) {
|
|
105
145
|
throw new Error("SendGridProvider does not support forwarding messages");
|
|
106
146
|
}
|
|
107
147
|
/**
|
|
108
|
-
* Replies to a message using the provider
|
|
148
|
+
* Replies to a message using the provider.
|
|
149
|
+
* @remarks SendGrid does not support replying to messages.
|
|
109
150
|
*/
|
|
110
|
-
ReplyToMessage(params) {
|
|
151
|
+
ReplyToMessage(params, credentials) {
|
|
111
152
|
throw new Error("SendGridProvider does not support replying to messages");
|
|
112
153
|
}
|
|
113
154
|
/**
|
|
114
|
-
*
|
|
155
|
+
* Creates a draft message using the provider.
|
|
156
|
+
* @remarks SendGrid does not support creating drafts (no mailbox access).
|
|
115
157
|
*/
|
|
116
|
-
async CreateDraft(params) {
|
|
158
|
+
async CreateDraft(params, credentials) {
|
|
117
159
|
return {
|
|
118
160
|
Success: false,
|
|
119
161
|
ErrorMessage: 'SendGrid does not support creating draft messages. Drafts are only supported by email providers with mailbox access (Gmail, MS Graph).'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendGridProvider.js","sourceRoot":"","sources":["../src/SendGridProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"SendGridProvider.js","sourceRoot":"","sources":["../src/SendGridProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAgB6C;AAC7C,mDAAuD;AACvD,0DAA0D;AAC1D,qCAAqC;AACrC,+CAA2D;AA2B3D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,+CAAyB;IAC3D;;;;OAIG;IACa,sBAAsB;QAClC,OAAO;YACH,mBAAmB;YACnB,wEAAwE;YACxE,2DAA2D;YAC3D,oCAAoC;SACvC,CAAC;IACN,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,iBAAiB,CAC1B,OAAyB,EACzB,WAAiC;QAEjC,wDAAwD;QACxD,MAAM,eAAe,GAAG,WAAW,EAAE,0BAA0B,IAAI,KAAK,CAAC;QAEzE,MAAM,MAAM,GAAG,IAAA,4CAAsB,EACjC,WAAW,EAAE,MAAM,EACnB,kBAAS,EACT,eAAe,CAClB,CAAC;QAEF,gCAAgC;QAChC,IAAA,iDAA2B,EAAC,EAAE,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;QAEhE,MAAM,IAAI,GAAW,OAAO,CAAC,IAAI,CAAC;QAClC,+BAA+B;QAC/B,cAAM,CA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ACzB,WAAiC;QAEjC,OAAO;YACH,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,wIAAwI;SACzJ,CAAC;IACN,CAAC;CACJ,CAAA;AAvJY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,sBAAa,EAAC,+CAAyB,EAAE,UAAU,CAAC;GACxC,gBAAgB,CAuJ5B;AAED,SAAgB,YAAY;IACxB,kEAAkE;AACtE,CAAC;AAFD,oCAEC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,oBAAoB,CAAC;AAGnC,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/communication-sendgrid",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.125.0",
|
|
4
4
|
"description": "MemberJunction: SendGrid Provider for the MJ Communication Framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"typescript": "^5.4.5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@memberjunction/communication-types": "2.
|
|
23
|
-
"@memberjunction/core": "2.
|
|
24
|
-
"@memberjunction/core-entities": "2.
|
|
25
|
-
"@memberjunction/global": "2.
|
|
22
|
+
"@memberjunction/communication-types": "2.125.0",
|
|
23
|
+
"@memberjunction/core": "2.125.0",
|
|
24
|
+
"@memberjunction/core-entities": "2.125.0",
|
|
25
|
+
"@memberjunction/global": "2.125.0",
|
|
26
26
|
"@sendgrid/mail": "^8.1.3",
|
|
27
27
|
"dotenv": "^16.4.1"
|
|
28
28
|
},
|