@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.
@@ -1094,7 +1094,6 @@ export declare class EntityFieldEntity extends BaseEntity {
1094
1094
  * * Field Name: EntityID
1095
1095
  * * Display Name: Entity ID
1096
1096
  * * SQL Data Type: int
1097
- * * Related Entity: Entities
1098
1097
  */
1099
1098
  get EntityID(): number;
1100
1099
  /**
@@ -1122,6 +1121,15 @@ export declare class EntityFieldEntity extends BaseEntity {
1122
1121
  get Description(): string;
1123
1122
  set Description(value: string);
1124
1123
  /**
1124
+ * * Field Name: AutoUpdateDescription
1125
+ * * Display Name: Auto Update Description
1126
+ * * SQL Data Type: bit
1127
+ * * Default Value: 1
1128
+ * * 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.
1129
+ */
1130
+ get AutoUpdateDescription(): boolean;
1131
+ set AutoUpdateDescription(value: boolean);
1132
+ /**
1125
1133
  * * Field Name: IsPrimaryKey
1126
1134
  * * Display Name: Is Primary Key
1127
1135
  * * SQL Data Type: bit
@@ -1295,7 +1303,6 @@ export declare class EntityFieldEntity extends BaseEntity {
1295
1303
  * * Field Name: RelatedEntityID
1296
1304
  * * Display Name: RelatedEntity ID
1297
1305
  * * SQL Data Type: int
1298
- * * Related Entity: Entities
1299
1306
  */
1300
1307
  get RelatedEntityID(): number;
1301
1308
  set RelatedEntityID(value: number);
@@ -1465,6 +1472,15 @@ export declare class EntityEntity extends BaseEntity {
1465
1472
  get Description(): string;
1466
1473
  set Description(value: string);
1467
1474
  /**
1475
+ * * Field Name: AutoUpdateDescription
1476
+ * * Display Name: Auto Update Description
1477
+ * * SQL Data Type: bit
1478
+ * * Default Value: 1
1479
+ * * 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.
1480
+ */
1481
+ get AutoUpdateDescription(): boolean;
1482
+ set AutoUpdateDescription(value: boolean);
1483
+ /**
1468
1484
  * * Field Name: BaseTable
1469
1485
  * * Display Name: Base Table
1470
1486
  * * SQL Data Type: nvarchar(255)
@@ -2304,7 +2320,6 @@ export declare class UserViewEntity extends BaseEntity {
2304
2320
  * * Field Name: EntityID
2305
2321
  * * Display Name: Entity ID
2306
2322
  * * SQL Data Type: int
2307
- * * Related Entity: Entities
2308
2323
  */
2309
2324
  get EntityID(): number;
2310
2325
  set EntityID(value: number);
@@ -2605,7 +2620,6 @@ export declare class CompanyIntegrationRunDetailEntity extends BaseEntity {
2605
2620
  * * Field Name: EntityID
2606
2621
  * * Display Name: Entity ID
2607
2622
  * * SQL Data Type: int
2608
- * * Related Entity: Entities
2609
2623
  */
2610
2624
  get EntityID(): number;
2611
2625
  set EntityID(value: number);
@@ -2859,7 +2873,6 @@ export declare class ApplicationEntityEntity extends BaseEntity {
2859
2873
  * * Field Name: EntityID
2860
2874
  * * Display Name: Entity ID
2861
2875
  * * SQL Data Type: int
2862
- * * Related Entity: Entities
2863
2876
  */
2864
2877
  get EntityID(): number;
2865
2878
  set EntityID(value: number);
@@ -2958,7 +2971,6 @@ export declare class EntityPermissionEntity extends BaseEntity {
2958
2971
  * * Field Name: EntityID
2959
2972
  * * Display Name: Entity ID
2960
2973
  * * SQL Data Type: int
2961
- * * Related Entity: Entities
2962
2974
  */
2963
2975
  get EntityID(): number;
2964
2976
  set EntityID(value: number);
@@ -3124,7 +3136,6 @@ export declare class UserApplicationEntityEntity extends BaseEntity {
3124
3136
  * * Field Name: EntityID
3125
3137
  * * Display Name: Entity ID
3126
3138
  * * SQL Data Type: int
3127
- * * Related Entity: Entities
3128
3139
  */
3129
3140
  get EntityID(): number;
3130
3141
  set EntityID(value: number);
@@ -3360,7 +3371,6 @@ export declare class ListEntity extends BaseEntity {
3360
3371
  * * Field Name: EntityID
3361
3372
  * * Display Name: Entity ID
3362
3373
  * * SQL Data Type: int
3363
- * * Related Entity: Entities
3364
3374
  */
3365
3375
  get EntityID(): number;
3366
3376
  set EntityID(value: number);
@@ -3402,12 +3412,6 @@ export declare class ListEntity extends BaseEntity {
3402
3412
  */
3403
3413
  get UpdatedAt(): Date;
3404
3414
  /**
3405
- * * Field Name: Entity
3406
- * * Display Name: Entity
3407
- * * SQL Data Type: nvarchar(255)
3408
- */
3409
- get Entity(): string;
3410
- /**
3411
3415
  * * Field Name: User
3412
3416
  * * Display Name: User
3413
3417
  * * SQL Data Type: nvarchar(100)
@@ -4222,7 +4226,6 @@ export declare class AuditLogEntity extends BaseEntity {
4222
4226
  * * Field Name: EntityID
4223
4227
  * * Display Name: Entity ID
4224
4228
  * * SQL Data Type: int
4225
- * * Related Entity: Entities
4226
4229
  */
4227
4230
  get EntityID(): number;
4228
4231
  set EntityID(value: number);
@@ -4253,12 +4256,6 @@ export declare class AuditLogEntity extends BaseEntity {
4253
4256
  * * SQL Data Type: nvarchar(100)
4254
4257
  */
4255
4258
  get User(): string;
4256
- /**
4257
- * * Field Name: Entity
4258
- * * Display Name: Entity
4259
- * * SQL Data Type: nvarchar(255)
4260
- */
4261
- get Entity(): string;
4262
4259
  }
4263
4260
  /**
4264
4261
  * Authorizations - strongly typed entity sub-class
@@ -6298,7 +6295,6 @@ export declare class TaggedItemEntity extends BaseEntity {
6298
6295
  * * Field Name: EntityID
6299
6296
  * * Display Name: Entity ID
6300
6297
  * * SQL Data Type: int
6301
- * * Related Entity: Entities
6302
6298
  */
6303
6299
  get EntityID(): number;
6304
6300
  set EntityID(value: number);
@@ -6315,12 +6311,6 @@ export declare class TaggedItemEntity extends BaseEntity {
6315
6311
  * * SQL Data Type: nvarchar(255)
6316
6312
  */
6317
6313
  get Tag(): string;
6318
- /**
6319
- * * Field Name: Entity
6320
- * * Display Name: Entity
6321
- * * SQL Data Type: nvarchar(255)
6322
- */
6323
- get Entity(): string;
6324
6314
  }
6325
6315
  /**
6326
6316
  * Workspaces - strongly typed entity sub-class
@@ -6846,6 +6836,13 @@ export declare class ConversationEntity extends BaseEntity {
6846
6836
  get LinkedRecordID(): number;
6847
6837
  set LinkedRecordID(value: number);
6848
6838
  /**
6839
+ * * Field Name: DataContextID
6840
+ * * Display Name: Data Context ID
6841
+ * * SQL Data Type: int
6842
+ */
6843
+ get DataContextID(): number;
6844
+ set DataContextID(value: number);
6845
+ /**
6849
6846
  * * Field Name: CreatedAt
6850
6847
  * * Display Name: Created At
6851
6848
  * * SQL Data Type: datetime
@@ -7230,7 +7227,6 @@ export declare class CompanyIntegrationRecordMapEntity extends BaseEntity {
7230
7227
  * * Field Name: EntityID
7231
7228
  * * Display Name: Entity ID
7232
7229
  * * SQL Data Type: int
7233
- * * Related Entity: Entities
7234
7230
  */
7235
7231
  get EntityID(): number;
7236
7232
  set EntityID(value: number);
@@ -7255,12 +7251,6 @@ export declare class CompanyIntegrationRecordMapEntity extends BaseEntity {
7255
7251
  * * Default Value: getdate()
7256
7252
  */
7257
7253
  get UpdatedAt(): Date;
7258
- /**
7259
- * * Field Name: Entity
7260
- * * Display Name: Entity
7261
- * * SQL Data Type: nvarchar(255)
7262
- */
7263
- get Entity(): string;
7264
7254
  }
7265
7255
  /**
7266
7256
  * Record Merge Logs - strongly typed entity sub-class
@@ -7556,7 +7546,6 @@ export declare class QueryFieldEntity extends BaseEntity {
7556
7546
  * * Field Name: SourceEntityID
7557
7547
  * * Display Name: Source Entity ID
7558
7548
  * * SQL Data Type: int
7559
- * * Related Entity: Entities
7560
7549
  */
7561
7550
  get SourceEntityID(): number;
7562
7551
  set SourceEntityID(value: number);
@@ -7617,12 +7606,6 @@ export declare class QueryFieldEntity extends BaseEntity {
7617
7606
  * * SQL Data Type: nvarchar(255)
7618
7607
  */
7619
7608
  get Query(): string;
7620
- /**
7621
- * * Field Name: SourceEntity
7622
- * * Display Name: Source Entity
7623
- * * SQL Data Type: nvarchar(255)
7624
- */
7625
- get SourceEntity(): string;
7626
7609
  }
7627
7610
  /**
7628
7611
  * Query Categories - strongly typed entity sub-class
@@ -8119,6 +8102,7 @@ export declare class EntityDocumentRunEntity extends BaseEntity {
8119
8102
  * * Display Name: Status
8120
8103
  * * SQL Data Type: nvarchar(15)
8121
8104
  * * Default Value: N'Pending'
8105
+ * * Description: Can be Pending, In Progress, Completed, or Failed
8122
8106
  */
8123
8107
  get Status(): string;
8124
8108
  set Status(value: string);
@@ -8375,7 +8359,6 @@ export declare class EntityDocumentEntity extends BaseEntity {
8375
8359
  * * Field Name: EntityID
8376
8360
  * * Display Name: Entity ID
8377
8361
  * * SQL Data Type: int
8378
- * * Related Entity: Entities
8379
8362
  */
8380
8363
  get EntityID(): number;
8381
8364
  set EntityID(value: number);
@@ -8417,15 +8400,245 @@ export declare class EntityDocumentEntity extends BaseEntity {
8417
8400
  */
8418
8401
  get UpdatedAt(): Date;
8419
8402
  /**
8420
- * * Field Name: Entity
8421
- * * Display Name: Entity
8422
- * * SQL Data Type: nvarchar(255)
8403
+ * * Field Name: Type
8404
+ * * Display Name: Type
8405
+ * * SQL Data Type: nvarchar(100)
8423
8406
  */
8424
- get Entity(): string;
8407
+ get Type(): string;
8408
+ }
8409
+ /**
8410
+ * Data Context Items - strongly typed entity sub-class
8411
+ * * Schema: admin
8412
+ * * Base Table: DataContextItem
8413
+ * * Base View: vwDataContextItems
8414
+ * * @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.
8415
+ * * Primary Key: ID
8416
+ * @extends {BaseEntity}
8417
+ * @class
8418
+ * @public
8419
+ */
8420
+ export declare class DataContextItemEntity extends BaseEntity {
8421
+ /**
8422
+ * Loads the Data Context Items record from the database
8423
+ * @param ID: Number - primary key value to load the Data Context Items record.
8424
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
8425
+ * @returns {Promise<boolean>} - true if successful, false otherwise
8426
+ * @public
8427
+ * @async
8428
+ * @memberof DataContextItemEntity
8429
+ * @method
8430
+ * @override
8431
+ */
8432
+ Load(ID: Number, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
8433
+ /**
8434
+ * 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.
8435
+ * @public
8436
+ * @method
8437
+ * @override
8438
+ * @memberof DataContextItemEntity
8439
+ * @throws {Error} - Delete is not allowed for Data Context Items, to enable it set AllowDeleteAPI to 1 in the database.
8440
+ */
8441
+ Delete(): Promise<boolean>;
8442
+ /**
8443
+ * * Field Name: ID
8444
+ * * Display Name: ID
8445
+ * * SQL Data Type: int
8446
+ */
8447
+ get ID(): number;
8448
+ /**
8449
+ * * Field Name: DataContextID
8450
+ * * Display Name: Data Context ID
8451
+ * * SQL Data Type: int
8452
+ * * Related Entity: Data Contexts
8453
+ * * Description: Foreign key to the DataContext table
8454
+ */
8455
+ get DataContextID(): number;
8456
+ set DataContextID(value: number);
8425
8457
  /**
8426
8458
  * * Field Name: Type
8427
8459
  * * Display Name: Type
8428
- * * SQL Data Type: nvarchar(100)
8460
+ * * SQL Data Type: nvarchar(50)
8461
+ * * Description: The type of the item, either "view", "query", "full_entity", "single_record", or "sql"
8429
8462
  */
8430
8463
  get Type(): string;
8464
+ set Type(value: string);
8465
+ /**
8466
+ * * Field Name: ViewID
8467
+ * * Display Name: View ID
8468
+ * * SQL Data Type: int
8469
+ * * Related Entity: User Views
8470
+ * * Description: Only used if Type='view'
8471
+ */
8472
+ get ViewID(): number;
8473
+ set ViewID(value: number);
8474
+ /**
8475
+ * * Field Name: QueryID
8476
+ * * Display Name: Query ID
8477
+ * * SQL Data Type: int
8478
+ * * Related Entity: Queries
8479
+ * * Description: Only used if Type='query'
8480
+ */
8481
+ get QueryID(): number;
8482
+ set QueryID(value: number);
8483
+ /**
8484
+ * * Field Name: EntityID
8485
+ * * Display Name: Entity ID
8486
+ * * SQL Data Type: int
8487
+ * * Description: Used if type='full_entity' or type='single_record'
8488
+ */
8489
+ get EntityID(): number;
8490
+ set EntityID(value: number);
8491
+ /**
8492
+ * * Field Name: RecordID
8493
+ * * Display Name: Record ID
8494
+ * * SQL Data Type: int
8495
+ * * Description: The ID for the record, only used when Type='single_record'
8496
+ */
8497
+ get RecordID(): number;
8498
+ set RecordID(value: number);
8499
+ /**
8500
+ * * Field Name: SQL
8501
+ * * Display Name: SQL
8502
+ * * SQL Data Type: nvarchar(MAX)
8503
+ * * Description: Only used when Type=sql
8504
+ */
8505
+ get SQL(): string;
8506
+ set SQL(value: string);
8507
+ /**
8508
+ * * Field Name: DataJSON
8509
+ * * Display Name: Data JSON
8510
+ * * SQL Data Type: nvarchar(MAX)
8511
+ * * 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.
8512
+ */
8513
+ get DataJSON(): string;
8514
+ set DataJSON(value: string);
8515
+ /**
8516
+ * * Field Name: LastRefreshedAt
8517
+ * * Display Name: Last Refreshed At
8518
+ * * SQL Data Type: datetime
8519
+ * * Description: If DataJSON is populated, this field will show the date the the data was captured
8520
+ */
8521
+ get LastRefreshedAt(): Date;
8522
+ set LastRefreshedAt(value: Date);
8523
+ /**
8524
+ * * Field Name: CreatedAt
8525
+ * * Display Name: Created At
8526
+ * * SQL Data Type: datetime
8527
+ * * Default Value: getdate()
8528
+ */
8529
+ get CreatedAt(): Date;
8530
+ /**
8531
+ * * Field Name: UpdatedAt
8532
+ * * Display Name: Updated At
8533
+ * * SQL Data Type: datetime
8534
+ * * Default Value: getdate()
8535
+ */
8536
+ get UpdatedAt(): Date;
8537
+ /**
8538
+ * * Field Name: DataContext
8539
+ * * Display Name: Data Context
8540
+ * * SQL Data Type: nvarchar(255)
8541
+ */
8542
+ get DataContext(): string;
8543
+ /**
8544
+ * * Field Name: View
8545
+ * * Display Name: View
8546
+ * * SQL Data Type: nvarchar(100)
8547
+ */
8548
+ get View(): string;
8549
+ /**
8550
+ * * Field Name: Query
8551
+ * * Display Name: Query
8552
+ * * SQL Data Type: nvarchar(255)
8553
+ */
8554
+ get Query(): string;
8555
+ }
8556
+ /**
8557
+ * Data Contexts - strongly typed entity sub-class
8558
+ * * Schema: admin
8559
+ * * Base Table: DataContext
8560
+ * * Base View: vwDataContexts
8561
+ * * @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.
8562
+ * * Primary Key: ID
8563
+ * @extends {BaseEntity}
8564
+ * @class
8565
+ * @public
8566
+ */
8567
+ export declare class DataContextEntity extends BaseEntity {
8568
+ /**
8569
+ * Loads the Data Contexts record from the database
8570
+ * @param ID: Number - primary key value to load the Data Contexts record.
8571
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
8572
+ * @returns {Promise<boolean>} - true if successful, false otherwise
8573
+ * @public
8574
+ * @async
8575
+ * @memberof DataContextEntity
8576
+ * @method
8577
+ * @override
8578
+ */
8579
+ Load(ID: Number, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
8580
+ /**
8581
+ * 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.
8582
+ * @public
8583
+ * @method
8584
+ * @override
8585
+ * @memberof DataContextEntity
8586
+ * @throws {Error} - Delete is not allowed for Data Contexts, to enable it set AllowDeleteAPI to 1 in the database.
8587
+ */
8588
+ Delete(): Promise<boolean>;
8589
+ /**
8590
+ * * Field Name: ID
8591
+ * * Display Name: ID
8592
+ * * SQL Data Type: int
8593
+ */
8594
+ get ID(): number;
8595
+ /**
8596
+ * * Field Name: Name
8597
+ * * Display Name: Name
8598
+ * * SQL Data Type: nvarchar(255)
8599
+ */
8600
+ get Name(): string;
8601
+ set Name(value: string);
8602
+ /**
8603
+ * * Field Name: UserID
8604
+ * * Display Name: User ID
8605
+ * * SQL Data Type: int
8606
+ * * Related Entity: Users
8607
+ */
8608
+ get UserID(): number;
8609
+ set UserID(value: number);
8610
+ /**
8611
+ * * Field Name: Description
8612
+ * * Display Name: Description
8613
+ * * SQL Data Type: nvarchar(MAX)
8614
+ */
8615
+ get Description(): string;
8616
+ set Description(value: string);
8617
+ /**
8618
+ * * Field Name: LastRefreshedAt
8619
+ * * Display Name: Last Refreshed At
8620
+ * * SQL Data Type: datetime
8621
+ */
8622
+ get LastRefreshedAt(): Date;
8623
+ set LastRefreshedAt(value: Date);
8624
+ /**
8625
+ * * Field Name: CreatedAt
8626
+ * * Display Name: Created At
8627
+ * * SQL Data Type: datetime
8628
+ * * Default Value: getdate()
8629
+ */
8630
+ get CreatedAt(): Date;
8631
+ /**
8632
+ * * Field Name: UpdatedAt
8633
+ * * Display Name: Updated At
8634
+ * * SQL Data Type: datetime
8635
+ * * Default Value: getdate()
8636
+ */
8637
+ get UpdatedAt(): Date;
8638
+ /**
8639
+ * * Field Name: User
8640
+ * * Display Name: User
8641
+ * * SQL Data Type: nvarchar(100)
8642
+ */
8643
+ get User(): string;
8431
8644
  }