@memberjunction/server 5.2.0 → 5.3.1

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.
@@ -9078,6 +9078,16 @@ __decorate([
9078
9078
  Field({ nullable: true, description: `Human-readable notes and comments about this agent run step` }),
9079
9079
  __metadata("design:type", String)
9080
9080
  ], MJAIAgentRunStep_.prototype, "Comments", void 0);
9081
+ __decorate([
9082
+ Field({ nullable: true }),
9083
+ MaxLength(510),
9084
+ __metadata("design:type", String)
9085
+ ], MJAIAgentRunStep_.prototype, "AgentRun", void 0);
9086
+ __decorate([
9087
+ Field({ nullable: true }),
9088
+ MaxLength(510),
9089
+ __metadata("design:type", String)
9090
+ ], MJAIAgentRunStep_.prototype, "Parent", void 0);
9081
9091
  __decorate([
9082
9092
  Field({ nullable: true }),
9083
9093
  MaxLength(16),
@@ -21953,6 +21963,11 @@ __decorate([
21953
21963
  MaxLength(200),
21954
21964
  __metadata("design:type", String)
21955
21965
  ], MJAIResultCache_.prototype, "Configuration", void 0);
21966
+ __decorate([
21967
+ Field({ nullable: true }),
21968
+ MaxLength(510),
21969
+ __metadata("design:type", String)
21970
+ ], MJAIResultCache_.prototype, "PromptRun", void 0);
21956
21971
  MJAIResultCache_ = __decorate([
21957
21972
  ObjectType({ description: `Stores cached results of AI prompts, including multiple runs for history and tracking purposes.` })
21958
21973
  ], MJAIResultCache_);
@@ -40016,6 +40031,10 @@ __decorate([
40016
40031
  MaxLength(10),
40017
40032
  __metadata("design:type", Date)
40018
40033
  ], MJConversationDetailArtifact_.prototype, "_mj__UpdatedAt", void 0);
40034
+ __decorate([
40035
+ Field(),
40036
+ __metadata("design:type", String)
40037
+ ], MJConversationDetailArtifact_.prototype, "ConversationDetail", void 0);
40019
40038
  __decorate([
40020
40039
  Field({ nullable: true }),
40021
40040
  MaxLength(510),
@@ -40630,6 +40649,10 @@ __decorate([
40630
40649
  MaxLength(10),
40631
40650
  __metadata("design:type", Date)
40632
40651
  ], MJConversationDetailRating_.prototype, "_mj__UpdatedAt", void 0);
40652
+ __decorate([
40653
+ Field(),
40654
+ __metadata("design:type", String)
40655
+ ], MJConversationDetailRating_.prototype, "ConversationDetail", void 0);
40633
40656
  __decorate([
40634
40657
  Field(),
40635
40658
  MaxLength(200),
@@ -41686,6 +41709,11 @@ __decorate([
41686
41709
  MaxLength(510),
41687
41710
  __metadata("design:type", String)
41688
41711
  ], MJConversation_.prototype, "Project", void 0);
41712
+ __decorate([
41713
+ Field({ nullable: true }),
41714
+ MaxLength(510),
41715
+ __metadata("design:type", String)
41716
+ ], MJConversation_.prototype, "TestRun", void 0);
41689
41717
  __decorate([
41690
41718
  Field(() => [MJConversationDetail_]),
41691
41719
  __metadata("design:type", Array)
@@ -47281,6 +47309,11 @@ __decorate([
47281
47309
  MaxLength(10),
47282
47310
  __metadata("design:type", Date)
47283
47311
  ], MJDuplicateRunDetail_.prototype, "_mj__UpdatedAt", void 0);
47312
+ __decorate([
47313
+ Field(),
47314
+ MaxLength(510),
47315
+ __metadata("design:type", String)
47316
+ ], MJDuplicateRunDetail_.prototype, "DuplicateRun", void 0);
47284
47317
  __decorate([
47285
47318
  Field(() => [MJDuplicateRunDetailMatch_]),
47286
47319
  __metadata("design:type", Array)
@@ -47940,6 +47973,11 @@ __decorate([
47940
47973
  MaxLength(10),
47941
47974
  __metadata("design:type", Date)
47942
47975
  ], MJEmployeeCompanyIntegration_.prototype, "_mj__UpdatedAt", void 0);
47976
+ __decorate([
47977
+ Field({ nullable: true }),
47978
+ MaxLength(162),
47979
+ __metadata("design:type", String)
47980
+ ], MJEmployeeCompanyIntegration_.prototype, "Employee", void 0);
47943
47981
  __decorate([
47944
47982
  Field(),
47945
47983
  MaxLength(510),
@@ -48183,6 +48221,11 @@ __decorate([
48183
48221
  MaxLength(10),
48184
48222
  __metadata("design:type", Date)
48185
48223
  ], MJEmployeeRole_.prototype, "_mj__UpdatedAt", void 0);
48224
+ __decorate([
48225
+ Field({ nullable: true }),
48226
+ MaxLength(162),
48227
+ __metadata("design:type", String)
48228
+ ], MJEmployeeRole_.prototype, "Employee", void 0);
48186
48229
  __decorate([
48187
48230
  Field(),
48188
48231
  MaxLength(100),
@@ -48410,6 +48453,11 @@ __decorate([
48410
48453
  MaxLength(10),
48411
48454
  __metadata("design:type", Date)
48412
48455
  ], MJEmployeeSkill_.prototype, "_mj__UpdatedAt", void 0);
48456
+ __decorate([
48457
+ Field({ nullable: true }),
48458
+ MaxLength(162),
48459
+ __metadata("design:type", String)
48460
+ ], MJEmployeeSkill_.prototype, "Employee", void 0);
48413
48461
  __decorate([
48414
48462
  Field(),
48415
48463
  MaxLength(100),
@@ -50308,11 +50356,11 @@ __decorate([
50308
50356
  __metadata("design:type", Boolean)
50309
50357
  ], MJEntity_.prototype, "AllowMultipleSubtypes", void 0);
50310
50358
  __decorate([
50311
- Field({ nullable: true }),
50359
+ Field({ nullable: true, description: `Schema-based programmatic code name derived from the entity Name. Uses GetClassNameSchemaPrefix(SchemaName) as the prefix, then strips EntityNamePrefix from the Name and removes spaces. For "__mj" schema with entity "MJ: AI Models", this produces "MJAIModels". For entities in other schemas, the sanitized schema name is prepended. Used in GraphQL type generation and internal code references.` }),
50312
50360
  __metadata("design:type", String)
50313
50361
  ], MJEntity_.prototype, "CodeName", void 0);
50314
50362
  __decorate([
50315
- Field({ nullable: true }),
50363
+ Field({ nullable: true, description: `Schema-based programmatic class name used for TypeScript entity classes, Zod schemas, and Angular form components. Computed as GetProgrammaticName(GetClassNameSchemaPrefix(SchemaName) + BaseTable + NameSuffix). The prefix is derived from SchemaName (guaranteed unique by SQL Server), not from EntityNamePrefix. For the core __mj schema, the prefix is "MJ"; for all other schemas it is the alphanumeric-sanitized schema name. This prevents cross-schema collisions and aligns with GraphQL type naming in getGraphQLTypeNameBase().` }),
50316
50364
  __metadata("design:type", String)
50317
50365
  ], MJEntity_.prototype, "ClassName", void 0);
50318
50366
  __decorate([
@@ -52002,6 +52050,15 @@ __decorate([
52002
52050
  MaxLength(10),
52003
52051
  __metadata("design:type", Date)
52004
52052
  ], MJEntityActionFilter_.prototype, "_mj__UpdatedAt", void 0);
52053
+ __decorate([
52054
+ Field(),
52055
+ MaxLength(850),
52056
+ __metadata("design:type", String)
52057
+ ], MJEntityActionFilter_.prototype, "EntityAction", void 0);
52058
+ __decorate([
52059
+ Field(),
52060
+ __metadata("design:type", String)
52061
+ ], MJEntityActionFilter_.prototype, "ActionFilter", void 0);
52005
52062
  MJEntityActionFilter_ = __decorate([
52006
52063
  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.` })
52007
52064
  ], MJEntityActionFilter_);
@@ -52500,6 +52557,11 @@ __decorate([
52500
52557
  MaxLength(10),
52501
52558
  __metadata("design:type", Date)
52502
52559
  ], MJEntityActionInvocation_.prototype, "_mj__UpdatedAt", void 0);
52560
+ __decorate([
52561
+ Field(),
52562
+ MaxLength(850),
52563
+ __metadata("design:type", String)
52564
+ ], MJEntityActionInvocation_.prototype, "EntityAction", void 0);
52503
52565
  __decorate([
52504
52566
  Field(),
52505
52567
  MaxLength(510),
@@ -52748,6 +52810,11 @@ __decorate([
52748
52810
  MaxLength(10),
52749
52811
  __metadata("design:type", Date)
52750
52812
  ], MJEntityActionParam_.prototype, "_mj__UpdatedAt", void 0);
52813
+ __decorate([
52814
+ Field(),
52815
+ MaxLength(850),
52816
+ __metadata("design:type", String)
52817
+ ], MJEntityActionParam_.prototype, "EntityAction", void 0);
52751
52818
  __decorate([
52752
52819
  Field(),
52753
52820
  MaxLength(510),
@@ -53699,6 +53766,11 @@ __decorate([
53699
53766
  MaxLength(10),
53700
53767
  __metadata("design:type", Date)
53701
53768
  ], MJEntityCommunicationField_.prototype, "_mj__UpdatedAt", void 0);
53769
+ __decorate([
53770
+ Field(),
53771
+ MaxLength(200),
53772
+ __metadata("design:type", String)
53773
+ ], MJEntityCommunicationField_.prototype, "EntityCommunicationMessageType", void 0);
53702
53774
  MJEntityCommunicationField_ = __decorate([
53703
53775
  ObjectType({ description: `Mapping between entity fields and communication base message types with priority` })
53704
53776
  ], MJEntityCommunicationField_);
@@ -58649,6 +58721,16 @@ __decorate([
58649
58721
  MaxLength(10),
58650
58722
  __metadata("design:type", Date)
58651
58723
  ], MJErrorLog_.prototype, "_mj__UpdatedAt", void 0);
58724
+ __decorate([
58725
+ Field({ nullable: true }),
58726
+ MaxLength(200),
58727
+ __metadata("design:type", String)
58728
+ ], MJErrorLog_.prototype, "CompanyIntegrationRun", void 0);
58729
+ __decorate([
58730
+ Field({ nullable: true }),
58731
+ MaxLength(900),
58732
+ __metadata("design:type", String)
58733
+ ], MJErrorLog_.prototype, "CompanyIntegrationRunDetail", void 0);
58652
58734
  MJErrorLog_ = __decorate([
58653
58735
  ObjectType({ description: `Captures system errors, exceptions, and failures with stack traces, context, and debugging info.` })
58654
58736
  ], MJErrorLog_);
@@ -64444,6 +64526,11 @@ __decorate([
64444
64526
  MaxLength(510),
64445
64527
  __metadata("design:type", String)
64446
64528
  ], MJMCPServerConnectionTool_.prototype, "MCPServerConnection", void 0);
64529
+ __decorate([
64530
+ Field({ nullable: true }),
64531
+ MaxLength(510),
64532
+ __metadata("design:type", String)
64533
+ ], MJMCPServerConnectionTool_.prototype, "MCPServerTool", void 0);
64447
64534
  MJMCPServerConnectionTool_ = __decorate([
64448
64535
  ObjectType()
64449
64536
  ], MJMCPServerConnectionTool_);
@@ -66232,6 +66319,11 @@ __decorate([
66232
66319
  MaxLength(510),
66233
66320
  __metadata("design:type", String)
66234
66321
  ], MJMCPToolExecutionLog_.prototype, "MCPServerConnection", void 0);
66322
+ __decorate([
66323
+ Field({ nullable: true }),
66324
+ MaxLength(510),
66325
+ __metadata("design:type", String)
66326
+ ], MJMCPToolExecutionLog_.prototype, "MCPServerTool", void 0);
66235
66327
  __decorate([
66236
66328
  Field(),
66237
66329
  MaxLength(200),
@@ -68745,6 +68837,10 @@ __decorate([
68745
68837
  MaxLength(200),
68746
68838
  __metadata("design:type", String)
68747
68839
  ], MJOpenApp_.prototype, "InstalledByUser", void 0);
68840
+ __decorate([
68841
+ Field(() => [MJOpenAppDependency_]),
68842
+ __metadata("design:type", Array)
68843
+ ], MJOpenApp_.prototype, "MJOpenAppDependencies_OpenAppIDArray", void 0);
68748
68844
  __decorate([
68749
68845
  Field(() => [MJOpenAppDependency_]),
68750
68846
  __metadata("design:type", Array)
@@ -68753,10 +68849,6 @@ __decorate([
68753
68849
  Field(() => [MJOpenAppInstallHistory_]),
68754
68850
  __metadata("design:type", Array)
68755
68851
  ], MJOpenApp_.prototype, "MJOpenAppInstallHistories_OpenAppIDArray", void 0);
68756
- __decorate([
68757
- Field(() => [MJOpenAppDependency_]),
68758
- __metadata("design:type", Array)
68759
- ], MJOpenApp_.prototype, "MJOpenAppDependencies_OpenAppIDArray", void 0);
68760
68852
  MJOpenApp_ = __decorate([
68761
68853
  ObjectType({ description: `Tracks all MJ Open Apps installed in this instance` })
68762
68854
  ], MJOpenApp_);
@@ -68987,6 +69079,15 @@ let MJOpenAppResolver = class MJOpenAppResolver extends ResolverBase {
68987
69079
  const result = await this.MapFieldNamesToCodeNames('MJ: Open Apps', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
68988
69080
  return result;
68989
69081
  }
69082
+ async MJOpenAppDependencies_OpenAppIDArray(mjopenapp_, { dataSources, userPayload, providers }, pubSub) {
69083
+ this.CheckUserReadPermissions('MJ: Open App Dependencies', userPayload);
69084
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
69085
+ const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
69086
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwOpenAppDependencies] WHERE [OpenAppID]='${mjopenapp_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Dependencies', userPayload, EntityPermissionType.Read, 'AND');
69087
+ const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
69088
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Open App Dependencies', rows, this.GetUserFromPayload(userPayload));
69089
+ return result;
69090
+ }
68990
69091
  async MJOpenAppDependencies_DependsOnAppIDArray(mjopenapp_, { dataSources, userPayload, providers }, pubSub) {
68991
69092
  this.CheckUserReadPermissions('MJ: Open App Dependencies', userPayload);
68992
69093
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -69005,15 +69106,6 @@ let MJOpenAppResolver = class MJOpenAppResolver extends ResolverBase {
69005
69106
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Open App Install Histories', rows, this.GetUserFromPayload(userPayload));
69006
69107
  return result;
69007
69108
  }
69008
- async MJOpenAppDependencies_OpenAppIDArray(mjopenapp_, { dataSources, userPayload, providers }, pubSub) {
69009
- this.CheckUserReadPermissions('MJ: Open App Dependencies', userPayload);
69010
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
69011
- const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
69012
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwOpenAppDependencies] WHERE [OpenAppID]='${mjopenapp_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Dependencies', userPayload, EntityPermissionType.Read, 'AND');
69013
- const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
69014
- const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Open App Dependencies', rows, this.GetUserFromPayload(userPayload));
69015
- return result;
69016
- }
69017
69109
  async CreateMJOpenApp(input, { providers, userPayload }, pubSub) {
69018
69110
  const provider = GetReadWriteProvider(providers);
69019
69111
  return this.CreateRecord('MJ: Open Apps', input, provider, userPayload, pubSub);
@@ -69072,25 +69164,25 @@ __decorate([
69072
69164
  __metadata("design:type", Function),
69073
69165
  __metadata("design:paramtypes", [MJOpenApp_, Object, PubSubEngine]),
69074
69166
  __metadata("design:returntype", Promise)
69075
- ], MJOpenAppResolver.prototype, "MJOpenAppDependencies_DependsOnAppIDArray", null);
69167
+ ], MJOpenAppResolver.prototype, "MJOpenAppDependencies_OpenAppIDArray", null);
69076
69168
  __decorate([
69077
- FieldResolver(() => [MJOpenAppInstallHistory_]),
69169
+ FieldResolver(() => [MJOpenAppDependency_]),
69078
69170
  __param(0, Root()),
69079
69171
  __param(1, Ctx()),
69080
69172
  __param(2, PubSub()),
69081
69173
  __metadata("design:type", Function),
69082
69174
  __metadata("design:paramtypes", [MJOpenApp_, Object, PubSubEngine]),
69083
69175
  __metadata("design:returntype", Promise)
69084
- ], MJOpenAppResolver.prototype, "MJOpenAppInstallHistories_OpenAppIDArray", null);
69176
+ ], MJOpenAppResolver.prototype, "MJOpenAppDependencies_DependsOnAppIDArray", null);
69085
69177
  __decorate([
69086
- FieldResolver(() => [MJOpenAppDependency_]),
69178
+ FieldResolver(() => [MJOpenAppInstallHistory_]),
69087
69179
  __param(0, Root()),
69088
69180
  __param(1, Ctx()),
69089
69181
  __param(2, PubSub()),
69090
69182
  __metadata("design:type", Function),
69091
69183
  __metadata("design:paramtypes", [MJOpenApp_, Object, PubSubEngine]),
69092
69184
  __metadata("design:returntype", Promise)
69093
- ], MJOpenAppResolver.prototype, "MJOpenAppDependencies_OpenAppIDArray", null);
69185
+ ], MJOpenAppResolver.prototype, "MJOpenAppInstallHistories_OpenAppIDArray", null);
69094
69186
  __decorate([
69095
69187
  Mutation(() => MJOpenApp_),
69096
69188
  __param(0, Arg('input', () => CreateMJOpenAppInput)),
@@ -73703,6 +73795,10 @@ __decorate([
73703
73795
  MaxLength(10),
73704
73796
  __metadata("design:type", Date)
73705
73797
  ], MJRecommendationItem_.prototype, "_mj__UpdatedAt", void 0);
73798
+ __decorate([
73799
+ Field(),
73800
+ __metadata("design:type", String)
73801
+ ], MJRecommendationItem_.prototype, "Recommendation", void 0);
73706
73802
  __decorate([
73707
73803
  Field(),
73708
73804
  MaxLength(510),
@@ -74498,6 +74594,11 @@ __decorate([
74498
74594
  MaxLength(10),
74499
74595
  __metadata("design:type", Date)
74500
74596
  ], MJRecommendation_.prototype, "_mj__UpdatedAt", void 0);
74597
+ __decorate([
74598
+ Field(),
74599
+ MaxLength(510),
74600
+ __metadata("design:type", String)
74601
+ ], MJRecommendation_.prototype, "RecommendationRun", void 0);
74501
74602
  __decorate([
74502
74603
  Field(),
74503
74604
  MaxLength(510),
@@ -75095,6 +75196,11 @@ __decorate([
75095
75196
  MaxLength(200),
75096
75197
  __metadata("design:type", String)
75097
75198
  ], MJRecordChange_.prototype, "User", void 0);
75199
+ __decorate([
75200
+ Field({ nullable: true }),
75201
+ MaxLength(200),
75202
+ __metadata("design:type", String)
75203
+ ], MJRecordChange_.prototype, "ReplayRun", void 0);
75098
75204
  __decorate([
75099
75205
  Field({ nullable: true }),
75100
75206
  MaxLength(200),
@@ -75744,6 +75850,11 @@ __decorate([
75744
75850
  MaxLength(10),
75745
75851
  __metadata("design:type", Date)
75746
75852
  ], MJRecordMergeDeletionLog_.prototype, "_mj__UpdatedAt", void 0);
75853
+ __decorate([
75854
+ Field(),
75855
+ MaxLength(900),
75856
+ __metadata("design:type", String)
75857
+ ], MJRecordMergeDeletionLog_.prototype, "RecordMergeLog", void 0);
75747
75858
  MJRecordMergeDeletionLog_ = __decorate([
75748
75859
  ObjectType({ description: `Tracks records deleted during merge operations, maintaining an audit trail of data consolidation activities.` })
75749
75860
  ], MJRecordMergeDeletionLog_);
@@ -77521,6 +77632,10 @@ __decorate([
77521
77632
  MaxLength(510),
77522
77633
  __metadata("design:type", String)
77523
77634
  ], MJReport_.prototype, "Conversation", void 0);
77635
+ __decorate([
77636
+ Field({ nullable: true }),
77637
+ __metadata("design:type", String)
77638
+ ], MJReport_.prototype, "ConversationDetail", void 0);
77524
77639
  __decorate([
77525
77640
  Field({ nullable: true }),
77526
77641
  MaxLength(510),
@@ -78945,19 +79060,19 @@ __decorate([
78945
79060
  __decorate([
78946
79061
  Field(() => [MJEntityPermission_]),
78947
79062
  __metadata("design:type", Array)
78948
- ], MJRole_.prototype, "MJEntityPermissions_RoleNameArray", void 0);
79063
+ ], MJRole_.prototype, "MJEntityPermissions_RoleIDArray", void 0);
78949
79064
  __decorate([
78950
79065
  Field(() => [MJUserRole_]),
78951
79066
  __metadata("design:type", Array)
78952
- ], MJRole_.prototype, "MJUserRoles_RoleNameArray", void 0);
79067
+ ], MJRole_.prototype, "MJUserRoles_RoleIDArray", void 0);
78953
79068
  __decorate([
78954
79069
  Field(() => [MJAuthorizationRole_]),
78955
79070
  __metadata("design:type", Array)
78956
- ], MJRole_.prototype, "MJAuthorizationRoles_RoleNameArray", void 0);
79071
+ ], MJRole_.prototype, "MJAuthorizationRoles_RoleIDArray", void 0);
78957
79072
  __decorate([
78958
79073
  Field(() => [MJQueryPermission_]),
78959
79074
  __metadata("design:type", Array)
78960
- ], MJRole_.prototype, "MJQueryPermissions_RoleNameArray", void 0);
79075
+ ], MJRole_.prototype, "MJQueryPermissions_RoleIDArray", void 0);
78961
79076
  __decorate([
78962
79077
  Field(() => [MJResourcePermission_]),
78963
79078
  __metadata("design:type", Array)
@@ -79114,38 +79229,38 @@ let MJRoleResolver = class MJRoleResolver extends ResolverBase {
79114
79229
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Employee Roles', rows, this.GetUserFromPayload(userPayload));
79115
79230
  return result;
79116
79231
  }
79117
- async MJEntityPermissions_RoleNameArray(mjrole_, { dataSources, userPayload, providers }, pubSub) {
79232
+ async MJEntityPermissions_RoleIDArray(mjrole_, { dataSources, userPayload, providers }, pubSub) {
79118
79233
  this.CheckUserReadPermissions('MJ: Entity Permissions', userPayload);
79119
79234
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
79120
79235
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
79121
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityPermissions] WHERE [RoleName]='${mjrole_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Permissions', userPayload, EntityPermissionType.Read, 'AND');
79236
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwEntityPermissions] WHERE [RoleID]='${mjrole_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Entity Permissions', userPayload, EntityPermissionType.Read, 'AND');
79122
79237
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
79123
79238
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Entity Permissions', rows, this.GetUserFromPayload(userPayload));
79124
79239
  return result;
79125
79240
  }
79126
- async MJUserRoles_RoleNameArray(mjrole_, { dataSources, userPayload, providers }, pubSub) {
79241
+ async MJUserRoles_RoleIDArray(mjrole_, { dataSources, userPayload, providers }, pubSub) {
79127
79242
  this.CheckUserReadPermissions('MJ: User Roles', userPayload);
79128
79243
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
79129
79244
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
79130
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserRoles] WHERE [RoleName]='${mjrole_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Roles', userPayload, EntityPermissionType.Read, 'AND');
79245
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwUserRoles] WHERE [RoleID]='${mjrole_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: User Roles', userPayload, EntityPermissionType.Read, 'AND');
79131
79246
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
79132
79247
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: User Roles', rows, this.GetUserFromPayload(userPayload));
79133
79248
  return result;
79134
79249
  }
79135
- async MJAuthorizationRoles_RoleNameArray(mjrole_, { dataSources, userPayload, providers }, pubSub) {
79250
+ async MJAuthorizationRoles_RoleIDArray(mjrole_, { dataSources, userPayload, providers }, pubSub) {
79136
79251
  this.CheckUserReadPermissions('MJ: Authorization Roles', userPayload);
79137
79252
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
79138
79253
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
79139
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAuthorizationRoles] WHERE [RoleName]='${mjrole_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Authorization Roles', userPayload, EntityPermissionType.Read, 'AND');
79254
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAuthorizationRoles] WHERE [RoleID]='${mjrole_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Authorization Roles', userPayload, EntityPermissionType.Read, 'AND');
79140
79255
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
79141
79256
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Authorization Roles', rows, this.GetUserFromPayload(userPayload));
79142
79257
  return result;
79143
79258
  }
79144
- async MJQueryPermissions_RoleNameArray(mjrole_, { dataSources, userPayload, providers }, pubSub) {
79259
+ async MJQueryPermissions_RoleIDArray(mjrole_, { dataSources, userPayload, providers }, pubSub) {
79145
79260
  this.CheckUserReadPermissions('MJ: Query Permissions', userPayload);
79146
79261
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
79147
79262
  const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
79148
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwQueryPermissions] WHERE [RoleName]='${mjrole_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Permissions', userPayload, EntityPermissionType.Read, 'AND');
79263
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwQueryPermissions] WHERE [RoleID]='${mjrole_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Query Permissions', userPayload, EntityPermissionType.Read, 'AND');
79149
79264
  const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
79150
79265
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Query Permissions', rows, this.GetUserFromPayload(userPayload));
79151
79266
  return result;
@@ -79252,7 +79367,7 @@ __decorate([
79252
79367
  __metadata("design:type", Function),
79253
79368
  __metadata("design:paramtypes", [MJRole_, Object, PubSubEngine]),
79254
79369
  __metadata("design:returntype", Promise)
79255
- ], MJRoleResolver.prototype, "MJEntityPermissions_RoleNameArray", null);
79370
+ ], MJRoleResolver.prototype, "MJEntityPermissions_RoleIDArray", null);
79256
79371
  __decorate([
79257
79372
  FieldResolver(() => [MJUserRole_]),
79258
79373
  __param(0, Root()),
@@ -79261,7 +79376,7 @@ __decorate([
79261
79376
  __metadata("design:type", Function),
79262
79377
  __metadata("design:paramtypes", [MJRole_, Object, PubSubEngine]),
79263
79378
  __metadata("design:returntype", Promise)
79264
- ], MJRoleResolver.prototype, "MJUserRoles_RoleNameArray", null);
79379
+ ], MJRoleResolver.prototype, "MJUserRoles_RoleIDArray", null);
79265
79380
  __decorate([
79266
79381
  FieldResolver(() => [MJAuthorizationRole_]),
79267
79382
  __param(0, Root()),
@@ -79270,7 +79385,7 @@ __decorate([
79270
79385
  __metadata("design:type", Function),
79271
79386
  __metadata("design:paramtypes", [MJRole_, Object, PubSubEngine]),
79272
79387
  __metadata("design:returntype", Promise)
79273
- ], MJRoleResolver.prototype, "MJAuthorizationRoles_RoleNameArray", null);
79388
+ ], MJRoleResolver.prototype, "MJAuthorizationRoles_RoleIDArray", null);
79274
79389
  __decorate([
79275
79390
  FieldResolver(() => [MJQueryPermission_]),
79276
79391
  __param(0, Root()),
@@ -79279,7 +79394,7 @@ __decorate([
79279
79394
  __metadata("design:type", Function),
79280
79395
  __metadata("design:paramtypes", [MJRole_, Object, PubSubEngine]),
79281
79396
  __metadata("design:returntype", Promise)
79282
- ], MJRoleResolver.prototype, "MJQueryPermissions_RoleNameArray", null);
79397
+ ], MJRoleResolver.prototype, "MJQueryPermissions_RoleIDArray", null);
79283
79398
  __decorate([
79284
79399
  FieldResolver(() => [MJResourcePermission_]),
79285
79400
  __param(0, Root()),
@@ -83177,6 +83292,10 @@ __decorate([
83177
83292
  MaxLength(510),
83178
83293
  __metadata("design:type", String)
83179
83294
  ], MJTask_.prototype, "Project", void 0);
83295
+ __decorate([
83296
+ Field({ nullable: true }),
83297
+ __metadata("design:type", String)
83298
+ ], MJTask_.prototype, "ConversationDetail", void 0);
83180
83299
  __decorate([
83181
83300
  Field({ nullable: true }),
83182
83301
  MaxLength(200),
@@ -84488,6 +84607,11 @@ __decorate([
84488
84607
  MaxLength(510),
84489
84608
  __metadata("design:type", String)
84490
84609
  ], MJTemplateParam_.prototype, "Entity", void 0);
84610
+ __decorate([
84611
+ Field({ nullable: true }),
84612
+ MaxLength(510),
84613
+ __metadata("design:type", String)
84614
+ ], MJTemplateParam_.prototype, "TemplateContent", void 0);
84491
84615
  MJTemplateParam_ = __decorate([
84492
84616
  ObjectType({ description: `Parameters allowed for use inside the template` })
84493
84617
  ], MJTemplateParam_);