@memberjunction/core 5.51.0 → 6.1.0-edge.1

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 (73) hide show
  1. package/LICENSE +7 -0
  2. package/dist/generic/baseEngine.d.ts.map +1 -1
  3. package/dist/generic/baseEngine.js +13 -2
  4. package/dist/generic/baseEngine.js.map +1 -1
  5. package/dist/generic/baseEngineRegistry.d.ts +14 -0
  6. package/dist/generic/baseEngineRegistry.d.ts.map +1 -1
  7. package/dist/generic/baseEngineRegistry.js +32 -0
  8. package/dist/generic/baseEngineRegistry.js.map +1 -1
  9. package/dist/generic/baseEntity.d.ts +329 -26
  10. package/dist/generic/baseEntity.d.ts.map +1 -1
  11. package/dist/generic/baseEntity.js +788 -79
  12. package/dist/generic/baseEntity.js.map +1 -1
  13. package/dist/generic/databaseProviderBase.d.ts +54 -17
  14. package/dist/generic/databaseProviderBase.d.ts.map +1 -1
  15. package/dist/generic/databaseProviderBase.js +133 -52
  16. package/dist/generic/databaseProviderBase.js.map +1 -1
  17. package/dist/generic/entityCompanion.d.ts +218 -0
  18. package/dist/generic/entityCompanion.d.ts.map +1 -0
  19. package/dist/generic/entityCompanion.js +170 -0
  20. package/dist/generic/entityCompanion.js.map +1 -0
  21. package/dist/generic/entityInfo.d.ts +146 -0
  22. package/dist/generic/entityInfo.d.ts.map +1 -1
  23. package/dist/generic/entityInfo.js +188 -0
  24. package/dist/generic/entityInfo.js.map +1 -1
  25. package/dist/generic/entitySavePlan.d.ts +199 -0
  26. package/dist/generic/entitySavePlan.d.ts.map +1 -0
  27. package/dist/generic/entitySavePlan.js +213 -0
  28. package/dist/generic/entitySavePlan.js.map +1 -0
  29. package/dist/generic/entityTransactionScope.d.ts +125 -0
  30. package/dist/generic/entityTransactionScope.d.ts.map +1 -0
  31. package/dist/generic/entityTransactionScope.js +115 -0
  32. package/dist/generic/entityTransactionScope.js.map +1 -0
  33. package/dist/generic/interfaces.d.ts +93 -35
  34. package/dist/generic/interfaces.d.ts.map +1 -1
  35. package/dist/generic/interfaces.js +27 -0
  36. package/dist/generic/interfaces.js.map +1 -1
  37. package/dist/generic/providerBase.d.ts +13 -0
  38. package/dist/generic/providerBase.d.ts.map +1 -1
  39. package/dist/generic/providerBase.js +64 -5
  40. package/dist/generic/providerBase.js.map +1 -1
  41. package/dist/generic/relatedRecordBatchLoader.d.ts +39 -0
  42. package/dist/generic/relatedRecordBatchLoader.d.ts.map +1 -0
  43. package/dist/generic/relatedRecordBatchLoader.js +154 -0
  44. package/dist/generic/relatedRecordBatchLoader.js.map +1 -0
  45. package/dist/generic/relatedRecordCollection.d.ts +578 -0
  46. package/dist/generic/relatedRecordCollection.d.ts.map +1 -0
  47. package/dist/generic/relatedRecordCollection.js +1004 -0
  48. package/dist/generic/relatedRecordCollection.js.map +1 -0
  49. package/dist/generic/saveEntityGraphOperation.d.ts +148 -0
  50. package/dist/generic/saveEntityGraphOperation.d.ts.map +1 -0
  51. package/dist/generic/saveEntityGraphOperation.js +157 -0
  52. package/dist/generic/saveEntityGraphOperation.js.map +1 -0
  53. package/dist/generic/securityInfo.d.ts +99 -1
  54. package/dist/generic/securityInfo.d.ts.map +1 -1
  55. package/dist/generic/securityInfo.js +88 -6
  56. package/dist/generic/securityInfo.js.map +1 -1
  57. package/dist/generic/telemetryManager.d.ts +21 -1
  58. package/dist/generic/telemetryManager.d.ts.map +1 -1
  59. package/dist/generic/telemetryManager.js +21 -6
  60. package/dist/generic/telemetryManager.js.map +1 -1
  61. package/dist/index.d.ts +6 -1
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +6 -3
  64. package/dist/index.js.map +1 -1
  65. package/dist/views/runView.d.ts +31 -0
  66. package/dist/views/runView.d.ts.map +1 -1
  67. package/dist/views/runView.js.map +1 -1
  68. package/package.json +13 -13
  69. package/readme.md +159 -1
  70. package/dist/generic/runReport.d.ts +0 -25
  71. package/dist/generic/runReport.d.ts.map +0 -1
  72. package/dist/generic/runReport.js +0 -38
  73. package/dist/generic/runReport.js.map +0 -1
