@memberjunction/core-entities 0.9.121 → 0.9.123
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.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.ResourceFolderEntity = 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.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.ResourceFolderEntity = 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
|
/**
|
|
@@ -1537,7 +1537,6 @@ let EntityFieldEntity = class EntityFieldEntity extends core_1.BaseEntity {
|
|
|
1537
1537
|
* * Field Name: EntityID
|
|
1538
1538
|
* * Display Name: Entity ID
|
|
1539
1539
|
* * SQL Data Type: int
|
|
1540
|
-
* * Related Entity: Entities
|
|
1541
1540
|
*/
|
|
1542
1541
|
get EntityID() {
|
|
1543
1542
|
return this.Get('EntityID');
|
|
@@ -1579,6 +1578,19 @@ let EntityFieldEntity = class EntityFieldEntity extends core_1.BaseEntity {
|
|
|
1579
1578
|
this.Set('Description', value);
|
|
1580
1579
|
}
|
|
1581
1580
|
/**
|
|
1581
|
+
* * Field Name: AutoUpdateDescription
|
|
1582
|
+
* * Display Name: Auto Update Description
|
|
1583
|
+
* * SQL Data Type: bit
|
|
1584
|
+
* * Default Value: 1
|
|
1585
|
+
* * Description: When set to 1 (default), whenever a description is modified in the column within the underlying view (first choice) or table (second choice), the Description column in the entity field definition will be automatically updated. If you never set metadata in the database directly, you can leave this alone. However, if you have metadata set in the database level for description, and you want to provide a DIFFERENT description in this entity field definition, turn this bit off and then set the Description field and future CodeGen runs will NOT override the Description field here.
|
|
1586
|
+
*/
|
|
1587
|
+
get AutoUpdateDescription() {
|
|
1588
|
+
return this.Get('AutoUpdateDescription');
|
|
1589
|
+
}
|
|
1590
|
+
set AutoUpdateDescription(value) {
|
|
1591
|
+
this.Set('AutoUpdateDescription', value);
|
|
1592
|
+
}
|
|
1593
|
+
/**
|
|
1582
1594
|
* * Field Name: IsPrimaryKey
|
|
1583
1595
|
* * Display Name: Is Primary Key
|
|
1584
1596
|
* * SQL Data Type: bit
|
|
@@ -1832,7 +1844,6 @@ let EntityFieldEntity = class EntityFieldEntity extends core_1.BaseEntity {
|
|
|
1832
1844
|
* * Field Name: RelatedEntityID
|
|
1833
1845
|
* * Display Name: RelatedEntity ID
|
|
1834
1846
|
* * SQL Data Type: int
|
|
1835
|
-
* * Related Entity: Entities
|
|
1836
1847
|
*/
|
|
1837
1848
|
get RelatedEntityID() {
|
|
1838
1849
|
return this.Get('RelatedEntityID');
|
|
@@ -2072,6 +2083,19 @@ let EntityEntity = class EntityEntity extends core_1.BaseEntity {
|
|
|
2072
2083
|
this.Set('Description', value);
|
|
2073
2084
|
}
|
|
2074
2085
|
/**
|
|
2086
|
+
* * Field Name: AutoUpdateDescription
|
|
2087
|
+
* * Display Name: Auto Update Description
|
|
2088
|
+
* * SQL Data Type: bit
|
|
2089
|
+
* * Default Value: 1
|
|
2090
|
+
* * Description: When set to 1 (default), whenever a description is modified in the underlying view (first choice) or table (second choice), the Description column in the entity definition will be automatically updated. If you never set metadata in the database directly, you can leave this alone. However, if you have metadata set in the database level for description, and you want to provide a DIFFERENT description in this entity definition, turn this bit off and then set the Description field and future CodeGen runs will NOT override the Description field here.
|
|
2091
|
+
*/
|
|
2092
|
+
get AutoUpdateDescription() {
|
|
2093
|
+
return this.Get('AutoUpdateDescription');
|
|
2094
|
+
}
|
|
2095
|
+
set AutoUpdateDescription(value) {
|
|
2096
|
+
this.Set('AutoUpdateDescription', value);
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2075
2099
|
* * Field Name: BaseTable
|
|
2076
2100
|
* * Display Name: Base Table
|
|
2077
2101
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -3275,7 +3299,6 @@ let UserViewEntity = class UserViewEntity extends core_1.BaseEntity {
|
|
|
3275
3299
|
* * Field Name: EntityID
|
|
3276
3300
|
* * Display Name: Entity ID
|
|
3277
3301
|
* * SQL Data Type: int
|
|
3278
|
-
* * Related Entity: Entities
|
|
3279
3302
|
*/
|
|
3280
3303
|
get EntityID() {
|
|
3281
3304
|
return this.Get('EntityID');
|
|
@@ -3708,7 +3731,6 @@ let CompanyIntegrationRunDetailEntity = class CompanyIntegrationRunDetailEntity
|
|
|
3708
3731
|
* * Field Name: EntityID
|
|
3709
3732
|
* * Display Name: Entity ID
|
|
3710
3733
|
* * SQL Data Type: int
|
|
3711
|
-
* * Related Entity: Entities
|
|
3712
3734
|
*/
|
|
3713
3735
|
get EntityID() {
|
|
3714
3736
|
return this.Get('EntityID');
|
|
@@ -4072,7 +4094,6 @@ let ApplicationEntityEntity = class ApplicationEntityEntity extends core_1.BaseE
|
|
|
4072
4094
|
* * Field Name: EntityID
|
|
4073
4095
|
* * Display Name: Entity ID
|
|
4074
4096
|
* * SQL Data Type: int
|
|
4075
|
-
* * Related Entity: Entities
|
|
4076
4097
|
*/
|
|
4077
4098
|
get EntityID() {
|
|
4078
4099
|
return this.Get('EntityID');
|
|
@@ -4209,7 +4230,6 @@ let EntityPermissionEntity = class EntityPermissionEntity extends core_1.BaseEnt
|
|
|
4209
4230
|
* * Field Name: EntityID
|
|
4210
4231
|
* * Display Name: Entity ID
|
|
4211
4232
|
* * SQL Data Type: int
|
|
4212
|
-
* * Related Entity: Entities
|
|
4213
4233
|
*/
|
|
4214
4234
|
get EntityID() {
|
|
4215
4235
|
return this.Get('EntityID');
|
|
@@ -4445,7 +4465,6 @@ let UserApplicationEntityEntity = class UserApplicationEntityEntity extends core
|
|
|
4445
4465
|
* * Field Name: EntityID
|
|
4446
4466
|
* * Display Name: Entity ID
|
|
4447
4467
|
* * SQL Data Type: int
|
|
4448
|
-
* * Related Entity: Entities
|
|
4449
4468
|
*/
|
|
4450
4469
|
get EntityID() {
|
|
4451
4470
|
return this.Get('EntityID');
|
|
@@ -4781,7 +4800,6 @@ let ListEntity = class ListEntity extends core_1.BaseEntity {
|
|
|
4781
4800
|
* * Field Name: EntityID
|
|
4782
4801
|
* * Display Name: Entity ID
|
|
4783
4802
|
* * SQL Data Type: int
|
|
4784
|
-
* * Related Entity: Entities
|
|
4785
4803
|
*/
|
|
4786
4804
|
get EntityID() {
|
|
4787
4805
|
return this.Get('EntityID');
|
|
@@ -4843,14 +4861,6 @@ let ListEntity = class ListEntity extends core_1.BaseEntity {
|
|
|
4843
4861
|
return this.Get('UpdatedAt');
|
|
4844
4862
|
}
|
|
4845
4863
|
/**
|
|
4846
|
-
* * Field Name: Entity
|
|
4847
|
-
* * Display Name: Entity
|
|
4848
|
-
* * SQL Data Type: nvarchar(255)
|
|
4849
|
-
*/
|
|
4850
|
-
get Entity() {
|
|
4851
|
-
return this.Get('Entity');
|
|
4852
|
-
}
|
|
4853
|
-
/**
|
|
4854
4864
|
* * Field Name: User
|
|
4855
4865
|
* * Display Name: User
|
|
4856
4866
|
* * SQL Data Type: nvarchar(100)
|
|
@@ -5993,7 +6003,6 @@ let AuditLogEntity = class AuditLogEntity extends core_1.BaseEntity {
|
|
|
5993
6003
|
* * Field Name: EntityID
|
|
5994
6004
|
* * Display Name: Entity ID
|
|
5995
6005
|
* * SQL Data Type: int
|
|
5996
|
-
* * Related Entity: Entities
|
|
5997
6006
|
*/
|
|
5998
6007
|
get EntityID() {
|
|
5999
6008
|
return this.Get('EntityID');
|
|
@@ -6038,14 +6047,6 @@ let AuditLogEntity = class AuditLogEntity extends core_1.BaseEntity {
|
|
|
6038
6047
|
get User() {
|
|
6039
6048
|
return this.Get('User');
|
|
6040
6049
|
}
|
|
6041
|
-
/**
|
|
6042
|
-
* * Field Name: Entity
|
|
6043
|
-
* * Display Name: Entity
|
|
6044
|
-
* * SQL Data Type: nvarchar(255)
|
|
6045
|
-
*/
|
|
6046
|
-
get Entity() {
|
|
6047
|
-
return this.Get('Entity');
|
|
6048
|
-
}
|
|
6049
6050
|
};
|
|
6050
6051
|
exports.AuditLogEntity = AuditLogEntity;
|
|
6051
6052
|
exports.AuditLogEntity = AuditLogEntity = __decorate([
|
|
@@ -8901,7 +8902,6 @@ let TaggedItemEntity = class TaggedItemEntity extends core_1.BaseEntity {
|
|
|
8901
8902
|
* * Field Name: EntityID
|
|
8902
8903
|
* * Display Name: Entity ID
|
|
8903
8904
|
* * SQL Data Type: int
|
|
8904
|
-
* * Related Entity: Entities
|
|
8905
8905
|
*/
|
|
8906
8906
|
get EntityID() {
|
|
8907
8907
|
return this.Get('EntityID');
|
|
@@ -8928,14 +8928,6 @@ let TaggedItemEntity = class TaggedItemEntity extends core_1.BaseEntity {
|
|
|
8928
8928
|
get Tag() {
|
|
8929
8929
|
return this.Get('Tag');
|
|
8930
8930
|
}
|
|
8931
|
-
/**
|
|
8932
|
-
* * Field Name: Entity
|
|
8933
|
-
* * Display Name: Entity
|
|
8934
|
-
* * SQL Data Type: nvarchar(255)
|
|
8935
|
-
*/
|
|
8936
|
-
get Entity() {
|
|
8937
|
-
return this.Get('Entity');
|
|
8938
|
-
}
|
|
8939
8931
|
};
|
|
8940
8932
|
exports.TaggedItemEntity = TaggedItemEntity;
|
|
8941
8933
|
exports.TaggedItemEntity = TaggedItemEntity = __decorate([
|
|
@@ -9679,6 +9671,17 @@ let ConversationEntity = class ConversationEntity extends core_1.BaseEntity {
|
|
|
9679
9671
|
this.Set('LinkedRecordID', value);
|
|
9680
9672
|
}
|
|
9681
9673
|
/**
|
|
9674
|
+
* * Field Name: DataContextID
|
|
9675
|
+
* * Display Name: Data Context ID
|
|
9676
|
+
* * SQL Data Type: int
|
|
9677
|
+
*/
|
|
9678
|
+
get DataContextID() {
|
|
9679
|
+
return this.Get('DataContextID');
|
|
9680
|
+
}
|
|
9681
|
+
set DataContextID(value) {
|
|
9682
|
+
this.Set('DataContextID', value);
|
|
9683
|
+
}
|
|
9684
|
+
/**
|
|
9682
9685
|
* * Field Name: CreatedAt
|
|
9683
9686
|
* * Display Name: Created At
|
|
9684
9687
|
* * SQL Data Type: datetime
|
|
@@ -10213,7 +10216,6 @@ let CompanyIntegrationRecordMapEntity = class CompanyIntegrationRecordMapEntity
|
|
|
10213
10216
|
* * Field Name: EntityID
|
|
10214
10217
|
* * Display Name: Entity ID
|
|
10215
10218
|
* * SQL Data Type: int
|
|
10216
|
-
* * Related Entity: Entities
|
|
10217
10219
|
*/
|
|
10218
10220
|
get EntityID() {
|
|
10219
10221
|
return this.Get('EntityID');
|
|
@@ -10250,14 +10252,6 @@ let CompanyIntegrationRecordMapEntity = class CompanyIntegrationRecordMapEntity
|
|
|
10250
10252
|
get UpdatedAt() {
|
|
10251
10253
|
return this.Get('UpdatedAt');
|
|
10252
10254
|
}
|
|
10253
|
-
/**
|
|
10254
|
-
* * Field Name: Entity
|
|
10255
|
-
* * Display Name: Entity
|
|
10256
|
-
* * SQL Data Type: nvarchar(255)
|
|
10257
|
-
*/
|
|
10258
|
-
get Entity() {
|
|
10259
|
-
return this.Get('Entity');
|
|
10260
|
-
}
|
|
10261
10255
|
};
|
|
10262
10256
|
exports.CompanyIntegrationRecordMapEntity = CompanyIntegrationRecordMapEntity;
|
|
10263
10257
|
exports.CompanyIntegrationRecordMapEntity = CompanyIntegrationRecordMapEntity = __decorate([
|
|
@@ -10673,7 +10667,6 @@ let QueryFieldEntity = class QueryFieldEntity extends core_1.BaseEntity {
|
|
|
10673
10667
|
* * Field Name: SourceEntityID
|
|
10674
10668
|
* * Display Name: Source Entity ID
|
|
10675
10669
|
* * SQL Data Type: int
|
|
10676
|
-
* * Related Entity: Entities
|
|
10677
10670
|
*/
|
|
10678
10671
|
get SourceEntityID() {
|
|
10679
10672
|
return this.Get('SourceEntityID');
|
|
@@ -10764,14 +10757,6 @@ let QueryFieldEntity = class QueryFieldEntity extends core_1.BaseEntity {
|
|
|
10764
10757
|
get Query() {
|
|
10765
10758
|
return this.Get('Query');
|
|
10766
10759
|
}
|
|
10767
|
-
/**
|
|
10768
|
-
* * Field Name: SourceEntity
|
|
10769
|
-
* * Display Name: Source Entity
|
|
10770
|
-
* * SQL Data Type: nvarchar(255)
|
|
10771
|
-
*/
|
|
10772
|
-
get SourceEntity() {
|
|
10773
|
-
return this.Get('SourceEntity');
|
|
10774
|
-
}
|
|
10775
10760
|
};
|
|
10776
10761
|
exports.QueryFieldEntity = QueryFieldEntity;
|
|
10777
10762
|
exports.QueryFieldEntity = QueryFieldEntity = __decorate([
|
|
@@ -11456,6 +11441,7 @@ let EntityDocumentRunEntity = class EntityDocumentRunEntity extends core_1.BaseE
|
|
|
11456
11441
|
* * Display Name: Status
|
|
11457
11442
|
* * SQL Data Type: nvarchar(15)
|
|
11458
11443
|
* * Default Value: N'Pending'
|
|
11444
|
+
* * Description: Can be Pending, In Progress, Completed, or Failed
|
|
11459
11445
|
*/
|
|
11460
11446
|
get Status() {
|
|
11461
11447
|
return this.Get('Status');
|
|
@@ -11814,7 +11800,6 @@ let EntityDocumentEntity = class EntityDocumentEntity extends core_1.BaseEntity
|
|
|
11814
11800
|
* * Field Name: EntityID
|
|
11815
11801
|
* * Display Name: Entity ID
|
|
11816
11802
|
* * SQL Data Type: int
|
|
11817
|
-
* * Related Entity: Entities
|
|
11818
11803
|
*/
|
|
11819
11804
|
get EntityID() {
|
|
11820
11805
|
return this.Get('EntityID');
|
|
@@ -11876,14 +11861,6 @@ let EntityDocumentEntity = class EntityDocumentEntity extends core_1.BaseEntity
|
|
|
11876
11861
|
return this.Get('UpdatedAt');
|
|
11877
11862
|
}
|
|
11878
11863
|
/**
|
|
11879
|
-
* * Field Name: Entity
|
|
11880
|
-
* * Display Name: Entity
|
|
11881
|
-
* * SQL Data Type: nvarchar(255)
|
|
11882
|
-
*/
|
|
11883
|
-
get Entity() {
|
|
11884
|
-
return this.Get('Entity');
|
|
11885
|
-
}
|
|
11886
|
-
/**
|
|
11887
11864
|
* * Field Name: Type
|
|
11888
11865
|
* * Display Name: Type
|
|
11889
11866
|
* * SQL Data Type: nvarchar(100)
|
|
@@ -11896,4 +11873,332 @@ exports.EntityDocumentEntity = EntityDocumentEntity;
|
|
|
11896
11873
|
exports.EntityDocumentEntity = EntityDocumentEntity = __decorate([
|
|
11897
11874
|
(0, global_1.RegisterClass)(core_1.BaseEntity, 'Entity Documents')
|
|
11898
11875
|
], EntityDocumentEntity);
|
|
11876
|
+
/**
|
|
11877
|
+
* Data Context Items - strongly typed entity sub-class
|
|
11878
|
+
* * Schema: admin
|
|
11879
|
+
* * Base Table: DataContextItem
|
|
11880
|
+
* * Base View: vwDataContextItems
|
|
11881
|
+
* * @description Data Context Items store information about each item within a Data Context. Each item stores a link to a view, query, or raw sql statement and can optionally cache the JSON representing the last run of that data object as well.
|
|
11882
|
+
* * Primary Key: ID
|
|
11883
|
+
* @extends {BaseEntity}
|
|
11884
|
+
* @class
|
|
11885
|
+
* @public
|
|
11886
|
+
*/
|
|
11887
|
+
let DataContextItemEntity = class DataContextItemEntity extends core_1.BaseEntity {
|
|
11888
|
+
/**
|
|
11889
|
+
* Loads the Data Context Items record from the database
|
|
11890
|
+
* @param ID: Number - primary key value to load the Data Context Items record.
|
|
11891
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
11892
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
11893
|
+
* @public
|
|
11894
|
+
* @async
|
|
11895
|
+
* @memberof DataContextItemEntity
|
|
11896
|
+
* @method
|
|
11897
|
+
* @override
|
|
11898
|
+
*/
|
|
11899
|
+
async Load(ID, EntityRelationshipsToLoad = null) {
|
|
11900
|
+
const pkeyValues = [];
|
|
11901
|
+
pkeyValues.push({ FieldName: 'ID', Value: ID });
|
|
11902
|
+
return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
|
|
11903
|
+
}
|
|
11904
|
+
/**
|
|
11905
|
+
* Data Context 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.
|
|
11906
|
+
* @public
|
|
11907
|
+
* @method
|
|
11908
|
+
* @override
|
|
11909
|
+
* @memberof DataContextItemEntity
|
|
11910
|
+
* @throws {Error} - Delete is not allowed for Data Context Items, to enable it set AllowDeleteAPI to 1 in the database.
|
|
11911
|
+
*/
|
|
11912
|
+
async Delete() {
|
|
11913
|
+
throw new Error('Delete is not allowed for Data Context Items, to enable it set AllowDeleteAPI to 1 in the database.');
|
|
11914
|
+
}
|
|
11915
|
+
/**
|
|
11916
|
+
* * Field Name: ID
|
|
11917
|
+
* * Display Name: ID
|
|
11918
|
+
* * SQL Data Type: int
|
|
11919
|
+
*/
|
|
11920
|
+
get ID() {
|
|
11921
|
+
return this.Get('ID');
|
|
11922
|
+
}
|
|
11923
|
+
/**
|
|
11924
|
+
* * Field Name: DataContextID
|
|
11925
|
+
* * Display Name: Data Context ID
|
|
11926
|
+
* * SQL Data Type: int
|
|
11927
|
+
* * Related Entity: Data Contexts
|
|
11928
|
+
* * Description: Foreign key to the DataContext table
|
|
11929
|
+
*/
|
|
11930
|
+
get DataContextID() {
|
|
11931
|
+
return this.Get('DataContextID');
|
|
11932
|
+
}
|
|
11933
|
+
set DataContextID(value) {
|
|
11934
|
+
this.Set('DataContextID', value);
|
|
11935
|
+
}
|
|
11936
|
+
/**
|
|
11937
|
+
* * Field Name: Type
|
|
11938
|
+
* * Display Name: Type
|
|
11939
|
+
* * SQL Data Type: nvarchar(50)
|
|
11940
|
+
* * Description: The type of the item, either "view", "query", "full_entity", "single_record", or "sql"
|
|
11941
|
+
*/
|
|
11942
|
+
get Type() {
|
|
11943
|
+
return this.Get('Type');
|
|
11944
|
+
}
|
|
11945
|
+
set Type(value) {
|
|
11946
|
+
this.Set('Type', value);
|
|
11947
|
+
}
|
|
11948
|
+
/**
|
|
11949
|
+
* * Field Name: ViewID
|
|
11950
|
+
* * Display Name: View ID
|
|
11951
|
+
* * SQL Data Type: int
|
|
11952
|
+
* * Related Entity: User Views
|
|
11953
|
+
* * Description: Only used if Type='view'
|
|
11954
|
+
*/
|
|
11955
|
+
get ViewID() {
|
|
11956
|
+
return this.Get('ViewID');
|
|
11957
|
+
}
|
|
11958
|
+
set ViewID(value) {
|
|
11959
|
+
this.Set('ViewID', value);
|
|
11960
|
+
}
|
|
11961
|
+
/**
|
|
11962
|
+
* * Field Name: QueryID
|
|
11963
|
+
* * Display Name: Query ID
|
|
11964
|
+
* * SQL Data Type: int
|
|
11965
|
+
* * Related Entity: Queries
|
|
11966
|
+
* * Description: Only used if Type='query'
|
|
11967
|
+
*/
|
|
11968
|
+
get QueryID() {
|
|
11969
|
+
return this.Get('QueryID');
|
|
11970
|
+
}
|
|
11971
|
+
set QueryID(value) {
|
|
11972
|
+
this.Set('QueryID', value);
|
|
11973
|
+
}
|
|
11974
|
+
/**
|
|
11975
|
+
* * Field Name: EntityID
|
|
11976
|
+
* * Display Name: Entity ID
|
|
11977
|
+
* * SQL Data Type: int
|
|
11978
|
+
* * Description: Used if type='full_entity' or type='single_record'
|
|
11979
|
+
*/
|
|
11980
|
+
get EntityID() {
|
|
11981
|
+
return this.Get('EntityID');
|
|
11982
|
+
}
|
|
11983
|
+
set EntityID(value) {
|
|
11984
|
+
this.Set('EntityID', value);
|
|
11985
|
+
}
|
|
11986
|
+
/**
|
|
11987
|
+
* * Field Name: RecordID
|
|
11988
|
+
* * Display Name: Record ID
|
|
11989
|
+
* * SQL Data Type: int
|
|
11990
|
+
* * Description: The ID for the record, only used when Type='single_record'
|
|
11991
|
+
*/
|
|
11992
|
+
get RecordID() {
|
|
11993
|
+
return this.Get('RecordID');
|
|
11994
|
+
}
|
|
11995
|
+
set RecordID(value) {
|
|
11996
|
+
this.Set('RecordID', value);
|
|
11997
|
+
}
|
|
11998
|
+
/**
|
|
11999
|
+
* * Field Name: SQL
|
|
12000
|
+
* * Display Name: SQL
|
|
12001
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
12002
|
+
* * Description: Only used when Type=sql
|
|
12003
|
+
*/
|
|
12004
|
+
get SQL() {
|
|
12005
|
+
return this.Get('SQL');
|
|
12006
|
+
}
|
|
12007
|
+
set SQL(value) {
|
|
12008
|
+
this.Set('SQL', value);
|
|
12009
|
+
}
|
|
12010
|
+
/**
|
|
12011
|
+
* * Field Name: DataJSON
|
|
12012
|
+
* * Display Name: Data JSON
|
|
12013
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
12014
|
+
* * Description: Optionally used to cache results of an item. This can be used for performance optimization, and also for having snapshots of data for historical comparisons.
|
|
12015
|
+
*/
|
|
12016
|
+
get DataJSON() {
|
|
12017
|
+
return this.Get('DataJSON');
|
|
12018
|
+
}
|
|
12019
|
+
set DataJSON(value) {
|
|
12020
|
+
this.Set('DataJSON', value);
|
|
12021
|
+
}
|
|
12022
|
+
/**
|
|
12023
|
+
* * Field Name: LastRefreshedAt
|
|
12024
|
+
* * Display Name: Last Refreshed At
|
|
12025
|
+
* * SQL Data Type: datetime
|
|
12026
|
+
* * Description: If DataJSON is populated, this field will show the date the the data was captured
|
|
12027
|
+
*/
|
|
12028
|
+
get LastRefreshedAt() {
|
|
12029
|
+
return this.Get('LastRefreshedAt');
|
|
12030
|
+
}
|
|
12031
|
+
set LastRefreshedAt(value) {
|
|
12032
|
+
this.Set('LastRefreshedAt', value);
|
|
12033
|
+
}
|
|
12034
|
+
/**
|
|
12035
|
+
* * Field Name: CreatedAt
|
|
12036
|
+
* * Display Name: Created At
|
|
12037
|
+
* * SQL Data Type: datetime
|
|
12038
|
+
* * Default Value: getdate()
|
|
12039
|
+
*/
|
|
12040
|
+
get CreatedAt() {
|
|
12041
|
+
return this.Get('CreatedAt');
|
|
12042
|
+
}
|
|
12043
|
+
/**
|
|
12044
|
+
* * Field Name: UpdatedAt
|
|
12045
|
+
* * Display Name: Updated At
|
|
12046
|
+
* * SQL Data Type: datetime
|
|
12047
|
+
* * Default Value: getdate()
|
|
12048
|
+
*/
|
|
12049
|
+
get UpdatedAt() {
|
|
12050
|
+
return this.Get('UpdatedAt');
|
|
12051
|
+
}
|
|
12052
|
+
/**
|
|
12053
|
+
* * Field Name: DataContext
|
|
12054
|
+
* * Display Name: Data Context
|
|
12055
|
+
* * SQL Data Type: nvarchar(255)
|
|
12056
|
+
*/
|
|
12057
|
+
get DataContext() {
|
|
12058
|
+
return this.Get('DataContext');
|
|
12059
|
+
}
|
|
12060
|
+
/**
|
|
12061
|
+
* * Field Name: View
|
|
12062
|
+
* * Display Name: View
|
|
12063
|
+
* * SQL Data Type: nvarchar(100)
|
|
12064
|
+
*/
|
|
12065
|
+
get View() {
|
|
12066
|
+
return this.Get('View');
|
|
12067
|
+
}
|
|
12068
|
+
/**
|
|
12069
|
+
* * Field Name: Query
|
|
12070
|
+
* * Display Name: Query
|
|
12071
|
+
* * SQL Data Type: nvarchar(255)
|
|
12072
|
+
*/
|
|
12073
|
+
get Query() {
|
|
12074
|
+
return this.Get('Query');
|
|
12075
|
+
}
|
|
12076
|
+
};
|
|
12077
|
+
exports.DataContextItemEntity = DataContextItemEntity;
|
|
12078
|
+
exports.DataContextItemEntity = DataContextItemEntity = __decorate([
|
|
12079
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'Data Context Items')
|
|
12080
|
+
], DataContextItemEntity);
|
|
12081
|
+
/**
|
|
12082
|
+
* Data Contexts - strongly typed entity sub-class
|
|
12083
|
+
* * Schema: admin
|
|
12084
|
+
* * Base Table: DataContext
|
|
12085
|
+
* * Base View: vwDataContexts
|
|
12086
|
+
* * @description Data Contexts are a primitive within the MemberJunction architecture. They store information about data contexts which are groups of data including views, queries, or raw SQL statements. Data contexts can be used in conversations, reports and more.
|
|
12087
|
+
* * Primary Key: ID
|
|
12088
|
+
* @extends {BaseEntity}
|
|
12089
|
+
* @class
|
|
12090
|
+
* @public
|
|
12091
|
+
*/
|
|
12092
|
+
let DataContextEntity = class DataContextEntity extends core_1.BaseEntity {
|
|
12093
|
+
/**
|
|
12094
|
+
* Loads the Data Contexts record from the database
|
|
12095
|
+
* @param ID: Number - primary key value to load the Data Contexts record.
|
|
12096
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
12097
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
12098
|
+
* @public
|
|
12099
|
+
* @async
|
|
12100
|
+
* @memberof DataContextEntity
|
|
12101
|
+
* @method
|
|
12102
|
+
* @override
|
|
12103
|
+
*/
|
|
12104
|
+
async Load(ID, EntityRelationshipsToLoad = null) {
|
|
12105
|
+
const pkeyValues = [];
|
|
12106
|
+
pkeyValues.push({ FieldName: 'ID', Value: ID });
|
|
12107
|
+
return await super.InnerLoad(pkeyValues, EntityRelationshipsToLoad);
|
|
12108
|
+
}
|
|
12109
|
+
/**
|
|
12110
|
+
* Data Contexts - 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.
|
|
12111
|
+
* @public
|
|
12112
|
+
* @method
|
|
12113
|
+
* @override
|
|
12114
|
+
* @memberof DataContextEntity
|
|
12115
|
+
* @throws {Error} - Delete is not allowed for Data Contexts, to enable it set AllowDeleteAPI to 1 in the database.
|
|
12116
|
+
*/
|
|
12117
|
+
async Delete() {
|
|
12118
|
+
throw new Error('Delete is not allowed for Data Contexts, to enable it set AllowDeleteAPI to 1 in the database.');
|
|
12119
|
+
}
|
|
12120
|
+
/**
|
|
12121
|
+
* * Field Name: ID
|
|
12122
|
+
* * Display Name: ID
|
|
12123
|
+
* * SQL Data Type: int
|
|
12124
|
+
*/
|
|
12125
|
+
get ID() {
|
|
12126
|
+
return this.Get('ID');
|
|
12127
|
+
}
|
|
12128
|
+
/**
|
|
12129
|
+
* * Field Name: Name
|
|
12130
|
+
* * Display Name: Name
|
|
12131
|
+
* * SQL Data Type: nvarchar(255)
|
|
12132
|
+
*/
|
|
12133
|
+
get Name() {
|
|
12134
|
+
return this.Get('Name');
|
|
12135
|
+
}
|
|
12136
|
+
set Name(value) {
|
|
12137
|
+
this.Set('Name', value);
|
|
12138
|
+
}
|
|
12139
|
+
/**
|
|
12140
|
+
* * Field Name: UserID
|
|
12141
|
+
* * Display Name: User ID
|
|
12142
|
+
* * SQL Data Type: int
|
|
12143
|
+
* * Related Entity: Users
|
|
12144
|
+
*/
|
|
12145
|
+
get UserID() {
|
|
12146
|
+
return this.Get('UserID');
|
|
12147
|
+
}
|
|
12148
|
+
set UserID(value) {
|
|
12149
|
+
this.Set('UserID', value);
|
|
12150
|
+
}
|
|
12151
|
+
/**
|
|
12152
|
+
* * Field Name: Description
|
|
12153
|
+
* * Display Name: Description
|
|
12154
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
12155
|
+
*/
|
|
12156
|
+
get Description() {
|
|
12157
|
+
return this.Get('Description');
|
|
12158
|
+
}
|
|
12159
|
+
set Description(value) {
|
|
12160
|
+
this.Set('Description', value);
|
|
12161
|
+
}
|
|
12162
|
+
/**
|
|
12163
|
+
* * Field Name: LastRefreshedAt
|
|
12164
|
+
* * Display Name: Last Refreshed At
|
|
12165
|
+
* * SQL Data Type: datetime
|
|
12166
|
+
*/
|
|
12167
|
+
get LastRefreshedAt() {
|
|
12168
|
+
return this.Get('LastRefreshedAt');
|
|
12169
|
+
}
|
|
12170
|
+
set LastRefreshedAt(value) {
|
|
12171
|
+
this.Set('LastRefreshedAt', value);
|
|
12172
|
+
}
|
|
12173
|
+
/**
|
|
12174
|
+
* * Field Name: CreatedAt
|
|
12175
|
+
* * Display Name: Created At
|
|
12176
|
+
* * SQL Data Type: datetime
|
|
12177
|
+
* * Default Value: getdate()
|
|
12178
|
+
*/
|
|
12179
|
+
get CreatedAt() {
|
|
12180
|
+
return this.Get('CreatedAt');
|
|
12181
|
+
}
|
|
12182
|
+
/**
|
|
12183
|
+
* * Field Name: UpdatedAt
|
|
12184
|
+
* * Display Name: Updated At
|
|
12185
|
+
* * SQL Data Type: datetime
|
|
12186
|
+
* * Default Value: getdate()
|
|
12187
|
+
*/
|
|
12188
|
+
get UpdatedAt() {
|
|
12189
|
+
return this.Get('UpdatedAt');
|
|
12190
|
+
}
|
|
12191
|
+
/**
|
|
12192
|
+
* * Field Name: User
|
|
12193
|
+
* * Display Name: User
|
|
12194
|
+
* * SQL Data Type: nvarchar(100)
|
|
12195
|
+
*/
|
|
12196
|
+
get User() {
|
|
12197
|
+
return this.Get('User');
|
|
12198
|
+
}
|
|
12199
|
+
};
|
|
12200
|
+
exports.DataContextEntity = DataContextEntity;
|
|
12201
|
+
exports.DataContextEntity = DataContextEntity = __decorate([
|
|
12202
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'Data Contexts')
|
|
12203
|
+
], DataContextEntity);
|
|
11899
12204
|
//# sourceMappingURL=entity_subclasses.js.map
|