@memberjunction/entity-communications-server 2.111.1 → 2.112.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/global';
|
|
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/global';
|
|
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":[],"mappings":"AACA,OAAO,EAAuC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACrH,OAAO,EAAE,UAAU,EAAwE,MAAM,
|
|
1
|
+
{"version":3,"file":"entity-communications.d.ts","sourceRoot":"","sources":["../src/entity-communications.ts"],"names":[],"mappings":"AACA,OAAO,EAAuC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACrH,OAAO,EAAE,UAAU,EAAwE,MAAM,wBAAwB,CAAC;AAC1H,OAAO,EAAgE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAClI,OAAO,EACL,sCAAsC,EACtC,yBAAyB,EACzB,yBAAyB,EACzB,8BAA8B,EAC/B,MAAM,4CAA4C,CAAC;AAEpD;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,8BAA8B;IAC5E,WAAkB,QAAQ,IAAI,0BAA0B,CAEvD;IAED;;OAEG;IACU,sBAAsB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC;cA6F1F,4BAA4B,CAC1C,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,sCAAsC,EACzD,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,GAAG,EAAE,GACb,OAAO,CAAC,gBAAgB,EAAE,CAAC;cAyDd,kCAAkC,CAChD,MAAM,EAAE,GAAG,EACX,WAAW,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,EAAE,CAAA;KAAE,EAAE,EACjD,IAAI,EAAE,GAAG,EACT,MAAM,EAAE,mBAAmB,EAAE,GAC5B,OAAO,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAiClC;;;;;OAKG;cACa,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,GAAG,EAAE,EACjB,4BAA4B,EAAE,MAAM,EACpC,8BAA8B,EAAE,OAAO,GACtC,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,EAAE,CAAA;KAAE,EAAE,CAAC;IAiDhD;;;;OAIG;IACH,SAAS,CAAC,qCAAqC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;CA+B3E"}
|
|
@@ -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 global_1 = require("@memberjunction/global");
|
|
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(e => e.ID === params.EntityID);
|
|
20
|
+
const md = new global_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(p => p.Name.trim().toLowerCase() === params.ProviderName.trim().toLowerCase());
|
|
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(mt => mt.Name.trim().toLowerCase() === params.ProviderMessageTypeName.trim().toLowerCase());
|
|
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(m => m.BaseMessageTypeID === providerMessageType.CommunicationBaseMessageTypeID);
|
|
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 global_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(f => f.Name);
|
|
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,14 +58,17 @@ 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(r => !r.Success),
|
|
62
|
-
ErrorMessage: sendResult
|
|
61
|
+
Success: !sendResult.some((r) => !r.Success),
|
|
62
|
+
ErrorMessage: sendResult
|
|
63
|
+
.filter((r) => !r.Success)
|
|
64
|
+
.map((r) => r.Error)
|
|
65
|
+
.join('; '),
|
|
63
66
|
Results: sendResult.map((r, i) => {
|
|
64
67
|
return {
|
|
65
68
|
RecipientData: recipients[i],
|
|
66
|
-
Message: r.Message
|
|
69
|
+
Message: r.Message,
|
|
67
70
|
};
|
|
68
|
-
})
|
|
71
|
+
}),
|
|
69
72
|
};
|
|
70
73
|
}
|
|
71
74
|
}
|
|
@@ -74,13 +77,13 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
74
77
|
}
|
|
75
78
|
return {
|
|
76
79
|
Success: false,
|
|
77
|
-
ErrorMessage: 'Unknown error'
|
|
80
|
+
ErrorMessage: 'Unknown error',
|
|
78
81
|
};
|
|
79
82
|
}
|
|
80
83
|
catch (e) {
|
|
81
84
|
return {
|
|
82
85
|
Success: false,
|
|
83
|
-
ErrorMessage: e.message
|
|
86
|
+
ErrorMessage: e.message,
|
|
84
87
|
};
|
|
85
88
|
}
|
|
86
89
|
}
|
|
@@ -108,8 +111,8 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
108
111
|
templates.push(message.SubjectTemplate);
|
|
109
112
|
}
|
|
110
113
|
const params = [];
|
|
111
|
-
templates.forEach(t => {
|
|
112
|
-
t.Params.forEach(p => {
|
|
114
|
+
templates.forEach((t) => {
|
|
115
|
+
t.Params.forEach((p) => {
|
|
113
116
|
if (!params.includes(p)) {
|
|
114
117
|
params.push(p);
|
|
115
118
|
}
|
|
@@ -124,7 +127,7 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
124
127
|
const pkey = r[entityInfo.FirstPrimaryKey.Name];
|
|
125
128
|
const retVal = {
|
|
126
129
|
To: ToValue,
|
|
127
|
-
ContextData: {}
|
|
130
|
+
ContextData: {},
|
|
128
131
|
};
|
|
129
132
|
if (hasTemplates) {
|
|
130
133
|
retVal.ContextData = await this.PopulateSingleRecipientContextData(r, relatedData, pkey, params);
|
|
@@ -141,22 +144,22 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
141
144
|
// we have not processed this parameter yet, so we will do so now.
|
|
142
145
|
// Params have various types, so we will switch on that here
|
|
143
146
|
switch (p.Type) {
|
|
144
|
-
case
|
|
147
|
+
case 'Record':
|
|
145
148
|
// this one is simple, we create a property by the provided name, and set the value to the record we are currently processing
|
|
146
149
|
contextData[p.Name] = record;
|
|
147
150
|
break;
|
|
148
|
-
case
|
|
151
|
+
case 'Entity':
|
|
149
152
|
// 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
|
|
150
153
|
// the metadata in the param tells us what we need to know
|
|
151
|
-
const d = relatedData.find(rd => rd.paramName === p.Name);
|
|
154
|
+
const d = relatedData.find((rd) => rd.paramName === p.Name);
|
|
152
155
|
// now filter down the data in d to just this record
|
|
153
|
-
const relatedDataForRecord = d.data.filter(rdfr => rdfr[p.LinkedParameterField] === pkey);
|
|
156
|
+
const relatedDataForRecord = d.data.filter((rdfr) => rdfr[p.LinkedParameterField] === pkey);
|
|
154
157
|
// and set the value of the context data to the filtered data
|
|
155
158
|
contextData[p.Name] = relatedDataForRecord;
|
|
156
159
|
break;
|
|
157
|
-
case
|
|
158
|
-
case
|
|
159
|
-
case
|
|
160
|
+
case 'Array':
|
|
161
|
+
case 'Scalar':
|
|
162
|
+
case 'Object':
|
|
160
163
|
// do nothing here, we don't directly support these param types from messaging. These param types are used
|
|
161
164
|
// when programs directly invoke the templating engine, but are not used by the Communication Engine
|
|
162
165
|
break;
|
|
@@ -184,9 +187,9 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
184
187
|
templates.push(message.SubjectTemplate);
|
|
185
188
|
}
|
|
186
189
|
const entityParams = [];
|
|
187
|
-
templates.forEach(t => {
|
|
188
|
-
t.Params.forEach(p => {
|
|
189
|
-
if (p.Type ===
|
|
190
|
+
templates.forEach((t) => {
|
|
191
|
+
t.Params.forEach((p) => {
|
|
192
|
+
if (p.Type === 'Entity' && !entityParams.includes(p)) {
|
|
190
193
|
entityParams.push(p);
|
|
191
194
|
}
|
|
192
195
|
});
|
|
@@ -199,10 +202,10 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
199
202
|
const relatedEntity = p.Entity;
|
|
200
203
|
const relatedField = p.LinkedParameterField;
|
|
201
204
|
// construct a filter for the related field so that we constrain the results to just the set of records linked to our recipients
|
|
202
|
-
const quotes = recipientPrimaryKeyNeedsQuotes ? "'" :
|
|
203
|
-
const filter = `${relatedField} in (${recipients.map(r => `${quotes}${r[recipientPrimaryKeyFieldName]}${quotes}`).join(',')})`;
|
|
205
|
+
const quotes = recipientPrimaryKeyNeedsQuotes ? "'" : '';
|
|
206
|
+
const filter = `${relatedField} in (${recipients.map((r) => `${quotes}${r[recipientPrimaryKeyFieldName]}${quotes}`).join(',')})`;
|
|
204
207
|
const finalFilter = p.ExtraFilter ? `(${filter}) AND (${p.ExtraFilter})` : filter;
|
|
205
|
-
const rv = new
|
|
208
|
+
const rv = new global_1.RunView();
|
|
206
209
|
const params = {
|
|
207
210
|
EntityName: relatedEntity,
|
|
208
211
|
ExtraFilter: finalFilter,
|
|
@@ -211,7 +214,7 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
211
214
|
if (result && result.Success) {
|
|
212
215
|
data.push({
|
|
213
216
|
paramName: p.Name,
|
|
214
|
-
data: result.Results
|
|
217
|
+
data: result.Results,
|
|
215
218
|
});
|
|
216
219
|
}
|
|
217
220
|
}
|
|
@@ -241,7 +244,7 @@ class EntityCommunicationsEngine extends entity_communications_base_1.EntityComm
|
|
|
241
244
|
for (const p of t.Params) {
|
|
242
245
|
if (paramNames.includes(p.Name)) {
|
|
243
246
|
// we have a duplicate parameter name, now we need to check if the definitions are the same
|
|
244
|
-
const otherParam = paramNames.find(p2 => p2.Name === p.Name);
|
|
247
|
+
const otherParam = paramNames.find((p2) => p2.Name === p.Name);
|
|
245
248
|
if (otherParam.Type !== p.Type) {
|
|
246
249
|
throw new Error(`Parameter ${p.Name} has different types in different templates`);
|
|
247
250
|
}
|
|
@@ -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,mDAA0H;AAE1H,2FAKoD;AAEpD;;GAEG;AACH,MAAa,0BAA2B,SAAQ,2DAA8B;IACrE,MAAM,KAAK,QAAQ;QACxB,OAAO,KAAK,CAAC,WAAW,EAA8B,CAAC;IACzD,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,sBAAsB,CAAC,MAAiC;QACnE,IAAI,CAAC;YACH,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAE3B,MAAM,EAAE,GAAG,IAAI,iBAAQ,EAAE,CAAC;YAC1B,MAAM,UAAU,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,QAAQ,CAAC,CAAC;YACrE,IAAI,CAAC,UAAU;gBAAE,MAAM,IAAI,KAAK,CAAC,UAAU,MAAM,CAAC,QAAQ,YAAY,CAAC,CAAC;YAExE,IAAI,CAAC,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACvD,MAAM,IAAI,KAAK,CAAC,UAAU,MAAM,CAAC,QAAQ,iCAAiC,CAAC,CAAC;YAC9E,CAAC;YAED,MAAM,0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": "2.
|
|
3
|
+
"version": "2.112.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,11 +19,10 @@
|
|
|
19
19
|
"typescript": "^5.4.5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@memberjunction/global": "2.
|
|
23
|
-
"@memberjunction/core": "2.
|
|
24
|
-
"@memberjunction/
|
|
25
|
-
"@memberjunction/
|
|
26
|
-
"@memberjunction/entity-communications-base": "2.111.1"
|
|
22
|
+
"@memberjunction/global": "2.112.0",
|
|
23
|
+
"@memberjunction/core-entities": "2.112.0",
|
|
24
|
+
"@memberjunction/communication-engine": "2.112.0",
|
|
25
|
+
"@memberjunction/entity-communications-base": "2.112.0"
|
|
27
26
|
},
|
|
28
27
|
"repository": {
|
|
29
28
|
"type": "git",
|