@memberjunction/core-entities 1.7.1 → 1.8.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.
@@ -0,0 +1,12 @@
1
+ import { BaseEngine, UserInfo } from "@memberjunction/core";
2
+ import { EntityRelationshipDisplayComponentEntity } from "../generated/entity_subclasses";
3
+ /**
4
+ * Simple cache for commonly used type tables across the system that are outside of what we have in the Metadata object
5
+ */
6
+ export declare class TypeTablesCache extends BaseEngine<TypeTablesCache> {
7
+ Config(forceRefresh?: boolean, contextUser?: UserInfo): Promise<void>;
8
+ static get Instance(): TypeTablesCache;
9
+ get EntityRelationshipDisplayComponents(): EntityRelationshipDisplayComponentEntity[];
10
+ private _EntityRelationshipDisplayComponents;
11
+ }
12
+ //# sourceMappingURL=TypeTablesCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypeTablesCache.d.ts","sourceRoot":"","sources":["../../src/custom/TypeTablesCache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACtF,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAC;AAE1F;;GAEG;AACH,qBAAa,eAAgB,SAAQ,UAAU,CAAC,eAAe,CAAC;IAC/C,MAAM,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,QAAQ;IAWlE,WAAkB,QAAQ,IAAI,eAAe,CAE5C;IAED,IAAW,mCAAmC,+CAE7C;IACD,OAAO,CAAC,oCAAoC,CAAkD;CACjG"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TypeTablesCache = void 0;
4
+ const core_1 = require("@memberjunction/core");
5
+ /**
6
+ * Simple cache for commonly used type tables across the system that are outside of what we have in the Metadata object
7
+ */
8
+ class TypeTablesCache extends core_1.BaseEngine {
9
+ constructor() {
10
+ super(...arguments);
11
+ this._EntityRelationshipDisplayComponents = [];
12
+ }
13
+ async Config(forceRefresh, contextUser) {
14
+ const c = [
15
+ {
16
+ Type: 'entity',
17
+ EntityName: 'Entity Relationship Display Components',
18
+ PropertyName: '_EntityRelationshipDisplayComponents'
19
+ }
20
+ ];
21
+ await this.Load(c, forceRefresh, contextUser);
22
+ }
23
+ static get Instance() {
24
+ return super.getInstance();
25
+ }
26
+ get EntityRelationshipDisplayComponents() {
27
+ return this._EntityRelationshipDisplayComponents;
28
+ }
29
+ }
30
+ exports.TypeTablesCache = TypeTablesCache;
31
+ //# sourceMappingURL=TypeTablesCache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypeTablesCache.js","sourceRoot":"","sources":["../../src/custom/TypeTablesCache.ts"],"names":[],"mappings":";;;AAAA,+CAAsF;AAGtF;;GAEG;AACH,MAAa,eAAgB,SAAQ,iBAA2B;IAAhE;;QAmBY,yCAAoC,GAA+C,EAAE,CAAC;IAClG,CAAC;IAnBU,KAAK,CAAC,MAAM,CAAC,YAAsB,EAAE,WAAsB;QAC9D,MAAM,CAAC,GAAwC;YAC3C;gBACI,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,wCAAwC;gBACpD,YAAY,EAAE,sCAAsC;aACvD;SACJ,CAAC;QACF,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;IAClD,CAAC;IAEM,MAAM,KAAK,QAAQ;QACtB,OAAO,KAAK,CAAC,WAAW,EAAmB,CAAC;IAChD,CAAC;IAED,IAAW,mCAAmC;QAC1C,OAAO,IAAI,CAAC,oCAAoC,CAAC;IACrD,CAAC;CAEJ;AApBD,0CAoBC"}