@memberjunction/core-entities 2.101.0 → 2.103.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.
@@ -8,12 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.ContentSourceParamSchema = exports.ContentProcessRunSchema = exports.ContentItemSchema = exports.ContentItemTagSchema = exports.ContentItemAttributeSchema = exports.ContentFileTypeSchema = exports.CompanyIntegrationSchema = exports.CompanyIntegrationRunSchema = exports.CompanyIntegrationRunDetailSchema = exports.CompanyIntegrationRunAPILogSchema = exports.CompanyIntegrationRecordMapSchema = exports.CompanySchema = exports.CommunicationRunSchema = exports.CommunicationProviderSchema = exports.CommunicationProviderMessageTypeSchema = exports.CommunicationLogSchema = exports.CommunicationBaseMessageTypeSchema = exports.AuthorizationSchema = exports.AuthorizationRoleSchema = exports.AuditLogSchema = exports.AuditLogTypeSchema = exports.ApplicationSchema = exports.ApplicationSettingSchema = exports.ApplicationEntitySchema = exports.AIResultCacheSchema = exports.AIPromptSchema = exports.AIPromptTypeSchema = exports.AIPromptCategorySchema = exports.AIModelSchema = exports.AIModelTypeSchema = exports.AIModelActionSchema = exports.AIAgentSchema = exports.AIAgentRequestSchema = exports.AIAgentNoteSchema = exports.AIAgentNoteTypeSchema = exports.AIAgentModelSchema = exports.AIAgentLearningCycleSchema = exports.AIAgentActionSchema = exports.AIActionSchema = exports.ActionSchema = exports.ActionResultCodeSchema = exports.ActionParamSchema = exports.ActionLibrarySchema = exports.ActionFilterSchema = exports.ActionExecutionLogSchema = exports.ActionContextSchema = exports.ActionContextTypeSchema = exports.ActionCategorySchema = exports.ActionAuthorizationSchema = exports.loadModule = void 0;
10
10
  exports.IntegrationSchema = exports.IntegrationURLFormatSchema = exports.GeneratedCodeSchema = exports.GeneratedCodeCategorySchema = exports.FileSchema = exports.FileStorageProviderSchema = exports.FileEntityRecordLinkSchema = exports.FileCategorySchema = exports.ExplorerNavigationItemSchema = exports.ErrorLogSchema = exports.EntitySettingSchema = exports.EntityRelationshipSchema = exports.EntityRelationshipDisplayComponentSchema = exports.EntityRecordDocumentSchema = exports.EntityPermissionSchema = exports.EntityFieldSchema = exports.EntityFieldValueSchema = exports.EntityDocumentSchema = exports.EntityDocumentTypeSchema = exports.EntityDocumentSettingSchema = exports.EntityDocumentRunSchema = exports.EntityCommunicationMessageTypeSchema = exports.EntityCommunicationFieldSchema = exports.EntityAIActionSchema = exports.EntityActionSchema = exports.EntityActionParamSchema = exports.EntityActionInvocationSchema = exports.EntityActionInvocationTypeSchema = exports.EntityActionFilterSchema = exports.EntitySchema = exports.EmployeeSchema = exports.EmployeeSkillSchema = exports.EmployeeRoleSchema = exports.EmployeeCompanyIntegrationSchema = exports.DuplicateRunSchema = exports.DuplicateRunDetailSchema = exports.DuplicateRunDetailMatchSchema = exports.DatasetSchema = exports.DatasetItemSchema = exports.DataContextSchema = exports.DataContextItemSchema = exports.DashboardSchema = exports.DashboardCategorySchema = exports.ConversationSchema = exports.ConversationDetailSchema = exports.ContentTypeSchema = exports.ContentTypeAttributeSchema = exports.ContentSourceSchema = exports.ContentSourceTypeSchema = exports.ContentSourceTypeParamSchema = void 0;
11
- exports.RecommendationProviderSchema = exports.RecommendationItemSchema = exports.QueueSchema = exports.QueueTypeSchema = exports.QueueTaskSchema = exports.QueryPermissionSchema = exports.QueryFieldSchema = exports.QueryEntitySchema = exports.QueryCategorySchema = exports.QuerySchema = exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = exports.OutputDeliveryTypeSchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.QueryParameterSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ComponentSchema = exports.ComponentRegistrySchema = exports.ComponentLibraryLinkSchema = exports.ComponentLibrarySchema = exports.ComponentDependencySchema = exports.ArtifactTypeSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelCostSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
- exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = exports.WorkflowEngineSchema = exports.VersionInstallationSchema = exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = exports.UserApplicationEntitySchema = exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = exports.ResourceTypeSchema = exports.ResourcePermissionSchema = exports.ResourceLinkSchema = exports.ReportSchema = exports.ReportSnapshotSchema = exports.ReportCategorySchema = exports.RecordMergeLogSchema = exports.RecordMergeDeletionLogSchema = exports.RecordChangeSchema = exports.RecordChangeReplayRunSchema = exports.RecommendationSchema = exports.RecommendationRunSchema = void 0;
13
- exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = exports.AuthorizationEntity = exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = exports.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = void 0;
14
- exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = exports.EntityDocumentEntity = exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = void 0;
15
- exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.ReportVersionEntity = exports.ReportUserStateEntity = exports.QueryParameterEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = exports.ArtifactTypeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = void 0;
16
- exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = exports.ReportEntity = exports.ReportSnapshotEntity = void 0;
11
+ exports.OutputDeliveryTypeSchema = exports.TaskSchema = exports.TaskTypeSchema = exports.TaskDependencySchema = exports.ReportVersionSchema = exports.ReportUserStateSchema = exports.RecordLinkSchema = exports.QueryParameterSchema = exports.PublicLinkSchema = exports.ProjectSchema = exports.EnvironmentSchema = exports.DashboardUserStateSchema = exports.DashboardUserPreferenceSchema = exports.ConversationArtifactSchema = exports.ConversationArtifactVersionSchema = exports.ConversationArtifactPermissionSchema = exports.ComponentSchema = exports.ComponentRegistrySchema = exports.ComponentLibraryLinkSchema = exports.ComponentLibrarySchema = exports.ComponentDependencySchema = exports.CollectionSchema = exports.CollectionArtifactSchema = exports.ArtifactSchema = exports.ArtifactVersionSchema = exports.ArtifactTypeSchema = exports.AIVendorSchema = exports.AIVendorTypeSchema = exports.AIVendorTypeDefinitionSchema = exports.AIPromptRunSchema = exports.AIPromptModelSchema = exports.AIModelVendorSchema = exports.AIModelPriceUnitTypeSchema = exports.AIModelPriceTypeSchema = exports.AIModelCostSchema = exports.AIConfigurationSchema = exports.AIConfigurationParamSchema = exports.AIAgentTypeSchema = exports.AIAgentStepSchema = exports.AIAgentStepPathSchema = exports.AIAgentRunSchema = exports.AIAgentRunStepSchema = exports.AIAgentRelationshipSchema = exports.AIAgentPromptSchema = exports.AccessControlRuleSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = void 0;
12
+ exports.VectorIndexSchema = exports.VectorDatabaseSchema = exports.UserSchema = exports.UserViewSchema = exports.UserViewRunSchema = exports.UserViewRunDetailSchema = exports.UserViewCategorySchema = exports.UserRoleSchema = exports.UserRecordLogSchema = exports.UserNotificationSchema = exports.UserFavoriteSchema = exports.UserApplicationSchema = exports.UserApplicationEntitySchema = exports.TemplateSchema = exports.TemplateParamSchema = exports.TemplateContentSchema = exports.TemplateContentTypeSchema = exports.TemplateCategorySchema = exports.TagSchema = exports.TaggedItemSchema = exports.SkillSchema = exports.SchemaInfoSchema = exports.ScheduledActionSchema = exports.ScheduledActionParamSchema = exports.RowLevelSecurityFilterSchema = exports.RoleSchema = exports.ResourceTypeSchema = exports.ResourcePermissionSchema = exports.ResourceLinkSchema = exports.ReportSchema = exports.ReportSnapshotSchema = exports.ReportCategorySchema = exports.RecordMergeLogSchema = exports.RecordMergeDeletionLogSchema = exports.RecordChangeSchema = exports.RecordChangeReplayRunSchema = exports.RecommendationSchema = exports.RecommendationRunSchema = exports.RecommendationProviderSchema = exports.RecommendationItemSchema = exports.QueueSchema = exports.QueueTypeSchema = exports.QueueTaskSchema = exports.QueryPermissionSchema = exports.QueryFieldSchema = exports.QueryEntitySchema = exports.QueryCategorySchema = exports.QuerySchema = exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = void 0;
13
+ exports.ContentFileTypeEntity = exports.CompanyIntegrationEntity = exports.CompanyIntegrationRunEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunAPILogEntity = exports.CompanyIntegrationRecordMapEntity = exports.CompanyEntity = exports.CommunicationRunEntity = exports.CommunicationProviderEntity = exports.CommunicationProviderMessageTypeEntity = exports.CommunicationLogEntity = exports.CommunicationBaseMessageTypeEntity = exports.AuthorizationEntity = exports.AuthorizationRoleEntity = exports.AuditLogEntity = exports.AuditLogTypeEntity = exports.ApplicationEntity = exports.ApplicationSettingEntity = exports.ApplicationEntityEntity = exports.AIResultCacheEntity = exports.AIPromptEntity = exports.AIPromptTypeEntity = exports.AIPromptCategoryEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = exports.AIAgentEntity = exports.AIAgentRequestEntity = exports.AIAgentNoteEntity = exports.AIAgentNoteTypeEntity = exports.AIAgentModelEntity = exports.AIAgentLearningCycleEntity = exports.AIAgentActionEntity = exports.AIActionEntity = exports.ActionEntity = exports.ActionResultCodeEntity = exports.ActionParamEntity = exports.ActionLibraryEntity = exports.ActionFilterEntity = exports.ActionExecutionLogEntity = exports.ActionContextEntity = exports.ActionContextTypeEntity = exports.ActionCategoryEntity = exports.ActionAuthorizationEntity = exports.WorkspaceSchema = exports.WorkspaceItemSchema = exports.WorkflowSchema = exports.WorkflowRunSchema = exports.WorkflowEngineSchema = exports.VersionInstallationSchema = void 0;
14
+ exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = exports.EntityRelationshipDisplayComponentEntity = exports.EntityRecordDocumentEntity = exports.EntityPermissionEntity = exports.EntityFieldEntity = exports.EntityFieldValueEntity = exports.EntityDocumentEntity = exports.EntityDocumentTypeEntity = exports.EntityDocumentSettingEntity = exports.EntityDocumentRunEntity = exports.EntityCommunicationMessageTypeEntity = exports.EntityCommunicationFieldEntity = exports.EntityAIActionEntity = exports.EntityActionEntity = exports.EntityActionParamEntity = exports.EntityActionInvocationEntity = exports.EntityActionInvocationTypeEntity = exports.EntityActionFilterEntity = exports.EntityEntity = exports.EmployeeEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.DuplicateRunEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunDetailMatchEntity = exports.DatasetEntity = exports.DatasetItemEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.DashboardEntity = exports.DashboardCategoryEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.ContentTypeEntity = exports.ContentTypeAttributeEntity = exports.ContentSourceEntity = exports.ContentSourceTypeEntity = exports.ContentSourceTypeParamEntity = exports.ContentSourceParamEntity = exports.ContentProcessRunEntity = exports.ContentItemEntity = exports.ContentItemTagEntity = exports.ContentItemAttributeEntity = void 0;
15
+ exports.ReportUserStateEntity = exports.RecordLinkEntity = exports.QueryParameterEntity = exports.PublicLinkEntity = exports.ProjectEntity = exports.EnvironmentEntity = exports.DashboardUserStateEntity = exports.DashboardUserPreferenceEntity = exports.ConversationArtifactEntity = exports.ConversationArtifactVersionEntity = exports.ConversationArtifactPermissionEntity = exports.ComponentEntity = exports.ComponentRegistryEntity = exports.ComponentLibraryLinkEntity = exports.ComponentLibraryEntity = exports.ComponentDependencyEntity = exports.CollectionEntity = exports.CollectionArtifactEntity = exports.ArtifactEntity = exports.ArtifactVersionEntity = exports.ArtifactTypeEntity = exports.AIVendorEntity = exports.AIVendorTypeEntity = exports.AIVendorTypeDefinitionEntity = exports.AIPromptRunEntity = exports.AIPromptModelEntity = exports.AIModelVendorEntity = exports.AIModelPriceUnitTypeEntity = exports.AIModelPriceTypeEntity = exports.AIModelCostEntity = exports.AIConfigurationEntity = exports.AIConfigurationParamEntity = exports.AIAgentTypeEntity = exports.AIAgentStepEntity = exports.AIAgentStepPathEntity = exports.AIAgentRunEntity = exports.AIAgentRunStepEntity = exports.AIAgentRelationshipEntity = exports.AIAgentPromptEntity = exports.AccessControlRuleEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.GeneratedCodeEntity = exports.GeneratedCodeCategoryEntity = exports.FileEntity = void 0;
16
+ exports.UserViewRunDetailEntity = exports.UserViewCategoryEntity = exports.UserRoleEntity = exports.UserRecordLogEntity = exports.UserNotificationEntity = exports.UserFavoriteEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.TemplateEntity = exports.TemplateParamEntity = exports.TemplateContentEntity = exports.TemplateContentTypeEntity = exports.TemplateCategoryEntity = exports.TagEntity = exports.TaggedItemEntity = exports.SkillEntity = exports.SchemaInfoEntity = exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = exports.ResourcePermissionEntity = exports.ResourceLinkEntity = exports.ReportEntity = exports.ReportSnapshotEntity = exports.ReportCategoryEntity = exports.RecordMergeLogEntity = exports.RecordMergeDeletionLogEntity = exports.RecordChangeEntity = exports.RecordChangeReplayRunEntity = exports.RecommendationEntity = exports.RecommendationRunEntity = exports.RecommendationProviderEntity = exports.RecommendationItemEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.QueueTaskEntity = exports.QueryPermissionEntity = exports.QueryFieldEntity = exports.QueryEntityEntity = exports.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.TaskEntity = exports.TaskTypeEntity = exports.TaskDependencyEntity = exports.ReportVersionEntity = void 0;
17
+ exports.WorkspaceEntity = exports.WorkspaceItemEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.WorkflowEngineEntity = exports.VersionInstallationEntity = exports.VectorIndexEntity = exports.VectorDatabaseEntity = exports.UserEntity = exports.UserViewEntity = exports.UserViewRunEntity = void 0;
17
18
  const core_1 = require("@memberjunction/core");
18
19
  const global_1 = require("@memberjunction/global");
19
20
  const zod_1 = require("zod");
