@elyx-code/project-logic-tree 0.0.6553 → 0.0.6554

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
@@ -739,6 +739,8 @@ export declare class BreakStatementState extends UserManagedVersionedState imple
739
739
  getDefaultValue(): LiteralValueState | null;
740
740
  setDefaultValue(value: LiteralValueState | null, changeSet?: ChangeSet | null): BreakStatementState;
741
741
  clone(changeSet?: ChangeSet | null, parent?: LoopState | null, newId?: string | null, subscribe?: boolean): BreakStatementState;
742
+ getMasterInputWithValueWritterFromAllInstances(input: TerminationInputMapState): TerminationInputMapState;
743
+ syncInputs(changeSet?: ChangeSet | null): IChangeSet<BreakStatementState>;
742
744
  setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): BreakStatementState;
743
745
  removeDataType(changeSet?: ChangeSet | null): BreakStatementState;
744
746
  getDataType(changeSet?: ChangeSet | null): DataTypeState | null;
@@ -4185,6 +4187,8 @@ export declare class ContinueStatementState extends UserManagedVersionedState im
4185
4187
  getDefaultValue(): LiteralValueState | null;
4186
4188
  setDefaultValue(value: LiteralValueState | null, changeSet?: ChangeSet | null): ContinueStatementState;
4187
4189
  clone(changeSet?: ChangeSet | null, parent?: LoopState | null, newId?: string | null, subscribe?: boolean): ContinueStatementState;
4190
+ getMasterInputWithValueWritterFromAllInstances(input: TerminationInputMapState): TerminationInputMapState;
4191
+ syncInputs(changeSet?: ChangeSet | null): IChangeSet<ContinueStatementState>;
4188
4192
  setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): ContinueStatementState;
4189
4193
  removeDataType(changeSet?: ChangeSet | null): ContinueStatementState;
4190
4194
  getDataType(changeSet?: ChangeSet | null): DataTypeState | null;
@@ -4388,7 +4392,7 @@ export declare class DataTypeState extends UserManagedVersionedState implements
4388
4392
  orChildrenGroup: DataTypeState[] | null;
4389
4393
  project: ProjectState;
4390
4394
  errors: EntityError[];
4391
- parent: PropertyState | ArgumentDeclarationState | ReturnStatementState | BreakStatementState | ContinueStatementState | VariableDeclarationState | ValueDescriptorState | InputMapState | OutputMapState | DataTypeState | ActionDescriptorState | LoopState | SearchState | DefinitionEntityState | BuiltInBaseEntityState;
4395
+ parent: PropertyState | ArgumentDeclarationState | ReturnStatementState | BreakStatementState | ContinueStatementState | VariableDeclarationState | ValueDescriptorState | InputMapState | OutputMapState | DataTypeState | FunctionDeclarationState | ActionDescriptorState | LoopState | SearchState | DefinitionEntityState | BuiltInBaseEntityState;
4392
4396
  detachedDependents: Record<EntityId, {
4393
4397
  entity: UserManagedEntityState;
4394
4398
  field: string;
@@ -4448,7 +4452,7 @@ export declare class DataTypeState extends UserManagedVersionedState implements
4448
4452
  hydrateAncestors(): IChangeSet<DataTypeState>;
4449
4453
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<DataTypeState>;
4450
4454
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<DataTypeState>;
4451
- setParent(parent: PropertyState | ArgumentDeclarationState | ReturnStatementState | BreakStatementState | ContinueStatementState | VariableDeclarationState | ValueDescriptorState | InputMapState | OutputMapState | DataTypeState | ActionDescriptorState | LoopState | SearchState | DefinitionEntityState | BuiltInBaseEntityState, changeSet?: ChangeSet | null): DataTypeState;
4455
+ setParent(parent: PropertyState | ArgumentDeclarationState | ReturnStatementState | BreakStatementState | ContinueStatementState | VariableDeclarationState | ValueDescriptorState | InputMapState | OutputMapState | DataTypeState | FunctionDeclarationState | ActionDescriptorState | LoopState | SearchState | DefinitionEntityState | BuiltInBaseEntityState, changeSet?: ChangeSet | null): DataTypeState;
4452
4456
  removeChildGroup(child: DataTypeState, changeSet?: ChangeSet | null): DataTypeState;
4453
4457
  initChildren(changeSet?: ChangeSet | null): DataTypeState;
4454
4458
  subscribe(): DataTypeState;
@@ -4481,7 +4485,7 @@ export declare class DataTypeState extends UserManagedVersionedState implements
4481
4485
  };
