@memberjunction/actions 1.7.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;IA0FzE,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) {
@@ -174,7 +176,7 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
174
176
  */
175
177
  async GenerateCode(maxAttempts = 3) {
176
178
  try {
177
- this.SendMessage('Generating code for action ' + this.Name);
179
+ this.SendMessage('Generating code... ');
178
180
  const model = await aiengine_1.AIEngine.Instance.GetHighestPowerModel(this.AIVendorName, 'llm', this.ContextCurrentUser);
179
181
  const llm = global_1.MJGlobal.Instance.ClassFactory.CreateInstance(ai_1.BaseLLM, model.DriverClass, (0, ai_1.GetAIAPIKey)(model.DriverClass));
180
182
  const chatParams = {
@@ -190,7 +192,16 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
190
192
  },
191
193
  ],
192
194
  };
193
- 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
+ }
194
205
  }
195
206
  catch (e) {
196
207
  (0, core_1.LogError)(e);
@@ -210,12 +221,17 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
210
221
  const parsed = JSON.parse(cleansed);
211
222
  if (parsed.code && parsed.code.length > 0) {
212
223
  const trimmed = parsed.code.trim();
213
- return {
224
+ let comments = parsed.explanation;
225
+ if (parsed.reflection) {
226
+ comments = comments + `\n ${parsed.reflection}`;
227
+ }
228
+ const result = {
214
229
  Success: true,
215
230
  Code: trimmed,
216
231
  Comments: parsed.explanation,
217
232
  LibrariesUsed: parsed.libraries
218
233
  };
234
+ return result;
219
235
  }
220
236
  else {
221
237
  throw new Error('Invalid JSON response from AI: ' + llmResponse);
@@ -231,7 +247,6 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
231
247
  (0, core_1.LogError)(e);
232
248
  if (attemptsRemaining > 1) {
233
249
  // try again
234
- this.SendMessage(`Failed to generate code, trying again (up to ${attemptsRemaining} time${attemptsRemaining > 1 ? 's' : ''})`);
235
250
  return await this.InternalGenerateCode(llm, chatParams, attemptsRemaining - 1);
236
251
  }
237
252
  else
@@ -243,6 +258,25 @@ let ActionEntityServerEntity = class ActionEntityServerEntity extends core_entit
243
258
  };
244
259
  }
245
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
+ }
246
280
  GenerateSysPrompt() {
247
281
  const prompt = `<RETURN_FORMAT>
248
282
  * CRITICAL - I am a bot, I can ONLY understand fully formed JSON responses
@@ -258,7 +292,81 @@ for inputs/outputs and the ActionResultSimple class that is provided. The code y
258
292
  it is called by the user.
259
293
  </INTRODUCTION>
260
294
 
261
- <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>
262
370
  export class ${this.ProgrammaticName}Action extends BaseAction {
263
371
  public async Run(params: RunActionParams): Promise<ActionResultSimple> {
264
372
  // IMPORTANT: your code will go here, do not generate the method signature, just the code inside the method
@@ -284,7 +392,16 @@ the parameter has a type of input/output, you will receive the value as an input
284
392
  The following libraries are available for use in your code. THEY ARE ALREADY IMPORTED. **DO NOT IMPORT THEM IN YOUR CODE**
285
393
  Use the code examples and reference information shown below, only use properties and methods shown in the documentation/examples.
286
394
  IMPORTANT: DO NOT GENERATE IMPORT STATEMENTS FOR THESE LIBRARIES, THEY ARE ALREADY IMPORTED FOR YOU!
287
- ${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
+ })}
288
405
  </AVAILABLE_LIBRARIES>
289
406
 
290
407
  <REFERENCE_TYPES>
@@ -357,20 +474,110 @@ ${JSON.stringify(core_1.Metadata.Provider.Entities.map(e => {
357
474
  The next message, which will be a user message in the conversation, will contain the sys admin's requested behavior for this entity.
358
475
 
359
476
  <CRITICAL>
360
- 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
361
559
 
362
- Your response must be JSON and parsable into this type:
363
- const returnType = {
364
- 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.
365
- 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.
366
- libraries: [
367
- {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.
368
- ]
369
- };
370
- </CRITICAL>
371
- **** REMEMBER **** I am a BOT, do not return anything other than the above JSON format to me or I will choke on your response!
372
- `;
373
- 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
+ `;
374
581
  }
375
582
  };
376
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,IAAI,CAAC;QAY9C,YAAO,GAAwB,IA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AEnF;;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.1",
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.1",
24
- "@memberjunction/core": "1.7.1",
25
- "@memberjunction/core-entities": "1.7.1",
26
- "@memberjunction/ai": "1.7.1",
27
- "@memberjunction/aiengine": "1.7.1"
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
  }