@memberjunction/core-entities 4.1.0 → 4.2.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.
@@ -2379,7 +2379,7 @@ export const AIResultCacheSchema = z.object({
2379
2379
  * * Description: Vector representation of the prompt for similarity matching.`),
2380
2380
  PromptRunID: z.string().nullable().describe(`
2381
2381
  * * Field Name: PromptRunID
2382
- * * Display Name: Prompt Run
2382
+ * * Display Name: Prompt Run ID
2383
2383
  * * SQL Data Type: uniqueidentifier
2384
2384
  * * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)
2385
2385
  * * Description: Reference to the AIPromptRun that created this cache entry.`),
@@ -4312,7 +4312,7 @@ export const ConversationSchema = z.object({
4312
4312
  * * Related Entity/Foreign Key: Entities (vwEntities.ID)`),
4313
4313
  LinkedRecordID: z.string().nullable().describe(`
4314
4314
  * * Field Name: LinkedRecordID
4315
- * * Display Name: Linked Record ID
4315
+ * * Display Name: Linked Record
4316
4316
  * * SQL Data Type: nvarchar(500)
4317
4317
  * * Description: ID of a related record this conversation is about (support ticket, order, etc.).`),
4318
4318
  DataContextID: z.string().nullable().describe(`
@@ -4890,12 +4890,12 @@ export const DuplicateRunDetailSchema = z.object({
4890
4890
  * * Default Value: newsequentialid()`),
4891
4891
  DuplicateRunID: z.string().describe(`
4892
4892
  * * Field Name: DuplicateRunID
4893
- * * Display Name: Duplicate Run ID
4893
+ * * Display Name: Duplicate Run
4894
4894
  * * SQL Data Type: uniqueidentifier
4895
4895
  * * Related Entity/Foreign Key: Duplicate Runs (vwDuplicateRuns.ID)`),
4896
4896
  RecordID: z.string().describe(`
4897
4897
  * * Field Name: RecordID
4898
- * * Display Name: Record ID
4898
+ * * Display Name: Record
4899
4899
  * * SQL Data Type: nvarchar(500)
4900
4900
  * * Description: The ID of the record being analyzed for duplicates.`),
4901
4901
  MatchStatus: z.union([z.literal('Complete'), z.literal('Error'), z.literal('Pending'), z.literal('Skipped')]).describe(`
@@ -5071,7 +5071,7 @@ export const EmployeeCompanyIntegrationSchema = z.object({
5071
5071
  * * Related Entity/Foreign Key: Company Integrations (vwCompanyIntegrations.ID)`),
5072
5072
  ExternalSystemRecordID: z.string().describe(`
5073
5073
  * * Field Name: ExternalSystemRecordID
5074
- * * Display Name: External System Record ID
5074
+ * * Display Name: External System Record
5075
5075
  * * SQL Data Type: nvarchar(750)
5076
5076
  * * Description: The employee's unique identifier in the external integrated system.`),
5077
5077
  IsActive: z.boolean().describe(`
@@ -5092,7 +5092,7 @@ export const EmployeeCompanyIntegrationSchema = z.object({
5092
5092
  * * Default Value: getutcdate()`),
5093
5093
  Employee: z.string().nullable().describe(`
5094
5094
  * * Field Name: Employee
5095
- * * Display Name: Employee
5095
+ * * Display Name: Employee Name
5096
5096
  * * SQL Data Type: nvarchar(81)`),
5097
5097
  CompanyIntegration: z.string().describe(`
5098
5098
  * * Field Name: CompanyIntegration
@@ -5130,7 +5130,7 @@ export const EmployeeRoleSchema = z.object({
5130
5130
  * * Default Value: getutcdate()`),
5131
5131
  Employee: z.string().nullable().describe(`
5132
5132
  * * Field Name: Employee
5133
- * * Display Name: Employee
5133
+ * * Display Name: Employee Name
5134
5134
  * * SQL Data Type: nvarchar(81)`),
5135
5135
  Role: z.string().describe(`
5136
5136
  * * Field Name: Role
@@ -5153,7 +5153,7 @@ export const EmployeeSkillSchema = z.object({
5153
5153
  * * Related Entity/Foreign Key: Employees (vwEmployees.ID)`),
5154
5154
  SkillID: z.string().describe(`
5155
5155
  * * Field Name: SkillID
5156
- * * Display Name: Skill ID
5156
+ * * Display Name: Skill
5157
5157
  * * SQL Data Type: uniqueidentifier
5158
5158
  * * Related Entity/Foreign Key: Skills (vwSkills.ID)`),
5159
5159
  __mj_CreatedAt: z.date().describe(`
@@ -5667,11 +5667,11 @@ export const EntityActionFilterSchema = z.object({
5667
5667
  * * Default Value: getutcdate()`),
5668
5668
  EntityAction: z.string().describe(`
5669
5669
  * * Field Name: EntityAction
5670
- * * Display Name: Entity Action
5670
+ * * Display Name: Action Name
5671
5671
  * * SQL Data Type: nvarchar(425)`),
5672
5672
  ActionFilter: z.string().describe(`
5673
5673
  * * Field Name: ActionFilter
5674
- * * Display Name: Action Filter
5674
+ * * Display Name: Filter Name
5675
5675
  * * SQL Data Type: nvarchar(MAX)`),
5676
5676
  });
