@mat3ra/prode 2026.3.30-0 → 2026.5.28-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js/PropertyFactory.d.ts +2 -2
- package/dist/js/generated/AtomicConstraintsPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/AtomicConstraintsPropertySchemaMixin.js +6 -0
- package/dist/js/generated/AtomicForcesPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/AtomicForcesPropertySchemaMixin.js +9 -0
- package/dist/js/generated/AveragePotentialProfilePropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/AveragePotentialProfilePropertySchemaMixin.js +15 -0
- package/dist/js/generated/BandGapsPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/BandGapsPropertySchemaMixin.js +9 -0
- package/dist/js/generated/BandStructurePropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/BandStructurePropertySchemaMixin.js +18 -0
- package/dist/js/generated/BoundaryConditionsPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/BoundaryConditionsPropertySchemaMixin.js +9 -0
- package/dist/js/generated/ChargeDensityProfilePropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/ChargeDensityProfilePropertySchemaMixin.js +15 -0
- package/dist/js/generated/ConvergenceElectronicPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/ConvergenceElectronicPropertySchemaMixin.js +9 -0
- package/dist/js/generated/ConvergenceIonicPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/ConvergenceIonicPropertySchemaMixin.js +12 -0
- package/dist/js/generated/DensityOfStatesPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/DensityOfStatesPropertySchemaMixin.js +18 -0
- package/dist/js/generated/DielectricTensorPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/DielectricTensorPropertySchemaMixin.js +6 -0
- package/dist/js/generated/FermiEnergyPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/FermiEnergyPropertySchemaMixin.js +9 -0
- package/dist/js/generated/FileContentPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/FileContentPropertySchemaMixin.js +15 -0
- package/dist/js/generated/FinalStructurePropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/FinalStructurePropertySchemaMixin.js +9 -0
- package/dist/js/generated/HOMOEnergyPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/HOMOEnergyPropertySchemaMixin.js +9 -0
- package/dist/js/generated/HubbardUPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/HubbardUPropertySchemaMixin.js +9 -0
- package/dist/js/generated/HubbardVNNPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/HubbardVNNPropertySchemaMixin.js +9 -0
- package/dist/js/generated/HubbardVPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/HubbardVPropertySchemaMixin.js +9 -0
- package/dist/js/generated/IonizationPotentialElementalPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/IonizationPotentialElementalPropertySchemaMixin.js +9 -0
- package/dist/js/generated/IsRelaxedPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/IsRelaxedPropertySchemaMixin.js +9 -0
- package/dist/js/generated/JupyterNotebookEndpointPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/JupyterNotebookEndpointPropertySchemaMixin.js +12 -0
- package/dist/js/generated/LUMOEnergyPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/LUMOEnergyPropertySchemaMixin.js +9 -0
- package/dist/js/generated/MagneticMomentsPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/MagneticMomentsPropertySchemaMixin.js +9 -0
- package/dist/js/generated/MetaPropertyHolderSchemaMixin.d.ts +1 -1
- package/dist/js/generated/MetaPropertyHolderSchemaMixin.js +6 -0
- package/dist/js/generated/PhononDOSPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/PhononDOSPropertySchemaMixin.js +15 -0
- package/dist/js/generated/PhononDispersionsPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/PhononDispersionsPropertySchemaMixin.js +15 -0
- package/dist/js/generated/PotentialProfilePropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/PotentialProfilePropertySchemaMixin.js +15 -0
- package/dist/js/generated/PressurePropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/PressurePropertySchemaMixin.js +9 -0
- package/dist/js/generated/PropertyHolderSchemaMixin.d.ts +1 -1
- package/dist/js/generated/PropertyHolderSchemaMixin.js +21 -0
- package/dist/js/generated/ProtoPropertyHolderSchemaMixin.d.ts +1 -1
- package/dist/js/generated/ProtoPropertyHolderSchemaMixin.js +6 -0
- package/dist/js/generated/PseudopotentialMetaPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/PseudopotentialMetaPropertySchemaMixin.js +36 -0
- package/dist/js/generated/ReactionEnergyBarrierPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/ReactionEnergyBarrierPropertySchemaMixin.js +9 -0
- package/dist/js/generated/ReactionEnergyProfilePropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/ReactionEnergyProfilePropertySchemaMixin.js +15 -0
- package/dist/js/generated/StressTensorPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/StressTensorPropertySchemaMixin.js +9 -0
- package/dist/js/generated/SurfaceEnergyPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/SurfaceEnergyPropertySchemaMixin.js +9 -0
- package/dist/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.js +9 -0
- package/dist/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.js +9 -0
- package/dist/js/generated/TotalEnergyContributionsPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/TotalEnergyContributionsPropertySchemaMixin.js +48 -0
- package/dist/js/generated/TotalEnergyPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/TotalEnergyPropertySchemaMixin.js +9 -0
- package/dist/js/generated/TotalForcePropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/TotalForcePropertySchemaMixin.js +9 -0
- package/dist/js/generated/ValenceBandOffsetPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/ValenceBandOffsetPropertySchemaMixin.js +9 -0
- package/dist/js/generated/WavefunctionAmplitudePropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/WavefunctionAmplitudePropertySchemaMixin.js +15 -0
- package/dist/js/generated/WorkflowPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/WorkflowPropertySchemaMixin.js +39 -12
- package/dist/js/generated/ZeroPointEnergyPropertySchemaMixin.d.ts +1 -1
- package/dist/js/generated/ZeroPointEnergyPropertySchemaMixin.js +9 -0
- package/dist/js/holders/MetaPropertyHolder.d.ts +4 -5
- package/dist/js/holders/MetaPropertyHolder.js +1 -1
- package/dist/js/holders/PropertyHolder.d.ts +5 -4
- package/dist/js/holders/mixins/MetaPropertyHolderMixin.d.ts +2 -2
- package/dist/js/index.d.ts +3 -0
- package/dist/js/index.js +7 -1
- package/dist/js/meta_properties/PseudopotentialMetaProperty.d.ts +14 -14
- package/dist/js/meta_properties/PseudopotentialMetaProperty.js +7 -1
- package/dist/js/properties/scalar/ThermalCorrectionToEnergyProperty.d.ts +5 -5
- package/dist/js/properties/scalar/ThermalCorrectionToEnergyProperty.js +1 -1
- package/dist/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.d.ts +5 -5
- package/dist/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.js +1 -1
- package/dist/js/types.d.ts +1 -0
- package/package.json +5 -5
- package/src/js/PropertyFactory.ts +1 -2
- package/src/js/generated/AtomicConstraintsPropertySchemaMixin.ts +9 -1
- package/src/js/generated/AtomicForcesPropertySchemaMixin.ts +12 -1
- package/src/js/generated/AveragePotentialProfilePropertySchemaMixin.ts +18 -1
- package/src/js/generated/BandGapsPropertySchemaMixin.ts +12 -1
- package/src/js/generated/BandStructurePropertySchemaMixin.ts +21 -1
- package/src/js/generated/BoundaryConditionsPropertySchemaMixin.ts +12 -1
- package/src/js/generated/ChargeDensityProfilePropertySchemaMixin.ts +18 -1
- package/src/js/generated/ConvergenceElectronicPropertySchemaMixin.ts +12 -1
- package/src/js/generated/ConvergenceIonicPropertySchemaMixin.ts +15 -1
- package/src/js/generated/DensityOfStatesPropertySchemaMixin.ts +21 -1
- package/src/js/generated/DielectricTensorPropertySchemaMixin.ts +9 -1
- package/src/js/generated/FermiEnergyPropertySchemaMixin.ts +12 -1
- package/src/js/generated/FileContentPropertySchemaMixin.ts +18 -1
- package/src/js/generated/FinalStructurePropertySchemaMixin.ts +12 -1
- package/src/js/generated/HOMOEnergyPropertySchemaMixin.ts +12 -1
- package/src/js/generated/HubbardUPropertySchemaMixin.ts +12 -1
- package/src/js/generated/HubbardVNNPropertySchemaMixin.ts +12 -1
- package/src/js/generated/HubbardVPropertySchemaMixin.ts +12 -1
- package/src/js/generated/IonizationPotentialElementalPropertySchemaMixin.ts +12 -1
- package/src/js/generated/IsRelaxedPropertySchemaMixin.ts +12 -1
- package/src/js/generated/JupyterNotebookEndpointPropertySchemaMixin.ts +15 -1
- package/src/js/generated/LUMOEnergyPropertySchemaMixin.ts +12 -1
- package/src/js/generated/MagneticMomentsPropertySchemaMixin.ts +12 -1
- package/src/js/generated/MetaPropertyHolderSchemaMixin.ts +9 -1
- package/src/js/generated/PhononDOSPropertySchemaMixin.ts +18 -1
- package/src/js/generated/PhononDispersionsPropertySchemaMixin.ts +18 -1
- package/src/js/generated/PotentialProfilePropertySchemaMixin.ts +18 -1
- package/src/js/generated/PressurePropertySchemaMixin.ts +12 -1
- package/src/js/generated/PropertyHolderSchemaMixin.ts +24 -1
- package/src/js/generated/ProtoPropertyHolderSchemaMixin.ts +9 -1
- package/src/js/generated/PseudopotentialMetaPropertySchemaMixin.ts +39 -1
- package/src/js/generated/ReactionEnergyBarrierPropertySchemaMixin.ts +12 -1
- package/src/js/generated/ReactionEnergyProfilePropertySchemaMixin.ts +18 -1
- package/src/js/generated/StressTensorPropertySchemaMixin.ts +12 -1
- package/src/js/generated/SurfaceEnergyPropertySchemaMixin.ts +12 -1
- package/src/js/generated/ThermalCorrectionToEnergyPropertySchemaMixin.ts +12 -1
- package/src/js/generated/ThermalCorrectionToEnthalpyPropertySchemaMixin.ts +12 -1
- package/src/js/generated/TotalEnergyContributionsPropertySchemaMixin.ts +59 -1
- package/src/js/generated/TotalEnergyPropertySchemaMixin.ts +12 -1
- package/src/js/generated/TotalForcePropertySchemaMixin.ts +12 -1
- package/src/js/generated/ValenceBandOffsetPropertySchemaMixin.ts +12 -1
- package/src/js/generated/WavefunctionAmplitudePropertySchemaMixin.ts +18 -1
- package/src/js/generated/WorkflowPropertySchemaMixin.ts +42 -13
- package/src/js/generated/ZeroPointEnergyPropertySchemaMixin.ts +12 -1
- package/src/js/holders/MetaPropertyHolder.ts +5 -3
- package/src/js/holders/PropertyHolder.ts +5 -3
- package/src/js/holders/mixins/MetaPropertyHolderMixin.ts +2 -2
- package/src/js/index.ts +3 -0
- package/src/js/meta_properties/PseudopotentialMetaProperty.ts +24 -15
- package/src/js/properties/scalar/ThermalCorrectionToEnergyProperty.ts +7 -3
- package/src/js/properties/scalar/ThermalCorrectionToEnthalpyProperty.ts +8 -3
- package/src/js/types.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mat3ra/prode",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.5.28-0",
|
|
4
4
|
"description": "PROperty DEfinitions",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "nyc --reporter=text mocha --recursive --bail",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@babel/eslint-parser": "^7.16.3",
|
|
53
53
|
"@exabyte-io/eslint-config": "2025.5.13-0",
|
|
54
|
-
"@mat3ra/code": "
|
|
55
|
-
"@mat3ra/esse": "2026.
|
|
56
|
-
"@mat3ra/made": "
|
|
54
|
+
"@mat3ra/code": "2026.5.27-0",
|
|
55
|
+
"@mat3ra/esse": "2026.5.27-0",
|
|
56
|
+
"@mat3ra/made": "2026.5.28-0",
|
|
57
57
|
"@mat3ra/tsconfig": "2024.6.3-0",
|
|
58
|
+
"@types/lodash": "^4.17.20",
|
|
58
59
|
"@typescript-eslint/eslint-plugin": "^5.9.1",
|
|
59
60
|
"@typescript-eslint/parser": "^5.9.1",
|
|
60
|
-
"@types/lodash": "^4.17.20",
|
|
61
61
|
"chai": "^4.3.4",
|
|
62
62
|
"eslint": "^7.32.0",
|
|
63
63
|
"eslint-config-airbnb": "^19.0.2",
|
|
@@ -6,7 +6,6 @@ import type {
|
|
|
6
6
|
} from "@mat3ra/esse/dist/js/types";
|
|
7
7
|
|
|
8
8
|
import PseudopotentialProperty from "./meta_properties/PseudopotentialMetaProperty";
|
|
9
|
-
import type MetaProperty from "./MetaProperty";
|
|
10
9
|
import AveragePotentialProfileProperty from "./properties/non-scalar/AveragePotentialProfileProperty";
|
|
11
10
|
import BandGapsProperty from "./properties/non-scalar/BandGapsProperty";
|
|
12
11
|
import BandStructureProperty from "./properties/non-scalar/BandStructureProperty";
|
|
@@ -209,7 +208,7 @@ export default class PropertyFactory {
|
|
|
209
208
|
return new PropertyClass(config);
|
|
210
209
|
}
|
|
211
210
|
|
|
212
|
-
static createMetaProperty(config: AnyMetaProperty)
|
|
211
|
+
static createMetaProperty(config: AnyMetaProperty) {
|
|
213
212
|
const { name } = config;
|
|
214
213
|
const PropertyClass = META_PROPERTY_CLASS_MAP[name];
|
|
215
214
|
return new PropertyClass(config);
|
|
@@ -9,15 +9,23 @@ export type AtomicConstraintsPropertySchemaMixin = Omit<
|
|
|
9
9
|
export type AtomicConstraintsPropertyInMemoryEntity = InMemoryEntity &
|
|
10
10
|
AtomicConstraintsPropertySchemaMixin;
|
|
11
11
|
|
|
12
|
-
export function atomicConstraintsPropertySchemaMixin
|
|
12
|
+
export function atomicConstraintsPropertySchemaMixin<T extends InMemoryEntity>(
|
|
13
|
+
item: InMemoryEntity,
|
|
14
|
+
): asserts item is T & AtomicConstraintsPropertySchemaMixin {
|
|
13
15
|
// @ts-expect-error
|
|
14
16
|
const properties: InMemoryEntity & AtomicConstraintsPropertySchemaMixin = {
|
|
15
17
|
get name() {
|
|
16
18
|
return this.requiredProp<AtomicConstraintsPropertySchema["name"]>("name");
|
|
17
19
|
},
|
|
20
|
+
set name(value: AtomicConstraintsPropertySchema["name"]) {
|
|
21
|
+
this.setProp("name", value);
|
|
22
|
+
},
|
|
18
23
|
get values() {
|
|
19
24
|
return this.requiredProp<AtomicConstraintsPropertySchema["values"]>("values");
|
|
20
25
|
},
|
|
26
|
+
set values(value: AtomicConstraintsPropertySchema["values"]) {
|
|
27
|
+
this.setProp("values", value);
|
|
28
|
+
},
|
|
21
29
|
};
|
|
22
30
|
|
|
23
31
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -8,18 +8,29 @@ export type AtomicForcesPropertySchemaMixin = Omit<
|
|
|
8
8
|
|
|
9
9
|
export type AtomicForcesPropertyInMemoryEntity = InMemoryEntity & AtomicForcesPropertySchemaMixin;
|
|
10
10
|
|
|
11
|
-
export function atomicForcesPropertySchemaMixin
|
|
11
|
+
export function atomicForcesPropertySchemaMixin<T extends InMemoryEntity>(
|
|
12
|
+
item: InMemoryEntity,
|
|
13
|
+
): asserts item is T & AtomicForcesPropertySchemaMixin {
|
|
12
14
|
// @ts-expect-error
|
|
13
15
|
const properties: InMemoryEntity & AtomicForcesPropertySchemaMixin = {
|
|
14
16
|
get name() {
|
|
15
17
|
return this.requiredProp<AtomicForcesPropertySchema["name"]>("name");
|
|
16
18
|
},
|
|
19
|
+
set name(value: AtomicForcesPropertySchema["name"]) {
|
|
20
|
+
this.setProp("name", value);
|
|
21
|
+
},
|
|
17
22
|
get values() {
|
|
18
23
|
return this.requiredProp<AtomicForcesPropertySchema["values"]>("values");
|
|
19
24
|
},
|
|
25
|
+
set values(value: AtomicForcesPropertySchema["values"]) {
|
|
26
|
+
this.setProp("values", value);
|
|
27
|
+
},
|
|
20
28
|
get units() {
|
|
21
29
|
return this.requiredProp<AtomicForcesPropertySchema["units"]>("units");
|
|
22
30
|
},
|
|
31
|
+
set units(value: AtomicForcesPropertySchema["units"]) {
|
|
32
|
+
this.setProp("units", value);
|
|
33
|
+
},
|
|
23
34
|
};
|
|
24
35
|
|
|
25
36
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -9,28 +9,45 @@ export type AveragePotentialProfilePropertySchemaMixin = Omit<
|
|
|
9
9
|
export type AveragePotentialProfilePropertyInMemoryEntity = InMemoryEntity &
|
|
10
10
|
AveragePotentialProfilePropertySchemaMixin;
|
|
11
11
|
|
|
12
|
-
export function averagePotentialProfilePropertySchemaMixin
|
|
12
|
+
export function averagePotentialProfilePropertySchemaMixin<T extends InMemoryEntity>(
|
|
13
|
+
item: InMemoryEntity,
|
|
14
|
+
): asserts item is T & AveragePotentialProfilePropertySchemaMixin {
|
|
13
15
|
// @ts-expect-error
|
|
14
16
|
const properties: InMemoryEntity & AveragePotentialProfilePropertySchemaMixin = {
|
|
15
17
|
get xAxis() {
|
|
16
18
|
return this.requiredProp<AveragePotentialProfilePropertySchema["xAxis"]>("xAxis");
|
|
17
19
|
},
|
|
20
|
+
set xAxis(value: AveragePotentialProfilePropertySchema["xAxis"]) {
|
|
21
|
+
this.setProp("xAxis", value);
|
|
22
|
+
},
|
|
18
23
|
get yAxis() {
|
|
19
24
|
return this.requiredProp<AveragePotentialProfilePropertySchema["yAxis"]>("yAxis");
|
|
20
25
|
},
|
|
26
|
+
set yAxis(value: AveragePotentialProfilePropertySchema["yAxis"]) {
|
|
27
|
+
this.setProp("yAxis", value);
|
|
28
|
+
},
|
|
21
29
|
get name() {
|
|
22
30
|
return this.requiredProp<AveragePotentialProfilePropertySchema["name"]>("name");
|
|
23
31
|
},
|
|
32
|
+
set name(value: AveragePotentialProfilePropertySchema["name"]) {
|
|
33
|
+
this.setProp("name", value);
|
|
34
|
+
},
|
|
24
35
|
get xDataArray() {
|
|
25
36
|
return this.requiredProp<AveragePotentialProfilePropertySchema["xDataArray"]>(
|
|
26
37
|
"xDataArray",
|
|
27
38
|
);
|
|
28
39
|
},
|
|
40
|
+
set xDataArray(value: AveragePotentialProfilePropertySchema["xDataArray"]) {
|
|
41
|
+
this.setProp("xDataArray", value);
|
|
42
|
+
},
|
|
29
43
|
get yDataSeries() {
|
|
30
44
|
return this.requiredProp<AveragePotentialProfilePropertySchema["yDataSeries"]>(
|
|
31
45
|
"yDataSeries",
|
|
32
46
|
);
|
|
33
47
|
},
|
|
48
|
+
set yDataSeries(value: AveragePotentialProfilePropertySchema["yDataSeries"]) {
|
|
49
|
+
this.setProp("yDataSeries", value);
|
|
50
|
+
},
|
|
34
51
|
};
|
|
35
52
|
|
|
36
53
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -8,18 +8,29 @@ export type BandGapsPropertySchemaMixin = Omit<
|
|
|
8
8
|
|
|
9
9
|
export type BandGapsPropertyInMemoryEntity = InMemoryEntity & BandGapsPropertySchemaMixin;
|
|
10
10
|
|
|
11
|
-
export function bandGapsPropertySchemaMixin
|
|
11
|
+
export function bandGapsPropertySchemaMixin<T extends InMemoryEntity>(
|
|
12
|
+
item: InMemoryEntity,
|
|
13
|
+
): asserts item is T & BandGapsPropertySchemaMixin {
|
|
12
14
|
// @ts-expect-error
|
|
13
15
|
const properties: InMemoryEntity & BandGapsPropertySchemaMixin = {
|
|
14
16
|
get name() {
|
|
15
17
|
return this.requiredProp<BandGapsPropertySchema["name"]>("name");
|
|
16
18
|
},
|
|
19
|
+
set name(value: BandGapsPropertySchema["name"]) {
|
|
20
|
+
this.setProp("name", value);
|
|
21
|
+
},
|
|
17
22
|
get values() {
|
|
18
23
|
return this.requiredProp<BandGapsPropertySchema["values"]>("values");
|
|
19
24
|
},
|
|
25
|
+
set values(value: BandGapsPropertySchema["values"]) {
|
|
26
|
+
this.setProp("values", value);
|
|
27
|
+
},
|
|
20
28
|
get eigenvalues() {
|
|
21
29
|
return this.prop<BandGapsPropertySchema["eigenvalues"]>("eigenvalues");
|
|
22
30
|
},
|
|
31
|
+
set eigenvalues(value: BandGapsPropertySchema["eigenvalues"]) {
|
|
32
|
+
this.setProp("eigenvalues", value);
|
|
33
|
+
},
|
|
23
34
|
};
|
|
24
35
|
|
|
25
36
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -8,27 +8,47 @@ export type BandStructurePropertySchemaMixin = Omit<
|
|
|
8
8
|
|
|
9
9
|
export type BandStructurePropertyInMemoryEntity = InMemoryEntity & BandStructurePropertySchemaMixin;
|
|
10
10
|
|
|
11
|
-
export function bandStructurePropertySchemaMixin
|
|
11
|
+
export function bandStructurePropertySchemaMixin<T extends InMemoryEntity>(
|
|
12
|
+
item: InMemoryEntity,
|
|
13
|
+
): asserts item is T & BandStructurePropertySchemaMixin {
|
|
12
14
|
// @ts-expect-error
|
|
13
15
|
const properties: InMemoryEntity & BandStructurePropertySchemaMixin = {
|
|
14
16
|
get xAxis() {
|
|
15
17
|
return this.requiredProp<BandStructurePropertySchema["xAxis"]>("xAxis");
|
|
16
18
|
},
|
|
19
|
+
set xAxis(value: BandStructurePropertySchema["xAxis"]) {
|
|
20
|
+
this.setProp("xAxis", value);
|
|
21
|
+
},
|
|
17
22
|
get yAxis() {
|
|
18
23
|
return this.requiredProp<BandStructurePropertySchema["yAxis"]>("yAxis");
|
|
19
24
|
},
|
|
25
|
+
set yAxis(value: BandStructurePropertySchema["yAxis"]) {
|
|
26
|
+
this.setProp("yAxis", value);
|
|
27
|
+
},
|
|
20
28
|
get name() {
|
|
21
29
|
return this.requiredProp<BandStructurePropertySchema["name"]>("name");
|
|
22
30
|
},
|
|
31
|
+
set name(value: BandStructurePropertySchema["name"]) {
|
|
32
|
+
this.setProp("name", value);
|
|
33
|
+
},
|
|
23
34
|
get spin() {
|
|
24
35
|
return this.requiredProp<BandStructurePropertySchema["spin"]>("spin");
|
|
25
36
|
},
|
|
37
|
+
set spin(value: BandStructurePropertySchema["spin"]) {
|
|
38
|
+
this.setProp("spin", value);
|
|
39
|
+
},
|
|
26
40
|
get xDataArray() {
|
|
27
41
|
return this.requiredProp<BandStructurePropertySchema["xDataArray"]>("xDataArray");
|
|
28
42
|
},
|
|
43
|
+
set xDataArray(value: BandStructurePropertySchema["xDataArray"]) {
|
|
44
|
+
this.setProp("xDataArray", value);
|
|
45
|
+
},
|
|
29
46
|
get yDataSeries() {
|
|
30
47
|
return this.requiredProp<BandStructurePropertySchema["yDataSeries"]>("yDataSeries");
|
|
31
48
|
},
|
|
49
|
+
set yDataSeries(value: BandStructurePropertySchema["yDataSeries"]) {
|
|
50
|
+
this.setProp("yDataSeries", value);
|
|
51
|
+
},
|
|
32
52
|
};
|
|
33
53
|
|
|
34
54
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -9,18 +9,29 @@ export type BoundaryConditionsPropertySchemaMixin = Omit<
|
|
|
9
9
|
export type BoundaryConditionsPropertyInMemoryEntity = InMemoryEntity &
|
|
10
10
|
BoundaryConditionsPropertySchemaMixin;
|
|
11
11
|
|
|
12
|
-
export function boundaryConditionsPropertySchemaMixin
|
|
12
|
+
export function boundaryConditionsPropertySchemaMixin<T extends InMemoryEntity>(
|
|
13
|
+
item: InMemoryEntity,
|
|
14
|
+
): asserts item is T & BoundaryConditionsPropertySchemaMixin {
|
|
13
15
|
// @ts-expect-error
|
|
14
16
|
const properties: InMemoryEntity & BoundaryConditionsPropertySchemaMixin = {
|
|
15
17
|
get name() {
|
|
16
18
|
return this.requiredProp<BoundaryConditionsPropertySchema["name"]>("name");
|
|
17
19
|
},
|
|
20
|
+
set name(value: BoundaryConditionsPropertySchema["name"]) {
|
|
21
|
+
this.setProp("name", value);
|
|
22
|
+
},
|
|
18
23
|
get type() {
|
|
19
24
|
return this.requiredProp<BoundaryConditionsPropertySchema["type"]>("type");
|
|
20
25
|
},
|
|
26
|
+
set type(value: BoundaryConditionsPropertySchema["type"]) {
|
|
27
|
+
this.setProp("type", value);
|
|
28
|
+
},
|
|
21
29
|
get offset() {
|
|
22
30
|
return this.requiredProp<BoundaryConditionsPropertySchema["offset"]>("offset");
|
|
23
31
|
},
|
|
32
|
+
set offset(value: BoundaryConditionsPropertySchema["offset"]) {
|
|
33
|
+
this.setProp("offset", value);
|
|
34
|
+
},
|
|
24
35
|
};
|
|
25
36
|
|
|
26
37
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -9,28 +9,45 @@ export type ChargeDensityProfilePropertySchemaMixin = Omit<
|
|
|
9
9
|
export type ChargeDensityProfilePropertyInMemoryEntity = InMemoryEntity &
|
|
10
10
|
ChargeDensityProfilePropertySchemaMixin;
|
|
11
11
|
|
|
12
|
-
export function chargeDensityProfilePropertySchemaMixin
|
|
12
|
+
export function chargeDensityProfilePropertySchemaMixin<T extends InMemoryEntity>(
|
|
13
|
+
item: InMemoryEntity,
|
|
14
|
+
): asserts item is T & ChargeDensityProfilePropertySchemaMixin {
|
|
13
15
|
// @ts-expect-error
|
|
14
16
|
const properties: InMemoryEntity & ChargeDensityProfilePropertySchemaMixin = {
|
|
15
17
|
get xAxis() {
|
|
16
18
|
return this.requiredProp<ChargeDensityProfilePropertySchema["xAxis"]>("xAxis");
|
|
17
19
|
},
|
|
20
|
+
set xAxis(value: ChargeDensityProfilePropertySchema["xAxis"]) {
|
|
21
|
+
this.setProp("xAxis", value);
|
|
22
|
+
},
|
|
18
23
|
get yAxis() {
|
|
19
24
|
return this.requiredProp<ChargeDensityProfilePropertySchema["yAxis"]>("yAxis");
|
|
20
25
|
},
|
|
26
|
+
set yAxis(value: ChargeDensityProfilePropertySchema["yAxis"]) {
|
|
27
|
+
this.setProp("yAxis", value);
|
|
28
|
+
},
|
|
21
29
|
get name() {
|
|
22
30
|
return this.requiredProp<ChargeDensityProfilePropertySchema["name"]>("name");
|
|
23
31
|
},
|
|
32
|
+
set name(value: ChargeDensityProfilePropertySchema["name"]) {
|
|
33
|
+
this.setProp("name", value);
|
|
34
|
+
},
|
|
24
35
|
get xDataArray() {
|
|
25
36
|
return this.requiredProp<ChargeDensityProfilePropertySchema["xDataArray"]>(
|
|
26
37
|
"xDataArray",
|
|
27
38
|
);
|
|
28
39
|
},
|
|
40
|
+
set xDataArray(value: ChargeDensityProfilePropertySchema["xDataArray"]) {
|
|
41
|
+
this.setProp("xDataArray", value);
|
|
42
|
+
},
|
|
29
43
|
get yDataSeries() {
|
|
30
44
|
return this.requiredProp<ChargeDensityProfilePropertySchema["yDataSeries"]>(
|
|
31
45
|
"yDataSeries",
|
|
32
46
|
);
|
|
33
47
|
},
|
|
48
|
+
set yDataSeries(value: ChargeDensityProfilePropertySchema["yDataSeries"]) {
|
|
49
|
+
this.setProp("yDataSeries", value);
|
|
50
|
+
},
|
|
34
51
|
};
|
|
35
52
|
|
|
36
53
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -9,18 +9,29 @@ export type ConvergenceElectronicPropertySchemaMixin = Omit<
|
|
|
9
9
|
export type ConvergenceElectronicPropertyInMemoryEntity = InMemoryEntity &
|
|
10
10
|
ConvergenceElectronicPropertySchemaMixin;
|
|
11
11
|
|
|
12
|
-
export function convergenceElectronicPropertySchemaMixin
|
|
12
|
+
export function convergenceElectronicPropertySchemaMixin<T extends InMemoryEntity>(
|
|
13
|
+
item: InMemoryEntity,
|
|
14
|
+
): asserts item is T & ConvergenceElectronicPropertySchemaMixin {
|
|
13
15
|
// @ts-expect-error
|
|
14
16
|
const properties: InMemoryEntity & ConvergenceElectronicPropertySchemaMixin = {
|
|
15
17
|
get name() {
|
|
16
18
|
return this.requiredProp<ConvergenceElectronicPropertySchema["name"]>("name");
|
|
17
19
|
},
|
|
20
|
+
set name(value: ConvergenceElectronicPropertySchema["name"]) {
|
|
21
|
+
this.setProp("name", value);
|
|
22
|
+
},
|
|
18
23
|
get units() {
|
|
19
24
|
return this.requiredProp<ConvergenceElectronicPropertySchema["units"]>("units");
|
|
20
25
|
},
|
|
26
|
+
set units(value: ConvergenceElectronicPropertySchema["units"]) {
|
|
27
|
+
this.setProp("units", value);
|
|
28
|
+
},
|
|
21
29
|
get data() {
|
|
22
30
|
return this.requiredProp<ConvergenceElectronicPropertySchema["data"]>("data");
|
|
23
31
|
},
|
|
32
|
+
set data(value: ConvergenceElectronicPropertySchema["data"]) {
|
|
33
|
+
this.setProp("data", value);
|
|
34
|
+
},
|
|
24
35
|
};
|
|
25
36
|
|
|
26
37
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -9,21 +9,35 @@ export type ConvergenceIonicPropertySchemaMixin = Omit<
|
|
|
9
9
|
export type ConvergenceIonicPropertyInMemoryEntity = InMemoryEntity &
|
|
10
10
|
ConvergenceIonicPropertySchemaMixin;
|
|
11
11
|
|
|
12
|
-
export function convergenceIonicPropertySchemaMixin
|
|
12
|
+
export function convergenceIonicPropertySchemaMixin<T extends InMemoryEntity>(
|
|
13
|
+
item: InMemoryEntity,
|
|
14
|
+
): asserts item is T & ConvergenceIonicPropertySchemaMixin {
|
|
13
15
|
// @ts-expect-error
|
|
14
16
|
const properties: InMemoryEntity & ConvergenceIonicPropertySchemaMixin = {
|
|
15
17
|
get name() {
|
|
16
18
|
return this.requiredProp<ConvergenceIonicPropertySchema["name"]>("name");
|
|
17
19
|
},
|
|
20
|
+
set name(value: ConvergenceIonicPropertySchema["name"]) {
|
|
21
|
+
this.setProp("name", value);
|
|
22
|
+
},
|
|
18
23
|
get tolerance() {
|
|
19
24
|
return this.prop<ConvergenceIonicPropertySchema["tolerance"]>("tolerance");
|
|
20
25
|
},
|
|
26
|
+
set tolerance(value: ConvergenceIonicPropertySchema["tolerance"]) {
|
|
27
|
+
this.setProp("tolerance", value);
|
|
28
|
+
},
|
|
21
29
|
get units() {
|
|
22
30
|
return this.requiredProp<ConvergenceIonicPropertySchema["units"]>("units");
|
|
23
31
|
},
|
|
32
|
+
set units(value: ConvergenceIonicPropertySchema["units"]) {
|
|
33
|
+
this.setProp("units", value);
|
|
34
|
+
},
|
|
24
35
|
get data() {
|
|
25
36
|
return this.requiredProp<ConvergenceIonicPropertySchema["data"]>("data");
|
|
26
37
|
},
|
|
38
|
+
set data(value: ConvergenceIonicPropertySchema["data"]) {
|
|
39
|
+
this.setProp("data", value);
|
|
40
|
+
},
|
|
27
41
|
};
|
|
28
42
|
|
|
29
43
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -9,27 +9,47 @@ export type DensityOfStatesPropertySchemaMixin = Omit<
|
|
|
9
9
|
export type DensityOfStatesPropertyInMemoryEntity = InMemoryEntity &
|
|
10
10
|
DensityOfStatesPropertySchemaMixin;
|
|
11
11
|
|
|
12
|
-
export function densityOfStatesPropertySchemaMixin
|
|
12
|
+
export function densityOfStatesPropertySchemaMixin<T extends InMemoryEntity>(
|
|
13
|
+
item: InMemoryEntity,
|
|
14
|
+
): asserts item is T & DensityOfStatesPropertySchemaMixin {
|
|
13
15
|
// @ts-expect-error
|
|
14
16
|
const properties: InMemoryEntity & DensityOfStatesPropertySchemaMixin = {
|
|
15
17
|
get xAxis() {
|
|
16
18
|
return this.requiredProp<DensityOfStatesPropertySchema["xAxis"]>("xAxis");
|
|
17
19
|
},
|
|
20
|
+
set xAxis(value: DensityOfStatesPropertySchema["xAxis"]) {
|
|
21
|
+
this.setProp("xAxis", value);
|
|
22
|
+
},
|
|
18
23
|
get yAxis() {
|
|
19
24
|
return this.requiredProp<DensityOfStatesPropertySchema["yAxis"]>("yAxis");
|
|
20
25
|
},
|
|
26
|
+
set yAxis(value: DensityOfStatesPropertySchema["yAxis"]) {
|
|
27
|
+
this.setProp("yAxis", value);
|
|
28
|
+
},
|
|
21
29
|
get name() {
|
|
22
30
|
return this.requiredProp<DensityOfStatesPropertySchema["name"]>("name");
|
|
23
31
|
},
|
|
32
|
+
set name(value: DensityOfStatesPropertySchema["name"]) {
|
|
33
|
+
this.setProp("name", value);
|
|
34
|
+
},
|
|
24
35
|
get legend() {
|
|
25
36
|
return this.requiredProp<DensityOfStatesPropertySchema["legend"]>("legend");
|
|
26
37
|
},
|
|
38
|
+
set legend(value: DensityOfStatesPropertySchema["legend"]) {
|
|
39
|
+
this.setProp("legend", value);
|
|
40
|
+
},
|
|
27
41
|
get xDataArray() {
|
|
28
42
|
return this.requiredProp<DensityOfStatesPropertySchema["xDataArray"]>("xDataArray");
|
|
29
43
|
},
|
|
44
|
+
set xDataArray(value: DensityOfStatesPropertySchema["xDataArray"]) {
|
|
45
|
+
this.setProp("xDataArray", value);
|
|
46
|
+
},
|
|
30
47
|
get yDataSeries() {
|
|
31
48
|
return this.requiredProp<DensityOfStatesPropertySchema["yDataSeries"]>("yDataSeries");
|
|
32
49
|
},
|
|
50
|
+
set yDataSeries(value: DensityOfStatesPropertySchema["yDataSeries"]) {
|
|
51
|
+
this.setProp("yDataSeries", value);
|
|
52
|
+
},
|
|
33
53
|
};
|
|
34
54
|
|
|
35
55
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -9,15 +9,23 @@ export type DielectricTensorPropertySchemaMixin = Omit<
|
|
|
9
9
|
export type DielectricTensorPropertyInMemoryEntity = InMemoryEntity &
|
|
10
10
|
DielectricTensorPropertySchemaMixin;
|
|
11
11
|
|
|
12
|
-
export function dielectricTensorPropertySchemaMixin
|
|
12
|
+
export function dielectricTensorPropertySchemaMixin<T extends InMemoryEntity>(
|
|
13
|
+
item: InMemoryEntity,
|
|
14
|
+
): asserts item is T & DielectricTensorPropertySchemaMixin {
|
|
13
15
|
// @ts-expect-error
|
|
14
16
|
const properties: InMemoryEntity & DielectricTensorPropertySchemaMixin = {
|
|
15
17
|
get name() {
|
|
16
18
|
return this.requiredProp<DielectricTensorPropertySchema["name"]>("name");
|
|
17
19
|
},
|
|
20
|
+
set name(value: DielectricTensorPropertySchema["name"]) {
|
|
21
|
+
this.setProp("name", value);
|
|
22
|
+
},
|
|
18
23
|
get values() {
|
|
19
24
|
return this.requiredProp<DielectricTensorPropertySchema["values"]>("values");
|
|
20
25
|
},
|
|
26
|
+
set values(value: DielectricTensorPropertySchema["values"]) {
|
|
27
|
+
this.setProp("values", value);
|
|
28
|
+
},
|
|
21
29
|
};
|
|
22
30
|
|
|
23
31
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -8,18 +8,29 @@ export type FermiEnergyPropertySchemaMixin = Omit<
|
|
|
8
8
|
|
|
9
9
|
export type FermiEnergyPropertyInMemoryEntity = InMemoryEntity & FermiEnergyPropertySchemaMixin;
|
|
10
10
|
|
|
11
|
-
export function fermiEnergyPropertySchemaMixin
|
|
11
|
+
export function fermiEnergyPropertySchemaMixin<T extends InMemoryEntity>(
|
|
12
|
+
item: InMemoryEntity,
|
|
13
|
+
): asserts item is T & FermiEnergyPropertySchemaMixin {
|
|
12
14
|
// @ts-expect-error
|
|
13
15
|
const properties: InMemoryEntity & FermiEnergyPropertySchemaMixin = {
|
|
14
16
|
get name() {
|
|
15
17
|
return this.requiredProp<FermiEnergyPropertySchema["name"]>("name");
|
|
16
18
|
},
|
|
19
|
+
set name(value: FermiEnergyPropertySchema["name"]) {
|
|
20
|
+
this.setProp("name", value);
|
|
21
|
+
},
|
|
17
22
|
get units() {
|
|
18
23
|
return this.requiredProp<FermiEnergyPropertySchema["units"]>("units");
|
|
19
24
|
},
|
|
25
|
+
set units(value: FermiEnergyPropertySchema["units"]) {
|
|
26
|
+
this.setProp("units", value);
|
|
27
|
+
},
|
|
20
28
|
get value() {
|
|
21
29
|
return this.requiredProp<FermiEnergyPropertySchema["value"]>("value");
|
|
22
30
|
},
|
|
31
|
+
set value(value: FermiEnergyPropertySchema["value"]) {
|
|
32
|
+
this.setProp("value", value);
|
|
33
|
+
},
|
|
23
34
|
};
|
|
24
35
|
|
|
25
36
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -8,24 +8,41 @@ export type FileContentPropertySchemaMixin = Omit<
|
|
|
8
8
|
|
|
9
9
|
export type FileContentPropertyInMemoryEntity = InMemoryEntity & FileContentPropertySchemaMixin;
|
|
10
10
|
|
|
11
|
-
export function fileContentPropertySchemaMixin
|
|
11
|
+
export function fileContentPropertySchemaMixin<T extends InMemoryEntity>(
|
|
12
|
+
item: InMemoryEntity,
|
|
13
|
+
): asserts item is T & FileContentPropertySchemaMixin {
|
|
12
14
|
// @ts-expect-error
|
|
13
15
|
const properties: InMemoryEntity & FileContentPropertySchemaMixin = {
|
|
14
16
|
get name() {
|
|
15
17
|
return this.requiredProp<FileContentPropertySchema["name"]>("name");
|
|
16
18
|
},
|
|
19
|
+
set name(value: FileContentPropertySchema["name"]) {
|
|
20
|
+
this.setProp("name", value);
|
|
21
|
+
},
|
|
17
22
|
get filetype() {
|
|
18
23
|
return this.requiredProp<FileContentPropertySchema["filetype"]>("filetype");
|
|
19
24
|
},
|
|
25
|
+
set filetype(value: FileContentPropertySchema["filetype"]) {
|
|
26
|
+
this.setProp("filetype", value);
|
|
27
|
+
},
|
|
20
28
|
get objectData() {
|
|
21
29
|
return this.requiredProp<FileContentPropertySchema["objectData"]>("objectData");
|
|
22
30
|
},
|
|
31
|
+
set objectData(value: FileContentPropertySchema["objectData"]) {
|
|
32
|
+
this.setProp("objectData", value);
|
|
33
|
+
},
|
|
23
34
|
get pathname() {
|
|
24
35
|
return this.prop<FileContentPropertySchema["pathname"]>("pathname");
|
|
25
36
|
},
|
|
37
|
+
set pathname(value: FileContentPropertySchema["pathname"]) {
|
|
38
|
+
this.setProp("pathname", value);
|
|
39
|
+
},
|
|
26
40
|
get basename() {
|
|
27
41
|
return this.prop<FileContentPropertySchema["basename"]>("basename");
|
|
28
42
|
},
|
|
43
|
+
set basename(value: FileContentPropertySchema["basename"]) {
|
|
44
|
+
this.setProp("basename", value);
|
|
45
|
+
},
|
|
29
46
|
};
|
|
30
47
|
|
|
31
48
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -9,18 +9,29 @@ export type FinalStructurePropertySchemaMixin = Omit<
|
|
|
9
9
|
export type FinalStructurePropertyInMemoryEntity = InMemoryEntity &
|
|
10
10
|
FinalStructurePropertySchemaMixin;
|
|
11
11
|
|
|
12
|
-
export function finalStructurePropertySchemaMixin
|
|
12
|
+
export function finalStructurePropertySchemaMixin<T extends InMemoryEntity>(
|
|
13
|
+
item: InMemoryEntity,
|
|
14
|
+
): asserts item is T & FinalStructurePropertySchemaMixin {
|
|
13
15
|
// @ts-expect-error
|
|
14
16
|
const properties: InMemoryEntity & FinalStructurePropertySchemaMixin = {
|
|
15
17
|
get name() {
|
|
16
18
|
return this.requiredProp<FinalStructurePropertySchema["name"]>("name");
|
|
17
19
|
},
|
|
20
|
+
set name(value: FinalStructurePropertySchema["name"]) {
|
|
21
|
+
this.setProp("name", value);
|
|
22
|
+
},
|
|
18
23
|
get isRelaxed() {
|
|
19
24
|
return this.requiredProp<FinalStructurePropertySchema["isRelaxed"]>("isRelaxed");
|
|
20
25
|
},
|
|
26
|
+
set isRelaxed(value: FinalStructurePropertySchema["isRelaxed"]) {
|
|
27
|
+
this.setProp("isRelaxed", value);
|
|
28
|
+
},
|
|
21
29
|
get materialId() {
|
|
22
30
|
return this.requiredProp<FinalStructurePropertySchema["materialId"]>("materialId");
|
|
23
31
|
},
|
|
32
|
+
set materialId(value: FinalStructurePropertySchema["materialId"]) {
|
|
33
|
+
this.setProp("materialId", value);
|
|
34
|
+
},
|
|
24
35
|
};
|
|
25
36
|
|
|
26
37
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -8,18 +8,29 @@ export type HOMOEnergyPropertySchemaMixin = Omit<
|
|
|
8
8
|
|
|
9
9
|
export type HOMOEnergyPropertyInMemoryEntity = InMemoryEntity & HOMOEnergyPropertySchemaMixin;
|
|
10
10
|
|
|
11
|
-
export function hOMOEnergyPropertySchemaMixin
|
|
11
|
+
export function hOMOEnergyPropertySchemaMixin<T extends InMemoryEntity>(
|
|
12
|
+
item: InMemoryEntity,
|
|
13
|
+
): asserts item is T & HOMOEnergyPropertySchemaMixin {
|
|
12
14
|
// @ts-expect-error
|
|
13
15
|
const properties: InMemoryEntity & HOMOEnergyPropertySchemaMixin = {
|
|
14
16
|
get name() {
|
|
15
17
|
return this.requiredProp<HOMOEnergyPropertySchema["name"]>("name");
|
|
16
18
|
},
|
|
19
|
+
set name(value: HOMOEnergyPropertySchema["name"]) {
|
|
20
|
+
this.setProp("name", value);
|
|
21
|
+
},
|
|
17
22
|
get units() {
|
|
18
23
|
return this.requiredProp<HOMOEnergyPropertySchema["units"]>("units");
|
|
19
24
|
},
|
|
25
|
+
set units(value: HOMOEnergyPropertySchema["units"]) {
|
|
26
|
+
this.setProp("units", value);
|
|
27
|
+
},
|
|
20
28
|
get value() {
|
|
21
29
|
return this.requiredProp<HOMOEnergyPropertySchema["value"]>("value");
|
|
22
30
|
},
|
|
31
|
+
set value(value: HOMOEnergyPropertySchema["value"]) {
|
|
32
|
+
this.setProp("value", value);
|
|
33
|
+
},
|
|
23
34
|
};
|
|
24
35
|
|
|
25
36
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
@@ -8,18 +8,29 @@ export type HubbardUPropertySchemaMixin = Omit<
|
|
|
8
8
|
|
|
9
9
|
export type HubbardUPropertyInMemoryEntity = InMemoryEntity & HubbardUPropertySchemaMixin;
|
|
10
10
|
|
|
11
|
-
export function hubbardUPropertySchemaMixin
|
|
11
|
+
export function hubbardUPropertySchemaMixin<T extends InMemoryEntity>(
|
|
12
|
+
item: InMemoryEntity,
|
|
13
|
+
): asserts item is T & HubbardUPropertySchemaMixin {
|
|
12
14
|
// @ts-expect-error
|
|
13
15
|
const properties: InMemoryEntity & HubbardUPropertySchemaMixin = {
|
|
14
16
|
get name() {
|
|
15
17
|
return this.requiredProp<HubbardUParametersPropertySchema["name"]>("name");
|
|
16
18
|
},
|
|
19
|
+
set name(value: HubbardUParametersPropertySchema["name"]) {
|
|
20
|
+
this.setProp("name", value);
|
|
21
|
+
},
|
|
17
22
|
get units() {
|
|
18
23
|
return this.requiredProp<HubbardUParametersPropertySchema["units"]>("units");
|
|
19
24
|
},
|
|
25
|
+
set units(value: HubbardUParametersPropertySchema["units"]) {
|
|
26
|
+
this.setProp("units", value);
|
|
27
|
+
},
|
|
20
28
|
get values() {
|
|
21
29
|
return this.requiredProp<HubbardUParametersPropertySchema["values"]>("values");
|
|
22
30
|
},
|
|
31
|
+
set values(value: HubbardUParametersPropertySchema["values"]) {
|
|
32
|
+
this.setProp("values", value);
|
|
33
|
+
},
|
|
23
34
|
};
|
|
24
35
|
|
|
25
36
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|