@memberjunction/skip-types 0.9.49 → 0.9.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -268,24 +268,76 @@ export declare class SkipAPIResponse {
268
268
  */
269
269
  messages: SkipMessage[];
270
270
  }
271
+ /**
272
+ * Defines an individual filter that will be used to filter the data in the view to the specific row or rows that the user clicked on for a drill down
273
+ */
274
+ export declare class SkipAPIAnalysisDrillDownFilter {
275
+ reportFieldName: string;
276
+ viewFieldName: string;
277
+ }
278
+ /**
279
+ * Defines the filtering information necessary for a reporting UI to enable behavior to drill down when a user clicks on a portion of a report like an element of a chart or a row in a table
280
+ */
281
+ export declare class SkipAPIAnalysisDrillDown {
282
+ /**
283
+ * The name of the view in the database that we should drill into whenever a user clicks on an element in the report
284
+ */
285
+ viewName: string;
286
+ /**
287
+ * One or more filters that are used to filter the data in the view to the specific row or rows that the user clicked on
288
+ */
289
+ filters: SkipAPIAnalysisDrillDownFilter[];
290
+ }
271
291
  /**
272
292
  * Defines the shape of the data that is returned by the Skip API Server when the responsePhase is 'analysis_complete'
273
293
  */
274
294
  export declare class SkipAPIAnalysisCompleteResponse extends SkipAPIResponse {
275
295
  executionResults?: SkipSubProcessResponse | null;
296
+ /**
297
+ * A user-friendly explanation of what the report does
298
+ */
276
299
  userExplanation?: string;
300
+ /**
301
+ * A more detailed technical explanation of what the report does and how it works
302
+ */
277
303
  techExplanation?: string;
304
+ /**
305
+ * Describes each column in the report's computed data output that is what is displayed in either a table or a chart
306
+ */
278
307
  tableDataColumns?: SkipColumnInfo[];
308
+ /**
309
+ * Zero or more suggested questions that the AI engine suggests might be good follow up questions to ask after reviewing the provided report
310
+ */
279
311
  suggestedQuestions?: string[] | null;
312
+ /**
313
+ * The title of the report
314
+ */
280
315
  reportTitle?: string | null;
316
+ /**
317
+ * An analysis of the report, the data and the formatted report output.
318
+ */
281
319
  analysis?: string | null;
320
+ /**
321
+ * Information that will support a drill-down experience in the reporting UI
322
+ */
323
+ drillDown?: SkipAPIAnalysisDrillDown | null;
324
+ /**
325
+ * The script text that was used to generated the report and can be saved to be run again later
326
+ */
282
327
  scriptText?: string | null;
283
328
  }
284
329
  /**
285
330
  * Defines the shape of the data that is returned by the Skip API Server when the responsePhase is 'clarifying_question'
286
331
  */
287
332
  export declare class SkipAPIClarifyingQuestionResponse extends SkipAPIResponse {
333
+ /**
334
+ * The question to display to the user from the AI model after a request is made to the AI when the AI needs more information to process the request
335
+ */
288
336
  clarifyingQuestion: string;
337
+ /**
338
+ * Zero or more suggested prompts that the AI model suggests might be good responses to the clarifying question
339
+ */
340
+ suggestedPrompts: string[];
289
341
  }