5677
5677
  /**
@@ -5752,11 +5752,11 @@ export const EntityActionInvocationSchema = z.object({
5752
5752
  * * Default Value: getutcdate()`),
5753
5753
  EntityAction: z.string().describe(`
5754
5754
  * * Field Name: EntityAction
5755
- * * Display Name: Action Name
5755
+ * * Display Name: Action
5756
5756
  * * SQL Data Type: nvarchar(425)`),
5757
5757
  InvocationType: z.string().describe(`
5758
5758
  * * Field Name: InvocationType
5759
- * * Display Name: Invocation Type Name
5759
+ * * Display Name: Invocation Type
5760
5760
  * * SQL Data Type: nvarchar(255)`),
5761
5761
  });
5762
5762
  /**
@@ -5770,12 +5770,12 @@ export const EntityActionParamSchema = z.object({
5770
5770
  * * Default Value: newsequentialid()`),
5771
5771
  EntityActionID: z.string().describe(`
5772
5772
  * * Field Name: EntityActionID
5773
- * * Display Name: Entity Action
5773
+ * * Display Name: Entity Action Id
5774
5774
  * * SQL Data Type: uniqueidentifier
5775
5775
  * * Related Entity/Foreign Key: Entity Actions (vwEntityActions.ID)`),
5776
5776
  ActionParamID: z.string().describe(`
5777
5777
  * * Field Name: ActionParamID
5778
- * * Display Name: Action Parameter
5778
+ * * Display Name: Action Parameter Id
5779
5779
  * * SQL Data Type: uniqueidentifier
5780
5780
  * * Related Entity/Foreign Key: Action Params (vwActionParams.ID)`),
5781
5781
  ValueType: z.union([z.literal('Entity Field'), z.literal('Entity Object'), z.literal('Script'), z.literal('Static')]).describe(`
@@ -5983,7 +5983,7 @@ export const EntityCommunicationFieldSchema = z.object({
5983
5983
  * * Default Value: newsequentialid()`),
5984
5984
  EntityCommunicationMessageTypeID: z.string().describe(`
5985
5985
  * * Field Name: EntityCommunicationMessageTypeID
5986
- * * Display Name: Entity Communication Message Type
5986
+ * * Display Name: Message Type ID
5987
5987
  * * SQL Data Type: uniqueidentifier
5988
5988
  * * Related Entity/Foreign Key: Entity Communication Message Types (vwEntityCommunicationMessageTypes.ID)`),
5989
5989
  FieldName: z.string().describe(`
@@ -7194,7 +7194,7 @@ export const ErrorLogSchema = z.object({
7194
7194
  * * Related Entity/Foreign Key: Company Integration Run Details (vwCompanyIntegrationRunDetails.ID)`),
7195
7195
  Code: z.string().nullable().describe(`
7196
7196
  * * Field Name: Code
7197
- * * Display Name: Code
7197
+ * * Display Name: Error Code
7198
7198
  * * SQL Data Type: nchar(20)
7199
7199
  * * Description: Error code for categorizing and handling specific error types.`),
7200
7200
  Message: z.string().nullable().describe(`
@@ -7234,11 +7234,11 @@ export const ErrorLogSchema = z.object({
7234
7234
  * * Default Value: getutcdate()`),
7235
7235
  CompanyIntegrationRun: z.string().nullable().describe(`
7236
7236
  * * Field Name: CompanyIntegrationRun
7237
- * * Display Name: Integration Run
7237
+ * * Display Name: Company Integration Run
7238
7238
  * * SQL Data Type: nvarchar(100)`),
7239
7239
  CompanyIntegrationRunDetail: z.string().nullable().describe(`
7240
7240
  * * Field Name: CompanyIntegrationRunDetail
7241
- * * Display Name: Integration Run Detail
7241
+ * * Display Name: Company Integration Run Detail
7242
7242
  * * SQL Data Type: nvarchar(450)`),
7243
7243
  });
7244
7244
  /**
@@ -7691,6 +7691,7 @@ export const IntegrationURLFormatSchema = z.object({
7691
7691
  * * Related Entity/Foreign Key: Entities (vwEntities.ID)`),
7692
7692
  URLFormat: z.string().describe(`
7693
7693
  * * Field Name: URLFormat
7694
+ * * Display Name: URL Format
7694
7695
  * * SQL Data Type: nvarchar(500)
7695
7696
  * * Description: The URL Format for the given integration including the ability to include markup with fields from the integration`),
7696
7697
  Comments: z.string().nullable().describe(`
@@ -13111,7 +13112,7 @@ export const ConversationDetailArtifactSchema = z.object({
13111
13112
  * * Default Value: getutcdate()`),
13112
13113
  ConversationDetail: z.string().describe(`
13113
13114
  * * Field Name: ConversationDetail
13114
- * * Display Name: Message Text
13115
+ * * Display Name: Conversation Text
13115
13116
  * * SQL Data Type: nvarchar(MAX)`),
13116
13117
  ArtifactVersion: z.string().nullable().describe(`
13117
13118
  * * Field Name: ArtifactVersion
@@ -13261,7 +13262,7 @@ export const ConversationDetailRatingSchema = z.object({
13261
13262
  * * Default Value: getutcdate()`),
13262
13263
  ConversationDetail: z.string().describe(`
13263
13264
  * * Field Name: ConversationDetail
13264
- * * Display Name: Conversation Detail
13265
+ * * Display Name: Conversation Message
13265
13266
  * * SQL Data Type: nvarchar(MAX)`),
13266
13267
  User: z.string().describe(`
13267
13268
  * * Field Name: User
@@ -14371,7 +14372,7 @@ export const MCPServerConnectionToolSchema = z.object({
14371
14372
  * * Related Entity/Foreign Key: MJ: MCP Server Tools (vwMCPServerTools.ID)`),
14372
14373
  IsEnabled: z.boolean().describe(`
14373
14374
  * * Field Name: IsEnabled
14374
- * * Display Name: Enabled
14375
+ * * Display Name: Is Enabled
14375
14376
  * * SQL Data Type: bit
14376
14377
  * * Default Value: 1
14377
14378
  * * Description: Whether this tool is enabled for the connection`),
@@ -14397,11 +14398,11 @@ export const MCPServerConnectionToolSchema = z.object({
14397
14398
  * * Default Value: getutcdate()`),
14398
14399
  MCPServerConnection: z.string().describe(`
14399
14400
  * * Field Name: MCPServerConnection
14400
- * * Display Name: Connection
14401
+ * * Display Name: MCP Server Connection
14401
14402
  * * SQL Data Type: nvarchar(255)`),
14402
14403
  MCPServerTool: z.string().nullable().describe(`
14403
14404
  * * Field Name: MCPServerTool
14404
- * * Display Name: Tool
14405
+ * * Display Name: MCP Server Tool
14405
14406
  * * SQL Data Type: nvarchar(255)`),
14406
14407
  });
14407
14408
  /**
@@ -14757,12 +14758,12 @@ export const MCPToolExecutionLogSchema = z.object({
14757
14758
  * * Default Value: newsequentialid()`),
14758
14759
  MCPServerConnectionID: z.string().describe(`
14759
14760
  * * Field Name: MCPServerConnectionID
14760
- * * Display Name: MCP Server Connection ID
14761
+ * * Display Name: MCP Server Connection
14761
14762
  * * SQL Data Type: uniqueidentifier
14762
14763
  * * Related Entity/Foreign Key: MJ: MCP Server Connections (vwMCPServerConnections.ID)`),
14763
14764
  MCPServerToolID: z.string().nullable().describe(`
14764
14765
  * * Field Name: MCPServerToolID
14765
- * * Display Name: MCP Server Tool ID
14766
+ * * Display Name: MCP Server Tool
14766
14767
  * * SQL Data Type: uniqueidentifier
14767
14768
  * * Related Entity/Foreign Key: MJ: MCP Server Tools (vwMCPServerTools.ID)
14768
14769
  * * Description: FK to MCP Server Tool (null if tool not cached)`),
@@ -15989,7 +15990,7 @@ export const TaskSchema = z.object({
15989
15990
  * * Default Value: newsequentialid()`),
15990
15991
  ParentID: z.string().nullable().describe(`
15991
15992
  * * Field Name: ParentID
15992
- * * Display Name: Parent
15993
+ * * Display Name: Parent ID
15993
15994
  * * SQL Data Type: uniqueidentifier
15994
15995
  * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)`),
15995
15996
  Name: z.string().describe(`
@@ -16004,33 +16005,33 @@ export const TaskSchema = z.object({
16004
16005
  * * Description: Detailed description of the task requirements and objectives`),
16005
16006
  TypeID: z.string().describe(`
16006
16007
  * * Field Name: TypeID
16007
- * * Display Name: Type
16008
+ * * Display Name: Type ID
16008
16009
  * * SQL Data Type: uniqueidentifier
16009
16010
  * * Related Entity/Foreign Key: MJ: Task Types (vwTaskTypes.ID)`),
16010
16011
  EnvironmentID: z.string().describe(`
16011
16012
  * * Field Name: EnvironmentID
16012
- * * Display Name: Environment
16013
+ * * Display Name: Environment ID
16013
16014
  * * SQL Data Type: uniqueidentifier
16014
16015
  * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
16015
16016
  * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09`),
16016
16017
  ProjectID: z.string().nullable().describe(`
16017
16018
  * * Field Name: ProjectID
16018
- * * Display Name: Project
16019
+ * * Display Name: Project ID
16019
16020
  * * SQL Data Type: uniqueidentifier
16020
16021
  * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)`),
16021
16022
  ConversationDetailID: z.string().nullable().describe(`
16022
16023
  * * Field Name: ConversationDetailID
16023
- * * Display Name: Conversation Detail
16024
+ * * Display Name: Conversation Detail ID
16024
16025
  * * SQL Data Type: uniqueidentifier
16025
16026
  * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)`),
16026
16027
  UserID: z.string().nullable().describe(`
16027
16028
  * * Field Name: UserID
16028
- * * Display Name: User
16029
+ * * Display Name: User ID
16029
16030
  * * SQL Data Type: uniqueidentifier
16030
16031
  * * Related Entity/Foreign Key: Users (vwUsers.ID)`),
16031
16032
  AgentID: z.string().nullable().describe(`
16032
16033
  * * Field Name: AgentID
16033
- * * Display Name: Agent
16034
+ * * Display Name: Agent ID
16034
16035
  * * SQL Data Type: uniqueidentifier
16035
16036
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)`),
16036
16037
  Status: z.union([z.literal('Blocked'), z.literal('Cancelled'), z.literal('Complete'), z.literal('Deferred'), z.literal('Failed'), z.literal('In Progress'), z.literal('Pending')]).describe(`
@@ -16081,19 +16082,19 @@ export const TaskSchema = z.object({
16081
16082
  * * Default Value: getutcdate()`),
16082
16083
  Parent: z.string().nullable().describe(`
16083
16084
  * * Field Name: Parent
16084
- * * Display Name: Parent
16085
+ * * Display Name: Parent Name
16085
16086
  * * SQL Data Type: nvarchar(255)`),
16086
16087
  Type: z.string().describe(`
16087
16088
  * * Field Name: Type
16088
- * * Display Name: Type
16089
+ * * Display Name: Type Name
16089
16090
  * * SQL Data Type: nvarchar(255)`),
16090
16091
  Environment: z.string().describe(`
16091
16092
  * * Field Name: Environment
16092
- * * Display Name: Environment
16093
+ * * Display Name: Environment Name
16093
16094
  * * SQL Data Type: nvarchar(255)`),
16094
16095
  Project: z.string().nullable().describe(`
16095
16096
  * * Field Name: Project
16096
- * * Display Name: Project
16097
+ * * Display Name: Project Name
16097
16098
  * * SQL Data Type: nvarchar(255)`),
16098
16099
  ConversationDetail: z.string().nullable().describe(`
16099
16100
  * * Field Name: ConversationDetail
@@ -16101,15 +16102,15 @@ export const TaskSchema = z.object({
16101
16102
  * * SQL Data Type: nvarchar(MAX)`),
16102
16103
  User: z.string().nullable().describe(`
16103
16104
  * * Field Name: User
16104
- * * Display Name: User
16105
+ * * Display Name: User Name
16105
16106
  * * SQL Data Type: nvarchar(100)`),
16106
16107
  Agent: z.string().nullable().describe(`
16107
16108
  * * Field Name: Agent
16108
- * * Display Name: Agent
16109
+ * * Display Name: Agent Name
16109
16110
  * * SQL Data Type: nvarchar(255)`),
16110
16111
  RootParentID: z.string().nullable().describe(`
16111
16112
  * * Field Name: RootParentID
16112
- * * Display Name: Root Parent
16113
+ * * Display Name: Root Parent ID
16113
16114
  * * SQL Data Type: uniqueidentifier`),
16114
16115
  });
16115
16116
  /**
@@ -18063,17 +18064,17 @@ export const RecommendationItemSchema = z.object({
18063
18064
  * * Default Value: newsequentialid()`),
18064
18065
  RecommendationID: z.string().describe(`
18065
18066
  * * Field Name: RecommendationID
18066
- * * Display Name: Recommendation ID
18067
+ * * Display Name: Recommendation
18067
18068
  * * SQL Data Type: uniqueidentifier
18068
18069
  * * Related Entity/Foreign Key: Recommendations (vwRecommendations.ID)`),
18069
18070
  DestinationEntityID: z.string().describe(`
18070
18071
  * * Field Name: DestinationEntityID
18071
- * * Display Name: Destination Entity ID
18072
+ * * Display Name: Destination Entity
18072
18073
  * * SQL Data Type: uniqueidentifier
18073
18074
  * * Related Entity/Foreign Key: Entities (vwEntities.ID)`),
18074
18075
  DestinationEntityRecordID: z.string().describe(`
18075
18076
  * * Field Name: DestinationEntityRecordID
18076
- * * Display Name: Destination Entity Record ID
18077
+ * * Display Name: Destination Record ID
18077
18078
  * * SQL Data Type: nvarchar(450)
18078
18079
  * * Description: The record ID of the destination entity`),
18079
18080
  MatchProbability: z.number().nullable().describe(`
@@ -18213,7 +18214,7 @@ export const RecommendationSchema = z.object({
18213
18214
  * * Related Entity/Foreign Key: Entities (vwEntities.ID)`),
18214
18215
  SourceEntityRecordID: z.string().describe(`
18215
18216
  * * Field Name: SourceEntityRecordID
18216
- * * Display Name: Source Entity Record
18217
+ * * Display Name: Source Entity Record ID
18217
18218
  * * SQL Data Type: nvarchar(MAX)
18218
18219
  * * Description: The record ID of the source entity`),
18219
18220
  __mj_CreatedAt: z.date().describe(`
@@ -18228,7 +18229,7 @@ export const RecommendationSchema = z.object({
18228
18229
  * * Default Value: getutcdate()`),
18229
18230
  RecommendationRun: z.string().describe(`
18230
18231
  * * Field Name: RecommendationRun
18231
- * * Display Name: Recommendation Run
18232
+ * * Display Name: Run
18232
18233
  * * SQL Data Type: nvarchar(255)`),
18233
18234
  SourceEntity: z.string().describe(`
18234
18235
  * * Field Name: SourceEntity
@@ -18427,7 +18428,7 @@ export const RecordMergeDeletionLogSchema = z.object({
18427
18428
  * * Related Entity/Foreign Key: Record Merge Logs (vwRecordMergeLogs.ID)`),
18428
18429
  DeletedRecordID: z.string().describe(`
18429
18430
  * * Field Name: DeletedRecordID
18430
- * * Display Name: Deleted Record
18431
+ * * Display Name: Deleted Record ID
18431
18432
  * * SQL Data Type: nvarchar(750)
18432
18433
  * * Description: Field DeletedRecordID for entity Record Merge Deletion Logs.`),
18433
18434
  Status: z.union([z.literal('Complete'), z.literal('Error'), z.literal('Pending')]).describe(`
@@ -18457,7 +18458,7 @@ export const RecordMergeDeletionLogSchema = z.object({
18457
18458
  * * Default Value: getutcdate()`),
18458
18459
  RecordMergeLog: z.string().describe(`
18459
18460
  * * Field Name: RecordMergeLog
18460
- * * Display Name: Merge Log
18461
+ * * Display Name: Record Merge Log
18461
18462
  * * SQL Data Type: nvarchar(450)`),
18462
18463
  });
18463
18464
  /**
@@ -19027,6 +19028,7 @@ export const RoleSchema = z.object({
19027
19028
  * * Description: The unique ID of the role in the directory being used for authentication, for example an ID in Azure.`),
19028
19029
  SQLName: z.string().nullable().describe(`
19029
19030
  * * Field Name: SQLName
19031
+ * * Display Name: SQL Name
19030
19032
  * * SQL Data Type: nvarchar(250)
19031
19033
  * * Description: The name of the role in the database, this is used for auto-generating permission statements by CodeGen`),
19032
19034
  __mj_CreatedAt: z.date().describe(`
@@ -19564,7 +19566,7 @@ export const TemplateParamSchema = z.object({
19564
19566
  * * Default Value: newsequentialid()`),
19565
19567
  TemplateID: z.string().describe(`
19566
19568
  * * Field Name: TemplateID
19567
- * * Display Name: Template ID
19569
+ * * Display Name: Template
19568
19570
  * * SQL Data Type: uniqueidentifier
19569
19571
  * * Related Entity/Foreign Key: Templates (vwTemplates.ID)`),
19570
19572
  Name: z.string().describe(`
@@ -19618,12 +19620,12 @@ export const TemplateParamSchema = z.object({
19618
19620
  * * Description: Only used when Type = Entity, used to specify an optional filter to reduce the set of rows that are returned for each of the templates being rendered.`),
19619
19621
  EntityID: z.string().nullable().describe(`
19620
19622
  * * Field Name: EntityID
19621
- * * Display Name: Entity ID
19623
+ * * Display Name: Entity
19622
19624
  * * SQL Data Type: uniqueidentifier
19623
19625
  * * Related Entity/Foreign Key: Entities (vwEntities.ID)`),
19624
19626
  RecordID: z.string().nullable().describe(`
19625
19627
  * * Field Name: RecordID
19626
- * * Display Name: Record ID
19628
+ * * Display Name: Record
19627
19629
  * * SQL Data Type: nvarchar(2000)
19628
19630
  * * Description: Record ID, used only when Type is Record and a specific hardcoded record ID is desired, this is an uncommon use case, helpful for pulling in static types and metadata in some cases.`),
19629
19631
  __mj_CreatedAt: z.date().describe(`
@@ -22092,6 +22094,41 @@ let ActionEntity = class ActionEntity extends BaseEntity {
22092
22094
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
22093
22095
  }
22094
22096
  /**
22097
+ * Actions - Delete method override to wrap in transaction since CascadeDeletes is true.
22098
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
22099
+ * @public
22100
+ * @method
22101
+ * @override
22102
+ * @memberof ActionEntity
22103
+ * @returns {Promise<boolean>} - true if successful, false otherwise
22104
+ */
22105
+ async Delete(options) {
22106
+ if (Metadata.Provider.ProviderType === ProviderType.Database) {
22107
+ // For database providers, use the transaction methods directly
22108
+ const provider = Metadata.Provider;
22109
+ try {
22110
+ await provider.BeginTransaction();
22111
+ const result = await super.Delete(options);
22112
+ if (result) {
22113
+ await provider.CommitTransaction();
22114
+ return true;
22115
+ }
22116
+ else {
22117
+ await provider.RollbackTransaction();
22118
+ return false;
22119
+ }
22120
+ }
22121
+ catch (error) {
22122
+ await provider.RollbackTransaction();
22123
+ throw error;
22124
+ }
22125
+ }
22126
+ else {
22127
+ // For network providers, cascading deletes are handled server-side
22128
+ return super.Delete(options);
22129
+ }
22130
+ }
22131
+ /**
22095
22132
  * * Field Name: ID
22096
22133
  * * Display Name: ID
22097
22134
  * * SQL Data Type: uniqueidentifier
@@ -23932,6 +23969,41 @@ let AIAgentEntity = class AIAgentEntity extends BaseEntity {
23932
23969
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
23933
23970
  }
23934
23971
  /**
23972
+ * AI Agents - Delete method override to wrap in transaction since CascadeDeletes is true.
23973
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
23974
+ * @public
23975
+ * @method
23976
+ * @override
23977
+ * @memberof AIAgentEntity
23978
+ * @returns {Promise<boolean>} - true if successful, false otherwise
23979
+ */
23980
+ async Delete(options) {
23981
+ if (Metadata.Provider.ProviderType === ProviderType.Database) {
23982
+ // For database providers, use the transaction methods directly
23983
+ const provider = Metadata.Provider;
23984
+ try {
23985
+ await provider.BeginTransaction();
23986
+ const result = await super.Delete(options);
23987
+ if (result) {
23988
+ await provider.CommitTransaction();
23989
+ return true;
23990
+ }
23991
+ else {
23992
+ await provider.RollbackTransaction();
23993
+ return false;
23994
+ }
23995
+ }
23996
+ catch (error) {
23997
+ await provider.RollbackTransaction();
23998
+ throw error;
23999
+ }
24000
+ }
24001
+ else {
24002
+ // For network providers, cascading deletes are handled server-side
24003
+ return super.Delete(options);
24004
+ }
24005
+ }
24006
+ /**
23935
24007
  * Validate() method override for AI Agents entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
23936
24008
  * * DefaultPromptEffortLevel: This rule ensures that if a default prompt effort level is specified, it must be a number between 1 and 100, inclusive.
23937
24009
  * * MaxExecutionsPerRun: This rule ensures that if 'MaxExecutionsPerRun' is provided, it must be a value greater than zero. If it is left blank, that's acceptable.
@@ -25715,6 +25787,41 @@ let AIPromptEntity = class AIPromptEntity extends BaseEntity {
25715
25787
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
25716
25788
  }
25717
25789
  /**
25790
+ * AI Prompts - Delete method override to wrap in transaction since CascadeDeletes is true.
25791
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
25792
+ * @public
25793
+ * @method
25794
+ * @override
25795
+ * @memberof AIPromptEntity
25796
+ * @returns {Promise<boolean>} - true if successful, false otherwise
25797
+ */
25798
+ async Delete(options) {
25799
+ if (Metadata.Provider.ProviderType === ProviderType.Database) {
25800
+ // For database providers, use the transaction methods directly
25801
+ const provider = Metadata.Provider;
25802
+ try {
25803
+ await provider.BeginTransaction();
25804
+ const result = await super.Delete(options);
25805
+ if (result) {
25806
+ await provider.CommitTransaction();
25807
+ return true;
25808
+ }
25809
+ else {
25810
+ await provider.RollbackTransaction();
25811
+ return false;
25812
+ }
25813
+ }
25814
+ catch (error) {
25815
+ await provider.RollbackTransaction();
25816
+ throw error;
25817
+ }
25818
+ }
25819
+ else {
25820
+ // For network providers, cascading deletes are handled server-side
25821
+ return super.Delete(options);
25822
+ }
25823
+ }
25824
+ /**
25718
25825
  * Validate() method override for AI Prompts entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
25719
25826
  * * CacheSimilarityThreshold: This rule ensures that the "CacheSimilarityThreshold" value, if provided, must be between 0 and 1 (including both 0 and 1). If it is not set, there is no restriction.
25720
25827
  * * CacheTTLSeconds: This rule ensures that if a cache time-to-live (CacheTTLSeconds) value is provided, it must be greater than zero. If it is not set, that's allowed.
@@ -26802,7 +26909,7 @@ let AIResultCacheEntity = class AIResultCacheEntity extends BaseEntity {
26802
26909
  }
26803
26910
  /**
26804
26911
  * * Field Name: PromptRunID
26805
- * * Display Name: Prompt Run
26912
+ * * Display Name: Prompt Run ID
26806
26913
  * * SQL Data Type: uniqueidentifier
26807
26914
  * * Related Entity/Foreign Key: MJ: AI Prompt Runs (vwAIPromptRuns.ID)
26808
26915
  * * Description: Reference to the AIPromptRun that created this cache entry.
@@ -31824,7 +31931,7 @@ let ConversationEntity = class ConversationEntity extends BaseEntity {
31824
31931
  }
31825
31932
  /**
31826
31933
  * * Field Name: LinkedRecordID
31827
- * * Display Name: Linked Record ID
31934
+ * * Display Name: Linked Record
31828
31935
  * * SQL Data Type: nvarchar(500)
31829
31936
  * * Description: ID of a related record this conversation is about (support ticket, order, etc.).
31830
31937
  */
