@memberjunction/core-entities 0.9.156 → 0.9.157

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.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.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
  /**
@@ -2570,17 +2570,6 @@ let UserEntity = class UserEntity extends core_1.BaseEntity {
2570
2570
  return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
2571
2571
  }
2572
2572
  /**
2573
- * Users - AllowDeleteAPI is set to 0 in the database. Delete is not allowed, so this method is generated to override the base class method and throw an error. To enable delete for this entity, set AllowDeleteAPI to 1 in the database.
2574
- * @public
2575
- * @method
2576
- * @override
2577
- * @memberof UserEntity
2578
- * @throws {Error} - Delete is not allowed for Users, to enable it set AllowDeleteAPI to 1 in the database.
2579
- */
2580
- async Delete() {
2581
- throw new Error('Delete is not allowed for Users, to enable it set AllowDeleteAPI to 1 in the database.');
2582
- }
2583
- /**
2584
2573
  * * Field Name: ID
2585
2574
  * * SQL Data Type: int
2586
2575
  */
@@ -4544,17 +4533,6 @@ let UserApplicationEntity = class UserApplicationEntity extends core_1.BaseEntit
4544
4533
  return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
4545
4534
  }
4546
4535
  /**
4547
- * User Applications - AllowDeleteAPI is set to 0 in the database. Delete is not allowed, so this method is generated to override the base class method and throw an error. To enable delete for this entity, set AllowDeleteAPI to 1 in the database.
4548
- * @public
4549
- * @method
4550
- * @override
4551
- * @memberof UserApplicationEntity
4552
- * @throws {Error} - Delete is not allowed for User Applications, to enable it set AllowDeleteAPI to 1 in the database.
4553
- */
4554
- async Delete() {
4555
- throw new Error('Delete is not allowed for User Applications, to enable it set AllowDeleteAPI to 1 in the database.');
4556
- }
4557
- /**
4558
4536
  * * Field Name: ID
4559
4537
  * * SQL Data Type: int
4560
4538
  */
@@ -5709,17 +5687,6 @@ let UserRoleEntity = class UserRoleEntity extends core_1.BaseEntity {
5709
5687
  return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
5710
5688
  }