290
342
  /**
291
343
  * Defines the shape of the data that is returned by the Skip API Server when the responsePhase is 'data_request'
package/dist/types.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SkipDataRequest = exports.SkipDataRequestType = exports.SkipAPIDataRequestResponse = exports.SkipAPIClarifyingQuestionResponse = exports.SkipAPIAnalysisCompleteResponse = exports.SkipAPIResponse = exports.SkipResponsePhase = exports.SkipAPIRunScriptRequest = exports.SkipAPIRequest = exports.SkipQueryFieldInfo = exports.SkipQueryInfo = exports.SkipEntityInfo = exports.SkipEntityRelationshipInfo = exports.SkipEntityFieldInfo = exports.SkipRequestPhase = exports.SkipColumnInfo = exports.SkipMessage = exports.SkipSubProcessResponse = exports.MJAPISkipResult = void 0;
3
+ exports.SkipDataRequest = exports.SkipDataRequestType = exports.SkipAPIDataRequestResponse = exports.SkipAPIClarifyingQuestionResponse = exports.SkipAPIAnalysisCompleteResponse = exports.SkipAPIAnalysisDrillDown = exports.SkipAPIAnalysisDrillDownFilter = exports.SkipAPIResponse = exports.SkipResponsePhase = exports.SkipAPIRunScriptRequest = exports.SkipAPIRequest = exports.SkipQueryFieldInfo = exports.SkipQueryInfo = exports.SkipEntityInfo = exports.SkipEntityRelationshipInfo = exports.SkipEntityFieldInfo = exports.SkipRequestPhase = exports.SkipColumnInfo = exports.SkipMessage = exports.SkipSubProcessResponse = exports.MJAPISkipResult = void 0;
4
4
  /**
5
5
  * This type defines the shape of data that is passed back from the MJ API server to callers, typically the MJ Explorer UI
6
6
  */
@@ -91,6 +91,18 @@ exports.SkipResponsePhase = {
91
91
  class SkipAPIResponse {
92
92
  }
93
93
  exports.SkipAPIResponse = SkipAPIResponse;
94
+ /**
95
+ * Defines an individual filter that will be used to filter the data in the view to the specific row or rows that the user clicked on for a drill down
96
+ */
97
+ class SkipAPIAnalysisDrillDownFilter {
98
+ }
99
+ exports.SkipAPIAnalysisDrillDownFilter = SkipAPIAnalysisDrillDownFilter;
100
+ /**
101
+ * Defines the filtering information necessary for a reporting UI to enable behavior to drill down when a user clicks on a portion of a report like an element of a chart or a row in a table
102
+ */
103
+ class SkipAPIAnalysisDrillDown {
104
+ }
105
+ exports.SkipAPIAnalysisDrillDown = SkipAPIAnalysisDrillDown;
94
106
  /**
95
107
  * Defines the shape of the data that is returned by the Skip API Server when the responsePhase is 'analysis_complete'
96
108
  */
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAa,eAAe;CAgD3B;AAhDD,0CAgDC;AAGD;;;;GAIG;AACH,MAAa,sBAAsB;CAOlC;AAPD,wDAOC;AAGD;;;GAGG;AACH,MAAa,WAAW;CASvB;AATD,kCASC;AAID;;GAEG;AACH,MAAa,cAAc;CAK1B;AALD,wCAKC;AAGD;;;;;;;;GAQG;AACU,QAAA,gBAAgB,GAAG;IAC5B,eAAe,EAAE,iBAAiB;IAClC,yBAAyB,EAAE,2BAA2B;IACtD,uBAAuB,EAAE,yBAAyB;IAClD,sBAAsB,EAAE,wBAAwB;IAChD,mBAAmB,EAAE,qBAAqB;CACpC,CAAC;AAGX,MAAa,mBAAmB;CA4B/B;AA5BD,kDA4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
1
  {
2
2
  "name": "@memberjunction/skip-types",
3
- "version": "0.9.49",
3
+ "version": "0.9.51",
4
4
  "description": "MemberJunction: Skip AI Assistant - Types that are used between the MJAPI and the Skip API as well as the UI within MemberJunction Explorer",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "typescript": "^5.3.3"
20
20
  },
21
21
  "dependencies": {
22
- "@memberjunction/core-entities": "^0.9.146",
23
- "@memberjunction/data-context": "^0.9.32"
22
+ "@memberjunction/core-entities": "^0.9.148",
23
+ "@memberjunction/data-context": "^0.9.34"
24
24
  }
25
25
  }