@memberjunction/core-entities-server 2.73.0 → 2.74.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/custom/QueryEntity.server.d.ts +14 -0
- package/dist/custom/QueryEntity.server.d.ts.map +1 -0
- package/dist/custom/QueryEntity.server.js +447 -0
- package/dist/custom/QueryEntity.server.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EntitySaveOptions } from "@memberjunction/core";
|
|
2
|
+
import { QueryEntity } from "@memberjunction/core-entities";
|
|
3
|
+
export declare class QueryEntityExtended extends QueryEntity {
|
|
4
|
+
Save(options?: EntitySaveOptions): Promise<boolean>;
|
|
5
|
+
private extractAndSyncData;
|
|
6
|
+
private syncQueryParameters;
|
|
7
|
+
private removeAllQueryParameters;
|
|
8
|
+
private syncQueryFields;
|
|
9
|
+
private syncQueryEntities;
|
|
10
|
+
private removeAllQueryFields;
|
|
11
|
+
private removeAllQueryEntities;
|
|
12
|
+
}
|
|
13
|
+
export declare function LoadQueryEntityServerSubClass(): void;
|
|
14
|
+
//# sourceMappingURL=QueryEntity.server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryEntity.server.d.ts","sourceRoot":"","sources":["../../src/custom/QueryEntity.server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAA+B,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,WAAW,EAA6D,MAAM,+BAA+B,CAAC;AAoCvH,qBACa,mBAAoB,SAAQ,WAAW;IACjC,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;YAiDpD,kBAAkB;YAkElB,mBAAmB;YAiHnB,wBAAwB;YA8BxB,eAAe;YAwHf,iBAAiB;YAmFjB,oBAAoB;YA4BpB,sBAAsB;CA2BvC;AAED,wBAAgB,6BAA6B,SAAK"}
|
|
@@ -0,0 +1,447 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.LoadQueryEntityServerSubClass = exports.QueryEntityExtended = void 0;
|
|
10
|
+
const core_1 = require("@memberjunction/core");
|
|
11
|
+
const core_entities_1 = require("@memberjunction/core-entities");
|
|
12
|
+
const global_1 = require("@memberjunction/global");
|
|
13
|
+
const aiengine_1 = require("@memberjunction/aiengine");
|
|
14
|
+
const ai_prompts_1 = require("@memberjunction/ai-prompts");
|
|
15
|
+
const ai_core_plus_1 = require("@memberjunction/ai-core-plus");
|
|
16
|
+
let QueryEntityExtended = class QueryEntityExtended extends core_entities_1.QueryEntity {
|
|
17
|
+
async Save(options) {
|
|
18
|
+
const provider = core_1.Metadata.Provider;
|
|
19
|
+
// Start a database transaction
|
|
20
|
+
await provider.BeginTransaction();
|
|
21
|
+
try {
|
|
22
|
+
// Check if this is a new record or if SQL has changed
|
|
23
|
+
const sqlField = this.GetFieldByName('SQL');
|
|
24
|
+
const shouldExtractData = !this.IsSaved || sqlField.Dirty;
|
|
25
|
+
if (!this.IsSaved) {
|
|
26
|
+
await super.Save(options); // save new queries right away to get an ID
|
|
27
|
+
}
|
|
28
|
+
// Extract and sync parameters if needed
|
|
29
|
+
if (shouldExtractData && this.SQL && this.SQL.trim().length > 0) {
|
|
30
|
+
await this.extractAndSyncData();
|
|
31
|
+
}
|
|
32
|
+
else if (!this.SQL || this.SQL.trim().length === 0) {
|
|
33
|
+
// If SQL is empty, ensure UsesTemplate is false and remove all related data
|
|
34
|
+
this.UsesTemplate = false;
|
|
35
|
+
await Promise.all([
|
|
36
|
+
this.removeAllQueryParameters(),
|
|
37
|
+
this.removeAllQueryFields(),
|
|
38
|
+
this.removeAllQueryEntities()
|
|
39
|
+
]);
|
|
40
|
+
}
|
|
41
|
+
// Commit the transaction
|
|
42
|
+
// Save the query now to save any changes made by parameter extraction
|
|
43
|
+
// This will also save the UsesTemplate flag and any other changes
|
|
44
|
+
const saveResult = await super.Save(options);
|
|
45
|
+
if (!saveResult) {
|
|
46
|
+
await provider.RollbackTransaction();
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
await provider.CommitTransaction();
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
catch (e) {
|
|
55
|
+
// Rollback on any error
|
|
56
|
+
await provider.RollbackTransaction();
|
|
57
|
+
(0, core_1.LogError)('Failed to save query and extract parameters:', e);
|
|
58
|
+
this.LatestResult?.Errors.push(e);
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async extractAndSyncData() {
|
|
63
|
+
try {
|
|
64
|
+
// Ensure AIEngine is configured
|
|
65
|
+
await aiengine_1.AIEngine.Instance.Config(false, this.ContextCurrentUser);
|
|
66
|
+
// Find the Template Parameter Extraction prompt (we'll reuse it for SQL)
|
|
67
|
+
const aiPrompt = aiengine_1.AIEngine.Instance.Prompts.find(p => p.Name === 'SQL Query Parameter Extraction' &&
|
|
68
|
+
p.Category === 'MJ: System');
|
|
69
|
+
if (!aiPrompt) {
|
|
70
|
+
// Prompt not configured, non-fatal, just warn and return
|
|
71
|
+
console.warn('AI prompt for SQL Query Parameter Extraction not found. Skipping parameter extraction.');
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
// Prepare prompt data - we'll send the SQL as templateText since the prompt
|
|
75
|
+
// is designed to extract Nunjucks parameters from any template content
|
|
76
|
+
const promptData = {
|
|
77
|
+
templateText: this.SQL
|
|
78
|
+
};
|
|
79
|
+
// Execute the prompt using AIPromptRunner
|
|
80
|
+
const promptRunner = new ai_prompts_1.AIPromptRunner();
|
|
81
|
+
const params = new ai_core_plus_1.AIPromptParams();
|
|
82
|
+
params.prompt = aiPrompt;
|
|
83
|
+
params.data = promptData;
|
|
84
|
+
params.contextUser = this.ContextCurrentUser;
|
|
85
|
+
const result = await promptRunner.ExecutePrompt(params);
|
|
86
|
+
if (!result.success || !result.result) {
|
|
87
|
+
(0, core_1.LogError)('Failed to extract query parameters:', result.errorMessage);
|
|
88
|
+
// Set UsesTemplate to false if extraction fails
|
|
89
|
+
this.UsesTemplate = false;
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
// Process the extracted data in parallel
|
|
93
|
+
const syncPromises = [
|
|
94
|
+
this.syncQueryParameters(result.result.parameters)
|
|
95
|
+
];
|
|
96
|
+
if (result.result.selectClause) {
|
|
97
|
+
syncPromises.push(this.syncQueryFields(result.result.selectClause));
|
|
98
|
+
}
|
|
99
|
+
if (result.result.fromClause) {
|
|
100
|
+
syncPromises.push(this.syncQueryEntities(result.result.fromClause));
|
|
101
|
+
}
|
|
102
|
+
await Promise.all(syncPromises);
|
|
103
|
+
// Update UsesTemplate flag based on whether parameters were found
|
|
104
|
+
this.UsesTemplate = result.result.parameters.length > 0;
|
|
105
|
+
}
|
|
106
|
+
catch (e) {
|
|
107
|
+
(0, core_1.LogError)('Error extracting query parameters:', e);
|
|
108
|
+
// Set UsesTemplate to false on error
|
|
109
|
+
this.UsesTemplate = false;
|
|
110
|
+
// Don't throw here - we don't want to fail the save if parameter extraction fails
|
|
111
|
+
// The user can still manually manage parameters if needed
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
async syncQueryParameters(extractedParams) {
|
|
115
|
+
const md = new core_1.Metadata();
|
|
116
|
+
try {
|
|
117
|
+
// Get existing query parameters
|
|
118
|
+
const rv = new core_1.RunView();
|
|
119
|
+
const existingParams = [];
|
|
120
|
+
if (this.IsSaved) {
|
|
121
|
+
const existingParamsResult = await rv.RunView({
|
|
122
|
+
EntityName: 'MJ: Query Parameters',
|
|
123
|
+
ExtraFilter: `QueryID='${this.ID}'`,
|
|
124
|
+
ResultType: 'entity_object'
|
|
125
|
+
}, this.ContextCurrentUser);
|
|
126
|
+
if (!existingParamsResult.Success) {
|
|
127
|
+
throw new Error(`Failed to load existing query parameters: ${existingParamsResult.ErrorMessage}`);
|
|
128
|
+
}
|
|
129
|
+
existingParams.push(...existingParamsResult.Results || []);
|
|
130
|
+
}
|
|
131
|
+
// Convert extracted param names to lowercase for comparison
|
|
132
|
+
const extractedParamNames = extractedParams.map(p => p.name.toLowerCase());
|
|
133
|
+
// Find parameters to add, update, or remove
|
|
134
|
+
const paramsToAdd = extractedParams.filter(p => !existingParams.some(ep => ep.Name.toLowerCase() === p.name.toLowerCase()));
|
|
135
|
+
const paramsToUpdate = existingParams.filter(ep => extractedParams.some(p => p.name.toLowerCase() === ep.Name.toLowerCase()));
|
|
136
|
+
const paramsToRemove = existingParams.filter(ep => !extractedParamNames.includes(ep.Name.toLowerCase()));
|
|
137
|
+
// Prepare all save/delete operations
|
|
138
|
+
const promises = [];
|
|
139
|
+
// Add new parameters
|
|
140
|
+
for (const param of paramsToAdd) {
|
|
141
|
+
const newParam = await md.GetEntityObject('MJ: Query Parameters', this.ContextCurrentUser);
|
|
142
|
+
newParam.QueryID = this.ID;
|
|
143
|
+
newParam.Name = param.name;
|
|
144
|
+
switch (param.type) {
|
|
145
|
+
case "array":
|
|
146
|
+
case "boolean":
|
|
147
|
+
case "string":
|
|
148
|
+
case "date":
|
|
149
|
+
case "number":
|
|
150
|
+
newParam.Type = param.type;
|
|
151
|
+
break;
|
|
152
|
+
default:
|
|
153
|
+
newParam.Type = 'string'; // Default to string if unknown
|
|
154
|
+
}
|
|
155
|
+
newParam.IsRequired = false; // Like templates, make all optional to avoid breaking queries
|
|
156
|
+
newParam.DefaultValue = param.defaultValue;
|
|
157
|
+
newParam.Description = param.description;
|
|
158
|
+
newParam.DetectionMethod = 'AI'; // Indicate this was found via AI
|
|
159
|
+
promises.push(newParam.Save());
|
|
160
|
+
}
|
|
161
|
+
// Update existing parameters if properties changed
|
|
162
|
+
for (const existingParam of paramsToUpdate) {
|
|
163
|
+
const extractedParam = extractedParams.find(p => p.name.toLowerCase() === existingParam.Name.toLowerCase());
|
|
164
|
+
if (extractedParam) {
|
|
165
|
+
let hasChanges = false;
|
|
166
|
+
// Check each property for changes
|
|
167
|
+
if (existingParam.Type !== extractedParam.type) {
|
|
168
|
+
existingParam.Type = extractedParam.type;
|
|
169
|
+
hasChanges = true;
|
|
170
|
+
}
|
|
171
|
+
if (existingParam.IsRequired !== extractedParam.isRequired) {
|
|
172
|
+
existingParam.IsRequired = false; // Keep all optional like templates
|
|
173
|
+
hasChanges = true;
|
|
174
|
+
}
|
|
175
|
+
if (existingParam.DefaultValue !== extractedParam.defaultValue) {
|
|
176
|
+
existingParam.DefaultValue = extractedParam.defaultValue;
|
|
177
|
+
hasChanges = true;
|
|
178
|
+
}
|
|
179
|
+
if (existingParam.Description !== extractedParam.description) {
|
|
180
|
+
existingParam.Description = extractedParam.description;
|
|
181
|
+
hasChanges = true;
|
|
182
|
+
}
|
|
183
|
+
if (existingParam.DetectionMethod !== 'AI') {
|
|
184
|
+
existingParam.DetectionMethod = 'AI';
|
|
185
|
+
hasChanges = true;
|
|
186
|
+
}
|
|
187
|
+
if (hasChanges) {
|
|
188
|
+
promises.push(existingParam.Save());
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
// Remove parameters that are no longer in the SQL
|
|
193
|
+
for (const paramToRemove of paramsToRemove) {
|
|
194
|
+
promises.push(paramToRemove.Delete());
|
|
195
|
+
}
|
|
196
|
+
// Execute all operations in parallel
|
|
197
|
+
if (promises.length > 0) {
|
|
198
|
+
await Promise.all(promises);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
catch (e) {
|
|
202
|
+
(0, core_1.LogError)('Failed to sync query parameters:', e);
|
|
203
|
+
throw e; // Re-throw since we're in a transaction
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
async removeAllQueryParameters() {
|
|
207
|
+
try {
|
|
208
|
+
if (this.IsSaved) {
|
|
209
|
+
// Get all existing query parameters
|
|
210
|
+
const rv = new core_1.RunView();
|
|
211
|
+
const existingParamsResult = await rv.RunView({
|
|
212
|
+
EntityName: 'MJ: Query Parameters',
|
|
213
|
+
ExtraFilter: `QueryID='${this.ID}'`,
|
|
214
|
+
ResultType: 'entity_object'
|
|
215
|
+
}, this.ContextCurrentUser);
|
|
216
|
+
if (!existingParamsResult.Success) {
|
|
217
|
+
throw new Error(`Failed to load existing query parameters: ${existingParamsResult.ErrorMessage}`);
|
|
218
|
+
}
|
|
219
|
+
const existingParams = existingParamsResult.Results || [];
|
|
220
|
+
// Delete all existing parameters
|
|
221
|
+
const deletePromises = existingParams.map(param => param.Delete());
|
|
222
|
+
if (deletePromises.length > 0) {
|
|
223
|
+
await Promise.all(deletePromises);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
catch (e) {
|
|
228
|
+
(0, core_1.LogError)('Failed to remove query parameters:', e);
|
|
229
|
+
throw e; // Re-throw since we're in a transaction
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
async syncQueryFields(extractedFields) {
|
|
233
|
+
const md = new core_1.Metadata();
|
|
234
|
+
try {
|
|
235
|
+
const existingFields = [];
|
|
236
|
+
if (this.IsSaved) {
|
|
237
|
+
// Get existing query fields
|
|
238
|
+
const rv = new core_1.RunView();
|
|
239
|
+
const existingFieldsResult = await rv.RunView({
|
|
240
|
+
EntityName: 'Query Fields',
|
|
241
|
+
ExtraFilter: `QueryID='${this.ID}'`,
|
|
242
|
+
ResultType: 'entity_object'
|
|
243
|
+
}, this.ContextCurrentUser);
|
|
244
|
+
if (!existingFieldsResult.Success) {
|
|
245
|
+
throw new Error(`Failed to load existing query fields: ${existingFieldsResult.ErrorMessage}`);
|
|
246
|
+
}
|
|
247
|
+
existingFields.push(...existingFieldsResult.Results || []);
|
|
248
|
+
}
|
|
249
|
+
// Convert extracted field names to lowercase for comparison
|
|
250
|
+
const extractedFieldNames = extractedFields.map(f => f.name.toLowerCase());
|
|
251
|
+
// Find fields to add, update, or remove
|
|
252
|
+
const fieldsToAdd = extractedFields.filter(f => !existingFields.some(ef => ef.Name.toLowerCase() === f.name.toLowerCase()));
|
|
253
|
+
const fieldsToUpdate = existingFields.filter(ef => extractedFields.some(f => f.name.toLowerCase() === ef.Name.toLowerCase()));
|
|
254
|
+
const fieldsToRemove = existingFields.filter(ef => !extractedFieldNames.includes(ef.Name.toLowerCase()));
|
|
255
|
+
// Prepare all save/delete operations
|
|
256
|
+
const promises = [];
|
|
257
|
+
// Add new fields
|
|
258
|
+
for (let i = 0; i < fieldsToAdd.length; i++) {
|
|
259
|
+
const field = fieldsToAdd[i];
|
|
260
|
+
const newField = await md.GetEntityObject('Query Fields', this.ContextCurrentUser);
|
|
261
|
+
newField.QueryID = this.ID;
|
|
262
|
+
newField.Name = field.name;
|
|
263
|
+
newField.Description = field.description;
|
|
264
|
+
newField.Sequence = i + 1;
|
|
265
|
+
// Map type to SQL types
|
|
266
|
+
switch (field.type) {
|
|
267
|
+
case 'number':
|
|
268
|
+
newField.SQLBaseType = 'decimal';
|
|
269
|
+
newField.SQLFullType = 'decimal(18,2)';
|
|
270
|
+
break;
|
|
271
|
+
case 'date':
|
|
272
|
+
newField.SQLBaseType = 'datetime';
|
|
273
|
+
newField.SQLFullType = 'datetime';
|
|
274
|
+
break;
|
|
275
|
+
case 'boolean':
|
|
276
|
+
newField.SQLBaseType = 'bit';
|
|
277
|
+
newField.SQLFullType = 'bit';
|
|
278
|
+
break;
|
|
279
|
+
default:
|
|
280
|
+
newField.SQLBaseType = 'nvarchar';
|
|
281
|
+
newField.SQLFullType = 'nvarchar(MAX)';
|
|
282
|
+
}
|
|
283
|
+
newField.IsComputed = field.dynamicName || false;
|
|
284
|
+
if (field.dynamicName) {
|
|
285
|
+
newField.SourceFieldName = field.name;
|
|
286
|
+
}
|
|
287
|
+
promises.push(newField.Save());
|
|
288
|
+
}
|
|
289
|
+
// Update existing fields if properties changed
|
|
290
|
+
for (const existingField of fieldsToUpdate) {
|
|
291
|
+
const extractedField = extractedFields.find(f => f.name.toLowerCase() === existingField.Name.toLowerCase());
|
|
292
|
+
if (extractedField) {
|
|
293
|
+
let hasChanges = false;
|
|
294
|
+
if (existingField.Description !== extractedField.description) {
|
|
295
|
+
existingField.Description = extractedField.description;
|
|
296
|
+
hasChanges = true;
|
|
297
|
+
}
|
|
298
|
+
const isDynamic = extractedField.dynamicName || false;
|
|
299
|
+
if (existingField.IsComputed !== isDynamic) {
|
|
300
|
+
existingField.IsComputed = isDynamic;
|
|
301
|
+
hasChanges = true;
|
|
302
|
+
}
|
|
303
|
+
if (existingField.Sequence !== extractedFields.indexOf(extractedField) + 1) {
|
|
304
|
+
existingField.Sequence = extractedFields.indexOf(extractedField) + 1;
|
|
305
|
+
hasChanges = true;
|
|
306
|
+
}
|
|
307
|
+
if (hasChanges) {
|
|
308
|
+
promises.push(existingField.Save());
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
// Remove fields that are no longer in the SQL
|
|
313
|
+
for (const fieldToRemove of fieldsToRemove) {
|
|
314
|
+
promises.push(fieldToRemove.Delete());
|
|
315
|
+
}
|
|
316
|
+
// Execute all operations in parallel
|
|
317
|
+
if (promises.length > 0) {
|
|
318
|
+
await Promise.all(promises);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
catch (e) {
|
|
322
|
+
(0, core_1.LogError)('Failed to sync query fields:', e);
|
|
323
|
+
throw e; // Re-throw since we're in a transaction
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
async syncQueryEntities(extractedEntities) {
|
|
327
|
+
const md = new core_1.Metadata();
|
|
328
|
+
try {
|
|
329
|
+
// Get existing query entities
|
|
330
|
+
const existingEntities = [];
|
|
331
|
+
if (this.IsSaved) {
|
|
332
|
+
const rv = new core_1.RunView();
|
|
333
|
+
const existingEntitiesResult = await rv.RunView({
|
|
334
|
+
EntityName: 'Query Entities',
|
|
335
|
+
ExtraFilter: `QueryID='${this.ID}'`,
|
|
336
|
+
ResultType: 'entity_object'
|
|
337
|
+
}, this.ContextCurrentUser);
|
|
338
|
+
if (!existingEntitiesResult.Success) {
|
|
339
|
+
throw new Error(`Failed to load existing query entities: ${existingEntitiesResult.ErrorMessage}`);
|
|
340
|
+
}
|
|
341
|
+
existingEntities.push(...existingEntitiesResult.Results || []);
|
|
342
|
+
}
|
|
343
|
+
// Look up MJ entity IDs for the extracted base views using pre-loaded metadata
|
|
344
|
+
const entityMappings = extractedEntities.map(extracted => {
|
|
345
|
+
// Find matching entity in metadata
|
|
346
|
+
const matchingEntity = md.Entities.find(e => (e.BaseView.trim().toLowerCase() === extracted.baseViewOrTable?.trim().toLowerCase() || // match on the view
|
|
347
|
+
e.BaseTable.trim().toLowerCase() === extracted.baseViewOrTable?.trim().toLowerCase() // OR the base table
|
|
348
|
+
)
|
|
349
|
+
&&
|
|
350
|
+
(e.SchemaName.trim().toLowerCase() === extracted.schemaName?.trim().toLowerCase() ||
|
|
351
|
+
(!extracted.schemaName || extracted.schemaName.trim().length === 0) && e.SchemaName.trim().toLowerCase() === 'dbo') // match on schema, OR if no schema specified, match dbo if the entity is in dbo
|
|
352
|
+
);
|
|
353
|
+
if (matchingEntity) {
|
|
354
|
+
return {
|
|
355
|
+
extracted,
|
|
356
|
+
entityID: matchingEntity.ID,
|
|
357
|
+
entityName: matchingEntity.Name
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
return null;
|
|
361
|
+
}).filter(m => m !== null);
|
|
362
|
+
// Find entities to add or remove
|
|
363
|
+
const entitiesToAdd = entityMappings.filter(mapping => !existingEntities.some(ee => ee.EntityID === mapping.entityID));
|
|
364
|
+
const entitiesToRemove = existingEntities.filter(ee => !entityMappings.some(mapping => mapping.entityID === ee.EntityID));
|
|
365
|
+
// Prepare all save/delete operations
|
|
366
|
+
const promises = [];
|
|
367
|
+
// Add new query entity relationships
|
|
368
|
+
for (const mapping of entitiesToAdd) {
|
|
369
|
+
if (mapping) {
|
|
370
|
+
const newEntity = await md.GetEntityObject('Query Entities', this.ContextCurrentUser);
|
|
371
|
+
newEntity.QueryID = this.ID;
|
|
372
|
+
newEntity.EntityID = mapping.entityID;
|
|
373
|
+
newEntity.DetectionMethod = 'AI';
|
|
374
|
+
newEntity.AutoDetectConfidenceScore = 0.95; // High confidence since we're matching exact base view names
|
|
375
|
+
promises.push(newEntity.Save());
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
// Remove entities that are no longer in the SQL
|
|
379
|
+
for (const entityToRemove of entitiesToRemove) {
|
|
380
|
+
promises.push(entityToRemove.Delete());
|
|
381
|
+
}
|
|
382
|
+
// Execute all operations in parallel
|
|
383
|
+
if (promises.length > 0) {
|
|
384
|
+
await Promise.all(promises);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
catch (e) {
|
|
388
|
+
(0, core_1.LogError)('Failed to sync query entities:', e);
|
|
389
|
+
throw e; // Re-throw since we're in a transaction
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
async removeAllQueryFields() {
|
|
393
|
+
try {
|
|
394
|
+
if (!this.IsSaved)
|
|
395
|
+
return; // Nothing to remove if not saved
|
|
396
|
+
const rv = new core_1.RunView();
|
|
397
|
+
const existingFieldsResult = await rv.RunView({
|
|
398
|
+
EntityName: 'Query Fields',
|
|
399
|
+
ExtraFilter: `QueryID='${this.ID}'`,
|
|
400
|
+
ResultType: 'entity_object'
|
|
401
|
+
}, this.ContextCurrentUser);
|
|
402
|
+
if (!existingFieldsResult.Success) {
|
|
403
|
+
throw new Error(`Failed to load existing query fields: ${existingFieldsResult.ErrorMessage}`);
|
|
404
|
+
}
|
|
405
|
+
const existingFields = existingFieldsResult.Results || [];
|
|
406
|
+
const deletePromises = existingFields.map(field => field.Delete());
|
|
407
|
+
if (deletePromises.length > 0) {
|
|
408
|
+
await Promise.all(deletePromises);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
catch (e) {
|
|
412
|
+
(0, core_1.LogError)('Failed to remove query fields:', e);
|
|
413
|
+
throw e;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
async removeAllQueryEntities() {
|
|
417
|
+
try {
|
|
418
|
+
if (!this.IsSaved)
|
|
419
|
+
return; // Nothing to remove if not saved
|
|
420
|
+
const rv = new core_1.RunView();
|
|
421
|
+
const existingEntitiesResult = await rv.RunView({
|
|
422
|
+
EntityName: 'Query Entities',
|
|
423
|
+
ExtraFilter: `QueryID='${this.ID}'`,
|
|
424
|
+
ResultType: 'entity_object'
|
|
425
|
+
}, this.ContextCurrentUser);
|
|
426
|
+
if (!existingEntitiesResult.Success) {
|
|
427
|
+
throw new Error(`Failed to load existing query entities: ${existingEntitiesResult.ErrorMessage}`);
|
|
428
|
+
}
|
|
429
|
+
const existingEntities = existingEntitiesResult.Results || [];
|
|
430
|
+
const deletePromises = existingEntities.map(entity => entity.Delete());
|
|
431
|
+
if (deletePromises.length > 0) {
|
|
432
|
+
await Promise.all(deletePromises);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
catch (e) {
|
|
436
|
+
(0, core_1.LogError)('Failed to remove query entities:', e);
|
|
437
|
+
throw e;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
exports.QueryEntityExtended = QueryEntityExtended;
|
|
442
|
+
exports.QueryEntityExtended = QueryEntityExtended = __decorate([
|
|
443
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'Queries')
|
|
444
|
+
], QueryEntityExtended);
|
|
445
|
+
function LoadQueryEntityServerSubClass() { }
|
|
446
|
+
exports.LoadQueryEntityServerSubClass = LoadQueryEntityServerSubClass;
|
|
447
|
+
//# sourceMappingURL=QueryEntity.server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryEntity.server.js","sourceRoot":"","sources":["../../src/custom/QueryEntity.server.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+CAAkG;AAClG,iEAAuH;AACvH,mDAAuD;AACvD,uDAAoD;AAEpD,2DAA4D;AAC5D,+DAA8D;AAgCvD,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,2BAAW;IACvC,KAAK,CAAC,IAAI,CAAC,OAA2B;QAC3C,MAAM,QAAQ,GAAG,eAAQ,CAAC,QAAiC,CAAC;QAE5D,+BAA+B;QAC/B,MAAM,QAAQ,CAAC,gBAAgB,EAAE,CAAC;QAElC,IAAI,CAAC;YACD,sDAAsD;YACtD,MAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YAC5C,MAAM,iBAAiB,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC;YAE1D,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;gBAChB,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,2CAA2C;YAC1E,CAAC;YAED,wCAAwC;YACxC,IAAI,iBAAiB,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC9D,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;YACpC,CAAC;iBAAM,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CA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,CAAC;YAChD,MAAM,CAAC,CAAC;QACZ,CAAC;IACL,CAAC;CACJ,CAAA;AArgBY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,sBAAa,EAAC,iBAAU,EAAE,SAAS,CAAC;GACxB,mBAAmB,CAqgB/B;AAED,SAAgB,6BAA6B,KAAI,CAAC;AAAlD,sEAAkD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './custom/AIPromptEntityExtended.server';
|
|
2
2
|
export * from './custom/AIPromptRunEntity.server';
|
|
3
3
|
export * from './custom/DuplicateRunEntity.server';
|
|
4
|
+
export * from './custom/QueryEntity.server';
|
|
4
5
|
export * from './custom/reportEntity.server';
|
|
5
6
|
export * from './custom/TemplateContentEntity.server';
|
|
6
7
|
export * from './custom/userViewEntity.server';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAG7C,wBAAgB,gCAAgC,IAAI,IAAI,CASvD"}
|
package/dist/index.js
CHANGED
|
@@ -19,12 +19,14 @@ const ActionEntity_server_1 = require("./custom/ActionEntity.server");
|
|
|
19
19
|
const AIPromptEntityExtended_server_1 = require("./custom/AIPromptEntityExtended.server");
|
|
20
20
|
const AIPromptRunEntity_server_1 = require("./custom/AIPromptRunEntity.server");
|
|
21
21
|
const DuplicateRunEntity_server_1 = require("./custom/DuplicateRunEntity.server");
|
|
22
|
+
const QueryEntity_server_1 = require("./custom/QueryEntity.server");
|
|
22
23
|
const reportEntity_server_1 = require("./custom/reportEntity.server");
|
|
23
24
|
const TemplateContentEntity_server_1 = require("./custom/TemplateContentEntity.server");
|
|
24
25
|
const userViewEntity_server_1 = require("./custom/userViewEntity.server");
|
|
25
26
|
__exportStar(require("./custom/AIPromptEntityExtended.server"), exports);
|
|
26
27
|
__exportStar(require("./custom/AIPromptRunEntity.server"), exports);
|
|
27
28
|
__exportStar(require("./custom/DuplicateRunEntity.server"), exports);
|
|
29
|
+
__exportStar(require("./custom/QueryEntity.server"), exports);
|
|
28
30
|
__exportStar(require("./custom/reportEntity.server"), exports);
|
|
29
31
|
__exportStar(require("./custom/TemplateContentEntity.server"), exports);
|
|
30
32
|
__exportStar(require("./custom/userViewEntity.server"), exports);
|
|
@@ -34,6 +36,7 @@ function LoadCoreEntitiesServerSubClasses() {
|
|
|
34
36
|
(0, AIPromptEntityExtended_server_1.LoadAIPromptEntityExtendedServerSubClass)();
|
|
35
37
|
(0, AIPromptRunEntity_server_1.LoadAIPromptRunEntityServerSubClass)();
|
|
36
38
|
(0, DuplicateRunEntity_server_1.LoadDuplicateRunEntityServerSubClass)();
|
|
39
|
+
(0, QueryEntity_server_1.LoadQueryEntityServerSubClass)();
|
|
37
40
|
(0, reportEntity_server_1.LoadReportEntityServerSubClass)();
|
|
38
41
|
(0, TemplateContentEntity_server_1.LoadTemplateContentEntityServerSubClass)();
|
|
39
42
|
(0, userViewEntity_server_1.LoadUserViewEntityServerSubClass)();
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sEAAsE;AACtE,0FAAkG;AAClG,gFAAwF;AACxF,kFAA0F;AAC1F,sEAA8E;AAC9E,wFAAgG;AAChG,0EAAkF;AAElF,yEAAuD;AACvD,oEAAkD;AAClD,qEAAmD;AACnD,+DAA6C;AAC7C,wEAAsD;AACtD,iEAA+C;AAC/C,+DAA6C;AAE7C,wFAAwF;AACxF,SAAgB,gCAAgC;IAC5C,IAAA,wEAAwC,GAAE,CAAC;IAC3C,IAAA,8DAAmC,GAAE,CAAC;IACtC,IAAA,gEAAoC,GAAE,CAAC;IACvC,IAAA,oDAA8B,GAAE,CAAC;IACjC,IAAA,sEAAuC,GAAE,CAAC;IAC1C,IAAA,wDAAgC,GAAE,CAAC;IACnC,IAAA,4CAAsB,GAAE,CAAC;AAC7B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sEAAsE;AACtE,0FAAkG;AAClG,gFAAwF;AACxF,kFAA0F;AAC1F,oEAA4E;AAC5E,sEAA8E;AAC9E,wFAAgG;AAChG,0EAAkF;AAElF,yEAAuD;AACvD,oEAAkD;AAClD,qEAAmD;AACnD,8DAA4C;AAC5C,+DAA6C;AAC7C,wEAAsD;AACtD,iEAA+C;AAC/C,+DAA6C;AAE7C,wFAAwF;AACxF,SAAgB,gCAAgC;IAC5C,IAAA,wEAAwC,GAAE,CAAC;IAC3C,IAAA,8DAAmC,GAAE,CAAC;IACtC,IAAA,gEAAoC,GAAE,CAAC;IACvC,IAAA,kDAA6B,GAAE,CAAC;IAChC,IAAA,oDAA8B,GAAE,CAAC;IACjC,IAAA,sEAAuC,GAAE,CAAC;IAC1C,IAAA,wDAAgC,GAAE,CAAC;IACnC,IAAA,4CAAsB,GAAE,CAAC;AAC7B,CAAC;AATD,4EASC;AACD,gCAAgC,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/core-entities-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.74.0",
|
|
4
4
|
"description": "Entity subclasses for the metadata layer of MemberJunction that are only used on server side applications like MJAPI, distributed as part of each release of MemberJunction",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"typescript": "^5.4.5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@memberjunction/core": "2.
|
|
23
|
-
"@memberjunction/global": "2.
|
|
24
|
-
"@memberjunction/core-entities": "2.
|
|
25
|
-
"@memberjunction/ai-vector-dupe": "2.
|
|
26
|
-
"@memberjunction/ai-core-plus": "2.
|
|
27
|
-
"@memberjunction/ai-prompts": "2.
|
|
28
|
-
"@memberjunction/skip-types": "2.
|
|
29
|
-
"@memberjunction/aiengine": "2.
|
|
30
|
-
"@memberjunction/sqlserver-dataprovider": "2.
|
|
22
|
+
"@memberjunction/core": "2.74.0",
|
|
23
|
+
"@memberjunction/global": "2.74.0",
|
|
24
|
+
"@memberjunction/core-entities": "2.74.0",
|
|
25
|
+
"@memberjunction/ai-vector-dupe": "2.74.0",
|
|
26
|
+
"@memberjunction/ai-core-plus": "2.74.0",
|
|
27
|
+
"@memberjunction/ai-prompts": "2.74.0",
|
|
28
|
+
"@memberjunction/skip-types": "2.74.0",
|
|
29
|
+
"@memberjunction/aiengine": "2.74.0",
|
|
30
|
+
"@memberjunction/sqlserver-dataprovider": "2.74.0",
|
|
31
31
|
"zod": "^3.23.8"
|
|
32
32
|
}
|
|
33
33
|
}
|