@@ -33240,7 +33347,7 @@ let DuplicateRunDetailEntity = class DuplicateRunDetailEntity extends BaseEntity
33240
33347
  }
33241
33348
  /**
33242
33349
  * * Field Name: DuplicateRunID
33243
- * * Display Name: Duplicate Run ID
33350
+ * * Display Name: Duplicate Run
33244
33351
  * * SQL Data Type: uniqueidentifier
33245
33352
  * * Related Entity/Foreign Key: Duplicate Runs (vwDuplicateRuns.ID)
33246
33353
  */
@@ -33252,7 +33359,7 @@ let DuplicateRunDetailEntity = class DuplicateRunDetailEntity extends BaseEntity
33252
33359
  }
33253
33360
  /**
33254
33361
  * * Field Name: RecordID
33255
- * * Display Name: Record ID
33362
+ * * Display Name: Record
33256
33363
  * * SQL Data Type: nvarchar(500)
33257
33364
  * * Description: The ID of the record being analyzed for duplicates.
33258
33365
  */
@@ -33660,7 +33767,7 @@ let EmployeeCompanyIntegrationEntity = class EmployeeCompanyIntegrationEntity ex
33660
33767
  }
33661
33768
  /**
33662
33769
  * * Field Name: ExternalSystemRecordID
33663
- * * Display Name: External System Record ID
33770
+ * * Display Name: External System Record
33664
33771
  * * SQL Data Type: nvarchar(750)
33665
33772
  * * Description: The employee's unique identifier in the external integrated system.
33666
33773
  */
