@elyx-code/project-logic-tree 0.0.7027 → 0.0.7029

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/dist/index.d.ts CHANGED
@@ -10113,6 +10113,7 @@ export declare enum BaseValueDescriptorIds {
10113
10113
  export declare function cloneProject(project: ProjectState, { enrich, shallowErrors, ...other }?: {
10114
10114
  enrich?: boolean;
10115
10115
  shallowErrors?: boolean;
10116
+ keepIds?: boolean;
10116
10117
  resetVersionOptions?: {
10117
10118
  commonTimestamp?: string;
10118
10119
  author?: string;
@@ -10126,6 +10127,7 @@ export declare enum BaseValueDescriptorIds {
10126
10127
  export declare function cloneProjectAsync(project: ProjectState, { enrich, shallowErrors, ...other }?: YieldOptions & {
10127
10128
  enrich?: boolean;
10128
10129
  shallowErrors?: boolean;
10130
+ keepIds?: boolean;
10129
10131
  resetVersionOptions?: {
10130
10132
  commonTimestamp?: string;
10131
10133
  author?: string;
@@ -31336,6 +31338,7 @@ export declare enum BaseValueDescriptorIds {
31336
31338
 
31337
31339
  export declare class Traverser {
31338
31340
  order: EntityId[];
31341
+ private cachedEntityDependencies;
31339
31342
  flatRecord: Record<EntityId, Element_2 | ElementTransfer | EntityState | ElementShallowTransfer>;
31340
31343
  allBuiltInEntityIds: Set<EntityId>;
31341
31344
  private onGoingVisits;
@@ -31343,6 +31346,7 @@ export declare enum BaseValueDescriptorIds {
31343
31346
  upstream: Record<EntityId, true>;
31344
31347
  downstream: Record<EntityId, true>;
31345
31348
  }>;
31349
+ static MAX_ORDERING_ITERATIONS: number;
31346
31350
  constructor(root?: Element_2 | ElementTransfer | EntityState | ElementShallowTransfer, options?: {
31347
31351
  asyncInitial?: boolean;
31348
31352
  onOrdered?: () => void;
@@ -31350,9 +31354,13 @@ export declare enum BaseValueDescriptorIds {
31350
31354
  } & YieldOptions);
31351
31355
  flatten(entity: Element_2 | ElementTransfer | EntityState | ElementShallowTransfer): void;
31352
31356
  flattenAsync(entity: Element_2 | ElementTransfer | EntityState | ElementShallowTransfer, options?: YieldOptions): Promise<void>;
31357
+ private getEntityDependencies;
31358
+ private getDirectDependencies;
31353
31359
  private moveEntityAfterDependencies;
31354
- orderEntities(): void;
31355
- orderEntitiesAsync(options?: YieldOptions): Promise<void>;
31360
+ orderEntities(iterations?: number): void;
31361
+ orderEntitiesAsync(options?: YieldOptions & {
31362
+ iterations?: number;
31363
+ }): Promise<void>;
31356
31364
  getUpstreamOngoingDependenciesVisits(entityId: EntityId, taskId: string): Record<EntityId, Promise<any>>;
31357
31365
  getDownstreamOngoingDependenciesVisits(entityId: EntityId, taskId: string): Record<EntityId, Promise<any>>;
31358
31366
  settlePromises(promises: Record<EntityId, Promise<any>>, taskId: string): Promise<void>;
@@ -32628,6 +32636,11 @@ export declare enum BaseValueDescriptorIds {
32628
32636
  toQuery(): string;
32629
32637
  }
32630
32638
 
32639
+ export declare enum ValuesOperations {
32640
+ MergeEmpty = "op-values-merge-empty",
32641
+ MergeFalsy = "op-values-merge-falsy"
32642
+ }
32643
+
32631
32644
  export declare type ValueValidationCallback<T = LiteralValueType, TCode = SharedEntityErrorCode | EntityInstanceErrorCode> = (self: EntityWithValueState, value: T) => IValueValidationResult<T, TCode>;
32632
32645
 
32633
32646
  export declare type ValueWritingEntity = IVariableDeclaration | IVariableInstance | IArgumentDeclaration | IOutputMap | PassThroughCallableEntityWithOutputs;