@mat3ra/esse 2026.6.5-0 → 2026.6.16-0

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.
Files changed (41) hide show
  1. package/dist/js/esse/JSONSchemasInterface.js +1 -1
  2. package/dist/js/esse/JSONSchemasInterfaceServer.js +3 -2
  3. package/dist/js/esse/schemaUtils.js +2 -1
  4. package/dist/js/esse/server/utils.js +3 -2
  5. package/dist/js/esse/utils.js +3 -2
  6. package/dist/js/example/core/reusable/formation_energy_contribution.json +9 -0
  7. package/dist/js/example/properties_directory/non_scalar/formation_energy_contributions.json +32 -0
  8. package/dist/js/schema/core/reusable/formation_energy_contribution.json +53 -0
  9. package/dist/js/schema/job.json +378 -0
  10. package/dist/js/schema/properties_directory/enum_options.json +8 -1
  11. package/dist/js/schema/properties_directory/non_scalar/formation_energy_contributions.json +73 -0
  12. package/dist/js/schema/properties_directory/non_scalar/workflow.json +378 -0
  13. package/dist/js/schema/property/holder.json +450 -0
  14. package/dist/js/schema/workflow/base.json +378 -0
  15. package/dist/js/schema/workflow/subworkflow/mixin.json +189 -0
  16. package/dist/js/schema/workflow/subworkflow/unit.json +189 -0
  17. package/dist/js/schema/workflow/subworkflow.json +189 -0
  18. package/dist/js/schema/workflow/unit/error.json +190 -0
  19. package/dist/js/schema/workflow/unit/mixins/error.json +18 -0
  20. package/dist/js/schema/workflow/unit.json +189 -0
  21. package/dist/js/schema/workflow.json +378 -0
  22. package/dist/js/schemas.json +1 -1
  23. package/dist/js/scripts/compileTs.js +1 -1
  24. package/dist/js/scripts/setSchemaIds.js +1 -1
  25. package/dist/js/types.d.ts +1694 -76
  26. package/dist/js/types.js +5 -5
  27. package/dist/js/utils/ajv.js +5 -4
  28. package/dist/js/utils/common.js +3 -2
  29. package/dist/js/utils/filesystem.js +3 -2
  30. package/example/core/reusable/formation_energy_contribution.json +9 -0
  31. package/example/properties_directory/non-scalar/formation_energy_contributions.json +32 -0
  32. package/manifest/properties.yaml +5 -0
  33. package/package.json +1 -1
  34. package/schema/core/reusable/formation_energy_contribution.json +53 -0
  35. package/schema/properties_directory/enum_options.json +8 -1
  36. package/schema/properties_directory/non-scalar/formation_energy_contributions.json +24 -0
  37. package/schema/property/holder.json +3 -0
  38. package/schema/workflow/subworkflow/unit.json +3 -0
  39. package/schema/workflow/unit/error.json +14 -0
  40. package/schema/workflow/unit/mixins/error.json +18 -0
  41. package/schema/workflow/unit.json +3 -0
@@ -632,6 +632,195 @@
632
632
  "type": "boolean"
633
633
  }
634
634
  }
