@memberjunction/server 2.132.0 → 3.0.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.
@@ -4966,6 +4966,8 @@ let MJAIAgentNote_ = class MJAIAgentNote_ {
4966
4966
  AgentNoteType;
4967
4967
  User;
4968
4968
  SourceConversation;
4969
+ SourceConversationDetail;
4970
+ SourceAIAgentRun;
4969
4971
  Company;
4970
4972
  EmbeddingModel;
4971
4973
  };
@@ -5070,6 +5072,15 @@ __decorate([
5070
5072
  MaxLength(510),
5071
5073
  __metadata("design:type", String)
5072
5074
  ], MJAIAgentNote_.prototype, "SourceConversation", void 0);
5075
+ __decorate([
5076
+ Field({ nullable: true }),
5077
+ __metadata("design:type", String)
5078
+ ], MJAIAgentNote_.prototype, "SourceConversationDetail", void 0);
5079
+ __decorate([
5080
+ Field({ nullable: true }),
5081
+ MaxLength(510),
5082
+ __metadata("design:type", String)
5083
+ ], MJAIAgentNote_.prototype, "SourceAIAgentRun", void 0);
5073
5084
  __decorate([
5074
5085
  Field({ nullable: true }),
5075
5086
  MaxLength(100),
@@ -10628,6 +10639,7 @@ let MJAIResultCache_ = class MJAIResultCache_ {
10628
10639
  Vendor;
10629
10640
  Agent;
10630
10641
  Configuration;
10642
+ PromptRun;
10631
10643
  };
10632
10644
  __decorate([
10633
10645
  Field(),
@@ -10726,6 +10738,11 @@ __decorate([
10726
10738
  MaxLength(200),
10727
10739
  __metadata("design:type", String)
10728
10740
  ], MJAIResultCache_.prototype, "Configuration", void 0);
10741
+ __decorate([
10742
+ Field({ nullable: true }),
10743
+ MaxLength(510),
10744
+ __metadata("design:type", String)
10745
+ ], MJAIResultCache_.prototype, "PromptRun", void 0);
10729
10746
  MJAIResultCache_ = __decorate([
10730
10747
  ObjectType({ description: `Stores cached results of AI prompts, including multiple runs for history and tracking purposes.` })
10731
10748
  ], MJAIResultCache_);
@@ -21524,6 +21541,7 @@ let MJConversation_ = class MJConversation_ {
21524
21541
  DataContext;
21525
21542
  Environment;
21526
21543
  Project;
21544
+ TestRun;
21527
21545
  ConversationDetails_ConversationIDArray;
21528
21546
  Reports_ConversationIDArray;
21529
21547
  MJ_ConversationArtifacts_ConversationIDArray;
@@ -21638,6 +21656,11 @@ __decorate([
21638
21656
  MaxLength(510),
21639
21657
  __metadata("design:type", String)
21640
21658
  ], MJConversation_.prototype, "Project", void 0);
21659
+ __decorate([
21660
+ Field({ nullable: true }),
21661
+ MaxLength(510),
21662
+ __metadata("design:type", String)
21663
+ ], MJConversation_.prototype, "TestRun", void 0);
21641
21664
  __decorate([
21642
21665
  Field(() => [MJConversationDetail_]),
21643
21666
  __metadata("design:type", Array)
@@ -24559,6 +24582,7 @@ let MJDuplicateRunDetail_ = class MJDuplicateRunDetail_ {
24559
24582
  MergeErrorMessage;
24560
24583
  _mj__CreatedAt;
24561
24584
  _mj__UpdatedAt;
24585
+ DuplicateRun;
24562
24586
  DuplicateRunDetailMatches_DuplicateRunDetailIDArray;
24563
24587
  };
24564
24588
  __decorate([
@@ -24608,6 +24632,11 @@ __decorate([
24608
24632
  MaxLength(10),
24609
24633
  __metadata("design:type", Date)
24610
24634
  ], MJDuplicateRunDetail_.prototype, "_mj__UpdatedAt", void 0);
24635
+ __decorate([
24636
+ Field(),
24637
+ MaxLength(510),
24638
+ __metadata("design:type", String)
24639
+ ], MJDuplicateRunDetail_.prototype, "DuplicateRun", void 0);
24611
24640
  __decorate([
24612
24641
  Field(() => [MJDuplicateRunDetailMatch_]),
24613
24642
  __metadata("design:type", Array)
@@ -25287,6 +25316,7 @@ let MJEmployeeCompanyIntegration_ = class MJEmployeeCompanyIntegration_ {
25287
25316
  IsActive;
25288
25317
  _mj__CreatedAt;
25289
25318
  _mj__UpdatedAt;
25319
+ Employee;
25290
25320
  CompanyIntegration;
25291
25321
  };
25292
25322
  __decorate([
@@ -25323,6 +25353,11 @@ __decorate([
25323
25353
  MaxLength(10),
25324
25354
  __metadata("design:type", Date)
25325
25355
  ], MJEmployeeCompanyIntegration_.prototype, "_mj__UpdatedAt", void 0);
25356
+ __decorate([
25357
+ Field({ nullable: true }),
25358
+ MaxLength(162),
25359
+ __metadata("design:type", String)
25360
+ ], MJEmployeeCompanyIntegration_.prototype, "Employee", void 0);
25326
25361
  __decorate([
25327
25362
  Field(),
25328
25363
  MaxLength(510),
@@ -25551,6 +25586,7 @@ let MJEmployeeRole_ = class MJEmployeeRole_ {
25551
25586
  RoleID;
25552
25587
  _mj__CreatedAt;
25553
25588
  _mj__UpdatedAt;
25589
+ Employee;
25554
25590
  Role;
25555
25591
  };
25556
25592
  __decorate([
@@ -25578,6 +25614,11 @@ __decorate([
25578
25614
  MaxLength(10),
25579
25615
  __metadata("design:type", Date)
25580
25616
  ], MJEmployeeRole_.prototype, "_mj__UpdatedAt", void 0);
25617
+ __decorate([
25618
+ Field({ nullable: true }),
25619
+ MaxLength(162),
25620
+ __metadata("design:type", String)
25621
+ ], MJEmployeeRole_.prototype, "Employee", void 0);
25581
25622
  __decorate([
25582
25623
  Field(),
25583
25624
  MaxLength(100),
@@ -25786,6 +25827,7 @@ let MJEmployeeSkill_ = class MJEmployeeSkill_ {
25786
25827
  SkillID;
25787
25828
  _mj__CreatedAt;
25788
25829
  _mj__UpdatedAt;
25830
+ Employee;
25789
25831
  Skill;
25790
25832
  };
25791
25833
  __decorate([
@@ -25813,6 +25855,11 @@ __decorate([
25813
25855
  MaxLength(10),
25814
25856
  __metadata("design:type", Date)
25815
25857
  ], MJEmployeeSkill_.prototype, "_mj__UpdatedAt", void 0);
25858
+ __decorate([
25859
+ Field({ nullable: true }),
25860
+ MaxLength(162),
25861
+ __metadata("design:type", String)
25862
+ ], MJEmployeeSkill_.prototype, "Employee", void 0);
25816
25863
  __decorate([
25817
25864
  Field(),
25818
25865
  MaxLength(100),
@@ -28520,6 +28567,8 @@ let MJEntityActionFilter_ = class MJEntityActionFilter_ {
28520
28567
  Status;
28521
28568
  _mj__CreatedAt;
28522
28569
  _mj__UpdatedAt;
28570
+ EntityAction;
28571
+ ActionFilter;
28523
28572
  };
28524
28573
  __decorate([
28525
28574
  Field(),
@@ -28555,6 +28604,15 @@ __decorate([
28555
28604
  MaxLength(10),
28556
28605
  __metadata("design:type", Date)
28557
28606
  ], MJEntityActionFilter_.prototype, "_mj__UpdatedAt", void 0);
28607
+ __decorate([
28608
+ Field(),
28609
+ MaxLength(850),
28610
+ __metadata("design:type", String)
28611
+ ], MJEntityActionFilter_.prototype, "EntityAction", void 0);
28612
+ __decorate([
28613
+ Field(),
28614
+ __metadata("design:type", String)
28615
+ ], MJEntityActionFilter_.prototype, "ActionFilter", void 0);
28558
28616
  MJEntityActionFilter_ = __decorate([
28559
28617
  ObjectType({ description: `Optional use. Maps Action Filters to specific EntityAction instances, specifying execution order and status. This allows for “pre-processing” before an Action actually is fired off, to check for various state/dirty/value conditions.` })
28560
28618
  ], MJEntityActionFilter_);
@@ -29045,6 +29103,7 @@ let MJEntityActionInvocation_ = class MJEntityActionInvocation_ {
29045
29103
  Status;
29046
29104
  _mj__CreatedAt;
29047
29105
  _mj__UpdatedAt;
29106
+ EntityAction;
29048
29107
  InvocationType;
29049
29108
  };
29050
29109
  __decorate([
@@ -29077,6 +29136,11 @@ __decorate([
29077
29136
  MaxLength(10),
29078
29137
  __metadata("design:type", Date)
29079
29138
  ], MJEntityActionInvocation_.prototype, "_mj__UpdatedAt", void 0);
29139
+ __decorate([
29140
+ Field(),
29141
+ MaxLength(850),
29142
+ __metadata("design:type", String)
29143
+ ], MJEntityActionInvocation_.prototype, "EntityAction", void 0);
29080
29144
  __decorate([
29081
29145
  Field(),
29082
29146
  MaxLength(510),
@@ -29298,6 +29362,7 @@ let MJEntityActionParam_ = class MJEntityActionParam_ {
29298
29362
  Comments;
29299
29363
  _mj__CreatedAt;
29300
29364
  _mj__UpdatedAt;
29365
+ EntityAction;
29301
29366
  ActionParam;
29302
29367
  };
29303
29368
  __decorate([
@@ -29338,6 +29403,11 @@ __decorate([
29338
29403
  MaxLength(10),
29339
29404
  __metadata("design:type", Date)
29340
29405
  ], MJEntityActionParam_.prototype, "_mj__UpdatedAt", void 0);
29406
+ __decorate([
29407
+ Field(),
29408
+ MaxLength(850),
29409
+ __metadata("design:type", String)
29410
+ ], MJEntityActionParam_.prototype, "EntityAction", void 0);
29341
29411
  __decorate([
29342
29412
  Field(),
29343
29413
  MaxLength(510),
@@ -30329,6 +30399,7 @@ let MJEntityCommunicationField_ = class MJEntityCommunicationField_ {
30329
30399
  Priority;
30330
30400
  _mj__CreatedAt;
30331
30401
  _mj__UpdatedAt;
30402
+ EntityCommunicationMessageType;
30332
30403
  };
30333
30404
  __decorate([
30334
30405
  Field(),
@@ -30359,6 +30430,11 @@ __decorate([
30359
30430
  MaxLength(10),
30360
30431
  __metadata("design:type", Date)
30361
30432
  ], MJEntityCommunicationField_.prototype, "_mj__UpdatedAt", void 0);
30433
+ __decorate([
30434
+ Field(),
30435
+ MaxLength(200),
30436
+ __metadata("design:type", String)
30437
+ ], MJEntityCommunicationField_.prototype, "EntityCommunicationMessageType", void 0);
30362
30438
  MJEntityCommunicationField_ = __decorate([
30363
30439
  ObjectType({ description: `Mapping between entity fields and communication base message types with priority` })
30364
30440
  ], MJEntityCommunicationField_);
@@ -35248,6 +35324,8 @@ let MJErrorLog_ = class MJErrorLog_ {
35248
35324
  Details;
35249
35325
  _mj__CreatedAt;
35250
35326
  _mj__UpdatedAt;
35327
+ CompanyIntegrationRun;
35328
+ CompanyIntegrationRunDetail;
35251
35329
  };
35252
35330
  __decorate([
35253
35331
  Field(),
@@ -35302,6 +35380,16 @@ __decorate([
35302
35380
  MaxLength(10),
35303
35381
  __metadata("design:type", Date)
35304
35382
  ], MJErrorLog_.prototype, "_mj__UpdatedAt", void 0);
35383
+ __decorate([
35384
+ Field({ nullable: true }),
35385
+ MaxLength(200),
35386
+ __metadata("design:type", String)
35387
+ ], MJErrorLog_.prototype, "CompanyIntegrationRun", void 0);
35388
+ __decorate([
35389
+ Field({ nullable: true }),
35390
+ MaxLength(900),
35391
+ __metadata("design:type", String)
35392
+ ], MJErrorLog_.prototype, "CompanyIntegrationRunDetail", void 0);
35305
35393
  MJErrorLog_ = __decorate([
35306
35394
  ObjectType({ description: `Captures system errors, exceptions, and failures with stack traces, context, and debugging info.` })
35307
35395
  ], MJErrorLog_);
@@ -39763,6 +39851,8 @@ let MJList_ = class MJList_ {
39763
39851
  CompanyIntegration;
39764
39852
  ListDetails_ListIDArray;
39765
39853
  DuplicateRuns_SourceListIDArray;
39854
+ MJ_ListShares_ListIDArray;
39855
+ MJ_ListInvitations_ListIDArray;
39766
39856
  };
39767
39857
  __decorate([
39768
39858
  Field(),
@@ -39841,6 +39931,14 @@ __decorate([
39841
39931
  Field(() => [MJDuplicateRun_]),
39842
39932
  __metadata("design:type", Array)
39843
39933
  ], MJList_.prototype, "DuplicateRuns_SourceListIDArray", void 0);
39934
+ __decorate([
39935
+ Field(() => [MJListShare_]),
39936
+ __metadata("design:type", Array)
39937
+ ], MJList_.prototype, "MJ_ListShares_ListIDArray", void 0);
39938
+ __decorate([
39939
+ Field(() => [MJListInvitation_]),
39940
+ __metadata("design:type", Array)
39941
+ ], MJList_.prototype, "MJ_ListInvitations_ListIDArray", void 0);
39844
39942
  MJList_ = __decorate([
39845
39943
  ObjectType({ description: `Static lists are useful for controlling a set of data for a given entity. These can be used programatically for applications like logging and tracking long-running tasks and also by end users for tracking any particular list of records they want to directly control the set.` })
39846
39944
  ], MJList_);
@@ -40024,6 +40122,24 @@ let MJListResolver = class MJListResolver extends ResolverBase {
40024
40122
  const result = await this.ArrayMapFieldNamesToCodeNames('Duplicate Runs', rows, this.GetUserFromPayload(userPayload));
40025
40123
  return result;
40026
40124
  }
40125
+ async MJ_ListShares_ListIDArray(mjlist_, { dataSources, userPayload, providers }, pubSub) {
40126
+ this.CheckUserReadPermissions('MJ: List Shares', userPayload);
40127
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
40128
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
40129
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListShares] WHERE [ListID]='${mjlist_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Shares', userPayload, EntityPermissionType.Read, 'AND');
40130
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
40131
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Shares', rows, this.GetUserFromPayload(userPayload));
40132
+ return result;
40133
+ }
40134
+ async MJ_ListInvitations_ListIDArray(mjlist_, { dataSources, userPayload, providers }, pubSub) {
40135
+ this.CheckUserReadPermissions('MJ: List Invitations', userPayload);
40136
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
40137
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
40138
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListInvitations] WHERE [ListID]='${mjlist_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Invitations', userPayload, EntityPermissionType.Read, 'AND');
40139
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
40140
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Invitations', rows, this.GetUserFromPayload(userPayload));
40141
+ return result;
40142
+ }
40027
40143
  async CreateMJList(input, { providers, userPayload }, pubSub) {
40028
40144
  const provider = GetReadWriteProvider(providers);
40029
40145
  return this.CreateRecord('Lists', input, provider, userPayload, pubSub);
@@ -40092,6 +40208,24 @@ __decorate([
40092
40208
  __metadata("design:paramtypes", [MJList_, Object, PubSubEngine]),
40093
40209
  __metadata("design:returntype", Promise)
40094
40210
  ], MJListResolver.prototype, "DuplicateRuns_SourceListIDArray", null);
40211
+ __decorate([
40212
+ FieldResolver(() => [MJListShare_]),
40213
+ __param(0, Root()),
40214
+ __param(1, Ctx()),
40215
+ __param(2, PubSub()),
40216
+ __metadata("design:type", Function),
40217
+ __metadata("design:paramtypes", [MJList_, Object, PubSubEngine]),
40218
+ __metadata("design:returntype", Promise)
40219
+ ], MJListResolver.prototype, "MJ_ListShares_ListIDArray", null);
40220
+ __decorate([
40221
+ FieldResolver(() => [MJListInvitation_]),
40222
+ __param(0, Root()),
40223
+ __param(1, Ctx()),
40224
+ __param(2, PubSub()),
40225
+ __metadata("design:type", Function),
40226
+ __metadata("design:paramtypes", [MJList_, Object, PubSubEngine]),
40227
+ __metadata("design:returntype", Promise)
40228
+ ], MJListResolver.prototype, "MJ_ListInvitations_ListIDArray", null);
40095
40229
  __decorate([
40096
40230
  Mutation(() => MJList_),
40097
40231
  __param(0, Arg('input', () => CreateMJListInput)),
@@ -41617,6 +41751,8 @@ let MJAIAgentExample_ = class MJAIAgentExample_ {
41617
41751
  User;
41618
41752
  Company;
41619
41753
  SourceConversation;
41754
+ SourceConversationDetail;
41755
+ SourceAIAgentRun;
41620
41756
  EmbeddingModel;
41621
41757
  };
41622
41758
  __decorate([
@@ -41723,6 +41859,15 @@ __decorate([
41723
41859
  MaxLength(510),
41724
41860
  __metadata("design:type", String)
41725
41861
  ], MJAIAgentExample_.prototype, "SourceConversation", void 0);
41862
+ __decorate([
41863
+ Field({ nullable: true }),
41864
+ __metadata("design:type", String)
41865
+ ], MJAIAgentExample_.prototype, "SourceConversationDetail", void 0);
41866
+ __decorate([
41867
+ Field({ nullable: true }),
41868
+ MaxLength(510),
41869
+ __metadata("design:type", String)
41870
+ ], MJAIAgentExample_.prototype, "SourceAIAgentRun", void 0);
41726
41871
  __decorate([
41727
41872
  Field({ nullable: true }),
41728
41873
  MaxLength(100),
@@ -43391,6 +43536,8 @@ let MJAIAgentRunStep_ = class MJAIAgentRunStep_ {
43391
43536
  FinalPayloadValidationMessages;
43392
43537
  ParentID;
43393
43538
  Comments;
43539
+ AgentRun;
43540
+ Parent;
43394
43541
  RootParentID;
43395
43542
  MJ_AIAgentRunSteps_ParentIDArray;
43396
43543
  };
@@ -43498,6 +43645,16 @@ __decorate([
43498
43645
  Field({ nullable: true, description: `Human-readable notes and comments about this agent run step` }),
43499
43646
  __metadata("design:type", String)
43500
43647
  ], MJAIAgentRunStep_.prototype, "Comments", void 0);
43648
+ __decorate([
43649
+ Field({ nullable: true }),
43650
+ MaxLength(510),
43651
+ __metadata("design:type", String)
43652
+ ], MJAIAgentRunStep_.prototype, "AgentRun", void 0);
43653
+ __decorate([
43654
+ Field({ nullable: true }),
43655
+ MaxLength(510),
43656
+ __metadata("design:type", String)
43657
+ ], MJAIAgentRunStep_.prototype, "Parent", void 0);
43501
43658
  __decorate([
43502
43659
  Field({ nullable: true }),
43503
43660
  MaxLength(16),
@@ -43944,6 +44101,7 @@ let MJAIAgentRun_ = class MJAIAgentRun_ {
43944
44101
  OverrideModel;
43945
44102
  OverrideVendor;
43946
44103
  ScheduledJobRun;
44104
+ TestRun;
43947
44105
  RootParentRunID;
43948
44106
  RootLastRunID;
43949
44107
  MJ_AIAgentRunSteps_AgentRunIDArray;
@@ -44186,6 +44344,11 @@ __decorate([
44186
44344
  MaxLength(400),
44187
44345
  __metadata("design:type", String)
44188
44346
  ], MJAIAgentRun_.prototype, "ScheduledJobRun", void 0);
44347
+ __decorate([
44348
+ Field({ nullable: true }),
44349
+ MaxLength(510),
44350
+ __metadata("design:type", String)
44351
+ ], MJAIAgentRun_.prototype, "TestRun", void 0);
44189
44352
  __decorate([
44190
44353
  Field({ nullable: true }),
44191
44354
  MaxLength(16),
@@ -59072,6 +59235,7 @@ let MJConversationDetailArtifact_ = class MJConversationDetailArtifact_ {
59072
59235
  Direction;
59073
59236
  _mj__CreatedAt;
59074
59237
  _mj__UpdatedAt;
59238
+ ConversationDetail;
59075
59239
  ArtifactVersion;
59076
59240
  };
59077
59241
  __decorate([
@@ -59104,6 +59268,10 @@ __decorate([
59104
59268
  MaxLength(10),
59105
59269
  __metadata("design:type", Date)
59106
59270
  ], MJConversationDetailArtifact_.prototype, "_mj__UpdatedAt", void 0);
59271
+ __decorate([
59272
+ Field(),
59273
+ __metadata("design:type", String)
59274
+ ], MJConversationDetailArtifact_.prototype, "ConversationDetail", void 0);
59107
59275
  __decorate([
59108
59276
  Field({ nullable: true }),
59109
59277
  MaxLength(510),
@@ -59723,6 +59891,7 @@ let MJConversationDetailRating_ = class MJConversationDetailRating_ {
59723
59891
  Comments;
59724
59892
  _mj__CreatedAt;
59725
59893
  _mj__UpdatedAt;
59894
+ ConversationDetail;
59726
59895
  User;
59727
59896
  };
59728
59897
  __decorate([
@@ -59758,6 +59927,10 @@ __decorate([
59758
59927
  MaxLength(10),
59759
59928
  __metadata("design:type", Date)
59760
59929
  ], MJConversationDetailRating_.prototype, "_mj__UpdatedAt", void 0);
59930
+ __decorate([
59931
+ Field(),
59932
+ __metadata("design:type", String)
59933
+ ], MJConversationDetailRating_.prototype, "ConversationDetail", void 0);
59761
59934
  __decorate([
59762
59935
  Field(),
59763
59936
  MaxLength(200),
@@ -63070,6 +63243,600 @@ MJEnvironmentResolver = __decorate([
63070
63243
  Resolver(MJEnvironment_)
63071
63244
  ], MJEnvironmentResolver);
63072
63245
  export { MJEnvironmentResolver };
63246
+ let MJListInvitation_ = class MJListInvitation_ {
63247
+ ID;
63248
+ ListID;
63249
+ Email;
63250
+ Role;
63251
+ Token;
63252
+ ExpiresAt;
63253
+ CreatedByUserID;
63254
+ Status;
63255
+ _mj__CreatedAt;
63256
+ _mj__UpdatedAt;
63257
+ List;
63258
+ CreatedByUser;
63259
+ };
63260
+ __decorate([
63261
+ Field({ description: `Unique identifier for the invitation.` }),
63262
+ MaxLength(16),
63263
+ __metadata("design:type", String)
63264
+ ], MJListInvitation_.prototype, "ID", void 0);
63265
+ __decorate([
63266
+ Field({ description: `The list the user is being invited to.` }),
63267
+ MaxLength(16),
63268
+ __metadata("design:type", String)
63269
+ ], MJListInvitation_.prototype, "ListID", void 0);
63270
+ __decorate([
63271
+ Field({ description: `Email address of the invitee.` }),
63272
+ MaxLength(510),
63273
+ __metadata("design:type", String)
63274
+ ], MJListInvitation_.prototype, "Email", void 0);
63275
+ __decorate([
63276
+ Field({ description: `The role to be assigned upon acceptance (Editor or Viewer).` }),
63277
+ MaxLength(100),
63278
+ __metadata("design:type", String)
63279
+ ], MJListInvitation_.prototype, "Role", void 0);
63280
+ __decorate([
63281
+ Field({ description: `Security token for validating the invitation.` }),
63282
+ MaxLength(200),
63283
+ __metadata("design:type", String)
63284
+ ], MJListInvitation_.prototype, "Token", void 0);
63285
+ __decorate([
63286
+ Field({ description: `When the invitation expires.` }),
63287
+ MaxLength(8),
63288
+ __metadata("design:type", Date)
63289
+ ], MJListInvitation_.prototype, "ExpiresAt", void 0);
63290
+ __decorate([
63291
+ Field({ description: `The user who created the invitation.` }),
63292
+ MaxLength(16),
63293
+ __metadata("design:type", String)
63294
+ ], MJListInvitation_.prototype, "CreatedByUserID", void 0);
63295
+ __decorate([
63296
+ Field({ description: `Status of the invitation (Pending, Accepted, Expired, Revoked).` }),
63297
+ MaxLength(40),
63298
+ __metadata("design:type", String)
63299
+ ], MJListInvitation_.prototype, "Status", void 0);
63300
+ __decorate([
63301
+ Field(),
63302
+ MaxLength(10),
63303
+ __metadata("design:type", Date)
63304
+ ], MJListInvitation_.prototype, "_mj__CreatedAt", void 0);
63305
+ __decorate([
63306
+ Field(),
63307
+ MaxLength(10),
63308
+ __metadata("design:type", Date)
63309
+ ], MJListInvitation_.prototype, "_mj__UpdatedAt", void 0);
63310
+ __decorate([
63311
+ Field(),
63312
+ MaxLength(200),
63313
+ __metadata("design:type", String)
63314
+ ], MJListInvitation_.prototype, "List", void 0);
63315
+ __decorate([
63316
+ Field(),
63317
+ MaxLength(200),
63318
+ __metadata("design:type", String)
63319
+ ], MJListInvitation_.prototype, "CreatedByUser", void 0);
63320
+ MJListInvitation_ = __decorate([
63321
+ ObjectType({ description: `Tracks pending invitations for users to access lists, including external users via email.` })
63322
+ ], MJListInvitation_);
63323
+ export { MJListInvitation_ };
63324
+ let CreateMJListInvitationInput = class CreateMJListInvitationInput {
63325
+ ID;
63326
+ ListID;
63327
+ Email;
63328
+ Role;
63329
+ Token;
63330
+ ExpiresAt;
63331
+ CreatedByUserID;
63332
+ Status;
63333
+ };
63334
+ __decorate([
63335
+ Field({ nullable: true }),
63336
+ __metadata("design:type", String)
63337
+ ], CreateMJListInvitationInput.prototype, "ID", void 0);
63338
+ __decorate([
63339
+ Field({ nullable: true }),
63340
+ __metadata("design:type", String)
63341
+ ], CreateMJListInvitationInput.prototype, "ListID", void 0);
63342
+ __decorate([
63343
+ Field({ nullable: true }),
63344
+ __metadata("design:type", String)
63345
+ ], CreateMJListInvitationInput.prototype, "Email", void 0);
63346
+ __decorate([
63347
+ Field({ nullable: true }),
63348
+ __metadata("design:type", String)
63349
+ ], CreateMJListInvitationInput.prototype, "Role", void 0);
63350
+ __decorate([
63351
+ Field({ nullable: true }),
63352
+ __metadata("design:type", String)
63353
+ ], CreateMJListInvitationInput.prototype, "Token", void 0);
63354
+ __decorate([
63355
+ Field({ nullable: true }),
63356
+ __metadata("design:type", Date)
63357
+ ], CreateMJListInvitationInput.prototype, "ExpiresAt", void 0);
63358
+ __decorate([
63359
+ Field({ nullable: true }),
63360
+ __metadata("design:type", String)
63361
+ ], CreateMJListInvitationInput.prototype, "CreatedByUserID", void 0);
63362
+ __decorate([
63363
+ Field({ nullable: true }),
63364
+ __metadata("design:type", String)
63365
+ ], CreateMJListInvitationInput.prototype, "Status", void 0);
63366
+ CreateMJListInvitationInput = __decorate([
63367
+ InputType()
63368
+ ], CreateMJListInvitationInput);
63369
+ export { CreateMJListInvitationInput };
63370
+ let UpdateMJListInvitationInput = class UpdateMJListInvitationInput {
63371
+ ID;
63372
+ ListID;
63373
+ Email;
63374
+ Role;
63375
+ Token;
63376
+ ExpiresAt;
63377
+ CreatedByUserID;
63378
+ Status;
63379
+ OldValues___;
63380
+ };
63381
+ __decorate([
63382
+ Field(),
63383
+ __metadata("design:type", String)
63384
+ ], UpdateMJListInvitationInput.prototype, "ID", void 0);
63385
+ __decorate([
63386
+ Field({ nullable: true }),
63387
+ __metadata("design:type", String)
63388
+ ], UpdateMJListInvitationInput.prototype, "ListID", void 0);
63389
+ __decorate([
63390
+ Field({ nullable: true }),
63391
+ __metadata("design:type", String)
63392
+ ], UpdateMJListInvitationInput.prototype, "Email", void 0);
63393
+ __decorate([
63394
+ Field({ nullable: true }),
63395
+ __metadata("design:type", String)
63396
+ ], UpdateMJListInvitationInput.prototype, "Role", void 0);
63397
+ __decorate([
63398
+ Field({ nullable: true }),
63399
+ __metadata("design:type", String)
63400
+ ], UpdateMJListInvitationInput.prototype, "Token", void 0);
63401
+ __decorate([
63402
+ Field({ nullable: true }),
63403
+ __metadata("design:type", Date)
63404
+ ], UpdateMJListInvitationInput.prototype, "ExpiresAt", void 0);
63405
+ __decorate([
63406
+ Field({ nullable: true }),
63407
+ __metadata("design:type", String)
63408
+ ], UpdateMJListInvitationInput.prototype, "CreatedByUserID", void 0);
63409
+ __decorate([
63410
+ Field({ nullable: true }),
63411
+ __metadata("design:type", String)
63412
+ ], UpdateMJListInvitationInput.prototype, "Status", void 0);
63413
+ __decorate([
63414
+ Field(() => [KeyValuePairInput], { nullable: true }),
63415
+ __metadata("design:type", Array)
63416
+ ], UpdateMJListInvitationInput.prototype, "OldValues___", void 0);
63417
+ UpdateMJListInvitationInput = __decorate([
63418
+ InputType()
63419
+ ], UpdateMJListInvitationInput);
63420
+ export { UpdateMJListInvitationInput };
63421
+ let RunMJListInvitationViewResult = class RunMJListInvitationViewResult {
63422
+ Results;
63423
+ UserViewRunID;
63424
+ RowCount;
63425
+ TotalRowCount;
63426
+ ExecutionTime;
63427
+ ErrorMessage;
63428
+ Success;
63429
+ };
63430
+ __decorate([
63431
+ Field(() => [MJListInvitation_]),
63432
+ __metadata("design:type", Array)
63433
+ ], RunMJListInvitationViewResult.prototype, "Results", void 0);
63434
+ __decorate([
63435
+ Field(() => String, { nullable: true }),
63436
+ __metadata("design:type", String)
63437
+ ], RunMJListInvitationViewResult.prototype, "UserViewRunID", void 0);
63438
+ __decorate([
63439
+ Field(() => Int, { nullable: true }),
63440
+ __metadata("design:type", Number)
63441
+ ], RunMJListInvitationViewResult.prototype, "RowCount", void 0);
63442
+ __decorate([
63443
+ Field(() => Int, { nullable: true }),
63444
+ __metadata("design:type", Number)
63445
+ ], RunMJListInvitationViewResult.prototype, "TotalRowCount", void 0);
63446
+ __decorate([
63447
+ Field(() => Int, { nullable: true }),
63448
+ __metadata("design:type", Number)
63449
+ ], RunMJListInvitationViewResult.prototype, "ExecutionTime", void 0);
63450
+ __decorate([
63451
+ Field({ nullable: true }),
63452
+ __metadata("design:type", String)
63453
+ ], RunMJListInvitationViewResult.prototype, "ErrorMessage", void 0);
63454
+ __decorate([
63455
+ Field(() => Boolean, { nullable: false }),
63456
+ __metadata("design:type", Boolean)
63457
+ ], RunMJListInvitationViewResult.prototype, "Success", void 0);
63458
+ RunMJListInvitationViewResult = __decorate([
63459
+ ObjectType()
63460
+ ], RunMJListInvitationViewResult);
63461
+ export { RunMJListInvitationViewResult };
63462
+ let MJListInvitationResolver = class MJListInvitationResolver extends ResolverBase {
63463
+ async RunMJListInvitationViewByID(input, { providers, userPayload }, pubSub) {
63464
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
63465
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
63466
+ }
63467
+ async RunMJListInvitationViewByName(input, { providers, userPayload }, pubSub) {
63468
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
63469
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
63470
+ }
63471
+ async RunMJListInvitationDynamicView(input, { providers, userPayload }, pubSub) {
63472
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
63473
+ input.EntityName = 'MJ: List Invitations';
63474
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
63475
+ }
63476
+ async MJListInvitation(ID, { dataSources, userPayload, providers }, pubSub) {
63477
+ this.CheckUserReadPermissions('MJ: List Invitations', userPayload);
63478
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
63479
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
63480
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListInvitations] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Invitations', userPayload, EntityPermissionType.Read, 'AND');
63481
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
63482
+ const result = await this.MapFieldNamesToCodeNames('MJ: List Invitations', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
63483
+ return result;
63484
+ }
63485
+ async CreateMJListInvitation(input, { providers, userPayload }, pubSub) {
63486
+ const provider = GetReadWriteProvider(providers);
63487
+ return this.CreateRecord('MJ: List Invitations', input, provider, userPayload, pubSub);
63488
+ }
63489
+ async UpdateMJListInvitation(input, { providers, userPayload }, pubSub) {
63490
+ const provider = GetReadWriteProvider(providers);
63491
+ return this.UpdateRecord('MJ: List Invitations', input, provider, userPayload, pubSub);
63492
+ }
63493
+ async DeleteMJListInvitation(ID, options, { providers, userPayload }, pubSub) {
63494
+ const provider = GetReadWriteProvider(providers);
63495
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
63496
+ return this.DeleteRecord('MJ: List Invitations', key, options, provider, userPayload, pubSub);
63497
+ }
63498
+ };
63499
+ __decorate([
63500
+ Query(() => RunMJListInvitationViewResult),
63501
+ __param(0, Arg('input', () => RunViewByIDInput)),
63502
+ __param(1, Ctx()),
63503
+ __param(2, PubSub()),
63504
+ __metadata("design:type", Function),
63505
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
63506
+ __metadata("design:returntype", Promise)
63507
+ ], MJListInvitationResolver.prototype, "RunMJListInvitationViewByID", null);
63508
+ __decorate([
63509
+ Query(() => RunMJListInvitationViewResult),
63510
+ __param(0, Arg('input', () => RunViewByNameInput)),
63511
+ __param(1, Ctx()),
63512
+ __param(2, PubSub()),
63513
+ __metadata("design:type", Function),
63514
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
63515
+ __metadata("design:returntype", Promise)
63516
+ ], MJListInvitationResolver.prototype, "RunMJListInvitationViewByName", null);
63517
+ __decorate([
63518
+ Query(() => RunMJListInvitationViewResult),
63519
+ __param(0, Arg('input', () => RunDynamicViewInput)),
63520
+ __param(1, Ctx()),
63521
+ __param(2, PubSub()),
63522
+ __metadata("design:type", Function),
63523
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
63524
+ __metadata("design:returntype", Promise)
63525
+ ], MJListInvitationResolver.prototype, "RunMJListInvitationDynamicView", null);
63526
+ __decorate([
63527
+ Query(() => MJListInvitation_, { nullable: true }),
63528
+ __param(0, Arg('ID', () => String)),
63529
+ __param(1, Ctx()),
63530
+ __param(2, PubSub()),
63531
+ __metadata("design:type", Function),
63532
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
63533
+ __metadata("design:returntype", Promise)
63534
+ ], MJListInvitationResolver.prototype, "MJListInvitation", null);
63535
+ __decorate([
63536
+ Mutation(() => MJListInvitation_),
63537
+ __param(0, Arg('input', () => CreateMJListInvitationInput)),
63538
+ __param(1, Ctx()),
63539
+ __param(2, PubSub()),
63540
+ __metadata("design:type", Function),
63541
+ __metadata("design:paramtypes", [CreateMJListInvitationInput, Object, PubSubEngine]),
63542
+ __metadata("design:returntype", Promise)
63543
+ ], MJListInvitationResolver.prototype, "CreateMJListInvitation", null);
63544
+ __decorate([
63545
+ Mutation(() => MJListInvitation_),
63546
+ __param(0, Arg('input', () => UpdateMJListInvitationInput)),
63547
+ __param(1, Ctx()),
63548
+ __param(2, PubSub()),
63549
+ __metadata("design:type", Function),
63550
+ __metadata("design:paramtypes", [UpdateMJListInvitationInput, Object, PubSubEngine]),
63551
+ __metadata("design:returntype", Promise)
63552
+ ], MJListInvitationResolver.prototype, "UpdateMJListInvitation", null);
63553
+ __decorate([
63554
+ Mutation(() => MJListInvitation_),
63555
+ __param(0, Arg('ID', () => String)),
63556
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
63557
+ __param(2, Ctx()),
63558
+ __param(3, PubSub()),
63559
+ __metadata("design:type", Function),
63560
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
63561
+ __metadata("design:returntype", Promise)
63562
+ ], MJListInvitationResolver.prototype, "DeleteMJListInvitation", null);
63563
+ MJListInvitationResolver = __decorate([
63564
+ Resolver(MJListInvitation_)
63565
+ ], MJListInvitationResolver);
63566
+ export { MJListInvitationResolver };
63567
+ let MJListShare_ = class MJListShare_ {
63568
+ ID;
63569
+ ListID;
63570
+ UserID;
63571
+ Role;
63572
+ Status;
63573
+ _mj__CreatedAt;
63574
+ _mj__UpdatedAt;
63575
+ List;
63576
+ User;
63577
+ };
63578
+ __decorate([
63579
+ Field({ description: `Unique identifier for the share record.` }),
63580
+ MaxLength(16),
63581
+ __metadata("design:type", String)
63582
+ ], MJListShare_.prototype, "ID", void 0);
63583
+ __decorate([
63584
+ Field({ description: `The list being shared.` }),
63585
+ MaxLength(16),
63586
+ __metadata("design:type", String)
63587
+ ], MJListShare_.prototype, "ListID", void 0);
63588
+ __decorate([
63589
+ Field({ description: `The user receiving access to the list.` }),
63590
+ MaxLength(16),
63591
+ __metadata("design:type", String)
63592
+ ], MJListShare_.prototype, "UserID", void 0);
63593
+ __decorate([
63594
+ Field({ description: `The permission level granted (Editor or Viewer).` }),
63595
+ MaxLength(100),
63596
+ __metadata("design:type", String)
63597
+ ], MJListShare_.prototype, "Role", void 0);
63598
+ __decorate([
63599
+ Field({ description: `Current status of the share (Active or Pending).` }),
63600
+ MaxLength(40),
63601
+ __metadata("design:type", String)
63602
+ ], MJListShare_.prototype, "Status", void 0);
63603
+ __decorate([
63604
+ Field(),
63605
+ MaxLength(10),
63606
+ __metadata("design:type", Date)
63607
+ ], MJListShare_.prototype, "_mj__CreatedAt", void 0);
63608
+ __decorate([
63609
+ Field(),
63610
+ MaxLength(10),
63611
+ __metadata("design:type", Date)
63612
+ ], MJListShare_.prototype, "_mj__UpdatedAt", void 0);
63613
+ __decorate([
63614
+ Field(),
63615
+ MaxLength(200),
63616
+ __metadata("design:type", String)
63617
+ ], MJListShare_.prototype, "List", void 0);
63618
+ __decorate([
63619
+ Field(),
63620
+ MaxLength(200),
63621
+ __metadata("design:type", String)
63622
+ ], MJListShare_.prototype, "User", void 0);
63623
+ MJListShare_ = __decorate([
63624
+ ObjectType({ description: `Manages user access and permissions for shared lists.` })
63625
+ ], MJListShare_);
63626
+ export { MJListShare_ };
63627
+ let CreateMJListShareInput = class CreateMJListShareInput {
63628
+ ID;
63629
+ ListID;
63630
+ UserID;
63631
+ Role;
63632
+ Status;
63633
+ };
63634
+ __decorate([
63635
+ Field({ nullable: true }),
63636
+ __metadata("design:type", String)
63637
+ ], CreateMJListShareInput.prototype, "ID", void 0);
63638
+ __decorate([
63639
+ Field({ nullable: true }),
63640
+ __metadata("design:type", String)
63641
+ ], CreateMJListShareInput.prototype, "ListID", void 0);
63642
+ __decorate([
63643
+ Field({ nullable: true }),
63644
+ __metadata("design:type", String)
63645
+ ], CreateMJListShareInput.prototype, "UserID", void 0);
63646
+ __decorate([
63647
+ Field({ nullable: true }),
63648
+ __metadata("design:type", String)
63649
+ ], CreateMJListShareInput.prototype, "Role", void 0);
63650
+ __decorate([
63651
+ Field({ nullable: true }),
63652
+ __metadata("design:type", String)
63653
+ ], CreateMJListShareInput.prototype, "Status", void 0);
63654
+ CreateMJListShareInput = __decorate([
63655
+ InputType()
63656
+ ], CreateMJListShareInput);
63657
+ export { CreateMJListShareInput };
63658
+ let UpdateMJListShareInput = class UpdateMJListShareInput {
63659
+ ID;
63660
+ ListID;
63661
+ UserID;
63662
+ Role;
63663
+ Status;
63664
+ OldValues___;
63665
+ };
63666
+ __decorate([
63667
+ Field(),
63668
+ __metadata("design:type", String)
63669
+ ], UpdateMJListShareInput.prototype, "ID", void 0);
63670
+ __decorate([
63671
+ Field({ nullable: true }),
63672
+ __metadata("design:type", String)
63673
+ ], UpdateMJListShareInput.prototype, "ListID", void 0);
63674
+ __decorate([
63675
+ Field({ nullable: true }),
63676
+ __metadata("design:type", String)
63677
+ ], UpdateMJListShareInput.prototype, "UserID", void 0);
63678
+ __decorate([
63679
+ Field({ nullable: true }),
63680
+ __metadata("design:type", String)
63681
+ ], UpdateMJListShareInput.prototype, "Role", void 0);
63682
+ __decorate([
63683
+ Field({ nullable: true }),
63684
+ __metadata("design:type", String)
63685
+ ], UpdateMJListShareInput.prototype, "Status", void 0);
63686
+ __decorate([
63687
+ Field(() => [KeyValuePairInput], { nullable: true }),
63688
+ __metadata("design:type", Array)
63689
+ ], UpdateMJListShareInput.prototype, "OldValues___", void 0);
63690
+ UpdateMJListShareInput = __decorate([
63691
+ InputType()
63692
+ ], UpdateMJListShareInput);
63693
+ export { UpdateMJListShareInput };
63694
+ let RunMJListShareViewResult = class RunMJListShareViewResult {
63695
+ Results;
63696
+ UserViewRunID;
63697
+ RowCount;
63698
+ TotalRowCount;
63699
+ ExecutionTime;
63700
+ ErrorMessage;
63701
+ Success;
63702
+ };
63703
+ __decorate([
63704
+ Field(() => [MJListShare_]),
63705
+ __metadata("design:type", Array)
63706
+ ], RunMJListShareViewResult.prototype, "Results", void 0);
63707
+ __decorate([
63708
+ Field(() => String, { nullable: true }),
63709
+ __metadata("design:type", String)
63710
+ ], RunMJListShareViewResult.prototype, "UserViewRunID", void 0);
63711
+ __decorate([
63712
+ Field(() => Int, { nullable: true }),
63713
+ __metadata("design:type", Number)
63714
+ ], RunMJListShareViewResult.prototype, "RowCount", void 0);
63715
+ __decorate([
63716
+ Field(() => Int, { nullable: true }),
63717
+ __metadata("design:type", Number)
63718
+ ], RunMJListShareViewResult.prototype, "TotalRowCount", void 0);
63719
+ __decorate([
63720
+ Field(() => Int, { nullable: true }),
63721
+ __metadata("design:type", Number)
63722
+ ], RunMJListShareViewResult.prototype, "ExecutionTime", void 0);
63723
+ __decorate([
63724
+ Field({ nullable: true }),
63725
+ __metadata("design:type", String)
63726
+ ], RunMJListShareViewResult.prototype, "ErrorMessage", void 0);
63727
+ __decorate([
63728
+ Field(() => Boolean, { nullable: false }),
63729
+ __metadata("design:type", Boolean)
63730
+ ], RunMJListShareViewResult.prototype, "Success", void 0);
63731
+ RunMJListShareViewResult = __decorate([
63732
+ ObjectType()
63733
+ ], RunMJListShareViewResult);
63734
+ export { RunMJListShareViewResult };
63735
+ let MJListShareResolver = class MJListShareResolver extends ResolverBase {
63736
+ async RunMJListShareViewByID(input, { providers, userPayload }, pubSub) {
63737
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
63738
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
63739
+ }
63740
+ async RunMJListShareViewByName(input, { providers, userPayload }, pubSub) {
63741
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
63742
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
63743
+ }
63744
+ async RunMJListShareDynamicView(input, { providers, userPayload }, pubSub) {
63745
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
63746
+ input.EntityName = 'MJ: List Shares';
63747
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
63748
+ }
63749
+ async MJListShare(ID, { dataSources, userPayload, providers }, pubSub) {
63750
+ this.CheckUserReadPermissions('MJ: List Shares', userPayload);
63751
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
63752
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
63753
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListShares] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Shares', userPayload, EntityPermissionType.Read, 'AND');
63754
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
63755
+ const result = await this.MapFieldNamesToCodeNames('MJ: List Shares', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
63756
+ return result;
63757
+ }
63758
+ async CreateMJListShare(input, { providers, userPayload }, pubSub) {
63759
+ const provider = GetReadWriteProvider(providers);
63760
+ return this.CreateRecord('MJ: List Shares', input, provider, userPayload, pubSub);
63761
+ }
63762
+ async UpdateMJListShare(input, { providers, userPayload }, pubSub) {
63763
+ const provider = GetReadWriteProvider(providers);
63764
+ return this.UpdateRecord('MJ: List Shares', input, provider, userPayload, pubSub);
63765
+ }
63766
+ async DeleteMJListShare(ID, options, { providers, userPayload }, pubSub) {
63767
+ const provider = GetReadWriteProvider(providers);
63768
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
63769
+ return this.DeleteRecord('MJ: List Shares', key, options, provider, userPayload, pubSub);
63770
+ }
63771
+ };
63772
+ __decorate([
63773
+ Query(() => RunMJListShareViewResult),
63774
+ __param(0, Arg('input', () => RunViewByIDInput)),
63775
+ __param(1, Ctx()),
63776
+ __param(2, PubSub()),
63777
+ __metadata("design:type", Function),
63778
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
63779
+ __metadata("design:returntype", Promise)
63780
+ ], MJListShareResolver.prototype, "RunMJListShareViewByID", null);
63781
+ __decorate([
63782
+ Query(() => RunMJListShareViewResult),
63783
+ __param(0, Arg('input', () => RunViewByNameInput)),
63784
+ __param(1, Ctx()),
63785
+ __param(2, PubSub()),
63786
+ __metadata("design:type", Function),
63787
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
63788
+ __metadata("design:returntype", Promise)
63789
+ ], MJListShareResolver.prototype, "RunMJListShareViewByName", null);
63790
+ __decorate([
63791
+ Query(() => RunMJListShareViewResult),
63792
+ __param(0, Arg('input', () => RunDynamicViewInput)),
63793
+ __param(1, Ctx()),
63794
+ __param(2, PubSub()),
63795
+ __metadata("design:type", Function),
63796
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
63797
+ __metadata("design:returntype", Promise)
63798
+ ], MJListShareResolver.prototype, "RunMJListShareDynamicView", null);
63799
+ __decorate([
63800
+ Query(() => MJListShare_, { nullable: true }),
63801
+ __param(0, Arg('ID', () => String)),
63802
+ __param(1, Ctx()),
63803
+ __param(2, PubSub()),
63804
+ __metadata("design:type", Function),
63805
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
63806
+ __metadata("design:returntype", Promise)
63807
+ ], MJListShareResolver.prototype, "MJListShare", null);
63808
+ __decorate([
63809
+ Mutation(() => MJListShare_),
63810
+ __param(0, Arg('input', () => CreateMJListShareInput)),
63811
+ __param(1, Ctx()),
63812
+ __param(2, PubSub()),
63813
+ __metadata("design:type", Function),
63814
+ __metadata("design:paramtypes", [CreateMJListShareInput, Object, PubSubEngine]),
63815
+ __metadata("design:returntype", Promise)
63816
+ ], MJListShareResolver.prototype, "CreateMJListShare", null);
63817
+ __decorate([
63818
+ Mutation(() => MJListShare_),
63819
+ __param(0, Arg('input', () => UpdateMJListShareInput)),
63820
+ __param(1, Ctx()),
63821
+ __param(2, PubSub()),
63822
+ __metadata("design:type", Function),
63823
+ __metadata("design:paramtypes", [UpdateMJListShareInput, Object, PubSubEngine]),
63824
+ __metadata("design:returntype", Promise)
63825
+ ], MJListShareResolver.prototype, "UpdateMJListShare", null);
63826
+ __decorate([
63827
+ Mutation(() => MJListShare_),
63828
+ __param(0, Arg('ID', () => String)),
63829
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
63830
+ __param(2, Ctx()),
63831
+ __param(3, PubSub()),
63832
+ __metadata("design:type", Function),
63833
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
63834
+ __metadata("design:returntype", Promise)
63835
+ ], MJListShareResolver.prototype, "DeleteMJListShare", null);
63836
+ MJListShareResolver = __decorate([
63837
+ Resolver(MJListShare_)
63838
+ ], MJListShareResolver);
63839
+ export { MJListShareResolver };
63073
63840
  let MJProject_ = class MJProject_ {
63074
63841
  ID;
63075
63842
  EnvironmentID;
@@ -66881,6 +67648,7 @@ let MJTask_ = class MJTask_ {
66881
67648
  Type;
66882
67649
  Environment;
66883
67650
  Project;
67651
+ ConversationDetail;
66884
67652
  User;
66885
67653
  Agent;
66886
67654
  RootParentID;
@@ -66991,6 +67759,10 @@ __decorate([
66991
67759
  MaxLength(510),
66992
67760
  __metadata("design:type", String)
66993
67761
  ], MJTask_.prototype, "Project", void 0);
67762
+ __decorate([
67763
+ Field({ nullable: true }),
67764
+ __metadata("design:type", String)
67765
+ ], MJTask_.prototype, "ConversationDetail", void 0);
66994
67766
  __decorate([
66995
67767
  Field({ nullable: true }),
66996
67768
  MaxLength(200),
@@ -74914,6 +75686,7 @@ let MJRecommendationItem_ = class MJRecommendationItem_ {
74914
75686
  MatchProbability;
74915
75687
  _mj__CreatedAt;
74916
75688
  _mj__UpdatedAt;
75689
+ Recommendation;
74917
75690
  DestinationEntity;
74918
75691
  };
74919
75692
  __decorate([
@@ -74950,6 +75723,10 @@ __decorate([
74950
75723
  MaxLength(10),
74951
75724
  __metadata("design:type", Date)
74952
75725
  ], MJRecommendationItem_.prototype, "_mj__UpdatedAt", void 0);
75726
+ __decorate([
75727
+ Field(),
75728
+ __metadata("design:type", String)
75729
+ ], MJRecommendationItem_.prototype, "Recommendation", void 0);
74953
75730
  __decorate([
74954
75731
  Field(),
74955
75732
  MaxLength(510),
@@ -75757,6 +76534,7 @@ let MJRecommendation_ = class MJRecommendation_ {
75757
76534
  SourceEntityRecordID;
75758
76535
  _mj__CreatedAt;
75759
76536
  _mj__UpdatedAt;
76537
+ RecommendationRun;
75760
76538
  SourceEntity;
75761
76539
  RecommendationItems_RecommendationIDArray;
75762
76540
  };
@@ -75789,6 +76567,11 @@ __decorate([
75789
76567
  MaxLength(10),
75790
76568
  __metadata("design:type", Date)
75791
76569
  ], MJRecommendation_.prototype, "_mj__UpdatedAt", void 0);
76570
+ __decorate([
76571
+ Field(),
76572
+ MaxLength(510),
76573
+ __metadata("design:type", String)
76574
+ ], MJRecommendation_.prototype, "RecommendationRun", void 0);
75792
76575
  __decorate([
75793
76576
  Field(),
75794
76577
  MaxLength(510),
@@ -76333,6 +77116,7 @@ let MJRecordChange_ = class MJRecordChange_ {
76333
77116
  UpdatedAt;
76334
77117
  Entity;
76335
77118
  User;
77119
+ ReplayRun;
76336
77120
  Integration;
76337
77121
  };
76338
77122
  __decorate([
@@ -76425,6 +77209,11 @@ __decorate([
76425
77209
  MaxLength(200),
76426
77210
  __metadata("design:type", String)
76427
77211
  ], MJRecordChange_.prototype, "User", void 0);
77212
+ __decorate([
77213
+ Field({ nullable: true }),
77214
+ MaxLength(200),
77215
+ __metadata("design:type", String)
77216
+ ], MJRecordChange_.prototype, "ReplayRun", void 0);
76428
77217
  __decorate([
76429
77218
  Field({ nullable: true }),
76430
77219
  MaxLength(200),
@@ -76755,6 +77544,7 @@ let MJRecordMergeDeletionLog_ = class MJRecordMergeDeletionLog_ {
76755
77544
  ProcessingLog;
76756
77545
  _mj__CreatedAt;
76757
77546
  _mj__UpdatedAt;
77547
+ RecordMergeLog;
76758
77548
  };
76759
77549
  __decorate([
76760
77550
  Field(),
@@ -76790,6 +77580,11 @@ __decorate([
76790
77580
  MaxLength(10),
76791
77581
  __metadata("design:type", Date)
76792
77582
  ], MJRecordMergeDeletionLog_.prototype, "_mj__UpdatedAt", void 0);
77583
+ __decorate([
77584
+ Field(),
77585
+ MaxLength(900),
77586
+ __metadata("design:type", String)
77587
+ ], MJRecordMergeDeletionLog_.prototype, "RecordMergeLog", void 0);
76793
77588
  MJRecordMergeDeletionLog_ = __decorate([
76794
77589
  ObjectType({ description: `Tracks records deleted during merge operations, maintaining an audit trail of data consolidation activities.` })
76795
77590
  ], MJRecordMergeDeletionLog_);
@@ -78030,6 +78825,7 @@ let MJReport_ = class MJReport_ {
78030
78825
  Category;
78031
78826
  User;
78032
78827
  Conversation;
78828
+ ConversationDetail;
78033
78829
  DataContext;
78034
78830
  OutputTriggerType;
78035
78831
  OutputFormatType;
@@ -78152,6 +78948,10 @@ __decorate([
78152
78948
  MaxLength(510),
78153
78949
  __metadata("design:type", String)
78154
78950
  ], MJReport_.prototype, "Conversation", void 0);
78951
+ __decorate([
78952
+ Field({ nullable: true }),
78953
+ __metadata("design:type", String)
78954
+ ], MJReport_.prototype, "ConversationDetail", void 0);
78155
78955
  __decorate([
78156
78956
  Field({ nullable: true }),
78157
78957
  MaxLength(510),
@@ -83155,6 +83955,7 @@ let MJTemplateParam_ = class MJTemplateParam_ {
83155
83955
  TemplateContentID;
83156
83956
  Template;
83157
83957
  Entity;
83958
+ TemplateContent;
83158
83959
  };
83159
83960
  __decorate([
83160
83961
  Field(),
@@ -83241,6 +84042,11 @@ __decorate([
83241
84042
  MaxLength(510),
83242
84043
  __metadata("design:type", String)
83243
84044
  ], MJTemplateParam_.prototype, "Entity", void 0);
84045
+ __decorate([
84046
+ Field({ nullable: true }),
84047
+ MaxLength(510),
84048
+ __metadata("design:type", String)
84049
+ ], MJTemplateParam_.prototype, "TemplateContent", void 0);
83244
84050
  MJTemplateParam_ = __decorate([
83245
84051
  ObjectType({ description: `Parameters allowed for use inside the template` })
83246
84052
  ], MJTemplateParam_);
@@ -87274,6 +88080,8 @@ let MJUser_ = class MJUser_ {
87274
88080
  MJ_TestRunFeedbacks_ReviewerUserIDArray;
87275
88081
  MJ_TestSuiteRuns_RunByUserIDArray;
87276
88082
  MJ_UserSettings_UserIDArray;
88083
+ MJ_ListInvitations_CreatedByUserIDArray;
88084
+ MJ_ListShares_UserIDArray;
87277
88085
  ResourcePermissions_UserIDArray;
87278
88086
  AIAgentRequests_RequestForUserIDArray;
87279
88087
  ConversationDetails_UserIDArray;
@@ -87591,6 +88399,14 @@ __decorate([
87591
88399
  Field(() => [MJUserSetting_]),
87592
88400
  __metadata("design:type", Array)
87593
88401
  ], MJUser_.prototype, "MJ_UserSettings_UserIDArray", void 0);
88402
+ __decorate([
88403
+ Field(() => [MJListInvitation_]),
88404
+ __metadata("design:type", Array)
88405
+ ], MJUser_.prototype, "MJ_ListInvitations_CreatedByUserIDArray", void 0);
88406
+ __decorate([
88407
+ Field(() => [MJListShare_]),
88408
+ __metadata("design:type", Array)
88409
+ ], MJUser_.prototype, "MJ_ListShares_UserIDArray", void 0);
87594
88410
  __decorate([
87595
88411
  Field(() => [MJResourcePermission_]),
87596
88412
  __metadata("design:type", Array)
@@ -88321,6 +89137,24 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
88321
89137
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: User Settings', rows, this.GetUserFromPayload(userPayload));
88322
89138
  return result;
88323
89139
  }
89140
+ async MJ_ListInvitations_CreatedByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
89141
+ this.CheckUserReadPermissions('MJ: List Invitations', userPayload);
89142
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
89143
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
89144
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListInvitations] WHERE [CreatedByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Invitations', userPayload, EntityPermissionType.Read, 'AND');
89145
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
89146
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Invitations', rows, this.GetUserFromPayload(userPayload));
89147
+ return result;
89148
+ }
89149
+ async MJ_ListShares_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
89150
+ this.CheckUserReadPermissions('MJ: List Shares', userPayload);
89151
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
89152
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
89153
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwListShares] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: List Shares', userPayload, EntityPermissionType.Read, 'AND');
89154
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
89155
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: List Shares', rows, this.GetUserFromPayload(userPayload));
89156
+ return result;
89157
+ }
88324
89158
  async ResourcePermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
88325
89159
  this.CheckUserReadPermissions('Resource Permissions', userPayload);
88326
89160
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -88955,6 +89789,24 @@ __decorate([
88955
89789
  __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
88956
89790
  __metadata("design:returntype", Promise)
88957
89791
  ], MJUserResolverBase.prototype, "MJ_UserSettings_UserIDArray", null);
89792
+ __decorate([
89793
+ FieldResolver(() => [MJListInvitation_]),
89794
+ __param(0, Root()),
89795
+ __param(1, Ctx()),
89796
+ __param(2, PubSub()),
89797
+ __metadata("design:type", Function),
89798
+ __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
89799
+ __metadata("design:returntype", Promise)
89800
+ ], MJUserResolverBase.prototype, "MJ_ListInvitations_CreatedByUserIDArray", null);
89801
+ __decorate([
89802
+ FieldResolver(() => [MJListShare_]),
89803
+ __param(0, Root()),
89804
+ __param(1, Ctx()),
89805
+ __param(2, PubSub()),
89806
+ __metadata("design:type", Function),
89807
+ __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
89808
+ __metadata("design:returntype", Promise)
89809
+ ], MJUserResolverBase.prototype, "MJ_ListShares_UserIDArray", null);
88958
89810
  __decorate([
88959
89811
  FieldResolver(() => [MJResourcePermission_]),
88960
89812
  __param(0, Root()),