@@ -3613,6 +3614,12 @@ exports.ConversationDetailSchema = zod_1.z.object({
3613
3614
  * * Display Name: Completion Time
3614
3615
  * * SQL Data Type: bigint
3615
3616
  * * Description: Duration in milliseconds representing how long the AI response processing took to complete for this conversation detail.`),
3617
+ IsPinned: zod_1.z.boolean().describe(`
3618
+ * * Field Name: IsPinned
3619
+ * * Display Name: Is Pinned
3620
+ * * SQL Data Type: bit
3621
+ * * Default Value: 0
3622
+ * * Description: Indicates if this message is pinned within the conversation for easy reference`),
3616
3623
  Conversation: zod_1.z.string().nullable().describe(`
3617
3624
  * * Field Name: Conversation
3618
3625
  * * Display Name: Conversation
@@ -3700,6 +3707,23 @@ exports.ConversationSchema = zod_1.z.object({
3700
3707
  * * Processing
3701
3708
  * * Available
3702
3709
  * * Description: Tracks the processing status of the conversation: Available, Processing`),
3710
+ EnvironmentID: zod_1.z.string().describe(`
3711
+ * * Field Name: EnvironmentID
3712
+ * * Display Name: Environment ID
3713
+ * * SQL Data Type: uniqueidentifier
3714
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
3715
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09`),
3716
+ ProjectID: zod_1.z.string().nullable().describe(`
3717
+ * * Field Name: ProjectID
3718
+ * * Display Name: Project ID
3719
+ * * SQL Data Type: uniqueidentifier
3720
+ * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)`),
3721
+ IsPinned: zod_1.z.boolean().describe(`
3722
+ * * Field Name: IsPinned
3723
+ * * Display Name: Is Pinned
3724
+ * * SQL Data Type: bit
3725
+ * * Default Value: 0
3726
+ * * Description: Indicates if this conversation is pinned to the top of lists`),
3703
3727
  User: zod_1.z.string().describe(`
3704
3728
  * * Field Name: User
3705
3729
  * * Display Name: User
@@ -3712,6 +3736,14 @@ exports.ConversationSchema = zod_1.z.object({
3712
3736
  * * Field Name: DataContext
3713
3737
  * * Display Name: Data Context
3714
3738
  * * SQL Data Type: nvarchar(255)`),
3739
+ Environment: zod_1.z.string().describe(`
3740
+ * * Field Name: Environment
3741
+ * * Display Name: Environment
3742
+ * * SQL Data Type: nvarchar(255)`),
3743
+ Project: zod_1.z.string().nullable().describe(`
3744
+ * * Field Name: Project
3745
+ * * Display Name: Project
3746
+ * * SQL Data Type: nvarchar(255)`),
3715
3747
  });
3716
3748
  /**
3717
3749
  * zod schema definition for the entity Dashboard Categories
@@ -3843,6 +3875,12 @@ exports.DashboardSchema = zod_1.z.object({
3843
3875
  * * Display Name: Code
3844
3876
  * * SQL Data Type: nvarchar(255)
3845
3877
  * * Description: Used to identify the dashboard for code-base dashboards. Allows reuse of the same DriverClass for multiple dashboards that can be rendered differently.`),
3878
+ EnvironmentID: zod_1.z.string().describe(`
3879
+ * * Field Name: EnvironmentID
3880
+ * * Display Name: Environment ID
3881
+ * * SQL Data Type: uniqueidentifier
3882
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
3883
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09`),
3846
3884
  User: zod_1.z.string().describe(`
3847
3885
  * * Field Name: User
3848
3886
  * * Display Name: User
@@ -3855,6 +3893,10 @@ exports.DashboardSchema = zod_1.z.object({
3855
3893
  * * Field Name: Application
3856
3894
  * * Display Name: Application
3857
3895
  * * SQL Data Type: nvarchar(100)`),
3896
+ Environment: zod_1.z.string().describe(`
3897
+ * * Field Name: Environment
3898
+ * * Display Name: Environment
3899
+ * * SQL Data Type: nvarchar(255)`),
3858
3900
  });
3859
3901
  /**
3860
3902
  * zod schema definition for the entity Data Context Items
@@ -7173,6 +7215,99 @@ exports.ListSchema = zod_1.z.object({
7173
7215
  * * Display Name: Company Integration
7174
7216
  * * SQL Data Type: nvarchar(255)`),
7175
7217
  });
7218
+ /**
7219
+ * zod schema definition for the entity MJ: Access Control Rules
7220
+ */
7221
+ exports.AccessControlRuleSchema = zod_1.z.object({
7222
+ ID: zod_1.z.string().describe(`
7223
+ * * Field Name: ID
7224
+ * * Display Name: ID
7225
+ * * SQL Data Type: uniqueidentifier
7226
+ * * Default Value: newsequentialid()`),
7227
+ EntityID: zod_1.z.string().describe(`
7228
+ * * Field Name: EntityID
7229
+ * * Display Name: Entity ID
7230
+ * * SQL Data Type: uniqueidentifier
7231
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)`),
7232
+ RecordID: zod_1.z.string().describe(`
7233
+ * * Field Name: RecordID
7234
+ * * Display Name: Record ID
7235
+ * * SQL Data Type: nvarchar(500)
7236
+ * * Description: Primary key value(s) of the record being protected - scalar for simple PKs or JSON for composite PKs`),
7237
+ GranteeType: zod_1.z.union([zod_1.z.literal('User'), zod_1.z.literal('Role'), zod_1.z.literal('Everyone'), zod_1.z.literal('Public')]).describe(`
7238
+ * * Field Name: GranteeType
7239
+ * * Display Name: Grantee Type
7240
+ * * SQL Data Type: nvarchar(50)
7241
+ * * Value List Type: List
7242
+ * * Possible Values
7243
+ * * User
7244
+ * * Role
7245
+ * * Everyone
7246
+ * * Public
7247
+ * * Description: Type of grantee receiving permission (User, Role, Everyone, Public). "Everyone" means all authenticated users whereas "Public" means any authenticated OR anonymous user.`),
7248
+ GranteeID: zod_1.z.string().nullable().describe(`
7249
+ * * Field Name: GranteeID
7250
+ * * Display Name: Grantee ID
7251
+ * * SQL Data Type: uniqueidentifier`),
7252
+ CanRead: zod_1.z.boolean().describe(`
7253
+ * * Field Name: CanRead
7254
+ * * Display Name: Can Read
7255
+ * * SQL Data Type: bit
7256
+ * * Default Value: 0
7257
+ * * Description: Permission to read/view the record`),
7258
+ CanCreate: zod_1.z.boolean().describe(`
7259
+ * * Field Name: CanCreate
7260
+ * * Display Name: Can Create
7261
+ * * SQL Data Type: bit
7262
+ * * Default Value: 0
7263
+ * * Description: Permission to create new related records`),
7264
+ CanUpdate: zod_1.z.boolean().describe(`
7265
+ * * Field Name: CanUpdate
7266
+ * * Display Name: Can Update
7267
+ * * SQL Data Type: bit
7268
+ * * Default Value: 0
7269
+ * * Description: Permission to update/modify the record`),
7270
+ CanDelete: zod_1.z.boolean().describe(`
7271
+ * * Field Name: CanDelete
7272
+ * * Display Name: Can Delete
7273
+ * * SQL Data Type: bit
7274
+ * * Default Value: 0
7275
+ * * Description: Permission to delete the record`),
7276
+ CanShare: zod_1.z.boolean().describe(`
7277
+ * * Field Name: CanShare
7278
+ * * Display Name: Can Share
7279
+ * * SQL Data Type: bit
7280
+ * * Default Value: 0
7281
+ * * Description: Permission to share/grant permissions to other users`),
7282
+ ExpiresAt: zod_1.z.date().nullable().describe(`
7283
+ * * Field Name: ExpiresAt
7284
+ * * Display Name: Expires At
7285
+ * * SQL Data Type: datetimeoffset
7286
+ * * Description: Optional expiration date/time for this access rule`),
7287
+ GrantedByUserID: zod_1.z.string().describe(`
7288
+ * * Field Name: GrantedByUserID
7289
+ * * Display Name: Granted By User ID
7290
+ * * SQL Data Type: uniqueidentifier
7291
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)`),
7292
+ __mj_CreatedAt: zod_1.z.date().describe(`
7293
+ * * Field Name: __mj_CreatedAt
7294
+ * * Display Name: Created At
7295
+ * * SQL Data Type: datetimeoffset
7296
+ * * Default Value: getutcdate()`),
7297
+ __mj_UpdatedAt: zod_1.z.date().describe(`
7298
+ * * Field Name: __mj_UpdatedAt
7299
+ * * Display Name: Updated At
7300
+ * * SQL Data Type: datetimeoffset
7301
+ * * Default Value: getutcdate()`),
7302
+ Entity: zod_1.z.string().describe(`
7303
+ * * Field Name: Entity
7304
+ * * Display Name: Entity
7305
+ * * SQL Data Type: nvarchar(255)`),
7306
+ GrantedByUser: zod_1.z.string().describe(`
7307
+ * * Field Name: GrantedByUser
7308
+ * * Display Name: Granted By User
7309
+ * * SQL Data Type: nvarchar(100)`),
7310
+ });
7176
7311
  /**
7177
7312
  * zod schema definition for the entity MJ: AI Agent Prompts
7178
7313
  */
@@ -9148,6 +9283,235 @@ exports.ArtifactTypeSchema = zod_1.z.object({
9148
9283
  * * SQL Data Type: datetimeoffset
9149
9284
  * * Default Value: getutcdate()`),
9150
9285
  });
9286
+ /**
9287
+ * zod schema definition for the entity MJ: Artifact Versions
9288
+ */
9289
+ exports.ArtifactVersionSchema = zod_1.z.object({
9290
+ ID: zod_1.z.string().describe(`
9291
+ * * Field Name: ID
9292
+ * * Display Name: ID
9293
+ * * SQL Data Type: uniqueidentifier
9294
+ * * Default Value: newsequentialid()`),
9295
+ ArtifactID: zod_1.z.string().describe(`
9296
+ * * Field Name: ArtifactID
9297
+ * * Display Name: Artifact ID
9298
+ * * SQL Data Type: uniqueidentifier
9299
+ * * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)`),
9300
+ VersionNumber: zod_1.z.number().describe(`
9301
+ * * Field Name: VersionNumber
9302
+ * * Display Name: Version Number
9303
+ * * SQL Data Type: int
9304
+ * * Description: Sequential version number for this artifact`),
9305
+ Content: zod_1.z.string().nullable().describe(`
9306
+ * * Field Name: Content
9307
+ * * Display Name: Content
9308
+ * * SQL Data Type: nvarchar(MAX)
9309
+ * * Description: The content of the artifact at this version`),
9310
+ Configuration: zod_1.z.string().nullable().describe(`
9311
+ * * Field Name: Configuration
9312
+ * * Display Name: Configuration
9313
+ * * SQL Data Type: nvarchar(MAX)
9314
+ * * Description: JSON configuration for this version`),
9315
+ Comments: zod_1.z.string().nullable().describe(`
9316
+ * * Field Name: Comments
9317
+ * * Display Name: Comments
9318
+ * * SQL Data Type: nvarchar(MAX)
9319
+ * * Description: User comments specific to this version`),
9320
+ UserID: zod_1.z.string().describe(`
9321
+ * * Field Name: UserID
9322
+ * * Display Name: User ID
9323
+ * * SQL Data Type: uniqueidentifier
9324
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)`),
9325
+ __mj_CreatedAt: zod_1.z.date().describe(`
9326
+ * * Field Name: __mj_CreatedAt
9327
+ * * Display Name: Created At
9328
+ * * SQL Data Type: datetimeoffset
9329
+ * * Default Value: getutcdate()`),
9330
+ __mj_UpdatedAt: zod_1.z.date().describe(`
9331
+ * * Field Name: __mj_UpdatedAt
9332
+ * * Display Name: Updated At
9333
+ * * SQL Data Type: datetimeoffset
9334
+ * * Default Value: getutcdate()`),
9335
+ Artifact: zod_1.z.string().describe(`
9336
+ * * Field Name: Artifact
9337
+ * * Display Name: Artifact
9338
+ * * SQL Data Type: nvarchar(255)`),
9339
+ User: zod_1.z.string().describe(`
9340
+ * * Field Name: User
9341
+ * * Display Name: User
9342
+ * * SQL Data Type: nvarchar(100)`),
9343
+ });
9344
+ /**
9345
+ * zod schema definition for the entity MJ: Artifacts
9346
+ */
9347
+ exports.ArtifactSchema = zod_1.z.object({
9348
+ ID: zod_1.z.string().describe(`
9349
+ * * Field Name: ID
9350
+ * * Display Name: ID
9351
+ * * SQL Data Type: uniqueidentifier
9352
+ * * Default Value: newsequentialid()`),
9353
+ EnvironmentID: zod_1.z.string().describe(`
9354
+ * * Field Name: EnvironmentID
9355
+ * * Display Name: Environment ID
9356
+ * * SQL Data Type: uniqueidentifier
9357
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
9358
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09`),
9359
+ Name: zod_1.z.string().describe(`
9360
+ * * Field Name: Name
9361
+ * * Display Name: Name
9362
+ * * SQL Data Type: nvarchar(255)
9363
+ * * Description: Display name for the artifact`),
9364
+ Description: zod_1.z.string().nullable().describe(`
9365
+ * * Field Name: Description
9366
+ * * Display Name: Description
9367
+ * * SQL Data Type: nvarchar(MAX)
9368
+ * * Description: Detailed description of the artifact contents and purpose`),
9369
+ TypeID: zod_1.z.string().describe(`
9370
+ * * Field Name: TypeID
9371
+ * * Display Name: Type ID
9372
+ * * SQL Data Type: uniqueidentifier
9373
+ * * Related Entity/Foreign Key: MJ: Artifact Types (vwArtifactTypes.ID)`),
9374
+ Comments: zod_1.z.string().nullable().describe(`
9375
+ * * Field Name: Comments
9376
+ * * Display Name: Comments
9377
+ * * SQL Data Type: nvarchar(MAX)
9378
+ * * Description: User comments about the artifact`),
9379
+ UserID: zod_1.z.string().describe(`
9380
+ * * Field Name: UserID
9381
+ * * Display Name: User ID
9382
+ * * SQL Data Type: uniqueidentifier
9383
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)`),
9384
+ __mj_CreatedAt: zod_1.z.date().describe(`
9385
+ * * Field Name: __mj_CreatedAt
9386
+ * * Display Name: Created At
9387
+ * * SQL Data Type: datetimeoffset
9388
+ * * Default Value: getutcdate()`),
9389
+ __mj_UpdatedAt: zod_1.z.date().describe(`
9390
+ * * Field Name: __mj_UpdatedAt
9391
+ * * Display Name: Updated At
9392
+ * * SQL Data Type: datetimeoffset
9393
+ * * Default Value: getutcdate()`),
9394
+ Environment: zod_1.z.string().describe(`
9395
+ * * Field Name: Environment
9396
+ * * Display Name: Environment
9397
+ * * SQL Data Type: nvarchar(255)`),
9398
+ Type: zod_1.z.string().describe(`
9399
+ * * Field Name: Type
9400
+ * * Display Name: Type
9401
+ * * SQL Data Type: nvarchar(100)`),
9402
+ User: zod_1.z.string().describe(`
9403
+ * * Field Name: User
9404
+ * * Display Name: User
9405
+ * * SQL Data Type: nvarchar(100)`),
9406
+ });
9407
+ /**
9408
+ * zod schema definition for the entity MJ: Collection Artifacts
9409
+ */
9410
+ exports.CollectionArtifactSchema = zod_1.z.object({
9411
+ ID: zod_1.z.string().describe(`
9412
+ * * Field Name: ID
9413
+ * * Display Name: ID
9414
+ * * SQL Data Type: uniqueidentifier
9415
+ * * Default Value: newsequentialid()`),
9416
+ CollectionID: zod_1.z.string().describe(`
9417
+ * * Field Name: CollectionID
9418
+ * * Display Name: Collection ID
9419
+ * * SQL Data Type: uniqueidentifier
9420
+ * * Related Entity/Foreign Key: MJ: Collections (vwCollections.ID)`),
9421
+ ArtifactID: zod_1.z.string().describe(`
9422
+ * * Field Name: ArtifactID
9423
+ * * Display Name: Artifact ID
9424
+ * * SQL Data Type: uniqueidentifier
9425
+ * * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)`),
9426
+ Sequence: zod_1.z.number().describe(`
9427
+ * * Field Name: Sequence
9428
+ * * Display Name: Sequence
9429
+ * * SQL Data Type: int
9430
+ * * Default Value: 0
9431
+ * * Description: Sequence number for ordering artifacts within a collection`),
9432
+ __mj_CreatedAt: zod_1.z.date().describe(`
9433
+ * * Field Name: __mj_CreatedAt
9434
+ * * Display Name: Created At
9435
+ * * SQL Data Type: datetimeoffset
9436
+ * * Default Value: getutcdate()`),
9437
+ __mj_UpdatedAt: zod_1.z.date().describe(`
9438
+ * * Field Name: __mj_UpdatedAt
9439
+ * * Display Name: Updated At
9440
+ * * SQL Data Type: datetimeoffset
9441
+ * * Default Value: getutcdate()`),
9442
+ Collection: zod_1.z.string().describe(`
9443
+ * * Field Name: Collection
9444
+ * * Display Name: Collection
9445
+ * * SQL Data Type: nvarchar(255)`),
9446
+ Artifact: zod_1.z.string().describe(`
9447
+ * * Field Name: Artifact
9448
+ * * Display Name: Artifact
9449
+ * * SQL Data Type: nvarchar(255)`),
9450
+ });
9451
+ /**
9452
+ * zod schema definition for the entity MJ: Collections
9453
+ */
9454
+ exports.CollectionSchema = zod_1.z.object({
9455
+ ID: zod_1.z.string().describe(`
9456
+ * * Field Name: ID
9457
+ * * Display Name: ID
9458
+ * * SQL Data Type: uniqueidentifier
9459
+ * * Default Value: newsequentialid()`),
9460
+ EnvironmentID: zod_1.z.string().describe(`
9461
+ * * Field Name: EnvironmentID
9462
+ * * Display Name: Environment ID
9463
+ * * SQL Data Type: uniqueidentifier
9464
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
9465
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09`),
9466
+ ParentID: zod_1.z.string().nullable().describe(`
9467
+ * * Field Name: ParentID
9468
+ * * Display Name: Parent ID
9469
+ * * SQL Data Type: uniqueidentifier
9470
+ * * Related Entity/Foreign Key: MJ: Collections (vwCollections.ID)`),
9471
+ Name: zod_1.z.string().describe(`
9472
+ * * Field Name: Name
9473
+ * * Display Name: Name
9474
+ * * SQL Data Type: nvarchar(255)
9475
+ * * Description: Display name for the collection`),
9476
+ Description: zod_1.z.string().nullable().describe(`
9477
+ * * Field Name: Description
9478
+ * * Display Name: Description
9479
+ * * SQL Data Type: nvarchar(MAX)
9480
+ * * Description: Detailed description of the collection purpose`),
9481
+ Icon: zod_1.z.string().nullable().describe(`
9482
+ * * Field Name: Icon
9483
+ * * Display Name: Icon
9484
+ * * SQL Data Type: nvarchar(50)
9485
+ * * Description: Font Awesome icon class for UI display`),
9486
+ Color: zod_1.z.string().nullable().describe(`
9487
+ * * Field Name: Color
9488
+ * * Display Name: Color
9489
+ * * SQL Data Type: nvarchar(7)
9490
+ * * Description: Hex color code for UI display (#RRGGBB format)`),
9491
+ Sequence: zod_1.z.number().nullable().describe(`
9492
+ * * Field Name: Sequence
9493
+ * * Display Name: Sequence
9494
+ * * SQL Data Type: int
9495
+ * * Description: Display sequence for ordering collections in UI`),
9496
+ __mj_CreatedAt: zod_1.z.date().describe(`
9497
+ * * Field Name: __mj_CreatedAt
9498
+ * * Display Name: Created At
9499
+ * * SQL Data Type: datetimeoffset
9500
+ * * Default Value: getutcdate()`),
9501
+ __mj_UpdatedAt: zod_1.z.date().describe(`
9502
+ * * Field Name: __mj_UpdatedAt
9503
+ * * Display Name: Updated At
9504
+ * * SQL Data Type: datetimeoffset
9505
+ * * Default Value: getutcdate()`),
9506
+ Environment: zod_1.z.string().describe(`
9507
+ * * Field Name: Environment
9508
+ * * Display Name: Environment
9509
+ * * SQL Data Type: nvarchar(255)`),
9510
+ Parent: zod_1.z.string().nullable().describe(`
9511
+ * * Field Name: Parent
9512
+ * * Display Name: Parent
9513
+ * * SQL Data Type: nvarchar(255)`),
9514
+ });
9151
9515
  /**
9152
9516
  * zod schema definition for the entity MJ: Component Dependencies
9153
9517
  */
