@mat3ra/wode 2026.7.29-0 → 2026.8.13-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/Subworkflow.d.ts +21 -20
- package/dist/js/Subworkflow.js +8 -7
- package/dist/js/Workflow.d.ts +11 -10
- package/dist/js/Workflow.js +7 -3
- package/dist/js/context/mixins/MaterialContextMixin.d.ts +1 -4
- package/dist/js/context/providers/CollinearMagnetizationDataManager.js +1 -1
- package/dist/js/context/providers/Hubbard/HubbardContextProvider.d.ts +6 -4
- package/dist/js/context/providers/Hubbard/HubbardContextProvider.js +12 -7
- package/dist/js/context/providers/NonCollinearMagnetizationDataManager.js +1 -1
- package/dist/js/context/providers/PointsGrid/PointsGridFormDataProvider.d.ts +6 -4
- package/dist/js/context/providers/PointsGrid/PointsGridFormDataProvider.js +10 -5
- package/dist/js/context/providers/PointsPath/PointsPathFormDataProvider.d.ts +3 -4
- package/dist/js/context/providers/PointsPath/PointsPathFormDataProvider.js +3 -2
- package/dist/js/context/providers/by_application/espresso/QEPWXInputDataManager.js +2 -1
- package/dist/js/context/providers/by_application/nwchem/NWChemInputDataManager.js +1 -1
- package/dist/js/generated/AssertionUnitSchemaMixin.d.ts +2 -2
- package/dist/js/generated/AssignmentUnitSchemaMixin.d.ts +2 -2
- package/dist/js/generated/BaseUnitSchemaMixin.d.ts +2 -2
- package/dist/js/generated/BaseUnitSchemaMixin.js +6 -18
- package/dist/js/generated/ConditionUnitSchemaMixin.d.ts +2 -2
- package/dist/js/generated/ErrorUnitSchemaMixin.d.ts +2 -2
- package/dist/js/generated/ExecutionUnitInputSchemaMixin.d.ts +2 -2
- package/dist/js/generated/ExecutionUnitSchemaMixin.d.ts +2 -2
- package/dist/js/generated/IOUnitSchemaMixin.d.ts +2 -2
- package/dist/js/generated/MapUnitSchemaMixin.d.ts +2 -2
- package/dist/js/generated/ReduceUnitSchemaMixin.d.ts +2 -2
- package/dist/js/generated/StatusTrackSchemaMixin.d.ts +5 -0
- package/dist/js/generated/{StatusSchemaMixin.js → StatusTrackSchemaMixin.js} +2 -8
- package/dist/js/generated/SubworkflowSchemaMixin.d.ts +2 -2
- package/dist/js/generated/SubworkflowUnitSchemaMixin.d.ts +2 -2
- package/dist/js/generated/WorkflowSchemaMixin.d.ts +2 -2
- package/dist/js/units/AssertionUnit.d.ts +4 -7
- package/dist/js/units/AssignmentUnit.d.ts +4 -7
- package/dist/js/units/BaseUnit.d.ts +13 -12
- package/dist/js/units/BaseUnit.js +14 -11
- package/dist/js/units/ConditionUnit.d.ts +4 -7
- package/dist/js/units/ErrorUnit.d.ts +4 -7
- package/dist/js/units/ExecutionUnit.d.ts +4 -7
- package/dist/js/units/ExecutionUnit.js +6 -6
- package/dist/js/units/ExecutionUnitInput.d.ts +3 -7
- package/dist/js/units/ExecutionUnitInput.js +12 -2
- package/dist/js/units/IOUnit.d.ts +4 -7
- package/dist/js/units/MapUnit.d.ts +4 -7
- package/dist/js/units/MapUnit.js +1 -1
- package/dist/js/units/ReduceUnit.d.ts +4 -7
- package/dist/js/units/SubworkflowUnit.d.ts +4 -7
- package/package.json +8 -9
- package/src/js/Subworkflow.ts +42 -32
- package/src/js/Workflow.ts +28 -16
- package/src/js/context/mixins/MaterialContextMixin.ts +1 -2
- package/src/js/context/providers/CollinearMagnetizationDataManager.ts +1 -1
- package/src/js/context/providers/Hubbard/HubbardContextProvider.ts +17 -8
- package/src/js/context/providers/NonCollinearMagnetizationDataManager.ts +1 -1
- package/src/js/context/providers/PointsGrid/PointsGridFormDataProvider.ts +14 -12
- package/src/js/context/providers/PointsPath/PointsPathFormDataProvider.ts +9 -6
- package/src/js/context/providers/by_application/espresso/QEPWXInputDataManager.ts +4 -3
- package/src/js/context/providers/by_application/nwchem/NWChemInputDataManager.ts +1 -1
- package/src/js/generated/AssertionUnitSchemaMixin.ts +11 -6
- package/src/js/generated/AssignmentUnitSchemaMixin.ts +12 -7
- package/src/js/generated/BaseUnitSchemaMixin.ts +17 -26
- package/src/js/generated/ConditionUnitSchemaMixin.ts +15 -10
- package/src/js/generated/ErrorUnitSchemaMixin.ts +7 -5
- package/src/js/generated/ExecutionUnitInputSchemaMixin.ts +12 -8
- package/src/js/generated/ExecutionUnitSchemaMixin.ts +14 -9
- package/src/js/generated/IOUnitSchemaMixin.ts +7 -7
- package/src/js/generated/MapUnitSchemaMixin.ts +6 -6
- package/src/js/generated/ReduceUnitSchemaMixin.ts +8 -6
- package/src/js/generated/StatusTrackSchemaMixin.ts +24 -0
- package/src/js/generated/SubworkflowSchemaMixin.ts +12 -10
- package/src/js/generated/SubworkflowUnitSchemaMixin.ts +9 -4
- package/src/js/generated/WorkflowSchemaMixin.ts +10 -10
- package/src/js/units/AssertionUnit.ts +3 -7
- package/src/js/units/AssignmentUnit.ts +4 -7
- package/src/js/units/BaseUnit.ts +39 -29
- package/src/js/units/ConditionUnit.ts +3 -7
- package/src/js/units/ErrorUnit.ts +3 -7
- package/src/js/units/ExecutionUnit.ts +10 -15
- package/src/js/units/ExecutionUnitInput.ts +16 -13
- package/src/js/units/IOUnit.ts +3 -7
- package/src/js/units/MapUnit.ts +4 -10
- package/src/js/units/ReduceUnit.ts +3 -7
- package/src/js/units/SubworkflowUnit.ts +3 -7
- package/dist/js/WorkflowDesignerMaterial.d.ts +0 -21
- package/dist/js/WorkflowDesignerMaterial.js +0 -26
- package/dist/js/generated/StatusSchemaMixin.d.ts +0 -5
- package/dist/js/repair/createErrorUnitData.d.ts +0 -3
- package/dist/js/repair/createErrorUnitData.js +0 -25
- package/dist/js/repair/formatRepairReason.d.ts +0 -1
- package/dist/js/repair/formatRepairReason.js +0 -22
- package/dist/js/repair/types.d.ts +0 -16
- package/dist/js/repair/types.js +0 -2
- package/dist/js/subworkflows/convergence/enums.js +0 -15
- package/dist/js/subworkflows/convergence/factory.js +0 -36
- package/dist/js/subworkflows/subworkflow.js +0 -285
- package/dist/js/utils/subworkflow.d.ts +0 -2
- package/dist/js/utils/subworkflow.js +0 -29
- package/dist/js/utils/underscoreStringSlugify.d.ts +0 -6
- package/dist/js/utils/underscoreStringSlugify.js +0 -32
- package/dist/js/utils.js +0 -87
- package/dist/js/workflows/workflow.d.ts +0 -4404
- package/dist/js/workflows/workflow.js +0 -315
- package/src/js/generated/StatusSchemaMixin.ts +0 -28
|
@@ -1,53 +1,58 @@
|
|
|
1
1
|
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
BaseInMemoryEntitySchema,
|
|
4
|
+
ConditionUnitMixinSchema,
|
|
5
|
+
} from "@mat3ra/esse/dist/js/types";
|
|
3
6
|
|
|
4
7
|
export type ConditionUnitSchemaMixin = ConditionUnitMixinSchema;
|
|
5
8
|
|
|
6
|
-
export type ConditionUnitInMemoryEntity = InMemoryEntity
|
|
9
|
+
export type ConditionUnitInMemoryEntity = InMemoryEntity<
|
|
10
|
+
BaseInMemoryEntitySchema & ConditionUnitSchemaMixin
|
|
11
|
+
>;
|
|
7
12
|
|
|
8
13
|
export function conditionUnitSchemaMixin<T extends InMemoryEntity>(
|
|
9
14
|
item: InMemoryEntity,
|
|
10
15
|
): asserts item is T & ConditionUnitSchemaMixin {
|
|
11
16
|
// @ts-expect-error
|
|
12
|
-
const properties: InMemoryEntity & ConditionUnitSchemaMixin = {
|
|
17
|
+
const properties: InMemoryEntity<ConditionUnitSchemaMixin> & ConditionUnitSchemaMixin = {
|
|
13
18
|
get type() {
|
|
14
|
-
return this.prop
|
|
19
|
+
return this.prop("type");
|
|
15
20
|
},
|
|
16
21
|
set type(value: ConditionUnitMixinSchema["type"]) {
|
|
17
22
|
this.setProp("type", value);
|
|
18
23
|
},
|
|
19
24
|
get input() {
|
|
20
|
-
return this.requiredProp
|
|
25
|
+
return this.requiredProp("input");
|
|
21
26
|
},
|
|
22
27
|
set input(value: ConditionUnitMixinSchema["input"]) {
|
|
23
28
|
this.setProp("input", value);
|
|
24
29
|
},
|
|
25
30
|
get statement() {
|
|
26
|
-
return this.requiredProp
|
|
31
|
+
return this.requiredProp("statement");
|
|
27
32
|
},
|
|
28
33
|
set statement(value: ConditionUnitMixinSchema["statement"]) {
|
|
29
34
|
this.setProp("statement", value);
|
|
30
35
|
},
|
|
31
36
|
get then() {
|
|
32
|
-
return this.requiredProp
|
|
37
|
+
return this.requiredProp("then");
|
|
33
38
|
},
|
|
34
39
|
set then(value: ConditionUnitMixinSchema["then"]) {
|
|
35
40
|
this.setProp("then", value);
|
|
36
41
|
},
|
|
37
42
|
get else() {
|
|
38
|
-
return this.requiredProp
|
|
43
|
+
return this.requiredProp("else");
|
|
39
44
|
},
|
|
40
45
|
set else(value: ConditionUnitMixinSchema["else"]) {
|
|
41
46
|
this.setProp("else", value);
|
|
42
47
|
},
|
|
43
48
|
get maxOccurrences() {
|
|
44
|
-
return this.requiredProp
|
|
49
|
+
return this.requiredProp("maxOccurrences");
|
|
45
50
|
},
|
|
46
51
|
set maxOccurrences(value: ConditionUnitMixinSchema["maxOccurrences"]) {
|
|
47
52
|
this.setProp("maxOccurrences", value);
|
|
48
53
|
},
|
|
49
54
|
get throwException() {
|
|
50
|
-
return this.prop
|
|
55
|
+
return this.prop("throwException");
|
|
51
56
|
},
|
|
52
57
|
set throwException(value: ConditionUnitMixinSchema["throwException"]) {
|
|
53
58
|
this.setProp("throwException", value);
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
-
import type { ErrorUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
2
|
+
import type { BaseInMemoryEntitySchema, ErrorUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
3
|
|
|
4
4
|
export type ErrorUnitSchemaMixin = ErrorUnitMixinSchema;
|
|
5
5
|
|
|
6
|
-
export type ErrorUnitInMemoryEntity = InMemoryEntity
|
|
6
|
+
export type ErrorUnitInMemoryEntity = InMemoryEntity<
|
|
7
|
+
BaseInMemoryEntitySchema & ErrorUnitSchemaMixin
|
|
8
|
+
>;
|
|
7
9
|
|
|
8
10
|
export function errorUnitSchemaMixin<T extends InMemoryEntity>(
|
|
9
11
|
item: InMemoryEntity,
|
|
10
12
|
): asserts item is T & ErrorUnitSchemaMixin {
|
|
11
13
|
// @ts-expect-error
|
|
12
|
-
const properties: InMemoryEntity & ErrorUnitSchemaMixin = {
|
|
14
|
+
const properties: InMemoryEntity<ErrorUnitSchemaMixin> & ErrorUnitSchemaMixin = {
|
|
13
15
|
get type() {
|
|
14
|
-
return this.prop
|
|
16
|
+
return this.prop("type");
|
|
15
17
|
},
|
|
16
18
|
set type(value: ErrorUnitMixinSchema["type"]) {
|
|
17
19
|
this.setProp("type", value);
|
|
18
20
|
},
|
|
19
21
|
get reason() {
|
|
20
|
-
return this.requiredProp
|
|
22
|
+
return this.requiredProp("reason");
|
|
21
23
|
},
|
|
22
24
|
set reason(value: ErrorUnitMixinSchema["reason"]) {
|
|
23
25
|
this.setProp("reason", value);
|
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
BaseInMemoryEntitySchema,
|
|
4
|
+
ExecutionUnitInputItemSchema,
|
|
5
|
+
} from "@mat3ra/esse/dist/js/types";
|
|
3
6
|
|
|
4
7
|
export type ExecutionUnitInputSchemaMixin = ExecutionUnitInputItemSchema;
|
|
5
8
|
|
|
6
|
-
export type ExecutionUnitInputInMemoryEntity = InMemoryEntity
|
|
9
|
+
export type ExecutionUnitInputInMemoryEntity = InMemoryEntity<
|
|
10
|
+
BaseInMemoryEntitySchema & ExecutionUnitInputSchemaMixin
|
|
11
|
+
>;
|
|
7
12
|
|
|
8
13
|
export function executionUnitInputSchemaMixin<T extends InMemoryEntity>(
|
|
9
14
|
item: InMemoryEntity,
|
|
10
15
|
): asserts item is T & ExecutionUnitInputSchemaMixin {
|
|
11
16
|
// @ts-expect-error
|
|
12
|
-
const properties: InMemoryEntity &
|
|
17
|
+
const properties: InMemoryEntity<ExecutionUnitInputSchemaMixin> &
|
|
18
|
+
ExecutionUnitInputSchemaMixin = {
|
|
13
19
|
get template() {
|
|
14
|
-
return this.requiredProp
|
|
20
|
+
return this.requiredProp("template");
|
|
15
21
|
},
|
|
16
22
|
set template(value: ExecutionUnitInputItemSchema["template"]) {
|
|
17
23
|
this.setProp("template", value);
|
|
18
24
|
},
|
|
19
25
|
get rendered() {
|
|
20
|
-
return this.prop
|
|
26
|
+
return this.prop("rendered");
|
|
21
27
|
},
|
|
22
28
|
set rendered(value: ExecutionUnitInputItemSchema["rendered"]) {
|
|
23
29
|
this.setProp("rendered", value);
|
|
24
30
|
},
|
|
25
31
|
get isManuallyChanged() {
|
|
26
|
-
return this.requiredProp
|
|
27
|
-
"isManuallyChanged",
|
|
28
|
-
);
|
|
32
|
+
return this.requiredProp("isManuallyChanged");
|
|
29
33
|
},
|
|
30
34
|
set isManuallyChanged(value: ExecutionUnitInputItemSchema["isManuallyChanged"]) {
|
|
31
35
|
this.setProp("isManuallyChanged", value);
|
|
@@ -1,47 +1,52 @@
|
|
|
1
1
|
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
BaseInMemoryEntitySchema,
|
|
4
|
+
ExecutionUnitMixinSchema,
|
|
5
|
+
} from "@mat3ra/esse/dist/js/types";
|
|
3
6
|
|
|
4
7
|
export type ExecutionUnitSchemaMixin = ExecutionUnitMixinSchema;
|
|
5
8
|
|
|
6
|
-
export type ExecutionUnitInMemoryEntity = InMemoryEntity
|
|
9
|
+
export type ExecutionUnitInMemoryEntity = InMemoryEntity<
|
|
10
|
+
BaseInMemoryEntitySchema & ExecutionUnitSchemaMixin
|
|
11
|
+
>;
|
|
7
12
|
|
|
8
13
|
export function executionUnitSchemaMixin<T extends InMemoryEntity>(
|
|
9
14
|
item: InMemoryEntity,
|
|
10
15
|
): asserts item is T & ExecutionUnitSchemaMixin {
|
|
11
16
|
// @ts-expect-error
|
|
12
|
-
const properties: InMemoryEntity & ExecutionUnitSchemaMixin = {
|
|
17
|
+
const properties: InMemoryEntity<ExecutionUnitSchemaMixin> & ExecutionUnitSchemaMixin = {
|
|
13
18
|
get type() {
|
|
14
|
-
return this.requiredProp
|
|
19
|
+
return this.requiredProp("type");
|
|
15
20
|
},
|
|
16
21
|
set type(value: ExecutionUnitMixinSchema["type"]) {
|
|
17
22
|
this.setProp("type", value);
|
|
18
23
|
},
|
|
19
24
|
get application() {
|
|
20
|
-
return this.requiredProp
|
|
25
|
+
return this.requiredProp("application");
|
|
21
26
|
},
|
|
22
27
|
set application(value: ExecutionUnitMixinSchema["application"]) {
|
|
23
28
|
this.setProp("application", value);
|
|
24
29
|
},
|
|
25
30
|
get executable() {
|
|
26
|
-
return this.requiredProp
|
|
31
|
+
return this.requiredProp("executable");
|
|
27
32
|
},
|
|
28
33
|
set executable(value: ExecutionUnitMixinSchema["executable"]) {
|
|
29
34
|
this.setProp("executable", value);
|
|
30
35
|
},
|
|
31
36
|
get flavor() {
|
|
32
|
-
return this.requiredProp
|
|
37
|
+
return this.requiredProp("flavor");
|
|
33
38
|
},
|
|
34
39
|
set flavor(value: ExecutionUnitMixinSchema["flavor"]) {
|
|
35
40
|
this.setProp("flavor", value);
|
|
36
41
|
},
|
|
37
42
|
get input() {
|
|
38
|
-
return this.requiredProp
|
|
43
|
+
return this.requiredProp("input");
|
|
39
44
|
},
|
|
40
45
|
set input(value: ExecutionUnitMixinSchema["input"]) {
|
|
41
46
|
this.setProp("input", value);
|
|
42
47
|
},
|
|
43
48
|
get context() {
|
|
44
|
-
return this.requiredProp
|
|
49
|
+
return this.requiredProp("context");
|
|
45
50
|
},
|
|
46
51
|
set context(value: ExecutionUnitMixinSchema["context"]) {
|
|
47
52
|
this.setProp("context", value);
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
-
import type { DataIOUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
2
|
+
import type { BaseInMemoryEntitySchema, DataIOUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
3
|
|
|
4
4
|
export type IOUnitSchemaMixin = DataIOUnitMixinSchema;
|
|
5
5
|
|
|
6
|
-
export type IOUnitInMemoryEntity = InMemoryEntity & IOUnitSchemaMixin
|
|
6
|
+
export type IOUnitInMemoryEntity = InMemoryEntity<BaseInMemoryEntitySchema & IOUnitSchemaMixin>;
|
|
7
7
|
|
|
8
8
|
export function iOUnitSchemaMixin<T extends InMemoryEntity>(
|
|
9
9
|
item: InMemoryEntity,
|
|
10
10
|
): asserts item is T & IOUnitSchemaMixin {
|
|
11
11
|
// @ts-expect-error
|
|
12
|
-
const properties: InMemoryEntity & IOUnitSchemaMixin = {
|
|
12
|
+
const properties: InMemoryEntity<IOUnitSchemaMixin> & IOUnitSchemaMixin = {
|
|
13
13
|
get type() {
|
|
14
|
-
return this.prop
|
|
14
|
+
return this.prop("type");
|
|
15
15
|
},
|
|
16
16
|
set type(value: DataIOUnitMixinSchema["type"]) {
|
|
17
17
|
this.setProp("type", value);
|
|
18
18
|
},
|
|
19
19
|
get subtype() {
|
|
20
|
-
return this.requiredProp
|
|
20
|
+
return this.requiredProp("subtype");
|
|
21
21
|
},
|
|
22
22
|
set subtype(value: DataIOUnitMixinSchema["subtype"]) {
|
|
23
23
|
this.setProp("subtype", value);
|
|
24
24
|
},
|
|
25
25
|
get source() {
|
|
26
|
-
return this.requiredProp
|
|
26
|
+
return this.requiredProp("source");
|
|
27
27
|
},
|
|
28
28
|
set source(value: DataIOUnitMixinSchema["source"]) {
|
|
29
29
|
this.setProp("source", value);
|
|
30
30
|
},
|
|
31
31
|
get input() {
|
|
32
|
-
return this.requiredProp
|
|
32
|
+
return this.requiredProp("input");
|
|
33
33
|
},
|
|
34
34
|
set input(value: DataIOUnitMixinSchema["input"]) {
|
|
35
35
|
this.setProp("input", value);
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
-
import type { MapUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
2
|
+
import type { BaseInMemoryEntitySchema, MapUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
3
|
|
|
4
4
|
export type MapUnitSchemaMixin = MapUnitMixinSchema;
|
|
5
5
|
|
|
6
|
-
export type MapUnitInMemoryEntity = InMemoryEntity & MapUnitSchemaMixin
|
|
6
|
+
export type MapUnitInMemoryEntity = InMemoryEntity<BaseInMemoryEntitySchema & MapUnitSchemaMixin>;
|
|
7
7
|
|
|
8
8
|
export function mapUnitSchemaMixin<T extends InMemoryEntity>(
|
|
9
9
|
item: InMemoryEntity,
|
|
10
10
|
): asserts item is T & MapUnitSchemaMixin {
|
|
11
11
|
// @ts-expect-error
|
|
12
|
-
const properties: InMemoryEntity & MapUnitSchemaMixin = {
|
|
12
|
+
const properties: InMemoryEntity<MapUnitSchemaMixin> & MapUnitSchemaMixin = {
|
|
13
13
|
get type() {
|
|
14
|
-
return this.prop
|
|
14
|
+
return this.prop("type");
|
|
15
15
|
},
|
|
16
16
|
set type(value: MapUnitMixinSchema["type"]) {
|
|
17
17
|
this.setProp("type", value);
|
|
18
18
|
},
|
|
19
19
|
get workflowId() {
|
|
20
|
-
return this.requiredProp
|
|
20
|
+
return this.requiredProp("workflowId");
|
|
21
21
|
},
|
|
22
22
|
set workflowId(value: MapUnitMixinSchema["workflowId"]) {
|
|
23
23
|
this.setProp("workflowId", value);
|
|
24
24
|
},
|
|
25
25
|
get input() {
|
|
26
|
-
return this.requiredProp
|
|
26
|
+
return this.requiredProp("input");
|
|
27
27
|
},
|
|
28
28
|
set input(value: MapUnitMixinSchema["input"]) {
|
|
29
29
|
this.setProp("input", value);
|
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
-
import type { ReduceUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
2
|
+
import type { BaseInMemoryEntitySchema, ReduceUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
3
|
|
|
4
4
|
export type ReduceUnitSchemaMixin = ReduceUnitMixinSchema;
|
|
5
5
|
|
|
6
|
-
export type ReduceUnitInMemoryEntity = InMemoryEntity
|
|
6
|
+
export type ReduceUnitInMemoryEntity = InMemoryEntity<
|
|
7
|
+
BaseInMemoryEntitySchema & ReduceUnitSchemaMixin
|
|
8
|
+
>;
|
|
7
9
|
|
|
8
10
|
export function reduceUnitSchemaMixin<T extends InMemoryEntity>(
|
|
9
11
|
item: InMemoryEntity,
|
|
10
12
|
): asserts item is T & ReduceUnitSchemaMixin {
|
|
11
13
|
// @ts-expect-error
|
|
12
|
-
const properties: InMemoryEntity & ReduceUnitSchemaMixin = {
|
|
14
|
+
const properties: InMemoryEntity<ReduceUnitSchemaMixin> & ReduceUnitSchemaMixin = {
|
|
13
15
|
get type() {
|
|
14
|
-
return this.prop
|
|
16
|
+
return this.prop("type");
|
|
15
17
|
},
|
|
16
18
|
set type(value: ReduceUnitMixinSchema["type"]) {
|
|
17
19
|
this.setProp("type", value);
|
|
18
20
|
},
|
|
19
21
|
get mapFlowchartId() {
|
|
20
|
-
return this.requiredProp
|
|
22
|
+
return this.requiredProp("mapFlowchartId");
|
|
21
23
|
},
|
|
22
24
|
set mapFlowchartId(value: ReduceUnitMixinSchema["mapFlowchartId"]) {
|
|
23
25
|
this.setProp("mapFlowchartId", value);
|
|
24
26
|
},
|
|
25
27
|
get input() {
|
|
26
|
-
return this.requiredProp
|
|
28
|
+
return this.requiredProp("input");
|
|
27
29
|
},
|
|
28
30
|
set input(value: ReduceUnitMixinSchema["input"]) {
|
|
29
31
|
this.setProp("input", value);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
+
import type { BaseInMemoryEntitySchema, StatusTrackSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
|
+
|
|
4
|
+
export type StatusTrackSchemaMixin = StatusTrackSchema;
|
|
5
|
+
|
|
6
|
+
export type StatusTrackInMemoryEntity = InMemoryEntity<
|
|
7
|
+
BaseInMemoryEntitySchema & StatusTrackSchemaMixin
|
|
8
|
+
>;
|
|
9
|
+
|
|
10
|
+
export function statusTrackSchemaMixin<T extends InMemoryEntity>(
|
|
11
|
+
item: InMemoryEntity,
|
|
12
|
+
): asserts item is T & StatusTrackSchemaMixin {
|
|
13
|
+
// @ts-expect-error
|
|
14
|
+
const properties: InMemoryEntity<StatusTrackSchemaMixin> & StatusTrackSchemaMixin = {
|
|
15
|
+
get statusTrack() {
|
|
16
|
+
return this.prop("statusTrack");
|
|
17
|
+
},
|
|
18
|
+
set statusTrack(value: StatusTrackSchema["statusTrack"]) {
|
|
19
|
+
this.setProp("statusTrack", value);
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
24
|
+
}
|
|
@@ -1,53 +1,55 @@
|
|
|
1
1
|
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
-
import type { SubworkflowMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
2
|
+
import type { BaseInMemoryEntitySchema, SubworkflowMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
3
|
|
|
4
4
|
export type SubworkflowSchemaMixin = SubworkflowMixinSchema;
|
|
5
5
|
|
|
6
|
-
export type SubworkflowInMemoryEntity = InMemoryEntity
|
|
6
|
+
export type SubworkflowInMemoryEntity = InMemoryEntity<
|
|
7
|
+
BaseInMemoryEntitySchema & SubworkflowSchemaMixin
|
|
8
|
+
>;
|
|
7
9
|
|
|
8
10
|
export function subworkflowSchemaMixin<T extends InMemoryEntity>(
|
|
9
11
|
item: InMemoryEntity,
|
|
10
12
|
): asserts item is T & SubworkflowSchemaMixin {
|
|
11
13
|
// @ts-expect-error
|
|
12
|
-
const properties: InMemoryEntity & SubworkflowSchemaMixin = {
|
|
14
|
+
const properties: InMemoryEntity<SubworkflowSchemaMixin> & SubworkflowSchemaMixin = {
|
|
13
15
|
get properties() {
|
|
14
|
-
return this.requiredProp
|
|
16
|
+
return this.requiredProp("properties");
|
|
15
17
|
},
|
|
16
18
|
set properties(value: SubworkflowMixinSchema["properties"]) {
|
|
17
19
|
this.setProp("properties", value);
|
|
18
20
|
},
|
|
19
21
|
get compute() {
|
|
20
|
-
return this.prop
|
|
22
|
+
return this.prop("compute");
|
|
21
23
|
},
|
|
22
24
|
set compute(value: SubworkflowMixinSchema["compute"]) {
|
|
23
25
|
this.setProp("compute", value);
|
|
24
26
|
},
|
|
25
27
|
get units() {
|
|
26
|
-
return this.requiredProp
|
|
28
|
+
return this.requiredProp("units");
|
|
27
29
|
},
|
|
28
30
|
set units(value: SubworkflowMixinSchema["units"]) {
|
|
29
31
|
this.setProp("units", value);
|
|
30
32
|
},
|
|
31
33
|
get model() {
|
|
32
|
-
return this.requiredProp
|
|
34
|
+
return this.requiredProp("model");
|
|
33
35
|
},
|
|
34
36
|
set model(value: SubworkflowMixinSchema["model"]) {
|
|
35
37
|
this.setProp("model", value);
|
|
36
38
|
},
|
|
37
39
|
get application() {
|
|
38
|
-
return this.requiredProp
|
|
40
|
+
return this.requiredProp("application");
|
|
39
41
|
},
|
|
40
42
|
set application(value: SubworkflowMixinSchema["application"]) {
|
|
41
43
|
this.setProp("application", value);
|
|
42
44
|
},
|
|
43
45
|
get isMultiMaterial() {
|
|
44
|
-
return this.prop
|
|
46
|
+
return this.prop("isMultiMaterial");
|
|
45
47
|
},
|
|
46
48
|
set isMultiMaterial(value: SubworkflowMixinSchema["isMultiMaterial"]) {
|
|
47
49
|
this.setProp("isMultiMaterial", value);
|
|
48
50
|
},
|
|
49
51
|
get isDraft() {
|
|
50
|
-
return this.prop
|
|
52
|
+
return this.prop("isDraft");
|
|
51
53
|
},
|
|
52
54
|
set isDraft(value: SubworkflowMixinSchema["isDraft"]) {
|
|
53
55
|
this.setProp("isDraft", value);
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
BaseInMemoryEntitySchema,
|
|
4
|
+
SubworkflowUnitMixinSchema,
|
|
5
|
+
} from "@mat3ra/esse/dist/js/types";
|
|
3
6
|
|
|
4
7
|
export type SubworkflowUnitSchemaMixin = SubworkflowUnitMixinSchema;
|
|
5
8
|
|
|
6
|
-
export type SubworkflowUnitInMemoryEntity = InMemoryEntity
|
|
9
|
+
export type SubworkflowUnitInMemoryEntity = InMemoryEntity<
|
|
10
|
+
BaseInMemoryEntitySchema & SubworkflowUnitSchemaMixin
|
|
11
|
+
>;
|
|
7
12
|
|
|
8
13
|
export function subworkflowUnitSchemaMixin<T extends InMemoryEntity>(
|
|
9
14
|
item: InMemoryEntity,
|
|
10
15
|
): asserts item is T & SubworkflowUnitSchemaMixin {
|
|
11
16
|
// @ts-expect-error
|
|
12
|
-
const properties: InMemoryEntity & SubworkflowUnitSchemaMixin = {
|
|
17
|
+
const properties: InMemoryEntity<SubworkflowUnitSchemaMixin> & SubworkflowUnitSchemaMixin = {
|
|
13
18
|
get type() {
|
|
14
|
-
return this.prop
|
|
19
|
+
return this.prop("type");
|
|
15
20
|
},
|
|
16
21
|
set type(value: SubworkflowUnitMixinSchema["type"]) {
|
|
17
22
|
this.setProp("type", value);
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
-
import type { BaseWorkflowSchema } from "@mat3ra/esse/dist/js/types";
|
|
2
|
+
import type { BaseInMemoryEntitySchema, BaseWorkflowSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
3
|
|
|
4
4
|
export type WorkflowSchemaMixin = BaseWorkflowSchema;
|
|
5
5
|
|
|
6
|
-
export type WorkflowInMemoryEntity = InMemoryEntity & WorkflowSchemaMixin
|
|
6
|
+
export type WorkflowInMemoryEntity = InMemoryEntity<BaseInMemoryEntitySchema & WorkflowSchemaMixin>;
|
|
7
7
|
|
|
8
8
|
export function workflowSchemaMixin<T extends InMemoryEntity>(
|
|
9
9
|
item: InMemoryEntity,
|
|
10
10
|
): asserts item is T & WorkflowSchemaMixin {
|
|
11
11
|
// @ts-expect-error
|
|
12
|
-
const properties: InMemoryEntity & WorkflowSchemaMixin = {
|
|
12
|
+
const properties: InMemoryEntity<WorkflowSchemaMixin> & WorkflowSchemaMixin = {
|
|
13
13
|
get properties() {
|
|
14
|
-
return this.requiredProp
|
|
14
|
+
return this.requiredProp("properties");
|
|
15
15
|
},
|
|
16
16
|
set properties(value: BaseWorkflowSchema["properties"]) {
|
|
17
17
|
this.setProp("properties", value);
|
|
18
18
|
},
|
|
19
19
|
get isUsingDataset() {
|
|
20
|
-
return this.prop
|
|
20
|
+
return this.prop("isUsingDataset");
|
|
21
21
|
},
|
|
22
22
|
set isUsingDataset(value: BaseWorkflowSchema["isUsingDataset"]) {
|
|
23
23
|
this.setProp("isUsingDataset", value);
|
|
24
24
|
},
|
|
25
25
|
get isMultiMaterial() {
|
|
26
|
-
return this.prop
|
|
26
|
+
return this.prop("isMultiMaterial");
|
|
27
27
|
},
|
|
28
28
|
set isMultiMaterial(value: BaseWorkflowSchema["isMultiMaterial"]) {
|
|
29
29
|
this.setProp("isMultiMaterial", value);
|
|
30
30
|
},
|
|
31
31
|
get subworkflows() {
|
|
32
|
-
return this.requiredProp
|
|
32
|
+
return this.requiredProp("subworkflows");
|
|
33
33
|
},
|
|
34
34
|
set subworkflows(value: BaseWorkflowSchema["subworkflows"]) {
|
|
35
35
|
this.setProp("subworkflows", value);
|
|
36
36
|
},
|
|
37
37
|
get units() {
|
|
38
|
-
return this.requiredProp
|
|
38
|
+
return this.requiredProp("units");
|
|
39
39
|
},
|
|
40
40
|
set units(value: BaseWorkflowSchema["units"]) {
|
|
41
41
|
this.setProp("units", value);
|
|
42
42
|
},
|
|
43
43
|
get application() {
|
|
44
|
-
return this.prop
|
|
44
|
+
return this.prop("application");
|
|
45
45
|
},
|
|
46
46
|
set application(value: BaseWorkflowSchema["application"]) {
|
|
47
47
|
this.setProp("application", value);
|
|
48
48
|
},
|
|
49
49
|
get tags() {
|
|
50
|
-
return this.prop
|
|
50
|
+
return this.prop("tags");
|
|
51
51
|
},
|
|
52
52
|
set tags(value: BaseWorkflowSchema["tags"]) {
|
|
53
53
|
this.setProp("tags", value);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Taggable } from "@mat3ra/code/dist/js/entity/mixins/TaggableMixin";
|
|
2
2
|
import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
|
|
3
|
-
import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types";
|
|
4
3
|
import type { AssertionUnitSchema } from "@mat3ra/esse/dist/js/types";
|
|
5
4
|
|
|
6
5
|
import { UnitType } from "../enums";
|
|
@@ -11,15 +10,12 @@ import {
|
|
|
11
10
|
import BaseUnit from "./BaseUnit";
|
|
12
11
|
|
|
13
12
|
type Schema = AssertionUnitSchema;
|
|
14
|
-
type Base = typeof BaseUnit<Schema> & Constructor<AssertionUnitSchemaMixin>;
|
|
15
13
|
|
|
16
14
|
export type AssertionUnitConfig = Partial<Schema>;
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
declare toJSON: () => Schema & AnyObject;
|
|
20
|
-
|
|
21
|
-
declare _json: Schema & AnyObject;
|
|
16
|
+
interface AssertionUnit extends AssertionUnitSchemaMixin, Taggable {}
|
|
22
17
|
|
|
18
|
+
class AssertionUnit extends BaseUnit<Schema> implements Schema {
|
|
23
19
|
static get jsonSchema() {
|
|
24
20
|
return JSONSchemasInterface.getSchemaById("workflow/unit/assertion");
|
|
25
21
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Taggable } from "@mat3ra/code/dist/js/entity/mixins/TaggableMixin";
|
|
2
2
|
import JSONSchemasInterface from "@mat3ra/esse/dist/js/esse/JSONSchemasInterface";
|
|
3
|
-
import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types";
|
|
4
3
|
import type { AssignmentUnitSchema } from "@mat3ra/esse/dist/js/types";
|
|
5
4
|
|
|
6
5
|
import { UnitType } from "../enums";
|
|
@@ -11,14 +10,12 @@ import {
|
|
|
11
10
|
import BaseUnit from "./BaseUnit";
|
|
12
11
|
|
|
13
12
|
type Schema = AssignmentUnitSchema;
|
|
14
|
-
type Base = typeof BaseUnit<Schema> & Constructor<AssignmentUnitSchemaMixin>;
|
|
15
|
-
export type AssignmentUnitConfig = Partial<Schema>;
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
declare toJSON: () => Schema & AnyObject;
|
|
14
|
+
export type AssignmentUnitConfig = Partial<Schema>;
|
|
19
15
|
|
|
20
|
-
|
|
16
|
+
interface AssignmentUnit extends AssignmentUnitSchemaMixin, Taggable {}
|
|
21
17
|
|
|
18
|
+
class AssignmentUnit extends BaseUnit<Schema> implements Schema {
|
|
22
19
|
static get jsonSchema() {
|
|
23
20
|
return JSONSchemasInterface.getSchemaById("workflow/unit/assignment");
|
|
24
21
|
}
|