@memberjunction/core-entities 2.2.1 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,12 +6,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- 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.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.AIModelSchema = exports.AIModelTypeSchema = exports.AIModelActionSchema = exports.AIActionSchema = exports.ActionSchema = exports.ActionResultCodeSchema = exports.ActionParamSchema = exports.ActionLibrarySchema = exports.ActionFilterSchema = exports.ActionExecutionLogSchema = exports.ActionContextSchema = exports.ActionContextTypeSchema = exports.ActionCategorySchema = exports.ActionAuthorizationSchema = void 0;
10
- 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.QueryCategorySchema = exports.QuerySchema = exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = exports.OutputDeliveryTypeSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = exports.IntegrationSchema = exports.IntegrationURLFormatSchema = exports.flyway_schema_historySchema = 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 = void 0;
11
- exports.ApplicationEntityEntity = exports.AIModelEntity = exports.AIModelTypeEntity = exports.AIModelActionEntity = 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 = 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.ReportSchema = exports.ReportSnapshotSchema = void 0;
12
- 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.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 = void 0;
13
- 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.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.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.flyway_schema_historyEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.ExplorerNavigationItemEntity = exports.ErrorLogEntity = exports.EntitySettingEntity = exports.EntityRelationshipEntity = void 0;
14
- 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 = void 0;
9
+ 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.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.AIActionSchema = exports.ActionSchema = exports.ActionResultCodeSchema = exports.ActionParamSchema = exports.ActionLibrarySchema = exports.ActionFilterSchema = exports.ActionExecutionLogSchema = exports.ActionContextSchema = exports.ActionContextTypeSchema = exports.ActionCategorySchema = exports.ActionAuthorizationSchema = void 0;
10
+ exports.RecordChangeReplayRunSchema = exports.RecommendationSchema = exports.RecommendationRunSchema = exports.RecommendationProviderSchema = exports.RecommendationItemSchema = exports.QueueSchema = exports.QueueTypeSchema = exports.QueueTaskSchema = exports.QueryPermissionSchema = exports.QueryFieldSchema = exports.QueryCategorySchema = exports.QuerySchema = exports.OutputTriggerTypeSchema = exports.OutputFormatTypeSchema = exports.OutputDeliveryTypeSchema = exports.ListSchema = exports.ListDetailSchema = exports.ListCategorySchema = exports.LibraryItemSchema = exports.LibrarySchema = exports.IntegrationSchema = exports.IntegrationURLFormatSchema = exports.flyway_schema_historySchema = 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 = void 0;
11
+ 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 = 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.ReportSchema = exports.ReportSnapshotSchema = exports.ReportCategorySchema = exports.RecordMergeLogSchema = exports.RecordMergeDeletionLogSchema = exports.RecordChangeSchema = void 0;
12
+ 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.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 = void 0;
13
+ exports.ScheduledActionEntity = exports.ScheduledActionParamEntity = exports.RowLevelSecurityFilterEntity = exports.RoleEntity = exports.ResourceTypeEntity = 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.QueryCategoryEntity = exports.QueryEntity = exports.OutputTriggerTypeEntity = exports.OutputFormatTypeEntity = exports.OutputDeliveryTypeEntity = exports.ListEntity = exports.ListDetailEntity = exports.ListCategoryEntity = exports.LibraryItemEntity = exports.LibraryEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.flyway_schema_historyEntity = 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 = void 0;
14
+ 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 = void 0;
15
15
  const core_1 = require("@memberjunction/core");
16
16
  const global_1 = require("@memberjunction/global");
17
17
  const zod_1 = require("zod");
