@memberjunction/core-entities 0.9.164 → 0.9.166

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.
@@ -4,6 +4,7 @@ import { BaseEntity, EntitySaveOptions } from "@memberjunction/core";
4
4
  * * Schema: __mj
5
5
  * * Base Table: Company
6
6
  * * Base View: vwCompanies
7
+ * * @description A list of organizational units within your business. These can be subsidiaries or divisions or other units. Companies are used to organizae employee records and also for separating integrations if you have multiple integrations of the same type of system.
7
8
  * * Primary Key: ID
8
9
  * @extends {BaseEntity}
9
10
  * @class
@@ -79,6 +80,7 @@ export declare class CompanyEntity extends BaseEntity {
79
80
  * * Schema: __mj
80
81
  * * Base Table: Employee
81
82
  * * Base View: vwEmployees
83
+ * * @description A list of employees across all units of your organization
82
84
  * * Primary Key: ID
83
85
  * @extends {BaseEntity}
84
86
  * @class
@@ -214,6 +216,7 @@ export declare class EmployeeEntity extends BaseEntity {
214
216
  * * Schema: __mj
215
217
  * * Base Table: UserFavorite
216
218
  * * Base View: vwUserFavorites
219
+ * * @description Records that each user can mark as a favorite for easy access
217
220
  * * Primary Key: ID
218
221
  * @extends {BaseEntity}
219
222
  * @class
@@ -530,6 +533,7 @@ export declare class EmployeeSkillEntity extends BaseEntity {
530
533
  * * Schema: __mj
531
534
  * * Base Table: Role
532
535
  * * Base View: vwRoles
536
+ * * @description Roles are used for security administration and can have zero to many Users as members
533
537
  * * Primary Key: ID
534
538
  * @extends {BaseEntity}
535
539
  * @class
@@ -549,15 +553,6 @@ export declare class RoleEntity extends BaseEntity {
549
553
  */
550
554
  Load(ID: number, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
551
555
  /**
552
- * 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.
553
- * @public
554
- * @method
555
- * @override
556
- * @memberof RoleEntity
557
- * @throws {Error} - Delete is not allowed for Roles, to enable it set AllowDeleteAPI to 1 in the database.
558
- */
559
- Delete(): Promise<boolean>;
560
- /**
561
556
  * * Field Name: ID
562
557
  * * SQL Data Type: int
563
558
  */
@@ -610,6 +605,7 @@ export declare class RoleEntity extends BaseEntity {
610
605
  * * Schema: __mj
611
606
  * * Base Table: Skill
612
607
  * * Base View: vwSkills
608
+ * * @description A hierarchical list of possible skills that are linked to Employees and can also be linked to any other entity
613
609
  * * Primary Key: ID
614
610
  * @extends {BaseEntity}
615
611
  * @class
@@ -691,6 +687,7 @@ export declare class SkillEntity extends BaseEntity {
691
687
  * * Schema: __mj
692
688
  * * Base Table: IntegrationURLFormat
693
689
  * * Base View: vwIntegrationURLFormats
690
+ * * @description Used to generate web links for end users to easily access resources in a source system. URL Formats support templating to inject various field values at run-time to take a user directly to a resource in a source system.
694
691
  * * Primary Key: ID
695
692
  * @extends {BaseEntity}
696
693
  * @class
@@ -775,6 +772,7 @@ export declare class IntegrationURLFormatEntity extends BaseEntity {
775
772
  * * Schema: __mj
776
773
  * * Base Table: Integration
777
774
  * * Base View: vwIntegrations
775
+ * * @description Catalog of all integrations that have been configured in the system.
778
776
  * * Primary Key: ID
779
777
  * @extends {BaseEntity}
780
778
  * @class
@@ -876,6 +874,7 @@ export declare class IntegrationEntity extends BaseEntity {
876
874
  * * Schema: __mj
877
875
  * * Base Table: CompanyIntegration
878
876
  * * Base View: vwCompanyIntegrations
877
+ * * @description Links individual company records to specific integrations
879
878
  * * Primary Key: ID
880
879
  * @extends {BaseEntity}
881
880
  * @class
@@ -1066,6 +1065,7 @@ export declare class CompanyIntegrationEntity extends BaseEntity {
1066
1065
  * * Schema: __mj
1067
1066
  * * Base Table: EntityField
1068
1067
  * * Base View: vwEntityFields
1068
+ * * @description List of all fields within each entity with metadata about each field
1069
1069
  * * Primary Key: ID
1070
1070
  * @extends {BaseEntity}
1071
1071
  * @class
@@ -1420,6 +1420,7 @@ export declare class EntityFieldEntity extends BaseEntity {
1420
1420
  * * Schema: __mj
1421
1421
  * * Base Table: Entity
1422
1422
  * * Base View: vwEntities
1423
+ * * @description Catalog of all entities across all schemas
1423
1424
  * * Primary Key: ID
1424
1425
  * @extends {BaseEntity}
1425
1426
  * @class
@@ -1787,6 +1788,7 @@ export declare class EntityEntity extends BaseEntity {
1787
1788
  * * Schema: __mj
1788
1789
  * * Base Table: User
1789
1790
  * * Base View: vwUsers
1791
+ * * @description A list of all users who have or had access to the system
1790
1792
  * * Primary Key: ID
1791
1793
  * @extends {BaseEntity}
1792
1794
  * @class
@@ -1943,6 +1945,7 @@ export declare class UserEntity extends BaseEntity {
1943
1945
  * * Schema: __mj
1944
1946
  * * Base Table: EntityRelationship
1945
1947
  * * Base View: vwEntityRelationships
1948
+ * * @description Metadata about relationships between entities including display preferences for the UI
1946
1949
  * * Primary Key: ID
1947
1950
  * @extends {BaseEntity}
1948
1951
  * @class
@@ -2277,6 +2280,7 @@ export declare class UserRecordLogEntity extends BaseEntity {
2277
2280
  * * Schema: __mj
2278
2281
  * * Base Table: UserView
2279
2282
  * * Base View: vwUserViews
2283
+ * * @description Views are sets of records within a given entity defined by filtering rules. Views can be used programatically to retrieve dynamic sets of data and in user interfaces like MJ Explorer for end-user consumption.
2280
2284
  * * Primary Key: ID
2281
2285
  * @extends {BaseEntity}
2282
2286
  * @class
@@ -2774,6 +2778,7 @@ export declare class ErrorLogEntity extends BaseEntity {
2774
2778
  * * Schema: __mj
2775
2779
  * * Base Table: Application
2776
2780
  * * Base View: vwApplications
2781
+ * * @description Applications are used to group entities in the user interface for ease of user access
2777
2782
  * * Primary Key: ID
2778
2783
  * @extends {BaseEntity}
2779
2784
  * @class
@@ -2838,6 +2843,7 @@ export declare class ApplicationEntity extends BaseEntity {
2838
2843
  * * Schema: __mj
2839
2844
  * * Base Table: ApplicationEntity
2840
2845
  * * Base View: vwApplicationEntities
2846
+ * * @description List of entities within each application. An application can have any number of entities and an entity can be part of any number of applications.
2841
2847
  * * Primary Key: ID
2842
2848
  * @extends {BaseEntity}
2843
2849
  * @class
@@ -2945,6 +2951,7 @@ export declare class ApplicationEntityEntity extends BaseEntity {
2945
2951
  * * Schema: __mj
2946
2952
  * * Base Table: EntityPermission
2947
2953
  * * Base View: vwEntityPermissions
2954
+ * * @description Security settings for each entity
2948
2955
  * * Primary Key: ID
2949
2956
  * @extends {BaseEntity}
2950
2957
  * @class
@@ -3326,6 +3333,7 @@ export declare class CompanyIntegrationRunAPILogEntity extends BaseEntity {
3326
3333
  * * Schema: __mj
3327
3334
  * * Base Table: List
3328
3335
  * * Base View: vwLists
3336
+ * * @description Static lists are useful for controlling a set of data for a given entity. These can be used programatically for applications like logging and tracking long-running tasks and also by end users for tracking any particular list of records they want to directly control the set.
3329
3337
  * * Primary Key: ID
3330
3338
  * @extends {BaseEntity}
3331
3339
  * @class
@@ -3424,6 +3432,7 @@ export declare class ListEntity extends BaseEntity {
3424
3432
  * * Schema: __mj
3425
3433
  * * Base Table: ListDetail
3426
3434
  * * Base View: vwListDetails
3435
+ * * @description Tracks the records within each list.
3427
3436
  * * Primary Key: ID
3428
3437
  * @extends {BaseEntity}
3429
3438
  * @class
@@ -3475,6 +3484,7 @@ export declare class ListDetailEntity extends BaseEntity {
3475
3484
  * * Schema: __mj
3476
3485
  * * Base Table: UserViewRun
3477
3486
  * * Base View: vwUserViewRuns
3487
+ * * @description User Views can be logged when run to capture the date and user that ran the view as well as the output results.
3478
3488
  * * Primary Key: ID
3479
3489
  * @extends {BaseEntity}
3480
3490
  * @class
@@ -3548,6 +3558,7 @@ export declare class UserViewRunEntity extends BaseEntity {
3548
3558
  * * Schema: __mj
3549
3559
  * * Base Table: UserViewRunDetail
3550
3560
  * * Base View: vwUserViewRunDetails
3561
+ * * @description Tracks the set of records that were included in each run of a given user view.
3551
3562
  * * Primary Key: ID
3552
3563
  * @extends {BaseEntity}
3553
3564
  * @class
@@ -3870,6 +3881,7 @@ export declare class WorkflowEngineEntity extends BaseEntity {
3870
3881
  * * Schema: __mj
3871
3882
  * * Base Table: RecordChange
3872
3883
  * * Base View: vwRecordChanges
3884
+ * * @description For entities that have TrackRecordChanges=1, Record Changes will store the history of all changes made within the system. For integrations you can directly add values here if you have inbound signals indicating records were changed in a source system. This entity only automatically captures Record Changes if they were made within the system.
3873
3885
  * * Primary Key: ID
3874
3886
  * @extends {BaseEntity}
3875
3887
  * @class
@@ -4670,6 +4682,7 @@ export declare class EntityFieldValueEntity extends BaseEntity {
4670
4682
  * * Schema: __mj
4671
4683
  * * Base Table: AIModel
4672
4684
  * * Base View: vwAIModels
4685
+ * * @description Catalog of all AI Models configured in the system.
4673
4686
  * * Primary Key: ID
4674
4687
  * @extends {BaseEntity}
4675
4688
  * @class
@@ -4774,6 +4787,7 @@ export declare class AIModelEntity extends BaseEntity {
4774
4787
  * * Schema: __mj
4775
4788
  * * Base Table: AIAction
4776
4789
  * * Base View: vwAIActions
4790
+ * * @description List of all actions that are possible across all AI Models
4777
4791
  * * Primary Key: ID
4778
4792
  * @extends {BaseEntity}
4779
4793
  * @class
@@ -4870,6 +4884,7 @@ export declare class AIActionEntity extends BaseEntity {
4870
4884
  * * Schema: __mj
4871
4885
  * * Base Table: AIModelAction
4872
4886
  * * Base View: vwAIModelActions
4887
+ * * @description Tracks the actions supported by each AI Model
4873
4888
  * * Primary Key: ID
4874
4889
  * @extends {BaseEntity}
4875
4890
  * @class
@@ -4959,6 +4974,7 @@ export declare class AIModelActionEntity extends BaseEntity {
4959
4974
  * * Schema: __mj
4960
4975
  * * Base Table: EntityAIAction
4961
4976
  * * Base View: vwEntityAIActions
4977
+ * * @description Tracks the AI actions that should be invoked based on changes to records within a given entity.
4962
4978
  * * Primary Key: ID
4963
4979
  * @extends {BaseEntity}
4964
4980
  * @class
@@ -5113,6 +5129,7 @@ export declare class EntityAIActionEntity extends BaseEntity {
5113
5129
  * * Schema: __mj
5114
5130
  * * Base Table: AIModelType
5115
5131
  * * Base View: vwAIModelTypes
5132
+ * * @description Types of AI Models
5116
5133
  * * Primary Key: ID
5117
5134
  * @extends {BaseEntity}
5118
5135
  * @class
@@ -5250,6 +5267,7 @@ export declare class QueueTypeEntity extends BaseEntity {
5250
5267
  * * Schema: __mj
5251
5268
  * * Base Table: Queue
5252
5269
  * * Base View: vwQueues
5270
+ * * @description Queues can be used to async execute long running tasks
5253
5271
  * * Primary Key: ID
5254
5272
  * @extends {BaseEntity}
5255
5273
  * @class
@@ -5528,6 +5546,7 @@ export declare class QueueTaskEntity extends BaseEntity {
5528
5546
  * * Schema: __mj
5529
5547
  * * Base Table: Dashboard
5530
5548
  * * Base View: vwDashboards
5549
+ * * @description Dashboards are used to group resources into a single display pane for an end-user
5531
5550
  * * Primary Key: ID
5532
5551
  * @extends {BaseEntity}
5533
5552
  * @class
@@ -6191,6 +6210,7 @@ export declare class ResourceTypeEntity extends BaseEntity {
6191
6210
  * * Schema: __mj
6192
6211
  * * Base Table: Tag
6193
6212
  * * Base View: vwTags
6213
+ * * @description Tags are used to arbitrarily associate any record in any entity with addtional information.
6194
6214
  * * Primary Key: ID
6195
6215
  * @extends {BaseEntity}
6196
6216
  * @class
@@ -6274,6 +6294,7 @@ export declare class TagEntity extends BaseEntity {
6274
6294
  * * Schema: __mj
6275
6295
  * * Base Table: TaggedItem
6276
6296
  * * Base View: vwTaggedItems
6297
+ * * @description Tracks the links between any record in any entity with Tags
6277
6298
  * * Primary Key: ID
6278
6299
  * @extends {BaseEntity}
6279
6300
  * @class
@@ -6348,6 +6369,7 @@ export declare class TaggedItemEntity extends BaseEntity {
6348
6369
  * * Schema: __mj
6349
6370
  * * Base Table: Workspace
6350
6371
  * * Base View: vwWorkspaces
6372
+ * * @description A user can have one or more workspaces
6351
6373
  * * Primary Key: ID
6352
6374
  * @extends {BaseEntity}
6353
6375
  * @class
@@ -6406,6 +6428,7 @@ export declare class WorkspaceEntity extends BaseEntity {
6406
6428
  * * Schema: __mj
6407
6429
  * * Base Table: WorkspaceItem
6408
6430
  * * Base View: vwWorkspaceItems
6431
+ * * @description Tracks the resources that are active within a given worksapce
6409
6432
  * * Primary Key: ID
6410
6433
  * @extends {BaseEntity}
6411
6434
  * @class
@@ -6499,6 +6522,7 @@ export declare class WorkspaceItemEntity extends BaseEntity {
6499
6522
  * * Schema: __mj
6500
6523
  * * Base Table: Dataset
6501
6524
  * * Base View: vwDatasets
6525
+ * * @description Cacheable sets of data that can span one or more items
6502
6526
  * * Primary Key: ID
6503
6527
  * @extends {BaseEntity}
6504
6528
  * @class
@@ -6575,6 +6599,7 @@ export declare class DatasetEntity extends BaseEntity {
6575
6599
  * * Schema: __mj
6576
6600
  * * Base Table: DatasetItem
6577
6601
  * * Base View: vwDatasetItems
6602
+ * * @description A single item in a Dataset and can be sourced from multiple methods.
6578
6603
  * * Primary Key: ID
6579
6604
  * @extends {BaseEntity}
6580
6605
  * @class
@@ -7021,6 +7046,7 @@ export declare class UserNotificationEntity extends BaseEntity {
7021
7046
  * * Schema: __mj
7022
7047
  * * Base Table: SchemaInfo
7023
7048
  * * Base View: vwSchemaInfos
7049
+ * * @description Tracks the schemas in the system and the ID ranges that are valid for entities within each schema.
7024
7050
  * * Primary Key: ID
7025
7051
  * @extends {BaseEntity}
7026
7052
  * @class
@@ -7641,6 +7667,7 @@ export declare class QueryCategoryEntity extends BaseEntity {
7641
7667
  * * Schema: __mj
7642
7668
  * * Base Table: Query
7643
7669
  * * Base View: vwQueries
7670
+ * * @description Catalog of stored queries. This is useful for any arbitrary query that is known to be performant and correct and can be reused. Queries can be viewed/run by a user, used programatically via RunQuery, and also used by AI systems for improved reliability instead of dynamically generated SQL. Queries can also improve security since they store the SQL instead of using dynamic SQL.
7644
7671
  * * Primary Key: ID
7645
7672
  * @extends {BaseEntity}
7646
7673
  * @class