635
+ },
636
+ {
637
+ "$schema": "http://json-schema.org/draft-07/schema#",
638
+ "title": "error unit schema",
639
+ "type": "object",
640
+ "required": [
641
+ "flowchartId",
642
+ "monitors",
643
+ "name",
644
+ "postProcessors",
645
+ "preProcessors",
646
+ "reason",
647
+ "results",
648
+ "type"
649
+ ],
650
+ "properties": {
651
+ "_id": {
652
+ "description": "entity identity",
653
+ "type": "string"
654
+ },
655
+ "slug": {
656
+ "description": "entity slug",
657
+ "type": "string"
658
+ },
659
+ "systemName": {
660
+ "type": "string"
661
+ },
662
+ "schemaVersion": {
663
+ "description": "entity's schema version. Used to distinct between different schemas.",
664
+ "type": "string",
665
+ "default": "2022.8.16"
666
+ },
667
+ "name": {
668
+ "description": "entity name",
669
+ "type": "string"
670
+ },
671
+ "isDefault": {
672
+ "description": "Identifies that entity is defaultable",
673
+ "type": "boolean",
674
+ "default": false
675
+ },
676
+ "preProcessors": {
677
+ "description": "names of the pre-processors for this calculation",
678
+ "type": "array",
679
+ "items": {
680
+ "$schema": "http://json-schema.org/draft-07/schema#",
681
+ "title": "runtime item name object schema",
682
+ "description": "A runtime item is a name of a pre-processor, post-processor, monitor, or result for a calculation. Can contain additional properties basename, filetype etc.",
683
+ "type": "object",
684
+ "required": [
685
+ "name"
686
+ ],
687
+ "additionalProperties": true,
688
+ "properties": {
689
+ "name": {
690
+ "description": "The name of this item. e.g. scf_accuracy",
691
+ "type": "string"
692
+ }
693
+ }
694
+ }
695
+ },
696
+ "postProcessors": {
697
+ "description": "names of the post-processors for this calculation",
698
+ "type": "array",
699
+ "items": {
700
+ "$schema": "http://json-schema.org/draft-07/schema#",
701
+ "title": "runtime item name object schema",
702
+ "description": "A runtime item is a name of a pre-processor, post-processor, monitor, or result for a calculation. Can contain additional properties basename, filetype etc.",
703
+ "type": "object",
704
+ "required": [
705
+ "name"
706
+ ],
707
+ "additionalProperties": true,
708
+ "properties": {
709
+ "name": {
710
+ "description": "The name of this item. e.g. scf_accuracy",
711
+ "type": "string"
712
+ }
713
+ }
714
+ }
715
+ },
716
+ "monitors": {
717
+ "description": "names of the monitors for this calculation",
718
+ "type": "array",
719
+ "items": {
720
+ "$schema": "http://json-schema.org/draft-07/schema#",
721
+ "title": "runtime item name object schema",
722
+ "description": "A runtime item is a name of a pre-processor, post-processor, monitor, or result for a calculation. Can contain additional properties basename, filetype etc.",
723
+ "type": "object",
724
+ "required": [
725
+ "name"
726
+ ],
727
+ "additionalProperties": true,
728
+ "properties": {
729
+ "name": {
730
+ "description": "The name of this item. e.g. scf_accuracy",
731
+ "type": "string"
732
+ }
733
+ }
734
+ }
735
+ },
736
+ "results": {
737
+ "description": "names of the results for this calculation",
738
+ "type": "array",
739
+ "items": {
740
+ "$schema": "http://json-schema.org/draft-07/schema#",
741
+ "title": "runtime item name object schema",
742
+ "description": "A runtime item is a name of a pre-processor, post-processor, monitor, or result for a calculation. Can contain additional properties basename, filetype etc.",
743
+ "type": "object",
744
+ "required": [
745
+ "name"
746
+ ],
747
+ "additionalProperties": true,
748
+ "properties": {
749
+ "name": {
750
+ "description": "The name of this item. e.g. scf_accuracy",
751
+ "type": "string"
752
+ }
753
+ }
754
+ }
755
+ },
756
+ "tags": {
757
+ "description": "entity tags",
758
+ "type": "array",
759
+ "items": {
760
+ "type": "string"
761
+ }
762
+ },
763
+ "status": {
764
+ "type": "string",
765
+ "description": "Status of the unit.",
766
+ "enum": [
767
+ "idle",
768
+ "active",
769
+ "warning",
770
+ "error",
771
+ "finished"
772
+ ]
773
+ },
774
+ "statusTrack": {
775
+ "type": "array",
776
+ "items": {
777
+ "type": "object",
778
+ "required": [
779
+ "trackedAt",
780
+ "status"
781
+ ],
782
+ "properties": {
783
+ "trackedAt": {
784
+ "type": "number"
785
+ },
786
+ "status": {
787
+ "type": "string"
788
+ },
789
+ "repetition": {
790
+ "type": "number"
791
+ }
792
+ }
793
+ }
794
+ },
795
+ "isDraft": {
796
+ "type": "boolean"
797
+ },
798
+ "type": {
799
+ "description": "type of the unit",
800
+ "type": "string",
801
+ "const": "error"
802
+ },
803
+ "head": {
804
+ "description": "Whether this unit is the first one to be executed.",
805
+ "type": "boolean"
806
+ },
807
+ "flowchartId": {
808
+ "description": "Identity of the unit in the workflow. Used to trace the execution flow of the workflow.",
809
+ "type": "string"
810
+ },
811
+ "next": {
812
+ "description": "Next unit's flowchartId. If empty, the current unit is the last.",
813
+ "type": "string"
814
+ },
815
+ "enableRender": {
816
+ "description": "Whether Rupy should attempt to use Jinja templating to add context variables into the unit",
817
+ "type": "boolean"
818
+ },
819
+ "reason": {
820
+ "type": "string",
821
+ "description": "JSON string with validation/hydration details: { error, json, schema }"
822
+ }
823
+ }
635
824
  }
