@memberjunction/core-entities 0.9.163 → 0.9.165

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
@@ -570,23 +574,26 @@ export declare class RoleEntity extends BaseEntity {
570
574
  set Name(value: string);
571
575
  /**
572
576
  * * Field Name: Description
573
- * * SQL Data Type: nvarchar(500)
577
+ * * SQL Data Type: nvarchar(MAX)
578
+ * * Description: Description of the role
574
579
  */
575
580
  get Description(): string | null;
576
581
  set Description(value: string | null);
577
582
  /**
578
- * * Field Name: AzureID
579
- * * Display Name: Azure
580
- * * SQL Data Type: nvarchar(50)
583
+ * * Field Name: DirectoryID
584
+ * * Display Name: Directory ID
585
+ * * SQL Data Type: nvarchar(250)
586
+ * * Description: The unique ID of the role in the directory being used for authentication, for example an ID in Azure.
581
587
  */
582
- get AzureID(): string | null;
583
- set AzureID(value: string | null);
588
+ get DirectoryID(): string | null;
589
+ set DirectoryID(value: string | null);
584
590
  /**
585
591
  * * Field Name: SQLName
586
- * * SQL Data Type: nvarchar(50)
592
+ * * SQL Data Type: nvarchar(250)
593
+ * * Description: The name of the role in the database, this is used for auto-generating permission statements by CodeGen
587
594
  */
588
- get SQLName(): string;
589
- set SQLName(value: string);
595
+ get SQLName(): string | null;
596
+ set SQLName(value: string | null);
590
597
  /**
591
598
  * * Field Name: CreatedAt
592
599
  * * Display Name: Created At
@@ -607,6 +614,7 @@ export declare class RoleEntity extends BaseEntity {
607
614
  * * Schema: __mj
608
615
  * * Base Table: Skill
609
616
  * * Base View: vwSkills
617
+ * * @description A hierarchical list of possible skills that are linked to Employees and can also be linked to any other entity
610
618
  * * Primary Key: ID
611
619
  * @extends {BaseEntity}
612
620
  * @class
@@ -688,6 +696,7 @@ export declare class SkillEntity extends BaseEntity {
688
696
  * * Schema: __mj
689
697
  * * Base Table: IntegrationURLFormat
690
698
  * * Base View: vwIntegrationURLFormats
699
+ * * @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.
691
700
  * * Primary Key: ID
692
701
  * @extends {BaseEntity}
693
702
  * @class
@@ -772,6 +781,7 @@ export declare class IntegrationURLFormatEntity extends BaseEntity {
772
781
  * * Schema: __mj
773
782
  * * Base Table: Integration
774
783
  * * Base View: vwIntegrations
784
+ * * @description Catalog of all integrations that have been configured in the system.
775
785
  * * Primary Key: ID
776
786
  * @extends {BaseEntity}
777
787
  * @class
@@ -873,6 +883,7 @@ export declare class IntegrationEntity extends BaseEntity {
873
883
  * * Schema: __mj
874
884
  * * Base Table: CompanyIntegration
875
885
  * * Base View: vwCompanyIntegrations
886
+ * * @description Links individual company records to specific integrations
876
887
  * * Primary Key: ID
877
888
  * @extends {BaseEntity}
878
889
  * @class
@@ -1063,6 +1074,7 @@ export declare class CompanyIntegrationEntity extends BaseEntity {
1063
1074
  * * Schema: __mj
1064
1075
  * * Base Table: EntityField
1065
1076
  * * Base View: vwEntityFields
1077
+ * * @description List of all fields within each entity with metadata about each field
1066
1078
  * * Primary Key: ID
1067
1079
  * @extends {BaseEntity}
1068
1080
  * @class
@@ -1417,6 +1429,7 @@ export declare class EntityFieldEntity extends BaseEntity {
1417
1429
  * * Schema: __mj
1418
1430
  * * Base Table: Entity
1419
1431
  * * Base View: vwEntities
1432
+ * * @description Catalog of all entities across all schemas
1420
1433
  * * Primary Key: ID
1421
1434
  * @extends {BaseEntity}
1422
1435
  * @class
@@ -1784,6 +1797,7 @@ export declare class EntityEntity extends BaseEntity {
1784
1797
  * * Schema: __mj
1785
1798
  * * Base Table: User
1786
1799
  * * Base View: vwUsers
1800
+ * * @description A list of all users who have or had access to the system
1787
1801
  * * Primary Key: ID
1788
1802
  * @extends {BaseEntity}
1789
1803
  * @class
@@ -1940,6 +1954,7 @@ export declare class UserEntity extends BaseEntity {
1940
1954
  * * Schema: __mj
1941
1955
  * * Base Table: EntityRelationship
1942
1956
  * * Base View: vwEntityRelationships
1957
+ * * @description Metadata about relationships between entities including display preferences for the UI
1943
1958
  * * Primary Key: ID
1944
1959
  * @extends {BaseEntity}
1945
1960
  * @class
@@ -2274,6 +2289,7 @@ export declare class UserRecordLogEntity extends BaseEntity {
2274
2289
  * * Schema: __mj
2275
2290
  * * Base Table: UserView
2276
2291
  * * Base View: vwUserViews
2292
+ * * @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.
2277
2293
  * * Primary Key: ID
2278
2294
  * @extends {BaseEntity}
2279
2295
  * @class
@@ -2771,6 +2787,7 @@ export declare class ErrorLogEntity extends BaseEntity {
2771
2787
  * * Schema: __mj
2772
2788
  * * Base Table: Application
2773
2789
  * * Base View: vwApplications
2790
+ * * @description Applications are used to group entities in the user interface for ease of user access
2774
2791
  * * Primary Key: ID
2775
2792
  * @extends {BaseEntity}
2776
2793
  * @class
@@ -2835,6 +2852,7 @@ export declare class ApplicationEntity extends BaseEntity {
2835
2852
  * * Schema: __mj
2836
2853
  * * Base Table: ApplicationEntity
2837
2854
  * * Base View: vwApplicationEntities
2855
+ * * @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.
2838
2856
  * * Primary Key: ID
2839
2857
  * @extends {BaseEntity}
2840
2858
  * @class
@@ -2942,6 +2960,7 @@ export declare class ApplicationEntityEntity extends BaseEntity {
2942
2960
  * * Schema: __mj
2943
2961
  * * Base Table: EntityPermission
2944
2962
  * * Base View: vwEntityPermissions
2963
+ * * @description Security settings for each entity
2945
2964
  * * Primary Key: ID
2946
2965
  * @extends {BaseEntity}
2947
2966
  * @class
@@ -3067,9 +3086,9 @@ export declare class EntityPermissionEntity extends BaseEntity {
3067
3086
  /**
3068
3087
  * * Field Name: RoleSQLName
3069
3088
  * * Display Name: Role SQLName
3070
- * * SQL Data Type: nvarchar(50)
3089
+ * * SQL Data Type: nvarchar(250)
3071
3090
  */
3072
- get RoleSQLName(): string;
3091
+ get RoleSQLName(): string | null;
3073
3092
  /**
3074
3093
  * * Field Name: CreateRLSFilter
3075
3094
  * * Display Name: Create RLSFilter
@@ -3323,6 +3342,7 @@ export declare class CompanyIntegrationRunAPILogEntity extends BaseEntity {
3323
3342
  * * Schema: __mj
3324
3343
  * * Base Table: List
3325
3344
  * * Base View: vwLists
3345
+ * * @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.
3326
3346
  * * Primary Key: ID
3327
3347
  * @extends {BaseEntity}
3328
3348
  * @class
@@ -3421,6 +3441,7 @@ export declare class ListEntity extends BaseEntity {
3421
3441
  * * Schema: __mj
3422
3442
  * * Base Table: ListDetail
3423
3443
  * * Base View: vwListDetails
3444
+ * * @description Tracks the records within each list.
3424
3445
  * * Primary Key: ID
3425
3446
  * @extends {BaseEntity}
3426
3447
  * @class
@@ -3472,6 +3493,7 @@ export declare class ListDetailEntity extends BaseEntity {
3472
3493
  * * Schema: __mj
3473
3494
  * * Base Table: UserViewRun
3474
3495
  * * Base View: vwUserViewRuns
3496
+ * * @description User Views can be logged when run to capture the date and user that ran the view as well as the output results.
3475
3497
  * * Primary Key: ID
3476
3498
  * @extends {BaseEntity}
3477
3499
  * @class
@@ -3545,6 +3567,7 @@ export declare class UserViewRunEntity extends BaseEntity {
3545
3567
  * * Schema: __mj
3546
3568
  * * Base Table: UserViewRunDetail
3547
3569
  * * Base View: vwUserViewRunDetails
3570
+ * * @description Tracks the set of records that were included in each run of a given user view.
3548
3571
  * * Primary Key: ID
3549
3572
  * @extends {BaseEntity}
3550
3573
  * @class
@@ -3867,6 +3890,7 @@ export declare class WorkflowEngineEntity extends BaseEntity {
3867
3890
  * * Schema: __mj
3868
3891
  * * Base Table: RecordChange
3869
3892
  * * Base View: vwRecordChanges
3893
+ * * @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.
3870
3894
  * * Primary Key: ID
3871
3895
  * @extends {BaseEntity}
3872
3896
  * @class
@@ -4667,6 +4691,7 @@ export declare class EntityFieldValueEntity extends BaseEntity {
4667
4691
  * * Schema: __mj
4668
4692
  * * Base Table: AIModel
4669
4693
  * * Base View: vwAIModels
4694
+ * * @description Catalog of all AI Models configured in the system.
4670
4695
  * * Primary Key: ID
4671
4696
  * @extends {BaseEntity}
4672
4697
  * @class
@@ -4771,6 +4796,7 @@ export declare class AIModelEntity extends BaseEntity {
4771
4796
  * * Schema: __mj
4772
4797
  * * Base Table: AIAction
4773
4798
  * * Base View: vwAIActions
4799
+ * * @description List of all actions that are possible across all AI Models
4774
4800
  * * Primary Key: ID
4775
4801
  * @extends {BaseEntity}
4776
4802
  * @class
@@ -4867,6 +4893,7 @@ export declare class AIActionEntity extends BaseEntity {
4867
4893
  * * Schema: __mj
4868
4894
  * * Base Table: AIModelAction
4869
4895
  * * Base View: vwAIModelActions
4896
+ * * @description Tracks the actions supported by each AI Model
4870
4897
  * * Primary Key: ID
4871
4898
  * @extends {BaseEntity}
4872
4899
  * @class
@@ -4956,6 +4983,7 @@ export declare class AIModelActionEntity extends BaseEntity {
4956
4983
  * * Schema: __mj
4957
4984
  * * Base Table: EntityAIAction
4958
4985
  * * Base View: vwEntityAIActions
4986
+ * * @description Tracks the AI actions that should be invoked based on changes to records within a given entity.
4959
4987
  * * Primary Key: ID
4960
4988
  * @extends {BaseEntity}
4961
4989
  * @class
@@ -5110,6 +5138,7 @@ export declare class EntityAIActionEntity extends BaseEntity {
5110
5138
  * * Schema: __mj
5111
5139
  * * Base Table: AIModelType
5112
5140
  * * Base View: vwAIModelTypes
5141
+ * * @description Types of AI Models
5113
5142
  * * Primary Key: ID
5114
5143
  * @extends {BaseEntity}
5115
5144
  * @class
@@ -5247,6 +5276,7 @@ export declare class QueueTypeEntity extends BaseEntity {
5247
5276
  * * Schema: __mj
5248
5277
  * * Base Table: Queue
5249
5278
  * * Base View: vwQueues
5279
+ * * @description Queues can be used to async execute long running tasks
5250
5280
  * * Primary Key: ID
5251
5281
  * @extends {BaseEntity}
5252
5282
  * @class
@@ -5525,6 +5555,7 @@ export declare class QueueTaskEntity extends BaseEntity {
5525
5555
  * * Schema: __mj
5526
5556
  * * Base Table: Dashboard
5527
5557
  * * Base View: vwDashboards
5558
+ * * @description Dashboards are used to group resources into a single display pane for an end-user
5528
5559
  * * Primary Key: ID
5529
5560
  * @extends {BaseEntity}
5530
5561
  * @class
@@ -6188,6 +6219,7 @@ export declare class ResourceTypeEntity extends BaseEntity {
6188
6219
  * * Schema: __mj
6189
6220
  * * Base Table: Tag
6190
6221
  * * Base View: vwTags
6222
+ * * @description Tags are used to arbitrarily associate any record in any entity with addtional information.
6191
6223
  * * Primary Key: ID
6192
6224
  * @extends {BaseEntity}
6193
6225
  * @class
@@ -6271,6 +6303,7 @@ export declare class TagEntity extends BaseEntity {
6271
6303
  * * Schema: __mj
6272
6304
  * * Base Table: TaggedItem
6273
6305
  * * Base View: vwTaggedItems
6306
+ * * @description Tracks the links between any record in any entity with Tags
6274
6307
  * * Primary Key: ID
6275
6308
  * @extends {BaseEntity}
6276
6309
  * @class
@@ -6345,6 +6378,7 @@ export declare class TaggedItemEntity extends BaseEntity {
6345
6378
  * * Schema: __mj
6346
6379
  * * Base Table: Workspace
6347
6380
  * * Base View: vwWorkspaces
6381
+ * * @description A user can have one or more workspaces
6348
6382
  * * Primary Key: ID
6349
6383
  * @extends {BaseEntity}
6350
6384
  * @class
@@ -6403,6 +6437,7 @@ export declare class WorkspaceEntity extends BaseEntity {
6403
6437
  * * Schema: __mj
6404
6438
  * * Base Table: WorkspaceItem
6405
6439
  * * Base View: vwWorkspaceItems
6440
+ * * @description Tracks the resources that are active within a given worksapce
6406
6441
  * * Primary Key: ID
6407
6442
  * @extends {BaseEntity}
6408
6443
  * @class
@@ -6496,6 +6531,7 @@ export declare class WorkspaceItemEntity extends BaseEntity {
6496
6531
  * * Schema: __mj
6497
6532
  * * Base Table: Dataset
6498
6533
  * * Base View: vwDatasets
6534
+ * * @description Cacheable sets of data that can span one or more items
6499
6535
  * * Primary Key: ID
6500
6536
  * @extends {BaseEntity}
6501
6537
  * @class
@@ -6572,6 +6608,7 @@ export declare class DatasetEntity extends BaseEntity {
6572
6608
  * * Schema: __mj
6573
6609
  * * Base Table: DatasetItem
6574
6610
  * * Base View: vwDatasetItems
6611
+ * * @description A single item in a Dataset and can be sourced from multiple methods.
6575
6612
  * * Primary Key: ID
6576
6613
  * @extends {BaseEntity}
6577
6614
  * @class
@@ -7018,6 +7055,7 @@ export declare class UserNotificationEntity extends BaseEntity {
7018
7055
  * * Schema: __mj
7019
7056
  * * Base Table: SchemaInfo
7020
7057
  * * Base View: vwSchemaInfos
7058
+ * * @description Tracks the schemas in the system and the ID ranges that are valid for entities within each schema.
7021
7059
  * * Primary Key: ID
7022
7060
  * @extends {BaseEntity}
7023
7061
  * @class
@@ -7638,6 +7676,7 @@ export declare class QueryCategoryEntity extends BaseEntity {
7638
7676
  * * Schema: __mj
7639
7677
  * * Base Table: Query
7640
7678
  * * Base View: vwQueries
7679
+ * * @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.
7641
7680
  * * Primary Key: ID
7642
7681
  * @extends {BaseEntity}
7643
7682
  * @class