4482
4486
  getErrors(): EntityError[];
4483
4487
  getShallowErrors(): EntityError[];
4484
- clone(changeSet?: ChangeSet | null, parent?: PropertyState | VariableDeclarationState | ArgumentDeclarationState | ReturnStatementState | BreakStatementState | ContinueStatementState | ValueDescriptorState | InputMapState | OutputMapState | DataTypeState | ActionDescriptorState | LoopState | SearchState | DefinitionEntityState | BuiltInBaseEntityState | null, newId?: string | null, subscribe?: boolean): DataTypeState;
4488
+ clone(changeSet?: ChangeSet | null, parent?: PropertyState | VariableDeclarationState | ArgumentDeclarationState | ReturnStatementState | BreakStatementState | ContinueStatementState | ValueDescriptorState | InputMapState | OutputMapState | DataTypeState | FunctionDeclarationState | ActionDescriptorState | LoopState | SearchState | DefinitionEntityState | BuiltInBaseEntityState | null, newId?: string | null, subscribe?: boolean): DataTypeState;
4485
4489
  merge(sourceEntity: DataTypeState, changeSet?: ChangeSet | null): IChangeSet<DataTypeState>;
4486
4490
  addToAndGroup(child: DataTypeState, changeSet?: ChangeSet | null): DataTypeState;
4487
4491
  addToOrGroup(child: DataTypeState, changeSet?: ChangeSet | null): DataTypeState;
@@ -7237,8 +7241,8 @@ export declare function fromZodParseToEntityGenerationErrors(data: Partial<Eleme
7237
7241
  }, result: SafeParseReturnType<any, any>): EntityGenerationError[];
7238
7242
 
7239
7243
  export declare enum FunctionCallDependencyField {
7240
- Parent = "parent",
7241
- Declaration = "declaration"
7244
+ FunctionCallParentField = "function-call-parent-field",
7245
+ FunctionCallDeclarationField = "function-call-declaration-field"
7242
7246
  }
7243
7247
 
7244
7248
  export declare type FunctionCallPayloadUnion = FunctionCallState | FunctionCallTypesUnion;
@@ -7390,7 +7394,9 @@ export { functionCallValidation }
7390
7394
 
7391
7395
  export declare enum FunctionDeclarationDependencyField {
7392
7396
  FunctionDeclarationImplements = "function-declaration-implements",
7393
- FunctionDeclarationExtends = "function-declaration-extends"
7397
+ FunctionDeclarationExtends = "function-declaration-extends",
7398
+ FunctionDeclarationDataType = "function-declaration-data-type",
7399
+ FunctionDeclarationDataTypeEntity = "function-declaration-data-type-entity"
7394
7400
  }
7395
7401
 
7396
7402
  export declare type FunctionDeclarationPayloadUnion = FunctionDeclarationState | FunctionDeclarationTypesUnion;
@@ -7409,6 +7415,7 @@ export declare class FunctionDeclarationState extends UserManagedVersionedState
7409
7415
  readonly type: EntityType.FunctionDeclaration;
7410
7416
  implements: ActionDescriptorState | null;
7411
7417
  extends: FunctionDeclarationState | null;
7418
+ dataType: DataTypeState | null;
7412
7419
  inputs: ArgumentDeclarationState[];
7413
7420
  calls: CallableEntityState[];
7414
7421
  parent: ProjectState | InstalledProjectState | DefinitionEntityState | LoopState;
@@ -7439,7 +7446,7 @@ export declare class FunctionDeclarationState extends UserManagedVersionedState
7439
7446
  static INMUTABLE_UPSTREAM_PROPERTIES: string[];
