Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/js/PropertyFactory.d.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -51,7 +51,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 | TotalEnergyProperty | TotalForcesProperty | ValenceBandOffsetProperty | ZeroPointEnergyProperty | AtomicForcesProperty | MagneticMomentsProperty | StressTensorProperty;
static createMetaProperty(config: AnyMetaProperty): MetaProperty;
static createMetaProperty(config: AnyMetaProperty): PseudopotentialProperty;
static createProtoProperty(config: AnyProtoProperty): AtomicConstraintsProperty | BoundaryConditionsProperty;
}
export {};
Original file line number Diff line number Diff line change
Expand Up @@ -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<AtomicConstraintsPropertySchema, "_id" | "slug" | "systemName" | "schemaVersion">;
export type AtomicConstraintsPropertyInMemoryEntity = InMemoryEntity & AtomicConstraintsPropertySchemaMixin;
export declare function atomicConstraintsPropertySchemaMixin(item: InMemoryEntity): void;
export declare function atomicConstraintsPropertySchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & AtomicConstraintsPropertySchemaMixin;
6 changes: 6 additions & 0 deletions dist/js/generated/AtomicConstraintsPropertySchemaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
2 changes: 1 addition & 1 deletion dist/js/generated/AtomicForcesPropertySchemaMixin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<AtomicForcesPropertySchema, "_id" | "slug" | "systemName" | "schemaVersion">;
export type AtomicForcesPropertyInMemoryEntity = InMemoryEntity & AtomicForcesPropertySchemaMixin;
export declare function atomicForcesPropertySchemaMixin(item: InMemoryEntity): void;
export declare function atomicForcesPropertySchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & AtomicForcesPropertySchemaMixin;
9 changes: 9 additions & 0 deletions dist/js/generated/AtomicForcesPropertySchemaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<AveragePotentialProfilePropertySchema, "_id" | "slug" | "systemName" | "schemaVersion">;
export type AveragePotentialProfilePropertyInMemoryEntity = InMemoryEntity & AveragePotentialProfilePropertySchemaMixin;
export declare function averagePotentialProfilePropertySchemaMixin(item: InMemoryEntity): void;
export declare function averagePotentialProfilePropertySchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & AveragePotentialProfilePropertySchemaMixin;
15 changes: 15 additions & 0 deletions dist/js/generated/AveragePotentialProfilePropertySchemaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
2 changes: 1 addition & 1 deletion dist/js/generated/BandGapsPropertySchemaMixin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<BandGapsPropertySchema, "_id" | "slug" | "systemName" | "schemaVersion">;
export type BandGapsPropertyInMemoryEntity = InMemoryEntity & BandGapsPropertySchemaMixin;
export declare function bandGapsPropertySchemaMixin(item: InMemoryEntity): void;
export declare function bandGapsPropertySchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & BandGapsPropertySchemaMixin;
9 changes: 9 additions & 0 deletions dist/js/generated/BandGapsPropertySchemaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
2 changes: 1 addition & 1 deletion dist/js/generated/BandStructurePropertySchemaMixin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<BandStructurePropertySchema, "_id" | "slug" | "systemName" | "schemaVersion">;
export type BandStructurePropertyInMemoryEntity = InMemoryEntity & BandStructurePropertySchemaMixin;
export declare function bandStructurePropertySchemaMixin(item: InMemoryEntity): void;
export declare function bandStructurePropertySchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & BandStructurePropertySchemaMixin;
18 changes: 18 additions & 0 deletions dist/js/generated/BandStructurePropertySchemaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<BoundaryConditionsPropertySchema, "_id" | "slug" | "systemName" | "schemaVersion">;
export type BoundaryConditionsPropertyInMemoryEntity = InMemoryEntity & BoundaryConditionsPropertySchemaMixin;
export declare function boundaryConditionsPropertySchemaMixin(item: InMemoryEntity): void;
export declare function boundaryConditionsPropertySchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & BoundaryConditionsPropertySchemaMixin;
9 changes: 9 additions & 0 deletions dist/js/generated/BoundaryConditionsPropertySchemaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<ChargeDensityProfilePropertySchema, "_id" | "slug" | "systemName" | "schemaVersion">;
export type ChargeDensityProfilePropertyInMemoryEntity = InMemoryEntity & ChargeDensityProfilePropertySchemaMixin;
export declare function chargeDensityProfilePropertySchemaMixin(item: InMemoryEntity): void;
export declare function chargeDensityProfilePropertySchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & ChargeDensityProfilePropertySchemaMixin;
15 changes: 15 additions & 0 deletions dist/js/generated/ChargeDensityProfilePropertySchemaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<ConvergenceElectronicPropertySchema, "_id" | "slug" | "systemName" | "schemaVersion">;
export type ConvergenceElectronicPropertyInMemoryEntity = InMemoryEntity & ConvergenceElectronicPropertySchemaMixin;
export declare function convergenceElectronicPropertySchemaMixin(item: InMemoryEntity): void;
export declare function convergenceElectronicPropertySchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & ConvergenceElectronicPropertySchemaMixin;
9 changes: 9 additions & 0 deletions dist/js/generated/ConvergenceElectronicPropertySchemaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
2 changes: 1 addition & 1 deletion dist/js/generated/ConvergenceIonicPropertySchemaMixin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ConvergenceIonicPropertySchema, "_id" | "slug" | "systemName" | "schemaVersion">;
export type ConvergenceIonicPropertyInMemoryEntity = InMemoryEntity & ConvergenceIonicPropertySchemaMixin;
export declare function convergenceIonicPropertySchemaMixin(item: InMemoryEntity): void;
export declare function convergenceIonicPropertySchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & ConvergenceIonicPropertySchemaMixin;
12 changes: 12 additions & 0 deletions dist/js/generated/ConvergenceIonicPropertySchemaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
2 changes: 1 addition & 1 deletion dist/js/generated/DensityOfStatesPropertySchemaMixin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<DensityOfStatesPropertySchema, "_id" | "slug" | "systemName" | "schemaVersion">;
export type DensityOfStatesPropertyInMemoryEntity = InMemoryEntity & DensityOfStatesPropertySchemaMixin;
export declare function densityOfStatesPropertySchemaMixin(item: InMemoryEntity): void;
export declare function densityOfStatesPropertySchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & DensityOfStatesPropertySchemaMixin;
18 changes: 18 additions & 0 deletions dist/js/generated/DensityOfStatesPropertySchemaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
2 changes: 1 addition & 1 deletion dist/js/generated/DielectricTensorPropertySchemaMixin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<DielectricTensorPropertySchema, "_id" | "slug" | "systemName" | "schemaVersion">;
export type DielectricTensorPropertyInMemoryEntity = InMemoryEntity & DielectricTensorPropertySchemaMixin;
export declare function dielectricTensorPropertySchemaMixin(item: InMemoryEntity): void;
export declare function dielectricTensorPropertySchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & DielectricTensorPropertySchemaMixin;
6 changes: 6 additions & 0 deletions dist/js/generated/DielectricTensorPropertySchemaMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
2 changes: 1 addition & 1 deletion dist/js/generated/FermiEnergyPropertySchemaMixin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<FermiEnergyPropertySchema, "_id" | "slug" | "systemName" | "schemaVersion">;
export type FermiEnergyPropertyInMemoryEntity = InMemoryEntity & FermiEnergyPropertySchemaMixin;
export declare function fermiEnergyPropertySchemaMixin(item: InMemoryEntity): void;
export declare function fermiEnergyPropertySchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & FermiEnergyPropertySchemaMixin;
Loading
Loading