@memberjunction/server 2.44.0 → 2.45.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/generated/generated.d.ts +222 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +1380 -0
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/AskSkipResolver.d.ts.map +1 -1
- package/dist/resolvers/AskSkipResolver.js +4 -3
- package/dist/resolvers/AskSkipResolver.js.map +1 -1
- package/dist/resolvers/ReportResolver.d.ts.map +1 -1
- package/dist/resolvers/ReportResolver.js +2 -1
- package/dist/resolvers/ReportResolver.js.map +1 -1
- package/package.json +23 -23
- package/src/generated/generated.ts +860 -1
- package/src/resolvers/AskSkipResolver.ts +5 -3
- package/src/resolvers/ReportResolver.ts +4 -1
|
@@ -51,6 +51,7 @@ import {
|
|
|
51
51
|
DataContextEntity,
|
|
52
52
|
DataContextItemEntity,
|
|
53
53
|
UserNotificationEntity,
|
|
54
|
+
AIAgentEntityExtended
|
|
54
55
|
} from '@memberjunction/core-entities';
|
|
55
56
|
import { DataSource } from 'typeorm';
|
|
56
57
|
import { apiKey, baseUrl, configInfo, graphqlPort, mj_core_schema } from '../config.js';
|
|
@@ -60,7 +61,7 @@ import { MJGlobal, CopyScalarsAndArrays } from '@memberjunction/global';
|
|
|
60
61
|
import { sendPostRequest } from '../util.js';
|
|
61
62
|
import { GetAIAPIKey } from '@memberjunction/ai';
|
|
62
63
|
import { CompositeKeyInputType } from '../generic/KeyInputOutputTypes.js';
|
|
63
|
-
import {
|
|
64
|
+
import { AIEngine } from '@memberjunction/aiengine';
|
|
64
65
|
import { deleteAccessToken, GetDataAccessToken, registerAccessToken, tokenExists } from './GetDataResolver.js';
|
|
65
66
|
import e from 'express';
|
|
66
67
|
|
|
@@ -1659,7 +1660,8 @@ cycle.`);
|
|
|
1659
1660
|
|
|
1660
1661
|
// get the list of entities
|
|
1661
1662
|
const entities = md.Entities.filter((e) => {
|
|
1662
|
-
if (
|
|
1663
|
+
if (!configInfo.askSkip.entitiesToSend.excludeSchemas.includes(e.SchemaName) ||
|
|
1664
|
+
skipSpecialIncludeEntities.includes(e.Name.trim().toLowerCase())) {
|
|
1663
1665
|
const sd = e.ScopeDefault?.trim();
|
|
1664
1666
|
if (sd && sd.length > 0) {
|
|
1665
1667
|
const scopes = sd.split(',').map((s) => s.trim().toLowerCase()) ?? ['all'];
|
|
@@ -2679,7 +2681,7 @@ cycle.`);
|
|
|
2679
2681
|
dataSource: DataSource,
|
|
2680
2682
|
startTime: Date
|
|
2681
2683
|
): Promise<{ AIMessageConversationDetailID: string }> {
|
|
2682
|
-
const sTitle = apiResponse.
|
|
2684
|
+
const sTitle = apiResponse.title;
|
|
2683
2685
|
const sResult = JSON.stringify(apiResponse);
|
|
2684
2686
|
|
|
2685
2687
|
// first up, let's see if Skip asked us to create an artifact or add a new version to an existing artifact, or NOT
|
|
@@ -96,7 +96,10 @@ export class ReportResolverExtended {
|
|
|
96
96
|
|
|
97
97
|
const report = await md.GetEntityObject<ReportEntity>('Reports', u);
|
|
98
98
|
report.NewRecord();
|
|
99
|
-
report
|
|
99
|
+
// support the legacy report title as old conversation details had a reportTitle property
|
|
100
|
+
// but the new SkipData object has a title property, so favor the title property
|
|
101
|
+
const title = skipData.title ? skipData.title : skipData.reportTitle ? skipData.reportTitle : 'Untitled Report';
|
|
102
|
+
report.Name = title;
|
|
100
103
|
report.Description = skipData.userExplanation ? skipData.userExplanation : '';
|
|
101
104
|
report.ConversationID = result[0].ConversationID;
|
|
102
105
|
report.ConversationDetailID = ConversationDetailID;
|