@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.
|
@@ -1857,6 +1857,9 @@ let AIAgentRun_ = class AIAgentRun_ {
|
|
|
1857
1857
|
TotalCost;
|
|
1858
1858
|
_mj__CreatedAt;
|
|
1859
1859
|
_mj__UpdatedAt;
|
|
1860
|
+
Agent;
|
|
1861
|
+
Conversation;
|
|
1862
|
+
User;
|
|
1860
1863
|
MJ_AIAgentRunSteps_AgentRunIDArray;
|
|
1861
1864
|
MJ_AIAgentRuns_ParentRunIDArray;
|
|
1862
1865
|
MJ_AIPromptRuns_AgentRunIDArray;
|
|
@@ -1935,6 +1938,21 @@ __decorate([
|
|
|
1935
1938
|
MaxLength(10),
|
|
1936
1939
|
__metadata("design:type", Date)
|
|
1937
1940
|
], AIAgentRun_.prototype, "_mj__UpdatedAt", void 0);
|
|
1941
|
+
__decorate([
|
|
1942
|
+
Field({ nullable: true }),
|
|
1943
|
+
MaxLength(510),
|
|
1944
|
+
__metadata("design:type", String)
|
|
1945
|
+
], AIAgentRun_.prototype, "Agent", void 0);
|
|
1946
|
+
__decorate([
|
|
1947
|
+
Field({ nullable: true }),
|
|
1948
|
+
MaxLength(510),
|
|
1949
|
+
__metadata("design:type", String)
|
|
1950
|
+
], AIAgentRun_.prototype, "Conversation", void 0);
|
|
1951
|
+
__decorate([
|
|
1952
|
+
Field({ nullable: true }),
|
|
1953
|
+
MaxLength(200),
|
|
1954
|
+
__metadata("design:type", String)
|
|
1955
|
+
], AIAgentRun_.prototype, "User", void 0);
|
|
1938
1956
|
__decorate([
|
|
1939
1957
|
Field(() => [AIAgentRunStep_]),
|
|
1940
1958
|
__metadata("design:type", Array)
|
|
@@ -3040,6 +3058,7 @@ let AIAgent_ = class AIAgent_ {
|
|
|
3040
3058
|
TypeID;
|
|
3041
3059
|
Parent;
|
|
3042
3060
|
ContextCompressionPrompt;
|
|
3061
|
+
Type;
|
|
3043
3062
|
AIAgentRequests_AgentIDArray;
|
|
3044
3063
|
AIAgentLearningCycles_AgentIDArray;
|
|
3045
3064
|
AIAgentModels_AgentIDArray;
|
|
@@ -3130,6 +3149,11 @@ __decorate([
|
|
|
3130
3149
|
MaxLength(510),
|
|
3131
3150
|
__metadata("design:type", String)
|
|
3132
3151
|
], AIAgent_.prototype, "ContextCompressionPrompt", void 0);
|
|
3152
|
+
__decorate([
|
|
3153
|
+
Field(),
|
|
3154
|
+
MaxLength(200),
|
|
3155
|
+
__metadata("design:type", String)
|
|
3156
|
+
], AIAgent_.prototype, "Type", void 0);
|
|
3133
3157
|
__decorate([
|
|
3134
3158
|
Field(() => [AIAgentRequest_]),
|
|
3135
3159
|
__metadata("design:type", Array)
|
|
@@ -4014,6 +4038,7 @@ let AIAgentType_ = class AIAgentType_ {
|
|
|
4014
4038
|
IsActive;
|
|
4015
4039
|
_mj__CreatedAt;
|
|
4016
4040
|
_mj__UpdatedAt;
|
|
4041
|
+
SystemPrompt;
|
|
4017
4042
|
AIAgents_TypeIDArray;
|
|
4018
4043
|
};
|
|
4019
4044
|
__decorate([
|
|
@@ -4049,6 +4074,11 @@ __decorate([
|
|
|
4049
4074
|
MaxLength(10),
|
|
4050
4075
|
__metadata("design:type", Date)
|
|
4051
4076
|
], AIAgentType_.prototype, "_mj__UpdatedAt", void 0);
|
|
4077
|
+
__decorate([
|
|
4078
|
+
Field({ nullable: true }),
|
|
4079
|
+
MaxLength(510),
|
|
4080
|
+
__metadata("design:type", String)
|
|
4081
|
+
], AIAgentType_.prototype, "SystemPrompt", void 0);
|
|
4052
4082
|
__decorate([
|
|
4053
4083
|
Field(() => [AIAgent_]),
|
|
4054
4084
|
__metadata("design:type", Array)
|
|
@@ -12615,9 +12645,9 @@ let User_ = class User_ {
|
|
|
12615
12645
|
UserNotifications_UserIDArray;
|
|
12616
12646
|
Templates_UserIDArray;
|
|
12617
12647
|
UserFavorites_UserIDArray;
|
|
12648
|
+
ResourceLinks_UserIDArray;
|
|
12618
12649
|
ListCategories_UserIDArray;
|
|
12619
12650
|
ScheduledActions_CreatedByUserIDArray;
|
|
12620
|
-
ResourceLinks_UserIDArray;
|
|
12621
12651
|
AIAgentRequests_ResponseByUserIDArray;
|
|
12622
12652
|
MJ_DashboardUserPreferences_UserIDArray;
|
|
12623
12653
|
MJ_ReportUserStates_UserIDArray;
|
|
@@ -12847,6 +12877,10 @@ __decorate([
|
|
|
12847
12877
|
Field(() => [UserFavorite_]),
|
|
12848
12878
|
__metadata("design:type", Array)
|
|
12849
12879
|
], User_.prototype, "UserFavorites_UserIDArray", void 0);
|
|
12880
|
+
__decorate([
|
|
12881
|
+
Field(() => [ResourceLink_]),
|
|
12882
|
+
__metadata("design:type", Array)
|
|
12883
|
+
], User_.prototype, "ResourceLinks_UserIDArray", void 0);
|
|
12850
12884
|
__decorate([
|
|
12851
12885
|
Field(() => [ListCategory_]),
|
|
12852
12886
|
__metadata("design:type", Array)
|
|
@@ -12855,10 +12889,6 @@ __decorate([
|
|
|
12855
12889
|
Field(() => [ScheduledAction_]),
|
|
12856
12890
|
__metadata("design:type", Array)
|
|
12857
12891
|
], User_.prototype, "ScheduledActions_CreatedByUserIDArray", void 0);
|
|
12858
|
-
__decorate([
|
|
12859
|
-
Field(() => [ResourceLink_]),
|
|
12860
|
-
__metadata("design:type", Array)
|
|
12861
|
-
], User_.prototype, "ResourceLinks_UserIDArray", void 0);
|
|
12862
12892
|
__decorate([
|
|
12863
12893
|
Field(() => [AIAgentRequest_]),
|
|
12864
12894
|
__metadata("design:type", Array)
|
|
@@ -13310,6 +13340,13 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
13310
13340
|
const result = this.ArrayMapFieldNamesToCodeNames('User Favorites', await dataSource.query(sSQL));
|
|
13311
13341
|
return result;
|
|
13312
13342
|
}
|
|
13343
|
+
async ResourceLinks_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
13344
|
+
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
13345
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
13346
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
13347
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
|
|
13348
|
+
return result;
|
|
13349
|
+
}
|
|
13313
13350
|
async ListCategories_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
13314
13351
|
this.CheckUserReadPermissions('List Categories', userPayload);
|
|
13315
13352
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -13324,13 +13361,6 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
13324
13361
|
const result = this.ArrayMapFieldNamesToCodeNames('Scheduled Actions', await dataSource.query(sSQL));
|
|
13325
13362
|
return result;
|
|
13326
13363
|
}
|
|
13327
|
-
async ResourceLinks_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
13328
|
-
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
13329
|
-
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
13330
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
13331
|
-
const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
|
|
13332
|
-
return result;
|
|
13333
|
-
}
|
|
13334
13364
|
async AIAgentRequests_ResponseByUserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
13335
13365
|
this.CheckUserReadPermissions('AI Agent Requests', userPayload);
|
|
13336
13366
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -13723,32 +13753,32 @@ __decorate([
|
|
|
13723
13753
|
__metadata("design:returntype", Promise)
|
|
13724
13754
|
], UserResolverBase.prototype, "UserFavorites_UserIDArray", null);
|
|
13725
13755
|
__decorate([
|
|
13726
|
-
FieldResolver(() => [
|
|
13756
|
+
FieldResolver(() => [ResourceLink_]),
|
|
13727
13757
|
__param(0, Root()),
|
|
13728
13758
|
__param(1, Ctx()),
|
|
13729
13759
|
__param(2, PubSub()),
|
|
13730
13760
|
__metadata("design:type", Function),
|
|
13731
13761
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
13732
13762
|
__metadata("design:returntype", Promise)
|
|
13733
|
-
], UserResolverBase.prototype, "
|
|
13763
|
+
], UserResolverBase.prototype, "ResourceLinks_UserIDArray", null);
|
|
13734
13764
|
__decorate([
|
|
13735
|
-
FieldResolver(() => [
|
|
13765
|
+
FieldResolver(() => [ListCategory_]),
|
|
13736
13766
|
__param(0, Root()),
|
|
13737
13767
|
__param(1, Ctx()),
|
|
13738
13768
|
__param(2, PubSub()),
|
|
13739
13769
|
__metadata("design:type", Function),
|
|
13740
13770
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
13741
13771
|
__metadata("design:returntype", Promise)
|
|
13742
|
-
], UserResolverBase.prototype, "
|
|
13772
|
+
], UserResolverBase.prototype, "ListCategories_UserIDArray", null);
|
|
13743
13773
|
__decorate([
|
|
13744
|
-
FieldResolver(() => [
|
|
13774
|
+
FieldResolver(() => [ScheduledAction_]),
|
|
13745
13775
|
__param(0, Root()),
|
|
13746
13776
|
__param(1, Ctx()),
|
|
13747
13777
|
__param(2, PubSub()),
|
|
13748
13778
|
__metadata("design:type", Function),
|
|
13749
13779
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
13750
13780
|
__metadata("design:returntype", Promise)
|
|
13751
|
-
], UserResolverBase.prototype, "
|
|
13781
|
+
], UserResolverBase.prototype, "ScheduledActions_CreatedByUserIDArray", null);
|
|
13752
13782
|
__decorate([
|
|
13753
13783
|
FieldResolver(() => [AIAgentRequest_]),
|
|
13754
13784
|
__param(0, Root()),
|
|
@@ -56934,11 +56964,13 @@ __decorate([
|
|
|
56934
56964
|
__metadata("design:type", String)
|
|
56935
56965
|
], AIPromptRun_.prototype, "ConfigurationID", void 0);
|
|
56936
56966
|
__decorate([
|
|
56937
|
-
Field(
|
|
56967
|
+
Field({ description: `When the prompt run started, with timezone offset information.` }),
|
|
56968
|
+
MaxLength(10),
|
|
56938
56969
|
__metadata("design:type", Date)
|
|
56939
56970
|
], AIPromptRun_.prototype, "RunAt", void 0);
|
|
56940
56971
|
__decorate([
|
|
56941
|
-
Field(
|
|
56972
|
+
Field({ nullable: true, description: `When the prompt run completed, with timezone offset information.` }),
|
|
56973
|
+
MaxLength(10),
|
|
56942
56974
|
__metadata("design:type", Date)
|
|
56943
56975
|
], AIPromptRun_.prototype, "CompletedAt", void 0);
|
|
56944
56976
|
__decorate([
|
|
@@ -57086,11 +57118,11 @@ __decorate([
|
|
|
57086
57118
|
__metadata("design:type", String)
|
|
57087
57119
|
], CreateAIPromptRunInput.prototype, "ConfigurationID", void 0);
|
|
57088
57120
|
__decorate([
|
|
57089
|
-
Field(
|
|
57121
|
+
Field({ nullable: true }),
|
|
57090
57122
|
__metadata("design:type", Date)
|
|
57091
57123
|
], CreateAIPromptRunInput.prototype, "RunAt", void 0);
|
|
57092
57124
|
__decorate([
|
|
57093
|
-
Field(
|
|
57125
|
+
Field({ nullable: true }),
|
|
57094
57126
|
__metadata("design:type", Date)
|
|
57095
57127
|
], CreateAIPromptRunInput.prototype, "CompletedAt", void 0);
|
|
57096
57128
|
__decorate([
|
|
@@ -57198,11 +57230,11 @@ __decorate([
|
|
|
57198
57230
|
__metadata("design:type", String)
|
|
57199
57231
|
], UpdateAIPromptRunInput.prototype, "ConfigurationID", void 0);
|
|
57200
57232
|
__decorate([
|
|
57201
|
-
Field(
|
|
57233
|
+
Field({ nullable: true }),
|
|
57202
57234
|
__metadata("design:type", Date)
|
|
57203
57235
|
], UpdateAIPromptRunInput.prototype, "RunAt", void 0);
|
|
57204
57236
|
__decorate([
|
|
57205
|
-
Field(
|
|
57237
|
+
Field({ nullable: true }),
|
|
57206
57238
|
__metadata("design:type", Date)
|
|
57207
57239
|
], UpdateAIPromptRunInput.prototype, "CompletedAt", void 0);
|
|
57208
57240
|
__decorate([
|