@elyx-code/project-logic-tree 0.0.6574 → 0.0.6576

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
@@ -612,9 +612,10 @@ export declare const BREAK_AND_CONTINUE_STATEMENTS_RETURN_DECLARATIONS_EXPLANATI
612
612
 
613
613
  export declare enum BreakStatementDependencyField {
614
614
  Parent = "break-statement-parent-field",
615
- ImplementsField = "break-statement-implements-field",
616
615
  DataTypeEntity = "break-statement-data-type-entity-field",
617
- DataType = "break-statement-data-type-field"
616
+ DataType = "break-statement-data-type-field",
617
+ ParentDataType = "break-statement-parent-data-type-field",
618
+ ParentDataTypeEntity = "break-statement-parent-data-type-entity-field"
618
619
  }
619
620
 
620
621
  export declare type BreakStatementPayloadUnion = BreakStatementState | BreakStatementTypesUnion;
@@ -629,7 +630,6 @@ export declare class BreakStatementState extends UserManagedVersionedState imple
629
630
  readsValue: ValueWritingEntityState | null;
630
631
  dataType: DataTypeState | null;
631
632
  defaultValue: LiteralValueState | null;
632
- implements: ActionDescriptorState | null;
633
633
  calledBySuccess: PassThroughCallableEntityState[];
634
634
  calledByError: PassThroughCallableEntityState[];
635
635
  calledByEntry: EntryPointEntityState[];
@@ -686,7 +686,7 @@ export declare class BreakStatementState extends UserManagedVersionedState imple
686
686
  }[]): UserManagedEntityState;
687
687
  syncDependents(changeSet?: ChangeSet | null): IChangeSet<UserManagedEntityState>;
