@elyx-code/project-logic-tree 0.0.6111 → 0.0.6113

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.
@@ -21,7 +21,7 @@ export declare enum EntityType {
21
21
  ReturnDeclaration = "return-declaration",
22
22
  OutputMap = "output-map",
23
23
  PrimitiveEntity = "primitive-entity",
24
- LiteralValue = "primitive-value",
24
+ LiteralValue = "literal-value",
25
25
  Property = "property",
26
26
  Operation = "operation",
27
27
  Condition = "condition",
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var oT = Object.defineProperty;
2
2
  var lT = (i, e, t) => e in i ? oT(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
3
  var d = (i, e, t) => (lT(i, typeof e != "symbol" ? e + "" : e, t), t);
4
- var n = /* @__PURE__ */ ((i) => (i.CustomEntity = "custom-entity", i.BuiltInBaseEntity = "built-in-base-entity", i.Project = "project", i.InstalledProject = "installed-project", i.GlobalEvent = "global-event", i.DataType = "data-type", i.FunctionCall = "function-call", i.FunctionDeclaration = "function-declaration", i.ActionDescriptor = "action-descriptor", i.ValueDescriptor = "value-descriptor", i.ArgumentDeclaration = "argument-declaration", i.InputMap = "input-map", i.ReturnStatement = "return-statement", i.BreakStatement = "break-statement", i.ContinueStatement = "continue-statement", i.ReturnDeclaration = "return-declaration", i.OutputMap = "output-map", i.PrimitiveEntity = "primitive-entity", i.LiteralValue = "primitive-value", i.Property = "property", i.Operation = "operation", i.Condition = "condition", i.VariableDeclaration = "variable-declaration", i.VariableInstance = "variable-instance", i.Search = "search", i.Loop = "loop", i.InternalCall = "internal-call", i.GenericReference = "generic-reference", i))(n || {}), x = /* @__PURE__ */ ((i) => (i.HTTP_ENDPOINT = "BUILT_IN_HTTP_ENDPOINT_ENTITY", i.RELATIONAL_DATABASE = "BUILT_IN_RELATIONAL_DATABASE_ENTITY", i.PERSISTED_ENTITY = "BUILT_IN_PERSISTED_ENTITY_ENTITY", i.CRON_JOB = "BUILT_IN_CRON_JOB_ENTITY", i.EXECUTION = "BUILT_IN_EXECUTION_ENTITY", i.KEY_VALUE_PARAM = "BUILT_IN_KEY_VALUE_PARAM_ENTITY", i))(x || {}), qe = /* @__PURE__ */ ((i) => (i.CurrentDateAndTime = "current-date-and-time", i.Unique = "unique", i.Random = "random", i))(qe || {}), g = /* @__PURE__ */ ((i) => (i.EntityTemplate = "entity-template", i.ActionDescriptor = "action-descriptor", i.String = "string", i.Number = "number", i.Boolean = "boolean", i.Null = "null", i.Enum = "enum", i.KeyValue = "key-value", i.Date = "date", i.UUID = "uuid", i.File = "file", i.Untyped = "untyped", i))(g || {}), Be = /* @__PURE__ */ ((i) => (i.Addition = "addition", i.Subtraction = "subtraction", i.Multiplication = "multiplication", i.Division = "division", i.Remainder = "remainder", i.Exponentiation = "exponentiation", i))(Be || {}), K = /* @__PURE__ */ ((i) => (i.Join = "string-join", i.Split = "string-split", i.DeleteLast = "string-delete-last", i.DeleteFirst = "string-delete-first", i.DeleteIndex = "string-delete-index", i.AddIndex = "string-add-index", i.ReplaceFirst = "string-replace-first", i.ReplaceLast = "string-replace-last", i.ReplaceIndex = "string-replace-index", i.ReplaceSingleMatch = "string-replace-single-match", i.ReplaceAllMatches = "string-replace-all-matches", i.GetIndex = "string-get-index", i.GetFirst = "string-get-first", i.GetLast = "string-get-last", i.Append = "string-append", i.Prepend = "string-prepend", i))(K || {}), W = /* @__PURE__ */ ((i) => (i.Join = "list-join", i.Split = "list-split", i.DeleteLast = "list-delete-last", i.DeleteFirst = "list-delete-first", i.DeleteIndex = "list-delete-index", i.AddIndex = "list-add-index", i.ReplaceFirst = "list-replace-first", i.ReplaceLast = "list-replace-last", i.ReplaceIndex = "list-replace-index", i.ReplaceSingleMatch = "list-replace-single-match", i.ReplaceAllMatches = "list-replace-all-matches", i.GetIndex = "list-get-index", i.GetFirst = "list-get-first", i.GetLast = "list-get-last", i.Append = "list-append", i.Prepend = "list-prepend", i))(W || {}), we = /* @__PURE__ */ ((i) => (i.Parallel = "parallel", i.Sequential = "sequential", i.Wait = "wait", i))(we || {}), Ce = /* @__PURE__ */ ((i) => (i.CreateNewInstance = "create-new-instance", i.Validate = "validate", i))(Ce || {}), lt = /* @__PURE__ */ ((i) => (i.HttpRequest = "base-http-request", i))(lt || {}), Le = /* @__PURE__ */ ((i) => (i.Equal = "equal", i.NotEqual = "not-equal", i.And = "and", i.Or = "or", i.LessThan = "less-than", i.MoreThan = "more-than", i.LessThanOrEqual = "less-than-or-equal", i.MoreThanOrEqual = "more-than-or-equal", i))(Le || {}), Jt = /* @__PURE__ */ ((i) => (i.Empty = "empty", i.NotEmpty = "not-empty", i))(Jt || {}), L = /* @__PURE__ */ ((i) => (i.ManualFlow = "manual-flow-loop", i.Counted = "counted-loop", i.List = "list-loop", i.ObjectKeys = "object-keys-loop", i.ObjectValues = "object-values-loop", i.String = "string-loop", i))(L || {}), A = /* @__PURE__ */ ((i) => (i.FixedArguments = "fixed-arguments", i.FixedReturns = "fixed-returns", i.ReturnedError = "returned-error", i.OngoingProcessExecution = "ongoing-process-execution", i.DynamicArgument = "dynamic-argument-types", i.DynamicReturn = "dynamic-return-types", i))(A || {}), We = /* @__PURE__ */ ((i) => (i.OrDataTypeGroup = "or-data-type-group", i.AndDataTypeGroup = "and-data-type-group", i))(We || {}), Pn = /* @__PURE__ */ ((i) => (i.PROJECT_PUBLICATION_COMPLETED = "GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED", i))(Pn || {}), Nt = /* @__PURE__ */ ((i) => (i.DeletePersistedEntity = "base-delete-persisted-entity", i.SoftDeletePersistedEntity = "base-soft-delete-persisted-entity", i.AbortExecution = "base-abort-execution", i))(Nt || {}), Oi = /* @__PURE__ */ ((i) => (i.Error = "error", i.Task = "task", i.Return = "return", i))(Oi || {});
4
+ var n = /* @__PURE__ */ ((i) => (i.CustomEntity = "custom-entity", i.BuiltInBaseEntity = "built-in-base-entity", i.Project = "project", i.InstalledProject = "installed-project", i.GlobalEvent = "global-event", i.DataType = "data-type", i.FunctionCall = "function-call", i.FunctionDeclaration = "function-declaration", i.ActionDescriptor = "action-descriptor", i.ValueDescriptor = "value-descriptor", i.ArgumentDeclaration = "argument-declaration", i.InputMap = "input-map", i.ReturnStatement = "return-statement", i.BreakStatement = "break-statement", i.ContinueStatement = "continue-statement", i.ReturnDeclaration = "return-declaration", i.OutputMap = "output-map", i.PrimitiveEntity = "primitive-entity", i.LiteralValue = "literal-value", i.Property = "property", i.Operation = "operation", i.Condition = "condition", i.VariableDeclaration = "variable-declaration", i.VariableInstance = "variable-instance", i.Search = "search", i.Loop = "loop", i.InternalCall = "internal-call", i.GenericReference = "generic-reference", i))(n || {}), x = /* @__PURE__ */ ((i) => (i.HTTP_ENDPOINT = "BUILT_IN_HTTP_ENDPOINT_ENTITY", i.RELATIONAL_DATABASE = "BUILT_IN_RELATIONAL_DATABASE_ENTITY", i.PERSISTED_ENTITY = "BUILT_IN_PERSISTED_ENTITY_ENTITY", i.CRON_JOB = "BUILT_IN_CRON_JOB_ENTITY", i.EXECUTION = "BUILT_IN_EXECUTION_ENTITY", i.KEY_VALUE_PARAM = "BUILT_IN_KEY_VALUE_PARAM_ENTITY", i))(x || {}), qe = /* @__PURE__ */ ((i) => (i.CurrentDateAndTime = "current-date-and-time", i.Unique = "unique", i.Random = "random", i))(qe || {}), g = /* @__PURE__ */ ((i) => (i.EntityTemplate = "entity-template", i.ActionDescriptor = "action-descriptor", i.String = "string", i.Number = "number", i.Boolean = "boolean", i.Null = "null", i.Enum = "enum", i.KeyValue = "key-value", i.Date = "date", i.UUID = "uuid", i.File = "file", i.Untyped = "untyped", i))(g || {}), Be = /* @__PURE__ */ ((i) => (i.Addition = "addition", i.Subtraction = "subtraction", i.Multiplication = "multiplication", i.Division = "division", i.Remainder = "remainder", i.Exponentiation = "exponentiation", i))(Be || {}), K = /* @__PURE__ */ ((i) => (i.Join = "string-join", i.Split = "string-split", i.DeleteLast = "string-delete-last", i.DeleteFirst = "string-delete-first", i.DeleteIndex = "string-delete-index", i.AddIndex = "string-add-index", i.ReplaceFirst = "string-replace-first", i.ReplaceLast = "string-replace-last", i.ReplaceIndex = "string-replace-index", i.ReplaceSingleMatch = "string-replace-single-match", i.ReplaceAllMatches = "string-replace-all-matches", i.GetIndex = "string-get-index", i.GetFirst = "string-get-first", i.GetLast = "string-get-last", i.Append = "string-append", i.Prepend = "string-prepend", i))(K || {}), W = /* @__PURE__ */ ((i) => (i.Join = "list-join", i.Split = "list-split", i.DeleteLast = "list-delete-last", i.DeleteFirst = "list-delete-first", i.DeleteIndex = "list-delete-index", i.AddIndex = "list-add-index", i.ReplaceFirst = "list-replace-first", i.ReplaceLast = "list-replace-last", i.ReplaceIndex = "list-replace-index", i.ReplaceSingleMatch = "list-replace-single-match", i.ReplaceAllMatches = "list-replace-all-matches", i.GetIndex = "list-get-index", i.GetFirst = "list-get-first", i.GetLast = "list-get-last", i.Append = "list-append", i.Prepend = "list-prepend", i))(W || {}), we = /* @__PURE__ */ ((i) => (i.Parallel = "parallel", i.Sequential = "sequential", i.Wait = "wait", i))(we || {}), Ce = /* @__PURE__ */ ((i) => (i.CreateNewInstance = "create-new-instance", i.Validate = "validate", i))(Ce || {}), lt = /* @__PURE__ */ ((i) => (i.HttpRequest = "base-http-request", i))(lt || {}), Le = /* @__PURE__ */ ((i) => (i.Equal = "equal", i.NotEqual = "not-equal", i.And = "and", i.Or = "or", i.LessThan = "less-than", i.MoreThan = "more-than", i.LessThanOrEqual = "less-than-or-equal", i.MoreThanOrEqual = "more-than-or-equal", i))(Le || {}), Jt = /* @__PURE__ */ ((i) => (i.Empty = "empty", i.NotEmpty = "not-empty", i))(Jt || {}), L = /* @__PURE__ */ ((i) => (i.ManualFlow = "manual-flow-loop", i.Counted = "counted-loop", i.List = "list-loop", i.ObjectKeys = "object-keys-loop", i.ObjectValues = "object-values-loop", i.String = "string-loop", i))(L || {}), A = /* @__PURE__ */ ((i) => (i.FixedArguments = "fixed-arguments", i.FixedReturns = "fixed-returns", i.ReturnedError = "returned-error", i.OngoingProcessExecution = "ongoing-process-execution", i.DynamicArgument = "dynamic-argument-types", i.DynamicReturn = "dynamic-return-types", i))(A || {}), We = /* @__PURE__ */ ((i) => (i.OrDataTypeGroup = "or-data-type-group", i.AndDataTypeGroup = "and-data-type-group", i))(We || {}), Pn = /* @__PURE__ */ ((i) => (i.PROJECT_PUBLICATION_COMPLETED = "GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED", i))(Pn || {}), Nt = /* @__PURE__ */ ((i) => (i.DeletePersistedEntity = "base-delete-persisted-entity", i.SoftDeletePersistedEntity = "base-soft-delete-persisted-entity", i.AbortExecution = "base-abort-execution", i))(Nt || {}), Oi = /* @__PURE__ */ ((i) => (i.Error = "error", i.Task = "task", i.Return = "return", i))(Oi || {});
5
5
  const Yn = [
6
6
  n.VariableDeclaration,
7
7
  n.VariableInstance,
@@ -23834,12 +23834,12 @@ function Nm(i, e) {
23834
23834
  return t;
23835
23835
  }
23836
23836
  function S7(i) {
23837
- return i.replace(/(?:^\w|[A-Z]|\b\w)/g, function(e, t) {
23838
- return t === 0 ? e.toLowerCase() : e.toUpperCase();
23839
- }).replace(/\s+/g, "");
23837
+ return i.split(/[\s-]+/).filter((r) => r.length > 0).map(
23838
+ (r, a) => a === 0 ? r.toLowerCase() : r[0].toUpperCase() + r.slice(1).toLowerCase()
23839
+ ).join("");
23840
23840
  }
23841
23841
  function C7(i) {
23842
- return i.split(/\s+/).map(
23842
+ return i.split(/[\s-]+/).filter((r) => r.length > 0).map(
23843
23843
  (r) => r[0].toUpperCase() + r.slice(1).toLowerCase()
23844
23844
  ).join("");
23845
23845
  }
@@ -36145,8 +36145,8 @@ function R5(i, e) {
36145
36145
  code: f.NewEntityWouldOverriteExisting,
36146
36146
  severity: m.Error,
36147
36147
  message: `Entity of type "${i.type}" with id "${i.id}", has a 'parent' of type 'data-type' which already has an existing default value entity with id "${s.entity.id}".
36148
- Data types can only have one 'primitive-value' entity as 'entity'.
36149
- You can update the existing 'primitive-value' with the 'update' action, for example, like so:
36148
+ Data types can only have one 'literal-value' entity as 'entity'.
36149
+ You can update the existing 'literal-value' with the 'update' action, for example, like so:
36150
36150
  \`\`\`json
36151
36151
  {
36152
36152
  "update": {
@@ -36174,8 +36174,8 @@ Or 'delete' and then 'post' actions to replace it.`,
36174
36174
  code: f.NewEntityWouldOverriteExisting,
36175
36175
  severity: m.Error,
36176
36176
  message: `Entity of type "${i.type}" with id "${i.id}", has a 'parent' of type 'data-type' which already has an existing default value entity with id "${(r = s.defaultValue) == null ? void 0 : r.id}".
36177
- Data types can only have one 'primitive-value' entity as 'entity'.
36178
- You can update the existing 'primitive-value' with the 'update' action, for example, like so:
36177
+ Data types can only have one 'literal-value' entity as 'entity'.
36178
+ You can update the existing 'literal-value' with the 'update' action, for example, like so:
36179
36179
  \`\`\`json
36180
36180
  {
36181
36181
  "update": {
@@ -40475,7 +40475,7 @@ All value writting entity types are: ${G(
40475
40475
  " and "
40476
40476
  )}.
40477
40477
 
40478
- This primitive-value entity belongs to an input map entity with id "${o.id}". Input map entities are value writting entities. Is that what you meant to reference?`,
40478
+ This literal-value entity belongs to an input map entity with id "${o.id}". Input map entities are value writting entities. Is that what you meant to reference?`,
40479
40479
  issue: null
40480
40480
  })
40481
40481
  );
@@ -40493,7 +40493,7 @@ All value writting entity types are: ${G(
40493
40493
  " and "
40494
40494
  )}.
40495
40495
 
40496
- This primitive-value entity belongs to a data type entity with id "${u.id}", which itself belongs to a ${p.type} entity with id "${p.id}". ${p.type} entities are value writting entities. Is that what you meant to reference?`,
40496
+ This literal-value entity belongs to a data type entity with id "${u.id}", which itself belongs to a ${p.type} entity with id "${p.id}". ${p.type} entities are value writting entities. Is that what you meant to reference?`,
40497
40497
  issue: null
40498
40498
  })
40499
40499
  ) : l = !0;
@@ -40899,7 +40899,7 @@ All value writting entity types are: ${G(
40899
40899
  " and "
40900
40900
  )}.
40901
40901
 
40902
- This primitive-value entity belongs to an input map entity with id "${s.id}". Input map entities are value writting entities. Is that what you meant to reference?`,
40902
+ This literal-value entity belongs to an input map entity with id "${s.id}". Input map entities are value writting entities. Is that what you meant to reference?`,
40903
40903
  issue: null
40904
40904
  })
40905
40905
  );
@@ -40917,7 +40917,7 @@ All value writting entity types are: ${G(
40917
40917
  " and "
40918
40918
  )}.
40919
40919
 
40920
- This primitive-value entity belongs to a data type entity with id "${l.id}", which itself belongs to a ${u.type} entity with id "${u.id}". ${u.type} entities are value writting entities. Is that what you meant to reference?`,
40920
+ This literal-value entity belongs to a data type entity with id "${l.id}", which itself belongs to a ${u.type} entity with id "${u.id}". ${u.type} entities are value writting entities. Is that what you meant to reference?`,
40921
40921
  issue: null
40922
40922
  })
40923
40923
  ) : o = !0;