@@ -33703,7 +33810,7 @@ let EmployeeCompanyIntegrationEntity = class EmployeeCompanyIntegrationEntity ex
33703
33810
  }
33704
33811
  /**
33705
33812
  * * Field Name: Employee
33706
- * * Display Name: Employee
33813
+ * * Display Name: Employee Name
33707
33814
  * * SQL Data Type: nvarchar(81)
33708
33815
  */
33709
33816
  get Employee() {
@@ -33806,7 +33913,7 @@ let EmployeeRoleEntity = class EmployeeRoleEntity extends BaseEntity {
33806
33913
  }
33807
33914
  /**
33808
33915
  * * Field Name: Employee
33809
- * * Display Name: Employee
33916
+ * * Display Name: Employee Name
33810
33917
  * * SQL Data Type: nvarchar(81)
33811
33918
  */
33812
33919
  get Employee() {
@@ -33879,7 +33986,7 @@ let EmployeeSkillEntity = class EmployeeSkillEntity extends BaseEntity {
33879
33986
  }
33880
33987
  /**
33881
33988
  * * Field Name: SkillID
33882
- * * Display Name: Skill ID
33989
+ * * Display Name: Skill
33883
33990
  * * SQL Data Type: uniqueidentifier
33884
33991
  * * Related Entity/Foreign Key: Skills (vwSkills.ID)
33885
33992
  */
@@ -35073,7 +35180,7 @@ let EntityActionFilterEntity = class EntityActionFilterEntity extends BaseEntity
35073
35180
  }
35074
35181
  /**
35075
35182
  * * Field Name: EntityAction
35076
- * * Display Name: Entity Action
35183
+ * * Display Name: Action Name
35077
35184
  * * SQL Data Type: nvarchar(425)
35078
35185
  */
35079
35186
  get EntityAction() {
@@ -35081,7 +35188,7 @@ let EntityActionFilterEntity = class EntityActionFilterEntity extends BaseEntity
35081
35188
  }
35082
35189
  /**
35083
35190
  * * Field Name: ActionFilter
35084
- * * Display Name: Action Filter
35191
+ * * Display Name: Filter Name
35085
35192
  * * SQL Data Type: nvarchar(MAX)
35086
35193
  */
35087
35194
  get ActionFilter() {
@@ -35294,7 +35401,7 @@ let EntityActionInvocationEntity = class EntityActionInvocationEntity extends Ba
35294
35401
  }
35295
35402
  /**
35296
35403
  * * Field Name: EntityAction
35297
- * * Display Name: Action Name
35404
+ * * Display Name: Action
35298
35405
  * * SQL Data Type: nvarchar(425)
35299
35406
  */
35300
35407
  get EntityAction() {
@@ -35302,7 +35409,7 @@ let EntityActionInvocationEntity = class EntityActionInvocationEntity extends Ba
35302
35409
  }
35303
35410
  /**
35304
35411
  * * Field Name: InvocationType
35305
- * * Display Name: Invocation Type Name
35412
+ * * Display Name: Invocation Type
35306
35413
  * * SQL Data Type: nvarchar(255)
35307
35414
  */
35308
35415
  get InvocationType() {
@@ -35355,7 +35462,7 @@ let EntityActionParamEntity = class EntityActionParamEntity extends BaseEntity {
35355
35462
  }
35356
35463
  /**
35357
35464
  * * Field Name: EntityActionID
35358
- * * Display Name: Entity Action
35465
+ * * Display Name: Entity Action Id
35359
35466
  * * SQL Data Type: uniqueidentifier
35360
35467
  * * Related Entity/Foreign Key: Entity Actions (vwEntityActions.ID)
35361
35468
  */
@@ -35367,7 +35474,7 @@ let EntityActionParamEntity = class EntityActionParamEntity extends BaseEntity {
35367
35474
  }
35368
35475
  /**
35369
35476
  * * Field Name: ActionParamID
35370
- * * Display Name: Action Parameter
35477
+ * * Display Name: Action Parameter Id
35371
35478
  * * SQL Data Type: uniqueidentifier
35372
35479
  * * Related Entity/Foreign Key: Action Params (vwActionParams.ID)
35373
35480
  */
@@ -35870,7 +35977,7 @@ let EntityCommunicationFieldEntity = class EntityCommunicationFieldEntity extend
35870
35977
  }
35871
35978
  /**
35872
35979
  * * Field Name: EntityCommunicationMessageTypeID
35873
- * * Display Name: Entity Communication Message Type
35980
+ * * Display Name: Message Type ID
35874
35981
  * * SQL Data Type: uniqueidentifier
35875
35982
  * * Related Entity/Foreign Key: Entity Communication Message Types (vwEntityCommunicationMessageTypes.ID)
35876
35983
  */
@@ -38746,7 +38853,7 @@ let ErrorLogEntity = class ErrorLogEntity extends BaseEntity {
38746
38853
  }
38747
38854
  /**
38748
38855
  * * Field Name: Code
38749
- * * Display Name: Code
38856
+ * * Display Name: Error Code
38750
38857
  * * SQL Data Type: nchar(20)
38751
38858
  * * Description: Error code for categorizing and handling specific error types.
38752
38859
  */
@@ -38836,7 +38943,7 @@ let ErrorLogEntity = class ErrorLogEntity extends BaseEntity {
38836
38943
  }
38837
38944
  /**
38838
38945
  * * Field Name: CompanyIntegrationRun
38839
- * * Display Name: Integration Run
38946
+ * * Display Name: Company Integration Run
38840
38947
  * * SQL Data Type: nvarchar(100)
38841
38948
  */
38842
38949
  get CompanyIntegrationRun() {
@@ -38844,7 +38951,7 @@ let ErrorLogEntity = class ErrorLogEntity extends BaseEntity {
38844
38951
  }
38845
38952
  /**
38846
38953
  * * Field Name: CompanyIntegrationRunDetail
38847
- * * Display Name: Integration Run Detail
38954
+ * * Display Name: Company Integration Run Detail
38848
38955
  * * SQL Data Type: nvarchar(450)
38849
38956
  */
38850
38957
  get CompanyIntegrationRunDetail() {
@@ -40035,6 +40142,7 @@ let IntegrationURLFormatEntity = class IntegrationURLFormatEntity extends BaseEn
40035
40142
  }
40036
40143
  /**
40037
40144
  * * Field Name: URLFormat
40145
+ * * Display Name: URL Format
40038
40146
  * * SQL Data Type: nvarchar(500)
40039
40147
  * * Description: The URL Format for the given integration including the ability to include markup with fields from the integration
40040
40148
  */
@@ -43369,6 +43477,41 @@ let AIAgentRunStepEntity = class AIAgentRunStepEntity extends BaseEntity {
43369
43477
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
43370
43478
  }
43371
43479
  /**
43480
+ * MJ: AI Agent Run Steps - Delete method override to wrap in transaction since CascadeDeletes is true.
43481
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
43482
+ * @public
43483
+ * @method
43484
+ * @override
43485
+ * @memberof AIAgentRunStepEntity
43486
+ * @returns {Promise<boolean>} - true if successful, false otherwise
43487
+ */
43488
+ async Delete(options) {
43489
+ if (Metadata.Provider.ProviderType === ProviderType.Database) {
43490
+ // For database providers, use the transaction methods directly
43491
+ const provider = Metadata.Provider;
43492
+ try {
43493
+ await provider.BeginTransaction();
43494
+ const result = await super.Delete(options);
43495
+ if (result) {
43496
+ await provider.CommitTransaction();
43497
+ return true;
43498
+ }
43499
+ else {
43500
+ await provider.RollbackTransaction();
43501
+ return false;
43502
+ }
43503
+ }
43504
+ catch (error) {
43505
+ await provider.RollbackTransaction();
43506
+ throw error;
43507
+ }
43508
+ }
43509
+ else {
43510
+ // For network providers, cascading deletes are handled server-side
43511
+ return super.Delete(options);
43512
+ }
43513
+ }
43514
+ /**
43372
43515
  * Validate() method override for MJ: AI Agent Run Steps entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
43373
43516
  * * FinalPayloadValidationResult: The FinalPayloadValidationResult field can be empty, but if a value is set it must be one of the allowed outcomes: Warn, Fail, Retry, or Pass. This ensures that only valid validation results are stored.
43374
43517
  * * StepNumber: This rule ensures that the step number must be greater than zero.
@@ -43761,6 +43904,41 @@ let AIAgentRunEntity = class AIAgentRunEntity extends BaseEntity {
43761
43904
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
43762
43905
  }
43763
43906
  /**
43907
+ * MJ: AI Agent Runs - Delete method override to wrap in transaction since CascadeDeletes is true.
43908
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
43909
+ * @public
43910
+ * @method
43911
+ * @override
43912
+ * @memberof AIAgentRunEntity
43913
+ * @returns {Promise<boolean>} - true if successful, false otherwise
43914
+ */
43915
+ async Delete(options) {
43916
+ if (Metadata.Provider.ProviderType === ProviderType.Database) {
43917
+ // For database providers, use the transaction methods directly
43918
+ const provider = Metadata.Provider;
43919
+ try {
43920
+ await provider.BeginTransaction();
43921
+ const result = await super.Delete(options);
43922
+ if (result) {
43923
+ await provider.CommitTransaction();
43924
+ return true;
43925
+ }
43926
+ else {
43927
+ await provider.RollbackTransaction();
43928
+ return false;
43929
+ }
43930
+ }
43931
+ catch (error) {
43932
+ await provider.RollbackTransaction();
43933
+ throw error;
43934
+ }
43935
+ }
43936
+ else {
43937
+ // For network providers, cascading deletes are handled server-side
43938
+ return super.Delete(options);
43939
+ }
43940
+ }
43941
+ /**
43764
43942
  * Validate() method override for MJ: AI Agent Runs entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
43765
43943
  * * EffortLevel: This rule ensures that the effort level, if specified, must be a number between 1 and 100, inclusive.
43766
43944
  * * FinalStep: The FinalStep field can be left empty, but if a value is provided it must be one of the approved step names – While, ForEach, Chat, Sub-Agent, Actions, Retry, Failed, or Success. This ensures only valid workflow steps are recorded.
@@ -44687,6 +44865,41 @@ let AIAgentStepEntity = class AIAgentStepEntity extends BaseEntity {
44687
44865
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
44688
44866
  }
44689
44867
  /**
44868
+ * MJ: AI Agent Steps - Delete method override to wrap in transaction since CascadeDeletes is true.
44869
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
44870
+ * @public
44871
+ * @method
44872
+ * @override
44873
+ * @memberof AIAgentStepEntity
44874
+ * @returns {Promise<boolean>} - true if successful, false otherwise
44875
+ */
44876
+ async Delete(options) {
44877
+ if (Metadata.Provider.ProviderType === ProviderType.Database) {
44878
+ // For database providers, use the transaction methods directly
44879
+ const provider = Metadata.Provider;
44880
+ try {
44881
+ await provider.BeginTransaction();
44882
+ const result = await super.Delete(options);
44883
+ if (result) {
44884
+ await provider.CommitTransaction();
44885
+ return true;
44886
+ }
44887
+ else {
44888
+ await provider.RollbackTransaction();
44889
+ return false;
44890
+ }
44891
+ }
44892
+ catch (error) {
44893
+ await provider.RollbackTransaction();
44894
+ throw error;
44895
+ }
44896
+ }
44897
+ else {
44898
+ // For network providers, cascading deletes are handled server-side
44899
+ return super.Delete(options);
44900
+ }
44901
+ }
44902
+ /**
44690
44903
  * Validate() method override for MJ: AI Agent Steps entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
44691
44904
  * * RetryCount: This rule ensures that the number of retries allowed cannot be negative.
44692
44905
  * * TimeoutSeconds: This rule ensures that, if provided, the timeout value must be greater than zero seconds.
@@ -45579,6 +45792,41 @@ let AIConfigurationEntity = class AIConfigurationEntity extends BaseEntity {
45579
45792
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
45580
45793
  }
45581
45794
  /**
45795
+ * MJ: AI Configurations - Delete method override to wrap in transaction since CascadeDeletes is true.
45796
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
45797
+ * @public
45798
+ * @method
45799
+ * @override
45800
+ * @memberof AIConfigurationEntity
45801
+ * @returns {Promise<boolean>} - true if successful, false otherwise
45802
+ */
45803
+ async Delete(options) {
45804
+ if (Metadata.Provider.ProviderType === ProviderType.Database) {
45805
+ // For database providers, use the transaction methods directly
45806
+ const provider = Metadata.Provider;
45807
+ try {
45808
+ await provider.BeginTransaction();
45809
+ const result = await super.Delete(options);
45810
+ if (result) {
45811
+ await provider.CommitTransaction();
45812
+ return true;
45813
+ }
45814
+ else {
45815
+ await provider.RollbackTransaction();
45816
+ return false;
45817
+ }
45818
+ }
45819
+ catch (error) {
45820
+ await provider.RollbackTransaction();
45821
+ throw error;
45822
+ }
45823
+ }
45824
+ else {
45825
+ // For network providers, cascading deletes are handled server-side
45826
+ return super.Delete(options);
45827
+ }
45828
+ }
45829
+ /**
45582
45830
  * * Field Name: ID
45583
45831
  * * Display Name: ID
45584
45832
  * * SQL Data Type: uniqueidentifier
@@ -48069,6 +48317,41 @@ let AIPromptRunEntity = class AIPromptRunEntity extends BaseEntity {
48069
48317
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
48070
48318
  }
48071
48319
  /**
48320
+ * MJ: AI Prompt Runs - Delete method override to wrap in transaction since CascadeDeletes is true.
48321
+ * Wrapping in a transaction ensures that all cascade delete operations are handled atomically.
48322
+ * @public
48323
+ * @method
48324
+ * @override
48325
+ * @memberof AIPromptRunEntity
48326
+ * @returns {Promise<boolean>} - true if successful, false otherwise
48327
+ */
48328
+ async Delete(options) {
48329
+ if (Metadata.Provider.ProviderType === ProviderType.Database) {
48330
+ // For database providers, use the transaction methods directly
48331
+ const provider = Metadata.Provider;
48332
+ try {
48333
+ await provider.BeginTransaction();
48334
+ const result = await super.Delete(options);
48335
+ if (result) {
48336
+ await provider.CommitTransaction();
48337
+ return true;
48338
+ }
48339
+ else {
48340
+ await provider.RollbackTransaction();
48341
+ return false;
48342
+ }
48343
+ }
48344
+ catch (error) {
48345
+ await provider.RollbackTransaction();
48346
+ throw error;
48347
+ }
48348
+ }
48349
+ else {
48350
+ // For network providers, cascading deletes are handled server-side
48351
+ return super.Delete(options);
48352
+ }
48353
+ }
48354
+ /**
48072
48355
  * Validate() method override for MJ: AI Prompt Runs entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
48073
48356
  * * EffortLevel: This rule ensures that if an effort level is provided, it must be between 1 and 100, inclusive.
48074
48357
  * * Table-Level: This rule ensures that if the 'CompletedAt' date is provided, it must be the same as or later than the 'RunAt' date. If 'CompletedAt' is not specified, there is no restriction.
@@ -53841,7 +54124,7 @@ let ConversationDetailArtifactEntity = class ConversationDetailArtifactEntity ex
53841
54124
  }
53842
54125
  /**
53843
54126
  * * Field Name: ConversationDetail
53844
- * * Display Name: Message Text
54127
+ * * Display Name: Conversation Text
53845
54128
  * * SQL Data Type: nvarchar(MAX)
53846
54129
  */
53847
54130
  get ConversationDetail() {
@@ -54265,7 +54548,7 @@ let ConversationDetailRatingEntity = class ConversationDetailRatingEntity extend
54265
54548
  }
54266
54549
  /**
54267
54550
  * * Field Name: ConversationDetail
54268
- * * Display Name: Conversation Detail
54551
+ * * Display Name: Conversation Message
54269
54552
  * * SQL Data Type: nvarchar(MAX)
54270
54553
  */
54271
54554
  get ConversationDetail() {
@@ -57068,7 +57351,7 @@ let MCPServerConnectionToolEntity = class MCPServerConnectionToolEntity extends
57068
57351
  }
57069
57352
  /**
57070
57353
  * * Field Name: IsEnabled
57071
- * * Display Name: Enabled
57354
+ * * Display Name: Is Enabled
57072
57355
  * * SQL Data Type: bit
57073
57356
  * * Default Value: 1
57074
57357
  * * Description: Whether this tool is enabled for the connection
@@ -57123,7 +57406,7 @@ let MCPServerConnectionToolEntity = class MCPServerConnectionToolEntity extends
57123
57406
  }
57124
57407
  /**
57125
57408
  * * Field Name: MCPServerConnection
57126
- * * Display Name: Connection
57409
+ * * Display Name: MCP Server Connection
57127
57410
  * * SQL Data Type: nvarchar(255)
57128
57411
  */
57129
57412
  get MCPServerConnection() {
@@ -57131,7 +57414,7 @@ let MCPServerConnectionToolEntity = class MCPServerConnectionToolEntity extends
57131
57414
  }
57132
57415
  /**
57133
57416
  * * Field Name: MCPServerTool
57134
- * * Display Name: Tool
57417
+ * * Display Name: MCP Server Tool
57135
57418
  * * SQL Data Type: nvarchar(255)
57136
57419
  */
57137
57420
  get MCPServerTool() {
@@ -58029,7 +58312,7 @@ let MCPToolExecutionLogEntity = class MCPToolExecutionLogEntity extends BaseEnti
58029
58312
  }
58030
58313
  /**
58031
58314
  * * Field Name: MCPServerConnectionID
58032
- * * Display Name: MCP Server Connection ID
58315
+ * * Display Name: MCP Server Connection
58033
58316
  * * SQL Data Type: uniqueidentifier
58034
58317
  * * Related Entity/Foreign Key: MJ: MCP Server Connections (vwMCPServerConnections.ID)
58035
58318
  */
@@ -58041,7 +58324,7 @@ let MCPToolExecutionLogEntity = class MCPToolExecutionLogEntity extends BaseEnti
58041
58324
  }
58042
58325
  /**
58043
58326
  * * Field Name: MCPServerToolID
58044
- * * Display Name: MCP Server Tool ID
58327
+ * * Display Name: MCP Server Tool
58045
58328
  * * SQL Data Type: uniqueidentifier
58046
58329
  * * Related Entity/Foreign Key: MJ: MCP Server Tools (vwMCPServerTools.ID)
58047
58330
  * * Description: FK to MCP Server Tool (null if tool not cached)
@@ -61253,7 +61536,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61253
61536
  }
61254
61537
  /**
61255
61538
  * * Field Name: ParentID
61256
- * * Display Name: Parent
61539
+ * * Display Name: Parent ID
61257
61540
  * * SQL Data Type: uniqueidentifier
61258
61541
  * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
61259
61542
  */
@@ -61289,7 +61572,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61289
61572
  }