7440
7447
  static UPSTREAM_PROPERTIES: string[];
7441
7448
  static MUTABLE_DOWNSTREAM_PROPERTIES: string[];
7442
- static INMUATABLE_DOWNSTREAM_PROPERTIES: string[];
7449
+ static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
7443
7450
  static DOWNSTREAM_PROPERTIES: string[];
7444
7451
  static PROPERTIES: string[];
7445
7452
  static new(changeSet?: ChangeSet | null): IFunctionDeclarationTransfer;
@@ -7524,8 +7531,15 @@ export declare class FunctionDeclarationState extends UserManagedVersionedState
7524
7531
  addReturnStatement(statement: ReturnStatementState): FunctionDeclarationState;
7525
7532
  removeReturnStatement(statement: ReturnStatementState): FunctionDeclarationState;
7526
7533
  getUniqueOutputProperties(): PropertyState[];
7534
+ checkArgumentIsLoopAggregateResult(argument: ArgumentDeclarationState): boolean;
7527
7535
  removeUnrecognizedInputs(changeSet?: ChangeSet | null): IChangeSet<FunctionDeclarationState>;
7528
7536
  syncInputs(changeSet?: ChangeSet | null): IChangeSet<FunctionDeclarationState>;
7537
+ getUniqueInputMaps(): InputMapState[];
7538
+ reAttachAllTerminationInputMapsToDeclarations(changeSet?: ChangeSet | null): IChangeSet<FunctionDeclarationState>;
7539
+ inferDataTypeFromReturnStatements(changeSet?: ChangeSet | null): IChangeSet<FunctionDeclarationState>;
7540
+ setDataType(dataType: DataTypeState | null, changeSet?: ChangeSet | null): FunctionDeclarationState;
7541
+ removeDataType(changeSet?: ChangeSet | null): FunctionDeclarationState;
7542
+ getDataType(changeSet?: ChangeSet | null): DataTypeState | null;
7529
7543
  }
7530
7544
 
7531
7545
  export declare type FunctionDeclarationTypesUnion = IFunctionDeclaration | IFunctionDeclarationTransfer | IFunctionDeclarationShallowTransfer | IFunctionDeclarationGenerationTarget;
@@ -13345,7 +13359,7 @@ export declare interface IDataType extends IDataTypeTransfer, IChildEntity {
13345
13359
  entity: DataTypeEntityOption | null;
13346
13360
  andChildrenGroup: IDataType[] | null;
13347
13361
  orChildrenGroup: IDataType[] | null;
13348
- parent: IVariableDeclaration | IArgumentDeclaration | IReturnStatement | IBreakStatement | IContinueStatement | IProperty | IValueDescriptor | IInputMap | IOutputMap | IDataType | IActionDescriptor | ILoop | ISearch | IDefinitionEntity | IBuiltInBaseEntity;
13362
+ parent: IVariableDeclaration | IArgumentDeclaration | IReturnStatement | IBreakStatement | IContinueStatement | IProperty | IValueDescriptor | IInputMap | IOutputMap | IDataType | IFunctionDeclaration | IActionDescriptor | ILoop | ISearch | IDefinitionEntity | IBuiltInBaseEntity;
13349
13363
  }
13350
13364
 
13351
13365
  export declare interface IDataType_base {
@@ -13405,14 +13419,14 @@ export declare interface IDataTypeShallowTransfer extends IDataType_meta, IChild
13405
13419
  entity: DataTypeEntityReferenceOption | null;
13406
13420
  andChildrenGroup: IDataTypeReference[] | null;
13407
13421
  orChildrenGroup: IDataTypeReference[] | null;
13408
- parent: IVariableDeclarationReference | IArgumentDeclarationReference | IReturnStatementReference | IBreakStatementReference | IContinueStatementReference | IPropertyReference | IValueDescriptorReference | IInputMapReference | IOutputMapReference | IDataTypeReference | IActionDescriptorReference | ILoopReference | ISearchReference | IDefinitionEntityReference | IBuiltInBaseEntityReference;
13422
+ parent: IVariableDeclarationReference | IArgumentDeclarationReference | IReturnStatementReference | IBreakStatementReference | IContinueStatementReference | IPropertyReference | IValueDescriptorReference | IInputMapReference | IOutputMapReference | IDataTypeReference | IFunctionDeclarationReference | IActionDescriptorReference | ILoopReference | ISearchReference | IDefinitionEntityReference | IBuiltInBaseEntityReference;
13409
13423
  }
