@memberjunction/entity-communications-client 2.103.0 → 2.105.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/dist/client.d.ts +18 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +26 -1
- package/dist/client.js.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { EntityCommunicationParams, EntityCommunicationResult, EntityCommunicationsEngineBase } from "@memberjunction/entity-communications-base";
|
|
2
|
-
import { TemplateEntityExtended } from "@memberjunction/
|
|
3
|
-
import { CommunicationProviderMessageTypeEntity } from "@memberjunction/core-entities";
|
|
2
|
+
import { CommunicationProviderMessageTypeEntity, TemplateEntityExtended } from "@memberjunction/core-entities";
|
|
4
3
|
export declare class EntityCommunicationsEngineClient extends EntityCommunicationsEngineBase {
|
|
4
|
+
/**
|
|
5
|
+
* Get the singleton instance of EntityCommunicationsEngineClient
|
|
6
|
+
*/
|
|
7
|
+
static get Instance(): EntityCommunicationsEngineClient;
|
|
8
|
+
/**
|
|
9
|
+
* Configure the entity communications engine client.
|
|
10
|
+
* This method is inherited from EntityCommunicationsEngineBase but needs to be explicitly
|
|
11
|
+
* exposed to prevent tree-shaking in production builds from removing access to it.
|
|
12
|
+
*/
|
|
13
|
+
Config(forceRefresh?: boolean, contextUser?: import("@memberjunction/core").UserInfo, provider?: import("@memberjunction/core").IMetadataProvider): Promise<void>;
|
|
5
14
|
/**
|
|
6
15
|
* Executes a given message request against a view of records for a given entity
|
|
7
16
|
* @param entityID
|
|
@@ -16,7 +25,7 @@ export declare class EntityCommunicationsEngineClient extends EntityCommunicatio
|
|
|
16
25
|
CommunicationProviderID: string;
|
|
17
26
|
CommunicationBaseMessageTypeID: string;
|
|
18
27
|
Name: string;
|
|
19
|
-
Status: "
|
|
28
|
+
Status: "Active" | "Disabled";
|
|
20
29
|
AdditionalAttributes: string;
|
|
21
30
|
_mj_CreatedAt: Date;
|
|
22
31
|
_mj_UpdatedAt: Date;
|
|
@@ -39,4 +48,10 @@ export declare class EntityCommunicationsEngineClient extends EntityCommunicatio
|
|
|
39
48
|
User: string;
|
|
40
49
|
};
|
|
41
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Stub function to prevent tree-shaking of EntityCommunicationsEngineClient in production builds.
|
|
53
|
+
* Call this function early in your application initialization (before using the client)
|
|
54
|
+
* to ensure the class and its inherited Config() method are not removed by the bundler.
|
|
55
|
+
*/
|
|
56
|
+
export declare function LoadEntityCommunicationsEngineClient(): void;
|
|
42
57
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAGlJ,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAGlJ,OAAO,EAAE,sCAAsC,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE/G,qBAAa,gCAAiC,SAAQ,8BAA8B;IAChF;;OAEG;IACH,WAA2B,QAAQ,IAAI,gCAAgC,CAEtE;IAED;;;;OAIG;IACmB,MAAM,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,OAAO,sBAAsB,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,OAAO,sBAAsB,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvL;;;;;;;OAOG;IACU,sBAAsB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IA2D1G,SAAS,CAAC,oBAAoB,CAAC,WAAW,EAAE,sCAAsC;;;;;;;;;;;;IAkBlF,SAAS,CAAC,iBAAiB,CAAC,QAAQ,EAAE,sBAAsB;;;;;;;;;;;;;;;CAqB/D;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,IAAI,IAAI,CAI3D"}
|
package/dist/client.js
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EntityCommunicationsEngineClient = void 0;
|
|
3
|
+
exports.LoadEntityCommunicationsEngineClient = exports.EntityCommunicationsEngineClient = void 0;
|
|
4
4
|
const core_1 = require("@memberjunction/core");
|
|
5
5
|
const entity_communications_base_1 = require("@memberjunction/entity-communications-base");
|
|
6
6
|
const graphql_dataprovider_1 = require("@memberjunction/graphql-dataprovider");
|
|
7
7
|
class EntityCommunicationsEngineClient extends entity_communications_base_1.EntityCommunicationsEngineBase {
|
|
8
|
+
/**
|
|
9
|
+
* Get the singleton instance of EntityCommunicationsEngineClient
|
|
10
|
+
*/
|
|
11
|
+
static get Instance() {
|
|
12
|
+
return super.getInstance();
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Configure the entity communications engine client.
|
|
16
|
+
* This method is inherited from EntityCommunicationsEngineBase but needs to be explicitly
|
|
17
|
+
* exposed to prevent tree-shaking in production builds from removing access to it.
|
|
18
|
+
*/
|
|
19
|
+
async Config(forceRefresh, contextUser, provider) {
|
|
20
|
+
return super.Config(forceRefresh, contextUser, provider);
|
|
21
|
+
}
|
|
8
22
|
/**
|
|
9
23
|
* Executes a given message request against a view of records for a given entity
|
|
10
24
|
* @param entityID
|
|
@@ -108,4 +122,15 @@ class EntityCommunicationsEngineClient extends entity_communications_base_1.Enti
|
|
|
108
122
|
}
|
|
109
123
|
}
|
|
110
124
|
exports.EntityCommunicationsEngineClient = EntityCommunicationsEngineClient;
|
|
125
|
+
/**
|
|
126
|
+
* Stub function to prevent tree-shaking of EntityCommunicationsEngineClient in production builds.
|
|
127
|
+
* Call this function early in your application initialization (before using the client)
|
|
128
|
+
* to ensure the class and its inherited Config() method are not removed by the bundler.
|
|
129
|
+
*/
|
|
130
|
+
function LoadEntityCommunicationsEngineClient() {
|
|
131
|
+
// Reference the class and its Instance/Config to prevent tree-shaking
|
|
132
|
+
const _instance = EntityCommunicationsEngineClient.Instance;
|
|
133
|
+
const _config = _instance.Config;
|
|
134
|
+
}
|
|
135
|
+
exports.LoadEntityCommunicationsEngineClient = LoadEntityCommunicationsEngineClient;
|
|
111
136
|
//# sourceMappingURL=client.js.map
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;AAAA,+CAAyE;AACzE,2FAAkJ;AAElJ,+EAA2E;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;AAAA,+CAAyE;AACzE,2FAAkJ;AAElJ,+EAA2E;AAG3E,MAAa,gCAAiC,SAAQ,2DAA8B;IAChF;;OAEG;IACI,MAAM,KAAc,QAAQ;QAC/B,OAAO,KAAK,CAAC,WAAW,EAAoC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACa,KAAK,CAAC,MAAM,CAAC,YAAsB,EAAE,WAAqD,EAAE,QAA2D;QACnK,OAAO,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,sBAAsB,CAAC,MAAiC;QACjE,IAAI,CAAC;YACD,MAAM,GAAG,GAAG;;;;;;cAMV,CAAA;YACF,MAAM,MAAM,GAAG,MAAM,0CAAmB,CAAC,UAAU,CAAC,GAAG,EAAE;gBACrD,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,W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AAJD,oFAIC"}
|
package/dist/index.js
CHANGED
|
@@ -16,4 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
// PUBLIC API SURFACE AREA
|
|
18
18
|
__exportStar(require("./client"), exports);
|
|
19
|
+
// Automatically load the EntityCommunicationsEngineClient to prevent tree-shaking
|
|
20
|
+
const client_1 = require("./client");
|
|
21
|
+
(0, client_1.LoadEntityCommunicationsEngineClient)();
|
|
19
22
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0BAA0B;AAC1B,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0BAA0B;AAC1B,2CAAyB;AAEzB,kFAAkF;AAClF,qCAAgE;AAChE,IAAA,6CAAoC,GAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/entity-communications-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.105.0",
|
|
4
4
|
"description": "MemberJunction: Client for interacting with Entity Communications Engine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@memberjunction/global": "2.100.3",
|
|
23
23
|
"@memberjunction/core": "2.100.3",
|
|
24
|
-
"@memberjunction/core-entities": "2.
|
|
25
|
-
"@memberjunction/entity-communications-base": "2.
|
|
26
|
-
"@memberjunction/graphql-dataprovider": "2.
|
|
24
|
+
"@memberjunction/core-entities": "2.105.0",
|
|
25
|
+
"@memberjunction/entity-communications-base": "2.105.0",
|
|
26
|
+
"@memberjunction/graphql-dataprovider": "2.105.0"
|
|
27
27
|
}
|
|
28
28
|
}
|