61290
61573
  /**
61291
61574
  * * Field Name: TypeID
61292
- * * Display Name: Type
61575
+ * * Display Name: Type ID
61293
61576
  * * SQL Data Type: uniqueidentifier
61294
61577
  * * Related Entity/Foreign Key: MJ: Task Types (vwTaskTypes.ID)
61295
61578
  */
@@ -61301,7 +61584,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61301
61584
  }
61302
61585
  /**
61303
61586
  * * Field Name: EnvironmentID
61304
- * * Display Name: Environment
61587
+ * * Display Name: Environment ID
61305
61588
  * * SQL Data Type: uniqueidentifier
61306
61589
  * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
61307
61590
  * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
@@ -61314,7 +61597,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61314
61597
  }
61315
61598
  /**
61316
61599
  * * Field Name: ProjectID
61317
- * * Display Name: Project
61600
+ * * Display Name: Project ID
61318
61601
  * * SQL Data Type: uniqueidentifier
61319
61602
  * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)
61320
61603
  */
@@ -61326,7 +61609,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61326
61609
  }
61327
61610
  /**
61328
61611
  * * Field Name: ConversationDetailID
61329
- * * Display Name: Conversation Detail
61612
+ * * Display Name: Conversation Detail ID
61330
61613
  * * SQL Data Type: uniqueidentifier
61331
61614
  * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
61332
61615
  */
