@memberjunction/server 2.46.0 → 2.47.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.47.0",
|
|
4
4
|
"description": "MemberJunction: This project provides API access via GraphQL to the common data store.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -22,29 +22,29 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@apollo/server": "^4.9.1",
|
|
24
24
|
"@graphql-tools/utils": "^10.0.1",
|
|
25
|
-
"@memberjunction/actions": "2.
|
|
26
|
-
"@memberjunction/ai": "2.
|
|
27
|
-
"@memberjunction/ai-mistral": "2.
|
|
28
|
-
"@memberjunction/ai-openai": "2.
|
|
29
|
-
"@memberjunction/ai-vectors-pinecone": "2.
|
|
30
|
-
"@memberjunction/aiengine": "2.
|
|
31
|
-
"@memberjunction/ai-prompts": "2.
|
|
32
|
-
"@memberjunction/core": "2.
|
|
33
|
-
"@memberjunction/core-actions": "2.
|
|
34
|
-
"@memberjunction/core-entities": "2.
|
|
35
|
-
"@memberjunction/core-entities-server": "2.
|
|
36
|
-
"@memberjunction/data-context": "2.
|
|
37
|
-
"@memberjunction/data-context-server": "2.
|
|
38
|
-
"@memberjunction/doc-utils": "2.
|
|
39
|
-
"@memberjunction/entity-communications-server": "2.
|
|
40
|
-
"@memberjunction/external-change-detection": "2.
|
|
41
|
-
"@memberjunction/global": "2.
|
|
42
|
-
"@memberjunction/graphql-dataprovider": "2.
|
|
43
|
-
"@memberjunction/queue": "2.
|
|
44
|
-
"@memberjunction/skip-types": "2.
|
|
45
|
-
"@memberjunction/sqlserver-dataprovider": "2.
|
|
46
|
-
"@memberjunction/storage": "2.
|
|
47
|
-
"@memberjunction/templates": "2.
|
|
25
|
+
"@memberjunction/actions": "2.47.0",
|
|
26
|
+
"@memberjunction/ai": "2.47.0",
|
|
27
|
+
"@memberjunction/ai-mistral": "2.47.0",
|
|
28
|
+
"@memberjunction/ai-openai": "2.47.0",
|
|
29
|
+
"@memberjunction/ai-vectors-pinecone": "2.47.0",
|
|
30
|
+
"@memberjunction/aiengine": "2.47.0",
|
|
31
|
+
"@memberjunction/ai-prompts": "2.47.0",
|
|
32
|
+
"@memberjunction/core": "2.47.0",
|
|
33
|
+
"@memberjunction/core-actions": "2.47.0",
|
|
34
|
+
"@memberjunction/core-entities": "2.47.0",
|
|
35
|
+
"@memberjunction/core-entities-server": "2.47.0",
|
|
36
|
+
"@memberjunction/data-context": "2.47.0",
|
|
37
|
+
"@memberjunction/data-context-server": "2.47.0",
|
|
38
|
+
"@memberjunction/doc-utils": "2.47.0",
|
|
39
|
+
"@memberjunction/entity-communications-server": "2.47.0",
|
|
40
|
+
"@memberjunction/external-change-detection": "2.47.0",
|
|
41
|
+
"@memberjunction/global": "2.47.0",
|
|
42
|
+
"@memberjunction/graphql-dataprovider": "2.47.0",
|
|
43
|
+
"@memberjunction/queue": "2.47.0",
|
|
44
|
+
"@memberjunction/skip-types": "2.47.0",
|
|
45
|
+
"@memberjunction/sqlserver-dataprovider": "2.47.0",
|
|
46
|
+
"@memberjunction/storage": "2.47.0",
|
|
47
|
+
"@memberjunction/templates": "2.47.0",
|
|
48
48
|
"@types/compression": "^1.7.5",
|
|
49
49
|
"@types/cors": "^2.8.13",
|
|
50
50
|
"@types/jsonwebtoken": "9.0.6",
|
|
@@ -1244,6 +1244,18 @@ export class AIAgentRun_ {
|
|
|
1244
1244
|
@MaxLength(10)
|
|
1245
1245
|
_mj__UpdatedAt: Date;
|
|
1246
1246
|
|
|
1247
|
+
@Field({nullable: true})
|
|
1248
|
+
@MaxLength(510)
|
|
1249
|
+
Agent?: string;
|
|
1250
|
+
|
|
1251
|
+
@Field({nullable: true})
|
|
1252
|
+
@MaxLength(510)
|
|
1253
|
+
Conversation?: string;
|
|
1254
|
+
|
|
1255
|
+
@Field({nullable: true})
|
|
1256
|
+
@MaxLength(200)
|
|
1257
|
+
User?: string;
|
|
1258
|
+
|
|
1247
1259
|
@Field(() => [AIAgentRunStep_])
|
|
1248
1260
|
MJ_AIAgentRunSteps_AgentRunIDArray: AIAgentRunStep_[]; // Link to MJ_AIAgentRunSteps
|
|
1249
1261
|
|
|
@@ -1982,6 +1994,10 @@ export class AIAgent_ {
|
|
|
1982
1994
|
@MaxLength(510)
|
|
1983
1995
|
ContextCompressionPrompt?: string;
|
|
1984
1996
|
|
|
1997
|
+
@Field()
|
|
1998
|
+
@MaxLength(200)
|
|
1999
|
+
Type: string;
|
|
2000
|
+
|
|
1985
2001
|
@Field(() => [AIAgentRequest_])
|
|
1986
2002
|
AIAgentRequests_AgentIDArray: AIAgentRequest_[]; // Link to AIAgentRequests
|
|
1987
2003
|
|
|
@@ -2556,6 +2572,10 @@ export class AIAgentType_ {
|
|
|
2556
2572
|
@MaxLength(10)
|
|
2557
2573
|
_mj__UpdatedAt: Date;
|
|
2558
2574
|
|
|
2575
|
+
@Field({nullable: true})
|
|
2576
|
+
@MaxLength(510)
|
|
2577
|
+
SystemPrompt?: string;
|
|
2578
|
+
|
|
2559
2579
|
@Field(() => [AIAgent_])
|
|
2560
2580
|
AIAgents_TypeIDArray: AIAgent_[]; // Link to AIAgents
|
|
2561
2581
|
|
|
@@ -7999,15 +8019,15 @@ export class User_ {
|
|
|
7999
8019
|
@Field(() => [UserFavorite_])
|
|
8000
8020
|
UserFavorites_UserIDArray: UserFavorite_[]; // Link to UserFavorites
|
|
8001
8021
|
|
|
8022
|
+
@Field(() => [ResourceLink_])
|
|
8023
|
+
ResourceLinks_UserIDArray: ResourceLink_[]; // Link to ResourceLinks
|
|
8024
|
+
|
|
8002
8025
|
@Field(() => [ListCategory_])
|
|
8003
8026
|
ListCategories_UserIDArray: ListCategory_[]; // Link to ListCategories
|
|
8004
8027
|
|
|
8005
8028
|
@Field(() => [ScheduledAction_])
|
|
8006
8029
|
ScheduledActions_CreatedByUserIDArray: ScheduledAction_[]; // Link to ScheduledActions
|
|
8007
8030
|
|
|
8008
|
-
@Field(() => [ResourceLink_])
|
|
8009
|
-
ResourceLinks_UserIDArray: ResourceLink_[]; // Link to ResourceLinks
|
|
8010
|
-
|
|
8011
8031
|
@Field(() => [AIAgentRequest_])
|
|
8012
8032
|
AIAgentRequests_ResponseByUserIDArray: AIAgentRequest_[]; // Link to AIAgentRequests
|
|
8013
8033
|
|
|
@@ -8457,6 +8477,15 @@ export class UserResolverBase extends ResolverBase {
|
|
|
8457
8477
|
return result;
|
|
8458
8478
|
}
|
|
8459
8479
|
|
|
8480
|
+
@FieldResolver(() => [ResourceLink_])
|
|
8481
|
+
async ResourceLinks_UserIDArray(@Root() user_: User_, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
8482
|
+
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
8483
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
8484
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
8485
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
|
|
8486
|
+
return result;
|
|
8487
|
+
}
|
|
8488
|
+
|
|
8460
8489
|
@FieldResolver(() => [ListCategory_])
|
|
8461
8490
|
async ListCategories_UserIDArray(@Root() user_: User_, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
8462
8491
|
this.CheckUserReadPermissions('List Categories', userPayload);
|
|
@@ -8475,15 +8504,6 @@ export class UserResolverBase extends ResolverBase {
|
|
|
8475
8504
|
return result;
|
|
8476
8505
|
}
|
|
8477
8506
|
|
|
8478
|
-
@FieldResolver(() => [ResourceLink_])
|
|
8479
|
-
async ResourceLinks_UserIDArray(@Root() user_: User_, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
8480
|
-
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
8481
|
-
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
8482
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
8483
|
-
const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
|
|
8484
|
-
return result;
|
|
8485
|
-
}
|
|
8486
|
-
|
|
8487
8507
|
@FieldResolver(() => [AIAgentRequest_])
|
|
8488
8508
|
async AIAgentRequests_ResponseByUserIDArray(@Root() user_: User_, @Ctx() { dataSources, userPayload }: AppContext, @PubSub() pubSub: PubSubEngine) {
|
|
8489
8509
|
this.CheckUserReadPermissions('AI Agent Requests', userPayload);
|
|
@@ -35843,10 +35863,12 @@ export class AIPromptRun_ {
|
|
|
35843
35863
|
@MaxLength(16)
|
|
35844
35864
|
ConfigurationID?: string;
|
|
35845
35865
|
|
|
35846
|
-
@Field(
|
|
35866
|
+
@Field({description: `When the prompt run started, with timezone offset information.`})
|
|
35867
|
+
@MaxLength(10)
|
|
35847
35868
|
RunAt: Date;
|
|
35848
35869
|
|
|
35849
|
-
@Field(
|
|
35870
|
+
@Field({nullable: true, description: `When the prompt run completed, with timezone offset information.`})
|
|
35871
|
+
@MaxLength(10)
|
|
35850
35872
|
CompletedAt?: Date;
|
|
35851
35873
|
|
|
35852
35874
|
@Field(() => Int, {nullable: true, description: `Total execution time in milliseconds.`})
|
|
@@ -35947,10 +35969,10 @@ export class CreateAIPromptRunInput {
|
|
|
35947
35969
|
@Field({ nullable: true })
|
|
35948
35970
|
ConfigurationID: string | null;
|
|
35949
35971
|
|
|
35950
|
-
@Field(
|
|
35972
|
+
@Field({ nullable: true })
|
|
35951
35973
|
RunAt?: Date;
|
|
35952
35974
|
|
|
35953
|
-
@Field(
|
|
35975
|
+
@Field({ nullable: true })
|
|
35954
35976
|
CompletedAt: Date | null;
|
|
35955
35977
|
|
|
35956
35978
|
@Field(() => Int, { nullable: true })
|
|
@@ -36017,10 +36039,10 @@ export class UpdateAIPromptRunInput {
|
|
|
36017
36039
|
@Field({ nullable: true })
|
|
36018
36040
|
ConfigurationID?: string | null;
|
|
36019
36041
|
|
|
36020
|
-
@Field(
|
|
36042
|
+
@Field({ nullable: true })
|
|
36021
36043
|
RunAt?: Date;
|
|
36022
36044
|
|
|
36023
|
-
@Field(
|
|
36045
|
+
@Field({ nullable: true })
|
|
36024
36046
|
CompletedAt?: Date | null;
|
|
36025
36047
|
|
|
36026
36048
|
@Field(() => Int, { nullable: true })
|