@memberjunction/data-context 0.9.3 → 0.9.4

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/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { BaseEntity, EntityInfo, QueryInfo } from "@memberjunction/core";
2
- import { UserViewEntityExtended } from "@memberjunction/core-entities";
1
+ import { BaseEntity, EntityInfo, QueryInfo, UserInfo } from "@memberjunction/core";
2
+ import { DataContextEntity, UserViewEntityExtended } from "@memberjunction/core-entities";
3
3
  export declare class DataContextFieldInfo {
4
4
  Name: string;
5
5
  Type: string;
@@ -59,6 +59,10 @@ export declare class DataContextItem {
59
59
  Entity?: EntityInfo;
60
60
  /** Additional Description has any other information that might be useful for someone (or an LLM) intepreting the contents of this data item */
61
61
  AdditionalDescription?: string;
62
+ /**
63
+ * This property contains the loaded data for the DataContextItem, if it was loaded successfully. The data will be in the form of an array of objects, where each object is a row of data.
64
+ */
65
+ Data?: any[];
62
66
  /**
63
67
  * Generated description of the item which is dependent on the type of the item
64
68
  */
@@ -86,7 +90,45 @@ export declare class DataContextItem {
86
90
  * @returns
87
91
  */
88
92
  static FromFullEntity(entity: EntityInfo): DataContextItem;
89
- Data?: any[];
93
+ /**
94
+ * This method should only be called after this Item has been fully initialized. That can be done by calling LoadMetadata() on the DataContext object,
95
+ * or by calling the static methods FromViewEntity, FromSingleRecord, FromQuery, or FromFullEntity, or finally by manually setting the individual properties of the DataContextItem object.
96
+ * A helper method, Load() at the DataContext level can be called to load the metadata and then all of the data for all items in the data context at once.
97
+ * @param dataSource - the data source to use to execute the SQL statement - specified as an any type to allow for any type of data source to be used, but the actual implementation will be specific to the server side only. For client side use of this method, you can leave this as undefined and the Load will work so long as the Data Context Items you are loading are NOT of type 'sql'
98
+ * @param contextUser - the user that is requesting the data context (only required on server side operations, or if you want a different user's permissions to be used for the data context load)
99
+ * @returns
100
+ */
101
+ LoadData(dataSource: any, contextUser?: UserInfo): Promise<boolean>;
102
+ /**
103
+ * Loads the data context item data from a view. This method is called by the LoadData method if the type of the data context item is 'view'
104
+ * @param contextUser
105
+ * @returns
106
+ */
107
+ protected LoadFromView(contextUser: UserInfo): Promise<boolean>;
108
+ /**
109
+ * Loads the data context item data from a full entity (meaning all rows in a given entity). This method is called by the LoadData method if the type of the data context item is 'full_entity'
110
+ * @param contextUser
111
+ * @returns
112
+ */
113
+ protected LoadFromFullEntity(contextUser: UserInfo): Promise<boolean>;
114
+ /**
115
+ * Loads the data context item data from a query. This method is called by the LoadData method if the type of the data context item is 'query'
116
+ * @param contextUser
117
+ * @returns
118
+ */
119
+ protected LoadFromSingleRecord(contextUser: UserInfo): Promise<boolean>;
120
+ /**
121
+ * Loads the data context item data from a query. This method is called by the LoadData method if the type of the data context item is 'query'
122
+ * @param contextUser
123
+ * @returns
124
+ */
125
+ protected LoadFromQuery(contextUser: UserInfo): Promise<boolean>;
126
+ /**
127
+ * Overrideable in sub-classes, the default implementation will throw an error because we don't have the ability to execute random SQL on the client side
128
+ * @param dataSource - the data source to use to execute the SQL statement - specified as an any type to allow for any type of data source to be used, but the actual implementation will be specific to the server side only
129
+ * @param contextUser - the user that is requesting the data context (only required on server side operations, or if you want a different user's permissions to be used for the data context load)
130
+ */
131
+ protected LoadFromSQL(dataSource: any, contextUser: UserInfo): Promise<boolean>;
90
132
  /**
91
133
  * Validates that the Data property is set. Valid states include a zero length array, or an array with one or more elements. If the Data property is not set, this method will return false
92
134
  * @returns
@@ -94,6 +136,17 @@ export declare class DataContextItem {
94
136
  ValidateDataExists(): boolean;
95
137
  }
96
138
  export declare class DataContext {
139
+ /**
140
+ * The ID of the data context in the system
141
+ */
142
+ ID: number;
143
+ /**
144
+ * The object holding all the metadata for the data context - this only is in place automatically if you called the `LoadMetadata` method
145
+ */
146
+ DataContextEntity: DataContextEntity;
147
+ /**
148
+ * The items in the data context
149
+ */
97
150
  Items: DataContextItem[];
98
151
  /**
99
152
  * Simple validation method that determines if all of the items in the data context have data set. This doesn't mean the items have data in them as zero-length data is consider valid, it is checking to see if the Data property is set on each item or not
@@ -112,4 +165,24 @@ export declare class DataContext {
112
165
  * @returns
113
166
  */
114
167
  CreateSimpleObjectTypeDefinition(itemPrefix?: string): string;
168
+ /**
169
+ * This method will load ONLY the metadata for the data context and data context items associated with the data context. This method will not load any data for the data context items. This method will return a promise that will resolve to true if the metadata was loaded successfully, and false if it was not.
170
+ * @param DataContextID - the ID of the data context to load
171
+ * @param contextUser - the user that is requesting the data context (only required on server side operations, or if you want a different user's permissions to be used for the data context load)
172
+ */
173
+ LoadMetadata(DataContextID: number, contextUser?: UserInfo): Promise<boolean>;
174
+ /**
175
+ * This method will load the data for the data context items associated with the data context. This method must be called ONLY after the . This method will return a promise that will resolve to true if the data was loaded successfully, and false if it was not.
176
+ * @param dataSource - the data source to use to execute the SQL statement - specified as an any type to allow for any type of data source to be used, but the actual implementation will be specific to the server side only
177
+ * @param contextUser - the user that is requesting the data context (only required on server side operations, or if you want a different user's permissions to be used for the data context load)
178
+ */
179
+ LoadData(dataSource: any, contextUser?: UserInfo): Promise<boolean>;
180
+ /**
181
+ * This method will load both the metadata and the data for the data context items associated with the data context. This method will return a promise that will resolve to true if the data was loaded successfully, and false if it was not.
182
+ * @param DataContextID - the ID of the data context to load
183
+ * @param dataSource - the data source to use to execute the SQL statement - specified as an any type to allow for any type of data source to be used, but the actual implementation will be specific to the server side only
184
+ * @param contextUser - the user that is requesting the data context (only required on server side operations, or if you want a different user's permissions to be used for the data context load)
185
+ * @returns
186
+ */
187
+ Load(DataContextID: number, dataSource: any, contextUser?: UserInfo): Promise<boolean>;
115
188
  }
package/dist/types.js CHANGED
@@ -1,10 +1,19 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var DataContextItem_1;
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  exports.DataContext = exports.DataContextItem = exports.DataContextFieldInfo = void 0;
11
+ const core_1 = require("@memberjunction/core");
12
+ const global_1 = require("@memberjunction/global");
4
13
  class DataContextFieldInfo {
5
14
  }
6
15
  exports.DataContextFieldInfo = DataContextFieldInfo;
7
- class DataContextItem {
16
+ let DataContextItem = DataContextItem_1 = class DataContextItem {
8
17
  constructor() {
9
18
  /*
10
19
  * The fields in the view, query, or entity
@@ -42,7 +51,7 @@ class DataContextItem {
42
51
  * @param viewEntity
43
52
  */
44
53
  static FromViewEntity(viewEntity) {
45
- const instance = new DataContextItem();
54
+ const instance = new DataContextItem_1();
46
55
  // update our data from the viewEntity definition
47
56
  instance.Type = 'view';
48
57
  instance.ViewEntity = viewEntity;
@@ -65,7 +74,7 @@ class DataContextItem {
65
74
  * @returns
66
75
  */
67
76
  static FromSingleRecord(singleRecord) {
68
- const instance = new DataContextItem();
77
+ const instance = new DataContextItem_1();
69
78
  instance.Type = 'single_record';
70
79
  instance.RecordID = singleRecord.PrimaryKey.Value;
71
80
  instance.EntityID = singleRecord.EntityInfo.ID;
@@ -79,7 +88,7 @@ class DataContextItem {
79
88
  * @returns
80
89
  */
81
90
  static FromQuery(query) {
82
- const instance = new DataContextItem();
91
+ const instance = new DataContextItem_1();
83
92
  instance.Type = 'query';
84
93
  instance.QueryID = query.ID;
85
94
  instance.RecordName = query.Name;
@@ -98,7 +107,7 @@ class DataContextItem {
98
107
  * @returns
99
108
  */
100
109
  static FromFullEntity(entity) {
101
- const instance = new DataContextItem();
110
+ const instance = new DataContextItem_1();
102
111
  instance.Type = 'full_entity';
103
112
  instance.EntityID = entity.ID;
104
113
  instance.EntityName = entity.Name;
@@ -113,6 +122,158 @@ class DataContextItem {
113
122
  });
114
123
  return instance;
115
124
  }
125
+ /**
126
+ * This method should only be called after this Item has been fully initialized. That can be done by calling LoadMetadata() on the DataContext object,
127
+ * or by calling the static methods FromViewEntity, FromSingleRecord, FromQuery, or FromFullEntity, or finally by manually setting the individual properties of the DataContextItem object.
128
+ * A helper method, Load() at the DataContext level can be called to load the metadata and then all of the data for all items in the data context at once.
129
+ * @param dataSource - the data source to use to execute the SQL statement - specified as an any type to allow for any type of data source to be used, but the actual implementation will be specific to the server side only. For client side use of this method, you can leave this as undefined and the Load will work so long as the Data Context Items you are loading are NOT of type 'sql'
130
+ * @param contextUser - the user that is requesting the data context (only required on server side operations, or if you want a different user's permissions to be used for the data context load)
131
+ * @returns
132
+ */
133
+ async LoadData(dataSource, contextUser) {
134
+ try {
135
+ switch (this.Type) {
136
+ case 'full_entity':
137
+ return this.LoadFromFullEntity(contextUser);
138
+ case 'view':
139
+ return this.LoadFromView(contextUser);
140
+ case 'single_record':
141
+ return this.LoadFromSingleRecord(contextUser);
142
+ case 'query':
143
+ return this.LoadFromQuery(contextUser);
144
+ case 'sql':
145
+ return this.LoadFromSQL(dataSource, contextUser);
146
+ }
147
+ }
148
+ catch (e) {
149
+ (0, core_1.LogError)(`Error in DataContextItem.Load: ${e && e.message ? e.message : ''}`);
150
+ return false;
151
+ }
152
+ }
153
+ /**
154
+ * Loads the data context item data from a view. This method is called by the LoadData method if the type of the data context item is 'view'
155
+ * @param contextUser
156
+ * @returns
157
+ */
158
+ async LoadFromView(contextUser) {
159
+ try {
160
+ const rv = new core_1.RunView();
161
+ const viewParams = { IgnoreMaxRows: true }; // ignore max rows for both types
162
+ viewParams.Fields = this.ViewEntity.ViewEntityInfo.Fields.map((f) => f.Name); // include all fields
163
+ viewParams.ViewID = this.ViewID;
164
+ const viewResult = await rv.RunView(viewParams, contextUser);
165
+ if (viewResult && viewResult.Success) {
166
+ this.Data = viewResult.Results;
167
+ return true;
168
+ }
169
+ else {
170
+ (0, core_1.LogError)(`Error running view. View Params: ${JSON.stringify(viewParams)}`);
171
+ return false;
172
+ }
173
+ }
174
+ catch (e) {
175
+ (0, core_1.LogError)(`Error in DataContextItem.LoadFromView: ${e && e.message ? e.message : ''}`);
176
+ return false;
177
+ }
178
+ }
179
+ /**
180
+ * Loads the data context item data from a full entity (meaning all rows in a given entity). This method is called by the LoadData method if the type of the data context item is 'full_entity'
181
+ * @param contextUser
182
+ * @returns
183
+ */
184
+ async LoadFromFullEntity(contextUser) {
185
+ try {
186
+ const md = new core_1.Metadata();
187
+ const rv = new core_1.RunView();
188
+ const viewParams = { IgnoreMaxRows: true }; // ignore max rows for both types
189
+ const e = md.Entities.find((e) => e.ID === this.EntityID);
190
+ viewParams.EntityName = e.Name;
191
+ const viewResult = await rv.RunView(viewParams, contextUser);
192
+ if (viewResult && viewResult.Success) {
193
+ this.Data = viewResult.Results;
194
+ return true;
195
+ }
196
+ else {
197
+ (0, core_1.LogError)(`Error running view. View Params: ${JSON.stringify(viewParams)}`);
198
+ return false;
199
+ }
200
+ }
201
+ catch (e) {
202
+ (0, core_1.LogError)(`Error in DataContextItem.LoadFromFullEntity: ${e && e.message ? e.message : ''}`);
203
+ return false;
204
+ }
205
+ }
206
+ /**
207
+ * Loads the data context item data from a query. This method is called by the LoadData method if the type of the data context item is 'query'
208
+ * @param contextUser
209
+ * @returns
210
+ */
211
+ async LoadFromSingleRecord(contextUser) {
212
+ try {
213
+ const md = new core_1.Metadata();
214
+ const record = await md.GetEntityObject(this.EntityName, contextUser);
215
+ const pkeyVals = [];
216
+ const ei = md.Entities.find((e) => e.ID === this.EntityID);
217
+ const rawVals = this.RecordID.split(',');
218
+ for (let i = 0; i < ei.PrimaryKeys.length; i++) {
219
+ const pk = ei.PrimaryKeys[i];
220
+ const v = rawVals[i];
221
+ pkeyVals.push({ FieldName: pk.Name, Value: v });
222
+ }
223
+ if (await record.InnerLoad(pkeyVals)) {
224
+ this.Data = await record.GetDataObject({
225
+ includeRelatedEntityData: false,
226
+ oldValues: false,
227
+ omitEmptyStrings: false,
228
+ omitNullValues: false,
229
+ relatedEntityList: [],
230
+ excludeFields: []
231
+ });
232
+ return true;
233
+ }
234
+ else {
235
+ (0, core_1.LogError)(`Error loading single record: ${this.RecordName}`);
236
+ return false;
237
+ }
238
+ }
239
+ catch (e) {
240
+ (0, core_1.LogError)(`Error in DataContextItem.LoadFromSingleRecord: ${e && e.message ? e.message : ''}`);
241
+ return false;
242
+ }
243
+ }
244
+ /**
245
+ * Loads the data context item data from a query. This method is called by the LoadData method if the type of the data context item is 'query'
246
+ * @param contextUser
247
+ * @returns
248
+ */
249
+ async LoadFromQuery(contextUser) {
250
+ try {
251
+ const rq = new core_1.RunQuery();
252
+ const queryResult = await rq.RunQuery({ QueryID: this.QueryID }, contextUser);
253
+ if (queryResult && queryResult.Success) {
254
+ this.Data = queryResult.Results;
255
+ return true;
256
+ }
257
+ else {
258
+ (0, core_1.LogError)(`Error running query ${this.RecordName}`);
259
+ return false;
260
+ }
261
+ }
262
+ catch (e) {
263
+ (0, core_1.LogError)(`Error in DataContextItem.LoadFromQuery: ${e && e.message ? e.message : ''}`);
264
+ return false;
265
+ }
266
+ }
267
+ /**
268
+ * Overrideable in sub-classes, the default implementation will throw an error because we don't have the ability to execute random SQL on the client side
269
+ * @param dataSource - the data source to use to execute the SQL statement - specified as an any type to allow for any type of data source to be used, but the actual implementation will be specific to the server side only
270
+ * @param contextUser - the user that is requesting the data context (only required on server side operations, or if you want a different user's permissions to be used for the data context load)
271
+ */
272
+ async LoadFromSQL(dataSource, contextUser) {
273
+ throw new Error(`Not implemented in the base DataContextItem object. The server-side only sub-class of the DataContextItem object implements this method.
274
+ Make sure you include @memberjunction/data-context-server in your project and use the DataContextItemServer class instead of DataContextItem.
275
+ This happens automatically if you use the DataContext.Load() or DataContext.LoadMetadata() methods to load the data context.`);
276
+ }
116
277
  /**
117
278
  * Validates that the Data property is set. Valid states include a zero length array, or an array with one or more elements. If the Data property is not set, this method will return false
118
279
  * @returns
@@ -120,10 +281,16 @@ class DataContextItem {
120
281
  ValidateDataExists() {
121
282
  return this.Data ? this.Data.length >= 0 : false; // can have 0 to many rows, just need to make sure we have a Data object to work with
122
283
  }
123
- }
284
+ };
124
285
  exports.DataContextItem = DataContextItem;
125
- class DataContext {
286
+ exports.DataContextItem = DataContextItem = DataContextItem_1 = __decorate([
287
+ (0, global_1.RegisterClass)(DataContextItem) // this is the base class and the default implementation for the DataContextItem object, other implementations can be registered as well with higher priorities
288
+ ], DataContextItem);
289
+ let DataContext = class DataContext {
126
290
  constructor() {
291
+ /**
292
+ * The items in the data context
293
+ */
127
294
  this.Items = [];
128
295
  }
129
296
  /**
@@ -162,6 +329,111 @@ class DataContext {
162
329
  }
163
330
  return `{${sOutput}}`;
164
331
  }
165
- }
332
+ /**
333
+ * This method will load ONLY the metadata for the data context and data context items associated with the data context. This method will not load any data for the data context items. This method will return a promise that will resolve to true if the metadata was loaded successfully, and false if it was not.
334
+ * @param DataContextID - the ID of the data context to load
335
+ * @param contextUser - the user that is requesting the data context (only required on server side operations, or if you want a different user's permissions to be used for the data context load)
336
+ */
337
+ async LoadMetadata(DataContextID, contextUser) {
338
+ try {
339
+ const md = new core_1.Metadata();
340
+ const rv = new core_1.RunView();
341
+ const dciEntityInfo = md.Entities.find((e) => e.Name === 'Data Context Items');
342
+ if (!dciEntityInfo)
343
+ throw new Error(`Data Context Items entity not found`);
344
+ this.DataContextEntity = await md.GetEntityObject('Data Contexts', contextUser);
345
+ await this.DataContextEntity.Load(DataContextID);
346
+ this.ID = this.DataContextEntity.ID; // do it this way to make sure it loaded properly
347
+ if (!this.ID)
348
+ throw new Error(`Data Context ID: ${DataContextID} not found`);
349
+ const result = await rv.RunView({ EntityName: 'Data Context Items', IgnoreMaxRows: true, ExtraFilter: `DataContextID = ${DataContextID}` }, contextUser);
350
+ if (!result || !result.Success)
351
+ throw new Error(`Error running view to retrieve data context items for data context ID: ${DataContextID}`);
352
+ else {
353
+ const items = result.Results;
354
+ for (let i = 0; i < items.length; i++) {
355
+ const r = items[i];
356
+ const item = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(DataContextItem); // get a new data context item. Using class factory instead of directly instantiating the class so that we can use the class factory to override the default class with a custom class if another package registers a higher priority sub-class than our default impleemtnation - for example - server side implementations...
357
+ item.DataContextItemID = r.ID;
358
+ item.Type = r.Type;
359
+ switch (item.Type) {
360
+ case 'full_entity':
361
+ item.EntityID = r.EntityID;
362
+ break;
363
+ case 'single_record':
364
+ item.RecordID = r.RecordID;
365
+ item.EntityID = r.EntityID;
366
+ break;
367
+ case 'query':
368
+ item.QueryID = r.QueryID; // map the QueryID in our database to the RecordID field in the object model for runtime use
369
+ const q = md.Queries.find((q) => q.ID === item.QueryID);
370
+ item.RecordName = q?.Name;
371
+ break;
372
+ case 'sql':
373
+ item.SQL = r.SQL;
374
+ break;
375
+ case 'view':
376
+ item.ViewID = r.ViewID;
377
+ item.EntityID = r.EntityID;
378
+ if (item.ViewID) {
379
+ const v = await md.GetEntityObject('User Views', contextUser);
380
+ await v.Load(item.ViewID);
381
+ item.RecordName = v.Name;
382
+ item.ViewEntity = v;
383
+ }
384
+ break;
385
+ }
386
+ if (item.EntityID) {
387
+ item.Entity = md.Entities.find((e) => e.ID === item.EntityID);
388
+ item.EntityName = item.Entity.Name;
389
+ if (item.Type === 'full_entity')
390
+ item.RecordName = item.EntityName;
391
+ }
392
+ if (r.DataJSON && r.DataJSON.length > 0) {
393
+ item.Data = JSON.parse(r.DataJSON);
394
+ }
395
+ this.Items.push(item);
396
+ }
397
+ }
398
+ return true;
399
+ }
400
+ catch (ex) {
401
+ (0, core_1.LogError)(`Error in DataContext.LoadMetadata: ${ex && ex.message ? ex.message : ''}`);
402
+ return false;
403
+ }
404
+ }
405
+ /**
406
+ * This method will load the data for the data context items associated with the data context. This method must be called ONLY after the . This method will return a promise that will resolve to true if the data was loaded successfully, and false if it was not.
407
+ * @param dataSource - the data source to use to execute the SQL statement - specified as an any type to allow for any type of data source to be used, but the actual implementation will be specific to the server side only
408
+ * @param contextUser - the user that is requesting the data context (only required on server side operations, or if you want a different user's permissions to be used for the data context load)
409
+ */
410
+ async LoadData(dataSource, contextUser) {
411
+ try {
412
+ for (const item of this.Items) {
413
+ if (!await item.LoadData(dataSource, contextUser))
414
+ return false;
415
+ }
416
+ return true;
417
+ }
418
+ catch (e) {
419
+ (0, core_1.LogError)(`Error in DataContext.LoadData: ${e && e.message ? e.message : ''}`);
420
+ return false;
421
+ }
422
+ }
423
+ /**
424
+ * This method will load both the metadata and the data for the data context items associated with the data context. This method will return a promise that will resolve to true if the data was loaded successfully, and false if it was not.
425
+ * @param DataContextID - the ID of the data context to load
426
+ * @param dataSource - the data source to use to execute the SQL statement - specified as an any type to allow for any type of data source to be used, but the actual implementation will be specific to the server side only
427
+ * @param contextUser - the user that is requesting the data context (only required on server side operations, or if you want a different user's permissions to be used for the data context load)
428
+ * @returns
429
+ */
430
+ async Load(DataContextID, dataSource, contextUser) {
431
+ // load the metadata and THEN the data afterwards
432
+ return await this.LoadMetadata(DataContextID, contextUser) && await this.LoadData(dataSource, contextUser);
433
+ }
434
+ };
166
435
  exports.DataContext = DataContext;
436
+ exports.DataContext = DataContext = __decorate([
437
+ (0, global_1.RegisterClass)(DataContext) // this is the base class and the default implementation for the DataContext object, other implementations can be registered as well with higher priorities
438
+ ], DataContext);
167
439
  //# sourceMappingURL=types.js.map
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAGA,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,eAAe;IAA5B;QAyCI;;UAEE;QACF,WAAM,GAA2B,EAAE,CAAC;IAiJxC,CAAC;IAtHG;;OAEG;IACH,IAAI,WAAW;QACX,IAAI,GAAG,GAAW,EAAE,CAAC;QACrB,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAChB,K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CAAA;AAjKY,kCAAW;sBAAX,WAAW;IADvB,IAAA,sBAAa,EAAC,WAAW,CAAC,CAAC,2JAA2J;GAC1K,WAAW,CAiKvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/data-context",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "This library provides a set of objects that handle run-time loading of data contexts as well as types to be able to use across application tiers for interacting with data contexts.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,6 +19,7 @@
19
19
  "typescript": "^5.3.3"
20
20
  },
21
21
  "dependencies": {
22
+ "@memberjunction/global": "^0.9.132",
22
23
  "@memberjunction/core-entities": "^0.9.125"
23
24
  }
24
25
  }