@@ -61338,7 +61621,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61338
61621
  }
61339
61622
  /**
61340
61623
  * * Field Name: UserID
61341
- * * Display Name: User
61624
+ * * Display Name: User ID
61342
61625
  * * SQL Data Type: uniqueidentifier
61343
61626
  * * Related Entity/Foreign Key: Users (vwUsers.ID)
61344
61627
  */
@@ -61350,7 +61633,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61350
61633
  }
61351
61634
  /**
61352
61635
  * * Field Name: AgentID
61353
- * * Display Name: Agent
61636
+ * * Display Name: Agent ID
61354
61637
  * * SQL Data Type: uniqueidentifier
61355
61638
  * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
61356
61639
  */
@@ -61451,7 +61734,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61451
61734
  }
61452
61735
  /**
61453
61736
  * * Field Name: Parent
61454
- * * Display Name: Parent
61737
+ * * Display Name: Parent Name
61455
61738
  * * SQL Data Type: nvarchar(255)
61456
61739
  */
61457
61740
  get Parent() {
@@ -61459,7 +61742,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61459
61742
  }
61460
61743
  /**
61461
61744
  * * Field Name: Type
61462
- * * Display Name: Type
61745
+ * * Display Name: Type Name
61463
61746
  * * SQL Data Type: nvarchar(255)
61464
61747
  */
