@mat3ra/esse 2024.3.22-0 → 2024.3.25-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 (564) hide show
  1. package/{build_schemas.js → build_schemas.ts} +3 -2
  2. package/dist/js/utils/ajv.js +4 -0
  3. package/package.json +26 -29
  4. package/schema/system/timestampable.json +2 -16
  5. package/src/js/utils/ajv.ts +5 -1
  6. package/tsconfig-transpile.json +3 -0
  7. package/tsconfig.json +1 -5
  8. package/dist/js/example/3pse/db/nist_jarvis/2024.3.13/db_entry.json +0 -91
  9. package/dist/js/example/3pse/file/applications/espresso/7.2/pw.x.json +0 -94
  10. package/dist/js/example/core/abstract/2d_data.json +0 -19
  11. package/dist/js/example/core/abstract/2d_plot.json +0 -26
  12. package/dist/js/example/core/abstract/3d_grid.json +0 -12
  13. package/dist/js/example/core/abstract/3d_tensor.json +0 -17
  14. package/dist/js/example/core/abstract/3d_vector_basis.json +0 -17
  15. package/dist/js/example/core/abstract/point.json +0 -5
  16. package/dist/js/example/core/abstract/vector.json +0 -5
  17. package/dist/js/example/core/primitive/1d_data_series.json +0 -12
  18. package/dist/js/example/core/primitive/3d_lattice.json +0 -8
  19. package/dist/js/example/core/primitive/array_of_3_booleans.json +0 -5
  20. package/dist/js/example/core/primitive/array_of_3_numbers.json +0 -5
  21. package/dist/js/example/core/primitive/array_of_ids.json +0 -8
  22. package/dist/js/example/core/primitive/axis.json +0 -4
  23. package/dist/js/example/core/primitive/scalar.json +0 -3
  24. package/dist/js/example/core/primitive/string.json +0 -3
  25. package/dist/js/example/core/reference/experiment/condition.json +0 -12
  26. package/dist/js/example/core/reference/experiment/location.json +0 -4
  27. package/dist/js/example/core/reference/experiment.json +0 -38
  28. package/dist/js/example/core/reference/literature/name.json +0 -5
  29. package/dist/js/example/core/reference/literature/pages.json +0 -4
  30. package/dist/js/example/core/reference/literature.json +0 -10
  31. package/dist/js/example/core/reference/modeling/exabyte.json +0 -9
  32. package/dist/js/example/core/reference/modeling.json +0 -9
  33. package/dist/js/example/core/reference.json +0 -9
  34. package/dist/js/example/core/reusable/atomic_vectors.json +0 -18
  35. package/dist/js/example/core/reusable/band_gap.json +0 -16
  36. package/dist/js/example/core/reusable/energy.json +0 -5
  37. package/dist/js/example/core/reusable/file_metadata.json +0 -5
  38. package/dist/js/example/core/reusable/object_storage_container_data.json +0 -8
  39. package/dist/js/example/element.json +0 -17
  40. package/dist/js/example/job/compute.json +0 -26
  41. package/dist/js/example/job.json +0 -183
  42. package/dist/js/example/material.json +0 -128
  43. package/dist/js/example/method/categorized_method.json +0 -47
  44. package/dist/js/example/method/method_parameters.json +0 -3
  45. package/dist/js/example/method.json +0 -7
  46. package/dist/js/example/methods_directory/legacy/localorbital.json +0 -4
  47. package/dist/js/example/methods_directory/legacy/pseudopotential.json +0 -4
  48. package/dist/js/example/methods_directory/legacy/regression.json +0 -61
  49. package/dist/js/example/methods_directory/legacy/unknown.json +0 -4
  50. package/dist/js/example/methods_directory/mathematical/cg.json +0 -10
  51. package/dist/js/example/methods_directory/mathematical/regression.json +0 -65
  52. package/dist/js/example/methods_directory/physical/ao/dunning.json +0 -13
  53. package/dist/js/example/methods_directory/physical/psp/file.json +0 -54
  54. package/dist/js/example/methods_directory/physical/psp.json +0 -67
  55. package/dist/js/example/methods_directory/physical/pw.json +0 -9
  56. package/dist/js/example/methods_directory/physical/smearing.json +0 -10
  57. package/dist/js/example/methods_directory/physical/tetrahedron.json +0 -10
  58. package/dist/js/example/model/categorized_model.json +0 -77
  59. package/dist/js/example/model/model_parameters.json +0 -7
  60. package/dist/js/example/model.json +0 -11
  61. package/dist/js/example/models_category/pb/qm/abin/gw.json +0 -7
  62. package/dist/js/example/models_category/pb/qm/dft/ksdft.json +0 -6
  63. package/dist/js/example/models_category/pb/qm/semp.json +0 -5
  64. package/dist/js/example/models_directory/gga.json +0 -15
  65. package/dist/js/example/models_directory/gw.json +0 -15
  66. package/dist/js/example/models_directory/hybrid.json +0 -15
  67. package/dist/js/example/models_directory/lda.json +0 -15
  68. package/dist/js/example/models_directory/legacy/dft.json +0 -12
  69. package/dist/js/example/models_directory/legacy/ml.json +0 -11
  70. package/dist/js/example/models_directory/legacy/unknown.json +0 -11
  71. package/dist/js/example/models_directory/re.json +0 -10
  72. package/dist/js/example/project.json +0 -25
  73. package/dist/js/example/properties_directory/electronic_configuration.json +0 -4
  74. package/dist/js/example/properties_directory/elemental/atomic_radius.json +0 -4
  75. package/dist/js/example/properties_directory/elemental/electronegativity.json +0 -4
  76. package/dist/js/example/properties_directory/elemental/ionization_potential.json +0 -4
  77. package/dist/js/example/properties_directory/non_scalar/band_gaps.json +0 -25
  78. package/dist/js/example/properties_directory/non_scalar/band_structure.json +0 -47
  79. package/dist/js/example/properties_directory/non_scalar/charge_density_profile.json +0 -22
  80. package/dist/js/example/properties_directory/non_scalar/density_of_states.json +0 -55
  81. package/dist/js/example/properties_directory/non_scalar/dielectric_tensor.json +0 -133
  82. package/dist/js/example/properties_directory/non_scalar/file_content.json +0 -13
  83. package/dist/js/example/properties_directory/non_scalar/hubbard_u.json +0 -24
  84. package/dist/js/example/properties_directory/non_scalar/hubbard_v.json +0 -22
  85. package/dist/js/example/properties_directory/non_scalar/hubbard_v_nn.json +0 -24
  86. package/dist/js/example/properties_directory/non_scalar/phonon_dispersions.json +0 -41
  87. package/dist/js/example/properties_directory/non_scalar/phonon_dos.json +0 -37
  88. package/dist/js/example/properties_directory/non_scalar/potential_profile.json +0 -32
  89. package/dist/js/example/properties_directory/non_scalar/reaction_energy_profile.json +0 -30
  90. package/dist/js/example/properties_directory/non_scalar/stress_tensor.json +0 -21
  91. package/dist/js/example/properties_directory/non_scalar/total_energy_contributions.json +0 -44
  92. package/dist/js/example/properties_directory/non_scalar/vibrational_spectrum.json +0 -25
  93. package/dist/js/example/properties_directory/scalar/electron_affinity.json +0 -5
  94. package/dist/js/example/properties_directory/scalar/fermi_energy.json +0 -5
  95. package/dist/js/example/properties_directory/scalar/formation_energy.json +0 -5
  96. package/dist/js/example/properties_directory/scalar/ionization_potential.json +0 -5
  97. package/dist/js/example/properties_directory/scalar/pressure.json +0 -5
  98. package/dist/js/example/properties_directory/scalar/reaction_energy_barrier.json +0 -5
  99. package/dist/js/example/properties_directory/scalar/surface_energy.json +0 -5
  100. package/dist/js/example/properties_directory/scalar/total_energy.json +0 -5
  101. package/dist/js/example/properties_directory/scalar/total_force.json +0 -5
  102. package/dist/js/example/properties_directory/scalar/valence_band_offset.json +0 -5
  103. package/dist/js/example/properties_directory/scalar/zero_point_energy.json +0 -5
  104. package/dist/js/example/properties_directory/structural/atomic_forces.json +0 -22
  105. package/dist/js/example/properties_directory/structural/basis/atomic_constraints.json +0 -21
  106. package/dist/js/example/properties_directory/structural/basis/atomic_coordinate.json +0 -8
  107. package/dist/js/example/properties_directory/structural/basis/atomic_coordinates.json +0 -21
  108. package/dist/js/example/properties_directory/structural/basis/atomic_element.json +0 -4
  109. package/dist/js/example/properties_directory/structural/basis/bonds.json +0 -24
  110. package/dist/js/example/properties_directory/structural/basis.json +0 -46
  111. package/dist/js/example/properties_directory/structural/density.json +0 -5
  112. package/dist/js/example/properties_directory/structural/elemental_ratio.json +0 -5
  113. package/dist/js/example/properties_directory/structural/inchi.json +0 -4
  114. package/dist/js/example/properties_directory/structural/inchi_key.json +0 -4
  115. package/dist/js/example/properties_directory/structural/lattice/lattice_bravais.json +0 -13
  116. package/dist/js/example/properties_directory/structural/lattice/lattice_vectors.json +0 -19
  117. package/dist/js/example/properties_directory/structural/lattice.json +0 -33
  118. package/dist/js/example/properties_directory/structural/magnetic_moments.json +0 -22
  119. package/dist/js/example/properties_directory/structural/molecular_pattern.json +0 -71
  120. package/dist/js/example/properties_directory/structural/p_norm.json +0 -5
  121. package/dist/js/example/properties_directory/structural/symmetry.json +0 -9
  122. package/dist/js/example/properties_directory/structural/volume.json +0 -5
  123. package/dist/js/example/properties_directory/workflow/convergence/electronic.json +0 -15
  124. package/dist/js/example/properties_directory/workflow/convergence/ionic.json +0 -20
  125. package/dist/js/example/properties_directory/workflow/convergence/kpoint.json +0 -22
  126. package/dist/js/example/property/base.json +0 -31
  127. package/dist/js/example/software/application.json +0 -7
  128. package/dist/js/example/software/executable.json +0 -20
  129. package/dist/js/example/software/flavor.json +0 -9
  130. package/dist/js/example/software/template.json +0 -14
  131. package/dist/js/example/software_directory/ml/exabyteml.json +0 -6
  132. package/dist/js/example/software_directory/ml/unit/execution/evaluate/cross_validate.json +0 -20
  133. package/dist/js/example/software_directory/ml/unit/execution/initialize.json +0 -23
  134. package/dist/js/example/software_directory/ml/unit/execution/score.json +0 -18
  135. package/dist/js/example/software_directory/ml/unit/execution/train.json +0 -29
  136. package/dist/js/example/software_directory/ml/unit/processing/data_transformation/manipulation.json +0 -14
  137. package/dist/js/example/software_directory/ml/unit/processing/data_transformation/scale_and_reduce.json +0 -26
  138. package/dist/js/example/software_directory/ml/unit/processing/feature_selection/filter_based.json +0 -13
  139. package/dist/js/example/software_directory/modeling/espresso/arguments.json +0 -5
  140. package/dist/js/example/software_directory/modeling/espresso.json +0 -6
  141. package/dist/js/example/software_directory/modeling/nwchem.json +0 -6
  142. package/dist/js/example/software_directory/modeling/unit/execution.json +0 -19
  143. package/dist/js/example/software_directory/modeling/vasp.json +0 -6
  144. package/dist/js/example/software_directory/scripting/jupyter_lab.json +0 -8
  145. package/dist/js/example/software_directory/scripting/python.json +0 -8
  146. package/dist/js/example/software_directory/scripting/shell.json +0 -8
  147. package/dist/js/example/software_directory/scripting/unit/execution.json +0 -22
  148. package/dist/js/example/system/_material.json +0 -5
  149. package/dist/js/example/system/_parent_job.json +0 -5
  150. package/dist/js/example/system/_project.json +0 -5
  151. package/dist/js/example/system/consistency_check.json +0 -6
  152. package/dist/js/example/system/creator.json +0 -5
  153. package/dist/js/example/system/entity_reference.json +0 -5
  154. package/dist/js/example/system/file_source.json +0 -6
  155. package/dist/js/example/system/iframe_message.json +0 -9
  156. package/dist/js/example/system/message.json +0 -16
  157. package/dist/js/example/system/owner.json +0 -5
  158. package/dist/js/example/workflow/subworkflow.json +0 -93
  159. package/dist/js/example/workflow/unit/assignment.json +0 -19
  160. package/dist/js/example/workflow/unit/condition.json +0 -22
  161. package/dist/js/example/workflow/unit/execution.json +0 -66
  162. package/dist/js/example/workflow/unit/input/_inputItemScope.json +0 -4
  163. package/dist/js/example/workflow/unit/io/api.json +0 -31
  164. package/dist/js/example/workflow/unit/io/db.json +0 -15
  165. package/dist/js/example/workflow/unit/io/object_storage.json +0 -12
  166. package/dist/js/example/workflow/unit/io.json +0 -41
  167. package/dist/js/example/workflow/unit/map.json +0 -16
  168. package/dist/js/example/workflow/unit/processing.json +0 -13
  169. package/dist/js/example/workflow/unit/reduce.json +0 -16
  170. package/dist/js/example/workflow/unit/runtime/runtime_items.json +0 -14
  171. package/dist/js/example/workflow.json +0 -129
  172. package/dist/js/schema/3pse/db/nist_jarvis/2024.3.13/atoms.json +0 -79
  173. package/dist/js/schema/3pse/db/nist_jarvis/2024.3.13/db_entry.json +0 -91
  174. package/dist/js/schema/3pse/file/applications/espresso/7.2/pw.x/atomic_positions.json +0 -72
  175. package/dist/js/schema/3pse/file/applications/espresso/7.2/pw.x/atomic_species.json +0 -30
  176. package/dist/js/schema/3pse/file/applications/espresso/7.2/pw.x/cell.json +0 -89
  177. package/dist/js/schema/3pse/file/applications/espresso/7.2/pw.x/cell_parameters.json +0 -54
  178. package/dist/js/schema/3pse/file/applications/espresso/7.2/pw.x/control.json +0 -181
  179. package/dist/js/schema/3pse/file/applications/espresso/7.2/pw.x/electrons.json +0 -163
  180. package/dist/js/schema/3pse/file/applications/espresso/7.2/pw.x/hubbard.json +0 -219
  181. package/dist/js/schema/3pse/file/applications/espresso/7.2/pw.x/ions.json +0 -216
  182. package/dist/js/schema/3pse/file/applications/espresso/7.2/pw.x/k_points.json +0 -87
  183. package/dist/js/schema/3pse/file/applications/espresso/7.2/pw.x/system.json +0 -652
  184. package/dist/js/schema/3pse/file/applications/espresso/7.2/pw.x.json +0 -1776
  185. package/dist/js/schema/core/abstract/2d_data.json +0 -31
  186. package/dist/js/schema/core/abstract/2d_plot.json +0 -74
  187. package/dist/js/schema/core/abstract/3d_grid.json +0 -32
  188. package/dist/js/schema/core/abstract/3d_tensor.json +0 -18
  189. package/dist/js/schema/core/abstract/3d_vector_basis.json +0 -43
  190. package/dist/js/schema/core/abstract/point.json +0 -11
  191. package/dist/js/schema/core/abstract/vector.json +0 -27
  192. package/dist/js/schema/core/primitive/1d_data_series.json +0 -16
  193. package/dist/js/schema/core/primitive/3d_lattice.json +0 -40
  194. package/dist/js/schema/core/primitive/array_of_3_booleans.json +0 -11
  195. package/dist/js/schema/core/primitive/array_of_3_numbers.json +0 -11
  196. package/dist/js/schema/core/primitive/array_of_ids.json +0 -16
  197. package/dist/js/schema/core/primitive/array_of_strings.json +0 -11
  198. package/dist/js/schema/core/primitive/axis.json +0 -19
  199. package/dist/js/schema/core/primitive/group_info.json +0 -16
  200. package/dist/js/schema/core/primitive/integer_one_or_zero.json +0 -8
  201. package/dist/js/schema/core/primitive/linked_list/base_node.json +0 -36
  202. package/dist/js/schema/core/primitive/linked_list/named_node.json +0 -40
  203. package/dist/js/schema/core/primitive/linked_list/named_node_in_group.json +0 -48
  204. package/dist/js/schema/core/primitive/linked_list/node_with_type.json +0 -39
  205. package/dist/js/schema/core/primitive/linked_list.json +0 -171
  206. package/dist/js/schema/core/primitive/scalar.json +0 -14
  207. package/dist/js/schema/core/primitive/slugified_entry.json +0 -21
  208. package/dist/js/schema/core/primitive/slugified_entry_or_slug.json +0 -31
  209. package/dist/js/schema/core/primitive/string.json +0 -14
  210. package/dist/js/schema/core/reference/exabyte.json +0 -19
  211. package/dist/js/schema/core/reference/experiment/condition.json +0 -31
  212. package/dist/js/schema/core/reference/experiment/location.json +0 -20
  213. package/dist/js/schema/core/reference/experiment.json +0 -249
  214. package/dist/js/schema/core/reference/literature/name.json +0 -24
  215. package/dist/js/schema/core/reference/literature/pages.json +0 -17
  216. package/dist/js/schema/core/reference/literature.json +0 -131
  217. package/dist/js/schema/core/reference/modeling/exabyte.json +0 -46
  218. package/dist/js/schema/core/reference/modeling.json +0 -52
  219. package/dist/js/schema/core/reference.json +0 -436
  220. package/dist/js/schema/core/reusable/atomic_data/per_orbital.json +0 -22
  221. package/dist/js/schema/core/reusable/atomic_data/per_orbital_pair.json +0 -39
  222. package/dist/js/schema/core/reusable/atomic_data/value_number.json +0 -13
  223. package/dist/js/schema/core/reusable/atomic_data/value_string.json +0 -13
  224. package/dist/js/schema/core/reusable/atomic_data_per_orbital_numeric.json +0 -26
  225. package/dist/js/schema/core/reusable/atomic_data_per_orbital_pair_numeric.json +0 -43
  226. package/dist/js/schema/core/reusable/atomic_orbital.json +0 -32
  227. package/dist/js/schema/core/reusable/atomic_scalars.json +0 -29
  228. package/dist/js/schema/core/reusable/atomic_strings.json +0 -19
  229. package/dist/js/schema/core/reusable/atomic_vectors.json +0 -42
  230. package/dist/js/schema/core/reusable/band_gap.json +0 -64
  231. package/dist/js/schema/core/reusable/categories.json +0 -159
  232. package/dist/js/schema/core/reusable/category_path.json +0 -7
  233. package/dist/js/schema/core/reusable/dielectric_tensor_component.json +0 -46
  234. package/dist/js/schema/core/reusable/energy.json +0 -39
  235. package/dist/js/schema/core/reusable/file_metadata.json +0 -21
  236. package/dist/js/schema/core/reusable/frequency_function_matrix.json +0 -30
  237. package/dist/js/schema/core/reusable/object_storage_container_data.json +0 -32
  238. package/dist/js/schema/definitions/units.json +0 -103
  239. package/dist/js/schema/element.json +0 -103
  240. package/dist/js/schema/in_memory_entity/base.json +0 -65
  241. package/dist/js/schema/in_memory_entity/defaultable.json +0 -70
  242. package/dist/js/schema/in_memory_entity/named.json +0 -69
  243. package/dist/js/schema/in_memory_entity/named_defaultable.json +0 -74
  244. package/dist/js/schema/in_memory_entity/named_defaultable_has_metadata.json +0 -77
  245. package/dist/js/schema/in_memory_entity/named_defaultable_runtime_items.json +0 -194
  246. package/dist/js/schema/job/base.json +0 -378
  247. package/dist/js/schema/job/compute.json +0 -178
  248. package/dist/js/schema/job.json +0 -6866
  249. package/dist/js/schema/material/conventional.json +0 -11
  250. package/dist/js/schema/material.json +0 -645
  251. package/dist/js/schema/method/categorized_method.json +0 -221
  252. package/dist/js/schema/method/method_parameters.json +0 -47
  253. package/dist/js/schema/method/unit_method.json +0 -191
  254. package/dist/js/schema/method.json +0 -28
  255. package/dist/js/schema/methods_category/mathematical/diff/enum_options.json +0 -8
  256. package/dist/js/schema/methods_category/mathematical/diff/fd.json +0 -165
  257. package/dist/js/schema/methods_category/mathematical/diff.json +0 -162
  258. package/dist/js/schema/methods_category/mathematical/discr/enum_options.json +0 -8
  259. package/dist/js/schema/methods_category/mathematical/discr/mesh/enum_options.json +0 -18
  260. package/dist/js/schema/methods_category/mathematical/discr/mesh/hybrid.json +0 -168
  261. package/dist/js/schema/methods_category/mathematical/discr/mesh/nstruct.json +0 -168
  262. package/dist/js/schema/methods_category/mathematical/discr/mesh/struct/cartesian.json +0 -171
  263. package/dist/js/schema/methods_category/mathematical/discr/mesh/struct/enum_options.json +0 -8
  264. package/dist/js/schema/methods_category/mathematical/discr/mesh/struct.json +0 -168
  265. package/dist/js/schema/methods_category/mathematical/discr/mesh.json +0 -165
  266. package/dist/js/schema/methods_category/mathematical/discr.json +0 -162
  267. package/dist/js/schema/methods_category/mathematical/enum_options.json +0 -45
  268. package/dist/js/schema/methods_category/mathematical/fapprx/basisexp.json +0 -165
  269. package/dist/js/schema/methods_category/mathematical/fapprx/enum_options.json +0 -13
  270. package/dist/js/schema/methods_category/mathematical/fapprx/ipol/enum_options.json +0 -18
  271. package/dist/js/schema/methods_category/mathematical/fapprx/ipol/lin.json +0 -168
  272. package/dist/js/schema/methods_category/mathematical/fapprx/ipol/poly.json +0 -168
  273. package/dist/js/schema/methods_category/mathematical/fapprx/ipol/spline.json +0 -168
  274. package/dist/js/schema/methods_category/mathematical/fapprx/ipol.json +0 -165
  275. package/dist/js/schema/methods_category/mathematical/fapprx.json +0 -162
  276. package/dist/js/schema/methods_category/mathematical/intgr/analytic/enum_options.json +0 -20
  277. package/dist/js/schema/methods_category/mathematical/intgr/analytic/volume.json +0 -178
  278. package/dist/js/schema/methods_category/mathematical/intgr/analytic.json +0 -165
  279. package/dist/js/schema/methods_category/mathematical/intgr/diffeq/enum_options.json +0 -13
  280. package/dist/js/schema/methods_category/mathematical/intgr/diffeq/order1.json +0 -168
  281. package/dist/js/schema/methods_category/mathematical/intgr/diffeq/order2.json +0 -168
  282. package/dist/js/schema/methods_category/mathematical/intgr/diffeq.json +0 -165
  283. package/dist/js/schema/methods_category/mathematical/intgr/enum_options.json +0 -23
  284. package/dist/js/schema/methods_category/mathematical/intgr/numquad/enum_options.json +0 -13
  285. package/dist/js/schema/methods_category/mathematical/intgr/numquad/gauss.json +0 -168
  286. package/dist/js/schema/methods_category/mathematical/intgr/numquad/newcot.json +0 -168
  287. package/dist/js/schema/methods_category/mathematical/intgr/numquad.json +0 -165
  288. package/dist/js/schema/methods_category/mathematical/intgr/transf/enum_options.json +0 -8
  289. package/dist/js/schema/methods_category/mathematical/intgr/transf/fourier.json +0 -168
  290. package/dist/js/schema/methods_category/mathematical/intgr/transf.json +0 -165
  291. package/dist/js/schema/methods_category/mathematical/intgr.json +0 -162
  292. package/dist/js/schema/methods_category/mathematical/linalg/dcomp.json +0 -165
  293. package/dist/js/schema/methods_category/mathematical/linalg/diag/davidson.json +0 -168
  294. package/dist/js/schema/methods_category/mathematical/linalg/diag/enum_options.json +0 -8
  295. package/dist/js/schema/methods_category/mathematical/linalg/diag.json +0 -165
  296. package/dist/js/schema/methods_category/mathematical/linalg/enum_options.json +0 -23
  297. package/dist/js/schema/methods_category/mathematical/linalg/lintra.json +0 -165
  298. package/dist/js/schema/methods_category/mathematical/linalg/matf.json +0 -165
  299. package/dist/js/schema/methods_category/mathematical/linalg.json +0 -162
  300. package/dist/js/schema/methods_category/mathematical/opt/diff/bracket.json +0 -168
  301. package/dist/js/schema/methods_category/mathematical/opt/diff/enum_options.json +0 -28
  302. package/dist/js/schema/methods_category/mathematical/opt/diff/local.json +0 -168
  303. package/dist/js/schema/methods_category/mathematical/opt/diff/order1.json +0 -168
  304. package/dist/js/schema/methods_category/mathematical/opt/diff/order2.json +0 -168
  305. package/dist/js/schema/methods_category/mathematical/opt/diff/ordern/cg.json +0 -171
  306. package/dist/js/schema/methods_category/mathematical/opt/diff/ordern/enum_options.json +0 -8
  307. package/dist/js/schema/methods_category/mathematical/opt/diff/ordern.json +0 -168
  308. package/dist/js/schema/methods_category/mathematical/opt/diff.json +0 -165
  309. package/dist/js/schema/methods_category/mathematical/opt/enum_options.json +0 -18
  310. package/dist/js/schema/methods_category/mathematical/opt/ndiff/direct.json +0 -168
  311. package/dist/js/schema/methods_category/mathematical/opt/ndiff/enum_options.json +0 -18
  312. package/dist/js/schema/methods_category/mathematical/opt/ndiff/pop.json +0 -168
  313. package/dist/js/schema/methods_category/mathematical/opt/ndiff/stoch.json +0 -168
  314. package/dist/js/schema/methods_category/mathematical/opt/ndiff.json +0 -165
  315. package/dist/js/schema/methods_category/mathematical/opt/root/bracket.json +0 -168
  316. package/dist/js/schema/methods_category/mathematical/opt/root/enum_options.json +0 -13
  317. package/dist/js/schema/methods_category/mathematical/opt/root/iter.json +0 -168
  318. package/dist/js/schema/methods_category/mathematical/opt/root.json +0 -165
  319. package/dist/js/schema/methods_category/mathematical/opt.json +0 -162
  320. package/dist/js/schema/methods_category/mathematical/regression.json +0 -167
  321. package/dist/js/schema/methods_category/physical/enum_options.json +0 -8
  322. package/dist/js/schema/methods_category/physical/qm/enum_options.json +0 -8
  323. package/dist/js/schema/methods_category/physical/qm/wf/ao/dunning.json +0 -171
  324. package/dist/js/schema/methods_category/physical/qm/wf/ao/other.json +0 -171
  325. package/dist/js/schema/methods_category/physical/qm/wf/ao/pople.json +0 -171
  326. package/dist/js/schema/methods_category/physical/qm/wf/ao.json +0 -173
  327. package/dist/js/schema/methods_category/physical/qm/wf/enum_options.json +0 -63
  328. package/dist/js/schema/methods_category/physical/qm/wf/psp.json +0 -174
  329. package/dist/js/schema/methods_category/physical/qm/wf/pw.json +0 -168
  330. package/dist/js/schema/methods_category/physical/qm/wf/smearing.json +0 -174
  331. package/dist/js/schema/methods_category/physical/qm/wf/tetrahedron.json +0 -173
  332. package/dist/js/schema/methods_category/physical/qm/wf.json +0 -165
  333. package/dist/js/schema/methods_category/physical/qm.json +0 -162
  334. package/dist/js/schema/methods_directory/legacy/localorbital.json +0 -34
  335. package/dist/js/schema/methods_directory/legacy/pseudopotential.json +0 -37
  336. package/dist/js/schema/methods_directory/legacy/regression.json +0 -185
  337. package/dist/js/schema/methods_directory/legacy/unknown.json +0 -34
  338. package/dist/js/schema/methods_directory/mathematical/cg.json +0 -207
  339. package/dist/js/schema/methods_directory/mathematical/davidson.json +0 -204
  340. package/dist/js/schema/methods_directory/mathematical/regression/data.json +0 -122
  341. package/dist/js/schema/methods_directory/mathematical/regression/dataset.json +0 -21
  342. package/dist/js/schema/methods_directory/mathematical/regression/kernel_ridge/data_per_property.json +0 -47
  343. package/dist/js/schema/methods_directory/mathematical/regression/linear/data_per_property.json +0 -42
  344. package/dist/js/schema/methods_directory/mathematical/regression/per_feature_item.json +0 -23
  345. package/dist/js/schema/methods_directory/mathematical/regression/precision.json +0 -33
  346. package/dist/js/schema/methods_directory/mathematical/regression/precision_per_property.json +0 -23
  347. package/dist/js/schema/methods_directory/mathematical/regression.json +0 -354
  348. package/dist/js/schema/methods_directory/physical/ao/dunning.json +0 -230
  349. package/dist/js/schema/methods_directory/physical/ao/enum_options.json +0 -28
  350. package/dist/js/schema/methods_directory/physical/ao/other.json +0 -238
  351. package/dist/js/schema/methods_directory/physical/ao/pople.json +0 -230
  352. package/dist/js/schema/methods_directory/physical/psp/file.json +0 -140
  353. package/dist/js/schema/methods_directory/physical/psp/file_data_item.json +0 -116
  354. package/dist/js/schema/methods_directory/physical/psp.json +0 -352
  355. package/dist/js/schema/methods_directory/physical/pw.json +0 -204
  356. package/dist/js/schema/methods_directory/physical/smearing.json +0 -210
  357. package/dist/js/schema/methods_directory/physical/tetrahedron.json +0 -208
  358. package/dist/js/schema/model/categorized_model.json +0 -542
  359. package/dist/js/schema/model/mixins/dft/double_hybrid_functional.json +0 -13
  360. package/dist/js/schema/model/mixins/dft/enum_options.json +0 -30
  361. package/dist/js/schema/model/mixins/dft/gga_functional.json +0 -15
  362. package/dist/js/schema/model/mixins/dft/hybrid_functional.json +0 -14
  363. package/dist/js/schema/model/mixins/dft/lda_functional.json +0 -14
  364. package/dist/js/schema/model/mixins/dft/mgga_functional.json +0 -14
  365. package/dist/js/schema/model/mixins/dispersion_correction.json +0 -16
  366. package/dist/js/schema/model/mixins/enum_options.json +0 -22
  367. package/dist/js/schema/model/mixins/hubbard.json +0 -13
  368. package/dist/js/schema/model/mixins/spin_orbit_coupling.json +0 -12
  369. package/dist/js/schema/model/mixins/spin_polarization.json +0 -15
  370. package/dist/js/schema/model/model_parameters.json +0 -98
  371. package/dist/js/schema/model/model_without_method.json +0 -321
  372. package/dist/js/schema/model.json +0 -49
  373. package/dist/js/schema/models_category/enum_options.json +0 -13
  374. package/dist/js/schema/models_category/pb/enum_options.json +0 -8
  375. package/dist/js/schema/models_category/pb/qm/abin/enum_options.json +0 -15
  376. package/dist/js/schema/models_category/pb/qm/abin/gw.json +0 -176
  377. package/dist/js/schema/models_category/pb/qm/abin.json +0 -168
  378. package/dist/js/schema/models_category/pb/qm/dft/enum_options.json +0 -8
  379. package/dist/js/schema/models_category/pb/qm/dft/ksdft/double_hybrid.json +0 -174
  380. package/dist/js/schema/models_category/pb/qm/dft/ksdft/enum_options.json +0 -28
  381. package/dist/js/schema/models_category/pb/qm/dft/ksdft/gga.json +0 -174
  382. package/dist/js/schema/models_category/pb/qm/dft/ksdft/hybrid.json +0 -174
  383. package/dist/js/schema/models_category/pb/qm/dft/ksdft/lda.json +0 -174
  384. package/dist/js/schema/models_category/pb/qm/dft/ksdft/mgga.json +0 -174
  385. package/dist/js/schema/models_category/pb/qm/dft/ksdft.json +0 -171
  386. package/dist/js/schema/models_category/pb/qm/dft.json +0 -168
  387. package/dist/js/schema/models_category/pb/qm/enum_options.json +0 -18
  388. package/dist/js/schema/models_category/pb/qm/semp.json +0 -168
  389. package/dist/js/schema/models_category/pb/qm.json +0 -165
  390. package/dist/js/schema/models_category/pb.json +0 -162
  391. package/dist/js/schema/models_category/st/det/enum_options.json +0 -8
  392. package/dist/js/schema/models_category/st/det/ml/enum_options.json +0 -8
  393. package/dist/js/schema/models_category/st/det/ml/re.json +0 -171
  394. package/dist/js/schema/models_category/st/det/ml.json +0 -168
  395. package/dist/js/schema/models_category/st/det.json +0 -165
  396. package/dist/js/schema/models_category/st/enum_options.json +0 -8
  397. package/dist/js/schema/models_category/st.json +0 -162
  398. package/dist/js/schema/models_directory/double_hybrid.json +0 -387
  399. package/dist/js/schema/models_directory/gga.json +0 -401
  400. package/dist/js/schema/models_directory/gw.json +0 -415
  401. package/dist/js/schema/models_directory/hybrid.json +0 -400
  402. package/dist/js/schema/models_directory/lda.json +0 -400
  403. package/dist/js/schema/models_directory/legacy/dft.json +0 -154
  404. package/dist/js/schema/models_directory/legacy/ml.json +0 -55
  405. package/dist/js/schema/models_directory/legacy/unknown.json +0 -55
  406. package/dist/js/schema/models_directory/mgga.json +0 -400
  407. package/dist/js/schema/models_directory/re.json +0 -334
  408. package/dist/js/schema/project.json +0 -103
  409. package/dist/js/schema/properties_directory/derived_properties.json +0 -185
  410. package/dist/js/schema/properties_directory/electronic_configuration.json +0 -16
  411. package/dist/js/schema/properties_directory/elemental/atomic_radius.json +0 -35
  412. package/dist/js/schema/properties_directory/elemental/electronegativity.json +0 -20
  413. package/dist/js/schema/properties_directory/elemental/ionization_potential.json +0 -31
  414. package/dist/js/schema/properties_directory/non_scalar/average_potential_profile.json +0 -107
  415. package/dist/js/schema/properties_directory/non_scalar/band_gaps.json +0 -121
  416. package/dist/js/schema/properties_directory/non_scalar/band_structure.json +0 -118
  417. package/dist/js/schema/properties_directory/non_scalar/charge_density_profile.json +0 -88
  418. package/dist/js/schema/properties_directory/non_scalar/density_of_states.json +0 -123
  419. package/dist/js/schema/properties_directory/non_scalar/dielectric_tensor.json +0 -65
  420. package/dist/js/schema/properties_directory/non_scalar/file_content.json +0 -67
  421. package/dist/js/schema/properties_directory/non_scalar/hubbard_u.json +0 -56
  422. package/dist/js/schema/properties_directory/non_scalar/hubbard_v.json +0 -75
  423. package/dist/js/schema/properties_directory/non_scalar/hubbard_v_nn.json +0 -75
  424. package/dist/js/schema/properties_directory/non_scalar/phonon_dispersions.json +0 -103
  425. package/dist/js/schema/properties_directory/non_scalar/phonon_dos.json +0 -95
  426. package/dist/js/schema/properties_directory/non_scalar/potential_profile.json +0 -94
  427. package/dist/js/schema/properties_directory/non_scalar/reaction_energy_profile.json +0 -94
  428. package/dist/js/schema/properties_directory/non_scalar/stress_tensor.json +0 -36
  429. package/dist/js/schema/properties_directory/non_scalar/total_energy_contributions.json +0 -271
  430. package/dist/js/schema/properties_directory/non_scalar/vibrational_spectrum.json +0 -99
  431. package/dist/js/schema/properties_directory/scalar/electron_affinity.json +0 -42
  432. package/dist/js/schema/properties_directory/scalar/fermi_energy.json +0 -42
  433. package/dist/js/schema/properties_directory/scalar/formation_energy.json +0 -42
  434. package/dist/js/schema/properties_directory/scalar/ionization_potential.json +0 -42
  435. package/dist/js/schema/properties_directory/scalar/pressure.json +0 -26
  436. package/dist/js/schema/properties_directory/scalar/reaction_energy_barrier.json +0 -42
  437. package/dist/js/schema/properties_directory/scalar/surface_energy.json +0 -42
  438. package/dist/js/schema/properties_directory/scalar/total_energy.json +0 -42
  439. package/dist/js/schema/properties_directory/scalar/total_force.json +0 -29
  440. package/dist/js/schema/properties_directory/scalar/valence_band_offset.json +0 -42
  441. package/dist/js/schema/properties_directory/scalar/zero_point_energy.json +0 -42
  442. package/dist/js/schema/properties_directory/structural/atomic_forces.json +0 -65
  443. package/dist/js/schema/properties_directory/structural/basis/atomic_constraints.json +0 -55
  444. package/dist/js/schema/properties_directory/structural/basis/atomic_coordinate.json +0 -38
  445. package/dist/js/schema/properties_directory/structural/basis/atomic_coordinates.json +0 -68
  446. package/dist/js/schema/properties_directory/structural/basis/atomic_element.json +0 -26
  447. package/dist/js/schema/properties_directory/structural/basis/bonds.json +0 -42
  448. package/dist/js/schema/properties_directory/structural/basis.json +0 -141
  449. package/dist/js/schema/properties_directory/structural/density.json +0 -24
  450. package/dist/js/schema/properties_directory/structural/elemental_ratio.json +0 -26
  451. package/dist/js/schema/properties_directory/structural/inchi.json +0 -19
  452. package/dist/js/schema/properties_directory/structural/inchi_key.json +0 -19
  453. package/dist/js/schema/properties_directory/structural/lattice/lattice_bravais.json +0 -81
  454. package/dist/js/schema/properties_directory/structural/lattice/lattice_vectors.json +0 -63
  455. package/dist/js/schema/properties_directory/structural/lattice/type_enum.json +0 -22
  456. package/dist/js/schema/properties_directory/structural/lattice/type_extended_enum.json +0 -32
  457. package/dist/js/schema/properties_directory/structural/lattice.json +0 -148
  458. package/dist/js/schema/properties_directory/structural/magnetic_moments.json +0 -60
  459. package/dist/js/schema/properties_directory/structural/molecular_pattern.json +0 -111
  460. package/dist/js/schema/properties_directory/structural/p_norm.json +0 -24
  461. package/dist/js/schema/properties_directory/structural/patterns/functional_group.json +0 -36
  462. package/dist/js/schema/properties_directory/structural/patterns/ring.json +0 -35
  463. package/dist/js/schema/properties_directory/structural/patterns/special_bond.json +0 -33
  464. package/dist/js/schema/properties_directory/structural/symmetry.json +0 -40
  465. package/dist/js/schema/properties_directory/structural/volume.json +0 -24
  466. package/dist/js/schema/properties_directory/workflow/convergence/electronic.json +0 -32
  467. package/dist/js/schema/properties_directory/workflow/convergence/ionic.json +0 -62
  468. package/dist/js/schema/properties_directory/workflow/convergence/kpoint.json +0 -48
  469. package/dist/js/schema/property/base.json +0 -387
  470. package/dist/js/schema/property/meta.json +0 -387
  471. package/dist/js/schema/property/raw.json +0 -387
  472. package/dist/js/schema/property/source.json +0 -286
  473. package/dist/js/schema/software/application.json +0 -99
  474. package/dist/js/schema/software/executable.json +0 -208
  475. package/dist/js/schema/software/flavor.json +0 -228
  476. package/dist/js/schema/software/template.json +0 -103
  477. package/dist/js/schema/software_directory/ml/exabyteml.json +0 -23
  478. package/dist/js/schema/software_directory/ml/unit/execution/evaluate/cross_validate.json +0 -814
  479. package/dist/js/schema/software_directory/ml/unit/execution/initialize.json +0 -818
  480. package/dist/js/schema/software_directory/ml/unit/execution/score.json +0 -804
  481. package/dist/js/schema/software_directory/ml/unit/execution/train.json +0 -827
  482. package/dist/js/schema/software_directory/ml/unit/execution.json +0 -3264
  483. package/dist/js/schema/software_directory/ml/unit/processing/data_transformation/manipulation.json +0 -310
  484. package/dist/js/schema/software_directory/ml/unit/processing/data_transformation/scale_and_reduce.json +0 -330
  485. package/dist/js/schema/software_directory/ml/unit/processing/data_transformation.json +0 -334
  486. package/dist/js/schema/software_directory/ml/unit/processing/feature_selection/filter_based.json +0 -305
  487. package/dist/js/schema/software_directory/ml/unit/processing/feature_selection.json +0 -309
  488. package/dist/js/schema/software_directory/ml/unit/processing.json +0 -646
  489. package/dist/js/schema/software_directory/modeling/deepmd.json +0 -115
  490. package/dist/js/schema/software_directory/modeling/espresso/arguments.json +0 -44
  491. package/dist/js/schema/software_directory/modeling/espresso.json +0 -34
  492. package/dist/js/schema/software_directory/modeling/nwchem.json +0 -114
  493. package/dist/js/schema/software_directory/modeling/unit/execution.json +0 -847
  494. package/dist/js/schema/software_directory/modeling/vasp.json +0 -120
  495. package/dist/js/schema/software_directory/scripting/jupyter_lab.json +0 -118
  496. package/dist/js/schema/software_directory/scripting/python.json +0 -132
  497. package/dist/js/schema/software_directory/scripting/shell.json +0 -132
  498. package/dist/js/schema/software_directory/scripting/unit/execution.json +0 -847
  499. package/dist/js/schema/system/_material.json +0 -23
  500. package/dist/js/schema/system/_parent_job.json +0 -23
  501. package/dist/js/schema/system/_project.json +0 -23
  502. package/dist/js/schema/system/bankable.json +0 -16
  503. package/dist/js/schema/system/consistency_check.json +0 -39
  504. package/dist/js/schema/system/creator.json +0 -23
  505. package/dist/js/schema/system/creator_account.json +0 -27
  506. package/dist/js/schema/system/database_source.json +0 -45
  507. package/dist/js/schema/system/defaultable.json +0 -13
  508. package/dist/js/schema/system/description.json +0 -15
  509. package/dist/js/schema/system/entity_reference.json +0 -20
  510. package/dist/js/schema/system/file_source.json +0 -30
  511. package/dist/js/schema/system/history.json +0 -26
  512. package/dist/js/schema/system/iframe_message.json +0 -35
  513. package/dist/js/schema/system/in_set.json +0 -36
  514. package/dist/js/schema/system/is_multi_material.json +0 -11
  515. package/dist/js/schema/system/is_outdated.json +0 -11
  516. package/dist/js/schema/system/job_extended.json +0 -64
  517. package/dist/js/schema/system/message.json +0 -68
  518. package/dist/js/schema/system/metadata.json +0 -11
  519. package/dist/js/schema/system/name.json +0 -12
  520. package/dist/js/schema/system/owner.json +0 -23
  521. package/dist/js/schema/system/path.json +0 -14
  522. package/dist/js/schema/system/path_entity.json +0 -18
  523. package/dist/js/schema/system/schema_version.json +0 -13
  524. package/dist/js/schema/system/scope.json +0 -11
  525. package/dist/js/schema/system/set.json +0 -17
  526. package/dist/js/schema/system/sharing.json +0 -11
  527. package/dist/js/schema/system/soft_removable.json +0 -16
  528. package/dist/js/schema/system/status.json +0 -32
  529. package/dist/js/schema/system/tags.json +0 -15
  530. package/dist/js/schema/system/timestampable.json +0 -38
  531. package/dist/js/schema/system/use_values.json +0 -11
  532. package/dist/js/schema/workflow/base.json +0 -103
  533. package/dist/js/schema/workflow/base_flow.json +0 -220
  534. package/dist/js/schema/workflow/scope.json +0 -20
  535. package/dist/js/schema/workflow/subworkflow/unit.json +0 -2710
  536. package/dist/js/schema/workflow/subworkflow.json +0 -3086
  537. package/dist/js/schema/workflow/unit/assertion.json +0 -277
  538. package/dist/js/schema/workflow/unit/assignment.json +0 -314
  539. package/dist/js/schema/workflow/unit/base.json +0 -264
  540. package/dist/js/schema/workflow/unit/condition.json +0 -315
  541. package/dist/js/schema/workflow/unit/execution.json +0 -804
  542. package/dist/js/schema/workflow/unit/input/_input.json +0 -53
  543. package/dist/js/schema/workflow/unit/input/_inputItem.json +0 -20
  544. package/dist/js/schema/workflow/unit/input/_inputItemId.json +0 -19
  545. package/dist/js/schema/workflow/unit/input/_inputItemScope.json +0 -20
  546. package/dist/js/schema/workflow/unit/input/_map_input/values.json +0 -11
  547. package/dist/js/schema/workflow/unit/input/_map_input.json +0 -36
  548. package/dist/js/schema/workflow/unit/io/api.json +0 -25
  549. package/dist/js/schema/workflow/unit/io/db.json +0 -41
  550. package/dist/js/schema/workflow/unit/io/object_storage.json +0 -61
  551. package/dist/js/schema/workflow/unit/io.json +0 -415
  552. package/dist/js/schema/workflow/unit/map.json +0 -314
  553. package/dist/js/schema/workflow/unit/processing.json +0 -281
  554. package/dist/js/schema/workflow/unit/reduce.json +0 -297
  555. package/dist/js/schema/workflow/unit/runtime/_runtime_item_full_object.json +0 -15
  556. package/dist/js/schema/workflow/unit/runtime/_runtime_item_name_object.json +0 -15
  557. package/dist/js/schema/workflow/unit/runtime/_runtime_item_string.json +0 -7
  558. package/dist/js/schema/workflow/unit/runtime/runtime_item.json +0 -27
  559. package/dist/js/schema/workflow/unit/runtime/runtime_items.json +0 -128
  560. package/dist/js/schema/workflow/unit/subworkflow.json +0 -267
  561. package/dist/js/schema/workflow/unit.json +0 -3289
  562. package/dist/js/schema/workflow.json +0 -6488
  563. package/dist/js/schemas.json +0 -1
  564. package/modules.d.ts +0 -5
