Skip to content

Commit 602f02f

Browse files
authored
Merge pull request #102 from Exabyte-io/chore/SOF-7209
SOF-7209: new ts config + re-export mathjs types
2 parents 447c8a0 + 27ad871 commit 602f02f

24 files changed

+464
-441
lines changed

dist/js/entity/in_memory.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1+
import { AnyObject } from "@mat3ra/esse/dist/js/esse/types";
12
import { JSONSchema } from "@mat3ra/esse/dist/js/esse/utils";
23
import { EntityReferenceSchema } from "@mat3ra/esse/dist/js/types";
34
export declare enum ValidationErrorCode {
45
IN_MEMORY_ENTITY_DATA_INVALID = "IN_MEMORY_ENTITY_DATA_INVALID"
56
}
6-
export interface AnyObject {
7-
[key: string]: unknown;
8-
}
97
interface ErrorDetails {
108
error?: object | null;
119
json: AnyObject;

dist/js/entity/mixins/context.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { AnyObject, InMemoryEntityConstructor } from "../in_memory";
1+
import { AnyObject } from "@mat3ra/esse/dist/js/esse/types";
2+
import { InMemoryEntityConstructor } from "../in_memory";
23
export type Context = AnyObject;
34
export declare function ContextAndRenderFieldsMixin<T extends InMemoryEntityConstructor>(superclass: T): {
45
new (...params: any[]): {

dist/js/entity/mixins/context_runtime.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ export declare function RuntimeContextFieldMixin<T extends InMemoryEntityConstru
99
toJSON(exclude?: string[]): {
1010
runtimeContext: {};
1111
};
12-
_json: import("../in_memory").AnyObject;
12+
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
1313
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
1414
prop<T_2 = undefined>(name: string): T_2 | undefined;
1515
setProp(name: string, value: unknown): void;
1616
unsetProp(name: string): void;
17-
setProps(json?: import("../in_memory").AnyObject): any;
18-
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
19-
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
17+
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
18+
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
19+
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
2020
clone(extraContext?: object | undefined): any;
2121
validate(): void;
22-
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
22+
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
2323
isValid(): boolean;
2424
id: string;
2525
readonly cls: string;

dist/js/entity/mixins/flowchart.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ export declare function FlowchartItemMixin<T extends InMemoryEntityConstructor>(
55
readonly flowchartId: string;
66
head: boolean;
77
next: string | undefined;
8-
_json: import("../in_memory").AnyObject;
8+
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
99
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
1010
prop<T_2 = undefined>(name: string): T_2 | undefined;
1111
setProp(name: string, value: unknown): void;
1212
unsetProp(name: string): void;
13-
setProps(json?: import("../in_memory").AnyObject): any;
14-
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
15-
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
16-
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
13+
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
14+
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
15+
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
16+
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
1717
clone(extraContext?: object | undefined): any;
1818
validate(): void;
19-
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
19+
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
2020
isValid(): boolean;
2121
id: string;
2222
readonly cls: string;
@@ -37,18 +37,18 @@ export declare function FlowchartEntityMixin<T extends InMemoryEntityConstructor
3737
replaceUnit(unit: UnitEntity, index: number): void;
3838
getUnit(flowchartId: string): UnitEntity | undefined;
3939
getUnitIndexByFlowchartId(flowchartId: string): number;
40-
_json: import("../in_memory").AnyObject;
40+
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
4141
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
4242
prop<T_2 = undefined>(name: string): T_2 | undefined;
4343
setProp(name: string, value: unknown): void;
4444
unsetProp(name: string): void;
45-
setProps(json?: import("../in_memory").AnyObject): any;
46-
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
47-
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
48-
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
45+
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
46+
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
47+
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
48+
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
4949
clone(extraContext?: object | undefined): any;
5050
validate(): void;
51-
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
51+
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
5252
isValid(): boolean;
5353
id: string;
5454
readonly cls: string;

dist/js/entity/mixins/hash.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ export declare function HashedEntityMixin<T extends InMemoryEntityConstructor>(s
99
* head and next are also important but not considered since they are included in subworkflow hash.
1010
*/
1111
calculateHash(): string;
12-
_json: import("../in_memory").AnyObject;
12+
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
1313
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
1414
prop<T_2 = undefined>(name: string): T_2 | undefined;
1515
setProp(name: string, value: unknown): void;
1616
unsetProp(name: string): void;
17-
setProps(json?: import("../in_memory").AnyObject): any;
18-
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
19-
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
20-
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
17+
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
18+
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
19+
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
20+
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
2121
clone(extraContext?: object | undefined): any;
2222
validate(): void;
23-
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
23+
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
2424
isValid(): boolean;
2525
id: string;
2626
readonly cls: string;
@@ -35,18 +35,18 @@ export declare function HashedInputArrayMixin<T extends InMemoryEntityConstructo
3535
new (...args: any[]): {
3636
input: ExecutionUnitInputItemSchemaForPhysicsBasedSimulationEngines[];
3737
readonly hashFromArrayInputContent: string;
38-
_json: import("../in_memory").AnyObject;
38+
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
3939
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
4040
prop<T_2 = undefined>(name: string): T_2 | undefined;
4141
setProp(name: string, value: unknown): void;
4242
unsetProp(name: string): void;
43-
setProps(json?: import("../in_memory").AnyObject): any;
44-
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
45-
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
46-
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
43+
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
44+
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
45+
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
46+
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
4747
clone(extraContext?: object | undefined): any;
4848
validate(): void;
49-
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
49+
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
5050
isValid(): boolean;
5151
id: string;
5252
readonly cls: string;

dist/js/entity/mixins/props.d.ts

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ import { InMemoryEntityConstructor } from "../in_memory";
22
export declare function DefaultableMixin<T extends InMemoryEntityConstructor>(superclass: T): {
33
new (...args: any[]): {
44
readonly isDefault: boolean;
5-
_json: import("../in_memory").AnyObject;
5+
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
66
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
77
prop<T_2 = undefined>(name: string): T_2 | undefined;
88
setProp(name: string, value: unknown): void;
99
unsetProp(name: string): void;
10-
setProps(json?: import("../in_memory").AnyObject): any;
11-
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
12-
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
13-
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
10+
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
11+
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
12+
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
13+
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
1414
clone(extraContext?: object | undefined): any;
1515
validate(): void;
16-
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
16+
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
1717
isValid(): boolean;
1818
id: string;
1919
readonly cls: string;
@@ -30,18 +30,18 @@ export declare function TaggableMixin<T extends InMemoryEntityConstructor>(super
3030
new (...args: any[]): {
3131
tags: string[];
3232
setTags(array: string[]): void;
33-
_json: import("../in_memory").AnyObject;
33+
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
3434
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
3535
prop<T_2 = undefined>(name: string): T_2 | undefined;
3636
setProp(name: string, value: unknown): void;
3737
unsetProp(name: string): void;
38-
setProps(json?: import("../in_memory").AnyObject): any;
39-
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
40-
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
41-
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
38+
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
39+
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
40+
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
41+
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
4242
clone(extraContext?: object | undefined): any;
4343
validate(): void;
44-
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
44+
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
4545
isValid(): boolean;
4646
id: string;
4747
readonly cls: string;
@@ -55,18 +55,18 @@ export declare function TaggableMixin<T extends InMemoryEntityConstructor>(super
5555
export declare function HasScopeTrackMixin<T extends InMemoryEntityConstructor>(superclass: T): {
5656
new (...args: any[]): {
5757
scopeTrack: unknown[];
58-
_json: import("../in_memory").AnyObject;
58+
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
5959
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
6060
prop<T_2 = undefined>(name: string): T_2 | undefined;
6161
setProp(name: string, value: unknown): void;
6262
unsetProp(name: string): void;
63-
setProps(json?: import("../in_memory").AnyObject): any;
64-
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
65-
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
66-
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
63+
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
64+
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
65+
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
66+
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
6767
clone(extraContext?: object | undefined): any;
6868
validate(): void;
69-
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
69+
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
7070
isValid(): boolean;
7171
id: string;
7272
readonly cls: string;
@@ -81,18 +81,18 @@ export declare function HasMetadataMixin<T extends InMemoryEntityConstructor>(su
8181
new (...args: any[]): {
8282
metadata: object;
8383
updateMetadata(object: object): void;
84-
_json: import("../in_memory").AnyObject;
84+
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
8585
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
8686
prop<T_2 = undefined>(name: string): T_2 | undefined;
8787
setProp(name: string, value: unknown): void;
8888
unsetProp(name: string): void;
89-
setProps(json?: import("../in_memory").AnyObject): any;
90-
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
91-
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
92-
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
89+
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
90+
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
91+
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
92+
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
9393
clone(extraContext?: object | undefined): any;
9494
validate(): void;
95-
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
95+
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
9696
isValid(): boolean;
9797
id: string;
9898
readonly cls: string;
@@ -107,18 +107,18 @@ export declare function HasDescriptionMixin<T extends InMemoryEntityConstructor>
107107
new (...args: any[]): {
108108
description: string;
109109
descriptionObject: {} | undefined;
110-
_json: import("../in_memory").AnyObject;
110+
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
111111
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
112112
prop<T_2 = undefined>(name: string): T_2 | undefined;
113113
setProp(name: string, value: unknown): void;
114114
unsetProp(name: string): void;
115-
setProps(json?: import("../in_memory").AnyObject): any;
116-
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
117-
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
118-
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
115+
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
116+
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
117+
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
118+
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
119119
clone(extraContext?: object | undefined): any;
120120
validate(): void;
121-
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
121+
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
122122
isValid(): boolean;
123123
id: string;
124124
readonly cls: string;
@@ -133,18 +133,18 @@ export declare function NamedEntityMixin<T extends InMemoryEntityConstructor>(su
133133
new (...args: any[]): {
134134
name: string;
135135
setName(name: string): void;
136-
_json: import("../in_memory").AnyObject;
136+
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
137137
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
138138
prop<T_2 = undefined>(name: string): T_2 | undefined;
139139
setProp(name: string, value: unknown): void;
140140
unsetProp(name: string): void;
141-
setProps(json?: import("../in_memory").AnyObject): any;
142-
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
143-
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
144-
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
141+
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
142+
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
143+
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
144+
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
145145
clone(extraContext?: object | undefined): any;
146146
validate(): void;
147-
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
147+
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
148148
isValid(): boolean;
149149
id: string;
150150
readonly cls: string;
@@ -159,18 +159,18 @@ export declare function HasConsistencyChecksMixin<T extends InMemoryEntityConstr
159159
new (...args: any[]): {
160160
consistencyChecks: object[];
161161
addConsistencyChecks(array: object[]): void;
162-
_json: import("../in_memory").AnyObject;
162+
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
163163
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
164164
prop<T_2 = undefined>(name: string): T_2 | undefined;
165165
setProp(name: string, value: unknown): void;
166166
unsetProp(name: string): void;
167-
setProps(json?: import("../in_memory").AnyObject): any;
168-
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
169-
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
170-
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
167+
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
168+
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
169+
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
170+
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
171171
clone(extraContext?: object | undefined): any;
172172
validate(): void;
173-
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
173+
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
174174
isValid(): boolean;
175175
id: string;
176176
readonly cls: string;

0 commit comments

Comments
 (0)