@@ -9846,6 +10210,187 @@ exports.DashboardUserStateSchema = zod_1.z.object({
9846
10210
  * * Display Name: User
9847
10211
  * * SQL Data Type: nvarchar(100)`),
9848
10212
  });
10213
+ /**
10214
+ * zod schema definition for the entity MJ: Environments
10215
+ */
10216
+ exports.EnvironmentSchema = zod_1.z.object({
10217
+ ID: zod_1.z.string().describe(`
10218
+ * * Field Name: ID
10219
+ * * Display Name: ID
10220
+ * * SQL Data Type: uniqueidentifier
10221
+ * * Default Value: newsequentialid()`),
10222
+ Name: zod_1.z.string().describe(`
10223
+ * * Field Name: Name
10224
+ * * Display Name: Name
10225
+ * * SQL Data Type: nvarchar(255)
10226
+ * * Description: Display name for the environment`),
10227
+ Description: zod_1.z.string().nullable().describe(`
10228
+ * * Field Name: Description
10229
+ * * Display Name: Description
10230
+ * * SQL Data Type: nvarchar(MAX)
10231
+ * * Description: Detailed description of the environment purpose and scope`),
10232
+ IsDefault: zod_1.z.boolean().describe(`
10233
+ * * Field Name: IsDefault
10234
+ * * Display Name: Is Default
10235
+ * * SQL Data Type: bit
10236
+ * * Default Value: 0
10237
+ * * Description: Indicates if this is the default environment for the organization`),
10238
+ Settings: zod_1.z.string().nullable().describe(`
10239
+ * * Field Name: Settings
10240
+ * * Display Name: Settings
10241
+ * * SQL Data Type: nvarchar(MAX)
10242
+ * * Description: JSON configuration for environment-specific settings and features`),
10243
+ __mj_CreatedAt: zod_1.z.date().describe(`
10244
+ * * Field Name: __mj_CreatedAt
10245
+ * * Display Name: Created At
10246
+ * * SQL Data Type: datetimeoffset
10247
+ * * Default Value: getutcdate()`),
10248
+ __mj_UpdatedAt: zod_1.z.date().describe(`
10249
+ * * Field Name: __mj_UpdatedAt
10250
+ * * Display Name: Updated At
10251
+ * * SQL Data Type: datetimeoffset
10252
+ * * Default Value: getutcdate()`),
10253
+ });
10254
+ /**
10255
+ * zod schema definition for the entity MJ: Projects
10256
+ */
10257
+ exports.ProjectSchema = zod_1.z.object({
10258
+ ID: zod_1.z.string().describe(`
10259
+ * * Field Name: ID
10260
+ * * Display Name: ID
10261
+ * * SQL Data Type: uniqueidentifier
10262
+ * * Default Value: newsequentialid()`),
10263
+ EnvironmentID: zod_1.z.string().describe(`
10264
+ * * Field Name: EnvironmentID
10265
+ * * Display Name: Environment ID
10266
+ * * SQL Data Type: uniqueidentifier
10267
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
10268
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09`),
10269
+ ParentID: zod_1.z.string().nullable().describe(`
10270
+ * * Field Name: ParentID
10271
+ * * Display Name: Parent ID
10272
+ * * SQL Data Type: uniqueidentifier
10273
+ * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)`),
10274
+ Name: zod_1.z.string().describe(`
10275
+ * * Field Name: Name
10276
+ * * Display Name: Name
10277
+ * * SQL Data Type: nvarchar(255)
10278
+ * * Description: Display name for the project`),
10279
+ Description: zod_1.z.string().nullable().describe(`
10280
+ * * Field Name: Description
10281
+ * * Display Name: Description
10282
+ * * SQL Data Type: nvarchar(MAX)
10283
+ * * Description: Detailed description of the project goals and scope`),
10284
+ Color: zod_1.z.string().nullable().describe(`
10285
+ * * Field Name: Color
10286
+ * * Display Name: Color
10287
+ * * SQL Data Type: nvarchar(7)
10288
+ * * Description: Hex color code for project badges in UI (#RRGGBB format)`),
10289
+ Icon: zod_1.z.string().nullable().describe(`
10290
+ * * Field Name: Icon
10291
+ * * Display Name: Icon
10292
+ * * SQL Data Type: nvarchar(50)
10293
+ * * Description: Font Awesome icon class for UI display`),
10294
+ IsArchived: zod_1.z.boolean().describe(`
10295
+ * * Field Name: IsArchived
10296
+ * * Display Name: Is Archived
10297
+ * * SQL Data Type: bit
10298
+ * * Default Value: 0
10299
+ * * Description: Indicates if this project is archived and should be hidden from active lists`),
10300
+ __mj_CreatedAt: zod_1.z.date().describe(`
10301
+ * * Field Name: __mj_CreatedAt
10302
+ * * Display Name: Created At
10303
+ * * SQL Data Type: datetimeoffset
10304
+ * * Default Value: getutcdate()`),
10305
+ __mj_UpdatedAt: zod_1.z.date().describe(`
10306
+ * * Field Name: __mj_UpdatedAt
10307
+ * * Display Name: Updated At
10308
+ * * SQL Data Type: datetimeoffset
10309
+ * * Default Value: getutcdate()`),
10310
+ Environment: zod_1.z.string().describe(`
10311
+ * * Field Name: Environment
10312
+ * * Display Name: Environment
10313
+ * * SQL Data Type: nvarchar(255)`),
10314
+ Parent: zod_1.z.string().nullable().describe(`
10315
+ * * Field Name: Parent
10316
+ * * Display Name: Parent
10317
+ * * SQL Data Type: nvarchar(255)`),
10318
+ });
10319
+ /**
10320
+ * zod schema definition for the entity MJ: Public Links
10321
+ */
10322
+ exports.PublicLinkSchema = zod_1.z.object({
10323
+ ID: zod_1.z.string().describe(`
10324
+ * * Field Name: ID
10325
+ * * Display Name: ID
10326
+ * * SQL Data Type: uniqueidentifier
10327
+ * * Default Value: newsequentialid()`),
10328
+ ResourceType: zod_1.z.union([zod_1.z.literal('Artifact'), zod_1.z.literal('Conversation'), zod_1.z.literal('Collection')]).describe(`
10329
+ * * Field Name: ResourceType
10330
+ * * Display Name: Resource Type
10331
+ * * SQL Data Type: nvarchar(50)
10332
+ * * Value List Type: List
10333
+ * * Possible Values
10334
+ * * Artifact
10335
+ * * Conversation
10336
+ * * Collection
10337
+ * * Description: Type of resource being shared (Artifact, Conversation, Collection)`),
10338
+ ResourceID: zod_1.z.string().describe(`
10339
+ * * Field Name: ResourceID
10340
+ * * Display Name: Resource ID
10341
+ * * SQL Data Type: uniqueidentifier`),
10342
+ Token: zod_1.z.string().describe(`
10343
+ * * Field Name: Token
10344
+ * * Display Name: Token
10345
+ * * SQL Data Type: nvarchar(255)
10346
+ * * Description: Unique token for accessing the shared resource via URL`),
10347
+ PasswordHash: zod_1.z.string().nullable().describe(`
10348
+ * * Field Name: PasswordHash
10349
+ * * Display Name: Password Hash
10350
+ * * SQL Data Type: nvarchar(255)
10351
+ * * Description: SHA256 hash of optional password for additional security`),
10352
+ ExpiresAt: zod_1.z.date().nullable().describe(`
10353
+ * * Field Name: ExpiresAt
10354
+ * * Display Name: Expires At
10355
+ * * SQL Data Type: datetimeoffset
10356
+ * * Description: Optional expiration date/time for this public link`),
10357
+ MaxViews: zod_1.z.number().nullable().describe(`
10358
+ * * Field Name: MaxViews
10359
+ * * Display Name: Max Views
10360
+ * * SQL Data Type: int
10361
+ * * Description: Maximum number of times this link can be viewed`),
10362
+ CurrentViews: zod_1.z.number().describe(`
10363
+ * * Field Name: CurrentViews
10364
+ * * Display Name: Current Views
10365
+ * * SQL Data Type: int
10366
+ * * Default Value: 0
10367
+ * * Description: Current count of how many times this link has been viewed`),
10368
+ UserID: zod_1.z.string().describe(`
10369
+ * * Field Name: UserID
10370
+ * * Display Name: User ID
10371
+ * * SQL Data Type: uniqueidentifier
10372
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)`),
10373
+ IsActive: zod_1.z.boolean().describe(`
10374
+ * * Field Name: IsActive
10375
+ * * Display Name: Is Active
10376
+ * * SQL Data Type: bit
10377
+ * * Default Value: 1
10378
+ * * Description: Indicates if this link is currently active and accessible`),
10379
+ __mj_CreatedAt: zod_1.z.date().describe(`
10380
+ * * Field Name: __mj_CreatedAt
10381
+ * * Display Name: Created At
10382
+ * * SQL Data Type: datetimeoffset
10383
+ * * Default Value: getutcdate()`),
10384
+ __mj_UpdatedAt: zod_1.z.date().describe(`
10385
+ * * Field Name: __mj_UpdatedAt
10386
+ * * Display Name: Updated At
10387
+ * * SQL Data Type: datetimeoffset
10388
+ * * Default Value: getutcdate()`),
10389
+ User: zod_1.z.string().describe(`
10390
+ * * Field Name: User
10391
+ * * Display Name: User
10392
+ * * SQL Data Type: nvarchar(100)`),
10393
+ });
9849
10394
  /**
9850
10395
  * zod schema definition for the entity MJ: Query Parameters
9851
10396
  */
@@ -9933,6 +10478,69 @@ exports.QueryParameterSchema = zod_1.z.object({
9933
10478
  * * Display Name: Query
9934
10479
  * * SQL Data Type: nvarchar(255)`),
9935
10480
  });
10481
+ /**
10482
+ * zod schema definition for the entity MJ: Record Links
10483
+ */
10484
+ exports.RecordLinkSchema = zod_1.z.object({
10485
+ ID: zod_1.z.string().describe(`
10486
+ * * Field Name: ID
10487
+ * * Display Name: ID
10488
+ * * SQL Data Type: uniqueidentifier
10489
+ * * Default Value: newsequentialid()`),
10490
+ SourceEntityID: zod_1.z.string().describe(`
10491
+ * * Field Name: SourceEntityID
10492
+ * * Display Name: Source Entity ID
10493
+ * * SQL Data Type: uniqueidentifier
10494
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)`),
10495
+ SourceRecordID: zod_1.z.string().describe(`
10496
+ * * Field Name: SourceRecordID
10497
+ * * Display Name: Source Record ID
10498
+ * * SQL Data Type: nvarchar(500)
10499
+ * * Description: Primary key value(s) of the source record - scalar for simple PKs or JSON KeyValuePair array for composite PKs`),
10500
+ TargetEntityID: zod_1.z.string().describe(`
10501
+ * * Field Name: TargetEntityID
10502
+ * * Display Name: Target Entity ID
10503
+ * * SQL Data Type: uniqueidentifier
10504
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)`),
10505
+ TargetRecordID: zod_1.z.string().describe(`
10506
+ * * Field Name: TargetRecordID
10507
+ * * Display Name: Target Record ID
10508
+ * * SQL Data Type: nvarchar(500)
10509
+ * * Description: Primary key value(s) of the target record - scalar for simple PKs or JSON KeyValuePair array for composite PKs`),
10510
+ LinkType: zod_1.z.string().nullable().describe(`
10511
+ * * Field Name: LinkType
10512
+ * * Display Name: Link Type
10513
+ * * SQL Data Type: nvarchar(50)
10514
+ * * Description: Application-specific relationship type describing how the records are related`),
10515
+ Sequence: zod_1.z.number().nullable().describe(`
10516
+ * * Field Name: Sequence
10517
+ * * Display Name: Sequence
10518
+ * * SQL Data Type: int
10519
+ * * Description: Display sequence for ordering linked records in UI`),
10520
+ Metadata: zod_1.z.string().nullable().describe(`
10521
+ * * Field Name: Metadata
10522
+ * * Display Name: Metadata
10523
+ * * SQL Data Type: nvarchar(MAX)
10524
+ * * Description: JSON field for storing additional link-specific metadata`),
10525
+ __mj_CreatedAt: zod_1.z.date().describe(`
10526
+ * * Field Name: __mj_CreatedAt
10527
+ * * Display Name: Created At
10528
+ * * SQL Data Type: datetimeoffset
10529
+ * * Default Value: getutcdate()`),
10530
+ __mj_UpdatedAt: zod_1.z.date().describe(`
10531
+ * * Field Name: __mj_UpdatedAt
10532
+ * * Display Name: Updated At
10533
+ * * SQL Data Type: datetimeoffset
10534
+ * * Default Value: getutcdate()`),
10535
+ SourceEntity: zod_1.z.string().describe(`
10536
+ * * Field Name: SourceEntity
10537
+ * * Display Name: Source Entity
10538
+ * * SQL Data Type: nvarchar(255)`),
10539
+ TargetEntity: zod_1.z.string().describe(`
10540
+ * * Field Name: TargetEntity
10541
+ * * Display Name: Target Entity
10542
+ * * SQL Data Type: nvarchar(255)`),
10543
+ });
9936
10544
  /**
9937
10545
  * zod schema definition for the entity MJ: Report User States
9938
10546
  */
@@ -10031,6 +10639,211 @@ exports.ReportVersionSchema = zod_1.z.object({
10031
10639
  * * Display Name: Report
10032
10640
  * * SQL Data Type: nvarchar(255)`),
10033
10641
  });
10642
+ /**
10643
+ * zod schema definition for the entity MJ: Task Dependencies
10644
+ */
10645
+ exports.TaskDependencySchema = zod_1.z.object({
10646
+ ID: zod_1.z.string().describe(`
10647
+ * * Field Name: ID
10648
+ * * Display Name: ID
10649
+ * * SQL Data Type: uniqueidentifier
10650
+ * * Default Value: newsequentialid()`),
10651
+ TaskID: zod_1.z.string().describe(`
10652
+ * * Field Name: TaskID
10653
+ * * Display Name: Task ID
10654
+ * * SQL Data Type: uniqueidentifier
10655
+ * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)`),
10656
+ DependsOnTaskID: zod_1.z.string().describe(`
10657
+ * * Field Name: DependsOnTaskID
10658
+ * * Display Name: Depends On Task ID
10659
+ * * SQL Data Type: uniqueidentifier
10660
+ * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)`),
10661
+ DependencyType: zod_1.z.union([zod_1.z.literal('Prerequisite'), zod_1.z.literal('Corequisite'), zod_1.z.literal('Optional')]).describe(`
10662
+ * * Field Name: DependencyType
10663
+ * * Display Name: Dependency Type
10664
+ * * SQL Data Type: nvarchar(50)
10665
+ * * Default Value: Prerequisite
10666
+ * * Value List Type: List
10667
+ * * Possible Values
10668
+ * * Prerequisite
10669
+ * * Corequisite
10670
+ * * Optional
10671
+ * * Description: Type of dependency relationship (Prerequisite, Corequisite, Optional)`),
10672
+ __mj_CreatedAt: zod_1.z.date().describe(`
10673
+ * * Field Name: __mj_CreatedAt
10674
+ * * Display Name: Created At
10675
+ * * SQL Data Type: datetimeoffset
10676
+ * * Default Value: getutcdate()`),
10677
+ __mj_UpdatedAt: zod_1.z.date().describe(`
10678
+ * * Field Name: __mj_UpdatedAt
10679
+ * * Display Name: Updated At
10680
+ * * SQL Data Type: datetimeoffset
10681
+ * * Default Value: getutcdate()`),
10682
+ Task: zod_1.z.string().describe(`
10683
+ * * Field Name: Task
10684
+ * * Display Name: Task
10685
+ * * SQL Data Type: nvarchar(255)`),
10686
+ DependsOnTask: zod_1.z.string().describe(`
10687
+ * * Field Name: DependsOnTask
10688
+ * * Display Name: Depends On Task
10689
+ * * SQL Data Type: nvarchar(255)`),
10690
+ });
10691
+ /**
10692
+ * zod schema definition for the entity MJ: Task Types
10693
+ */
10694
+ exports.TaskTypeSchema = zod_1.z.object({
10695
+ ID: zod_1.z.string().describe(`
10696
+ * * Field Name: ID
10697
+ * * Display Name: ID
10698
+ * * SQL Data Type: uniqueidentifier
10699
+ * * Default Value: newsequentialid()`),
10700
+ Name: zod_1.z.string().describe(`
10701
+ * * Field Name: Name
10702
+ * * Display Name: Name
10703
+ * * SQL Data Type: nvarchar(255)
10704
+ * * Description: Display name for the task type`),
10705
+ Description: zod_1.z.string().nullable().describe(`
10706
+ * * Field Name: Description
10707
+ * * Display Name: Description
10708
+ * * SQL Data Type: nvarchar(MAX)
10709
+ * * Description: Detailed description of what this task type represents and when it should be used`),
10710
+ __mj_CreatedAt: zod_1.z.date().describe(`
10711
+ * * Field Name: __mj_CreatedAt
10712
+ * * Display Name: Created At
10713
+ * * SQL Data Type: datetimeoffset
10714
+ * * Default Value: getutcdate()`),
10715
+ __mj_UpdatedAt: zod_1.z.date().describe(`
10716
+ * * Field Name: __mj_UpdatedAt
10717
+ * * Display Name: Updated At
10718
+ * * SQL Data Type: datetimeoffset
10719
+ * * Default Value: getutcdate()`),
10720
+ });
10721
+ /**
10722
+ * zod schema definition for the entity MJ: Tasks
10723
+ */
10724
+ exports.TaskSchema = zod_1.z.object({
10725
+ ID: zod_1.z.string().describe(`
10726
+ * * Field Name: ID
10727
+ * * Display Name: ID
10728
+ * * SQL Data Type: uniqueidentifier
10729
+ * * Default Value: newsequentialid()`),
10730
+ ParentID: zod_1.z.string().nullable().describe(`
10731
+ * * Field Name: ParentID
10732
+ * * Display Name: Parent ID
10733
+ * * SQL Data Type: uniqueidentifier
10734
+ * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)`),
10735
+ Name: zod_1.z.string().describe(`
10736
+ * * Field Name: Name
10737
+ * * Display Name: Name
10738
+ * * SQL Data Type: nvarchar(255)
10739
+ * * Description: Display name for the task`),
10740
+ Description: zod_1.z.string().nullable().describe(`
10741
+ * * Field Name: Description
10742
+ * * Display Name: Description
10743
+ * * SQL Data Type: nvarchar(MAX)
10744
+ * * Description: Detailed description of the task requirements and objectives`),
10745
+ TypeID: zod_1.z.string().describe(`
10746
+ * * Field Name: TypeID
10747
+ * * Display Name: Type ID
10748
+ * * SQL Data Type: uniqueidentifier
10749
+ * * Related Entity/Foreign Key: MJ: Task Types (vwTaskTypes.ID)`),
10750
+ EnvironmentID: zod_1.z.string().describe(`
10751
+ * * Field Name: EnvironmentID
10752
+ * * Display Name: Environment ID
10753
+ * * SQL Data Type: uniqueidentifier
10754
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
10755
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09`),
10756
+ ProjectID: zod_1.z.string().nullable().describe(`
10757
+ * * Field Name: ProjectID
10758
+ * * Display Name: Project ID
10759
+ * * SQL Data Type: uniqueidentifier
10760
+ * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)`),
10761
+ ConversationDetailID: zod_1.z.string().nullable().describe(`
10762
+ * * Field Name: ConversationDetailID
10763
+ * * Display Name: Conversation Detail ID
10764
+ * * SQL Data Type: uniqueidentifier
10765
+ * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)`),
10766
+ UserID: zod_1.z.string().nullable().describe(`
10767
+ * * Field Name: UserID
10768
+ * * Display Name: User ID
10769
+ * * SQL Data Type: uniqueidentifier
10770
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)`),
10771
+ AgentID: zod_1.z.string().nullable().describe(`
10772
+ * * Field Name: AgentID
10773
+ * * Display Name: Agent ID
10774
+ * * SQL Data Type: uniqueidentifier
10775
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)`),
10776
+ Status: zod_1.z.union([zod_1.z.literal('Pending'), zod_1.z.literal('In Progress'), zod_1.z.literal('Complete'), zod_1.z.literal('Cancelled'), zod_1.z.literal('Failed'), zod_1.z.literal('Blocked'), zod_1.z.literal('Deferred')]).describe(`
10777
+ * * Field Name: Status
10778
+ * * Display Name: Status
10779
+ * * SQL Data Type: nvarchar(50)
10780
+ * * Default Value: Pending
10781
+ * * Value List Type: List
10782
+ * * Possible Values
10783
+ * * Pending
10784
+ * * In Progress
10785
+ * * Complete
10786
+ * * Cancelled
10787
+ * * Failed
10788
+ * * Blocked
10789
+ * * Deferred
10790
+ * * Description: Current status of the task (Pending, In Progress, Complete, Cancelled, Failed, Blocked, Deferred)`),
10791
+ PercentComplete: zod_1.z.number().nullable().describe(`
10792
+ * * Field Name: PercentComplete
10793
+ * * Display Name: Percent Complete
10794
+ * * SQL Data Type: int
10795
+ * * Default Value: 0
10796
+ * * Description: Completion percentage for tracking progress (0-100)`),
10797
+ DueAt: zod_1.z.date().nullable().describe(`
10798
+ * * Field Name: DueAt
10799
+ * * Display Name: Due At
10800
+ * * SQL Data Type: datetimeoffset
10801
+ * * Description: Due date and time for task completion`),
10802
+ StartedAt: zod_1.z.date().nullable().describe(`
10803
+ * * Field Name: StartedAt
10804
+ * * Display Name: Started At
10805
+ * * SQL Data Type: datetimeoffset
10806
+ * * Description: Timestamp when work on the task began`),
10807
+ CompletedAt: zod_1.z.date().nullable().describe(`
10808
+ * * Field Name: CompletedAt
10809
+ * * Display Name: Completed At
10810
+ * * SQL Data Type: datetimeoffset
10811
+ * * Description: Timestamp when the task was completed`),
10812
+ __mj_CreatedAt: zod_1.z.date().describe(`
10813
+ * * Field Name: __mj_CreatedAt
10814
+ * * Display Name: Created At
10815
+ * * SQL Data Type: datetimeoffset
10816
+ * * Default Value: getutcdate()`),
10817
+ __mj_UpdatedAt: zod_1.z.date().describe(`
10818
+ * * Field Name: __mj_UpdatedAt
10819
+ * * Display Name: Updated At
10820
+ * * SQL Data Type: datetimeoffset
10821
+ * * Default Value: getutcdate()`),
10822
+ Parent: zod_1.z.string().nullable().describe(`
10823
+ * * Field Name: Parent
10824
+ * * Display Name: Parent
10825
+ * * SQL Data Type: nvarchar(255)`),
10826
+ Type: zod_1.z.string().describe(`
10827
+ * * Field Name: Type
10828
+ * * Display Name: Type
10829
+ * * SQL Data Type: nvarchar(255)`),
10830
+ Environment: zod_1.z.string().describe(`
10831
+ * * Field Name: Environment
10832
+ * * Display Name: Environment
10833
+ * * SQL Data Type: nvarchar(255)`),
10834
+ Project: zod_1.z.string().nullable().describe(`
10835
+ * * Field Name: Project
10836
+ * * Display Name: Project
10837
+ * * SQL Data Type: nvarchar(255)`),
10838
+ User: zod_1.z.string().nullable().describe(`
10839
+ * * Field Name: User
10840
+ * * Display Name: User
10841
+ * * SQL Data Type: nvarchar(100)`),
10842
+ Agent: zod_1.z.string().nullable().describe(`
10843
+ * * Field Name: Agent
10844
+ * * Display Name: Agent
10845
+ * * SQL Data Type: nvarchar(255)`),
10846
+ });
10034
10847
  /**
10035
10848
  * zod schema definition for the entity Output Delivery Types
10036
10849
  */