688
688
  onDetachedDependencyRemoved(_dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
689
- onDetachedDependencyRestored(dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
689
+ onDetachedDependencyRestored(_dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
690
690
  unsubscribeFromDependencies(): UserManagedEntityState;
691
691
  subscribeToDependencies(): UserManagedEntityState;
692
692
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
@@ -706,7 +706,6 @@ export declare class BreakStatementState extends UserManagedVersionedState imple
706
706
  addOutput(output: InputMapState, changeSet?: ChangeSet | null): BreakStatementState;
707
707
  removeOutput(output: InputMapState, changeSet?: ChangeSet | null): BreakStatementState;
708
708
  setParent(parent: LoopState, changeSet?: ChangeSet | null): BreakStatementState;
709
- setImplements(implementsEntity: ActionDescriptorState | null, changeSet?: ChangeSet | null): BreakStatementState;
710
709
  setValueWriter(valueWriter: ValueWritingEntityState | null, changeSet?: ChangeSet | null): BreakStatementState;
711
710
  removeValueWriter(changeSet?: ChangeSet | null): BreakStatementState;
712
711
  initChildren(changeSet?: ChangeSet | null): BreakStatementState;
@@ -4064,9 +4063,10 @@ export { conditionValidation }
4064
4063
 
4065
4064
  export declare enum ContinueStatementDependencyField {
4066
4065
  Parent = "continue-statement-parent-field",
4067
- ImplementsField = "continue-statement-implements-field",
4068
4066
  DataTypeEntity = "continue-statement-data-type-entity-field",
4069
- DataType = "continue-statement-data-type-field"
4067
+ DataType = "continue-statement-data-type-field",
4068
+ ParentDataType = "continue-statement-parent-data-type-field",
4069
+ ParentDataTypeEntity = "continue-statement-parent-data-type-entity-field"
4070
4070
  }
4071
4071
 
4072
4072
  export declare type ContinueStatementPayloadUnion = ContinueStatementState | ContinueStatementTypesUnion;
@@ -4081,7 +4081,6 @@ export declare class ContinueStatementState extends UserManagedVersionedState im
4081
4081
  readsValue: ValueWritingEntityState | null;
4082
4082
  dataType: DataTypeState | null;
4083
4083
  defaultValue: LiteralValueState | null;
4084
- implements: ActionDescriptorState | null;
4085
4084
  calledBySuccess: PassThroughCallableEntityState[];
4086
4085
  calledByError: PassThroughCallableEntityState[];
4087
4086
  calledByEntry: EntryPointEntityState[];
@@ -4138,7 +4137,7 @@ export declare class ContinueStatementState extends UserManagedVersionedState im
4138
4137
  }[]): UserManagedEntityState;
4139
4138
  syncDependents(changeSet?: ChangeSet | null): IChangeSet<UserManagedEntityState>;
4140
4139
  onDetachedDependencyRemoved(_dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
4141
- onDetachedDependencyRestored(dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
4140
+ onDetachedDependencyRestored(_dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
4142
4141
  unsubscribeFromDependencies(): UserManagedEntityState;
4143
4142
  subscribeToDependencies(): UserManagedEntityState;
4144
4143
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
@@ -4158,7 +4157,6 @@ export declare class ContinueStatementState extends UserManagedVersionedState im
4158
4157
  addOutput(output: InputMapState, changeSet?: ChangeSet | null): ContinueStatementState;
4159
4158
  removeOutput(output: InputMapState, changeSet?: ChangeSet | null): ContinueStatementState;
4160
4159
  setParent(parent: LoopState, changeSet?: ChangeSet | null): ContinueStatementState;
4161
- setImplements(implementsEntity: ActionDescriptorState | null, changeSet?: ChangeSet | null): ContinueStatementState;
4162
4160
  setValueWriter(valueWriter: ValueWritingEntityState | null, changeSet?: ChangeSet | null): ContinueStatementState;
4163
4161
  removeValueWriter(changeSet?: ChangeSet | null): ContinueStatementState;
4164
4162
  initChildren(changeSet?: ChangeSet | null): ContinueStatementState;
@@ -4691,7 +4689,7 @@ export declare class DefaultEditorContext extends ExtensionContextBase<Extension
4691
4689
  requestActiveDynamicValue(valueOwner: EntityWithValueState, onlyDefault?: boolean): IDynamicValue | null;
4692
4690
  }
4693
4691
 
4694
- export declare type DefaultExtensionContext = DefaultEditorContext | DefaultProjectLogicContext;
4692
+ export declare type DefaultExtensionContext = DefaultEditorContext | DefaultProjectLogicContext | DefaultPublicationRunContext;
4695
4693
 
4696
4694
  export declare class DefaultProjectLogicContext extends ExtensionContextBase<ExtensionContextType.Logic> implements IProjectLogicContext {
4697
4695
  private readonly _project;
@@ -4836,6 +4834,27 @@ export declare class DefaultProjectLogicContext extends ExtensionContextBase<Ext
4836
4834
  };
4837
4835
  }
4838
4836
 
4837
+ export declare class DefaultPublicationRunContext extends ExtensionContextBase<ExtensionContextType.PublicationRun> implements IPublicationRunContext {
4838
+ private readonly _publicationRun;
4839
+ constructor(extensionsRegistry: ExtensionsRegistry, _publicationRun: IPublicationRun);
4840
+ get id(): string;
4841
+ get projectAutoIncrementPublicationCount(): number;
4842
+ get projectPublishedSemanticVersion(): string;
4843
+ get projectVersion(): string;
4844
+ get projectId(): string;
4845
+ get cloudProvider(): CloudProviders;
4846
+ get triggeredBy(): string;
4847
+ get createdAt(): string;
4848
+ get updatedAt(): string;
4849
+ get status(): PublicationStatus;
4850
+ get steps(): PublicationStep[];
4851
+ get editor(): IEditor;
4852
+ get explicitResources(): Map<string, ExplicitInfrastructureResource>;
4853
+ get implicitGlobalResources(): Map<InfrastructureResourceType.CompiledLocalCodebase | InfrastructureResourceType.CloudHostedCodebase, ImplicitGlobalInfrastructureResource | null>;
4854
+ get finalGlobalEvent(): ProjectPublicationEventName | null;
4855
+ get finalStatus(): PublicationStatus.Success | PublicationStatus.Failed | null;
4856
+ }
4857
+
4839
4858
  export declare enum DefinitionEntityDependencyField {
4840
4859
  Extends = "extends",
4841
4860
  Implements = "implements"
@@ -5843,9 +5862,10 @@ export declare class ExtensionContextBase<CT = ExtensionContextType> implements
5843
5862
 
5844
5863
  export declare enum ExtensionContextType {
5845
5864
  Logic = "logic",
5846
- GUI = "gui",
5865
+ EditorGUI = "editor-gui",
5847
5866
  Editor = "editor",
5848
- Compile = "compile"
5867
+ Compile = "compile",
5868
+ PublicationRun = "publication-run"
5849
5869
  }
5850
5870
 
5851
5871
  export declare interface ExtensionManifest {
@@ -5896,24 +5916,26 @@ export declare enum ExtensionPermissions {
5896
5916
  UpdateGUIGlobalTheme = "update:gui:global:theme"
5897
5917
  }
5898
5918
 
5899
- export declare class ExtensionsRegistry<TEditorContext extends Omit<IEditorContext, '_editor'> = IEditorContext, TProjectLogicContext extends DefaultProjectLogicContext = DefaultProjectLogicContext, TCompilerContext extends ICompilerContext = ICompilerContext> implements Omit<IEventsBus, 'destroy'> {
5919
+ export declare class ExtensionsRegistry<TEditorContext extends Omit<IEditorContext, '_editor'> = IEditorContext, TProjectLogicContext extends DefaultProjectLogicContext = DefaultProjectLogicContext, TCompilerContext extends ICompilerContext = ICompilerContext, TPublicationRunContext extends Omit<IPublicationRunContext, '_publicationRun'> = Omit<DefaultPublicationRunContext, '_publicationRun'>> implements Omit<IEventsBus, 'destroy'> {
5900
5920
  private events;
5901
5921
  private extensionsRegistry;
5902
5922
  private initialized;
5903
5923
  private initializedContexts;
5904
5924
  onResolveEditorContextCallback: () => TEditorContext | null;
5905
5925
  onResolveProjectLogicContextCallback: () => TProjectLogicContext | null;
5906
- onResolveGUIContextCallback: () => null;
5926
+ onResolveEditorGUIContextCallback: () => null;
5907
5927
  onResolveCompileContextCallback: () => TCompilerContext | null;
5928
+ onResolvePublicationRunContextCallback: () => TPublicationRunContext | null;
5908
5929
  constructor(events?: Events);
5909
5930
  onResolveEditorContext(callback: () => TEditorContext | null): void;
5910
5931
  onResolveProjectLogicContext(callback: () => TProjectLogicContext | null): void;
5911
5932
  onResolveGUIContext(callback: () => null): void;
5912
5933
  onResolveCompileContext(callback: () => TCompilerContext | null): void;
5934
+ onResolvePublicationRunContext(callback: () => TPublicationRunContext | null): void;
5913
5935
  get extensionInOrder(): IRegisteredExtension[];
5914
5936
  setup(): Promise<void>;
5915
5937
  private requestContext;
5916
- requestContexts(_module: IRegisteredExtension<any>, _contextTypes?: ExtensionContextType[]): (TEditorContext | TProjectLogicContext | TCompilerContext)[];
5938
+ requestContexts(_module: IRegisteredExtension<any>, _contextTypes?: ExtensionContextType[]): (TEditorContext | TProjectLogicContext | TCompilerContext | TPublicationRunContext)[];
5917
5939
  requestExtension<T = any>(moduleId: string): IRegisteredExtension<T>;
5918
5940
  register(extension: IRegisteredExtension<any>): void;
5919
5941
  initAll(): Promise<void>;
@@ -13666,7 +13688,7 @@ export declare interface IExecutionResult {
13666
13688
  result: IDynamicValue | null;
13667
13689
  }
13668
13690
 
13669
- export declare type IExtensionContext = IEditorContext | IProjectLogicContext | ICompilerContext;
13691
+ export declare type IExtensionContext = IEditorContext | IProjectLogicContext | ICompilerContext | IPublicationRunContext;
13670
13692
 
13671
13693
  declare interface IExtensionContextBase extends Omit<IEventsBus, 'destroy'> {
13672
13694
  extensionsRegistry: ExtensionsRegistry;
@@ -14101,9 +14123,9 @@ export declare type IncompatibleScope = IIncompatibleParallelInProjectScope | II
14101
14123
 
14102
14124
  export declare function inferArgumentDeclarationDataType(entity: ArgumentDeclarationState, _changeSet?: ChangeSet | null): DataTypeState | null;
14103
14125
 
14104
- export declare function inferBreakStatementDataType(entity: BreakStatementState, changeSet?: ChangeSet | null): DataTypeState | null;
14126
+ export declare function inferBreakStatementDataType(entity: BreakStatementState, _changeSet?: ChangeSet | null): DataTypeState | null;
14105
14127
 
14106
- export declare function inferContinueStatementDataType(entity: ContinueStatementState, changeSet?: ChangeSet | null): DataTypeState | null;
14128
+ export declare function inferContinueStatementDataType(entity: ContinueStatementState, _changeSet?: ChangeSet | null): DataTypeState | null;
14107
14129
 
14108
14130
  export declare function inferDataType(entity: EntityWithValueState | PropertyState | ValueDescriptorState | TerminationEntityState, changeSet?: ChangeSet | null): DataTypeState | null;
14109
14131
 
@@ -14119,7 +14141,7 @@ export declare function inferOutputMapDataType(entity: OutputMapState, _changeSe
14119
14141
 
14120
14142
  export declare function inferPropertyDataType(entity: PropertyState, _changeSet?: ChangeSet | null): DataTypeState | null;
14121
14143
 
14122
- export declare function inferReturnStatementDataType(entity: ReturnStatementState, changeSet?: ChangeSet | null): DataTypeState | null;
14144
+ export declare function inferReturnStatementDataType(entity: ReturnStatementState, _changeSet?: ChangeSet | null): DataTypeState | null;
14123
14145
 
14124
14146
  export declare function inferSearchDataType(entity: SearchState, _changeSet?: ChangeSet | null): DataTypeState | null;
14125
14147
 
@@ -14960,6 +14982,18 @@ export declare interface IPropertyTransfer extends IProperty_meta, IBaseVariable
14960
14982
  parent: IDefinitionEntity | IDefinitionEntityReference | IBuiltInBaseEntity | IBuiltInBaseEntityReference | IPrimitiveEntity | IPrimitiveEntityReference;
14961
14983
  }
14962
14984
 
14985
+ export declare interface IPublicationRun extends IPublication {
14986
+ steps: PublicationStep[];
14987
+ editor: IEditor;
14988
+ explicitResources: Map<string, ExplicitInfrastructureResource>;
14989
+ implicitGlobalResources: Map<InfrastructureResourceType.CompiledLocalCodebase | InfrastructureResourceType.CloudHostedCodebase, ImplicitGlobalInfrastructureResource | null>;
14990
+ finalGlobalEvent: ProjectPublicationEventName | null;
14991
+ finalStatus: PublicationStatus.Success | PublicationStatus.Failed | null;
14992
+ }
14993
+
14994
+ export declare interface IPublicationRunContext extends ExtensionContextBase<ExtensionContextType.PublicationRun>, Omit<IPublicationRun, 'events' | 'initRegistry' | 'extensionsRegistry' | 'contextType'> {
14995
+ }
14996
+
14963
14997
  export declare interface IReadOnlyEntityPersistanceRepository {
14964
14998
  APILoad<T extends Array<any> = any[]>(entityId: EntityId, ...otherArgs: T): Promise<ElementShallowTransfer | null>;
14965
14999
  }
@@ -15279,7 +15313,6 @@ export declare interface ITerminationStatementGenerationTarget extends IChildEnt
15279
15313
  calledBySuccess: EntityId[];
15280
15314
  calledByError: EntityId[];
15281
15315
  calledByEntry: EntityId[];
15282
- implements?: EntityId;
15283
15316
  parent: EntityId;
15284
15317
  }
15285
15318
 
@@ -15289,7 +15322,6 @@ export declare interface ITerminationStatementShallowTransfer extends ITerminati
15289
15322
  calledByError: PassThroughCallableEntityReference[];
15290
15323
  calledByEntry: EntryPointEntityReference[];
15291
15324
  defaultValue: ILiteralValueReference | null;
15292
- implements: IActionDescriptorReference | null;
15293
15325
  dataType: IDataTypeReference | null;
15294
15326
  parent: EntityWithLogicScopeReference;
15295
15327
  throws: IInputMapReference | null;
@@ -15302,7 +15334,6 @@ export declare interface ITerminationStatementTransfer extends ITerminationState
15302
15334
  calledByEntry: (EntryPointEntity | EntryPointEntityTransfer | EntryPointEntityReference)[];
15303
15335
  defaultValue: ILiteralValue | ILiteralValueTransfer | null;
15304
15336
  dataType: IDataType | IDataTypeTransfer | null;
15305
- implements: IActionDescriptor | IActionDescriptorTransfer | null;
15306
15337
  parent: EntityWithLogicScope | EntityWithLogicScopeReference;
15307
15338
  throws: IInputMap | IInputMapTransfer | null;
15308
15339
  }
@@ -17903,7 +17934,7 @@ declare namespace propertyValidation {
17903
17934
  }
17904
17935
  export { propertyValidation }
17905
17936
 
17906
- export declare class PublicationRun implements IPublication {
17937
+ export declare class PublicationRun implements IPublicationRun, IPublicationRunContext {
17907
17938
  id: string;
17908
17939
  projectAutoIncrementPublicationCount: number;
17909
17940
  projectPublishedSemanticVersion: string;
@@ -17920,7 +17951,18 @@ export declare class PublicationRun implements IPublication {
17920
17951
  implicitGlobalResources: Map<InfrastructureResourceType.CompiledLocalCodebase | InfrastructureResourceType.CloudHostedCodebase, ImplicitGlobalInfrastructureResource | null>;
17921
17952
  finalGlobalEvent: ProjectPublicationEventName | null;
17922
17953
  finalStatus: PublicationStatus.Success | PublicationStatus.Failed | null;
17954
+ contextType: ExtensionContextType.PublicationRun;
17955
+ extensionsRegistry: ExtensionsRegistry<any, any, any, PublicationRun>;
17923
17956
  constructor(data: IPublication, editor: IEditor);
17957
+ get off(): Events['off'];
17958
+ get on(): Events['on'];
17959
+ get emit(): Events['emit'];
17960
+ get emitAsync(): Events['emitAsync'];
17961
+ get emitAsyncAll(): Events['emitAsyncAll'];
17962
+ get emitAsyncAllSettled(): Events['emitAsyncAllSettled'];
17963
+ get emitAsyncSequentially(): Events['emitAsyncSequentially'];
17964
+ get emitAsyncSequentiallyAll(): Events['emitAsyncSequentiallyAll'];
17965
+ get emitAsyncSequentiallyAllSettled(): Events['emitAsyncSequentiallyAllSettled'];
17924
17966
  get project(): ProjectState;
17925
17967
  getInfraTypes(resourceTypes: InfrastructureResourceType[]): PublicationStep[];
17926
17968
  getStepsTypes(stepTypes: PublishingSequenceStep[]): PublicationStep[];
@@ -17931,6 +17973,8 @@ export declare class PublicationRun implements IPublication {
17931
17973
  setSteps(steps: IDeploymentStepDefinition[], emittedAt: string): void;
17932
17974
  addStep(step: IDeploymentStepDefinition, emittedAt: string): void;
17933
17975
  onUpdate(message: ILiveMessageDTO): void;
17976
+ requestExtension<T = any>(moduleId: string): T;
17977
+ initRegistry(): Promise<ExtensionsRegistry<any, any, any, PublicationRun>>;
17934
17978
  }
17935
17979
 
17936
17980
  export declare class PublicationStep implements IDeploymentStepDefinition<InfrastructureResource> {
@@ -18433,9 +18477,10 @@ export declare const RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION = "Return
18433
18477
 
18434
18478
  export declare enum ReturnStatementDependencyField {
18435
18479
  Parent = "return-statement-parent-field",
18436
- ImplementsField = "return-statement-implements-field",
18437
18480
  DataTypeEntity = "return-statement-data-type-entity-field",
18438
- DataType = "return-statement-data-type-field"
18481
+ DataType = "return-statement-data-type-field",
18482
+ ParentDataType = "return-statement-parent-data-type-field",
18483
+ ParentDataTypeEntity = "return-statement-parent-data-type-entity-field"
18439
18484
  }
18440
18485
 
18441
18486
  export declare type ReturnStatementPayloadUnion = ReturnStatementState | ReturnStatementTypesUnion;
@@ -18450,7 +18495,6 @@ export declare class ReturnStatementState extends UserManagedVersionedState impl
18450
18495
  readsValue: ValueWritingEntityState | null;
18451
18496
  dataType: DataTypeState | null;
18452
18497
  defaultValue: LiteralValueState | null;
18453
- implements: ActionDescriptorState | null;
18454
18498
  calledBySuccess: PassThroughCallableEntityState[];
18455
18499
  calledByError: PassThroughCallableEntityState[];
18456
18500
  calledByEntry: EntryPointEntityState[];
@@ -18507,7 +18551,7 @@ export declare class ReturnStatementState extends UserManagedVersionedState impl
18507
18551
  }[]): UserManagedEntityState;
18508
18552
  syncDependents(changeSet?: ChangeSet | null): IChangeSet<UserManagedEntityState>;
18509
18553
  onDetachedDependencyRemoved(_dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
18510
- onDetachedDependencyRestored(dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
18554
+ onDetachedDependencyRestored(_dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
18511
18555
  unsubscribeFromDependencies(): UserManagedEntityState;
18512
18556
  subscribeToDependencies(): UserManagedEntityState;
18513
18557
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
@@ -18527,7 +18571,6 @@ export declare class ReturnStatementState extends UserManagedVersionedState impl
18527
18571
  addOutput(output: InputMapState, changeSet?: ChangeSet | null): ReturnStatementState;
18528
18572
  removeOutput(output: InputMapState, changeSet?: ChangeSet | null): ReturnStatementState;
18529
18573
  setParent(parent: EntryPointEntityState, changeSet?: ChangeSet | null): ReturnStatementState;
18530
- setImplements(implementsEntity: ActionDescriptorState | null, changeSet?: ChangeSet | null): ReturnStatementState;
18531
18574
  setValueWriter(valueWriter: ValueWritingEntityState | null, changeSet?: ChangeSet | null): ReturnStatementState;
18532
18575
  removeValueWriter(changeSet?: ChangeSet | null): ReturnStatementState;
18533
18576
  initChildren(changeSet?: ChangeSet | null): ReturnStatementState;
@@ -19619,6 +19662,8 @@ export declare function toPascalCase(str: string): string;
19619
19662
 
19620
19663
  export declare function toProjectLogicContext(extensionsRegistry: ExtensionsRegistry, project: ProjectState): DefaultProjectLogicContext;
19621
19664
 
19665
+ export declare function toPublicationRunContext(extensionsRegistry: ExtensionsRegistry, publicationRun: IPublicationRun): DefaultPublicationRunContext;
19666
+
19622
19667
  /**
19623
19668
  * Converts a code-like identifier into a human-readable sentence:
19624
19669
  * - turns underscores and dashes into spaces