@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.
@@ -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
@@ -772,17 +776,6 @@ let RoleEntity = class RoleEntity extends core_1.BaseEntity {
772
776
  return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
773
777
  }
774
778
  /**
775
- * 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.
776
- * @public
777
- * @method
778
- * @override
779
- * @memberof RoleEntity
780
- * @throws {Error} - Delete is not allowed for Roles, to enable it set AllowDeleteAPI to 1 in the database.
781
- */
782
- async Delete() {
783
- throw new Error('Delete is not allowed for Roles, to enable it set AllowDeleteAPI to 1 in the database.');
784
- }
785
- /**
786
779
  * * Field Name: ID
787
780
  * * SQL Data Type: int
788
781
  */
@@ -861,6 +854,7 @@ exports.RoleEntity = RoleEntity = __decorate([
861
854
  * * Schema: __mj
862
855
  * * Base Table: Skill
863
856
  * * Base View: vwSkills
857
+ * * @description A hierarchical list of possible skills that are linked to Employees and can also be linked to any other entity
864
858
  * * Primary Key: ID
865
859
  * @extends {BaseEntity}
866
860
  * @class
@@ -970,6 +964,7 @@ exports.SkillEntity = SkillEntity = __decorate([
970
964
  * * Schema: __mj
971
965
  * * Base Table: IntegrationURLFormat
972
966
  * * Base View: vwIntegrationURLFormats
967
+ * * @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
968
  * * Primary Key: ID
974
969
  * @extends {BaseEntity}
975
970
  * @class
@@ -1086,6 +1081,7 @@ exports.IntegrationURLFormatEntity = IntegrationURLFormatEntity = __decorate([
1086
1081
  * * Schema: __mj
1087
1082
  * * Base Table: Integration
1088
1083
  * * Base View: vwIntegrations
1084
+ * * @description Catalog of all integrations that have been configured in the system.
1089
1085
  * * Primary Key: ID
1090
1086
  * @extends {BaseEntity}
1091
1087
  * @class
@@ -1231,6 +1227,7 @@ exports.IntegrationEntity = IntegrationEntity = __decorate([
1231
1227
  * * Schema: __mj
1232
1228
  * * Base Table: CompanyIntegration
1233
1229
  * * Base View: vwCompanyIntegrations
1230
+ * * @description Links individual company records to specific integrations
1234
1231
  * * Primary Key: ID
1235
1232
  * @extends {BaseEntity}
1236
1233
  * @class
@@ -1503,6 +1500,7 @@ exports.CompanyIntegrationEntity = CompanyIntegrationEntity = __decorate([
1503
1500
  * * Schema: __mj
1504
1501
  * * Base Table: EntityField
1505
1502
  * * Base View: vwEntityFields
1503
+ * * @description List of all fields within each entity with metadata about each field
1506
1504
  * * Primary Key: ID
1507
1505
  * @extends {BaseEntity}
1508
1506
  * @class
@@ -2009,6 +2007,7 @@ exports.EntityFieldEntity = EntityFieldEntity = __decorate([
2009
2007
  * * Schema: __mj
2010
2008
  * * Base Table: Entity
2011
2009
  * * Base View: vwEntities
2010
+ * * @description Catalog of all entities across all schemas
2012
2011
  * * Primary Key: ID
2013
2012
  * @extends {BaseEntity}
2014
2013
  * @class
@@ -2550,6 +2549,7 @@ exports.EntityEntity = EntityEntity = __decorate([
2550
2549
  * * Schema: __mj
2551
2550
  * * Base Table: User
2552
2551
  * * Base View: vwUsers
2552
+ * * @description A list of all users who have or had access to the system
2553
2553
  * * Primary Key: ID
2554
2554
  * @extends {BaseEntity}
2555
2555
  * @class
@@ -2776,6 +2776,7 @@ exports.UserEntity = UserEntity = __decorate([
2776
2776
  * * Schema: __mj
2777
2777
  * * Base Table: EntityRelationship
2778
2778
  * * Base View: vwEntityRelationships
2779
+ * * @description Metadata about relationships between entities including display preferences for the UI
2779
2780
  * * Primary Key: ID
2780
2781
  * @extends {BaseEntity}
2781
2782
  * @class
@@ -3248,6 +3249,7 @@ exports.UserRecordLogEntity = UserRecordLogEntity = __decorate([
3248
3249
  * * Schema: __mj
3249
3250
  * * Base Table: UserView
3250
3251
  * * Base View: vwUserViews
3252
+ * * @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
3253
  * * Primary Key: ID
3252
3254
  * @extends {BaseEntity}
3253
3255
  * @class
@@ -3967,6 +3969,7 @@ exports.ErrorLogEntity = ErrorLogEntity = __decorate([
3967
3969
  * * Schema: __mj
3968
3970
  * * Base Table: Application
3969
3971
  * * Base View: vwApplications
3972
+ * * @description Applications are used to group entities in the user interface for ease of user access
3970
3973
  * * Primary Key: ID
3971
3974
  * @extends {BaseEntity}
3972
3975
  * @class
@@ -4055,6 +4058,7 @@ exports.ApplicationEntity = ApplicationEntity = __decorate([
4055
4058
  * * Schema: __mj
4056
4059
  * * Base Table: ApplicationEntity
4057
4060
  * * Base View: vwApplicationEntities
4061
+ * * @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
4062
  * * Primary Key: ID
4059
4063
  * @extends {BaseEntity}
4060
4064
  * @class
@@ -4204,6 +4208,7 @@ exports.ApplicationEntityEntity = ApplicationEntityEntity = __decorate([
4204
4208
  * * Schema: __mj
4205
4209
  * * Base Table: EntityPermission
4206
4210
  * * Base View: vwEntityPermissions
4211
+ * * @description Security settings for each entity
4207
4212
  * * Primary Key: ID
4208
4213
  * @extends {BaseEntity}
4209
4214
  * @class
@@ -4745,6 +4750,7 @@ exports.CompanyIntegrationRunAPILogEntity = CompanyIntegrationRunAPILogEntity =
4745
4750
  * * Schema: __mj
4746
4751
  * * Base Table: List
4747
4752
  * * Base View: vwLists
4753
+ * * @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
4754
  * * Primary Key: ID
4749
4755
  * @extends {BaseEntity}
4750
4756
  * @class
@@ -4885,6 +4891,7 @@ exports.ListEntity = ListEntity = __decorate([
4885
4891
  * * Schema: __mj
4886
4892
  * * Base Table: ListDetail
4887
4893
  * * Base View: vwListDetails
4894
+ * * @description Tracks the records within each list.
4888
4895
  * * Primary Key: ID
4889
4896
  * @extends {BaseEntity}
4890
4897
  * @class
@@ -4958,6 +4965,7 @@ exports.ListDetailEntity = ListDetailEntity = __decorate([
4958
4965
  * * Schema: __mj
4959
4966
  * * Base Table: UserViewRun
4960
4967
  * * Base View: vwUserViewRuns
4968
+ * * @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
4969
  * * Primary Key: ID
4962
4970
  * @extends {BaseEntity}
4963
4971
  * @class
@@ -5059,6 +5067,7 @@ exports.UserViewRunEntity = UserViewRunEntity = __decorate([
5059
5067
  * * Schema: __mj
5060
5068
  * * Base Table: UserViewRunDetail
5061
5069
  * * Base View: vwUserViewRunDetails
5070
+ * * @description Tracks the set of records that were included in each run of a given user view.
5062
5071
  * * Primary Key: ID
5063
5072
  * @extends {BaseEntity}
5064
5073
  * @class
@@ -5513,6 +5522,7 @@ exports.WorkflowEngineEntity = WorkflowEngineEntity = __decorate([
5513
5522
  * * Schema: __mj
5514
5523
  * * Base Table: RecordChange
5515
5524
  * * Base View: vwRecordChanges
5525
+ * * @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
5526
  * * Primary Key: ID
5517
5527
  * @extends {BaseEntity}
5518
5528
  * @class
@@ -6619,6 +6629,7 @@ exports.EntityFieldValueEntity = EntityFieldValueEntity = __decorate([
6619
6629
  * * Schema: __mj
6620
6630
  * * Base Table: AIModel
6621
6631
  * * Base View: vwAIModels
6632
+ * * @description Catalog of all AI Models configured in the system.
6622
6633
  * * Primary Key: ID
6623
6634
  * @extends {BaseEntity}
6624
6635
  * @class
@@ -6767,6 +6778,7 @@ exports.AIModelEntity = AIModelEntity = __decorate([
6767
6778
  * * Schema: __mj
6768
6779
  * * Base Table: AIAction
6769
6780
  * * Base View: vwAIActions
6781
+ * * @description List of all actions that are possible across all AI Models
6770
6782
  * * Primary Key: ID
6771
6783
  * @extends {BaseEntity}
6772
6784
  * @class
@@ -6901,6 +6913,7 @@ exports.AIActionEntity = AIActionEntity = __decorate([
6901
6913
  * * Schema: __mj
6902
6914
  * * Base Table: AIModelAction
6903
6915
  * * Base View: vwAIModelActions
6916
+ * * @description Tracks the actions supported by each AI Model
6904
6917
  * * Primary Key: ID
6905
6918
  * @extends {BaseEntity}
6906
6919
  * @class
@@ -7022,6 +7035,7 @@ exports.AIModelActionEntity = AIModelActionEntity = __decorate([
7022
7035
  * * Schema: __mj
7023
7036
  * * Base Table: EntityAIAction
7024
7037
  * * Base View: vwEntityAIActions
7038
+ * * @description Tracks the AI actions that should be invoked based on changes to records within a given entity.
7025
7039
  * * Primary Key: ID
7026
7040
  * @extends {BaseEntity}
7027
7041
  * @class
@@ -7244,6 +7258,7 @@ exports.EntityAIActionEntity = EntityAIActionEntity = __decorate([
7244
7258
  * * Schema: __mj
7245
7259
  * * Base Table: AIModelType
7246
7260
  * * Base View: vwAIModelTypes
7261
+ * * @description Types of AI Models
7247
7262
  * * Primary Key: ID
7248
7263
  * @extends {BaseEntity}
7249
7264
  * @class
@@ -7435,6 +7450,7 @@ exports.QueueTypeEntity = QueueTypeEntity = __decorate([
7435
7450
  * * Schema: __mj
7436
7451
  * * Base Table: Queue
7437
7452
  * * Base View: vwQueues
7453
+ * * @description Queues can be used to async execute long running tasks
7438
7454
  * * Primary Key: ID
7439
7455
  * @extends {BaseEntity}
7440
7456
  * @class
@@ -7843,6 +7859,7 @@ exports.QueueTaskEntity = QueueTaskEntity = __decorate([
7843
7859
  * * Schema: __mj
7844
7860
  * * Base Table: Dashboard
7845
7861
  * * Base View: vwDashboards
7862
+ * * @description Dashboards are used to group resources into a single display pane for an end-user
7846
7863
  * * Primary Key: ID
7847
7864
  * @extends {BaseEntity}
7848
7865
  * @class
@@ -8772,6 +8789,7 @@ exports.ResourceTypeEntity = ResourceTypeEntity = __decorate([
8772
8789
  * * Schema: __mj
8773
8790
  * * Base Table: Tag
8774
8791
  * * Base View: vwTags
8792
+ * * @description Tags are used to arbitrarily associate any record in any entity with addtional information.
8775
8793
  * * Primary Key: ID
8776
8794
  * @extends {BaseEntity}
8777
8795
  * @class
@@ -8887,6 +8905,7 @@ exports.TagEntity = TagEntity = __decorate([
8887
8905
  * * Schema: __mj
8888
8906
  * * Base Table: TaggedItem
8889
8907
  * * Base View: vwTaggedItems
8908
+ * * @description Tracks the links between any record in any entity with Tags
8890
8909
  * * Primary Key: ID
8891
8910
  * @extends {BaseEntity}
8892
8911
  * @class
@@ -8989,6 +9008,7 @@ exports.TaggedItemEntity = TaggedItemEntity = __decorate([
8989
9008
  * * Schema: __mj
8990
9009
  * * Base Table: Workspace
8991
9010
  * * Base View: vwWorkspaces
9011
+ * * @description A user can have one or more workspaces
8992
9012
  * * Primary Key: ID
8993
9013
  * @extends {BaseEntity}
8994
9014
  * @class
@@ -9071,6 +9091,7 @@ exports.WorkspaceEntity = WorkspaceEntity = __decorate([
9071
9091
  * * Schema: __mj
9072
9092
  * * Base Table: WorkspaceItem
9073
9093
  * * Base View: vwWorkspaceItems
9094
+ * * @description Tracks the resources that are active within a given worksapce
9074
9095
  * * Primary Key: ID
9075
9096
  * @extends {BaseEntity}
9076
9097
  * @class
@@ -9206,6 +9227,7 @@ exports.WorkspaceItemEntity = WorkspaceItemEntity = __decorate([
9206
9227
  * * Schema: __mj
9207
9228
  * * Base Table: Dataset
9208
9229
  * * Base View: vwDatasets
9230
+ * * @description Cacheable sets of data that can span one or more items
9209
9231
  * * Primary Key: ID
9210
9232
  * @extends {BaseEntity}
9211
9233
  * @class
@@ -9308,6 +9330,7 @@ exports.DatasetEntity = DatasetEntity = __decorate([
9308
9330
  * * Schema: __mj
9309
9331
  * * Base Table: DatasetItem
9310
9332
  * * Base View: vwDatasetItems
9333
+ * * @description A single item in a Dataset and can be sourced from multiple methods.
9311
9334
  * * Primary Key: ID
9312
9335
  * @extends {BaseEntity}
9313
9336
  * @class
@@ -9944,6 +9967,7 @@ exports.UserNotificationEntity = UserNotificationEntity = __decorate([
9944
9967
  * * Schema: __mj
9945
9968
  * * Base Table: SchemaInfo
9946
9969
  * * Base View: vwSchemaInfos
9970
+ * * @description Tracks the schemas in the system and the ID ranges that are valid for entities within each schema.
9947
9971
  * * Primary Key: ID
9948
9972
  * @extends {BaseEntity}
9949
9973
  * @class
@@ -10818,6 +10842,7 @@ exports.QueryCategoryEntity = QueryCategoryEntity = __decorate([
10818
10842
  * * Schema: __mj
10819
10843
  * * Base Table: Query
10820
10844
  * * Base View: vwQueries
10845
+ * * @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
10846
  * * Primary Key: ID
10822
10847
  * @extends {BaseEntity}
10823
10848
  * @class