@@ -11405,6 +12218,12 @@ exports.ReportSchema = zod_1.z.object({
11405
12218
  * * Display Name: Thumbnail
11406
12219
  * * SQL Data Type: nvarchar(MAX)
11407
12220
  * * Description: Thumbnail image for the report that can be displayed in gallery views. Can contain either a URL to an image file or a Base64-encoded image string.`),
12221
+ EnvironmentID: zod_1.z.string().describe(`
12222
+ * * Field Name: EnvironmentID
12223
+ * * Display Name: Environment ID
12224
+ * * SQL Data Type: uniqueidentifier
12225
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
12226
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09`),
11408
12227
  Category: zod_1.z.string().nullable().describe(`
11409
12228
  * * Field Name: Category
11410
12229
  * * Display Name: Category
@@ -11437,6 +12256,10 @@ exports.ReportSchema = zod_1.z.object({
11437
12256
  * * Field Name: OutputWorkflow
11438
12257
  * * Display Name: Output Workflow
11439
12258
  * * SQL Data Type: nvarchar(100)`),
12259
+ Environment: zod_1.z.string().describe(`
12260
+ * * Field Name: Environment
12261
+ * * Display Name: Environment
12262
+ * * SQL Data Type: nvarchar(255)`),
11440
12263
  });
11441
12264
  /**
11442
12265
  * zod schema definition for the entity Resource Links
@@ -22855,6 +23678,19 @@ let ConversationDetailEntity = class ConversationDetailEntity extends core_1.Bas
22855
23678
  this.Set('CompletionTime', value);
22856
23679
  }
22857
23680
  /**
23681
+ * * Field Name: IsPinned
23682
+ * * Display Name: Is Pinned
23683
+ * * SQL Data Type: bit
23684
+ * * Default Value: 0
23685
+ * * Description: Indicates if this message is pinned within the conversation for easy reference
23686
+ */
23687
+ get IsPinned() {
23688
+ return this.Get('IsPinned');
23689
+ }
23690
+ set IsPinned(value) {
23691
+ this.Set('IsPinned', value);
23692
+ }
23693
+ /**
22858
23694
  * * Field Name: Conversation
22859
23695
  * * Display Name: Conversation
22860
23696
  * * SQL Data Type: nvarchar(255)
@@ -23102,6 +23938,44 @@ let ConversationEntity = class ConversationEntity extends core_1.BaseEntity {
23102
23938
  this.Set('Status', value);
23103
23939
  }
23104
23940
  /**
23941
+ * * Field Name: EnvironmentID
23942
+ * * Display Name: Environment ID
23943
+ * * SQL Data Type: uniqueidentifier
23944
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
23945
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
23946
+ */
23947
+ get EnvironmentID() {
23948
+ return this.Get('EnvironmentID');
23949
+ }
23950
+ set EnvironmentID(value) {
23951
+ this.Set('EnvironmentID', value);
23952
+ }
23953
+ /**
23954
+ * * Field Name: ProjectID
23955
+ * * Display Name: Project ID
23956
+ * * SQL Data Type: uniqueidentifier
23957
+ * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)
23958
+ */
23959
+ get ProjectID() {
23960
+ return this.Get('ProjectID');
23961
+ }
23962
+ set ProjectID(value) {
23963
+ this.Set('ProjectID', value);
23964
+ }
23965
+ /**
23966
+ * * Field Name: IsPinned
23967
+ * * Display Name: Is Pinned
23968
+ * * SQL Data Type: bit
23969
+ * * Default Value: 0
23970
+ * * Description: Indicates if this conversation is pinned to the top of lists
23971
+ */
23972
+ get IsPinned() {
23973
+ return this.Get('IsPinned');
23974
+ }
23975
+ set IsPinned(value) {
23976
+ this.Set('IsPinned', value);
23977
+ }
23978
+ /**
23105
23979
  * * Field Name: User
23106
23980
  * * Display Name: User
23107
23981
  * * SQL Data Type: nvarchar(100)
@@ -23125,6 +23999,22 @@ let ConversationEntity = class ConversationEntity extends core_1.BaseEntity {
23125
23999
  get DataContext() {
23126
24000
  return this.Get('DataContext');
23127
24001
  }
24002
+ /**
24003
+ * * Field Name: Environment
24004
+ * * Display Name: Environment
24005
+ * * SQL Data Type: nvarchar(255)
24006
+ */
24007
+ get Environment() {
24008
+ return this.Get('Environment');
24009
+ }
24010
+ /**
24011
+ * * Field Name: Project
24012
+ * * Display Name: Project
24013
+ * * SQL Data Type: nvarchar(255)
24014
+ */
24015
+ get Project() {
24016
+ return this.Get('Project');
24017
+ }
23128
24018
  };
23129
24019
  exports.ConversationEntity = ConversationEntity;
23130
24020
  exports.ConversationEntity = ConversationEntity = __decorate([
@@ -23456,6 +24346,19 @@ let DashboardEntity = class DashboardEntity extends core_1.BaseEntity {
23456
24346
  this.Set('Code', value);
23457
24347
  }
23458
24348
  /**
24349
+ * * Field Name: EnvironmentID
24350
+ * * Display Name: Environment ID
24351
+ * * SQL Data Type: uniqueidentifier
24352
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
24353
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
24354
+ */
24355
+ get EnvironmentID() {
24356
+ return this.Get('EnvironmentID');
24357
+ }
24358
+ set EnvironmentID(value) {
24359
+ this.Set('EnvironmentID', value);
24360
+ }
24361
+ /**
23459
24362
  * * Field Name: User
23460
24363
  * * Display Name: User
23461
24364
  * * SQL Data Type: nvarchar(100)
@@ -23479,6 +24382,14 @@ let DashboardEntity = class DashboardEntity extends core_1.BaseEntity {
23479
24382
  get Application() {
23480
24383
  return this.Get('Application');
23481
24384
  }
24385
+ /**
24386
+ * * Field Name: Environment
24387
+ * * Display Name: Environment
24388
+ * * SQL Data Type: nvarchar(255)
24389
+ */
24390
+ get Environment() {
24391
+ return this.Get('Environment');
24392
+ }
23482
24393
  };
23483
24394
  exports.DashboardEntity = DashboardEntity;
23484
24395
  exports.DashboardEntity = DashboardEntity = __decorate([
@@ -31684,6 +32595,227 @@ exports.ListEntity = ListEntity;
31684
32595
  exports.ListEntity = ListEntity = __decorate([
31685
32596
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'Lists')
31686
32597
  ], ListEntity);
32598
+ /**
32599
+ * MJ: Access Control Rules - strongly typed entity sub-class
32600
+ * * Schema: __mj
32601
+ * * Base Table: AccessControlRule
32602
+ * * Base View: vwAccessControlRules
32603
+ * * @description Generic ACL-style permission system that can control access to any entity record in the system with granular CRUD permissions.
32604
+ * * Primary Key: ID
32605
+ * @extends {BaseEntity}
32606
+ * @class
32607
+ * @public
32608
+ */
32609
+ let AccessControlRuleEntity = class AccessControlRuleEntity extends core_1.BaseEntity {
32610
+ /**
32611
+ * Loads the MJ: Access Control Rules record from the database
32612
+ * @param ID: string - primary key value to load the MJ: Access Control Rules record.
32613
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
32614
+ * @returns {Promise<boolean>} - true if successful, false otherwise
32615
+ * @public
32616
+ * @async
32617
+ * @memberof AccessControlRuleEntity
32618
+ * @method
32619
+ * @override
32620
+ */
32621
+ async Load(ID, EntityRelationshipsToLoad) {
32622
+ const compositeKey = new core_1.CompositeKey();
32623
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
32624
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
32625
+ }
32626
+ /**
32627
+ * * Field Name: ID
32628
+ * * Display Name: ID
32629
+ * * SQL Data Type: uniqueidentifier
32630
+ * * Default Value: newsequentialid()
32631
+ */
32632
+ get ID() {
32633
+ return this.Get('ID');
32634
+ }
32635
+ set ID(value) {
32636
+ this.Set('ID', value);
32637
+ }
32638
+ /**
32639
+ * * Field Name: EntityID
32640
+ * * Display Name: Entity ID
32641
+ * * SQL Data Type: uniqueidentifier
32642
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
32643
+ */
32644
+ get EntityID() {
32645
+ return this.Get('EntityID');
32646
+ }
32647
+ set EntityID(value) {
32648
+ this.Set('EntityID', value);
32649
+ }
32650
+ /**
32651
+ * * Field Name: RecordID
32652
+ * * Display Name: Record ID
32653
+ * * SQL Data Type: nvarchar(500)
32654
+ * * Description: Primary key value(s) of the record being protected - scalar for simple PKs or JSON for composite PKs
32655
+ */
32656
+ get RecordID() {
32657
+ return this.Get('RecordID');
32658
+ }
32659
+ set RecordID(value) {
32660
+ this.Set('RecordID', value);
32661
+ }
32662
+ /**
32663
+ * * Field Name: GranteeType
32664
+ * * Display Name: Grantee Type
32665
+ * * SQL Data Type: nvarchar(50)
32666
+ * * Value List Type: List
32667
+ * * Possible Values
32668
+ * * User
32669
+ * * Role
32670
+ * * Everyone
32671
+ * * Public
32672
+ * * Description: Type of grantee receiving permission (User, Role, Everyone, Public). "Everyone" means all authenticated users whereas "Public" means any authenticated OR anonymous user.
32673
+ */
32674
+ get GranteeType() {
32675
+ return this.Get('GranteeType');
32676
+ }
32677
+ set GranteeType(value) {
32678
+ this.Set('GranteeType', value);
32679
+ }
32680
+ /**
32681
+ * * Field Name: GranteeID
32682
+ * * Display Name: Grantee ID
32683
+ * * SQL Data Type: uniqueidentifier
32684
+ */
32685
+ get GranteeID() {
32686
+ return this.Get('GranteeID');
32687
+ }
32688
+ set GranteeID(value) {
32689
+ this.Set('GranteeID', value);
32690
+ }
32691
+ /**
32692
+ * * Field Name: CanRead
32693
+ * * Display Name: Can Read
32694
+ * * SQL Data Type: bit
32695
+ * * Default Value: 0
32696
+ * * Description: Permission to read/view the record
32697
+ */
32698
+ get CanRead() {
32699
+ return this.Get('CanRead');
32700
+ }
32701
+ set CanRead(value) {
32702
+ this.Set('CanRead', value);
32703
+ }
32704
+ /**
32705
+ * * Field Name: CanCreate
32706
+ * * Display Name: Can Create
32707
+ * * SQL Data Type: bit
32708
+ * * Default Value: 0
32709
+ * * Description: Permission to create new related records
32710
+ */
32711
+ get CanCreate() {
32712
+ return this.Get('CanCreate');
32713
+ }
32714
+ set CanCreate(value) {
32715
+ this.Set('CanCreate', value);
32716
+ }
32717
+ /**
32718
+ * * Field Name: CanUpdate
32719
+ * * Display Name: Can Update
32720
+ * * SQL Data Type: bit
32721
+ * * Default Value: 0
32722
+ * * Description: Permission to update/modify the record
32723
+ */
32724
+ get CanUpdate() {
32725
+ return this.Get('CanUpdate');
32726
+ }
32727
+ set CanUpdate(value) {
32728
+ this.Set('CanUpdate', value);
32729
+ }
32730
+ /**
32731
+ * * Field Name: CanDelete
32732
+ * * Display Name: Can Delete
32733
+ * * SQL Data Type: bit
32734
+ * * Default Value: 0
32735
+ * * Description: Permission to delete the record
32736
+ */
32737
+ get CanDelete() {
32738
+ return this.Get('CanDelete');
32739
+ }
32740
+ set CanDelete(value) {
32741
+ this.Set('CanDelete', value);
32742
+ }
32743
+ /**
32744
+ * * Field Name: CanShare
32745
+ * * Display Name: Can Share
32746
+ * * SQL Data Type: bit
32747
+ * * Default Value: 0
32748
+ * * Description: Permission to share/grant permissions to other users
32749
+ */
32750
+ get CanShare() {
32751
+ return this.Get('CanShare');
32752
+ }
32753
+ set CanShare(value) {
32754
+ this.Set('CanShare', value);
32755
+ }
32756
+ /**
32757
+ * * Field Name: ExpiresAt
32758
+ * * Display Name: Expires At
32759
+ * * SQL Data Type: datetimeoffset
32760
+ * * Description: Optional expiration date/time for this access rule
32761
+ */
32762
+ get ExpiresAt() {
32763
+ return this.Get('ExpiresAt');
32764
+ }
32765
+ set ExpiresAt(value) {
32766
+ this.Set('ExpiresAt', value);
32767
+ }
32768
+ /**
32769
+ * * Field Name: GrantedByUserID
32770
+ * * Display Name: Granted By User ID
32771
+ * * SQL Data Type: uniqueidentifier
32772
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
32773
+ */
32774
+ get GrantedByUserID() {
32775
+ return this.Get('GrantedByUserID');
32776
+ }
32777
+ set GrantedByUserID(value) {
32778
+ this.Set('GrantedByUserID', value);
32779
+ }
32780
+ /**
32781
+ * * Field Name: __mj_CreatedAt
32782
+ * * Display Name: Created At
32783
+ * * SQL Data Type: datetimeoffset
32784
+ * * Default Value: getutcdate()
32785
+ */
32786
+ get __mj_CreatedAt() {
32787
+ return this.Get('__mj_CreatedAt');
32788
+ }
32789
+ /**
32790
+ * * Field Name: __mj_UpdatedAt
32791
+ * * Display Name: Updated At
32792
+ * * SQL Data Type: datetimeoffset
32793
+ * * Default Value: getutcdate()
32794
+ */
32795
+ get __mj_UpdatedAt() {
32796
+ return this.Get('__mj_UpdatedAt');
32797
+ }
32798
+ /**
32799
+ * * Field Name: Entity
32800
+ * * Display Name: Entity
32801
+ * * SQL Data Type: nvarchar(255)
32802
+ */
32803
+ get Entity() {
32804
+ return this.Get('Entity');
32805
+ }
32806
+ /**
32807
+ * * Field Name: GrantedByUser
32808
+ * * Display Name: Granted By User
32809
+ * * SQL Data Type: nvarchar(100)
32810
+ */
32811
+ get GrantedByUser() {
32812
+ return this.Get('GrantedByUser');
32813
+ }
32814
+ };
32815
+ exports.AccessControlRuleEntity = AccessControlRuleEntity;
32816
+ exports.AccessControlRuleEntity = AccessControlRuleEntity = __decorate([
32817
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Access Control Rules')
32818
+ ], AccessControlRuleEntity);
31687
32819
  /**
31688
32820
  * MJ: AI Agent Prompts - strongly typed entity sub-class
31689
32821
  * * Schema: __mj
@@ -36801,6 +37933,597 @@ exports.ArtifactTypeEntity = ArtifactTypeEntity;
36801
37933
  exports.ArtifactTypeEntity = ArtifactTypeEntity = __decorate([
36802
37934
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Artifact Types')
36803
37935
  ], ArtifactTypeEntity);
37936
+ /**
37937
+ * MJ: Artifact Versions - strongly typed entity sub-class
37938
+ * * Schema: __mj
37939
+ * * Base Table: ArtifactVersion
37940
+ * * Base View: vwArtifactVersions
37941
+ * * @description Version history for artifacts, tracking all changes over time
37942
+ * * Primary Key: ID
37943
+ * @extends {BaseEntity}
37944
+ * @class
37945
+ * @public
37946
+ */
37947
+ let ArtifactVersionEntity = class ArtifactVersionEntity extends core_1.BaseEntity {
37948
+ /**
37949
+ * Loads the MJ: Artifact Versions record from the database
37950
+ * @param ID: string - primary key value to load the MJ: Artifact Versions record.
37951
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
37952
+ * @returns {Promise<boolean>} - true if successful, false otherwise
37953
+ * @public
37954
+ * @async
37955
+ * @memberof ArtifactVersionEntity
37956
+ * @method
37957
+ * @override
37958
+ */
37959
+ async Load(ID, EntityRelationshipsToLoad) {
37960
+ const compositeKey = new core_1.CompositeKey();
37961
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
37962
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
37963
+ }
37964
+ /**
37965
+ * * Field Name: ID
37966
+ * * Display Name: ID
37967
+ * * SQL Data Type: uniqueidentifier
37968
+ * * Default Value: newsequentialid()
37969
+ */
37970
+ get ID() {
37971
+ return this.Get('ID');
37972
+ }
37973
+ set ID(value) {
37974
+ this.Set('ID', value);
37975
+ }
37976
+ /**
37977
+ * * Field Name: ArtifactID
37978
+ * * Display Name: Artifact ID
37979
+ * * SQL Data Type: uniqueidentifier
37980
+ * * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)
37981
+ */
37982
+ get ArtifactID() {
37983
+ return this.Get('ArtifactID');
37984
+ }
37985
+ set ArtifactID(value) {
37986
+ this.Set('ArtifactID', value);
37987
+ }
37988
+ /**
37989
+ * * Field Name: VersionNumber
37990
+ * * Display Name: Version Number
37991
+ * * SQL Data Type: int
37992
+ * * Description: Sequential version number for this artifact
37993
+ */
37994
+ get VersionNumber() {
37995
+ return this.Get('VersionNumber');
37996
+ }
37997
+ set VersionNumber(value) {
37998
+ this.Set('VersionNumber', value);
37999
+ }
38000
+ /**
38001
+ * * Field Name: Content
38002
+ * * Display Name: Content
38003
+ * * SQL Data Type: nvarchar(MAX)
38004
+ * * Description: The content of the artifact at this version
38005
+ */
38006
+ get Content() {
38007
+ return this.Get('Content');
38008
+ }
38009
+ set Content(value) {
38010
+ this.Set('Content', value);
38011
+ }
38012
+ /**
38013
+ * * Field Name: Configuration
38014
+ * * Display Name: Configuration
38015
+ * * SQL Data Type: nvarchar(MAX)
38016
+ * * Description: JSON configuration for this version
38017
+ */
38018
+ get Configuration() {
38019
+ return this.Get('Configuration');
38020
+ }
38021
+ set Configuration(value) {
38022
+ this.Set('Configuration', value);
38023
+ }
38024
+ /**
38025
+ * * Field Name: Comments
38026
+ * * Display Name: Comments
38027
+ * * SQL Data Type: nvarchar(MAX)
38028
+ * * Description: User comments specific to this version
38029
+ */
38030
+ get Comments() {
38031
+ return this.Get('Comments');
38032
+ }
38033
+ set Comments(value) {
38034
+ this.Set('Comments', value);
38035
+ }
38036
+ /**
38037
+ * * Field Name: UserID
38038
+ * * Display Name: User ID
38039
+ * * SQL Data Type: uniqueidentifier
38040
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
38041
+ */
38042
+ get UserID() {
38043
+ return this.Get('UserID');
38044
+ }
38045
+ set UserID(value) {
38046
+ this.Set('UserID', value);
38047
+ }
38048
+ /**
38049
+ * * Field Name: __mj_CreatedAt
38050
+ * * Display Name: Created At
38051
+ * * SQL Data Type: datetimeoffset
38052
+ * * Default Value: getutcdate()
38053
+ */
38054
+ get __mj_CreatedAt() {
38055
+ return this.Get('__mj_CreatedAt');
38056
+ }
38057
+ /**
38058
+ * * Field Name: __mj_UpdatedAt
38059
+ * * Display Name: Updated At
38060
+ * * SQL Data Type: datetimeoffset
38061
+ * * Default Value: getutcdate()
38062
+ */
38063
+ get __mj_UpdatedAt() {
38064
+ return this.Get('__mj_UpdatedAt');
38065
+ }
38066
+ /**
38067
+ * * Field Name: Artifact
38068
+ * * Display Name: Artifact
38069
+ * * SQL Data Type: nvarchar(255)
38070
+ */
38071
+ get Artifact() {
38072
+ return this.Get('Artifact');
38073
+ }
38074
+ /**
38075
+ * * Field Name: User
38076
+ * * Display Name: User
38077
+ * * SQL Data Type: nvarchar(100)
38078
+ */
38079
+ get User() {
38080
+ return this.Get('User');
38081
+ }
38082
+ };
38083
+ exports.ArtifactVersionEntity = ArtifactVersionEntity;
38084
+ exports.ArtifactVersionEntity = ArtifactVersionEntity = __decorate([
38085
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Artifact Versions')
38086
+ ], ArtifactVersionEntity);
38087
+ /**
38088
+ * MJ: Artifacts - strongly typed entity sub-class
38089
+ * * Schema: __mj
38090
+ * * Base Table: Artifact
38091
+ * * Base View: vwArtifacts
38092
+ * * @description Independent content items (code, documents, charts) that can be linked to multiple conversations and collections. Supports versioning and sharing.
38093
+ * * Primary Key: ID
38094
+ * @extends {BaseEntity}
38095
+ * @class
38096
+ * @public
38097
+ */
38098
+ let ArtifactEntity = class ArtifactEntity extends core_1.BaseEntity {
38099
+ /**
38100
+ * Loads the MJ: Artifacts record from the database
38101
+ * @param ID: string - primary key value to load the MJ: Artifacts record.
38102
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
38103
+ * @returns {Promise<boolean>} - true if successful, false otherwise
38104
+ * @public
38105
+ * @async
38106
+ * @memberof ArtifactEntity
38107
+ * @method
38108
+ * @override
38109
+ */
38110
+ async Load(ID, EntityRelationshipsToLoad) {
38111
+ const compositeKey = new core_1.CompositeKey();
38112
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
38113
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
38114
+ }
38115
+ /**
38116
+ * * Field Name: ID
38117
+ * * Display Name: ID
38118
+ * * SQL Data Type: uniqueidentifier
38119
+ * * Default Value: newsequentialid()
38120
+ */
38121
+ get ID() {
38122
+ return this.Get('ID');
38123
+ }
38124
+ set ID(value) {
38125
+ this.Set('ID', value);
38126
+ }
38127
+ /**
38128
+ * * Field Name: EnvironmentID
38129
+ * * Display Name: Environment ID
38130
+ * * SQL Data Type: uniqueidentifier
38131
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
38132
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
38133
+ */
38134
+ get EnvironmentID() {
38135
+ return this.Get('EnvironmentID');
38136
+ }
38137
+ set EnvironmentID(value) {
38138
+ this.Set('EnvironmentID', value);
38139
+ }
38140
+ /**
38141
+ * * Field Name: Name
38142
+ * * Display Name: Name
38143
+ * * SQL Data Type: nvarchar(255)
38144
+ * * Description: Display name for the artifact
38145
+ */
38146
+ get Name() {
38147
+ return this.Get('Name');
38148
+ }
38149
+ set Name(value) {
38150
+ this.Set('Name', value);
38151
+ }
38152
+ /**
38153
+ * * Field Name: Description
38154
+ * * Display Name: Description
38155
+ * * SQL Data Type: nvarchar(MAX)
38156
+ * * Description: Detailed description of the artifact contents and purpose
38157
+ */
38158
+ get Description() {
38159
+ return this.Get('Description');
38160
+ }
38161
+ set Description(value) {
38162
+ this.Set('Description', value);
38163
+ }
38164
+ /**
38165
+ * * Field Name: TypeID
38166
+ * * Display Name: Type ID
38167
+ * * SQL Data Type: uniqueidentifier
38168
+ * * Related Entity/Foreign Key: MJ: Artifact Types (vwArtifactTypes.ID)
38169
+ */
38170
+ get TypeID() {
38171
+ return this.Get('TypeID');
38172
+ }
38173
+ set TypeID(value) {
38174
+ this.Set('TypeID', value);
38175
+ }
38176
+ /**
38177
+ * * Field Name: Comments
38178
+ * * Display Name: Comments
38179
+ * * SQL Data Type: nvarchar(MAX)
38180
+ * * Description: User comments about the artifact
38181
+ */
38182
+ get Comments() {
38183
+ return this.Get('Comments');
38184
+ }
38185
+ set Comments(value) {
38186
+ this.Set('Comments', value);
38187
+ }
38188
+ /**
38189
+ * * Field Name: UserID
38190
+ * * Display Name: User ID
38191
+ * * SQL Data Type: uniqueidentifier
38192
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
38193
+ */
38194
+ get UserID() {
38195
+ return this.Get('UserID');
38196
+ }
38197
+ set UserID(value) {
38198
+ this.Set('UserID', value);
38199
+ }
38200
+ /**
38201
+ * * Field Name: __mj_CreatedAt
38202
+ * * Display Name: Created At
38203
+ * * SQL Data Type: datetimeoffset
38204
+ * * Default Value: getutcdate()
38205
+ */
38206
+ get __mj_CreatedAt() {
38207
+ return this.Get('__mj_CreatedAt');
38208
+ }
38209
+ /**
38210
+ * * Field Name: __mj_UpdatedAt
38211
+ * * Display Name: Updated At
38212
+ * * SQL Data Type: datetimeoffset
38213
+ * * Default Value: getutcdate()
38214
+ */
38215
+ get __mj_UpdatedAt() {
38216
+ return this.Get('__mj_UpdatedAt');
38217
+ }
38218
+ /**
38219
+ * * Field Name: Environment
38220
+ * * Display Name: Environment
38221
+ * * SQL Data Type: nvarchar(255)
38222
+ */
38223
+ get Environment() {
38224
+ return this.Get('Environment');
38225
+ }
38226
+ /**
38227
+ * * Field Name: Type
38228
+ * * Display Name: Type
38229
+ * * SQL Data Type: nvarchar(100)
38230
+ */
38231
+ get Type() {
38232
+ return this.Get('Type');
38233
+ }
38234
+ /**
38235
+ * * Field Name: User
38236
+ * * Display Name: User
38237
+ * * SQL Data Type: nvarchar(100)
38238
+ */
38239
+ get User() {
38240
+ return this.Get('User');
38241
+ }
38242
+ };
38243
+ exports.ArtifactEntity = ArtifactEntity;
38244
+ exports.ArtifactEntity = ArtifactEntity = __decorate([
38245
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Artifacts')
38246
+ ], ArtifactEntity);
38247
+ /**
38248
+ * MJ: Collection Artifacts - strongly typed entity sub-class
38249
+ * * Schema: __mj
38250
+ * * Base Table: CollectionArtifact
38251
+ * * Base View: vwCollectionArtifacts
38252
+ * * @description Join table that establishes many-to-many relationships between Collections and Artifacts, allowing artifacts to be organized within collections
38253
+ * * Primary Key: ID
38254
+ * @extends {BaseEntity}
38255
+ * @class
38256
+ * @public
38257
+ */
38258
+ let CollectionArtifactEntity = class CollectionArtifactEntity extends core_1.BaseEntity {
38259
+ /**
38260
+ * Loads the MJ: Collection Artifacts record from the database
38261
+ * @param ID: string - primary key value to load the MJ: Collection Artifacts record.
38262
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
38263
+ * @returns {Promise<boolean>} - true if successful, false otherwise
38264
+ * @public
38265
+ * @async
38266
+ * @memberof CollectionArtifactEntity
38267
+ * @method
38268
+ * @override
38269
+ */
38270
+ async Load(ID, EntityRelationshipsToLoad) {
38271
+ const compositeKey = new core_1.CompositeKey();
38272
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
38273
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
38274
+ }
38275
+ /**
38276
+ * * Field Name: ID
38277
+ * * Display Name: ID
38278
+ * * SQL Data Type: uniqueidentifier
38279
+ * * Default Value: newsequentialid()
38280
+ */
38281
+ get ID() {
38282
+ return this.Get('ID');
38283
+ }
38284
+ set ID(value) {
38285
+ this.Set('ID', value);
38286
+ }
38287
+ /**
38288
+ * * Field Name: CollectionID
38289
+ * * Display Name: Collection ID
38290
+ * * SQL Data Type: uniqueidentifier
38291
+ * * Related Entity/Foreign Key: MJ: Collections (vwCollections.ID)
38292
+ */
38293
+ get CollectionID() {
38294
+ return this.Get('CollectionID');
38295
+ }
38296
+ set CollectionID(value) {
38297
+ this.Set('CollectionID', value);
38298
+ }
38299
+ /**
38300
+ * * Field Name: ArtifactID
38301
+ * * Display Name: Artifact ID
38302
+ * * SQL Data Type: uniqueidentifier
38303
+ * * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)
38304
+ */
38305
+ get ArtifactID() {
38306
+ return this.Get('ArtifactID');
38307
+ }
38308
+ set ArtifactID(value) {
38309
+ this.Set('ArtifactID', value);
38310
+ }
38311
+ /**
38312
+ * * Field Name: Sequence
38313
+ * * Display Name: Sequence
38314
+ * * SQL Data Type: int
38315
+ * * Default Value: 0
38316
+ * * Description: Sequence number for ordering artifacts within a collection
38317
+ */
38318
+ get Sequence() {
38319
+ return this.Get('Sequence');
38320
+ }
38321
+ set Sequence(value) {
38322
+ this.Set('Sequence', value);
38323
+ }
38324
+ /**
38325
+ * * Field Name: __mj_CreatedAt
38326
+ * * Display Name: Created At
38327
+ * * SQL Data Type: datetimeoffset
38328
+ * * Default Value: getutcdate()
38329
+ */
38330
+ get __mj_CreatedAt() {
38331
+ return this.Get('__mj_CreatedAt');
38332
+ }
38333
+ /**
38334
+ * * Field Name: __mj_UpdatedAt
38335
+ * * Display Name: Updated At
38336
+ * * SQL Data Type: datetimeoffset
38337
+ * * Default Value: getutcdate()
38338
+ */
38339
+ get __mj_UpdatedAt() {
38340
+ return this.Get('__mj_UpdatedAt');
38341
+ }
38342
+ /**
38343
+ * * Field Name: Collection
38344
+ * * Display Name: Collection
38345
+ * * SQL Data Type: nvarchar(255)
38346
+ */
38347
+ get Collection() {
38348
+ return this.Get('Collection');
38349
+ }
38350
+ /**
38351
+ * * Field Name: Artifact
38352
+ * * Display Name: Artifact
38353
+ * * SQL Data Type: nvarchar(255)
38354
+ */
38355
+ get Artifact() {
38356
+ return this.Get('Artifact');
38357
+ }
38358
+ };
38359
+ exports.CollectionArtifactEntity = CollectionArtifactEntity;
38360
+ exports.CollectionArtifactEntity = CollectionArtifactEntity = __decorate([
38361
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Collection Artifacts')
38362
+ ], CollectionArtifactEntity);
38363
+ /**
38364
+ * MJ: Collections - strongly typed entity sub-class
38365
+ * * Schema: __mj
38366
+ * * Base Table: Collection
38367
+ * * Base View: vwCollections
38368
+ * * @description Organizational folders for storing and categorizing artifacts. Supports nested folder structure for hierarchical organization.
38369
+ * * Primary Key: ID
38370
+ * @extends {BaseEntity}
38371
+ * @class
38372
+ * @public
38373
+ */
38374
+ let CollectionEntity = class CollectionEntity extends core_1.BaseEntity {
38375
+ /**
38376
+ * Loads the MJ: Collections record from the database
38377
+ * @param ID: string - primary key value to load the MJ: Collections record.
38378
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
38379
+ * @returns {Promise<boolean>} - true if successful, false otherwise
38380
+ * @public
38381
+ * @async
38382
+ * @memberof CollectionEntity
38383
+ * @method
38384
+ * @override
38385
+ */
38386
+ async Load(ID, EntityRelationshipsToLoad) {
38387
+ const compositeKey = new core_1.CompositeKey();
38388
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
38389
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
38390
+ }
38391
+ /**
38392
+ * * Field Name: ID
38393
+ * * Display Name: ID
38394
+ * * SQL Data Type: uniqueidentifier
38395
+ * * Default Value: newsequentialid()
38396
+ */
38397
+ get ID() {
38398
+ return this.Get('ID');
38399
+ }
38400
+ set ID(value) {
38401
+ this.Set('ID', value);
38402
+ }
38403
+ /**
38404
+ * * Field Name: EnvironmentID
38405
+ * * Display Name: Environment ID
38406
+ * * SQL Data Type: uniqueidentifier
38407
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
38408
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
38409
+ */
38410
+ get EnvironmentID() {
38411
+ return this.Get('EnvironmentID');
38412
+ }
38413
+ set EnvironmentID(value) {
38414
+ this.Set('EnvironmentID', value);
38415
+ }
38416
+ /**
38417
+ * * Field Name: ParentID
38418
+ * * Display Name: Parent ID
38419
+ * * SQL Data Type: uniqueidentifier
38420
+ * * Related Entity/Foreign Key: MJ: Collections (vwCollections.ID)
38421
+ */
38422
+ get ParentID() {
38423
+ return this.Get('ParentID');
38424
+ }
38425
+ set ParentID(value) {
38426
+ this.Set('ParentID', value);
38427
+ }
38428
+ /**
38429
+ * * Field Name: Name
38430
+ * * Display Name: Name
38431
+ * * SQL Data Type: nvarchar(255)
38432
+ * * Description: Display name for the collection
38433
+ */
38434
+ get Name() {
38435
+ return this.Get('Name');
38436
+ }
38437
+ set Name(value) {
38438
+ this.Set('Name', value);
38439
+ }
38440
+ /**
38441
+ * * Field Name: Description
38442
+ * * Display Name: Description
38443
+ * * SQL Data Type: nvarchar(MAX)
38444
+ * * Description: Detailed description of the collection purpose
38445
+ */
38446
+ get Description() {
38447
+ return this.Get('Description');
38448
+ }
38449
+ set Description(value) {
38450
+ this.Set('Description', value);
38451
+ }
38452
+ /**
38453
+ * * Field Name: Icon
38454
+ * * Display Name: Icon
38455
+ * * SQL Data Type: nvarchar(50)
38456
+ * * Description: Font Awesome icon class for UI display
38457
+ */
38458
+ get Icon() {
38459
+ return this.Get('Icon');
38460
+ }
38461
+ set Icon(value) {
38462
+ this.Set('Icon', value);
38463
+ }
38464
+ /**
38465
+ * * Field Name: Color
38466
+ * * Display Name: Color
38467
+ * * SQL Data Type: nvarchar(7)
38468
+ * * Description: Hex color code for UI display (#RRGGBB format)
38469
+ */
38470
+ get Color() {
38471
+ return this.Get('Color');
38472
+ }
38473
+ set Color(value) {
38474
+ this.Set('Color', value);
38475
+ }
38476
+ /**
38477
+ * * Field Name: Sequence
38478
+ * * Display Name: Sequence
38479
+ * * SQL Data Type: int
38480
+ * * Description: Display sequence for ordering collections in UI
38481
+ */
38482
+ get Sequence() {
38483
+ return this.Get('Sequence');
38484
+ }
38485
+ set Sequence(value) {
38486
+ this.Set('Sequence', value);
38487
+ }
38488
+ /**
38489
+ * * Field Name: __mj_CreatedAt
38490
+ * * Display Name: Created At
38491
+ * * SQL Data Type: datetimeoffset
38492
+ * * Default Value: getutcdate()
38493
+ */
38494
+ get __mj_CreatedAt() {
38495
+ return this.Get('__mj_CreatedAt');
38496
+ }
38497
+ /**
38498
+ * * Field Name: __mj_UpdatedAt
38499
+ * * Display Name: Updated At
38500
+ * * SQL Data Type: datetimeoffset
38501
+ * * Default Value: getutcdate()
38502
+ */
38503
+ get __mj_UpdatedAt() {
38504
+ return this.Get('__mj_UpdatedAt');
38505
+ }
38506
+ /**
38507
+ * * Field Name: Environment
38508
+ * * Display Name: Environment
38509
+ * * SQL Data Type: nvarchar(255)
38510
+ */
38511
+ get Environment() {
38512
+ return this.Get('Environment');
38513
+ }
38514
+ /**
38515
+ * * Field Name: Parent
38516
+ * * Display Name: Parent
38517
+ * * SQL Data Type: nvarchar(255)
38518
+ */
38519
+ get Parent() {
38520
+ return this.Get('Parent');
38521
+ }
38522
+ };
38523
+ exports.CollectionEntity = CollectionEntity;
38524
+ exports.CollectionEntity = CollectionEntity = __decorate([
38525
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Collections')
38526
+ ], CollectionEntity);
36804
38527
  /**
36805
38528
  * MJ: Component Dependencies - strongly typed entity sub-class
36806
38529
  * * Schema: __mj
@@ -38601,6 +40324,468 @@ exports.DashboardUserStateEntity = DashboardUserStateEntity;
38601
40324
  exports.DashboardUserStateEntity = DashboardUserStateEntity = __decorate([
38602
40325
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Dashboard User States')
38603
40326
  ], DashboardUserStateEntity);
40327
+ /**
40328
+ * MJ: Environments - strongly typed entity sub-class
40329
+ * * Schema: __mj
40330
+ * * Base Table: Environment
40331
+ * * Base View: vwEnvironments
40332
+ * * @description Top-level container for organizing conversations, artifacts, and collections. Provides isolation and grouping for different teams, clients, or functional areas.
40333
+ * * Primary Key: ID
40334
+ * @extends {BaseEntity}
40335
+ * @class
40336
+ * @public
40337
+ */
40338
+ let EnvironmentEntity = class EnvironmentEntity extends core_1.BaseEntity {
40339
+ /**
40340
+ * Loads the MJ: Environments record from the database
40341
+ * @param ID: string - primary key value to load the MJ: Environments record.
40342
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
40343
+ * @returns {Promise<boolean>} - true if successful, false otherwise
40344
+ * @public
40345
+ * @async
40346
+ * @memberof EnvironmentEntity
40347
+ * @method
40348
+ * @override
40349
+ */
40350
+ async Load(ID, EntityRelationshipsToLoad) {
40351
+ const compositeKey = new core_1.CompositeKey();
40352
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
40353
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
40354
+ }
40355
+ /**
40356
+ * * Field Name: ID
40357
+ * * Display Name: ID
40358
+ * * SQL Data Type: uniqueidentifier
40359
+ * * Default Value: newsequentialid()
40360
+ */
40361
+ get ID() {
40362
+ return this.Get('ID');
40363
+ }
40364
+ set ID(value) {
40365
+ this.Set('ID', value);
40366
+ }
40367
+ /**
40368
+ * * Field Name: Name
40369
+ * * Display Name: Name
40370
+ * * SQL Data Type: nvarchar(255)
40371
+ * * Description: Display name for the environment
40372
+ */
40373
+ get Name() {
40374
+ return this.Get('Name');
40375
+ }
40376
+ set Name(value) {
40377
+ this.Set('Name', value);
40378
+ }
40379
+ /**
40380
+ * * Field Name: Description
40381
+ * * Display Name: Description
40382
+ * * SQL Data Type: nvarchar(MAX)
40383
+ * * Description: Detailed description of the environment purpose and scope
40384
+ */
40385
+ get Description() {
40386
+ return this.Get('Description');
40387
+ }
40388
+ set Description(value) {
40389
+ this.Set('Description', value);
40390
+ }
40391
+ /**
40392
+ * * Field Name: IsDefault
40393
+ * * Display Name: Is Default
40394
+ * * SQL Data Type: bit
40395
+ * * Default Value: 0
40396
+ * * Description: Indicates if this is the default environment for the organization
40397
+ */
40398
+ get IsDefault() {
40399
+ return this.Get('IsDefault');
40400
+ }
40401
+ set IsDefault(value) {
40402
+ this.Set('IsDefault', value);
40403
+ }
40404
+ /**
40405
+ * * Field Name: Settings
40406
+ * * Display Name: Settings
40407
+ * * SQL Data Type: nvarchar(MAX)
40408
+ * * Description: JSON configuration for environment-specific settings and features
40409
+ */
40410
+ get Settings() {
40411
+ return this.Get('Settings');
40412
+ }
40413
+ set Settings(value) {
40414
+ this.Set('Settings', value);
40415
+ }
40416
+ /**
40417
+ * * Field Name: __mj_CreatedAt
40418
+ * * Display Name: Created At
40419
+ * * SQL Data Type: datetimeoffset
40420
+ * * Default Value: getutcdate()
40421
+ */
40422
+ get __mj_CreatedAt() {
40423
+ return this.Get('__mj_CreatedAt');
40424
+ }
40425
+ /**
40426
+ * * Field Name: __mj_UpdatedAt
40427
+ * * Display Name: Updated At
40428
+ * * SQL Data Type: datetimeoffset
40429
+ * * Default Value: getutcdate()
40430
+ */
40431
+ get __mj_UpdatedAt() {
40432
+ return this.Get('__mj_UpdatedAt');
40433
+ }
40434
+ };
40435
+ exports.EnvironmentEntity = EnvironmentEntity;
40436
+ exports.EnvironmentEntity = EnvironmentEntity = __decorate([
40437
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Environments')
40438
+ ], EnvironmentEntity);
40439
+ /**
40440
+ * MJ: Projects - strongly typed entity sub-class
40441
+ * * Schema: __mj
40442
+ * * Base Table: Project
40443
+ * * Base View: vwProjects
40444
+ * * @description Container for grouping related conversations around a common topic, client, or initiative. Supports nesting for sub-projects.
40445
+ * * Primary Key: ID
40446
+ * @extends {BaseEntity}
40447
+ * @class
40448
+ * @public
40449
+ */
40450
+ let ProjectEntity = class ProjectEntity extends core_1.BaseEntity {
40451
+ /**
40452
+ * Loads the MJ: Projects record from the database
40453
+ * @param ID: string - primary key value to load the MJ: Projects record.
40454
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
40455
+ * @returns {Promise<boolean>} - true if successful, false otherwise
40456
+ * @public
40457
+ * @async
40458
+ * @memberof ProjectEntity
40459
+ * @method
40460
+ * @override
40461
+ */
40462
+ async Load(ID, EntityRelationshipsToLoad) {
40463
+ const compositeKey = new core_1.CompositeKey();
40464
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
40465
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
40466
+ }
40467
+ /**
40468
+ * * Field Name: ID
40469
+ * * Display Name: ID
40470
+ * * SQL Data Type: uniqueidentifier
40471
+ * * Default Value: newsequentialid()
40472
+ */
40473
+ get ID() {
40474
+ return this.Get('ID');
40475
+ }
40476
+ set ID(value) {
40477
+ this.Set('ID', value);
40478
+ }
40479
+ /**
40480
+ * * Field Name: EnvironmentID
40481
+ * * Display Name: Environment ID
40482
+ * * SQL Data Type: uniqueidentifier
40483
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
40484
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
40485
+ */
40486
+ get EnvironmentID() {
40487
+ return this.Get('EnvironmentID');
40488
+ }
40489
+ set EnvironmentID(value) {
40490
+ this.Set('EnvironmentID', value);
40491
+ }
40492
+ /**
40493
+ * * Field Name: ParentID
40494
+ * * Display Name: Parent ID
40495
+ * * SQL Data Type: uniqueidentifier
40496
+ * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)
40497
+ */
40498
+ get ParentID() {
40499
+ return this.Get('ParentID');
40500
+ }
40501
+ set ParentID(value) {
40502
+ this.Set('ParentID', value);
40503
+ }
40504
+ /**
40505
+ * * Field Name: Name
40506
+ * * Display Name: Name
40507
+ * * SQL Data Type: nvarchar(255)
40508
+ * * Description: Display name for the project
40509
+ */
40510
+ get Name() {
40511
+ return this.Get('Name');
40512
+ }
40513
+ set Name(value) {
40514
+ this.Set('Name', value);
40515
+ }
40516
+ /**
40517
+ * * Field Name: Description
40518
+ * * Display Name: Description
40519
+ * * SQL Data Type: nvarchar(MAX)
40520
+ * * Description: Detailed description of the project goals and scope
40521
+ */
40522
+ get Description() {
40523
+ return this.Get('Description');
40524
+ }
40525
+ set Description(value) {
40526
+ this.Set('Description', value);
40527
+ }
40528
+ /**
40529
+ * * Field Name: Color
40530
+ * * Display Name: Color
40531
+ * * SQL Data Type: nvarchar(7)
40532
+ * * Description: Hex color code for project badges in UI (#RRGGBB format)
40533
+ */
40534
+ get Color() {
40535
+ return this.Get('Color');
40536
+ }
40537
+ set Color(value) {
40538
+ this.Set('Color', value);
40539
+ }
40540
+ /**
40541
+ * * Field Name: Icon
40542
+ * * Display Name: Icon
40543
+ * * SQL Data Type: nvarchar(50)
40544
+ * * Description: Font Awesome icon class for UI display
40545
+ */
40546
+ get Icon() {
40547
+ return this.Get('Icon');
40548
+ }
40549
+ set Icon(value) {
40550
+ this.Set('Icon', value);
40551
+ }
40552
+ /**
40553
+ * * Field Name: IsArchived
40554
+ * * Display Name: Is Archived
40555
+ * * SQL Data Type: bit
40556
+ * * Default Value: 0
40557
+ * * Description: Indicates if this project is archived and should be hidden from active lists
40558
+ */
40559
+ get IsArchived() {
40560
+ return this.Get('IsArchived');
40561
+ }
40562
+ set IsArchived(value) {
40563
+ this.Set('IsArchived', value);
40564
+ }
40565
+ /**
40566
+ * * Field Name: __mj_CreatedAt
40567
+ * * Display Name: Created At
40568
+ * * SQL Data Type: datetimeoffset
40569
+ * * Default Value: getutcdate()
40570
+ */
40571
+ get __mj_CreatedAt() {
40572
+ return this.Get('__mj_CreatedAt');
40573
+ }
40574
+ /**
40575
+ * * Field Name: __mj_UpdatedAt
40576
+ * * Display Name: Updated At
40577
+ * * SQL Data Type: datetimeoffset
40578
+ * * Default Value: getutcdate()
40579
+ */
40580
+ get __mj_UpdatedAt() {
40581
+ return this.Get('__mj_UpdatedAt');
40582
+ }
40583
+ /**
40584
+ * * Field Name: Environment
40585
+ * * Display Name: Environment
40586
+ * * SQL Data Type: nvarchar(255)
40587
+ */
40588
+ get Environment() {
40589
+ return this.Get('Environment');
40590
+ }
40591
+ /**
40592
+ * * Field Name: Parent
40593
+ * * Display Name: Parent
40594
+ * * SQL Data Type: nvarchar(255)
40595
+ */
40596
+ get Parent() {
40597
+ return this.Get('Parent');
40598
+ }
40599
+ };
40600
+ exports.ProjectEntity = ProjectEntity;
40601
+ exports.ProjectEntity = ProjectEntity = __decorate([
40602
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Projects')
40603
+ ], ProjectEntity);
40604
+ /**
40605
+ * MJ: Public Links - strongly typed entity sub-class
40606
+ * * Schema: __mj
40607
+ * * Base Table: PublicLink
40608
+ * * Base View: vwPublicLinks
40609
+ * * @description Shareable links for external access to artifacts and other resources. Supports password protection and expiration.
40610
+ * * Primary Key: ID
40611
+ * @extends {BaseEntity}
40612
+ * @class
40613
+ * @public
40614
+ */
40615
+ let PublicLinkEntity = class PublicLinkEntity extends core_1.BaseEntity {
40616
+ /**
40617
+ * Loads the MJ: Public Links record from the database
40618
+ * @param ID: string - primary key value to load the MJ: Public Links record.
40619
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
40620
+ * @returns {Promise<boolean>} - true if successful, false otherwise
40621
+ * @public
40622
+ * @async
40623
+ * @memberof PublicLinkEntity
40624
+ * @method
40625
+ * @override
40626
+ */
40627
+ async Load(ID, EntityRelationshipsToLoad) {
40628
+ const compositeKey = new core_1.CompositeKey();
40629
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
40630
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
40631
+ }
40632
+ /**
40633
+ * * Field Name: ID
40634
+ * * Display Name: ID
40635
+ * * SQL Data Type: uniqueidentifier
40636
+ * * Default Value: newsequentialid()
40637
+ */
40638
+ get ID() {
40639
+ return this.Get('ID');
40640
+ }
40641
+ set ID(value) {
40642
+ this.Set('ID', value);
40643
+ }
40644
+ /**
40645
+ * * Field Name: ResourceType
40646
+ * * Display Name: Resource Type
40647
+ * * SQL Data Type: nvarchar(50)
40648
+ * * Value List Type: List
40649
+ * * Possible Values
40650
+ * * Artifact
40651
+ * * Conversation
40652
+ * * Collection
40653
+ * * Description: Type of resource being shared (Artifact, Conversation, Collection)
40654
+ */
40655
+ get ResourceType() {
40656
+ return this.Get('ResourceType');
40657
+ }
40658
+ set ResourceType(value) {
40659
+ this.Set('ResourceType', value);
40660
+ }
40661
+ /**
40662
+ * * Field Name: ResourceID
40663
+ * * Display Name: Resource ID
40664
+ * * SQL Data Type: uniqueidentifier
40665
+ */
40666
+ get ResourceID() {
40667
+ return this.Get('ResourceID');
40668
+ }
40669
+ set ResourceID(value) {
40670
+ this.Set('ResourceID', value);
40671
+ }
40672
+ /**
40673
+ * * Field Name: Token
40674
+ * * Display Name: Token
40675
+ * * SQL Data Type: nvarchar(255)
40676
+ * * Description: Unique token for accessing the shared resource via URL
40677
+ */
40678
+ get Token() {
40679
+ return this.Get('Token');
40680
+ }
40681
+ set Token(value) {
40682
+ this.Set('Token', value);
40683
+ }
40684
+ /**
40685
+ * * Field Name: PasswordHash
40686
+ * * Display Name: Password Hash
40687
+ * * SQL Data Type: nvarchar(255)
40688
+ * * Description: SHA256 hash of optional password for additional security
40689
+ */
40690
+ get PasswordHash() {
40691
+ return this.Get('PasswordHash');
40692
+ }
40693
+ set PasswordHash(value) {
40694
+ this.Set('PasswordHash', value);
40695
+ }
40696
+ /**
40697
+ * * Field Name: ExpiresAt
40698
+ * * Display Name: Expires At
40699
+ * * SQL Data Type: datetimeoffset
40700
+ * * Description: Optional expiration date/time for this public link
40701
+ */
40702
+ get ExpiresAt() {
40703
+ return this.Get('ExpiresAt');
40704
+ }
40705
+ set ExpiresAt(value) {
40706
+ this.Set('ExpiresAt', value);
40707
+ }
40708
+ /**
40709
+ * * Field Name: MaxViews
40710
+ * * Display Name: Max Views
40711
+ * * SQL Data Type: int
40712
+ * * Description: Maximum number of times this link can be viewed
40713
+ */
40714
+ get MaxViews() {
40715
+ return this.Get('MaxViews');
40716
+ }
40717
+ set MaxViews(value) {
40718
+ this.Set('MaxViews', value);
40719
+ }
40720
+ /**
40721
+ * * Field Name: CurrentViews
40722
+ * * Display Name: Current Views
40723
+ * * SQL Data Type: int
40724
+ * * Default Value: 0
40725
+ * * Description: Current count of how many times this link has been viewed
40726
+ */
40727
+ get CurrentViews() {
40728
+ return this.Get('CurrentViews');
40729
+ }
40730
+ set CurrentViews(value) {
40731
+ this.Set('CurrentViews', value);
40732
+ }
40733
+ /**
40734
+ * * Field Name: UserID
40735
+ * * Display Name: User ID
40736
+ * * SQL Data Type: uniqueidentifier
40737
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
40738
+ */
40739
+ get UserID() {
40740
+ return this.Get('UserID');
40741
+ }
40742
+ set UserID(value) {
40743
+ this.Set('UserID', value);
40744
+ }
40745
+ /**
40746
+ * * Field Name: IsActive
40747
+ * * Display Name: Is Active
40748
+ * * SQL Data Type: bit
40749
+ * * Default Value: 1
40750
+ * * Description: Indicates if this link is currently active and accessible
40751
+ */
40752
+ get IsActive() {
40753
+ return this.Get('IsActive');
40754
+ }
40755
+ set IsActive(value) {
40756
+ this.Set('IsActive', value);
40757
+ }
40758
+ /**
40759
+ * * Field Name: __mj_CreatedAt
40760
+ * * Display Name: Created At
40761
+ * * SQL Data Type: datetimeoffset
40762
+ * * Default Value: getutcdate()
40763
+ */
40764
+ get __mj_CreatedAt() {
40765
+ return this.Get('__mj_CreatedAt');
40766
+ }
40767
+ /**
40768
+ * * Field Name: __mj_UpdatedAt
40769
+ * * Display Name: Updated At
40770
+ * * SQL Data Type: datetimeoffset
40771
+ * * Default Value: getutcdate()
40772
+ */
40773
+ get __mj_UpdatedAt() {
40774
+ return this.Get('__mj_UpdatedAt');
40775
+ }
40776
+ /**
40777
+ * * Field Name: User
40778
+ * * Display Name: User
40779
+ * * SQL Data Type: nvarchar(100)
40780
+ */
40781
+ get User() {
40782
+ return this.Get('User');
40783
+ }
40784
+ };
40785
+ exports.PublicLinkEntity = PublicLinkEntity;
40786
+ exports.PublicLinkEntity = PublicLinkEntity = __decorate([
40787
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Public Links')
40788
+ ], PublicLinkEntity);
38604
40789
  /**
38605
40790
  * MJ: Query Parameters - strongly typed entity sub-class
38606
40791
  * * Schema: __mj
@@ -38805,6 +40990,169 @@ exports.QueryParameterEntity = QueryParameterEntity;
38805
40990
  exports.QueryParameterEntity = QueryParameterEntity = __decorate([
38806
40991
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Query Parameters')
38807
40992
  ], QueryParameterEntity);
40993
+ /**
40994
+ * MJ: Record Links - strongly typed entity sub-class
40995
+ * * Schema: __mj
40996
+ * * Base Table: RecordLink
40997
+ * * Base View: vwRecordLinks
40998
+ * * @description Generic linking table that can connect any two records in the system, providing a flexible relationship management system.
40999
+ * * Primary Key: ID
41000
+ * @extends {BaseEntity}
41001
+ * @class
41002
+ * @public
41003
+ */
41004
+ let RecordLinkEntity = class RecordLinkEntity extends core_1.BaseEntity {
41005
+ /**
41006
+ * Loads the MJ: Record Links record from the database
41007
+ * @param ID: string - primary key value to load the MJ: Record Links record.
41008
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
41009
+ * @returns {Promise<boolean>} - true if successful, false otherwise
41010
+ * @public
41011
+ * @async
41012
+ * @memberof RecordLinkEntity
41013
+ * @method
41014
+ * @override
41015
+ */
41016
+ async Load(ID, EntityRelationshipsToLoad) {
41017
+ const compositeKey = new core_1.CompositeKey();
41018
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
41019
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
41020
+ }
41021
+ /**
41022
+ * * Field Name: ID
41023
+ * * Display Name: ID
41024
+ * * SQL Data Type: uniqueidentifier
41025
+ * * Default Value: newsequentialid()
41026
+ */
41027
+ get ID() {
41028
+ return this.Get('ID');
41029
+ }
41030
+ set ID(value) {
41031
+ this.Set('ID', value);
41032
+ }
41033
+ /**
41034
+ * * Field Name: SourceEntityID
41035
+ * * Display Name: Source Entity ID
41036
+ * * SQL Data Type: uniqueidentifier
41037
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
41038
+ */
41039
+ get SourceEntityID() {
41040
+ return this.Get('SourceEntityID');
41041
+ }
41042
+ set SourceEntityID(value) {
41043
+ this.Set('SourceEntityID', value);
41044
+ }
41045
+ /**
41046
+ * * Field Name: SourceRecordID
41047
+ * * Display Name: Source Record ID
41048
+ * * SQL Data Type: nvarchar(500)
41049
+ * * Description: Primary key value(s) of the source record - scalar for simple PKs or JSON KeyValuePair array for composite PKs
41050
+ */
41051
+ get SourceRecordID() {
41052
+ return this.Get('SourceRecordID');
41053
+ }
41054
+ set SourceRecordID(value) {
41055
+ this.Set('SourceRecordID', value);
41056
+ }
41057
+ /**
41058
+ * * Field Name: TargetEntityID
41059
+ * * Display Name: Target Entity ID
41060
+ * * SQL Data Type: uniqueidentifier
41061
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
41062
+ */
41063
+ get TargetEntityID() {
41064
+ return this.Get('TargetEntityID');
41065
+ }
41066
+ set TargetEntityID(value) {
41067
+ this.Set('TargetEntityID', value);
41068
+ }
41069
+ /**
41070
+ * * Field Name: TargetRecordID
41071
+ * * Display Name: Target Record ID
41072
+ * * SQL Data Type: nvarchar(500)
41073
+ * * Description: Primary key value(s) of the target record - scalar for simple PKs or JSON KeyValuePair array for composite PKs
41074
+ */
41075
+ get TargetRecordID() {
41076
+ return this.Get('TargetRecordID');
41077
+ }
41078
+ set TargetRecordID(value) {
41079
+ this.Set('TargetRecordID', value);
41080
+ }
41081
+ /**
41082
+ * * Field Name: LinkType
41083
+ * * Display Name: Link Type
41084
+ * * SQL Data Type: nvarchar(50)
41085
+ * * Description: Application-specific relationship type describing how the records are related
41086
+ */
41087
+ get LinkType() {
41088
+ return this.Get('LinkType');
41089
+ }
41090
+ set LinkType(value) {
41091
+ this.Set('LinkType', value);
41092
+ }
41093
+ /**
41094
+ * * Field Name: Sequence
41095
+ * * Display Name: Sequence
41096
+ * * SQL Data Type: int
41097
+ * * Description: Display sequence for ordering linked records in UI
41098
+ */
41099
+ get Sequence() {
41100
+ return this.Get('Sequence');
41101
+ }
41102
+ set Sequence(value) {
41103
+ this.Set('Sequence', value);
41104
+ }
41105
+ /**
41106
+ * * Field Name: Metadata
41107
+ * * Display Name: Metadata
41108
+ * * SQL Data Type: nvarchar(MAX)
41109
+ * * Description: JSON field for storing additional link-specific metadata
41110
+ */
41111
+ get Metadata() {
41112
+ return this.Get('Metadata');
41113
+ }
41114
+ set Metadata(value) {
41115
+ this.Set('Metadata', value);
41116
+ }
41117
+ /**
41118
+ * * Field Name: __mj_CreatedAt
41119
+ * * Display Name: Created At
41120
+ * * SQL Data Type: datetimeoffset
41121
+ * * Default Value: getutcdate()
41122
+ */
41123
+ get __mj_CreatedAt() {
41124
+ return this.Get('__mj_CreatedAt');
41125
+ }
41126
+ /**
41127
+ * * Field Name: __mj_UpdatedAt
41128
+ * * Display Name: Updated At
41129
+ * * SQL Data Type: datetimeoffset
41130
+ * * Default Value: getutcdate()
41131
+ */
41132
+ get __mj_UpdatedAt() {
41133
+ return this.Get('__mj_UpdatedAt');
41134
+ }
41135
+ /**
41136
+ * * Field Name: SourceEntity
41137
+ * * Display Name: Source Entity
41138
+ * * SQL Data Type: nvarchar(255)
41139
+ */
41140
+ get SourceEntity() {
41141
+ return this.Get('SourceEntity');
41142
+ }
41143
+ /**
41144
+ * * Field Name: TargetEntity
41145
+ * * Display Name: Target Entity
41146
+ * * SQL Data Type: nvarchar(255)
41147
+ */
41148
+ get TargetEntity() {
41149
+ return this.Get('TargetEntity');
41150
+ }
41151
+ };
41152
+ exports.RecordLinkEntity = RecordLinkEntity;
41153
+ exports.RecordLinkEntity = RecordLinkEntity = __decorate([
41154
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Record Links')
41155
+ ], RecordLinkEntity);
38808
41156
  /**
38809
41157
  * MJ: Report User States - strongly typed entity sub-class
38810
41158
  * * Schema: __mj
@@ -38907,39 +41255,206 @@ let ReportUserStateEntity = class ReportUserStateEntity extends core_1.BaseEntit
38907
41255
  get Report() {
38908
41256
  return this.Get('Report');
38909
41257
  }
38910
- /**
38911
- * * Field Name: User
38912
- * * Display Name: User
38913
- * * SQL Data Type: nvarchar(100)
38914
- */
38915
- get User() {
38916
- return this.Get('User');
38917
- }
41258
+ /**
41259
+ * * Field Name: User
41260
+ * * Display Name: User
41261
+ * * SQL Data Type: nvarchar(100)
41262
+ */
41263
+ get User() {
41264
+ return this.Get('User');
41265
+ }
41266
+ };
41267
+ exports.ReportUserStateEntity = ReportUserStateEntity;
41268
+ exports.ReportUserStateEntity = ReportUserStateEntity = __decorate([
41269
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Report User States')
41270
+ ], ReportUserStateEntity);
41271
+ /**
41272
+ * MJ: Report Versions - strongly typed entity sub-class
41273
+ * * Schema: __mj
41274
+ * * Base Table: ReportVersion
41275
+ * * Base View: vwReportVersions
41276
+ * * @description Stores iterations of report logic, structure, and layout changes
41277
+ * * Primary Key: ID
41278
+ * @extends {BaseEntity}
41279
+ * @class
41280
+ * @public
41281
+ */
41282
+ let ReportVersionEntity = class ReportVersionEntity extends core_1.BaseEntity {
41283
+ /**
41284
+ * Loads the MJ: Report Versions record from the database
41285
+ * @param ID: string - primary key value to load the MJ: Report Versions record.
41286
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
41287
+ * @returns {Promise<boolean>} - true if successful, false otherwise
41288
+ * @public
41289
+ * @async
41290
+ * @memberof ReportVersionEntity
41291
+ * @method
41292
+ * @override
41293
+ */
41294
+ async Load(ID, EntityRelationshipsToLoad) {
41295
+ const compositeKey = new core_1.CompositeKey();
41296
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
41297
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
41298
+ }
41299
+ /**
41300
+ * Validate() method override for MJ: Report Versions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
41301
+ * * VersionNumber: This rule ensures that the version number must be greater than zero, meaning there should be at least one version created.
41302
+ * @public
41303
+ * @method
41304
+ * @override
41305
+ */
41306
+ Validate() {
41307
+ const result = super.Validate();
41308
+ this.ValidateVersionNumberGreaterThanZero(result);
41309
+ return result;
41310
+ }
41311
+ /**
41312
+ * This rule ensures that the version number must be greater than zero, meaning there should be at least one version created.
41313
+ * @param result - the ValidationResult object to add any errors or warnings to
41314
+ * @public
41315
+ * @method
41316
+ */
41317
+ ValidateVersionNumberGreaterThanZero(result) {
41318
+ if (this.VersionNumber <= 0) {
41319
+ result.Errors.push(new core_1.ValidationErrorInfo("VersionNumber", "The version number must be greater than zero.", this.VersionNumber, core_1.ValidationErrorType.Failure));
41320
+ }
41321
+ }
41322
+ /**
41323
+ * * Field Name: ID
41324
+ * * Display Name: ID
41325
+ * * SQL Data Type: uniqueidentifier
41326
+ * * Default Value: newsequentialid()
41327
+ */
41328
+ get ID() {
41329
+ return this.Get('ID');
41330
+ }
41331
+ set ID(value) {
41332
+ this.Set('ID', value);
41333
+ }
41334
+ /**
41335
+ * * Field Name: ReportID
41336
+ * * Display Name: Report ID
41337
+ * * SQL Data Type: uniqueidentifier
41338
+ * * Related Entity/Foreign Key: Reports (vwReports.ID)
41339
+ */
41340
+ get ReportID() {
41341
+ return this.Get('ReportID');
41342
+ }
41343
+ set ReportID(value) {
41344
+ this.Set('ReportID', value);
41345
+ }
41346
+ /**
41347
+ * * Field Name: VersionNumber
41348
+ * * Display Name: Version Number
41349
+ * * SQL Data Type: int
41350
+ * * Description: Report version number, sequential per report starting at 1
41351
+ */
41352
+ get VersionNumber() {
41353
+ return this.Get('VersionNumber');
41354
+ }
41355
+ set VersionNumber(value) {
41356
+ this.Set('VersionNumber', value);
41357
+ }
41358
+ /**
41359
+ * * Field Name: Name
41360
+ * * Display Name: Name
41361
+ * * SQL Data Type: nvarchar(255)
41362
+ * * Description: Name of this report version
41363
+ */
41364
+ get Name() {
41365
+ return this.Get('Name');
41366
+ }
41367
+ set Name(value) {
41368
+ this.Set('Name', value);
41369
+ }
41370
+ /**
41371
+ * * Field Name: Description
41372
+ * * Display Name: Description
41373
+ * * SQL Data Type: nvarchar(MAX)
41374
+ * * Description: Description of this report version
41375
+ */
41376
+ get Description() {
41377
+ return this.Get('Description');
41378
+ }
41379
+ set Description(value) {
41380
+ this.Set('Description', value);
41381
+ }
41382
+ /**
41383
+ * * Field Name: Configuration
41384
+ * * Display Name: Configuration
41385
+ * * SQL Data Type: nvarchar(MAX)
41386
+ * * Description: JSON configuration of report structure, layout and logic
41387
+ */
41388
+ get Configuration() {
41389
+ return this.Get('Configuration');
41390
+ }
41391
+ set Configuration(value) {
41392
+ this.Set('Configuration', value);
41393
+ }
41394
+ /**
41395
+ * * Field Name: DataContextUpdated
41396
+ * * Display Name: Data Context Updated
41397
+ * * SQL Data Type: bit
41398
+ * * Default Value: 0
41399
+ * * Description: Indicates if the data context was updated in this version
41400
+ */
41401
+ get DataContextUpdated() {
41402
+ return this.Get('DataContextUpdated');
41403
+ }
41404
+ set DataContextUpdated(value) {
41405
+ this.Set('DataContextUpdated', value);
41406
+ }
41407
+ /**
41408
+ * * Field Name: __mj_CreatedAt
41409
+ * * Display Name: Created At
41410
+ * * SQL Data Type: datetimeoffset
41411
+ * * Default Value: getutcdate()
41412
+ */
41413
+ get __mj_CreatedAt() {
41414
+ return this.Get('__mj_CreatedAt');
41415
+ }
41416
+ /**
41417
+ * * Field Name: __mj_UpdatedAt
41418
+ * * Display Name: Updated At
41419
+ * * SQL Data Type: datetimeoffset
41420
+ * * Default Value: getutcdate()
41421
+ */
41422
+ get __mj_UpdatedAt() {
41423
+ return this.Get('__mj_UpdatedAt');
41424
+ }
41425
+ /**
41426
+ * * Field Name: Report
41427
+ * * Display Name: Report
41428
+ * * SQL Data Type: nvarchar(255)
41429
+ */
41430
+ get Report() {
41431
+ return this.Get('Report');
41432
+ }
38918
41433
  };
38919
- exports.ReportUserStateEntity = ReportUserStateEntity;
38920
- exports.ReportUserStateEntity = ReportUserStateEntity = __decorate([
38921
- (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Report User States')
38922
- ], ReportUserStateEntity);
41434
+ exports.ReportVersionEntity = ReportVersionEntity;
41435
+ exports.ReportVersionEntity = ReportVersionEntity = __decorate([
41436
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Report Versions')
41437
+ ], ReportVersionEntity);
38923
41438
  /**
38924
- * MJ: Report Versions - strongly typed entity sub-class
41439
+ * MJ: Task Dependencies - strongly typed entity sub-class
38925
41440
  * * Schema: __mj
38926
- * * Base Table: ReportVersion
38927
- * * Base View: vwReportVersions
38928
- * * @description Stores iterations of report logic, structure, and layout changes
41441
+ * * Base Table: TaskDependency
41442
+ * * Base View: vwTaskDependencies
41443
+ * * @description Defines dependencies between tasks to create a directed acyclic graph (DAG) for workflow orchestration
38929
41444
  * * Primary Key: ID
38930
41445
  * @extends {BaseEntity}
38931
41446
  * @class
38932
41447
  * @public
38933
41448
  */
38934
- let ReportVersionEntity = class ReportVersionEntity extends core_1.BaseEntity {
41449
+ let TaskDependencyEntity = class TaskDependencyEntity extends core_1.BaseEntity {
38935
41450
  /**
38936
- * Loads the MJ: Report Versions record from the database
38937
- * @param ID: string - primary key value to load the MJ: Report Versions record.
41451
+ * Loads the MJ: Task Dependencies record from the database
41452
+ * @param ID: string - primary key value to load the MJ: Task Dependencies record.
38938
41453
  * @param EntityRelationshipsToLoad - (optional) the relationships to load
38939
41454
  * @returns {Promise<boolean>} - true if successful, false otherwise
38940
41455
  * @public
38941
41456
  * @async
38942
- * @memberof ReportVersionEntity
41457
+ * @memberof TaskDependencyEntity
38943
41458
  * @method
38944
41459
  * @override
38945
41460
  */
@@ -38949,26 +41464,26 @@ let ReportVersionEntity = class ReportVersionEntity extends core_1.BaseEntity {
38949
41464
  return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
38950
41465
  }
38951
41466
  /**
38952
- * Validate() method override for MJ: Report Versions entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
38953
- * * VersionNumber: This rule ensures that the version number must be greater than zero, meaning there should be at least one version created.
41467
+ * Validate() method override for MJ: Task Dependencies entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
41468
+ * * Table-Level: This rule ensures that a task cannot depend on itself. In other words, the dependent task and the task it depends on must be different.
38954
41469
  * @public
38955
41470
  * @method
38956
41471
  * @override
38957
41472
  */
38958
41473
  Validate() {
38959
41474
  const result = super.Validate();
38960
- this.ValidateVersionNumberGreaterThanZero(result);
41475
+ this.ValidateTaskIDIsNotEqualToDependsOnTaskID(result);
38961
41476
  return result;
38962
41477
  }
38963
41478
  /**
38964
- * This rule ensures that the version number must be greater than zero, meaning there should be at least one version created.
41479
+ * This rule ensures that a task cannot depend on itself. In other words, the dependent task and the task it depends on must be different.
38965
41480
  * @param result - the ValidationResult object to add any errors or warnings to
38966
41481
  * @public
38967
41482
  * @method
38968
41483
  */
38969
- ValidateVersionNumberGreaterThanZero(result) {
38970
- if (this.VersionNumber <= 0) {
38971
- result.Errors.push(new core_1.ValidationErrorInfo("VersionNumber", "The version number must be greater than zero.", this.VersionNumber, core_1.ValidationErrorType.Failure));
41484
+ ValidateTaskIDIsNotEqualToDependsOnTaskID(result) {
41485
+ if (this.TaskID === this.DependsOnTaskID) {
41486
+ result.Errors.push(new core_1.ValidationErrorInfo("TaskID", "A task cannot depend on itself. The TaskID and DependsOnTaskID must be different.", this.TaskID, core_1.ValidationErrorType.Failure));
38972
41487
  }
38973
41488
  }
38974
41489
  /**
@@ -38984,34 +41499,131 @@ let ReportVersionEntity = class ReportVersionEntity extends core_1.BaseEntity {
38984
41499
  this.Set('ID', value);
38985
41500
  }
38986
41501
  /**
38987
- * * Field Name: ReportID
38988
- * * Display Name: Report ID
41502
+ * * Field Name: TaskID
41503
+ * * Display Name: Task ID
38989
41504
  * * SQL Data Type: uniqueidentifier
38990
- * * Related Entity/Foreign Key: Reports (vwReports.ID)
41505
+ * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
38991
41506
  */
38992
- get ReportID() {
38993
- return this.Get('ReportID');
41507
+ get TaskID() {
41508
+ return this.Get('TaskID');
38994
41509
  }
38995
- set ReportID(value) {
38996
- this.Set('ReportID', value);
41510
+ set TaskID(value) {
41511
+ this.Set('TaskID', value);
38997
41512
  }
38998
41513
  /**
38999
- * * Field Name: VersionNumber
39000
- * * Display Name: Version Number
39001
- * * SQL Data Type: int
39002
- * * Description: Report version number, sequential per report starting at 1
41514
+ * * Field Name: DependsOnTaskID
41515
+ * * Display Name: Depends On Task ID
41516
+ * * SQL Data Type: uniqueidentifier
41517
+ * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
39003
41518
  */
39004
- get VersionNumber() {
39005
- return this.Get('VersionNumber');
41519
+ get DependsOnTaskID() {
41520
+ return this.Get('DependsOnTaskID');
39006
41521
  }
39007
- set VersionNumber(value) {
39008
- this.Set('VersionNumber', value);
41522
+ set DependsOnTaskID(value) {
41523
+ this.Set('DependsOnTaskID', value);
41524
+ }
41525
+ /**
41526
+ * * Field Name: DependencyType
41527
+ * * Display Name: Dependency Type
41528
+ * * SQL Data Type: nvarchar(50)
41529
+ * * Default Value: Prerequisite
41530
+ * * Value List Type: List
41531
+ * * Possible Values
41532
+ * * Prerequisite
41533
+ * * Corequisite
41534
+ * * Optional
41535
+ * * Description: Type of dependency relationship (Prerequisite, Corequisite, Optional)
41536
+ */
41537
+ get DependencyType() {
41538
+ return this.Get('DependencyType');
41539
+ }
41540
+ set DependencyType(value) {
41541
+ this.Set('DependencyType', value);
41542
+ }
41543
+ /**
41544
+ * * Field Name: __mj_CreatedAt
41545
+ * * Display Name: Created At
41546
+ * * SQL Data Type: datetimeoffset
41547
+ * * Default Value: getutcdate()
41548
+ */
41549
+ get __mj_CreatedAt() {
41550
+ return this.Get('__mj_CreatedAt');
41551
+ }
41552
+ /**
41553
+ * * Field Name: __mj_UpdatedAt
41554
+ * * Display Name: Updated At
41555
+ * * SQL Data Type: datetimeoffset
41556
+ * * Default Value: getutcdate()
41557
+ */
41558
+ get __mj_UpdatedAt() {
41559
+ return this.Get('__mj_UpdatedAt');
41560
+ }
41561
+ /**
41562
+ * * Field Name: Task
41563
+ * * Display Name: Task
41564
+ * * SQL Data Type: nvarchar(255)
41565
+ */
41566
+ get Task() {
41567
+ return this.Get('Task');
41568
+ }
41569
+ /**
41570
+ * * Field Name: DependsOnTask
41571
+ * * Display Name: Depends On Task
41572
+ * * SQL Data Type: nvarchar(255)
41573
+ */
41574
+ get DependsOnTask() {
41575
+ return this.Get('DependsOnTask');
41576
+ }
41577
+ };
41578
+ exports.TaskDependencyEntity = TaskDependencyEntity;
41579
+ exports.TaskDependencyEntity = TaskDependencyEntity = __decorate([
41580
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Task Dependencies')
41581
+ ], TaskDependencyEntity);
41582
+ /**
41583
+ * MJ: Task Types - strongly typed entity sub-class
41584
+ * * Schema: __mj
41585
+ * * Base Table: TaskType
41586
+ * * Base View: vwTaskTypes
41587
+ * * @description Categorization system for different types of tasks that can be created and managed within the system
41588
+ * * Primary Key: ID
41589
+ * @extends {BaseEntity}
41590
+ * @class
41591
+ * @public
41592
+ */
41593
+ let TaskTypeEntity = class TaskTypeEntity extends core_1.BaseEntity {
41594
+ /**
41595
+ * Loads the MJ: Task Types record from the database
41596
+ * @param ID: string - primary key value to load the MJ: Task Types record.
41597
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
41598
+ * @returns {Promise<boolean>} - true if successful, false otherwise
41599
+ * @public
41600
+ * @async
41601
+ * @memberof TaskTypeEntity
41602
+ * @method
41603
+ * @override
41604
+ */
41605
+ async Load(ID, EntityRelationshipsToLoad) {
41606
+ const compositeKey = new core_1.CompositeKey();
41607
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
41608
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
41609
+ }
41610
+ /**
41611
+ * * Field Name: ID
41612
+ * * Display Name: ID
41613
+ * * SQL Data Type: uniqueidentifier
41614
+ * * Default Value: newsequentialid()
41615
+ */
41616
+ get ID() {
41617
+ return this.Get('ID');
41618
+ }
41619
+ set ID(value) {
41620
+ this.Set('ID', value);
39009
41621
  }
39010
41622
  /**
39011
41623
  * * Field Name: Name
39012
41624
  * * Display Name: Name
39013
41625
  * * SQL Data Type: nvarchar(255)
39014
- * * Description: Name of this report version
41626
+ * * Description: Display name for the task type
39015
41627
  */
39016
41628
  get Name() {
39017
41629
  return this.Get('Name');
@@ -39023,7 +41635,7 @@ let ReportVersionEntity = class ReportVersionEntity extends core_1.BaseEntity {
39023
41635
  * * Field Name: Description
39024
41636
  * * Display Name: Description
39025
41637
  * * SQL Data Type: nvarchar(MAX)
39026
- * * Description: Description of this report version
41638
+ * * Description: Detailed description of what this task type represents and when it should be used
39027
41639
  */
39028
41640
  get Description() {
39029
41641
  return this.Get('Description');
@@ -39032,29 +41644,284 @@ let ReportVersionEntity = class ReportVersionEntity extends core_1.BaseEntity {
39032
41644
  this.Set('Description', value);
39033
41645
  }
39034
41646
  /**
39035
- * * Field Name: Configuration
39036
- * * Display Name: Configuration
41647
+ * * Field Name: __mj_CreatedAt
41648
+ * * Display Name: Created At
41649
+ * * SQL Data Type: datetimeoffset
41650
+ * * Default Value: getutcdate()
41651
+ */
41652
+ get __mj_CreatedAt() {
41653
+ return this.Get('__mj_CreatedAt');
41654
+ }
41655
+ /**
41656
+ * * Field Name: __mj_UpdatedAt
41657
+ * * Display Name: Updated At
41658
+ * * SQL Data Type: datetimeoffset
41659
+ * * Default Value: getutcdate()
41660
+ */
41661
+ get __mj_UpdatedAt() {
41662
+ return this.Get('__mj_UpdatedAt');
41663
+ }
41664
+ };
41665
+ exports.TaskTypeEntity = TaskTypeEntity;
41666
+ exports.TaskTypeEntity = TaskTypeEntity = __decorate([
41667
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Task Types')
41668
+ ], TaskTypeEntity);
41669
+ /**
41670
+ * MJ: Tasks - strongly typed entity sub-class
41671
+ * * Schema: __mj
41672
+ * * Base Table: Task
41673
+ * * Base View: vwTasks
41674
+ * * @description Core task management entity supporting multi-agent and multi-human collaboration with dependency tracking
41675
+ * * Primary Key: ID
41676
+ * @extends {BaseEntity}
41677
+ * @class
41678
+ * @public
41679
+ */
41680
+ let TaskEntity = class TaskEntity extends core_1.BaseEntity {
41681
+ /**
41682
+ * Loads the MJ: Tasks record from the database
41683
+ * @param ID: string - primary key value to load the MJ: Tasks record.
41684
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
41685
+ * @returns {Promise<boolean>} - true if successful, false otherwise
41686
+ * @public
41687
+ * @async
41688
+ * @memberof TaskEntity
41689
+ * @method
41690
+ * @override
41691
+ */
41692
+ async Load(ID, EntityRelationshipsToLoad) {
41693
+ const compositeKey = new core_1.CompositeKey();
41694
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
41695
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
41696
+ }
41697
+ /**
41698
+ * Validate() method override for MJ: Tasks entity. This is an auto-generated method that invokes the generated validators for this entity for the following fields:
41699
+ * * PercentComplete: This rule ensures that the percent complete value must always be between 0 and 100, inclusive.
41700
+ * * Table-Level: This rule ensures that you can have a user, or an agent, or neither, but you cannot have both set at the same time.
41701
+ * @public
41702
+ * @method
41703
+ * @override
41704
+ */
41705
+ Validate() {
41706
+ const result = super.Validate();
41707
+ this.ValidatePercentCompleteWithinRange(result);
41708
+ this.ValidateUserIDAndAgentIDNotBothSet(result);
41709
+ return result;
41710
+ }
41711
+ /**
41712
+ * This rule ensures that the percent complete value must always be between 0 and 100, inclusive.
41713
+ * @param result - the ValidationResult object to add any errors or warnings to
41714
+ * @public
41715
+ * @method
41716
+ */
41717
+ ValidatePercentCompleteWithinRange(result) {
41718
+ if (this.PercentComplete < 0 || this.PercentComplete > 100) {
41719
+ result.Errors.push(new core_1.ValidationErrorInfo("PercentComplete", "Percent complete must be between 0 and 100.", this.PercentComplete, core_1.ValidationErrorType.Failure));
41720
+ }
41721
+ }
41722
+ /**
41723
+ * This rule ensures that you can have a user, or an agent, or neither, but you cannot have both set at the same time.
41724
+ * @param result - the ValidationResult object to add any errors or warnings to
41725
+ * @public
41726
+ * @method
41727
+ */
41728
+ ValidateUserIDAndAgentIDNotBothSet(result) {
41729
+ if (this.UserID !== null && this.AgentID !== null) {
41730
+ result.Errors.push(new core_1.ValidationErrorInfo("UserID", "You cannot have both a User and an Agent specified at the same time.", this.UserID, core_1.ValidationErrorType.Failure));
41731
+ result.Errors.push(new core_1.ValidationErrorInfo("AgentID", "You cannot have both an Agent and a User specified at the same time.", this.AgentID, core_1.ValidationErrorType.Failure));
41732
+ }
41733
+ }
41734
+ /**
41735
+ * * Field Name: ID
41736
+ * * Display Name: ID
41737
+ * * SQL Data Type: uniqueidentifier
41738
+ * * Default Value: newsequentialid()
41739
+ */
41740
+ get ID() {
41741
+ return this.Get('ID');
41742
+ }
41743
+ set ID(value) {
41744
+ this.Set('ID', value);
41745
+ }
41746
+ /**
41747
+ * * Field Name: ParentID
41748
+ * * Display Name: Parent ID
41749
+ * * SQL Data Type: uniqueidentifier
41750
+ * * Related Entity/Foreign Key: MJ: Tasks (vwTasks.ID)
41751
+ */
41752
+ get ParentID() {
41753
+ return this.Get('ParentID');
41754
+ }
41755
+ set ParentID(value) {
41756
+ this.Set('ParentID', value);
41757
+ }
41758
+ /**
41759
+ * * Field Name: Name
41760
+ * * Display Name: Name
41761
+ * * SQL Data Type: nvarchar(255)
41762
+ * * Description: Display name for the task
41763
+ */
41764
+ get Name() {
41765
+ return this.Get('Name');
41766
+ }
41767
+ set Name(value) {
41768
+ this.Set('Name', value);
41769
+ }
41770
+ /**
41771
+ * * Field Name: Description
41772
+ * * Display Name: Description
39037
41773
  * * SQL Data Type: nvarchar(MAX)
39038
- * * Description: JSON configuration of report structure, layout and logic
41774
+ * * Description: Detailed description of the task requirements and objectives
39039
41775
  */
39040
- get Configuration() {
39041
- return this.Get('Configuration');
41776
+ get Description() {
41777
+ return this.Get('Description');
39042
41778
  }
39043
- set Configuration(value) {
39044
- this.Set('Configuration', value);
41779
+ set Description(value) {
41780
+ this.Set('Description', value);
39045
41781
  }
39046
41782
  /**
39047
- * * Field Name: DataContextUpdated
39048
- * * Display Name: Data Context Updated
39049
- * * SQL Data Type: bit
41783
+ * * Field Name: TypeID
41784
+ * * Display Name: Type ID
41785
+ * * SQL Data Type: uniqueidentifier
41786
+ * * Related Entity/Foreign Key: MJ: Task Types (vwTaskTypes.ID)
41787
+ */
41788
+ get TypeID() {
41789
+ return this.Get('TypeID');
41790
+ }
41791
+ set TypeID(value) {
41792
+ this.Set('TypeID', value);
41793
+ }
41794
+ /**
41795
+ * * Field Name: EnvironmentID
41796
+ * * Display Name: Environment ID
41797
+ * * SQL Data Type: uniqueidentifier
41798
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
41799
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
41800
+ */
41801
+ get EnvironmentID() {
41802
+ return this.Get('EnvironmentID');
41803
+ }
41804
+ set EnvironmentID(value) {
41805
+ this.Set('EnvironmentID', value);
41806
+ }
41807
+ /**
41808
+ * * Field Name: ProjectID
41809
+ * * Display Name: Project ID
41810
+ * * SQL Data Type: uniqueidentifier
41811
+ * * Related Entity/Foreign Key: MJ: Projects (vwProjects.ID)
41812
+ */
41813
+ get ProjectID() {
41814
+ return this.Get('ProjectID');
41815
+ }
41816
+ set ProjectID(value) {
41817
+ this.Set('ProjectID', value);
41818
+ }
41819
+ /**
41820
+ * * Field Name: ConversationDetailID
41821
+ * * Display Name: Conversation Detail ID
41822
+ * * SQL Data Type: uniqueidentifier
41823
+ * * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
41824
+ */
41825
+ get ConversationDetailID() {
41826
+ return this.Get('ConversationDetailID');
41827
+ }
41828
+ set ConversationDetailID(value) {
41829
+ this.Set('ConversationDetailID', value);
41830
+ }
41831
+ /**
41832
+ * * Field Name: UserID
41833
+ * * Display Name: User ID
41834
+ * * SQL Data Type: uniqueidentifier
41835
+ * * Related Entity/Foreign Key: Users (vwUsers.ID)
41836
+ */
41837
+ get UserID() {
41838
+ return this.Get('UserID');
41839
+ }
41840
+ set UserID(value) {
41841
+ this.Set('UserID', value);
41842
+ }
41843
+ /**
41844
+ * * Field Name: AgentID
41845
+ * * Display Name: Agent ID
41846
+ * * SQL Data Type: uniqueidentifier
41847
+ * * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
41848
+ */
41849
+ get AgentID() {
41850
+ return this.Get('AgentID');
41851
+ }
41852
+ set AgentID(value) {
41853
+ this.Set('AgentID', value);
41854
+ }
41855
+ /**
41856
+ * * Field Name: Status
41857
+ * * Display Name: Status
41858
+ * * SQL Data Type: nvarchar(50)
41859
+ * * Default Value: Pending
41860
+ * * Value List Type: List
41861
+ * * Possible Values
41862
+ * * Pending
41863
+ * * In Progress
41864
+ * * Complete
41865
+ * * Cancelled
41866
+ * * Failed
41867
+ * * Blocked
41868
+ * * Deferred
41869
+ * * Description: Current status of the task (Pending, In Progress, Complete, Cancelled, Failed, Blocked, Deferred)
41870
+ */
41871
+ get Status() {
41872
+ return this.Get('Status');
41873
+ }
41874
+ set Status(value) {
41875
+ this.Set('Status', value);
41876
+ }
41877
+ /**
41878
+ * * Field Name: PercentComplete
41879
+ * * Display Name: Percent Complete
41880
+ * * SQL Data Type: int
39050
41881
  * * Default Value: 0
39051
- * * Description: Indicates if the data context was updated in this version
41882
+ * * Description: Completion percentage for tracking progress (0-100)
39052
41883
  */
39053
- get DataContextUpdated() {
39054
- return this.Get('DataContextUpdated');
41884
+ get PercentComplete() {
41885
+ return this.Get('PercentComplete');
39055
41886
  }
39056
- set DataContextUpdated(value) {
39057
- this.Set('DataContextUpdated', value);
41887
+ set PercentComplete(value) {
41888
+ this.Set('PercentComplete', value);
41889
+ }
41890
+ /**
41891
+ * * Field Name: DueAt
41892
+ * * Display Name: Due At
41893
+ * * SQL Data Type: datetimeoffset
41894
+ * * Description: Due date and time for task completion
41895
+ */
41896
+ get DueAt() {
41897
+ return this.Get('DueAt');
41898
+ }
41899
+ set DueAt(value) {
41900
+ this.Set('DueAt', value);
41901
+ }
41902
+ /**
41903
+ * * Field Name: StartedAt
41904
+ * * Display Name: Started At
41905
+ * * SQL Data Type: datetimeoffset
41906
+ * * Description: Timestamp when work on the task began
41907
+ */
41908
+ get StartedAt() {
41909
+ return this.Get('StartedAt');
41910
+ }
41911
+ set StartedAt(value) {
41912
+ this.Set('StartedAt', value);
41913
+ }
41914
+ /**
41915
+ * * Field Name: CompletedAt
41916
+ * * Display Name: Completed At
41917
+ * * SQL Data Type: datetimeoffset
41918
+ * * Description: Timestamp when the task was completed
41919
+ */
41920
+ get CompletedAt() {
41921
+ return this.Get('CompletedAt');
41922
+ }
41923
+ set CompletedAt(value) {
41924
+ this.Set('CompletedAt', value);
39058
41925
  }
39059
41926
  /**
39060
41927
  * * Field Name: __mj_CreatedAt
@@ -39075,18 +41942,58 @@ let ReportVersionEntity = class ReportVersionEntity extends core_1.BaseEntity {
39075
41942
  return this.Get('__mj_UpdatedAt');
39076
41943
  }
39077
41944
  /**
39078
- * * Field Name: Report
39079
- * * Display Name: Report
41945
+ * * Field Name: Parent
41946
+ * * Display Name: Parent
39080
41947
  * * SQL Data Type: nvarchar(255)
39081
41948
  */
39082
- get Report() {
39083
- return this.Get('Report');
41949
+ get Parent() {
41950
+ return this.Get('Parent');
41951
+ }
41952
+ /**
41953
+ * * Field Name: Type
41954
+ * * Display Name: Type
41955
+ * * SQL Data Type: nvarchar(255)
41956
+ */
41957
+ get Type() {
41958
+ return this.Get('Type');
41959
+ }
41960
+ /**
41961
+ * * Field Name: Environment
41962
+ * * Display Name: Environment
41963
+ * * SQL Data Type: nvarchar(255)
41964
+ */
41965
+ get Environment() {
41966
+ return this.Get('Environment');
41967
+ }
41968
+ /**
41969
+ * * Field Name: Project
41970
+ * * Display Name: Project
41971
+ * * SQL Data Type: nvarchar(255)
41972
+ */
41973
+ get Project() {
41974
+ return this.Get('Project');
41975
+ }
41976
+ /**
41977
+ * * Field Name: User
41978
+ * * Display Name: User
41979
+ * * SQL Data Type: nvarchar(100)
41980
+ */
41981
+ get User() {
41982
+ return this.Get('User');
41983
+ }
41984
+ /**
41985
+ * * Field Name: Agent
41986
+ * * Display Name: Agent
41987
+ * * SQL Data Type: nvarchar(255)
41988
+ */
41989
+ get Agent() {
41990
+ return this.Get('Agent');
39084
41991
  }
39085
41992
  };
39086
- exports.ReportVersionEntity = ReportVersionEntity;
39087
- exports.ReportVersionEntity = ReportVersionEntity = __decorate([
39088
- (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Report Versions')
39089
- ], ReportVersionEntity);
41993
+ exports.TaskEntity = TaskEntity;
41994
+ exports.TaskEntity = TaskEntity = __decorate([
41995
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Tasks')
41996
+ ], TaskEntity);
39090
41997
  /**
39091
41998
  * Output Delivery Types - strongly typed entity sub-class
39092
41999
  * * Schema: __mj
@@ -42679,6 +45586,19 @@ let ReportEntity = class ReportEntity extends core_1.BaseEntity {
42679
45586
  this.Set('Thumbnail', value);
42680
45587
  }
42681
45588
  /**
45589
+ * * Field Name: EnvironmentID
45590
+ * * Display Name: Environment ID
45591
+ * * SQL Data Type: uniqueidentifier
45592
+ * * Related Entity/Foreign Key: MJ: Environments (vwEnvironments.ID)
45593
+ * * Default Value: F51358F3-9447-4176-B313-BF8025FD8D09
45594
+ */
45595
+ get EnvironmentID() {
45596
+ return this.Get('EnvironmentID');
45597
+ }
45598
+ set EnvironmentID(value) {
45599
+ this.Set('EnvironmentID', value);
45600
+ }
45601
+ /**
42682
45602
  * * Field Name: Category
42683
45603
  * * Display Name: Category
42684
45604
  * * SQL Data Type: nvarchar(100)
@@ -42742,6 +45662,14 @@ let ReportEntity = class ReportEntity extends core_1.BaseEntity {
42742
45662
  get OutputWorkflow() {
42743
45663
  return this.Get('OutputWorkflow');
42744
45664
  }
45665
+ /**
45666
+ * * Field Name: Environment
45667
+ * * Display Name: Environment
45668
+ * * SQL Data Type: nvarchar(255)
45669
+ */
45670
+ get Environment() {
45671
+ return this.Get('Environment');
45672
+ }
42745
45673
  };
42746
45674
  exports.ReportEntity = ReportEntity;
42747
45675
  exports.ReportEntity = ReportEntity = __decorate([