13410
13424
 
13411
13425
  export declare interface IDataTypeTransfer extends IDataType_meta, IChildEntityTransfer {
13412
13426
  entity: IDefinitionEntityReference | DataTypeEntityTransferOption | null;
13413
13427
  andChildrenGroup: IDataTypeTransfer[] | null;
13414
13428
  orChildrenGroup: IDataTypeTransfer[] | null;
13415
- parent: IVariableDeclaration | IVariableDeclarationReference | IArgumentDeclaration | IArgumentDeclarationReference | IReturnStatement | IReturnStatementReference | IBreakStatement | IBreakStatementReference | IContinueStatement | IContinueStatementReference | IProperty | IPropertyReference | IValueDescriptor | IValueDescriptorReference | IInputMap | IInputMapReference | IOutputMap | IOutputMapReference | IDataType | IDataTypeReference | IActionDescriptor | IActionDescriptorReference | ILoop | ILoopReference | ISearch | ISearchReference | IDefinitionEntity | IDefinitionEntityReference | IBuiltInBaseEntity | IBuiltInBaseEntityReference;
13429
+ parent: IVariableDeclaration | IVariableDeclarationReference | IArgumentDeclaration | IArgumentDeclarationReference | IReturnStatement | IReturnStatementReference | IBreakStatement | IBreakStatementReference | IContinueStatement | IContinueStatementReference | IProperty | IPropertyReference | IValueDescriptor | IValueDescriptorReference | IInputMap | IInputMapReference | IOutputMap | IOutputMapReference | IDataType | IDataTypeReference | IFunctionDeclaration | IFunctionDeclarationReference | IActionDescriptor | IActionDescriptorReference | ILoop | ILoopReference | ISearch | ISearchReference | IDefinitionEntity | IDefinitionEntityReference | IBuiltInBaseEntity | IBuiltInBaseEntityReference;
13416
13430
  }
13417
13431
 