@@ -3,8 +3,9 @@
3
3
  * at build time and writes them out to a single schemas.js file for
4
4
  * downstream consumption to avoid FS calls in the browser.
5
5
  */
6
- const fs = require("fs");
7
- const JSONSchemasGenerator = require("./dist/js/esse/JSONSchemasGenerator").default;
6
+ import * as fs from "fs";
7
+
8
+ import JSONSchemasGenerator from "./src/js/esse/JSONSchemasGenerator";
8
9
 
9
10
  // JS Modules
10
11
 
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.validateAndClean = exports.validate = exports.getValidator = void 0;
7
7
  const ajv_1 = __importDefault(require("ajv"));
8
+ const ajv_formats_1 = __importDefault(require("ajv-formats"));
8
9
  const schemaUtils_1 = require("../esse/schemaUtils");
9
10
  function addAdditionalPropertiesToSchema(schema, additionalProperties = false) {
10
11
  return (0, schemaUtils_1.mapObjectDeep)(schema, (object) => {
@@ -37,6 +38,9 @@ const ajvValidatorAndCleanerWithCoercingTypes = new ajv_1.default({
37
38
  removeAdditional: true,
38
39
  coerceTypes: true,
39
40
  });
41
+ (0, ajv_formats_1.default)(ajvValidator);
42
+ (0, ajv_formats_1.default)(ajvValidatorAndCleaner);
43
+ (0, ajv_formats_1.default)(ajvValidatorAndCleanerWithCoercingTypes);
40
44
  function getAjvInstance({ clean, coerceTypes }) {
41
45
  if (clean && coerceTypes) {
42
46
  return ajvValidatorAndCleanerWithCoercingTypes;
package/package.json CHANGED
@@ -1,20 +1,18 @@
1
1
  {
2
2
  "name": "@mat3ra/esse",
3
- "version": "2024.3.22-0",
3
+ "version": "2024.3.25-0",
4
4
  "description": "Mat3ra's Excellent Source of Schemas and Examples (ESSE) for Digital Materials R&D",
5
5
  "scripts": {
6
6
  "prepublishOnly": "rm -rf dist; npm run transpile",
7
- "transpile": "tsc && BUILD_ASSETS=true BUILD_PATH='./dist/js' node build_schemas.js",
8
- "transpile-and-build-assets": "npm run transpile && ts-node compile_ts.ts",
9
- "build:assets": "node build_schemas.js",
10
- "build:js-and-python-modules": "BUILD_PYTHON_MODULES=true node build_schemas.js",
11
- "build:assets-with-docs": "BUILD_ASSETS=true node build_schemas.js",
12
- "test": "nyc --reporter=text mocha --recursive --bail tests/js",
13
- "test-only": "nyc --reporter=text mocha --bail",
7
+ "transpile": "tsc -p tsconfig-transpile.json",
8
+ "build-schemas": "BUILD_ASSETS=true BUILD_PYTHON_MODULES=true BUILD_PATH='./dist/js' ts-node build_schemas.ts",
9
+ "compile-types": "ts-node compile_ts.ts",
10
+ "transpile-and-build-assets": "npm run transpile && npm run build-schemas && npm run compile-types",
11
+ "test": "npm run build-schemas && nyc --reporter=text mocha --recursive --bail tests/js",
12
+ "test-only": "nyc --reporter=text mocha --recursive --bail tests/js",
14
13
  "lint": "eslint src/js && prettier --write src/js",
15
14
  "lint:fix": "eslint --fix --cache src/js && prettier --write src/js",
16
15
  "prettier": "prettier --check src/js",
17
- "postinstall": "npm run transpile-and-build-assets",
18
16
  "prepare": "husky install || exit 0",
19
17
  "set-schema-ids": "ts-node set_schema_ids.ts"
20
18
  },
@@ -31,7 +29,7 @@
31
29
  "homepage": "https://github.com/Exabyte-io/esse",
32
30
  "devDependencies": {
33
31
  "@exabyte-io/eslint-config": "^2023.8.29-1",
34
- "@mat3ra/tsconfig": "^2024.3.21-5",
32
+ "@mat3ra/tsconfig": "^2024.3.25-3",
35
33
  "@typescript-eslint/eslint-plugin": "^5.9.1",
36
34
  "@typescript-eslint/parser": "^5.9.1",
37
35
  "chai": "4.3.4",
@@ -69,13 +67,12 @@
69
67
  "@babel/preset-typescript": "^7.22.5",
70
68
  "@babel/register": "^7.16.0",
71
69
  "@babel/runtime-corejs3": "7.16.8",
72
- "@tsconfig/node14": "^14.1.0",
73
- "@tsconfig/node20": "^20.1.2",
74
70
  "@types/chai": "^4.3.11",
71
+ "@types/js-yaml": "^4.0.9",
75
72
  "@types/json-schema-merge-allof": "^0.6.5",
76
73
  "@types/mocha": "^10.0.6",
77
- "@types/js-yaml": "^4.0.9",
78
74
  "ajv": "^8.12.0",
75
+ "ajv-formats": "^2.1.1",
79
76
  "js-yaml": "^4.1.0",
80
77
  "json-schema": "^0.4.0",
81
78
  "json-schema-deref-sync": "0.14.0",
@@ -91,21 +88,21 @@
91
88
  "*.{js,css}": "prettier --write"
92
89
  },
93
90
  "exports": {
94
- "./lib/js/schema/*": "./dist/schema/*",
95
- "./lib/js/example/*": "./dist/example/*",
96
- "./lib/js/utils/*": "./dist/utils/*.js",
97
- "./lib/js/esse/*": "./dist/esse/*.js",
98
- "./lib/js/json_include/*": "./dist/json_include/*.js",
99
- "./lib/js/scripts/*": "./dist/scripts/*.js",
100
- "./lib/js/types.ts": "./dist/types.ts",
101
- "./lib/js/schemas.json": "./dist/schemas.ts",
102
- "./dist/schema/*": "./dist/schema/*",
103
- "./dist/example/*": "./dist/example/*",
104
- "./dist/utils/*": "./dist/utils/*.js",
105
- "./dist/esse/*": "./dist/esse/*.js",
106
- "./dist/json_include/*": "./dist/json_include/*.js",
107
- "./dist/scripts/*": "./dist/scripts/*.js",
108
- "./dist/types.ts": "./dist/types.ts",
109
- "./dist/schemas.json": "./dist/js/schemas.ts"
91
+ "./lib/js/schema/*.json": "./dist/js/schema/*.json",
92
+ "./lib/js/example/*": "./dist/js/example/*.js",
93
+ "./lib/js/utils/*": "./dist/js/utils/*.js",
94
+ "./lib/js/esse/*": "./dist/js/esse/*.js",
95
+ "./lib/js/json_include/*": "./dist/js/json_include/*.js",
96
+ "./lib/js/scripts/*": "./dist/js/scripts/*.js",
97
+ "./lib/js/types": "./dist/js/types.ts",
98
+ "./lib/js/schemas.json": "./dist/js/schemas.json",
99
+ "./dist/schema/*.json": "./dist/js/schema/*.json",
100
+ "./dist/example/*": "./dist/js/example/*.js",
101
+ "./dist/utils/*": "./dist/js/utils/*.js",
102
+ "./dist/esse/*": "./dist/js/esse/*.js",
103
+ "./dist/json_include/*": "./dist/js/json_include/*.js",
104
+ "./dist/scripts/*": "./dist/js/scripts/*.js",
105
+ "./dist/types": "./dist/js/types.ts",
106
+ "./dist/schemas.json": "./dist/js/schemas.json"
110
107
  }
111
108
  }
@@ -15,24 +15,10 @@
15
15
  "format": "date-time"
16
16
  },
17
17
  "createdBy": {
18
- "oneOf": [
19
- {
20
- "type": "string"
21
- },
22
- {
23
- "type": "number"
24
- }
25
- ]
18
+ "type": "string"
26
19
  },
27
20
  "updatedBy": {
28
- "oneOf": [
29
- {
30
- "type": "string"
31
- },
32
- {
33
- "type": "number"
34
- }
35
- ]
21
+ "type": "string"
36
22
  }
37
23
  }
38
24
  }
@@ -1,6 +1,6 @@
1
- import type {} from "ajv"; // @see https://github.com/microsoft/TypeScript/issues/47663
2
1
  import Ajv, { SchemaObject } from "ajv";
3
2
  import { AnyValidateFunction } from "ajv/dist/core";
3
+ import addFormats from "ajv-formats";
4
4
 
5
5
  import { mapObjectDeep } from "../esse/schemaUtils";
6
6
  import { AnyObject } from "../esse/types";
@@ -43,6 +43,10 @@ const ajvValidatorAndCleanerWithCoercingTypes = new Ajv({
43
43
  coerceTypes: true,
44
44
  });
45
45
 
46
+ addFormats(ajvValidator);
47
+ addFormats(ajvValidatorAndCleaner);
48
+ addFormats(ajvValidatorAndCleanerWithCoercingTypes);
49
+
46
50
  interface AjvInstanceOptions {
47
51
  clean: boolean;
48
52
  coerceTypes: boolean;
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "@mat3ra/tsconfig/tsconfig-js-py-transpile.json"
3
+ }
package/tsconfig.json CHANGED
@@ -1,7 +1,3 @@
1
1
  {
2
- "extends": "@mat3ra/tsconfig/tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "./dist/js",
5
- "resolveJsonModule": true
6
- }
2
+ "extends": "@mat3ra/tsconfig/tsconfig-js-py-dev.json"
7
3
  }
@@ -1,91 +0,0 @@
1
- {
2
- "phi": {
3
- "nelect": 48,
4
- "phi": 4.73414095269429,
5
- "scf_vbm": -1.6519,
6
- "scf_cbm": -1.6472,
7
- "Ef": -1.97822464,
8
- "scf_gap": 0,
9
- "avg_max": 2.7559163126942896,
10
- "scf_dir": false
11
- },
12
- "atoms": {
13
- "lattice_mat": [
14
- [
15
- 3.353617811446221,
16
- 0,
17
- 0
18
- ],
19
- [
20
- 0,
21
- 6.273423021773385,
22
- 0
23
- ],
24
- [
25
- 0,
26
- 0,
27
- 33.313518
28
- ]
29
- ],
30
- "coords": [
31
- [
32
- 0,
33
- 0.6004615456553349,
34
- 0.2002745956304112
35
- ],
36
- [
37
- 0.5,
38
- 0.9651745521229684,
39
- 0.205389889617873
40
- ],
41
- [
42
- 0,
43
- 0.8600702878546368,
44
- 0.2642586539633663
45
- ],
46
- [
47
- 0.5,
48
- 0.3508476059345406,
49
- 0.2471701152668883
50
- ],
51
- [
52
- 0.5,
53
- 0.7055702442093444,
54
- 0.1414059027438078
55
- ],
56
- [
57
- 0,
58
- 0.2147957642231673,
59
- 0.1584938427776558
60
- ]
61
- ],
62
- "elements": [
63
- "Mo",
64
- "Mo",
65
- "Te",
66
- "Te",
67
- "Te",
68
- "Te"
69
- ],
70
- "abc": [
71
- 3.35362,
72
- 6.27342,
73
- 33.31352
74
- ],
75
- "angles": [
76
- 90,
77
- 90,
78
- 90
79
- ],
80
- "cartesian": false,
81
- "props": [
82
- "",
83
- "",
84
- "",
85
- "",
86
- "",
87
- ""
88
- ]
89
- },
90
- "jid": "JVASP-677"
91
- }
@@ -1,94 +0,0 @@
1
- {
2
- "&CONTROL": {
3
- "calculation": "scf",
4
- "title": "",
5
- "verbosity": "low",
6
- "restart_mode": "from_scratch",
7
- "wf_collect": true,
8
- "tstress": true,
9
- "tprnfor": true,
10
- "outdir": "{{ JOB_WORK_DIR }}/outdir",
11
- "wfcdir": "{{ JOB_WORK_DIR }}/outdir",
12
- "prefix": "__prefix__",
13
- "pseudo_dir": "{{ JOB_WORK_DIR }}/pseudo"
14
- },
15
- "&SYSTEM": {
16
- "ibrav": 0,
17
- "nat": 2,
18
- "ntyp": 2,
19
- "ecutwfc": 40,
20
- "ecutrho": 200,
21
- "occupations": "smearing",
22
- "degauss": 0.005,
23
- "starting_magnetization": [
24
- 0.01,
25
- 0.02
26
- ],
27
- "Hubbard_occ": [
28
- [
29
- 1,
30
- 1,
31
- 0
32
- ],
33
- [
34
- 1,
35
- 2,
36
- 0.02
37
- ]
38
- ]
39
- },
40
- "&ELECTRONS": {
41
- "diagonalization": "david",
42
- "diago_david_ndim": 4,
43
- "diago_full_acc": true,
44
- "mixing_beta": 0.3,
45
- "startingwfc": "atomic+random"
46
- },
47
- "&IONS": null,
48
- "&CELL": null,
49
- "ATOMIC_SPECIES": {
50
- "values": [
51
- {
52
- "X": "Cs",
53
- "Mass_X": 132.90543,
54
- "PseudoPot_X": "Cs.upf"
55
- },
56
- {
57
- "X": "Cl",
58
- "Mass_X": 35.4527,
59
- "PseudoPot_X": "Cl.upf"
60
- }
61
- ]
62
- },
63
- "CELL_PARAMETERS": {
64
- "card_option": "angstrom",
65
- "values": {
66
- "v1": [
67
- 4.324582724,
68
- 0,
69
- 2.496799
70
- ],
71
- "v2": [
72
- 1.441527575,
73
- 4.077255694,
74
- 2.496799
75
- ],
76
- "v3": [
77
- 0,
78
- 0,
79
- 4.993598
80
- ]
81
- }
82
- },
83
- "K_POINTS": {
84
- "card_option": "automatic",
85
- "values": {
86
- "nk1": 2,
87
- "nk2": 2,
88
- "nk3": 2,
89
- "sk1": 0,
90
- "sk2": 0,
91
- "sk3": 0
92
- }
93
- }
94
- }
@@ -1,19 +0,0 @@
1
- {
2
- "xDataArray": [
3
- 0,
4
- 1,
5
- 2
6
- ],
7
- "yDataSeries": [
8
- [
9
- 0,
10
- 0.5,
11
- 1
12
- ],
13
- [
14
- 0,
15
- 2.5,
16
- 5
17
- ]
18
- ]
19
- }
@@ -1,26 +0,0 @@
1
- {
2
- "xAxis": {
3
- "label": "kpoint index"
4
- },
5
- "xDataArray": [
6
- 0,
7
- 1,
8
- 2
9
- ],
10
- "yAxis": {
11
- "label": "eigenvalues",
12
- "units": "eV"
13
- },
14
- "yDataSeries": [
15
- [
16
- 0,
17
- 0.5,
18
- 1
19
- ],
20
- [
21
- 0,
22
- 2.5,
23
- 5
24
- ]
25
- ]
26
- }
@@ -1,12 +0,0 @@
1
- {
2
- "dimensions": [
3
- 2,
4
- 2,
5
- 2
6
- ],
7
- "shifts": [
8
- 0,
9
- 0,
10
- 0
11
- ]
12
- }
@@ -1,17 +0,0 @@
1
- [
2
- [
3
- 1,
4
- 0,
5
- 0
6
- ],
7
- [
8
- 0,
9
- 1,
10
- 0
11
- ],
12
- [
13
- 0,
14
- 0,
15
- 1
16
- ]
17
- ]
@@ -1,17 +0,0 @@
1
- {
2
- "a": [
3
- 5,
4
- 0,
5
- 0
6
- ],
7
- "b": [
8
- 0,
9
- 5,
10
- 0
11
- ],
12
- "c": [
13
- 0,
14
- 0,
15
- 5
16
- ]
17
- }
@@ -1,5 +0,0 @@
1
- [
2
- 0,
3
- 5.5,
4
- 0
5
- ]
@@ -1,5 +0,0 @@
1
- [
2
- 1,
3
- 0,
4
- 0
5
- ]
@@ -1,12 +0,0 @@
1
- [
2
- [
3
- 0,
4
- 0.5,
5
- 1
6
- ],
7
- [
8
- 0,
9
- 2.5,
10
- 5
11
- ]
12
- ]
@@ -1,8 +0,0 @@
1
- {
2
- "a": 5.14,
3
- "alpha": 90,
4
- "b": 5.14,
5
- "beta": 90,
6
- "c": 5.14,
7
- "gamma": 90
8
- }
@@ -1,5 +0,0 @@
1
- [
2
- true,
3
- false,
4
- false
5
- ]
@@ -1,8 +0,0 @@
1
- [
2
- {
3
- "id": 1
4
- },
5
- {
6
- "id": 2
7
- }
8
- ]
@@ -1,4 +0,0 @@
1
- {
2
- "label": "energy",
3
- "units": "eV"
4
- }
@@ -1,3 +0,0 @@
1
- {
2
- "value": 0.1
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "value": "example string"
3
- }
@@ -1,12 +0,0 @@
1
- {
2
- "name": "pressure",
3
- "scalar": [
4
- {
5
- "value": "1.2"
6
- },
7
- {
8
- "value": "3.3"
9
- }
10
- ],
11
- "units": "kbar"
12
- }
@@ -1,4 +0,0 @@
1
- {
2
- "latitude": 24.3423424,
3
- "longitude": 43.234232
4
- }
@@ -1,38 +0,0 @@
1
- {
2
- "authors": [
3
- {
4
- "affiliation": "Exabyte Inc.",
5
- "first": "John",
6
- "last": "Doe"
7
- }
8
- ],
9
- "conditions": [
10
- {
11
- "name": "pressure",
12
- "scalar": [
13
- {
14
- "value": "1.2"
15
- },
16
- {
17
- "value": "3.3"
18
- }
19
- ],
20
- "units": "kbar"
21
- }
22
- ],
23
- "method": "DFT",
24
- "references": [
25
- {
26
- "authors": [
27
- {
28
- "affiliation": "Exabyte Inc.",
29
- "first": "John",
30
- "last": "Doe"
31
- }
32
- ],
33
- "doi": "10.1000/xyz123"
34
- }
35
- ],
36
- "timestamp": 141182979832,
37
- "title": "Experiment 1"
38
- }
@@ -1,5 +0,0 @@
1
- {
2
- "affiliation": "Exabyte Inc.",
3
- "first": "John",
4
- "last": "Doe"
5
- }
@@ -1,4 +0,0 @@
1
- {
2
- "end": "2",
3
- "start": "1"
4
- }
@@ -1,10 +0,0 @@
1
- {
2
- "authors": [
3
- {
4
- "affiliation": "Exabyte Inc.",
5
- "first": "John",
6
- "last": "Doe"
7
- }
8
- ],
9
- "doi": "10.1000/xyz123"
10
- }
@@ -1,9 +0,0 @@
1
- {
2
- "_id": "nDAavgjrT5ezwFgod",
3
- "owner": {
4
- "_id": "HtxACY2wX4b2hS8Rv",
5
- "cls": "Account",
6
- "slug": "exabyte"
7
- },
8
- "title": "My Calculation"
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "_id": "nDAavgjrT5ezwFgod",
3
- "owner": {
4
- "_id": "HtxACY2wX4b2hS8Rv",
5
- "cls": "Account",
6
- "slug": "exabyte"
7
- },
8
- "title": "My Calculation"
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "_id": "nDAavgjrT5ezwFgod",
3
- "owner": {
4
- "_id": "HtxACY2wX4b2hS8Rv",
5
- "cls": "Account",
6
- "slug": "exabyte"
7
- },
8
- "title": "My Calculation"
9
- }