@memberjunction/actions 1.7.0 → 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.
@@ -66,9 +66,10 @@ export declare class EntityActionEngine extends BaseEngine<EntityActionEngine> {
66
66
  /**
67
67
  * Helper method to get the EntityActionEntityServer object for a given entity name
68
68
  * @param entityName
69
+ * @param status Optional, if provided will filter the results based on the status
69
70
  * @returns
70
71
  */
71
- GetActionsByEntityName(entityName: string): EntityActionEntityServer[];
72
+ GetActionsByEntityName(entityName: string, status?: 'Active' | 'Pending' | 'Disabled'): EntityActionEntityServer[];
72
73
  /**
73
74
  * Helper method to get the EntityActionEntityServer object for a given entity ID
74
75
  * @param entityID
@@ -79,9 +80,10 @@ export declare class EntityActionEngine extends BaseEngine<EntityActionEngine> {
79
80
  * Helper method to get the EntityActionEntityServer object for a given entity name and invocation type
80
81
  * @param entityName
81
82
  * @param invocationType
83
+ * @param status Optional, if provided will filter the results based on the status
82
84
  * @returns
83
85
  */
84
- GetActionsByEntityNameAndInvocationType(entityName: string, invocationType: string): EntityActionEntityServer[];
86
+ GetActionsByEntityNameAndInvocationType(entityName: string, invocationType: string, status?: 'Active' | 'Pending' | 'Disabled'): EntityActionEntityServer[];
85
87
  /**
86
88
  * Method will invoke an action given the provided parameters. The method will return true if the action was successfully invoked, false otherwise.
87
89
  * @param params Parameters for the action invocation
@@ -1 +1 @@
1
- {"version":3,"file":"EntityActionEngine.d.ts","sourceRoot":"","sources":["../../src/entity-actions/EntityActionEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AAEzI,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,C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,CAEvD;IAED;;OAEG;IACH,IAAW,aAAa,IAAI,wBAAwB,EAAE,CAErD;IAED;;;;;OAKG;IACI,sBAAsB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,wBAAwB,EAAE;IAIzH;;;;OAIG;IACI,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,wBAAwB,EAAE;IAIzE;;;;;;OAMG;IACI,uCAAuC,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,wBAAwB,EAAE;IASlK;;;;OAIG;IACU,eAAe,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,YAAY,CAAC;CAsB5F"}
@@ -79,10 +79,11 @@ class EntityActionEngine extends core_1.BaseEngine {
79
79
  /**
80
80
  * Helper method to get the EntityActionEntityServer object for a given entity name
81
81
  * @param entityName
82
+ * @param status Optional, if provided will filter the results based on the status
82
83
  * @returns
83
84
  */
84
- GetActionsByEntityName(entityName) {
85
- return this._EntityActions.filter(e => e.Entity.trim().toLowerCase() === entityName.trim().toLowerCase());
85
+ GetActionsByEntityName(entityName, status) {
86
+ return this._EntityActions.filter(e => (!status || e.Status === status) && e.Entity.trim().toLowerCase() === entityName.trim().toLowerCase());
86
87
  }
87
88
  /**
88
89
  * Helper method to get the EntityActionEntityServer object for a given entity ID
@@ -96,13 +97,14 @@ class EntityActionEngine extends core_1.BaseEngine {
96
97
  * Helper method to get the EntityActionEntityServer object for a given entity name and invocation type
97
98
  * @param entityName
98
99
  * @param invocationType
100
+ * @param status Optional, if provided will filter the results based on the status
99
101
  * @returns
100
102
  */
101
- GetActionsByEntityNameAndInvocationType(entityName, invocationType) {
102
- const entityActions = this.GetActionsByEntityName(entityName);
103
+ GetActionsByEntityNameAndInvocationType(entityName, invocationType, status) {
104
+ const entityActions = this.GetActionsByEntityName(entityName, status);
103
105
  // now extract the ones that have the right invocation type
104
106
  return entityActions.filter(e => {
105
- const invocations = e.Invocations.find(i => i.InvocationType.trim().toLowerCase() === invocationType.trim().toLowerCase());
107
+ const invocations = e.Invocations.find(i => (!status || i.Status === status) && i.InvocationType.trim().toLowerCase() === invocationType.trim().toLowerCase());
106
108
  return invocations ? true : false;
107
109
  });
108
110
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EntityActionEngine.js","sourceRoot":"","sources":["../../src/entity-actions/EntityActionEngine.ts"],"names":[],"mappings":";;;AAAA,+CAAkG;AAElG,mDAAkD;AAElD,+EAA2E;AAG3E;;GAEG;AACH,MAAa,4BAA4B;CA4BxC;AA5BD,oEA4BC;AAGD;;GAEG;AACH,MAAa,kBAAmB,SAAQ,iBAA8B;IAAtE;;QAMI,8DAA8D;QACtD,mBAAc,GAA+B,EAAE,CAAC;QAChD,iCAA4B,GAAuC,EAAE,CAAC;QACtE,yBAAoB,GAA+B,EAAE,CAAC;QACtD,6BAAwB,GAAmC,EAAE,CAAC;IAsH1E,CAAC;IA/HU,MAAM,KAAK,QAAQ;QACtB,OAAO,KAAK,CAAC,WAAW,EAAsB,CAAC;IACnD,CAAC;IASD;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,eAAwB,KAAK,EAAE,WAAsB;QACrE,MAAM,OAAO,GAA+B;YACxC;gBACI,UAAU,EAAE,gCAAgC;gBAC5C,YAAY,EAAE,8BAA8B;aAC/C;YACD;gBACI,UAAU,EAAE,uBAAuB;gBACnC,YAAY,EAAE,sBAAsB;aACvC;YACD;gBACI,UAAU,EAAE,2BAA2B;gBACvC,YAAY,EAAE,0BAA0B;aAC3C;YACD;gBACI,UAAU,EAAE,gBAAgB;gBAC5B,YAAY,EAAE,gBAAgB;aACjC;SACJ,CAAC;QACF,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,IAAW,eAA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CAAC,CAAC;QACtE,2DAA2D;QAC3D,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YAC5B,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,cAAc,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAA;YAC9J,OAAO,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;QACtC,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,eAAe,CAAC,MAAoC;QAC7D;;;;WAIG;QACH,IAAI,CAAC,MAAM,CAAC,YAAY;YACpB,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;QAE/D,wDAAwD;QACxD,IAAI,CAAC,MAAM,CAAC,cAAc;YACtB,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAExD,gHAAgH;QAChH,MAAM,kBAAkB,GAAG,iBAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,cAAc,CAA6B,wDAA0B,EAAE,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC7J,IAAI,CAAC,kBAAkB;YACnB,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;QAElE,8CAA8C;QAC9C,OAAO,kBAAkB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACnD,CAAC;CAEJ;AAlID,gDAkIC"}
@@ -44,7 +44,11 @@ export declare class ActionEntityServerEntity extends ActionEntity {
44
44
  */
45
45
  GenerateCode(maxAttempts?: number): Promise<GeneratedCode>;
46
46
  protected InternalGenerateCode(llm: BaseLLM, chatParams: ChatParams, attemptsRemaining: number): Promise<GeneratedCode>;
47
+ protected ValidateCode(llm: BaseLLM, generatedCode: GeneratedCode, attemptsRemaining: number): Promise<GeneratedCode>;
47
48
  GenerateSysPrompt(): string;
49
+ GenerateValidateCodePrompt(generatedCode: GeneratedCode): string;
50
+ GenerateContextInfo(): string;
51
+ GenerateRunViewParamsInfo(): string;
48
52
  }
49
53
  export declare function LoadActionEntityServer(): void;
50
54
  //# sourceMappingURL=ActionEntity.server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionEntity.server.d.ts","sourceRoot":"","sources":["../../src/generic/ActionEntity.server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,UAAU,EAAE,iBAAiB,EAA+B,MAAM,sBAAsB,CAAC;AAClI,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAI7H,OAAO,EAA+B,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,UAAU,EAAe,MAAM,oBAAoB,CAAC;AAEtE;;GAEG;AACH,qBACa,wBAAyB,SAAQ,YAAY;gBAC1C,MAAM,EAAE,UAAU;IAO9B;;;OAGG;IACH,SAAS,KAAK,YAAY,IAAI,MAAM,CAEnC;IAED;;OAEG;IACH,IAAW,gBAAgB,IAAI,MAAM,CAEpC;IAED;;OAEG;IACH,IAAW,YAAY,IAAI,OAAO,CAEjC;IAED,OAAO,CAAC,YAAY,CAAkC;IACtD;;OAEG;IACH,IAAW,WAAW,IAAI,sBAAsB,EAAE,CAMjD;IAED,OAAO,CAAC,OAAO,CAA6B;IAC5C,IAAW,MAAM,IAAI,iBAAiB,EAAE,CAMvC;IAED,OAAO,CAAC,KAAK,CAA+B;IAC5C,IAAW,SAAS,IAAI,mBAAmB,EAAE,CAM5C;IAGD;;;;;OAKG;IACmB,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;IAkGzE,SAAS,CAAC,WAAW,CAAC,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,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM;IAQrC;;;;OAIG;IACU,YAAY,CAAC,WAAW,GAAE,MAAU,GAAG,OAAO,CAAC,aAAa,CAAC;cAqC1D,oBAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;cAqD7G,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAsBpH,iBAAiB,IAAI,MAAM;IA+B3B,0BAA0B,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM;IA0DhE,mBAAmB,IAAI,MAAM;IAsH7B,yBAAyB,IAAI,MAAM;CAsG7C;AAED,wBAAgB,sBAAsB,SAIrC"}
@@ -16,6 +16,7 @@ const global_1 = require("@memberjunction/global");
16
16
  const aiengine_1 = require("@memberjunction/aiengine");
17
17
  const ActionEngine_1 = require("./ActionEngine");
18
18
  const ai_1 = require("@memberjunction/ai");
19
+ const doc_utils_1 = require("@memberjunction/doc-utils");
19
20
  /**
20
21
  * Server-Only custom sub-class for Actions entity. This sub-class handles the process of auto-generation code for the Actions entity.
21
22
  */
@@ -81,6 +82,7 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
81
82
  async Save(options) {
82
83
  // make sure the ActionEngine is configured
83
84
  await ActionEngine_1.ActionEngine.Instance.Config(false, this.ContextCurrentUser);
85
+ await doc_utils_1.DocumentationEngine.Instance.Config(false, this.ContextCurrentUser);
84
86
  let newCodeGenerated = false;
85
87
  let codeLibraries = [];
86
88
  if (this.GetFieldByName('UserPrompt').Dirty || !this.IsSaved || this.ForceCodeGeneration) {
@@ -122,7 +124,6 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
122
124
  const librariesToRemove = existingLibraries.filter(el => !codeLibraries.some(l => l.LibraryName.trim().toLowerCase() === el.Library.trim().toLowerCase()));
123
125
  const librariesToUpdate = existingLibraries.filter(el => codeLibraries.some(l => l.LibraryName.trim().toLowerCase() === el.Library.trim().toLowerCase()));
124
126
  const md = new core_1.Metadata();
125
- //const promises = [];
126
127
  const tg = await md.CreateTransactionGroup();
127
128
  for (const lib of librariesToAdd) {
128
129
  const libMetadata = md.Libraries.find(l => l.Name.trim().toLowerCase() === lib.LibraryName.trim().toLowerCase());
@@ -132,7 +133,7 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
132
133
  newLib.LibraryID = libMetadata.ID;
133
134
  newLib.ItemsUsed = lib.ItemsUsed.join(',');
134
135
  newLib.TransactionGroup = tg;
135
- newLib.Save();
136
+ newLib.Save(); // no await, within a TG
136
137
  }
137
138
  }
138
139
  // now update the libraries that were already in place to ensure the ItemsUsed are up to date
@@ -140,24 +141,19 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
140
141
  const newCode = codeLibraries.find(l => l.LibraryName.trim().toLowerCase() === lib.Library.trim().toLowerCase());
141
142
  lib.ItemsUsed = newCode.ItemsUsed.join(',');
142
143
  lib.TransactionGroup = tg;
143
- lib.Save();
144
+ lib.Save(); // no await, within a TG
144
145
  }
145
146
  // now remove the libraries that are no longer used
146
147
  for (const lib of librariesToRemove) {
147
148
  // each lib in this array iteration is already a BaseEntity derived object
148
149
  lib.TransactionGroup = tg;
149
- lib.Delete();
150
+ lib.Delete(); // no await, within a TG
150
151
  }
151
152
  // now commit the transaction
152
- if (!await tg.Submit()) {
153
- return false;
154
- //throw new Error('Failed to update the libraries used by the Action.');
155
- }
156
- else
153
+ if (await tg.Submit())
157
154
  return true;
158
- // // now wait for all the promises to complete
159
- // const results = await Promise.all(promises);
160
- // return results.some(r => r === false) ? false : true;
155
+ else
156
+ return false;
161
157
  }
162
158
  else
163
159
  return true;
@@ -180,7 +176,7 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
180
176
  */
181
177
  async GenerateCode(maxAttempts = 3) {
182
178
  try {
183
- this.SendMessage('Generating code for action ' + this.Name);
179
+ this.SendMessage('Generating code... ');
184
180
  const model = await aiengine_1.AIEngine.Instance.GetHighestPowerModel(this.AIVendorName, 'llm', this.ContextCurrentUser);
185
181
  const llm = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(ai_1.BaseLLM, model.DriverClass, (0, ai_1.GetAIAPIKey)(model.DriverClass));
186
182
  const chatParams = {
@@ -196,7 +192,16 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
196
192
  },
197
193
  ],
198
194
  };
199
- return await this.InternalGenerateCode(llm, chatParams, maxAttempts);
195
+ let result = await this.InternalGenerateCode(llm, chatParams, maxAttempts);
196
+ if (result.Success) {
197
+ //now run the code through the QA agent to make sure the code is valid
198
+ let qaResult = await this.ValidateCode(llm, result, maxAttempts);
199
+ return qaResult;
200
+ }
201
+ else {
202
+ //something went wrong in the first pass, just return the error
203
+ return result;
204
+ }
200
205
  }
201
206
  catch (e) {
202
207
  (0, core_1.LogError)(e);
@@ -216,12 +221,17 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
216
221
  const parsed = JSON.parse(cleansed);
217
222
  if (parsed.code && parsed.code.length > 0) {
218
223
  const trimmed = parsed.code.trim();
219
- return {
224
+ let comments = parsed.explanation;
225
+ if (parsed.reflection) {
226
+ comments = comments + `\n ${parsed.reflection}`;
227
+ }
228
+ const result = {
220
229
  Success: true,
221
230
  Code: trimmed,
222
231
  Comments: parsed.explanation,
223
232
  LibrariesUsed: parsed.libraries
224
233
  };
234
+ return result;
225
235
  }
226
236
  else {
227
237
  throw new Error('Invalid JSON response from AI: ' + llmResponse);
@@ -237,7 +247,6 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
237
247
  (0, core_1.LogError)(e);
238
248
  if (attemptsRemaining > 1) {
239
249
  // try again
240
- this.SendMessage(`Failed to generate code, trying again (up to ${attemptsRemaining} time${attemptsRemaining > 1 ? 's' : ''})`);
241
250
  return await this.InternalGenerateCode(llm, chatParams, attemptsRemaining - 1);
242
251
  }
243
252
  else
@@ -249,6 +258,25 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
249
258
  };
250
259
  }
251
260
  }
261
+ async ValidateCode(llm, generatedCode, attemptsRemaining) {
262
+ this.SendMessage(`Reviewing code...`);
263
+ const model = await aiengine_1.AIEngine.Instance.GetHighestPowerModel(this.AIVendorName, 'llm', this.ContextCurrentUser);
264
+ const promptMessage = this.GenerateValidateCodePrompt(generatedCode);
265
+ const validatePrompt = {
266
+ role: 'system',
267
+ content: promptMessage
268
+ };
269
+ let chatParams = new ai_1.ChatParams();
270
+ chatParams.messages = [validatePrompt];
271
+ chatParams.model = model.APINameOrName;
272
+ let result = await this.InternalGenerateCode(llm, chatParams, attemptsRemaining);
273
+ if (result.Success) {
274
+ return result;
275
+ }
276
+ else {
277
+ return this.ValidateCode(llm, generatedCode, attemptsRemaining - 1);
278
+ }
279
+ }
252
280
  GenerateSysPrompt() {
253
281
  const prompt = `<RETURN_FORMAT>
254
282
  * CRITICAL - I am a bot, I can ONLY understand fully formed JSON responses
@@ -264,7 +292,81 @@ for inputs/outputs and the ActionResultSimple class that is provided. The code y
264
292
  it is called by the user.
265
293
  </INTRODUCTION>
266
294
 
267
- <CODE_EXAMPLE>
295
+ ${this.GenerateContextInfo()}
296
+
297
+ Your response must be JSON and parsable into this type:
298
+ const returnType = {
299
+ code: string, // The typescript code you will create that will work in the context described above. Make sure to include line breaks, but not tabs. That is, pretty format in terms of new lines, but do NOT indent with spaces/tabs, as I'll handle indentation.
300
+ explanation: string // an explanation for a semi-technical person explaining what the code does. Here again use line breaks liberally to make it easy to read but do NOT indent with spaces/tabs as I will handle that. Use * lists and numbered lists as appropriate.
301
+ libraries: [
302
+ {LibraryName: string, ItemsUsed: string[]}, // tell me the libraries you have used in the code you created here in this array of libraries. I need this info to properly import them in the final code.
303
+ ]
304
+ };
305
+ </CRITICAL>
306
+ **** REMEMBER **** I am a BOT, do not return anything other than the above JSON format to me or I will choke on your response!
307
+ `;
308
+ return prompt;
309
+ }
310
+ GenerateValidateCodePrompt(generatedCode) {
311
+ return `<RETURN_FORMAT>
312
+ * CRITICAL - I am a bot, I can ONLY understand fully formed JSON responses
313
+ * YOUR RESPONSE MUST BE A JSON OBJECT
314
+ * MORE INFO BELOW
315
+ </RETURN_FORMAT>
316
+
317
+ <INTRODUCTION>
318
+ You are an expert in TypeScript coding and business applications. You take great pride in easy to read, commented, and nicely formatted code.
319
+ You are also exceptional in catching errors in other people's code and providing clear and easy to understand bug fixes, with comments explaining the
320
+ issues and how you corrected it.
321
+ You will be provided a request for how to handle a specific type of action that they want created, as well code written by someone else that attempts
322
+ to satisfy the request. An action is a "verb" in the MemberJunction framework that can do basically anything the user asks for.
323
+ Your job is to:
324
+ 1 - Verify that the given code can successfully compile and run, using the provided libraries and parameters.
325
+ 2- Verify that the given code satifies the user's request.
326
+ </INTRODUCTION>
327
+
328
+ The user's request is: ${this.UserPrompt}
329
+
330
+ The generated code is below:
331
+ <GENERATEDCODE>
332
+ ${generatedCode.Code}
333
+ </GENERATEDCODE>
334
+
335
+ Here are some comments about the above code:
336
+ <CODECOMMENTS>
337
+ ${generatedCode.Comments}
338
+ </CODECOMMENTS>
339
+
340
+ As well as the libraries used in the above code:
341
+ <LIBRARIESUSED>
342
+ ${JSON.stringify(generatedCode.LibrariesUsed, null, 2)}
343
+ </LIBRARIESUSED>
344
+
345
+ <CONTEXTINFO>
346
+ Here is some additional info to help you:
347
+ ${this.GenerateContextInfo()}
348
+ </CONTEXTINFO>
349
+
350
+ <RUNVIEWINFO>
351
+ Here is some additonal info regarding the RunViewParams object
352
+ ${this.GenerateRunViewParamsInfo()}
353
+ </RUNVIEWINFO>
354
+
355
+ Your response must be JSON and parsable into this type:
356
+ const returnType = {
357
+ reflection: string, //Jot down your notes here on why you think the given code was valid or not. If it wasnt, write down why it isnt. Is it because there are syntax or logic errors, or because it doesnt satisfy the user's request?
358
+ success: boolean //whether or not the above code is valid and can successfully compile and run, using the given libraries and data types
359
+ code: string, // If the code is not valid, you will populate this field with the same code but with corrections
360
+ explanation: string // If the code is not valid, you will provide an explanation for a semi-technical person explaining what the corrected code does. Here again use line breaks liberally to make it easy to read but do NOT indent with spaces/tabs as I will handle that. Use * lists and numbered lists as appropriate.
361
+ libraries: [
362
+ {LibraryName: string, ItemsUsed: string[]}, // If the code is not valid, tell me the libraries you have used in the corrected code you created here in this array of libraries. I need this info to properly import them in the final code.
363
+ ]
364
+ };
365
+ `;
366
+ }
367
+ GenerateContextInfo() {
368
+ return `
369
+ <CODE_EXAMPLE>
268
370
  export class ${this.ProgrammaticName}Action extends BaseAction {
269
371
  public async Run(params: RunActionParams): Promise<ActionResultSimple> {
270
372
  // IMPORTANT: your code will go here, do not generate the method signature, just the code inside the method
@@ -290,7 +392,16 @@ the parameter has a type of input/output, you will receive the value as an input
290
392
  The following libraries are available for use in your code. THEY ARE ALREADY IMPORTED. **DO NOT IMPORT THEM IN YOUR CODE**
291
393
  Use the code examples and reference information shown below, only use properties and methods shown in the documentation/examples.
292
394
  IMPORTANT: DO NOT GENERATE IMPORT STATEMENTS FOR THESE LIBRARIES, THEY ARE ALREADY IMPORTED FOR YOU!
293
- ${JSON.stringify(core_1.Metadata.Provider.Libraries)}
395
+ ${doc_utils_1.DocumentationEngine.Instance.Libraries.map((library) => {
396
+ return library.Items.map((item) => {
397
+ return `
398
+ {
399
+ "LibraryName": ${item.Name},
400
+ "Content": ${item.HTMLContent}
401
+ }
402
+ `;
403
+ });
404
+ })}
294
405
  </AVAILABLE_LIBRARIES>
295
406
 
296
407
  <REFERENCE_TYPES>
@@ -363,20 +474,110 @@ ${JSON.stringify(core_1.Metadata.Provider.Entities.map(e => {
363
474
  The next message, which will be a user message in the conversation, will contain the sys admin's requested behavior for this entity.
364
475
 
365
476
  <CRITICAL>
366
- I am a bot and can only understand FULLY FORMED JSON responses that can be parsed with JSON.parse().
477
+ I am a bot and can only understand FULLY FORMED JSON responses that can be parsed with JSON.parse().
478
+ `;
479
+ }
480
+ GenerateRunViewParamsInfo() {
481
+ return `/**
482
+ * Parameters for running either a stored or dynamic view.
483
+ * A stored view is a view that is saved in the database and can be run either by ID or Name.
484
+ * A dynamic view is one that is not stored in the database and you provide parameters to return data as
485
+ * desired programatically.
486
+ */
487
+ export type RunViewParams = {
488
+ /**
489
+ * optional - ID of the UserView record to run, if provided, ViewName is ignored
490
+ */
491
+ ViewID?: number
492
+ /**
493
+ * optional - Name of the UserView record to run, if you are using this, make sure to use a naming convention
494
+ * so that your view names are unique. For example use a prefix like __Entity_View_ etc so that you're
495
+ * likely to have a single result. If more than one view is available that matches a provided view name an
496
+ * exception will be thrown.
497
+ */
498
+ ViewName?: string
499
+ /**
500
+ * optional - this is the loaded instance of the BaseEntity (UserViewEntityComplete or a subclass of it).
501
+ * This is the preferred parameter to use IF you already have a view entity object loaded up in your code
502
+ * becuase by passing this in, the RunView() method doesn't have to lookup all the metadata for the view and it is faster.
503
+ * If you provide ViewEntity, ViewID/ViewName are ignored.
504
+ */
505
+ ViewEntity?: BaseEntity
506
+ /**
507
+ * optional - this is only used if ViewID/ViewName/ViewEntity are not provided, it is used for
508
+ * Dynamic Views in combination with the optional ExtraFilter
509
+ */
510
+ EntityName?: string
511
+ /**
512
+ * An optional SQL WHERE clause that you can add to the existing filters on a stored view. For dynamic views, you can either
513
+ * run a view without a filter (if the entity definition allows it with AllowAllRowsAPI=1) or filter with any valid SQL WHERE clause.
514
+ */
515
+ ExtraFilter?: string
516
+ /**
517
+ * An optional SQL ORDER BY clause that you can use for dynamic views, as well as to OVERRIDE the stored view's sorting order.
518
+ */
519
+ OrderBy?: string
520
+ /**
521
+ * An optional array of field names that you want returned. The RunView() function will always return ID so you don't need to ask for that. If you leave this null then
522
+ * for a dynamic view all fields are returned, and for stored views, the fields stored in it view configuration are returned.
523
+ */
524
+ Fields?: string[]
525
+ /**
526
+ * optional - string that represents a user "search" - typically from a text search option in a UI somewhere. This field is then used in the view filtering to search whichever fields are configured to be included in search in the Entity Fields definition.
527
+ * Search String is combined with the stored view filters as well as ExtraFilter with an AND.
528
+ */
529
+ UserSearchString?: string
530
+ /**
531
+ * optional - if provided, records that were returned in the specified UserViewRunID will NOT be allowed in the result set.
532
+ * This is useful if you want to run a particular view over time and exclude a specific prior run's resulting data set. If you
533
+ * want to exclude ALL data returned from ALL prior runs, use the ExcludeDataFromAllPriorViewRuns property instead.
534
+ */
535
+ ExcludeUserViewRunID?: number
536
+ /**
537
+ * optional - if set to true, the resulting data will filter out ANY records that were ever returned by this view, when the SaveViewResults property was set to true.
538
+ * This is useful if you want to run a particular view over time and make sure the results returned each time are new to the view.
539
+ */
540
+ ExcludeDataFromAllPriorViewRuns?: boolean
541
+ /**
542
+ * optional - if you are providing the optional ExcludeUserViewRunID property, you can also optionally provide
543
+ * this filter which will negate the specific list of record IDs that are excluded by the ExcludeUserViewRunID property.
544
+ * This can be useful if you want to ensure a certain class of data is always allowed into your view and not filtered out
545
+ * by a prior view run.
546
+ *
547
+ */
548
+ OverrideExcludeFilter?: string
549
+ /**
550
+ * optional - if set to true, the LIST OF ID values from the view run will be stored in the User View Runs entity and the
551
+ * newly created UserViewRun.ID value will be returned in the RunViewResult that the RunView() function sends back to ya.
552
+ */
553
+ SaveViewResults?: boolean
554
+ /**
555
+ * optional - if set to true, if there IS any UserViewMaxRows property set for the entity in question, it will be IGNORED. This is useful in scenarios where you
556
+ * want to programmatically run a view and get ALL the data back, regardless of the MaxRows setting on the entity.
557
+ */
558
+ IgnoreMaxRows?: boolean
367
559
 
368
- Your response must be JSON and parsable into this type:
369
- const returnType = {
370
- code: string, // The typescript code you will create that will work in the context described above. Make sure to include line breaks, but not tabs. That is, pretty format in terms of new lines, but do NOT indent with spaces/tabs, as I'll handle indentation.
371
- explanation: string // an explanation for a semi-technical person explaining what the code does. Here again use line breaks liberally to make it easy to read but do NOT indent with spaces/tabs as I will handle that. Use * lists and numbered lists as appropriate.
372
- libraries: [
373
- {LibraryName: string, ItemsUsed: string[]}, // tell me the libraries you have used in the code you created here in this array of libraries. I need this info to properly import them in the final code.
374
- ]
375
- };
376
- </CRITICAL>
377
- **** REMEMBER **** I am a BOT, do not return anything other than the above JSON format to me or I will choke on your response!
378
- `;
379
- return prompt;
560
+ /**
561
+ * optional - if provided, and if IgnoreMaxRows = false, this value will be used to constrain the total # of rows returned by the view. If this is not provided, either the default settings at the entity-level will be used, or if the entity has no UserViewMaxRows setting, all rows will be returned that match any filter, if provided.
562
+ */
563
+ MaxRows?: number
564
+ /**
565
+ * optional - if set to true, the view run will ALWAYS be logged to the Audit Log, regardless of the entity's property settings for logging view runs.
566
+ */
567
+ ForceAuditLog?: boolean
568
+ /**
569
+ * optional - if provided and either ForceAuditLog is set, or the entity's property settings for logging view runs are set to true, this will be used as the Audit Log Description.
570
+ */
571
+ AuditLogDescription?: string
572
+
573
+ /**
574
+ * Result Type is: 'simple', 'entity_object', or 'count_only' and defaults to 'simple'. If 'entity_object' is specified, the Results[] array will contain
575
+ * BaseEntity-derived objects instead of simple objects. This is useful if you want to work with the data in a more strongly typed manner and/or
576
+ * if you plan to do any update/delete operations on the data after it is returned. The 'count_only' option will return no rows, but the TotalRowCount property of the RunViewResult object will be populated.
577
+ */
578
+ ResultType?: 'simple' | 'entity_object' | 'count_only';
579
+ }
580
+ `;
380
581
  }
381
582
  };
382
583
  exports.ActionEntityServerEntity = ActionEntityServerEntity;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionEntity.server.js","sourceRoot":"","sources":["../../src/generic/ActionEntity.server.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAkI;AAClI,iEAA6H;AAC7H,mDAAyF;AACzF,uDAAoD;AAEpD,iDAA4E;AAC5E,2CAAsE;AAEtE;;GAEG;AAEI,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,4BAAY;IACtD,YAAY,MAAkB;QAC1B,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,aAAa;QA4BxB,iBAAY,GAA6B,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ources":["../../src/generic/BaseAction.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,kBAAkB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEnF;;GAEG;AACH,8BAAsB,UAAU;IAChB,GAAG,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAItE,SAAS,CAAC,QAAQ,CAAC,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAC5F"}
1
+ {"version":3,"file":"BaseAction.d.ts","sourceRoot":"","sources":["../../src/generic/BaseAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAErE;;GAEG;AACH,8BAAsB,UAAU;IAChB,GAAG,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAItE,SAAS,CAAC,QAAQ,CAAC,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAC5F"}
@@ -1 +1 @@
1
- {"version":3,"file":"BaseAction.js","sourceRoot":"","sources":["../../src/generic/BaseAction.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,MAAsB,UAAU;IACtB,KAAK,CAAC,GAAG,CAAC,MAAuB;QACrC,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;CAGH;AAND,gCAMC"}
1
+ {"version":3,"file":"BaseAction.js","sourceRoot":"","sources":["../../src/generic/BaseAction.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAsB,UAAU;IACtB,KAAK,CAAC,GAAG,CAAC,MAAuB;QACrC,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;CAGH;AAND,gCAMC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/actions",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "Main library for MemberJunction Actions. This library is only intended to be imported on the server side.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,11 +19,11 @@
19
19
  "typescript": "^5.4.5"
20
20
  },
21
21
  "dependencies": {
22
- "rxjs": "^7.8.1",
23
- "@memberjunction/global": "1.7.0",
24
- "@memberjunction/core": "1.7.0",
25
- "@memberjunction/core-entities": "1.7.0",
26
- "@memberjunction/ai": "1.7.0",
27
- "@memberjunction/aiengine": "1.7.0"
22
+ "@memberjunction/global": "1.8.0",
23
+ "@memberjunction/core": "1.8.0",
24
+ "@memberjunction/core-entities": "1.8.0",
25
+ "@memberjunction/ai": "1.8.0",
26
+ "@memberjunction/aiengine": "1.8.0",
27
+ "@memberjunction/doc-utils": "1.8.0"
28
28
  }
29
29
  }