636
825
  ],
637
826
  "discriminator": {
@@ -3561,6 +3561,195 @@
3561
3561
  ]
3562
3562
  }
3563
3563
  }
3564
+ },
3565
+ {
3566
+ "$schema": "http://json-schema.org/draft-07/schema#",
3567
+ "title": "error unit schema",
3568
+ "type": "object",
3569
+ "required": [
3570
+ "flowchartId",
3571
+ "monitors",
3572
+ "name",
3573
+ "postProcessors",
3574
+ "preProcessors",
3575
+ "reason",
3576
+ "results",
3577
+ "type"
3578
+ ],
3579
+ "properties": {
3580
+ "_id": {
3581
+ "description": "entity identity",
3582
+ "type": "string"
3583
+ },
3584
+ "slug": {
3585
+ "description": "entity slug",
3586
+ "type": "string"
3587
+ },
3588
+ "systemName": {
3589
+ "type": "string"
3590
+ },
3591
+ "schemaVersion": {
3592
+ "description": "entity's schema version. Used to distinct between different schemas.",
3593
+ "type": "string",
3594
+ "default": "2022.8.16"
3595
+ },
3596
+ "name": {
3597
+ "description": "entity name",
3598
+ "type": "string"
3599
+ },
3600
+ "isDefault": {
3601
+ "description": "Identifies that entity is defaultable",
3602
+ "type": "boolean",
3603
+ "default": false
3604
+ },
3605
+ "preProcessors": {
3606
+ "description": "names of the pre-processors for this calculation",
3607
+ "type": "array",
3608
+ "items": {
3609
+ "$schema": "http://json-schema.org/draft-07/schema#",
3610
+ "title": "runtime item name object schema",
3611
+ "description": "A runtime item is a name of a pre-processor, post-processor, monitor, or result for a calculation. Can contain additional properties basename, filetype etc.",
3612
+ "type": "object",
3613
+ "required": [
3614
+ "name"
3615
+ ],
3616
+ "additionalProperties": true,
3617
+ "properties": {
3618
+ "name": {
3619
+ "description": "The name of this item. e.g. scf_accuracy",
3620
+ "type": "string"
3621
+ }
3622
+ }
3623
+ }
3624
+ },
3625
+ "postProcessors": {
3626
+ "description": "names of the post-processors for this calculation",
3627
+ "type": "array",
3628
+ "items": {
3629
+ "$schema": "http://json-schema.org/draft-07/schema#",
3630
+ "title": "runtime item name object schema",
3631
+ "description": "A runtime item is a name of a pre-processor, post-processor, monitor, or result for a calculation. Can contain additional properties basename, filetype etc.",
3632
+ "type": "object",
3633
+ "required": [
3634
+ "name"
3635
+ ],
3636
+ "additionalProperties": true,
3637
+ "properties": {
3638
+ "name": {
3639
+ "description": "The name of this item. e.g. scf_accuracy",
3640
+ "type": "string"
3641
+ }
3642
+ }
3643
+ }
3644
+ },
3645
+ "monitors": {
3646
+ "description": "names of the monitors for this calculation",
3647
+ "type": "array",
3648
+ "items": {
3649
+ "$schema": "http://json-schema.org/draft-07/schema#",
3650
+ "title": "runtime item name object schema",
3651
+ "description": "A runtime item is a name of a pre-processor, post-processor, monitor, or result for a calculation. Can contain additional properties basename, filetype etc.",
3652
+ "type": "object",
3653
+ "required": [
3654
+ "name"
3655
+ ],
3656
+ "additionalProperties": true,
3657
+ "properties": {
3658
+ "name": {
3659
+ "description": "The name of this item. e.g. scf_accuracy",
3660
+ "type": "string"
3661
+ }
3662
+ }
3663
+ }
3664
+ },
3665
+ "results": {
3666
+ "description": "names of the results for this calculation",
3667
+ "type": "array",
3668
+ "items": {
3669
+ "$schema": "http://json-schema.org/draft-07/schema#",
3670
+ "title": "runtime item name object schema",
3671
+ "description": "A runtime item is a name of a pre-processor, post-processor, monitor, or result for a calculation. Can contain additional properties basename, filetype etc.",
3672
+ "type": "object",
3673
+ "required": [
3674
+ "name"
3675
+ ],
3676
+ "additionalProperties": true,
3677
+ "properties": {
3678
+ "name": {
3679
+ "description": "The name of this item. e.g. scf_accuracy",
3680
+ "type": "string"
3681
+ }
3682
+ }
3683
+ }
3684
+ },
3685
+ "tags": {
3686
+ "description": "entity tags",
3687
+ "type": "array",
3688
+ "items": {
3689
+ "type": "string"
3690
+ }
3691
+ },
3692
+ "status": {
3693
+ "type": "string",
3694
+ "description": "Status of the unit.",
3695
+ "enum": [
3696
+ "idle",
3697
+ "active",
3698
+ "warning",
3699
+ "error",
3700
+ "finished"
3701
+ ]
3702
+ },
3703
+ "statusTrack": {
3704
+ "type": "array",
3705
+ "items": {
3706
+ "type": "object",
3707
+ "required": [
3708
+ "trackedAt",
3709
+ "status"
3710
+ ],
3711
+ "properties": {
3712
+ "trackedAt": {
3713
+ "type": "number"
3714
+ },
3715
+ "status": {
3716
+ "type": "string"
3717
+ },
3718
+ "repetition": {
3719
+ "type": "number"
3720
+ }
3721
+ }
3722
+ }
3723
+ },
3724
+ "isDraft": {
3725
+ "type": "boolean"
3726
+ },
3727
+ "type": {
3728
+ "description": "type of the unit",
3729
+ "type": "string",
3730
+ "const": "error"
3731
+ },
3732
+ "head": {
3733
+ "description": "Whether this unit is the first one to be executed.",
3734
+ "type": "boolean"
3735
+ },
3736
+ "flowchartId": {
3737
+ "description": "Identity of the unit in the workflow. Used to trace the execution flow of the workflow.",
3738
+ "type": "string"
3739
+ },
3740
+ "next": {
3741
+ "description": "Next unit's flowchartId. If empty, the current unit is the last.",
3742
+ "type": "string"
3743
+ },
3744
+ "enableRender": {
3745
+ "description": "Whether Rupy should attempt to use Jinja templating to add context variables into the unit",
3746
+ "type": "boolean"
3747
+ },
3748
+ "reason": {
3749
+ "type": "string",
3750
+ "description": "JSON string with validation/hydration details: { error, json, schema }"
3751
+ }
3752
+ }
3564
3753
  }
