@memberjunction/core-entities 0.9.156 → 0.9.159

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