@elyx-code/project-logic-tree 0.0.6090 → 0.0.6093

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 CHANGED
@@ -17701,16 +17701,15 @@ const kF = {
17701
17701
  entityId: oi
17702
17702
  }, Lh = {
17703
17703
  id: "search-person-by-id-input-declaration-id",
17704
- type: n.ArgumentDeclaration,
17704
+ type: n.ValueDescriptor,
17705
17705
  version: 1,
17706
17706
  dataType: null,
17707
17707
  name: "Person ID",
17708
17708
  description: "The unique identifier (ID) property of the person entity",
17709
- implements: null,
17709
+ parentRelationType: A.FixedArguments,
17710
17710
  index: 0,
17711
17711
  required: !0,
17712
- parent: kF,
17713
- writesValues: []
17712
+ parent: kF
17714
17713
  }, qF = {
17715
17714
  type: n.GenericReference,
17716
17715
  id: "search-person-by-id-input-map-parent-ref-id",
@@ -17766,18 +17765,9 @@ const kF = {
17766
17765
  description: "Searches for a person entity given the UUID",
17767
17766
  query: WF,
17768
17767
  inputsDeclarations: [Lh],
17769
- inputs: [
17770
- // Person ID (uuid primitive data type)
17771
- Gh
17772
- ],
17773
- outputsDeclarations: [
17774
- // Person entity
17775
- $h
17776
- ],
17777
- outputs: [
17778
- // Person entity
17779
- UF
17780
- ],
17768
+ inputs: [Gh],
17769
+ outputsDeclarations: [$h],
17770
+ outputs: [UF],
17781
17771
  calledByError: [],
17782
17772
  calledByEntry: [HF],
17783
17773
  calledBySuccess: [],
@@ -20580,7 +20570,7 @@ function Gs() {
20580
20570
  function Of() {
20581
20571
  return d.record(d.string(), Gs());
20582
20572
  }
20583
- function e6() {
20573
+ function ej() {
20584
20574
  return d.array(
20585
20575
  d.union([
20586
20576
  Gs(),
@@ -20592,7 +20582,7 @@ function Cf() {
20592
20582
  return d.union([
20593
20583
  Gs(),
20594
20584
  Of(),
20595
- e6()
20585
+ ej()
20596
20586
  ]);
20597
20587
  }
20598
20588
  function wf() {
@@ -20616,14 +20606,14 @@ function Bf() {
20616
20606
  I.ActionDescriptor
20617
20607
  ]);
20618
20608
  }
20619
- function t6() {
20609
+ function tj() {
20620
20610
  return d.union([
20621
20611
  Tr(),
20622
20612
  mi(),
20623
20613
  ga()
20624
20614
  ]);
20625
20615
  }
20626
- function n6() {
20616
+ function nj() {
20627
20617
  return d.object({
20628
20618
  id: d.string(),
20629
20619
  name: Bf(),
@@ -20632,8 +20622,8 @@ function n6() {
20632
20622
  autogeneration: gf.nullable()
20633
20623
  });
20634
20624
  }
20635
- function r6() {
20636
- return n6().merge(
20625
+ function rj() {
20626
+ return nj().merge(
20637
20627
  d.object({
20638
20628
  // valueAsType:
20639
20629
  // getPrimitiveValueAsTypeGenerationTargetSchemaSchema().nullable(),
@@ -20652,7 +20642,7 @@ function Yt() {
20652
20642
  name: Bf(),
20653
20643
  type: d.literal(n.PrimitiveValue),
20654
20644
  value: wf(),
20655
- valueAsType: t6().nullable(),
20645
+ valueAsType: tj().nullable(),
20656
20646
  autogeneration: gf.nullable(),
20657
20647
  parent: d.union([
20658
20648
  fc(),
@@ -20660,77 +20650,77 @@ function Yt() {
20660
20650
  ])
20661
20651
  });
20662
20652
  }
20663
- function i6() {
20653
+ function ij() {
20664
20654
  return Yt().extend({
20665
20655
  name: d.literal(I.String),
20666
20656
  value: d.string(),
20667
20657
  autogeneration: Ef.nullable()
20668
20658
  });
20669
20659
  }
20670
- function a6() {
20660
+ function aj() {
20671
20661
  return Yt().extend({
20672
20662
  name: d.literal(I.Number),
20673
20663
  value: d.number(),
20674
20664
  autogeneration: vf.nullable()
20675
20665
  });
20676
20666
  }
20677
- function s6() {
20667
+ function sj() {
20678
20668
  return Yt().extend({
20679
20669
  name: d.literal(I.Boolean),
20680
20670
  value: d.boolean(),
20681
20671
  autogeneration: bf.nullable()
20682
20672
  });
20683
20673
  }
20684
- function o6() {
20674
+ function oj() {
20685
20675
  return Yt().extend({
20686
20676
  name: d.literal(I.Null),
20687
20677
  value: d.null(),
20688
20678
  autogeneration: d.null()
20689
20679
  });
20690
20680
  }
20691
- function l6() {
20681
+ function lj() {
20692
20682
  return Yt().extend({
20693
20683
  name: d.literal(I.Date),
20694
20684
  value: d.date(),
20695
20685
  autogeneration: Rf.nullable()
20696
20686
  });
20697
20687
  }
20698
- function c6() {
20688
+ function cj() {
20699
20689
  return Yt().extend({
20700
20690
  name: d.literal(I.KeyValue),
20701
20691
  value: Cf(),
20702
20692
  autogeneration: d.null()
20703
20693
  });
20704
20694
  }
20705
- function d6() {
20695
+ function dj() {
20706
20696
  return Yt().extend({
20707
20697
  name: d.literal(I.Enum),
20708
20698
  value: d.string(),
20709
20699
  autogeneration: d.null()
20710
20700
  });
20711
20701
  }
20712
- function u6() {
20702
+ function uj() {
20713
20703
  return Yt().extend({
20714
20704
  name: d.literal(I.File),
20715
20705
  value: d.string(),
20716
20706
  autogeneration: d.null()
20717
20707
  });
20718
20708
  }
20719
- function p6() {
20709
+ function pj() {
20720
20710
  return Yt().extend({
20721
20711
  name: d.literal(I.UUID),
20722
20712
  value: d.string(),
20723
20713
  autogeneration: Tf.nullable()
20724
20714
  });
20725
20715
  }
20726
- function y6() {
20716
+ function yj() {
20727
20717
  return Yt().extend({
20728
20718
  name: d.literal(I.EntityTemplate),
20729
20719
  value: Tr(),
20730
20720
  autogeneration: d.null()
20731
20721
  });
20732
20722
  }
20733
- function h6() {
20723
+ function hj() {
20734
20724
  return Yt().extend({
20735
20725
  name: d.literal(I.ActionDescriptor),
20736
20726
  value: ga(),
@@ -20739,17 +20729,17 @@ function h6() {
20739
20729
  }
20740
20730
  function hc() {
20741
20731
  return d.union([
20742
- i6(),
20743
- a6(),
20744
- s6(),
20745
- o6(),
20746
- l6(),
20747
- c6(),
20748
- d6(),
20749
- u6(),
20750
- p6(),
20751
- y6(),
20752
- h6()
20732
+ ij(),
20733
+ aj(),
20734
+ sj(),
20735
+ oj(),
20736
+ lj(),
20737
+ cj(),
20738
+ dj(),
20739
+ uj(),
20740
+ pj(),
20741
+ yj(),
20742
+ hj()
20753
20743
  ]);
20754
20744
  }
20755
20745
  function yr() {
@@ -20779,14 +20769,14 @@ function mc() {
20779
20769
  options: d.array(d.string()).optional()
20780
20770
  });
20781
20771
  }
20782
- function f6() {
20772
+ function fj() {
20783
20773
  return mc().merge(
20784
20774
  d.object({
20785
20775
  version: d.number()
20786
20776
  })
20787
20777
  );
20788
20778
  }
20789
- function m6() {
20779
+ function mj() {
20790
20780
  return mc().merge(
20791
20781
  d.object({
20792
20782
  // parent: z.union([
@@ -20799,7 +20789,7 @@ function m6() {
20799
20789
  })
20800
20790
  );
20801
20791
  }
20802
- function T6() {
20792
+ function Tj() {
20803
20793
  return d.object({
20804
20794
  defaultValue: hc().nullable(),
20805
20795
  entity: d.union([
@@ -20810,13 +20800,13 @@ function T6() {
20810
20800
  ]).nullable(),
20811
20801
  parent: d.union([
20812
20802
  Df(),
20813
- F6(),
20803
+ Fj(),
20814
20804
  If()
20815
20805
  ])
20816
20806
  });
20817
20807
  }
20818
- function b6() {
20819
- return f6().merge(T6());
20808
+ function bj() {
20809
+ return fj().merge(Tj());
20820
20810
  }
20821
20811
  function Tc() {
20822
20812
  return d.union([
@@ -20826,7 +20816,7 @@ function Tc() {
20826
20816
  d.record(d.string(), d.any())
20827
20817
  ]);
20828
20818
  }
20829
- function E6() {
20819
+ function Ej() {
20830
20820
  return d.object({
20831
20821
  id: d.string(),
20832
20822
  type: d.literal(n.GenericReference),
@@ -20842,7 +20832,7 @@ function bc() {
20842
20832
  description: d.string().nullable()
20843
20833
  });
20844
20834
  }
20845
- function v6() {
20835
+ function vj() {
20846
20836
  return bc().merge(
20847
20837
  d.object({
20848
20838
  version: d.number(),
@@ -20851,7 +20841,7 @@ function v6() {
20851
20841
  })
20852
20842
  );
20853
20843
  }
20854
- function R6() {
20844
+ function Rj() {
20855
20845
  return bc().merge(
20856
20846
  d.object({
20857
20847
  // calledBySuccess: z.array(
@@ -20871,7 +20861,7 @@ function R6() {
20871
20861
  })
20872
20862
  );
20873
20863
  }
20874
- function g6() {
20864
+ function gj() {
20875
20865
  return d.object({
20876
20866
  dataType: yr().nullable(),
20877
20867
  readsValue: js().nullable(),
@@ -20890,8 +20880,8 @@ function g6() {
20890
20880
  ])
20891
20881
  });
20892
20882
  }
20893
- function I6() {
20894
- return v6().merge(g6());
20883
+ function Ij() {
20884
+ return vj().merge(gj());
20895
20885
  }
20896
20886
  function _f() {
20897
20887
  return d.union([
@@ -20901,7 +20891,7 @@ function _f() {
20901
20891
  d.record(d.string(), d.any())
20902
20892
  ]);
20903
20893
  }
20904
- function D6() {
20894
+ function Dj() {
20905
20895
  return d.object({
20906
20896
  id: d.string(),
20907
20897
  type: d.literal(n.GenericReference),
@@ -20915,7 +20905,7 @@ function Ec() {
20915
20905
  type: d.literal(n.VariableInstance)
20916
20906
  });
20917
20907
  }
20918
- function P6() {
20908
+ function Pj() {
20919
20909
  return Ec().merge(
20920
20910
  d.object({
20921
20911
  version: d.number(),
@@ -20924,7 +20914,7 @@ function P6() {
20924
20914
  })
20925
20915
  );
20926
20916
  }
20927
- function A6() {
20917
+ function Aj() {
20928
20918
  return Ec().merge(
20929
20919
  d.object({
20930
20920
  // declaration: z.union([
@@ -20948,7 +20938,7 @@ function A6() {
20948
20938
  })
20949
20939
  );
20950
20940
  }
20951
- function S6() {
20941
+ function Sj() {
20952
20942
  return d.object({
20953
20943
  declaration: Tc(),
20954
20944
  dataType: yr().nullable(),
@@ -20968,9 +20958,9 @@ function S6() {
20968
20958
  ])
20969
20959
  });
20970
20960
  }
20971
- function O6() {
20972
- return P6().merge(
20973
- S6()
20961
+ function Oj() {
20962
+ return Pj().merge(
20963
+ Sj()
20974
20964
  );
20975
20965
  }
20976
20966
  function vc() {
@@ -20989,25 +20979,25 @@ function Fs() {
20989
20979
  entityType: d.literal(n.InstalledProject)
20990
20980
  });
20991
20981
  }
20992
- function C6() {
20982
+ function Cj() {
20993
20983
  return d.object({
20994
20984
  id: d.string(),
20995
20985
  type: d.literal(n.InstalledProject)
20996
20986
  });
20997
20987
  }
20998
- function w6() {
20988
+ function wj() {
20999
20989
  return d.object({
21000
20990
  version: d.number(),
21001
20991
  x: d.number(),
21002
20992
  y: d.number()
21003
20993
  });
21004
20994
  }
21005
- function B6() {
20995
+ function Bj() {
21006
20996
  return d.object({
21007
20997
  // parent: z.union([z.string(), getProjectReferenceSchema()]).nullable().optional(),
21008
20998
  });
21009
20999
  }
21010
- function _6() {
21000
+ function _j() {
21011
21001
  return d.object({
21012
21002
  implements: gt(),
21013
21003
  description: d.string().nullable(),
@@ -21016,8 +21006,8 @@ function _6() {
21016
21006
  parent: gt()
21017
21007
  });
21018
21008
  }
21019
- function M6() {
21020
- return w6().merge(_6());
21009
+ function Mj() {
21010
+ return wj().merge(_j());
21021
21011
  }
21022
21012
  function Rc() {
21023
21013
  return d.union([
@@ -21027,7 +21017,7 @@ function Rc() {
21027
21017
  d.record(d.string(), d.any())
21028
21018
  ]);
21029
21019
  }
21030
- function N6() {
21020
+ function Nj() {
21031
21021
  return d.object({
21032
21022
  id: d.string(),
21033
21023
  type: d.literal(n.GenericReference),
@@ -21043,7 +21033,7 @@ function Us() {
21043
21033
  collapsed: d.boolean()
21044
21034
  });
21045
21035
  }
21046
- function V6() {
21036
+ function Vj() {
21047
21037
  return Us().merge(
21048
21038
  d.object({
21049
21039
  version: d.number(),
@@ -21052,7 +21042,7 @@ function V6() {
21052
21042
  })
21053
21043
  );
21054
21044
  }
21055
- function x6() {
21045
+ function xj() {
21056
21046
  return Us().merge(
21057
21047
  d.object({
21058
21048
  // extends: z.array(
@@ -21065,7 +21055,7 @@ function x6() {
21065
21055
  })
21066
21056
  );
21067
21057
  }
21068
- function $6() {
21058
+ function $j() {
21069
21059
  return Us().merge(
21070
21060
  d.object({
21071
21061
  returnStatements: d.array(pr()),
@@ -21079,8 +21069,8 @@ function $6() {
21079
21069
  })
21080
21070
  );
21081
21071
  }
21082
- function L6() {
21083
- return V6().merge($6());
21072
+ function Lj() {
21073
+ return Vj().merge($j());
21084
21074
  }
21085
21075
  function Ti() {
21086
21076
  return d.union([
@@ -21090,8 +21080,8 @@ function Ti() {
21090
21080
  }
21091
21081
  function hr() {
21092
21082
  return d.union([
21093
- E6(),
21094
- D6()
21083
+ Ej(),
21084
+ Dj()
21095
21085
  ]);
21096
21086
  }
21097
21087
  function xn() {
@@ -21101,7 +21091,7 @@ function xn() {
21101
21091
  hn()
21102
21092
  ]);
21103
21093
  }
21104
- function G6() {
21094
+ function Gj() {
21105
21095
  return d.union([
21106
21096
  hr(),
21107
21097
  $s(),
@@ -21135,18 +21125,18 @@ function V2() {
21135
21125
  xn()
21136
21126
  ]);
21137
21127
  }
21138
- function F6() {
21128
+ function Fj() {
21139
21129
  return d.union([
21140
21130
  Sc(),
21141
21131
  sc(),
21142
- G6()
21132
+ Gj()
21143
21133
  ]);
21144
21134
  }
21145
21135
  function gc() {
21146
21136
  return Rc();
21147
21137
  }
21148
21138
  function Ic() {
21149
- return N6();
21139
+ return Nj();
21150
21140
  }
21151
21141
  function Dc() {
21152
21142
  return d.union([
@@ -21190,7 +21180,7 @@ function Ac() {
21190
21180
  on()
21191
21181
  ]);
21192
21182
  }
21193
- function U6() {
21183
+ function Uj() {
21194
21184
  return d.union([
21195
21185
  Dc(),
21196
21186
  pr(),
@@ -21206,7 +21196,7 @@ function ze() {
21206
21196
  ui()
21207
21197
  ]);
21208
21198
  }
21209
- function j6() {
21199
+ function jj() {
21210
21200
  return d.union([
21211
21201
  Pc(),
21212
21202
  pr(),
@@ -21214,7 +21204,7 @@ function j6() {
21214
21204
  di()
21215
21205
  ]);
21216
21206
  }
21217
- function k6() {
21207
+ function kj() {
21218
21208
  return d.union([
21219
21209
  Ac(),
21220
21210
  pi(),
@@ -21260,7 +21250,7 @@ function G2() {
21260
21250
  }
21261
21251
  function F2() {
21262
21252
  return d.union([
21263
- U6(),
21253
+ Uj(),
21264
21254
  fr()
21265
21255
  ]);
21266
21256
  }
@@ -21272,13 +21262,13 @@ function U2() {
21272
21262
  }
21273
21263
  function j2() {
21274
21264
  return d.union([
21275
- j6(),
21265
+ jj(),
21276
21266
  fr()
21277
21267
  ]);
21278
21268
  }
21279
21269
  function k2() {
21280
21270
  return d.union([
21281
- k6(),
21271
+ kj(),
21282
21272
  Ye()
21283
21273
  ]);
21284
21274
  }
@@ -21332,7 +21322,7 @@ function Z2() {
21332
21322
  function K2() {
21333
21323
  return d.union([
21334
21324
  Br(),
21335
- X6(),
21325
+ Xj(),
21336
21326
  vc(),
21337
21327
  _r(),
21338
21328
  Ot(),
@@ -21447,7 +21437,7 @@ function Oc() {
21447
21437
  type: d.literal(n.ArgumentDeclaration)
21448
21438
  });
21449
21439
  }
21450
- function q6() {
21440
+ function qj() {
21451
21441
  return Oc().merge(
21452
21442
  d.object({
21453
21443
  version: d.number(),
@@ -21456,7 +21446,7 @@ function q6() {
21456
21446
  })
21457
21447
  );
21458
21448
  }
21459
- function J6() {
21449
+ function Jj() {
21460
21450
  return Oc().merge(
21461
21451
  d.object({
21462
21452
  // parent: z.union([
@@ -21470,7 +21460,7 @@ function J6() {
21470
21460
  })
21471
21461
  );
21472
21462
  }
21473
- function W6() {
21463
+ function Wj() {
21474
21464
  return d.object({
21475
21465
  dataType: yr().nullable(),
21476
21466
  writesValues: d.array(xn()),
@@ -21483,8 +21473,8 @@ function W6() {
21483
21473
  ])
21484
21474
  });
21485
21475
  }
21486
- function Y6() {
21487
- return q6().merge(W6());
21476
+ function Yj() {
21477
+ return qj().merge(Wj());
21488
21478
  }
21489
21479
  function Ot() {
21490
21480
  return d.union([
@@ -21510,7 +21500,7 @@ function Cc() {
21510
21500
  description: d.string().nullable()
21511
21501
  });
21512
21502
  }
21513
- function H6() {
21503
+ function Hj() {
21514
21504
  return Cc().merge(
21515
21505
  d.object({
21516
21506
  version: d.number(),
@@ -21521,10 +21511,10 @@ function H6() {
21521
21511
  })
21522
21512
  );
21523
21513
  }
21524
- function z6() {
21514
+ function zj() {
21525
21515
  return Cc();
21526
21516
  }
21527
- function Z6() {
21517
+ function Zj() {
21528
21518
  return d.object({
21529
21519
  inputs: d.array(mr()),
21530
21520
  implements: Kt().nullable(),
@@ -21539,12 +21529,12 @@ function Z6() {
21539
21529
  ])
21540
21530
  });
21541
21531
  }
21542
- function K6() {
21543
- return H6().merge(
21544
- Z6()
21532
+ function Kj() {
21533
+ return Hj().merge(
21534
+ Zj()
21545
21535
  );
21546
21536
  }
21547
- function X6() {
21537
+ function Xj() {
21548
21538
  return d.union([
21549
21539
  d.object({
21550
21540
  type: d.literal(n.Project)
@@ -21568,17 +21558,17 @@ function wc() {
21568
21558
  description: d.string().nullable()
21569
21559
  });
21570
21560
  }
21571
- function Q6() {
21561
+ function Qj() {
21572
21562
  return wc().merge(
21573
21563
  d.object({
21574
21564
  version: d.number()
21575
21565
  })
21576
21566
  );
21577
21567
  }
21578
- function ej() {
21568
+ function e6() {
21579
21569
  return wc();
21580
21570
  }
21581
- function tj() {
21571
+ function t6() {
21582
21572
  return d.object({
21583
21573
  entities: d.array(_r()),
21584
21574
  functions: d.array(Ot()),
@@ -21593,8 +21583,8 @@ function tj() {
21593
21583
  searches: d.array(Ea())
21594
21584
  });
21595
21585
  }
21596
- function nj() {
21597
- return Q6().merge(tj());
21586
+ function n6() {
21587
+ return Qj().merge(t6());
21598
21588
  }
21599
21589
  function _r() {
21600
21590
  return d.union([
@@ -21622,7 +21612,7 @@ function Bc() {
21622
21612
  abstract: d.boolean()
21623
21613
  });
21624
21614
  }
21625
- function rj() {
21615
+ function r6() {
21626
21616
  return Bc().merge(
21627
21617
  d.object({
21628
21618
  version: d.number(),
@@ -21631,7 +21621,7 @@ function rj() {
21631
21621
  })
21632
21622
  );
21633
21623
  }
21634
- function ij() {
21624
+ function i6() {
21635
21625
  return Bc().merge(
21636
21626
  d.object({
21637
21627
  // extends: z.array(
@@ -21651,10 +21641,10 @@ function ij() {
21651
21641
  })
21652
21642
  );
21653
21643
  }
21654
- function aj() {
21644
+ function a6() {
21655
21645
  return d.union([gt(), fc()]);
21656
21646
  }
21657
- function sj() {
21647
+ function s6() {
21658
21648
  return d.object({
21659
21649
  properties: d.array(ur()),
21660
21650
  methods: d.array(Ot()),
@@ -21665,22 +21655,22 @@ function sj() {
21665
21655
  implements: d.array(
21666
21656
  d.union([_r(), Br()])
21667
21657
  ),
21668
- parent: aj()
21658
+ parent: a6()
21669
21659
  });
21670
21660
  }
21671
- function oj() {
21672
- return rj().merge(
21673
- sj()
21661
+ function o6() {
21662
+ return r6().merge(
21663
+ s6()
21674
21664
  );
21675
21665
  }
21676
- function lj(r) {
21677
- const e = oj(), t = r.toJSON();
21666
+ function l6(r) {
21667
+ const e = o6(), t = r.toJSON();
21678
21668
  e.safeParse(t).success;
21679
21669
  const a = r.implements.flatMap(
21680
- (y) => uj(r, y)
21670
+ (y) => u6(r, y)
21681
21671
  ), s = r.extends.flatMap(
21682
- (y) => pj(r, y)
21683
- ), o = hj(r), l = yj(r);
21672
+ (y) => p6(r, y)
21673
+ ), o = h6(r), l = y6(r);
21684
21674
  r.methods.flatMap((y) => y.validate());
21685
21675
  const u = [
21686
21676
  ...a,
@@ -21690,7 +21680,7 @@ function lj(r) {
21690
21680
  ];
21691
21681
  return se(r.errors, u);
21692
21682
  }
21693
- function cj(r, e) {
21683
+ function c6(r, e) {
21694
21684
  const t = e.properties.filter((s) => s.abstract), i = [];
21695
21685
  let a = [...r.properties];
21696
21686
  return t.forEach((s) => {
@@ -21705,7 +21695,7 @@ function cj(r, e) {
21705
21695
  ) : i.push(s);
21706
21696
  }), i;
21707
21697
  }
21708
- function dj(r, e) {
21698
+ function d6(r, e) {
21709
21699
  const t = e.abstractMethods, i = [];
21710
21700
  let a = [...r.methods];
21711
21701
  return t.forEach((s) => {
@@ -21720,7 +21710,7 @@ function dj(r, e) {
21720
21710
  ) : i.push(s);
21721
21711
  }), i;
21722
21712
  }
21723
- function uj(r, e) {
21713
+ function u6(r, e) {
21724
21714
  const t = [];
21725
21715
  if (!e.abstract) {
21726
21716
  const y = Y({
@@ -21814,7 +21804,7 @@ function uj(r, e) {
21814
21804
  t.push(f.error);
21815
21805
  }), t;
21816
21806
  }
21817
- function pj(r, e) {
21807
+ function p6(r, e) {
21818
21808
  const t = [], i = [];
21819
21809
  if (e.abstract) {
21820
21810
  const s = Y({
@@ -21865,7 +21855,7 @@ function pj(r, e) {
21865
21855
  t.push(o.error);
21866
21856
  }), t;
21867
21857
  }
21868
- function yj(r) {
21858
+ function y6(r) {
21869
21859
  const e = [];
21870
21860
  if (!r.properties.length) {
21871
21861
  const t = Y({
@@ -21882,7 +21872,7 @@ function yj(r) {
21882
21872
  t.validate();
21883
21873
  }), e;
21884
21874
  }
21885
- function hj(r) {
21875
+ function h6(r) {
21886
21876
  const e = [];
21887
21877
  if (r.abstract) {
21888
21878
  if (r.methods.length) {
@@ -21980,56 +21970,56 @@ function hj(r) {
21980
21970
  }
21981
21971
  return e;
21982
21972
  }
21983
- function fj(r) {
21973
+ function f6(r) {
21984
21974
  return r instanceof Error && r.name === "ZodError" && "issues" in r && Array.isArray(r.issues);
21985
21975
  }
21986
- var mj = class extends Error {
21976
+ var m6 = class extends Error {
21987
21977
  constructor(e, t) {
21988
21978
  super(e, t);
21989
21979
  c(this, "name");
21990
21980
  c(this, "details");
21991
- this.name = "ZodValidationError", this.details = Tj(t);
21981
+ this.name = "ZodValidationError", this.details = T6(t);
21992
21982
  }
21993
21983
  toString() {
21994
21984
  return this.message;
21995
21985
  }
21996
21986
  };
21997
- function Tj(r) {
21987
+ function T6(r) {
21998
21988
  if (r) {
21999
21989
  const e = r.cause;
22000
- if (fj(e))
21990
+ if (f6(e))
22001
21991
  return e.issues;
22002
21992
  }
22003
21993
  return [];
22004
21994
  }
22005
- function bj(r) {
21995
+ function b6(r) {
22006
21996
  return r.length !== 0;
22007
21997
  }
22008
- var Ej = /[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;
22009
- function vj(r) {
21998
+ var E6 = /[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;
21999
+ function v6(r) {
22010
22000
  return r.length === 1 ? r[0].toString() : r.reduce((e, t) => {
22011
22001
  if (typeof t == "number")
22012
22002
  return e + "[" + t.toString() + "]";
22013
22003
  if (t.includes('"'))
22014
- return e + '["' + Rj(t) + '"]';
22015
- if (!Ej.test(t))
22004
+ return e + '["' + R6(t) + '"]';
22005
+ if (!E6.test(t))
22016
22006
  return e + '["' + t + '"]';
22017
22007
  const i = e.length === 0 ? "" : ".";
22018
22008
  return e + i + t;
22019
22009
  }, "");
22020
22010
  }
22021
- function Rj(r) {
22011
+ function R6(r) {
22022
22012
  return r.replace(/"/g, '\\"');
22023
22013
  }
22024
- var gj = "; ", Ij = 99, Mf = "Validation error", Dj = ": ", Pj = ", or ";
22025
- function Aj(r = {}) {
22014
+ var g6 = "; ", I6 = 99, Mf = "Validation error", D6 = ": ", P6 = ", or ";
22015
+ function A6(r = {}) {
22026
22016
  const {
22027
- issueSeparator: e = gj,
22028
- unionSeparator: t = Pj,
22029
- prefixSeparator: i = Dj,
22017
+ issueSeparator: e = g6,
22018
+ unionSeparator: t = P6,
22019
+ prefixSeparator: i = D6,
22030
22020
  prefix: a = Mf,
22031
22021
  includePath: s = !0,
22032
- maxIssuesInMessage: o = Ij
22022
+ maxIssuesInMessage: o = I6
22033
22023
  } = r;
22034
22024
  return (l) => {
22035
22025
  const u = l.slice(0, o).map(
@@ -22040,7 +22030,7 @@ function Aj(r = {}) {
22040
22030
  includePath: s
22041
22031
  })
22042
22032
  ).join(e);
22043
- return Sj(u, a, i);
22033
+ return S6(u, a, i);
22044
22034
  };
22045
22035
  }
22046
22036
  function Na(r) {
@@ -22081,34 +22071,34 @@ function Na(r) {
22081
22071
  })
22082
22072
  )
22083
22073
  ].join(t);
22084
- if (a && bj(e.path)) {
22074
+ if (a && b6(e.path)) {
22085
22075
  if (e.path.length === 1) {
22086
22076
  const s = e.path[0];
22087
22077
  if (typeof s == "number")
22088
22078
  return `${e.message} at index ${s}`;
22089
22079
  }
22090
- return `${e.message} at "${vj(e.path)}"`;
22080
+ return `${e.message} at "${v6(e.path)}"`;
22091
22081
  }
22092
22082
  return e.message;
22093
22083
  }
22094
- function Sj(r, e, t) {
22084
+ function S6(r, e, t) {
22095
22085
  return e !== null ? r.length > 0 ? [e, r].join(t) : e : r.length > 0 ? r : Mf;
22096
22086
  }
22097
- function Oj(r, e = {}) {
22098
- const i = Cj(e)([r]);
22099
- return new mj(i, { cause: new vt([r]) });
22087
+ function O6(r, e = {}) {
22088
+ const i = C6(e)([r]);
22089
+ return new m6(i, { cause: new vt([r]) });
22100
22090
  }
22101
- function Cj(r) {
22102
- return "messageBuilder" in r ? r.messageBuilder : Aj(r);
22091
+ function C6(r) {
22092
+ return "messageBuilder" in r ? r.messageBuilder : A6(r);
22103
22093
  }
22104
- var Nf = "1.13.7", hd = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || Function("return this")() || {}, ks = Array.prototype, _c = Object.prototype, fd = typeof Symbol < "u" ? Symbol.prototype : null, wj = ks.push, Ia = ks.slice, Ui = _c.toString, Bj = _c.hasOwnProperty, Vf = typeof ArrayBuffer < "u", _j = typeof DataView < "u", Mj = Array.isArray, md = Object.keys, Td = Object.create, bd = Vf && ArrayBuffer.isView, Nj = isNaN, Vj = isFinite, xf = !{ toString: null }.propertyIsEnumerable("toString"), Ed = [
22094
+ var Nf = "1.13.7", hd = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || Function("return this")() || {}, ks = Array.prototype, _c = Object.prototype, fd = typeof Symbol < "u" ? Symbol.prototype : null, w6 = ks.push, Ia = ks.slice, Ui = _c.toString, B6 = _c.hasOwnProperty, Vf = typeof ArrayBuffer < "u", _6 = typeof DataView < "u", M6 = Array.isArray, md = Object.keys, Td = Object.create, bd = Vf && ArrayBuffer.isView, N6 = isNaN, V6 = isFinite, xf = !{ toString: null }.propertyIsEnumerable("toString"), Ed = [
22105
22095
  "valueOf",
22106
22096
  "isPrototypeOf",
22107
22097
  "toString",
22108
22098
  "propertyIsEnumerable",
22109
22099
  "hasOwnProperty",
22110
22100
  "toLocaleString"
22111
- ], xj = Math.pow(2, 53) - 1;
22101
+ ], x6 = Math.pow(2, 53) - 1;
22112
22102
  function It(r, e) {
22113
22103
  return e = e == null ? r.length - 1 : +e, function() {
22114
22104
  for (var t = Math.max(arguments.length - e, 0), i = Array(t), a = 0; a < t; a++)
@@ -22131,7 +22121,7 @@ function Ln(r) {
22131
22121
  var e = typeof r;
22132
22122
  return e === "function" || e === "object" && !!r;
22133
22123
  }
22134
- function $j(r) {
22124
+ function $6(r) {
22135
22125
  return r === null;
22136
22126
  }
22137
22127
  function $f(r) {
@@ -22140,7 +22130,7 @@ function $f(r) {
22140
22130
  function Lf(r) {
22141
22131
  return r === !0 || r === !1 || Ui.call(r) === "[object Boolean]";
22142
22132
  }
22143
- function Lj(r) {
22133
+ function L6(r) {
22144
22134
  return !!(r && r.nodeType === 1);
22145
22135
  }
22146
22136
  function ct(r) {
@@ -22149,19 +22139,19 @@ function ct(r) {
22149
22139
  return Ui.call(t) === e;
22150
22140
  };
22151
22141
  }
22152
- const Mc = ct("String"), Gf = ct("Number"), Gj = ct("Date"), Fj = ct("RegExp"), Uj = ct("Error"), Ff = ct("Symbol"), Uf = ct("ArrayBuffer");
22153
- var jf = ct("Function"), jj = hd.document && hd.document.childNodes;
22154
- typeof /./ != "function" && typeof Int8Array != "object" && typeof jj != "function" && (jf = function(r) {
22142
+ const Mc = ct("String"), Gf = ct("Number"), G6 = ct("Date"), F6 = ct("RegExp"), U6 = ct("Error"), Ff = ct("Symbol"), Uf = ct("ArrayBuffer");
22143
+ var jf = ct("Function"), j6 = hd.document && hd.document.childNodes;
22144
+ typeof /./ != "function" && typeof Int8Array != "object" && typeof j6 != "function" && (jf = function(r) {
22155
22145
  return typeof r == "function" || !1;
22156
22146
  });
22157
22147
  const yt = jf, kf = ct("Object");
22158
- var qf = _j && (!/\[native code\]/.test(String(DataView)) || kf(new DataView(new ArrayBuffer(8)))), Nc = typeof Map < "u" && kf(/* @__PURE__ */ new Map()), kj = ct("DataView");
22159
- function qj(r) {
22148
+ var qf = _6 && (!/\[native code\]/.test(String(DataView)) || kf(new DataView(new ArrayBuffer(8)))), Nc = typeof Map < "u" && kf(/* @__PURE__ */ new Map()), k6 = ct("DataView");
22149
+ function q6(r) {
22160
22150
  return r != null && yt(r.getInt8) && Uf(r.buffer);
22161
22151
  }
22162
- const Ha = qf ? qj : kj, br = Mj || ct("Array");
22152
+ const Ha = qf ? q6 : k6, br = M6 || ct("Array");
22163
22153
  function Gn(r, e) {
22164
- return r != null && Bj.call(r, e);
22154
+ return r != null && B6.call(r, e);
22165
22155
  }
22166
22156
  var Ro = ct("Arguments");
22167
22157
  (function() {
@@ -22170,11 +22160,11 @@ var Ro = ct("Arguments");
22170
22160
  });
22171
22161
  })();
22172
22162
  const Vc = Ro;
22173
- function Jj(r) {
22174
- return !Ff(r) && Vj(r) && !isNaN(parseFloat(r));
22163
+ function J6(r) {
22164
+ return !Ff(r) && V6(r) && !isNaN(parseFloat(r));
22175
22165
  }
22176
22166
  function Jf(r) {
22177
- return Gf(r) && Nj(r);
22167
+ return Gf(r) && N6(r);
22178
22168
  }
22179
22169
  function Wf(r) {
22180
22170
  return function() {
@@ -22184,7 +22174,7 @@ function Wf(r) {
22184
22174
  function Yf(r) {
22185
22175
  return function(e) {
22186
22176
  var t = r(e);
22187
- return typeof t == "number" && t >= 0 && t <= xj;
22177
+ return typeof t == "number" && t >= 0 && t <= x6;
22188
22178
  };
22189
22179
  }
22190
22180
  function Hf(r) {
@@ -22192,13 +22182,13 @@ function Hf(r) {
22192
22182
  return e == null ? void 0 : e[r];
22193
22183
  };
22194
22184
  }
22195
- const za = Hf("byteLength"), Wj = Yf(za);
22196
- var Yj = /\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;
22197
- function Hj(r) {
22198
- return bd ? bd(r) && !Ha(r) : Wj(r) && Yj.test(Ui.call(r));
22185
+ const za = Hf("byteLength"), W6 = Yf(za);
22186
+ var Y6 = /\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;
22187
+ function H6(r) {
22188
+ return bd ? bd(r) && !Ha(r) : W6(r) && Y6.test(Ui.call(r));
22199
22189
  }
22200
- const zf = Vf ? Hj : Wf(!1), Dt = Hf("length");
22201
- function zj(r) {
22190
+ const zf = Vf ? H6 : Wf(!1), Dt = Hf("length");
22191
+ function z6(r) {
22202
22192
  for (var e = {}, t = r.length, i = 0; i < t; ++i)
22203
22193
  e[r[i]] = !0;
22204
22194
  return {
@@ -22211,7 +22201,7 @@ function zj(r) {
22211
22201
  };
22212
22202
  }
22213
22203
  function Zf(r, e) {
22214
- e = zj(e);
22204
+ e = z6(e);
22215
22205
  var t = Ed.length, i = r.constructor, a = yt(i) && i.prototype || _c, s = "constructor";
22216
22206
  for (Gn(r, s) && !e.contains(s) && e.push(s); t--; )
22217
22207
  s = Ed[t], s in r && r[s] !== a[s] && !e.contains(s) && e.push(s);
@@ -22337,7 +22327,7 @@ function Xf(r, e, t, i) {
22337
22327
  }
22338
22328
  return t.pop(), i.pop(), !0;
22339
22329
  }
22340
- function Zj(r, e) {
22330
+ function Z6(r, e) {
22341
22331
  return go(r, e);
22342
22332
  }
22343
22333
  function Da(r) {
@@ -22362,8 +22352,8 @@ function xc(r) {
22362
22352
  return r !== tm || !yt(t[$c]);
22363
22353
  };
22364
22354
  }
22365
- var $c = "forEach", Qf = "has", Lc = ["clear", "delete"], em = ["get", Qf, "set"], Kj = Lc.concat($c, em), tm = Lc.concat(em), Xj = ["add"].concat(Lc, $c, Qf);
22366
- const Qj = Nc ? xc(Kj) : ct("Map"), e3 = Nc ? xc(tm) : ct("WeakMap"), t3 = Nc ? xc(Xj) : ct("Set"), n3 = ct("WeakSet");
22355
+ var $c = "forEach", Qf = "has", Lc = ["clear", "delete"], em = ["get", Qf, "set"], K6 = Lc.concat($c, em), tm = Lc.concat(em), X6 = ["add"].concat(Lc, $c, Qf);
22356
+ const Q6 = Nc ? xc(K6) : ct("Map"), e3 = Nc ? xc(tm) : ct("WeakMap"), t3 = Nc ? xc(X6) : ct("Set"), n3 = ct("WeakSet");
22367
22357
  function bi(r) {
22368
22358
  for (var e = Ze(r), t = e.length, i = Array(t), a = 0; a < t; a++)
22369
22359
  i[a] = r[e[a]];
@@ -23052,7 +23042,7 @@ function Cm(r) {
23052
23042
  var t = ae[e] = r[e];
23053
23043
  ae.prototype[e] = function() {
23054
23044
  var i = [this._wrapped];
23055
- return wj.apply(i, arguments), Yc(this, t.apply(ae, i));
23045
+ return w6.apply(i, arguments), Yc(this, t.apply(ae, i));
23056
23046
  };
23057
23047
  }), ae;
23058
23048
  }
@@ -23135,20 +23125,20 @@ const s5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23135
23125
  isArrayBuffer: Uf,
23136
23126
  isBoolean: Lf,
23137
23127
  isDataView: Ha,
23138
- isDate: Gj,
23139
- isElement: Lj,
23128
+ isDate: G6,
23129
+ isElement: L6,
23140
23130
  isEmpty: Pi,
23141
- isEqual: Zj,
23142
- isError: Uj,
23143
- isFinite: Jj,
23131
+ isEqual: Z6,
23132
+ isError: U6,
23133
+ isFinite: J6,
23144
23134
  isFunction: yt,
23145
- isMap: Qj,
23135
+ isMap: Q6,
23146
23136
  isMatch: Kf,
23147
23137
  isNaN: Jf,
23148
- isNull: $j,
23138
+ isNull: $6,
23149
23139
  isNumber: Gf,
23150
23140
  isObject: Ln,
23151
- isRegExp: Fj,
23141
+ isRegExp: F6,
23152
23142
  isSet: t3,
23153
23143
  isString: Mc,
23154
23144
  isSymbol: Ff,
@@ -24792,7 +24782,7 @@ c(he, "MUTABLE_DOWNSTREAM_PROPERTIES", ["dataType"]), c(he, "INMUTABLE_DOWNSTREA
24792
24782
  ]);
24793
24783
  let Nr = he;
24794
24784
  function P5(r) {
24795
- const e = K6(), t = r.toJSON();
24785
+ const e = Kj(), t = r.toJSON();
24796
24786
  e.safeParse(t).success;
24797
24787
  const a = A5(r), s = S5(r), o = St(r);
24798
24788
  r.inputs.forEach((u) => u.validate()), o.forEach((u) => u.validate());
@@ -25479,7 +25469,7 @@ c(fe, "MUTABLE_DOWNSTREAM_PROPERTIES", [
25479
25469
  ]);
25480
25470
  let Vr = fe;
25481
25471
  function O5(r) {
25482
- const e = b6(), t = r.toJSON();
25472
+ const e = bj(), t = r.toJSON();
25483
25473
  e.safeParse(t).success;
25484
25474
  const a = [];
25485
25475
  if (r.entity && r.andChildrenGroup || r.entity && r.orChildrenGroup || r.andChildrenGroup && r.orChildrenGroup) {
@@ -27033,7 +27023,7 @@ c(le, "MUTABLE_DOWNSTREAM_PROPERTIES", [
27033
27023
  ]);
27034
27024
  let xr = le;
27035
27025
  function _5(r) {
27036
- const e = L6(), t = r.toJSON();
27026
+ const e = Lj(), t = r.toJSON();
27037
27027
  e.safeParse(t).success;
27038
27028
  const a = St(r);
27039
27029
  r.inputs.forEach((o) => o.validate()), a.forEach((o) => o.validate());
@@ -28963,7 +28953,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
28963
28953
  };
28964
28954
  }
28965
28955
  // This function ensures the loop has an input map if it needs one
28966
- // And if it has one, it makes sure that it has the write data type
28956
+ // And if it has one, it makes sure that it has the correct data type
28967
28957
  // And deletes any other input maps that are not needed
28968
28958
  syncInputMaps() {
28969
28959
  const e = [], t = [], i = [];
@@ -29960,7 +29950,7 @@ class f7 {
29960
29950
  }
29961
29951
  function x5(r) {
29962
29952
  var l;
29963
- const e = I6(), t = r.toJSON();
29953
+ const e = Ij(), t = r.toJSON();
29964
29954
  e.safeParse(t).success, (l = r.dataType) == null || l.validate(), r.inputs.forEach((u) => u.validate()), r.outputs.forEach((u) => u.validate()), r.internalCalls.forEach((u) => u.validate());
29965
29955
  const s = [...Fn(r)];
29966
29956
  if (r.id === "random-company-employee-test-variable-id") {
@@ -30897,7 +30887,7 @@ c(de, "MUTABLE_DOWNSTREAM_PROPERTIES", [
30897
30887
  ]);
30898
30888
  let Gr = de;
30899
30889
  function $5(r) {
30900
- const e = O6(), t = r.toJSON();
30890
+ const e = Oj(), t = r.toJSON();
30901
30891
  e.safeParse(t).success, r.inputs.forEach((l) => l.validate()), r.outputs.forEach((l) => l.validate()), r.internalCalls.forEach((l) => l.validate());
30902
30892
  const s = [...Fn(r)];
30903
30893
  if (r.id === "exec-sequentially-result-variable-id") {
@@ -32507,7 +32497,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
32507
32497
  const t = this.inputs.findIndex((a) => a.id === e.id);
32508
32498
  t > -1 && this.inputs.splice(t, 1);
32509
32499
  const i = this.inputsDeclarations.findIndex(
32510
- (a) => a.id === e.declaration.id
32500
+ (a) => {
32501
+ var s;
32502
+ return a.id === ((s = e.declaration) == null ? void 0 : s.id);
32503
+ }
32511
32504
  );
32512
32505
  return i > -1 && this.inputsDeclarations.splice(i, 1), this;
32513
32506
  }
@@ -32515,7 +32508,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
32515
32508
  return this.inputs.includes(e) ? this : (this.inputs.push(e), this);
32516
32509
  }
32517
32510
  addInputDeclaration(e) {
32518
- return this.inputsDeclarations.includes(e) ? this : (this.inputsDeclarations.push(e), this);
32511
+ return this.inputsDeclarations.includes(e) ? this : (this.inputsDeclarations.push(e), this.syncInputMaps(), this);
32519
32512
  }
32520
32513
  removeInputDeclaration(e) {
32521
32514
  const t = this.inputsDeclarations.findIndex(
@@ -32629,7 +32622,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
32629
32622
  }), this.initialData.error && (this.error = v(
32630
32623
  this.initialData.error,
32631
32624
  this.project
32632
- ), this.error.setParent(this), this.error.initChildren()), this);
32625
+ ), this.error.setParent(this), this.error.initChildren()), this.syncInputMaps(), this);
32633
32626
  }
32634
32627
  subscribe() {
32635
32628
  return this.project.subscribeInstance(this), this;
@@ -32930,6 +32923,52 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
32930
32923
  clone(e) {
32931
32924
  return new Me(this.toJSON(), this.project);
32932
32925
  }
32926
+ // This function ensures the search entity has an input map for each input declaration
32927
+ // And if it they already exist, it makes sure that it correctly synced with its declaration
32928
+ // And deletes any other input maps that are not needed
32929
+ syncInputMaps() {
32930
+ const e = [], t = [], i = [];
32931
+ return this.inputsDeclarations.forEach((a) => {
32932
+ if (!this.inputs.find(
32933
+ (o) => {
32934
+ var l;
32935
+ return ((l = o.declaration) == null ? void 0 : l.id) === a.id;
32936
+ }
32937
+ )) {
32938
+ const o = {
32939
+ id: this.id + "--" + B.UUID.uuid(),
32940
+ version: 1,
32941
+ type: n.InputMap,
32942
+ declaration: a.toJSON(),
32943
+ readsValue: null,
32944
+ defaultValue: null,
32945
+ index: this.inputs.length,
32946
+ name: null,
32947
+ description: null,
32948
+ parent: this.toReference()
32949
+ }, l = v(
32950
+ o,
32951
+ this.project
32952
+ );
32953
+ l.setParent(this), l.initChildren(), l.addSelfToProject(), e.push(this), t.push(l);
32954
+ }
32955
+ }), this.inputs.forEach((a) => {
32956
+ if (!this.inputsDeclarations.find(
32957
+ (o) => {
32958
+ var l;
32959
+ return o.id === ((l = a.declaration) == null ? void 0 : l.id);
32960
+ }
32961
+ )) {
32962
+ const { affected: o, removed: l } = a.remove();
32963
+ e.push(...o), i.push(...l);
32964
+ }
32965
+ }), {
32966
+ updated: T(e),
32967
+ added: T(t),
32968
+ removed: T(i),
32969
+ self: this
32970
+ };
32971
+ }
32933
32972
  };
32934
32973
  c(Me, "MUTABLE_BASE_PROPERTIES", ["name", "description", "query"]), c(Me, "INMUTABLE_BASE_PROPERTIES", ["id", "type", "version"]), c(Me, "BASE_PROPERTIES", [
32935
32974
  ...Me.MUTABLE_BASE_PROPERTIES,
@@ -32970,7 +33009,7 @@ c(Me, "MUTABLE_DOWNSTREAM_PROPERTIES", [
32970
33009
  ]);
32971
33010
  let Ur = Me;
32972
33011
  function F5(r) {
32973
- const e = M6(), t = r.toJSON();
33012
+ const e = Mj(), t = r.toJSON();
32974
33013
  e.safeParse(t).success, r.functions.forEach((s) => s.validate()), r.events.forEach((s) => s.validate());
32975
33014
  const a = [];
32976
33015
  return se(r.errors, a);
@@ -35072,7 +35111,7 @@ class E7 extends Bn {
35072
35111
  }
35073
35112
  function J5(r) {
35074
35113
  var s;
35075
- const e = Y6(), t = r.toJSON();
35114
+ const e = Yj(), t = r.toJSON();
35076
35115
  e.safeParse(t).success, (s = r.dataType) == null || s.validate();
35077
35116
  const a = [];
35078
35117
  if (r.id === "company-dto-func-declaration-argument-dcl-id") {
@@ -38115,9 +38154,9 @@ ${cn(
38115
38154
  }
38116
38155
  // Add the current entity to the project state in all the right places including other instances it is related to
38117
38156
  addSelfToProject() {
38118
- var a, s, o, l;
38157
+ var a, s, o, l, u, p;
38119
38158
  const e = [this], t = [], i = [];
38120
- return this.parentRelationType === A.FixedArguments || this.parentRelationType === A.DynamicArgument ? (s = (a = this.parent) == null ? void 0 : a.addInput) == null || s.call(a, this) : this.parentRelationType === A.FixedReturns || this.parentRelationType === A.DynamicReturn ? (l = (o = this.parent) == null ? void 0 : o.addOutput) == null || l.call(o, this) : this.parentRelationType === A.ReturnedError && this.parent && (this.parent.error = this), this.parent && ([n.Search, n.Loop].includes(this.parent.type) && this.parent.addOutputDeclaration(this), e.push(this.parent)), {
38159
+ return this.parentRelationType === A.FixedArguments || this.parentRelationType === A.DynamicArgument ? ((a = this.parent) == null ? void 0 : a.type) === n.Search ? this.parent.addInputDeclaration(this) : (o = (s = this.parent) == null ? void 0 : s.addInput) == null || o.call(s, this) : this.parentRelationType === A.FixedReturns || this.parentRelationType === A.DynamicReturn ? ((l = this.parent) == null ? void 0 : l.type) === n.Search ? this.parent.addOutputDeclaration(this) : (p = (u = this.parent) == null ? void 0 : u.addOutput) == null || p.call(u, this) : this.parentRelationType === A.ReturnedError && this.parent && (this.parent.error = this), this.parent && this.parent.type === n.Loop && (this.parent.addOutputDeclaration(this), e.push(this.parent)), {
38121
38160
  updated: T(e),
38122
38161
  added: T(t),
38123
38162
  removed: T(i),
@@ -38878,7 +38917,7 @@ function ek(r) {
38878
38917
  case n.Project:
38879
38918
  return wc();
38880
38919
  case n.InstalledProject:
38881
- return C6();
38920
+ return Cj();
38882
38921
  case n.ActionDescriptor:
38883
38922
  return Ya();
38884
38923
  case n.ReturnStatement:
@@ -38904,17 +38943,17 @@ function ek(r) {
38904
38943
  function tk(r) {
38905
38944
  switch (r.type) {
38906
38945
  case n.PrimitiveValue:
38907
- return r6();
38946
+ return rj();
38908
38947
  case n.CustomEntity:
38909
- return ij();
38948
+ return i6();
38910
38949
  case n.PrimitiveEntity:
38911
38950
  return q8();
38912
38951
  case n.FunctionDeclaration:
38913
- return z6();
38952
+ return zj();
38914
38953
  case n.GlobalEvent:
38915
- return x6();
38954
+ return xj();
38916
38955
  case n.DataType:
38917
- return m6();
38956
+ return mj();
38918
38957
  case n.Property:
38919
38958
  return H8();
38920
38959
  case n.FunctionCall:
@@ -38924,21 +38963,21 @@ function tk(r) {
38924
38963
  case n.Operation:
38925
38964
  return K9();
38926
38965
  case n.VariableDeclaration:
38927
- return R6();
38966
+ return Rj();
38928
38967
  case n.VariableInstance:
38929
- return A6();
38968
+ return Aj();
38930
38969
  case n.OutputMap:
38931
38970
  return A9();
38932
38971
  case n.ReturnDeclaration:
38933
38972
  return b9();
38934
38973
  case n.ArgumentDeclaration:
38935
- return J6();
38974
+ return Jj();
38936
38975
  case n.InputMap:
38937
38976
  return Y9();
38938
38977
  case n.Project:
38939
- return ej();
38978
+ return e6();
38940
38979
  case n.InstalledProject:
38941
- return B6();
38980
+ return Bj();
38942
38981
  case n.ActionDescriptor:
38943
38982
  return r9();
38944
38983
  case n.ReturnStatement:
@@ -39011,7 +39050,7 @@ function Um(r, e) {
39011
39050
  return e.success ? [] : e.error.issues.map(
39012
39051
  (t) => new b({
39013
39052
  id: `${r.id}--${S.InvalidObjectStructure}`,
39014
- message: `Entity of type "${r.type}" and with id "${r.id}", has an invalid structure: ${Oj(t).toString().replace("Validation error: ", "")}`,
39053
+ message: `Entity of type "${r.type}" and with id "${r.id}", has an invalid structure: ${O6(t).toString().replace("Validation error: ", "")}`,
39015
39054
  severity: m.Error,
39016
39055
  code: S.InvalidObjectStructure,
39017
39056
  issue: t
@@ -43635,7 +43674,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
43635
43674
  // are references by a property or method (respectively) declared in this entity
43636
43675
  addSuggestions() {
43637
43676
  return this.implements.forEach((e) => {
43638
- cj(
43677
+ c6(
43639
43678
  this,
43640
43679
  e
43641
43680
  ).forEach((a) => {
@@ -43646,7 +43685,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
43646
43685
  this.project
43647
43686
  );
43648
43687
  o.suggestion = !0, o.setParent(this), o.initChildren(), this.addSuggestedProperty(o);
43649
- }), dj(
43688
+ }), d6(
43650
43689
  this,
43651
43690
  e
43652
43691
  ).forEach((a) => {
@@ -43896,7 +43935,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
43896
43935
  return this.errors = [], this.properties.forEach((e) => e.clearErrors()), this.methods.forEach((e) => e.clearErrors()), this.abstractMethods.forEach((e) => e.clearErrors()), this;
43897
43936
  }
43898
43937
  validate() {
43899
- return this.errors = lj(this), { success: !0, error: null, data: null };
43938
+ return this.errors = l6(this), { success: !0, error: null, data: null };
43900
43939
  }
43901
43940
  // Returns the errors of this entity and all its nested entities recursively
43902
43941
  getErrors() {
@@ -45240,7 +45279,7 @@ const Q = class Q {
45240
45279
  return this.errors = [], this.entities.forEach((e) => e.clearErrors()), this.projects.forEach((e) => e.clearErrors()), this.functions.forEach((e) => e.clearErrors()), this.events.forEach((e) => e.clearErrors()), this.variableDeclarations.forEach((e) => e.clearErrors()), this.variableInstances.forEach((e) => e.clearErrors()), this.conditions.forEach((e) => e.clearErrors()), this.operations.forEach((e) => e.clearErrors()), this.functionCalls.forEach((e) => e.clearErrors()), this.loops.forEach((e) => e.clearErrors()), this.searches.forEach((e) => e.clearErrors()), this;
45241
45280
  }
45242
45281
  validate() {
45243
- const e = nj(), t = this.toJSON();
45282
+ const e = n6(), t = this.toJSON();
45244
45283
  return e.safeParse(t), this.validateChildren(), { success: !0, error: null, data: t };
45245
45284
  }
45246
45285
  // Validate all the children entities
@@ -46677,7 +46716,7 @@ export {
46677
46716
  ek as getBaseSchemaBasedOnType,
46678
46717
  Xn as getBuiltInEntityOwner,
46679
46718
  ze as getCallableEntityReferenceSchema,
46680
- U6 as getCallableEntityTypeSchema,
46719
+ Uj as getCallableEntityTypeSchema,
46681
46720
  $2 as getCallerEntityReferenceSchema,
46682
46721
  x2 as getCallerEntityTypeSchema,
46683
46722
  Zm as getCalls,
@@ -46695,8 +46734,8 @@ export {
46695
46734
  tq as getDatabaseEntity,
46696
46735
  Ar as getDeclaration,
46697
46736
  Lk as getDeepestScope,
46698
- k6 as getDraggableCallableEntityReferenceSchema,
46699
- j6 as getDraggableCallableEntityTypeSchema,
46737
+ kj as getDraggableCallableEntityReferenceSchema,
46738
+ jj as getDraggableCallableEntityTypeSchema,
46700
46739
  G2 as getDraggableCallerEntityReferenceSchema,
46701
46740
  L2 as getDraggableCallerEntityTypeSchema,
46702
46741
  k2 as getDraggableExecutableEntityReferenceSchema,
@@ -46713,7 +46752,7 @@ export {
46713
46752
  K2 as getEntityTypeSchema,
46714
46753
  $n as getEntityWithLogicScopeReferenceSchema,
46715
46754
  q2 as getEntityWithLogicScopeTypeSchema,
46716
- F6 as getEntityWithValueReferenceSchema,
46755
+ Fj as getEntityWithValueReferenceSchema,
46717
46756
  V2 as getEntityWithValueTypeSchema,
46718
46757
  Ye as getEntryPointEntityReferenceSchema,
46719
46758
  fr as getEntryPointEntityTypeSchema,
@@ -46762,7 +46801,7 @@ export {
46762
46801
  z2 as getTerminationTypeSchema,
46763
46802
  j7 as getUsedArgFromDeclaration,
46764
46803
  k7 as getUsedReturnFromDeclaration,
46765
- G6 as getValueReadingEntityReferenceSchema,
46804
+ Gj as getValueReadingEntityReferenceSchema,
46766
46805
  xn as getValueReadingEntityTypeSchema,
46767
46806
  N2 as getValueWritingEntityReferenceSchema,
46768
46807
  js as getValueWritingEntityTypeSchema,