5711
5689
  /**
5712
- * User Roles - AllowDeleteAPI is set to 0 in the database. Delete is not allowed, so this method is generated to override the base class method and throw an error. To enable delete for this entity, set AllowDeleteAPI to 1 in the database.
5713
- * @public
5714
- * @method
5715
- * @override
5716
- * @memberof UserRoleEntity
5717
- * @throws {Error} - Delete is not allowed for User Roles, to enable it set AllowDeleteAPI to 1 in the database.
5718
- */
5719
- async Delete() {
5720
- throw new Error('Delete is not allowed for User Roles, to enable it set AllowDeleteAPI to 1 in the database.');
5721
- }
5722
- /**
5723
5690
  * * Field Name: ID
5724
5691
  * * Display Name: ID
5725
5692
  * * SQL Data Type: int
@@ -8938,17 +8905,6 @@ let TaggedItemEntity = class TaggedItemEntity extends core_1.BaseEntity {
8938
8905
  throw new Error('Save is not allowed for Tagged Items, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.');
8939
8906
  }
8940
8907
  /**
8941
- * Tagged Items - AllowDeleteAPI is set to 0 in the database. Delete is not allowed, so this method is generated to override the base class method and throw an error. To enable delete for this entity, set AllowDeleteAPI to 1 in the database.
8942
- * @public
8943
- * @method
8944
- * @override
8945
- * @memberof TaggedItemEntity
8946
- * @throws {Error} - Delete is not allowed for Tagged Items, to enable it set AllowDeleteAPI to 1 in the database.
8947
- */
8948
- async Delete() {
8949
- throw new Error('Delete is not allowed for Tagged Items, to enable it set AllowDeleteAPI to 1 in the database.');
8950
- }
8951
- /**
8952
8908
  * * Field Name: ID
8953
8909
  * * Display Name: ID
8954
8910
  * * SQL Data Type: int
@@ -9839,17 +9795,6 @@ let UserNotificationEntity = class UserNotificationEntity extends core_1.BaseEnt
9839
9795
  return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
9840
9796
  }
9841
9797
  /**
9842
- * User Notifications - AllowDeleteAPI is set to 0 in the database. Delete is not allowed, so this method is generated to override the base class method and throw an error. To enable delete for this entity, set AllowDeleteAPI to 1 in the database.
9843
- * @public
9844
- * @method
9845
- * @override
9846
- * @memberof UserNotificationEntity
9847
- * @throws {Error} - Delete is not allowed for User Notifications, to enable it set AllowDeleteAPI to 1 in the database.
9848
- */
9849
- async Delete() {
9850
- throw new Error('Delete is not allowed for User Notifications, to enable it set AllowDeleteAPI to 1 in the database.');
9851
- }
9852
- /**
9853
9798
  * * Field Name: ID
9854
9799
  * * Display Name: ID
9855
9800
  * * SQL Data Type: int
@@ -10780,17 +10725,6 @@ let QueryCategoryEntity = class QueryCategoryEntity extends core_1.BaseEntity {
10780
10725
  return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
10781
10726
  }
10782
10727
  /**
10783
- * Query Categories - AllowDeleteAPI is set to 0 in the database. Delete is not allowed, so this method is generated to override the base class method and throw an error. To enable delete for this entity, set AllowDeleteAPI to 1 in the database.
10784
- * @public
10785
- * @method
10786
- * @override
10787
- * @memberof QueryCategoryEntity
10788
- * @throws {Error} - Delete is not allowed for Query Categories, to enable it set AllowDeleteAPI to 1 in the database.
10789
- */
10790
- async Delete() {
10791
- throw new Error('Delete is not allowed for Query Categories, to enable it set AllowDeleteAPI to 1 in the database.');
10792
- }
10793
- /**
10794
10728
  * * Field Name: ID
10795
10729
  * * Display Name: ID
10796
10730
  * * SQL Data Type: int
@@ -12238,17 +12172,6 @@ let UserViewCategoryEntity = class UserViewCategoryEntity extends core_1.BaseEnt
12238
12172
  return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
12239
12173
  }
12240
12174
  /**
12241
- * User View Categories - AllowDeleteAPI is set to 0 in the database. Delete is not allowed, so this method is generated to override the base class method and throw an error. To enable delete for this entity, set AllowDeleteAPI to 1 in the database.
12242
- * @public
12243
- * @method
12244
- * @override
12245
- * @memberof UserViewCategoryEntity
12246
- * @throws {Error} - Delete is not allowed for User View Categories, to enable it set AllowDeleteAPI to 1 in the database.
12247
- */
12248
- async Delete() {
12249
- throw new Error('Delete is not allowed for User View Categories, to enable it set AllowDeleteAPI to 1 in the database.');
12250
- }
12251
- /**
12252
12175
  * * Field Name: ID
12253
12176
  * * Display Name: ID
12254
12177
  * * SQL Data Type: int
@@ -12349,17 +12272,6 @@ let DashboardCategoryEntity = class DashboardCategoryEntity extends core_1.BaseE
12349
12272
  return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
12350
12273
  }
12351
12274
  /**
12352
- * Dashboard Categories - AllowDeleteAPI is set to 0 in the database. Delete is not allowed, so this method is generated to override the base class method and throw an error. To enable delete for this entity, set AllowDeleteAPI to 1 in the database.
12353
- * @public
12354
- * @method
12355
- * @override
12356
- * @memberof DashboardCategoryEntity
12357
- * @throws {Error} - Delete is not allowed for Dashboard Categories, to enable it set AllowDeleteAPI to 1 in the database.
12358
- */
12359
- async Delete() {
12360
- throw new Error('Delete is not allowed for Dashboard Categories, to enable it set AllowDeleteAPI to 1 in the database.');
12361
- }
12362
- /**
12363
12275
  * * Field Name: ID
12364
12276
  * * Display Name: ID
12365
12277
  * * SQL Data Type: int
@@ -12460,15 +12372,115 @@ let ReportCategoryEntity = class ReportCategoryEntity extends core_1.BaseEntity
12460
12372
  return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
12461
12373
  }
12462
12374
  /**
12463
- * Report Categories - AllowDeleteAPI is set to 0 in the database. Delete is not allowed, so this method is generated to override the base class method and throw an error. To enable delete for this entity, set AllowDeleteAPI to 1 in the database.
12375
+ * * Field Name: ID
12376
+ * * Display Name: ID
12377
+ * * SQL Data Type: int
12378
+ */
12379
+ get ID() {
12380
+ return this.Get('ID');
12381
+ }
12382
+ /**
12383
+ * * Field Name: Name
12384
+ * * Display Name: Name
12385
+ * * SQL Data Type: nvarchar(100)
12386
+ */
12387
+ get Name() {
12388
+ return this.Get('Name');
12389
+ }
12390
+ set Name(value) {
12391
+ this.Set('Name', value);
12392
+ }
12393
+ /**
12394
+ * * Field Name: Description
12395
+ * * Display Name: Description
12396
+ * * SQL Data Type: nvarchar(MAX)
12397
+ */
12398
+ get Description() {
12399
+ return this.Get('Description');
12400
+ }
12401
+ set Description(value) {
12402
+ this.Set('Description', value);
12403
+ }
12404
+ /**
12405
+ * * Field Name: ParentID
12406
+ * * Display Name: Parent ID
12407
+ * * SQL Data Type: int
12408
+ * * Related Entity/Foreign Key: Report Categories (vwReportCategories.ID)
12409
+ */
12410
+ get ParentID() {
12411
+ return this.Get('ParentID');
12412
+ }
12413
+ set ParentID(value) {
12414
+ this.Set('ParentID', value);
12415
+ }
12416
+ /**
12417
+ * * Field Name: CreatedAt
12418
+ * * Display Name: Created At
12419
+ * * SQL Data Type: datetime
12420
+ * * Default Value: getdate()
12421
+ */
12422
+ get CreatedAt() {
12423
+ return this.Get('CreatedAt');
12424
+ }
12425
+ /**
12426
+ * * Field Name: UpdatedAt
12427
+ * * Display Name: Updated At
12428
+ * * SQL Data Type: datetime
12429
+ * * Default Value: getdate()
12430
+ */
12431
+ get UpdatedAt() {
12432
+ return this.Get('UpdatedAt');
12433
+ }
12434
+ /**
12435
+ * * Field Name: Parent
12436
+ * * Display Name: Parent
12437
+ * * SQL Data Type: nvarchar(100)
12438
+ */
12439
+ get Parent() {
12440
+ return this.Get('Parent');
12441
+ }
12442
+ };
12443
+ exports.ReportCategoryEntity = ReportCategoryEntity;
12444
+ exports.ReportCategoryEntity = ReportCategoryEntity = __decorate([
12445
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'Report Categories')
12446
+ ], ReportCategoryEntity);
12447
+ /**
12448
+ * File Storage Providers - strongly typed entity sub-class
12449
+ * * Schema: __mj
12450
+ * * Base Table: FileStorageProvider
12451
+ * * Base View: vwFileStorageProviders
12452
+ * * Primary Key: ID
12453
+ * @extends {BaseEntity}
12454
+ * @class
12455
+ * @public
12456
+ */
12457
+ let FileStorageProviderEntity = class FileStorageProviderEntity extends core_1.BaseEntity {
12458
+ /**
12459
+ * Loads the File Storage Providers record from the database
12460
+ * @param ID: number - primary key value to load the File Storage Providers record.
12461
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
12462
+ * @returns {Promise<boolean>} - true if successful, false otherwise
12464
12463
  * @public
12464
+ * @async
12465
+ * @memberof FileStorageProviderEntity
12465
12466
  * @method
12466
12467
  * @override
12467
- * @memberof ReportCategoryEntity
12468
- * @throws {Error} - Delete is not allowed for Report Categories, to enable it set AllowDeleteAPI to 1 in the database.
12468
+ */
12469
+ async Load(ID, EntityRelationshipsToLoad = null) {
12470
+ const pkeyValues = [];
12471
+ pkeyValues.push({ FieldName: 'ID', Value: ID });
12472
+ return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
12473
+ }
12474
+ /**
12475
+ * File Storage Providers - AllowDeleteAPI is set to 0 in the database. Delete is not allowed, so this method is generated to override the base class method and throw an error. To enable delete for this entity, set AllowDeleteAPI to 1 in the database.
12476
+ * @public
12477
+ * @method
12478
+ * @override
12479
+ * @memberof FileStorageProviderEntity
12480
+ * @throws {Error} - Delete is not allowed for File Storage Providers, to enable it set AllowDeleteAPI to 1 in the database.
12469
12481
  */
12470
12482
  async Delete() {
12471
- throw new Error('Delete is not allowed for Report Categories, to enable it set AllowDeleteAPI to 1 in the database.');
12483
+ throw new Error('Delete is not allowed for File Storage Providers, to enable it set AllowDeleteAPI to 1 in the database.');
12472
12484
  }
12473
12485
  /**
12474
12486
  * * Field Name: ID
@@ -12481,8 +12493,300 @@ let ReportCategoryEntity = class ReportCategoryEntity extends core_1.BaseEntity
12481
12493
  /**
12482
12494
  * * Field Name: Name
12483
12495
  * * Display Name: Name
12496
+ * * SQL Data Type: nvarchar(50)
12497
+ */
12498
+ get Name() {
12499
+ return this.Get('Name');
12500
+ }
12501
+ set Name(value) {
12502
+ this.Set('Name', value);
12503
+ }
12504
+ /**
12505
+ * * Field Name: Description
12506
+ * * Display Name: Description
12507
+ * * SQL Data Type: nvarchar(MAX)
12508
+ */
12509
+ get Description() {
12510
+ return this.Get('Description');
12511
+ }
12512
+ set Description(value) {
12513
+ this.Set('Description', value);
12514
+ }
12515
+ /**
12516
+ * * Field Name: ServerDriverKey
12517
+ * * Display Name: Server Driver Key
12518
+ * * SQL Data Type: nvarchar(100)
12519
+ */
12520
+ get ServerDriverKey() {
12521
+ return this.Get('ServerDriverKey');
12522
+ }
12523
+ set ServerDriverKey(value) {
12524
+ this.Set('ServerDriverKey', value);
12525
+ }
12526
+ /**
12527
+ * * Field Name: ClientDriverKey
12528
+ * * Display Name: Client Driver Key
12484
12529
  * * SQL Data Type: nvarchar(100)
12485
12530
  */
12531
+ get ClientDriverKey() {
12532
+ return this.Get('ClientDriverKey');
12533
+ }
12534
+ set ClientDriverKey(value) {
12535
+ this.Set('ClientDriverKey', value);
12536
+ }
12537
+ /**
12538
+ * * Field Name: Priority
12539
+ * * Display Name: Priority
12540
+ * * SQL Data Type: int
12541
+ * * Default Value: 0
12542
+ */
12543
+ get Priority() {
12544
+ return this.Get('Priority');
12545
+ }
12546
+ set Priority(value) {
12547
+ this.Set('Priority', value);
12548
+ }
12549
+ /**
12550
+ * * Field Name: IsActive
12551
+ * * Display Name: Is Active
12552
+ * * SQL Data Type: bit
12553
+ * * Default Value: 1
12554
+ */
12555
+ get IsActive() {
12556
+ return this.Get('IsActive');
12557
+ }
12558
+ set IsActive(value) {
12559
+ this.Set('IsActive', value);
12560
+ }
12561
+ /**
12562
+ * * Field Name: CreatedAt
12563
+ * * Display Name: Created At
12564
+ * * SQL Data Type: datetime
12565
+ * * Default Value: getdate()
12566
+ */
12567
+ get CreatedAt() {
12568
+ return this.Get('CreatedAt');
12569
+ }
12570
+ /**
12571
+ * * Field Name: UpdatedAt
12572
+ * * Display Name: Updated At
12573
+ * * SQL Data Type: datetime
12574
+ * * Default Value: getdate()
12575
+ */
12576
+ get UpdatedAt() {
12577
+ return this.Get('UpdatedAt');
12578
+ }
12579
+ };
12580
+ exports.FileStorageProviderEntity = FileStorageProviderEntity;
12581
+ exports.FileStorageProviderEntity = FileStorageProviderEntity = __decorate([
12582
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'File Storage Providers')
12583
+ ], FileStorageProviderEntity);
12584
+ /**
12585
+ * Files - strongly typed entity sub-class
12586
+ * * Schema: __mj
12587
+ * * Base Table: File
12588
+ * * Base View: vwFiles
12589
+ * * Primary Key: ID
12590
+ * @extends {BaseEntity}
12591
+ * @class
12592
+ * @public
12593
+ */
12594
+ let FileEntity = class FileEntity extends core_1.BaseEntity {
12595
+ /**
12596
+ * Loads the Files record from the database
12597
+ * @param ID: number - primary key value to load the Files record.
12598
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
12599
+ * @returns {Promise<boolean>} - true if successful, false otherwise
12600
+ * @public
12601
+ * @async
12602
+ * @memberof FileEntity
12603
+ * @method
12604
+ * @override
12605
+ */
12606
+ async Load(ID, EntityRelationshipsToLoad = null) {
12607
+ const pkeyValues = [];
12608
+ pkeyValues.push({ FieldName: 'ID', Value: ID });
12609
+ return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
12610
+ }
12611
+ /**
12612
+ * Files - AllowDeleteAPI is set to 0 in the database. Delete is not allowed, so this method is generated to override the base class method and throw an error. To enable delete for this entity, set AllowDeleteAPI to 1 in the database.
12613
+ * @public
12614
+ * @method
12615
+ * @override
12616
+ * @memberof FileEntity
12617
+ * @throws {Error} - Delete is not allowed for Files, to enable it set AllowDeleteAPI to 1 in the database.
12618
+ */
12619
+ async Delete() {
12620
+ throw new Error('Delete is not allowed for Files, to enable it set AllowDeleteAPI to 1 in the database.');
12621
+ }
12622
+ /**
12623
+ * * Field Name: ID
12624
+ * * Display Name: ID
12625
+ * * SQL Data Type: int
12626
+ */
12627
+ get ID() {
12628
+ return this.Get('ID');
12629
+ }
12630
+ /**
12631
+ * * Field Name: Name
12632
+ * * Display Name: Name
12633
+ * * SQL Data Type: nvarchar(500)
12634
+ */
12635
+ get Name() {
12636
+ return this.Get('Name');
12637
+ }
12638
+ set Name(value) {
12639
+ this.Set('Name', value);
12640
+ }
12641
+ /**
12642
+ * * Field Name: Description
12643
+ * * Display Name: Description
12644
+ * * SQL Data Type: nvarchar(MAX)
12645
+ */
12646
+ get Description() {
12647
+ return this.Get('Description');
12648
+ }
12649
+ set Description(value) {
12650
+ this.Set('Description', value);
12651
+ }
12652
+ /**
12653
+ * * Field Name: ProviderID
12654
+ * * Display Name: Provider ID
12655
+ * * SQL Data Type: int
12656
+ * * Related Entity/Foreign Key: File Storage Providers (vwFileStorageProviders.ID)
12657
+ */
12658
+ get ProviderID() {
12659
+ return this.Get('ProviderID');
12660
+ }
12661
+ set ProviderID(value) {
12662
+ this.Set('ProviderID', value);
12663
+ }
12664
+ /**
12665
+ * * Field Name: ContentType
12666
+ * * Display Name: Content Type
12667
+ * * SQL Data Type: nvarchar(50)
12668
+ */
12669
+ get ContentType() {
12670
+ return this.Get('ContentType');
12671
+ }
12672
+ set ContentType(value) {
12673
+ this.Set('ContentType', value);
12674
+ }
12675
+ /**
12676
+ * * Field Name: ProviderKey
12677
+ * * Display Name: Provider Key
12678
+ * * SQL Data Type: nvarchar(500)
12679
+ */
12680
+ get ProviderKey() {
12681
+ return this.Get('ProviderKey');
12682
+ }
12683
+ set ProviderKey(value) {
12684
+ this.Set('ProviderKey', value);
12685
+ }
12686
+ /**
12687
+ * * Field Name: CategoryID
12688
+ * * Display Name: Category ID
12689
+ * * SQL Data Type: int
12690
+ * * Related Entity/Foreign Key: File Categories (vwFileCategories.ID)
12691
+ */
12692
+ get CategoryID() {
12693
+ return this.Get('CategoryID');
12694
+ }
12695
+ set CategoryID(value) {
12696
+ this.Set('CategoryID', value);
12697
+ }
12698
+ /**
12699
+ * * Field Name: Status
12700
+ * * Display Name: Status
12701
+ * * SQL Data Type: nvarchar(20)
12702
+ * * Default Value: N'Pending'
12703
+ * * Description: Pending, Uploading, Uploaded, Deleting, Deleted
12704
+ */
12705
+ get Status() {
12706
+ return this.Get('Status');
12707
+ }
12708
+ set Status(value) {
12709
+ this.Set('Status', value);
12710
+ }
12711
+ /**
12712
+ * * Field Name: CreatedAt
12713
+ * * Display Name: Created At
12714
+ * * SQL Data Type: datetime
12715
+ * * Default Value: getdate()
12716
+ */
12717
+ get CreatedAt() {
12718
+ return this.Get('CreatedAt');
12719
+ }
12720
+ /**
12721
+ * * Field Name: UpdatedAt
12722
+ * * Display Name: Updated At
12723
+ * * SQL Data Type: datetime
12724
+ * * Default Value: getdate()
12725
+ */
12726
+ get UpdatedAt() {
12727
+ return this.Get('UpdatedAt');
12728
+ }
12729
+ /**
12730
+ * * Field Name: Provider
12731
+ * * Display Name: Provider
12732
+ * * SQL Data Type: nvarchar(50)
12733
+ */
12734
+ get Provider() {
12735
+ return this.Get('Provider');
12736
+ }
12737
+ /**
12738
+ * * Field Name: Category
12739
+ * * Display Name: Category
12740
+ * * SQL Data Type: nvarchar(255)
12741
+ */
12742
+ get Category() {
12743
+ return this.Get('Category');
12744
+ }
12745
+ };
12746
+ exports.FileEntity = FileEntity;
12747
+ exports.FileEntity = FileEntity = __decorate([
12748
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'Files')
12749
+ ], FileEntity);
12750
+ /**
12751
+ * File Categories - strongly typed entity sub-class
12752
+ * * Schema: __mj
12753
+ * * Base Table: FileCategory
12754
+ * * Base View: vwFileCategories
12755
+ * * Primary Key: ID
12756
+ * @extends {BaseEntity}
12757
+ * @class
12758
+ * @public
12759
+ */
12760
+ let FileCategoryEntity = class FileCategoryEntity extends core_1.BaseEntity {
12761
+ /**
12762
+ * Loads the File Categories record from the database
12763
+ * @param ID: number - primary key value to load the File Categories record.
12764
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
12765
+ * @returns {Promise<boolean>} - true if successful, false otherwise
12766
+ * @public
12767
+ * @async
12768
+ * @memberof FileCategoryEntity
12769
+ * @method
12770
+ * @override
12771
+ */
12772
+ async Load(ID, EntityRelationshipsToLoad = null) {
12773
+ const pkeyValues = [];
12774
+ pkeyValues.push({ FieldName: 'ID', Value: ID });
12775
+ return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
12776
+ }
12777
+ /**
12778
+ * * Field Name: ID
12779
+ * * Display Name: ID
12780
+ * * SQL Data Type: int
12781
+ */
12782
+ get ID() {
12783
+ return this.Get('ID');
12784
+ }
12785
+ /**
12786
+ * * Field Name: Name
12787
+ * * Display Name: Name
12788
+ * * SQL Data Type: nvarchar(255)
12789
+ */
12486
12790
  get Name() {
12487
12791
  return this.Get('Name');
12488
12792
  }
@@ -12504,7 +12808,7 @@ let ReportCategoryEntity = class ReportCategoryEntity extends core_1.BaseEntity
12504
12808
  * * Field Name: ParentID
12505
12809
  * * Display Name: Parent ID
12506
12810
  * * SQL Data Type: int
12507
- * * Related Entity/Foreign Key: Report Categories (vwReportCategories.ID)
12811
+ * * Related Entity/Foreign Key: File Categories (vwFileCategories.ID)
12508
12812
  */
12509
12813
  get ParentID() {
12510
12814
  return this.Get('ParentID');
@@ -12533,14 +12837,134 @@ let ReportCategoryEntity = class ReportCategoryEntity extends core_1.BaseEntity
12533
12837
  /**
12534
12838
  * * Field Name: Parent
12535
12839
  * * Display Name: Parent
12536
- * * SQL Data Type: nvarchar(100)
12840
+ * * SQL Data Type: nvarchar(255)
12537
12841
  */
12538
12842
  get Parent() {
12539
12843
  return this.Get('Parent');
12540
12844
  }
12541
12845
  };
12542
- exports.ReportCategoryEntity = ReportCategoryEntity;
12543
- exports.ReportCategoryEntity = ReportCategoryEntity = __decorate([
12544
- (0, global_1.RegisterClass)(core_1.BaseEntity, 'Report Categories')
12545
- ], ReportCategoryEntity);
12846
+ exports.FileCategoryEntity = FileCategoryEntity;
12847
+ exports.FileCategoryEntity = FileCategoryEntity = __decorate([
12848
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'File Categories')
12849
+ ], FileCategoryEntity);
12850
+ /**
12851
+ * File Entity Record Links - strongly typed entity sub-class
12852
+ * * Schema: __mj
12853
+ * * Base Table: FileEntityRecordLink
12854
+ * * Base View: vwFileEntityRecordLinks
12855
+ * * Primary Key: ID
12856
+ * @extends {BaseEntity}
12857
+ * @class
12858
+ * @public
12859
+ */
12860
+ let FileEntityRecordLinkEntity = class FileEntityRecordLinkEntity extends core_1.BaseEntity {
12861
+ /**
12862
+ * Loads the File Entity Record Links record from the database
12863
+ * @param ID: number - primary key value to load the File Entity Record Links record.
12864
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
12865
+ * @returns {Promise<boolean>} - true if successful, false otherwise
12866
+ * @public
12867
+ * @async
12868
+ * @memberof FileEntityRecordLinkEntity
12869
+ * @method
12870
+ * @override
12871
+ */
12872
+ async Load(ID, EntityRelationshipsToLoad = null) {
12873
+ const pkeyValues = [];
12874
+ pkeyValues.push({ FieldName: 'ID', Value: ID });
12875
+ return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
12876
+ }
12877
+ /**
12878
+ * File Entity Record Links - AllowDeleteAPI is set to 0 in the database. Delete is not allowed, so this method is generated to override the base class method and throw an error. To enable delete for this entity, set AllowDeleteAPI to 1 in the database.
12879
+ * @public
12880
+ * @method
12881
+ * @override
12882
+ * @memberof FileEntityRecordLinkEntity
12883
+ * @throws {Error} - Delete is not allowed for File Entity Record Links, to enable it set AllowDeleteAPI to 1 in the database.
12884
+ */
12885
+ async Delete() {
12886
+ throw new Error('Delete is not allowed for File Entity Record Links, to enable it set AllowDeleteAPI to 1 in the database.');
12887
+ }
12888
+ /**
12889
+ * * Field Name: ID
12890
+ * * Display Name: ID
12891
+ * * SQL Data Type: int
12892
+ */
12893
+ get ID() {
12894
+ return this.Get('ID');
12895
+ }
12896
+ /**
12897
+ * * Field Name: FileID
12898
+ * * Display Name: File ID
12899
+ * * SQL Data Type: int
12900
+ * * Related Entity/Foreign Key: Files (vwFiles.ID)
12901
+ */
12902
+ get FileID() {
12903
+ return this.Get('FileID');
12904
+ }
12905
+ set FileID(value) {
12906
+ this.Set('FileID', value);
12907
+ }
12908
+ /**
12909
+ * * Field Name: EntityID
12910
+ * * Display Name: Entity ID
12911
+ * * SQL Data Type: int
12912
+ * * Related Entity/Foreign Key: Entities (vwEntities.ID)
12913
+ */
12914
+ get EntityID() {
12915
+ return this.Get('EntityID');
12916
+ }
12917
+ set EntityID(value) {
12918
+ this.Set('EntityID', value);
12919
+ }
12920
+ /**
12921
+ * * Field Name: RecordID
12922
+ * * Display Name: Record ID
12923
+ * * SQL Data Type: nvarchar(255)
12924
+ */
12925
+ get RecordID() {
12926
+ return this.Get('RecordID');
12927
+ }
12928
+ set RecordID(value) {
12929
+ this.Set('RecordID', value);
12930
+ }
12931
+ /**
12932
+ * * Field Name: CreatedAt
12933
+ * * Display Name: Created At
12934
+ * * SQL Data Type: datetime
12935
+ * * Default Value: getdate()
12936
+ */
12937
+ get CreatedAt() {
12938
+ return this.Get('CreatedAt');
12939
+ }
12940
+ /**
12941
+ * * Field Name: UpdatedAt
12942
+ * * Display Name: Updated At
12943
+ * * SQL Data Type: datetime
12944
+ * * Default Value: getdate()
12945
+ */
12946
+ get UpdatedAt() {
12947
+ return this.Get('UpdatedAt');
12948
+ }
12949
+ /**
12950
+ * * Field Name: File
12951
+ * * Display Name: File
12952
+ * * SQL Data Type: nvarchar(500)
12953
+ */
12954
+ get File() {
12955
+ return this.Get('File');
12956
+ }
12957
+ /**
12958
+ * * Field Name: Entity
12959
+ * * Display Name: Entity
12960
+ * * SQL Data Type: nvarchar(255)
12961
+ */
12962
+ get Entity() {
12963
+ return this.Get('Entity');
12964
+ }
12965
+ };
12966
+ exports.FileEntityRecordLinkEntity = FileEntityRecordLinkEntity;
12967
+ exports.FileEntityRecordLinkEntity = FileEntityRecordLinkEntity = __decorate([
12968
+ (0, global_1.RegisterClass)(core_1.BaseEntity, 'File Entity Record Links')
12969
+ ], FileEntityRecordLinkEntity);
12546
12970
  //# sourceMappingURL=entity_subclasses.js.map