@elyx-code/project-logic-tree 0.0.6674 → 0.0.6677

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
@@ -174,6 +174,7 @@ export declare class ActionDescriptorState extends UserManagedVersionedState imp
174
174
  clone(changeSet?: ChangeSet | null, parent?: DefinitionEntityState | PrimitiveEntityState | BuiltInBaseEntityState | DataTypeState | null, newId?: string | null, subscribe?: boolean): ActionDescriptorState;
175
175
  addInput(argument: ValueDescriptorState, changeSet?: ChangeSet | null): ActionDescriptorState;
176
176
  removeInput(argument: ValueDescriptorState, changeSet?: ChangeSet | null): ActionDescriptorState;
177
+ setError(error: ValueDescriptorState | null, changeSet?: ChangeSet | null): ActionDescriptorState;
177
178
  setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): ActionDescriptorState;
178
179
  removeDataType(changeSet?: ChangeSet | null): ActionDescriptorState;
179
180
  getDataType(changeSet?: ChangeSet | null): DataTypeState | null;
@@ -399,6 +400,18 @@ export declare function appendToList(list: unknown, value: unknown, ...values: u
399
400
 
400
401
  export declare function applyNewScope(self: CallableEntityState, changeSet: ChangeSet | null): void;
401
402
 
403
+ export declare function applyQueuedToCached(opts: {
404
+ projectId: EntityId;
405
+ projectRecord: Record<EntityId, UserManagedElementShallowTransfer>;
406
+ chain: IRecordChangeSet<UserManagedElementShallowTransfer, UserManagedElementShallowTransfer>[];
407
+ sort?: boolean;
408
+ order?: boolean;
409
+ }): {
410
+ project: UserManagedElementShallowTransfer;
411
+ record: Record<EntityId, UserManagedElementShallowTransfer>;
412
+ order: EntityId[] | null;
413
+ };
414
+
402
415
  export declare class Area {
403
416
  ids: string[];
404
417
  entity: CanvasEntityState | ProjectState;
@@ -11353,7 +11366,7 @@ export declare class DefaultEditorContext extends ExtensionContextBase<Extension
11353
11366
  copyEntities(entities: CanvasEntityState[]): Promise<ChangeSet>;
11354
11367
  resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
11355
11368
  publish(): Promise<void>;
11356
- loadActivePublication(publicationId: string): Promise<IPublication>;
11369
+ loadGivenPublication(publicationId: string): Promise<IPublication>;
11357
11370
  requestActiveDynamicValue(valueOwner: EntityWithValueState, onlyDefault?: boolean): IDynamicValue | null;
11358
11371
  getValueTypePreference(valueOwnerId: EntityId): DynamicValueTypes.DefaultValue | DynamicValueTypes.Testing | null;
11359
11372
  setValueTypePreference(valueOwnerId: EntityId, valueTypePreference: DynamicValueTypes.DefaultValue | DynamicValueTypes.Testing | null): void;
@@ -14172,6 +14185,7 @@ export declare class FunctionCallState extends UserManagedVersionedState impleme
14172
14185
  addSuccessCall(call: CallableEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): FunctionCallState;
14173
14186
  removeCall(call: CallableEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): FunctionCallState;
14174
14187
  removeCaller(caller: CallerEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): FunctionCallState;
14188
+ setError(error: ActionOutputMapState | null, changeSet?: ChangeSet | null): FunctionCallState;
14175
14189
  setParent(parent: EntityWithLogicScopeState | ProjectState, changeSet?: ChangeSet | null): FunctionCallState;
14176
14190
  setDeclaration(declaration: FunctionDeclarationState): FunctionCallState;
14177
14191
  initChildren(changeSet?: ChangeSet | null): FunctionCallState;
@@ -20711,7 +20725,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
20711
20725
  copyEntities(entities: CanvasEntityState[]): Promise<ChangeSet>;
20712
20726
  resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
20713
20727
  publish(): Promise<void>;
20714
- loadActivePublication(publicationId: string): Promise<IPublication>;
20728
+ loadGivenPublication(publicationId: string): Promise<IPublication>;
20715
20729
  requestExtension<T = any>(moduleId: string): IRegisteredExtension<T>;
20716
20730
  initRegistry(): Promise<ExtensionsRegistry<any>>;
20717
20731
  }
@@ -21526,6 +21540,10 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21526
21540
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<InstalledProjectState>;
21527
21541
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<InstalledProjectState>;
21528
21542
  setParent(parent: ProjectState, changeSet?: ChangeSet | null): InstalledProjectState;
21543
+ addFunction(func: FunctionDeclarationState, changeSet?: ChangeSet | null): InstalledProjectState;
21544
+ removeFunction(func: FunctionDeclarationState, changeSet?: ChangeSet | null): InstalledProjectState;
21545
+ addEvent(event: GlobalEventState, changeSet?: ChangeSet | null): InstalledProjectState;
21546
+ removeEvent(event: GlobalEventState, changeSet?: ChangeSet | null): InstalledProjectState;
21529
21547
  initChildren(changeSet?: ChangeSet | null): InstalledProjectState;
21530
21548
  subscribe(): InstalledProjectState;
21531
21549
  unsubscribe(): InstalledProjectState;
@@ -21666,6 +21684,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21666
21684
  addSuccessCall(call: CallableEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): InternalCallState;
21667
21685
  removeCall(call: CallableEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): InternalCallState;
21668
21686
  removeCaller(caller: CallerEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): InternalCallState;
21687
+ setError(error: ActionOutputMapState | null, changeSet?: ChangeSet | null): InternalCallState;
21669
21688
  setParent(parent: VariableState, changeSet?: ChangeSet | null): InternalCallState;
21670
21689
  setDeclaration(declaration: FunctionDeclarationState | ActionDescriptorState): InternalCallState;
21671
21690
  initChildren(changeSet?: ChangeSet | null): InternalCallState;
@@ -23966,7 +23985,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
23966
23985
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<LiteralValueState>;
23967
23986
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<LiteralValueState>;
23968
23987
  setParent(parent: DataTypeState | InputMapState | PropertyState | ArgumentDeclarationState | ReturnStatementState | BreakStatementState | ContinueStatementState | VariableDeclarationState | VariableInstanceState | ValueDescriptorState, changeSet?: ChangeSet | null): LiteralValueState;
23969
- setStandaloneParent(parent: EntityWithValueState): LiteralValueState;
23988
+ setStandaloneParent(parent: EntityWithValueState, changeSet?: ChangeSet | null): LiteralValueState;
23970
23989
  setValueAsTypeSingle(valueAsTypeSingle: ValueAsTypeState | null, changeSet?: ChangeSet | null): LiteralValueState;
23971
23990
  setValueAsTypeList(valueAsTypeList: ValueAsTypeState[] | null, changeSet?: ChangeSet | null): LiteralValueState;
23972
23991
  setValueAsType(valueAsTypeSingle: ValueAsTypeState | ValueAsTypeState[] | null, changeSet?: ChangeSet | null): LiteralValueState;
@@ -24131,6 +24150,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24131
24150
  replaceDetachedChild(existingChild: CanvasEntityState, newChild: CanvasEntityState): LoopState;
24132
24151
  subscribeDetachedChild(child: CanvasEntityState): LoopState;
24133
24152
  unsubscribeDetachedChild(child: CanvasEntityState): LoopState;
24153
+ setError(error: ActionOutputMapState | null, changeSet?: ChangeSet | null): LoopState;
24134
24154
  setParent(parent: EntityWithLogicScopeState | ProjectState, changeSet?: ChangeSet | null): LoopState;
24135
24155
  setDeclaration(declaration: ActionDescriptorState): LoopState;
24136
24156
  initChildren(changeSet?: ChangeSet | null): LoopState;
@@ -28385,6 +28405,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
28385
28405
  addSuccessCall(call: CallableEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): OperationState;
28386
28406
  removeCall(call: CallableEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): OperationState;
28387
28407
  removeCaller(caller: CallerEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): OperationState;
28408
+ setError(error: ActionOutputMapState | null, changeSet?: ChangeSet | null): OperationState;
28388
28409
  setParent(parent: EntityWithLogicScopeState | ProjectState, changeSet?: ChangeSet | null): OperationState;
28389
28410
  setDeclaration(declaration: ActionDescriptorState): OperationState;
28390
28411
  initChildren(changeSet?: ChangeSet | null): OperationState;
@@ -30327,6 +30348,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30327
30348
  addSuccessCall(call: CallableEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): SearchState;
30328
30349
  removeCall(call: CallableEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): SearchState;
30329
30350
  removeCaller(caller: CallerEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): SearchState;
30351
+ setError(error: ActionOutputMapState | null, changeSet?: ChangeSet | null): SearchState;
30330
30352
  setParent(parent: EntityWithLogicScopeState | ProjectState, changeSet?: ChangeSet | null): SearchState;
30331
30353
  initChildren(changeSet?: ChangeSet | null): SearchState;
30332
30354
  subscribe(): SearchState;
@@ -31289,6 +31311,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
31289
31311
  AddErrorCall = "add-error-call",
31290
31312
  AddCall = "add-call",
31291
31313
  SetParent = "set-parent",
31314
+ SetStandaloneParent = "set-standalone-parent",
31292
31315
  AfterAllChildrenInitialized = "after-all-children-initialized",
31293
31316
  UpdateWithShallowTransfer = "update-with-shallow-transfer",
31294
31317
  RemoveFromParent = "remove-from-parent",
@@ -31340,7 +31363,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
31340
31363
  RemoveAllErrorCalls = "remove-all-error-calls",
31341
31364
  SetDataTypeEntityValue = "set-data-type-entity-value",
31342
31365
  MergeDataTypes = "merge-data-types",
31343
- SetDataTypeForeignKeyRef = "set-data-type-foreign-key-ref"
31366
+ SetDataTypeForeignKeyRef = "set-data-type-foreign-key-ref",
31367
+ SetErrorEntity = "set-error-entity"
31344
31368
  }
