@memberjunction/core-entities 0.9.164 → 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.
@@ -15,6 +15,7 @@ const global_1 = require("@memberjunction/global");
15
15
  * * Schema: __mj
16
16
  * * Base Table: Company
17
17
  * * Base View: vwCompanies
18
+ * * @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.
18
19
  * * Primary Key: ID
19
20
  * @extends {BaseEntity}
20
21
  * @class
@@ -124,6 +125,7 @@ exports.CompanyEntity = CompanyEntity = __decorate([
124
125
  * * Schema: __mj
125
126
  * * Base Table: Employee
126
127
  * * Base View: vwEmployees
128
+ * * @description A list of employees across all units of your organization
127
129
  * * Primary Key: ID
128
130
  * @extends {BaseEntity}
129
131
  * @class
@@ -317,6 +319,7 @@ exports.EmployeeEntity = EmployeeEntity = __decorate([
317
319
  * * Schema: __mj
318
320
  * * Base Table: UserFavorite
319
321
  * * Base View: vwUserFavorites
322
+ * * @description Records that each user can mark as a favorite for easy access
320
323
  * * Primary Key: ID
321
324
  * @extends {BaseEntity}
322
325
  * @class
@@ -749,6 +752,7 @@ exports.EmployeeSkillEntity = EmployeeSkillEntity = __decorate([
749
752
  * * Schema: __mj
750
753
  * * Base Table: Role
751
754
  * * Base View: vwRoles
755
+ * * @description Roles are used for security administration and can have zero to many Users as members
752
756
  * * Primary Key: ID
753
757
  * @extends {BaseEntity}
754
758
  * @class
@@ -861,6 +865,7 @@ exports.RoleEntity = RoleEntity = __decorate([
861
865
  * * Schema: __mj
862
866
  * * Base Table: Skill
863
867
  * * Base View: vwSkills
868
+ * * @description A hierarchical list of possible skills that are linked to Employees and can also be linked to any other entity
864
869
  * * Primary Key: ID
865
870
  * @extends {BaseEntity}
866
871
  * @class
@@ -970,6 +975,7 @@ exports.SkillEntity = SkillEntity = __decorate([
970
975
  * * Schema: __mj
971
976
  * * Base Table: IntegrationURLFormat
972
977
  * * Base View: vwIntegrationURLFormats
978
+ * * @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.
973
979
  * * Primary Key: ID
974
980
  * @extends {BaseEntity}
975
981
  * @class
@@ -1086,6 +1092,7 @@ exports.IntegrationURLFormatEntity = IntegrationURLFormatEntity = __decorate([
1086
1092
  * * Schema: __mj
1087
1093
  * * Base Table: Integration
1088
1094
  * * Base View: vwIntegrations
1095
+ * * @description Catalog of all integrations that have been configured in the system.
1089
1096
  * * Primary Key: ID
1090
1097
  * @extends {BaseEntity}
1091
1098
  * @class
@@ -1231,6 +1238,7 @@ exports.IntegrationEntity = IntegrationEntity = __decorate([
1231
1238
  * * Schema: __mj
1232
1239
  * * Base Table: CompanyIntegration
1233
1240
  * * Base View: vwCompanyIntegrations
1241
+ * * @description Links individual company records to specific integrations
1234
1242
  * * Primary Key: ID
1235
1243
  * @extends {BaseEntity}
1236
1244
  * @class
@@ -1503,6 +1511,7 @@ exports.CompanyIntegrationEntity = CompanyIntegrationEntity = __decorate([
1503
1511
  * * Schema: __mj
1504
1512
  * * Base Table: EntityField
1505
1513
  * * Base View: vwEntityFields
1514
+ * * @description List of all fields within each entity with metadata about each field
1506
1515
  * * Primary Key: ID
1507
1516
  * @extends {BaseEntity}
1508
1517
  * @class
@@ -2009,6 +2018,7 @@ exports.EntityFieldEntity = EntityFieldEntity = __decorate([
2009
2018
  * * Schema: __mj
2010
2019
  * * Base Table: Entity
2011
2020
  * * Base View: vwEntities
2021
+ * * @description Catalog of all entities across all schemas
2012
2022
  * * Primary Key: ID
2013
2023
  * @extends {BaseEntity}
2014
2024
  * @class
@@ -2550,6 +2560,7 @@ exports.EntityEntity = EntityEntity = __decorate([
2550
2560
  * * Schema: __mj
2551
2561
  * * Base Table: User
2552
2562
  * * Base View: vwUsers
2563
+ * * @description A list of all users who have or had access to the system
2553
2564
  * * Primary Key: ID
2554
2565
  * @extends {BaseEntity}
2555
2566
  * @class
@@ -2776,6 +2787,7 @@ exports.UserEntity = UserEntity = __decorate([
2776
2787
  * * Schema: __mj
2777
2788
  * * Base Table: EntityRelationship
2778
2789
  * * Base View: vwEntityRelationships
2790
+ * * @description Metadata about relationships between entities including display preferences for the UI
2779
2791
  * * Primary Key: ID
2780
2792
  * @extends {BaseEntity}
2781
2793
  * @class
@@ -3248,6 +3260,7 @@ exports.UserRecordLogEntity = UserRecordLogEntity = __decorate([
3248
3260
  * * Schema: __mj
3249
3261
  * * Base Table: UserView
3250
3262
  * * Base View: vwUserViews
3263
+ * * @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.
3251
3264
  * * Primary Key: ID
3252
3265
  * @extends {BaseEntity}
3253
3266
  * @class
@@ -3967,6 +3980,7 @@ exports.ErrorLogEntity = ErrorLogEntity = __decorate([
3967
3980
  * * Schema: __mj
3968
3981
  * * Base Table: Application
3969
3982
  * * Base View: vwApplications
3983
+ * * @description Applications are used to group entities in the user interface for ease of user access
3970
3984
  * * Primary Key: ID
3971
3985
  * @extends {BaseEntity}
3972
3986
  * @class
@@ -4055,6 +4069,7 @@ exports.ApplicationEntity = ApplicationEntity = __decorate([
4055
4069
  * * Schema: __mj
4056
4070
  * * Base Table: ApplicationEntity
4057
4071
  * * Base View: vwApplicationEntities
4072
+ * * @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.
4058
4073
  * * Primary Key: ID
4059
4074
  * @extends {BaseEntity}
4060
4075
  * @class
@@ -4204,6 +4219,7 @@ exports.ApplicationEntityEntity = ApplicationEntityEntity = __decorate([
4204
4219
  * * Schema: __mj
4205
4220
  * * Base Table: EntityPermission
4206
4221
  * * Base View: vwEntityPermissions
4222
+ * * @description Security settings for each entity
4207
4223
  * * Primary Key: ID
4208
4224
  * @extends {BaseEntity}
4209
4225
  * @class
@@ -4745,6 +4761,7 @@ exports.CompanyIntegrationRunAPILogEntity = CompanyIntegrationRunAPILogEntity =
4745
4761
  * * Schema: __mj
4746
4762
  * * Base Table: List
4747
4763
  * * Base View: vwLists
4764
+ * * @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.
4748
4765
  * * Primary Key: ID
4749
4766
  * @extends {BaseEntity}
4750
4767
  * @class
@@ -4885,6 +4902,7 @@ exports.ListEntity = ListEntity = __decorate([
4885
4902
  * * Schema: __mj
4886
4903
  * * Base Table: ListDetail
4887
4904
  * * Base View: vwListDetails
4905
+ * * @description Tracks the records within each list.
4888
4906
  * * Primary Key: ID
4889
4907
  * @extends {BaseEntity}
4890
4908
  * @class
@@ -4958,6 +4976,7 @@ exports.ListDetailEntity = ListDetailEntity = __decorate([
4958
4976
  * * Schema: __mj
4959
4977
  * * Base Table: UserViewRun
4960
4978
  * * Base View: vwUserViewRuns
4979
+ * * @description User Views can be logged when run to capture the date and user that ran the view as well as the output results.
4961
4980
  * * Primary Key: ID
4962
4981
  * @extends {BaseEntity}
4963
4982
  * @class
@@ -5059,6 +5078,7 @@ exports.UserViewRunEntity = UserViewRunEntity = __decorate([
5059
5078
  * * Schema: __mj
5060
5079
  * * Base Table: UserViewRunDetail
5061
5080
  * * Base View: vwUserViewRunDetails
5081
+ * * @description Tracks the set of records that were included in each run of a given user view.
5062
5082
  * * Primary Key: ID
5063
5083
  * @extends {BaseEntity}
5064
5084
  * @class
@@ -5513,6 +5533,7 @@ exports.WorkflowEngineEntity = WorkflowEngineEntity = __decorate([
5513
5533
  * * Schema: __mj
5514
5534
  * * Base Table: RecordChange
5515
5535
  * * Base View: vwRecordChanges
5536
+ * * @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.
5516
5537
  * * Primary Key: ID
5517
5538
  * @extends {BaseEntity}
5518
5539
  * @class
@@ -6619,6 +6640,7 @@ exports.EntityFieldValueEntity = EntityFieldValueEntity = __decorate([
6619
6640
  * * Schema: __mj
6620
6641
  * * Base Table: AIModel
6621
6642
  * * Base View: vwAIModels
6643
+ * * @description Catalog of all AI Models configured in the system.
6622
6644
  * * Primary Key: ID
6623
6645
  * @extends {BaseEntity}
6624
6646
  * @class
@@ -6767,6 +6789,7 @@ exports.AIModelEntity = AIModelEntity = __decorate([
6767
6789
  * * Schema: __mj
6768
6790
  * * Base Table: AIAction
6769
6791
  * * Base View: vwAIActions
6792
+ * * @description List of all actions that are possible across all AI Models
6770
6793
  * * Primary Key: ID
6771
6794
  * @extends {BaseEntity}
6772
6795
  * @class
@@ -6901,6 +6924,7 @@ exports.AIActionEntity = AIActionEntity = __decorate([
6901
6924
  * * Schema: __mj
6902
6925
  * * Base Table: AIModelAction
6903
6926
  * * Base View: vwAIModelActions
6927
+ * * @description Tracks the actions supported by each AI Model
6904
6928
  * * Primary Key: ID
6905
6929
  * @extends {BaseEntity}
6906
6930
  * @class
@@ -7022,6 +7046,7 @@ exports.AIModelActionEntity = AIModelActionEntity = __decorate([
7022
7046
  * * Schema: __mj
7023
7047
  * * Base Table: EntityAIAction
7024
7048
  * * Base View: vwEntityAIActions
7049
+ * * @description Tracks the AI actions that should be invoked based on changes to records within a given entity.
7025
7050
  * * Primary Key: ID
7026
7051
  * @extends {BaseEntity}
7027
7052
  * @class
@@ -7244,6 +7269,7 @@ exports.EntityAIActionEntity = EntityAIActionEntity = __decorate([
7244
7269
  * * Schema: __mj
7245
7270
  * * Base Table: AIModelType
7246
7271
  * * Base View: vwAIModelTypes
7272
+ * * @description Types of AI Models
7247
7273
  * * Primary Key: ID
7248
7274
  * @extends {BaseEntity}
7249
7275
  * @class
@@ -7435,6 +7461,7 @@ exports.QueueTypeEntity = QueueTypeEntity = __decorate([
7435
7461
  * * Schema: __mj
7436
7462
  * * Base Table: Queue
7437
7463
  * * Base View: vwQueues
7464
+ * * @description Queues can be used to async execute long running tasks
7438
7465
  * * Primary Key: ID
7439
7466
  * @extends {BaseEntity}
7440
7467
  * @class
@@ -7843,6 +7870,7 @@ exports.QueueTaskEntity = QueueTaskEntity = __decorate([
7843
7870
  * * Schema: __mj
7844
7871
  * * Base Table: Dashboard
7845
7872
  * * Base View: vwDashboards
7873
+ * * @description Dashboards are used to group resources into a single display pane for an end-user
7846
7874
  * * Primary Key: ID
7847
7875
  * @extends {BaseEntity}
7848
7876
  * @class
@@ -8772,6 +8800,7 @@ exports.ResourceTypeEntity = ResourceTypeEntity = __decorate([
8772
8800
  * * Schema: __mj
8773
8801
  * * Base Table: Tag
8774
8802
  * * Base View: vwTags
8803
+ * * @description Tags are used to arbitrarily associate any record in any entity with addtional information.
8775
8804
  * * Primary Key: ID
8776
8805
  * @extends {BaseEntity}
8777
8806
  * @class
@@ -8887,6 +8916,7 @@ exports.TagEntity = TagEntity = __decorate([
8887
8916
  * * Schema: __mj
8888
8917
  * * Base Table: TaggedItem
8889
8918
  * * Base View: vwTaggedItems
8919
+ * * @description Tracks the links between any record in any entity with Tags
8890
8920
  * * Primary Key: ID
8891
8921
  * @extends {BaseEntity}
8892
8922
  * @class
@@ -8989,6 +9019,7 @@ exports.TaggedItemEntity = TaggedItemEntity = __decorate([
8989
9019
  * * Schema: __mj
8990
9020
  * * Base Table: Workspace
8991
9021
  * * Base View: vwWorkspaces
9022
+ * * @description A user can have one or more workspaces
8992
9023
  * * Primary Key: ID
8993
9024
  * @extends {BaseEntity}
8994
9025
  * @class
@@ -9071,6 +9102,7 @@ exports.WorkspaceEntity = WorkspaceEntity = __decorate([
9071
9102
  * * Schema: __mj
9072
9103
  * * Base Table: WorkspaceItem
9073
9104
  * * Base View: vwWorkspaceItems
9105
+ * * @description Tracks the resources that are active within a given worksapce
9074
9106
  * * Primary Key: ID
9075
9107
  * @extends {BaseEntity}
9076
9108
  * @class
@@ -9206,6 +9238,7 @@ exports.WorkspaceItemEntity = WorkspaceItemEntity = __decorate([
9206
9238
  * * Schema: __mj
9207
9239
  * * Base Table: Dataset
9208
9240
  * * Base View: vwDatasets
9241
+ * * @description Cacheable sets of data that can span one or more items
9209
9242
  * * Primary Key: ID
9210
9243
  * @extends {BaseEntity}
9211
9244
  * @class
@@ -9308,6 +9341,7 @@ exports.DatasetEntity = DatasetEntity = __decorate([
9308
9341
  * * Schema: __mj
9309
9342
  * * Base Table: DatasetItem
9310
9343
  * * Base View: vwDatasetItems
9344
+ * * @description A single item in a Dataset and can be sourced from multiple methods.
9311
9345
  * * Primary Key: ID
9312
9346
  * @extends {BaseEntity}
9313
9347
  * @class
@@ -9944,6 +9978,7 @@ exports.UserNotificationEntity = UserNotificationEntity = __decorate([
9944
9978
  * * Schema: __mj
9945
9979
  * * Base Table: SchemaInfo
9946
9980
  * * Base View: vwSchemaInfos
9981
+ * * @description Tracks the schemas in the system and the ID ranges that are valid for entities within each schema.
9947
9982
  * * Primary Key: ID
9948
9983
  * @extends {BaseEntity}
9949
9984
  * @class
@@ -10818,6 +10853,7 @@ exports.QueryCategoryEntity = QueryCategoryEntity = __decorate([
10818
10853
  * * Schema: __mj
10819
10854
  * * Base Table: Query
10820
10855
  * * Base View: vwQueries
10856
+ * * @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.
10821
10857
  * * Primary Key: ID
10822
10858
  * @extends {BaseEntity}
10823
10859
  * @class