@memberjunction/core-entities 1.3.3 → 1.4.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.
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.DashboardEntity = exports.QueueTaskEntity = exports.QueueEntity = exports.QueueTypeEntity = exports.AIModelTypeEntity = exports.EntityAIActionEntity = exports.AIModelActionEntity = exports.AIActionEntity = exports.AIModelEntity = exports.EntityFieldValueEntity = exports.AuditLogTypeEntity = exports.AuthorizationRoleEntity = exports.AuthorizationEntity = exports.AuditLogEntity = exports.RowLevelSecurityFilterEntity = exports.UserRoleEntity = exports.RecordChangeEntity = exports.WorkflowEngineEntity = exports.WorkflowEntity = exports.WorkflowRunEntity = exports.UserViewRunDetailEntity = exports.UserViewRunEntity = exports.ListDetailEntity = exports.ListEntity = exports.CompanyIntegrationRunAPILogEntity = exports.UserApplicationEntity = exports.UserApplicationEntityEntity = exports.EntityPermissionEntity = exports.ApplicationEntityEntity = exports.ApplicationEntity = exports.ErrorLogEntity = exports.CompanyIntegrationRunDetailEntity = exports.CompanyIntegrationRunEntity = exports.UserViewEntity = exports.UserRecordLogEntity = exports.EntityRelationshipEntity = exports.UserEntity = exports.EntityEntity = exports.EntityFieldEntity = exports.CompanyIntegrationEntity = exports.IntegrationEntity = exports.IntegrationURLFormatEntity = exports.SkillEntity = exports.RoleEntity = exports.EmployeeSkillEntity = exports.EmployeeRoleEntity = exports.EmployeeCompanyIntegrationEntity = exports.UserFavoriteEntity = exports.EmployeeEntity = exports.CompanyEntity = void 0;
10
- exports.DuplicateRunDetailEntity = exports.DuplicateRunEntity = exports.EntitySettingEntity = exports.EntityDocumentSettingEntity = exports.DuplicateRunDetailMatchEntity = exports.VersionInstallationEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.ReportCategoryEntity = exports.DashboardCategoryEntity = exports.UserViewCategoryEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.EntityDocumentEntity = exports.EntityRecordDocumentEntity = exports.VectorDatabaseEntity = exports.EntityDocumentRunEntity = exports.EntityDocumentTypeEntity = exports.VectorIndexEntity = exports.QueryPermissionEntity = exports.QueryEntity = exports.QueryCategoryEntity = exports.QueryFieldEntity = exports.RecordMergeDeletionLogEntity = exports.RecordMergeLogEntity = exports.CompanyIntegrationRecordMapEntity = exports.SchemaInfoEntity = exports.UserNotificationEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.DatasetItemEntity = exports.DatasetEntity = exports.WorkspaceItemEntity = exports.WorkspaceEntity = exports.TaggedItemEntity = exports.TagEntity = exports.ResourceTypeEntity = exports.ReportSnapshotEntity = exports.ReportEntity = exports.OutputDeliveryTypeEntity = exports.OutputFormatTypeEntity = exports.OutputTriggerTypeEntity = void 0;
10
+ exports.ApplicationSettingEntity = exports.EntityBehaviorTypeEntity = exports.EntityBehaviorEntity = exports.DuplicateRunDetailEntity = exports.DuplicateRunEntity = exports.EntitySettingEntity = exports.EntityDocumentSettingEntity = exports.DuplicateRunDetailMatchEntity = exports.VersionInstallationEntity = exports.FileEntityRecordLinkEntity = exports.FileCategoryEntity = exports.FileEntity = exports.FileStorageProviderEntity = exports.ReportCategoryEntity = exports.DashboardCategoryEntity = exports.UserViewCategoryEntity = exports.DataContextEntity = exports.DataContextItemEntity = exports.EntityDocumentEntity = exports.EntityRecordDocumentEntity = exports.VectorDatabaseEntity = exports.EntityDocumentRunEntity = exports.EntityDocumentTypeEntity = exports.VectorIndexEntity = exports.QueryPermissionEntity = exports.QueryEntity = exports.QueryCategoryEntity = exports.QueryFieldEntity = exports.RecordMergeDeletionLogEntity = exports.RecordMergeLogEntity = exports.CompanyIntegrationRecordMapEntity = exports.SchemaInfoEntity = exports.UserNotificationEntity = exports.ConversationEntity = exports.ConversationDetailEntity = exports.DatasetItemEntity = exports.DatasetEntity = exports.WorkspaceItemEntity = exports.WorkspaceEntity = exports.TaggedItemEntity = exports.TagEntity = exports.ResourceTypeEntity = exports.ReportSnapshotEntity = exports.ReportEntity = exports.OutputDeliveryTypeEntity = exports.OutputFormatTypeEntity = exports.OutputTriggerTypeEntity = void 0;
11
11
  const core_1 = require("@memberjunction/core");