61465
61748
  get Type() {
@@ -61467,7 +61750,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61467
61750
  }
61468
61751
  /**
61469
61752
  * * Field Name: Environment
61470
- * * Display Name: Environment
61753
+ * * Display Name: Environment Name
61471
61754
  * * SQL Data Type: nvarchar(255)
61472
61755
  */
61473
61756
  get Environment() {
@@ -61475,7 +61758,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61475
61758
  }
61476
61759
  /**
61477
61760
  * * Field Name: Project
61478
- * * Display Name: Project
61761
+ * * Display Name: Project Name
61479
61762
  * * SQL Data Type: nvarchar(255)
61480
61763
  */
61481
61764
  get Project() {
@@ -61491,7 +61774,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61491
61774
  }
61492
61775
  /**
61493
61776
  * * Field Name: User
61494
- * * Display Name: User
61777
+ * * Display Name: User Name
61495
61778
  * * SQL Data Type: nvarchar(100)
61496
61779
  */
61497
61780
  get User() {
@@ -61499,7 +61782,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61499
61782
  }
61500
61783
  /**
61501
61784
  * * Field Name: Agent
61502
- * * Display Name: Agent
61785
+ * * Display Name: Agent Name
61503
61786
  * * SQL Data Type: nvarchar(255)
61504
61787
  */
