@mat3ra/esse 2024.2.6-0 → 2024.2.19-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 (964) hide show
  1. package/.eslintrc.json +9 -1
  2. package/.mocharc.json +5 -0
  3. package/build_schemas.js +7 -32
  4. package/compile_ts.ts +3 -0
  5. package/example/models_directory/re.json +1 -0
  6. package/example/workflow/subworkflow.json +1 -1
  7. package/example/workflow.json +2 -1
  8. package/lib/js/esse/JSONSchemasGenerator.d.ts +20 -0
  9. package/lib/js/esse/JSONSchemasGenerator.js +64 -0
  10. package/lib/js/esse/JSONSchemasInterface.d.ts +31 -0
  11. package/lib/js/esse/JSONSchemasInterface.js +48 -0
  12. package/lib/js/esse/JSONSchemasInterfaceServer.d.ts +9 -0
  13. package/lib/js/esse/JSONSchemasInterfaceServer.js +46 -0
  14. package/lib/js/esse/schemaUtils.d.ts +4 -0
  15. package/lib/js/esse/schemaUtils.js +13 -74
  16. package/lib/js/esse/settings.d.ts +3 -0
  17. package/lib/js/esse/settings.js +9 -21
  18. package/lib/js/esse/types.d.ts +3 -0
  19. package/lib/js/esse/types.js +2 -0
  20. package/lib/js/esse/utils.d.ts +14 -0
  21. package/lib/js/esse/utils.js +42 -62
  22. package/lib/js/example/3pse/file/applications/espresso/7.2/pw.x.json +94 -0
  23. package/lib/js/example/core/abstract/2d_data.json +19 -0
  24. package/lib/js/example/core/abstract/2d_plot.json +26 -0
  25. package/lib/js/example/core/abstract/3d_grid.json +12 -0
  26. package/lib/js/example/core/abstract/3d_tensor.json +17 -0
  27. package/lib/js/example/core/abstract/3d_vector_basis.json +17 -0
  28. package/lib/js/example/core/abstract/point.json +5 -0
  29. package/lib/js/example/core/abstract/vector.json +5 -0
  30. package/lib/js/example/core/primitive/1d_data_series.json +12 -0
  31. package/lib/js/example/core/primitive/3d_lattice.json +8 -0
  32. package/lib/js/example/core/primitive/array_of_3_booleans.json +5 -0
  33. package/lib/js/example/core/primitive/array_of_3_numbers.json +5 -0
  34. package/lib/js/example/core/primitive/array_of_ids.json +8 -0
  35. package/lib/js/example/core/primitive/axis.json +4 -0
  36. package/lib/js/example/core/primitive/scalar.json +3 -0
  37. package/lib/js/example/core/primitive/string.json +3 -0
  38. package/lib/js/example/core/reference/experiment/condition.json +12 -0
  39. package/lib/js/example/core/reference/experiment/location.json +4 -0
  40. package/lib/js/example/core/reference/experiment.json +38 -0
  41. package/lib/js/example/core/reference/literature/name.json +5 -0
  42. package/lib/js/example/core/reference/literature/pages.json +4 -0
  43. package/lib/js/example/core/reference/literature.json +10 -0
  44. package/lib/js/example/core/reference/modeling/exabyte.json +9 -0
  45. package/lib/js/example/core/reference/modeling.json +9 -0
  46. package/lib/js/example/core/reference.json +9 -0
  47. package/lib/js/example/core/reusable/atomic_vectors.json +18 -0
  48. package/lib/js/example/core/reusable/band_gap.json +16 -0
  49. package/lib/js/example/core/reusable/energy.json +5 -0
  50. package/lib/js/example/core/reusable/file_metadata.json +5 -0
  51. package/lib/js/example/core/reusable/object_storage_container_data.json +8 -0
  52. package/lib/js/example/element.json +17 -0
  53. package/lib/js/example/job/compute.json +26 -0
  54. package/lib/js/example/job.json +183 -0
  55. package/lib/js/example/material.json +128 -0
  56. package/lib/js/example/method/categorized_method.json +47 -0
  57. package/lib/js/example/method/method_parameters.json +3 -0
  58. package/lib/js/example/method.json +7 -0
  59. package/lib/js/example/methods_directory/legacy/localorbital.json +4 -0
  60. package/lib/js/example/methods_directory/legacy/pseudopotential.json +4 -0
  61. package/lib/js/example/methods_directory/legacy/regression.json +61 -0
  62. package/lib/js/example/methods_directory/legacy/unknown.json +4 -0
  63. package/lib/js/example/methods_directory/mathematical/cg.json +10 -0
  64. package/lib/js/example/methods_directory/mathematical/regression.json +65 -0
  65. package/lib/js/example/methods_directory/physical/ao/dunning.json +13 -0
  66. package/lib/js/example/methods_directory/physical/psp/file.json +54 -0
  67. package/lib/js/example/methods_directory/physical/psp.json +67 -0
  68. package/lib/js/example/methods_directory/physical/pw.json +9 -0
  69. package/lib/js/example/methods_directory/physical/smearing.json +10 -0
  70. package/lib/js/example/methods_directory/physical/tetrahedron.json +10 -0
  71. package/lib/js/example/model/categorized_model.json +77 -0
  72. package/lib/js/example/model/model_parameters.json +7 -0
  73. package/lib/js/example/model.json +11 -0
  74. package/lib/js/example/models_category/pb/qm/abin/gw.json +7 -0
  75. package/lib/js/example/models_category/pb/qm/dft/ksdft.json +6 -0
  76. package/lib/js/example/models_category/pb/qm/semp.json +5 -0
  77. package/lib/js/example/models_directory/gga.json +15 -0
  78. package/lib/js/example/models_directory/gw.json +15 -0
  79. package/lib/js/example/models_directory/hybrid.json +15 -0
  80. package/lib/js/example/models_directory/lda.json +15 -0
  81. package/lib/js/example/models_directory/legacy/dft.json +12 -0
  82. package/lib/js/example/models_directory/legacy/ml.json +11 -0
  83. package/lib/js/example/models_directory/legacy/unknown.json +11 -0
  84. package/lib/js/example/models_directory/re.json +10 -0
  85. package/lib/js/example/project.json +25 -0
  86. package/lib/js/example/properties_directory/electronic_configuration.json +4 -0
  87. package/lib/js/example/properties_directory/elemental/atomic_radius.json +4 -0
  88. package/lib/js/example/properties_directory/elemental/electronegativity.json +4 -0
  89. package/lib/js/example/properties_directory/elemental/ionization_potential.json +4 -0
  90. package/lib/js/example/properties_directory/non_scalar/band_gaps.json +25 -0
  91. package/lib/js/example/properties_directory/non_scalar/band_structure.json +47 -0
  92. package/lib/js/example/properties_directory/non_scalar/charge_density_profile.json +22 -0
  93. package/lib/js/example/properties_directory/non_scalar/density_of_states.json +55 -0
  94. package/lib/js/example/properties_directory/non_scalar/dielectric_tensor.json +133 -0
  95. package/lib/js/example/properties_directory/non_scalar/file_content.json +13 -0
  96. package/lib/js/example/properties_directory/non_scalar/hubbard_u.json +24 -0
  97. package/lib/js/example/properties_directory/non_scalar/hubbard_v.json +22 -0
  98. package/lib/js/example/properties_directory/non_scalar/hubbard_v_nn.json +24 -0
  99. package/lib/js/example/properties_directory/non_scalar/phonon_dispersions.json +41 -0
  100. package/lib/js/example/properties_directory/non_scalar/phonon_dos.json +37 -0
  101. package/lib/js/example/properties_directory/non_scalar/potential_profile.json +32 -0
  102. package/lib/js/example/properties_directory/non_scalar/reaction_energy_profile.json +30 -0
  103. package/lib/js/example/properties_directory/non_scalar/stress_tensor.json +21 -0
  104. package/lib/js/example/properties_directory/non_scalar/total_energy_contributions.json +44 -0
  105. package/lib/js/example/properties_directory/non_scalar/vibrational_spectrum.json +25 -0
  106. package/lib/js/example/properties_directory/scalar/electron_affinity.json +5 -0
  107. package/lib/js/example/properties_directory/scalar/fermi_energy.json +5 -0
  108. package/lib/js/example/properties_directory/scalar/formation_energy.json +5 -0
  109. package/lib/js/example/properties_directory/scalar/ionization_potential.json +5 -0
  110. package/lib/js/example/properties_directory/scalar/pressure.json +5 -0
  111. package/lib/js/example/properties_directory/scalar/reaction_energy_barrier.json +5 -0
  112. package/lib/js/example/properties_directory/scalar/surface_energy.json +5 -0
  113. package/lib/js/example/properties_directory/scalar/total_energy.json +5 -0
  114. package/lib/js/example/properties_directory/scalar/total_force.json +5 -0
  115. package/lib/js/example/properties_directory/scalar/valence_band_offset.json +5 -0
  116. package/lib/js/example/properties_directory/scalar/zero_point_energy.json +5 -0
  117. package/lib/js/example/properties_directory/structural/atomic_forces.json +22 -0
  118. package/lib/js/example/properties_directory/structural/basis/atomic_constraints.json +21 -0
  119. package/lib/js/example/properties_directory/structural/basis/atomic_coordinate.json +8 -0
  120. package/lib/js/example/properties_directory/structural/basis/atomic_coordinates.json +21 -0
  121. package/lib/js/example/properties_directory/structural/basis/atomic_element.json +4 -0
  122. package/lib/js/example/properties_directory/structural/basis/bonds.json +24 -0
  123. package/lib/js/example/properties_directory/structural/basis.json +46 -0
  124. package/lib/js/example/properties_directory/structural/density.json +5 -0
  125. package/lib/js/example/properties_directory/structural/elemental_ratio.json +5 -0
  126. package/lib/js/example/properties_directory/structural/inchi.json +4 -0
  127. package/lib/js/example/properties_directory/structural/inchi_key.json +4 -0
  128. package/lib/js/example/properties_directory/structural/lattice/lattice_bravais.json +13 -0
  129. package/lib/js/example/properties_directory/structural/lattice/lattice_vectors.json +19 -0
  130. package/lib/js/example/properties_directory/structural/lattice.json +33 -0
  131. package/lib/js/example/properties_directory/structural/magnetic_moments.json +22 -0
  132. package/lib/js/example/properties_directory/structural/molecular_pattern.json +71 -0
  133. package/lib/js/example/properties_directory/structural/p_norm.json +5 -0
  134. package/lib/js/example/properties_directory/structural/symmetry.json +9 -0
  135. package/lib/js/example/properties_directory/structural/volume.json +5 -0
  136. package/lib/js/example/properties_directory/workflow/convergence/electronic.json +15 -0
  137. package/lib/js/example/properties_directory/workflow/convergence/ionic.json +20 -0
  138. package/lib/js/example/properties_directory/workflow/convergence/kpoint.json +22 -0
  139. package/lib/js/example/property/base.json +31 -0
  140. package/lib/js/example/software/application.json +7 -0
  141. package/lib/js/example/software/executable.json +20 -0
  142. package/lib/js/example/software/flavor.json +9 -0
  143. package/lib/js/example/software/template.json +14 -0
  144. package/lib/js/example/software_directory/ml/exabyteml.json +6 -0
  145. package/lib/js/example/software_directory/ml/unit/execution/evaluate/cross_validate.json +20 -0
  146. package/lib/js/example/software_directory/ml/unit/execution/initialize.json +23 -0
  147. package/lib/js/example/software_directory/ml/unit/execution/score.json +18 -0
  148. package/lib/js/example/software_directory/ml/unit/execution/train.json +29 -0
  149. package/lib/js/example/software_directory/ml/unit/processing/data_transformation/manipulation.json +14 -0
  150. package/lib/js/example/software_directory/ml/unit/processing/data_transformation/scale_and_reduce.json +26 -0
  151. package/lib/js/example/software_directory/ml/unit/processing/feature_selection/filter_based.json +13 -0
  152. package/lib/js/example/software_directory/modeling/espresso/arguments.json +5 -0
  153. package/lib/js/example/software_directory/modeling/espresso.json +6 -0
  154. package/lib/js/example/software_directory/modeling/nwchem.json +6 -0
  155. package/lib/js/example/software_directory/modeling/unit/execution.json +19 -0
  156. package/lib/js/example/software_directory/modeling/vasp.json +6 -0
  157. package/lib/js/example/software_directory/scripting/jupyter_lab.json +8 -0
  158. package/lib/js/example/software_directory/scripting/python.json +8 -0
  159. package/lib/js/example/software_directory/scripting/shell.json +8 -0
  160. package/lib/js/example/software_directory/scripting/unit/execution.json +22 -0
  161. package/lib/js/example/system/_material.json +5 -0
  162. package/lib/js/example/system/_parent_job.json +5 -0
  163. package/lib/js/example/system/_project.json +5 -0
  164. package/lib/js/example/system/consistency_check.json +6 -0
  165. package/lib/js/example/system/creator.json +5 -0
  166. package/lib/js/example/system/entity_reference.json +5 -0
  167. package/lib/js/example/system/file_source.json +6 -0
  168. package/lib/js/example/system/message.json +16 -0
  169. package/lib/js/example/system/owner.json +5 -0
  170. package/lib/js/example/workflow/subworkflow.json +93 -0
  171. package/lib/js/example/workflow/unit/assignment.json +19 -0
  172. package/lib/js/example/workflow/unit/condition.json +22 -0
  173. package/lib/js/example/workflow/unit/execution.json +66 -0
  174. package/lib/js/example/workflow/unit/input/_inputItemScope.json +4 -0
  175. package/lib/js/example/workflow/unit/io/api.json +31 -0
  176. package/lib/js/example/workflow/unit/io/db.json +15 -0
  177. package/lib/js/example/workflow/unit/io/object_storage.json +12 -0
  178. package/lib/js/example/workflow/unit/io.json +41 -0
  179. package/lib/js/example/workflow/unit/map.json +16 -0
  180. package/lib/js/example/workflow/unit/processing.json +13 -0
  181. package/lib/js/example/workflow/unit/reduce.json +16 -0
  182. package/lib/js/example/workflow/unit/runtime/runtime_items.json +14 -0
  183. package/lib/js/example/workflow.json +129 -0
  184. package/lib/js/json_include/index.d.ts +20 -0
  185. package/lib/js/json_include/index.js +61 -97
  186. package/lib/js/json_include/settings.d.ts +3 -0
  187. package/lib/js/json_include/settings.js +4 -11
  188. package/lib/js/schema/3pse/file/applications/espresso/7.2/pw.x/atomic_positions.json +72 -0
  189. package/lib/js/schema/3pse/file/applications/espresso/7.2/pw.x/atomic_species.json +30 -0
  190. package/lib/js/schema/3pse/file/applications/espresso/7.2/pw.x/cell.json +89 -0
  191. package/lib/js/schema/3pse/file/applications/espresso/7.2/pw.x/cell_parameters.json +54 -0
  192. package/lib/js/schema/3pse/file/applications/espresso/7.2/pw.x/control.json +181 -0
  193. package/lib/js/schema/3pse/file/applications/espresso/7.2/pw.x/electrons.json +163 -0
  194. package/lib/js/schema/3pse/file/applications/espresso/7.2/pw.x/hubbard.json +219 -0
  195. package/lib/js/schema/3pse/file/applications/espresso/7.2/pw.x/ions.json +216 -0
  196. package/lib/js/schema/3pse/file/applications/espresso/7.2/pw.x/k_points.json +87 -0
  197. package/lib/js/schema/3pse/file/applications/espresso/7.2/pw.x/system.json +652 -0
  198. package/lib/js/schema/3pse/file/applications/espresso/7.2/pw.x.json +1776 -0
  199. package/lib/js/schema/core/abstract/2d_data.json +31 -0
  200. package/lib/js/schema/core/abstract/2d_plot.json +74 -0
  201. package/lib/js/schema/core/abstract/3d_grid.json +32 -0
  202. package/lib/js/schema/core/abstract/3d_tensor.json +18 -0
  203. package/lib/js/schema/core/abstract/3d_vector_basis.json +43 -0
  204. package/lib/js/schema/core/abstract/point.json +11 -0
  205. package/lib/js/schema/core/abstract/vector.json +27 -0
  206. package/lib/js/schema/core/primitive/1d_data_series.json +16 -0
  207. package/lib/js/schema/core/primitive/3d_lattice.json +40 -0
  208. package/lib/js/schema/core/primitive/array_of_3_booleans.json +11 -0
  209. package/lib/js/schema/core/primitive/array_of_3_numbers.json +11 -0
  210. package/lib/js/schema/core/primitive/array_of_ids.json +16 -0
  211. package/lib/js/schema/core/primitive/array_of_strings.json +11 -0
  212. package/lib/js/schema/core/primitive/axis.json +19 -0
  213. package/lib/js/schema/core/primitive/group_info.json +16 -0
  214. package/lib/js/schema/core/primitive/integer_one_or_zero.json +8 -0
  215. package/lib/js/schema/core/primitive/linked_list/base_node.json +36 -0
  216. package/lib/js/schema/core/primitive/linked_list/named_node.json +40 -0
  217. package/lib/js/schema/core/primitive/linked_list/named_node_in_group.json +48 -0
  218. package/lib/js/schema/core/primitive/linked_list/node_with_type.json +39 -0
  219. package/lib/js/schema/core/primitive/linked_list.json +171 -0
  220. package/lib/js/schema/core/primitive/scalar.json +14 -0
  221. package/lib/js/schema/core/primitive/slugified_entry.json +21 -0
  222. package/lib/js/schema/core/primitive/slugified_entry_or_slug.json +31 -0
  223. package/lib/js/schema/core/primitive/string.json +14 -0
  224. package/lib/js/schema/core/reference/exabyte.json +19 -0
  225. package/lib/js/schema/core/reference/experiment/condition.json +31 -0
  226. package/lib/js/schema/core/reference/experiment/location.json +20 -0
  227. package/lib/js/schema/core/reference/experiment.json +249 -0
  228. package/lib/js/schema/core/reference/literature/name.json +24 -0
  229. package/lib/js/schema/core/reference/literature/pages.json +17 -0
  230. package/lib/js/schema/core/reference/literature.json +131 -0
  231. package/lib/js/schema/core/reference/modeling/exabyte.json +46 -0
  232. package/lib/js/schema/core/reference/modeling.json +52 -0
  233. package/lib/js/schema/core/reference.json +436 -0
  234. package/lib/js/schema/core/reusable/atomic_data/per_orbital.json +22 -0
  235. package/lib/js/schema/core/reusable/atomic_data/per_orbital_pair.json +39 -0
  236. package/lib/js/schema/core/reusable/atomic_data/value_number.json +13 -0
  237. package/lib/js/schema/core/reusable/atomic_data/value_string.json +13 -0
  238. package/lib/js/schema/core/reusable/atomic_data_per_orbital_numeric.json +26 -0
  239. package/lib/js/schema/core/reusable/atomic_data_per_orbital_pair_numeric.json +43 -0
  240. package/lib/js/schema/core/reusable/atomic_orbital.json +32 -0
  241. package/lib/js/schema/core/reusable/atomic_scalars.json +29 -0
  242. package/lib/js/schema/core/reusable/atomic_strings.json +19 -0
  243. package/lib/js/schema/core/reusable/atomic_vectors.json +42 -0
  244. package/lib/js/schema/core/reusable/band_gap.json +64 -0
  245. package/lib/js/schema/core/reusable/categories.json +159 -0
  246. package/lib/js/schema/core/reusable/category_path.json +7 -0
  247. package/lib/js/schema/core/reusable/dielectric_tensor_component.json +46 -0
  248. package/lib/js/schema/core/reusable/energy.json +39 -0
  249. package/lib/js/schema/core/reusable/file_metadata.json +21 -0
  250. package/lib/js/schema/core/reusable/frequency_function_matrix.json +30 -0
  251. package/lib/js/schema/core/reusable/object_storage_container_data.json +38 -0
  252. package/lib/js/schema/definitions/units.json +103 -0
  253. package/lib/js/schema/element.json +103 -0
  254. package/lib/js/schema/in_memory_entity/base.json +65 -0
  255. package/lib/js/schema/in_memory_entity/defaultable.json +70 -0
  256. package/lib/js/schema/in_memory_entity/named.json +69 -0
  257. package/lib/js/schema/in_memory_entity/named_defaultable.json +74 -0
  258. package/lib/js/schema/in_memory_entity/named_defaultable_has_metadata.json +77 -0
  259. package/lib/js/schema/in_memory_entity/named_defaultable_runtime_items.json +194 -0
  260. package/lib/js/schema/job/base.json +376 -0
  261. package/lib/js/schema/job/compute.json +176 -0
  262. package/lib/js/schema/job.json +6868 -0
  263. package/lib/js/schema/material/conventional.json +11 -0
  264. package/lib/js/schema/material.json +624 -0
  265. package/lib/js/schema/method/categorized_method.json +221 -0
  266. package/lib/js/schema/method/method_parameters.json +47 -0
  267. package/lib/js/schema/method/unit_method.json +191 -0
  268. package/lib/js/schema/method.json +28 -0
  269. package/lib/js/schema/methods_category/mathematical/diff/enum_options.json +8 -0
  270. package/lib/js/schema/methods_category/mathematical/diff/fd.json +165 -0
  271. package/lib/js/schema/methods_category/mathematical/diff.json +162 -0
  272. package/lib/js/schema/methods_category/mathematical/discr/enum_options.json +8 -0
  273. package/lib/js/schema/methods_category/mathematical/discr/mesh/enum_options.json +18 -0
  274. package/lib/js/schema/methods_category/mathematical/discr/mesh/hybrid.json +168 -0
  275. package/lib/js/schema/methods_category/mathematical/discr/mesh/nstruct.json +168 -0
  276. package/lib/js/schema/methods_category/mathematical/discr/mesh/struct/cartesian.json +171 -0
  277. package/lib/js/schema/methods_category/mathematical/discr/mesh/struct/enum_options.json +8 -0
  278. package/lib/js/schema/methods_category/mathematical/discr/mesh/struct.json +168 -0
  279. package/lib/js/schema/methods_category/mathematical/discr/mesh.json +165 -0
  280. package/lib/js/schema/methods_category/mathematical/discr.json +162 -0
  281. package/lib/js/schema/methods_category/mathematical/enum_options.json +45 -0
  282. package/lib/js/schema/methods_category/mathematical/fapprx/basisexp.json +165 -0
  283. package/lib/js/schema/methods_category/mathematical/fapprx/enum_options.json +13 -0
  284. package/lib/js/schema/methods_category/mathematical/fapprx/ipol/enum_options.json +18 -0
  285. package/lib/js/schema/methods_category/mathematical/fapprx/ipol/lin.json +168 -0
  286. package/lib/js/schema/methods_category/mathematical/fapprx/ipol/poly.json +168 -0
  287. package/lib/js/schema/methods_category/mathematical/fapprx/ipol/spline.json +168 -0
  288. package/lib/js/schema/methods_category/mathematical/fapprx/ipol.json +165 -0
  289. package/lib/js/schema/methods_category/mathematical/fapprx.json +162 -0
  290. package/lib/js/schema/methods_category/mathematical/intgr/analytic/enum_options.json +20 -0
  291. package/lib/js/schema/methods_category/mathematical/intgr/analytic/volume.json +178 -0
  292. package/lib/js/schema/methods_category/mathematical/intgr/analytic.json +165 -0
  293. package/lib/js/schema/methods_category/mathematical/intgr/diffeq/enum_options.json +13 -0
  294. package/lib/js/schema/methods_category/mathematical/intgr/diffeq/order1.json +168 -0
  295. package/lib/js/schema/methods_category/mathematical/intgr/diffeq/order2.json +168 -0
  296. package/lib/js/schema/methods_category/mathematical/intgr/diffeq.json +165 -0
  297. package/lib/js/schema/methods_category/mathematical/intgr/enum_options.json +23 -0
  298. package/lib/js/schema/methods_category/mathematical/intgr/numquad/enum_options.json +13 -0
  299. package/lib/js/schema/methods_category/mathematical/intgr/numquad/gauss.json +168 -0
  300. package/lib/js/schema/methods_category/mathematical/intgr/numquad/newcot.json +168 -0
  301. package/lib/js/schema/methods_category/mathematical/intgr/numquad.json +165 -0
  302. package/lib/js/schema/methods_category/mathematical/intgr/transf/enum_options.json +8 -0
  303. package/lib/js/schema/methods_category/mathematical/intgr/transf/fourier.json +168 -0
  304. package/lib/js/schema/methods_category/mathematical/intgr/transf.json +165 -0
  305. package/lib/js/schema/methods_category/mathematical/intgr.json +162 -0
  306. package/lib/js/schema/methods_category/mathematical/linalg/dcomp.json +165 -0
  307. package/lib/js/schema/methods_category/mathematical/linalg/diag/davidson.json +168 -0
  308. package/lib/js/schema/methods_category/mathematical/linalg/diag/enum_options.json +8 -0
  309. package/lib/js/schema/methods_category/mathematical/linalg/diag.json +165 -0
  310. package/lib/js/schema/methods_category/mathematical/linalg/enum_options.json +23 -0
  311. package/lib/js/schema/methods_category/mathematical/linalg/lintra.json +165 -0
  312. package/lib/js/schema/methods_category/mathematical/linalg/matf.json +165 -0
  313. package/lib/js/schema/methods_category/mathematical/linalg.json +162 -0
  314. package/lib/js/schema/methods_category/mathematical/opt/diff/bracket.json +168 -0
  315. package/lib/js/schema/methods_category/mathematical/opt/diff/enum_options.json +28 -0
  316. package/lib/js/schema/methods_category/mathematical/opt/diff/local.json +168 -0
  317. package/lib/js/schema/methods_category/mathematical/opt/diff/order1.json +168 -0
  318. package/lib/js/schema/methods_category/mathematical/opt/diff/order2.json +168 -0
  319. package/lib/js/schema/methods_category/mathematical/opt/diff/ordern/cg.json +171 -0
  320. package/lib/js/schema/methods_category/mathematical/opt/diff/ordern/enum_options.json +8 -0
  321. package/lib/js/schema/methods_category/mathematical/opt/diff/ordern.json +168 -0
  322. package/lib/js/schema/methods_category/mathematical/opt/diff.json +165 -0
  323. package/lib/js/schema/methods_category/mathematical/opt/enum_options.json +18 -0
  324. package/lib/js/schema/methods_category/mathematical/opt/ndiff/direct.json +168 -0
  325. package/lib/js/schema/methods_category/mathematical/opt/ndiff/enum_options.json +18 -0
  326. package/lib/js/schema/methods_category/mathematical/opt/ndiff/pop.json +168 -0
  327. package/lib/js/schema/methods_category/mathematical/opt/ndiff/stoch.json +168 -0
  328. package/lib/js/schema/methods_category/mathematical/opt/ndiff.json +165 -0
  329. package/lib/js/schema/methods_category/mathematical/opt/root/bracket.json +168 -0
  330. package/lib/js/schema/methods_category/mathematical/opt/root/enum_options.json +13 -0
  331. package/lib/js/schema/methods_category/mathematical/opt/root/iter.json +168 -0
  332. package/lib/js/schema/methods_category/mathematical/opt/root.json +165 -0
  333. package/lib/js/schema/methods_category/mathematical/opt.json +162 -0
  334. package/lib/js/schema/methods_category/mathematical/regression.json +167 -0
  335. package/lib/js/schema/methods_category/physical/enum_options.json +8 -0
  336. package/lib/js/schema/methods_category/physical/qm/enum_options.json +8 -0
  337. package/lib/js/schema/methods_category/physical/qm/wf/ao/dunning.json +171 -0
  338. package/lib/js/schema/methods_category/physical/qm/wf/ao/other.json +171 -0
  339. package/lib/js/schema/methods_category/physical/qm/wf/ao/pople.json +171 -0
  340. package/lib/js/schema/methods_category/physical/qm/wf/ao.json +173 -0
  341. package/lib/js/schema/methods_category/physical/qm/wf/enum_options.json +63 -0
  342. package/lib/js/schema/methods_category/physical/qm/wf/psp.json +174 -0
  343. package/lib/js/schema/methods_category/physical/qm/wf/pw.json +168 -0
  344. package/lib/js/schema/methods_category/physical/qm/wf/smearing.json +174 -0
  345. package/lib/js/schema/methods_category/physical/qm/wf/tetrahedron.json +173 -0
  346. package/lib/js/schema/methods_category/physical/qm/wf.json +165 -0
  347. package/lib/js/schema/methods_category/physical/qm.json +162 -0
  348. package/lib/js/schema/methods_directory/legacy/localorbital.json +34 -0
  349. package/lib/js/schema/methods_directory/legacy/pseudopotential.json +37 -0
  350. package/lib/js/schema/methods_directory/legacy/regression.json +185 -0
  351. package/lib/js/schema/methods_directory/legacy/unknown.json +34 -0
  352. package/lib/js/schema/methods_directory/mathematical/cg.json +207 -0
  353. package/lib/js/schema/methods_directory/mathematical/davidson.json +204 -0
  354. package/lib/js/schema/methods_directory/mathematical/regression/data.json +122 -0
  355. package/lib/js/schema/methods_directory/mathematical/regression/dataset.json +21 -0
  356. package/lib/js/schema/methods_directory/mathematical/regression/kernel_ridge/data_per_property.json +47 -0
  357. package/lib/js/schema/methods_directory/mathematical/regression/linear/data_per_property.json +42 -0
  358. package/lib/js/schema/methods_directory/mathematical/regression/per_feature_item.json +23 -0
  359. package/lib/js/schema/methods_directory/mathematical/regression/precision.json +33 -0
  360. package/lib/js/schema/methods_directory/mathematical/regression/precision_per_property.json +23 -0
  361. package/lib/js/schema/methods_directory/mathematical/regression.json +354 -0
  362. package/lib/js/schema/methods_directory/physical/ao/dunning.json +230 -0
  363. package/lib/js/schema/methods_directory/physical/ao/enum_options.json +28 -0
  364. package/lib/js/schema/methods_directory/physical/ao/other.json +238 -0
  365. package/lib/js/schema/methods_directory/physical/ao/pople.json +230 -0
  366. package/lib/js/schema/methods_directory/physical/psp/file.json +140 -0
  367. package/lib/js/schema/methods_directory/physical/psp/file_data_item.json +116 -0
  368. package/lib/js/schema/methods_directory/physical/psp.json +352 -0
  369. package/lib/js/schema/methods_directory/physical/pw.json +204 -0
  370. package/lib/js/schema/methods_directory/physical/smearing.json +210 -0
  371. package/lib/js/schema/methods_directory/physical/tetrahedron.json +208 -0
  372. package/lib/js/schema/model/categorized_model.json +542 -0
  373. package/lib/js/schema/model/mixins/dft/double_hybrid_functional.json +13 -0
  374. package/lib/js/schema/model/mixins/dft/enum_options.json +30 -0
  375. package/lib/js/schema/model/mixins/dft/gga_functional.json +15 -0
  376. package/lib/js/schema/model/mixins/dft/hybrid_functional.json +14 -0
  377. package/lib/js/schema/model/mixins/dft/lda_functional.json +14 -0
  378. package/lib/js/schema/model/mixins/dft/mgga_functional.json +14 -0
  379. package/lib/js/schema/model/mixins/dispersion_correction.json +16 -0
  380. package/lib/js/schema/model/mixins/enum_options.json +22 -0
  381. package/lib/js/schema/model/mixins/hubbard.json +13 -0
  382. package/lib/js/schema/model/mixins/spin_orbit_coupling.json +12 -0
  383. package/lib/js/schema/model/mixins/spin_polarization.json +15 -0
  384. package/lib/js/schema/model/model_parameters.json +98 -0
  385. package/lib/js/schema/model/model_without_method.json +321 -0
  386. package/lib/js/schema/model.json +49 -0
  387. package/lib/js/schema/models_category/enum_options.json +13 -0
  388. package/lib/js/schema/models_category/pb/enum_options.json +8 -0
  389. package/lib/js/schema/models_category/pb/qm/abin/enum_options.json +15 -0
  390. package/lib/js/schema/models_category/pb/qm/abin/gw.json +176 -0
  391. package/lib/js/schema/models_category/pb/qm/abin.json +168 -0
  392. package/lib/js/schema/models_category/pb/qm/dft/enum_options.json +8 -0
  393. package/lib/js/schema/models_category/pb/qm/dft/ksdft/double_hybrid.json +174 -0
  394. package/lib/js/schema/models_category/pb/qm/dft/ksdft/enum_options.json +28 -0
  395. package/lib/js/schema/models_category/pb/qm/dft/ksdft/gga.json +174 -0
  396. package/lib/js/schema/models_category/pb/qm/dft/ksdft/hybrid.json +174 -0
  397. package/lib/js/schema/models_category/pb/qm/dft/ksdft/lda.json +174 -0
  398. package/lib/js/schema/models_category/pb/qm/dft/ksdft/mgga.json +174 -0
  399. package/lib/js/schema/models_category/pb/qm/dft/ksdft.json +171 -0
  400. package/lib/js/schema/models_category/pb/qm/dft.json +168 -0
  401. package/lib/js/schema/models_category/pb/qm/enum_options.json +18 -0
  402. package/lib/js/schema/models_category/pb/qm/semp.json +168 -0
  403. package/lib/js/schema/models_category/pb/qm.json +165 -0
  404. package/lib/js/schema/models_category/pb.json +162 -0
  405. package/lib/js/schema/models_category/st/det/enum_options.json +8 -0
  406. package/lib/js/schema/models_category/st/det/ml/enum_options.json +8 -0
  407. package/lib/js/schema/models_category/st/det/ml/re.json +171 -0
  408. package/lib/js/schema/models_category/st/det/ml.json +168 -0
  409. package/lib/js/schema/models_category/st/det.json +165 -0
  410. package/lib/js/schema/models_category/st/enum_options.json +8 -0
  411. package/lib/js/schema/models_category/st.json +162 -0
  412. package/lib/js/schema/models_directory/double_hybrid.json +387 -0
  413. package/lib/js/schema/models_directory/gga.json +401 -0
  414. package/lib/js/schema/models_directory/gw.json +415 -0
  415. package/lib/js/schema/models_directory/hybrid.json +400 -0
  416. package/lib/js/schema/models_directory/lda.json +400 -0
  417. package/lib/js/schema/models_directory/legacy/dft.json +154 -0
  418. package/lib/js/schema/models_directory/legacy/ml.json +55 -0
  419. package/lib/js/schema/models_directory/legacy/unknown.json +55 -0
  420. package/lib/js/schema/models_directory/mgga.json +400 -0
  421. package/lib/js/schema/models_directory/re.json +334 -0
  422. package/lib/js/schema/project.json +103 -0
  423. package/lib/js/schema/properties_directory/derived_properties.json +185 -0
  424. package/lib/js/schema/properties_directory/electronic_configuration.json +16 -0
  425. package/lib/js/schema/properties_directory/elemental/atomic_radius.json +35 -0
  426. package/lib/js/schema/properties_directory/elemental/electronegativity.json +20 -0
  427. package/lib/js/schema/properties_directory/elemental/ionization_potential.json +31 -0
  428. package/lib/js/schema/properties_directory/non_scalar/average_potential_profile.json +107 -0
  429. package/lib/js/schema/properties_directory/non_scalar/band_gaps.json +121 -0
  430. package/lib/js/schema/properties_directory/non_scalar/band_structure.json +118 -0
  431. package/lib/js/schema/properties_directory/non_scalar/charge_density_profile.json +88 -0
  432. package/lib/js/schema/properties_directory/non_scalar/density_of_states.json +123 -0
  433. package/lib/js/schema/properties_directory/non_scalar/dielectric_tensor.json +65 -0
  434. package/lib/js/schema/properties_directory/non_scalar/file_content.json +73 -0
  435. package/lib/js/schema/properties_directory/non_scalar/hubbard_u.json +56 -0
  436. package/lib/js/schema/properties_directory/non_scalar/hubbard_v.json +75 -0
  437. package/lib/js/schema/properties_directory/non_scalar/hubbard_v_nn.json +75 -0
  438. package/lib/js/schema/properties_directory/non_scalar/phonon_dispersions.json +103 -0
  439. package/lib/js/schema/properties_directory/non_scalar/phonon_dos.json +95 -0
  440. package/lib/js/schema/properties_directory/non_scalar/potential_profile.json +94 -0
  441. package/lib/js/schema/properties_directory/non_scalar/reaction_energy_profile.json +94 -0
  442. package/lib/js/schema/properties_directory/non_scalar/stress_tensor.json +36 -0
  443. package/lib/js/schema/properties_directory/non_scalar/total_energy_contributions.json +271 -0
  444. package/lib/js/schema/properties_directory/non_scalar/vibrational_spectrum.json +99 -0
  445. package/lib/js/schema/properties_directory/scalar/electron_affinity.json +42 -0
  446. package/lib/js/schema/properties_directory/scalar/fermi_energy.json +42 -0
  447. package/lib/js/schema/properties_directory/scalar/formation_energy.json +42 -0
  448. package/lib/js/schema/properties_directory/scalar/ionization_potential.json +42 -0
  449. package/lib/js/schema/properties_directory/scalar/pressure.json +26 -0
  450. package/lib/js/schema/properties_directory/scalar/reaction_energy_barrier.json +42 -0
  451. package/lib/js/schema/properties_directory/scalar/surface_energy.json +42 -0
  452. package/lib/js/schema/properties_directory/scalar/total_energy.json +42 -0
  453. package/lib/js/schema/properties_directory/scalar/total_force.json +29 -0
  454. package/lib/js/schema/properties_directory/scalar/valence_band_offset.json +42 -0
  455. package/lib/js/schema/properties_directory/scalar/zero_point_energy.json +42 -0
  456. package/lib/js/schema/properties_directory/structural/atomic_forces.json +65 -0
  457. package/lib/js/schema/properties_directory/structural/basis/atomic_constraints.json +55 -0
  458. package/lib/js/schema/properties_directory/structural/basis/atomic_coordinate.json +38 -0
  459. package/lib/js/schema/properties_directory/structural/basis/atomic_coordinates.json +68 -0
  460. package/lib/js/schema/properties_directory/structural/basis/atomic_element.json +26 -0
  461. package/lib/js/schema/properties_directory/structural/basis/bonds.json +42 -0
  462. package/lib/js/schema/properties_directory/structural/basis.json +127 -0
  463. package/lib/js/schema/properties_directory/structural/density.json +24 -0
  464. package/lib/js/schema/properties_directory/structural/elemental_ratio.json +26 -0
  465. package/lib/js/schema/properties_directory/structural/inchi.json +19 -0
  466. package/lib/js/schema/properties_directory/structural/inchi_key.json +19 -0
  467. package/lib/js/schema/properties_directory/structural/lattice/lattice_bravais.json +81 -0
  468. package/lib/js/schema/properties_directory/structural/lattice/lattice_vectors.json +63 -0
  469. package/lib/js/schema/properties_directory/structural/lattice/type_enum.json +22 -0
  470. package/lib/js/schema/properties_directory/structural/lattice/type_extended_enum.json +32 -0
  471. package/lib/js/schema/properties_directory/structural/lattice.json +148 -0
  472. package/lib/js/schema/properties_directory/structural/magnetic_moments.json +60 -0
  473. package/lib/js/schema/properties_directory/structural/molecular_pattern.json +111 -0
  474. package/lib/js/schema/properties_directory/structural/p_norm.json +24 -0
  475. package/lib/js/schema/properties_directory/structural/patterns/functional_group.json +36 -0
  476. package/lib/js/schema/properties_directory/structural/patterns/ring.json +35 -0
  477. package/lib/js/schema/properties_directory/structural/patterns/special_bond.json +33 -0
  478. package/lib/js/schema/properties_directory/structural/symmetry.json +40 -0
  479. package/lib/js/schema/properties_directory/structural/volume.json +24 -0
  480. package/lib/js/schema/properties_directory/workflow/convergence/electronic.json +32 -0
  481. package/lib/js/schema/properties_directory/workflow/convergence/ionic.json +62 -0
  482. package/lib/js/schema/properties_directory/workflow/convergence/kpoint.json +48 -0
  483. package/lib/js/schema/property/base.json +387 -0
  484. package/lib/js/schema/property/meta.json +387 -0
  485. package/lib/js/schema/property/raw.json +387 -0
  486. package/lib/js/schema/property/source.json +286 -0
  487. package/lib/js/schema/software/application.json +99 -0
  488. package/lib/js/schema/software/executable.json +208 -0
  489. package/lib/js/schema/software/flavor.json +228 -0
  490. package/lib/js/schema/software/template.json +103 -0
  491. package/lib/js/schema/software_directory/ml/exabyteml.json +23 -0
  492. package/lib/js/schema/software_directory/ml/unit/execution/evaluate/cross_validate.json +814 -0
  493. package/lib/js/schema/software_directory/ml/unit/execution/initialize.json +818 -0
  494. package/lib/js/schema/software_directory/ml/unit/execution/score.json +804 -0
  495. package/lib/js/schema/software_directory/ml/unit/execution/train.json +827 -0
  496. package/lib/js/schema/software_directory/ml/unit/execution.json +3264 -0
  497. package/lib/js/schema/software_directory/ml/unit/processing/data_transformation/manipulation.json +310 -0
  498. package/lib/js/schema/software_directory/ml/unit/processing/data_transformation/scale_and_reduce.json +330 -0
  499. package/lib/js/schema/software_directory/ml/unit/processing/data_transformation.json +334 -0
  500. package/lib/js/schema/software_directory/ml/unit/processing/feature_selection/filter_based.json +305 -0
  501. package/lib/js/schema/software_directory/ml/unit/processing/feature_selection.json +309 -0
  502. package/lib/js/schema/software_directory/ml/unit/processing.json +646 -0
  503. package/lib/js/schema/software_directory/modeling/deepmd.json +115 -0
  504. package/lib/js/schema/software_directory/modeling/espresso/arguments.json +44 -0
  505. package/lib/js/schema/software_directory/modeling/espresso.json +34 -0
  506. package/lib/js/schema/software_directory/modeling/nwchem.json +114 -0
  507. package/lib/js/schema/software_directory/modeling/unit/execution.json +847 -0
  508. package/lib/js/schema/software_directory/modeling/vasp.json +120 -0
  509. package/lib/js/schema/software_directory/scripting/jupyter_lab.json +118 -0
  510. package/lib/js/schema/software_directory/scripting/python.json +132 -0
  511. package/lib/js/schema/software_directory/scripting/shell.json +132 -0
  512. package/lib/js/schema/software_directory/scripting/unit/execution.json +847 -0
  513. package/lib/js/schema/system/_material.json +23 -0
  514. package/lib/js/schema/system/_parent_job.json +23 -0
  515. package/lib/js/schema/system/_project.json +23 -0
  516. package/lib/js/schema/system/bankable.json +16 -0
  517. package/lib/js/schema/system/consistency_check.json +39 -0
  518. package/lib/js/schema/system/creator.json +23 -0
  519. package/lib/js/schema/system/creator_account.json +27 -0
  520. package/lib/js/schema/system/database_source.json +38 -0
  521. package/lib/js/schema/system/defaultable.json +13 -0
  522. package/lib/js/schema/system/description.json +15 -0
  523. package/lib/js/schema/system/entity_reference.json +20 -0
  524. package/lib/js/schema/system/file_source.json +30 -0
  525. package/lib/js/schema/system/history.json +26 -0
  526. package/lib/js/schema/system/in_set.json +36 -0
  527. package/lib/js/schema/system/is_multi_material.json +11 -0
  528. package/lib/js/schema/system/is_outdated.json +11 -0
  529. package/lib/js/schema/system/job_extended.json +64 -0
  530. package/lib/js/schema/system/message.json +68 -0
  531. package/lib/js/schema/system/metadata.json +11 -0
  532. package/lib/js/schema/system/name.json +12 -0
  533. package/lib/js/schema/system/owner.json +23 -0
  534. package/lib/js/schema/system/path.json +14 -0
  535. package/lib/js/schema/system/path_entity.json +18 -0
  536. package/lib/js/schema/system/schema_version.json +13 -0
  537. package/lib/js/schema/system/scope.json +11 -0
  538. package/lib/js/schema/system/set.json +17 -0
  539. package/lib/js/schema/system/sharing.json +11 -0
  540. package/lib/js/schema/system/soft_removable.json +16 -0
  541. package/lib/js/schema/system/status.json +32 -0
  542. package/lib/js/schema/system/tags.json +15 -0
  543. package/lib/js/schema/system/timestampable.json +38 -0
  544. package/lib/js/schema/system/use_values.json +11 -0
  545. package/lib/js/schema/workflow/base.json +103 -0
  546. package/lib/js/schema/workflow/base_flow.json +218 -0
  547. package/lib/js/schema/workflow/scope.json +20 -0
  548. package/lib/js/schema/workflow/subworkflow/unit.json +2713 -0
  549. package/lib/js/schema/workflow/subworkflow.json +3087 -0
  550. package/lib/js/schema/workflow/unit/assertion.json +277 -0
  551. package/lib/js/schema/workflow/unit/assignment.json +314 -0
  552. package/lib/js/schema/workflow/unit/base.json +264 -0
  553. package/lib/js/schema/workflow/unit/condition.json +315 -0
  554. package/lib/js/schema/workflow/unit/execution.json +804 -0
  555. package/lib/js/schema/workflow/unit/input/_input.json +53 -0
  556. package/lib/js/schema/workflow/unit/input/_inputItem.json +20 -0
  557. package/lib/js/schema/workflow/unit/input/_inputItemId.json +19 -0
  558. package/lib/js/schema/workflow/unit/input/_inputItemScope.json +20 -0
  559. package/lib/js/schema/workflow/unit/input/_map_input/values.json +11 -0
  560. package/lib/js/schema/workflow/unit/input/_map_input.json +36 -0
  561. package/lib/js/schema/workflow/unit/io/api.json +24 -0
  562. package/lib/js/schema/workflow/unit/io/db.json +39 -0
  563. package/lib/js/schema/workflow/unit/io/object_storage.json +67 -0
  564. package/lib/js/schema/workflow/unit/io.json +418 -0
  565. package/lib/js/schema/workflow/unit/map.json +314 -0
  566. package/lib/js/schema/workflow/unit/processing.json +281 -0
  567. package/lib/js/schema/workflow/unit/reduce.json +297 -0
  568. package/lib/js/schema/workflow/unit/runtime/_runtime_item_full_object.json +15 -0
  569. package/lib/js/schema/workflow/unit/runtime/_runtime_item_name_object.json +15 -0
  570. package/lib/js/schema/workflow/unit/runtime/_runtime_item_string.json +7 -0
  571. package/lib/js/schema/workflow/unit/runtime/runtime_item.json +27 -0
  572. package/lib/js/schema/workflow/unit/runtime/runtime_items.json +128 -0
  573. package/lib/js/schema/workflow/unit/subworkflow.json +267 -0
  574. package/lib/js/schema/workflow/unit.json +3292 -0
  575. package/lib/js/schema/workflow.json +6492 -0
  576. package/lib/js/schemas.json +1 -0
  577. package/lib/js/scripts/compileTs.d.ts +1 -0
  578. package/lib/js/scripts/compileTs.js +79 -0
  579. package/lib/js/scripts/createEnumsFromYaml.d.ts +1 -0
  580. package/lib/js/scripts/createEnumsFromYaml.js +21 -67
  581. package/lib/js/scripts/setSchemaIds.d.ts +5 -0
  582. package/lib/js/scripts/setSchemaIds.js +26 -153
  583. package/lib/js/utils/ajv.d.ts +31 -0
  584. package/lib/js/utils/ajv.js +94 -0
  585. package/lib/js/utils/common.d.ts +6 -0
  586. package/lib/js/utils/common.js +15 -0
  587. package/lib/js/utils/filesystem.d.ts +2 -0
  588. package/lib/js/utils/filesystem.js +38 -0
  589. package/modules.d.ts +5 -0
  590. package/package.json +48 -23
  591. package/schema/3pse/file/applications/espresso/7.2/pw.x/atomic_positions.json +1 -1
  592. package/schema/3pse/file/applications/espresso/7.2/pw.x/atomic_species.json +1 -1
  593. package/schema/3pse/file/applications/espresso/7.2/pw.x/cell.json +1 -1
  594. package/schema/3pse/file/applications/espresso/7.2/pw.x/cell_parameters.json +1 -1
  595. package/schema/3pse/file/applications/espresso/7.2/pw.x/control.json +1 -1
  596. package/schema/3pse/file/applications/espresso/7.2/pw.x/electrons.json +1 -1
  597. package/schema/3pse/file/applications/espresso/7.2/pw.x/hubbard.json +1 -1
  598. package/schema/3pse/file/applications/espresso/7.2/pw.x/ions.json +1 -1
  599. package/schema/3pse/file/applications/espresso/7.2/pw.x/k_points.json +1 -1
  600. package/schema/3pse/file/applications/espresso/7.2/pw.x/system.json +9 -6
  601. package/schema/3pse/file/applications/espresso/7.2/pw.x.json +2 -1
  602. package/schema/core/abstract/2d_data.json +1 -1
  603. package/schema/core/abstract/2d_plot.json +2 -1
  604. package/schema/core/abstract/3d_grid.json +2 -1
  605. package/schema/core/abstract/3d_tensor.json +1 -1
  606. package/schema/core/abstract/3d_vector_basis.json +1 -1
  607. package/schema/core/abstract/point.json +1 -1
  608. package/schema/core/abstract/vector.json +1 -1
  609. package/schema/core/primitive/1d_data_series.json +1 -1
  610. package/schema/core/primitive/3d_lattice.json +1 -1
  611. package/schema/core/primitive/array_of_3_booleans.json +1 -1
  612. package/schema/core/primitive/array_of_3_numbers.json +1 -1
  613. package/schema/core/primitive/array_of_ids.json +2 -3
  614. package/schema/core/primitive/array_of_strings.json +1 -1
  615. package/schema/core/primitive/axis.json +2 -1
  616. package/schema/core/primitive/group_info.json +1 -1
  617. package/schema/core/primitive/integer_one_or_zero.json +1 -1
  618. package/schema/core/primitive/linked_list/base_node.json +1 -1
  619. package/schema/core/primitive/linked_list/named_node.json +1 -1
  620. package/schema/core/primitive/linked_list/named_node_in_group.json +1 -1
  621. package/schema/core/primitive/linked_list/node_with_type.json +1 -1
  622. package/schema/core/primitive/linked_list.json +1 -1
  623. package/schema/core/primitive/scalar.json +1 -1
  624. package/schema/core/primitive/slugified_entry.json +1 -1
  625. package/schema/core/primitive/slugified_entry_or_slug.json +1 -1
  626. package/schema/core/primitive/string.json +1 -1
  627. package/schema/core/reference/exabyte.json +1 -1
  628. package/schema/core/reference/experiment/condition.json +3 -1
  629. package/schema/core/reference/experiment/location.json +2 -1
  630. package/schema/core/reference/experiment.json +2 -1
  631. package/schema/core/reference/literature/name.json +1 -1
  632. package/schema/core/reference/literature/pages.json +1 -1
  633. package/schema/core/reference/literature.json +2 -1
  634. package/schema/core/reference/modeling/exabyte.json +2 -1
  635. package/schema/core/reference/modeling.json +1 -1
  636. package/schema/core/reference.json +1 -1
  637. package/schema/core/reusable/atomic_data/per_orbital.json +1 -1
  638. package/schema/core/reusable/atomic_data/per_orbital_pair.json +1 -1
  639. package/schema/core/reusable/atomic_data/value_number.json +1 -1
  640. package/schema/core/reusable/atomic_data/value_string.json +2 -2
  641. package/schema/core/reusable/atomic_data_per_orbital_numeric.json +2 -2
  642. package/schema/core/reusable/atomic_data_per_orbital_pair_numeric.json +2 -2
  643. package/schema/core/reusable/atomic_orbital.json +1 -1
  644. package/schema/core/reusable/atomic_scalars.json +2 -1
  645. package/schema/core/reusable/atomic_strings.json +1 -1
  646. package/schema/core/reusable/atomic_vectors.json +3 -1
  647. package/schema/core/reusable/band_gap.json +2 -1
  648. package/schema/core/reusable/categories.json +2 -2
  649. package/schema/core/reusable/category_path.json +1 -1
  650. package/schema/core/reusable/dielectric_tensor_component.json +2 -1
  651. package/schema/core/reusable/energy.json +2 -1
  652. package/schema/core/reusable/file_metadata.json +2 -1
  653. package/schema/core/reusable/frequency_function_matrix.json +1 -1
  654. package/schema/core/reusable/object_storage_container_data.json +2 -1
  655. package/schema/element.json +2 -1
  656. package/schema/in_memory_entity/base.json +2 -1
  657. package/schema/in_memory_entity/defaultable.json +1 -1
  658. package/schema/in_memory_entity/named.json +1 -1
  659. package/schema/in_memory_entity/named_defaultable.json +1 -1
  660. package/schema/in_memory_entity/named_defaultable_has_metadata.json +1 -1
  661. package/schema/in_memory_entity/named_defaultable_runtime_items.json +1 -1
  662. package/schema/job/base.json +3 -2
  663. package/schema/job/compute.json +6 -14
  664. package/schema/job.json +2 -1
  665. package/schema/material/conventional.json +2 -1
  666. package/schema/material.json +2 -1
  667. package/schema/method/categorized_method.json +2 -1
  668. package/schema/method/method_parameters.json +1 -1
  669. package/schema/method/unit_method.json +2 -1
  670. package/schema/method.json +2 -1
  671. package/schema/methods_category/mathematical/diff/fd.json +3 -2
  672. package/schema/methods_category/mathematical/diff.json +3 -2
  673. package/schema/methods_category/mathematical/discr/mesh/hybrid.json +3 -2
  674. package/schema/methods_category/mathematical/discr/mesh/nstruct.json +3 -2
  675. package/schema/methods_category/mathematical/discr/mesh/struct/cartesian.json +2 -1
  676. package/schema/methods_category/mathematical/discr/mesh/struct.json +3 -2
  677. package/schema/methods_category/mathematical/discr/mesh.json +3 -2
  678. package/schema/methods_category/mathematical/discr.json +3 -2
  679. package/schema/methods_category/mathematical/fapprx/basisexp.json +3 -2
  680. package/schema/methods_category/mathematical/fapprx/ipol/lin.json +3 -2
  681. package/schema/methods_category/mathematical/fapprx/ipol/poly.json +3 -2
  682. package/schema/methods_category/mathematical/fapprx/ipol/spline.json +3 -2
  683. package/schema/methods_category/mathematical/fapprx/ipol.json +3 -2
  684. package/schema/methods_category/mathematical/fapprx.json +3 -2
  685. package/schema/methods_category/mathematical/intgr/analytic/volume.json +3 -2
  686. package/schema/methods_category/mathematical/intgr/analytic.json +3 -2
  687. package/schema/methods_category/mathematical/intgr/diffeq/order1.json +3 -1
  688. package/schema/methods_category/mathematical/intgr/diffeq/order2.json +3 -1
  689. package/schema/methods_category/mathematical/intgr/diffeq.json +3 -2
  690. package/schema/methods_category/mathematical/intgr/numquad/gauss.json +3 -2
  691. package/schema/methods_category/mathematical/intgr/numquad/newcot.json +3 -2
  692. package/schema/methods_category/mathematical/intgr/numquad.json +3 -2
  693. package/schema/methods_category/mathematical/intgr/transf/fourier.json +3 -1
  694. package/schema/methods_category/mathematical/intgr/transf.json +3 -1
  695. package/schema/methods_category/mathematical/intgr.json +3 -2
  696. package/schema/methods_category/mathematical/linalg/dcomp.json +3 -2
  697. package/schema/methods_category/mathematical/linalg/diag/davidson.json +3 -2
  698. package/schema/methods_category/mathematical/linalg/diag.json +3 -2
  699. package/schema/methods_category/mathematical/linalg/lintra.json +3 -2
  700. package/schema/methods_category/mathematical/linalg/matf.json +3 -2
  701. package/schema/methods_category/mathematical/linalg.json +3 -2
  702. package/schema/methods_category/mathematical/opt/diff/bracket.json +3 -2
  703. package/schema/methods_category/mathematical/opt/diff/local.json +3 -2
  704. package/schema/methods_category/mathematical/opt/diff/order1.json +3 -2
  705. package/schema/methods_category/mathematical/opt/diff/order2.json +3 -2
  706. package/schema/methods_category/mathematical/opt/diff/ordern/cg.json +3 -2
  707. package/schema/methods_category/mathematical/opt/diff/ordern.json +3 -2
  708. package/schema/methods_category/mathematical/opt/diff.json +3 -2
  709. package/schema/methods_category/mathematical/opt/ndiff/direct.json +3 -2
  710. package/schema/methods_category/mathematical/opt/ndiff/pop.json +3 -2
  711. package/schema/methods_category/mathematical/opt/ndiff/stoch.json +3 -2
  712. package/schema/methods_category/mathematical/opt/ndiff.json +3 -2
  713. package/schema/methods_category/mathematical/opt/root/bracket.json +3 -2
  714. package/schema/methods_category/mathematical/opt/root/iter.json +3 -2
  715. package/schema/methods_category/mathematical/opt/root.json +3 -2
  716. package/schema/methods_category/mathematical/opt.json +3 -2
  717. package/schema/methods_category/mathematical/regression.json +2 -1
  718. package/schema/methods_category/physical/qm/wf/ao/dunning.json +3 -2
  719. package/schema/methods_category/physical/qm/wf/ao/other.json +3 -2
  720. package/schema/methods_category/physical/qm/wf/ao/pople.json +3 -2
  721. package/schema/methods_category/physical/qm/wf/ao.json +3 -2
  722. package/schema/methods_category/physical/qm/wf/psp.json +3 -2
  723. package/schema/methods_category/physical/qm/wf/pw.json +3 -2
  724. package/schema/methods_category/physical/qm/wf/smearing.json +2 -1
  725. package/schema/methods_category/physical/qm/wf/tetrahedron.json +3 -2
  726. package/schema/methods_category/physical/qm/wf.json +3 -2
  727. package/schema/methods_category/physical/qm.json +3 -2
  728. package/schema/methods_directory/legacy/localorbital.json +2 -1
  729. package/schema/methods_directory/legacy/pseudopotential.json +2 -1
  730. package/schema/methods_directory/legacy/regression.json +2 -1
  731. package/schema/methods_directory/legacy/unknown.json +2 -1
  732. package/schema/methods_directory/mathematical/cg.json +6 -3
  733. package/schema/methods_directory/mathematical/davidson.json +6 -3
  734. package/schema/methods_directory/mathematical/regression/data.json +1 -1
  735. package/schema/methods_directory/mathematical/regression/dataset.json +1 -1
  736. package/schema/methods_directory/mathematical/regression/kernel_ridge/data_per_property.json +2 -1
  737. package/schema/methods_directory/mathematical/regression/linear/data_per_property.json +2 -1
  738. package/schema/methods_directory/mathematical/regression/per_feature_item.json +2 -1
  739. package/schema/methods_directory/mathematical/regression/precision.json +1 -1
  740. package/schema/methods_directory/mathematical/regression/precision_per_property.json +1 -1
  741. package/schema/methods_directory/mathematical/regression.json +2 -1
  742. package/schema/methods_directory/physical/ao/dunning.json +6 -2
  743. package/schema/methods_directory/physical/ao/other.json +6 -2
  744. package/schema/methods_directory/physical/ao/pople.json +6 -2
  745. package/schema/methods_directory/physical/psp/file.json +5 -2
  746. package/schema/methods_directory/physical/psp/file_data_item.json +5 -2
  747. package/schema/methods_directory/physical/psp.json +5 -2
  748. package/schema/methods_directory/physical/pw.json +5 -2
  749. package/schema/methods_directory/physical/smearing.json +5 -2
  750. package/schema/methods_directory/physical/tetrahedron.json +5 -2
  751. package/schema/model/categorized_model.json +2 -1
  752. package/schema/model/mixins/dft/double_hybrid_functional.json +1 -1
  753. package/schema/model/mixins/dft/gga_functional.json +3 -2
  754. package/schema/model/mixins/dft/hybrid_functional.json +1 -1
  755. package/schema/model/mixins/dft/lda_functional.json +3 -2
  756. package/schema/model/mixins/dft/mgga_functional.json +3 -2
  757. package/schema/model/mixins/dispersion_correction.json +1 -1
  758. package/schema/model/mixins/hubbard.json +1 -1
  759. package/schema/model/mixins/spin_orbit_coupling.json +3 -2
  760. package/schema/model/mixins/spin_polarization.json +3 -2
  761. package/schema/model/model_parameters.json +2 -1
  762. package/schema/model/model_without_method.json +2 -1
  763. package/schema/model.json +2 -1
  764. package/schema/models_category/pb/qm/abin/gw.json +2 -1
  765. package/schema/models_category/pb/qm/abin.json +2 -1
  766. package/schema/models_category/pb/qm/dft/ksdft/double_hybrid.json +2 -1
  767. package/schema/models_category/pb/qm/dft/ksdft/gga.json +2 -1
  768. package/schema/models_category/pb/qm/dft/ksdft/hybrid.json +2 -1
  769. package/schema/models_category/pb/qm/dft/ksdft/lda.json +2 -1
  770. package/schema/models_category/pb/qm/dft/ksdft/mgga.json +2 -1
  771. package/schema/models_category/pb/qm/dft/ksdft.json +2 -1
  772. package/schema/models_category/pb/qm/dft.json +2 -1
  773. package/schema/models_category/pb/qm/semp.json +2 -1
  774. package/schema/models_category/pb/qm.json +2 -1
  775. package/schema/models_category/pb.json +2 -1
  776. package/schema/models_category/st/det/ml/re.json +2 -1
  777. package/schema/models_category/st/det/ml.json +1 -1
  778. package/schema/models_category/st/det.json +1 -1
  779. package/schema/models_category/st.json +2 -1
  780. package/schema/models_directory/double_hybrid.json +2 -1
  781. package/schema/models_directory/gga.json +2 -1
  782. package/schema/models_directory/gw.json +3 -1
  783. package/schema/models_directory/hybrid.json +2 -1
  784. package/schema/models_directory/lda.json +2 -1
  785. package/schema/models_directory/legacy/dft.json +2 -1
  786. package/schema/models_directory/legacy/ml.json +2 -1
  787. package/schema/models_directory/legacy/unknown.json +2 -1
  788. package/schema/models_directory/mgga.json +2 -1
  789. package/schema/models_directory/re.json +2 -1
  790. package/schema/project.json +1 -1
  791. package/schema/properties_directory/derived_properties.json +8 -2
  792. package/schema/properties_directory/electronic_configuration.json +1 -1
  793. package/schema/properties_directory/elemental/atomic_radius.json +2 -1
  794. package/schema/properties_directory/elemental/electronegativity.json +2 -1
  795. package/schema/properties_directory/elemental/ionization_potential.json +2 -1
  796. package/schema/properties_directory/non-scalar/average_potential_profile.json +2 -1
  797. package/schema/properties_directory/non-scalar/band_gaps.json +4 -1
  798. package/schema/properties_directory/non-scalar/band_structure.json +4 -1
  799. package/schema/properties_directory/non-scalar/charge_density_profile.json +4 -1
  800. package/schema/properties_directory/non-scalar/density_of_states.json +4 -1
  801. package/schema/properties_directory/non-scalar/dielectric_tensor.json +2 -1
  802. package/schema/properties_directory/non-scalar/file_content.json +2 -1
  803. package/schema/properties_directory/non-scalar/hubbard_u.json +11 -4
  804. package/schema/properties_directory/non-scalar/hubbard_v.json +12 -4
  805. package/schema/properties_directory/non-scalar/hubbard_v_nn.json +2 -1
  806. package/schema/properties_directory/non-scalar/phonon_dispersions.json +4 -1
  807. package/schema/properties_directory/non-scalar/phonon_dos.json +3 -1
  808. package/schema/properties_directory/non-scalar/potential_profile.json +4 -1
  809. package/schema/properties_directory/non-scalar/reaction_energy_profile.json +4 -1
  810. package/schema/properties_directory/non-scalar/stress_tensor.json +2 -1
  811. package/schema/properties_directory/non-scalar/total_energy_contributions.json +14 -1
  812. package/schema/properties_directory/non-scalar/vibrational_spectrum.json +3 -1
  813. package/schema/properties_directory/scalar/electron_affinity.json +2 -1
  814. package/schema/properties_directory/scalar/fermi_energy.json +2 -1
  815. package/schema/properties_directory/scalar/formation_energy.json +2 -1
  816. package/schema/properties_directory/scalar/ionization_potential.json +2 -1
  817. package/schema/properties_directory/scalar/pressure.json +2 -1
  818. package/schema/properties_directory/scalar/reaction_energy_barrier.json +2 -1
  819. package/schema/properties_directory/scalar/surface_energy.json +2 -1
  820. package/schema/properties_directory/scalar/total_energy.json +2 -1
  821. package/schema/properties_directory/scalar/total_force.json +2 -1
  822. package/schema/properties_directory/scalar/valence_band_offset.json +2 -1
  823. package/schema/properties_directory/scalar/zero_point_energy.json +2 -1
  824. package/schema/properties_directory/structural/atomic_forces.json +2 -1
  825. package/schema/properties_directory/structural/basis/atomic_constraints.json +2 -1
  826. package/schema/properties_directory/structural/basis/atomic_coordinate.json +2 -1
  827. package/schema/properties_directory/structural/basis/atomic_coordinates.json +1 -0
  828. package/schema/properties_directory/structural/basis/atomic_element.json +2 -1
  829. package/schema/properties_directory/structural/basis/bonds.json +2 -1
  830. package/schema/properties_directory/structural/basis.json +1 -1
  831. package/schema/properties_directory/structural/density.json +2 -1
  832. package/schema/properties_directory/structural/elemental_ratio.json +4 -3
  833. package/schema/properties_directory/structural/inchi.json +2 -1
  834. package/schema/properties_directory/structural/inchi_key.json +2 -1
  835. package/schema/properties_directory/structural/lattice/lattice_bravais.json +2 -1
  836. package/schema/properties_directory/structural/lattice/lattice_vectors.json +2 -1
  837. package/schema/properties_directory/structural/lattice/type_enum.json +1 -2
  838. package/schema/properties_directory/structural/lattice/type_extended_enum.json +1 -1
  839. package/schema/properties_directory/structural/lattice.json +1 -1
  840. package/schema/properties_directory/structural/magnetic_moments.json +2 -1
  841. package/schema/properties_directory/structural/molecular_pattern.json +1 -1
  842. package/schema/properties_directory/structural/p-norm.json +2 -1
  843. package/schema/properties_directory/structural/patterns/functional_group.json +3 -1
  844. package/schema/properties_directory/structural/patterns/ring.json +3 -1
  845. package/schema/properties_directory/structural/patterns/special_bond.json +3 -1
  846. package/schema/properties_directory/structural/symmetry.json +3 -1
  847. package/schema/properties_directory/structural/volume.json +2 -1
  848. package/schema/properties_directory/workflow/convergence/electronic.json +2 -1
  849. package/schema/properties_directory/workflow/convergence/ionic.json +3 -1
  850. package/schema/properties_directory/workflow/convergence/kpoint.json +3 -1
  851. package/schema/property/base.json +2 -1
  852. package/schema/property/meta.json +2 -1
  853. package/schema/property/raw.json +2 -1
  854. package/schema/property/source.json +1 -1
  855. package/schema/software/application.json +7 -9
  856. package/schema/software/executable.json +3 -4
  857. package/schema/software/flavor.json +3 -11
  858. package/schema/software/template.json +4 -2
  859. package/schema/software_directory/ml/exabyteml.json +1 -1
  860. package/schema/software_directory/ml/unit/execution/evaluate/cross-validate.json +2 -1
  861. package/schema/software_directory/ml/unit/execution/initialize.json +2 -1
  862. package/schema/software_directory/ml/unit/execution/score.json +2 -1
  863. package/schema/software_directory/ml/unit/execution/train.json +2 -1
  864. package/schema/software_directory/ml/unit/processing/data_transformation/manipulation.json +1 -1
  865. package/schema/software_directory/ml/unit/processing/data_transformation/scale_and_reduce.json +2 -2
  866. package/schema/software_directory/ml/unit/processing/feature_selection/filter_based.json +1 -1
  867. package/schema/software_directory/modeling/deepmd.json +1 -1
  868. package/schema/software_directory/modeling/espresso/arguments.json +1 -1
  869. package/schema/software_directory/modeling/espresso.json +1 -1
  870. package/schema/software_directory/modeling/nwchem.json +1 -1
  871. package/schema/software_directory/modeling/unit/execution.json +1 -1
  872. package/schema/software_directory/modeling/vasp.json +1 -1
  873. package/schema/software_directory/scripting/jupyter-lab.json +1 -1
  874. package/schema/software_directory/scripting/python.json +1 -1
  875. package/schema/software_directory/scripting/shell.json +1 -1
  876. package/schema/software_directory/scripting/unit/execution.json +1 -1
  877. package/schema/system/_material.json +2 -1
  878. package/schema/system/_parent_job.json +2 -1
  879. package/schema/system/_project.json +2 -1
  880. package/schema/system/bankable.json +2 -1
  881. package/schema/system/consistency_check.json +1 -1
  882. package/schema/system/creator.json +2 -1
  883. package/schema/system/creator_account.json +2 -1
  884. package/schema/system/database_source.json +6 -8
  885. package/schema/system/defaultable.json +2 -1
  886. package/schema/system/description.json +2 -1
  887. package/schema/system/entity_reference.json +2 -1
  888. package/schema/system/file_source.json +1 -1
  889. package/schema/system/history.json +2 -1
  890. package/schema/system/in_set.json +2 -1
  891. package/schema/system/is_multi_material.json +2 -1
  892. package/schema/system/is_outdated.json +2 -1
  893. package/schema/system/job_extended.json +2 -1
  894. package/schema/system/message.json +2 -1
  895. package/schema/system/metadata.json +2 -1
  896. package/schema/system/name.json +2 -1
  897. package/schema/system/owner.json +2 -1
  898. package/schema/system/path.json +1 -1
  899. package/schema/system/path_entity.json +1 -1
  900. package/schema/system/schema_version.json +2 -1
  901. package/schema/system/scope.json +2 -1
  902. package/schema/system/set.json +2 -1
  903. package/schema/system/sharing.json +2 -1
  904. package/schema/system/soft_removable.json +2 -1
  905. package/schema/system/status.json +2 -1
  906. package/schema/system/tags.json +2 -1
  907. package/schema/system/timestampable.json +2 -1
  908. package/schema/system/use_values.json +2 -1
  909. package/schema/workflow/base.json +1 -1
  910. package/schema/workflow/base_flow.json +9 -2
  911. package/schema/workflow/scope.json +1 -1
  912. package/schema/workflow/subworkflow/unit.json +35 -0
  913. package/schema/workflow/subworkflow.json +2 -2
  914. package/schema/workflow/unit/assertion.json +2 -2
  915. package/schema/workflow/unit/assignment.json +16 -3
  916. package/schema/workflow/unit/base.json +68 -0
  917. package/schema/workflow/unit/condition.json +2 -2
  918. package/schema/workflow/unit/execution.json +2 -2
  919. package/schema/workflow/unit/input/_input.json +1 -1
  920. package/schema/workflow/unit/input/_inputItem.json +1 -1
  921. package/schema/workflow/unit/input/_inputItemId.json +2 -4
  922. package/schema/workflow/unit/input/_inputItemScope.json +1 -1
  923. package/schema/workflow/unit/input/_map_input/values.json +11 -0
  924. package/schema/workflow/unit/input/_map_input.json +36 -0
  925. package/schema/workflow/unit/io/api.json +1 -1
  926. package/schema/workflow/unit/io/db.json +1 -1
  927. package/schema/workflow/unit/io/object_storage.json +2 -2
  928. package/schema/workflow/unit/io.json +2 -2
  929. package/schema/workflow/unit/map.json +2 -2
  930. package/schema/workflow/unit/processing.json +2 -2
  931. package/schema/workflow/unit/reduce.json +2 -2
  932. package/schema/workflow/unit/runtime/_runtime_item_full_object.json +1 -1
  933. package/schema/workflow/unit/runtime/_runtime_item_name_object.json +1 -1
  934. package/schema/workflow/unit/runtime/_runtime_item_string.json +1 -1
  935. package/schema/workflow/unit/runtime/runtime_item.json +1 -1
  936. package/schema/workflow/unit/runtime/runtime_items.json +1 -1
  937. package/schema/workflow/unit/subworkflow.json +18 -0
  938. package/schema/workflow/unit.json +22 -46
  939. package/schema/workflow.json +2 -30
  940. package/set_schema_ids.ts +3 -0
  941. package/src/js/esse/JSONSchemasGenerator.ts +94 -0
  942. package/src/js/esse/JSONSchemasInterface.ts +56 -0
  943. package/src/js/esse/JSONSchemasInterfaceServer.ts +49 -0
  944. package/src/js/esse/schemaUtils.ts +28 -0
  945. package/src/js/esse/types.ts +3 -0
  946. package/src/js/esse/utils.ts +72 -0
  947. package/src/js/json_include/{index.js → index.ts} +22 -21
  948. package/src/js/scripts/compileTs.ts +84 -0
  949. package/src/js/scripts/{createEnumsFromYaml.mjs → createEnumsFromYaml.ts} +5 -19
  950. package/src/js/scripts/setSchemaIds.ts +28 -0
  951. package/src/js/utils/ajv.ts +119 -0
  952. package/src/js/utils/common.ts +15 -0
  953. package/src/js/utils/filesystem.ts +34 -0
  954. package/tsconfig.json +34 -0
  955. package/example/workflow/unit.json +0 -8
  956. package/lib/js/esse/index.js +0 -101
  957. package/lib/js/json_include/utils.js +0 -22
  958. package/src/js/esse/index.js +0 -57
  959. package/src/js/esse/schemaUtils.js +0 -45
  960. package/src/js/esse/utils.js +0 -52
  961. package/src/js/json_include/utils.js +0 -11
  962. package/src/js/scripts/setSchemaIds.mjs +0 -34
  963. /package/src/js/esse/{settings.js → settings.ts} +0 -0
  964. /package/src/js/json_include/{settings.js → settings.ts} +0 -0