@@ -754,11 +754,231 @@ exports.AIModelSchema = zod_1.z.object({
754
754
  * * SQL Data Type: int
755
755
  * * Default Value: 0
756
756
  * * Description: Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.`),
757
+ ModelSelectionInsights: zod_1.z.string().nullish().describe(`
758
+ * * Field Name: ModelSelectionInsights
759
+ * * Display Name: Model Selection Insights
760
+ * * SQL Data Type: nvarchar(MAX)
761
+ * * Default Value: null
762
+ * * Description: This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.`),
757
763
  AIModelType: zod_1.z.string().describe(`
758
764
  * * Field Name: AIModelType
759
765
  * * Display Name: AIModel Type
760
766
  * * SQL Data Type: nvarchar(50)`),
761
767
  });
768
+ /**
769
+ * zod schema definition for the entity AI Prompt Categories
770
+ */
771
+ exports.AIPromptCategorySchema = zod_1.z.object({
772
+ ID: zod_1.z.string().describe(`
773
+ * * Field Name: ID
774
+ * * Display Name: ID
775
+ * * SQL Data Type: uniqueidentifier
776
+ * * Default Value: newsequentialid()`),
777
+ Name: zod_1.z.string().describe(`
778
+ * * Field Name: Name
779
+ * * Display Name: Name
780
+ * * SQL Data Type: nvarchar(255)`),
781
+ ParentID: zod_1.z.string().nullish().describe(`
782
+ * * Field Name: ParentID
783
+ * * Display Name: Parent ID
784
+ * * SQL Data Type: uniqueidentifier
785
+ * * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
786
+ * * Description: Parent category ID for hierarchical organization.`),
787
+ Description: zod_1.z.string().nullish().describe(`
788
+ * * Field Name: Description
789
+ * * Display Name: Description
790
+ * * SQL Data Type: nvarchar(MAX)`),
791
+ __mj_CreatedAt: zod_1.z.date().describe(`
792
+ * * Field Name: __mj_CreatedAt
793
+ * * Display Name: Created At
794
+ * * SQL Data Type: datetimeoffset
795
+ * * Default Value: getutcdate()`),
796
+ __mj_UpdatedAt: zod_1.z.date().describe(`
797
+ * * Field Name: __mj_UpdatedAt
798
+ * * Display Name: Updated At
799
+ * * SQL Data Type: datetimeoffset
800
+ * * Default Value: getutcdate()`),
801
+ Parent: zod_1.z.string().nullish().describe(`
802
+ * * Field Name: Parent
803
+ * * Display Name: Parent
804
+ * * SQL Data Type: nvarchar(255)`),
805
+ });
806
+ /**
807
+ * zod schema definition for the entity AI Prompt Types
808
+ */
809
+ exports.AIPromptTypeSchema = zod_1.z.object({
810
+ ID: zod_1.z.string().describe(`
811
+ * * Field Name: ID
812
+ * * Display Name: ID
813
+ * * SQL Data Type: uniqueidentifier
814
+ * * Default Value: newsequentialid()`),
815
+ Name: zod_1.z.string().describe(`
816
+ * * Field Name: Name
817
+ * * Display Name: Name
818
+ * * SQL Data Type: nvarchar(255)`),
819
+ Description: zod_1.z.string().nullish().describe(`
820
+ * * Field Name: Description
821
+ * * Display Name: Description
822
+ * * SQL Data Type: nvarchar(MAX)`),
823
+ __mj_CreatedAt: zod_1.z.date().describe(`
824
+ * * Field Name: __mj_CreatedAt
825
+ * * Display Name: Created At
826
+ * * SQL Data Type: datetimeoffset
827
+ * * Default Value: getutcdate()`),
828
+ __mj_UpdatedAt: zod_1.z.date().describe(`
829
+ * * Field Name: __mj_UpdatedAt
830
+ * * Display Name: Updated At
831
+ * * SQL Data Type: datetimeoffset
832
+ * * Default Value: getutcdate()`),
833
+ });
834
+ /**
835
+ * zod schema definition for the entity AI Prompts
836
+ */
837
+ exports.AIPromptSchema = zod_1.z.object({
838
+ ID: zod_1.z.string().describe(`
839
+ * * Field Name: ID
840
+ * * Display Name: ID
841
+ * * SQL Data Type: uniqueidentifier
842
+ * * Default Value: newsequentialid()`),
843
+ Name: zod_1.z.string().describe(`
844
+ * * Field Name: Name
845
+ * * Display Name: Name
846
+ * * SQL Data Type: nvarchar(255)`),
847
+ Description: zod_1.z.string().nullish().describe(`
848
+ * * Field Name: Description
849
+ * * Display Name: Description
850
+ * * SQL Data Type: nvarchar(MAX)`),
851
+ TemplateID: zod_1.z.string().describe(`
852
+ * * Field Name: TemplateID
853
+ * * Display Name: Template ID
854
+ * * SQL Data Type: uniqueidentifier
855
+ * * Related Entity/Foreign Key: Templates (vwTemplates.ID)
856
+ * * Description: Reference to the template used for the prompt.`),
857
+ CategoryID: zod_1.z.string().nullish().describe(`
858
+ * * Field Name: CategoryID
859
+ * * Display Name: Category ID
860
+ * * SQL Data Type: uniqueidentifier
861
+ * * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
862
+ * * Description: Reference to the category the prompt belongs to.`),
863
+ TypeID: zod_1.z.string().describe(`
864
+ * * Field Name: TypeID
865
+ * * Display Name: Type ID
866
+ * * SQL Data Type: uniqueidentifier
867
+ * * Related Entity/Foreign Key: AI Prompt Types (vwAIPromptTypes.ID)
868
+ * * Description: Reference to the type of the prompt.`),
869
+ Status: zod_1.z.union([zod_1.z.literal('Pending'), zod_1.z.literal('Active'), zod_1.z.literal('Disabled')]).describe(`
870
+ * * Field Name: Status
871
+ * * Display Name: Status
872
+ * * SQL Data Type: nvarchar(50)
873
+ * * Value List Type: List
874
+ * * Possible Values
875
+ * * Pending
876
+ * * Active
877
+ * * Disabled`),
878
+ CacheResults: zod_1.z.boolean().describe(`
879
+ * * Field Name: CacheResults
880
+ * * Display Name: Cache Results
881
+ * * SQL Data Type: bit
882
+ * * Default Value: 0
883
+ * * Description: Indicates whether the results of the prompt should be cached.`),
884
+ CacheExpiration: zod_1.z.number().describe(`
885
+ * * Field Name: CacheExpiration
886
+ * * Display Name: Cache Expiration
887
+ * * SQL Data Type: decimal(10, 2)
888
+ * * Default Value: 0
889
+ * * Description: Number of hours the cache is valid for; can be fractional or 0 if the cache never expires.`),
890
+ __mj_CreatedAt: zod_1.z.date().describe(`
891
+ * * Field Name: __mj_CreatedAt
892
+ * * Display Name: Created At
893
+ * * SQL Data Type: datetimeoffset
894
+ * * Default Value: getutcdate()`),
895
+ __mj_UpdatedAt: zod_1.z.date().describe(`
896
+ * * Field Name: __mj_UpdatedAt
897
+ * * Display Name: Updated At
898
+ * * SQL Data Type: datetimeoffset
899
+ * * Default Value: getutcdate()`),
900
+ Template: zod_1.z.string().describe(`
901
+ * * Field Name: Template
902
+ * * Display Name: Template
903
+ * * SQL Data Type: nvarchar(255)`),
904
+ Category: zod_1.z.string().nullish().describe(`
905
+ * * Field Name: Category
906
+ * * Display Name: Category
907
+ * * SQL Data Type: nvarchar(255)`),
908
+ Type: zod_1.z.string().describe(`
909
+ * * Field Name: Type
910
+ * * Display Name: Type
911
+ * * SQL Data Type: nvarchar(255)`),
912
+ });
913
+ /**
914
+ * zod schema definition for the entity AI Result Cache
915
+ */
916
+ exports.AIResultCacheSchema = zod_1.z.object({
917
+ ID: zod_1.z.string().describe(`
918
+ * * Field Name: ID
919
+ * * Display Name: ID
920
+ * * SQL Data Type: uniqueidentifier
921
+ * * Default Value: newsequentialid()`),
922
+ AIPromptID: zod_1.z.string().describe(`
923
+ * * Field Name: AIPromptID
924
+ * * Display Name: AIPrompt ID
925
+ * * SQL Data Type: uniqueidentifier
926
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
927
+ * * Description: Reference to the AI prompt this result corresponds to.`),
928
+ AIModelID: zod_1.z.string().describe(`
929
+ * * Field Name: AIModelID
930
+ * * Display Name: AIModel ID
931
+ * * SQL Data Type: uniqueidentifier
932
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
933
+ * * Description: Reference to the AI model that generated this result.`),
934
+ RunAt: zod_1.z.date().describe(`
935
+ * * Field Name: RunAt
936
+ * * Display Name: Run At
937
+ * * SQL Data Type: datetimeoffset
938
+ * * Description: Timestamp of when this result was generated.`),
939
+ PromptText: zod_1.z.string().describe(`
940
+ * * Field Name: PromptText
941
+ * * Display Name: Prompt Text
942
+ * * SQL Data Type: nvarchar(MAX)
943
+ * * Description: The prompt text used to generate this result.`),
944
+ ResultText: zod_1.z.string().nullish().describe(`
945
+ * * Field Name: ResultText
946
+ * * Display Name: Result Text
947
+ * * SQL Data Type: nvarchar(MAX)
948
+ * * Description: The text of the result generated by the AI model.`),
949
+ Status: zod_1.z.union([zod_1.z.literal('Active'), zod_1.z.literal('Expired')]).describe(`
950
+ * * Field Name: Status
951
+ * * Display Name: Status
952
+ * * SQL Data Type: nvarchar(50)
953
+ * * Value List Type: List
954
+ * * Possible Values
955
+ * * Active
956
+ * * Expired
957
+ * * Description: The status of this result, indicating whether it is currently active or expired.`),
958
+ ExpiredOn: zod_1.z.date().nullish().describe(`
959
+ * * Field Name: ExpiredOn
960
+ * * Display Name: Expired On
961
+ * * SQL Data Type: datetimeoffset
962
+ * * Description: Timestamp of when this result was marked as expired.`),
963
+ __mj_CreatedAt: zod_1.z.date().describe(`
964
+ * * Field Name: __mj_CreatedAt
965
+ * * Display Name: Created At
966
+ * * SQL Data Type: datetimeoffset
967
+ * * Default Value: getutcdate()`),
968
+ __mj_UpdatedAt: zod_1.z.date().describe(`
969
+ * * Field Name: __mj_UpdatedAt
970
+ * * Display Name: Updated At
971
+ * * SQL Data Type: datetimeoffset
972
+ * * Default Value: getutcdate()`),
973
+ AIPrompt: zod_1.z.string().describe(`
974
+ * * Field Name: AIPrompt
975
+ * * Display Name: AIPrompt
976
+ * * SQL Data Type: nvarchar(255)`),
977
+ AIModel: zod_1.z.string().describe(`
978
+ * * Field Name: AIModel
979
+ * * Display Name: AIModel
980
+ * * SQL Data Type: nvarchar(50)`),
981
+ });
762
982
  /**
763
983
  * zod schema definition for the entity Application Entities
764
984
  */
@@ -1647,7 +1867,8 @@ exports.CompanyIntegrationRunSchema = zod_1.z.object({
1647
1867
  RunByUser: zod_1.z.string().describe(`
1648
1868
  * * Field Name: RunByUser
1649
1869
  * * Display Name: Run By User
1650
- * * SQL Data Type: nvarchar(100)`),
1870
+ * * SQL Data Type: nvarchar(100)
1871
+ * * Default Value: null`),
1651
1872
  });