3565
3754
  ],
3566
3755
  "discriminator": {
@@ -4606,6 +4795,195 @@
4606
4795
  "type": "boolean"
4607
4796
  }
4608
4797
  }
4798
+ },
4799
+ {
4800
+ "$schema": "http://json-schema.org/draft-07/schema#",
4801
+ "title": "error unit schema",
4802
+ "type": "object",
4803
+ "required": [
4804
+ "flowchartId",
4805
+ "monitors",
4806
+ "name",
4807
+ "postProcessors",
4808
+ "preProcessors",
4809
+ "reason",
4810
+ "results",
4811
+ "type"
4812
+ ],
4813
+ "properties": {
4814
+ "_id": {
4815
+ "description": "entity identity",
4816
+ "type": "string"
4817
+ },
4818
+ "slug": {
4819
+ "description": "entity slug",
4820
+ "type": "string"
4821
+ },
4822
+ "systemName": {
4823
+ "type": "string"
4824
+ },
4825
+ "schemaVersion": {
4826
+ "description": "entity's schema version. Used to distinct between different schemas.",
4827
+ "type": "string",
4828
+ "default": "2022.8.16"
4829
+ },
4830
+ "name": {
4831
+ "description": "entity name",
4832
+ "type": "string"
4833
+ },
4834
+ "isDefault": {
4835
+ "description": "Identifies that entity is defaultable",
4836
+ "type": "boolean",
4837
+ "default": false
4838
+ },
4839
+ "preProcessors": {
4840
+ "description": "names of the pre-processors for this calculation",
4841
+ "type": "array",
4842
+ "items": {
4843
+ "$schema": "http://json-schema.org/draft-07/schema#",
4844
+ "title": "runtime item name object schema",
4845
+ "description": "A runtime item is a name of a pre-processor, post-processor, monitor, or result for a calculation. Can contain additional properties basename, filetype etc.",
4846
+ "type": "object",
4847
+ "required": [
4848
+ "name"
4849
+ ],
4850
+ "additionalProperties": true,
4851
+ "properties": {
4852
+ "name": {
4853
+ "description": "The name of this item. e.g. scf_accuracy",
4854
+ "type": "string"
4855
+ }
4856
+ }
4857
+ }
4858
+ },
4859
+ "postProcessors": {
4860
+ "description": "names of the post-processors for this calculation",
4861
+ "type": "array",
4862
+ "items": {
4863
+ "$schema": "http://json-schema.org/draft-07/schema#",
4864
+ "title": "runtime item name object schema",
4865
+ "description": "A runtime item is a name of a pre-processor, post-processor, monitor, or result for a calculation. Can contain additional properties basename, filetype etc.",
4866
+ "type": "object",
4867
+ "required": [
4868
+ "name"
4869
+ ],
4870
+ "additionalProperties": true,
4871
+ "properties": {
4872
+ "name": {
4873
+ "description": "The name of this item. e.g. scf_accuracy",
4874
+ "type": "string"
4875
+ }
4876
+ }
4877
+ }
4878
+ },
4879
+ "monitors": {
4880
+ "description": "names of the monitors for this calculation",
4881
+ "type": "array",
4882
+ "items": {
4883
+ "$schema": "http://json-schema.org/draft-07/schema#",
4884
+ "title": "runtime item name object schema",
4885
+ "description": "A runtime item is a name of a pre-processor, post-processor, monitor, or result for a calculation. Can contain additional properties basename, filetype etc.",
4886
+ "type": "object",
4887
+ "required": [
4888
+ "name"
4889
+ ],
4890
+ "additionalProperties": true,
4891
+ "properties": {
4892
+ "name": {
4893
+ "description": "The name of this item. e.g. scf_accuracy",
4894
+ "type": "string"
4895
+ }
4896
+ }
4897
+ }
4898
+ },
4899
+ "results": {
4900
+ "description": "names of the results for this calculation",
4901
+ "type": "array",
4902
+ "items": {
4903
+ "$schema": "http://json-schema.org/draft-07/schema#",
4904
+ "title": "runtime item name object schema",
4905
+ "description": "A runtime item is a name of a pre-processor, post-processor, monitor, or result for a calculation. Can contain additional properties basename, filetype etc.",
4906
+ "type": "object",
4907
+ "required": [
4908
+ "name"
4909
+ ],
4910
+ "additionalProperties": true,
4911
+ "properties": {
4912
+ "name": {
4913
+ "description": "The name of this item. e.g. scf_accuracy",
4914
+ "type": "string"
4915
+ }
4916
+ }
4917
+ }
4918
+ },
4919
+ "tags": {
4920
+ "description": "entity tags",
4921
+ "type": "array",
4922
+ "items": {
4923
+ "type": "string"
4924
+ }
4925
+ },
4926
+ "status": {
4927
+ "type": "string",
4928
+ "description": "Status of the unit.",
4929
+ "enum": [
4930
+ "idle",
4931
+ "active",
4932
+ "warning",
4933
+ "error",
4934
+ "finished"
4935
+ ]
4936
+ },
4937
+ "statusTrack": {
4938
+ "type": "array",
4939
+ "items": {
4940
+ "type": "object",
4941
+ "required": [
4942
+ "trackedAt",
4943
+ "status"
4944
+ ],
4945
+ "properties": {
4946
+ "trackedAt": {
4947
+ "type": "number"
4948
+ },
4949
+ "status": {
4950
+ "type": "string"
4951
+ },
4952
+ "repetition": {
4953
+ "type": "number"
4954
+ }
4955
+ }
4956
+ }
4957
+ },
4958
+ "isDraft": {
4959
+ "type": "boolean"
4960
+ },
4961
+ "type": {
4962
+ "description": "type of the unit",
4963
+ "type": "string",
4964
+ "const": "error"
4965
+ },
4966
+ "head": {
4967
+ "description": "Whether this unit is the first one to be executed.",
4968
+ "type": "boolean"
4969
+ },
4970
+ "flowchartId": {
4971
+ "description": "Identity of the unit in the workflow. Used to trace the execution flow of the workflow.",
4972
+ "type": "string"
4973
+ },
4974
+ "next": {
4975
+ "description": "Next unit's flowchartId. If empty, the current unit is the last.",
4976
+ "type": "string"
4977
+ },
4978
+ "enableRender": {
4979
+ "description": "Whether Rupy should attempt to use Jinja templating to add context variables into the unit",
4980
+ "type": "boolean"
4981
+ },
4982
+ "reason": {
4983
+ "type": "string",
4984
+ "description": "JSON string with validation/hydration details: { error, json, schema }"
4985
+ }
4986
+ }
4609
4987
  }
4610
4988
  ],
4611
4989
  "discriminator": {