61505
61788
  get Agent() {
@@ -61507,7 +61790,7 @@ let TaskEntity = class TaskEntity extends BaseEntity {
61507
61790
  }
61508
61791
  /**
61509
61792
  * * Field Name: RootParentID
61510
- * * Display Name: Root Parent
61793
+ * * Display Name: Root Parent ID
61511
61794
  * * SQL Data Type: uniqueidentifier
61512
61795
  */
61513
61796
  get RootParentID() {
@@ -66471,7 +66754,7 @@ let RecommendationItemEntity = class RecommendationItemEntity extends BaseEntity
66471
66754
  }
66472
66755
  /**
66473
66756
  * * Field Name: RecommendationID
66474
- * * Display Name: Recommendation ID
66757
+ * * Display Name: Recommendation
66475
66758
  * * SQL Data Type: uniqueidentifier
66476
66759
  * * Related Entity/Foreign Key: Recommendations (vwRecommendations.ID)
66477
66760
  */
@@ -66483,7 +66766,7 @@ let RecommendationItemEntity = class RecommendationItemEntity extends BaseEntity
66483
66766
  }
66484
66767
  /**
66485
66768
  * * Field Name: DestinationEntityID
66486
- * * Display Name: Destination Entity ID
66769
+ * * Display Name: Destination Entity
66487
66770
  * * SQL Data Type: uniqueidentifier
66488
66771
  * * Related Entity/Foreign Key: Entities (vwEntities.ID)
66489
66772
  */
@@ -66495,7 +66778,7 @@ let RecommendationItemEntity = class RecommendationItemEntity extends BaseEntity
66495
66778
  }
66496
66779
  /**
66497
66780
  * * Field Name: DestinationEntityRecordID
66498
- * * Display Name: Destination Entity Record ID
66781
+ * * Display Name: Destination Record ID
66499
66782
  * * SQL Data Type: nvarchar(450)
66500
66783
  * * Description: The record ID of the destination entity
66501
66784
  */
@@ -66864,7 +67147,7 @@ let RecommendationEntity = class RecommendationEntity extends BaseEntity {
66864
67147
  }
66865
67148
  /**
66866
67149
  * * Field Name: SourceEntityRecordID
66867
- * * Display Name: Source Entity Record
67150
+ * * Display Name: Source Entity Record ID
66868
67151
  * * SQL Data Type: nvarchar(MAX)
66869
67152
  * * Description: The record ID of the source entity
66870
67153
  */
@@ -66894,7 +67177,7 @@ let RecommendationEntity = class RecommendationEntity extends BaseEntity {
66894
67177
  }
66895
67178
  /**
66896
67179
  * * Field Name: RecommendationRun
66897
- * * Display Name: Recommendation Run
67180
+ * * Display Name: Run
66898
67181
  * * SQL Data Type: nvarchar(255)
66899
67182
  */
66900
67183
  get RecommendationRun() {
@@ -67375,7 +67658,7 @@ let RecordMergeDeletionLogEntity = class RecordMergeDeletionLogEntity extends Ba
67375
67658
  }
67376
67659
  /**
67377
67660
  * * Field Name: DeletedRecordID
67378
- * * Display Name: Deleted Record
67661
+ * * Display Name: Deleted Record ID
67379
67662
  * * SQL Data Type: nvarchar(750)
67380
67663
  * * Description: Field DeletedRecordID for entity Record Merge Deletion Logs.
67381
67664
  */
@@ -67434,7 +67717,7 @@ let RecordMergeDeletionLogEntity = class RecordMergeDeletionLogEntity extends Ba
67434
67717
  }
67435
67718
  /**
67436
67719
  * * Field Name: RecordMergeLog
67437
- * * Display Name: Merge Log
67720
+ * * Display Name: Record Merge Log
67438
67721
  * * SQL Data Type: nvarchar(450)
67439
67722
  */
67440
67723
  get RecordMergeLog() {
@@ -68915,6 +69198,7 @@ let RoleEntity = class RoleEntity extends BaseEntity {
68915
69198
  }
68916
69199
  /**
68917
69200
  * * Field Name: SQLName
69201
+ * * Display Name: SQL Name
68918
69202
  * * SQL Data Type: nvarchar(250)
68919
69203
  * * Description: The name of the role in the database, this is used for auto-generating permission statements by CodeGen
68920
69204
  */
@@ -70361,7 +70645,7 @@ let TemplateParamEntity = class TemplateParamEntity extends BaseEntity {
70361
70645
  }
70362
70646
  /**
70363
70647
  * * Field Name: TemplateID
70364
- * * Display Name: Template ID
70648
+ * * Display Name: Template
70365
70649
  * * SQL Data Type: uniqueidentifier
70366
70650
  * * Related Entity/Foreign Key: Templates (vwTemplates.ID)
70367
70651
  */
@@ -70478,7 +70762,7 @@ let TemplateParamEntity = class TemplateParamEntity extends BaseEntity {
70478
70762
  }
70479
70763
  /**
70480
70764
  * * Field Name: EntityID
70481
- * * Display Name: Entity ID
70765
+ * * Display Name: Entity
70482
70766
  * * SQL Data Type: uniqueidentifier
70483
70767
  * * Related Entity/Foreign Key: Entities (vwEntities.ID)
70484
70768
  */
@@ -70490,7 +70774,7 @@ let TemplateParamEntity = class TemplateParamEntity extends BaseEntity {
70490
70774
  }
70491
70775
  /**
70492
70776
  * * Field Name: RecordID
70493
- * * Display Name: Record ID
70777
+ * * Display Name: Record
70494
70778
  * * SQL Data Type: nvarchar(2000)
70495
70779
  * * Description: Record ID, used only when Type is Record and a specific hardcoded record ID is desired, this is an uncommon use case, helpful for pulling in static types and metadata in some cases.
70496
70780
  */