@memberjunction/communication-sendgrid 2.27.0 → 2.28.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,10 +1,24 @@
|
|
|
1
|
-
import { BaseCommunicationProvider, GetMessagesParams, GetMessagesResult, MessageResult, ProcessedMessage } from "@memberjunction/communication-types";
|
|
1
|
+
import { BaseCommunicationProvider, ForwardMessageParams, ForwardMessageResult, GetMessagesParams, GetMessagesResult, MessageResult, ProcessedMessage, ReplyToMessageParams, ReplyToMessageResult } from "@memberjunction/communication-types";
|
|
2
2
|
/**
|
|
3
3
|
* Implementation of the SendGrid provider for sending and receiving messages
|
|
4
4
|
*/
|
|
5
5
|
export declare class SendGridProvider extends BaseCommunicationProvider {
|
|
6
|
+
/**
|
|
7
|
+
* Sends a single message using the provider
|
|
8
|
+
*/
|
|
6
9
|
SendSingleMessage(message: ProcessedMessage): Promise<MessageResult>;
|
|
10
|
+
/**
|
|
11
|
+
* Fetches messages from the provider
|
|
12
|
+
*/
|
|
7
13
|
GetMessages(params: GetMessagesParams): Promise<GetMessagesResult>;
|
|
14
|
+
/**
|
|
15
|
+
* Forwards a message to another client using the provider
|
|
16
|
+
*/
|
|
17
|
+
ForwardMessage(params: ForwardMessageParams): Promise<ForwardMessageResult>;
|
|
18
|
+
/**
|
|
19
|
+
* Replies to a message using the provider
|
|
20
|
+
*/
|
|
21
|
+
ReplyToMessage(params: ReplyToMessageParams): Promise<ReplyToMessageResult>;
|
|
8
22
|
}
|
|
9
23
|
export declare function LoadProvider(): void;
|
|
10
24
|
//# sourceMappingURL=SendGridProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendGridProvider.d.ts","sourceRoot":"","sources":["../src/SendGridProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"SendGridProvider.d.ts","sourceRoot":"","sources":["../src/SendGridProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAM/O;;GAEG;AACH,qBACa,gBAAiB,SAAQ,yBAAyB;IAC3D;;OAEG;IACU,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;IAiEjF;;OAEG;IACU,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI/E;;OAEG;IACI,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIlF;;OAEG;IACI,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAGrF;AAED,wBAAgB,YAAY,SAE3B"}
|
package/dist/SendGridProvider.js
CHANGED
|
@@ -19,6 +19,9 @@ const core_1 = require("@memberjunction/core");
|
|
|
19
19
|
* Implementation of the SendGrid provider for sending and receiving messages
|
|
20
20
|
*/
|
|
21
21
|
let SendGridProvider = class SendGridProvider extends communication_types_1.BaseCommunicationProvider {
|
|
22
|
+
/**
|
|
23
|
+
* Sends a single message using the provider
|
|
24
|
+
*/
|
|
22
25
|
async SendSingleMessage(message) {
|
|
23
26
|
const from = message.From;
|
|
24
27
|
// hook up with sendgrid and send stuff
|
|
@@ -81,9 +84,24 @@ let SendGridProvider = class SendGridProvider extends communication_types_1.Base
|
|
|
81
84
|
};
|
|
82
85
|
}
|
|
83
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Fetches messages from the provider
|
|
89
|
+
*/
|
|
84
90
|
async GetMessages(params) {
|
|
85
91
|
throw new Error("SendGridProvider does not support fetching messages");
|
|
86
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Forwards a message to another client using the provider
|
|
95
|
+
*/
|
|
96
|
+
ForwardMessage(params) {
|
|
97
|
+
throw new Error("SendGridProvider does not support forwarding messages");
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Replies to a message using the provider
|
|
101
|
+
*/
|
|
102
|
+
ReplyToMessage(params) {
|
|
103
|
+
throw new Error("SendGridProvider does not support replying to messages");
|
|
104
|
+
}
|
|
87
105
|
};
|
|
88
106
|
exports.SendGridProvider = SendGridProvider;
|
|
89
107
|
exports.SendGridProvider = SendGridProvider = __decorate([
|
|
@@ -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,6EAA+O;AAC/O,mDAAuD;AACvD,0DAA4D;AAC5D,qCAAqC;AACrC,+CAA2D;AAE3D;;GAEG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,+CAAyB;IAC3D;;OAEG;IACI,KAAK,CAAC,iBAAiB,CAAC,OAAyB;QAEpD,MAAM,IAAI,GAAW,OAAO,CAAC,IAAI,CAAA;QACjC,uCAAuC;QACvC,cAAM,CAAC,SAAS,CAAC,kBAAS,CAAC,CAAC;QAC5B,MAAM,GAAG,GAAqB;YAC1B,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,IAAI,EAAE;gBACF,KAAK,EAAE,IAAI;gBACX,IAAI,EAAE,OAAO,CAAC,QAAQ;aACzB;YACD,OAAO,EAAE,OAAO,CAAC,gBAAgB;YACjC,IAAI,EAAE,OAAO,CAAC,aAAa;YAC3B,IAAI,EAAE,OAAO,CAAC,iBAAiB;YAC/B,gBAAgB,EAAE;gBACd,oBAAoB,EAAE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AC,0BAA0B,GAAG,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;gBAChE,IAAA,eAAQ,EAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;gBAChC,OAAO;oBACH,OAAO,EAAE,OAAO;oBAChB,OAAO,EAAE,KAAK;oBACd,KAAK,EAAE,KAAK,CAAC,OAAO;iBACvB,CAAC;YACN,CAAC,CAAC,CAAC;QACP,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO;gBACH,OAAO,EAAE,OAAO;gBAChB,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,KAAK,CAAC,OAAO;aACvB,CAAC;QACN,CAAC;IACL,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,WAAW,CAAC,MAAyB;QAC9C,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACI,cAAc,CAAC,MAA4B;QAC9C,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACI,cAAc,CAAC,MAA4B;QAC9C,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;IAC9E,CAAC;CACJ,CAAA;AAzFY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,sBAAa,EAAC,+CAAyB,EAAE,UAAU,CAAC;GACxC,gBAAgB,CAyF5B;AAED,SAAgB,YAAY;IACxB,kEAAkE;AACtE,CAAC;AAFD,oCAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/communication-sendgrid",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.28.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/global": "2.
|
|
23
|
-
"@memberjunction/core": "2.
|
|
24
|
-
"@memberjunction/core-entities": "2.
|
|
25
|
-
"@memberjunction/communication-types": "2.
|
|
22
|
+
"@memberjunction/global": "2.28.0",
|
|
23
|
+
"@memberjunction/core": "2.28.0",
|
|
24
|
+
"@memberjunction/core-entities": "2.28.0",
|
|
25
|
+
"@memberjunction/communication-types": "2.28.0",
|
|
26
26
|
"@sendgrid/mail": "^8.1.3"
|
|
27
27
|
}
|
|
28
28
|
}
|