@memberjunction/entity-communications-base 2.112.0 → 2.113.1
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 +2 -2
- package/dist/base.d.ts +2 -2
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +9 -10
- package/dist/base.js.map +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -121,7 +121,7 @@ export class CustomEntityCommunicationEngine extends EntityCommunicationsEngineB
|
|
|
121
121
|
|
|
122
122
|
```typescript
|
|
123
123
|
import { CustomEntityCommunicationEngine } from './custom-engine';
|
|
124
|
-
import { UserInfo } from '@memberjunction/
|
|
124
|
+
import { UserInfo } from '@memberjunction/core';
|
|
125
125
|
|
|
126
126
|
// Initialize the engine
|
|
127
127
|
const engine = CustomEntityCommunicationEngine.Instance;
|
|
@@ -234,4 +234,4 @@ This package integrates with:
|
|
|
234
234
|
|
|
235
235
|
## License
|
|
236
236
|
|
|
237
|
-
ISC
|
|
237
|
+
ISC
|
package/dist/base.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseEngine, IMetadataProvider, RunViewParams, UserInfo } from
|
|
2
|
-
import { EntityCommunicationFieldEntity, EntityCommunicationMessageTypeEntity } from
|
|
1
|
+
import { BaseEngine, IMetadataProvider, RunViewParams, UserInfo } from "@memberjunction/core";
|
|
2
|
+
import { EntityCommunicationFieldEntity, EntityCommunicationMessageTypeEntity } from "@memberjunction/core-entities";
|
|
3
3
|
import { Message, ProcessedMessage } from '@memberjunction/communication-types';
|
|
4
4
|
export declare class EntityCommunicationMessageTypeExtended extends EntityCommunicationMessageTypeEntity {
|
|
5
5
|
CommunicationFields: EntityCommunicationFieldEntity[];
|
package/dist/base.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAwC,iB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B,EAAE,CAEvE;cAEe,iBAAiB,CAAC,WAAW,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAcxE;;;;OAIG;IACI,kCAAkC,CAAC,QAAQ,EAAE,MAAM,GAAG,sCAAsC,EAAE;IAKrG;;;OAGG;IACI,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAa7D;;;OAGG;aACa,sBAAsB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAEhH"}
|
package/dist/base.js
CHANGED
|
@@ -7,9 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.EntityCommunicationsEngineBase = exports.EntityCommunicationResult = exports.EntityCommunicationResultItem = exports.EntityCommunicationParams = exports.EntityCommunicationMessageTypeExtended = void 0;
|
|
10
|
-
const
|
|
10
|
+
const core_1 = require("@memberjunction/core");
|
|
11
11
|
const core_entities_1 = require("@memberjunction/core-entities");
|
|
12
|
-
const
|
|
12
|
+
const global_1 = require("@memberjunction/global");
|
|
13
13
|
const communication_types_1 = require("@memberjunction/communication-types");
|
|
14
14
|
let EntityCommunicationMessageTypeExtended = class EntityCommunicationMessageTypeExtended extends core_entities_1.EntityCommunicationMessageTypeEntity {
|
|
15
15
|
constructor() {
|
|
@@ -19,7 +19,7 @@ let EntityCommunicationMessageTypeExtended = class EntityCommunicationMessageTyp
|
|
|
19
19
|
};
|
|
20
20
|
exports.EntityCommunicationMessageTypeExtended = EntityCommunicationMessageTypeExtended;
|
|
21
21
|
exports.EntityCommunicationMessageTypeExtended = EntityCommunicationMessageTypeExtended = __decorate([
|
|
22
|
-
(0,
|
|
22
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'Entity Communication Message Types')
|
|
23
23
|
], EntityCommunicationMessageTypeExtended);
|
|
24
24
|
class EntityCommunicationParams {
|
|
25
25
|
constructor() {
|
|
@@ -34,7 +34,7 @@ exports.EntityCommunicationResultItem = EntityCommunicationResultItem;
|
|
|
34
34
|
class EntityCommunicationResult {
|
|
35
35
|
}
|
|
36
36
|
exports.EntityCommunicationResult = EntityCommunicationResult;
|
|
37
|
-
class EntityCommunicationsEngineBase extends
|
|
37
|
+
class EntityCommunicationsEngineBase extends core_1.BaseEngine {
|
|
38
38
|
constructor() {
|
|
39
39
|
super(...arguments);
|
|
40
40
|
this._Metadata = { EntityCommunicationMessageTypes: [], EntityCommunicationFields: [] };
|
|
@@ -59,12 +59,11 @@ class EntityCommunicationsEngineBase extends global_1.BaseEngine {
|
|
|
59
59
|
if (!communication_types_1.CommunicationEngineBase.Instance.Metadata.EntityCommunicationFields) {
|
|
60
60
|
await communication_types_1.CommunicationEngineBase.Instance.Config(false, contextUser);
|
|
61
61
|
}
|
|
62
|
-
// post-process the fields to be linked to the message types they're part of
|
|
62
|
+
// post-process the fields to be linked to the message types they're part of
|
|
63
63
|
this._Metadata.EntityCommunicationFields = communication_types_1.CommunicationEngineBase.Instance.Metadata.EntityCommunicationFields || [];
|
|
64
|
-
this._Metadata.EntityCommunicationMessageTypes =
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
m.CommunicationFields = this.EntityCommunicationFields.filter((f) => f.EntityCommunicationMessageTypeID === m.ID);
|
|
64
|
+
this._Metadata.EntityCommunicationMessageTypes = communication_types_1.CommunicationEngineBase.Instance.Metadata.EntityCommunicationMessageTypes || [];
|
|
65
|
+
this.EntityCommunicationMessageTypes.forEach(m => {
|
|
66
|
+
m.CommunicationFields = this.EntityCommunicationFields.filter(f => f.EntityCommunicationMessageTypeID === m.ID);
|
|
68
67
|
});
|
|
69
68
|
}
|
|
70
69
|
/**
|
|
@@ -74,7 +73,7 @@ class EntityCommunicationsEngineBase extends global_1.BaseEngine {
|
|
|
74
73
|
*/
|
|
75
74
|
GetEntityCommunicationMessageTypes(entityID) {
|
|
76
75
|
this.TryThrowIfNotLoaded();
|
|
77
|
-
return this.EntityCommunicationMessageTypes.filter(
|
|
76
|
+
return this.EntityCommunicationMessageTypes.filter(m => m.EntityID === entityID);
|
|
78
77
|
}
|
|
79
78
|
/**
|
|
80
79
|
* Returns true if the specified entity has any communication message types
|
package/dist/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":";;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+CAAoI;AACpI,iEAAqH;AACrH,mDAAuD;AACvD,6EAAyG;AAGlG,IAAM,sCAAsC,GAA5C,MAAM,sCAAuC,SAAQ,oDAAoC;IAAzF;;QACI,wBAAmB,GAAqC,EAAE,CAAC;IACtE,CAAC;CAAA,CAAA;AAFY,wFAAsC;iDAAtC,sCAAsC;IADlD,IAAA,sBAAa,EAAC,iBAAU,EAAE,oCAAoC,CAAC;GACnD,sCAAsC,CAElD;AAGD,MAAa,yBAAyB;IAAtC;QAMI,gBAAW,GAAa,KAAK,CAAA;QAC7B,6BAAwB,GAAa,KAAK,CAAA;IAC9C,CAAC;CAAA;AARD,8DAQC;AACD,MAAa,6BAA6B;CAGzC;AAHD,sEAGC;AACD,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAsB,8BAA+B,SAAQ,iBAA0C;IAAvG;;QAcY,cAAS,GAGb,EAAC,+BAA+B,EAAE,EAAE,EAAE,yBAAyB,EAAE,EAAE,EAAC,CAAC;IAwD7E,CAAC;IAxEU,KAAK,CAAC,MAAM,CAAC,YAAsB,EAAE,WAAsB,EAAE,QAA4B;QAC5F,oGAAoG;QACpG,qGAAqG;QACrG,2FAA2F;QAC3F,MAAM,6CAAuB,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QACzE,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,QAA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AED;;;OAGG;IACI,2BAA2B,CAAC,QAAgB;QAC/C,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC3B,OAAO,IAAI,CAAC,kCAAkC,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IACxE,CAAC;CAgBJ;AAzED,wEAyEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/entity-communications-base",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.113.1",
|
|
4
4
|
"description": "MemberJunction: Base Types for Client/Server use with Entity Communications Engine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
"typescript": "^5.4.5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@memberjunction/global": "2.
|
|
23
|
-
"@memberjunction/core
|
|
24
|
-
"@memberjunction/
|
|
22
|
+
"@memberjunction/global": "2.113.1",
|
|
23
|
+
"@memberjunction/core": "2.113.1",
|
|
24
|
+
"@memberjunction/core-entities": "2.113.1",
|
|
25
|
+
"@memberjunction/communication-types": "2.113.1"
|
|
25
26
|
},
|
|
26
27
|
"repository": {
|
|
27
28
|
"type": "git",
|