@memberjunction/entity-communications-server 2.112.0 → 2.113.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
CHANGED
|
@@ -35,7 +35,7 @@ This package depends on the following MemberJunction packages:
|
|
|
35
35
|
```typescript
|
|
36
36
|
import { EntityCommunicationsEngine } from '@memberjunction/entity-communications-server';
|
|
37
37
|
import { EntityCommunicationParams } from '@memberjunction/entity-communications-base';
|
|
38
|
-
import { UserInfo } from '@memberjunction/
|
|
38
|
+
import { UserInfo } from '@memberjunction/core';
|
|
39
39
|
|
|
40
40
|
// Get the singleton instance
|
|
41
41
|
const engine = EntityCommunicationsEngine.Instance;
|
|
@@ -260,4 +260,4 @@ ISC
|
|
|
260
260
|
|
|
261
261
|
## Support
|
|
262
262
|
|
|
263
|
-
For issues and questions, please refer to the main MemberJunction documentation at [MemberJunction.com](https://www.memberjunction.com)
|
|
263
|
+
For issues and questions, please refer to the main MemberJunction documentation at [MemberJunction.com](https://www.memberjunction.com)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Message, MessageRecipient } from
|
|
2
|
-
import { EntityInfo } from
|
|
3
|
-
import { TemplateParamEntity } from
|
|
4
|
-
import { EntityCommunicationMessageTypeExtended, EntityCommunicationParams, EntityCommunicationResult, EntityCommunicationsEngineBase } from
|
|
1
|
+
import { Message, MessageRecipient } from "@memberjunction/communication-types";
|
|
2
|
+
import { EntityInfo } from "@memberjunction/core";
|
|
3
|
+
import { TemplateParamEntity } from "@memberjunction/core-entities";
|
|
4
|
+
import { EntityCommunicationMessageTypeExtended, EntityCommunicationParams, EntityCommunicationResult, EntityCommunicationsEngineBase } from "@memberjunction/entity-communications-base";
|
|
5
5
|
/**
|
|
6
6
|
* Server-side implementation of the entity communications engine
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-communications.d.ts","sourceRoot":"","sources":["../src/entity-communications.ts"],"names":[],"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SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,EAAE,CAAA;KAAC,EAAE,CAAC;IAiD/L;;;;OAIG;IACH,SAAS,CAAC,qCAAqC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;CAgC7E"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EntityCommunicationsEngine = void 0;
|
|
4
4
|
const communication_engine_1 = require("@memberjunction/communication-engine");
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@memberjunction/core");
|
|
6
6
|
const entity_communications_base_1 = require("@memberjunction/entity-communications-base");
|
|
7
7
|
/**
|
|
8
8
|
* Server-side implementation of the entity communications engine
|
|
@@ -17,15 +17,15 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
17
17
|
async RunEntityCommunication(params) {
|
|
18
18
|
try {
|
|
19
19
|
this.TryThrowIfNotLoaded();
|
|
20
|
-
const md = new
|
|
21
|
-
const entityInfo = md.Entities.find(
|
|
20
|
+
const md = new core_1.Metadata();
|
|
21
|
+
const entityInfo = md.Entities.find(e => e.ID === params.EntityID);
|
|
22
22
|
if (!entityInfo)
|
|
23
23
|
throw new Error(`Entity ${params.EntityID} not found`);
|
|
24
24
|
if (!this.EntitySupportsCommunication(params.EntityID)) {
|
|
25
25
|
throw new Error(`Entity ${params.EntityID} does not support communication`);
|
|
26
26
|
}
|
|
27
27
|
await communication_engine_1.CommunicationEngine.Instance.Config(false, this.ContextUser);
|
|
28
|
-
const provider = communication_engine_1.CommunicationEngine.Instance.Providers.find(
|
|
28
|
+
const provider = communication_engine_1.CommunicationEngine.Instance.Providers.find(p => p.Name.trim().toLowerCase() === params.ProviderName.trim().toLowerCase());
|
|
29
29
|
if (!provider) {
|
|
30
30
|
throw new Error(`Provider ${params.ProviderName} not found`);
|
|
31
31
|
}
|
|
@@ -36,19 +36,19 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
36
36
|
if (message.SendAt && !provider.SupportsScheduledSending) {
|
|
37
37
|
throw new Error(`Provider ${params.ProviderName} does not support scheduled sending`);
|
|
38
38
|
}
|
|
39
|
-
const providerMessageType = provider.MessageTypes.find(
|
|
39
|
+
const providerMessageType = provider.MessageTypes.find(mt => mt.Name.trim().toLowerCase() === params.ProviderMessageTypeName.trim().toLowerCase());
|
|
40
40
|
const entityMessageTypes = this.GetEntityCommunicationMessageTypes(params.EntityID);
|
|
41
|
-
const entityMessageType = entityMessageTypes.find(
|
|
41
|
+
const entityMessageType = entityMessageTypes.find(m => m.BaseMessageTypeID === providerMessageType.CommunicationBaseMessageTypeID);
|
|
42
42
|
if (!entityMessageType) {
|
|
43
43
|
throw new Error(`Entity ${params.EntityID} does not support message type ${providerMessageType.CommunicationBaseMessageType}`);
|
|
44
44
|
}
|
|
45
45
|
// next our main job here is to run the view, get all the records, and then call the communication engine
|
|
46
|
-
const rv = new
|
|
46
|
+
const rv = new core_1.RunView();
|
|
47
47
|
const rvParams2 = {
|
|
48
|
-
...params.RunViewParams
|
|
48
|
+
...params.RunViewParams
|
|
49
49
|
};
|
|
50
50
|
// now change rvParams2.Fields to have ALL entity fields to make sure we get them all
|
|
51
|
-
rvParams2.Fields = entityInfo.Fields.map(
|
|
51
|
+
rvParams2.Fields = entityInfo.Fields.map(f => f.Name);
|
|
52
52
|
const result = await rv.RunView(rvParams2, this.ContextUser);
|
|
53
53
|
if (result && result.Success) {
|
|
54
54
|
// have the results, now we can map the results to the types the comm engine needs and call SendMessages() in the comm engine
|
|
@@ -58,17 +58,14 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
58
58
|
if (sendResult && sendResult.length === recipients.length) {
|
|
59
59
|
// make sure none of the messages failed
|
|
60
60
|
return {
|
|
61
|
-
Success: !sendResult.some(
|
|
62
|
-
ErrorMessage: sendResult
|
|
63
|
-
.filter((r) => !r.Success)
|
|
64
|
-
.map((r) => r.Error)
|
|
65
|
-
.join('; '),
|
|
61
|
+
Success: !sendResult.some(r => !r.Success),
|
|
62
|
+
ErrorMessage: sendResult.filter(r => !r.Success).map(r => r.Error).join('; '),
|
|
66
63
|
Results: sendResult.map((r, i) => {
|
|
67
64
|
return {
|
|
68
65
|
RecipientData: recipients[i],
|
|
69
|
-
Message: r.Message
|
|
66
|
+
Message: r.Message
|
|
70
67
|
};
|
|
71
|
-
})
|
|
68
|
+
})
|
|
72
69
|
};
|
|
73
70
|
}
|
|
74
71
|
}
|
|
@@ -77,13 +74,13 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
77
74
|
}
|
|
78
75
|
return {
|
|
79
76
|
Success: false,
|
|
80
|
-
ErrorMessage: 'Unknown error'
|
|
77
|
+
ErrorMessage: 'Unknown error'
|
|
81
78
|
};
|
|
82
79
|
}
|
|
83
80
|
catch (e) {
|
|
84
81
|
return {
|
|
85
82
|
Success: false,
|
|
86
|
-
ErrorMessage: e.message
|
|
83
|
+
ErrorMessage: e.message
|
|
87
84
|
};
|
|
88
85
|
}
|
|
89
86
|
}
|
|
@@ -111,8 +108,8 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
111
108
|
templates.push(message.SubjectTemplate);
|
|
112
109
|
}
|
|
113
110
|
const params = [];
|
|
114
|
-
templates.forEach(
|
|
115
|
-
t.Params.forEach(
|
|
111
|
+
templates.forEach(t => {
|
|
112
|
+
t.Params.forEach(p => {
|
|
116
113
|
if (!params.includes(p)) {
|
|
117
114
|
params.push(p);
|
|
118
115
|
}
|
|
@@ -127,7 +124,7 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
127
124
|
const pkey = r[entityInfo.FirstPrimaryKey.Name];
|
|
128
125
|
const retVal = {
|
|
129
126
|
To: ToValue,
|
|
130
|
-
ContextData: {}
|
|
127
|
+
ContextData: {}
|
|
131
128
|
};
|
|
132
129
|
if (hasTemplates) {
|
|
133
130
|
retVal.ContextData = await this.PopulateSingleRecipientContextData(r, relatedData, pkey, params);
|
|
@@ -144,22 +141,22 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
144
141
|
// we have not processed this parameter yet, so we will do so now.
|
|
145
142
|
// Params have various types, so we will switch on that here
|
|
146
143
|
switch (p.Type) {
|
|
147
|
-
case
|
|
144
|
+
case "Record":
|
|
148
145
|
// this one is simple, we create a property by the provided name, and set the value to the record we are currently processing
|
|
149
146
|
contextData[p.Name] = record;
|
|
150
147
|
break;
|
|
151
|
-
case
|
|
148
|
+
case "Entity":
|
|
152
149
|
// here we need to grab the related data from another entity and filter it down for the record we are current processing so it only shows the related data
|
|
153
150
|
// the metadata in the param tells us what we need to know
|
|
154
|
-
const d = relatedData.find(
|
|
151
|
+
const d = relatedData.find(rd => rd.paramName === p.Name);
|
|
155
152
|
// now filter down the data in d to just this record
|
|
156
|
-
const relatedDataForRecord = d.data.filter(
|
|
153
|
+
const relatedDataForRecord = d.data.filter(rdfr => rdfr[p.LinkedParameterField] === pkey);
|
|
157
154
|
// and set the value of the context data to the filtered data
|
|
158
155
|
contextData[p.Name] = relatedDataForRecord;
|
|
159
156
|
break;
|
|
160
|
-
case
|
|
161
|
-
case
|
|
162
|
-
case
|
|
157
|
+
case "Array":
|
|
158
|
+
case "Scalar":
|
|
159
|
+
case "Object":
|
|
163
160
|
// do nothing here, we don't directly support these param types from messaging. These param types are used
|
|
164
161
|
// when programs directly invoke the templating engine, but are not used by the Communication Engine
|
|
165
162
|
break;
|
|
@@ -187,9 +184,9 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
187
184
|
templates.push(message.SubjectTemplate);
|
|
188
185
|
}
|
|
189
186
|
const entityParams = [];
|
|
190
|
-
templates.forEach(
|
|
191
|
-
t.Params.forEach(
|
|
192
|
-
if (p.Type ===
|
|
187
|
+
templates.forEach(t => {
|
|
188
|
+
t.Params.forEach(p => {
|
|
189
|
+
if (p.Type === "Entity" && !entityParams.includes(p)) {
|
|
193
190
|
entityParams.push(p);
|
|
194
191
|
}
|
|
195
192
|
});
|
|
@@ -202,10 +199,10 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
202
199
|
const relatedEntity = p.Entity;
|
|
203
200
|
const relatedField = p.LinkedParameterField;
|
|
204
201
|
// construct a filter for the related field so that we constrain the results to just the set of records linked to our recipients
|
|
205
|
-
const quotes = recipientPrimaryKeyNeedsQuotes ? "'" :
|
|
206
|
-
const filter = `${relatedField} in (${recipients.map(
|
|
202
|
+
const quotes = recipientPrimaryKeyNeedsQuotes ? "'" : "";
|
|
203
|
+
const filter = `${relatedField} in (${recipients.map(r => `${quotes}${r[recipientPrimaryKeyFieldName]}${quotes}`).join(',')})`;
|
|
207
204
|
const finalFilter = p.ExtraFilter ? `(${filter}) AND (${p.ExtraFilter})` : filter;
|
|
208
|
-
const rv = new
|
|
205
|
+
const rv = new core_1.RunView();
|
|
209
206
|
const params = {
|
|
210
207
|
EntityName: relatedEntity,
|
|
211
208
|
ExtraFilter: finalFilter,
|
|
@@ -214,7 +211,7 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
214
211
|
if (result && result.Success) {
|
|
215
212
|
data.push({
|
|
216
213
|
paramName: p.Name,
|
|
217
|
-
data: result.Results
|
|
214
|
+
data: result.Results
|
|
218
215
|
});
|
|
219
216
|
}
|
|
220
217
|
}
|
|
@@ -244,7 +241,7 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
244
241
|
for (const p of t.Params) {
|
|
245
242
|
if (paramNames.includes(p.Name)) {
|
|
246
243
|
// we have a duplicate parameter name, now we need to check if the definitions are the same
|
|
247
|
-
const otherParam = paramNames.find(
|
|
244
|
+
const otherParam = paramNames.find(p2 => p2.Name === p.Name);
|
|
248
245
|
if (otherParam.Type !== p.Type) {
|
|
249
246
|
throw new Error(`Parameter ${p.Name} has different types in different templates`);
|
|
250
247
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-communications.js","sourceRoot":"","sources":["../src/entity-communications.ts"],"names":[],"mappings":";;;AAAA,+EAA2E;AAE3E
|
|
1
|
+
{"version":3,"file":"entity-communications.js","sourceRoot":"","sources":["../src/entity-communications.ts"],"names":[],"mappings":";;;AAAA,+EAA2E;AAE3E,+CAAwH;AAExH,2FAA0L;AAG1L;;GAEG;AACH,MAAa,0BAA2B,SAAQ,2DAA8B;IAEnE,MAAM,KAAK,QAAQ;QACtB,OAAO,KAAK,CAAC,WAAW,EAA8B,CAAC;IAC3D,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,sBAAsB,CAAC,MAAiC;QACjE,IAAI,CAAC;YACD,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAE3B,MAAM,EAAE,GAAG,IAAI,eAAQ,EAAE,CAAC;YAC1B,MAAM,UAAU,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,QAAQ,CAAC,CAAC;YACnE,IAAI,CAAC,UAAU;gBACX,MAAM,IAAI,KAAK,CAAC,UAAU,MAAM,CAAC,QAAQ,YAAY,CAAC,CAAC;YAE3D,IAAI,CAAC,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACrD,MAAM,IAAI,KAAK,CAAC,UAAU,MAAM,CAAC,QAAQ,iCAAiC,CAAC,CAAC;YAChF,CAAC;YAED,MAAM,0CAAmB,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;YAEnE,MAAM,QAAQ,GAAwC,0CAAmB,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;YAC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AC;QACD,8FAA8F;QAC9F,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,KAAK,MAAM,CAAC,IAAI,SAAS,EAAE,CAAC;YACxB,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;gBACvB,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC9B,2FAA2F;oBAC3F,MAAM,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC;oBAC7D,IAAI,UAAU,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;wBAC7B,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC,IAAI,6CAA6C,CAAC,CAAC;oBACtF,CAAC;gBACL,CAAC;qBACI,CAAC;oBACF,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBACvB,CAAC;YACL,CAAC;QACL,CAAC;QACD,0EAA0E;QAC1E,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AA7QD,gEA6QC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/entity-communications-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.113.0",
|
|
4
4
|
"description": "MemberJunction: Library that connects the MJ entities framework to the communication framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,10 +19,11 @@
|
|
|
19
19
|
"typescript": "^5.4.5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@memberjunction/global": "2.
|
|
23
|
-
"@memberjunction/core
|
|
24
|
-
"@memberjunction/
|
|
25
|
-
"@memberjunction/
|
|
22
|
+
"@memberjunction/global": "2.113.0",
|
|
23
|
+
"@memberjunction/core": "2.113.0",
|
|
24
|
+
"@memberjunction/core-entities": "2.113.0",
|
|
25
|
+
"@memberjunction/communication-engine": "2.113.0",
|
|
26
|
+
"@memberjunction/entity-communications-base": "2.113.0"
|
|
26
27
|
},
|
|
27
28
|
"repository": {
|
|
28
29
|
"type": "git",
|