1652
1873
  /**
1653
1874
  * zod schema definition for the entity Company Integrations
@@ -9847,6 +10068,19 @@ let AIModelEntity = class AIModelEntity extends core_1.BaseEntity {
9847
10068
  this.Set('CostRank', value);
9848
10069
  }
9849
10070
  /**
10071
+ * * Field Name: ModelSelectionInsights
10072
+ * * Display Name: Model Selection Insights
10073
+ * * SQL Data Type: nvarchar(MAX)
10074
+ * * Default Value: null
10075
+ * * Description: This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.
10076
+ */
10077
+ get ModelSelectionInsights() {
10078
+ return this.Get('ModelSelectionInsights');
10079
+ }
10080
+ set ModelSelectionInsights(value) {
10081
+ this.Set('ModelSelectionInsights', value);
10082
+ }
10083
+ /**
9850
10084
  * * Field Name: AIModelType
9851
10085
  * * Display Name: AIModel Type
9852
10086
  * * SQL Data Type: nvarchar(50)
@@ -9859,6 +10093,544 @@ exports.AIModelEntity = AIModelEntity;
9859
10093
  exports.AIModelEntity = AIModelEntity = __decorate([
9860
10094
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Models')
9861
10095
  ], AIModelEntity);
10096
+ /**
10097
+ * AI Prompt Categories - strongly typed entity sub-class
10098
+ * * Schema: __mj
10099
+ * * Base Table: AIPromptCategory
10100
+ * * Base View: vwAIPromptCategories
10101
+ * * @description Categories for organizing AI prompts in a hierarchical structure.
10102
+ * * Primary Key: ID
10103
+ * @extends {BaseEntity}
10104
+ * @class
10105
+ * @public
10106
+ */
10107
+ let AIPromptCategoryEntity = class AIPromptCategoryEntity extends core_1.BaseEntity {
10108
+ /**
10109
+ * Loads the AI Prompt Categories record from the database
10110
+ * @param ID: string - primary key value to load the AI Prompt Categories record.
10111
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
10112
+ * @returns {Promise<boolean>} - true if successful, false otherwise
10113
+ * @public
10114
+ * @async
10115
+ * @memberof AIPromptCategoryEntity
10116
+ * @method
10117
+ * @override
10118
+ */
10119
+ async Load(ID, EntityRelationshipsToLoad = null) {
10120
+ const compositeKey = new core_1.CompositeKey();
10121
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
10122
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
10123
+ }
10124
+ /**
10125
+ * * Field Name: ID
10126
+ * * Display Name: ID
10127
+ * * SQL Data Type: uniqueidentifier
10128
+ * * Default Value: newsequentialid()
10129
+ */
10130
+ get ID() {
10131
+ return this.Get('ID');
10132
+ }
10133
+ /**
10134
+ * * Field Name: Name
10135
+ * * Display Name: Name
10136
+ * * SQL Data Type: nvarchar(255)
10137
+ */
10138
+ get Name() {
10139
+ return this.Get('Name');
10140
+ }
10141
+ set Name(value) {
10142
+ this.Set('Name', value);
10143
+ }
10144
+ /**
10145
+ * * Field Name: ParentID
10146
+ * * Display Name: Parent ID
10147
+ * * SQL Data Type: uniqueidentifier
10148
+ * * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
10149
+ * * Description: Parent category ID for hierarchical organization.
10150
+ */
10151
+ get ParentID() {
10152
+ return this.Get('ParentID');
10153
+ }
10154
+ set ParentID(value) {
10155
+ this.Set('ParentID', value);
10156
+ }
10157
+ /**
10158
+ * * Field Name: Description
10159
+ * * Display Name: Description
10160
+ * * SQL Data Type: nvarchar(MAX)
10161
+ */
10162
+ get Description() {
10163
+ return this.Get('Description');
10164
+ }
10165
+ set Description(value) {
10166
+ this.Set('Description', value);
10167
+ }
10168
+ /**
10169
+ * * Field Name: __mj_CreatedAt
10170
+ * * Display Name: Created At
10171
+ * * SQL Data Type: datetimeoffset
10172
+ * * Default Value: getutcdate()
10173
+ */
10174
+ get __mj_CreatedAt() {
10175
+ return this.Get('__mj_CreatedAt');
10176
+ }
10177
+ /**
10178
+ * * Field Name: __mj_UpdatedAt
10179
+ * * Display Name: Updated At
10180
+ * * SQL Data Type: datetimeoffset
10181
+ * * Default Value: getutcdate()
10182
+ */
10183
+ get __mj_UpdatedAt() {
10184
+ return this.Get('__mj_UpdatedAt');
10185
+ }
10186
+ /**
10187
+ * * Field Name: Parent
10188
+ * * Display Name: Parent
10189
+ * * SQL Data Type: nvarchar(255)
10190
+ */
10191
+ get Parent() {
10192
+ return this.Get('Parent');
10193
+ }
10194
+ };
10195
+ exports.AIPromptCategoryEntity = AIPromptCategoryEntity;
10196
+ exports.AIPromptCategoryEntity = AIPromptCategoryEntity = __decorate([
10197
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Prompt Categories')
10198
+ ], AIPromptCategoryEntity);
10199
+ /**
10200
+ * AI Prompt Types - strongly typed entity sub-class
10201
+ * * Schema: __mj
10202
+ * * Base Table: AIPromptType
10203
+ * * Base View: vwAIPromptTypes
10204
+ * * @description Types of AI prompts such as Chat, Text-to-Image, Text-to-Video, etc.
10205
+ * * Primary Key: ID
10206
+ * @extends {BaseEntity}
10207
+ * @class
10208
+ * @public
10209
+ */
10210
+ let AIPromptTypeEntity = class AIPromptTypeEntity extends core_1.BaseEntity {
10211
+ /**
10212
+ * Loads the AI Prompt Types record from the database
10213
+ * @param ID: string - primary key value to load the AI Prompt Types record.
10214
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
10215
+ * @returns {Promise<boolean>} - true if successful, false otherwise
10216
+ * @public
10217
+ * @async
10218
+ * @memberof AIPromptTypeEntity
10219
+ * @method
10220
+ * @override
10221
+ */
10222
+ async Load(ID, EntityRelationshipsToLoad = null) {
10223
+ const compositeKey = new core_1.CompositeKey();
10224
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
10225
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
10226
+ }
10227
+ /**
10228
+ * * Field Name: ID
10229
+ * * Display Name: ID
10230
+ * * SQL Data Type: uniqueidentifier
10231
+ * * Default Value: newsequentialid()
10232
+ */
10233
+ get ID() {
10234
+ return this.Get('ID');
10235
+ }
10236
+ /**
10237
+ * * Field Name: Name
10238
+ * * Display Name: Name
10239
+ * * SQL Data Type: nvarchar(255)
10240
+ */
10241
+ get Name() {
10242
+ return this.Get('Name');
10243
+ }
10244
+ set Name(value) {
10245
+ this.Set('Name', value);
10246
+ }
10247
+ /**
10248
+ * * Field Name: Description
10249
+ * * Display Name: Description
10250
+ * * SQL Data Type: nvarchar(MAX)
10251
+ */
10252
+ get Description() {
10253
+ return this.Get('Description');
10254
+ }
10255
+ set Description(value) {
10256
+ this.Set('Description', value);
10257
+ }
10258
+ /**
10259
+ * * Field Name: __mj_CreatedAt
10260
+ * * Display Name: Created At
10261
+ * * SQL Data Type: datetimeoffset
10262
+ * * Default Value: getutcdate()
10263
+ */
10264
+ get __mj_CreatedAt() {
10265
+ return this.Get('__mj_CreatedAt');
10266
+ }
10267
+ /**
10268
+ * * Field Name: __mj_UpdatedAt
10269
+ * * Display Name: Updated At
10270
+ * * SQL Data Type: datetimeoffset
10271
+ * * Default Value: getutcdate()
10272
+ */
10273
+ get __mj_UpdatedAt() {
10274
+ return this.Get('__mj_UpdatedAt');
10275
+ }
10276
+ };
10277
+ exports.AIPromptTypeEntity = AIPromptTypeEntity;
10278
+ exports.AIPromptTypeEntity = AIPromptTypeEntity = __decorate([
10279
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Prompt Types')
10280
+ ], AIPromptTypeEntity);
10281
+ /**
10282
+ * AI Prompts - strongly typed entity sub-class
10283
+ * * Schema: __mj
10284
+ * * Base Table: AIPrompt
10285
+ * * Base View: vwAIPrompts
10286
+ * * @description Stores AI prompts, including references to categories, types, and templates.
10287
+ * * Primary Key: ID
10288
+ * @extends {BaseEntity}
10289
+ * @class
10290
+ * @public
10291
+ */
10292
+ let AIPromptEntity = class AIPromptEntity extends core_1.BaseEntity {
10293
+ /**
10294
+ * Loads the AI Prompts record from the database
10295
+ * @param ID: string - primary key value to load the AI Prompts record.
10296
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
10297
+ * @returns {Promise<boolean>} - true if successful, false otherwise
10298
+ * @public
10299
+ * @async
10300
+ * @memberof AIPromptEntity
10301
+ * @method
10302
+ * @override
10303
+ */
10304
+ async Load(ID, EntityRelationshipsToLoad = null) {
10305
+ const compositeKey = new core_1.CompositeKey();
10306
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
10307
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
10308
+ }
10309
+ /**
10310
+ * * Field Name: ID
10311
+ * * Display Name: ID
10312
+ * * SQL Data Type: uniqueidentifier
10313
+ * * Default Value: newsequentialid()
10314
+ */
10315
+ get ID() {
10316
+ return this.Get('ID');
10317
+ }
10318
+ /**
10319
+ * * Field Name: Name
10320
+ * * Display Name: Name
10321
+ * * SQL Data Type: nvarchar(255)
10322
+ */
10323
+ get Name() {
10324
+ return this.Get('Name');
10325
+ }
10326
+ set Name(value) {
10327
+ this.Set('Name', value);
10328
+ }
10329
+ /**
10330
+ * * Field Name: Description
10331
+ * * Display Name: Description
10332
+ * * SQL Data Type: nvarchar(MAX)
10333
+ */
10334
+ get Description() {
10335
+ return this.Get('Description');
10336
+ }
10337
+ set Description(value) {
10338
+ this.Set('Description', value);
10339
+ }
10340
+ /**
10341
+ * * Field Name: TemplateID
10342
+ * * Display Name: Template ID
10343
+ * * SQL Data Type: uniqueidentifier
10344
+ * * Related Entity/Foreign Key: Templates (vwTemplates.ID)
10345
+ * * Description: Reference to the template used for the prompt.
10346
+ */
10347
+ get TemplateID() {
10348
+ return this.Get('TemplateID');
10349
+ }
10350
+ set TemplateID(value) {
10351
+ this.Set('TemplateID', value);
10352
+ }
10353
+ /**
10354
+ * * Field Name: CategoryID
10355
+ * * Display Name: Category ID
10356
+ * * SQL Data Type: uniqueidentifier
10357
+ * * Related Entity/Foreign Key: AI Prompt Categories (vwAIPromptCategories.ID)
10358
+ * * Description: Reference to the category the prompt belongs to.
10359
+ */
10360
+ get CategoryID() {
10361
+ return this.Get('CategoryID');
10362
+ }
10363
+ set CategoryID(value) {
10364
+ this.Set('CategoryID', value);
10365
+ }
10366
+ /**
10367
+ * * Field Name: TypeID
10368
+ * * Display Name: Type ID
10369
+ * * SQL Data Type: uniqueidentifier
10370
+ * * Related Entity/Foreign Key: AI Prompt Types (vwAIPromptTypes.ID)
10371
+ * * Description: Reference to the type of the prompt.
10372
+ */
10373
+ get TypeID() {
10374
+ return this.Get('TypeID');
10375
+ }
10376
+ set TypeID(value) {
10377
+ this.Set('TypeID', value);
10378
+ }
10379
+ /**
10380
+ * * Field Name: Status
10381
+ * * Display Name: Status
10382
+ * * SQL Data Type: nvarchar(50)
10383
+ * * Value List Type: List
10384
+ * * Possible Values
10385
+ * * Pending
10386
+ * * Active
10387
+ * * Disabled
10388
+ */
10389
+ get Status() {
10390
+ return this.Get('Status');
10391
+ }
10392
+ set Status(value) {
10393
+ this.Set('Status', value);
10394
+ }
10395
+ /**
10396
+ * * Field Name: CacheResults
10397
+ * * Display Name: Cache Results
10398
+ * * SQL Data Type: bit
10399
+ * * Default Value: 0
10400
+ * * Description: Indicates whether the results of the prompt should be cached.
10401
+ */
10402
+ get CacheResults() {
10403
+ return this.Get('CacheResults');
10404
+ }
10405
+ set CacheResults(value) {
10406
+ this.Set('CacheResults', value);
10407
+ }
10408
+ /**
10409
+ * * Field Name: CacheExpiration
10410
+ * * Display Name: Cache Expiration
10411
+ * * SQL Data Type: decimal(10, 2)
10412
+ * * Default Value: 0
10413
+ * * Description: Number of hours the cache is valid for; can be fractional or 0 if the cache never expires.
10414
+ */
10415
+ get CacheExpiration() {
10416
+ return this.Get('CacheExpiration');
10417
+ }
10418
+ set CacheExpiration(value) {
10419
+ this.Set('CacheExpiration', value);
10420
+ }
10421
+ /**
10422
+ * * Field Name: __mj_CreatedAt
10423
+ * * Display Name: Created At
10424
+ * * SQL Data Type: datetimeoffset
10425
+ * * Default Value: getutcdate()
10426
+ */
10427
+ get __mj_CreatedAt() {
10428
+ return this.Get('__mj_CreatedAt');
10429
+ }
10430
+ /**
10431
+ * * Field Name: __mj_UpdatedAt
10432
+ * * Display Name: Updated At
10433
+ * * SQL Data Type: datetimeoffset
10434
+ * * Default Value: getutcdate()
10435
+ */
10436
+ get __mj_UpdatedAt() {
10437
+ return this.Get('__mj_UpdatedAt');
10438
+ }
10439
+ /**
10440
+ * * Field Name: Template
10441
+ * * Display Name: Template
10442
+ * * SQL Data Type: nvarchar(255)
10443
+ */
10444
+ get Template() {
10445
+ return this.Get('Template');
10446
+ }
10447
+ /**
10448
+ * * Field Name: Category
10449
+ * * Display Name: Category
10450
+ * * SQL Data Type: nvarchar(255)
10451
+ */
10452
+ get Category() {
10453
+ return this.Get('Category');
10454
+ }
10455
+ /**
10456
+ * * Field Name: Type
10457
+ * * Display Name: Type
10458
+ * * SQL Data Type: nvarchar(255)
10459
+ */
10460
+ get Type() {
10461
+ return this.Get('Type');
10462
+ }
10463
+ };
10464
+ exports.AIPromptEntity = AIPromptEntity;
10465
+ exports.AIPromptEntity = AIPromptEntity = __decorate([
10466
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Prompts')
10467
+ ], AIPromptEntity);
10468
+ /**
10469
+ * AI Result Cache - strongly typed entity sub-class
10470
+ * * Schema: __mj
10471
+ * * Base Table: AIResultCache
10472
+ * * Base View: vwAIResultCaches
10473
+ * * @description Stores cached results of AI prompts, including multiple runs for history and tracking purposes.
10474
+ * * Primary Key: ID
10475
+ * @extends {BaseEntity}
10476
+ * @class
10477
+ * @public
10478
+ */
10479
+ let AIResultCacheEntity = class AIResultCacheEntity extends core_1.BaseEntity {
10480
+ /**
10481
+ * Loads the AI Result Cache record from the database
10482
+ * @param ID: string - primary key value to load the AI Result Cache record.
10483
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
10484
+ * @returns {Promise<boolean>} - true if successful, false otherwise
10485
+ * @public
10486
+ * @async
10487
+ * @memberof AIResultCacheEntity
10488
+ * @method
10489
+ * @override
10490
+ */
10491
+ async Load(ID, EntityRelationshipsToLoad = null) {
10492
+ const compositeKey = new core_1.CompositeKey();
10493
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
10494
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
10495
+ }
10496
+ /**
10497
+ * * Field Name: ID
10498
+ * * Display Name: ID
10499
+ * * SQL Data Type: uniqueidentifier
10500
+ * * Default Value: newsequentialid()
10501
+ */
10502
+ get ID() {
10503
+ return this.Get('ID');
10504
+ }
10505
+ /**
10506
+ * * Field Name: AIPromptID
10507
+ * * Display Name: AIPrompt ID
10508
+ * * SQL Data Type: uniqueidentifier
10509
+ * * Related Entity/Foreign Key: AI Prompts (vwAIPrompts.ID)
10510
+ * * Description: Reference to the AI prompt this result corresponds to.
10511
+ */
10512
+ get AIPromptID() {
10513
+ return this.Get('AIPromptID');
10514
+ }
10515
+ set AIPromptID(value) {
10516
+ this.Set('AIPromptID', value);
10517
+ }
10518
+ /**
10519
+ * * Field Name: AIModelID
10520
+ * * Display Name: AIModel ID
10521
+ * * SQL Data Type: uniqueidentifier
10522
+ * * Related Entity/Foreign Key: AI Models (vwAIModels.ID)
10523
+ * * Description: Reference to the AI model that generated this result.
10524
+ */
10525
+ get AIModelID() {
10526
+ return this.Get('AIModelID');
10527
+ }
10528
+ set AIModelID(value) {
10529
+ this.Set('AIModelID', value);
10530
+ }
10531
+ /**
10532
+ * * Field Name: RunAt
10533
+ * * Display Name: Run At
10534
+ * * SQL Data Type: datetimeoffset
10535
+ * * Description: Timestamp of when this result was generated.
10536
+ */
10537
+ get RunAt() {
10538
+ return this.Get('RunAt');
10539
+ }
10540
+ set RunAt(value) {
10541
+ this.Set('RunAt', value);
10542
+ }
10543
+ /**
10544
+ * * Field Name: PromptText
10545
+ * * Display Name: Prompt Text
10546
+ * * SQL Data Type: nvarchar(MAX)
10547
+ * * Description: The prompt text used to generate this result.
10548
+ */
10549
+ get PromptText() {
10550
+ return this.Get('PromptText');
10551
+ }
10552
+ set PromptText(value) {
10553
+ this.Set('PromptText', value);
10554
+ }
10555
+ /**
10556
+ * * Field Name: ResultText
10557
+ * * Display Name: Result Text
10558
+ * * SQL Data Type: nvarchar(MAX)
10559
+ * * Description: The text of the result generated by the AI model.
10560
+ */
10561
+ get ResultText() {
10562
+ return this.Get('ResultText');
10563
+ }
10564
+ set ResultText(value) {
10565
+ this.Set('ResultText', value);
10566
+ }
10567
+ /**
10568
+ * * Field Name: Status
10569
+ * * Display Name: Status
10570
+ * * SQL Data Type: nvarchar(50)
10571
+ * * Value List Type: List
10572
+ * * Possible Values
10573
+ * * Active
10574
+ * * Expired
10575
+ * * Description: The status of this result, indicating whether it is currently active or expired.
10576
+ */
10577
+ get Status() {
10578
+ return this.Get('Status');
10579
+ }
10580
+ set Status(value) {
10581
+ this.Set('Status', value);
10582
+ }
10583
+ /**
10584
+ * * Field Name: ExpiredOn
10585
+ * * Display Name: Expired On
10586
+ * * SQL Data Type: datetimeoffset
10587
+ * * Description: Timestamp of when this result was marked as expired.
10588
+ */
10589
+ get ExpiredOn() {
10590
+ return this.Get('ExpiredOn');
10591
+ }
10592
+ set ExpiredOn(value) {
10593
+ this.Set('ExpiredOn', value);
10594
+ }
10595
+ /**
10596
+ * * Field Name: __mj_CreatedAt
10597
+ * * Display Name: Created At
10598
+ * * SQL Data Type: datetimeoffset
10599
+ * * Default Value: getutcdate()
10600
+ */
10601
+ get __mj_CreatedAt() {
10602
+ return this.Get('__mj_CreatedAt');
10603
+ }
10604
+ /**
10605
+ * * Field Name: __mj_UpdatedAt
10606
+ * * Display Name: Updated At
10607
+ * * SQL Data Type: datetimeoffset
10608
+ * * Default Value: getutcdate()
10609
+ */
10610
+ get __mj_UpdatedAt() {
10611
+ return this.Get('__mj_UpdatedAt');
10612
+ }
10613
+ /**
10614
+ * * Field Name: AIPrompt
10615
+ * * Display Name: AIPrompt
10616
+ * * SQL Data Type: nvarchar(255)
10617
+ */
10618
+ get AIPrompt() {
10619
+ return this.Get('AIPrompt');
10620
+ }
10621
+ /**
10622
+ * * Field Name: AIModel
10623
+ * * Display Name: AIModel
10624
+ * * SQL Data Type: nvarchar(50)
10625
+ */
10626
+ get AIModel() {
10627
+ return this.Get('AIModel');
10628
+ }
10629
+ };
10630
+ exports.AIResultCacheEntity = AIResultCacheEntity;
10631
+ exports.AIResultCacheEntity = AIResultCacheEntity = __decorate([
10632
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'AI Result Cache')
10633
+ ], AIResultCacheEntity);
9862
10634
  /**
9863
10635
  * Application Entities - strongly typed entity sub-class
9864
10636
  * * Schema: __mj
@@ -12303,6 +13075,7 @@ let CompanyIntegrationRunEntity = class CompanyIntegrationRunEntity extends core
12303
13075
  * * Field Name: RunByUser
12304
13076
  * * Display Name: Run By User
12305
13077
  * * SQL Data Type: nvarchar(100)
13078
+ * * Default Value: null
12306
13079
  */
12307
13080
  get RunByUser() {
12308
13081
  return this.Get('RunByUser');