@elyx-code/project-logic-tree 0.0.6415 → 0.0.6416

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
@@ -15357,6 +15357,8 @@ export declare function toPascalCase(str: string): string;
15357
15357
 
15358
15358
  export declare function toProjectLogicContext(extensionsRegistry: ExtensionsRegistry, project: ProjectState): DefaultProjectLogicContext;
15359
15359
 
15360
+ export declare function toSnakeCase(str: string): string;
15361
+
15360
15362
  export declare function transitionProjectVersion(from: ChangeSet | 'initial', to: ChangeSet | 'initial', project: ProjectState): IProjectVersionTransitionConfig;
15361
15363
 
15362
15364
  export declare function translateLogicErrorCode(error: EntityError): string;
package/dist/index.js CHANGED
@@ -103640,6 +103640,11 @@ function p_t(d) {
103640
103640
  /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
103641
103641
  ) || []).join("-");
103642
103642
  }
103643
+ function JDt(d) {
103644
+ return (d.match(
103645
+ /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
103646
+ ) || []).join("_");
103647
+ }
103643
103648
  function KI(d) {
103644
103649
  return p_t(d).toLowerCase();
103645
103650
  }
@@ -103714,7 +103719,7 @@ function Pp(d) {
103714
103719
  `${se(d.entity, d.project).slice(0, 1).toUpperCase() + se(d.entity, d.project).slice(1)} value${u}`
103715
103720
  );
103716
103721
  }
