@memberjunction/core 6.2.1 → 6.3.0-edge.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.
Files changed (126) hide show
  1. package/dist/generic/JSONType-interfaces/IEntityConfiguration.d.ts +94 -0
  2. package/dist/generic/JSONType-interfaces/IEntityConfiguration.d.ts.map +1 -1
  3. package/dist/generic/JSONType-interfaces/IEntitySubtypeSelectorConfig.d.ts +77 -4
  4. package/dist/generic/JSONType-interfaces/IEntitySubtypeSelectorConfig.d.ts.map +1 -1
  5. package/dist/generic/appCapabilityRegistry.d.ts +106 -0
  6. package/dist/generic/appCapabilityRegistry.d.ts.map +1 -0
  7. package/dist/generic/appCapabilityRegistry.js +212 -0
  8. package/dist/generic/appCapabilityRegistry.js.map +1 -0
  9. package/dist/generic/baseEngine.d.ts +108 -3
  10. package/dist/generic/baseEngine.d.ts.map +1 -1
  11. package/dist/generic/baseEngine.js +891 -122
  12. package/dist/generic/baseEngine.js.map +1 -1
  13. package/dist/generic/baseEngineRegistry.d.ts.map +1 -1
  14. package/dist/generic/baseEngineRegistry.js +8 -1
  15. package/dist/generic/baseEngineRegistry.js.map +1 -1
  16. package/dist/generic/baseEntity.d.ts +147 -3
  17. package/dist/generic/baseEntity.d.ts.map +1 -1
  18. package/dist/generic/baseEntity.js +1063 -25
  19. package/dist/generic/baseEntity.js.map +1 -1
  20. package/dist/generic/baseRemotableOperation.d.ts +15 -0
  21. package/dist/generic/baseRemotableOperation.d.ts.map +1 -1
  22. package/dist/generic/baseRemotableOperation.js +11 -0
  23. package/dist/generic/baseRemotableOperation.js.map +1 -1
  24. package/dist/generic/compositeKey.d.ts.map +1 -1
  25. package/dist/generic/compositeKey.js +3 -1
  26. package/dist/generic/compositeKey.js.map +1 -1
  27. package/dist/generic/crossEntityPolicyEngine.d.ts +172 -0
  28. package/dist/generic/crossEntityPolicyEngine.d.ts.map +1 -0
  29. package/dist/generic/crossEntityPolicyEngine.js +667 -0
  30. package/dist/generic/crossEntityPolicyEngine.js.map +1 -0
  31. package/dist/generic/dataHooks.d.ts +14 -1
  32. package/dist/generic/dataHooks.d.ts.map +1 -1
  33. package/dist/generic/dataHooks.js.map +1 -1
  34. package/dist/generic/databaseProviderBase.d.ts +37 -0
  35. package/dist/generic/databaseProviderBase.d.ts.map +1 -1
  36. package/dist/generic/databaseProviderBase.js +220 -24
  37. package/dist/generic/databaseProviderBase.js.map +1 -1
  38. package/dist/generic/documentNumberingEngine.d.ts +190 -0
  39. package/dist/generic/documentNumberingEngine.d.ts.map +1 -0
  40. package/dist/generic/documentNumberingEngine.js +739 -0
  41. package/dist/generic/documentNumberingEngine.js.map +1 -0
  42. package/dist/generic/entityInfo.d.ts +104 -3
  43. package/dist/generic/entityInfo.d.ts.map +1 -1
  44. package/dist/generic/entityInfo.js +326 -22
  45. package/dist/generic/entityInfo.js.map +1 -1
  46. package/dist/generic/entityLifecyclePolicy.d.ts +214 -0
  47. package/dist/generic/entityLifecyclePolicy.d.ts.map +1 -0
  48. package/dist/generic/entityLifecyclePolicy.js +708 -0
  49. package/dist/generic/entityLifecyclePolicy.js.map +1 -0
  50. package/dist/generic/entitySubtypeDriver.d.ts +49 -0
  51. package/dist/generic/entitySubtypeDriver.d.ts.map +1 -0
  52. package/dist/generic/entitySubtypeDriver.js +26 -0
  53. package/dist/generic/entitySubtypeDriver.js.map +1 -0
  54. package/dist/generic/fieldSecuritySQLGate.d.ts +17 -0
  55. package/dist/generic/fieldSecuritySQLGate.d.ts.map +1 -1
  56. package/dist/generic/fieldSecuritySQLGate.js +41 -1
  57. package/dist/generic/fieldSecuritySQLGate.js.map +1 -1
  58. package/dist/generic/filters/compositeFilter.d.ts +5 -1
  59. package/dist/generic/filters/compositeFilter.d.ts.map +1 -1
  60. package/dist/generic/filters/compositeFilter.js +127 -12
  61. package/dist/generic/filters/compositeFilter.js.map +1 -1
  62. package/dist/generic/filters/compositeFilterSQL.d.ts +121 -0
  63. package/dist/generic/filters/compositeFilterSQL.d.ts.map +1 -0
  64. package/dist/generic/filters/compositeFilterSQL.js +489 -0
  65. package/dist/generic/filters/compositeFilterSQL.js.map +1 -0
  66. package/dist/generic/filters/filter.types.d.ts +5 -2
  67. package/dist/generic/filters/filter.types.d.ts.map +1 -1
  68. package/dist/generic/filters/filter.types.js +4 -1
  69. package/dist/generic/filters/filter.types.js.map +1 -1
  70. package/dist/generic/filters/filterBuilder.d.ts +75 -0
  71. package/dist/generic/filters/filterBuilder.d.ts.map +1 -0
  72. package/dist/generic/filters/filterBuilder.js +104 -0
  73. package/dist/generic/filters/filterBuilder.js.map +1 -0
  74. package/dist/generic/filters/index.d.ts +2 -0
  75. package/dist/generic/filters/index.d.ts.map +1 -1
  76. package/dist/generic/filters/index.js +2 -0
  77. package/dist/generic/filters/index.js.map +1 -1
  78. package/dist/generic/interfaces.d.ts +56 -1
  79. package/dist/generic/interfaces.d.ts.map +1 -1
  80. package/dist/generic/interfaces.js +0 -1
  81. package/dist/generic/interfaces.js.map +1 -1
  82. package/dist/generic/localCacheManager.d.ts +46 -3
  83. package/dist/generic/localCacheManager.d.ts.map +1 -1
  84. package/dist/generic/localCacheManager.js +267 -45
  85. package/dist/generic/localCacheManager.js.map +1 -1
  86. package/dist/generic/metadata.d.ts +3 -1
  87. package/dist/generic/metadata.d.ts.map +1 -1
  88. package/dist/generic/metadata.js +25 -6
  89. package/dist/generic/metadata.js.map +1 -1
  90. package/dist/generic/providerBase.d.ts +212 -33
  91. package/dist/generic/providerBase.d.ts.map +1 -1
  92. package/dist/generic/providerBase.js +543 -117
  93. package/dist/generic/providerBase.js.map +1 -1
  94. package/dist/generic/queryInfo.d.ts +5 -0
  95. package/dist/generic/queryInfo.d.ts.map +1 -1
  96. package/dist/generic/queryInfo.js +5 -0
  97. package/dist/generic/queryInfo.js.map +1 -1
  98. package/dist/generic/queryInfoInterfaces.d.ts +5 -0
  99. package/dist/generic/queryInfoInterfaces.d.ts.map +1 -1
  100. package/dist/generic/remoteOperationDispatch.d.ts.map +1 -1
  101. package/dist/generic/remoteOperationDispatch.js +13 -1
  102. package/dist/generic/remoteOperationDispatch.js.map +1 -1
  103. package/dist/generic/saveEntityGraphOperation.d.ts +6 -0
  104. package/dist/generic/saveEntityGraphOperation.d.ts.map +1 -1
  105. package/dist/generic/saveEntityGraphOperation.js +8 -0
  106. package/dist/generic/saveEntityGraphOperation.js.map +1 -1
  107. package/dist/generic/transactionGroup.d.ts +25 -0
  108. package/dist/generic/transactionGroup.d.ts.map +1 -1
  109. package/dist/generic/transactionGroup.js +105 -0
  110. package/dist/generic/transactionGroup.js.map +1 -1
  111. package/dist/generic/typedQuery.d.ts +151 -0
  112. package/dist/generic/typedQuery.d.ts.map +1 -0
  113. package/dist/generic/typedQuery.js +286 -0
  114. package/dist/generic/typedQuery.js.map +1 -0
  115. package/dist/generic/util.d.ts.map +1 -1
  116. package/dist/generic/util.js +9 -3
  117. package/dist/generic/util.js.map +1 -1
  118. package/dist/index.d.ts +6 -0
  119. package/dist/index.d.ts.map +1 -1
  120. package/dist/index.js +6 -0
  121. package/dist/index.js.map +1 -1
  122. package/dist/views/runView.d.ts +53 -0
  123. package/dist/views/runView.d.ts.map +1 -1
  124. package/dist/views/runView.js +134 -0
  125. package/dist/views/runView.js.map +1 -1
  126. package/package.json +3 -3