@@ -0,0 +1,34 @@
1
+ /* eslint-disable no-await-in-loop */
2
+ /* eslint-disable no-restricted-syntax */
3
+ import fs from "fs";
4
+ import path from "path";
5
+
6
+ export async function walkDir(dir: string, callback: (itemPath: string) => void | Promise<void>) {
7
+ const subDirs = await fs.promises.readdir(dir);
8
+
9
+ for (const subDir of subDirs) {
10
+ const itemPath = path.join(dir, subDir);
11
+ const stat = await fs.promises.stat(itemPath);
12
+
13
+ if (stat.isDirectory()) {
14
+ await walkDir(itemPath, callback);
15
+ } else {
16
+ await callback(itemPath);
17
+ }
18
+ }
19
+ }
20
+
21
+ export function walkDirSync(dir: string, callback: (itemPath: string) => void) {
22
+ const subDirs = fs.readdirSync(dir);
23
+
24
+ for (const subDir of subDirs) {
25
+ const itemPath = path.join(dir, subDir);
26
+ const stat = fs.statSync(itemPath);
27
+
28
+ if (stat.isDirectory()) {
29
+ walkDirSync(itemPath, callback);
30
+ } else {
31
+ callback(itemPath);
32
+ }
33
+ }
34
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2018",
4
+ "jsx": "react",
5
+ "lib": ["ES2019"],
6
+ "allowJs": true,
7
+ "module": "commonjs",
8
+ "moduleResolution": "Node",
9
+ "declaration": true,
10
+ "outDir": "./lib",
11
+ "noEmitOnError": false,
12
+ "isolatedModules": true,
13
+ "esModuleInterop": true,
14
+ "resolveJsonModule": true,
15
+ "forceConsistentCasingInFileNames": true,
16
+ "strict": true,
17
+ "skipLibCheck": true,
18
+ "types": ["mocha", "node"],
19
+ "rootDir": "./src",
20
+ "baseUrl": "./",
21
+ },
22
+ "include": [
23
+ "./src",
24
+ "modules.d.ts"
25
+ ],
26
+ "exclude": [
27
+ "node_modules",
28
+ "lib"
29
+ ],
30
+ "ts-node": {
31
+ "files": true,
32
+ "compilerOptions": {}
33
+ },
34
+ }
@@ -1,8 +0,0 @@
1
- {
2
- "flowchartId": "pw-scf",
3
- "head": true,
4
- "name": "pw_scf",
5
- "status": "idle",
6
- "type": "execution",
7
- "tags": ["test-tags"]
8
- }
@@ -1,101 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ESSE = void 0;
7
-
8
- var _ajv = _interopRequireDefault(require("ajv"));
9
-
10
- var _fs = _interopRequireDefault(require("fs"));
11
-
12
- var _jsYaml = _interopRequireDefault(require("js-yaml"));
13
-
14
- var _schemaUtils = require("./schemaUtils");
15
-
16
- var _settings = require("./settings");
17
-
18
- var _utils = require("./utils");
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
-
22
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
-
24
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
25
-
26
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
-
28
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29
-
30
- var SCHEMAS = (0, _utils.parseIncludeReferenceStatementsByDir)(_settings.SCHEMAS_DIR);
31
- var EXAMPLES = (0, _utils.parseIncludeReferenceStatementsByDir)(_settings.EXAMPLES_DIR, true);
32
-
33
- var PROPERTIES_MANIFEST = _jsYaml["default"].load(_fs["default"].readFileSync(_settings.PROPERTIES_MANIFEST_PATH, {
34
- encoding: "utf-8"
35
- }));
36
-
37
- var RESULTS = Object.entries(PROPERTIES_MANIFEST).map(function (k) {
38
- return k[1].isResult ? k[0] : null;
39
- }).filter(function (x) {
40
- return x;
41
- });
42
-
43
- var ESSE = /*#__PURE__*/function () {
44
- function ESSE() {
45
- var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
46
-
47
- _classCallCheck(this, ESSE);
48
-
49
- _defineProperty(this, "validate", function (example, schema) {
50
- var ajv = new _ajv["default"]({
51
- allErrors: true
52
- });
53
- var isValid = ajv.validate(schema, example);
54
-
55
- if (!isValid) {
56
- console.error(ajv.errors);
57
- }
58
-
59
- return isValid;
60
- });
61
-
62
- this.schemas = config.schemas || SCHEMAS;
63
- this.wrappedExamples = config.wrappedExamples || EXAMPLES;
64
- this.examples = this.wrappedExamples.map(function (example) {
65
- return example.data;
66
- });
67
- this.propertiesManifest = config.propertiesManifest || PROPERTIES_MANIFEST;
68
- this.results = config.results || RESULTS;
69
- }
70
-
71
- _createClass(ESSE, [{
72
- key: "getSchemaById",
73
- value: function getSchemaById(schemaId) {
74
- return this.schemas.find(function (schema) {
75
- return schema.$id === schemaId;
76
- });
77
- }
78
- /**
79
- * Validates a given example against the schema.
80
- * @param example {Object|Array} example to validate.
81
- * @param schema {Object} schema to validate the example with.
82
- * @returns {boolean} whether example is valid.
83
- */
84
-
85
- }, {
86
- key: "buildGlobalSchema",
87
- value: function buildGlobalSchema() {
88
- return {
89
- $id: "esse-global-schema",
90
- $schema: "http://json-schema.org/draft-04/schema#",
91
- title: "Global schema",
92
- type: "object",
93
- definitions: (0, _schemaUtils.buildSchemaDefinitions)(this.schemas)
94
- };
95
- }
96
- }]);
97
-
98
- return ESSE;
99
- }();
100
-
101
- exports.ESSE = ESSE;
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isInstanceOf = isInstanceOf;
7
- exports.safeParseJSON = safeParseJSON;
8
-
9
- function isInstanceOf(object, type) {
10
- return Object.prototype.toString.call(object).slice(8, -1) === type;
11
- }
12
- /**
13
- * Makes sure that text representing arrays is parsed into Arrays.
14
- */
15
-
16
-
17
- function safeParseJSON(string) {
18
- var obj = JSON.parse(string);
19
- return string[0] === "[" ? Object.keys(obj).map(function (key) {
20
- return obj[key];
21
- }) : obj;
22
- }
@@ -1,57 +0,0 @@
1
- import Ajv from "ajv";
2
- import fs from "fs";
3
- import yaml from "js-yaml";
4
-
5
- import { buildSchemaDefinitions } from "./schemaUtils";
6
- import { EXAMPLES_DIR, PROPERTIES_MANIFEST_PATH, SCHEMAS_DIR } from "./settings";
7
- import { parseIncludeReferenceStatementsByDir } from "./utils";
8
-
9
- const SCHEMAS = parseIncludeReferenceStatementsByDir(SCHEMAS_DIR);
10
- const EXAMPLES = parseIncludeReferenceStatementsByDir(EXAMPLES_DIR, true);
11
- const PROPERTIES_MANIFEST = yaml.load(
12
- fs.readFileSync(PROPERTIES_MANIFEST_PATH, { encoding: "utf-8" }),
13
- );
14
- const RESULTS = Object.entries(PROPERTIES_MANIFEST)
15
- .map((k) => (k[1].isResult ? k[0] : null))
16
- .filter((x) => x);
17
-
18
- export class ESSE {
19
- constructor(config = {}) {
20
- this.schemas = config.schemas || SCHEMAS;
21
- this.wrappedExamples = config.wrappedExamples || EXAMPLES;
22
- this.examples = this.wrappedExamples.map((example) => example.data);
23
- this.propertiesManifest = config.propertiesManifest || PROPERTIES_MANIFEST;
24
- this.results = config.results || RESULTS;
25
- }
26
-
27
- getSchemaById(schemaId) {
28
- return this.schemas.find((schema) => schema.$id === schemaId);
29
- }
30
-
31
- /**
32
- * Validates a given example against the schema.
33
- * @param example {Object|Array} example to validate.
34
- * @param schema {Object} schema to validate the example with.
35
- * @returns {boolean} whether example is valid.
36
- */
37
- validate = (example, schema) => {
38
- const ajv = new Ajv({ allErrors: true });
39
- const isValid = ajv.validate(schema, example);
40
-
41
- if (!isValid) {
42
- console.error(ajv.errors);
43
- }
44
-
45
- return isValid;
46
- };
47
-
48
- buildGlobalSchema() {
49
- return {
50
- $id: "esse-global-schema",
51
- $schema: "http://json-schema.org/draft-04/schema#",
52
- title: "Global schema",
53
- type: "object",
54
- definitions: buildSchemaDefinitions(this.schemas),
55
- };
56
- }
57
- }
@@ -1,45 +0,0 @@
1
- import keyBy from "lodash/keyBy";
2
-
3
- export function mapObjectDeep(object, mapValue) {
4
- if (typeof object !== "object") {
5
- return object;
6
- }
7
-
8
- if (Array.isArray(object)) {
9
- return object.map(
10
- (innerValue) => mapValue(innerValue) || mapObjectDeep(innerValue, mapValue),
11
- );
12
- }
13
-
14
- const entries = Object.entries(object).map(([key, value]) => {
15
- const res = mapValue(value);
16
-
17
- return [key, res === undefined ? mapObjectDeep(value, mapValue) : res];
18
- });
19
-
20
- return Object.fromEntries(entries);
21
- }
22
-
23
- export function makeFlatSchemaKey(schemaId) {
24
- return schemaId.replace(/[^a-zA-Z-]/g, ":");
25
- }
26
-
27
- export function makeFlatSchemaRef(schemaId) {
28
- return { $ref: `#/definitions/${makeFlatSchemaKey(schemaId)}` };
29
- }
30
-
31
- export function buildSchemaDefinitions(originalSchemas) {
32
- const schemas = originalSchemas.map((schema) => {
33
- return mapObjectDeep(schema, (value) => {
34
- if (typeof value === "object" && value.$id) {
35
- return makeFlatSchemaRef(value.$id);
36
- }
37
- if (typeof value === "object" && value.$ref) {
38
- // assume value.$ref is a $id
39
- return makeFlatSchemaRef(value.$ref);
40
- }
41
- });
42
- });
43
-
44
- return keyBy(schemas, ({ $id }) => makeFlatSchemaKey($id));
45
- }
@@ -1,52 +0,0 @@
1
- import file from "file";
2
- import deref from "json-schema-deref-sync";
3
- import path from "path";
4
-
5
- import { JSONInclude } from "../json_include";
6
-
7
- /**
8
- * Resolves `include` and `$ref` statements.
9
- * @param filePath {String} file to parse.
10
- */
11
- export function parseIncludeReferenceStatements(filePath) {
12
- const jsonResolver = new JSONInclude();
13
- const parsed = jsonResolver.parseIncludeStatements(filePath);
14
- const dirPath = path.dirname(filePath);
15
- let dereferenced = deref(parsed, { baseFolder: dirPath });
16
- // handle circular references and use non-dereferenced source
17
- if (dereferenced instanceof Error && dereferenced.message === "Circular self reference") {
18
- dereferenced = parsed;
19
- }
20
- return dereferenced;
21
- }
22
-
23
- /**
24
- * Resolves `include` and `$ref` statements for all the JSON files inside a given directory.
25
- * @param dirPath {String} directory to parse.
26
- */
27
- export function parseIncludeReferenceStatementsByDir(dirPath, wrapInDataAndPath = false) {
28
- const data = [];
29
- const topDir = path.resolve(__dirname, "../../../");
30
- file.walkSync(dirPath, (dirPath_, dirs_, files_) => {
31
- files_.forEach((file_) => {
32
- const filePath = path.join(dirPath_, file_);
33
- if (filePath.endsWith(".json")) {
34
- const config = parseIncludeReferenceStatements(filePath);
35
- if (wrapInDataAndPath) {
36
- const _path = path.join(
37
- // remove leading slashes and "example" from path
38
- path
39
- .dirname(filePath)
40
- .replace(path.join(topDir, "example"), "")
41
- .replace(/^\/+/, ""),
42
- path.basename(filePath).replace(".json", ""),
43
- );
44
- data.push({ data: config, path: _path });
45
- } else {
46
- data.push(config);
47
- }
48
- }
49
- });
50
- });
51
- return data;
52
- }
@@ -1,11 +0,0 @@
1
- export function isInstanceOf(object, type) {
2
- return Object.prototype.toString.call(object).slice(8, -1) === type;
3
- }
4
-
5
- /**
6
- * Makes sure that text representing arrays is parsed into Arrays.
7
- */
8
- export function safeParseJSON(string) {
9
- const obj = JSON.parse(string);
10
- return string[0] === "[" ? Object.keys(obj).map((key) => obj[key]) : obj;
11
- }
@@ -1,34 +0,0 @@
1
- /* eslint-disable no-restricted-syntax */
2
- /* eslint-disable no-await-in-loop */
3
- import fs from "fs/promises";
4
- import path from "path";
5
-
6
- const SCHEMA_DIR = "../../../schema/";
7
-
8
- async function walkDir(dir, callback) {
9
- const subDirs = await fs.readdir(dir);
10
-
11
- for (const subDir of subDirs) {
12
- const itemPath = path.join(dir, subDir);
13
- const stat = await fs.stat(itemPath);
14
-
15
- if (stat.isDirectory()) {
16
- await walkDir(itemPath, callback);
17
- } else {
18
- await callback(itemPath);
19
- }
20
- }
21
- }
22
-
23
- await walkDir(SCHEMA_DIR, async (filePath) => {
24
- if (path.extname(filePath) !== ".json") {
25
- return;
26
- }
27
-
28
- const fileContents = await fs.readFile(filePath);
29
- const { $id: oldSchemaId, ...schema } = JSON.parse(fileContents);
30
- const schemaId = filePath.replace(SCHEMA_DIR, "").replace(".json", "").replace(/_/g, "-");
31
- const newContent = JSON.stringify({ $id: schemaId, ...schema }, null, 4);
32
-
33
- await fs.writeFile(filePath, `${newContent}\n`);
34
- });
File without changes