@memberjunction/core 6.1.0-edge.2 → 6.1.0-edge.3
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.
- package/LICENSE +180 -4
- package/dist/generic/JSONType-interfaces/IEntityConfiguration.d.ts +120 -0
- package/dist/generic/JSONType-interfaces/IEntityConfiguration.d.ts.map +1 -0
- package/dist/generic/JSONType-interfaces/IEntityConfiguration.js +6 -0
- package/dist/generic/JSONType-interfaces/IEntityConfiguration.js.map +1 -0
- package/dist/generic/JSONType-interfaces/IEntityFieldConfiguration.d.ts +31 -0
- package/dist/generic/JSONType-interfaces/IEntityFieldConfiguration.d.ts.map +1 -0
- package/dist/generic/JSONType-interfaces/IEntityFieldConfiguration.js +6 -0
- package/dist/generic/JSONType-interfaces/IEntityFieldConfiguration.js.map +1 -0
- package/dist/generic/JSONType-interfaces/IEntityRelationshipConfiguration.d.ts +75 -0
- package/dist/generic/JSONType-interfaces/IEntityRelationshipConfiguration.d.ts.map +1 -0
- package/dist/generic/JSONType-interfaces/IEntityRelationshipConfiguration.js +6 -0
- package/dist/generic/JSONType-interfaces/IEntityRelationshipConfiguration.js.map +1 -0
- package/dist/generic/JSONType-interfaces/IFileStorageProviderConfiguration.d.ts +19 -0
- package/dist/generic/JSONType-interfaces/IFileStorageProviderConfiguration.d.ts.map +1 -0
- package/dist/generic/JSONType-interfaces/IFileStorageProviderConfiguration.js +6 -0
- package/dist/generic/JSONType-interfaces/IFileStorageProviderConfiguration.js.map +1 -0
- package/dist/generic/authTypes.d.ts +69 -0
- package/dist/generic/authTypes.d.ts.map +1 -1
- package/dist/generic/baseEngine.d.ts +14 -0
- package/dist/generic/baseEngine.d.ts.map +1 -1
- package/dist/generic/baseEngine.js +53 -13
- package/dist/generic/baseEngine.js.map +1 -1
- package/dist/generic/baseEntity.d.ts +113 -20
- package/dist/generic/baseEntity.d.ts.map +1 -1
- package/dist/generic/baseEntity.js +351 -49
- package/dist/generic/baseEntity.js.map +1 -1
- package/dist/generic/baseInfo.d.ts.map +1 -1
- package/dist/generic/baseInfo.js +16 -4
- package/dist/generic/baseInfo.js.map +1 -1
- package/dist/generic/compositeKey.d.ts +30 -0
- package/dist/generic/compositeKey.d.ts.map +1 -1
- package/dist/generic/compositeKey.js +97 -0
- package/dist/generic/compositeKey.js.map +1 -1
- package/dist/generic/databaseProviderBase.d.ts.map +1 -1
- package/dist/generic/databaseProviderBase.js +9 -5
- package/dist/generic/databaseProviderBase.js.map +1 -1
- package/dist/generic/embeddedRecord.d.ts +123 -0
- package/dist/generic/embeddedRecord.d.ts.map +1 -0
- package/dist/generic/embeddedRecord.js +356 -0
- package/dist/generic/embeddedRecord.js.map +1 -0
- package/dist/generic/entityCompanion.d.ts +20 -2
- package/dist/generic/entityCompanion.d.ts.map +1 -1
- package/dist/generic/entityCompanion.js +17 -1
- package/dist/generic/entityCompanion.js.map +1 -1
- package/dist/generic/entityConfiguration.d.ts +131 -0
- package/dist/generic/entityConfiguration.d.ts.map +1 -0
- package/dist/generic/entityConfiguration.js +346 -0
- package/dist/generic/entityConfiguration.js.map +1 -0
- package/dist/generic/entityInfo.d.ts +274 -4
- package/dist/generic/entityInfo.d.ts.map +1 -1
- package/dist/generic/entityInfo.js +502 -14
- package/dist/generic/entityInfo.js.map +1 -1
- package/dist/generic/entitySavePlan.d.ts +40 -11
- package/dist/generic/entitySavePlan.d.ts.map +1 -1
- package/dist/generic/entitySavePlan.js +70 -2
- package/dist/generic/entitySavePlan.js.map +1 -1
- package/dist/generic/interfaces.d.ts +6 -24
- package/dist/generic/interfaces.d.ts.map +1 -1
- package/dist/generic/interfaces.js +6 -24
- package/dist/generic/interfaces.js.map +1 -1
- package/dist/generic/localCacheManager.d.ts.map +1 -1
- package/dist/generic/localCacheManager.js +10 -0
- package/dist/generic/localCacheManager.js.map +1 -1
- package/dist/generic/providerBase.d.ts +19 -0
- package/dist/generic/providerBase.d.ts.map +1 -1
- package/dist/generic/providerBase.js +71 -6
- package/dist/generic/providerBase.js.map +1 -1
- package/dist/generic/relatedRecordCollection.d.ts +25 -3
- package/dist/generic/relatedRecordCollection.d.ts.map +1 -1
- package/dist/generic/relatedRecordCollection.js +53 -7
- package/dist/generic/relatedRecordCollection.js.map +1 -1
- package/dist/generic/runQuery.d.ts +14 -0
- package/dist/generic/runQuery.d.ts.map +1 -1
- package/dist/generic/runQuery.js.map +1 -1
- package/dist/generic/saveEntityGraphOperation.js +1 -1
- package/dist/generic/saveEntityGraphOperation.js.map +1 -1
- package/dist/generic/securityInfo.d.ts.map +1 -1
- package/dist/generic/securityInfo.js +15 -5
- package/dist/generic/securityInfo.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/views/runView.d.ts +23 -0
- package/dist/views/runView.d.ts.map +1 -1
- package/dist/views/runView.js +20 -0
- package/dist/views/runView.js.map +1 -1
- package/package.json +5 -4
- package/readme.md +20 -1
|
@@ -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,gBAAgB,EAAgB,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAGxL,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,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;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IACI,YAAY,IAAI,IAAI;IAI3B;;;;OAIG;IACH,SAAS,CAAC,2BAA2B,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI;IAuBvF;;;;OAIG;IACU,cAAc,CAAC,CAAC,SAAS,UAAU,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IA4B1I;;;;OAIG;IACU,YAAY,CAAC,CAAC,SAAS,UAAU,GAAG,IAAI,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IA2B9F;;;;OAIG;IACU,WAAW,CAAC,CAAC,SAAS,UAAU,GAAG,IAAI,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;CAkBhG"}
|
|
@@ -18,6 +18,7 @@ import { LogDebug, LogError } from './logging.js';
|
|
|
18
18
|
import { CompositeKey } from './compositeKey.js';
|
|
19
19
|
import { RelatedRecordCollection } from './relatedRecordCollection.js';
|
|
20
20
|
import { COMPANION_PAYLOAD_KEY } from './entityCompanion.js';
|
|
21
|
+
import { EmbeddedRecord } from './embeddedRecord.js';
|
|
21
22
|
import { EntitySavePlan, ExecuteEntitySavePlan } from './entitySavePlan.js';
|
|
22
23
|
import { BaseRemotableOperation } from './baseRemotableOperation.js';
|
|
23
24
|
import { SAVE_ENTITY_GRAPH_OPERATION_KEY, } from './saveEntityGraphOperation.js';
|
|
@@ -312,6 +313,20 @@ let EntityField = class EntityField {
|
|
|
312
313
|
}
|
|
313
314
|
}
|
|
314
315
|
}
|
|
316
|
+
// Value-list validation (MJ issue #3969): a field whose ValueListType is `List` carries an
|
|
317
|
+
// EXHAUSTIVE set of legal values in metadata, and for an `IN (...)` CHECK constraint that
|
|
318
|
+
// list is the only runtime representation CodeGen produces — so without this rung an
|
|
319
|
+
// out-of-list value reached the database as a raw constraint violation attributed to no
|
|
320
|
+
// field, on every path that is not a form. Which modes and value types the rule applies
|
|
321
|
+
// to, how values are compared, and why, all live in
|
|
322
|
+
// EntityFieldInfo.ValueIsPermittedByValueList: the normalized set of legal values is
|
|
323
|
+
// derived from immutable metadata SHARED by every EntityField instance of this field, so
|
|
324
|
+
// it is built once per field rather than rebuilt on every record's validation.
|
|
325
|
+
if (!ef.ValueIsPermittedByValueList(this.Value)) {
|
|
326
|
+
result.Success = false;
|
|
327
|
+
const nullNote = ef.AllowsNull ? ' (or null)' : '';
|
|
328
|
+
result.Errors.push(new ValidationErrorInfo(ef.Name, `${ef.DisplayNameOrName} must be one of: ${ef.ValueListValuesForDisplay}${nullNote}. Current value is '${this.Value}'`, this.Value));
|
|
329
|
+
}
|
|
315
330
|
}
|
|
316
331
|
return result;
|
|
317
332
|
}
|
|
@@ -422,6 +437,13 @@ let EntityField = class EntityField {
|
|
|
422
437
|
ResetOldValue() {
|
|
423
438
|
this._OldValue = this.Value;
|
|
424
439
|
}
|
|
440
|
+
/**
|
|
441
|
+
* Restores the dirty-tracking baseline to a previously captured value.
|
|
442
|
+
* Used by graph rollback so a retried save still sees the pre-attempt dirty set.
|
|
443
|
+
*/
|
|
444
|
+
RestoreOldValue(value) {
|
|
445
|
+
this._OldValue = value;
|
|
446
|
+
}
|
|
425
447
|
/**
|
|
426
448
|
* @deprecated No-op as of the active-status relocation. Active-status (deprecated/disabled)
|
|
427
449
|
* assertions are now enforced at BaseEntity.Get/Set/SetMany — the entry points genuine code uses —
|
|
@@ -519,9 +541,6 @@ export class BaseEntityResult {
|
|
|
519
541
|
*/
|
|
520
542
|
export class BaseEntityEvent {
|
|
521
543
|
}
|
|
522
|
-
/**
|
|
523
|
-
* Base class used for all entity objects. This class is abstract and is sub-classes for each particular entity using the CodeGen tool. This class provides the basic functionality for loading, saving, and validating entity objects.
|
|
524
|
-
*/
|
|
525
544
|
export class BaseEntity {
|
|
526
545
|
/**
|
|
527
546
|
* Maximum number of `BaseEntityResult` entries retained in `_resultHistory` per entity
|
|
@@ -928,6 +947,8 @@ export class BaseEntity {
|
|
|
928
947
|
// We need to replace the child's auto-initialized parent with our existing instance
|
|
929
948
|
this.replaceChildParentChain(childEntity);
|
|
930
949
|
this._childEntity = childEntity;
|
|
950
|
+
// Capture any pending modifications on this entity or its ancestors before child InnerLoad
|
|
951
|
+
const dirtySnapshots = this.captureChainDirtyState();
|
|
931
952
|
// Load the child's record using our shared PK
|
|
932
953
|
const loaded = await childEntity.InnerLoad(this.PrimaryKey);
|
|
933
954
|
if (!loaded) {
|
|
@@ -935,10 +956,34 @@ export class BaseEntity {
|
|
|
935
956
|
this._childEntity = null;
|
|
936
957
|
return;
|
|
937
958
|
}
|
|
959
|
+
// Re-apply any pending modifications so child hydration does not overwrite unsaved in-memory edits
|
|
960
|
+
this.restoreChainDirtyState(dirtySnapshots);
|
|
938
961
|
// Recursively discover grandchildren (child may also be a parent type)
|
|
939
962
|
// InitializeChildEntity is idempotent via _childEntityDiscoveryDone flag
|
|
940
963
|
await childEntity.InitializeChildEntity();
|
|
941
964
|
}
|
|
965
|
+
captureChainDirtyState() {
|
|
966
|
+
const snapshots = [];
|
|
967
|
+
let curr = this;
|
|
968
|
+
while (curr) {
|
|
969
|
+
const dirtyFields = curr.Fields.filter(f => f.Dirty).map(f => ({
|
|
970
|
+
name: f.Name,
|
|
971
|
+
value: f.Value,
|
|
972
|
+
}));
|
|
973
|
+
if (dirtyFields.length > 0) {
|
|
974
|
+
snapshots.push({ entity: curr, dirtyFields });
|
|
975
|
+
}
|
|
976
|
+
curr = curr._parentEntity;
|
|
977
|
+
}
|
|
978
|
+
return snapshots;
|
|
979
|
+
}
|
|
980
|
+
restoreChainDirtyState(snapshots) {
|
|
981
|
+
for (const snap of snapshots) {
|
|
982
|
+
for (const df of snap.dirtyFields) {
|
|
983
|
+
snap.entity.Set(df.name, df.value);
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
}
|
|
942
987
|
/**
|
|
943
988
|
* Replaces the child entity's auto-initialized parent chain with references
|
|
944
989
|
* to our existing chain. This ensures all entities in the IS-A hierarchy
|
|
@@ -1023,7 +1068,12 @@ export class BaseEntity {
|
|
|
1023
1068
|
* values are present (via {@link UpdateSavedStateFromPrimaryKeys}).
|
|
1024
1069
|
*
|
|
1025
1070
|
* The parent chain is handled recursively: if this entity has an IS-A parent, the
|
|
1026
|
-
* parent is hydrated first (deepest ancestor first)
|
|
1071
|
+
* parent is hydrated first (deepest ancestor first). Each level only receives the
|
|
1072
|
+
* fields it owns — a child's view row is the union of every ancestor plus its own
|
|
1073
|
+
* columns, and passing that whole row to the parent used to trip
|
|
1074
|
+
* `WarningManager` ("fields were not found in entity definitions") for every
|
|
1075
|
+
* child-only column. That is how loading `Accounting Company Profiles` as
|
|
1076
|
+
* entity objects produced a `MJ: Companies` missing-field dump at MJAPI boot.
|
|
1027
1077
|
*
|
|
1028
1078
|
* @param data - A plain object whose properties map to field names on this entity
|
|
1029
1079
|
* (and potentially parent entities in the IS-A chain).
|
|
@@ -1040,9 +1090,23 @@ export class BaseEntity {
|
|
|
1040
1090
|
// Populate this entity's fields. SetMany also routes parent field values to
|
|
1041
1091
|
// _parentEntity via the IS-A routing block (which now includes PK fields).
|
|
1042
1092
|
// replaceOldValues=true ensures OldValue matches Value (no false dirty flags).
|
|
1043
|
-
// ignoreNonExistentFields=true
|
|
1044
|
-
//
|
|
1045
|
-
this.SetMany(data, true, true, true);
|
|
1093
|
+
// ignoreNonExistentFields=true remains as a safety net; ownedFieldsFrom already
|
|
1094
|
+
// dropped columns that belong to another level of the IS-A chain.
|
|
1095
|
+
this.SetMany(this.ownedFieldsFrom(data), true, true, true);
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Columns on `data` that this entity actually defines (by field name or CodeName).
|
|
1099
|
+
* Used by {@link Hydrate} so an IS-A ancestor is not asked to SetMany its child's
|
|
1100
|
+
* extra view columns.
|
|
1101
|
+
*/
|
|
1102
|
+
ownedFieldsFrom(data) {
|
|
1103
|
+
const owned = {};
|
|
1104
|
+
for (const key of Object.keys(data)) {
|
|
1105
|
+
if (this.GetFieldByName(key) || this.GetFieldByCodeName(key)) {
|
|
1106
|
+
owned[key] = data[key];
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
return owned;
|
|
1046
1110
|
}
|
|
1047
1111
|
// ─── Entity Companions ──────────────────────────────────────────────────────
|
|
1048
1112
|
//
|
|
@@ -1123,21 +1187,91 @@ export class BaseEntity {
|
|
|
1123
1187
|
DeclareRelatedRecords(options) {
|
|
1124
1188
|
return this.RegisterCompanion(new RelatedRecordCollection(this, options));
|
|
1125
1189
|
}
|
|
1190
|
+
/**
|
|
1191
|
+
* Declares a 1:1 embedded peer on this entity, joined by an owner-held foreign key,
|
|
1192
|
+
* and registers it as a companion.
|
|
1193
|
+
*
|
|
1194
|
+
* Call from a field initialiser on a **shared** (client + server) subclass — or let
|
|
1195
|
+
* CodeGen emit it from `EntityField.EmbeddedRecord`. The public surface is the
|
|
1196
|
+
* generated `{Field}_Object` getter, not this companion.
|
|
1197
|
+
*
|
|
1198
|
+
* @typeParam TEmbedded - The peer entity type.
|
|
1199
|
+
* @param options - The declaration.
|
|
1200
|
+
* @returns The registered companion.
|
|
1201
|
+
*/
|
|
1202
|
+
DeclareEmbeddedRecord(options) {
|
|
1203
|
+
return this.RegisterCompanion(new EmbeddedRecord(this, options));
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* Constructs every declared embedded peer without `NewRecord` or `Load`.
|
|
1207
|
+
* Called from `GetEntityObject` after {@link InitializeParentEntity}.
|
|
1208
|
+
*
|
|
1209
|
+
* @param visited - Entity names already being constructed (cycle guard).
|
|
1210
|
+
*/
|
|
1211
|
+
async InitializeEmbeddedRecords(visited = new Set()) {
|
|
1212
|
+
if (!this.HasCompanions) {
|
|
1213
|
+
return;
|
|
1214
|
+
}
|
|
1215
|
+
const embeddeds = this.Companions.filter((c) => c instanceof EmbeddedRecord);
|
|
1216
|
+
if (embeddeds.length === 0) {
|
|
1217
|
+
return;
|
|
1218
|
+
}
|
|
1219
|
+
// Copy the visited set per sibling. Sharing one mutable set made two
|
|
1220
|
+
// embeds targeting the same entity (BillTo + ShipTo Address) throw a
|
|
1221
|
+
// false "cycle detected" while the first companion was still in flight.
|
|
1222
|
+
await Promise.all(embeddeds.map(e => e.InitializeInstance(new Set(visited))));
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
* Builds a related entity the way `GetEntityObject` does, minus `NewRecord` / `Load`.
|
|
1226
|
+
* Used by {@link EmbeddedRecord} so construction can thread a cycle-detection set.
|
|
1227
|
+
*
|
|
1228
|
+
* @typeParam T - The entity type to construct.
|
|
1229
|
+
* @param entityName - Metadata entity name.
|
|
1230
|
+
* @param visited - Cycle guard, forwarded into the new instance's own embeddeds.
|
|
1231
|
+
*/
|
|
1232
|
+
async ConstructUninitializedEntity(entityName, visited) {
|
|
1233
|
+
const provider = this.ProviderToUse;
|
|
1234
|
+
if (!provider) {
|
|
1235
|
+
throw new Error(`BaseEntity.ConstructUninitializedEntity: no provider; cannot construct '${entityName}'.`);
|
|
1236
|
+
}
|
|
1237
|
+
const entityInfo = provider.EntityByName(entityName);
|
|
1238
|
+
if (!entityInfo) {
|
|
1239
|
+
throw new Error(`BaseEntity.ConstructUninitializedEntity: entity '${entityName}' not found in metadata.`);
|
|
1240
|
+
}
|
|
1241
|
+
let instance = MJGlobal.Instance.ClassFactory.CreateInstance(BaseEntity, entityName, entityInfo, provider);
|
|
1242
|
+
if (!instance) {
|
|
1243
|
+
instance = MJGlobal.Instance.ClassFactory.CreateInstance(BaseEntity, null, entityInfo, provider);
|
|
1244
|
+
}
|
|
1245
|
+
if (!instance) {
|
|
1246
|
+
throw new Error(`BaseEntity.ConstructUninitializedEntity: ClassFactory could not construct '${entityName}'. ` +
|
|
1247
|
+
`Ensure the entity class is registered.`);
|
|
1248
|
+
}
|
|
1249
|
+
await instance.Config(this.ContextCurrentUser);
|
|
1250
|
+
await instance.InitializeParentEntity();
|
|
1251
|
+
// Recurse so a *new* peer's own embeds are constructed (required nested
|
|
1252
|
+
// FKs provision on NewRecord; Ensure on the nested peer does not throw).
|
|
1253
|
+
// InitializeInstance skips when RelatedEntity is already on this path,
|
|
1254
|
+
// so a self-FK / A→B→A cycle still constructs only one extra level.
|
|
1255
|
+
await instance.InitializeEmbeddedRecords(visited);
|
|
1256
|
+
return instance;
|
|
1257
|
+
}
|
|
1126
1258
|
/**
|
|
1127
1259
|
* Serializes every registered companion that has something to send.
|
|
1128
1260
|
*
|
|
1129
1261
|
* Companions returning `null` are omitted entirely, so a header-only save on a composite entity
|
|
1130
1262
|
* ships no companion payload at all and costs nothing extra on the wire.
|
|
1131
1263
|
*
|
|
1264
|
+
* @param mode - `'request'` omits clean saved companions. `'result'` ships
|
|
1265
|
+
* authoritative post-save state so the other tier can mark peers saved.
|
|
1132
1266
|
* @returns The companion payloads, in declaration order.
|
|
1133
1267
|
*/
|
|
1134
|
-
async SerializeCompanions() {
|
|
1268
|
+
async SerializeCompanions(mode = 'request') {
|
|
1135
1269
|
if (!this.HasCompanions) {
|
|
1136
1270
|
return [];
|
|
1137
1271
|
}
|
|
1138
1272
|
const payloads = [];
|
|
1139
1273
|
for (const companion of this.Companions) {
|
|
1140
|
-
const data = await companion.Serialize();
|
|
1274
|
+
const data = await companion.Serialize(mode);
|
|
1141
1275
|
if (data !== null && data !== undefined) {
|
|
1142
1276
|
payloads.push({ Name: companion.Name, Data: data });
|
|
1143
1277
|
}
|
|
@@ -1325,13 +1459,29 @@ export class BaseEntity {
|
|
|
1325
1459
|
}
|
|
1326
1460
|
});
|
|
1327
1461
|
}
|
|
1462
|
+
/**
|
|
1463
|
+
* Seeds the embed-load cycle set for a nested `InnerLoad`. Called by
|
|
1464
|
+
* {@link EmbeddedRecord.LoadEager} so inherit walks share one `entityName:PK`
|
|
1465
|
+
* path and a self-parented row fails cleanly instead of recursing forever.
|
|
1466
|
+
*/
|
|
1467
|
+
SetEmbeddedLoadVisited(visited) {
|
|
1468
|
+
this._embedLoadVisited = visited;
|
|
1469
|
+
}
|
|
1470
|
+
seedEmbedLoadVisited() {
|
|
1471
|
+
const seeded = new Set();
|
|
1472
|
+
const name = this.EntityInfo?.Name;
|
|
1473
|
+
const pk = this.FirstPrimaryKey?.Value;
|
|
1474
|
+
if (name && pk !== null && pk !== undefined && pk !== '') {
|
|
1475
|
+
seeded.add(`${name}:${String(pk)}`);
|
|
1476
|
+
}
|
|
1477
|
+
return seeded;
|
|
1478
|
+
}
|
|
1328
1479
|
async loadEagerCompanions() {
|
|
1329
1480
|
if (!this.HasCompanions) {
|
|
1330
1481
|
return;
|
|
1331
1482
|
}
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
}
|
|
1483
|
+
const visited = this._embedLoadVisited ?? this.seedEmbedLoadVisited();
|
|
1484
|
+
await Promise.all(this.Companions.map(c => c.LoadEager(visited)));
|
|
1335
1485
|
}
|
|
1336
1486
|
/**
|
|
1337
1487
|
* Tells every companion that the unit of work committed, so they can clear pending removals and
|
|
@@ -1415,6 +1565,9 @@ export class BaseEntity {
|
|
|
1415
1565
|
Label: this.EntityInfo?.Name ?? 'root',
|
|
1416
1566
|
SelfOnly: true,
|
|
1417
1567
|
});
|
|
1568
|
+
for (const companion of this.Companions) {
|
|
1569
|
+
companion.ContributePostDeleteWork(plan);
|
|
1570
|
+
}
|
|
1418
1571
|
return plan;
|
|
1419
1572
|
}
|
|
1420
1573
|
/**
|
|
@@ -1490,6 +1643,10 @@ export class BaseEntity {
|
|
|
1490
1643
|
childSaveOptions.GraphVisited = visited;
|
|
1491
1644
|
const childDeleteOptions = Object.assign(new EntityDeleteOptions(), deleteOptions ?? {});
|
|
1492
1645
|
childDeleteOptions.GraphVisited = visited;
|
|
1646
|
+
// Snapshot dirty/saved bookkeeping so a rolled-back graph can be retried.
|
|
1647
|
+
// Node Save() finalizes each participant as saved+clean; DB rollback does
|
|
1648
|
+
// not undo that, and the next Save() would skip the peer and fail the FK.
|
|
1649
|
+
const participants = this.captureGraphParticipants(plan);
|
|
1493
1650
|
// Acquired INSIDE the try: a begin failure (pool exhausted, dead connection) is a failed
|
|
1494
1651
|
// save, and Save()/Delete() report failure by returning false — an escaping throw here
|
|
1495
1652
|
// would break that contract for exactly one path.
|
|
@@ -1501,13 +1658,14 @@ export class BaseEntity {
|
|
|
1501
1658
|
: null;
|
|
1502
1659
|
const result = await ExecuteEntitySavePlan(plan, {
|
|
1503
1660
|
SaveOptions: childSaveOptions,
|
|
1504
|
-
RootSaveOptions: this.buildRootSaveOptions(saveOptions),
|
|
1505
1661
|
DeleteOptions: childDeleteOptions,
|
|
1506
|
-
RootDeleteOptions: this.buildRootDeleteOptions(deleteOptions),
|
|
1507
1662
|
Visited: visited,
|
|
1663
|
+
SaveSelfOnly: (entity, opts) => entity.saveAsGraphNode(opts),
|
|
1664
|
+
DeleteSelfOnly: (entity, opts) => entity.deleteAsGraphNode(opts),
|
|
1508
1665
|
});
|
|
1509
1666
|
if (!result.Success) {
|
|
1510
1667
|
await scope?.Rollback();
|
|
1668
|
+
this.revertGraphParticipants(participants);
|
|
1511
1669
|
this.registerGraphFailure(result.ErrorMessage, operation);
|
|
1512
1670
|
this.RaiseEvent('graph_save', { Success: false, NodeCount: plan.NodeCount, Error: result.ErrorMessage });
|
|
1513
1671
|
return false;
|
|
@@ -1528,6 +1686,7 @@ export class BaseEntity {
|
|
|
1528
1686
|
LogError(`BaseEntity.executeGraphLocal: rollback failed after graph error for ` +
|
|
1529
1687
|
`${this.EntityInfo?.Name}: ${rollbackError instanceof Error ? rollbackError.message : String(rollbackError)}`);
|
|
1530
1688
|
}
|
|
1689
|
+
this.revertGraphParticipants(participants);
|
|
1531
1690
|
const detail = e instanceof Error ? e.message : String(e);
|
|
1532
1691
|
LogError(`BaseEntity.executeGraphLocal failed for ${this.EntityInfo?.Name}: ${detail}`);
|
|
1533
1692
|
this.registerGraphFailure(detail, operation);
|
|
@@ -1536,31 +1695,54 @@ export class BaseEntity {
|
|
|
1536
1695
|
}
|
|
1537
1696
|
}
|
|
1538
1697
|
/**
|
|
1539
|
-
*
|
|
1540
|
-
*
|
|
1541
|
-
*
|
|
1542
|
-
* `IsGraphNodeSave`, which is what stops the root re-entering graph planning and lets it bypass
|
|
1543
|
-
* its own in-flight save debounce.
|
|
1544
|
-
*
|
|
1545
|
-
* @param source - The caller's options, if any.
|
|
1546
|
-
* @returns Options for the root node.
|
|
1698
|
+
* Persist this record as one already-planned graph node. Private: the public
|
|
1699
|
+
* `Save()` contract must not expose a "skip companions" switch. The executor
|
|
1700
|
+
* binds this via {@link ExecuteEntitySavePlan}'s `SaveSelfOnly` callback.
|
|
1547
1701
|
*/
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
options.IsGraphNodeSave = true;
|
|
1551
|
-
return options;
|
|
1702
|
+
saveAsGraphNode(options) {
|
|
1703
|
+
return this._InnerSave(options);
|
|
1552
1704
|
}
|
|
1553
1705
|
/**
|
|
1554
|
-
*
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1706
|
+
* Delete-path counterpart of {@link saveAsGraphNode}.
|
|
1707
|
+
*/
|
|
1708
|
+
deleteAsGraphNode(options) {
|
|
1709
|
+
return this._InnerDelete(options);
|
|
1710
|
+
}
|
|
1711
|
+
/**
|
|
1712
|
+
* Captures saved/dirty baselines for every plan participant so a rolled-back
|
|
1713
|
+
* graph can be retried without re-INSERTing a "saved" peer or skipping it.
|
|
1714
|
+
*/
|
|
1715
|
+
captureGraphParticipants(plan) {
|
|
1716
|
+
return plan.Nodes.map(node => ({
|
|
1717
|
+
entity: node.Entity,
|
|
1718
|
+
wasSaved: node.Entity.IsSaved,
|
|
1719
|
+
oldValues: node.Entity.Fields.map(f => ({ name: f.Name, old: f.OldValue })),
|
|
1720
|
+
}));
|
|
1721
|
+
}
|
|
1722
|
+
/**
|
|
1723
|
+
* Restores in-memory saved/dirty state after the database rolled the graph back.
|
|
1724
|
+
*/
|
|
1725
|
+
revertGraphParticipants(snapshots) {
|
|
1726
|
+
for (const snap of snapshots) {
|
|
1727
|
+
snap.entity.revertUncommittedGraphSave(snap);
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* After a graph node Save() the fields look clean and `_everSaved` is true.
|
|
1732
|
+
* The DB rollback does not undo that. Restore the pre-attempt baseline so
|
|
1733
|
+
* a retry still writes the peer and the owner FK still matches.
|
|
1559
1734
|
*/
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1735
|
+
revertUncommittedGraphSave(snap) {
|
|
1736
|
+
if (!snap.wasSaved) {
|
|
1737
|
+
this._everSaved = false;
|
|
1738
|
+
this._recordLoaded = false;
|
|
1739
|
+
}
|
|
1740
|
+
for (const captured of snap.oldValues) {
|
|
1741
|
+
const field = this.GetFieldByName(captured.name);
|
|
1742
|
+
if (field) {
|
|
1743
|
+
field.RestoreOldValue(captured.old);
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1564
1746
|
}
|
|
1565
1747
|
/**
|
|
1566
1748
|
* Records a graph-level failure on this entity's result history.
|
|
@@ -2540,9 +2722,24 @@ export class BaseEntity {
|
|
|
2540
2722
|
this.Set(kv.FieldName, kv.Value);
|
|
2541
2723
|
});
|
|
2542
2724
|
}
|
|
2725
|
+
this.notifyEmbeddedNewRecord();
|
|
2543
2726
|
this.RaiseEvent('new_record', null);
|
|
2544
2727
|
return true;
|
|
2545
2728
|
}
|
|
2729
|
+
/**
|
|
2730
|
+
* Required embeddeds are provisioned here so `{Field}_Object` is usable immediately
|
|
2731
|
+
* after `GetEntityObject` / `NewRecord`. Nullable embeddeds stay unexposed.
|
|
2732
|
+
*/
|
|
2733
|
+
notifyEmbeddedNewRecord() {
|
|
2734
|
+
if (!this.HasCompanions) {
|
|
2735
|
+
return;
|
|
2736
|
+
}
|
|
2737
|
+
for (const companion of this.Companions) {
|
|
2738
|
+
if (companion instanceof EmbeddedRecord) {
|
|
2739
|
+
companion.OnOwnerNewRecord();
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2546
2743
|
/**
|
|
2547
2744
|
* Returns the active restore context for the next save, if any.
|
|
2548
2745
|
*
|
|
@@ -2641,11 +2838,6 @@ export class BaseEntity {
|
|
|
2641
2838
|
if (options?.IsParentEntitySave) {
|
|
2642
2839
|
return this._InnerSave(options);
|
|
2643
2840
|
}
|
|
2644
|
-
// Executing our own node inside a graph we already planned. Bypass both the debounce and
|
|
2645
|
-
// graph routing — see EntitySaveOptions.IsGraphNodeSave for why each matters.
|
|
2646
|
-
if (options?.IsGraphNodeSave) {
|
|
2647
|
-
return this._InnerSave(options);
|
|
2648
|
-
}
|
|
2649
2841
|
// If a save is already in progress, return its promise. This check MUST run before graph
|
|
2650
2842
|
// routing: a composite save is still a save, and two concurrent Save() calls on one record
|
|
2651
2843
|
// (double-click, autosave racing a manual save) must share the in-flight unit of work.
|
|
@@ -2677,8 +2869,7 @@ export class BaseEntity {
|
|
|
2677
2869
|
}
|
|
2678
2870
|
// Run the graph through the same pending-save pipeline as a single-row save, so
|
|
2679
2871
|
// concurrent callers share one execution and one result. The graph's own root node
|
|
2680
|
-
//
|
|
2681
|
-
// self-deadlock.
|
|
2872
|
+
// runs via the private saveAsGraphNode path — no re-entry into this pipeline.
|
|
2682
2873
|
this._pendingSave$ = of(options).pipe(switchMap(opts => from(this.saveGraph(plan, opts))), finalize(() => { this._pendingSave$ = null; }), shareReplay(1));
|
|
2683
2874
|
return firstValueFrom(this._pendingSave$);
|
|
2684
2875
|
}
|
|
@@ -2983,7 +3174,11 @@ export class BaseEntity {
|
|
|
2983
3174
|
finalizeSave(data, saveSubType) {
|
|
2984
3175
|
if (data) {
|
|
2985
3176
|
this.init(); // wipe out the current data to flush out the DIRTY flags, load the ID as part of this too
|
|
2986
|
-
|
|
3177
|
+
const fieldData = (data instanceof BaseEntity || (data && typeof data.GetAll === 'function')) ? data.GetAll() : data;
|
|
3178
|
+
// IS-A GetAll() merges the parent, including parent virtuals this entity
|
|
3179
|
+
// does not own (e.g. OrderHeader on Event Order Line). Keep only columns
|
|
3180
|
+
// this entity defines, and ignore anything leftover.
|
|
3181
|
+
this.SetMany(this.ownedFieldsFrom(fieldData), true, true, true);
|
|
2987
3182
|
this._everSaved = true; // Mark as saved after successful save
|
|
2988
3183
|
const result = this.LatestResult;
|
|
2989
3184
|
if (result)
|
|
@@ -3021,7 +3216,9 @@ export class BaseEntity {
|
|
|
3021
3216
|
}
|
|
3022
3217
|
// Cache it via this entity's provider so the cache lives on the right connection.
|
|
3023
3218
|
const md = this.ProviderToUse;
|
|
3024
|
-
md
|
|
3219
|
+
if (typeof md?.SetCachedRecordName === 'function') {
|
|
3220
|
+
md.SetCachedRecordName(this.EntityInfo.Name, this.PrimaryKey, recordName);
|
|
3221
|
+
}
|
|
3025
3222
|
}
|
|
3026
3223
|
/**
|
|
3027
3224
|
* Utility method that returns true if the given permission being checked is enabled for the current user, and false if not.
|
|
@@ -3503,11 +3700,6 @@ export class BaseEntity {
|
|
|
3503
3700
|
* @returns Promise<boolean>
|
|
3504
3701
|
*/
|
|
3505
3702
|
async Delete(options) {
|
|
3506
|
-
// Executing our own node inside a delete graph we already planned. Bypass both the debounce
|
|
3507
|
-
// and graph routing — see EntityDeleteOptions.IsGraphNodeDelete.
|
|
3508
|
-
if (options?.IsGraphNodeDelete) {
|
|
3509
|
-
return this._InnerDelete(options);
|
|
3510
|
-
}
|
|
3511
3703
|
// Composite routing: companions that own their children (OnRemove:'delete') contribute
|
|
3512
3704
|
// child deletions that must run before this row disappears. A single-node plan falls
|
|
3513
3705
|
// through to the ordinary path, so nothing changes for entities without companions.
|
|
@@ -4111,5 +4303,115 @@ export class BaseEntity {
|
|
|
4111
4303
|
ResetVectors() {
|
|
4112
4304
|
this._vectors.clear();
|
|
4113
4305
|
}
|
|
4306
|
+
/**
|
|
4307
|
+
* Resolves the recursive foreign key field for this entity. If `parentFieldName` is provided,
|
|
4308
|
+
* finds that specific field. Otherwise defaults to 'ParentID' if present, or the first
|
|
4309
|
+
* self-referencing foreign key field found on the entity.
|
|
4310
|
+
*/
|
|
4311
|
+
getRecursiveForeignKeyField(parentFieldName) {
|
|
4312
|
+
if (!this.EntityInfo)
|
|
4313
|
+
return null;
|
|
4314
|
+
if (this.PrimaryKeys.length !== 1) {
|
|
4315
|
+
LogError(`BaseEntity hierarchy methods: Entity '${this.EntityInfo.Name}' has ${this.PrimaryKeys.length} primary key fields. MemberJunction hierarchy traversal requires a single-column primary key.`);
|
|
4316
|
+
return null;
|
|
4317
|
+
}
|
|
4318
|
+
const fields = this.EntityInfo.Fields ?? [];
|
|
4319
|
+
if (parentFieldName) {
|
|
4320
|
+
const match = fields.find(f => f.Name.toLowerCase() === parentFieldName.toLowerCase() || f.CodeName.toLowerCase() === parentFieldName.toLowerCase());
|
|
4321
|
+
return match ?? null;
|
|
4322
|
+
}
|
|
4323
|
+
// Check for field explicitly configured with IsHierarchy = true first
|
|
4324
|
+
const explicitHierarchyField = fields.find(f => f.IsHierarchy && (UUIDsEqual(f.RelatedEntityID, this.EntityInfo?.ID) || f.RelatedEntity === this.EntityInfo?.Name));
|
|
4325
|
+
if (explicitHierarchyField)
|
|
4326
|
+
return explicitHierarchyField;
|
|
4327
|
+
// Check for 'ParentID' self-referencing foreign key next
|
|
4328
|
+
const parentIdField = fields.find(f => f.Name.toLowerCase() === 'parentid' && (UUIDsEqual(f.RelatedEntityID, this.EntityInfo?.ID) || f.RelatedEntity === this.EntityInfo?.Name));
|
|
4329
|
+
if (parentIdField)
|
|
4330
|
+
return parentIdField;
|
|
4331
|
+
// Fall back to first recursive foreign key field
|
|
4332
|
+
return fields.find(f => f.RelatedEntityID && (UUIDsEqual(f.RelatedEntityID, this.EntityInfo?.ID) || f.RelatedEntity === this.EntityInfo?.Name)) ?? null;
|
|
4333
|
+
}
|
|
4334
|
+
/**
|
|
4335
|
+
* Retrieves all descendant records in the hierarchy under this record using a single RunView query.
|
|
4336
|
+
* @param optionsOrMaxDepth Optional maximum relative depth to retrieve, or an options object.
|
|
4337
|
+
* @returns Array of descendant entity instances ordered by hierarchy depth.
|
|
4338
|
+
*/
|
|
4339
|
+
async GetDescendants(options) {
|
|
4340
|
+
const maxDepth = typeof options === 'number' ? options : options?.maxDepth;
|
|
4341
|
+
const parentFieldName = typeof options === 'object' ? options?.parentFieldName : undefined;
|
|
4342
|
+
const fkField = this.getRecursiveForeignKeyField(parentFieldName);
|
|
4343
|
+
if (!fkField) {
|
|
4344
|
+
LogError(`BaseEntity.GetDescendants(): No recursive foreign key field found on entity ${this.EntityInfo?.Name}`);
|
|
4345
|
+
return [];
|
|
4346
|
+
}
|
|
4347
|
+
const pkName = this.FirstPrimaryKey?.Name ?? 'ID';
|
|
4348
|
+
const rootId = this.Get(pkName);
|
|
4349
|
+
if (!rootId)
|
|
4350
|
+
return [];
|
|
4351
|
+
const rootFieldName = `Root${fkField.Name}`;
|
|
4352
|
+
const depthFieldName = `${fkField.Name}Depth`;
|
|
4353
|
+
const filter = maxDepth != null
|
|
4354
|
+
? `${rootFieldName} = '${rootId}' AND ${depthFieldName} <= ${maxDepth}`
|
|
4355
|
+
: `${rootFieldName} = '${rootId}'`;
|
|
4356
|
+
const rv = new RunView();
|
|
4357
|
+
const result = await rv.RunView({
|
|
4358
|
+
EntityName: this.EntityInfo.Name,
|
|
4359
|
+
ExtraFilter: filter,
|
|
4360
|
+
OrderBy: `${depthFieldName} ASC`,
|
|
4361
|
+
}, this._contextCurrentUser);
|
|
4362
|
+
return result.Success ? (result.Results ?? []) : [];
|
|
4363
|
+
}
|
|
4364
|
+
/**
|
|
4365
|
+
* Retrieves all ancestor records in the hierarchy from the top-level root down to this record using a single RunView query.
|
|
4366
|
+
* @param parentFieldName Optional recursive foreign key field name (defaults to 'ParentID' or the first recursive FK found).
|
|
4367
|
+
* @returns Array of ancestor entity instances ordered from root down to parent.
|
|
4368
|
+
*/
|
|
4369
|
+
async GetAncestors(parentFieldName) {
|
|
4370
|
+
const fkField = this.getRecursiveForeignKeyField(parentFieldName);
|
|
4371
|
+
if (!fkField) {
|
|
4372
|
+
LogError(`BaseEntity.GetAncestors(): No recursive foreign key field found on entity ${this.EntityInfo?.Name}`);
|
|
4373
|
+
return [];
|
|
4374
|
+
}
|
|
4375
|
+
const pkName = this.FirstPrimaryKey?.Name ?? 'ID';
|
|
4376
|
+
const currentId = this.Get(pkName);
|
|
4377
|
+
const pathFieldName = `${fkField.Name}Path`;
|
|
4378
|
+
const depthFieldName = `${fkField.Name}Depth`;
|
|
4379
|
+
const path = this.Get(pathFieldName);
|
|
4380
|
+
if (!path)
|
|
4381
|
+
return [];
|
|
4382
|
+
const rawIds = path.split('/').filter(id => id.length > 0 && id !== currentId);
|
|
4383
|
+
if (rawIds.length === 0)
|
|
4384
|
+
return [];
|
|
4385
|
+
const rv = new RunView();
|
|
4386
|
+
const idList = rawIds.map(id => `'${id}'`).join(',');
|
|
4387
|
+
const result = await rv.RunView({
|
|
4388
|
+
EntityName: this.EntityInfo.Name,
|
|
4389
|
+
ExtraFilter: `${pkName} IN (${idList})`,
|
|
4390
|
+
OrderBy: `${depthFieldName} ASC`,
|
|
4391
|
+
}, this._contextCurrentUser);
|
|
4392
|
+
return result.Success ? (result.Results ?? []) : [];
|
|
4393
|
+
}
|
|
4394
|
+
/**
|
|
4395
|
+
* Retrieves all direct child records of this record using a single RunView query.
|
|
4396
|
+
* @param parentFieldName Optional recursive foreign key field name (defaults to 'ParentID' or the first recursive FK found).
|
|
4397
|
+
* @returns Array of direct child entity instances.
|
|
4398
|
+
*/
|
|
4399
|
+
async GetChildren(parentFieldName) {
|
|
4400
|
+
const fkField = this.getRecursiveForeignKeyField(parentFieldName);
|
|
4401
|
+
if (!fkField) {
|
|
4402
|
+
LogError(`BaseEntity.GetChildren(): No recursive foreign key field found on entity ${this.EntityInfo?.Name}`);
|
|
4403
|
+
return [];
|
|
4404
|
+
}
|
|
4405
|
+
const pkName = this.FirstPrimaryKey?.Name ?? 'ID';
|
|
4406
|
+
const currentId = this.Get(pkName);
|
|
4407
|
+
if (!currentId)
|
|
4408
|
+
return [];
|
|
4409
|
+
const rv = new RunView();
|
|
4410
|
+
const result = await rv.RunView({
|
|
4411
|
+
EntityName: this.EntityInfo.Name,
|
|
4412
|
+
ExtraFilter: `${fkField.Name} = '${currentId}'`,
|
|
4413
|
+
}, this._contextCurrentUser);
|
|
4414
|
+
return result.Success ? (result.Results ?? []) : [];
|
|
4415
|
+
}
|
|
4114
4416
|
}
|
|
4115
4417
|
//# sourceMappingURL=baseEntity.js.map
|