@@ -347,27 +347,40 @@ export class Metadata {
347
347
  else
348
348
  throw new Error(`Entity ${request.EntityName} does not allow record merging, check the AllowRecordMerge property in the entity metadata`);
349
349
  }
350
- async GetEntityObject(entityName, loadKeyOrContextUser, contextUser) {
350
+ static isGetEntityObjectOptions(value) {
351
+ return (typeof value === 'object' &&
352
+ value !== null &&
353
+ !(value instanceof CompositeKey) &&
354
+ !(value instanceof UserInfo) &&
355
+ 'SkipNewRecord' in value);
356
+ }
357
+ async GetEntityObject(entityName, loadKeyOrOptionsOrContextUser, contextUser) {
351
358
  // validate that entityName is not null, undefined and IS a string > 0 length
352
359
  if (!entityName || typeof entityName !== 'string' || entityName.trim().length === 0) {
353
360
  throw new Error('GetEntityObject: entityName must be a non-empty string');
354
361
  }
355
362
  // Determine which overload was called
356
363
  let actualLoadKey;
364
+ let actualOptions;
357
365
  let actualContextUser;
358
- if (loadKeyOrContextUser instanceof CompositeKey) {
359
- // Second overload: entityName, loadKey, contextUser
360
- actualLoadKey = loadKeyOrContextUser;
366
+ if (loadKeyOrOptionsOrContextUser instanceof CompositeKey) {
367
+ // Overload: entityName, loadKey, contextUser
368
+ actualLoadKey = loadKeyOrOptionsOrContextUser;
369
+ actualContextUser = contextUser;
370
+ }
371
+ else if (Metadata.isGetEntityObjectOptions(loadKeyOrOptionsOrContextUser)) {
372
+ // Overload: entityName, options, contextUser
373
+ actualOptions = loadKeyOrOptionsOrContextUser;
361
374
  actualContextUser = contextUser;
362
375
  }
363
376
  else if (contextUser !== undefined) {
364
- // Second overload with null/undefined loadKey: entityName, null/undefined, contextUser
377
+ // Overload with null/undefined loadKey: entityName, null/undefined, contextUser
365
378
  actualLoadKey = undefined;
366
379
  actualContextUser = contextUser;
367
380
  }
368
381
  else {
369
382
  // First overload: entityName, contextUser
370
- actualContextUser = loadKeyOrContextUser;
383
+ actualContextUser = loadKeyOrOptionsOrContextUser;
371
384
  }
372
385
  // validate that contextUser is either null/undefined or a UserInfo object
373
386
  if (actualContextUser) {
@@ -385,6 +398,12 @@ export class Metadata {
385
398
  }
386
399
  }
387
400
  }
401
+ if (actualOptions !== undefined) {
402
+ if (Metadata.Provider.GetEntityObjectWithOptions) { // global-provider-ok: Metadata helper class — proxies to the global static Provider by design
403
+ return await Metadata.Provider.GetEntityObjectWithOptions(entityName, actualOptions, actualContextUser); // global-provider-ok: Metadata helper class — proxies to the global static Provider by design
404
+ }
405
+ return await Metadata.Provider.GetEntityObject(entityName, actualContextUser); // global-provider-ok: Metadata helper class — proxies to the global static Provider by design
406
+ }
388
407
  return await Metadata.Provider.GetEntityObject(entityName, actualLoadKey, actualContextUser); // global-provider-ok: Metadata helper class — proxies to the global static Provider by design
389
408
  }
390
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O,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { BaseEntity, BaseEntityEvent } from "./baseEntity.js";
2
2
  import { EntityDependency, EntityDocumentTypeInfo, EntityInfo, RecordDependency, RecordMergeRequest, RecordMergeResult } from "./entityInfo.js";
3
- import { IMetadataProvider, MetadataSweepResult, ProviderConfigDataBase, MetadataInfo, ILocalStorageProvider, IFileSystemProvider, DatasetResultType, DatasetStatusResultType, DatasetItemFilterType, EntityRecordNameInput, EntityRecordNameResult, ProviderType, PotentialDuplicateRequest, PotentialDuplicateResponse, EntityMergeOptions, GetRecordDependenciesOptions, AllMetadata, IRunViewProvider, RunViewResult, IRunQueryProvider, RunQueryResult, RunViewWithCacheCheckParams, FullTextSearchParams, FullTextSearchResult, SearchEntityParams, EntitySearchResult, IRemoteOperationProvider, RemoteOpInvokeOptions, RemoteOpResult } from "./interfaces.js";
3
+ import { IMetadataProvider, MetadataSweepResult, ProviderConfigDataBase, MetadataInfo, ILocalStorageProvider, IFileSystemProvider, DatasetResultType, DatasetStatusResultType, DatasetItemFilterType, EntityRecordNameInput, EntityRecordNameResult, ProviderType, PotentialDuplicateRequest, PotentialDuplicateResponse, EntityMergeOptions, GetEntityObjectOptions, GetRecordDependenciesOptions, AllMetadata, IRunViewProvider, RunViewResult, IRunQueryProvider, RunQueryResult, RunViewWithCacheCheckParams, FullTextSearchParams, FullTextSearchResult, SearchEntityParams, EntitySearchResult, IRemoteOperationProvider, RemoteOpInvokeOptions, RemoteOpResult } from "./interfaces.js";
4
4
  import { ScoredCandidate } from "./scoring/ReciprocalRankFusion.js";
5
5
  import { RunQueryParams } from "./runQuery.js";
6
6
  import { CachedRunViewResult } from "./localCacheManager.js";
@@ -137,6 +137,7 @@ export type EntityMetadataRow = BaseMetadataRow & {
137
137
  EntitySettings?: unknown[];
138
138
  EntityOrganicKeys?: unknown[];
139
139
  EntityAlternateBaseViews?: unknown[];
140
+ EntityUniqueKeys?: unknown[];
140
141
  };
141
142
  export type EntityFieldMetadataRow = BaseMetadataRow & {
142
143
  ID: string;
@@ -182,6 +183,23 @@ export type OrganicKeyRelatedEntityMetadataRow = BaseMetadataRow & {
182
183
  * @param requestedFields - The caller's original Fields list, or null for "all fields"
183
184
  */
184
185
  export declare function ProjectRowsToFields<T = Record<string, unknown>>(rows: T[], requestedFields: string[] | null | undefined): T[];
186
+ /**
187
+ * What a metadata refresh must reload, as {@link ProviderBase.MetadataRefreshScope} decides it from
188
+ * the local and remote timestamps: nothing, the saved-query family (`Codes`), or everything (with
189
+ * the `Reason`, for the log).
190
+ */
191
+ export type MetadataRefreshScopeResult =
192
+ /** Nothing to reload. `AnyItemMoved`: some item's timestamp did move, but none the build reads. */
193
+ {
194
+ Kind: 'none';
195
+ AnyItemMoved: boolean;
196
+ } | {
197
+ Kind: 'scoped';
198
+ Codes: ReadonlyArray<string>;
199
+ } | {
200
+ Kind: 'full';
201
+ Reason: string;
202
+ };
185
203
  /**
186
204
  * Base class for all metadata providers in MemberJunction.
187
205
  * Implements common functionality for metadata caching, refresh, and dataset management.
@@ -237,6 +255,14 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
237
255
  * acts on its answer. Held as the promise (not a flag) so only its owner clears it.
238
256
  */
239
257
  private _refreshCheckInFlight;
258
+ /**
259
+ * The remote timestamps stored by the last refresh check whose status read succeeded; null after
260
+ * a check whose read failed. {@link RefreshIfNeeded} reuses the stored remote timestamps for its
261
+ * scoped reload only while they are this array, so a check whose read failed is followed by a
262
+ * fresh read. This prefers fresher stamps; it is not needed for correctness, because any stored
263
+ * stamps were read before the scoped dataset read starts.
264
+ */
265
+ private _checkedRemoteMetadataTimestamps;
240
266
  /**
241
267
  * Set when Config() adopts a snapshot it loaded from the server (which fetched the current user
242
268
  * with it); consumed by the next {@link preValidateAndRefresh}, which then has nothing to check.
@@ -277,14 +303,27 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
277
303
  * all engines that fire in the same tick, without adding perceptible delay.
278
304
  */
279
305
  static CoalesceWindowMs: number;
306
+ /**
307
+ * Controls whether `RunViews` coalescing drains via microtasks (`queueMicrotask`) instead
308
+ * of a wall-clock `setTimeout(..., CoalesceWindowMs)` timer when `CoalesceWindowMs > 0`.
309
+ *
310
+ * When `true` (default), concurrent calls in the same synchronous turn or immediate
311
+ * `Promise` / `BaseEngine.Load` microtask hops coalesce into one mega-batch and flush as
312
+ * soon as the microtask queue stabilizes (bounded at 8 hops), eliminating the 10–16ms timer
313
+ * floor (and ~1,000ms background-tab timer throttling) on isolated queries. Set to `false`
314
+ * to use the fixed `setTimeout(..., CoalesceWindowMs)` timer window.
315
+ */
316
+ static CoalesceUseMicrotask: boolean;
280
317
  /**
281
318
  * Pending coalesced requests waiting to be flushed.
282
319
  * Each entry tracks the original params, contextUser, and a resolver
283
320
  * so the caller's promise resolves with only their slice of results.
284
321
  */
285
322
  private _coalesceQueue;
286
- /** Timer handle for the coalesce flush */
323
+ /** Timer handle for the coalesce flush (when `CoalesceUseMicrotask === false`) */
287
324
  private _coalesceTimer;
325
+ /** True while a microtask-drain coalesce flush is scheduled */
326
+ private _coalesceMicrotaskScheduled;
288
327
  /**
289
328
  * How long (ms) a resolved RunViews result stays available for instant
290
329
  * replay. Set to 0 to disable the linger window (in-flight dedup
@@ -439,11 +478,12 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
439
478
  */
440
479
  private _metadataReadsJoinTransaction;
441
480
  /**
442
- * The MJ_Metadata dataset items (code + entity name + row count) as of the last load. The remote
443
- * timestamps ({@link GetLatestMetadataUpdates}) are keyed by entity name while a dataset
444
- * read is scoped by item code, so this is the bridge that lets a staleness check be turned
445
- * into a scoped reload (see {@link PartialRefreshItemCodes}) and lets {@link adoptServerMetadata}
446
- * verify that the received dataset items' row counts match `_latestRemoteMetadataTimestamps`.
481
+ * The MJ_Metadata dataset items (code + entity name + row count) as of the last load, or as
482
+ * stored beside the snapshot a warm boot restored. The remote timestamps
483
+ * ({@link GetLatestMetadataUpdates}) are keyed by entity name while a dataset read is scoped by
484
+ * item code, so this is the bridge that lets a staleness check be turned into a scoped reload
485
+ * (see {@link MetadataRefreshScope}) and lets {@link adoptServerMetadata} verify that the
486
+ * received dataset items' row counts match `_latestRemoteMetadataTimestamps`.
447
487
  */
448
488
  private _metadataDatasetItems;
449
489
  /**
@@ -464,9 +504,34 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
464
504
  */
465
505
  static get PartialRefreshMetadataItemCodes(): ReadonlyArray<string>;
466
506
  private static readonly _queryFamilyItemCodes;
507
+ /**
508
+ * MJ_Metadata item codes that {@link GetAllMetadata} reads to build the metadata: every
509
+ * {@link AllMetadataArrays} item, plus the items it folds into entities and applications. The
510
+ * shipped dataset also carries items the build never reads (`Dashboards`,
511
+ * `Dashboard_Categories`); a change to one of those cannot change the built metadata, so it
512
+ * needs no reload (see {@link MetadataRefreshScope}).
513
+ */
514
+ static get MetadataBuildItemCodes(): ReadonlySet<string>;
515
+ /** The items {@link GetAllMetadata} folds into entities (PostProcessEntityMetadata) and applications. */
516
+ private static readonly _metadataFoldedItemCodes;
517
+ private static readonly _metadataBuildItemCodes;
518
+ /**
519
+ * Delays, in milliseconds, before each retry of a metadata refresh that failed; the last one
520
+ * repeats. A failed timestamp read, a failed scoped reload and a failed full reload all keep
521
+ * the metadata already loaded and try again later. None of them escalates to a full reload:
522
+ * that is the most expensive read the provider makes, and these failures come when the server
523
+ * is busiest (an exhausted connection pool, a timed-out status query).
524
+ */
525
+ static MetadataRefreshRetryDelaysMs: ReadonlyArray<number>;
526
+ /** Failed scoped reloads in a row before the full reload is used instead. */
527
+ static MetadataScopedReloadAttempts: number;
528
+ /** Failed refresh attempts in a row; picks the next delay from {@link MetadataRefreshRetryDelaysMs}. */
529
+ private _metadataRefreshRetries;
530
+ /** Failed scoped reloads in a row; see {@link MetadataScopedReloadAttempts}. */
531
+ private _metadataScopedReloadFailures;
467
532
  /** The synthetic roll-up row {@link GetLatestMetadataUpdates} appends to the per-entity timestamps. */
468
533
  private static readonly _allMetadataTypeName;
469
- /** Debounce timer for {@link scheduleMetadataMemberRefresh}. */
534
+ /** Debounce timer for {@link scheduleMetadataMemberRefresh}, and for {@link scheduleMetadataRefreshRetry}. */
470
535
  private _metadataMemberRefreshTimer;
471
536
  /**
472
537
  * Records which entities compose this provider's metadata, from the loaded MJ_Metadata
@@ -628,14 +693,64 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
628
693
  */
629
694
  private handlePeerMetadataNoticeRetry;
630
695
  /**
631
- * How this provider refreshes after a metadata member entity changed. The base behavior is a
632
- * hard {@link Refresh} — correct for database providers, where the process that PERFORMED the
633
- * write is the one refreshing, so re-checking staleness first is wasted work and the re-read
634
- * must bypass every cache layer. Transport providers (GraphQL) override this with a staleness
635
- * check so a browser doesn't re-pull the full metadata graph for a change the server-side
636
- * timestamp comparison can disconfirm.
696
+ * How this provider refreshes after a metadata member entity changed. The base behavior
697
+ * re-reads the authoritative timestamps once (the status query is read from the database
698
+ * every time, never from a cache layer) and reloads only what they show changed — see
699
+ * {@link MetadataRefreshScope}: nothing, the saved-query family (through
700
+ * {@link ReloadMetadata}, which reuses that read instead of reading the timestamps again), or
701
+ * everything (a hard {@link Refresh}, which bypasses every cache layer).
702
+ *
703
+ * The caller holds positive evidence that a member entity was written, so "no item moved" is
704
+ * NOT taken as "nothing changed" here: a write committed with a stamp older than the item's
705
+ * current max — on PostgreSQL `NOW()` is the transaction start, so any in-place edit inside a
706
+ * transaction that outlived a peer's later write; on SQL Server the statement-to-commit
707
+ * window — leaves both the max stamp and the row count where they were. Only a change the
708
+ * timestamps positively attribute to items the metadata build never reads (`Dashboards`) is
709
+ * answered without a reload. The same rule governs the follow-up pass that a write arriving
710
+ * mid-reload queues (see `_metadataWriteEventPending`).
711
+ *
712
+ * A timestamp read that fails while metadata is loaded is retried on
713
+ * {@link MetadataRefreshRetryDelaysMs}; it is not a reason for a full reload. With nothing
714
+ * loaded there is nothing to keep serving, so the full load runs. Transport providers
715
+ * (GraphQL) override this with a staleness check so a browser doesn't re-pull the full
716
+ * metadata graph for a change the server-side timestamp comparison can disconfirm.
637
717
  */
638
718
  protected RefreshAfterMetadataMemberChange(): Promise<boolean>;
719
+ /**
720
+ * Set by a write-event refresh that found a reload in flight and queued a follow-up pass; that
721
+ * pass consumes it and applies {@link applyWriteEventRule}. Without it the follow-up would take
722
+ * "no item moved" as "nothing changed", and the writer could miss its own write.
723
+ */
724
+ private _metadataWriteEventPending;
725
+ /**
726
+ * Set by an explicit full reload (a `Refresh()`) that found a reload in flight and queued a
727
+ * follow-up pass; that pass consumes it and runs in full, so the promise of a full reload holds.
728
+ */
729
+ private _metadataFullReloadRequested;
730
+ /**
731
+ * The write-event rule: a refresh prompted by a member-entity write knows something changed, so
732
+ * a `none` scope in which no item moved at all becomes a full reload. A `none` in which only
733
+ * items the build never reads moved stands — the timestamps positively attribute the change.
734
+ */
735
+ private static applyWriteEventRule;
736
+ /** True when this provider holds metadata it can keep serving while a refresh is retried. */
737
+ private get holdsMetadata();
738
+ /**
739
+ * Runs {@link RefreshAfterMetadataMemberChange} again after the next delay in
740
+ * {@link MetadataRefreshRetryDelaysMs}. The retry shares the member-change timer: a refresh
741
+ * that is already pending covers it, a new write re-arms it with the short debounce, and
742
+ * {@link CancelPendingMetadataMemberRefresh} cancels it. The timer does not keep a Node
743
+ * process alive.
744
+ */
745
+ private scheduleMetadataRefreshRetry;
746
+ /**
747
+ * The timestamps show nothing the metadata build reads has changed: stamp the held snapshot
748
+ * with them, so the next check agrees. Only the in-memory stamp moves; re-saving the snapshot
749
+ * would serialize the whole graph for a change it does not contain.
750
+ */
751
+ private markMetadataCurrent;
752
+ /** The metadata is current again: the next failure starts at the first retry delay. */
753
+ private resetMetadataRefreshFailures;
639
754
  /**
640
755
  * How many consecutive windows a member-change refresh may wait on
641
756
  * {@link MetadataMemberRefreshMustWait} before it is dropped. At the default 500ms window
@@ -892,6 +1007,13 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
892
1007
  * each caller receives only their slice of the results.
893
1008
  */
894
1009
  private enqueueCoalescedRunViews;
1010
+ /**
1011
+ * Drains the coalesce queue via `queueMicrotask`. Yields a minimum of 6 microtask hops
1012
+ * (~4µs) so sibling `StartupManager` engines finishing their initial `ResolveContextUser`
1013
+ * and `PreRunViews` awaits reach the queue, and continues yielding (bounded at 16 hops)
1014
+ * while queue length is still growing; flushes immediately once queue growth settles.
1015
+ */
1016
+ private scheduleMicrotaskCoalesceDrain;
895
1017
  /**
896
1018
  * Flushes the coalesce queue: merges all pending RunViews params into one
897
1019
  * mega-batch, executes it, then splits results back to each original caller.
@@ -1549,7 +1671,7 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
1549
1671
  * The shared entry point for every clause slot a provider runs: RunView parameters, a saved
1550
1672
  * view's stored clauses, dataset item filters, user-search text spliced as SQL.
1551
1673
  */
1552
- protected AssertClausesRespectFieldSecurityForEntity(entity: EntityInfo, clauses: Iterable<unknown>, user: UserInfo): void;
1674
+ protected AssertClausesRespectFieldSecurityForEntity(entity: EntityInfo, clauses: Iterable<unknown>, user: UserInfo, parameterNames?: ReadonlySet<string>): void;
1553
1675
  /**
1554
1676
  * {@link AssertClausesRespectFieldSecurityForEntity} for ORDER BY fragments, which also refuses
1555
1677
  * a sort by column position for a user denied a field on `entity`
@@ -2022,12 +2144,31 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
2022
2144
  /**
2023
2145
  * Reloads this provider's metadata. Single-flight: at most one reload runs at a time, and a
2024
2146
  * request arriving mid-reload queues exactly one follow-up pass.
2025
- * @param hardRefresh - re-read the remote timestamps first and bypass every cache layer
2026
- * @param scopedFirst - try the scoped reload of the saved-query family (see
2027
- * {@link PartialRefreshMetadataItemCodes}) before the full one. Defaults to true unless
2028
- * hardRefresh: an explicit Refresh() is always a full reload.
2147
+ * @param hardRefresh - re-read the remote timestamps first (unless `stampsFresh`) and bypass
2148
+ * every cache layer
2149
+ * @param scopedFirst - reload only what the timestamps show changed (see
2150
+ * {@link MetadataRefreshScope}): nothing, the saved-query family (see
2151
+ * {@link PartialRefreshMetadataItemCodes}), or everything. Defaults to true unless
2152
+ * hardRefresh: an explicit Refresh() is always a full reload, and so is one that joins a
2153
+ * reload already in flight — the follow-up pass it queues runs in full. A pass that may be
2154
+ * scoped but cannot read the timestamps keeps the metadata loaded and is retried later.
2155
+ * @param stampsFresh - the caller read the remote timestamps just before this call. The first
2156
+ * hard pass then uses them instead of reading them again; a queued follow-up pass still reads.
2157
+ */
2158
+ protected ReloadMetadata(hardRefresh: boolean, providerToUse?: IMetadataProvider, scopedFirst?: boolean, stampsFresh?: boolean): Promise<boolean>;
2159
+ /**
2160
+ * Carries out one reload pass for `scope`. A failed scoped reload is retried later; only the
2161
+ * {@link MetadataScopedReloadAttempts}-th failure in a row runs the full reload instead.
2162
+ * @returns true when a full snapshot was loaded from the server and adopted
2163
+ */
2164
+ private applyMetadataRefreshScope;
2165
+ /**
2166
+ * The full reload: fetches all metadata and adopts it. Readers keep the current metadata until
2167
+ * the new snapshot is ready, and keep it if the fetch fails; a failure while metadata is loaded
2168
+ * is retried later. Every full reload is logged with its reason and duration.
2169
+ * @returns true when the snapshot was loaded and adopted
2029
2170
  */
2030
- protected ReloadMetadata(hardRefresh: boolean, providerToUse?: IMetadataProvider, scopedFirst?: boolean): Promise<boolean>;
2171
+ private reloadAllMetadata;
2031
2172
  /**
2032
2173
  * Adopts a metadata snapshot just loaded from the server: swaps it in, records that the
2033
2174
  * local copy now matches the server's timestamps (verified per item against the received
@@ -2048,12 +2189,24 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
2048
2189
  */
2049
2190
  private reconcileAdoptedMetadataTimestamps;
2050
2191
  /**
2051
- * Decides whether the current staleness can be served by a scoped reload of the saved-query
2052
- * family. Compares local and remote timestamps item by item (the same test as
2053
- * {@link LocalMetadataObsolete}) and maps each stale entity back to its MJ_Metadata item code.
2054
- * @returns the family's item codes (the whole family — the query classes are swapped as a set)
2055
- * when every stale item belongs to it; null when anything else is stale, nothing is, or the
2056
- * inputs needed to attribute the change are missing — the full reload is then the answer.
2192
+ * What a metadata refresh must reload, from the local and remote timestamps. Compares them
2193
+ * item by item (the same test as {@link LocalMetadataObsolete}) and maps each stale entity
2194
+ * back to its MJ_Metadata item code:
2195
+ *
2196
+ * - `none` — nothing {@link MetadataBuildItemCodes} names has changed. Either nothing moved,
2197
+ * or only items the metadata build never reads did (`Dashboards`).
2198
+ * - `scoped` — every change the build reads is in the saved-query family (see
2199
+ * {@link PartialRefreshMetadataItemCodes}); `Codes` is the whole family, since the query
2200
+ * classes are swapped as a set.
2201
+ * - `full` — anything else changed, or the change cannot be attributed (an unknown item, an
2202
+ * item that left the dataset, the roll-up moving with no item, or the inputs to compare are
2203
+ * missing). `Reason` says which, for the log.
2204
+ */
2205
+ protected MetadataRefreshScope(): MetadataRefreshScopeResult;
2206
+ /**
2207
+ * The saved-query family's item codes when the current staleness can be served by a scoped
2208
+ * reload; null otherwise.
2209
+ * @deprecated Use {@link MetadataRefreshScope}, which also says when nothing needs reloading.
2057
2210
  */
2058
2211
  protected PartialRefreshItemCodes(): string[] | null;
2059
2212
  private static metadataStampChanged;
@@ -2064,14 +2217,16 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
2064
2217
  * requested with a `1=0` filter, so it reads nothing. Always bypasses cache layers — the read
2065
2218
  * is small, and a cached answer is exactly what a staleness check cannot trust.
2066
2219
  * @returns true when the scoped reload was applied; false when it does not apply or any part
2067
- * of it failed — the caller then runs the full reload, so a failure never leaves stale queries.
2220
+ * of it failed — the caller then retries it later, and after
2221
+ * {@link MetadataScopedReloadAttempts} failures in a row runs the full reload, so a failure
2222
+ * never leaves stale queries for good.
2068
2223
  */
2069
2224
  protected TryPartialMetadataReload(providerToUse?: IMetadataProvider): Promise<boolean>;
2070
2225
  /**
2071
2226
  * Background validation for the stale-while-revalidate fast-start pattern.
2072
- * Checks if local metadata is still current; if stale, fetches fresh metadata
2073
- * and atomically swaps it in. The app continues operating on cached data
2074
- * during this process — no blocking.
2227
+ * Checks if local metadata is still current; if stale, reloads only what changed (see
2228
+ * {@link MetadataRefreshScope}) and atomically swaps it in. The app continues operating on
2229
+ * cached data during this process — no blocking.
2075
2230
  */
2076
2231
  backgroundValidateAndRefresh(providerToUse?: IMetadataProvider): Promise<void>;
2077
2232
  /**
@@ -2088,8 +2243,9 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
2088
2243
  * engines start, then proceed normally.
2089
2244
  *
2090
2245
  * Cost on the warm-current path is one batched timestamp fetch (~50–200 ms depending
2091
- * on RTT). On the warm-stale path we additionally pay the full metadata fetch but
2092
- * avoid serving stale data to the UI in the first place.
2246
+ * on RTT). On the warm-stale path we additionally reload what changed — the saved-query
2247
+ * family alone when only saved queries moved, everything otherwise — but avoid serving
2248
+ * stale data to the UI in the first place.
2093
2249
  *
2094
2250
  * On a cold boot, where Config() just loaded the graph (and the current user) from the
2095
2251
  * server, the first call after that load returns immediately — no check, no current-user
@@ -2098,6 +2254,15 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
2098
2254
  * Caller contract: invoke this before `StartupManager.Startup()`.
2099
2255
  */
2100
2256
  preValidateAndRefresh(providerToUse?: IMetadataProvider): Promise<void>;
2257
+ /**
2258
+ * Brings cached metadata that a staleness check just found stale up to date, reloading only
2259
+ * what changed (see {@link MetadataRefreshScope}). The full reload replaces the snapshot
2260
+ * wholesale and fetches the current user with it; it is not {@link Config}'s load, so it does
2261
+ * not claim the cold-boot pre-validation skip. A scoped reload merges into the current
2262
+ * snapshot, so it runs inside {@link ReloadMetadata}'s single flight, where no other reload can
2263
+ * swap the snapshot out from under it; it fetches no user, so `refreshCurrentUser` asks for one.
2264
+ */
2265
+ private reloadStaleCachedMetadata;
2101
2266
  /**
2102
2267
  * @deprecated The reuse-global fast path now builds a shared shell instead — see
2103
2268
  * {@link CreateSharedMetadataShell}. The metadata graph is immutable after Config,
@@ -2227,7 +2392,7 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
2227
2392
  * metadata post-processing, replacing repeated O(N*M) filter scans.
2228
2393
  */
2229
2394
  private groupByNormalizedUUID;
2230
- protected PostProcessEntityMetadata(entities: EntityMetadataRow[], fields: EntityFieldMetadataRow[], fieldValues: EntityFieldValueMetadataRow[], permissions: EntityChildMetadataRow[], relationships: EntityChildMetadataRow[], settings: EntityChildMetadataRow[], organicKeys?: OrganicKeyMetadataRow[], organicKeyRelatedEntities?: OrganicKeyRelatedEntityMetadataRow[], fieldPermissions?: EntityFieldPermissionMetadataRow[], alternateBaseViews?: EntityChildMetadataRow[]): EntityInfo[];
2395
+ protected PostProcessEntityMetadata(entities: EntityMetadataRow[], fields: EntityFieldMetadataRow[], fieldValues: EntityFieldValueMetadataRow[], permissions: EntityChildMetadataRow[], relationships: EntityChildMetadataRow[], settings: EntityChildMetadataRow[], organicKeys?: OrganicKeyMetadataRow[], organicKeyRelatedEntities?: OrganicKeyRelatedEntityMetadataRow[], fieldPermissions?: EntityFieldPermissionMetadataRow[], alternateBaseViews?: EntityChildMetadataRow[], uniqueKeys?: EntityChildMetadataRow[]): EntityInfo[];
2231
2396
  /**
2232
2397
  * Gets the configuration data that was provided to the provider.
2233
2398
  * @returns The provider configuration including schema filters
@@ -2401,6 +2566,7 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
2401
2566
  * @returns True if refresh was successful or not needed
2402
2567
  */
2403
2568
  RefreshIfNeeded(providerToUse?: IMetadataProvider, bypassMinCheckInterval?: boolean): Promise<boolean>;
2569
+ private static isGetEntityObjectOptions;
2404
2570
  /**
2405
2571
  * Creates a new instance of a BaseEntity subclass for the specified entity and automatically calls NewRecord() to initialize it.
2406
2572
  * This method serves as the core implementation for entity instantiation in the MemberJunction framework.
@@ -2421,7 +2587,13 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
2421
2587
  * @returns Promise resolving to the entity instance with the specified record loaded
2422
2588
  * @throws Error if entity name is not found, instantiation fails, or record cannot be loaded
2423
2589
  */
2590
+ GetEntityObject<T extends BaseEntity>(entityName: string, options: GetEntityObjectOptions, contextUser?: UserInfo): Promise<T>;
2424
2591
  GetEntityObject<T extends BaseEntity>(entityName: string, loadKey: CompositeKey, contextUser?: UserInfo): Promise<T>;
2592
+ /**
2593
+ * Instantiates a `BaseEntity` subclass using explicit {@link GetEntityObjectOptions}
2594
+ * (for example `{ SkipNewRecord: true }` prior to `LoadFromData`).
2595
+ */
2596
+ GetEntityObjectWithOptions<T extends BaseEntity>(entityName: string, options: GetEntityObjectOptions, contextUser?: UserInfo): Promise<T>;
2425
2597
  /**
2426
2598
  * Returns a list of dependencies - records that are linked to the specified Entity/RecordID combination. A dependency is as defined by the relationships in the database. The MemberJunction metadata that is used
2427
2599
  * for this simply reflects the foreign key relationships that exist in the database. The CodeGen tool is what detects all of the relationships and generates the metadata that is used by MemberJunction. The metadata in question
@@ -2729,7 +2901,14 @@ export declare abstract class ProviderBase implements IMetadataProvider, IRunVie
2729
2901
  private static localStorageAllMetadataKey;
2730
2902
  private static localStorageFormatKey;
2731
2903
  private static localStorageDatasetMembershipKey;
2904
+ /** The MJ_Metadata dataset items (see `_metadataDatasetItems`) of the stored snapshot. */
2905
+ private static localStorageDatasetItemsKey;
2732
2906
  private static localStorageKeys;
2907
+ /**
2908
+ * Adopts a stored dataset item list. Only a well-formed list replaces the one held: a damaged or
2909
+ * empty value must not erase the list a load already recorded.
2910
+ */
2911
+ private restoreMetadataDatasetItems;
2733
2912
  /**
2734
2913
  * Converts a base64-encoded string to an ArrayBuffer.
2735
2914
  * Used for compressed metadata storage/retrieval.