@elyx-code/project-logic-tree 0.0.6361 → 0.0.6363

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
@@ -1455,7 +1455,11 @@ export declare type BuiltInElementTransfer = IBuiltInBaseEntityTransfer | IPrimi
1455
1455
 
1456
1456
  export declare type BuiltInElementTypesUnion = BuiltInElement | BuiltInElementTransfer | BuiltInElementShallowTransfer | BuiltInElementGenerationTarget;
1457
1457
 
1458
- export declare type BuiltInMethods = PersistedEntityMethods;
1458
+ export declare enum BuiltInFunctionIds {
1459
+ DeletePersistedEntity = "base-delete-persisted-entity",
1460
+ SavePersistedEntity = "base-save-persisted-entity",
1461
+ AbortExecution = "base-abort-execution"
1462
+ }
1459
1463
 
1460
1464
  export declare type BuiltInSystemEntityState = PrimitiveEntityState | BuiltInBaseEntityState;
1461
1465
 
@@ -1931,6 +1935,10 @@ export declare class ConditionState extends VersionedState implements ICondition
1931
1935
  clone(changeSet?: ChangeSet | null, parent?: EntryPointEntityState | ProjectState | null, newId?: string | null, subscribe?: boolean): ConditionState;
1932
1936
  removeUnrecognizedInputs(changeSet?: ChangeSet | null): IChangeSet<ConditionState>;
1933
1937
  syncInputs(changeSet?: ChangeSet | null): IChangeSet<ConditionState>;
1938
+ getUnusedInputs(): ActionInputMapState[];
1939
+ getUnusedOutputs(): ActionOutputMapState[];
1940
+ getUsedInputs(): ActionInputMapState[];
1941
+ getUsedOutputs(): ActionOutputMapState[];
1934
1942
  }
1935
1943
 
1936
1944
  export declare type ConditionTypesUnion = ICondition | IConditionTransfer | IConditionShallowTransfer | IConditionGenerationTarget;
@@ -3136,7 +3144,8 @@ export declare enum EntityInstanceErrorCode {
3136
3144
  VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls",
3137
3145
  VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call",
3138
3146
  VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call",
3139
- VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call"
3147
+ VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call",
3148
+ MissingRequiredValue = "missing-required-value"
3140
3149
  }
3141
3150
 