31345
31369
 
31346
31370
  export declare enum StateMutationErrorCode {
@@ -33600,6 +33624,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33600
33624
  removeCaller(caller: CallerEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): VariableDeclarationState;
33601
33625
  addValueReader(entity: ValueReadingEntityState, changeSet?: ChangeSet | null): VariableDeclarationState;
33602
33626
  removeValueReader(valueReader: ValueReadingEntityState, changeSet?: ChangeSet | null): VariableDeclarationState;
33627
+ setError(error: ActionOutputMapState | null, changeSet?: ChangeSet | null): VariableDeclarationState;
33603
33628
  setParent(parent: EntityWithLogicScopeState | ProjectState, changeSet?: ChangeSet | null): VariableDeclarationState;
33604
33629
  initChildren(changeSet?: ChangeSet | null): VariableDeclarationState;
33605
33630
  setValueWriter(valueWriter: ValueWritingEntityState | null, changeSet?: ChangeSet | null): VariableDeclarationState;
@@ -33802,6 +33827,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33802
33827
  removeCall(call: CallableEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): VariableInstanceState;
33803
33828
  removeCaller(caller: CallerEntityState, changeSet?: ChangeSet | null, recalculateScope?: boolean): VariableInstanceState;
33804
33829
  addValueReader(entity: ValueReadingEntityState, changeSet?: ChangeSet | null): VariableInstanceState;
33830
+ setError(error: ActionOutputMapState | null, changeSet?: ChangeSet | null): VariableInstanceState;
33805
33831
  setParent(parent: EntityWithLogicScopeState | ProjectState, changeSet?: ChangeSet | null): VariableInstanceState;
33806
33832
  initChildren(changeSet?: ChangeSet | null): VariableInstanceState;
33807
33833
  setValueWriter(valueWriter: ValueWritingEntityState | null, changeSet?: ChangeSet | null): VariableInstanceState;