13418
13432
  export declare interface IDate extends IPrimitiveEntity {
@@ -13692,6 +13706,7 @@ export declare interface IFunctionCallTransfer extends IFunctionCall_meta, IBase
13692
13706
  export declare interface IFunctionDeclaration extends IFunctionDeclarationTransfer, IChildEntity {
13693
13707
  inputs: IArgumentDeclaration[];
13694
13708
  calls: CallableEntity[];
13709
+ dataType: IDataType | null;
13695
13710
  implements: IActionDescriptor | null;
13696
13711
  extends: IFunctionDeclaration | null;
13697
13712
  parent: IProject | IInstalledProject | IDefinitionEntity | ILoop;
@@ -13734,6 +13749,7 @@ export declare interface IFunctionDeclarationReference extends IGenericReference
13734
13749
  export declare interface IFunctionDeclarationShallowTransfer extends IFunctionDeclaration_meta, IChildEntityShallowTransfer {
13735
13750
  inputs: IArgumentDeclarationReference[];
13736
13751
  calls: CallableEntityReference[];
13752
+ dataType: IDataTypeReference | null;
13737
13753
  implements: IActionDescriptorReference | null;
13738
13754
  extends: IFunctionDeclarationReference | null;
13739
13755
  parent: IProjectReference | IInstalledProjectReference | IDefinitionEntityReference | ILoopReference;
@@ -13742,6 +13758,7 @@ export declare interface IFunctionDeclarationShallowTransfer extends IFunctionDe
13742
13758
  export declare interface IFunctionDeclarationTransfer extends IFunctionDeclaration_meta, IChildEntityTransfer {
13743
13759
  inputs: (IArgumentDeclaration | IArgumentDeclarationTransfer)[];
13744
13760
  calls: (CallableEntity | CallableEntityTransfer)[];
13761
+ dataType: IDataType | IDataTypeTransfer | null;
13745
13762
  implements: IActionDescriptor | IActionDescriptorTransfer | null;
13746
13763
  extends: IFunctionDeclaration | IFunctionDeclarationTransfer | null;
13747
13764
  parent: IProject | IProjectReference | IInstalledProject | IInstalledProjectReference | IDefinitionEntity | IDefinitionEntityReference | ILoop | ILoopReference;
@@ -15854,8 +15871,10 @@ export declare let LOGS_ENABLED: boolean;
15854
15871
 
15855
15872
  export declare enum LoopDependencyField {
15856
15873
  Parent = "loop-parent-field",
15857
- DataTypeEntity = "loop-data-type-entity-field",
15858
- DataType = "loop-data-type-field"
15874
+ LoopDataTypeEntity = "loop-data-type-entity-field",
15875
+ LoopDataType = "loop-data-type-field",
15876
+ LoopBodyDataTypeEntity = "loop-body-data-type-entity-field",
15877
+ LoopBodyDataType = "loop-body-data-type-field"
15859
15878
  }
15860
15879
 
15861
15880
  export declare type LoopPayloadUnion = LoopState | LoopTypesUnion;
@@ -15917,12 +15936,6 @@ export declare class LoopState extends UserManagedVersionedState implements ILoo
15917
15936
  errors: EntityGenerationError[];
15918
15937
  modifiedData: ILoopGenerationTarget;
15919
15938
  };
15920
- static fromInputMapToBodyArgumentDeclarationName(returnDeclaration: InputMapState): string;
15921
- static fromBodyArgumentDeclarationToInputMapName(argumentDeclaration: ArgumentDeclarationState): string;
15922
- static fromInputMapToLoopOutputDeclarationName(returnDeclaration: InputMapState): string;
15923
- static fromLoopOutputDeclarationToInputMapName(outputProperty: ValueDescriptorState): string;
15924
- static fromLoopOutputDeclarationToBodyArgumentDeclarationName(outputProperty: ValueDescriptorState): string;
15925
- static fromBodyArgumentDeclarationToLoopOutputDeclarationName(argumentDeclaration: ArgumentDeclarationState): string;
15926
15939
  get currentIterationNumberArgumentDeclaration(): ArgumentDeclarationState;
15927
15940
  get currentValueArgumentDeclaration(): ArgumentDeclarationState | null;
15928
15941
  get continueStatements(): ContinueStatementState[];
@@ -16014,16 +16027,20 @@ export declare class LoopState extends UserManagedVersionedState implements ILoo
16014
16027
  syncTerminationStatements(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16015
16028
  syncBodyInputIndexes(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16016
16029
  syncBodyArgumentsDeclarations(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16017
- syncOutputsProperties(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16030
+ reAttachAllTerminationInputMapsToDeclarations(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16031
+ syncOutputDataType(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16018
16032
  syncOutputMaps(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16019
16033
  createCurrentIterationNumberArgumentDeclaration(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16020
16034
  removeExtraBodyArgumentDeclarations(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16021
16035
  createCurrentValueInputBasedOnInputMap(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16022
16036
  syncFixedBodyArgumentDeclarations(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16023
16037
  syncInputMaps(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16038
+ getValueInputMapDeclarationId(): string | null;
16024
16039
  getCurrentValueBuiltInValueDescriptor(): ValueDescriptorState | null;
16025
16040
  getCurrentIterationNumberBuiltInValueDescriptor(): ValueDescriptorState;
16026
16041
  syncBody(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16042
+ checkIsSynced(): boolean;
16043
+ syncFromDataType(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16027
16044
  syncChildren(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
16028
16045
  getUnusedInputs(): ActionInputMapState[];
16029
16046
  getUnusedOutputs(): ActionOutputMapState[];