12
12
  const global_1 = require("@memberjunction/global");
13
13
  /**
@@ -4049,7 +4049,7 @@ let ApplicationEntity = class ApplicationEntity extends core_1.BaseEntity {
4049
4049
  }
4050
4050
  /**
4051
4051
  * * Field Name: Description
4052
- * * SQL Data Type: nvarchar(500)
4052
+ * * SQL Data Type: nvarchar(MAX)
4053
4053
  */
4054
4054
  get Description() {
4055
4055
  return this.Get('Description');
@@ -14386,4 +14386,340 @@ exports.DuplicateRunDetailEntity = DuplicateRunDetailEntity;
14386
14386
  exports.DuplicateRunDetailEntity = DuplicateRunDetailEntity = __decorate([
14387
14387
  (0, global_1.RegisterClass)(core_1.BaseEntity, 'Duplicate Run Details')
14388
14388
  ], DuplicateRunDetailEntity);
14389
+ /**
14390
+ * Entity Behaviors - strongly typed entity sub-class
14391
+ * * Schema: __mj
14392
+ * * Base Table: EntityBehavior
14393
+ * * Base View: vwEntityBehaviors
14394
+ * * @description Stores the behaviors for each entity and is used for code generation and injection of behavior code into various areas of the system.
14395
+ * * Primary Key: ID
14396
+ * @extends {BaseEntity}
14397
+ * @class
14398
+ * @public
14399
+ */
14400
+ let EntityBehaviorEntity = class EntityBehaviorEntity extends core_1.BaseEntity {
14401
+ /**
14402
+ * Loads the Entity Behaviors record from the database
14403
+ * @param ID: number - primary key value to load the Entity Behaviors record.
14404
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
14405
+ * @returns {Promise<boolean>} - true if successful, false otherwise
14406
+ * @public
14407
+ * @async
14408
+ * @memberof EntityBehaviorEntity
14409
+ * @method
14410
+ * @override
14411
+ */
14412
+ async Load(ID, EntityRelationshipsToLoad = null) {
14413
+ const compositeKey = new core_1.CompositeKey();
14414
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
14415
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
14416
+ }
14417
+ /**
14418
+ * * Field Name: ID
14419
+ * * Display Name: ID
14420
+ * * SQL Data Type: int
14421
+ */
14422
+ get ID() {
14423
+ return this.Get('ID');
14424
+ }
14425
+ /**
14426
+ * * Field Name: EntityID
14427
+ * * Display Name: Entity ID
14428
+ * * SQL Data Type: int
14429
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
14430
+ */
14431
+ get EntityID() {
14432
+ return this.Get('EntityID');
14433
+ }
14434
+ set EntityID(value) {
14435
+ this.Set('EntityID', value);
14436
+ }
14437
+ /**
14438
+ * * Field Name: BehaviorTypeID
14439
+ * * Display Name: Behavior Type ID
14440
+ * * SQL Data Type: int
14441
+ * * Related Entity/Foreign Key: Entity Behavior Types (vwEntityBehaviorTypes.ID)
14442
+ */
14443
+ get BehaviorTypeID() {
14444
+ return this.Get('BehaviorTypeID');
14445
+ }
14446
+ set BehaviorTypeID(value) {
14447
+ this.Set('BehaviorTypeID', value);
14448
+ }
14449
+ /**
14450
+ * * Field Name: Description
14451
+ * * Display Name: Description
14452
+ * * SQL Data Type: nvarchar(MAX)
14453
+ * * Description: This field will be used by the AI system to generate code that corresponds to the requested behavior and inject the code into the appropriate part(s) of the system.
14454
+ */
14455
+ get Description() {
14456
+ return this.Get('Description');
14457
+ }
14458
+ set Description(value) {
14459
+ this.Set('Description', value);
14460
+ }
14461
+ /**
14462
+ * * Field Name: RegenerateCode
14463
+ * * Display Name: Regenerate Code
14464
+ * * SQL Data Type: bit
14465
+ * * Default Value: 0
14466
+ * * Description: This bit field is automatically turned on whenever the Description field is changed so that a future server process will pick it up and regenerate the code. This might happen asynchronously or synchronously depending on system setup.
14467
+ */
14468
+ get RegenerateCode() {
14469
+ return this.Get('RegenerateCode');
14470
+ }
14471
+ set RegenerateCode(value) {
14472
+ this.Set('RegenerateCode', value);
14473
+ }
14474
+ /**
14475
+ * * Field Name: Code
14476
+ * * Display Name: Code
14477
+ * * SQL Data Type: nvarchar(MAX)
14478
+ * * Description: This is the code that implements the desired behavior. If the CodeGenerated bit is set to 1, each time CodeGen runs, it will use the Code specified here in the appropriate place(s). To override the generated code and prevent it from being changed in the future, set CodeGenerated = 0
14479
+ */
14480
+ get Code() {
14481
+ return this.Get('Code');
14482
+ }
14483
+ set Code(value) {
14484
+ this.Set('Code', value);
14485
+ }
14486
+ /**
14487
+ * * Field Name: CodeExplanation
14488
+ * * Display Name: Code Explanation
14489
+ * * SQL Data Type: nvarchar(MAX)
14490
+ * * Description: When an AI model generates code this will be populated with the AI's explanation of how the code works to meet the requirements of the behavior. For a non-generated piece of code a developer could manually place an explanation in this field.
14491
+ */
14492
+ get CodeExplanation() {
14493
+ return this.Get('CodeExplanation');
14494
+ }
14495
+ set CodeExplanation(value) {
14496
+ this.Set('CodeExplanation', value);
14497
+ }
14498
+ /**
14499
+ * * Field Name: CodeGenerated
14500
+ * * Display Name: Code Generated
14501
+ * * SQL Data Type: bit
14502
+ * * Default Value: 1
14503
+ */
14504
+ get CodeGenerated() {
14505
+ return this.Get('CodeGenerated');
14506
+ }
14507
+ set CodeGenerated(value) {
14508
+ this.Set('CodeGenerated', value);
14509
+ }
14510
+ /**
14511
+ * * Field Name: CreatedAt
14512
+ * * Display Name: Created At
14513
+ * * SQL Data Type: datetime
14514
+ * * Default Value: getdate()
14515
+ */
14516
+ get CreatedAt() {
14517
+ return this.Get('CreatedAt');
14518
+ }
14519
+ /**
14520
+ * * Field Name: UpdatedAt
14521
+ * * Display Name: Updated At
14522
+ * * SQL Data Type: datetime
14523
+ * * Default Value: getdate()
14524
+ */
14525
+ get UpdatedAt() {
14526
+ return this.Get('UpdatedAt');
14527
+ }
14528
+ /**
14529
+ * * Field Name: Entity
14530
+ * * Display Name: Entity
14531
+ * * SQL Data Type: nvarchar(255)
14532
+ */
14533
+ get Entity() {
14534
+ return this.Get('Entity');
14535
+ }
14536
+ };
14537
+ exports.EntityBehaviorEntity = EntityBehaviorEntity;
14538
+ exports.EntityBehaviorEntity = EntityBehaviorEntity = __decorate([
14539
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'Entity Behaviors')
14540
+ ], EntityBehaviorEntity);
14541
+ /**
14542
+ * Entity Behavior Types - strongly typed entity sub-class
14543
+ * * Schema: __mj
14544
+ * * Base Table: EntityBehaviorType
14545
+ * * Base View: vwEntityBehaviorTypes
14546
+ * * @description This table stores the list of possible behavior types to use in the Entity Behavior Types entity.
14547
+ * * Primary Key: ID
14548
+ * @extends {BaseEntity}
14549
+ * @class
14550
+ * @public
14551
+ */
14552
+ let EntityBehaviorTypeEntity = class EntityBehaviorTypeEntity extends core_1.BaseEntity {
14553
+ /**
14554
+ * Loads the Entity Behavior Types record from the database
14555
+ * @param ID: number - primary key value to load the Entity Behavior Types record.
14556
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
14557
+ * @returns {Promise<boolean>} - true if successful, false otherwise
14558
+ * @public
14559
+ * @async
14560
+ * @memberof EntityBehaviorTypeEntity
14561
+ * @method
14562
+ * @override
14563
+ */
14564
+ async Load(ID, EntityRelationshipsToLoad = null) {
14565
+ const compositeKey = new core_1.CompositeKey();
14566
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
14567
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
14568
+ }
14569
+ /**
14570
+ * * Field Name: ID
14571
+ * * Display Name: ID
14572
+ * * SQL Data Type: int
14573
+ */
14574
+ get ID() {
14575
+ return this.Get('ID');
14576
+ }
14577
+ /**
14578
+ * * Field Name: Name
14579
+ * * Display Name: Name
14580
+ * * SQL Data Type: nvarchar(100)
14581
+ * * Description: The name of the behavior, a unique column for the table.
14582
+ */
14583
+ get Name() {
14584
+ return this.Get('Name');
14585
+ }
14586
+ set Name(value) {
14587
+ this.Set('Name', value);
14588
+ }
14589
+ /**
14590
+ * * Field Name: Description
14591
+ * * Display Name: Description
14592
+ * * SQL Data Type: nvarchar(MAX)
14593
+ */
14594
+ get Description() {
14595
+ return this.Get('Description');
14596
+ }
14597
+ set Description(value) {
14598
+ this.Set('Description', value);
14599
+ }
14600
+ /**
14601
+ * * Field Name: CreatedAt
14602
+ * * Display Name: Created At
14603
+ * * SQL Data Type: datetime
14604
+ */
14605
+ get CreatedAt() {
14606
+ return this.Get('CreatedAt');
14607
+ }
14608
+ /**
14609
+ * * Field Name: UpdatedAt
14610
+ * * Display Name: Updated At
14611
+ * * SQL Data Type: datetime
14612
+ * * Default Value: getdate()
14613
+ */
14614
+ get UpdatedAt() {
14615
+ return this.Get('UpdatedAt');
14616
+ }
14617
+ };
14618
+ exports.EntityBehaviorTypeEntity = EntityBehaviorTypeEntity;
14619
+ exports.EntityBehaviorTypeEntity = EntityBehaviorTypeEntity = __decorate([
14620
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'Entity Behavior Types')
14621
+ ], EntityBehaviorTypeEntity);
14622
+ /**
14623
+ * Application Settings - strongly typed entity sub-class
14624
+ * * Schema: __mj
14625
+ * * Base Table: ApplicationSetting
14626
+ * * Base View: vwApplicationSettings
14627
+ * * Primary Key: ID
14628
+ * @extends {BaseEntity}
14629
+ * @class
14630
+ * @public
14631
+ */
14632
+ let ApplicationSettingEntity = class ApplicationSettingEntity extends core_1.BaseEntity {
14633
+ /**
14634
+ * Loads the Application Settings record from the database
14635
+ * @param ID: number - primary key value to load the Application Settings record.
14636
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
14637
+ * @returns {Promise<boolean>} - true if successful, false otherwise
14638
+ * @public
14639
+ * @async
14640
+ * @memberof ApplicationSettingEntity
14641
+ * @method
14642
+ * @override
14643
+ */
14644
+ async Load(ID, EntityRelationshipsToLoad = null) {
14645
+ const compositeKey = new core_1.CompositeKey();
14646
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
14647
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
14648
+ }
14649
+ /**
14650
+ * * Field Name: ID
14651
+ * * Display Name: ID
14652
+ * * SQL Data Type: int
14653
+ */
14654
+ get ID() {
14655
+ return this.Get('ID');
14656
+ }
14657
+ /**
14658
+ * * Field Name: ApplicationName
14659
+ * * Display Name: Application Name
14660
+ * * SQL Data Type: nvarchar(50)
14661
+ * * Related Entity/Foreign Key: Applications (vwApplications.Name)
14662
+ */
14663
+ get ApplicationName() {
14664
+ return this.Get('ApplicationName');
14665
+ }
14666
+ set ApplicationName(value) {
14667
+ this.Set('ApplicationName', value);
14668
+ }
14669
+ /**
14670
+ * * Field Name: Name
14671
+ * * Display Name: Name
14672
+ * * SQL Data Type: nvarchar(100)
14673
+ */
14674
+ get Name() {
14675
+ return this.Get('Name');
14676
+ }
14677
+ set Name(value) {
14678
+ this.Set('Name', value);
14679
+ }
14680
+ /**
14681
+ * * Field Name: Value
14682
+ * * Display Name: Value
14683
+ * * SQL Data Type: nvarchar(MAX)
14684
+ */
14685
+ get Value() {
14686
+ return this.Get('Value');
14687
+ }
14688
+ set Value(value) {
14689
+ this.Set('Value', value);
14690
+ }
14691
+ /**
14692
+ * * Field Name: Comments
14693
+ * * Display Name: Comments
14694
+ * * SQL Data Type: nvarchar(MAX)
14695
+ */
14696
+ get Comments() {
14697
+ return this.Get('Comments');
14698
+ }
14699
+ set Comments(value) {
14700
+ this.Set('Comments', value);
14701
+ }
14702
+ /**
14703
+ * * Field Name: CreatedAt
14704
+ * * Display Name: Created At
14705
+ * * SQL Data Type: datetime
14706
+ * * Default Value: getdate()
14707
+ */
14708
+ get CreatedAt() {
14709
+ return this.Get('CreatedAt');
14710
+ }
14711
+ /**
14712
+ * * Field Name: UpdatedAt
14713
+ * * Display Name: Updated At
14714
+ * * SQL Data Type: datetime
14715
+ * * Default Value: getdate()
14716
+ */
14717
+ get UpdatedAt() {
14718
+ return this.Get('UpdatedAt');
14719
+ }
14720
+ };
14721
+ exports.ApplicationSettingEntity = ApplicationSettingEntity;
14722
+ exports.ApplicationSettingEntity = ApplicationSettingEntity = __decorate([
14723
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'Application Settings')
14724
+ ], ApplicationSettingEntity);
14389
14725
  //# sourceMappingURL=entity_subclasses.js.map