@elyx-code/project-logic-tree 0.0.6812 → 0.0.6814
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.cjs +244 -238
- package/dist/index.d.ts +56 -11
- package/dist/index.js +48305 -47501
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9518,7 +9518,6 @@ export declare enum BaseValueDescriptorIds {
|
|
|
9518
9518
|
ValuesAlreadyConnected = "values-already-connected",
|
|
9519
9519
|
CannotReadMoreThanOneValue = "cannot-read-more-than-one-value",
|
|
9520
9520
|
CannotReadValueFromChildren = "cannot-read-value-from-children",
|
|
9521
|
-
CannotWriteValueToChildren = "cannot-write-value-to-children",
|
|
9522
9521
|
CannotBeCalledByChildren = "cannot-be-called-by-children",
|
|
9523
9522
|
ExecutionsAlreadyConnected = "executions-already-connected",
|
|
9524
9523
|
DataTypesNotCompatible = "data-types-not-compatible",
|
|
@@ -9542,7 +9541,11 @@ export declare enum BaseValueDescriptorIds {
|
|
|
9542
9541
|
CannotInteractWithOutputInVariableWithInternalCalls = "cannot-interact-with-output-in-variable-with-internal-calls",
|
|
9543
9542
|
PropertyIsConstantItsValueCantBeReset = "property-is-constant-its-value-cant-be-reset",
|
|
9544
9543
|
CannotWriteValueOfGlobalVariableDeclaration = "cannot-write-value-of-global-variable-declaration",
|
|
9545
|
-
CannotReSetValueOfConstantVariable = "cannot-reset-value-of-constant-variable"
|
|
9544
|
+
CannotReSetValueOfConstantVariable = "cannot-reset-value-of-constant-variable",
|
|
9545
|
+
CannotConnectToOwnNode = "cannot-connect-to-own-node",
|
|
9546
|
+
VariableDeclarationCannotBeMovedToLowerScopeBecauseInstancesUsage = "variable-declaration-cannot-be-moved-to-lower-scope-because-instances-usage",
|
|
9547
|
+
CannotChangeScopeBecauseItIsCalledByOtherEntities = "cannot-change-scope-because-it-is-called-by-other-entities",
|
|
9548
|
+
CannotChangeScopeBecauseItCallsOtherEntities = "cannot-change-scope-because-it-calls-other-entities"
|
|
9546
9549
|
}
|
|
9547
9550
|
|
|
9548
9551
|
export declare type CanvasEntityDisabledReason = CanvasEntityConnectionDisabledReason | CanvasEntityTestingDisabledReason | CanvasEntityOtherDisabledReason | StateMutationErrorCode;
|
|
@@ -12451,6 +12454,8 @@ export declare enum BaseValueDescriptorIds {
|
|
|
12451
12454
|
|
|
12452
12455
|
export declare type EntityActionPayload = PersistChangeSetEntityActionPayload;
|
|
12453
12456
|
|
|
12457
|
+
export declare function entityDisabledReasonToShortReadableError(code: CanvasEntityConnectionDisabledReason | string): string;
|
|
12458
|
+
|
|
12454
12459
|
export declare class EntityError<TCode = SharedEntityErrorCode | EntityInstanceErrorCode> implements IEntityError<TCode> {
|
|
12455
12460
|
id: string;
|
|
12456
12461
|
message: string;
|
|
@@ -14234,9 +14239,13 @@ export declare enum BaseValueDescriptorIds {
|
|
|
14234
14239
|
|
|
14235
14240
|
export declare function flattenCallers(entity: CallableEntityState): CallerEntityState[];
|
|
14236
14241
|
|
|
14237
|
-
export declare function flattenCalls(entities: CallableEntityState[]
|
|
14242
|
+
export declare function flattenCalls(entities: CallableEntityState[], options?: {
|
|
14243
|
+
sorting?: 'local-y-axis';
|
|
14244
|
+
}): CallableEntityState[];
|
|
14238
14245
|
|
|
14239
|
-
export declare function flattenCallsAsync(entities: CallableEntityState[], options?: YieldOptions
|
|
14246
|
+
export declare function flattenCallsAsync(entities: CallableEntityState[], options?: YieldOptions & {
|
|
14247
|
+
sorting?: 'local-y-axis';
|
|
14248
|
+
}): Promise<CallableEntityState[]>;
|
|
14240
14249
|
|
|
14241
14250
|
export declare function flattenCanvasAncestorsUntil(entity: CanvasEntityState, until: CanvasEntityState): {
|
|
14242
14251
|
list: CanvasEntityState[];
|
|
@@ -14331,9 +14340,20 @@ export declare enum BaseValueDescriptorIds {
|
|
|
14331
14340
|
|
|
14332
14341
|
export declare function flattenDetachedBranch(entity: CanvasEntityState): CanvasEntityState[];
|
|
14333
14342
|
|
|
14334
|
-
|
|
14343
|
+
/**
|
|
14344
|
+
* Recursively flattens all callable entities called by the given caller entity.
|
|
14345
|
+
* It doesn't include itself
|
|
14346
|
+
*
|
|
14347
|
+
* @param {CallerEntityState} element
|
|
14348
|
+
* @returns {CallableEntityState[]} Not including self
|
|
14349
|
+
*/
|
|
14350
|
+
export declare function flattenElementCalls(element: CallerEntityState, options?: {
|
|
14351
|
+
sorting?: 'local-y-axis';
|
|
14352
|
+
}): CallableEntityState[];
|
|
14335
14353
|
|
|
14336
|
-
export declare function flattenElementCallsAsync(element: CallerEntityState, options?: YieldOptions
|
|
14354
|
+
export declare function flattenElementCallsAsync(element: CallerEntityState, options?: YieldOptions & {
|
|
14355
|
+
sorting?: 'local-y-axis';
|
|
14356
|
+
}): Promise<CallableEntityState[]>;
|
|
14337
14357
|
|
|
14338
14358
|
export declare function flattenElementCallsOnTheSameScope(element: CallerEntityState): CallableEntityState[];
|
|
14339
14359
|
|
|
@@ -15303,7 +15323,11 @@ export declare enum BaseValueDescriptorIds {
|
|
|
15303
15323
|
InmutableMetaProperties = "inmutable-meta-properties-explanation",
|
|
15304
15324
|
InmutableUpstreamProperties = "inmutable-upstream-properties-explanation",
|
|
15305
15325
|
DownstreamProperties = "downstream-properties-explanation",
|
|
15306
|
-
FullEditingProperties = "full-editing-properties-explanation"
|
|
15326
|
+
FullEditingProperties = "full-editing-properties-explanation",
|
|
15327
|
+
OutputMapsAutogeneration = "output-maps-autogeneration-explanation",
|
|
15328
|
+
AvailableOutputMapsForGivenParentCallableEntity = "available-output-maps-for-given-parent-callable-entity-explanation",
|
|
15329
|
+
InputMapsAutogeneration = "input-maps-autogeneration-explanation",
|
|
15330
|
+
AvailableInputMapsForGivenParentCallableEntity = "available-input-maps-for-given-parent-callable-entity-explanation"
|
|
15307
15331
|
}
|
|
15308
15332
|
|
|
15309
15333
|
/** lodash-like get(obj, path, defaultValue) with precise "missing" detection */
|
|
@@ -15360,9 +15384,13 @@ export declare enum BaseValueDescriptorIds {
|
|
|
15360
15384
|
|
|
15361
15385
|
export declare function getAllGloballyDeclaredFunctionDeclarationsExplanation(project: ProjectState): string;
|
|
15362
15386
|
|
|
15387
|
+
export declare function getAllGlobalValueReadingEntities(project: ProjectState, options?: YieldOptions): Promise<ValueReadingEntityState[]>;
|
|
15388
|
+
|
|
15389
|
+
export declare function getAllGlobalValueWritingEntities(project: ProjectState, options?: YieldOptions): Promise<ValueWritingEntityState[]>;
|
|
15390
|
+
|
|
15363
15391
|
export declare function getAllValueReadingChildren(entity: CanvasEntityState | InternalCallState): ValueReadingEntityState[];
|
|
15364
15392
|
|
|
15365
|
-
export declare function
|
|
15393
|
+
export declare function getAllValueWritingChildren(entity: CanvasEntityState | InternalCallState): ValueWritingEntityState[];
|
|
15366
15394
|
|
|
15367
15395
|
export declare function getAllVariablesInScope(project: ProjectState, variableDeclarations: VariableDeclarationState[], targetEntity?: UserManagedEntityState): VariableDeclarationState[];
|
|
15368
15396
|
|
|
@@ -18554,14 +18582,23 @@ export declare enum BaseValueDescriptorIds {
|
|
|
18554
18582
|
|
|
18555
18583
|
export declare function getImplementedBuiltInEntity(entity: DefinitionEntityState): BuiltInBaseEntityState | null;
|
|
18556
18584
|
|
|
18557
|
-
export declare function getIncompatibleConnectionEntitiesAsync(entity: ArgumentDeclarationState | InputMapState | OutputMapState | LoopState | CallerEntityState | VariableState | ValueDescriptorState | ExecutableEntityState, connectionType: ConnectionNodeType, options?: YieldOptions
|
|
18585
|
+
export declare function getIncompatibleConnectionEntitiesAsync(entity: ArgumentDeclarationState | InputMapState | OutputMapState | LoopState | CallerEntityState | VariableState | ValueDescriptorState | ExecutableEntityState, connectionType: ConnectionNodeType, options?: YieldOptions & {
|
|
18586
|
+
allowReadWriteToFixableScope?: boolean;
|
|
18587
|
+
}): Promise<{
|
|
18558
18588
|
compatible: {
|
|
18559
|
-
[id: string]:
|
|
18589
|
+
[id: string]: {
|
|
18590
|
+
requiresCallConnectionTo: CallableEntityState | null;
|
|
18591
|
+
requiresCallConnectionToFrom: CallerEntityState | null;
|
|
18592
|
+
entity: EntityState;
|
|
18593
|
+
};
|
|
18560
18594
|
};
|
|
18561
18595
|
incompatible: {
|
|
18562
18596
|
[id: string]: {
|
|
18563
18597
|
entity: EntityState;
|
|
18564
18598
|
reasons: CanvasEntityConnectionDisabledReason[];
|
|
18599
|
+
fixable: boolean;
|
|
18600
|
+
requiresCallConnectionTo: CallableEntityState | null;
|
|
18601
|
+
requiresCallConnectionToFrom: CallerEntityState | null;
|
|
18565
18602
|
};
|
|
18566
18603
|
};
|
|
18567
18604
|
}>;
|
|
@@ -22174,6 +22211,8 @@ export declare enum BaseValueDescriptorIds {
|
|
|
22174
22211
|
|
|
22175
22212
|
export declare const INMUTABLE_UPSTREAM_PROPERTIES_EXPLANATION = "Some upstream relational properties of entities cannot be changed after the initial creation, like 'parent' for some entities, etc...\nThese are called inmutable upstream properties.";
|
|
22176
22213
|
|
|
22214
|
+
export declare const INPUT_MAPS_AUTOGENERATION_EXPLANATION = "Input-maps don't ever need to be explicitly created by the user. They are automatically generated to match the shape required by the parent callable entity. For example, a variable that contains an object will have one input-map for each property of the object. Or a function-declaration or operation will have one input-map for each property of the returned object, if any.";
|
|
22215
|
+
|
|
22177
22216
|
export declare enum InputMapDependencyField {
|
|
22178
22217
|
Declaration = "declaration",
|
|
22179
22218
|
DataTypeEntity = "data-type-entity"
|
|
@@ -29448,6 +29487,8 @@ export declare enum BaseValueDescriptorIds {
|
|
|
29448
29487
|
|
|
29449
29488
|
export declare const outEncDefault: ILiteralValueTransfer;
|
|
29450
29489
|
|
|
29490
|
+
export declare const OUTPUT_MAPS_AUTOGENERATION_EXPLANATION = "Output-maps don't ever need to be explicitly created by the user. They are automatically generated to match the shape required by the parent callable entity. For example, a variable that contains an object will have one output-map for each property of the object. Or a function-call or operation will have one output-map for each property of the returned object, if any. ONLY output-maps that have a 'parentRelationType' of 'error' can be added manually, to represent the value of a caught error, and as long as one doesn't already exist in the same parent callable node.";
|
|
29491
|
+
|
|
29451
29492
|
export declare enum OutputMapDependencyField {
|
|
29452
29493
|
Declaration = "declaration",
|
|
29453
29494
|
DataTypeEntity = "data-type-entity"
|
|
@@ -32524,7 +32565,11 @@ export declare enum BaseValueDescriptorIds {
|
|
|
32524
32565
|
ValueReadingOverridesConstantProperty = "value-reading-overrides-constant-property",
|
|
32525
32566
|
DefaultValueOverridesConstantProperty = "default-value-overrides-constant-property",
|
|
32526
32567
|
ValueReadingOverridesConstantVariable = "value-reading-overrides-constant-variable",
|
|
32527
|
-
DefaultValueOverridesConstantVariable = "default-value-overrides-constant-variable"
|
|
32568
|
+
DefaultValueOverridesConstantVariable = "default-value-overrides-constant-variable",
|
|
32569
|
+
CannotSuccessCallItself = "cannot-success-call-itself",
|
|
32570
|
+
CannotErrorCallItself = "cannot-error-call-itself",
|
|
32571
|
+
CannotEntryCallItself = "cannot-entry-call-itself",
|
|
32572
|
+
CannotValueWriteItself = "cannot-value-write-itself"
|
|
32528
32573
|
}
|
|
32529
32574
|
|
|
32530
32575
|
export declare const STATIC_PROPERTY_HEIGHT = 49;
|