@memberjunction/core-entities 5.25.0 → 5.26.0

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.
@@ -13098,6 +13098,18 @@ export const MJEntitySchema = z.object({
13098
13098
  * * SQL Data Type: bit
13099
13099
  * * Default Value: 1
13100
13100
  * * Description: When true (default), CodeGen can automatically set SupportsGeoCoding based on LLM analysis of entity fields. Set to 0 to lock the value and prevent CodeGen from changing it.`),
13101
+ AllowCaching: z.boolean().describe(`
13102
+ * * Field Name: AllowCaching
13103
+ * * Display Name: Allow Caching
13104
+ * * SQL Data Type: bit
13105
+ * * Default Value: 0
13106
+ * * Description: Controls whether this entity participates in server-side and client-side caching. When false, all cache operations (PreRunView checks, auto-cache storage, BaseEntity event fingerprint scans, client-side IndexedDB cache) are skipped entirely. This column is the single source of truth at runtime; schema-level defaults are applied at CodeGen time via newEntityDefaults.AllowCachingBySchema.`),
13107
+ DetectExternalChanges: z.boolean().describe(`
13108
+ * * Field Name: DetectExternalChanges
13109
+ * * Display Name: Detect External Changes
13110
+ * * SQL Data Type: bit
13111
+ * * Default Value: 0
13112
+ * * Description: When set to 1 AND TrackRecordChanges is also 1, the external change detection system will scan this entity for changes made outside the MJ framework (direct SQL, third-party tools, etc.) and replay them through Save() to create proper RecordChange audit entries. Default is 0 (opt-out) because most entities, especially __mj schema metadata tables, are managed by migrations/CodeGen and should not be scanned.`),
13101
13113
  CodeName: z.string().nullable().describe(`
13102
13114
  * * Field Name: CodeName
13103
13115
  * * Display Name: Code Name
@@ -57431,6 +57443,32 @@ let MJEntityEntity = class MJEntityEntity extends BaseEntity {
57431
57443
  this.Set('AutoUpdateSupportsGeoCoding', value);
57432
57444
  }
57433
57445
  /**
57446
+ * * Field Name: AllowCaching
57447
+ * * Display Name: Allow Caching
57448
+ * * SQL Data Type: bit
57449
+ * * Default Value: 0
57450
+ * * Description: Controls whether this entity participates in server-side and client-side caching. When false, all cache operations (PreRunView checks, auto-cache storage, BaseEntity event fingerprint scans, client-side IndexedDB cache) are skipped entirely. This column is the single source of truth at runtime; schema-level defaults are applied at CodeGen time via newEntityDefaults.AllowCachingBySchema.
57451
+ */
57452
+ get AllowCaching() {
57453
+ return this.Get('AllowCaching');
57454
+ }
57455
+ set AllowCaching(value) {
57456
+ this.Set('AllowCaching', value);
57457
+ }
57458
+ /**
57459
+ * * Field Name: DetectExternalChanges
57460
+ * * Display Name: Detect External Changes
57461
+ * * SQL Data Type: bit
57462
+ * * Default Value: 0
57463
+ * * Description: When set to 1 AND TrackRecordChanges is also 1, the external change detection system will scan this entity for changes made outside the MJ framework (direct SQL, third-party tools, etc.) and replay them through Save() to create proper RecordChange audit entries. Default is 0 (opt-out) because most entities, especially __mj schema metadata tables, are managed by migrations/CodeGen and should not be scanned.
57464
+ */
57465
+ get DetectExternalChanges() {
57466
+ return this.Get('DetectExternalChanges');
57467
+ }
57468
+ set DetectExternalChanges(value) {
57469
+ this.Set('DetectExternalChanges', value);
57470
+ }
57471
+ /**
57434
57472
  * * Field Name: CodeName
57435
57473
  * * Display Name: Code Name
57436
57474
  * * SQL Data Type: nvarchar(MAX)