@elyx-code/project-logic-tree 0.0.6343 → 0.0.6345
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 +46 -7
- package/dist/index.js +10977 -10447
- package/dist/index.umd.cjs +85 -85
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare class ActionDescriptorState extends VersionedState implements IAc
|
|
|
28
28
|
initialData: IActionDescriptorTransfer | IActionDescriptor;
|
|
29
29
|
readonly id: EntityId;
|
|
30
30
|
name: string;
|
|
31
|
+
codeName: string | null;
|
|
31
32
|
description: string | null;
|
|
32
33
|
readonly type: EntityType.ActionDescriptor;
|
|
33
34
|
inputs: ValueDescriptorState[];
|
|
@@ -377,6 +378,7 @@ export declare class ArgumentDeclarationState extends VersionedState implements
|
|
|
377
378
|
initialData: IArgumentDeclaration | IArgumentDeclarationTransfer;
|
|
378
379
|
readonly id: EntityId;
|
|
379
380
|
name: string;
|
|
381
|
+
codeName: string | null;
|
|
380
382
|
description: string | null;
|
|
381
383
|
index: number;
|
|
382
384
|
required: boolean;
|
|
@@ -2295,6 +2297,7 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
|
|
|
2295
2297
|
initialData: IDefinitionEntity | IDefinitionEntityTransfer;
|
|
2296
2298
|
readonly id: EntityId;
|
|
2297
2299
|
name: string;
|
|
2300
|
+
codeName: string | null;
|
|
2298
2301
|
description: string | null;
|
|
2299
2302
|
x: number;
|
|
2300
2303
|
y: number;
|
|
@@ -2779,6 +2782,8 @@ export declare const ENTITY_RECUSION_OPTIONS_DEFAULTS: IEntityRecursionOptions;
|
|
|
2779
2782
|
|
|
2780
2783
|
export declare const ENTITY_TYPES: EntityType[];
|
|
2781
2784
|
|
|
2785
|
+
export declare const ENTITY_WITH_CODE_NAMES_TYPES: EntityType[];
|
|
2786
|
+
|
|
2782
2787
|
export declare const ENTITY_WITH_DECLARATION_TYPES: EntityType[];
|
|
2783
2788
|
|
|
2784
2789
|
export declare const ENTITY_WITH_LOGIC_SCOPE_TYPES: EntityType[];
|
|
@@ -2976,6 +2981,18 @@ export declare enum EntityType {
|
|
|
2976
2981
|
|
|
2977
2982
|
export declare type EntityVersion = string;
|
|
2978
2983
|
|
|
2984
|
+
export declare type EntityWithCodeNames = IDefinitionEntity | IFunctionDeclaration | IArgumentDeclaration | IReturnDeclaration | IProperty | IVariableDeclaration | IInstalledProject | IActionDescriptor | IValueDescriptor;
|
|
2985
|
+
|
|
2986
|
+
export declare type EntityWithCodeNamesGenerationTarget = IDefinitionEntityGenerationTarget | IFunctionDeclarationGenerationTarget | IArgumentDeclarationGenerationTarget | IReturnDeclarationGenerationTarget | IPropertyGenerationTarget | IVariableDeclaration | IInstalledProjectGenerationTarget | IActionDescriptorGenerationTarget | IValueDescriptorGenerationTarget;
|
|
2987
|
+
|
|
2988
|
+
export declare type EntityWithCodeNamesReference = IDefinitionEntityReference | IFunctionDeclarationReference | IArgumentDeclarationReference | IReturnDeclarationReference | IPropertyReference | IVariableDeclarationReference | IInstalledProjectReference | IActionDescriptorReference | IValueDescriptorReference;
|
|
2989
|
+
|
|
2990
|
+
export declare type EntityWithCodeNamesShallowTransfer = IDefinitionEntityShallowTransfer | IFunctionDeclarationShallowTransfer | IArgumentDeclarationShallowTransfer | IReturnDeclarationShallowTransfer | IPropertyShallowTransfer | IVariableDeclarationShallowTransfer | IInstalledProjectShallowTransfer | IActionDescriptorShallowTransfer | IValueDescriptorShallowTransfer;
|
|
2991
|
+
|
|
2992
|
+
export declare type EntityWithCodeNamesState = DefinitionEntityState | FunctionDeclarationState | ArgumentDeclarationState | ReturnDeclarationState | PropertyState | VariableDeclarationState | InstalledProjectState | ActionDescriptorState | ValueDescriptorState;
|
|
2993
|
+
|
|
2994
|
+
export declare type EntityWithCodeNamesTransfer = IDefinitionEntityTransfer | IFunctionDeclarationTransfer | IArgumentDeclarationTransfer | IReturnDeclarationTransfer | IPropertyTransfer | IVariableDeclarationTransfer | IInstalledProjectTransfer | IActionDescriptorTransfer | IValueDescriptorTransfer;
|
|
2995
|
+
|
|
2979
2996
|
export declare type EntityWithLogicScope = EntryPointEntity | ILoop;
|
|
2980
2997
|
|
|
2981
2998
|
export declare type EntityWithLogicScope_meta = EntryPointEntity_meta | ILoop_meta;
|
|
@@ -3582,6 +3599,7 @@ export declare class FunctionDeclarationState extends VersionedState implements
|
|
|
3582
3599
|
initialData: IFunctionDeclarationTransfer | IFunctionDeclaration;
|
|
3583
3600
|
readonly id: EntityId;
|
|
3584
3601
|
name: string;
|
|
3602
|
+
codeName: string | null;
|
|
3585
3603
|
description: string | null;
|
|
3586
3604
|
x: number;
|
|
3587
3605
|
y: number;
|
|
@@ -7963,6 +7981,7 @@ export declare interface IActionDescriptor_base {
|
|
|
7963
7981
|
id: EntityId;
|
|
7964
7982
|
type: EntityType.ActionDescriptor;
|
|
7965
7983
|
name: string;
|
|
7984
|
+
codeName: string | null;
|
|
7966
7985
|
description: string | null;
|
|
7967
7986
|
}
|
|
7968
7987
|
|
|
@@ -8331,6 +8350,7 @@ export declare interface IBaseVariable extends IBaseVariableTransfer, IChildEnti
|
|
|
8331
8350
|
|
|
8332
8351
|
export declare interface IBaseVariable_meta extends IGenericBase {
|
|
8333
8352
|
name: string;
|
|
8353
|
+
codeName: string | null;
|
|
8334
8354
|
description: string | null;
|
|
8335
8355
|
required: boolean;
|
|
8336
8356
|
constant: boolean;
|
|
@@ -8340,7 +8360,8 @@ export declare interface IBaseVariableGenerationTarget {
|
|
|
8340
8360
|
id: EntityId;
|
|
8341
8361
|
type: EntityType;
|
|
8342
8362
|
name: string;
|
|
8343
|
-
|
|
8363
|
+
codeName?: string | null;
|
|
8364
|
+
description?: string | null;
|
|
8344
8365
|
required?: boolean;
|
|
8345
8366
|
constant?: boolean;
|
|
8346
8367
|
parent?: EntityId;
|
|
@@ -8348,6 +8369,7 @@ export declare interface IBaseVariableGenerationTarget {
|
|
|
8348
8369
|
|
|
8349
8370
|
export declare interface IBaseVariableShallowTransfer extends IGenericBase, IChildEntityShallowTransfer {
|
|
8350
8371
|
name: string;
|
|
8372
|
+
codeName: string | null;
|
|
8351
8373
|
description: string | null;
|
|
8352
8374
|
defaultValue: ILiteralValueReference | null;
|
|
8353
8375
|
required: boolean;
|
|
@@ -8743,12 +8765,14 @@ export declare interface IDefinitionEntity extends IDefinitionEntityTransfer, IC
|
|
|
8743
8765
|
}
|
|
8744
8766
|
|
|
8745
8767
|
export declare interface IDefinitionEntity_meta extends IBaseEntity_meta, IBaseCanvasDraggable {
|
|
8768
|
+
codeName: string | null;
|
|
8746
8769
|
type: EntityType.DefinitionEntity;
|
|
8747
8770
|
}
|
|
8748
8771
|
|
|
8749
8772
|
export declare interface IDefinitionEntityGenerationTarget extends IChildEntityGenerationTarget, IBaseEntityGenerationTarget {
|
|
8750
8773
|
id: EntityId;
|
|
8751
8774
|
type: EntityType.DefinitionEntity;
|
|
8775
|
+
codeName?: string | null;
|
|
8752
8776
|
extends: EntityId[];
|
|
8753
8777
|
implements: EntityId[];
|
|
8754
8778
|
parent?: EntityId;
|
|
@@ -8760,6 +8784,7 @@ export declare interface IDefinitionEntityReference extends IGenericReference {
|
|
|
8760
8784
|
|
|
8761
8785
|
export declare interface IDefinitionEntityShallowTransfer extends IBaseCanvasDraggable, IChildEntityShallowTransfer, IBaseEntityShallowTransfer {
|
|
8762
8786
|
type: EntityType.DefinitionEntity;
|
|
8787
|
+
codeName: string | null;
|
|
8763
8788
|
extends: (IDefinitionEntityReference | IBuiltInBaseEntityReference)[];
|
|
8764
8789
|
implements: (IDefinitionEntityReference | IBuiltInBaseEntityReference)[];
|
|
8765
8790
|
parent: IProjectReference | IDataTypeReference;
|
|
@@ -8768,6 +8793,7 @@ export declare interface IDefinitionEntityShallowTransfer extends IBaseCanvasDra
|
|
|
8768
8793
|
|
|
8769
8794
|
export declare interface IDefinitionEntityTransfer extends IBaseCanvasDraggable, IChildEntityTransfer, IBaseEntityTransfer {
|
|
8770
8795
|
type: EntityType.DefinitionEntity;
|
|
8796
|
+
codeName: string | null;
|
|
8771
8797
|
extends: (IDefinitionEntity | IDefinitionEntityTransfer | IBuiltInBaseEntity | IBuiltInBaseEntityTransfer)[];
|
|
8772
8798
|
implements: (IDefinitionEntity | IDefinitionEntityTransfer | IBuiltInBaseEntity | IBuiltInBaseEntityTransfer)[];
|
|
8773
8799
|
parent: IProject | IProjectReference | IDataType | IDataTypeReference;
|
|
@@ -8789,7 +8815,7 @@ export declare interface IEditableEntityPersistanceRepository extends IReadOnlyE
|
|
|
8789
8815
|
APILoadVersion<T extends Array<any> = any[]>(entityId: EntityId, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: T): Promise<ElementShallowTransfer | null>;
|
|
8790
8816
|
}
|
|
8791
8817
|
|
|
8792
|
-
export declare interface IEditor
|
|
8818
|
+
export declare interface IEditor extends IUndoableInterface, IValueResolutionContext {
|
|
8793
8819
|
ready: boolean;
|
|
8794
8820
|
hasLoadedLogic: boolean;
|
|
8795
8821
|
destroyed: boolean;
|
|
@@ -8809,7 +8835,6 @@ export declare interface IEditor<Options extends object = {}> extends IUndoableI
|
|
|
8809
8835
|
onLogicLoadingCompleteCallback: null | ((chunk: any) => void);
|
|
8810
8836
|
onRenderedCallback: null | (() => void);
|
|
8811
8837
|
onProjectSetupErrorCallback: null | ((error: any) => void);
|
|
8812
|
-
constructor(projectId: EntityId, socket: IWebsocketsClient | null, events: Events | null, options?: Options): IEditor;
|
|
8813
8838
|
get execution(): Execution | null;
|
|
8814
8839
|
get project(): ProjectState;
|
|
8815
8840
|
get lastExecutionResults(): EfimeralValueStore;
|
|
@@ -8834,7 +8859,7 @@ export declare interface IEditor<Options extends object = {}> extends IUndoableI
|
|
|
8834
8859
|
handlePersistChangeSetMessage(message: PersistChangeSetEntityActionRequestPayload): void;
|
|
8835
8860
|
getLogic(options?: {
|
|
8836
8861
|
mockLogic?: ProjectState;
|
|
8837
|
-
}): Promise<
|
|
8862
|
+
}): Promise<ProjectState | null>;
|
|
8838
8863
|
undo(): Promise<void>;
|
|
8839
8864
|
redo(): Promise<void>;
|
|
8840
8865
|
injectLocalImplementationOfSearchExecution(): void;
|
|
@@ -8975,6 +9000,7 @@ export declare interface IFunctionDeclaration extends IFunctionDeclarationTransf
|
|
|
8975
9000
|
export declare interface IFunctionDeclaration_meta extends IBaseCanvasDraggable {
|
|
8976
9001
|
type: EntityType.FunctionDeclaration;
|
|
8977
9002
|
name: string;
|
|
9003
|
+
codeName: string | null;
|
|
8978
9004
|
description: string | null;
|
|
8979
9005
|
collapsed: boolean;
|
|
8980
9006
|
private: boolean;
|
|
@@ -8985,7 +9011,8 @@ export declare interface IFunctionDeclarationGenerationTarget extends IChildEnti
|
|
|
8985
9011
|
id: EntityId;
|
|
8986
9012
|
type: EntityType.FunctionDeclaration;
|
|
8987
9013
|
name: string;
|
|
8988
|
-
|
|
9014
|
+
codeName?: string | null;
|
|
9015
|
+
description?: string | null;
|
|
8989
9016
|
private?: boolean;
|
|
8990
9017
|
implements?: EntityId;
|
|
8991
9018
|
extends?: EntityId;
|
|
@@ -9108,6 +9135,7 @@ export declare interface IInputMap_meta extends IGenericBase {
|
|
|
9108
9135
|
type: EntityType.InputMap;
|
|
9109
9136
|
index: number;
|
|
9110
9137
|
name: string | null;
|
|
9138
|
+
codeName: string | null;
|
|
9111
9139
|
description: string | null;
|
|
9112
9140
|
}
|
|
9113
9141
|
|
|
@@ -9115,6 +9143,7 @@ export declare interface IInputMapGenerationTarget extends IChildEntityGeneratio
|
|
|
9115
9143
|
id: EntityId;
|
|
9116
9144
|
type: EntityType.InputMap;
|
|
9117
9145
|
name?: string;
|
|
9146
|
+
codeName?: string;
|
|
9118
9147
|
description?: string;
|
|
9119
9148
|
declaration: EntityId | null;
|
|
9120
9149
|
parent: EntityId;
|
|
@@ -9145,6 +9174,7 @@ export declare interface IInstalledProject extends IInstalledProjectTransfer, IC
|
|
|
9145
9174
|
export declare interface IInstalledProject_meta extends IGenericBase, IBaseCanvasDraggable {
|
|
9146
9175
|
type: EntityType.InstalledProject;
|
|
9147
9176
|
name: string;
|
|
9177
|
+
codeName: string | null;
|
|
9148
9178
|
description: string | null;
|
|
9149
9179
|
}
|
|
9150
9180
|
|
|
@@ -9152,7 +9182,8 @@ export declare interface IInstalledProjectGenerationTarget extends IChildEntityG
|
|
|
9152
9182
|
id: EntityId;
|
|
9153
9183
|
type: EntityType.InstalledProject;
|
|
9154
9184
|
name: string;
|
|
9155
|
-
|
|
9185
|
+
codeName?: string | null;
|
|
9186
|
+
description?: string | null;
|
|
9156
9187
|
implements: EntityId;
|
|
9157
9188
|
}
|
|
9158
9189
|
|
|
@@ -9353,6 +9384,7 @@ export declare class InputMapState extends VersionedState implements IInputMap,
|
|
|
9353
9384
|
readonly id: EntityId;
|
|
9354
9385
|
index: number;
|
|
9355
9386
|
name: string | null;
|
|
9387
|
+
codeName: string | null;
|
|
9356
9388
|
description: string | null;
|
|
9357
9389
|
readonly type: EntityType.InputMap;
|
|
9358
9390
|
defaultValue: LiteralValueState | null;
|
|
@@ -9482,6 +9514,7 @@ export declare class InstalledProjectState extends VersionedState implements IIn
|
|
|
9482
9514
|
initialData: IInstalledProject | IInstalledProjectTransfer;
|
|
9483
9515
|
readonly id: EntityId;
|
|
9484
9516
|
readonly name: string;
|
|
9517
|
+
readonly codeName: string | null;
|
|
9485
9518
|
readonly description: string | null;
|
|
9486
9519
|
x: number;
|
|
9487
9520
|
y: number;
|
|
@@ -10502,7 +10535,6 @@ export declare interface ITest extends Execution {
|
|
|
10502
10535
|
entitiesRelatedToExecution: TestableEntityState[];
|
|
10503
10536
|
validation: IDynamicValue[];
|
|
10504
10537
|
persistExecutionValues: boolean;
|
|
10505
|
-
constructor(project: IEditor, entryPoint: DraggablePlayableEntityState): ITest;
|
|
10506
10538
|
initExecutionValueStores(): void;
|
|
10507
10539
|
pause(): Promise<void>;
|
|
10508
10540
|
stop(): Promise<void>;
|
|
@@ -10555,6 +10587,7 @@ export declare interface IValueDescriptor_base {
|
|
|
10555
10587
|
id: EntityId;
|
|
10556
10588
|
type: EntityType.ValueDescriptor;
|
|
10557
10589
|
name: string;
|
|
10590
|
+
codeName: string | null;
|
|
10558
10591
|
description: string | null;
|
|
10559
10592
|
required: boolean;
|
|
10560
10593
|
parentRelationType?: ValueDescriptorParentChildRelation;
|
|
@@ -12406,6 +12439,7 @@ export declare class PropertyState extends VersionedState implements IProperty,
|
|
|
12406
12439
|
initialData: IProperty | IPropertyTransfer;
|
|
12407
12440
|
readonly id: EntityId;
|
|
12408
12441
|
name: string;
|
|
12442
|
+
codeName: string | null;
|
|
12409
12443
|
description: string | null;
|
|
12410
12444
|
private: boolean;
|
|
12411
12445
|
abstract: boolean;
|
|
@@ -12798,6 +12832,8 @@ export declare function resolveDefinitionEntityDataTypeLabel(entity: DefinitionE
|
|
|
12798
12832
|
|
|
12799
12833
|
export declare function resolveDefinitionEntitySubheader(entity: DefinitionEntityState): string;
|
|
12800
12834
|
|
|
12835
|
+
export declare function resolveEntityCodeName(entity: EntityPayloadUnion, project: ProjectState): string | null;
|
|
12836
|
+
|
|
12801
12837
|
export declare function resolveEntityDataTypeLabel(entity: PropertyState | EntityWithValueState | ValueDescriptorState): string;
|
|
12802
12838
|
|
|
12803
12839
|
export declare function resolveEntityName(entity: EntityPayloadUnion, project: ProjectState): string;
|
|
@@ -12876,6 +12912,7 @@ export declare class ReturnDeclarationState extends VersionedState implements IR
|
|
|
12876
12912
|
initialData: IReturnDeclaration | IReturnDeclarationTransfer;
|
|
12877
12913
|
readonly id: EntityId;
|
|
12878
12914
|
name: string;
|
|
12915
|
+
codeName: string | null;
|
|
12879
12916
|
description: string | null;
|
|
12880
12917
|
index: number;
|
|
12881
12918
|
required: boolean;
|
|
@@ -14818,6 +14855,7 @@ export declare class ValueDescriptorState extends VersionedState implements IVal
|
|
|
14818
14855
|
initialData: IValueDescriptor | IValueDescriptorTransfer;
|
|
14819
14856
|
readonly id: EntityId;
|
|
14820
14857
|
name: string;
|
|
14858
|
+
codeName: string | null;
|
|
14821
14859
|
description: string | null;
|
|
14822
14860
|
index: number;
|
|
14823
14861
|
required: boolean;
|
|
@@ -15003,6 +15041,7 @@ export declare class VariableDeclarationState extends VersionedState implements
|
|
|
15003
15041
|
initialData: IVariableDeclaration | IVariableDeclarationTransfer;
|
|
15004
15042
|
readonly id: EntityId;
|
|
15005
15043
|
name: string;
|
|
15044
|
+
codeName: string | null;
|
|
15006
15045
|
description: string | null;
|
|
15007
15046
|
required: boolean;
|
|
15008
15047
|
constant: boolean;
|