3142
3151
  export declare enum EntityOperations {
@@ -3790,6 +3799,10 @@ export declare class FunctionCallState extends VersionedState implements IFuncti
3790
3799
  removeUnrecognizedOutputs(changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
3791
3800
  syncInputs(changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
3792
3801
  syncOutputs(changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
3802
+ getUnusedInputs(): ActionInputMapState[];
3803
+ getUnusedOutputs(): ActionOutputMapState[];
3804
+ getUsedInputs(): ActionInputMapState[];
3805
+ getUsedOutputs(): ActionOutputMapState[];
3793
3806
  }
3794
3807
 
3795
3808
  export declare type FunctionCallTypesUnion = IFunctionCall | IFunctionCallTransfer | IFunctionCallShallowTransfer | IFunctionCallGenerationTarget;
@@ -10214,6 +10227,10 @@ export declare class InternalCallState extends VersionedState implements IIntern
10214
10227
  removeUnrecognizedOutputs(changeSet?: ChangeSet | null): IChangeSet<InternalCallState>;
10215
10228
  syncInputs(changeSet?: ChangeSet | null): IChangeSet<InternalCallState>;
10216
10229
  syncOutputs(changeSet?: ChangeSet | null): IChangeSet<InternalCallState>;
10230
+ getUnusedInputs(): ActionInputMapState[];
10231
+ getUnusedOutputs(): ActionOutputMapState[];
10232
+ getUsedInputs(): ActionInputMapState[];
10233
+ getUsedOutputs(): ActionOutputMapState[];
10217
10234
  }
10218
10235
 
10219
10236
  export declare type InternalCallTypesUnion = IInternalCall | IInternalCallTransfer | IInternalCallReference | IInternalCallGenerationTarget;
@@ -11781,6 +11798,10 @@ export declare class LoopState extends VersionedState implements ILoop, BaseStat
11781
11798
  getCurrentIterationNumberBuiltInValueDescriptor(): ValueDescriptorState;
11782
11799
  syncBody(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
11783
11800
  syncChildren(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
11801
+ getUnusedInputs(): ActionInputMapState[];
11802
+ getUnusedOutputs(): ActionOutputMapState[];
11803
+ getUsedInputs(): ActionInputMapState[];
11804
+ getUsedOutputs(): ActionOutputMapState[];
11784
11805
  }
11785
11806
 
11786
11807
  export declare enum LoopTypes {
@@ -12194,6 +12215,10 @@ export declare class OperationState extends VersionedState implements IOperation
12194
12215
  removeUnrecognizedOutputs(changeSet?: ChangeSet | null): IChangeSet<OperationState>;
12195
12216
  syncInputs(changeSet?: ChangeSet | null): IChangeSet<OperationState>;
12196
12217
  syncOutputs(changeSet?: ChangeSet | null): IChangeSet<OperationState>;
12218
+ getUnusedInputs(): ActionInputMapState[];
12219
+ getUnusedOutputs(): ActionOutputMapState[];
12220
+ getUsedInputs(): ActionInputMapState[];
12221
+ getUsedOutputs(): ActionOutputMapState[];
12197
12222
  }
12198
12223
 
12199
12224
  export declare type OperationTypes = NumberOperations | StringOperations | ListOperations | ExecutionOperations | EntityOperations | HTTPOperations | RandomnessOperations;
@@ -12419,6 +12444,10 @@ export declare abstract class PassThroughCallableEntityClass extends CallerEntit
12419
12444
  abstract addErrorCall(call: CallableEntityState, changeSet: ChangeSet | null): CallerEntityClass;
12420
12445
  abstract removeInput(input: InputMapState, changeSet: ChangeSet | null): PassThroughCallableEntityClass;
12421
12446
  abstract addInput(input: InputMapState, changeSet: ChangeSet | null): PassThroughCallableEntityClass;
12447
+ abstract getUnusedInputs(): InputMapState[];
12448
+ abstract getUnusedOutputs(): OutputMapState[];
12449
+ abstract getUsedInputs(): InputMapState[];
12450
+ abstract getUsedOutputs(): OutputMapState[];
12422
12451
  }
12423
12452
 
12424
12453
  export declare type PassThroughCallableEntityGenerationTarget = PassThroughCallableEntityWithOutputsGenerationTarget | IConditionGenerationTarget;
@@ -12504,12 +12533,6 @@ export declare class PersistedEntity extends BuiltInBaseEntityState {
12504
12533
  constructor(parentProjectState: ProjectState);
12505
12534
  }
12506
12535
 
12507
- export declare enum PersistedEntityMethods {
12508
- DeletePersistedEntity = "base-delete-persisted-entity",
12509
- SoftDeletePersistedEntity = "base-soft-delete-persisted-entity",
12510
- AbortExecution = "base-abort-execution"
12511
- }
12512
-
12513
12536
  export declare const PLACEHOLDER_VALUE_STORE_CLIENT: IValueStoreClient;
12514
12537
 
12515
12538
  export declare type PlayableEntity = PassThroughCallableEntity | EntryPointEntity;
@@ -12669,6 +12692,7 @@ export declare class ProjectState extends VersionedState implements IProject, Us
12669
12692
  onAddChangeSetCallback: ((changeSet: ChangeSet, undoableStackValueIndex: number) => void) | null;
12670
12693
  onDiscardChangeSetCallback: ((changeSet: ChangeSet) => void) | null;
12671
12694
  onRequestActiveValueCallback: ((valueOwner: EntityWithValueState) => LiteralValueState | null) | null;
12695
+ onRequestActiveDynamicValueCallback: ((valueOwner: EntityWithValueState) => IDynamicValue | null) | null;
12672
12696
  constructor(initialData: IProject | IProjectTransfer);
12673
12697
  private static _UUIDModule;
12674
12698
  static get UUID(): UUIDModule;
@@ -12701,6 +12725,7 @@ export declare class ProjectState extends VersionedState implements IProject, Us
12701
12725
  get emit(): Events['emit'];
12702
12726
  closePendingChangeSets(): Promise<void>;
12703
12727
  onRequestActiveValue(callback: (valueOwner: EntityWithValueState) => LiteralValueState | null): void;
12728
+ onRequestActiveDynamicValue(callback: (valueOwner: EntityWithValueState) => IDynamicValue | null): void;
12704
12729
  onCloseChangeSet(callback: (changeSet: ChangeSet) => Promise<{
12705
12730
  success: boolean;
12706
12731
  }>): Promise<void>;
@@ -12840,6 +12865,7 @@ export declare class ProjectState extends VersionedState implements IProject, Us
12840
12865
  attachOrphanReferences(): ProjectState;
12841
12866
  getBuiltInPersistedEntity(): BuiltInBaseEntityState | null;
12842
12867
  requestActiveValue(valueOwner: EntityWithValueState): LiteralValueState | null;
12868
+ requestActiveDynamicValue(valueOwner: EntityWithValueState): IDynamicValue | null;
12843
12869
  undo(): IProjectVersionTransitionConfig;
12844
12870
  redo(): IProjectVersionTransitionConfig;
12845
12871
  applyExternalChangeSet(request: PersistChangeSetEntityActionRequestPayload): ChangeSet;
@@ -13706,6 +13732,10 @@ declare function sanitizeQuery(query: string): string;
13706
13732
 
13707
13733
  declare function sanitizeSQLIdentifierText(text: string): string;
13708
13734
 
13735
+ export declare const savePersistedEntityMethod: IFunctionDeclarationTransfer;
13736
+
13737
+ export declare const savePersistedEntityMethodParentRef: IBuiltInBaseEntityReference;
13738
+
13709
13739
  export declare type ScopeCompatibility = ICompatibleSameBothLocalScope | ICompatibleSameBothGlobalScope | ICompatibleAInBScope | ICompatibleBInAScope | IIncompatibleParallelInProjectScope | IIncompatibleParallelInCommonParentScope | IIncompatibleAIsGlobalBIsNotScope | IIncompatibleBIsGlobalAIsNotScope;
13710
13740
 
13711
13741
  export declare enum ScopeCompatibilityType {
@@ -13876,6 +13906,10 @@ export declare class SearchState extends VersionedState implements ISearch, Base
13876
13906
  getShallowErrors(): EntityError[];
13877
13907
  clone(changeSet?: ChangeSet | null, parent?: EntryPointEntityState | ProjectState | null, newId?: string | null, subscribe?: boolean): SearchState;
13878
13908
  syncInputMaps(changeSet?: ChangeSet | null): IChangeSet<SearchState>;
13909
+ getUnusedInputs(): ActionInputMapState[];
13910
+ getUnusedOutputs(): ActionOutputMapState[];
13911
+ getUsedInputs(): ActionInputMapState[];
13912
+ getUsedOutputs(): ActionOutputMapState[];
13879
13913
  }
13880
13914
 
13881
13915
  export declare const searchStatementErrorGlobalValueDescriptor: IValueDescriptorTransfer;
@@ -14146,10 +14180,6 @@ export declare abstract class SharedStateFunctionality {
14146
14180
  abstract getShallowErrors(): EntityError[];
14147
14181
  }
14148
14182
 
14149
- export declare const softDeletePersistedEntityMethod: IFunctionDeclarationTransfer;
14150
-
14151
- export declare const softDeletePersistedEntityMethodParentRef: IBuiltInBaseEntityReference;
14152
-
14153
14183
  export declare function sortCallsBasedOnExecutionDependencies(calls: DraggableCallableEntityState[]): DraggableCallableEntityState[];
14154
14184
 
14155
14185
  export declare function sortChildrenEntitiesBasedOnExecutionDependencies(entity: CanvasEntityState): CanvasEntityState[];
@@ -14668,6 +14698,8 @@ export declare function validateLogic(logic: (CanvasEntityState | CallableEntity
14668
14698
 
14669
14699
  export declare function validateLoopEntityDeclaration(loopDeclarationId: EntityId, project: ProjectState): EntityGenerationError[];
14670
14700
 
14701
+ export declare function validateMissingValue(self: EntityWithValueState): EntityError[];
14702
+
14671
14703
  export declare function validateName(entity: ElementGenerationTarget | ElementShallowTransfer | ElementTransfer, project: ProjectState): EntityGenerationError[];
14672
14704
 
14673
14705
  export declare function validateOperationEntityDeclaration(operationDeclarationId: EntityId, project: ProjectState): EntityGenerationError[];