103717
- function JDt(d) {
103722
+ function WDt(d) {
103718
103723
  if (!d)
103719
103724
  return "Any data type";
103720
103725
  const u = d.getDataType(null);
@@ -103760,7 +103765,7 @@ function h_t(d) {
103760
103765
  }
103761
103766
  return "Entity";
103762
103767
  }
103763
- function WDt(d) {
103768
+ function HDt(d) {
103764
103769
  const u = xw(d);
103765
103770
  if (!u) {
103766
103771
  const i = Op(d);
@@ -104282,7 +104287,7 @@ Please provide a unique 'name' string.`,
104282
104287
  }
104283
104288
  return i;
104284
104289
  }
104285
- function HDt(d, u) {
104290
+ function zDt(d, u) {
104286
104291
  switch (d.type) {
104287
104292
  case f.DefinitionEntity:
104288
104293
  return FB(d, u);
@@ -104454,7 +104459,7 @@ function WB(d) {
104454
104459
  }
104455
104460
  return Tr(d.errors, u);
104456
104461
  }
104457
- const zDt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
104462
+ const YDt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
104458
104463
  __proto__: null,
104459
104464
  validate: JB,
104460
104465
  validateImplementation: WB
@@ -106726,7 +106731,7 @@ function XB(d) {
106726
106731
  }
106727
106732
  return u;
106728
106733
  }
106729
- const YDt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
106734
+ const XDt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
106730
106735
  __proto__: null,
106731
106736
  getBaseMethodsNotImplemented: YB,
106732
106737
  getBasePropertiesNotImplemented: zB,
@@ -109341,7 +109346,7 @@ function ee(d, u) {
109341
109346
  const i = dr(d, u);
109342
109347
  return i.subscribe(), i;
109343
109348
  }
109344
- function XDt(d, u) {
109349
+ function QDt(d, u) {
109345
109350
  if (!d)
109346
109351
  throw new Error("Entity is null");
109347
109352
  switch (d.type) {
@@ -109447,7 +109452,7 @@ const me = {
109447
109452
  cascade: !1
109448
109453
  }, B_t = {
109449
109454
  APILoad: async (d, ...u) => null
109450
- }, QDt = {
109455
+ }, eOt = {
109451
109456
  APICreate: async (d, ...u) => d,
109452
109457
  APIUpdate: async (d, ...u) => d,
109453
109458
  APIDelete: async (d, ...u) => d,
@@ -109456,23 +109461,23 @@ const me = {
109456
109461
  APILoadVersion: async (d, u, ...i) => null,
109457
109462
  ...B_t
109458
109463
  };
109459
- class eOt {
109460
- }
109461
- class tOt extends x_t {
109464
+ class tOt {
109462
109465
  }
109463
- class rOt {
109466
+ class rOt extends x_t {
109464
109467
  }
109465
109468
  class iOt {
109466
109469
  }
109467
109470
  class sOt {
109468
109471
  }
109469
- class QB {
109472
+ class nOt {
109470
109473
  }
109471
- class nOt extends QB {
109474
+ class QB {
109472
109475
  }
109473
109476
  class aOt extends QB {
109474
109477
  }
109475
- class oOt {
109478
+ class oOt extends QB {
109479
+ }
109480
+ class lOt {
109476
109481
  }
109477
109482
  class o0 {
109478
109483
  static initReadsValue(u) {
@@ -109531,7 +109536,7 @@ class l0 {
109531
109536
  ]), u.writesValues;
109532
109537
  }
109533
109538
  }
109534
- class lOt {
109539
+ class dOt {
109535
109540
  }
109536
109541
  var Lr = /* @__PURE__ */ ((d) => (d.PROJECT_INITIALIZED = "project-initialized", d.CHANGE_SET_CLOSED = "change-set-closed", d.EXPLICIT_DEFINITION_ENTITY_ADDED = "explicit-definition-entity-added", d.EXPLICIT_DEFINITION_ENTITY_REMOVED = "explicit-definition-entity-removed", d.EXPLICIT_DEFINITION_ENTITY_UPDATED = "explicit-definition-entity-updated", d.PERSISTED_DEFINITION_ENTITY_ADDED = "persisted-definition-entity-added", d.PERSISTED_DEFINITION_ENTITY_REMOVED = "persisted-definition-entity-removed", d.PERSISTED_DEFINITION_ENTITY_UPDATED = "persisted-definition-entity-updated", d.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED = "relational-database-definition-entity-added", d.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED = "relational-database-definition-entity-removed", d.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED = "relational-database-definition-entity-updated", d))(Lr || {});
109537
109542
  const eU = {
@@ -112224,7 +112229,7 @@ class tRt extends ga {
112224
112229
  p.codeNativeValueValidation = (e, y) => eRt(e, y);
112225
112230
  }
112226
112231
  }
112227
- const dOt = "test_primitive_entities_export";
112232
+ const uOt = "test_primitive_entities_export";
112228
112233
  class rRt extends ga {
112229
112234
  constructor(i) {
112230
112235
  super(Ti, i);
@@ -112522,7 +112527,7 @@ function Gw(d, u) {
112522
112527
  (a) => V(a.createdAt).isAfter(V(u) || !!a.previousVersion)
112523
112528
  );
112524
112529
  }
112525
- function uOt(d, {
112530
+ function cOt(d, {
112526
112531
  enrich: u
112527
112532
  } = { enrich: !0 }, i) {
112528
112533
  const a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), p = Array.from(
@@ -112640,7 +112645,7 @@ function cRt(d, {
112640
112645
  E.initialized = !0, E.captureVersion();
112641
112646
  })), a.initialized = !0, p == null || p.attemptAutoclose("project-init", a.id), a;
112642
112647
  }
112643
- async function cOt(d, u = Jy, i) {
112648
+ async function pOt(d, u = Jy, i) {
112644
112649
  const a = {
112645
112650
  ...Jy,
112646
112651
  ...u
@@ -112670,7 +112675,7 @@ async function cOt(d, u = Jy, i) {
112670
112675
  }
112671
112676
  return null;
112672
112677
  }
112673
- function pOt(d) {
112678
+ function fOt(d) {
112674
112679
  return Vd[d.id] && delete Vd[d.id], null;
112675
112680
  }
112676
112681
  export {
@@ -112700,10 +112705,10 @@ export {
112700
112705
  ve as BUILT_IN_BASE_ENTITY_IDS,
112701
112706
  ms as BUILT_IN_ENTITY_TYPES,
112702
112707
  Ey as BUILT_IN_FUNCTION_IMPLEMENTATIONS__PREFIX,
112703
- rOt as BaseCanvasDraggableState,
112708
+ iOt as BaseCanvasDraggableState,
112704
112709
  xe as BaseEntityNames,
112705
112710
  it as BaseRegisteredExtension,
112706
- tOt as BaseState,
112711
+ rOt as BaseState,
112707
112712
  Vp as BaseValueDescriptorIds,
112708
112713
  uIt as BreakStatementDependencyField,
112709
112714
  ol as BreakStatementState,
@@ -112734,7 +112739,7 @@ export {
112734
112739
  RWe as COMPARISON_CONDITIONS,
112735
112740
  gWe as CONDITIONS,
112736
112741
  C9e as CUSTOM_ENTITY_OPERATIONS,
112737
- sOt as CallableEntityClass,
112742
+ nOt as CallableEntityClass,
112738
112743
  QB as CallerEntityClass,
112739
112744
  EB as CanvasEntityConnectionDisabledReason,
112740
112745
  IB as CanvasEntityOtherDisabledReason,
@@ -112742,7 +112747,7 @@ export {
112742
112747
  j as ChangeSet,
112743
112748
  xM as ChangeSetChangeCaptureType,
112744
112749
  F as ChangeSetEntityChangeType,
112745
- iOt as ChildEntityBaseClass,
112750
+ sOt as ChildEntityBaseClass,
112746
112751
  s1t as CommonStringValidationErrorCodes,
112747
112752
  Cr as ComparisonOperatorTypes,
112748
112753
  oEt as ConditionDependencyField,
@@ -112772,7 +112777,7 @@ export {
112772
112777
  kI as DefinitionEntityDependencyField,
112773
112778
  Ra as DefinitionEntityState,
112774
112779
  Ie as DynamicValueTypes,
112775
- QDt as EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS,
112780
+ eOt as EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS,
112776
112781
  LI as ENTITIES_WITH_VALLUES_EXPLANATION,
112777
112782
  me as ENTITY_PERSISTANCE_OPTIONS_DEFAULTS,
112778
112783
  ke as ENTITY_RECUSION_OPTIONS_DEFAULTS,
@@ -112800,9 +112805,9 @@ export {
112800
112805
  oe as EntityInstanceErrorCode,
112801
112806
  pr as EntityOperations,
112802
112807
  f as EntityType,
112803
- lOt as EntityWithLogicScopeClass,
112804
- oOt as EntityWithValueClass,
112805
- nOt as EntryPointEntityClass,
112808
+ dOt as EntityWithLogicScopeClass,
112809
+ lOt as EntityWithValueClass,
112810
+ aOt as EntryPointEntityClass,
112806
112811
  mn as Execution,
112807
112812
  rr as ExecutionOperations,
112808
112813
  cB as ExecutionState,
@@ -112922,7 +112927,7 @@ export {
112922
112927
  RB as PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION,
112923
112928
  Fwt as PUBLISHING_DISABLED_REASONS,
112924
112929
  j_t as ParallelExecutionOperation,
112925
- aOt as PassThroughCallableEntityClass,
112930
+ oOt as PassThroughCallableEntityClass,
112926
112931
  X_t as PersistedEntity,
112927
112932
  fs as PrimitiveEntityState,
112928
112933
  X as PrimitiveTypes,
@@ -112962,7 +112967,7 @@ export {
112962
112967
  wa as Traverser,
112963
112968
  H5e as USER_MANAGED_ENTITY_TYPES,
112964
112969
  MIt as UUIDModule,
112965
- eOt as UserManagedEntityStateTemplate,
112970
+ tOt as UserManagedEntityStateTemplate,
112966
112971
  _B as VALUE_READING_ENTITIES_EXPLANATION,
112967
112972
  ya as VALUE_READING_TYPES,
112968
112973
  qwt as VALUE_WRITING_ENTITIES_EXPLANATION,
@@ -113044,7 +113049,7 @@ export {
113044
113049
  En as checkScopeCompatibility,
113045
113050
  a0 as checkShouldInputOrOutputBePartOfFinalVariableObjectValue,
113046
113051
  X$ as checkShouldPropertyBePartOfFinalVariableObjectValue,
113047
- uOt as cloneProject,
113052
+ cOt as cloneProject,
113048
113053
  igt as conditionValidation,
113049
113054
  QRt as continueStatementValidation,
113050
113055
  pDt as convertToAbstract,
@@ -113086,7 +113091,7 @@ export {
113086
113091
  f9e as createNewInstanceOperationOutputEntityDeclarationParentRef,
113087
113092
  c9e as createNewInstanceOperationRef,
113088
113093
  E_t as createSemanticId,
113089
- XDt as createStateFromGenerationTargetType,
113094
+ QDt as createStateFromGenerationTargetType,
113090
113095
  dr as createStateFromType,
113091
113096
  ee as createStateFromTypeAndSubscribe,
113092
113097
  hA as cronJobBuiltInBaseEntity,
@@ -113101,10 +113106,10 @@ export {
113101
113106
  Da as datePrototype,
113102
113107
  wM as dateValueAutogenerationSchema,
113103
113108
  yN as definitionEntityToZodSchema,
113104
- YDt as definitionEntityValidation,
113109
+ XDt as definitionEntityValidation,
113105
113110
  nN as deletePersistedEntityMethod,
113106
113111
  FJe as deletePersistedEntityMethodParentRef,
113107
- pOt as deleteRootProject,
113112
+ fOt as deleteRootProject,
113108
113113
  Hvt as emitSideEffects,
113109
113114
  uN as emptyCondition,
113110
113115
  yWe as emptyConditionArgument,
@@ -113457,7 +113462,7 @@ export {
113457
113462
  UDt as getPeristedEntities,
113458
113463
  BRt as getPlayableEntityReferenceSchema,
113459
113464
  xRt as getPlayableEntityTypeSchema,
113460
- cOt as getProject,
113465
+ pOt as getProject,
113461
113466
  s0 as getPrototypeByType,
113462
113467
  cDt as getRecordOrderForTraversal,
113463
113468
  Uw as getRecusriveParentsIds,
@@ -113807,7 +113812,7 @@ export {
113807
113812
  xd as propagateNewStaticPropertyValueAsTypeToVariables,
113808
113813
  Md as propagateNewStaticPropertyValueToVariables,
113809
113814
  lHe as propertyToZodSchema,
113810
- zDt as propertyValidation,
113815
+ YDt as propertyValidation,
113811
113816
  Tf as readValueFromWritter,
113812
113817
  OC as rebaseStack,
113813
113818
  Ti as relationalDatabaseBuiltInBaseEntity,
@@ -113850,10 +113855,10 @@ export {
113850
113855
  $B as resolveDataTypeEntityOrNestedChildrenFromLiteralValue,
113851
113856
  Pp as resolveDataTypeLabel,
113852
113857
  Cgt as resolveDatatypeIconName,
113853
- WDt as resolveDefinitionEntityDataTypeLabel,
113858
+ HDt as resolveDefinitionEntityDataTypeLabel,
113854
113859
  fB as resolveDefinitionEntitySubheader,
113855
113860
  Q$ as resolveEntityCodeName,
113856
- JDt as resolveEntityDataTypeLabel,
113861
+ WDt as resolveEntityDataTypeLabel,
113857
113862
  se as resolveEntityName,
113858
113863
  Pgt as resolveEntitySubheader,
113859
113864
  bDt as resolveFirstCallsSecond,
@@ -113953,7 +113958,7 @@ export {
113953
113958
  AM as stringValueAutogenerationSchema,
113954
113959
  eP as suggestNewIdForEntity,
113955
113960
  w$ as syncSearchEntityOutput,
113956
- dOt as test_primitive_entities_export,
113961
+ uOt as test_primitive_entities_export,
113957
113962
  Ur as toCamelCase,
113958
113963
  Ogt as toEditorContext,
113959
113964
  Yi as toEntityState,
@@ -113961,6 +113966,7 @@ export {
113961
113966
  KI as toLowerCaseKebabCase,
113962
113967
  $p as toPascalCase,
113963
113968
  Dgt as toProjectLogicContext,
113969
+ JDt as toSnakeCase,
113964
113970
  gC as transitionProjectVersion,
113965
113971
  Lgt as translateLogicErrorCode,
113966
113972
  Mgt as translateLogicErrorCodeShort,
@@ -114000,7 +114006,7 @@ export {
114000
114006
  Ygt as validateGenerationUpdate,
114001
114007
  oDt as validateLoopEntityDeclaration,
114002
114008
  Ml as validateMissingValue,
114003
- HDt as validateName,
114009
+ zDt as validateName,
114004
114010
  Xwt as validateOperationEntityDeclaration,
114005
114011
  SB as validatePropertyName,
114006
114012
  vo as validateReachability,