@elyx-code/project-logic-tree 0.0.6332 → 0.0.6333
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.js +5 -5
- package/dist/index.umd.cjs +3 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29646,7 +29646,7 @@ function ce(u, d) {
|
|
|
29646
29646
|
}
|
|
29647
29647
|
case f.ReturnStatement: {
|
|
29648
29648
|
const m = ms(u.parent, d);
|
|
29649
|
-
return `Output of ${ce(m, d)}
|
|
29649
|
+
return m ? `Output of ${ce(m, d)}` : "Return statement";
|
|
29650
29650
|
}
|
|
29651
29651
|
case f.InputMap:
|
|
29652
29652
|
if (u.declaration) {
|
|
@@ -84653,8 +84653,8 @@ ${ao}`,
|
|
|
84653
84653
|
!mp(u[Z]) && (n.push(
|
|
84654
84654
|
new Y({
|
|
84655
84655
|
id: `${d.id}--${K.InvalidInmutablePropertyOverride}`,
|
|
84656
|
-
message: `Entity of type "${d.type}" with id "${d.id}" cannot have the property "${Z}" updated. It is an inmutable property that is set only when the entity is created
|
|
84657
|
-
|
|
84656
|
+
message: `Entity of type "${d.type}" with id "${d.id}" cannot have the property "${Z}" updated. It is an inmutable property that is set only when the entity is created.`,
|
|
84657
|
+
// message: `Entity of type "${entityToUpdate.type}" with id "${entityToUpdate.id}" cannot have the property "${property}" updated. It is an inmutable property that is set only when the entity is created.\nIf you need to update this property, you should delete the entity and create a new one with the updated value.`,
|
|
84658
84658
|
severity: q.Error,
|
|
84659
84659
|
code: K.InvalidInmutablePropertyOverride,
|
|
84660
84660
|
issue: null
|
|
@@ -84680,8 +84680,8 @@ To modify '${Z}', target the entity that it points to and its equivalent propert
|
|
|
84680
84680
|
!mp(u[Z]) && (n.push(
|
|
84681
84681
|
new Y({
|
|
84682
84682
|
id: `${d.id}--${K.InvalidInmutablePropertyOverride}`,
|
|
84683
|
-
message: `Entity of type "${d.type}" with id "${d.id}" cannot have the property "${Z}" updated. It is an inmutable property that is set only when the entity is created
|
|
84684
|
-
|
|
84683
|
+
message: `Entity of type "${d.type}" with id "${d.id}" cannot have the property "${Z}" updated. It is an inmutable property that is set only when the entity is created.`,
|
|
84684
|
+
// message: `Entity of type "${entityToUpdate.type}" with id "${entityToUpdate.id}" cannot have the property "${property}" updated. It is an inmutable property that is set only when the entity is created.\nIf you need to update this property, you should delete the entity and create a new one with the updated value.`,
|
|
84685
84685
|
severity: q.Error,
|
|
84686
84686
|
code: K.InvalidInmutablePropertyOverride,
|
|
84687
84687
|
issue: null
|
package/dist/index.umd.cjs
CHANGED
|
@@ -10,7 +10,7 @@ __p+='`),b}),p+=`';
|
|
|
10
10
|
`,t="obj";p=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
|
|
11
11
|
`+p+`return __p;
|
|
12
12
|
`;var m;try{m=new Function(t,"_",p)}catch(b){throw b.source=p,b}var v=function(b){return m.call(this,b,Zt)};return v.source="function("+t+`){
|
|
13
|
-
`+p+"}",v}function dce(u,d,n){d=Wu(d);var a=d.length;if(!a)return Ii(n)?n.call(u):n;for(var l=0;l<a;l++){var p=u==null?void 0:u[d[l]];p===void 0&&(p=n,l=a),u=Ii(p)?p.call(u):p}return u}var uce=0;function cce(u){var d=++uce+"";return u?u+d:d}function pce(u){var d=Zt(u);return d._chain=!0,d}function pL(u,d,n,a,l){if(!(a instanceof d))return u.apply(n,l);var p=nL(u.prototype),t=u.apply(p,l);return js(t)?t:p}var Yl=Mi(function(u,d){var n=Yl.placeholder,a=function(){for(var l=0,p=d.length,t=Array(p),m=0;m<p;m++)t[m]=d[m]===n?arguments[l++]:d[m];for(;l<arguments.length;)t.push(arguments[l++]);return pL(u,a,this,this,t)};return a});Yl.placeholder=Zt;const fL=Mi(function(u,d,n){if(!Ii(u))throw new TypeError("Bind must be called on a function");var a=Mi(function(l){return pL(u,a,d,this,n.concat(l))});return a}),es=SN(Bi);function No(u,d,n,a){if(a=a||[],!d&&d!==0)d=1/0;else if(d<=0)return a.concat(u);for(var l=a.length,p=0,t=Bi(u);p<t;p++){var m=u[p];if(es(m)&&(Vo(m)||nT(m)))if(d>1)No(m,d-1,n,a),l=a.length;else for(var v=0,b=m.length;v<b;)a[l++]=m[v++];else n||(a[l++]=m)}return a}const fce=Mi(function(u,d){d=No(d,!1,!1);var n=d.length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var a=d[n];u[a]=fL(u[a],u)}return u});function hce(u,d){var n=function(a){var l=n.cache,p=""+(d?d.apply(this,arguments):a);return wa(l,p)||(l[p]=u.apply(this,arguments)),l[p]};return n.cache={},n}const hL=Mi(function(u,d,n){return setTimeout(function(){return u.apply(null,n)},d)}),yce=Yl(hL,Zt,1);function mce(u,d,n){var a,l,p,t,m=0;n||(n={});var v=function(){m=n.leading===!1?0:Hu(),a=null,t=u.apply(l,p),a||(l=p=null)},b=function(){var _=Hu();!m&&n.leading===!1&&(m=_);var I=d-(_-m);return l=this,p=arguments,I<=0||I>d?(a&&(clearTimeout(a),a=null),m=_,t=u.apply(l,p),a||(l=p=null)):!a&&n.trailing!==!1&&(a=setTimeout(v,I)),t};return b.cancel=function(){clearTimeout(a),m=0,a=l=p=null},b}function vce(u,d,n){var a,l,p,t,m,v=function(){var _=Hu()-l;d>_?a=setTimeout(v,d-_):(a=null,n||(t=u.apply(m,p)),a||(p=m=null))},b=Mi(function(_){return m=this,p=_,l=Hu(),a||(a=setTimeout(v,d),n&&(t=u.apply(m,p))),t});return b.cancel=function(){clearTimeout(a),a=p=m=null},b}function Ece(u,d){return Yl(d,u)}function ET(u){return function(){return!u.apply(this,arguments)}}function Tce(){var u=arguments,d=u.length-1;return function(){for(var n=d,a=u[d].apply(this,arguments);n--;)a=u[n].call(this,a);return a}}function bce(u,d){return function(){if(--u<1)return d.apply(this,arguments)}}function yL(u,d){var n;return function(){return--u>0&&(n=d.apply(this,arguments)),u<=1&&(d=null),n}}const Ace=Yl(yL,2);function mL(u,d,n){d=Ui(d,n);for(var a=Wr(u),l,p=0,t=a.length;p<t;p++)if(l=a[p],d(u[l],l,u))return l}function vL(u){return function(d,n,a){n=Ui(n,a);for(var l=Bi(d),p=u>0?0:l-1;p>=0&&p<l;p+=u)if(n(d[p],p,d))return p;return-1}}const TT=vL(1),EL=vL(-1);function TL(u,d,n,a){n=Ui(n,a,1);for(var l=n(d),p=0,t=Bi(u);p<t;){var m=Math.floor((p+t)/2);n(u[m])<l?p=m+1:t=m}return p}function bL(u,d,n){return function(a,l,p){var t=0,m=Bi(a);if(typeof p=="number")u>0?t=p>=0?p:Math.max(p+m,t):m=p>=0?Math.min(p+1,m):p+m+1;else if(n&&p&&m)return p=n(a,l),a[p]===l?p:-1;if(l!==l)return p=d(qu.call(a,t,m),kN),p>=0?p+t:-1;for(p=u>0?t:m-1;p>=0&&p<m;p+=u)if(a[p]===l)return p;return-1}}const AL=bL(1,TT,TL),Ice=bL(-1,EL);function bT(u,d,n){var a=es(u)?TT:mL,l=a(u,d,n);if(l!==void 0&&l!==-1)return u[l]}function wce(u,d){return bT(u,Yu(d))}function zn(u,d,n){d=zu(d,n);var a,l;if(es(u))for(a=0,l=u.length;a<l;a++)d(u[a],a,u);else{var p=Wr(u);for(a=0,l=p.length;a<l;a++)d(u[p[a]],p[a],u)}return u}function Lo(u,d,n){d=Ui(d,n);for(var a=!es(u)&&Wr(u),l=(a||u).length,p=Array(l),t=0;t<l;t++){var m=a?a[t]:t;p[t]=d(u[m],m,u)}return p}function IL(u){var d=function(n,a,l,p){var t=!es(n)&&Wr(n),m=(t||n).length,v=u>0?0:m-1;for(p||(l=n[t?t[v]:v],v+=u);v>=0&&v<m;v+=u){var b=t?t[v]:v;l=a(l,n[b],b,n)}return l};return function(n,a,l,p){var t=arguments.length>=3;return d(n,zu(a,p,4),l,t)}}const AT=IL(1),wL=IL(-1);function zl(u,d,n){var a=[];return d=Ui(d,n),zn(u,function(l,p,t){d(l,p,t)&&a.push(l)}),a}function Rce(u,d,n){return zl(u,ET(Ui(d)),n)}function RL(u,d,n){d=Ui(d,n);for(var a=!es(u)&&Wr(u),l=(a||u).length,p=0;p<l;p++){var t=a?a[p]:p;if(!d(u[t],t,u))return!1}return!0}function _L(u,d,n){d=Ui(d,n);for(var a=!es(u)&&Wr(u),l=(a||u).length,p=0;p<l;p++){var t=a?a[p]:p;if(d(u[t],t,u))return!0}return!1}function Hn(u,d,n,a){return es(u)||(u=Wl(u)),(typeof n!="number"||a)&&(n=0),AL(u,d,n)>=0}const _ce=Mi(function(u,d,n){var a,l;return Ii(d)?l=d:(d=Wu(d),a=d.slice(0,-1),d=d[d.length-1]),Lo(u,function(p){var t=l;if(!t){if(a&&a.length&&(p=pT(p,a)),p==null)return;t=p[d]}return t==null?t:t.apply(p,n)})});function IT(u,d){return Lo(u,hT(d))}function Dce(u,d){return zl(u,Yu(d))}function DL(u,d,n){var a=-1/0,l=-1/0,p,t;if(d==null||typeof d=="number"&&typeof u[0]!="object"&&u!=null){u=es(u)?u:Wl(u);for(var m=0,v=u.length;m<v;m++)p=u[m],p!=null&&p>a&&(a=p)}else d=Ui(d,n),zn(u,function(b,_,I){t=d(b,_,I),(t>l||t===-1/0&&a===-1/0)&&(a=b,l=t)});return a}function gce(u,d,n){var a=1/0,l=1/0,p,t;if(d==null||typeof d=="number"&&typeof u[0]!="object"&&u!=null){u=es(u)?u:Wl(u);for(var m=0,v=u.length;m<v;m++)p=u[m],p!=null&&p<a&&(a=p)}else d=Ui(d,n),zn(u,function(b,_,I){t=d(b,_,I),(t<l||t===1/0&&a===1/0)&&(a=b,l=t)});return a}var $ce=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function gL(u){return u?Vo(u)?qu.call(u):rT(u)?u.match($ce):es(u)?Lo(u,fT):Wl(u):[]}function $L(u,d,n){if(d==null||n)return es(u)||(u=Wl(u)),u[mT(u.length-1)];var a=gL(u),l=Bi(a);d=Math.max(Math.min(d,l),0);for(var p=l-1,t=0;t<d;t++){var m=mT(t,p),v=a[t];a[t]=a[m],a[m]=v}return a.slice(0,d)}function Oce(u){return $L(u,1/0)}function Cce(u,d,n){var a=0;return d=Ui(d,n),IT(Lo(u,function(l,p,t){return{value:l,index:a++,criteria:d(l,p,t)}}).sort(function(l,p){var t=l.criteria,m=p.criteria;if(t!==m){if(t>m||t===void 0)return 1;if(t<m||m===void 0)return-1}return l.index-p.index}),"value")}function Gh(u,d){return function(n,a,l){var p=d?[[],[]]:{};return a=Ui(a,l),zn(n,function(t,m){var v=a(t,m,n);u(p,t,v)}),p}}const Pce=Gh(function(u,d,n){wa(u,n)?u[n].push(d):u[n]=[d]}),Vce=Gh(function(u,d,n){u[n]=d}),Nce=Gh(function(u,d,n){wa(u,n)?u[n]++:u[n]=1}),Lce=Gh(function(u,d,n){u[n?0:1].push(d)},!0);function Mce(u){return u==null?0:es(u)?u.length:Wr(u).length}function Bce(u,d,n){return d in n}const OL=Mi(function(u,d){var n={},a=d[0];if(u==null)return n;Ii(a)?(d.length>1&&(a=zu(a,d[1])),d=Ju(u)):(a=Bce,d=No(d,!1,!1),u=Object(u));for(var l=0,p=d.length;l<p;l++){var t=d[l],m=u[t];a(m,t,u)&&(n[t]=m)}return n}),Uce=Mi(function(u,d){var n=d[0],a;return Ii(n)?(n=ET(n),d.length>1&&(a=d[1])):(d=Lo(No(d,!1,!1),String),n=function(l,p){return!Hn(d,p)}),OL(u,n,a)});function CL(u,d,n){return qu.call(u,0,Math.max(0,u.length-(d==null||n?1:d)))}function wT(u,d,n){return u==null||u.length<1?d==null||n?void 0:[]:d==null||n?u[0]:CL(u,u.length-d)}function Kh(u,d,n){return qu.call(u,d==null||n?1:d)}function jce(u,d,n){return u==null||u.length<1?d==null||n?void 0:[]:d==null||n?u[u.length-1]:Kh(u,Math.max(0,u.length-d))}function xce(u){return zl(u,Boolean)}function Fce(u,d){return No(u,d,!1)}const PL=Mi(function(u,d){return d=No(d,!0,!0),zl(u,function(n){return!Hn(d,n)})}),Gce=Mi(function(u,d){return PL(u,d)});function RT(u,d,n,a){BN(d)||(a=n,n=d,d=!1),n!=null&&(n=Ui(n,a));for(var l=[],p=[],t=0,m=Bi(u);t<m;t++){var v=u[t],b=n?n(v,t,u):v;d&&!n?((!t||p!==b)&&l.push(v),p=b):n?Hn(p,b)||(p.push(b),l.push(v)):Hn(l,v)||l.push(v)}return l}const Kce=Mi(function(u){return RT(No(u,!0,!0))});function kce(u){for(var d=[],n=arguments.length,a=0,l=Bi(u);a<l;a++){var p=u[a];if(!Hn(d,p)){var t;for(t=1;t<n&&Hn(arguments[t],p);t++);t===n&&d.push(p)}}return d}function _T(u){for(var d=u&&DL(u,Bi).length||0,n=Array(d),a=0;a<d;a++)n[a]=IT(u,a);return n}const qce=Mi(_T);function Sce(u,d){for(var n={},a=0,l=Bi(u);a<l;a++)d?n[u[a]]=d[a]:n[u[a][0]]=u[a][1];return n}function Zce(u,d,n){d==null&&(d=u||0,u=0),n||(n=d<u?-1:1);for(var a=Math.max(Math.ceil((d-u)/n),0),l=Array(a),p=0;p<a;p++,u+=n)l[p]=u;return l}function Jce(u,d){if(d==null||d<1)return[];for(var n=[],a=0,l=u.length;a<l;)n.push(qu.call(u,a,a+=d));return n}function DT(u,d){return u._chain?Zt(d).chain():d}function VL(u){return zn(uT(u),function(d){var n=Zt[d]=u[d];Zt.prototype[d]=function(){var a=[this._wrapped];return Eue.apply(a,arguments),DT(this,n.apply(Zt,a))}}),Zt}zn(["pop","push","reverse","shift","sort","splice","unshift"],function(u){var d=Uh[u];Zt.prototype[u]=function(){var n=this._wrapped;return n!=null&&(d.apply(n,arguments),(u==="shift"||u==="splice")&&n.length===0&&delete n[0]),DT(this,n)}}),zn(["concat","join","slice"],function(u){var d=Uh[u];Zt.prototype[u]=function(){var n=this._wrapped;return n!=null&&(n=d.apply(n,arguments)),DT(this,n)}});var NL=VL(Object.freeze(Object.defineProperty({__proto__:null,VERSION:DN,after:bce,all:RL,allKeys:Ju,any:_L,assign:Fh,before:yL,bind:fL,bindAll:fce,chain:pce,chunk:Jce,clone:Wue,collect:Lo,compact:xce,compose:Tce,constant:qN,contains:Hn,countBy:Nce,create:Jue,debounce:vce,default:Zt,defaults:sL,defer:yce,delay:hL,detect:bT,difference:PL,drop:Kh,each:zn,escape:ece,every:RL,extend:iL,extendOwn:Fh,filter:zl,find:bT,findIndex:TT,findKey:mL,findLastIndex:EL,findWhere:wce,first:wT,flatten:Fce,foldl:AT,foldr:wL,forEach:zn,functions:uT,get:oL,groupBy:Pce,has:zue,head:wT,identity:fT,include:Hn,includes:Hn,indexBy:Vce,indexOf:AL,initial:CL,inject:AT,intersection:kce,invert:rL,invoke:_ce,isArguments:nT,isArray:Vo,isArrayBuffer:xN,isBoolean:BN,isDataView:jh,isDate:gue,isElement:Due,isEmpty:Zu,isEqual:jue,isError:Oue,isFinite:Nue,isFunction:Ii,isMap:Gue,isMatch:YN,isNaN:kN,isNull:_ue,isNumber:UN,isObject:js,isRegExp:$ue,isSet:kue,isString:rT,isSymbol:jN,isTypedArray:JN,isUndefined:MN,isWeakMap:Kue,isWeakSet:que,iteratee:yT,keys:Wr,last:jce,lastIndexOf:Ice,map:Lo,mapObject:Hue,matcher:Yu,matches:Yu,max:DL,memoize:hce,methods:uT,min:gce,mixin:VL,negate:ET,noop:dL,now:Hu,object:Sce,omit:Uce,once:Ace,pairs:Sue,partial:Yl,partition:Lce,pick:OL,pluck:IT,property:hT,propertyOf:Xue,random:mT,range:Zce,reduce:AT,reduceRight:wL,reject:Rce,rest:Kh,restArguments:Mi,result:dce,sample:$L,select:zl,shuffle:Oce,size:Mce,some:_L,sortBy:Cce,sortedIndex:TL,tail:Kh,take:wT,tap:Yue,template:lce,templateSettings:ice,throttle:mce,times:Que,toArray:gL,toPath:aL,transpose:_T,unescape:rce,union:Kce,uniq:RT,unique:RT,uniqueId:cce,unzip:_T,values:Wl,where:Dce,without:Gce,wrap:Ece,zip:qce},Symbol.toStringTag,{value:"Module"})));NL._=NL;function kr(u){return u.charAt(0).toUpperCase()+u.slice(1)}function Xu(u){return u.charAt(0).toLowerCase()+u.slice(1)}function LL(u,d){if(u.type!==f.Property||d.type!==f.Property)throw new Error(`Expected property entities for comparison. But got ${u.type} and ${d.type}.`);return u===d||u.id===d.id?!0:u.name!==d.name||u.static!==d.static||u.abstract!==d.abstract?!1:vs(u.dataType,d.dataType).compatible}function ML(u,d){if(u.type!==f.DefinitionEntity||d.type!==f.DefinitionEntity)throw new Error(`Expected definition entities for comparison. But got ${u.type} and ${d.type}.`);if(u===d||u.id===d.id)return!0;if(u.properties.length!==d.properties.length)return!1;let n=[...d.properties];const a=[];for(let l=0;l<u.properties.length;l++){const p=u.properties[l];n.find(m=>{const v=LL(p,m);return v&&(n=n.filter(b=>b.id!==m.id)),v})||a.push(p)}return!(a.length>0)}var ms=(u=>(u.BothUnconstrained="both-unconstrained",u.AConstraintBUnconstrained="a-constraint-b-unconstrained",u.BConstraintAUnconstrained="b-constraint-a-unconstrained",u.Same="same",u.AIsListBIsNot="a-is-list-b-is-not",u.BIsListAIsNot="b-is-list-a-is-not",u.AIsNullableBIsNot="a-is-nullable-b-is-not",u.BIsNullableAIsNot="b-is-nullable-a-is-not",u.AIsTemplateBIsNot="a-is-template-b-is-not",u.BIsTemplateAIsNot="b-is-template-a-is-not",u.BothUntyped="both-untyped",u.AIsUntypedBIsNot="a-is-untyped-b-is-not",u.BIsUntypedAIsNot="b-is-untyped-a-is-not",u.TypeEntityMismatch="type-entity-mismatch",u.SameDefinitionEntities="same-definition-entities",u.CompatibleDefinitionEntities="compatible-definition-entities",u.IncompatibleDefinitionEntities="incompatible-definition-entities",u.SamePrimitiveEntities="same-primitive-entities",u.IncompatiblePrimitiveEntities="incompatible-primitive-entities",u.SameBuiltInBaseEntities="same-built-in-base-entities",u.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",u.CheckUnknown="check-unknown",u))(ms||{});function vs(u,d){var n,a,l,p,t,m,v,b,_,I,V;if(u&&u.type!==f.DataType||d&&d.type!==f.DataType)throw new Error(`Expected data-type entities for comparison. But got ${u==null?void 0:u.type} and ${d==null?void 0:d.type}.`);if(u===null&&d===null)return{compatible:!0,type:"both-unconstrained"};if(u===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(d===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(u===d)return{compatible:!0,type:"same"};if(u.id===d.id)return{compatible:!0,type:"same"};if(u.isList!==d.isList)return{compatible:!1,type:u.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(u.asType!==d.asType)return{compatible:!1,type:u.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};if(!u.entity&&d.entity)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(u.entity&&!d.entity)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(!u.entity&&!d.entity)return{compatible:!0,type:"both-untyped"};if(((n=u.entity)==null?void 0:n.type)!==((a=d.entity)==null?void 0:a.type))return{compatible:!1,type:"type-entity-mismatch"};if(((l=u.entity)==null?void 0:l.type)===f.DefinitionEntity){if(((p=u.entity)==null?void 0:p.id)===((t=d.entity)==null?void 0:t.id))return{compatible:!0,type:"same-definition-entities"};const B=ML(u.entity,d.entity);return{compatible:B,type:B?"compatible-definition-entities":"incompatible-definition-entities"}}return((m=u.entity)==null?void 0:m.type)===f.PrimitiveEntity?((v=u.entity)==null?void 0:v.id)===((b=d.entity)==null?void 0:b.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((_=u.entity)==null?void 0:_.type)===f.BuiltInBaseEntity?((I=u.entity)==null?void 0:I.id)===((V=d.entity)==null?void 0:V.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function Wce(u,d){const n=u.project.builtInBaseEntities.find(p=>p.id===Oe.EXECUTION),a={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(d==null?void 0:d.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},l=z(a,u.project);return l.inferred=!0,d==null||d.add(l,G.Added),l.metaSync(a,d),l.setParent(u,d),l.entity=n,l}function BL(u,d=null){return u.dataType?u.dataType:null}function gT(u,d=null){var a;const n=(a=u.declaration)==null?void 0:a.getDataType(d);return n&&n.isResolved?n:u.readsValue?xs(u.readsValue,d):null}function $T(u,d=null){return u.dataType&&!u.dataType.inferred&&u.dataType.isResolved?u.dataType:u.readsValue?xs(u.readsValue,d):null}function UL(u,d=null){return xs(u.declaration,d)}function jL(u,d=null){return u.dataType&&!u.dataType.inferred?u.dataType:(u.dataType&&u.dataType.inferred||!u.dataType)&&u.project.initialized?(u.inferDataTypeAndSyncInstancesInputsAndOutputs(d),u.dataType):null}function OT(u,d=null){var n;return((n=u.declaration)==null?void 0:n.dataType)||null}function xL(u,d=null){return(u==null?void 0:u.dataType)||null}function FL(u,d=null){return(u==null?void 0:u.dataType)||null}function xs(u,d=null){switch(u.type){case f.VariableDeclaration:return jL(u,d);case f.ArgumentDeclaration:return BL(u,d);case f.ReturnDeclaration:return $T(u,d);case f.VariableInstance:return UL(u,d);case f.InputMap:return gT(u,d);case f.OutputMap:return OT(u,d);case f.Property:return xL(u,d);case f.ValueDescriptor:return FL(u,d);default:throw new Error(`Cannot infer data type from entity of type ${u.type}.`)}}function kh(u,d=null){switch(u.type){case f.ArgumentDeclaration:return u.getDataType(d);case f.InputMap:return u.getDataType(d);case f.VariableDeclaration:return u.getDataType(d);case f.VariableInstance:return u.getDataType(d);case f.OutputMap:return u.getDataType(d);case f.ReturnDeclaration:return u.getDataType(d);case f.Property:return u.getDataType(d);case f.ValueDescriptor:return u.getDataType(d);default:return null}}function W(u){if(u){let d=null;return typeof u=="string"?d=u:u.entityId?d=u.entityId:u.type!==f.GenericReference&&(d=u.id),d}return null}function Mo(u){return u.declaration||u}function Yce(u){return u.type===f.VariableDeclaration?u.parent===u.project?"global-declaration":"local-declaration":u.declaration.parent===u.project?"global-instance":"local-instance"}function CT(u,d){const n=[];if(u.type===f.Project)n.push(...u.variableDeclarations);else{const l=ei(at(u)).filter(p=>p.type===f.VariableDeclaration);n.push(...l),u.parent&&(br.includes(u.parent.type)||u.parent.type===f.Project)&&n.push(...CT(u.parent))}return n}function Ra(u){return u.split(/[\s-]+/).filter(a=>a.length>0).map((a,l)=>l===0?a.toLowerCase():a[0].toUpperCase()+a.slice(1).toLowerCase()).join("")}function Hl(u){return u.split(/[\s-]+/).filter(a=>a.length>0).map(a=>a[0].toUpperCase()+a.slice(1).toLowerCase()).join("")}function GL(u){var d;return(d=u.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:d.map(n=>n.toLowerCase()).join("-")}function qh(u){return GL(u).toLowerCase()}function Sh(u){var n,a,l,p;if(!u)return"Any data type";let d="";if(u.interactiveEntities===!1?d+=` but only definition nodes ${u.asType?"as template ":""}that don't include non-interactive built-in functionality`:u.interactiveEntities===!0&&(d+=` but only definition nodes ${u.asType?"as template ":""}that extend or implement interactive built-in functionality`),u.staticEntities===!1?d?d+=" and that aren't a single global copy instance":d+=` but only definition nodes ${u.asType?"as template ":""}that aren't a single global copy instance`:u.staticEntities===!0&&(d?d+=" and that are a single global copy instance":d+=` but only definition nodes ${u.asType?"as template ":""}that are a single global copy instance`),u.actionEntities===!1?d?d+=" excluding executable/action nodes":d+=` excluding executable/action nodes ${u.asType?"templates ":""}`:u.actionEntities===!0&&(d?d+=" and not executable/action nodes":d+=" but not executable/action nodes"),u.entity&&(d=""),u.asType&&!d&&!((n=u.andChildrenGroup)!=null&&n.length)&&!((a=u.orChildrenGroup)!=null&&a.length)&&(d=" as template"),!u.entity){const t=u.isList;if(!((l=u.andChildrenGroup)!=null&&l.length)&&!((p=u.orChildrenGroup)!=null&&p.length))return t?`List of an any data type${d}`:`Any data type${d}`;let m="",v=!1,b=!1;return(u.andChildrenGroup||[]).forEach(_=>{const I=Sh(_),V=Xu(I);v&&(m+=" and "),_.isGroup?m+="("+V+")":v?m+=V:m+=I,v=!0,b=!0}),(u.orChildrenGroup||[]).forEach(_=>{const I=Sh(_),V=Xu(I);v&&(b&&(m+=","),m+=" or "),_.isGroup?m+="("+V+")":v?m+=V:m+=I,v=!0}),t?`List of ${Xu(m)}`:m}if(u.entity.type===f.PrimitiveEntity){let t=u.entity.name;switch(u.entity.name){case ee.String:t="Text";break;case ee.KeyValue:t="Data structure";break}return u.isList?`List of ${t}s${d}`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}${d}`}else if(u.entity.type===f.DefinitionEntity){const t=fe(u.entity,u.project);return u.isList?`List of ${t} values${d}`:t.slice(0,1).toUpperCase()+t.slice(1)+d}else if(u.entity.type===f.BuiltInBaseEntity){const t=kL(u.entity);return u.isList?`List of ${t} values${d}`:t.slice(0,1).toUpperCase()+t.slice(1)+d}else if(u.entity.type===f.LiteralValue){if(u.entity.name===ee.Null)return"Empty value";if(u.entity.name===ee.Untyped)return"Untyped value";if(u.entity.name===ee.File)return"File";if(u.entity.name===ee.String)return`"${u.entity.value}" text`;if(u.entity.name===ee.Number)return`Number '${u.entity.value}'`;if(u.entity.name===ee.Boolean)return`${u.entity.value} value`;if(u.entity.name===ee.UUID)return`"${u.entity.value}" unique identifier`;if(u.entity.name===ee.Date)return`"${u.entity.value}" date`}return u.isList?`List of ${fe(u.entity,u.project)} values${d}`:`${fe(u.entity,u.project).slice(0,1).toUpperCase()+fe(u.entity,u.project).slice(1)} value${d}`}function zce(u){if(!u)return"Any data type";const d=u.getDataType(null);return Sh(d)}function Zh(u){switch(u.declaration.id){case fr.Equal:return"is equal to";case fr.NotEqual:return"is not equal to";case fr.MoreThan:return"is greater than";case fr.MoreThanOrEqual:return"is greater than or equal to";case fr.LessThan:return"is less than";case fr.LessThanOrEqual:return"is less than or equal to";case fr.And:return"and";case fr.Or:return"or";case ps.Empty:return"is empty";case ps.NotEmpty:return"is not empty"}}function KL(u){return u.includes(Oe.HTTP_ENDPOINT)?"HTTP endpoint":u.includes(Oe.PERSISTED_ENTITY)?"Persisted entity":u.includes(Oe.CRON_JOB)?"Scheduled execution":u.includes(Oe.RELATIONAL_DATABASE)?"Relational database":"Entity"}function kL(u){switch(u.name){case Oe.HTTP_ENDPOINT:return"HTTP endpoint";case Oe.PERSISTED_ENTITY:return"Persisted entity";case Oe.CRON_JOB:return"Scheduled execution";case Oe.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function Hce(u){const d=$b(u);if(!d){const n=Ty(u);return n.includes(Oe.HTTP_ENDPOINT)?"HTTP endpoint":n.includes(Oe.PERSISTED_ENTITY)?"Persisted entity":n.includes(Oe.CRON_JOB)?"Scheduled execution":n.includes(Oe.RELATIONAL_DATABASE)?"Relational database":fe(u,u.project)+" entity"}return fe(d,u.project)+" entity"}function qL(u){let d="Find ";return u.outputsDeclarations.forEach((n,a)=>{const l=kh(n,null),p=Xu(l&&l.entity?fe(l.entity,u.project):"unstructured data");a===0?d+=`${p} `:a===u.outputsDeclarations.length-1?d+=`and ${p} `:d+=`, ${p} `}),d}function SL(u){switch(u.name){case ee.String:return"Text";case ee.Number:return"Number";case ee.Boolean:return"Boolean";case ee.KeyValue:return"Data structure";case ee.UUID:return"Unique identifier";case ee.Date:return"Date";case ee.EntityTemplate:return"Entity as template";case ee.Enum:return"Enumeration";case ee.File:return"File";case ee.Null:return"Empty";case ee.ActionDescriptor:return"Action descriptor";case ee.Untyped:return"Untyped";default:return u.name}}function ZL(u){switch(u.id){case Be.List:return"Loop over list items";case Be.ManualFlow:return"Manual flow control loop";case Be.ObjectKeys:return"Loop over object keys";case Be.ObjectValues:return"Loop over object values";case Be.Counted:return"Loop given number of times";case Be.String:return"Loop over text characters";case Ht.Addition:return"Sum numbers";case Ht.Subtraction:return"Subtract numbers";case Ht.Multiplication:return"Multiply numbers";case Ht.Division:return"Divide numbers";case Ht.Remainder:return"Get remainder of numbers";case Ht.Exponentiation:return"Get exponent of numbers";case ut.AddIndex:return"Add at index position";case ut.DeleteFirst:return"Delete first character";case ut.DeleteLast:return"Delete last character";case ut.DeleteIndex:return"Delete at index position";case ut.Join:return"Join texts";case ut.ReplaceAllMatches:return"Replace all matches";case ut.ReplaceFirst:return"Replace first match";case ut.ReplaceLast:return"Replace last match";case ut.Split:return"Split text";case ut.ReplaceIndex:return"Replace at index position";case ut.ReplaceSingleMatch:return"Replace single match";case ut.GetFirst:return"Get first character";case ut.GetLast:return"Get last character";case ut.GetIndex:return"Get at index position";case ut.Append:return"Add at the end";case ut.Prepend:return"Add at the start";case Jt.Wait:return"Wait";case Jt.Parallel:return"Run in parallel";case Jt.Sequential:return"Run in sequence";case Hr.HttpRequest:return"HTTP request";case Wt.CreateNewInstance:return"Create new copy of entity";case it.AddIndex:return"Add item at index position";case it.DeleteFirst:return"Delete first item";case it.DeleteLast:return"Delete last item";case it.DeleteIndex:return"Delete item at index position";case it.Join:return"Join lists";case it.ReplaceAllMatches:return"Replace all matches";case it.ReplaceFirst:return"Replace first match";case it.ReplaceLast:return"Replace last match";case it.Split:return"Split list";case it.ReplaceIndex:return"Replace at index position";case it.ReplaceSingleMatch:return"Replace single match";case it.GetFirst:return"Get first item";case it.GetLast:return"Get last item";case it.GetIndex:return"Get item at index position";case it.Append:return"Add item at the end";case it.Prepend:return"Add item at the start";case Mn.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(u.name.slice(0,1).toUpperCase()+u.name.slice(1)).replaceAll("-"," ")}}function fe(u,d){var n;if(f.FunctionDeclaration===u.type){const a=u.name;if(Object.values(Ji).includes(a))switch(a){case Ji.AbortExecution:return"Abort execution";case Ji.DeletePersistedEntity:return"Delete persisted entity";case Ji.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return kr(u.type).replaceAll("-"," ")}return a}if(f.BuiltInBaseEntity===u.type)return KL([u.name]);if(t1.includes(u.type)&&u.type!==f.ActionDescriptor)return u.name;switch(u.type){case f.Search:return qL(u);case f.GlobalEvent:return u.implements?fe(u.implements,d):kr(u.type).replaceAll("-"," ");case f.Operation:case f.InternalCall:case f.Loop:const a=ss(u.declaration,d);return fe(a,d);case f.ActionDescriptor:return ZL(u);case f.BreakStatement:const l=ss(u.parent,d);return`Stop loop ${fe(l,d)}`;case f.ContinueStatement:const p=ss(u.parent,d);return`Execute next iteration of ${fe(p,d)}`;case f.FunctionCall:return ss(u.declaration,d).name;case f.Condition:{const m=u;if((n=u.inputs)!=null&&n.length){const v=fe(m.inputs[0],m.project);if(m.inputs[1]){const b=m.inputs[1].declaration.name;return`If ${v} ${Zh(m)} ${b}`}return`If ${v} ${Zh(m)}`}else return`If ${Zh(m)}`}case f.ReturnStatement:{const m=ss(u.parent,d);return`Output of ${fe(m,d)}`}case f.InputMap:if(u.declaration){const m=ss(u.declaration,d);return fe(m,d)||""}else return u.name||"";case f.VariableInstance:{const m=ss(u.declaration,d);return fe(m,d)||""}case f.OutputMap:if(u.declaration){const m=ss(u.declaration,d);return(m==null?void 0:m.name)||""}else return"";case f.PrimitiveEntity:case f.LiteralValue:return SL(u);default:return kr(u.type).replaceAll("-"," ")}}function PT(u,d){const n=[];u.name||n.push(new Y({id:`${u.id}--${le.EmptyName}`,message:`Entity with id "${u.id}" and type "${u.type}" has an empty name. Please provide a 'name' string.`,severity:S.Error,code:le.EmptyName,issue:null}));const a=d.entities.filter(l=>l.name===u.name);return a.length&&n.push(new Y({id:`${u.id}--${le.NameNotUniqueInScope}`,message:`Entity with id "${u.id}" and type "${u.type}" has a name "${u.name}" that is not unique in the project. Entity with id "${a[0].id}" has the same name.
|
|
13
|
+
`+p+"}",v}function dce(u,d,n){d=Wu(d);var a=d.length;if(!a)return Ii(n)?n.call(u):n;for(var l=0;l<a;l++){var p=u==null?void 0:u[d[l]];p===void 0&&(p=n,l=a),u=Ii(p)?p.call(u):p}return u}var uce=0;function cce(u){var d=++uce+"";return u?u+d:d}function pce(u){var d=Zt(u);return d._chain=!0,d}function pL(u,d,n,a,l){if(!(a instanceof d))return u.apply(n,l);var p=nL(u.prototype),t=u.apply(p,l);return js(t)?t:p}var Yl=Mi(function(u,d){var n=Yl.placeholder,a=function(){for(var l=0,p=d.length,t=Array(p),m=0;m<p;m++)t[m]=d[m]===n?arguments[l++]:d[m];for(;l<arguments.length;)t.push(arguments[l++]);return pL(u,a,this,this,t)};return a});Yl.placeholder=Zt;const fL=Mi(function(u,d,n){if(!Ii(u))throw new TypeError("Bind must be called on a function");var a=Mi(function(l){return pL(u,a,d,this,n.concat(l))});return a}),es=SN(Bi);function No(u,d,n,a){if(a=a||[],!d&&d!==0)d=1/0;else if(d<=0)return a.concat(u);for(var l=a.length,p=0,t=Bi(u);p<t;p++){var m=u[p];if(es(m)&&(Vo(m)||nT(m)))if(d>1)No(m,d-1,n,a),l=a.length;else for(var v=0,b=m.length;v<b;)a[l++]=m[v++];else n||(a[l++]=m)}return a}const fce=Mi(function(u,d){d=No(d,!1,!1);var n=d.length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var a=d[n];u[a]=fL(u[a],u)}return u});function hce(u,d){var n=function(a){var l=n.cache,p=""+(d?d.apply(this,arguments):a);return wa(l,p)||(l[p]=u.apply(this,arguments)),l[p]};return n.cache={},n}const hL=Mi(function(u,d,n){return setTimeout(function(){return u.apply(null,n)},d)}),yce=Yl(hL,Zt,1);function mce(u,d,n){var a,l,p,t,m=0;n||(n={});var v=function(){m=n.leading===!1?0:Hu(),a=null,t=u.apply(l,p),a||(l=p=null)},b=function(){var _=Hu();!m&&n.leading===!1&&(m=_);var I=d-(_-m);return l=this,p=arguments,I<=0||I>d?(a&&(clearTimeout(a),a=null),m=_,t=u.apply(l,p),a||(l=p=null)):!a&&n.trailing!==!1&&(a=setTimeout(v,I)),t};return b.cancel=function(){clearTimeout(a),m=0,a=l=p=null},b}function vce(u,d,n){var a,l,p,t,m,v=function(){var _=Hu()-l;d>_?a=setTimeout(v,d-_):(a=null,n||(t=u.apply(m,p)),a||(p=m=null))},b=Mi(function(_){return m=this,p=_,l=Hu(),a||(a=setTimeout(v,d),n&&(t=u.apply(m,p))),t});return b.cancel=function(){clearTimeout(a),a=p=m=null},b}function Ece(u,d){return Yl(d,u)}function ET(u){return function(){return!u.apply(this,arguments)}}function Tce(){var u=arguments,d=u.length-1;return function(){for(var n=d,a=u[d].apply(this,arguments);n--;)a=u[n].call(this,a);return a}}function bce(u,d){return function(){if(--u<1)return d.apply(this,arguments)}}function yL(u,d){var n;return function(){return--u>0&&(n=d.apply(this,arguments)),u<=1&&(d=null),n}}const Ace=Yl(yL,2);function mL(u,d,n){d=Ui(d,n);for(var a=Wr(u),l,p=0,t=a.length;p<t;p++)if(l=a[p],d(u[l],l,u))return l}function vL(u){return function(d,n,a){n=Ui(n,a);for(var l=Bi(d),p=u>0?0:l-1;p>=0&&p<l;p+=u)if(n(d[p],p,d))return p;return-1}}const TT=vL(1),EL=vL(-1);function TL(u,d,n,a){n=Ui(n,a,1);for(var l=n(d),p=0,t=Bi(u);p<t;){var m=Math.floor((p+t)/2);n(u[m])<l?p=m+1:t=m}return p}function bL(u,d,n){return function(a,l,p){var t=0,m=Bi(a);if(typeof p=="number")u>0?t=p>=0?p:Math.max(p+m,t):m=p>=0?Math.min(p+1,m):p+m+1;else if(n&&p&&m)return p=n(a,l),a[p]===l?p:-1;if(l!==l)return p=d(qu.call(a,t,m),kN),p>=0?p+t:-1;for(p=u>0?t:m-1;p>=0&&p<m;p+=u)if(a[p]===l)return p;return-1}}const AL=bL(1,TT,TL),Ice=bL(-1,EL);function bT(u,d,n){var a=es(u)?TT:mL,l=a(u,d,n);if(l!==void 0&&l!==-1)return u[l]}function wce(u,d){return bT(u,Yu(d))}function zn(u,d,n){d=zu(d,n);var a,l;if(es(u))for(a=0,l=u.length;a<l;a++)d(u[a],a,u);else{var p=Wr(u);for(a=0,l=p.length;a<l;a++)d(u[p[a]],p[a],u)}return u}function Lo(u,d,n){d=Ui(d,n);for(var a=!es(u)&&Wr(u),l=(a||u).length,p=Array(l),t=0;t<l;t++){var m=a?a[t]:t;p[t]=d(u[m],m,u)}return p}function IL(u){var d=function(n,a,l,p){var t=!es(n)&&Wr(n),m=(t||n).length,v=u>0?0:m-1;for(p||(l=n[t?t[v]:v],v+=u);v>=0&&v<m;v+=u){var b=t?t[v]:v;l=a(l,n[b],b,n)}return l};return function(n,a,l,p){var t=arguments.length>=3;return d(n,zu(a,p,4),l,t)}}const AT=IL(1),wL=IL(-1);function zl(u,d,n){var a=[];return d=Ui(d,n),zn(u,function(l,p,t){d(l,p,t)&&a.push(l)}),a}function Rce(u,d,n){return zl(u,ET(Ui(d)),n)}function RL(u,d,n){d=Ui(d,n);for(var a=!es(u)&&Wr(u),l=(a||u).length,p=0;p<l;p++){var t=a?a[p]:p;if(!d(u[t],t,u))return!1}return!0}function _L(u,d,n){d=Ui(d,n);for(var a=!es(u)&&Wr(u),l=(a||u).length,p=0;p<l;p++){var t=a?a[p]:p;if(d(u[t],t,u))return!0}return!1}function Hn(u,d,n,a){return es(u)||(u=Wl(u)),(typeof n!="number"||a)&&(n=0),AL(u,d,n)>=0}const _ce=Mi(function(u,d,n){var a,l;return Ii(d)?l=d:(d=Wu(d),a=d.slice(0,-1),d=d[d.length-1]),Lo(u,function(p){var t=l;if(!t){if(a&&a.length&&(p=pT(p,a)),p==null)return;t=p[d]}return t==null?t:t.apply(p,n)})});function IT(u,d){return Lo(u,hT(d))}function Dce(u,d){return zl(u,Yu(d))}function DL(u,d,n){var a=-1/0,l=-1/0,p,t;if(d==null||typeof d=="number"&&typeof u[0]!="object"&&u!=null){u=es(u)?u:Wl(u);for(var m=0,v=u.length;m<v;m++)p=u[m],p!=null&&p>a&&(a=p)}else d=Ui(d,n),zn(u,function(b,_,I){t=d(b,_,I),(t>l||t===-1/0&&a===-1/0)&&(a=b,l=t)});return a}function gce(u,d,n){var a=1/0,l=1/0,p,t;if(d==null||typeof d=="number"&&typeof u[0]!="object"&&u!=null){u=es(u)?u:Wl(u);for(var m=0,v=u.length;m<v;m++)p=u[m],p!=null&&p<a&&(a=p)}else d=Ui(d,n),zn(u,function(b,_,I){t=d(b,_,I),(t<l||t===1/0&&a===1/0)&&(a=b,l=t)});return a}var $ce=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function gL(u){return u?Vo(u)?qu.call(u):rT(u)?u.match($ce):es(u)?Lo(u,fT):Wl(u):[]}function $L(u,d,n){if(d==null||n)return es(u)||(u=Wl(u)),u[mT(u.length-1)];var a=gL(u),l=Bi(a);d=Math.max(Math.min(d,l),0);for(var p=l-1,t=0;t<d;t++){var m=mT(t,p),v=a[t];a[t]=a[m],a[m]=v}return a.slice(0,d)}function Oce(u){return $L(u,1/0)}function Cce(u,d,n){var a=0;return d=Ui(d,n),IT(Lo(u,function(l,p,t){return{value:l,index:a++,criteria:d(l,p,t)}}).sort(function(l,p){var t=l.criteria,m=p.criteria;if(t!==m){if(t>m||t===void 0)return 1;if(t<m||m===void 0)return-1}return l.index-p.index}),"value")}function Gh(u,d){return function(n,a,l){var p=d?[[],[]]:{};return a=Ui(a,l),zn(n,function(t,m){var v=a(t,m,n);u(p,t,v)}),p}}const Pce=Gh(function(u,d,n){wa(u,n)?u[n].push(d):u[n]=[d]}),Vce=Gh(function(u,d,n){u[n]=d}),Nce=Gh(function(u,d,n){wa(u,n)?u[n]++:u[n]=1}),Lce=Gh(function(u,d,n){u[n?0:1].push(d)},!0);function Mce(u){return u==null?0:es(u)?u.length:Wr(u).length}function Bce(u,d,n){return d in n}const OL=Mi(function(u,d){var n={},a=d[0];if(u==null)return n;Ii(a)?(d.length>1&&(a=zu(a,d[1])),d=Ju(u)):(a=Bce,d=No(d,!1,!1),u=Object(u));for(var l=0,p=d.length;l<p;l++){var t=d[l],m=u[t];a(m,t,u)&&(n[t]=m)}return n}),Uce=Mi(function(u,d){var n=d[0],a;return Ii(n)?(n=ET(n),d.length>1&&(a=d[1])):(d=Lo(No(d,!1,!1),String),n=function(l,p){return!Hn(d,p)}),OL(u,n,a)});function CL(u,d,n){return qu.call(u,0,Math.max(0,u.length-(d==null||n?1:d)))}function wT(u,d,n){return u==null||u.length<1?d==null||n?void 0:[]:d==null||n?u[0]:CL(u,u.length-d)}function Kh(u,d,n){return qu.call(u,d==null||n?1:d)}function jce(u,d,n){return u==null||u.length<1?d==null||n?void 0:[]:d==null||n?u[u.length-1]:Kh(u,Math.max(0,u.length-d))}function xce(u){return zl(u,Boolean)}function Fce(u,d){return No(u,d,!1)}const PL=Mi(function(u,d){return d=No(d,!0,!0),zl(u,function(n){return!Hn(d,n)})}),Gce=Mi(function(u,d){return PL(u,d)});function RT(u,d,n,a){BN(d)||(a=n,n=d,d=!1),n!=null&&(n=Ui(n,a));for(var l=[],p=[],t=0,m=Bi(u);t<m;t++){var v=u[t],b=n?n(v,t,u):v;d&&!n?((!t||p!==b)&&l.push(v),p=b):n?Hn(p,b)||(p.push(b),l.push(v)):Hn(l,v)||l.push(v)}return l}const Kce=Mi(function(u){return RT(No(u,!0,!0))});function kce(u){for(var d=[],n=arguments.length,a=0,l=Bi(u);a<l;a++){var p=u[a];if(!Hn(d,p)){var t;for(t=1;t<n&&Hn(arguments[t],p);t++);t===n&&d.push(p)}}return d}function _T(u){for(var d=u&&DL(u,Bi).length||0,n=Array(d),a=0;a<d;a++)n[a]=IT(u,a);return n}const qce=Mi(_T);function Sce(u,d){for(var n={},a=0,l=Bi(u);a<l;a++)d?n[u[a]]=d[a]:n[u[a][0]]=u[a][1];return n}function Zce(u,d,n){d==null&&(d=u||0,u=0),n||(n=d<u?-1:1);for(var a=Math.max(Math.ceil((d-u)/n),0),l=Array(a),p=0;p<a;p++,u+=n)l[p]=u;return l}function Jce(u,d){if(d==null||d<1)return[];for(var n=[],a=0,l=u.length;a<l;)n.push(qu.call(u,a,a+=d));return n}function DT(u,d){return u._chain?Zt(d).chain():d}function VL(u){return zn(uT(u),function(d){var n=Zt[d]=u[d];Zt.prototype[d]=function(){var a=[this._wrapped];return Eue.apply(a,arguments),DT(this,n.apply(Zt,a))}}),Zt}zn(["pop","push","reverse","shift","sort","splice","unshift"],function(u){var d=Uh[u];Zt.prototype[u]=function(){var n=this._wrapped;return n!=null&&(d.apply(n,arguments),(u==="shift"||u==="splice")&&n.length===0&&delete n[0]),DT(this,n)}}),zn(["concat","join","slice"],function(u){var d=Uh[u];Zt.prototype[u]=function(){var n=this._wrapped;return n!=null&&(n=d.apply(n,arguments)),DT(this,n)}});var NL=VL(Object.freeze(Object.defineProperty({__proto__:null,VERSION:DN,after:bce,all:RL,allKeys:Ju,any:_L,assign:Fh,before:yL,bind:fL,bindAll:fce,chain:pce,chunk:Jce,clone:Wue,collect:Lo,compact:xce,compose:Tce,constant:qN,contains:Hn,countBy:Nce,create:Jue,debounce:vce,default:Zt,defaults:sL,defer:yce,delay:hL,detect:bT,difference:PL,drop:Kh,each:zn,escape:ece,every:RL,extend:iL,extendOwn:Fh,filter:zl,find:bT,findIndex:TT,findKey:mL,findLastIndex:EL,findWhere:wce,first:wT,flatten:Fce,foldl:AT,foldr:wL,forEach:zn,functions:uT,get:oL,groupBy:Pce,has:zue,head:wT,identity:fT,include:Hn,includes:Hn,indexBy:Vce,indexOf:AL,initial:CL,inject:AT,intersection:kce,invert:rL,invoke:_ce,isArguments:nT,isArray:Vo,isArrayBuffer:xN,isBoolean:BN,isDataView:jh,isDate:gue,isElement:Due,isEmpty:Zu,isEqual:jue,isError:Oue,isFinite:Nue,isFunction:Ii,isMap:Gue,isMatch:YN,isNaN:kN,isNull:_ue,isNumber:UN,isObject:js,isRegExp:$ue,isSet:kue,isString:rT,isSymbol:jN,isTypedArray:JN,isUndefined:MN,isWeakMap:Kue,isWeakSet:que,iteratee:yT,keys:Wr,last:jce,lastIndexOf:Ice,map:Lo,mapObject:Hue,matcher:Yu,matches:Yu,max:DL,memoize:hce,methods:uT,min:gce,mixin:VL,negate:ET,noop:dL,now:Hu,object:Sce,omit:Uce,once:Ace,pairs:Sue,partial:Yl,partition:Lce,pick:OL,pluck:IT,property:hT,propertyOf:Xue,random:mT,range:Zce,reduce:AT,reduceRight:wL,reject:Rce,rest:Kh,restArguments:Mi,result:dce,sample:$L,select:zl,shuffle:Oce,size:Mce,some:_L,sortBy:Cce,sortedIndex:TL,tail:Kh,take:wT,tap:Yue,template:lce,templateSettings:ice,throttle:mce,times:Que,toArray:gL,toPath:aL,transpose:_T,unescape:rce,union:Kce,uniq:RT,unique:RT,uniqueId:cce,unzip:_T,values:Wl,where:Dce,without:Gce,wrap:Ece,zip:qce},Symbol.toStringTag,{value:"Module"})));NL._=NL;function kr(u){return u.charAt(0).toUpperCase()+u.slice(1)}function Xu(u){return u.charAt(0).toLowerCase()+u.slice(1)}function LL(u,d){if(u.type!==f.Property||d.type!==f.Property)throw new Error(`Expected property entities for comparison. But got ${u.type} and ${d.type}.`);return u===d||u.id===d.id?!0:u.name!==d.name||u.static!==d.static||u.abstract!==d.abstract?!1:vs(u.dataType,d.dataType).compatible}function ML(u,d){if(u.type!==f.DefinitionEntity||d.type!==f.DefinitionEntity)throw new Error(`Expected definition entities for comparison. But got ${u.type} and ${d.type}.`);if(u===d||u.id===d.id)return!0;if(u.properties.length!==d.properties.length)return!1;let n=[...d.properties];const a=[];for(let l=0;l<u.properties.length;l++){const p=u.properties[l];n.find(m=>{const v=LL(p,m);return v&&(n=n.filter(b=>b.id!==m.id)),v})||a.push(p)}return!(a.length>0)}var ms=(u=>(u.BothUnconstrained="both-unconstrained",u.AConstraintBUnconstrained="a-constraint-b-unconstrained",u.BConstraintAUnconstrained="b-constraint-a-unconstrained",u.Same="same",u.AIsListBIsNot="a-is-list-b-is-not",u.BIsListAIsNot="b-is-list-a-is-not",u.AIsNullableBIsNot="a-is-nullable-b-is-not",u.BIsNullableAIsNot="b-is-nullable-a-is-not",u.AIsTemplateBIsNot="a-is-template-b-is-not",u.BIsTemplateAIsNot="b-is-template-a-is-not",u.BothUntyped="both-untyped",u.AIsUntypedBIsNot="a-is-untyped-b-is-not",u.BIsUntypedAIsNot="b-is-untyped-a-is-not",u.TypeEntityMismatch="type-entity-mismatch",u.SameDefinitionEntities="same-definition-entities",u.CompatibleDefinitionEntities="compatible-definition-entities",u.IncompatibleDefinitionEntities="incompatible-definition-entities",u.SamePrimitiveEntities="same-primitive-entities",u.IncompatiblePrimitiveEntities="incompatible-primitive-entities",u.SameBuiltInBaseEntities="same-built-in-base-entities",u.IncompatibleBuiltInBaseEntities="incompatible-built-in-base-entities",u.CheckUnknown="check-unknown",u))(ms||{});function vs(u,d){var n,a,l,p,t,m,v,b,_,I,V;if(u&&u.type!==f.DataType||d&&d.type!==f.DataType)throw new Error(`Expected data-type entities for comparison. But got ${u==null?void 0:u.type} and ${d==null?void 0:d.type}.`);if(u===null&&d===null)return{compatible:!0,type:"both-unconstrained"};if(u===null)return{compatible:!0,type:"a-constraint-b-unconstrained"};if(d===null)return{compatible:!0,type:"b-constraint-a-unconstrained"};if(u===d)return{compatible:!0,type:"same"};if(u.id===d.id)return{compatible:!0,type:"same"};if(u.isList!==d.isList)return{compatible:!1,type:u.isList?"a-is-list-b-is-not":"b-is-list-a-is-not"};if(u.asType!==d.asType)return{compatible:!1,type:u.asType?"a-is-template-b-is-not":"b-is-template-a-is-not"};if(!u.entity&&d.entity)return{compatible:!0,type:"a-is-untyped-b-is-not"};if(u.entity&&!d.entity)return{compatible:!0,type:"b-is-untyped-a-is-not"};if(!u.entity&&!d.entity)return{compatible:!0,type:"both-untyped"};if(((n=u.entity)==null?void 0:n.type)!==((a=d.entity)==null?void 0:a.type))return{compatible:!1,type:"type-entity-mismatch"};if(((l=u.entity)==null?void 0:l.type)===f.DefinitionEntity){if(((p=u.entity)==null?void 0:p.id)===((t=d.entity)==null?void 0:t.id))return{compatible:!0,type:"same-definition-entities"};const B=ML(u.entity,d.entity);return{compatible:B,type:B?"compatible-definition-entities":"incompatible-definition-entities"}}return((m=u.entity)==null?void 0:m.type)===f.PrimitiveEntity?((v=u.entity)==null?void 0:v.id)===((b=d.entity)==null?void 0:b.id)?{compatible:!0,type:"same-primitive-entities"}:{compatible:!1,type:"incompatible-primitive-entities"}:((_=u.entity)==null?void 0:_.type)===f.BuiltInBaseEntity?((I=u.entity)==null?void 0:I.id)===((V=d.entity)==null?void 0:V.id)?{compatible:!0,type:"same-built-in-base-entities"}:{compatible:!1,type:"incompatible-built-in-base-entities"}:{compatible:!1,type:"check-unknown"}}function Wce(u,d){const n=u.project.builtInBaseEntities.find(p=>p.id===Oe.EXECUTION),a={id:P.UUID.uuid(),version:P.UUID.uuid(),createdAt:(d==null?void 0:d.timestamp)||new Date().toISOString(),author:P.sessionAuthor,previousVersion:null,deleted:!1,type:f.DataType,isList:!1,isNullable:!1,andChildrenGroup:null,orChildrenGroup:null,asType:!1,entity:null,constant:!1,defaultValue:null,parent:null},l=z(a,u.project);return l.inferred=!0,d==null||d.add(l,G.Added),l.metaSync(a,d),l.setParent(u,d),l.entity=n,l}function BL(u,d=null){return u.dataType?u.dataType:null}function gT(u,d=null){var a;const n=(a=u.declaration)==null?void 0:a.getDataType(d);return n&&n.isResolved?n:u.readsValue?xs(u.readsValue,d):null}function $T(u,d=null){return u.dataType&&!u.dataType.inferred&&u.dataType.isResolved?u.dataType:u.readsValue?xs(u.readsValue,d):null}function UL(u,d=null){return xs(u.declaration,d)}function jL(u,d=null){return u.dataType&&!u.dataType.inferred?u.dataType:(u.dataType&&u.dataType.inferred||!u.dataType)&&u.project.initialized?(u.inferDataTypeAndSyncInstancesInputsAndOutputs(d),u.dataType):null}function OT(u,d=null){var n;return((n=u.declaration)==null?void 0:n.dataType)||null}function xL(u,d=null){return(u==null?void 0:u.dataType)||null}function FL(u,d=null){return(u==null?void 0:u.dataType)||null}function xs(u,d=null){switch(u.type){case f.VariableDeclaration:return jL(u,d);case f.ArgumentDeclaration:return BL(u,d);case f.ReturnDeclaration:return $T(u,d);case f.VariableInstance:return UL(u,d);case f.InputMap:return gT(u,d);case f.OutputMap:return OT(u,d);case f.Property:return xL(u,d);case f.ValueDescriptor:return FL(u,d);default:throw new Error(`Cannot infer data type from entity of type ${u.type}.`)}}function kh(u,d=null){switch(u.type){case f.ArgumentDeclaration:return u.getDataType(d);case f.InputMap:return u.getDataType(d);case f.VariableDeclaration:return u.getDataType(d);case f.VariableInstance:return u.getDataType(d);case f.OutputMap:return u.getDataType(d);case f.ReturnDeclaration:return u.getDataType(d);case f.Property:return u.getDataType(d);case f.ValueDescriptor:return u.getDataType(d);default:return null}}function W(u){if(u){let d=null;return typeof u=="string"?d=u:u.entityId?d=u.entityId:u.type!==f.GenericReference&&(d=u.id),d}return null}function Mo(u){return u.declaration||u}function Yce(u){return u.type===f.VariableDeclaration?u.parent===u.project?"global-declaration":"local-declaration":u.declaration.parent===u.project?"global-instance":"local-instance"}function CT(u,d){const n=[];if(u.type===f.Project)n.push(...u.variableDeclarations);else{const l=ei(at(u)).filter(p=>p.type===f.VariableDeclaration);n.push(...l),u.parent&&(br.includes(u.parent.type)||u.parent.type===f.Project)&&n.push(...CT(u.parent))}return n}function Ra(u){return u.split(/[\s-]+/).filter(a=>a.length>0).map((a,l)=>l===0?a.toLowerCase():a[0].toUpperCase()+a.slice(1).toLowerCase()).join("")}function Hl(u){return u.split(/[\s-]+/).filter(a=>a.length>0).map(a=>a[0].toUpperCase()+a.slice(1).toLowerCase()).join("")}function GL(u){var d;return(d=u.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:d.map(n=>n.toLowerCase()).join("-")}function qh(u){return GL(u).toLowerCase()}function Sh(u){var n,a,l,p;if(!u)return"Any data type";let d="";if(u.interactiveEntities===!1?d+=` but only definition nodes ${u.asType?"as template ":""}that don't include non-interactive built-in functionality`:u.interactiveEntities===!0&&(d+=` but only definition nodes ${u.asType?"as template ":""}that extend or implement interactive built-in functionality`),u.staticEntities===!1?d?d+=" and that aren't a single global copy instance":d+=` but only definition nodes ${u.asType?"as template ":""}that aren't a single global copy instance`:u.staticEntities===!0&&(d?d+=" and that are a single global copy instance":d+=` but only definition nodes ${u.asType?"as template ":""}that are a single global copy instance`),u.actionEntities===!1?d?d+=" excluding executable/action nodes":d+=` excluding executable/action nodes ${u.asType?"templates ":""}`:u.actionEntities===!0&&(d?d+=" and not executable/action nodes":d+=" but not executable/action nodes"),u.entity&&(d=""),u.asType&&!d&&!((n=u.andChildrenGroup)!=null&&n.length)&&!((a=u.orChildrenGroup)!=null&&a.length)&&(d=" as template"),!u.entity){const t=u.isList;if(!((l=u.andChildrenGroup)!=null&&l.length)&&!((p=u.orChildrenGroup)!=null&&p.length))return t?`List of an any data type${d}`:`Any data type${d}`;let m="",v=!1,b=!1;return(u.andChildrenGroup||[]).forEach(_=>{const I=Sh(_),V=Xu(I);v&&(m+=" and "),_.isGroup?m+="("+V+")":v?m+=V:m+=I,v=!0,b=!0}),(u.orChildrenGroup||[]).forEach(_=>{const I=Sh(_),V=Xu(I);v&&(b&&(m+=","),m+=" or "),_.isGroup?m+="("+V+")":v?m+=V:m+=I,v=!0}),t?`List of ${Xu(m)}`:m}if(u.entity.type===f.PrimitiveEntity){let t=u.entity.name;switch(u.entity.name){case ee.String:t="Text";break;case ee.KeyValue:t="Data structure";break}return u.isList?`List of ${t}s${d}`:`${t.slice(0,1).toUpperCase()}${t.slice(1)}${d}`}else if(u.entity.type===f.DefinitionEntity){const t=fe(u.entity,u.project);return u.isList?`List of ${t} values${d}`:t.slice(0,1).toUpperCase()+t.slice(1)+d}else if(u.entity.type===f.BuiltInBaseEntity){const t=kL(u.entity);return u.isList?`List of ${t} values${d}`:t.slice(0,1).toUpperCase()+t.slice(1)+d}else if(u.entity.type===f.LiteralValue){if(u.entity.name===ee.Null)return"Empty value";if(u.entity.name===ee.Untyped)return"Untyped value";if(u.entity.name===ee.File)return"File";if(u.entity.name===ee.String)return`"${u.entity.value}" text`;if(u.entity.name===ee.Number)return`Number '${u.entity.value}'`;if(u.entity.name===ee.Boolean)return`${u.entity.value} value`;if(u.entity.name===ee.UUID)return`"${u.entity.value}" unique identifier`;if(u.entity.name===ee.Date)return`"${u.entity.value}" date`}return u.isList?`List of ${fe(u.entity,u.project)} values${d}`:`${fe(u.entity,u.project).slice(0,1).toUpperCase()+fe(u.entity,u.project).slice(1)} value${d}`}function zce(u){if(!u)return"Any data type";const d=u.getDataType(null);return Sh(d)}function Zh(u){switch(u.declaration.id){case fr.Equal:return"is equal to";case fr.NotEqual:return"is not equal to";case fr.MoreThan:return"is greater than";case fr.MoreThanOrEqual:return"is greater than or equal to";case fr.LessThan:return"is less than";case fr.LessThanOrEqual:return"is less than or equal to";case fr.And:return"and";case fr.Or:return"or";case ps.Empty:return"is empty";case ps.NotEmpty:return"is not empty"}}function KL(u){return u.includes(Oe.HTTP_ENDPOINT)?"HTTP endpoint":u.includes(Oe.PERSISTED_ENTITY)?"Persisted entity":u.includes(Oe.CRON_JOB)?"Scheduled execution":u.includes(Oe.RELATIONAL_DATABASE)?"Relational database":"Entity"}function kL(u){switch(u.name){case Oe.HTTP_ENDPOINT:return"HTTP endpoint";case Oe.PERSISTED_ENTITY:return"Persisted entity";case Oe.CRON_JOB:return"Scheduled execution";case Oe.RELATIONAL_DATABASE:return"Relational database"}return"Entity"}function Hce(u){const d=$b(u);if(!d){const n=Ty(u);return n.includes(Oe.HTTP_ENDPOINT)?"HTTP endpoint":n.includes(Oe.PERSISTED_ENTITY)?"Persisted entity":n.includes(Oe.CRON_JOB)?"Scheduled execution":n.includes(Oe.RELATIONAL_DATABASE)?"Relational database":fe(u,u.project)+" entity"}return fe(d,u.project)+" entity"}function qL(u){let d="Find ";return u.outputsDeclarations.forEach((n,a)=>{const l=kh(n,null),p=Xu(l&&l.entity?fe(l.entity,u.project):"unstructured data");a===0?d+=`${p} `:a===u.outputsDeclarations.length-1?d+=`and ${p} `:d+=`, ${p} `}),d}function SL(u){switch(u.name){case ee.String:return"Text";case ee.Number:return"Number";case ee.Boolean:return"Boolean";case ee.KeyValue:return"Data structure";case ee.UUID:return"Unique identifier";case ee.Date:return"Date";case ee.EntityTemplate:return"Entity as template";case ee.Enum:return"Enumeration";case ee.File:return"File";case ee.Null:return"Empty";case ee.ActionDescriptor:return"Action descriptor";case ee.Untyped:return"Untyped";default:return u.name}}function ZL(u){switch(u.id){case Be.List:return"Loop over list items";case Be.ManualFlow:return"Manual flow control loop";case Be.ObjectKeys:return"Loop over object keys";case Be.ObjectValues:return"Loop over object values";case Be.Counted:return"Loop given number of times";case Be.String:return"Loop over text characters";case Ht.Addition:return"Sum numbers";case Ht.Subtraction:return"Subtract numbers";case Ht.Multiplication:return"Multiply numbers";case Ht.Division:return"Divide numbers";case Ht.Remainder:return"Get remainder of numbers";case Ht.Exponentiation:return"Get exponent of numbers";case ut.AddIndex:return"Add at index position";case ut.DeleteFirst:return"Delete first character";case ut.DeleteLast:return"Delete last character";case ut.DeleteIndex:return"Delete at index position";case ut.Join:return"Join texts";case ut.ReplaceAllMatches:return"Replace all matches";case ut.ReplaceFirst:return"Replace first match";case ut.ReplaceLast:return"Replace last match";case ut.Split:return"Split text";case ut.ReplaceIndex:return"Replace at index position";case ut.ReplaceSingleMatch:return"Replace single match";case ut.GetFirst:return"Get first character";case ut.GetLast:return"Get last character";case ut.GetIndex:return"Get at index position";case ut.Append:return"Add at the end";case ut.Prepend:return"Add at the start";case Jt.Wait:return"Wait";case Jt.Parallel:return"Run in parallel";case Jt.Sequential:return"Run in sequence";case Hr.HttpRequest:return"HTTP request";case Wt.CreateNewInstance:return"Create new copy of entity";case it.AddIndex:return"Add item at index position";case it.DeleteFirst:return"Delete first item";case it.DeleteLast:return"Delete last item";case it.DeleteIndex:return"Delete item at index position";case it.Join:return"Join lists";case it.ReplaceAllMatches:return"Replace all matches";case it.ReplaceFirst:return"Replace first match";case it.ReplaceLast:return"Replace last match";case it.Split:return"Split list";case it.ReplaceIndex:return"Replace at index position";case it.ReplaceSingleMatch:return"Replace single match";case it.GetFirst:return"Get first item";case it.GetLast:return"Get last item";case it.GetIndex:return"Get item at index position";case it.Append:return"Add item at the end";case it.Prepend:return"Add item at the start";case Mn.PROJECT_PUBLICATION_COMPLETED:return"Project publication completed";default:return(u.name.slice(0,1).toUpperCase()+u.name.slice(1)).replaceAll("-"," ")}}function fe(u,d){var n;if(f.FunctionDeclaration===u.type){const a=u.name;if(Object.values(Ji).includes(a))switch(a){case Ji.AbortExecution:return"Abort execution";case Ji.DeletePersistedEntity:return"Delete persisted entity";case Ji.SoftDeletePersistedEntity:return"Soft delete persisted entity";default:return kr(u.type).replaceAll("-"," ")}return a}if(f.BuiltInBaseEntity===u.type)return KL([u.name]);if(t1.includes(u.type)&&u.type!==f.ActionDescriptor)return u.name;switch(u.type){case f.Search:return qL(u);case f.GlobalEvent:return u.implements?fe(u.implements,d):kr(u.type).replaceAll("-"," ");case f.Operation:case f.InternalCall:case f.Loop:const a=ss(u.declaration,d);return fe(a,d);case f.ActionDescriptor:return ZL(u);case f.BreakStatement:const l=ss(u.parent,d);return`Stop loop ${fe(l,d)}`;case f.ContinueStatement:const p=ss(u.parent,d);return`Execute next iteration of ${fe(p,d)}`;case f.FunctionCall:return ss(u.declaration,d).name;case f.Condition:{const m=u;if((n=u.inputs)!=null&&n.length){const v=fe(m.inputs[0],m.project);if(m.inputs[1]){const b=m.inputs[1].declaration.name;return`If ${v} ${Zh(m)} ${b}`}return`If ${v} ${Zh(m)}`}else return`If ${Zh(m)}`}case f.ReturnStatement:{const m=ss(u.parent,d);return m?`Output of ${fe(m,d)}`:"Return statement"}case f.InputMap:if(u.declaration){const m=ss(u.declaration,d);return fe(m,d)||""}else return u.name||"";case f.VariableInstance:{const m=ss(u.declaration,d);return fe(m,d)||""}case f.OutputMap:if(u.declaration){const m=ss(u.declaration,d);return(m==null?void 0:m.name)||""}else return"";case f.PrimitiveEntity:case f.LiteralValue:return SL(u);default:return kr(u.type).replaceAll("-"," ")}}function PT(u,d){const n=[];u.name||n.push(new Y({id:`${u.id}--${le.EmptyName}`,message:`Entity with id "${u.id}" and type "${u.type}" has an empty name. Please provide a 'name' string.`,severity:S.Error,code:le.EmptyName,issue:null}));const a=d.entities.filter(l=>l.name===u.name);return a.length&&n.push(new Y({id:`${u.id}--${le.NameNotUniqueInScope}`,message:`Entity with id "${u.id}" and type "${u.type}" has a name "${u.name}" that is not unique in the project. Entity with id "${a[0].id}" has the same name.
|
|
14
14
|
Please provide a unique 'name' string.`,severity:S.Error,code:le.NameNotUniqueInScope,issue:null})),n}function VT(u,d){const n=[];u.name||n.push(new Y({id:`${u.id}--${le.EmptyName}`,message:`Entity with id "${u.id}" and type "${u.type}" has an empty name. Please provide a 'name' string.`,severity:S.Error,code:le.EmptyName,issue:null}));const a=u.parent?W(u.parent):null;let l=d;a&&(l=d.get(a));const p=[];l.type===f.DefinitionEntity?p.push(...l.methods.map(m=>m)):l.type===f.Project?p.push(...l.functions.map(m=>m)):l.type===f.Loop?l.body&&p.push(l.body):l.type===f.InstalledProject&&p.push(...l.functions.map(m=>m));const t=p.filter(m=>m.name===u.name);return t.length&&n.push(new Y({id:`${u.id}--${le.NameNotUniqueInScope}`,message:`Entity with id "${u.id}" and type "${u.type}" has a name "${u.name}" that is not unique in ${l.type===f.Project?"the globally declared project scope":"its parent entity"}. Entity with id "${t[0].id}" has the same name.
|
|
15
15
|
Please provide a unique 'name' string.`,severity:S.Error,code:le.NameNotUniqueInScope,issue:null})),n}function NT(u,d){const n=[];u.name||n.push(new Y({id:`${u.id}--${le.EmptyName}`,message:`Entity with id "${u.id}" and type "${u.type}" has an empty name. Please provide a 'name' string.`,severity:S.Error,code:le.EmptyName,issue:null}));const a=u.parent&&ss(u.parent,d)||d;if(!a)n.push(new Y({id:`${u.id}--parent-reference--${k.ReferencedEntityNotFound}`,message:`The entity with id '${u.parent}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:S.Error,code:k.ReferencedEntityNotFound,issue:null}));else{const p=CT(a).filter(t=>t.name===u.name);p.length&&n.push(new Y({id:`${u.id}--${le.NameNotUniqueInScope}`,message:`Entity with id "${u.id}" and type "${u.type}" has a name "${u.name}" that is not unique in its scope or higher scopes. Entity with id "${p[0].id}" has the same name.
|
|
16
16
|
Please provide a unique 'name' string.`,severity:S.Error,code:le.NameNotUniqueInScope,issue:null}))}return n}function LT(u,d){const n=[];u.name||n.push(new Y({id:`${u.id}--${le.EmptyName}`,message:`Entity with id "${u.id}" and type "${u.type}" has an empty name. Please provide a 'name' string.`,severity:S.Error,code:le.EmptyName,issue:null}));const a=W(u.parent);if(!a)n.push(new Y({id:`${u.id}--parent-reference--${k.InvalidReferenceObjectStructure}`,message:`Reference object at 'parent' property for entity with id "${u.id}" and type "${u.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,severity:S.Error,code:k.InvalidReferenceObjectStructure,issue:null}));else{const l=d.get(a);if(!l)n.push(new Y({id:`${u.id}--parent-reference--${k.ReferencedEntityNotFound}`,message:`The entity with id '${a}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:S.Error,code:k.ReferencedEntityNotFound,issue:null}));else{const t=l.properties.filter(m=>m.name===u.name);t.length&&n.push(new Y({id:`${u.id}--${le.NameNotUniqueInScope}`,message:`Entity with id "${u.id}" and type "${u.type}" has a name "${u.name}" that is not unique among all properties in the parent entity. Entity with id "${t[0].id}" has the same name.
|
|
@@ -216,11 +216,9 @@ ${ja}`,severity:S.Error,code:k.InvalidInmutablePropertyOverride,issue:null}))),t
|
|
|
216
216
|
${ja}`,severity:S.Error,code:k.InvalidInmutablePropertyOverride,issue:null})),u.calledByEntry&&n.push(new Y({id:`${d.id}--${k.InvalidInmutablePropertyOverride}`,message:`Entity of type "${d.type}" with id "${d.id}" cannot have the property "calledByEntry" updated.
|
|
217
217
|
${ja}`,severity:S.Error,code:k.InvalidInmutablePropertyOverride,issue:null})),u.calledBySuccess&&n.push(new Y({id:`${d.id}--${k.InvalidInmutablePropertyOverride}`,message:`Entity of type "${d.type}" with id "${d.id}" cannot have the property "calledBySuccess" updated.
|
|
218
218
|
${ja}`,severity:S.Error,code:k.InvalidInmutablePropertyOverride,issue:null})),u.calledByError&&n.push(new Y({id:`${d.id}--${k.InvalidInmutablePropertyOverride}`,message:`Entity of type "${d.type}" with id "${d.id}" cannot have the property "calledByError" updated.
|
|
219
|
-
${ja}`,severity:S.Error,code:k.InvalidInmutablePropertyOverride,issue:null}))),n.length)return{errors:n,modifiedData:null,messageAddition:""};const l=ap(d.type);if(l){(l.INMUTABLE_META_PROPERTIES||[]).forEach(Z=>{["type","id"].includes(Z)||u[Z]&&!Zu(u[Z])&&(n.push(new Y({id:`${d.id}--${k.InvalidInmutablePropertyOverride}`,message:`Entity of type "${d.type}" with id "${d.id}" cannot have the property "${Z}" updated. It is an inmutable property that is set only when the entity is created.
|
|
220
|
-
If you need to update this property, you should delete the entity and create a new one with the updated value.`,severity:S.Error,code:k.InvalidInmutablePropertyOverride,issue:null})),a=!0)}),(l.DOWNSTREAM_PROPERTIES||[]).forEach(Z=>{u[Z]&&!Zu(u[Z])&&(n.push(new Y({id:`${d.id}--${k.InvalidDownstreamPropertyOverride}`,message:`Entity of type "${d.type}" with id "${d.id}" cannot have the property "${Z}" set directly. It is a downstream property that points to a downstream nested entity.
|
|
219
|
+
${ja}`,severity:S.Error,code:k.InvalidInmutablePropertyOverride,issue:null}))),n.length)return{errors:n,modifiedData:null,messageAddition:""};const l=ap(d.type);if(l){(l.INMUTABLE_META_PROPERTIES||[]).forEach(Z=>{["type","id"].includes(Z)||u[Z]&&!Zu(u[Z])&&(n.push(new Y({id:`${d.id}--${k.InvalidInmutablePropertyOverride}`,message:`Entity of type "${d.type}" with id "${d.id}" cannot have the property "${Z}" updated. It is an inmutable property that is set only when the entity is created.`,severity:S.Error,code:k.InvalidInmutablePropertyOverride,issue:null})),a=!0)}),(l.DOWNSTREAM_PROPERTIES||[]).forEach(Z=>{u[Z]&&!Zu(u[Z])&&(n.push(new Y({id:`${d.id}--${k.InvalidDownstreamPropertyOverride}`,message:`Entity of type "${d.type}" with id "${d.id}" cannot have the property "${Z}" set directly. It is a downstream property that points to a downstream nested entity.
|
|
221
220
|
All downstream references are managed by the downstream entity. Entities only manage their own upstream references.
|
|
222
|
-
To modify '${Z}', target the entity that it points to and its equivalent property.`,severity:S.Error,code:k.InvalidDownstreamPropertyOverride,issue:null})),a=!0)}),(l.INMUTABLE_UPSTREAM_PROPERTIES||[]).forEach(Z=>{u[Z]&&!Zu(u[Z])&&(n.push(new Y({id:`${d.id}--${k.InvalidInmutablePropertyOverride}`,message:`Entity of type "${d.type}" with id "${d.id}" cannot have the property "${Z}" updated. It is an inmutable property that is set only when the entity is created.
|
|
223
|
-
If you need to update this property, you should delete the entity and create a new one with the updated value.`,severity:S.Error,code:k.InvalidInmutablePropertyOverride,issue:null})),a=!0)});const q=l.PROPERTIES||[];q.length>0&&Object.keys(u).forEach(Z=>{q.includes(Z)||n.push(new Y({id:`${d.id}--${k.UnrecognizedProperty}`,message:`Entity of type "${d.type}" with id "${d.id}" has an unrecognized property "${Z}" that will be ignored.`,severity:S.Warning,code:k.UnrecognizedProperty,issue:null}))})}if(n.length)return{errors:n,modifiedData:null,messageAddition:a?ay(d):""};const p=Y3(d),t=p==null?void 0:p.partial(),m=t==null?void 0:t.safeParse(u),v={...u,id:d.id,type:d.type},b=ob(v,m);if(n.push(...b),n.length)return{errors:n,modifiedData:null,messageAddition:a?ay(d):""};const I=d.validateGeneratedUpdate(u);return{errors:[...n,...I.errors],modifiedData:I.modifiedData,messageAddition:a?ay(d):""}}function Y3(u){switch(u.type){case f.LiteralValue:return Ih();case f.DefinitionEntity:return eT();case f.PrimitiveEntity:return Ih();case f.FunctionDeclaration:return XE();case f.GlobalEvent:return Ch();case f.DataType:return qE();case f.Property:return $E();case f.FunctionCall:return BE();case f.Condition:return UE();case f.Operation:return gh();case f.VariableDeclaration:return ZE();case f.VariableInstance:return JE();case f.OutputMap:return ME();case f.ReturnDeclaration:return VE();case f.ArgumentDeclaration:return HE();case f.InputMap:return GE();case f.Project:return QE();case f.InstalledProject:return lde();case f.ActionDescriptor:return Rh();case f.ReturnStatement:return PE();case f.Loop:return Rh();case f.Search:return jE();case f.ValueDescriptor:return gE();case f.BuiltInBaseEntity:return OE();case f.InternalCall:return FE();case f.ContinueStatement:return CE();case f.BreakStatement:return NE();default:return null}}function z3(u){switch(u.type){case f.LiteralValue:return Ble();case f.DefinitionEntity:return Qde();case f.PrimitiveEntity:return Roe();case f.FunctionDeclaration:return qde();case f.GlobalEvent:return yde();case f.DataType:return Yle();case f.Property:return $oe();case f.FunctionCall:return ule();case f.Condition:return yle();case f.Operation:return Ple();case f.VariableDeclaration:return ede();case f.VariableInstance:return nde();case f.OutputMap:return ale();case f.ReturnDeclaration:return Xoe();case f.ArgumentDeclaration:return Fde();case f.InputMap:return gle();case f.Project:return Yde();case f.InstalledProject:return ude();case f.ActionDescriptor:return Uoe();case f.ReturnStatement:return Woe();case f.Loop:return Foe();case f.Search:return Tle();case f.ValueDescriptor:return boe();case f.BuiltInBaseEntity:return Noe();case f.InternalCall:return wle();case f.ContinueStatement:return qoe();case f.BreakStatement:return rle();default:return null}}function oy(u){const d=[];js(u)||d.push(new Y({id:`${u}--${k.InvalidReferenceObjectStructure}`,message:`Reference object with id "${u}" is not an object. References should be objects with exactly 4 properties: 'entityId', 'entityType', 'id', and 'type'.`,severity:S.Error,code:k.InvalidReferenceObjectStructure,issue:null}));const n=u.id||"reference-to--"+(u.entityId||"unknown"),a=`Reference object ${u.id?`with id "${u.id}"`:`to entity with id "${u.entityId}" and type "${u.entityType}"`}`;return u.entityId||d.push(new Y({id:`${n}--${k.InvalidReferenceObjectStructure}`,message:`${a} is missing an 'entityId' property.`,severity:S.Error,code:k.InvalidReferenceObjectStructure,issue:null})),u.entityType||d.push(new Y({id:`${n}--${k.InvalidReferenceObjectStructure}`,message:`${a} is missing an 'entityType' property.`,severity:S.Error,code:k.InvalidReferenceObjectStructure,issue:null})),u.id||d.push(new Y({id:`${n}--${k.MissingIdProperty}`,message:`${a} is missing an 'id' property.`,severity:S.Error,code:k.MissingIdProperty,issue:null})),u.type||d.push(new Y({id:`${n}--${k.MissingTypeProperty}`,message:`${a} is missing a 'type' property.`,severity:S.Error,code:k.MissingTypeProperty,issue:null})),d}function ob(u,d){return d.success?[]:d.error.issues.map(n=>new Y({id:`${u.id}--${le.InvalidObjectStructure}`,message:`Entity of type "${u.type}" and with id "${u.id}", has an invalid structure: ${mue(n).toString().replace("Validation error: ","")}`,severity:S.Error,code:le.InvalidObjectStructure,issue:n}))}function ur(u,d){const n=[],a=z3(u);if(a){const p=a.safeParse(u);n.push(...ob(u,p))}const l=ap(u.type);if(l){(l.DOWNSTREAM_PROPERTIES||[]).forEach(m=>{u[m]&&!Zu(u[m])&&n.push(new Y({id:`${u.id}--${k.InvalidDownstreamPropertyOverride}`,message:`Entity of type "${u.type}" with id "${u.id}" cannot have the property "${m}" set directly. It is a downstream property that points to a downstream nested entity.
|
|
221
|
+
To modify '${Z}', target the entity that it points to and its equivalent property.`,severity:S.Error,code:k.InvalidDownstreamPropertyOverride,issue:null})),a=!0)}),(l.INMUTABLE_UPSTREAM_PROPERTIES||[]).forEach(Z=>{u[Z]&&!Zu(u[Z])&&(n.push(new Y({id:`${d.id}--${k.InvalidInmutablePropertyOverride}`,message:`Entity of type "${d.type}" with id "${d.id}" cannot have the property "${Z}" updated. It is an inmutable property that is set only when the entity is created.`,severity:S.Error,code:k.InvalidInmutablePropertyOverride,issue:null})),a=!0)});const q=l.PROPERTIES||[];q.length>0&&Object.keys(u).forEach(Z=>{q.includes(Z)||n.push(new Y({id:`${d.id}--${k.UnrecognizedProperty}`,message:`Entity of type "${d.type}" with id "${d.id}" has an unrecognized property "${Z}" that will be ignored.`,severity:S.Warning,code:k.UnrecognizedProperty,issue:null}))})}if(n.length)return{errors:n,modifiedData:null,messageAddition:a?ay(d):""};const p=Y3(d),t=p==null?void 0:p.partial(),m=t==null?void 0:t.safeParse(u),v={...u,id:d.id,type:d.type},b=ob(v,m);if(n.push(...b),n.length)return{errors:n,modifiedData:null,messageAddition:a?ay(d):""};const I=d.validateGeneratedUpdate(u);return{errors:[...n,...I.errors],modifiedData:I.modifiedData,messageAddition:a?ay(d):""}}function Y3(u){switch(u.type){case f.LiteralValue:return Ih();case f.DefinitionEntity:return eT();case f.PrimitiveEntity:return Ih();case f.FunctionDeclaration:return XE();case f.GlobalEvent:return Ch();case f.DataType:return qE();case f.Property:return $E();case f.FunctionCall:return BE();case f.Condition:return UE();case f.Operation:return gh();case f.VariableDeclaration:return ZE();case f.VariableInstance:return JE();case f.OutputMap:return ME();case f.ReturnDeclaration:return VE();case f.ArgumentDeclaration:return HE();case f.InputMap:return GE();case f.Project:return QE();case f.InstalledProject:return lde();case f.ActionDescriptor:return Rh();case f.ReturnStatement:return PE();case f.Loop:return Rh();case f.Search:return jE();case f.ValueDescriptor:return gE();case f.BuiltInBaseEntity:return OE();case f.InternalCall:return FE();case f.ContinueStatement:return CE();case f.BreakStatement:return NE();default:return null}}function z3(u){switch(u.type){case f.LiteralValue:return Ble();case f.DefinitionEntity:return Qde();case f.PrimitiveEntity:return Roe();case f.FunctionDeclaration:return qde();case f.GlobalEvent:return yde();case f.DataType:return Yle();case f.Property:return $oe();case f.FunctionCall:return ule();case f.Condition:return yle();case f.Operation:return Ple();case f.VariableDeclaration:return ede();case f.VariableInstance:return nde();case f.OutputMap:return ale();case f.ReturnDeclaration:return Xoe();case f.ArgumentDeclaration:return Fde();case f.InputMap:return gle();case f.Project:return Yde();case f.InstalledProject:return ude();case f.ActionDescriptor:return Uoe();case f.ReturnStatement:return Woe();case f.Loop:return Foe();case f.Search:return Tle();case f.ValueDescriptor:return boe();case f.BuiltInBaseEntity:return Noe();case f.InternalCall:return wle();case f.ContinueStatement:return qoe();case f.BreakStatement:return rle();default:return null}}function oy(u){const d=[];js(u)||d.push(new Y({id:`${u}--${k.InvalidReferenceObjectStructure}`,message:`Reference object with id "${u}" is not an object. References should be objects with exactly 4 properties: 'entityId', 'entityType', 'id', and 'type'.`,severity:S.Error,code:k.InvalidReferenceObjectStructure,issue:null}));const n=u.id||"reference-to--"+(u.entityId||"unknown"),a=`Reference object ${u.id?`with id "${u.id}"`:`to entity with id "${u.entityId}" and type "${u.entityType}"`}`;return u.entityId||d.push(new Y({id:`${n}--${k.InvalidReferenceObjectStructure}`,message:`${a} is missing an 'entityId' property.`,severity:S.Error,code:k.InvalidReferenceObjectStructure,issue:null})),u.entityType||d.push(new Y({id:`${n}--${k.InvalidReferenceObjectStructure}`,message:`${a} is missing an 'entityType' property.`,severity:S.Error,code:k.InvalidReferenceObjectStructure,issue:null})),u.id||d.push(new Y({id:`${n}--${k.MissingIdProperty}`,message:`${a} is missing an 'id' property.`,severity:S.Error,code:k.MissingIdProperty,issue:null})),u.type||d.push(new Y({id:`${n}--${k.MissingTypeProperty}`,message:`${a} is missing a 'type' property.`,severity:S.Error,code:k.MissingTypeProperty,issue:null})),d}function ob(u,d){return d.success?[]:d.error.issues.map(n=>new Y({id:`${u.id}--${le.InvalidObjectStructure}`,message:`Entity of type "${u.type}" and with id "${u.id}", has an invalid structure: ${mue(n).toString().replace("Validation error: ","")}`,severity:S.Error,code:le.InvalidObjectStructure,issue:n}))}function ur(u,d){const n=[],a=z3(u);if(a){const p=a.safeParse(u);n.push(...ob(u,p))}const l=ap(u.type);if(l){(l.DOWNSTREAM_PROPERTIES||[]).forEach(m=>{u[m]&&!Zu(u[m])&&n.push(new Y({id:`${u.id}--${k.InvalidDownstreamPropertyOverride}`,message:`Entity of type "${u.type}" with id "${u.id}" cannot have the property "${m}" set directly. It is a downstream property that points to a downstream nested entity.
|
|
224
222
|
All downstream references are managed by the downstream entity. Entities only manage their own upstream references.
|
|
225
223
|
To modify '${m}', target the entity that it points to and its equivalent property.`,severity:S.Error,code:k.InvalidDownstreamPropertyOverride,issue:null}))});const t=l.PROPERTIES||[];t.length>0&&Object.keys(u).forEach(m=>{t.includes(m)||n.push(new Y({id:`${u.id}--${k.UnrecognizedProperty}`,message:`Entity of type "${u.type}" with id "${u.id}" has an unrecognized property "${m}" that will be ignored.`,severity:S.Warning,code:k.UnrecognizedProperty,issue:null}))})}return n}function ghe(u,d){const n=[];if(!u.parent)return n;const a=d.get(u.parent);return a?(Pi.includes(a==null?void 0:a.type)?n.push(new Y({id:`${u.id}--${k.BuiltInEntityParent}`,message:`Entity of type "${u.type}" with id "${u.id}" cannot have the parent with id "${a.id}", because it is a built in entity. Built in entities cannot be modified.`,severity:S.Error,code:k.BuiltInEntityParent,issue:null})):a.type===f.ActionDescriptor&&d.get(u.parent)&&n.push(new Y({id:`${u.id}--${k.BuiltInEntityParent}`,message:`Entity of type "${u.type}" with id "${u.id}" cannot have the parent with id "${a.id}", because it is a built in entity. Built in entities cannot be modified. Action descriptors are only sometimes built in, other times they are managed by the user.`,severity:S.Error,code:k.BuiltInEntityParent,issue:null})),n):[]}function lb(u,d,n){const a=[],l=u[d.key];if(!l)return a.push(new Y({id:`${u.id}--${d.key}--${le.InvalidObjectStructure}`,message:`Entity of type "${u.type}" with id "${u.id}" is missing a reference to a "${d.key}" entity. The '${d.key}' property of a "${u.type}" entity can be ${Ke(d.types,", "," or ")}.`,severity:S.Error,code:le.InvalidObjectStructure,issue:null})),{entityState:null,errors:a};let p=null;if(typeof l=="string")p=l;else{const m=oy(l);a.push(...m),m.length===0&&(p=l.entityId)}if(!p)return{entityState:null,errors:a};if(u.id===p)return a.push(new Y({id:`${u.id}--${p}--${k.SelfReference}`,message:`Entity of type "${u.type}" with id "${u.id}", has a reference to itself at '${d.key}'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,severity:S.Error,code:k.SelfReference,issue:null})),{entityState:null,errors:a};const t=n.get(p)||n.getBuiltIn(p);return t?d.types.includes(t.type)||a.push(new Y({id:`${u.id}--${p}--${k.InvalidReference}`,message:`Entity of type "${u.type}" with id "${u.id}", has a reference to "${p}" at '${d.key}' that isn't pointing to an entity of type '${Ke(d.types,"', '","' or '")}'.`,severity:S.Error,code:k.InvalidReference,issue:null})):a.push(new Y({id:`${u.id}--${p}--${k.ReferencedEntityNotFound}`,message:`Entity of type "${u.type}" with id "${u.id}", is referencing an entity with id "${p}" at '${d.key}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:S.Error,code:k.ReferencedEntityNotFound,issue:null})),{entityState:t,errors:a}}function ly(u,d,n){const a=[],l=u[d];return l?Array.isArray(l)?{entities:l.map(t=>{let m=null;if(typeof t=="string")m=t;else{const b=oy(t);a.push(...b),b.length===0&&(m=t.entityId)}if(!m)return{entityState:null,errors:[new Y({id:`${u.id}--${d}--${k.InvalidReference}`,message:`Entity of type "${u.type}" with id "${u.id}", has a missing reference at '${d}'. A reference needs to be a 'id' string of an existing entity in the project.`,severity:S.Error,code:k.InvalidReference,issue:null})]};const v=n.get(m)||n.getBuiltIn(m);return v?{entityState:v,errors:[]}:(a.push(new Y({id:`${u.id}--${m}--${k.ReferencedEntityNotFound}`,message:`Entity of type "${u.type}" with id "${u.id}", is referencing an entity with id "${m}" at '${d}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,severity:S.Error,code:k.ReferencedEntityNotFound,issue:null})),{entityState:null,errors:a})}),errors:[]}:(a.push(new Y({id:`${u.id}--${d}--${le.InvalidObjectStructure}`,message:`Entity of type "${u.type}" with id "${u.id}" has an invalid structure for the "${d}" property. It should be an array of references.`,severity:S.Error,code:le.InvalidObjectStructure,issue:null})),{entities:[],errors:a}):(a.push(new Y({id:`${u.id}--${d}--${le.InvalidObjectStructure}`,message:`Entity of type "${u.type}" with id "${u.id}" is missing a list of references to "${d}" entities.`,severity:S.Error,code:le.InvalidObjectStructure,issue:null})),{entities:[],errors:a})}function db(u,d,n){const a=[],l=lb(u,d,n);if(l.errors.length>0)return l.errors;if(l.entityState){const p=l.entityState;d.types.includes(p.type)||a.push(new Y({id:`${u.id}--${p.id}--${k.InvalidReference}`,code:k.InvalidReference,severity:S.Error,message:`Entity of type "${u.type}" with id "${u.id}", has a reference to "${d.key}" that isn't pointing to an entity of type '${Ke(d.types,"', '","' or '")}'.`,issue:null})),u.id===p.id&&a.push(new Y({id:`${u.id}--${p.id}--${k.SelfReference}`,code:k.SelfReference,severity:S.Error,message:`Entity of type "${u.type}" with id "${u.id}", has a reference to itself at '${d.key}'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,issue:null}))}return a}function Ke(u,d,n){const a=[...u||[]].filter(l=>!!l);if(a.length===1)return a[0];if(a.length===2)return a.join(n);{const l=a.pop();return`${a.join(d)}${n}${l}`}}const Ua=`Pass-through callable entities are entities that need to be called by another caller, then they execute some internal logic and when finished, it can call other callable entities with the "calledBySuccess" property or "calledByError" property based on whether their internal execution was successful or an error ocurred respectively.
|
|
226
224
|
All pass-through callable entities are: ${Ke(dr,", "," and ")}.`,Xc=`Entry point entities are the entities which start the execution of a logic chain. They are ${Ke(Xt,", "," and ")}. They aren't explicitly called by any entities. Rather, they can be called implicitly by the system, or as a function-call somewhere else in the case of a function-declaration. `,H3=`Caller entities are entities that can call other entities. Regarless of whether they are entry-point entities or pass-through callable entities. All caller entity types are: ${Ke(rn,", "," and ")}.`,$he=`Callable entities are entities that can be called by other entities. They can be called by an entry-point, a success caller, or an error caller.
|
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.6333",
|
|
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",
|