@memberjunction/core-entities-server 2.62.0 → 2.63.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.
|
@@ -62,9 +62,9 @@ export declare class AIPromptEntityExtendedServer extends AIPromptEntityExtended
|
|
|
62
62
|
* be overridden by subclasses to provide custom logic for updating the Template Contents.
|
|
63
63
|
* @param md
|
|
64
64
|
* @param tg
|
|
65
|
-
* @returns
|
|
65
|
+
* @returns true if the update was successful, false otherwise.
|
|
66
66
|
*/
|
|
67
|
-
protected UpdateLinkedTemplateContents(md: IMetadataProvider, tg?: TransactionGroupBase): Promise<
|
|
67
|
+
protected UpdateLinkedTemplateContents(md: IMetadataProvider, tg?: TransactionGroupBase): Promise<boolean>;
|
|
68
68
|
/**
|
|
69
69
|
* This method is used to create a linked Template record and Template Contents record for this AI Prompt.
|
|
70
70
|
* It is called automatically when the AI Prompt is saved and the TemplateID is null.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIPromptEntityExtended.server.d.ts","sourceRoot":"","sources":["../../src/custom/AIPromptEntityExtended.server.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AIPromptEntityExtended.server.d.ts","sourceRoot":"","sources":["../../src/custom/AIPromptEntityExtended.server.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,iBAAiB,EAAE,iBAAiB,EAAmD,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE/L,OAAO,EAA4E,cAAc,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEjK;;;;;;GAMG;AACH,qBACa,4BAA6B,SAAQ,sBAAsB;IACpE,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAuB;IAC5D;;;;OAIG;IACH,WAAkB,qBAAqB,IAAI,MAAM,GAAG,IAAI,CAEvD;IACD,WAAkB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAE3D;IAED,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAuB;IAC7D;;;;;;;;;;OAUG;IACH,WAAkB,sBAAsB,IAAI,MAAM,GAAG,IAAI,CAExD;IACD,WAAkB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAE5D;IAED;;;;;;;;;OASG;cACa,iCAAiC,IAAI,OAAO,CAAC,MAAM,CAAC;IA0BpE;;;;;;OAMG;cACa,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAoBzE;;;;;;OAMG;IACY,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;IA8ClE;;;;;;OAMG;cACa,4BAA4B,CAAC,EAAE,EAAE,iBAAiB,EAAE,EAAE,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;IAoDhH;;;;;OAKG;cACa,uCAAuC,CAAC,EAAE,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC;IA2C9G;;;OAGG;cACa,wBAAwB,IAAI,OAAO,CAAC,MAAM,CAAC;CAoB9D;AAGD,wBAAgB,wCAAwC,SAAK"}
|
|
@@ -115,20 +115,45 @@ let AIPromptEntityExtendedServer = AIPromptEntityExtendedServer_1 = class AIProm
|
|
|
115
115
|
async Save(options) {
|
|
116
116
|
const md = this.ProviderToUse;
|
|
117
117
|
// now do the work of creating or updating the Template and Template Contents
|
|
118
|
+
let success = true;
|
|
118
119
|
if (this.TemplateID === null && this.TemplateText?.trim().length > 0) {
|
|
119
120
|
const template = await this.CreateLinkedTemplateAndTemplateContents(md);
|
|
120
121
|
if (template) {
|
|
121
122
|
this.TemplateID = template.ID; // link the Template to this AI Prompt
|
|
122
123
|
}
|
|
124
|
+
else {
|
|
125
|
+
success = false; // if we failed to create the linked Template, we should not save the AI Prompt
|
|
126
|
+
// we need to push an error to the Results of the BaseEntity
|
|
127
|
+
const result = new core_1.BaseEntityResult();
|
|
128
|
+
result.Success = false;
|
|
129
|
+
result.Message = "Failed to create linked Template for the AI Prompt. Please check the logs for more details.";
|
|
130
|
+
this.ResultHistory.push(result);
|
|
131
|
+
}
|
|
123
132
|
}
|
|
124
133
|
else if (this.TemplateID && this.TemplateText?.trim().length > 0 && this.TemplateTextDirty) {
|
|
125
134
|
// we have a linked Template, so update the Template Contents associated with it
|
|
126
|
-
await this.UpdateLinkedTemplateContents(md)
|
|
135
|
+
if (!await this.UpdateLinkedTemplateContents(md)) {
|
|
136
|
+
success = false; // if we failed to update the linked Template Contents, we should not save the AI Prompt
|
|
137
|
+
// we need to push an error to the Results of the BaseEntity
|
|
138
|
+
const result = new core_1.BaseEntityResult();
|
|
139
|
+
result.Success = false;
|
|
140
|
+
result.Message = "Failed to update linked Template Contents for the AI Prompt. Please check the logs for more details.";
|
|
141
|
+
this.ResultHistory.push(result);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
if (success) {
|
|
145
|
+
// now save the AI Prompt itself
|
|
146
|
+
if (await super.Save(options)) {
|
|
147
|
+
this._originalTemplateText = this.TemplateText; // store the original text for comparison later
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
127
153
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
return true;
|
|
154
|
+
else {
|
|
155
|
+
// if we failed to create or update the linked Template or Template Contents, we should not save the AI Prompt
|
|
156
|
+
return false;
|
|
132
157
|
}
|
|
133
158
|
}
|
|
134
159
|
/**
|
|
@@ -136,47 +161,57 @@ let AIPromptEntityExtendedServer = AIPromptEntityExtendedServer_1 = class AIProm
|
|
|
136
161
|
* be overridden by subclasses to provide custom logic for updating the Template Contents.
|
|
137
162
|
* @param md
|
|
138
163
|
* @param tg
|
|
139
|
-
* @returns
|
|
164
|
+
* @returns true if the update was successful, false otherwise.
|
|
140
165
|
*/
|
|
141
166
|
async UpdateLinkedTemplateContents(md, tg) {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
167
|
+
try {
|
|
168
|
+
// we have a linked Template, so update the Template Contents associated with it
|
|
169
|
+
if (!this.TemplateID) {
|
|
170
|
+
throw new Error("Cannot update linked Template Contents because TemplateID is null.");
|
|
171
|
+
}
|
|
172
|
+
const rv = new core_1.RunView(this.ProviderToUse);
|
|
173
|
+
const result = await rv.RunView({
|
|
174
|
+
EntityName: "Template Contents",
|
|
175
|
+
ExtraFilter: `TemplateID='${this.TemplateID}'`,
|
|
176
|
+
OrderBy: "__mj_CreatedAt ASC", // first one
|
|
177
|
+
ResultType: 'entity_object',
|
|
178
|
+
MaxRows: 1 // should only be one row
|
|
179
|
+
}, this.ContextCurrentUser);
|
|
180
|
+
let tc = undefined;
|
|
181
|
+
if (result && result.Success && result.Results.length > 0) {
|
|
182
|
+
// we found an existing Template Content, so update it
|
|
183
|
+
tc = result.Results[0];
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
tc = await md.GetEntityObject("Template Contents", this.ContextCurrentUser);
|
|
187
|
+
tc.NewRecord();
|
|
188
|
+
tc.TemplateID = this.TemplateID; // link to the existing Template
|
|
189
|
+
tc.TypeID = await this.getTemplateContentTypeID(); // use the Template Content Type ID for AI Prompts
|
|
190
|
+
tc.Priority = 1; // default priority
|
|
191
|
+
tc.IsActive = true; // set it to active by default
|
|
192
|
+
}
|
|
193
|
+
// for both new and existing Template Contents, we set the Template Text
|
|
194
|
+
tc.TemplateText = this.TemplateText; // set the Template Text
|
|
195
|
+
if (tg) {
|
|
196
|
+
tc.TransactionGroup = tg; // link to the transaction group if provided
|
|
197
|
+
}
|
|
198
|
+
// now save the Template Contents
|
|
199
|
+
if (await tc.Save()) {
|
|
200
|
+
// if we saved successfully, we can return
|
|
201
|
+
return true;
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
// if we failed to save, throw an error
|
|
205
|
+
throw new Error("Failed to update linked Template Contents for the AI Prompt: " + tc.LatestResult.Message);
|
|
206
|
+
}
|
|
176
207
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
208
|
+
catch (e) {
|
|
209
|
+
(0, core_1.LogErrorEx)({
|
|
210
|
+
message: e.message,
|
|
211
|
+
includeStack: true,
|
|
212
|
+
additionalArgs: e,
|
|
213
|
+
});
|
|
214
|
+
return false;
|
|
180
215
|
}
|
|
181
216
|
}
|
|
182
217
|
/**
|
|
@@ -186,34 +221,45 @@ let AIPromptEntityExtendedServer = AIPromptEntityExtendedServer_1 = class AIProm
|
|
|
186
221
|
* @returns {Promise<TemplateEntity | null>} The created Template entity record or null if not created.
|
|
187
222
|
*/
|
|
188
223
|
async CreateLinkedTemplateAndTemplateContents(md) {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
224
|
+
try {
|
|
225
|
+
// we have no linked template, but we have template text, so create a new template and template contents
|
|
226
|
+
const t = await md.GetEntityObject("Templates", this.ContextCurrentUser);
|
|
227
|
+
t.NewRecord();
|
|
228
|
+
t.ID = (0, global_1.uuidv4)(); // generate a new ID - we want to do this explicitly so that we can control the ID that goes into the SQL script so this can be part of a migration file
|
|
229
|
+
t.Name = this.Name; // propagate the name
|
|
230
|
+
t.Description = "Template for AI Prompt: " + this.Name;
|
|
231
|
+
t.UserID = this.ContextCurrentUser.ID;
|
|
232
|
+
t.CategoryID = await this.getOrCreateRootTemplateCategoryID();
|
|
233
|
+
t.IsActive = true;
|
|
234
|
+
if (await t.Save()) {
|
|
235
|
+
// now create the template contents
|
|
236
|
+
const tc = await md.GetEntityObject("Template Contents", this.ContextCurrentUser);
|
|
237
|
+
tc.NewRecord();
|
|
238
|
+
tc.ID = (0, global_1.uuidv4)(); // generate a new ID for the Template Content - do here as well for same reason as above with Template.ID
|
|
239
|
+
tc.TemplateID = t.ID;
|
|
240
|
+
tc.TypeID = await this.getTemplateContentTypeID();
|
|
241
|
+
tc.TemplateText = this.TemplateText;
|
|
242
|
+
tc.Priority = 1; // default priority
|
|
243
|
+
tc.IsActive = true;
|
|
244
|
+
if (await tc.Save()) {
|
|
245
|
+
return t;
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
throw new Error("Failed to save Template Contents for the new Template.");
|
|
249
|
+
}
|
|
210
250
|
}
|
|
211
251
|
else {
|
|
212
|
-
throw new Error("Failed to save Template
|
|
252
|
+
throw new Error("Failed to save new Template for the AI Prompt.");
|
|
213
253
|
}
|
|
214
254
|
}
|
|
215
|
-
|
|
216
|
-
|
|
255
|
+
catch (e) {
|
|
256
|
+
// log the error and return null
|
|
257
|
+
(0, core_1.LogErrorEx)({
|
|
258
|
+
message: e.message,
|
|
259
|
+
includeStack: true,
|
|
260
|
+
additionalArgs: e,
|
|
261
|
+
});
|
|
262
|
+
return null; // return null if we failed to create the linked Template
|
|
217
263
|
}
|
|
218
264
|
}
|
|
219
265
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AIPromptEntityExtended.server.js","sourceRoot":"","sources":["../../src/custom/AIPromptEntityExtended.server.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"AIPromptEntityExtended.server.js","sourceRoot":"","sources":["../../src/custom/AIPromptEntityExtended.server.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,+CAA+L;AAC/L,mDAAqF;AACrF,iEAAiK;AAEjK;;;;;;GAMG;AAEI,IAAM,4BAA4B,oCAAlC,MAAM,4BAA6B,SAAQ,sCAAsB;IAEpE;;;;OAIG;IACI,MAAM,KAAK,qBAAqB;QACnC,OAAO,IAAI,CAAC,sBAAsB,CAAC;IACvC,CAAC;IACM,MAAM,KAAK,qBAAqB,CAAC,KAAoB;QACxD,IAAI,CAAC,sBAAsB,GAAG,KAAK,CAAC;IACxC,CAAC;IAGD;;;;;;;;;;OAUG;IACI,MAAM,KAAK,sBAAsB;QACpC,OAAO,IAAI,CAAC,uBAAuB,CAAC;IACxC,CAAC;IACM,MAAM,KAAK,sBAAsB,CAAC,KAAoB;QACzD,IAAI,CAAC,uBAAuB,GAAG,KAAK,CAAC;IACzC,CAAC;IAED;;;;;;;;;OASG;IACO,KAAK,CAAC,iCAAiC;QAC7C,IAAI,8BAA4B,CAAC,sBAAsB,EAAE,CAAC;YACtD,OAAO,8BAA4B,CAAC,sBAAsB,CAAC;QAC/D,CAAC;QAED,sEAAsE;QACtE,MAAM,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC;QAC1B,MAAM,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE;YAC3B,6BAA6B,CAAC,EAAE,KAAK,IAAI,YAAY,CAAC;QAC3F,MAAM,EAAE,GAAG,IAAI,cAAO,CAAC,IAAI,CAAC,aAAwC,CAAC,CAAC;QACtE,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,OAAO,CAAyB;YACpD,UAAU,EAAE,qBAAqB;YACjC,WAAW,EAAE,SAAS,OAAO,wBAA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
|
{
|
|
2
2
|
"name": "@memberjunction/core-entities-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.63.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.63.0",
|
|
23
|
+
"@memberjunction/global": "2.63.0",
|
|
24
|
+
"@memberjunction/core-entities": "2.63.0",
|
|
25
|
+
"@memberjunction/ai-vector-dupe": "2.63.0",
|
|
26
|
+
"@memberjunction/ai-core-plus": "2.63.0",
|
|
27
|
+
"@memberjunction/ai-prompts": "2.63.0",
|
|
28
|
+
"@memberjunction/skip-types": "2.63.0",
|
|
29
|
+
"@memberjunction/aiengine": "2.63.0",
|
|
30
|
+
"@memberjunction/sqlserver-dataprovider": "2.63.0",
|
|
31
31
|
"zod": "^3.23.8"
|
|
32
32
|
}
|
|
33
33
|
}
|