diff --git a/dist/js/PropertyFactory.d.ts b/dist/js/PropertyFactory.d.ts index 9ca6b17..df0fce8 100644 --- a/dist/js/PropertyFactory.d.ts +++ b/dist/js/PropertyFactory.d.ts @@ -1,5 +1,5 @@ import type { MetaPropertyHolderSchema, PropertyHolderSchema, ProtoPropertyHolderSchema } from "@mat3ra/esse/dist/js/types"; -import type MetaProperty from "./MetaProperty"; +import PseudopotentialProperty from "./meta_properties/PseudopotentialMetaProperty"; import AveragePotentialProfileProperty from "./properties/non-scalar/AveragePotentialProfileProperty"; import BandGapsProperty from "./properties/non-scalar/BandGapsProperty"; import BandStructureProperty from "./properties/non-scalar/BandStructureProperty"; @@ -53,7 +53,7 @@ export default class PropertyFactory { static getNonScalarPropertyNames(): PropertyName[]; private static filterPropertyNames; static createProperty(config: AnyProperty): AveragePotentialProfileProperty | BandGapsProperty | BandStructureProperty | ChargeDensityProfileProperty | ConvergenceElectronicProperty | ConvergenceIonicProperty | DensityOfStatesProperty | DielectricTensorProperty | FileContentProperty | FinalStructureProperty | HubbardUProperty | HubbardVNNProperty | HubbardVProperty | IsRelaxedProperty | JupyterNotebookEndpointProperty | PhononDispersionsProperty | PhononDOSProperty | PotentialProfileProperty | ReactionEnergyProfileProperty | WavefunctionAmplitudeProperty | WorkflowProperty | TotalEnergyContributionsProperty | FermiEnergyProperty | HOMOEnergyProperty | IonizationPotentialElementalProperty | LUMOEnergyProperty | PressureProperty | ReactionEnergyBarrierProperty | SurfaceEnergyProperty | ThermalCorrectionToEnergyProperty | ThermalCorrectionToEnthalpyProperty | TotalEnergyProperty | TotalForcesProperty | ValenceBandOffsetProperty | ZeroPointEnergyProperty | AtomicForcesProperty | MagneticMomentsProperty | StressTensorProperty; - static createMetaProperty(config: AnyMetaProperty): MetaProperty; + static createMetaProperty(config: AnyMetaProperty): PseudopotentialProperty; static createProtoProperty(config: AnyProtoProperty): AtomicConstraintsProperty | BoundaryConditionsProperty; } export {}; diff --git a/dist/js/generated/AtomicConstraintsPropertySchemaMixin.d.ts b/dist/js/generated/AtomicConstraintsPropertySchemaMixin.d.ts index 5700439..8cf5ec2 100644 --- a/dist/js/generated/AtomicConstraintsPropertySchemaMixin.d.ts +++ b/dist/js/generated/AtomicConstraintsPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { AtomicConstraintsPropertySchema } from "@mat3ra/esse/dist/js/types"; export type AtomicConstraintsPropertySchemaMixin = Omit; export type AtomicConstraintsPropertyInMemoryEntity = InMemoryEntity & AtomicConstraintsPropertySchemaMixin; -export declare function atomicConstraintsPropertySchemaMixin(item: InMemoryEntity): void; +export declare function atomicConstraintsPropertySchemaMixin(item: InMemoryEntity): asserts item is T & AtomicConstraintsPropertySchemaMixin; diff --git a/dist/js/generated/AtomicConstraintsPropertySchemaMixin.js b/dist/js/generated/AtomicConstraintsPropertySchemaMixin.js index ecf889b..8bc8228 100644 --- a/dist/js/generated/AtomicConstraintsPropertySchemaMixin.js +++ b/dist/js/generated/AtomicConstraintsPropertySchemaMixin.js @@ -7,9 +7,15 @@ function atomicConstraintsPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get values() { return this.requiredProp("values"); }, + set values(value) { + this.setProp("values", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/AtomicForcesPropertySchemaMixin.d.ts b/dist/js/generated/AtomicForcesPropertySchemaMixin.d.ts index 07e8c74..b2980e1 100644 --- a/dist/js/generated/AtomicForcesPropertySchemaMixin.d.ts +++ b/dist/js/generated/AtomicForcesPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { AtomicForcesPropertySchema } from "@mat3ra/esse/dist/js/types"; export type AtomicForcesPropertySchemaMixin = Omit; export type AtomicForcesPropertyInMemoryEntity = InMemoryEntity & AtomicForcesPropertySchemaMixin; -export declare function atomicForcesPropertySchemaMixin(item: InMemoryEntity): void; +export declare function atomicForcesPropertySchemaMixin(item: InMemoryEntity): asserts item is T & AtomicForcesPropertySchemaMixin; diff --git a/dist/js/generated/AtomicForcesPropertySchemaMixin.js b/dist/js/generated/AtomicForcesPropertySchemaMixin.js index ebabf04..829ae9f 100644 --- a/dist/js/generated/AtomicForcesPropertySchemaMixin.js +++ b/dist/js/generated/AtomicForcesPropertySchemaMixin.js @@ -7,12 +7,21 @@ function atomicForcesPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get values() { return this.requiredProp("values"); }, + set values(value) { + this.setProp("values", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/AveragePotentialProfilePropertySchemaMixin.d.ts b/dist/js/generated/AveragePotentialProfilePropertySchemaMixin.d.ts index d36b30c..26824f2 100644 --- a/dist/js/generated/AveragePotentialProfilePropertySchemaMixin.d.ts +++ b/dist/js/generated/AveragePotentialProfilePropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { AveragePotentialProfilePropertySchema } from "@mat3ra/esse/dist/js/types"; export type AveragePotentialProfilePropertySchemaMixin = Omit; export type AveragePotentialProfilePropertyInMemoryEntity = InMemoryEntity & AveragePotentialProfilePropertySchemaMixin; -export declare function averagePotentialProfilePropertySchemaMixin(item: InMemoryEntity): void; +export declare function averagePotentialProfilePropertySchemaMixin(item: InMemoryEntity): asserts item is T & AveragePotentialProfilePropertySchemaMixin; diff --git a/dist/js/generated/AveragePotentialProfilePropertySchemaMixin.js b/dist/js/generated/AveragePotentialProfilePropertySchemaMixin.js index 64be701..dc86483 100644 --- a/dist/js/generated/AveragePotentialProfilePropertySchemaMixin.js +++ b/dist/js/generated/AveragePotentialProfilePropertySchemaMixin.js @@ -7,18 +7,33 @@ function averagePotentialProfilePropertySchemaMixin(item) { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp("yDataSeries"); }, + set yDataSeries(value) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/BandGapsPropertySchemaMixin.d.ts b/dist/js/generated/BandGapsPropertySchemaMixin.d.ts index fc3b640..09bcb58 100644 --- a/dist/js/generated/BandGapsPropertySchemaMixin.d.ts +++ b/dist/js/generated/BandGapsPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { BandGapsPropertySchema } from "@mat3ra/esse/dist/js/types"; export type BandGapsPropertySchemaMixin = Omit; export type BandGapsPropertyInMemoryEntity = InMemoryEntity & BandGapsPropertySchemaMixin; -export declare function bandGapsPropertySchemaMixin(item: InMemoryEntity): void; +export declare function bandGapsPropertySchemaMixin(item: InMemoryEntity): asserts item is T & BandGapsPropertySchemaMixin; diff --git a/dist/js/generated/BandGapsPropertySchemaMixin.js b/dist/js/generated/BandGapsPropertySchemaMixin.js index da9035a..4805c99 100644 --- a/dist/js/generated/BandGapsPropertySchemaMixin.js +++ b/dist/js/generated/BandGapsPropertySchemaMixin.js @@ -7,12 +7,21 @@ function bandGapsPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get values() { return this.requiredProp("values"); }, + set values(value) { + this.setProp("values", value); + }, get eigenvalues() { return this.prop("eigenvalues"); }, + set eigenvalues(value) { + this.setProp("eigenvalues", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/BandStructurePropertySchemaMixin.d.ts b/dist/js/generated/BandStructurePropertySchemaMixin.d.ts index 6646466..43e2d65 100644 --- a/dist/js/generated/BandStructurePropertySchemaMixin.d.ts +++ b/dist/js/generated/BandStructurePropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { BandStructurePropertySchema } from "@mat3ra/esse/dist/js/types"; export type BandStructurePropertySchemaMixin = Omit; export type BandStructurePropertyInMemoryEntity = InMemoryEntity & BandStructurePropertySchemaMixin; -export declare function bandStructurePropertySchemaMixin(item: InMemoryEntity): void; +export declare function bandStructurePropertySchemaMixin(item: InMemoryEntity): asserts item is T & BandStructurePropertySchemaMixin; diff --git a/dist/js/generated/BandStructurePropertySchemaMixin.js b/dist/js/generated/BandStructurePropertySchemaMixin.js index 27cf9aa..1a204d4 100644 --- a/dist/js/generated/BandStructurePropertySchemaMixin.js +++ b/dist/js/generated/BandStructurePropertySchemaMixin.js @@ -7,21 +7,39 @@ function bandStructurePropertySchemaMixin(item) { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get spin() { return this.requiredProp("spin"); }, + set spin(value) { + this.setProp("spin", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp("yDataSeries"); }, + set yDataSeries(value) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/BoundaryConditionsPropertySchemaMixin.d.ts b/dist/js/generated/BoundaryConditionsPropertySchemaMixin.d.ts index 6733ebc..01a6da6 100644 --- a/dist/js/generated/BoundaryConditionsPropertySchemaMixin.d.ts +++ b/dist/js/generated/BoundaryConditionsPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { BoundaryConditionsPropertySchema } from "@mat3ra/esse/dist/js/types"; export type BoundaryConditionsPropertySchemaMixin = Omit; export type BoundaryConditionsPropertyInMemoryEntity = InMemoryEntity & BoundaryConditionsPropertySchemaMixin; -export declare function boundaryConditionsPropertySchemaMixin(item: InMemoryEntity): void; +export declare function boundaryConditionsPropertySchemaMixin(item: InMemoryEntity): asserts item is T & BoundaryConditionsPropertySchemaMixin; diff --git a/dist/js/generated/BoundaryConditionsPropertySchemaMixin.js b/dist/js/generated/BoundaryConditionsPropertySchemaMixin.js index 152cb11..13b8430 100644 --- a/dist/js/generated/BoundaryConditionsPropertySchemaMixin.js +++ b/dist/js/generated/BoundaryConditionsPropertySchemaMixin.js @@ -7,12 +7,21 @@ function boundaryConditionsPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get type() { return this.requiredProp("type"); }, + set type(value) { + this.setProp("type", value); + }, get offset() { return this.requiredProp("offset"); }, + set offset(value) { + this.setProp("offset", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/ChargeDensityProfilePropertySchemaMixin.d.ts b/dist/js/generated/ChargeDensityProfilePropertySchemaMixin.d.ts index 176292f..bf96dbd 100644 --- a/dist/js/generated/ChargeDensityProfilePropertySchemaMixin.d.ts +++ b/dist/js/generated/ChargeDensityProfilePropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { ChargeDensityProfilePropertySchema } from "@mat3ra/esse/dist/js/types"; export type ChargeDensityProfilePropertySchemaMixin = Omit; export type ChargeDensityProfilePropertyInMemoryEntity = InMemoryEntity & ChargeDensityProfilePropertySchemaMixin; -export declare function chargeDensityProfilePropertySchemaMixin(item: InMemoryEntity): void; +export declare function chargeDensityProfilePropertySchemaMixin(item: InMemoryEntity): asserts item is T & ChargeDensityProfilePropertySchemaMixin; diff --git a/dist/js/generated/ChargeDensityProfilePropertySchemaMixin.js b/dist/js/generated/ChargeDensityProfilePropertySchemaMixin.js index 5bfe83e..9284159 100644 --- a/dist/js/generated/ChargeDensityProfilePropertySchemaMixin.js +++ b/dist/js/generated/ChargeDensityProfilePropertySchemaMixin.js @@ -7,18 +7,33 @@ function chargeDensityProfilePropertySchemaMixin(item) { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp("yDataSeries"); }, + set yDataSeries(value) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/ConvergenceElectronicPropertySchemaMixin.d.ts b/dist/js/generated/ConvergenceElectronicPropertySchemaMixin.d.ts index 33f9d85..c3e5fda 100644 --- a/dist/js/generated/ConvergenceElectronicPropertySchemaMixin.d.ts +++ b/dist/js/generated/ConvergenceElectronicPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { ConvergenceElectronicPropertySchema } from "@mat3ra/esse/dist/js/types"; export type ConvergenceElectronicPropertySchemaMixin = Omit; export type ConvergenceElectronicPropertyInMemoryEntity = InMemoryEntity & ConvergenceElectronicPropertySchemaMixin; -export declare function convergenceElectronicPropertySchemaMixin(item: InMemoryEntity): void; +export declare function convergenceElectronicPropertySchemaMixin(item: InMemoryEntity): asserts item is T & ConvergenceElectronicPropertySchemaMixin; diff --git a/dist/js/generated/ConvergenceElectronicPropertySchemaMixin.js b/dist/js/generated/ConvergenceElectronicPropertySchemaMixin.js index 407dc96..9c43a9c 100644 --- a/dist/js/generated/ConvergenceElectronicPropertySchemaMixin.js +++ b/dist/js/generated/ConvergenceElectronicPropertySchemaMixin.js @@ -7,12 +7,21 @@ function convergenceElectronicPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get data() { return this.requiredProp("data"); }, + set data(value) { + this.setProp("data", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/ConvergenceIonicPropertySchemaMixin.d.ts b/dist/js/generated/ConvergenceIonicPropertySchemaMixin.d.ts index cbf8354..a318eec 100644 --- a/dist/js/generated/ConvergenceIonicPropertySchemaMixin.d.ts +++ b/dist/js/generated/ConvergenceIonicPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { ConvergenceIonicPropertySchema } from "@mat3ra/esse/dist/js/types"; export type ConvergenceIonicPropertySchemaMixin = Omit; export type ConvergenceIonicPropertyInMemoryEntity = InMemoryEntity & ConvergenceIonicPropertySchemaMixin; -export declare function convergenceIonicPropertySchemaMixin(item: InMemoryEntity): void; +export declare function convergenceIonicPropertySchemaMixin(item: InMemoryEntity): asserts item is T & ConvergenceIonicPropertySchemaMixin; diff --git a/dist/js/generated/ConvergenceIonicPropertySchemaMixin.js b/dist/js/generated/ConvergenceIonicPropertySchemaMixin.js index 9c6cd90..0837be0 100644 --- a/dist/js/generated/ConvergenceIonicPropertySchemaMixin.js +++ b/dist/js/generated/ConvergenceIonicPropertySchemaMixin.js @@ -7,15 +7,27 @@ function convergenceIonicPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get tolerance() { return this.prop("tolerance"); }, + set tolerance(value) { + this.setProp("tolerance", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get data() { return this.requiredProp("data"); }, + set data(value) { + this.setProp("data", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/DensityOfStatesPropertySchemaMixin.d.ts b/dist/js/generated/DensityOfStatesPropertySchemaMixin.d.ts index 898d5f5..e490ceb 100644 --- a/dist/js/generated/DensityOfStatesPropertySchemaMixin.d.ts +++ b/dist/js/generated/DensityOfStatesPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { DensityOfStatesPropertySchema } from "@mat3ra/esse/dist/js/types"; export type DensityOfStatesPropertySchemaMixin = Omit; export type DensityOfStatesPropertyInMemoryEntity = InMemoryEntity & DensityOfStatesPropertySchemaMixin; -export declare function densityOfStatesPropertySchemaMixin(item: InMemoryEntity): void; +export declare function densityOfStatesPropertySchemaMixin(item: InMemoryEntity): asserts item is T & DensityOfStatesPropertySchemaMixin; diff --git a/dist/js/generated/DensityOfStatesPropertySchemaMixin.js b/dist/js/generated/DensityOfStatesPropertySchemaMixin.js index 5d098aa..5ad79ce 100644 --- a/dist/js/generated/DensityOfStatesPropertySchemaMixin.js +++ b/dist/js/generated/DensityOfStatesPropertySchemaMixin.js @@ -7,21 +7,39 @@ function densityOfStatesPropertySchemaMixin(item) { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get legend() { return this.requiredProp("legend"); }, + set legend(value) { + this.setProp("legend", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp("yDataSeries"); }, + set yDataSeries(value) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/DielectricTensorPropertySchemaMixin.d.ts b/dist/js/generated/DielectricTensorPropertySchemaMixin.d.ts index 99cc305..405ef21 100644 --- a/dist/js/generated/DielectricTensorPropertySchemaMixin.d.ts +++ b/dist/js/generated/DielectricTensorPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { DielectricTensorPropertySchema } from "@mat3ra/esse/dist/js/types"; export type DielectricTensorPropertySchemaMixin = Omit; export type DielectricTensorPropertyInMemoryEntity = InMemoryEntity & DielectricTensorPropertySchemaMixin; -export declare function dielectricTensorPropertySchemaMixin(item: InMemoryEntity): void; +export declare function dielectricTensorPropertySchemaMixin(item: InMemoryEntity): asserts item is T & DielectricTensorPropertySchemaMixin; diff --git a/dist/js/generated/DielectricTensorPropertySchemaMixin.js b/dist/js/generated/DielectricTensorPropertySchemaMixin.js index 1efa1b1..54351e0 100644 --- a/dist/js/generated/DielectricTensorPropertySchemaMixin.js +++ b/dist/js/generated/DielectricTensorPropertySchemaMixin.js @@ -7,9 +7,15 @@ function dielectricTensorPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get values() { return this.requiredProp("values"); }, + set values(value) { + this.setProp("values", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/FermiEnergyPropertySchemaMixin.d.ts b/dist/js/generated/FermiEnergyPropertySchemaMixin.d.ts index 11f4496..7cb40b3 100644 --- a/dist/js/generated/FermiEnergyPropertySchemaMixin.d.ts +++ b/dist/js/generated/FermiEnergyPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { FermiEnergyPropertySchema } from "@mat3ra/esse/dist/js/types"; export type FermiEnergyPropertySchemaMixin = Omit; export type FermiEnergyPropertyInMemoryEntity = InMemoryEntity & FermiEnergyPropertySchemaMixin; -export declare function fermiEnergyPropertySchemaMixin(item: InMemoryEntity): void; +export declare function fermiEnergyPropertySchemaMixin(item: InMemoryEntity): asserts item is T & FermiEnergyPropertySchemaMixin; diff --git a/dist/js/generated/FermiEnergyPropertySchemaMixin.js b/dist/js/generated/FermiEnergyPropertySchemaMixin.js index 8f38476..e84d2ac 100644 --- a/dist/js/generated/FermiEnergyPropertySchemaMixin.js +++ b/dist/js/generated/FermiEnergyPropertySchemaMixin.js @@ -7,12 +7,21 @@ function fermiEnergyPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/FileContentPropertySchemaMixin.d.ts b/dist/js/generated/FileContentPropertySchemaMixin.d.ts index 08fa054..835a329 100644 --- a/dist/js/generated/FileContentPropertySchemaMixin.d.ts +++ b/dist/js/generated/FileContentPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { FileContentPropertySchema } from "@mat3ra/esse/dist/js/types"; export type FileContentPropertySchemaMixin = Omit; export type FileContentPropertyInMemoryEntity = InMemoryEntity & FileContentPropertySchemaMixin; -export declare function fileContentPropertySchemaMixin(item: InMemoryEntity): void; +export declare function fileContentPropertySchemaMixin(item: InMemoryEntity): asserts item is T & FileContentPropertySchemaMixin; diff --git a/dist/js/generated/FileContentPropertySchemaMixin.js b/dist/js/generated/FileContentPropertySchemaMixin.js index 5c34c85..c1eba5d 100644 --- a/dist/js/generated/FileContentPropertySchemaMixin.js +++ b/dist/js/generated/FileContentPropertySchemaMixin.js @@ -7,18 +7,33 @@ function fileContentPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get filetype() { return this.requiredProp("filetype"); }, + set filetype(value) { + this.setProp("filetype", value); + }, get objectData() { return this.requiredProp("objectData"); }, + set objectData(value) { + this.setProp("objectData", value); + }, get pathname() { return this.prop("pathname"); }, + set pathname(value) { + this.setProp("pathname", value); + }, get basename() { return this.prop("basename"); }, + set basename(value) { + this.setProp("basename", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/FinalStructurePropertySchemaMixin.d.ts b/dist/js/generated/FinalStructurePropertySchemaMixin.d.ts index 6a7211d..99599d4 100644 --- a/dist/js/generated/FinalStructurePropertySchemaMixin.d.ts +++ b/dist/js/generated/FinalStructurePropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { FinalStructurePropertySchema } from "@mat3ra/esse/dist/js/types"; export type FinalStructurePropertySchemaMixin = Omit; export type FinalStructurePropertyInMemoryEntity = InMemoryEntity & FinalStructurePropertySchemaMixin; -export declare function finalStructurePropertySchemaMixin(item: InMemoryEntity): void; +export declare function finalStructurePropertySchemaMixin(item: InMemoryEntity): asserts item is T & FinalStructurePropertySchemaMixin; diff --git a/dist/js/generated/FinalStructurePropertySchemaMixin.js b/dist/js/generated/FinalStructurePropertySchemaMixin.js index 36b9168..ac9a114 100644 --- a/dist/js/generated/FinalStructurePropertySchemaMixin.js +++ b/dist/js/generated/FinalStructurePropertySchemaMixin.js @@ -7,12 +7,21 @@ function finalStructurePropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get isRelaxed() { return this.requiredProp("isRelaxed"); }, + set isRelaxed(value) { + this.setProp("isRelaxed", value); + }, get materialId() { return this.requiredProp("materialId"); }, + set materialId(value) { + this.setProp("materialId", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/HOMOEnergyPropertySchemaMixin.d.ts b/dist/js/generated/HOMOEnergyPropertySchemaMixin.d.ts index 481aadf..3a02668 100644 --- a/dist/js/generated/HOMOEnergyPropertySchemaMixin.d.ts +++ b/dist/js/generated/HOMOEnergyPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { HOMOEnergyPropertySchema } from "@mat3ra/esse/dist/js/types"; export type HOMOEnergyPropertySchemaMixin = Omit; export type HOMOEnergyPropertyInMemoryEntity = InMemoryEntity & HOMOEnergyPropertySchemaMixin; -export declare function hOMOEnergyPropertySchemaMixin(item: InMemoryEntity): void; +export declare function hOMOEnergyPropertySchemaMixin(item: InMemoryEntity): asserts item is T & HOMOEnergyPropertySchemaMixin; diff --git a/dist/js/generated/HOMOEnergyPropertySchemaMixin.js b/dist/js/generated/HOMOEnergyPropertySchemaMixin.js index fdabf79..a1006b5 100644 --- a/dist/js/generated/HOMOEnergyPropertySchemaMixin.js +++ b/dist/js/generated/HOMOEnergyPropertySchemaMixin.js @@ -7,12 +7,21 @@ function hOMOEnergyPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/HubbardUPropertySchemaMixin.d.ts b/dist/js/generated/HubbardUPropertySchemaMixin.d.ts index 42276a7..a7c49d1 100644 --- a/dist/js/generated/HubbardUPropertySchemaMixin.d.ts +++ b/dist/js/generated/HubbardUPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { HubbardUParametersPropertySchema } from "@mat3ra/esse/dist/js/types"; export type HubbardUPropertySchemaMixin = Omit; export type HubbardUPropertyInMemoryEntity = InMemoryEntity & HubbardUPropertySchemaMixin; -export declare function hubbardUPropertySchemaMixin(item: InMemoryEntity): void; +export declare function hubbardUPropertySchemaMixin(item: InMemoryEntity): asserts item is T & HubbardUPropertySchemaMixin; diff --git a/dist/js/generated/HubbardUPropertySchemaMixin.js b/dist/js/generated/HubbardUPropertySchemaMixin.js index bbfcf4e..e0575e1 100644 --- a/dist/js/generated/HubbardUPropertySchemaMixin.js +++ b/dist/js/generated/HubbardUPropertySchemaMixin.js @@ -7,12 +7,21 @@ function hubbardUPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get values() { return this.requiredProp("values"); }, + set values(value) { + this.setProp("values", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/HubbardVNNPropertySchemaMixin.d.ts b/dist/js/generated/HubbardVNNPropertySchemaMixin.d.ts index 316783d..ebe312e 100644 --- a/dist/js/generated/HubbardVNNPropertySchemaMixin.d.ts +++ b/dist/js/generated/HubbardVNNPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { HubbardVNNParametersPropertySchema } from "@mat3ra/esse/dist/js/types"; export type HubbardVNNPropertySchemaMixin = Omit; export type HubbardVNNPropertyInMemoryEntity = InMemoryEntity & HubbardVNNPropertySchemaMixin; -export declare function hubbardVNNPropertySchemaMixin(item: InMemoryEntity): void; +export declare function hubbardVNNPropertySchemaMixin(item: InMemoryEntity): asserts item is T & HubbardVNNPropertySchemaMixin; diff --git a/dist/js/generated/HubbardVNNPropertySchemaMixin.js b/dist/js/generated/HubbardVNNPropertySchemaMixin.js index 7e72e50..34977a7 100644 --- a/dist/js/generated/HubbardVNNPropertySchemaMixin.js +++ b/dist/js/generated/HubbardVNNPropertySchemaMixin.js @@ -7,12 +7,21 @@ function hubbardVNNPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get values() { return this.requiredProp("values"); }, + set values(value) { + this.setProp("values", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/HubbardVPropertySchemaMixin.d.ts b/dist/js/generated/HubbardVPropertySchemaMixin.d.ts index 5b31147..28b169c 100644 --- a/dist/js/generated/HubbardVPropertySchemaMixin.d.ts +++ b/dist/js/generated/HubbardVPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { HubbardVParametersPropertySchema } from "@mat3ra/esse/dist/js/types"; export type HubbardVPropertySchemaMixin = Omit; export type HubbardVPropertyInMemoryEntity = InMemoryEntity & HubbardVPropertySchemaMixin; -export declare function hubbardVPropertySchemaMixin(item: InMemoryEntity): void; +export declare function hubbardVPropertySchemaMixin(item: InMemoryEntity): asserts item is T & HubbardVPropertySchemaMixin; diff --git a/dist/js/generated/HubbardVPropertySchemaMixin.js b/dist/js/generated/HubbardVPropertySchemaMixin.js index 8dbe9f5..49abc92 100644 --- a/dist/js/generated/HubbardVPropertySchemaMixin.js +++ b/dist/js/generated/HubbardVPropertySchemaMixin.js @@ -7,12 +7,21 @@ function hubbardVPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get values() { return this.requiredProp("values"); }, + set values(value) { + this.setProp("values", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/IonizationPotentialElementalPropertySchemaMixin.d.ts b/dist/js/generated/IonizationPotentialElementalPropertySchemaMixin.d.ts index 54f94e4..11d258b 100644 --- a/dist/js/generated/IonizationPotentialElementalPropertySchemaMixin.d.ts +++ b/dist/js/generated/IonizationPotentialElementalPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { IonizationPotentialElementalPropertySchema } from "@mat3ra/esse/dist/js/types"; export type IonizationPotentialElementalPropertySchemaMixin = Omit; export type IonizationPotentialElementalPropertyInMemoryEntity = InMemoryEntity & IonizationPotentialElementalPropertySchemaMixin; -export declare function ionizationPotentialElementalPropertySchemaMixin(item: InMemoryEntity): void; +export declare function ionizationPotentialElementalPropertySchemaMixin(item: InMemoryEntity): asserts item is T & IonizationPotentialElementalPropertySchemaMixin; diff --git a/dist/js/generated/IonizationPotentialElementalPropertySchemaMixin.js b/dist/js/generated/IonizationPotentialElementalPropertySchemaMixin.js index 6f77f58..c56b964 100644 --- a/dist/js/generated/IonizationPotentialElementalPropertySchemaMixin.js +++ b/dist/js/generated/IonizationPotentialElementalPropertySchemaMixin.js @@ -7,12 +7,21 @@ function ionizationPotentialElementalPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/IsRelaxedPropertySchemaMixin.d.ts b/dist/js/generated/IsRelaxedPropertySchemaMixin.d.ts index 67acd49..6a40244 100644 --- a/dist/js/generated/IsRelaxedPropertySchemaMixin.d.ts +++ b/dist/js/generated/IsRelaxedPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { IsRelaxedPropertySchema } from "@mat3ra/esse/dist/js/types"; export type IsRelaxedPropertySchemaMixin = Omit; export type IsRelaxedPropertyInMemoryEntity = InMemoryEntity & IsRelaxedPropertySchemaMixin; -export declare function isRelaxedPropertySchemaMixin(item: InMemoryEntity): void; +export declare function isRelaxedPropertySchemaMixin(item: InMemoryEntity): asserts item is T & IsRelaxedPropertySchemaMixin; diff --git a/dist/js/generated/IsRelaxedPropertySchemaMixin.js b/dist/js/generated/IsRelaxedPropertySchemaMixin.js index b1b59ea..3b5ec52 100644 --- a/dist/js/generated/IsRelaxedPropertySchemaMixin.js +++ b/dist/js/generated/IsRelaxedPropertySchemaMixin.js @@ -7,12 +7,21 @@ function isRelaxedPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, get materialId() { return this.requiredProp("materialId"); }, + set materialId(value) { + this.setProp("materialId", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/JupyterNotebookEndpointPropertySchemaMixin.d.ts b/dist/js/generated/JupyterNotebookEndpointPropertySchemaMixin.d.ts index fb33c0b..7660c74 100644 --- a/dist/js/generated/JupyterNotebookEndpointPropertySchemaMixin.d.ts +++ b/dist/js/generated/JupyterNotebookEndpointPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { JupyterNotebookEndpointPropertySchema } from "@mat3ra/esse/dist/js/types"; export type JupyterNotebookEndpointPropertySchemaMixin = Omit; export type JupyterNotebookEndpointPropertyInMemoryEntity = InMemoryEntity & JupyterNotebookEndpointPropertySchemaMixin; -export declare function jupyterNotebookEndpointPropertySchemaMixin(item: InMemoryEntity): void; +export declare function jupyterNotebookEndpointPropertySchemaMixin(item: InMemoryEntity): asserts item is T & JupyterNotebookEndpointPropertySchemaMixin; diff --git a/dist/js/generated/JupyterNotebookEndpointPropertySchemaMixin.js b/dist/js/generated/JupyterNotebookEndpointPropertySchemaMixin.js index e36014e..3fd918b 100644 --- a/dist/js/generated/JupyterNotebookEndpointPropertySchemaMixin.js +++ b/dist/js/generated/JupyterNotebookEndpointPropertySchemaMixin.js @@ -7,15 +7,27 @@ function jupyterNotebookEndpointPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get host() { return this.requiredProp("host"); }, + set host(value) { + this.setProp("host", value); + }, get port() { return this.requiredProp("port"); }, + set port(value) { + this.setProp("port", value); + }, get token() { return this.requiredProp("token"); }, + set token(value) { + this.setProp("token", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/LUMOEnergyPropertySchemaMixin.d.ts b/dist/js/generated/LUMOEnergyPropertySchemaMixin.d.ts index dbd0189..ee4d68e 100644 --- a/dist/js/generated/LUMOEnergyPropertySchemaMixin.d.ts +++ b/dist/js/generated/LUMOEnergyPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { LUMOEnergyPropertySchema } from "@mat3ra/esse/dist/js/types"; export type LUMOEnergyPropertySchemaMixin = Omit; export type LUMOEnergyPropertyInMemoryEntity = InMemoryEntity & LUMOEnergyPropertySchemaMixin; -export declare function lUMOEnergyPropertySchemaMixin(item: InMemoryEntity): void; +export declare function lUMOEnergyPropertySchemaMixin(item: InMemoryEntity): asserts item is T & LUMOEnergyPropertySchemaMixin; diff --git a/dist/js/generated/LUMOEnergyPropertySchemaMixin.js b/dist/js/generated/LUMOEnergyPropertySchemaMixin.js index 3e3bbc5..0a60bea 100644 --- a/dist/js/generated/LUMOEnergyPropertySchemaMixin.js +++ b/dist/js/generated/LUMOEnergyPropertySchemaMixin.js @@ -7,12 +7,21 @@ function lUMOEnergyPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/MagneticMomentsPropertySchemaMixin.d.ts b/dist/js/generated/MagneticMomentsPropertySchemaMixin.d.ts index 3a7c882..cedec51 100644 --- a/dist/js/generated/MagneticMomentsPropertySchemaMixin.d.ts +++ b/dist/js/generated/MagneticMomentsPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { MagneticMomentsPropertySchema } from "@mat3ra/esse/dist/js/types"; export type MagneticMomentsPropertySchemaMixin = Omit; export type MagneticMomentsPropertyInMemoryEntity = InMemoryEntity & MagneticMomentsPropertySchemaMixin; -export declare function magneticMomentsPropertySchemaMixin(item: InMemoryEntity): void; +export declare function magneticMomentsPropertySchemaMixin(item: InMemoryEntity): asserts item is T & MagneticMomentsPropertySchemaMixin; diff --git a/dist/js/generated/MagneticMomentsPropertySchemaMixin.js b/dist/js/generated/MagneticMomentsPropertySchemaMixin.js index 3c25631..111b436 100644 --- a/dist/js/generated/MagneticMomentsPropertySchemaMixin.js +++ b/dist/js/generated/MagneticMomentsPropertySchemaMixin.js @@ -7,12 +7,21 @@ function magneticMomentsPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get values() { return this.requiredProp("values"); }, + set values(value) { + this.setProp("values", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/MetaPropertyHolderSchemaMixin.d.ts b/dist/js/generated/MetaPropertyHolderSchemaMixin.d.ts index 937d9b4..76efb00 100644 --- a/dist/js/generated/MetaPropertyHolderSchemaMixin.d.ts +++ b/dist/js/generated/MetaPropertyHolderSchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { MetaPropertyHolderSchema } from "@mat3ra/esse/dist/js/types"; export type MetaPropertyHolderSchemaMixin = Omit; export type MetaPropertyHolderInMemoryEntity = InMemoryEntity & MetaPropertyHolderSchemaMixin; -export declare function metaPropertyHolderSchemaMixin(item: InMemoryEntity): void; +export declare function metaPropertyHolderSchemaMixin(item: InMemoryEntity): asserts item is T & MetaPropertyHolderSchemaMixin; diff --git a/dist/js/generated/MetaPropertyHolderSchemaMixin.js b/dist/js/generated/MetaPropertyHolderSchemaMixin.js index 78db02d..196da12 100644 --- a/dist/js/generated/MetaPropertyHolderSchemaMixin.js +++ b/dist/js/generated/MetaPropertyHolderSchemaMixin.js @@ -7,9 +7,15 @@ function metaPropertyHolderSchemaMixin(item) { get data() { return this.requiredProp("data"); }, + set data(value) { + this.setProp("data", value); + }, get source() { return this.requiredProp("source"); }, + set source(value) { + this.setProp("source", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/PhononDOSPropertySchemaMixin.d.ts b/dist/js/generated/PhononDOSPropertySchemaMixin.d.ts index 1cac273..7758b62 100644 --- a/dist/js/generated/PhononDOSPropertySchemaMixin.d.ts +++ b/dist/js/generated/PhononDOSPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { PhononDensityOfStatesPropertySchema } from "@mat3ra/esse/dist/js/types"; export type PhononDOSPropertySchemaMixin = Omit; export type PhononDOSPropertyInMemoryEntity = InMemoryEntity & PhononDOSPropertySchemaMixin; -export declare function phononDOSPropertySchemaMixin(item: InMemoryEntity): void; +export declare function phononDOSPropertySchemaMixin(item: InMemoryEntity): asserts item is T & PhononDOSPropertySchemaMixin; diff --git a/dist/js/generated/PhononDOSPropertySchemaMixin.js b/dist/js/generated/PhononDOSPropertySchemaMixin.js index 41091c6..d8b45bc 100644 --- a/dist/js/generated/PhononDOSPropertySchemaMixin.js +++ b/dist/js/generated/PhononDOSPropertySchemaMixin.js @@ -7,18 +7,33 @@ function phononDOSPropertySchemaMixin(item) { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp("yDataSeries"); }, + set yDataSeries(value) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/PhononDispersionsPropertySchemaMixin.d.ts b/dist/js/generated/PhononDispersionsPropertySchemaMixin.d.ts index 1016682..4112494 100644 --- a/dist/js/generated/PhononDispersionsPropertySchemaMixin.d.ts +++ b/dist/js/generated/PhononDispersionsPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { PhononBandStructurePropertySchema } from "@mat3ra/esse/dist/js/types"; export type PhononDispersionsPropertySchemaMixin = Omit; export type PhononDispersionsPropertyInMemoryEntity = InMemoryEntity & PhononDispersionsPropertySchemaMixin; -export declare function phononDispersionsPropertySchemaMixin(item: InMemoryEntity): void; +export declare function phononDispersionsPropertySchemaMixin(item: InMemoryEntity): asserts item is T & PhononDispersionsPropertySchemaMixin; diff --git a/dist/js/generated/PhononDispersionsPropertySchemaMixin.js b/dist/js/generated/PhononDispersionsPropertySchemaMixin.js index 561b8e7..8214ace 100644 --- a/dist/js/generated/PhononDispersionsPropertySchemaMixin.js +++ b/dist/js/generated/PhononDispersionsPropertySchemaMixin.js @@ -7,18 +7,33 @@ function phononDispersionsPropertySchemaMixin(item) { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp("yDataSeries"); }, + set yDataSeries(value) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/PotentialProfilePropertySchemaMixin.d.ts b/dist/js/generated/PotentialProfilePropertySchemaMixin.d.ts index 2510185..de94c6c 100644 --- a/dist/js/generated/PotentialProfilePropertySchemaMixin.d.ts +++ b/dist/js/generated/PotentialProfilePropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { PotentialProfilePropertySchema } from "@mat3ra/esse/dist/js/types"; export type PotentialProfilePropertySchemaMixin = Omit; export type PotentialProfilePropertyInMemoryEntity = InMemoryEntity & PotentialProfilePropertySchemaMixin; -export declare function potentialProfilePropertySchemaMixin(item: InMemoryEntity): void; +export declare function potentialProfilePropertySchemaMixin(item: InMemoryEntity): asserts item is T & PotentialProfilePropertySchemaMixin; diff --git a/dist/js/generated/PotentialProfilePropertySchemaMixin.js b/dist/js/generated/PotentialProfilePropertySchemaMixin.js index 9040c7d..c2d7fda 100644 --- a/dist/js/generated/PotentialProfilePropertySchemaMixin.js +++ b/dist/js/generated/PotentialProfilePropertySchemaMixin.js @@ -7,18 +7,33 @@ function potentialProfilePropertySchemaMixin(item) { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp("yDataSeries"); }, + set yDataSeries(value) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/PressurePropertySchemaMixin.d.ts b/dist/js/generated/PressurePropertySchemaMixin.d.ts index a5bd51f..bf5b789 100644 --- a/dist/js/generated/PressurePropertySchemaMixin.d.ts +++ b/dist/js/generated/PressurePropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { PressurePropertySchema } from "@mat3ra/esse/dist/js/types"; export type PressurePropertySchemaMixin = Omit; export type PressurePropertyInMemoryEntity = InMemoryEntity & PressurePropertySchemaMixin; -export declare function pressurePropertySchemaMixin(item: InMemoryEntity): void; +export declare function pressurePropertySchemaMixin(item: InMemoryEntity): asserts item is T & PressurePropertySchemaMixin; diff --git a/dist/js/generated/PressurePropertySchemaMixin.js b/dist/js/generated/PressurePropertySchemaMixin.js index 5c1253f..256edfb 100644 --- a/dist/js/generated/PressurePropertySchemaMixin.js +++ b/dist/js/generated/PressurePropertySchemaMixin.js @@ -7,12 +7,21 @@ function pressurePropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/PropertyHolderSchemaMixin.d.ts b/dist/js/generated/PropertyHolderSchemaMixin.d.ts index 0289ab8..72a911e 100644 --- a/dist/js/generated/PropertyHolderSchemaMixin.d.ts +++ b/dist/js/generated/PropertyHolderSchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { PropertyHolderSchema } from "@mat3ra/esse/dist/js/types"; export type PropertyHolderSchemaMixin = Omit; export type PropertyHolderInMemoryEntity = InMemoryEntity & PropertyHolderSchemaMixin; -export declare function propertyHolderSchemaMixin(item: InMemoryEntity): void; +export declare function propertyHolderSchemaMixin(item: InMemoryEntity): asserts item is T & PropertyHolderSchemaMixin; diff --git a/dist/js/generated/PropertyHolderSchemaMixin.js b/dist/js/generated/PropertyHolderSchemaMixin.js index c3b776c..1c82894 100644 --- a/dist/js/generated/PropertyHolderSchemaMixin.js +++ b/dist/js/generated/PropertyHolderSchemaMixin.js @@ -7,24 +7,45 @@ function propertyHolderSchemaMixin(item) { get group() { return this.prop("group"); }, + set group(value) { + this.setProp("group", value); + }, get data() { return this.requiredProp("data"); }, + set data(value) { + this.setProp("data", value); + }, get source() { return this.requiredProp("source"); }, + set source(value) { + this.setProp("source", value); + }, get exabyteId() { return this.requiredProp("exabyteId"); }, + set exabyteId(value) { + this.setProp("exabyteId", value); + }, get precision() { return this.prop("precision"); }, + set precision(value) { + this.setProp("precision", value); + }, get systemTags() { return this.prop("systemTags"); }, + set systemTags(value) { + this.setProp("systemTags", value); + }, get repetition() { return this.requiredProp("repetition"); }, + set repetition(value) { + this.setProp("repetition", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/ProtoPropertyHolderSchemaMixin.d.ts b/dist/js/generated/ProtoPropertyHolderSchemaMixin.d.ts index 33aab09..170db73 100644 --- a/dist/js/generated/ProtoPropertyHolderSchemaMixin.d.ts +++ b/dist/js/generated/ProtoPropertyHolderSchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { ProtoPropertyHolderSchema } from "@mat3ra/esse/dist/js/types"; export type ProtoPropertyHolderSchemaMixin = Omit; export type ProtoPropertyHolderInMemoryEntity = InMemoryEntity & ProtoPropertyHolderSchemaMixin; -export declare function protoPropertyHolderSchemaMixin(item: InMemoryEntity): void; +export declare function protoPropertyHolderSchemaMixin(item: InMemoryEntity): asserts item is T & ProtoPropertyHolderSchemaMixin; diff --git a/dist/js/generated/ProtoPropertyHolderSchemaMixin.js b/dist/js/generated/ProtoPropertyHolderSchemaMixin.js index 74808ed..6ed8477 100644 --- a/dist/js/generated/ProtoPropertyHolderSchemaMixin.js +++ b/dist/js/generated/ProtoPropertyHolderSchemaMixin.js @@ -7,9 +7,15 @@ function protoPropertyHolderSchemaMixin(item) { get data() { return this.requiredProp("data"); }, + set data(value) { + this.setProp("data", value); + }, get source() { return this.requiredProp("source"); }, + set source(value) { + this.setProp("source", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/PseudopotentialMetaPropertySchemaMixin.d.ts b/dist/js/generated/PseudopotentialMetaPropertySchemaMixin.d.ts index e54cc3d..007f40c 100644 --- a/dist/js/generated/PseudopotentialMetaPropertySchemaMixin.d.ts +++ b/dist/js/generated/PseudopotentialMetaPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { FileDataItem } from "@mat3ra/esse/dist/js/types"; export type PseudopotentialMetaPropertySchemaMixin = Omit; export type PseudopotentialMetaPropertyInMemoryEntity = InMemoryEntity & PseudopotentialMetaPropertySchemaMixin; -export declare function pseudopotentialMetaPropertySchemaMixin(item: InMemoryEntity): void; +export declare function pseudopotentialMetaPropertySchemaMixin(item: InMemoryEntity): asserts item is T & PseudopotentialMetaPropertySchemaMixin; diff --git a/dist/js/generated/PseudopotentialMetaPropertySchemaMixin.js b/dist/js/generated/PseudopotentialMetaPropertySchemaMixin.js index c54ff64..9ead7d7 100644 --- a/dist/js/generated/PseudopotentialMetaPropertySchemaMixin.js +++ b/dist/js/generated/PseudopotentialMetaPropertySchemaMixin.js @@ -7,39 +7,75 @@ function pseudopotentialMetaPropertySchemaMixin(item) { get element() { return this.requiredProp("element"); }, + set element(value) { + this.setProp("element", value); + }, get hash() { return this.requiredProp("hash"); }, + set hash(value) { + this.setProp("hash", value); + }, get type() { return this.requiredProp("type"); }, + set type(value) { + this.setProp("type", value); + }, get source() { return this.requiredProp("source"); }, + set source(value) { + this.setProp("source", value); + }, get version() { return this.prop("version"); }, + set version(value) { + this.setProp("version", value); + }, get exchangeCorrelation() { return this.requiredProp("exchangeCorrelation"); }, + set exchangeCorrelation(value) { + this.setProp("exchangeCorrelation", value); + }, get valenceConfiguration() { return this.prop("valenceConfiguration"); }, + set valenceConfiguration(value) { + this.setProp("valenceConfiguration", value); + }, get path() { return this.requiredProp("path"); }, + set path(value) { + this.setProp("path", value); + }, get apps() { return this.requiredProp("apps"); }, + set apps(value) { + this.setProp("apps", value); + }, get filename() { return this.prop("filename"); }, + set filename(value) { + this.setProp("filename", value); + }, get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get cutoffs() { return this.prop("cutoffs"); }, + set cutoffs(value) { + this.setProp("cutoffs", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/ReactionEnergyBarrierPropertySchemaMixin.d.ts b/dist/js/generated/ReactionEnergyBarrierPropertySchemaMixin.d.ts index 898ea19..86ddfb1 100644 --- a/dist/js/generated/ReactionEnergyBarrierPropertySchemaMixin.d.ts +++ b/dist/js/generated/ReactionEnergyBarrierPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { ReactionEnergyBarrierPropertySchema } from "@mat3ra/esse/dist/js/types"; export type ReactionEnergyBarrierPropertySchemaMixin = Omit; export type ReactionEnergyBarrierPropertyInMemoryEntity = InMemoryEntity & ReactionEnergyBarrierPropertySchemaMixin; -export declare function reactionEnergyBarrierPropertySchemaMixin(item: InMemoryEntity): void; +export declare function reactionEnergyBarrierPropertySchemaMixin(item: InMemoryEntity): asserts item is T & ReactionEnergyBarrierPropertySchemaMixin; diff --git a/dist/js/generated/ReactionEnergyBarrierPropertySchemaMixin.js b/dist/js/generated/ReactionEnergyBarrierPropertySchemaMixin.js index 0d15c22..d75d680 100644 --- a/dist/js/generated/ReactionEnergyBarrierPropertySchemaMixin.js +++ b/dist/js/generated/ReactionEnergyBarrierPropertySchemaMixin.js @@ -7,12 +7,21 @@ function reactionEnergyBarrierPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/ReactionEnergyProfilePropertySchemaMixin.d.ts b/dist/js/generated/ReactionEnergyProfilePropertySchemaMixin.d.ts index 55dd4f4..57530e3 100644 --- a/dist/js/generated/ReactionEnergyProfilePropertySchemaMixin.d.ts +++ b/dist/js/generated/ReactionEnergyProfilePropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { ReactionEnergyProfilePropertySchema } from "@mat3ra/esse/dist/js/types"; export type ReactionEnergyProfilePropertySchemaMixin = Omit; export type ReactionEnergyProfilePropertyInMemoryEntity = InMemoryEntity & ReactionEnergyProfilePropertySchemaMixin; -export declare function reactionEnergyProfilePropertySchemaMixin(item: InMemoryEntity): void; +export declare function reactionEnergyProfilePropertySchemaMixin(item: InMemoryEntity): asserts item is T & ReactionEnergyProfilePropertySchemaMixin; diff --git a/dist/js/generated/ReactionEnergyProfilePropertySchemaMixin.js b/dist/js/generated/ReactionEnergyProfilePropertySchemaMixin.js index 1acd2e5..877c7b5 100644 --- a/dist/js/generated/ReactionEnergyProfilePropertySchemaMixin.js +++ b/dist/js/generated/ReactionEnergyProfilePropertySchemaMixin.js @@ -7,18 +7,33 @@ function reactionEnergyProfilePropertySchemaMixin(item) { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp("yDataSeries"); }, + set yDataSeries(value) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/StressTensorPropertySchemaMixin.d.ts b/dist/js/generated/StressTensorPropertySchemaMixin.d.ts index 3a620b9..9ad2e98 100644 --- a/dist/js/generated/StressTensorPropertySchemaMixin.d.ts +++ b/dist/js/generated/StressTensorPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { StressTensorPropertySchema } from "@mat3ra/esse/dist/js/types"; export type StressTensorPropertySchemaMixin = Omit; export type StressTensorPropertyInMemoryEntity = InMemoryEntity & StressTensorPropertySchemaMixin; -export declare function stressTensorPropertySchemaMixin(item: InMemoryEntity): void; +export declare function stressTensorPropertySchemaMixin(item: InMemoryEntity): asserts item is T & StressTensorPropertySchemaMixin; diff --git a/dist/js/generated/StressTensorPropertySchemaMixin.js b/dist/js/generated/StressTensorPropertySchemaMixin.js index 11b95c4..e204d56 100644 --- a/dist/js/generated/StressTensorPropertySchemaMixin.js +++ b/dist/js/generated/StressTensorPropertySchemaMixin.js @@ -7,12 +7,21 @@ function stressTensorPropertySchemaMixin(item) { get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/SurfaceEnergyPropertySchemaMixin.d.ts b/dist/js/generated/SurfaceEnergyPropertySchemaMixin.d.ts index 3892970..2ce8cb4 100644 --- a/dist/js/generated/SurfaceEnergyPropertySchemaMixin.d.ts +++ b/dist/js/generated/SurfaceEnergyPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { SurfaceEnergyPropertySchema } from "@mat3ra/esse/dist/js/types"; export type SurfaceEnergyPropertySchemaMixin = Omit; export type SurfaceEnergyPropertyInMemoryEntity = InMemoryEntity & SurfaceEnergyPropertySchemaMixin; -export declare function surfaceEnergyPropertySchemaMixin(item: InMemoryEntity): void; +export declare function surfaceEnergyPropertySchemaMixin(item: InMemoryEntity): asserts item is T & SurfaceEnergyPropertySchemaMixin; diff --git a/dist/js/generated/SurfaceEnergyPropertySchemaMixin.js b/dist/js/generated/SurfaceEnergyPropertySchemaMixin.js index 37f30ee..d41d012 100644 --- a/dist/js/generated/SurfaceEnergyPropertySchemaMixin.js +++ b/dist/js/generated/SurfaceEnergyPropertySchemaMixin.js @@ -7,12 +7,21 @@ function surfaceEnergyPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.d.ts b/dist/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.d.ts index 8669ac5..873ed91 100644 --- a/dist/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.d.ts +++ b/dist/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { ThermalCorrectionToEnergyPropertySchema } from "@mat3ra/esse/dist/js/types"; export type ThermalCorrectionToEnergyPropertySchemaMixin = Omit; export type ThermalCorrectionToEnergyPropertyInMemoryEntity = InMemoryEntity & ThermalCorrectionToEnergyPropertySchemaMixin; -export declare function thermalCorrectionToEnergyPropertySchemaMixin(item: InMemoryEntity): void; +export declare function thermalCorrectionToEnergyPropertySchemaMixin(item: InMemoryEntity): asserts item is T & ThermalCorrectionToEnergyPropertySchemaMixin; diff --git a/dist/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.js b/dist/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.js index daadc0f..dd41e54 100644 --- a/dist/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.js +++ b/dist/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.js @@ -7,12 +7,21 @@ function thermalCorrectionToEnergyPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.d.ts b/dist/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.d.ts index fab2ab1..1a1d4b0 100644 --- a/dist/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.d.ts +++ b/dist/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { ThermalCorrectionToEnthalpyPropertySchema } from "@mat3ra/esse/dist/js/types"; export type ThermalCorrectionToEnthalpyPropertySchemaMixin = Omit; export type ThermalCorrectionToEnthalpyPropertyInMemoryEntity = InMemoryEntity & ThermalCorrectionToEnthalpyPropertySchemaMixin; -export declare function thermalCorrectionToEnthalpyPropertySchemaMixin(item: InMemoryEntity): void; +export declare function thermalCorrectionToEnthalpyPropertySchemaMixin(item: InMemoryEntity): asserts item is T & ThermalCorrectionToEnthalpyPropertySchemaMixin; diff --git a/dist/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.js b/dist/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.js index 4d6fdea..424df71 100644 --- a/dist/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.js +++ b/dist/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.js @@ -7,12 +7,21 @@ function thermalCorrectionToEnthalpyPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/TotalEnergyContributionsPropertySchemaMixin.d.ts b/dist/js/generated/TotalEnergyContributionsPropertySchemaMixin.d.ts index c5b3378..2a667f9 100644 --- a/dist/js/generated/TotalEnergyContributionsPropertySchemaMixin.d.ts +++ b/dist/js/generated/TotalEnergyContributionsPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { TotalEnergyContributionsPropertySchema } from "@mat3ra/esse/dist/js/types"; export type TotalEnergyContributionsPropertySchemaMixin = Omit; export type TotalEnergyContributionsPropertyInMemoryEntity = InMemoryEntity & TotalEnergyContributionsPropertySchemaMixin; -export declare function totalEnergyContributionsPropertySchemaMixin(item: InMemoryEntity): void; +export declare function totalEnergyContributionsPropertySchemaMixin(item: InMemoryEntity): asserts item is T & TotalEnergyContributionsPropertySchemaMixin; diff --git a/dist/js/generated/TotalEnergyContributionsPropertySchemaMixin.js b/dist/js/generated/TotalEnergyContributionsPropertySchemaMixin.js index 77c18d1..efcad4a 100644 --- a/dist/js/generated/TotalEnergyContributionsPropertySchemaMixin.js +++ b/dist/js/generated/TotalEnergyContributionsPropertySchemaMixin.js @@ -7,51 +7,99 @@ function totalEnergyContributionsPropertySchemaMixin(item) { get temperatureEntropy() { return this.prop("temperatureEntropy"); }, + set temperatureEntropy(value) { + this.setProp("temperatureEntropy", value); + }, get harris_foulkes() { return this.prop("harris_foulkes"); }, + set harris_foulkes(value) { + this.setProp("harris_foulkes", value); + }, get smearing() { return this.prop("smearing"); }, + set smearing(value) { + this.setProp("smearing", value); + }, get one_electron() { return this.prop("one_electron"); }, + set one_electron(value) { + this.setProp("one_electron", value); + }, get hartree() { return this.prop("hartree"); }, + set hartree(value) { + this.setProp("hartree", value); + }, get exchange() { return this.prop("exchange"); }, + set exchange(value) { + this.setProp("exchange", value); + }, get exchange_correlation() { return this.prop("exchange_correlation"); }, + set exchange_correlation(value) { + this.setProp("exchange_correlation", value); + }, get ewald() { return this.prop("ewald"); }, + set ewald(value) { + this.setProp("ewald", value); + }, get alphaZ() { return this.prop("alphaZ"); }, + set alphaZ(value) { + this.setProp("alphaZ", value); + }, get atomicEnergy() { return this.prop("atomicEnergy"); }, + set atomicEnergy(value) { + this.setProp("atomicEnergy", value); + }, get eigenvalues() { return this.prop("eigenvalues"); }, + set eigenvalues(value) { + this.setProp("eigenvalues", value); + }, get PAWDoubleCounting2() { return this.prop("PAWDoubleCounting2"); }, + set PAWDoubleCounting2(value) { + this.setProp("PAWDoubleCounting2", value); + }, get PAWDoubleCounting3() { return this.prop("PAWDoubleCounting3"); }, + set PAWDoubleCounting3(value) { + this.setProp("PAWDoubleCounting3", value); + }, get hartreeFock() { return this.prop("hartreeFock"); }, + set hartreeFock(value) { + this.setProp("hartreeFock", value); + }, get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.prop("units"); }, + set units(value) { + this.setProp("units", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/TotalEnergyPropertySchemaMixin.d.ts b/dist/js/generated/TotalEnergyPropertySchemaMixin.d.ts index 85b58a6..149d1d8 100644 --- a/dist/js/generated/TotalEnergyPropertySchemaMixin.d.ts +++ b/dist/js/generated/TotalEnergyPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { TotalEnergyPropertySchema } from "@mat3ra/esse/dist/js/types"; export type TotalEnergyPropertySchemaMixin = Omit; export type TotalEnergyPropertyInMemoryEntity = InMemoryEntity & TotalEnergyPropertySchemaMixin; -export declare function totalEnergyPropertySchemaMixin(item: InMemoryEntity): void; +export declare function totalEnergyPropertySchemaMixin(item: InMemoryEntity): asserts item is T & TotalEnergyPropertySchemaMixin; diff --git a/dist/js/generated/TotalEnergyPropertySchemaMixin.js b/dist/js/generated/TotalEnergyPropertySchemaMixin.js index b6eb6a8..9d6eb30 100644 --- a/dist/js/generated/TotalEnergyPropertySchemaMixin.js +++ b/dist/js/generated/TotalEnergyPropertySchemaMixin.js @@ -7,12 +7,21 @@ function totalEnergyPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/TotalForcePropertySchemaMixin.d.ts b/dist/js/generated/TotalForcePropertySchemaMixin.d.ts index c9f3d9f..1f2bffe 100644 --- a/dist/js/generated/TotalForcePropertySchemaMixin.d.ts +++ b/dist/js/generated/TotalForcePropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { TotalForcesPropertySchema } from "@mat3ra/esse/dist/js/types"; export type TotalForcePropertySchemaMixin = Omit; export type TotalForcePropertyInMemoryEntity = InMemoryEntity & TotalForcePropertySchemaMixin; -export declare function totalForcePropertySchemaMixin(item: InMemoryEntity): void; +export declare function totalForcePropertySchemaMixin(item: InMemoryEntity): asserts item is T & TotalForcePropertySchemaMixin; diff --git a/dist/js/generated/TotalForcePropertySchemaMixin.js b/dist/js/generated/TotalForcePropertySchemaMixin.js index 1136d8c..e1ab608 100644 --- a/dist/js/generated/TotalForcePropertySchemaMixin.js +++ b/dist/js/generated/TotalForcePropertySchemaMixin.js @@ -7,12 +7,21 @@ function totalForcePropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/ValenceBandOffsetPropertySchemaMixin.d.ts b/dist/js/generated/ValenceBandOffsetPropertySchemaMixin.d.ts index 3a775b4..098e58a 100644 --- a/dist/js/generated/ValenceBandOffsetPropertySchemaMixin.d.ts +++ b/dist/js/generated/ValenceBandOffsetPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { ValenceBandOffsetPropertySchema } from "@mat3ra/esse/dist/js/types"; export type ValenceBandOffsetPropertySchemaMixin = Omit; export type ValenceBandOffsetPropertyInMemoryEntity = InMemoryEntity & ValenceBandOffsetPropertySchemaMixin; -export declare function valenceBandOffsetPropertySchemaMixin(item: InMemoryEntity): void; +export declare function valenceBandOffsetPropertySchemaMixin(item: InMemoryEntity): asserts item is T & ValenceBandOffsetPropertySchemaMixin; diff --git a/dist/js/generated/ValenceBandOffsetPropertySchemaMixin.js b/dist/js/generated/ValenceBandOffsetPropertySchemaMixin.js index 868cbf6..8f7daa3 100644 --- a/dist/js/generated/ValenceBandOffsetPropertySchemaMixin.js +++ b/dist/js/generated/ValenceBandOffsetPropertySchemaMixin.js @@ -7,12 +7,21 @@ function valenceBandOffsetPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/WavefunctionAmplitudePropertySchemaMixin.d.ts b/dist/js/generated/WavefunctionAmplitudePropertySchemaMixin.d.ts index 661862c..3cacfef 100644 --- a/dist/js/generated/WavefunctionAmplitudePropertySchemaMixin.d.ts +++ b/dist/js/generated/WavefunctionAmplitudePropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { WavefunctionAmplitudePropertySchema } from "@mat3ra/esse/dist/js/types"; export type WavefunctionAmplitudePropertySchemaMixin = Omit; export type WavefunctionAmplitudePropertyInMemoryEntity = InMemoryEntity & WavefunctionAmplitudePropertySchemaMixin; -export declare function wavefunctionAmplitudePropertySchemaMixin(item: InMemoryEntity): void; +export declare function wavefunctionAmplitudePropertySchemaMixin(item: InMemoryEntity): asserts item is T & WavefunctionAmplitudePropertySchemaMixin; diff --git a/dist/js/generated/WavefunctionAmplitudePropertySchemaMixin.js b/dist/js/generated/WavefunctionAmplitudePropertySchemaMixin.js index 67d16cb..b0177b7 100644 --- a/dist/js/generated/WavefunctionAmplitudePropertySchemaMixin.js +++ b/dist/js/generated/WavefunctionAmplitudePropertySchemaMixin.js @@ -7,18 +7,33 @@ function wavefunctionAmplitudePropertySchemaMixin(item) { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp("yDataSeries"); }, + set yDataSeries(value) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/generated/WorkflowPropertySchemaMixin.d.ts b/dist/js/generated/WorkflowPropertySchemaMixin.d.ts index c0ba4b4..f908356 100644 --- a/dist/js/generated/WorkflowPropertySchemaMixin.d.ts +++ b/dist/js/generated/WorkflowPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { WorkflowPropertySchema } from "@mat3ra/esse/dist/js/types"; export type WorkflowPropertySchemaMixin = Omit; export type WorkflowPropertyInMemoryEntity = InMemoryEntity & WorkflowPropertySchemaMixin; -export declare function workflowPropertySchemaMixin(item: InMemoryEntity): void; +export declare function workflowPropertySchemaMixin(item: InMemoryEntity): asserts item is T & WorkflowPropertySchemaMixin; diff --git a/dist/js/generated/WorkflowPropertySchemaMixin.js b/dist/js/generated/WorkflowPropertySchemaMixin.js index 444e624..eb121ad 100644 --- a/dist/js/generated/WorkflowPropertySchemaMixin.js +++ b/dist/js/generated/WorkflowPropertySchemaMixin.js @@ -7,35 +7,62 @@ function workflowPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, - get subworkflows() { - return this.requiredProp("subworkflows"); + set name(value) { + this.setProp("name", value); }, - get units() { - return this.requiredProp("units"); + get workflows() { + return this.requiredProp("workflows"); + }, + set workflows(value) { + this.setProp("workflows", value); + }, + get metadata() { + return this.prop("metadata"); + }, + set metadata(value) { + this.setProp("metadata", value); }, get properties() { - return this.prop("properties"); + return this.requiredProp("properties"); + }, + set properties(value) { + this.setProp("properties", value); }, get isUsingDataset() { return this.prop("isUsingDataset"); }, + set isUsingDataset(value) { + this.setProp("isUsingDataset", value); + }, get isMultiMaterial() { return this.prop("isMultiMaterial"); }, - get workflows() { - return this.prop("workflows"); + set isMultiMaterial(value) { + this.setProp("isMultiMaterial", value); + }, + get subworkflows() { + return this.requiredProp("subworkflows"); + }, + set subworkflows(value) { + this.setProp("subworkflows", value); + }, + get units() { + return this.requiredProp("units"); + }, + set units(value) { + this.setProp("units", value); }, get application() { return this.prop("application"); }, + set application(value) { + this.setProp("application", value); + }, get tags() { return this.prop("tags"); }, - get isDefault() { - return this.prop("isDefault"); - }, - get metadata() { - return this.prop("metadata"); + set tags(value) { + this.setProp("tags", value); }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/dist/js/generated/ZeroPointEnergyPropertySchemaMixin.d.ts b/dist/js/generated/ZeroPointEnergyPropertySchemaMixin.d.ts index 79d557b..13d77c8 100644 --- a/dist/js/generated/ZeroPointEnergyPropertySchemaMixin.d.ts +++ b/dist/js/generated/ZeroPointEnergyPropertySchemaMixin.d.ts @@ -2,4 +2,4 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { ZeroPointEnergyPropertySchema } from "@mat3ra/esse/dist/js/types"; export type ZeroPointEnergyPropertySchemaMixin = Omit; export type ZeroPointEnergyPropertyInMemoryEntity = InMemoryEntity & ZeroPointEnergyPropertySchemaMixin; -export declare function zeroPointEnergyPropertySchemaMixin(item: InMemoryEntity): void; +export declare function zeroPointEnergyPropertySchemaMixin(item: InMemoryEntity): asserts item is T & ZeroPointEnergyPropertySchemaMixin; diff --git a/dist/js/generated/ZeroPointEnergyPropertySchemaMixin.js b/dist/js/generated/ZeroPointEnergyPropertySchemaMixin.js index dba35cb..5181994 100644 --- a/dist/js/generated/ZeroPointEnergyPropertySchemaMixin.js +++ b/dist/js/generated/ZeroPointEnergyPropertySchemaMixin.js @@ -7,12 +7,21 @@ function zeroPointEnergyPropertySchemaMixin(item) { get name() { return this.requiredProp("name"); }, + set name(value) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); } diff --git a/dist/js/holders/MetaPropertyHolder.d.ts b/dist/js/holders/MetaPropertyHolder.d.ts index 3ebaf7e..951dad0 100644 --- a/dist/js/holders/MetaPropertyHolder.d.ts +++ b/dist/js/holders/MetaPropertyHolder.d.ts @@ -1,10 +1,9 @@ import { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; -import type { Constructor } from "@mat3ra/code/dist/js/utils/types"; import type { MetaPropertyHolderSchema } from "@mat3ra/esse/dist/js/types"; import { type MetaPropertyHolderMixin } from "./mixins/MetaPropertyHolderMixin"; -type MetaPropertyBase = typeof InMemoryEntity & Constructor; -declare const MetaPropertyHolder_base: MetaPropertyBase; -export default class MetaPropertyHolder extends MetaPropertyHolder_base { +interface MetaPropertyHolder extends MetaPropertyHolderMixin { +} +declare class MetaPropertyHolder extends InMemoryEntity { constructor(data: MetaPropertyHolderSchema); } -export {}; +export default MetaPropertyHolder; diff --git a/dist/js/holders/MetaPropertyHolder.js b/dist/js/holders/MetaPropertyHolder.js index 18dc7c5..3344fa8 100644 --- a/dist/js/holders/MetaPropertyHolder.js +++ b/dist/js/holders/MetaPropertyHolder.js @@ -8,5 +8,5 @@ class MetaPropertyHolder extends entity_1.InMemoryEntity { super(data); } } -exports.default = MetaPropertyHolder; (0, MetaPropertyHolderMixin_1.metaPropertyHolderMixin)(MetaPropertyHolder.prototype); +exports.default = MetaPropertyHolder; diff --git a/dist/js/holders/PropertyHolder.d.ts b/dist/js/holders/PropertyHolder.d.ts index a62c199..e5bc9c8 100644 --- a/dist/js/holders/PropertyHolder.d.ts +++ b/dist/js/holders/PropertyHolder.d.ts @@ -2,9 +2,10 @@ import { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { Constructor } from "@mat3ra/code/dist/js/utils/types"; import type { PropertyHolderSchema } from "@mat3ra/esse/dist/js/types"; import type { PropertyHolderMixin } from "./mixins/PropertyHolderMixin"; -type PropertyHolderBase = typeof InMemoryEntity & Constructor; -declare const PropertyHolder_base: PropertyHolderBase; -export default class PropertyHolder extends PropertyHolder_base { - constructor(data: PropertyHolderSchema); +type Schema = PropertyHolderSchema; +type Base = typeof InMemoryEntity & Constructor; +declare const PropertyHolder_base: Base; +export default class PropertyHolder extends PropertyHolder_base implements Schema { + constructor(data: Schema); } export {}; diff --git a/dist/js/holders/mixins/MetaPropertyHolderMixin.d.ts b/dist/js/holders/mixins/MetaPropertyHolderMixin.d.ts index 909b81e..2d38fa3 100644 --- a/dist/js/holders/mixins/MetaPropertyHolderMixin.d.ts +++ b/dist/js/holders/mixins/MetaPropertyHolderMixin.d.ts @@ -1,12 +1,12 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types"; import type { MetaPropertyHolderSchema } from "@mat3ra/esse/dist/js/types"; +import type { PseudopotentialMetaProperty } from "src/js"; import { type MetaPropertyHolderSchemaMixin } from "../../generated/MetaPropertyHolderSchemaMixin"; -import type MetaProperty from "../../MetaProperty"; export interface MetaPropertySchemaJSON extends MetaPropertyHolderSchema, AnyObject { } export type MetaPropertyHolderMixin = { - property: MetaProperty; + property: PseudopotentialMetaProperty; } & MetaPropertyHolderSchemaMixin; export type MetaPropertyInMemoryEntity = InMemoryEntity & MetaPropertyHolderMixin; export declare function metaPropertyHolderMixin(item: InMemoryEntity): void; diff --git a/dist/js/index.d.ts b/dist/js/index.d.ts index 85b8344..a015a3c 100644 --- a/dist/js/index.d.ts +++ b/dist/js/index.d.ts @@ -22,4 +22,7 @@ export { default as ReactionEnergyProfileProperty } from "./properties/non-scala export { protoPropertyHolderMixin } from "./holders/mixins/ProtoPropertyHolderMixin"; export { propertyHolderMixin } from "./holders/mixins/PropertyHolderMixin"; export { metaPropertyHolderMixin } from "./holders/mixins/MetaPropertyHolderMixin"; +export { default as PropertyHolder } from "./holders/PropertyHolder"; +export { default as MetaPropertyHolder } from "./holders/MetaPropertyHolder"; +export { default as ProtoPropertyHolder } from "./holders/ProtoPropertyHolder"; export * from "./types"; diff --git a/dist/js/index.js b/dist/js/index.js index c7e8c51..7058daf 100644 --- a/dist/js/index.js +++ b/dist/js/index.js @@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.metaPropertyHolderMixin = exports.propertyHolderMixin = exports.protoPropertyHolderMixin = exports.ReactionEnergyProfileProperty = exports.WavefunctionAmplitudeProperty = exports.PotentialProfileProperty = exports.ChargeDensityProfileProperty = exports.BandStructureProperty = exports.ThermalCorrectionToEnthalpyProperty = exports.ThermalCorrectionToEnergyProperty = exports.LUMOEnergyProperty = exports.HOMOEnergyProperty = exports.TotalEnergyProperty = exports.SurfaceEnergyProperty = exports.ReactionEnergyBarrierProperty = exports.PressureProperty = exports.IsRelaxedProperty = exports.BandGapsProperty = exports.FinalStructureProperty = exports.PseudopotentialMetaProperty = exports.MetaProperty = exports.Property = exports.PropertyType = exports.PropertyName = exports.PropertyFactory = void 0; +exports.ProtoPropertyHolder = exports.MetaPropertyHolder = exports.PropertyHolder = exports.metaPropertyHolderMixin = exports.propertyHolderMixin = exports.protoPropertyHolderMixin = exports.ReactionEnergyProfileProperty = exports.WavefunctionAmplitudeProperty = exports.PotentialProfileProperty = exports.ChargeDensityProfileProperty = exports.BandStructureProperty = exports.ThermalCorrectionToEnthalpyProperty = exports.ThermalCorrectionToEnergyProperty = exports.LUMOEnergyProperty = exports.HOMOEnergyProperty = exports.TotalEnergyProperty = exports.SurfaceEnergyProperty = exports.ReactionEnergyBarrierProperty = exports.PressureProperty = exports.IsRelaxedProperty = exports.BandGapsProperty = exports.FinalStructureProperty = exports.PseudopotentialMetaProperty = exports.MetaProperty = exports.Property = exports.PropertyType = exports.PropertyName = exports.PropertyFactory = void 0; var PropertyFactory_1 = require("./PropertyFactory"); Object.defineProperty(exports, "PropertyFactory", { enumerable: true, get: function () { return __importDefault(PropertyFactory_1).default; } }); var settings_1 = require("./settings"); @@ -67,4 +67,10 @@ var PropertyHolderMixin_1 = require("./holders/mixins/PropertyHolderMixin"); Object.defineProperty(exports, "propertyHolderMixin", { enumerable: true, get: function () { return PropertyHolderMixin_1.propertyHolderMixin; } }); var MetaPropertyHolderMixin_1 = require("./holders/mixins/MetaPropertyHolderMixin"); Object.defineProperty(exports, "metaPropertyHolderMixin", { enumerable: true, get: function () { return MetaPropertyHolderMixin_1.metaPropertyHolderMixin; } }); +var PropertyHolder_1 = require("./holders/PropertyHolder"); +Object.defineProperty(exports, "PropertyHolder", { enumerable: true, get: function () { return __importDefault(PropertyHolder_1).default; } }); +var MetaPropertyHolder_1 = require("./holders/MetaPropertyHolder"); +Object.defineProperty(exports, "MetaPropertyHolder", { enumerable: true, get: function () { return __importDefault(MetaPropertyHolder_1).default; } }); +var ProtoPropertyHolder_1 = require("./holders/ProtoPropertyHolder"); +Object.defineProperty(exports, "ProtoPropertyHolder", { enumerable: true, get: function () { return __importDefault(ProtoPropertyHolder_1).default; } }); __exportStar(require("./types"), exports); diff --git a/dist/js/meta_properties/PseudopotentialMetaProperty.d.ts b/dist/js/meta_properties/PseudopotentialMetaProperty.d.ts index 6eb236e..55f12f3 100644 --- a/dist/js/meta_properties/PseudopotentialMetaProperty.d.ts +++ b/dist/js/meta_properties/PseudopotentialMetaProperty.d.ts @@ -10,6 +10,17 @@ declare enum CompatibleExchangeCorrelationKey { hse06 = "hse06" } type Base = typeof MetaProperty & Constructor; +export type ExchangeCorrelation = { + functional?: string; + approximation: string; +}; +export type PseudopotentialFilter = { + searchText?: string; + appName?: string; + type?: string; + exchangeCorrelation?: ExchangeCorrelation; + elements?: string[]; +}; declare const PseudopotentialMetaProperty_base: Base; export default class PseudopotentialMetaProperty extends PseudopotentialMetaProperty_base implements Schema { static readonly propertyName = PropertyName.pseudopotential; @@ -32,10 +43,7 @@ export default class PseudopotentialMetaProperty extends PseudopotentialMetaProp /** * @summary Exclusive filter of raw data by all fields of the passed object */ - static filterRawDataByExchangeCorrelation(rawData: PseudopotentialMetaProperty[], exchangeCorrelation: { - functional: string; - approximation: string; - }): PseudopotentialMetaProperty[]; + static filterRawDataByExchangeCorrelation(rawData: PseudopotentialMetaProperty[], exchangeCorrelation: ExchangeCorrelation): PseudopotentialMetaProperty[]; static filterUnique(array: PseudopotentialMetaProperty[]): PseudopotentialMetaProperty[]; static filterUniqueByAppName(array: PseudopotentialMetaProperty[], appName: string): PseudopotentialMetaProperty[]; static filterRawDataByPath(rawData: RawDataObject[], pseudoPath?: string): RawDataObject[]; @@ -54,16 +62,7 @@ export default class PseudopotentialMetaProperty extends PseudopotentialMetaProp * elements: ["Si", "Ne", "Fe"], * } */ - static applyPseudoFilters(pseudos: PseudopotentialMetaProperty[], pseudoFilter: { - searchText?: string; - appName?: string; - type?: string; - exchangeCorrelation?: { - functional: keyof typeof PseudopotentialMetaProperty.compatibleExchangeCorrelation; - approximation: string; - }; - elements?: string[]; - }): PseudopotentialMetaProperty[]; + static applyPseudoFilters(pseudos: PseudopotentialMetaProperty[], pseudoFilter: PseudopotentialFilter): PseudopotentialMetaProperty[]; /** * Sorts pseudos by the given pattern. * NOTE: This is currently used to prioritize gbrv pseudopotentials over norm-conserving ones for QE. @@ -73,6 +72,7 @@ export default class PseudopotentialMetaProperty extends PseudopotentialMetaProp * Prioritizes pseudos with 'default' and '5.2' (version) in path (VASP) */ static sortByPathVASP(pseudos: PseudopotentialMetaProperty[], version?: string): PseudopotentialMetaProperty[]; + static sortByPathApplicationSpecific(pseudos: PseudopotentialMetaProperty[], appName?: string): PseudopotentialMetaProperty[]; static filterByType(pseudos: PseudopotentialMetaProperty[], pseudoType?: string): PseudopotentialMetaProperty[]; } export {}; diff --git a/dist/js/meta_properties/PseudopotentialMetaProperty.js b/dist/js/meta_properties/PseudopotentialMetaProperty.js index cf4714b..cdfac04 100644 --- a/dist/js/meta_properties/PseudopotentialMetaProperty.js +++ b/dist/js/meta_properties/PseudopotentialMetaProperty.js @@ -55,7 +55,7 @@ class PseudopotentialMetaProperty extends MetaProperty_1.default { const { functional } = exchangeCorrelation; return rawData.filter((item) => { var _a, _b; - return this.isCompatibleWithOther(functional) + return functional && this.isCompatibleWithOther(functional) ? this.compatibleExchangeCorrelation[functional].includes(((_a = item.exchangeCorrelation) === null || _a === void 0 ? void 0 : _a.functional) || "") : functional === ((_b = item.exchangeCorrelation) === null || _b === void 0 ? void 0 : _b.functional); }); @@ -142,6 +142,12 @@ class PseudopotentialMetaProperty extends MetaProperty_1.default { return 0; }); } + static sortByPathApplicationSpecific(pseudos, appName) { + if (appName === "vasp") { + return this.sortByPathVASP(pseudos); + } + return pseudos; + } static filterByType(pseudos, pseudoType) { if (pseudoType === undefined || pseudoType === "any") return pseudos; diff --git a/dist/js/properties/scalar/ThermalCorrectionToEnergyProperty.d.ts b/dist/js/properties/scalar/ThermalCorrectionToEnergyProperty.d.ts index de465ac..be0d942 100644 --- a/dist/js/properties/scalar/ThermalCorrectionToEnergyProperty.d.ts +++ b/dist/js/properties/scalar/ThermalCorrectionToEnergyProperty.d.ts @@ -1,15 +1,15 @@ -import type { Constructor } from "@mat3ra/code/dist/js/utils/types"; import type { ThermalCorrectionToEnergyPropertySchema } from "@mat3ra/esse/dist/js/types"; import { ThermalCorrectionToEnergyPropertySchemaMixin } from "../../generated/ThermalCorrectionToEnergyPropertySchemaMixin"; import Property from "../../Property"; import { PropertyName, PropertyType } from "../../settings"; type Schema = ThermalCorrectionToEnergyPropertySchema; -type Base = typeof Property & Constructor; -declare const ThermalCorrectionToEnergyProperty_base: Base; -export default class ThermalCorrectionToEnergyProperty extends ThermalCorrectionToEnergyProperty_base implements Schema { +interface ThermalCorrectionToEnergyProperty extends ThermalCorrectionToEnergyPropertySchemaMixin { +} +declare class ThermalCorrectionToEnergyProperty extends Property implements Schema { static readonly propertyType = PropertyType.scalar; static readonly propertyName = PropertyName.thermal_correction_to_energy; static readonly isRefined = true; + name: Schema["name"]; constructor(config: Omit); } -export {}; +export default ThermalCorrectionToEnergyProperty; diff --git a/dist/js/properties/scalar/ThermalCorrectionToEnergyProperty.js b/dist/js/properties/scalar/ThermalCorrectionToEnergyProperty.js index 3f657ba..d9f51e1 100644 --- a/dist/js/properties/scalar/ThermalCorrectionToEnergyProperty.js +++ b/dist/js/properties/scalar/ThermalCorrectionToEnergyProperty.js @@ -14,5 +14,5 @@ class ThermalCorrectionToEnergyProperty extends Property_1.default { ThermalCorrectionToEnergyProperty.propertyType = settings_1.PropertyType.scalar; ThermalCorrectionToEnergyProperty.propertyName = settings_1.PropertyName.thermal_correction_to_energy; ThermalCorrectionToEnergyProperty.isRefined = true; -exports.default = ThermalCorrectionToEnergyProperty; (0, ThermalCorrectionToEnergyPropertySchemaMixin_1.thermalCorrectionToEnergyPropertySchemaMixin)(ThermalCorrectionToEnergyProperty.prototype); +exports.default = ThermalCorrectionToEnergyProperty; diff --git a/dist/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.d.ts b/dist/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.d.ts index 2aaccb2..a07a4af 100644 --- a/dist/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.d.ts +++ b/dist/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.d.ts @@ -1,15 +1,15 @@ -import type { Constructor } from "@mat3ra/code/dist/js/utils/types"; import type { ThermalCorrectionToEnthalpyPropertySchema } from "@mat3ra/esse/dist/js/types"; import { ThermalCorrectionToEnthalpyPropertySchemaMixin } from "../../generated/ThermalCorrectionToEnthalpyPropertySchemaMixin"; import Property from "../../Property"; import { PropertyName, PropertyType } from "../../settings"; type Schema = ThermalCorrectionToEnthalpyPropertySchema; -type Base = typeof Property & Constructor; -declare const ThermalCorrectionToEnthalpyProperty_base: Base; -export default class ThermalCorrectionToEnthalpyProperty extends ThermalCorrectionToEnthalpyProperty_base implements Schema { +interface ThermalCorrectionToEnthalpyProperty extends ThermalCorrectionToEnthalpyPropertySchemaMixin { +} +declare class ThermalCorrectionToEnthalpyProperty extends Property implements Schema { static readonly propertyType = PropertyType.scalar; static readonly propertyName = PropertyName.thermal_correction_to_enthalpy; static readonly isRefined = true; + name: Schema["name"]; constructor(config: Omit); } -export {}; +export default ThermalCorrectionToEnthalpyProperty; diff --git a/dist/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.js b/dist/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.js index a426c20..d74547b 100644 --- a/dist/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.js +++ b/dist/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.js @@ -14,5 +14,5 @@ class ThermalCorrectionToEnthalpyProperty extends Property_1.default { ThermalCorrectionToEnthalpyProperty.propertyType = settings_1.PropertyType.scalar; ThermalCorrectionToEnthalpyProperty.propertyName = settings_1.PropertyName.thermal_correction_to_enthalpy; ThermalCorrectionToEnthalpyProperty.isRefined = true; -exports.default = ThermalCorrectionToEnthalpyProperty; (0, ThermalCorrectionToEnthalpyPropertySchemaMixin_1.thermalCorrectionToEnthalpyPropertySchemaMixin)(ThermalCorrectionToEnthalpyProperty.prototype); +exports.default = ThermalCorrectionToEnthalpyProperty; diff --git a/dist/js/types.d.ts b/dist/js/types.d.ts index 898d76d..04104d7 100644 --- a/dist/js/types.d.ts +++ b/dist/js/types.d.ts @@ -12,3 +12,4 @@ export type { default as DensityOfStatesProperty } from "./properties/non-scalar export type { default as DielectricTensorProperty } from "./properties/non-scalar/DielectricTensorProperty"; export type { default as PhononDispersionsProperty } from "./properties/non-scalar/PhononDispersionsProperty"; export type { default as PhononDOSProperty } from "./properties/non-scalar/PhononDOSProperty"; +export type { PseudopotentialFilter, ExchangeCorrelation, } from "./meta_properties/PseudopotentialMetaProperty"; diff --git a/package-lock.json b/package-lock.json index 8cba195..67a1e9f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,9 +15,9 @@ "devDependencies": { "@babel/eslint-parser": "^7.16.3", "@exabyte-io/eslint-config": "2025.5.13-0", - "@mat3ra/code": "2025.10.8-0", - "@mat3ra/esse": "2026.3.29-0", - "@mat3ra/made": "2025.10.7-0", + "@mat3ra/code": "2026.5.27-0", + "@mat3ra/esse": "2026.5.27-0", + "@mat3ra/made": "2026.5.28-0", "@mat3ra/tsconfig": "2024.6.3-0", "@types/lodash": "^4.17.20", "@typescript-eslint/eslint-plugin": "^5.9.1", @@ -2785,9 +2785,9 @@ "license": "MIT" }, "node_modules/@mat3ra/code": { - "version": "2025.10.8-0", - "resolved": "https://registry.npmjs.org/@mat3ra/code/-/code-2025.10.8-0.tgz", - "integrity": "sha512-DeRF2J1u8fDHSvW4lkXbwUEsdhcoMCzTzEyZR0Y9SBCdYxaD9w9+t1/Z7dJUeX4g1mlZkqVJ1NsheyqdOAUxJQ==", + "version": "2026.5.27-0", + "resolved": "https://registry.npmjs.org/@mat3ra/code/-/code-2026.5.27-0.tgz", + "integrity": "sha512-uPlUgleg2pRTzCZREnNQrsOjevoePE/wdJ43Eux+3CP4HMrwyA05c2uG/7flLCNQ/fe746j1FcZOeKB6+xECSA==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -2902,9 +2902,9 @@ } }, "node_modules/@mat3ra/esse": { - "version": "2026.3.29-0", - "resolved": "https://registry.npmjs.org/@mat3ra/esse/-/esse-2026.3.29-0.tgz", - "integrity": "sha512-Nx4fCbGlw51IPFJXhciDO+jJR1Lqw7f5bnUS4CVWWs1xs7AKYSRuX4pxV9zGig646JqLnvYqkXo63Ub52yXH+Q==", + "version": "2026.5.27-0", + "resolved": "https://registry.npmjs.org/@mat3ra/esse/-/esse-2026.5.27-0.tgz", + "integrity": "sha512-0/z6ORG+hNK64g/5S6JOZbgSUlTJDK4weMkkK4OIqYO4W26GQWRhvtRg4ydK38kV+IUHnwNYlEl3Z0b6XOwqTg==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -2912,24 +2912,24 @@ "@babel/core": "^7.29.0", "@babel/eslint-parser": "^7.28.6", "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/preset-env": "^7.29.0", + "@babel/preset-env": "^7.29.2", "@babel/preset-react": "^7.28.5", "@babel/preset-typescript": "^7.28.5", "@babel/register": "^7.28.6", - "@babel/runtime-corejs3": "^7.29.0", - "@mat3ra/utils": "2026.3.7-0", + "@babel/runtime-corejs3": "^7.29.2", + "@mat3ra/utils": "^2026.4.15-1", "@types/chai": "^4.3.20", "@types/js-yaml": "^4.0.9", "@types/json-schema-merge-allof": "^0.6.5", "@types/mocha": "^10.0.10", - "ajv": "^8.18.0", + "ajv": "^8.20.0", "ajv-formats": "^2.1.1", "js-yaml": "^4.1.1", "json-schema": "^0.4.0", - "json-schema-deref-sync": "0.14.0", + "json-schema-deref-sync": "^0.14.0", "json-schema-merge-allof": "^0.8.1", "json-schema-to-typescript": "^15.0.4", - "lodash": "4.17.23" + "lodash": "^4.18.1" }, "engines": { "node": ">=14.0.0" @@ -3164,9 +3164,9 @@ } }, "node_modules/@mat3ra/esse/node_modules/ajv": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz", - "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==", + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", "dev": true, "license": "MIT", "dependencies": { @@ -3303,9 +3303,9 @@ } }, "node_modules/@mat3ra/made": { - "version": "2025.10.7-0", - "resolved": "https://registry.npmjs.org/@mat3ra/made/-/made-2025.10.7-0.tgz", - "integrity": "sha512-JjiTIkNRXuJqmY+k1LKdjxCQim5iHIAVWAf8WMseESSmbZCN45X8G4weBQPy5hW/SJpoeoL8PBpdl88HfWpMeg==", + "version": "2026.5.28-0", + "resolved": "https://registry.npmjs.org/@mat3ra/made/-/made-2026.5.28-0.tgz", + "integrity": "sha512-keRejsYZRzM2okqJFHRZ5ohClVZbwVFMGgPmoPdeiZF4/igON2Se/s0N0dtssTo8/bl7h7s1J5VN7Z6ZK13/HQ==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -3401,9 +3401,9 @@ } }, "node_modules/@mat3ra/utils": { - "version": "2026.3.7-0", - "resolved": "https://registry.npmjs.org/@mat3ra/utils/-/utils-2026.3.7-0.tgz", - "integrity": "sha512-qUxsyzo4s1G8MjHYbF+QHdXq0KgymJ3ey3x+dswCak69WiB0w8OuO5IOqyXS0RWoEB2mj7Ccm4ZN7uTSWZLHxw==", + "version": "2026.4.15-1", + "resolved": "https://registry.npmjs.org/@mat3ra/utils/-/utils-2026.4.15-1.tgz", + "integrity": "sha512-ahIUAc9QzbZ+G3rvIPW5BqAwa4pPMjDwH4k3+1SrXSYUhM67z+S4FTpcsfNn4WkAgmJ2Az9l026RvP3xZcXF9g==", "dev": true, "license": "ISC", "dependencies": { @@ -5188,9 +5188,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.5.328", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.328.tgz", - "integrity": "sha512-QNQ5l45DzYytThO21403XN3FvK0hOkWDG8viNf6jqS42msJ8I4tGDSpBCgvDRRPnkffafiwAym2X2eHeGD2V0w==", + "version": "1.5.325", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.325.tgz", + "integrity": "sha512-PwfIw7WQSt3xX7yOf5OE/unLzsK9CaN2f/FvV3WjPR1Knoc1T9vePRVV4W1EM301JzzysK51K7FNKcusCr0zYA==", "dev": true, "license": "ISC" }, @@ -7889,9 +7889,9 @@ } }, "node_modules/lodash": { - "version": "4.17.23", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz", - "integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", + "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", "license": "MIT" }, "node_modules/lodash.debounce": { diff --git a/package.json b/package.json index 959613c..59c3f1d 100644 --- a/package.json +++ b/package.json @@ -51,13 +51,13 @@ "devDependencies": { "@babel/eslint-parser": "^7.16.3", "@exabyte-io/eslint-config": "2025.5.13-0", - "@mat3ra/code": "2025.10.8-0", - "@mat3ra/esse": "2026.3.29-0", - "@mat3ra/made": "2025.10.7-0", + "@mat3ra/code": "2026.5.27-0", + "@mat3ra/esse": "2026.5.27-0", + "@mat3ra/made": "2026.5.28-0", "@mat3ra/tsconfig": "2024.6.3-0", + "@types/lodash": "^4.17.20", "@typescript-eslint/eslint-plugin": "^5.9.1", "@typescript-eslint/parser": "^5.9.1", - "@types/lodash": "^4.17.20", "chai": "^4.3.4", "eslint": "^7.32.0", "eslint-config-airbnb": "^19.0.2", diff --git a/scripts/generate-mixins.ts b/scripts/generate-mixins.ts index b33124e..c78a914 100644 --- a/scripts/generate-mixins.ts +++ b/scripts/generate-mixins.ts @@ -98,6 +98,8 @@ const OUTPUT_PATHS = { "src/js/generated/AtomicConstraintsPropertySchemaMixin.ts", "properties-directory/structural/basis/boundary-conditions": "src/js/generated/BoundaryConditionsPropertySchemaMixin.ts", + "properties-directory/non-scalar/wavefunction-amplitude": + "src/js/generated/WavefunctionAmplitudePropertySchemaMixin.ts", }; function main() { diff --git a/src/js/PropertyFactory.ts b/src/js/PropertyFactory.ts index feb1ec2..88e42a9 100644 --- a/src/js/PropertyFactory.ts +++ b/src/js/PropertyFactory.ts @@ -6,7 +6,6 @@ import type { } from "@mat3ra/esse/dist/js/types"; import PseudopotentialProperty from "./meta_properties/PseudopotentialMetaProperty"; -import type MetaProperty from "./MetaProperty"; import AveragePotentialProfileProperty from "./properties/non-scalar/AveragePotentialProfileProperty"; import BandGapsProperty from "./properties/non-scalar/BandGapsProperty"; import BandStructureProperty from "./properties/non-scalar/BandStructureProperty"; @@ -209,7 +208,7 @@ export default class PropertyFactory { return new PropertyClass(config); } - static createMetaProperty(config: AnyMetaProperty): MetaProperty { + static createMetaProperty(config: AnyMetaProperty) { const { name } = config; const PropertyClass = META_PROPERTY_CLASS_MAP[name]; return new PropertyClass(config); diff --git a/src/js/generated/AtomicConstraintsPropertySchemaMixin.ts b/src/js/generated/AtomicConstraintsPropertySchemaMixin.ts index 3180713..b910679 100644 --- a/src/js/generated/AtomicConstraintsPropertySchemaMixin.ts +++ b/src/js/generated/AtomicConstraintsPropertySchemaMixin.ts @@ -9,15 +9,23 @@ export type AtomicConstraintsPropertySchemaMixin = Omit< export type AtomicConstraintsPropertyInMemoryEntity = InMemoryEntity & AtomicConstraintsPropertySchemaMixin; -export function atomicConstraintsPropertySchemaMixin(item: InMemoryEntity) { +export function atomicConstraintsPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & AtomicConstraintsPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & AtomicConstraintsPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: AtomicConstraintsPropertySchema["name"]) { + this.setProp("name", value); + }, get values() { return this.requiredProp("values"); }, + set values(value: AtomicConstraintsPropertySchema["values"]) { + this.setProp("values", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/AtomicForcesPropertySchemaMixin.ts b/src/js/generated/AtomicForcesPropertySchemaMixin.ts index 62ddf44..1c3cf54 100644 --- a/src/js/generated/AtomicForcesPropertySchemaMixin.ts +++ b/src/js/generated/AtomicForcesPropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type AtomicForcesPropertySchemaMixin = Omit< export type AtomicForcesPropertyInMemoryEntity = InMemoryEntity & AtomicForcesPropertySchemaMixin; -export function atomicForcesPropertySchemaMixin(item: InMemoryEntity) { +export function atomicForcesPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & AtomicForcesPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & AtomicForcesPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: AtomicForcesPropertySchema["name"]) { + this.setProp("name", value); + }, get values() { return this.requiredProp("values"); }, + set values(value: AtomicForcesPropertySchema["values"]) { + this.setProp("values", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: AtomicForcesPropertySchema["units"]) { + this.setProp("units", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/AveragePotentialProfilePropertySchemaMixin.ts b/src/js/generated/AveragePotentialProfilePropertySchemaMixin.ts index 00e16f3..b8e9703 100644 --- a/src/js/generated/AveragePotentialProfilePropertySchemaMixin.ts +++ b/src/js/generated/AveragePotentialProfilePropertySchemaMixin.ts @@ -9,28 +9,45 @@ export type AveragePotentialProfilePropertySchemaMixin = Omit< export type AveragePotentialProfilePropertyInMemoryEntity = InMemoryEntity & AveragePotentialProfilePropertySchemaMixin; -export function averagePotentialProfilePropertySchemaMixin(item: InMemoryEntity) { +export function averagePotentialProfilePropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & AveragePotentialProfilePropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & AveragePotentialProfilePropertySchemaMixin = { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value: AveragePotentialProfilePropertySchema["xAxis"]) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value: AveragePotentialProfilePropertySchema["yAxis"]) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value: AveragePotentialProfilePropertySchema["name"]) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp( "xDataArray", ); }, + set xDataArray(value: AveragePotentialProfilePropertySchema["xDataArray"]) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp( "yDataSeries", ); }, + set yDataSeries(value: AveragePotentialProfilePropertySchema["yDataSeries"]) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/BandGapsPropertySchemaMixin.ts b/src/js/generated/BandGapsPropertySchemaMixin.ts index a3662b3..6f630cf 100644 --- a/src/js/generated/BandGapsPropertySchemaMixin.ts +++ b/src/js/generated/BandGapsPropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type BandGapsPropertySchemaMixin = Omit< export type BandGapsPropertyInMemoryEntity = InMemoryEntity & BandGapsPropertySchemaMixin; -export function bandGapsPropertySchemaMixin(item: InMemoryEntity) { +export function bandGapsPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & BandGapsPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & BandGapsPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: BandGapsPropertySchema["name"]) { + this.setProp("name", value); + }, get values() { return this.requiredProp("values"); }, + set values(value: BandGapsPropertySchema["values"]) { + this.setProp("values", value); + }, get eigenvalues() { return this.prop("eigenvalues"); }, + set eigenvalues(value: BandGapsPropertySchema["eigenvalues"]) { + this.setProp("eigenvalues", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/BandStructurePropertySchemaMixin.ts b/src/js/generated/BandStructurePropertySchemaMixin.ts index cfc8ea6..1d4171c 100644 --- a/src/js/generated/BandStructurePropertySchemaMixin.ts +++ b/src/js/generated/BandStructurePropertySchemaMixin.ts @@ -8,27 +8,47 @@ export type BandStructurePropertySchemaMixin = Omit< export type BandStructurePropertyInMemoryEntity = InMemoryEntity & BandStructurePropertySchemaMixin; -export function bandStructurePropertySchemaMixin(item: InMemoryEntity) { +export function bandStructurePropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & BandStructurePropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & BandStructurePropertySchemaMixin = { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value: BandStructurePropertySchema["xAxis"]) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value: BandStructurePropertySchema["yAxis"]) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value: BandStructurePropertySchema["name"]) { + this.setProp("name", value); + }, get spin() { return this.requiredProp("spin"); }, + set spin(value: BandStructurePropertySchema["spin"]) { + this.setProp("spin", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value: BandStructurePropertySchema["xDataArray"]) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp("yDataSeries"); }, + set yDataSeries(value: BandStructurePropertySchema["yDataSeries"]) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/BoundaryConditionsPropertySchemaMixin.ts b/src/js/generated/BoundaryConditionsPropertySchemaMixin.ts index 9952522..b9d23b6 100644 --- a/src/js/generated/BoundaryConditionsPropertySchemaMixin.ts +++ b/src/js/generated/BoundaryConditionsPropertySchemaMixin.ts @@ -9,18 +9,29 @@ export type BoundaryConditionsPropertySchemaMixin = Omit< export type BoundaryConditionsPropertyInMemoryEntity = InMemoryEntity & BoundaryConditionsPropertySchemaMixin; -export function boundaryConditionsPropertySchemaMixin(item: InMemoryEntity) { +export function boundaryConditionsPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & BoundaryConditionsPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & BoundaryConditionsPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: BoundaryConditionsPropertySchema["name"]) { + this.setProp("name", value); + }, get type() { return this.requiredProp("type"); }, + set type(value: BoundaryConditionsPropertySchema["type"]) { + this.setProp("type", value); + }, get offset() { return this.requiredProp("offset"); }, + set offset(value: BoundaryConditionsPropertySchema["offset"]) { + this.setProp("offset", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/ChargeDensityProfilePropertySchemaMixin.ts b/src/js/generated/ChargeDensityProfilePropertySchemaMixin.ts index 40dc555..baff596 100644 --- a/src/js/generated/ChargeDensityProfilePropertySchemaMixin.ts +++ b/src/js/generated/ChargeDensityProfilePropertySchemaMixin.ts @@ -9,28 +9,45 @@ export type ChargeDensityProfilePropertySchemaMixin = Omit< export type ChargeDensityProfilePropertyInMemoryEntity = InMemoryEntity & ChargeDensityProfilePropertySchemaMixin; -export function chargeDensityProfilePropertySchemaMixin(item: InMemoryEntity) { +export function chargeDensityProfilePropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & ChargeDensityProfilePropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & ChargeDensityProfilePropertySchemaMixin = { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value: ChargeDensityProfilePropertySchema["xAxis"]) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value: ChargeDensityProfilePropertySchema["yAxis"]) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value: ChargeDensityProfilePropertySchema["name"]) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp( "xDataArray", ); }, + set xDataArray(value: ChargeDensityProfilePropertySchema["xDataArray"]) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp( "yDataSeries", ); }, + set yDataSeries(value: ChargeDensityProfilePropertySchema["yDataSeries"]) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/ConvergenceElectronicPropertySchemaMixin.ts b/src/js/generated/ConvergenceElectronicPropertySchemaMixin.ts index a2a2fb8..0c9dbcd 100644 --- a/src/js/generated/ConvergenceElectronicPropertySchemaMixin.ts +++ b/src/js/generated/ConvergenceElectronicPropertySchemaMixin.ts @@ -9,18 +9,29 @@ export type ConvergenceElectronicPropertySchemaMixin = Omit< export type ConvergenceElectronicPropertyInMemoryEntity = InMemoryEntity & ConvergenceElectronicPropertySchemaMixin; -export function convergenceElectronicPropertySchemaMixin(item: InMemoryEntity) { +export function convergenceElectronicPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & ConvergenceElectronicPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & ConvergenceElectronicPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: ConvergenceElectronicPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: ConvergenceElectronicPropertySchema["units"]) { + this.setProp("units", value); + }, get data() { return this.requiredProp("data"); }, + set data(value: ConvergenceElectronicPropertySchema["data"]) { + this.setProp("data", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/ConvergenceIonicPropertySchemaMixin.ts b/src/js/generated/ConvergenceIonicPropertySchemaMixin.ts index ad8fc8f..063021b 100644 --- a/src/js/generated/ConvergenceIonicPropertySchemaMixin.ts +++ b/src/js/generated/ConvergenceIonicPropertySchemaMixin.ts @@ -9,21 +9,35 @@ export type ConvergenceIonicPropertySchemaMixin = Omit< export type ConvergenceIonicPropertyInMemoryEntity = InMemoryEntity & ConvergenceIonicPropertySchemaMixin; -export function convergenceIonicPropertySchemaMixin(item: InMemoryEntity) { +export function convergenceIonicPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & ConvergenceIonicPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & ConvergenceIonicPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: ConvergenceIonicPropertySchema["name"]) { + this.setProp("name", value); + }, get tolerance() { return this.prop("tolerance"); }, + set tolerance(value: ConvergenceIonicPropertySchema["tolerance"]) { + this.setProp("tolerance", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: ConvergenceIonicPropertySchema["units"]) { + this.setProp("units", value); + }, get data() { return this.requiredProp("data"); }, + set data(value: ConvergenceIonicPropertySchema["data"]) { + this.setProp("data", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/DensityOfStatesPropertySchemaMixin.ts b/src/js/generated/DensityOfStatesPropertySchemaMixin.ts index 5f30fbb..b8069fc 100644 --- a/src/js/generated/DensityOfStatesPropertySchemaMixin.ts +++ b/src/js/generated/DensityOfStatesPropertySchemaMixin.ts @@ -9,27 +9,47 @@ export type DensityOfStatesPropertySchemaMixin = Omit< export type DensityOfStatesPropertyInMemoryEntity = InMemoryEntity & DensityOfStatesPropertySchemaMixin; -export function densityOfStatesPropertySchemaMixin(item: InMemoryEntity) { +export function densityOfStatesPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & DensityOfStatesPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & DensityOfStatesPropertySchemaMixin = { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value: DensityOfStatesPropertySchema["xAxis"]) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value: DensityOfStatesPropertySchema["yAxis"]) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value: DensityOfStatesPropertySchema["name"]) { + this.setProp("name", value); + }, get legend() { return this.requiredProp("legend"); }, + set legend(value: DensityOfStatesPropertySchema["legend"]) { + this.setProp("legend", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value: DensityOfStatesPropertySchema["xDataArray"]) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp("yDataSeries"); }, + set yDataSeries(value: DensityOfStatesPropertySchema["yDataSeries"]) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/DielectricTensorPropertySchemaMixin.ts b/src/js/generated/DielectricTensorPropertySchemaMixin.ts index b3bed39..d8dca2e 100644 --- a/src/js/generated/DielectricTensorPropertySchemaMixin.ts +++ b/src/js/generated/DielectricTensorPropertySchemaMixin.ts @@ -9,15 +9,23 @@ export type DielectricTensorPropertySchemaMixin = Omit< export type DielectricTensorPropertyInMemoryEntity = InMemoryEntity & DielectricTensorPropertySchemaMixin; -export function dielectricTensorPropertySchemaMixin(item: InMemoryEntity) { +export function dielectricTensorPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & DielectricTensorPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & DielectricTensorPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: DielectricTensorPropertySchema["name"]) { + this.setProp("name", value); + }, get values() { return this.requiredProp("values"); }, + set values(value: DielectricTensorPropertySchema["values"]) { + this.setProp("values", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/FermiEnergyPropertySchemaMixin.ts b/src/js/generated/FermiEnergyPropertySchemaMixin.ts index 053f19c..a58d098 100644 --- a/src/js/generated/FermiEnergyPropertySchemaMixin.ts +++ b/src/js/generated/FermiEnergyPropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type FermiEnergyPropertySchemaMixin = Omit< export type FermiEnergyPropertyInMemoryEntity = InMemoryEntity & FermiEnergyPropertySchemaMixin; -export function fermiEnergyPropertySchemaMixin(item: InMemoryEntity) { +export function fermiEnergyPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & FermiEnergyPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & FermiEnergyPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: FermiEnergyPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: FermiEnergyPropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: FermiEnergyPropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/FileContentPropertySchemaMixin.ts b/src/js/generated/FileContentPropertySchemaMixin.ts index 567bbda..e353548 100644 --- a/src/js/generated/FileContentPropertySchemaMixin.ts +++ b/src/js/generated/FileContentPropertySchemaMixin.ts @@ -8,24 +8,41 @@ export type FileContentPropertySchemaMixin = Omit< export type FileContentPropertyInMemoryEntity = InMemoryEntity & FileContentPropertySchemaMixin; -export function fileContentPropertySchemaMixin(item: InMemoryEntity) { +export function fileContentPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & FileContentPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & FileContentPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: FileContentPropertySchema["name"]) { + this.setProp("name", value); + }, get filetype() { return this.requiredProp("filetype"); }, + set filetype(value: FileContentPropertySchema["filetype"]) { + this.setProp("filetype", value); + }, get objectData() { return this.requiredProp("objectData"); }, + set objectData(value: FileContentPropertySchema["objectData"]) { + this.setProp("objectData", value); + }, get pathname() { return this.prop("pathname"); }, + set pathname(value: FileContentPropertySchema["pathname"]) { + this.setProp("pathname", value); + }, get basename() { return this.prop("basename"); }, + set basename(value: FileContentPropertySchema["basename"]) { + this.setProp("basename", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/FinalStructurePropertySchemaMixin.ts b/src/js/generated/FinalStructurePropertySchemaMixin.ts index 084e613..835c11a 100644 --- a/src/js/generated/FinalStructurePropertySchemaMixin.ts +++ b/src/js/generated/FinalStructurePropertySchemaMixin.ts @@ -9,18 +9,29 @@ export type FinalStructurePropertySchemaMixin = Omit< export type FinalStructurePropertyInMemoryEntity = InMemoryEntity & FinalStructurePropertySchemaMixin; -export function finalStructurePropertySchemaMixin(item: InMemoryEntity) { +export function finalStructurePropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & FinalStructurePropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & FinalStructurePropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: FinalStructurePropertySchema["name"]) { + this.setProp("name", value); + }, get isRelaxed() { return this.requiredProp("isRelaxed"); }, + set isRelaxed(value: FinalStructurePropertySchema["isRelaxed"]) { + this.setProp("isRelaxed", value); + }, get materialId() { return this.requiredProp("materialId"); }, + set materialId(value: FinalStructurePropertySchema["materialId"]) { + this.setProp("materialId", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/HOMOEnergyPropertySchemaMixin.ts b/src/js/generated/HOMOEnergyPropertySchemaMixin.ts index 2bfb57f..607c9a8 100644 --- a/src/js/generated/HOMOEnergyPropertySchemaMixin.ts +++ b/src/js/generated/HOMOEnergyPropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type HOMOEnergyPropertySchemaMixin = Omit< export type HOMOEnergyPropertyInMemoryEntity = InMemoryEntity & HOMOEnergyPropertySchemaMixin; -export function hOMOEnergyPropertySchemaMixin(item: InMemoryEntity) { +export function hOMOEnergyPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & HOMOEnergyPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & HOMOEnergyPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: HOMOEnergyPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: HOMOEnergyPropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: HOMOEnergyPropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/HubbardUPropertySchemaMixin.ts b/src/js/generated/HubbardUPropertySchemaMixin.ts index cd995eb..6d1ad87 100644 --- a/src/js/generated/HubbardUPropertySchemaMixin.ts +++ b/src/js/generated/HubbardUPropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type HubbardUPropertySchemaMixin = Omit< export type HubbardUPropertyInMemoryEntity = InMemoryEntity & HubbardUPropertySchemaMixin; -export function hubbardUPropertySchemaMixin(item: InMemoryEntity) { +export function hubbardUPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & HubbardUPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & HubbardUPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: HubbardUParametersPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: HubbardUParametersPropertySchema["units"]) { + this.setProp("units", value); + }, get values() { return this.requiredProp("values"); }, + set values(value: HubbardUParametersPropertySchema["values"]) { + this.setProp("values", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/HubbardVNNPropertySchemaMixin.ts b/src/js/generated/HubbardVNNPropertySchemaMixin.ts index 1874da4..2a15f21 100644 --- a/src/js/generated/HubbardVNNPropertySchemaMixin.ts +++ b/src/js/generated/HubbardVNNPropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type HubbardVNNPropertySchemaMixin = Omit< export type HubbardVNNPropertyInMemoryEntity = InMemoryEntity & HubbardVNNPropertySchemaMixin; -export function hubbardVNNPropertySchemaMixin(item: InMemoryEntity) { +export function hubbardVNNPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & HubbardVNNPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & HubbardVNNPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: HubbardVNNParametersPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: HubbardVNNParametersPropertySchema["units"]) { + this.setProp("units", value); + }, get values() { return this.requiredProp("values"); }, + set values(value: HubbardVNNParametersPropertySchema["values"]) { + this.setProp("values", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/HubbardVPropertySchemaMixin.ts b/src/js/generated/HubbardVPropertySchemaMixin.ts index 322fc29..ac2dca5 100644 --- a/src/js/generated/HubbardVPropertySchemaMixin.ts +++ b/src/js/generated/HubbardVPropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type HubbardVPropertySchemaMixin = Omit< export type HubbardVPropertyInMemoryEntity = InMemoryEntity & HubbardVPropertySchemaMixin; -export function hubbardVPropertySchemaMixin(item: InMemoryEntity) { +export function hubbardVPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & HubbardVPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & HubbardVPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: HubbardVParametersPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: HubbardVParametersPropertySchema["units"]) { + this.setProp("units", value); + }, get values() { return this.requiredProp("values"); }, + set values(value: HubbardVParametersPropertySchema["values"]) { + this.setProp("values", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/IonizationPotentialElementalPropertySchemaMixin.ts b/src/js/generated/IonizationPotentialElementalPropertySchemaMixin.ts index ea34ed1..04af282 100644 --- a/src/js/generated/IonizationPotentialElementalPropertySchemaMixin.ts +++ b/src/js/generated/IonizationPotentialElementalPropertySchemaMixin.ts @@ -9,18 +9,29 @@ export type IonizationPotentialElementalPropertySchemaMixin = Omit< export type IonizationPotentialElementalPropertyInMemoryEntity = InMemoryEntity & IonizationPotentialElementalPropertySchemaMixin; -export function ionizationPotentialElementalPropertySchemaMixin(item: InMemoryEntity) { +export function ionizationPotentialElementalPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & IonizationPotentialElementalPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & IonizationPotentialElementalPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: IonizationPotentialElementalPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: IonizationPotentialElementalPropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: IonizationPotentialElementalPropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/IsRelaxedPropertySchemaMixin.ts b/src/js/generated/IsRelaxedPropertySchemaMixin.ts index 9af00a5..6cd0e23 100644 --- a/src/js/generated/IsRelaxedPropertySchemaMixin.ts +++ b/src/js/generated/IsRelaxedPropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type IsRelaxedPropertySchemaMixin = Omit< export type IsRelaxedPropertyInMemoryEntity = InMemoryEntity & IsRelaxedPropertySchemaMixin; -export function isRelaxedPropertySchemaMixin(item: InMemoryEntity) { +export function isRelaxedPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & IsRelaxedPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & IsRelaxedPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: IsRelaxedPropertySchema["name"]) { + this.setProp("name", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: IsRelaxedPropertySchema["value"]) { + this.setProp("value", value); + }, get materialId() { return this.requiredProp("materialId"); }, + set materialId(value: IsRelaxedPropertySchema["materialId"]) { + this.setProp("materialId", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/JupyterNotebookEndpointPropertySchemaMixin.ts b/src/js/generated/JupyterNotebookEndpointPropertySchemaMixin.ts index e0a9742..d72c889 100644 --- a/src/js/generated/JupyterNotebookEndpointPropertySchemaMixin.ts +++ b/src/js/generated/JupyterNotebookEndpointPropertySchemaMixin.ts @@ -9,21 +9,35 @@ export type JupyterNotebookEndpointPropertySchemaMixin = Omit< export type JupyterNotebookEndpointPropertyInMemoryEntity = InMemoryEntity & JupyterNotebookEndpointPropertySchemaMixin; -export function jupyterNotebookEndpointPropertySchemaMixin(item: InMemoryEntity) { +export function jupyterNotebookEndpointPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & JupyterNotebookEndpointPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & JupyterNotebookEndpointPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: JupyterNotebookEndpointPropertySchema["name"]) { + this.setProp("name", value); + }, get host() { return this.requiredProp("host"); }, + set host(value: JupyterNotebookEndpointPropertySchema["host"]) { + this.setProp("host", value); + }, get port() { return this.requiredProp("port"); }, + set port(value: JupyterNotebookEndpointPropertySchema["port"]) { + this.setProp("port", value); + }, get token() { return this.requiredProp("token"); }, + set token(value: JupyterNotebookEndpointPropertySchema["token"]) { + this.setProp("token", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/LUMOEnergyPropertySchemaMixin.ts b/src/js/generated/LUMOEnergyPropertySchemaMixin.ts index 8c10e53..8c1941e 100644 --- a/src/js/generated/LUMOEnergyPropertySchemaMixin.ts +++ b/src/js/generated/LUMOEnergyPropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type LUMOEnergyPropertySchemaMixin = Omit< export type LUMOEnergyPropertyInMemoryEntity = InMemoryEntity & LUMOEnergyPropertySchemaMixin; -export function lUMOEnergyPropertySchemaMixin(item: InMemoryEntity) { +export function lUMOEnergyPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & LUMOEnergyPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & LUMOEnergyPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: LUMOEnergyPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: LUMOEnergyPropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: LUMOEnergyPropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/MagneticMomentsPropertySchemaMixin.ts b/src/js/generated/MagneticMomentsPropertySchemaMixin.ts index b168868..194ada7 100644 --- a/src/js/generated/MagneticMomentsPropertySchemaMixin.ts +++ b/src/js/generated/MagneticMomentsPropertySchemaMixin.ts @@ -9,18 +9,29 @@ export type MagneticMomentsPropertySchemaMixin = Omit< export type MagneticMomentsPropertyInMemoryEntity = InMemoryEntity & MagneticMomentsPropertySchemaMixin; -export function magneticMomentsPropertySchemaMixin(item: InMemoryEntity) { +export function magneticMomentsPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & MagneticMomentsPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & MagneticMomentsPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: MagneticMomentsPropertySchema["name"]) { + this.setProp("name", value); + }, get values() { return this.requiredProp("values"); }, + set values(value: MagneticMomentsPropertySchema["values"]) { + this.setProp("values", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: MagneticMomentsPropertySchema["units"]) { + this.setProp("units", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/MetaPropertyHolderSchemaMixin.ts b/src/js/generated/MetaPropertyHolderSchemaMixin.ts index 2d5c19c..004f98d 100644 --- a/src/js/generated/MetaPropertyHolderSchemaMixin.ts +++ b/src/js/generated/MetaPropertyHolderSchemaMixin.ts @@ -8,15 +8,23 @@ export type MetaPropertyHolderSchemaMixin = Omit< export type MetaPropertyHolderInMemoryEntity = InMemoryEntity & MetaPropertyHolderSchemaMixin; -export function metaPropertyHolderSchemaMixin(item: InMemoryEntity) { +export function metaPropertyHolderSchemaMixin( + item: InMemoryEntity, +): asserts item is T & MetaPropertyHolderSchemaMixin { // @ts-expect-error const properties: InMemoryEntity & MetaPropertyHolderSchemaMixin = { get data() { return this.requiredProp("data"); }, + set data(value: MetaPropertyHolderSchema["data"]) { + this.setProp("data", value); + }, get source() { return this.requiredProp("source"); }, + set source(value: MetaPropertyHolderSchema["source"]) { + this.setProp("source", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/PhononDOSPropertySchemaMixin.ts b/src/js/generated/PhononDOSPropertySchemaMixin.ts index 91314a1..7cbabee 100644 --- a/src/js/generated/PhononDOSPropertySchemaMixin.ts +++ b/src/js/generated/PhononDOSPropertySchemaMixin.ts @@ -8,28 +8,45 @@ export type PhononDOSPropertySchemaMixin = Omit< export type PhononDOSPropertyInMemoryEntity = InMemoryEntity & PhononDOSPropertySchemaMixin; -export function phononDOSPropertySchemaMixin(item: InMemoryEntity) { +export function phononDOSPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & PhononDOSPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & PhononDOSPropertySchemaMixin = { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value: PhononDensityOfStatesPropertySchema["xAxis"]) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value: PhononDensityOfStatesPropertySchema["yAxis"]) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value: PhononDensityOfStatesPropertySchema["name"]) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp( "xDataArray", ); }, + set xDataArray(value: PhononDensityOfStatesPropertySchema["xDataArray"]) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp( "yDataSeries", ); }, + set yDataSeries(value: PhononDensityOfStatesPropertySchema["yDataSeries"]) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/PhononDispersionsPropertySchemaMixin.ts b/src/js/generated/PhononDispersionsPropertySchemaMixin.ts index e4d872b..4b5347d 100644 --- a/src/js/generated/PhononDispersionsPropertySchemaMixin.ts +++ b/src/js/generated/PhononDispersionsPropertySchemaMixin.ts @@ -9,26 +9,43 @@ export type PhononDispersionsPropertySchemaMixin = Omit< export type PhononDispersionsPropertyInMemoryEntity = InMemoryEntity & PhononDispersionsPropertySchemaMixin; -export function phononDispersionsPropertySchemaMixin(item: InMemoryEntity) { +export function phononDispersionsPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & PhononDispersionsPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & PhononDispersionsPropertySchemaMixin = { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value: PhononBandStructurePropertySchema["xAxis"]) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value: PhononBandStructurePropertySchema["yAxis"]) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value: PhononBandStructurePropertySchema["name"]) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value: PhononBandStructurePropertySchema["xDataArray"]) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp( "yDataSeries", ); }, + set yDataSeries(value: PhononBandStructurePropertySchema["yDataSeries"]) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/PotentialProfilePropertySchemaMixin.ts b/src/js/generated/PotentialProfilePropertySchemaMixin.ts index 648c5b1..0b031ba 100644 --- a/src/js/generated/PotentialProfilePropertySchemaMixin.ts +++ b/src/js/generated/PotentialProfilePropertySchemaMixin.ts @@ -9,24 +9,41 @@ export type PotentialProfilePropertySchemaMixin = Omit< export type PotentialProfilePropertyInMemoryEntity = InMemoryEntity & PotentialProfilePropertySchemaMixin; -export function potentialProfilePropertySchemaMixin(item: InMemoryEntity) { +export function potentialProfilePropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & PotentialProfilePropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & PotentialProfilePropertySchemaMixin = { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value: PotentialProfilePropertySchema["xAxis"]) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value: PotentialProfilePropertySchema["yAxis"]) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value: PotentialProfilePropertySchema["name"]) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp("xDataArray"); }, + set xDataArray(value: PotentialProfilePropertySchema["xDataArray"]) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp("yDataSeries"); }, + set yDataSeries(value: PotentialProfilePropertySchema["yDataSeries"]) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/PressurePropertySchemaMixin.ts b/src/js/generated/PressurePropertySchemaMixin.ts index 9d3ccf0..e97522c 100644 --- a/src/js/generated/PressurePropertySchemaMixin.ts +++ b/src/js/generated/PressurePropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type PressurePropertySchemaMixin = Omit< export type PressurePropertyInMemoryEntity = InMemoryEntity & PressurePropertySchemaMixin; -export function pressurePropertySchemaMixin(item: InMemoryEntity) { +export function pressurePropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & PressurePropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & PressurePropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: PressurePropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: PressurePropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: PressurePropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/PropertyHolderSchemaMixin.ts b/src/js/generated/PropertyHolderSchemaMixin.ts index 50f5edf..b8e2963 100644 --- a/src/js/generated/PropertyHolderSchemaMixin.ts +++ b/src/js/generated/PropertyHolderSchemaMixin.ts @@ -8,30 +8,53 @@ export type PropertyHolderSchemaMixin = Omit< export type PropertyHolderInMemoryEntity = InMemoryEntity & PropertyHolderSchemaMixin; -export function propertyHolderSchemaMixin(item: InMemoryEntity) { +export function propertyHolderSchemaMixin( + item: InMemoryEntity, +): asserts item is T & PropertyHolderSchemaMixin { // @ts-expect-error const properties: InMemoryEntity & PropertyHolderSchemaMixin = { get group() { return this.prop("group"); }, + set group(value: PropertyHolderSchema["group"]) { + this.setProp("group", value); + }, get data() { return this.requiredProp("data"); }, + set data(value: PropertyHolderSchema["data"]) { + this.setProp("data", value); + }, get source() { return this.requiredProp("source"); }, + set source(value: PropertyHolderSchema["source"]) { + this.setProp("source", value); + }, get exabyteId() { return this.requiredProp("exabyteId"); }, + set exabyteId(value: PropertyHolderSchema["exabyteId"]) { + this.setProp("exabyteId", value); + }, get precision() { return this.prop("precision"); }, + set precision(value: PropertyHolderSchema["precision"]) { + this.setProp("precision", value); + }, get systemTags() { return this.prop("systemTags"); }, + set systemTags(value: PropertyHolderSchema["systemTags"]) { + this.setProp("systemTags", value); + }, get repetition() { return this.requiredProp("repetition"); }, + set repetition(value: PropertyHolderSchema["repetition"]) { + this.setProp("repetition", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/ProtoPropertyHolderSchemaMixin.ts b/src/js/generated/ProtoPropertyHolderSchemaMixin.ts index 1b48b5b..f79cdac 100644 --- a/src/js/generated/ProtoPropertyHolderSchemaMixin.ts +++ b/src/js/generated/ProtoPropertyHolderSchemaMixin.ts @@ -8,15 +8,23 @@ export type ProtoPropertyHolderSchemaMixin = Omit< export type ProtoPropertyHolderInMemoryEntity = InMemoryEntity & ProtoPropertyHolderSchemaMixin; -export function protoPropertyHolderSchemaMixin(item: InMemoryEntity) { +export function protoPropertyHolderSchemaMixin( + item: InMemoryEntity, +): asserts item is T & ProtoPropertyHolderSchemaMixin { // @ts-expect-error const properties: InMemoryEntity & ProtoPropertyHolderSchemaMixin = { get data() { return this.requiredProp("data"); }, + set data(value: ProtoPropertyHolderSchema["data"]) { + this.setProp("data", value); + }, get source() { return this.requiredProp("source"); }, + set source(value: ProtoPropertyHolderSchema["source"]) { + this.setProp("source", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/PseudopotentialMetaPropertySchemaMixin.ts b/src/js/generated/PseudopotentialMetaPropertySchemaMixin.ts index cb525c5..1f9db7b 100644 --- a/src/js/generated/PseudopotentialMetaPropertySchemaMixin.ts +++ b/src/js/generated/PseudopotentialMetaPropertySchemaMixin.ts @@ -9,45 +9,83 @@ export type PseudopotentialMetaPropertySchemaMixin = Omit< export type PseudopotentialMetaPropertyInMemoryEntity = InMemoryEntity & PseudopotentialMetaPropertySchemaMixin; -export function pseudopotentialMetaPropertySchemaMixin(item: InMemoryEntity) { +export function pseudopotentialMetaPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & PseudopotentialMetaPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & PseudopotentialMetaPropertySchemaMixin = { get element() { return this.requiredProp("element"); }, + set element(value: FileDataItem["element"]) { + this.setProp("element", value); + }, get hash() { return this.requiredProp("hash"); }, + set hash(value: FileDataItem["hash"]) { + this.setProp("hash", value); + }, get type() { return this.requiredProp("type"); }, + set type(value: FileDataItem["type"]) { + this.setProp("type", value); + }, get source() { return this.requiredProp("source"); }, + set source(value: FileDataItem["source"]) { + this.setProp("source", value); + }, get version() { return this.prop("version"); }, + set version(value: FileDataItem["version"]) { + this.setProp("version", value); + }, get exchangeCorrelation() { return this.requiredProp("exchangeCorrelation"); }, + set exchangeCorrelation(value: FileDataItem["exchangeCorrelation"]) { + this.setProp("exchangeCorrelation", value); + }, get valenceConfiguration() { return this.prop("valenceConfiguration"); }, + set valenceConfiguration(value: FileDataItem["valenceConfiguration"]) { + this.setProp("valenceConfiguration", value); + }, get path() { return this.requiredProp("path"); }, + set path(value: FileDataItem["path"]) { + this.setProp("path", value); + }, get apps() { return this.requiredProp("apps"); }, + set apps(value: FileDataItem["apps"]) { + this.setProp("apps", value); + }, get filename() { return this.prop("filename"); }, + set filename(value: FileDataItem["filename"]) { + this.setProp("filename", value); + }, get name() { return this.requiredProp("name"); }, + set name(value: FileDataItem["name"]) { + this.setProp("name", value); + }, get cutoffs() { return this.prop("cutoffs"); }, + set cutoffs(value: FileDataItem["cutoffs"]) { + this.setProp("cutoffs", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/ReactionEnergyBarrierPropertySchemaMixin.ts b/src/js/generated/ReactionEnergyBarrierPropertySchemaMixin.ts index d1a0fcc..fe9bce5 100644 --- a/src/js/generated/ReactionEnergyBarrierPropertySchemaMixin.ts +++ b/src/js/generated/ReactionEnergyBarrierPropertySchemaMixin.ts @@ -9,18 +9,29 @@ export type ReactionEnergyBarrierPropertySchemaMixin = Omit< export type ReactionEnergyBarrierPropertyInMemoryEntity = InMemoryEntity & ReactionEnergyBarrierPropertySchemaMixin; -export function reactionEnergyBarrierPropertySchemaMixin(item: InMemoryEntity) { +export function reactionEnergyBarrierPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & ReactionEnergyBarrierPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & ReactionEnergyBarrierPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: ReactionEnergyBarrierPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: ReactionEnergyBarrierPropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: ReactionEnergyBarrierPropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/ReactionEnergyProfilePropertySchemaMixin.ts b/src/js/generated/ReactionEnergyProfilePropertySchemaMixin.ts index 3ccf10f..ce5c5b7 100644 --- a/src/js/generated/ReactionEnergyProfilePropertySchemaMixin.ts +++ b/src/js/generated/ReactionEnergyProfilePropertySchemaMixin.ts @@ -9,28 +9,45 @@ export type ReactionEnergyProfilePropertySchemaMixin = Omit< export type ReactionEnergyProfilePropertyInMemoryEntity = InMemoryEntity & ReactionEnergyProfilePropertySchemaMixin; -export function reactionEnergyProfilePropertySchemaMixin(item: InMemoryEntity) { +export function reactionEnergyProfilePropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & ReactionEnergyProfilePropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & ReactionEnergyProfilePropertySchemaMixin = { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value: ReactionEnergyProfilePropertySchema["xAxis"]) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value: ReactionEnergyProfilePropertySchema["yAxis"]) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value: ReactionEnergyProfilePropertySchema["name"]) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp( "xDataArray", ); }, + set xDataArray(value: ReactionEnergyProfilePropertySchema["xDataArray"]) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp( "yDataSeries", ); }, + set yDataSeries(value: ReactionEnergyProfilePropertySchema["yDataSeries"]) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/StressTensorPropertySchemaMixin.ts b/src/js/generated/StressTensorPropertySchemaMixin.ts index 8fff4a9..a5831fe 100644 --- a/src/js/generated/StressTensorPropertySchemaMixin.ts +++ b/src/js/generated/StressTensorPropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type StressTensorPropertySchemaMixin = Omit< export type StressTensorPropertyInMemoryEntity = InMemoryEntity & StressTensorPropertySchemaMixin; -export function stressTensorPropertySchemaMixin(item: InMemoryEntity) { +export function stressTensorPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & StressTensorPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & StressTensorPropertySchemaMixin = { get value() { return this.requiredProp("value"); }, + set value(value: StressTensorPropertySchema["value"]) { + this.setProp("value", value); + }, get name() { return this.requiredProp("name"); }, + set name(value: StressTensorPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: StressTensorPropertySchema["units"]) { + this.setProp("units", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/SurfaceEnergyPropertySchemaMixin.ts b/src/js/generated/SurfaceEnergyPropertySchemaMixin.ts index 6508f44..f84f372 100644 --- a/src/js/generated/SurfaceEnergyPropertySchemaMixin.ts +++ b/src/js/generated/SurfaceEnergyPropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type SurfaceEnergyPropertySchemaMixin = Omit< export type SurfaceEnergyPropertyInMemoryEntity = InMemoryEntity & SurfaceEnergyPropertySchemaMixin; -export function surfaceEnergyPropertySchemaMixin(item: InMemoryEntity) { +export function surfaceEnergyPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & SurfaceEnergyPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & SurfaceEnergyPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: SurfaceEnergyPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: SurfaceEnergyPropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: SurfaceEnergyPropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.ts b/src/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.ts index d2745e2..0755570 100644 --- a/src/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.ts +++ b/src/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.ts @@ -9,18 +9,29 @@ export type ThermalCorrectionToEnergyPropertySchemaMixin = Omit< export type ThermalCorrectionToEnergyPropertyInMemoryEntity = InMemoryEntity & ThermalCorrectionToEnergyPropertySchemaMixin; -export function thermalCorrectionToEnergyPropertySchemaMixin(item: InMemoryEntity) { +export function thermalCorrectionToEnergyPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & ThermalCorrectionToEnergyPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & ThermalCorrectionToEnergyPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: ThermalCorrectionToEnergyPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: ThermalCorrectionToEnergyPropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: ThermalCorrectionToEnergyPropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.ts b/src/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.ts index 3edcbf4..e1b1bfb 100644 --- a/src/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.ts +++ b/src/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.ts @@ -9,18 +9,29 @@ export type ThermalCorrectionToEnthalpyPropertySchemaMixin = Omit< export type ThermalCorrectionToEnthalpyPropertyInMemoryEntity = InMemoryEntity & ThermalCorrectionToEnthalpyPropertySchemaMixin; -export function thermalCorrectionToEnthalpyPropertySchemaMixin(item: InMemoryEntity) { +export function thermalCorrectionToEnthalpyPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & ThermalCorrectionToEnthalpyPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & ThermalCorrectionToEnthalpyPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: ThermalCorrectionToEnthalpyPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: ThermalCorrectionToEnthalpyPropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: ThermalCorrectionToEnthalpyPropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/TotalEnergyContributionsPropertySchemaMixin.ts b/src/js/generated/TotalEnergyContributionsPropertySchemaMixin.ts index 353fe64..ea4e310 100644 --- a/src/js/generated/TotalEnergyContributionsPropertySchemaMixin.ts +++ b/src/js/generated/TotalEnergyContributionsPropertySchemaMixin.ts @@ -9,7 +9,9 @@ export type TotalEnergyContributionsPropertySchemaMixin = Omit< export type TotalEnergyContributionsPropertyInMemoryEntity = InMemoryEntity & TotalEnergyContributionsPropertySchemaMixin; -export function totalEnergyContributionsPropertySchemaMixin(item: InMemoryEntity) { +export function totalEnergyContributionsPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & TotalEnergyContributionsPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & TotalEnergyContributionsPropertySchemaMixin = { get temperatureEntropy() { @@ -17,63 +19,119 @@ export function totalEnergyContributionsPropertySchemaMixin(item: InMemoryEntity "temperatureEntropy", ); }, + set temperatureEntropy( + value: TotalEnergyContributionsPropertySchema["temperatureEntropy"], + ) { + this.setProp("temperatureEntropy", value); + }, get harris_foulkes() { return this.prop( "harris_foulkes", ); }, + set harris_foulkes(value: TotalEnergyContributionsPropertySchema["harris_foulkes"]) { + this.setProp("harris_foulkes", value); + }, get smearing() { return this.prop("smearing"); }, + set smearing(value: TotalEnergyContributionsPropertySchema["smearing"]) { + this.setProp("smearing", value); + }, get one_electron() { return this.prop( "one_electron", ); }, + set one_electron(value: TotalEnergyContributionsPropertySchema["one_electron"]) { + this.setProp("one_electron", value); + }, get hartree() { return this.prop("hartree"); }, + set hartree(value: TotalEnergyContributionsPropertySchema["hartree"]) { + this.setProp("hartree", value); + }, get exchange() { return this.prop("exchange"); }, + set exchange(value: TotalEnergyContributionsPropertySchema["exchange"]) { + this.setProp("exchange", value); + }, get exchange_correlation() { return this.prop( "exchange_correlation", ); }, + set exchange_correlation( + value: TotalEnergyContributionsPropertySchema["exchange_correlation"], + ) { + this.setProp("exchange_correlation", value); + }, get ewald() { return this.prop("ewald"); }, + set ewald(value: TotalEnergyContributionsPropertySchema["ewald"]) { + this.setProp("ewald", value); + }, get alphaZ() { return this.prop("alphaZ"); }, + set alphaZ(value: TotalEnergyContributionsPropertySchema["alphaZ"]) { + this.setProp("alphaZ", value); + }, get atomicEnergy() { return this.prop( "atomicEnergy", ); }, + set atomicEnergy(value: TotalEnergyContributionsPropertySchema["atomicEnergy"]) { + this.setProp("atomicEnergy", value); + }, get eigenvalues() { return this.prop("eigenvalues"); }, + set eigenvalues(value: TotalEnergyContributionsPropertySchema["eigenvalues"]) { + this.setProp("eigenvalues", value); + }, get PAWDoubleCounting2() { return this.prop( "PAWDoubleCounting2", ); }, + set PAWDoubleCounting2( + value: TotalEnergyContributionsPropertySchema["PAWDoubleCounting2"], + ) { + this.setProp("PAWDoubleCounting2", value); + }, get PAWDoubleCounting3() { return this.prop( "PAWDoubleCounting3", ); }, + set PAWDoubleCounting3( + value: TotalEnergyContributionsPropertySchema["PAWDoubleCounting3"], + ) { + this.setProp("PAWDoubleCounting3", value); + }, get hartreeFock() { return this.prop("hartreeFock"); }, + set hartreeFock(value: TotalEnergyContributionsPropertySchema["hartreeFock"]) { + this.setProp("hartreeFock", value); + }, get name() { return this.requiredProp("name"); }, + set name(value: TotalEnergyContributionsPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.prop("units"); }, + set units(value: TotalEnergyContributionsPropertySchema["units"]) { + this.setProp("units", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/TotalEnergyPropertySchemaMixin.ts b/src/js/generated/TotalEnergyPropertySchemaMixin.ts index 782f96c..98bd952 100644 --- a/src/js/generated/TotalEnergyPropertySchemaMixin.ts +++ b/src/js/generated/TotalEnergyPropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type TotalEnergyPropertySchemaMixin = Omit< export type TotalEnergyPropertyInMemoryEntity = InMemoryEntity & TotalEnergyPropertySchemaMixin; -export function totalEnergyPropertySchemaMixin(item: InMemoryEntity) { +export function totalEnergyPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & TotalEnergyPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & TotalEnergyPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: TotalEnergyPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: TotalEnergyPropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: TotalEnergyPropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/TotalForcePropertySchemaMixin.ts b/src/js/generated/TotalForcePropertySchemaMixin.ts index 47bf871..97fce03 100644 --- a/src/js/generated/TotalForcePropertySchemaMixin.ts +++ b/src/js/generated/TotalForcePropertySchemaMixin.ts @@ -8,18 +8,29 @@ export type TotalForcePropertySchemaMixin = Omit< export type TotalForcePropertyInMemoryEntity = InMemoryEntity & TotalForcePropertySchemaMixin; -export function totalForcePropertySchemaMixin(item: InMemoryEntity) { +export function totalForcePropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & TotalForcePropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & TotalForcePropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: TotalForcesPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: TotalForcesPropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: TotalForcesPropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/ValenceBandOffsetPropertySchemaMixin.ts b/src/js/generated/ValenceBandOffsetPropertySchemaMixin.ts index bf898c7..d8a71ba 100644 --- a/src/js/generated/ValenceBandOffsetPropertySchemaMixin.ts +++ b/src/js/generated/ValenceBandOffsetPropertySchemaMixin.ts @@ -9,18 +9,29 @@ export type ValenceBandOffsetPropertySchemaMixin = Omit< export type ValenceBandOffsetPropertyInMemoryEntity = InMemoryEntity & ValenceBandOffsetPropertySchemaMixin; -export function valenceBandOffsetPropertySchemaMixin(item: InMemoryEntity) { +export function valenceBandOffsetPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & ValenceBandOffsetPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & ValenceBandOffsetPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: ValenceBandOffsetPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: ValenceBandOffsetPropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: ValenceBandOffsetPropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/WavefunctionAmplitudePropertySchemaMixin.ts b/src/js/generated/WavefunctionAmplitudePropertySchemaMixin.ts index 9002587..befb32a 100644 --- a/src/js/generated/WavefunctionAmplitudePropertySchemaMixin.ts +++ b/src/js/generated/WavefunctionAmplitudePropertySchemaMixin.ts @@ -9,28 +9,45 @@ export type WavefunctionAmplitudePropertySchemaMixin = Omit< export type WavefunctionAmplitudePropertyInMemoryEntity = InMemoryEntity & WavefunctionAmplitudePropertySchemaMixin; -export function wavefunctionAmplitudePropertySchemaMixin(item: InMemoryEntity) { +export function wavefunctionAmplitudePropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & WavefunctionAmplitudePropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & WavefunctionAmplitudePropertySchemaMixin = { get xAxis() { return this.requiredProp("xAxis"); }, + set xAxis(value: WavefunctionAmplitudePropertySchema["xAxis"]) { + this.setProp("xAxis", value); + }, get yAxis() { return this.requiredProp("yAxis"); }, + set yAxis(value: WavefunctionAmplitudePropertySchema["yAxis"]) { + this.setProp("yAxis", value); + }, get name() { return this.requiredProp("name"); }, + set name(value: WavefunctionAmplitudePropertySchema["name"]) { + this.setProp("name", value); + }, get xDataArray() { return this.requiredProp( "xDataArray", ); }, + set xDataArray(value: WavefunctionAmplitudePropertySchema["xDataArray"]) { + this.setProp("xDataArray", value); + }, get yDataSeries() { return this.requiredProp( "yDataSeries", ); }, + set yDataSeries(value: WavefunctionAmplitudePropertySchema["yDataSeries"]) { + this.setProp("yDataSeries", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/generated/WorkflowPropertySchemaMixin.ts b/src/js/generated/WorkflowPropertySchemaMixin.ts index 04e0a1d..6a0d932 100644 --- a/src/js/generated/WorkflowPropertySchemaMixin.ts +++ b/src/js/generated/WorkflowPropertySchemaMixin.ts @@ -8,41 +8,70 @@ export type WorkflowPropertySchemaMixin = Omit< export type WorkflowPropertyInMemoryEntity = InMemoryEntity & WorkflowPropertySchemaMixin; -export function workflowPropertySchemaMixin(item: InMemoryEntity) { +export function workflowPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & WorkflowPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & WorkflowPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, - get subworkflows() { - return this.requiredProp("subworkflows"); + set name(value: WorkflowPropertySchema["name"]) { + this.setProp("name", value); }, - get units() { - return this.requiredProp("units"); + get workflows() { + return this.requiredProp("workflows"); + }, + set workflows(value: WorkflowPropertySchema["workflows"]) { + this.setProp("workflows", value); + }, + get metadata() { + return this.prop("metadata"); + }, + set metadata(value: WorkflowPropertySchema["metadata"]) { + this.setProp("metadata", value); }, get properties() { - return this.prop("properties"); + return this.requiredProp("properties"); + }, + set properties(value: WorkflowPropertySchema["properties"]) { + this.setProp("properties", value); }, get isUsingDataset() { return this.prop("isUsingDataset"); }, + set isUsingDataset(value: WorkflowPropertySchema["isUsingDataset"]) { + this.setProp("isUsingDataset", value); + }, get isMultiMaterial() { return this.prop("isMultiMaterial"); }, - get workflows() { - return this.prop("workflows"); + set isMultiMaterial(value: WorkflowPropertySchema["isMultiMaterial"]) { + this.setProp("isMultiMaterial", value); + }, + get subworkflows() { + return this.requiredProp("subworkflows"); + }, + set subworkflows(value: WorkflowPropertySchema["subworkflows"]) { + this.setProp("subworkflows", value); + }, + get units() { + return this.requiredProp("units"); + }, + set units(value: WorkflowPropertySchema["units"]) { + this.setProp("units", value); }, get application() { return this.prop("application"); }, + set application(value: WorkflowPropertySchema["application"]) { + this.setProp("application", value); + }, get tags() { return this.prop("tags"); }, - get isDefault() { - return this.prop("isDefault"); - }, - get metadata() { - return this.prop("metadata"); + set tags(value: WorkflowPropertySchema["tags"]) { + this.setProp("tags", value); }, }; diff --git a/src/js/generated/ZeroPointEnergyPropertySchemaMixin.ts b/src/js/generated/ZeroPointEnergyPropertySchemaMixin.ts index 27130a1..f6396e3 100644 --- a/src/js/generated/ZeroPointEnergyPropertySchemaMixin.ts +++ b/src/js/generated/ZeroPointEnergyPropertySchemaMixin.ts @@ -9,18 +9,29 @@ export type ZeroPointEnergyPropertySchemaMixin = Omit< export type ZeroPointEnergyPropertyInMemoryEntity = InMemoryEntity & ZeroPointEnergyPropertySchemaMixin; -export function zeroPointEnergyPropertySchemaMixin(item: InMemoryEntity) { +export function zeroPointEnergyPropertySchemaMixin( + item: InMemoryEntity, +): asserts item is T & ZeroPointEnergyPropertySchemaMixin { // @ts-expect-error const properties: InMemoryEntity & ZeroPointEnergyPropertySchemaMixin = { get name() { return this.requiredProp("name"); }, + set name(value: ZeroPointEnergyPropertySchema["name"]) { + this.setProp("name", value); + }, get units() { return this.requiredProp("units"); }, + set units(value: ZeroPointEnergyPropertySchema["units"]) { + this.setProp("units", value); + }, get value() { return this.requiredProp("value"); }, + set value(value: ZeroPointEnergyPropertySchema["value"]) { + this.setProp("value", value); + }, }; Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties)); diff --git a/src/js/holders/MetaPropertyHolder.ts b/src/js/holders/MetaPropertyHolder.ts index 253dd46..fd2ff72 100644 --- a/src/js/holders/MetaPropertyHolder.ts +++ b/src/js/holders/MetaPropertyHolder.ts @@ -1,5 +1,4 @@ import { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; -import type { Constructor } from "@mat3ra/code/dist/js/utils/types"; import type { MetaPropertyHolderSchema } from "@mat3ra/esse/dist/js/types"; import { @@ -7,9 +6,10 @@ import { metaPropertyHolderMixin, } from "./mixins/MetaPropertyHolderMixin"; -type MetaPropertyBase = typeof InMemoryEntity & Constructor; +// eslint-disable-next-line @typescript-eslint/no-empty-interface +interface MetaPropertyHolder extends MetaPropertyHolderMixin {} -export default class MetaPropertyHolder extends (InMemoryEntity as MetaPropertyBase) { +class MetaPropertyHolder extends InMemoryEntity { // eslint-disable-next-line no-useless-constructor constructor(data: MetaPropertyHolderSchema) { super(data); @@ -17,3 +17,5 @@ export default class MetaPropertyHolder extends (InMemoryEntity as MetaPropertyB } metaPropertyHolderMixin(MetaPropertyHolder.prototype); + +export default MetaPropertyHolder; diff --git a/src/js/holders/PropertyHolder.ts b/src/js/holders/PropertyHolder.ts index 3c847b8..9e0b112 100644 --- a/src/js/holders/PropertyHolder.ts +++ b/src/js/holders/PropertyHolder.ts @@ -5,11 +5,13 @@ import type { PropertyHolderSchema } from "@mat3ra/esse/dist/js/types"; import type { PropertyHolderMixin } from "./mixins/PropertyHolderMixin"; import { propertyHolderMixin } from "./mixins/PropertyHolderMixin"; -type PropertyHolderBase = typeof InMemoryEntity & Constructor; +type Schema = PropertyHolderSchema; -export default class PropertyHolder extends (InMemoryEntity as PropertyHolderBase) { +type Base = typeof InMemoryEntity & Constructor; + +export default class PropertyHolder extends (InMemoryEntity as Base) implements Schema { // eslint-disable-next-line no-useless-constructor - constructor(data: PropertyHolderSchema) { + constructor(data: Schema) { super(data); } } diff --git a/src/js/holders/mixins/MetaPropertyHolderMixin.ts b/src/js/holders/mixins/MetaPropertyHolderMixin.ts index 9e45411..c8b3efd 100644 --- a/src/js/holders/mixins/MetaPropertyHolderMixin.ts +++ b/src/js/holders/mixins/MetaPropertyHolderMixin.ts @@ -1,18 +1,18 @@ import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity"; import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types"; import type { MetaPropertyHolderSchema } from "@mat3ra/esse/dist/js/types"; +import type { PseudopotentialMetaProperty } from "src/js"; import { type MetaPropertyHolderSchemaMixin, metaPropertyHolderSchemaMixin, } from "../../generated/MetaPropertyHolderSchemaMixin"; -import type MetaProperty from "../../MetaProperty"; import PropertyFactory from "../../PropertyFactory"; export interface MetaPropertySchemaJSON extends MetaPropertyHolderSchema, AnyObject {} export type MetaPropertyHolderMixin = { - property: MetaProperty; + property: PseudopotentialMetaProperty; } & MetaPropertyHolderSchemaMixin; export type MetaPropertyInMemoryEntity = InMemoryEntity & MetaPropertyHolderMixin; diff --git a/src/js/index.ts b/src/js/index.ts index e342c6a..2c9055c 100644 --- a/src/js/index.ts +++ b/src/js/index.ts @@ -22,5 +22,8 @@ export { default as ReactionEnergyProfileProperty } from "./properties/non-scala export { protoPropertyHolderMixin } from "./holders/mixins/ProtoPropertyHolderMixin"; export { propertyHolderMixin } from "./holders/mixins/PropertyHolderMixin"; export { metaPropertyHolderMixin } from "./holders/mixins/MetaPropertyHolderMixin"; +export { default as PropertyHolder } from "./holders/PropertyHolder"; +export { default as MetaPropertyHolder } from "./holders/MetaPropertyHolder"; +export { default as ProtoPropertyHolder } from "./holders/ProtoPropertyHolder"; export * from "./types"; diff --git a/src/js/meta_properties/PseudopotentialMetaProperty.ts b/src/js/meta_properties/PseudopotentialMetaProperty.ts index dcdc60c..3ec5a8b 100644 --- a/src/js/meta_properties/PseudopotentialMetaProperty.ts +++ b/src/js/meta_properties/PseudopotentialMetaProperty.ts @@ -19,6 +19,20 @@ enum CompatibleExchangeCorrelationKey { type Base = typeof MetaProperty & Constructor; +export type ExchangeCorrelation = { + functional?: string; + approximation: string; +}; + +// TODO: move to esse schema +export type PseudopotentialFilter = { + searchText?: string; + appName?: string; + type?: string; + exchangeCorrelation?: ExchangeCorrelation; + elements?: string[]; +}; + export default class PseudopotentialMetaProperty extends (MetaProperty as Base) implements Schema { static readonly propertyName = PropertyName.pseudopotential; @@ -80,15 +94,12 @@ export default class PseudopotentialMetaProperty extends (MetaProperty as Base) */ static filterRawDataByExchangeCorrelation( rawData: PseudopotentialMetaProperty[], - exchangeCorrelation: { - functional: string; - approximation: string; - }, + exchangeCorrelation: ExchangeCorrelation, ) { const { functional } = exchangeCorrelation; return rawData.filter((item) => { - return this.isCompatibleWithOther(functional) + return functional && this.isCompatibleWithOther(functional) ? this.compatibleExchangeCorrelation[functional].includes( item.exchangeCorrelation?.functional || "", ) @@ -134,16 +145,7 @@ export default class PseudopotentialMetaProperty extends (MetaProperty as Base) */ static applyPseudoFilters( pseudos: PseudopotentialMetaProperty[], - pseudoFilter: { - searchText?: string; - appName?: string; - type?: string; - exchangeCorrelation?: { - functional: keyof typeof PseudopotentialMetaProperty.compatibleExchangeCorrelation; - approximation: string; - }; - elements?: string[]; - }, + pseudoFilter: PseudopotentialFilter, ) { let filteredPseudos = [...pseudos]; @@ -197,6 +199,13 @@ export default class PseudopotentialMetaProperty extends (MetaProperty as Base) }); } + static sortByPathApplicationSpecific(pseudos: PseudopotentialMetaProperty[], appName?: string) { + if (appName === "vasp") { + return this.sortByPathVASP(pseudos); + } + return pseudos; + } + static filterByType(pseudos: PseudopotentialMetaProperty[], pseudoType?: string) { if (pseudoType === undefined || pseudoType === "any") return pseudos; return pseudos.filter((pseudo) => pseudo.type.includes(pseudoType)); diff --git a/src/js/properties/scalar/ThermalCorrectionToEnergyProperty.ts b/src/js/properties/scalar/ThermalCorrectionToEnergyProperty.ts index eb49295..0c75ed9 100644 --- a/src/js/properties/scalar/ThermalCorrectionToEnergyProperty.ts +++ b/src/js/properties/scalar/ThermalCorrectionToEnergyProperty.ts @@ -1,4 +1,3 @@ -import type { Constructor } from "@mat3ra/code/dist/js/utils/types"; import type { ThermalCorrectionToEnergyPropertySchema } from "@mat3ra/esse/dist/js/types"; import { @@ -10,18 +9,23 @@ import { PropertyName, PropertyType } from "../../settings"; type Schema = ThermalCorrectionToEnergyPropertySchema; -type Base = typeof Property & Constructor; +// eslint-disable-next-line @typescript-eslint/no-empty-interface +interface ThermalCorrectionToEnergyProperty extends ThermalCorrectionToEnergyPropertySchemaMixin {} -export default class ThermalCorrectionToEnergyProperty extends (Property as Base) implements Schema { +class ThermalCorrectionToEnergyProperty extends Property implements Schema { static readonly propertyType = PropertyType.scalar; static readonly propertyName = PropertyName.thermal_correction_to_energy; static readonly isRefined = true; + declare name: Schema["name"]; + constructor(config: Omit) { super({ ...config, name: ThermalCorrectionToEnergyProperty.propertyName }); } } thermalCorrectionToEnergyPropertySchemaMixin(ThermalCorrectionToEnergyProperty.prototype); + +export default ThermalCorrectionToEnergyProperty; diff --git a/src/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.ts b/src/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.ts index d2b447c..355fe60 100644 --- a/src/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.ts +++ b/src/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.ts @@ -1,4 +1,3 @@ -import type { Constructor } from "@mat3ra/code/dist/js/utils/types"; import type { ThermalCorrectionToEnthalpyPropertySchema } from "@mat3ra/esse/dist/js/types"; import { @@ -10,18 +9,24 @@ import { PropertyName, PropertyType } from "../../settings"; type Schema = ThermalCorrectionToEnthalpyPropertySchema; -type Base = typeof Property & Constructor; +// eslint-disable-next-line @typescript-eslint/no-empty-interface +interface ThermalCorrectionToEnthalpyProperty + extends ThermalCorrectionToEnthalpyPropertySchemaMixin {} -export default class ThermalCorrectionToEnthalpyProperty extends (Property as Base) implements Schema { +class ThermalCorrectionToEnthalpyProperty extends Property implements Schema { static readonly propertyType = PropertyType.scalar; static readonly propertyName = PropertyName.thermal_correction_to_enthalpy; static readonly isRefined = true; + declare name: Schema["name"]; + constructor(config: Omit) { super({ ...config, name: ThermalCorrectionToEnthalpyProperty.propertyName }); } } thermalCorrectionToEnthalpyPropertySchemaMixin(ThermalCorrectionToEnthalpyProperty.prototype); + +export default ThermalCorrectionToEnthalpyProperty; diff --git a/src/js/types.ts b/src/js/types.ts index 1de32fc..63977fa 100644 --- a/src/js/types.ts +++ b/src/js/types.ts @@ -22,3 +22,7 @@ export type { default as DensityOfStatesProperty } from "./properties/non-scalar export type { default as DielectricTensorProperty } from "./properties/non-scalar/DielectricTensorProperty"; export type { default as PhononDispersionsProperty } from "./properties/non-scalar/PhononDispersionsProperty"; export type { default as PhononDOSProperty } from "./properties/non-scalar/PhononDOSProperty"; +export type { + PseudopotentialFilter, + ExchangeCorrelation, +} from "./meta_properties/PseudopotentialMetaProperty"; diff --git a/tests/js/index-exports.test.ts b/tests/js/index-exports.test.ts new file mode 100644 index 0000000..178c4ef --- /dev/null +++ b/tests/js/index-exports.test.ts @@ -0,0 +1,17 @@ +import { assert, expect } from "chai"; + +import * as index from "../../src/js"; + +/** + * Loads every runtime export from the package barrel so re-export bindings + * count toward function coverage (most suite tests import implementation files directly). + */ +describe("package index (barrel)", () => { + it("exposes all public runtime exports", () => { + const keys = Object.keys(index) as (keyof typeof index)[]; + expect(keys.length).to.be.greaterThan(0); + keys.forEach((key) => { + assert.exists(index[key], String(key)); + }); + }); +}); diff --git a/tests/js/meta_properties/pseudopotential.test.ts b/tests/js/meta_properties/pseudopotential.test.ts index af1a253..9b720ad 100644 --- a/tests/js/meta_properties/pseudopotential.test.ts +++ b/tests/js/meta_properties/pseudopotential.test.ts @@ -116,6 +116,15 @@ describe("PseudopotentialMetaProperty", () => { expect(vaspResult[0].path).to.include("default"); expect(vaspResult[0].path).to.include("5.2"); + const vaspAppResult = Pseudopotential.sortByPathApplicationSpecific(vaspPseudos, "vasp"); + expect(vaspAppResult[0].path).to.equal(vaspResult[0].path); + + const espressoAppResult = Pseudopotential.sortByPathApplicationSpecific( + vaspPseudos, + "espresso", + ); + expect(espressoAppResult).to.deep.equal(vaspPseudos); + const rawData = pseudos.map((pseudo) => pseudo._json); const gbrvResults = Pseudopotential.filterRawDataByPath(rawData, "gbrv"); expect(gbrvResults).to.have.length(1); diff --git a/tests/js/properties/workflow_property.test.ts b/tests/js/properties/workflow_property.test.ts index dda7d1b..976b8db 100644 --- a/tests/js/properties/workflow_property.test.ts +++ b/tests/js/properties/workflow_property.test.ts @@ -7,8 +7,10 @@ import { PropertyName, PropertyType } from "../../../src/js/settings"; describe("WorkflowProperty", () => { it("should create a workflow property with correct constructor, propertyType, and propertyName", () => { const config: Omit = { + workflows: [], subworkflows: [ { + properties: [], units: [ { type: "io", @@ -16,43 +18,55 @@ describe("WorkflowProperty", () => { source: "api", input: [ { + type: "api", endpoint: "https://api.example.com/data", endpoint_options: {}, + name: "test_input", }, ], flowchartId: "unit-1", + name: "test_input", + preProcessors: [], + postProcessors: [], + monitors: [], + results: [], }, ], model: { - type: "test_type", - subtype: "test_subtype", + type: "dft", + subtype: "lda", + functional: "pz", method: { - type: "test_method_type", - subtype: "test_method_subtype", + type: "pseudopotential", + subtype: "us", }, }, application: { - shortName: "test_app", - summary: "Test application", - version: "1.0.0", + shortName: "espresso", + summary: "Espresso application", + version: "7.2", + name: "espresso", + build: "GNU", }, name: "test_subworkflow", }, ], units: [ { - type: "io", - subtype: "input", - source: "api", - input: [ - { - endpoint: "https://api.example.com/data", - endpoint_options: {}, - }, - ], + type: "map", + name: "test_map", flowchartId: "workflow-unit-1", + workflowId: "workflow-1", + input: { + target: "test_input", + }, + results: [], + preProcessors: [], + postProcessors: [], + monitors: [], }, ], + properties: [], }; const workflowProperty = new WorkflowProperty(config);