@@ -1,8 +1,11 @@
1
1
  import { EntityFieldInfo, EntityInfo, EntityFieldTSType, EntityPermissionType, RecordChange, ValidationResult, EntityRelationshipInfo } from './entityInfo.js';
2
- import { EntityDeleteOptions, EntitySaveOptions, IEntityDataProvider, IMetadataProvider, IRunQueryProvider, IRunReportProvider, IRunViewProvider, SimpleEmbeddingResult } from './interfaces.js';
2
+ import { EntityDeleteOptions, EntitySaveOptions, IEntityDataProvider, IMetadataProvider, IRunQueryProvider, IRunViewProvider, SimpleEmbeddingResult } from './interfaces.js';
3
3
  import { UserInfo } from './securityInfo.js';
4
4
  import { TransactionGroupBase } from './transactionGroup.js';
5
5
  import { CompositeKey, FieldValueCollection } from './compositeKey.js';
6
+ import { RelatedRecordCollection, RelatedRecordCollectionOptions } from './relatedRecordCollection.js';
7
+ import { EntityCompanion, EntityCompanionDeserializeMode, EntityCompanionPayload } from './entityCompanion.js';
8
+ import { EntitySavePlan } from './entitySavePlan.js';
6
9
  import { Subscription } from 'rxjs';
7
10
  import { z } from 'zod';
8
11
  /**
@@ -325,8 +328,15 @@ export declare class BaseEntityEvent {
325
328
  * - `new_record`: Raised when NewRecord() is called
326
329
  * - `transaction_ready`: Used to indicate that a transaction is ready to be submitted for execution. The TransactionGroup class uses this to know that all async preprocessing is done and it can now submit the transaction.
327
330
  * - `remote-invalidate`: Raised when a remote server (via Redis pub/sub → GraphQL subscription) notifies this client that cached data for an entity has changed. Used to trigger BaseEngine re-fetch from server.
331
+ * - `graph_save_started`, `graph_save`: Raised on the ROOT entity of a multi-record composite
332
+ * save (a parent plus the children contributed by its companions) when the unit of work begins
333
+ * and when it settles. These are *in addition to* the per-record `save_started` / `save`
334
+ * events, which still fire for every node in the graph — the graph events let a caller observe
335
+ * the unit of work as a whole, e.g. to refresh a form once rather than once per line.
336
+ * Payload: `{ Success, NodeCount, Error? }` on `graph_save`; `{ NodeCount }` on
337
+ * `graph_save_started`.
328
338
  */
329
- type: 'new_record' | 'save' | 'delete' | 'load_complete' | 'transaction_ready' | 'save_started' | 'delete_started' | 'load_started' | 'remote-invalidate' | 'other';
339
+ type: 'new_record' | 'save' | 'delete' | 'load_complete' | 'transaction_ready' | 'save_started' | 'delete_started' | 'load_started' | 'remote-invalidate' | 'graph_save_started' | 'graph_save' | 'other';
330
340
  /**
331
341
  * If type === 'save' this property can either be 'create' or 'update' to indicate the type of save operation that was performed.
332
342
  */
