@memberjunction/server 2.39.0 → 2.41.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.
@@ -9821,9 +9821,9 @@ let User_ = class User_ {
9821
9821
  UserNotifications_UserIDArray;
9822
9822
  Templates_UserIDArray;
9823
9823
  UserFavorites_UserIDArray;
9824
- ResourceLinks_UserIDArray;
9825
9824
  ListCategories_UserIDArray;
9826
9825
  ScheduledActions_CreatedByUserIDArray;
9826
+ ResourceLinks_UserIDArray;
9827
9827
  AIAgentRequests_ResponseByUserIDArray;
9828
9828
  MJ_ReportUserStates_UserIDArray;
9829
9829
  AIAgentNotes_UserIDArray;
@@ -10050,10 +10050,6 @@ __decorate([
10050
10050
  Field(() => [UserFavorite_]),
10051
10051
  __metadata("design:type", Array)
10052
10052
  ], User_.prototype, "UserFavorites_UserIDArray", void 0);
10053
- __decorate([
10054
- Field(() => [ResourceLink_]),
10055
- __metadata("design:type", Array)
10056
- ], User_.prototype, "ResourceLinks_UserIDArray", void 0);
10057
10053
  __decorate([
10058
10054
  Field(() => [ListCategory_]),
10059
10055
  __metadata("design:type", Array)
@@ -10062,6 +10058,10 @@ __decorate([
10062
10058
  Field(() => [ScheduledAction_]),
10063
10059
  __metadata("design:type", Array)
10064
10060
  ], User_.prototype, "ScheduledActions_CreatedByUserIDArray", void 0);
10061
+ __decorate([
10062
+ Field(() => [ResourceLink_]),
10063
+ __metadata("design:type", Array)
10064
+ ], User_.prototype, "ResourceLinks_UserIDArray", void 0);
10065
10065
  __decorate([
10066
10066
  Field(() => [AIAgentRequest_]),
10067
10067
  __metadata("design:type", Array)
@@ -10501,13 +10501,6 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
10501
10501
  const result = this.ArrayMapFieldNamesToCodeNames('User Favorites', await dataSource.query(sSQL));
10502
10502
  return result;
10503
10503
  }
10504
- async ResourceLinks_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
10505
- this.CheckUserReadPermissions('Resource Links', userPayload);
10506
- const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
10507
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
10508
- const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
10509
- return result;
10510
- }
10511
10504
  async ListCategories_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
10512
10505
  this.CheckUserReadPermissions('List Categories', userPayload);
10513
10506
  const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
@@ -10522,6 +10515,13 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
10522
10515
  const result = this.ArrayMapFieldNamesToCodeNames('Scheduled Actions', await dataSource.query(sSQL));
10523
10516
  return result;
10524
10517
  }
10518
+ async ResourceLinks_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
10519
+ this.CheckUserReadPermissions('Resource Links', userPayload);
10520
+ const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
10521
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
10522
+ const result = this.ArrayMapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL));
10523
+ return result;
10524
+ }
10525
10525
  async AIAgentRequests_ResponseByUserIDArray(user_, { dataSources, userPayload }, pubSub) {
10526
10526
  this.CheckUserReadPermissions('AI Agent Requests', userPayload);
10527
10527
  const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
@@ -10893,32 +10893,32 @@ __decorate([
10893
10893
  __metadata("design:returntype", Promise)
10894
10894
  ], UserResolverBase.prototype, "UserFavorites_UserIDArray", null);
10895
10895
  __decorate([
10896
- FieldResolver(() => [ResourceLink_]),
10896
+ FieldResolver(() => [ListCategory_]),
10897
10897
  __param(0, Root()),
10898
10898
  __param(1, Ctx()),
10899
10899
  __param(2, PubSub()),
10900
10900
  __metadata("design:type", Function),
10901
10901
  __metadata("design:paramtypes", [User_, Object, PubSubEngine]),
10902
10902
  __metadata("design:returntype", Promise)
10903
- ], UserResolverBase.prototype, "ResourceLinks_UserIDArray", null);
10903
+ ], UserResolverBase.prototype, "ListCategories_UserIDArray", null);
10904
10904
  __decorate([
10905
- FieldResolver(() => [ListCategory_]),
10905
+ FieldResolver(() => [ScheduledAction_]),
10906
10906
  __param(0, Root()),
10907
10907
  __param(1, Ctx()),
10908
10908
  __param(2, PubSub()),
10909
10909
  __metadata("design:type", Function),
10910
10910
  __metadata("design:paramtypes", [User_, Object, PubSubEngine]),
10911
10911
  __metadata("design:returntype", Promise)
10912
- ], UserResolverBase.prototype, "ListCategories_UserIDArray", null);
10912
+ ], UserResolverBase.prototype, "ScheduledActions_CreatedByUserIDArray", null);
10913
10913
  __decorate([
10914
- FieldResolver(() => [ScheduledAction_]),
10914
+ FieldResolver(() => [ResourceLink_]),
10915
10915
  __param(0, Root()),
10916
10916
  __param(1, Ctx()),
10917
10917
  __param(2, PubSub()),
10918
10918
  __metadata("design:type", Function),
10919
10919
  __metadata("design:paramtypes", [User_, Object, PubSubEngine]),
10920
10920
  __metadata("design:returntype", Promise)
10921
- ], UserResolverBase.prototype, "ScheduledActions_CreatedByUserIDArray", null);
10921
+ ], UserResolverBase.prototype, "ResourceLinks_UserIDArray", null);
10922
10922
  __decorate([
10923
10923
  FieldResolver(() => [AIAgentRequest_]),
10924
10924
  __param(0, Root()),
@@ -25076,6 +25076,7 @@ let ConversationDetail_ = class ConversationDetail_ {
25076
25076
  UserID;
25077
25077
  ArtifactID;
25078
25078
  ArtifactVersionID;
25079
+ CompletionTime;
25079
25080
  Conversation;
25080
25081
  User;
25081
25082
  Artifact;
@@ -25154,6 +25155,10 @@ __decorate([
25154
25155
  MaxLength(16),
25155
25156
  __metadata("design:type", String)
25156
25157
  ], ConversationDetail_.prototype, "ArtifactVersionID", void 0);
25158
+ __decorate([
25159
+ Field(() => Int, { nullable: true, description: `Duration in milliseconds representing how long the AI response processing took to complete for this conversation detail.` }),
25160
+ __metadata("design:type", Number)
25161
+ ], ConversationDetail_.prototype, "CompletionTime", void 0);
25157
25162
  __decorate([
25158
25163
  Field({ nullable: true }),
25159
25164
  MaxLength(510),
@@ -25191,6 +25196,7 @@ let CreateConversationDetailInput = class CreateConversationDetailInput {
25191
25196
  UserID;
25192
25197
  ArtifactID;
25193
25198
  ArtifactVersionID;
25199
+ CompletionTime;
25194
25200
  };
25195
25201
  __decorate([
25196
25202
  Field({ nullable: true }),
@@ -25244,6 +25250,10 @@ __decorate([
25244
25250
  Field({ nullable: true }),
25245
25251
  __metadata("design:type", String)
25246
25252
  ], CreateConversationDetailInput.prototype, "ArtifactVersionID", void 0);
25253
+ __decorate([
25254
+ Field(() => Int, { nullable: true }),
25255
+ __metadata("design:type", Number)
25256
+ ], CreateConversationDetailInput.prototype, "CompletionTime", void 0);
25247
25257
  CreateConversationDetailInput = __decorate([
25248
25258
  InputType()
25249
25259
  ], CreateConversationDetailInput);
@@ -25263,6 +25273,7 @@ let UpdateConversationDetailInput = class UpdateConversationDetailInput {
25263
25273
  UserID;
25264
25274
  ArtifactID;
25265
25275
  ArtifactVersionID;
25276
+ CompletionTime;
25266
25277
  OldValues___;
25267
25278
  };
25268
25279
  __decorate([
@@ -25321,6 +25332,10 @@ __decorate([
25321
25332
  Field({ nullable: true }),
25322
25333
  __metadata("design:type", String)
25323
25334
  ], UpdateConversationDetailInput.prototype, "ArtifactVersionID", void 0);
25335
+ __decorate([
25336
+ Field(() => Int, { nullable: true }),
25337
+ __metadata("design:type", Number)
25338
+ ], UpdateConversationDetailInput.prototype, "CompletionTime", void 0);
25324
25339
  __decorate([
25325
25340
  Field(() => [KeyValuePairInput], { nullable: true }),
25326
25341
  __metadata("design:type", Array)
@@ -25502,6 +25517,7 @@ let Conversation_ = class Conversation_ {
25502
25517
  DataContextID;
25503
25518
  _mj__CreatedAt;
25504
25519
  _mj__UpdatedAt;
25520
+ Status;
25505
25521
  User;
25506
25522
  LinkedEntity;
25507
25523
  DataContext;
@@ -25567,6 +25583,11 @@ __decorate([
25567
25583
  MaxLength(10),
25568
25584
  __metadata("design:type", Date)
25569
25585
  ], Conversation_.prototype, "_mj__UpdatedAt", void 0);
25586
+ __decorate([
25587
+ Field({ description: `Tracks the processing status of the conversation: Available, Processing` }),
25588
+ MaxLength(40),
25589
+ __metadata("design:type", String)
25590
+ ], Conversation_.prototype, "Status", void 0);
25570
25591
  __decorate([
25571
25592
  Field(),
25572
25593
  MaxLength(200),
@@ -25608,6 +25629,7 @@ let CreateConversationInput = class CreateConversationInput {
25608
25629
  LinkedEntityID;
25609
25630
  LinkedRecordID;
25610
25631
  DataContextID;
25632
+ Status;
25611
25633
  };
25612
25634
  __decorate([
25613
25635
  Field({ nullable: true }),
@@ -25645,6 +25667,10 @@ __decorate([
25645
25667
  Field({ nullable: true }),
25646
25668
  __metadata("design:type", String)
25647
25669
  ], CreateConversationInput.prototype, "DataContextID", void 0);
25670
+ __decorate([
25671
+ Field({ nullable: true }),
25672
+ __metadata("design:type", String)
25673
+ ], CreateConversationInput.prototype, "Status", void 0);
25648
25674
  CreateConversationInput = __decorate([
25649
25675
  InputType()
25650
25676
  ], CreateConversationInput);
@@ -25660,6 +25686,7 @@ let UpdateConversationInput = class UpdateConversationInput {
25660
25686
  LinkedEntityID;
25661
25687
  LinkedRecordID;
25662
25688
  DataContextID;
25689
+ Status;
25663
25690
  OldValues___;
25664
25691
  };
25665
25692
  __decorate([
@@ -25702,6 +25729,10 @@ __decorate([
25702
25729
  Field({ nullable: true }),
25703
25730
  __metadata("design:type", String)
25704
25731
  ], UpdateConversationInput.prototype, "DataContextID", void 0);
25732
+ __decorate([
25733
+ Field({ nullable: true }),
25734
+ __metadata("design:type", String)
25735
+ ], UpdateConversationInput.prototype, "Status", void 0);
25705
25736
  __decorate([
25706
25737
  Field(() => [KeyValuePairInput], { nullable: true }),
25707
25738
  __metadata("design:type", Array)