@elyx-code/project-logic-tree 0.0.6733 → 0.0.6734
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9712,7 +9712,7 @@ export declare function checkIsNestedScope(parent: EntityWithLogicScopeState | P
|
|
|
9712
9712
|
*
|
|
9713
9713
|
* @param dataType
|
|
9714
9714
|
*/
|
|
9715
|
-
export declare function checkIsNullable(dataType: DataTypeState): boolean;
|
|
9715
|
+
export declare function checkIsNullable(dataType: DataTypeState | null): boolean;
|
|
9716
9716
|
|
|
9717
9717
|
export declare function checkIsRequiredValue(entity: EntityWithValueState | PropertyState | ValueDescriptorState): boolean;
|
|
9718
9718
|
|
package/dist/index.js
CHANGED
|
@@ -78103,7 +78103,20 @@ function $f(o) {
|
|
|
78103
78103
|
}
|
|
78104
78104
|
function mL(o) {
|
|
78105
78105
|
var p, i;
|
|
78106
|
-
|
|
78106
|
+
if (o) {
|
|
78107
|
+
if (!o.entity && !o.foreignKeyRef && !o.orChildrenGroup && !o.andChildrenGroup)
|
|
78108
|
+
return !0;
|
|
78109
|
+
if (((p = o.entity) == null ? void 0 : p.id) === X["primitive-entity"].null.id)
|
|
78110
|
+
return !0;
|
|
78111
|
+
if (((i = o.entity) == null ? void 0 : i.type) === d.LiteralValue && o.entity.value === null)
|
|
78112
|
+
return !0;
|
|
78113
|
+
if (o.orChildrenGroup && o.orChildrenGroup.some((n) => mL(n)))
|
|
78114
|
+
return !0;
|
|
78115
|
+
if (o.andChildrenGroup && o.andChildrenGroup.length === 1 && mL(o.andChildrenGroup[0]))
|
|
78116
|
+
return !0;
|
|
78117
|
+
} else
|
|
78118
|
+
return !0;
|
|
78119
|
+
return !1;
|
|
78107
78120
|
}
|
|
78108
78121
|
var pe = /* @__PURE__ */ ((o) => (o.Error = "error", o.Warning = "warning", o))(pe || {}), ge = /* @__PURE__ */ ((o) => (o.InvalidObjectStructure = "invalid-object-structure", o.NameNotUniqueInScope = "name-not-unique-in-scope", o.NameAsResolvedCodeNameNotUniqueInScope = "name-as-resolved-code-name-not-unique-in-scope", o.NameMustStartWithLetterOrUnderscore = "name-must-start-with-letter-or-underscore", o.NameCanOnlyContainLettersNumbersUnderscoreAndSpaces = "name-can-only-contain-letters-numbers-underscore-and-spaces", o.NameIsForbiddenKeyword = "name-is-forbidden-keyword", o.EmptyName = "empty-name", o.MissingCaller = "missing-caller", o.PropertyOverwritesOtherSiblingWithSameName = "property-overwrites-other-sibling-with-same-name", o.PropertyOverwritesOtherSiblingWithSameImplementation = "property-overwrites-other-sibling-with-same-name", o.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName = "property-overwrites-other-implemented-entitys-property-with-same-name", o.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation = "property-overwrites-other-implemented-entitys-property-with-same-name", o.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation = "property-overwrites-other-extended-entitys-property-with-same-name", o.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName = "property-overwrites-other-extended-entitys-property-with-same-name", o.PropertyOverwritesBasePropertyWithSameName = "property-overwrites-base-property-with-same-name", o.PropertyOverwritesBasePropertyWithSameImplementation = "property-overwrites-base-property-with-same-name", o.MethodOverwritesOtherSiblingWithSameName = "method-overwrites-other-sibling-with-same-name", o.MethodOverwritesOtherSiblingWithSameImplementation = "method-overwrites-other-sibling-with-same-name", o.MethodOverwritesOtherImplementedEntitysMethodWithSameName = "method-overwrites-other-implemented-entitys-method-with-same-name", o.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation = "method-overwrites-other-implemented-entitys-method-with-same-name", o.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation = "method-overwrites-other-extended-entitys-method-with-same-name", o.MethodOverwritesOtherExtendedEntitysMethodWithSameName = "method-overwrites-other-extended-entitys-method-with-same-name", o.MethodOverwritesBaseMethodWithSameName = "method-overwrites-base-method-with-same-name", o.MethodOverwritesBaseMethodWithSameImplementation = "method-overwrites-base-method-with-same-name", o.LoopBodyFunctionOverwrite = "loop-body-function-overwrite", o.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", o.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", o.UnreachableEntity = "unreachable-entity", o.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", o.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", o.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", o.InternalCallDeclarationNotFound = "internal-call-declaration-not-found", o.InternalCallDeclarationIsInvalidType = "internal-call-declaration-is-invalid-type", o.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", o.GlobalVariableDeclarationCannotCatchError = "global-variable-declaration-cannot-catch-error", o.GlobalVariableDeclarationCannotCallOnError = "global-variable-declaration-cannot-call-on-error", o.GlobalVariableDeclarationCannotBeCalled = "global-variable-declaration-cannot-be-called", o))(ge || {}), ae = /* @__PURE__ */ ((o) => (o.RootReference = "root-reference", o.InvalidUUIDStringFormat = "invalid-uuid-string-format", o.ReferencedEntityNotFound = "referenced-entity-not-found", o.EntityIdNotUnique = "entity-id-not-unique", o.BuiltInEntityGenerated = "built-in-entity-generated", o.BuiltInEntityUpdated = "built-in-entity-updated", o.BuiltInEntityDeleted = "built-in-entity-deleted", o.UnknownEntityType = "unknown-entity-type", o.MissingTypeProperty = "missing-type-property", o.MissingIdProperty = "missing-id-property", o.BuiltInEntityParent = "built-in-entity-parent", o.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", o.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", o.RecommendedImplementOperationAction = "recommended-implement-operation-action", o.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", o.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", o.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", o.RecommendedImplementConditionAction = "recommended-implement-condition-action", o.InvalidReferenceObjectStructure = "invalid-reference-object-structure", o.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", o.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", o.InvalidParentReference = "invalid-parent-reference", o.InvalidImplementsReference = "invalid-implements-reference", o.InvalidExtendsReference = "invalid-extends-reference", o.InvalidGenerationActionPayload = "invalid-generation-action-payload", o.InvalidReference = "invalid-reference", o.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", o.InvalidUpdateEntityOperation = "invalid-update-entity-operation", o.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", o.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", o.UnrecognizedProperty = "unrecognized-property", o.SelfReference = "self-reference", o.DuplicateReference = "duplicate-reference", o.CallerWithIncompatibleScope = "caller-with-incompatible-scope", o.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", o.InvalidInputMapDeclaration = "invalid-input-map-declaration", o.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", o.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", o.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", o.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", o.OutputOverwrite = "output-overwrite", o.InputOverwrite = "input-overwrite", o.IncompatibleScope = "incompatible-scope", o.InvalidParentUpdate = "invalid-parent-update", o.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", o.InvalidParentRelationType = "invalid-parent-relation-type", o))(ae || {}), he = /* @__PURE__ */ ((o) => (o.NoPrimaryKeyProperty = "no-primary-key-property", o.MissingEnumOptions = "missing-enum-options", o.ScopeWithoutLogic = "scope-without-logic", o.AbstractEntityImplements = "abstract-entity-implements", o.ImplementsIncompatibleEntities = "implements-incompatible-entities", o.ExtendsIncompatibleEntities = "extends-incompatible-entities", o.NonAbstractExtendingAbstractEntity = "non-abstract-extending-abstract-entity", o.AbstractExtendingNonAbstractEntity = "abstract-extending-non-abstract-entity", o.NonStaticExtendingStaticEntity = "non-static-extending-static-entity", o.StaticExtendingNonStaticEntity = "static-extending-non-static-entity", o.StaticImplementingNonStaticEntity = "static-implementing-non-static-entity", o.NonStaticImplementingStaticEntity = "non-static-implementing-static-entity", o.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", o.ExtendingNonInteractiveEntity = "extending-non-interactive-entity", o.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", o.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", o.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", o.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", o.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", o.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", o.IncorrectEntityImplementation = "incorrect-entity-implementation", o.IncorrectMethodImplementation = "incorrect-method-implementation", o.IncorrectPropertyImplementation = "incorrect-property-implementation", o.PropertyImplementsNonAbstact = "property-implements-non-abstract", o.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", o.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", o.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", o.MissingPropertyImplementation = "missing-property-implementation", o.MissingMethodImplementation = "missing-method-implementation", o.NoProperties = "no-properties", o.ReadingFromIncompatibleType = "reading-from-incompatible-type", o.WritingToIncompatibleType = "writing-to-incompatible-type", o.InvalidPropertiesCombination = "invalid-properties-combination", o.DisconnectedCallableEntity = "disconnected-callable-entity", o.VariableReadsValueAndInternalCall = "variable-reads-value-and-internal-call", o.VariableWritesValuesAndInternalCall = "variable-writes-values-and-internal-call", o.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", o.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", o.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", o.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", o.MissingRequiredValue = "missing-required-value", o.LackingReturnStatementOnSomeBranches = "lacking-return-statement-on-some-branches", o.LastCalledEntityMustBeReturnEntity = "last-called-entity-must-be-return-entity", o.ValueReadingOverridesConstantProperty = "value-reading-overrides-constant-property", o.DefaultValueOverridesConstantProperty = "default-value-overrides-constant-property", o.ValueReadingOverridesConstantVariable = "value-reading-overrides-constant-variable", o.DefaultValueOverridesConstantVariable = "default-value-overrides-constant-variable", o))(he || {});
|
|
78109
78122
|
class De {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyx-code/project-logic-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6734",
|
|
4
4
|
"author": "Sergio Herrero",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",
|