@@ -567,21 +577,21 @@ export declare abstract class BaseEntity<T = unknown> {
567
577
  */
568
578
  private _childEntities;
569
579
  /**
570
- * Opaque provider-level transaction handle. Used by IS-A save/delete orchestration
571
- * to share a single SQL transaction across the parent chain.
572
- * On client (GraphQLDataProvider), this remains null.
573
- * On server (SQLServerDataProvider), this holds a sql.Transaction.
574
- */
575
- private _providerTransaction;
576
- /**
577
- * Gets the provider transaction handle for IS-A chain orchestration.
580
+ * The active transaction scope owned by this entity, when it is the participant that opened (or
581
+ * joined) one for a multi-record unit of work an IS-A parent chain or a composite save graph.
582
+ *
583
+ * Only the *initiator* holds a scope; other participants in the same unit of work simply write
584
+ * into the provider's ambient transaction without knowing it exists. That is the whole point of
585
+ * routing through the provider: participants stay ignorant of one another.
578
586
  */
579
- get ProviderTransaction(): unknown;
587
+ private _entityTransactionScope;
580
588
  /**
581
- * Sets the provider transaction handle. Used during IS-A save/delete to share
582
- * a single database transaction across the entire parent chain.
589
+ * Companions registered on this entity, keyed by {@link EntityCompanion.Name}.
590
+ *
591
+ * Lazily created so that the overwhelming majority of entities — which declare no companions —
592
+ * pay nothing for the feature, not even an empty Map per instance.
583
593
  */
584
- set ProviderTransaction(value: unknown);
594
+ private _companions;
585
595
  /**
586
596
  * Returns the parent entity in the IS-A composition chain, or null if this
587
597
  * entity is not an IS-A child type.
@@ -711,10 +721,273 @@ export declare abstract class BaseEntity<T = unknown> {
711
721
  */
712
722
  Hydrate(data: Record<string, unknown>): void;
713
723
  /**
714
- * Propagates the ProviderTransaction handle down the IS-A parent chain so all
715
- * entities in the chain execute on the same database transaction.
724
+ * The companions registered on this entity, in declaration order.
725
+ *
726
+ * Empty for the vast majority of entities. Nothing in the save, load or validation paths does
727
+ * any companion work when this is empty, so the feature costs nothing where it is unused.
728
+ */
729
+ get Companions(): readonly EntityCompanion[];
730
+ /**
731
+ * Whether this entity has any registered companions.
732
+ *
733
+ * Used as the fast guard on the hot paths — a single boolean check keeps single-record saves on
734
+ * exactly the code path they took before companions existed.
735
+ */
736
+ get HasCompanions(): boolean;
737
+ /**
738
+ * Registers a companion on this entity. Called from a subclass constructor or field
739
+ * initialiser, normally via {@link DeclareRelatedRecords}.
740
+ *
741
+ * @typeParam TCompanion - The companion type.
742
+ * @param companion - The companion to register.
743
+ * @returns The same companion, so it can be assigned to a readonly field in one expression.
744
+ * @throws When a companion with the same name is already registered — a duplicate name would
745
+ * make the wire payload ambiguous and silently drop one of the two.
746
+ */
747
+ protected RegisterCompanion<TCompanion extends EntityCompanion>(companion: TCompanion): TCompanion;
748
+ /**
749
+ * Looks up a registered companion by name.
750
+ *
751
+ * @typeParam TCompanion - The expected companion type.
752
+ * @param name - The companion's {@link EntityCompanion.Name}.
753
+ * @returns The companion, or `undefined` when none is registered under that name.
754
+ */
755
+ GetCompanion<TCompanion extends EntityCompanion = EntityCompanion>(name: string): TCompanion | undefined;
756
+ /**
757
+ * Declares a typed child collection on this entity and registers it as a companion.
758
+ *
759
+ * This is the entry point for composite entities. Call it from a field initialiser on a
760
+ * **shared** (client + server) subclass so both tiers see the collection — a declaration that
761
+ * exists only in a server-side class makes the collection invisible to the browser, which is
762
+ * exactly the limitation this feature removes.
763
+ *
764
+ * @typeParam TChild - The child entity type.
765
+ * @param options - The collection declaration.
766
+ * @returns The registered collection.
767
+ *
768
+ * @example
769
+ * ```typescript
770
+ * public readonly Lines = this.DeclareRelatedRecords<OrderLineEntity>({
771
+ * Name: 'Lines',
772
+ * ChildEntity: 'MJ_BizApps_Orders: Order Lines',
773
+ * ForeignKey: 'OrderHeaderID',
774
+ * OrderBy: 'LineNumber ASC',
775
+ * Sequence: { Field: 'LineNumber', From: 1 },
776
+ * });
777
+ * ```
778
+ */
779
+ protected DeclareRelatedRecords<TChild extends BaseEntity = BaseEntity>(options: RelatedRecordCollectionOptions): RelatedRecordCollection<TChild>;
780
+ /**
781
+ * Serializes every registered companion that has something to send.
782
+ *
783
+ * Companions returning `null` are omitted entirely, so a header-only save on a composite entity
784
+ * ships no companion payload at all and costs nothing extra on the wire.
785
+ *
786
+ * @returns The companion payloads, in declaration order.
787
+ */
788
+ SerializeCompanions(): Promise<EntityCompanionPayload[]>;
789
+ /**
790
+ * Restores companion state from payloads produced by {@link SerializeCompanions} on the other
791
+ * tier.
792
+ *
793
+ * Payloads naming a companion this entity does not declare are **ignored rather than rejected**.
794
+ * That is deliberate: during a rolling deploy the two tiers can disagree about which companions
795
+ * exist, and a hard failure would turn a harmless version skew into an outage. The mismatch is
796
+ * logged so it is still visible.
797
+ *
798
+ * @param payloads - Companion payloads received from the other tier.
799
+ * @param mode - Whether these payloads are an inbound request (the default) or authoritative
800
+ * post-save results. See {@link EntityCompanionDeserializeMode}.
801
+ */
802
+ DeserializeCompanions(payloads: EntityCompanionPayload[], mode?: EntityCompanionDeserializeMode): Promise<void>;
803
+ /**
804
+ * Executes a multi-node plan by handing the entire unit of work to the server.
805
+ *
806
+ * Used when the provider cannot open a local transaction — i.e. from the browser. The client
807
+ * does not orchestrate the cascade; it ships intent, and the server runs the *same*
808
+ * `executeGraphLocal` path inside a real transaction. One cascade implementation, two possible
809
+ * locations.
810
+ *
811
+ * @param plan - The planned unit of work. Used for its node count in events and diagnostics;
812
+ * the server rebuilds its own plan from the payload.
813
+ * @param _options - Save options. Not forwarded over the wire: they describe local execution
814
+ * preferences, and the server applies its own.
815
+ * @returns True when the server reports the graph committed.
716
816
  */
717
- protected PropagateTransactionToParents(): void;
817
+ private executeGraphRemote;
818
+ /**
819
+ * Adopts the post-save state the server returned for the whole graph.
820
+ *
821
+ * Both halves matter. Refreshing only the header would leave the client holding children that
822
+ * still look unsaved — they would be re-inserted on the next save, silently duplicating rows.
823
+ *
824
+ * @param output - The server's result graph.
825
+ */
826
+ private applyGraphResult;
827
+ /**
828
+ * Gives every eager companion a chance to populate itself.
829
+ *
830
+ * Called from {@link InnerLoad} only — deliberately **not** from {@link LoadFromData}. See
831
+ * {@link RelatedRecordLoadMode} for why that distinction is load-bearing.
832
+ */
833
+ /**
834
+ * Populates this record's declared related-record collections and resolves once they are all
835
+ * ready — the one call to `await` when you want a fully-hydrated record.
836
+ *
837
+ * The point is batching. Cache-sourced collections resolve synchronously against
838
+ * `BaseEngineRegistry` and cost nothing; every database-sourced collection is gathered into a
839
+ * **single `RunViews` call** rather than one `RunView` each. So a record with four declared
840
+ * collections costs one round trip, or zero when they all read from engine caches — instead of
841
+ * the four sequential queries a naive `for (…) await c.Load()` would issue.
842
+ *
843
+ * Collections declared `'never'` are skipped: that mode means write-only staging buffer.
844
+ *
845
+ * @param names - Collection names to load. Omit to load every declared collection.
846
+ *
847
+ * @example
848
+ * ```typescript
849
+ * await action.LoadRelatedRecords(); // Params, ResultCodes and Libraries, one trip
850
+ * await agent.LoadRelatedRecords('Prompts'); // just the one
851
+ * ```
852
+ */
853
+ LoadRelatedRecords(...names: string[]): Promise<void>;
854
+ private loadEagerCompanions;
855
+ /**
856
+ * Tells every companion that the unit of work committed, so they can clear pending removals and
857
+ * rebase their dirty state.
858
+ */
859
+ private acceptCompanionChanges;
860
+ /**
861
+ * Opens a transaction scope for a multi-record unit of work rooted at this entity, when this
862
+ * entity is the initiator and is not already inside a `TransactionGroup`.
863
+ *
864
+ * Participants never ask whether a transaction is already open — the provider arbitrates and
865
+ * either starts one or joins the one in flight. See {@link EntityTransactionScope}.
866
+ *
867
+ * @param isInitiator - Whether this entity is the one orchestrating the unit of work. Non-
868
+ * initiators never open a scope; they write into the ambient transaction.
869
+ * @returns True if a scope was opened (or joined) and is now held by this entity.
870
+ */
871
+ private beginEntityTransactionScope;
872
+ /**
873
+ * Builds the ordered unit of work for saving this record and everything its companions
874
+ * contribute.
875
+ *
876
+ * The root node comes first — children need the parent's primary key, and on a create it does
877
+ * not exist until the parent row is inserted.
878
+ *
879
+ * @param includeRoot - Whether to include this record's own save. False when the caller has
880
+ * already persisted the root by other means.
881
+ * @param saveOptions - The caller's save options, forwarded to each companion so it can honor
882
+ * flags that change what counts as work (`IgnoreDirtyState`, most
883
+ * importantly — a companion that skips clean children must not skip them
884
+ * when the caller demanded a full write-out).
885
+ * @returns The plan. A `NodeCount` of 1 means there is no graph and the caller should take the
886
+ * ordinary single-record path.
887
+ */
888
+ protected BuildSavePlan(includeRoot?: boolean, saveOptions?: EntitySaveOptions): EntitySavePlan;
889
+ /**
890
+ * Builds the ordered unit of work for deleting this record and everything its companions
891
+ * contribute.
892
+ *
893
+ * Companions contribute **first**: children hold foreign keys pointing at the row that is about
894
+ * to disappear, so they must be removed before it.
895
+ *
896
+ * @returns The plan.
897
+ */
898
+ protected BuildDeletePlan(): EntitySavePlan;
899
+ /**
900
+ * Runs a multi-record save as one unit of work, choosing where it executes based on what the
901
+ * provider can do.
902
+ *
903
+ * This is the single decision point for the whole feature:
904
+ *
905
+ * - **Provider supports entity transactions** (server): execute locally inside one transaction.
906
+ * - **It does not** (client): serialize the graph and hand the entire unit of work to the
907
+ * server via the `MJ.SaveEntityGraph` remote operation, which rebuilds the records — as their
908
+ * *server-side* registered subclasses — and runs this very same local executor there.
909
+ *
910
+ * There is exactly one cascade implementation. The remote path relocates it; it never
911
+ * reimplements it. That is what keeps client and server behavior from drifting.
912
+ *
913
+ * Validation is not performed here: the root node's own `_InnerSave` runs `Validate()` (which
914
+ * fans out to every companion, over the complete child set including pending removals) before
915
+ * it writes anything, and the root node executes first. So the whole graph is validated before
916
+ * the first row lands, which is the guarantee cross-child invariants need.
917
+ *
918
+ * @param plan - The planned unit of work.
919
+ * @param options - Save options forwarded to every node.
920
+ * @returns True when the whole graph committed.
921
+ */
922
+ private saveGraph;
923
+ /**
924
+ * Runs a multi-record delete as one unit of work.
925
+ *
926
+ * Unlike the save path there is no remote counterpart: a delete graph carries no state that
927
+ * needs rebuilding server-side, so on a client provider the nodes execute in order over
928
+ * ordinary mutations. That is **not atomic** — a failure partway leaves earlier deletions
929
+ * committed. Callers needing an atomic multi-record delete from the browser should expose a
930
+ * dedicated remote operation, which is also what MJ's own cascade-delete tooling does.
931
+ *
932
+ * @param plan - The planned unit of work, children first.
933
+ * @param options - Delete options forwarded to every node.
934
+ * @returns True when the whole graph completed.
935
+ */
936
+ private deleteGraph;
937
+ /**
938
+ * Executes a multi-node plan locally, inside a single provider transaction.
939
+ *
940
+ * Used when the provider reports {@link IMetadataProvider.SupportsEntityTransactions} — i.e.
941
+ * server-side. The transaction is provider-arbitrated, so this composes correctly whether it is
942
+ * the outermost unit of work or nested inside an application cascade that already opened one.
943
+ *
944
+ * @param plan - The plan to run.
945
+ * @param saveOptions - Options forwarded to save nodes.
946
+ * @param deleteOptions - Options forwarded to delete nodes.
947
+ * @returns True when every node succeeded and the transaction committed.
948
+ */
949
+ private executeGraphLocal;
950
+ /**
951
+ * Builds the save options for the graph's **root** node.
952
+ *
953
+ * Copies the caller's options onto a real `EntitySaveOptions` instance and stamps
954
+ * `IsGraphNodeSave`, which is what stops the root re-entering graph planning and lets it bypass
955
+ * its own in-flight save debounce.
956
+ *
957
+ * @param source - The caller's options, if any.
958
+ * @returns Options for the root node.
959
+ */
960
+ private buildRootSaveOptions;
961
+ /**
962
+ * Builds the delete options for the graph's **root** node. Delete-path counterpart of
963
+ * {@link buildRootSaveOptions}.
964
+ *
965
+ * @param source - The caller's options, if any.
966
+ * @returns Options for the root node.
967
+ */
968
+ private buildRootDeleteOptions;
969
+ /**
970
+ * Records a graph-level failure on this entity's result history.
971
+ *
972
+ * Without this the caller gets a bare `false` while `LatestResult` still holds the *root's*
973
+ * successful save — so a child failure reads as "it just didn't work". Mirrors the parent-chain
974
+ * failure handling in `_InnerSave`.
975
+ *
976
+ * @param message - The failure detail.
977
+ */
978
+ private registerGraphFailure;
979
+ /**
980
+ * Commits the transaction scope held by this entity, if any. Safe to call unconditionally — a
981
+ * no-op when this entity holds no scope.
982
+ */
983
+ private commitEntityTransactionScope;
984
+ /**
985
+ * Rolls back the transaction scope held by this entity, if any. Safe to call unconditionally.
986
+ *
987
+ * Rollback failures are logged and swallowed: this runs on the failure path, and throwing here
988
+ * would replace the caller's real error with a secondary one that explains less.
989
+ */
990
+ private rollbackEntityTransactionScope;
718
991
  /**
719
992
  * Returns this provider to be used for a given instance of a BaseEntity derived subclass. If the provider is not set, the BaseEntity.Provider is returned.
720
993
  */
@@ -727,10 +1000,6 @@ export declare abstract class BaseEntity<T = unknown> {
727
1000
  * Returns the RunQueryProvider to be used for a given instance of a BaseEntity derived subclass.
728
1001
  */
729
1002
  get RunQueryProviderToUse(): IRunQueryProvider;
730
- /**
731
- * Returns the RunReportProvider to be used for a given instance of a BaseEntity derived subclass.
732
- */
733
- get RunReportProviderToUse(): IRunReportProvider;
734
1003
  /**
735
1004
  * This method can be used to register a callback for events that will be raised by the instance of the BaseEntity object. The callback will be called with a
736
1005
  * BaseEntityEvent object that contains the type of event and any payload that is associated with the event. Subclasses of the BaseEntity can define their
@@ -870,8 +1139,21 @@ export declare abstract class BaseEntity<T = unknown> {
870
1139
  GetFieldByCodeName(codeName: string): EntityField | null;
871
1140
  /**
872
1141
  * Returns true if the object is Dirty, meaning something has changed since it was last saved to the database, and false otherwise. For new records, this will always return true.
1142
+ *
1143
+ * @remarks
1144
+ * Dirtiness rolls up **companions** as well as fields. Without that rollup, a clean parent with
1145
+ * three brand-new children reports `Dirty === false`, `_InnerSave` takes its not-dirty early
1146
+ * return, and the children are silently never persisted — the save reports success and writes
1147
+ * nothing. See {@link EntityCompanion.Dirty}.
873
1148
  */
874
1149
  get Dirty(): boolean;
1150
+ /**
1151
+ * Whether any registered companion holds unsaved work.
1152
+ *
1153
+ * Guarded on {@link HasCompanions} so entities without companions — nearly all of them — do no
1154
+ * extra work on this hot path.
1155
+ */
1156
+ private get companionsDirty();
875
1157
  /**
876
1158
  * Returns an array of all primary key fields for the entity. If the entity has a composite primary key, this method will return an array of all primary key fields.
877
1159
  * If the entity has a single primary key, this method will return an array with a single field in it.
@@ -1126,11 +1408,6 @@ export declare abstract class BaseEntity<T = unknown> {
1126
1408
  * (default), always returns true to continue the cascade.
1127
1409
  */
1128
1410
  private shouldDeleteParentAfterChildDelete;
1129
- /**
1130
- * Helper to rollback an IS-A provider transaction if one is active.
1131
- * Only called by the IS-A initiator (the leaf entity that started the chain).
1132
- */
1133
- private RollbackISATransaction;
1134
1411
  private finalizeSave;
1135
1412
  /**
1136
1413
  * Internal helper method for the class and sub-classes - used to easily get the Active User which is either the ContextCurrentUser, if defined, or the Metadata.Provider.CurrentUser if not.
@@ -1234,6 +1511,12 @@ export declare abstract class BaseEntity<T = unknown> {
1234
1511
  * @returns Promise<boolean> - Returns true if the load was successful
1235
1512
  */
1236
1513
  LoadFromData(data: any, _replaceOldValues?: boolean): Promise<boolean>;
1514
+ /**
1515
+ * Extracts and applies a companion payload carried inside a plain data object, if present.
1516
+ *
1517
+ * @param data - The plain object passed to {@link LoadFromData}.
1518
+ */
1519
+ private deserializeCompanionsFromData;
1237
1520
  /**
1238
1521
  * This method is used automatically within Save() and is used to determine if the state of the object is valid relative to the validation rules that are defined in metadata. In addition, sub-classes can
1239
1522
  * override or wrap this base class method to add other logic for validation.
@@ -1241,6 +1524,26 @@ export declare abstract class BaseEntity<T = unknown> {
1241
1524
  * @returns ValidationResult The validation result
1242
1525
  */
1243
1526
  Validate(): ValidationResult;
1527
+ /**
1528
+ * Fans synchronous validation out to every registered companion.
1529
+ *
1530
+ * @param result - The accumulating result companions contribute to.
1531
+ */
1532
+ private validateCompanions;
1533
+ /**
1534
+ * Fans asynchronous validation out to every registered companion.
1535
+ *
1536
+ * @remarks
1537
+ * Called from `_InnerSave` **independently of `DefaultSkipAsyncValidation`**. That flag lets an
1538
+ * entity opt out of its *own* expensive async rules; extending it to companions silently
1539
+ * disabled cross-child invariants, which is precisely how `OrderEntityServer.ValidateAsync` —
1540
+ * containing both the "cannot confirm an order with no lines" guard and the entire per-line
1541
+ * validation loop — became dead code on every save in production. Companion async validation
1542
+ * runs whenever companions are present.
1543
+ *
1544
+ * @param result - The accumulating result companions contribute to.
1545
+ */
1546
+ private validateCompanionsAsync;
1244
1547
  /**
1245
1548
  * Default value for whether async validation should be skipped.
1246
1549
  * Subclasses can override this property to enable async validation by default.
@@ -1 +1 @@
1
- {"version":3,"file":"baseEntity.d.ts","sourceRoot":"","sources":["../../src/generic/baseEntity.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,YAAY,EAAuB,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACjL,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,gBAAgB,EAAgB,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAG5M,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAwE,YAAY,EAAa,MAAM,MAAM,CAAC;AACrH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,qBACa,WAAW;IACpB;;;OAGG;IACH,gBAAuB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUxC;IAED,OAAO,CAAC,gBAAgB,CAAkB;IAC1C,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,SAAS,CAAiB;IAElC,IAAI,IAAI,IAAI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