@mat3ra/esse 2026.4.4-0 → 2026.4.29-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/README.md +47 -2
- package/dist/js/esse/JSONSchemasInterface.js +1 -1
- package/dist/js/esse/JSONSchemasInterfaceServer.js +2 -3
- package/dist/js/esse/schemaUtils.js +1 -2
- package/dist/js/esse/utils.js +4 -5
- package/dist/js/example/job.json +6 -4
- package/dist/js/example/software/application.json +3 -2
- package/dist/js/example/workflow/subworkflow.json +6 -4
- package/dist/js/example/workflow/unit/execution.json +3 -2
- package/dist/js/example/workflow.json +6 -4
- package/dist/js/schema/job.json +12 -0
- package/dist/js/schema/properties_directory/non_scalar/workflow.json +12 -0
- package/dist/js/schema/property/holder.json +12 -0
- package/dist/js/schema/software/application.json +4 -0
- package/dist/js/schema/software/application_with_build_config.json +4 -0
- package/dist/js/schema/software_directory/modeling/deepmd.json +4 -0
- package/dist/js/schema/software_directory/modeling/lammps.json +4 -0
- package/dist/js/schema/software_directory/modeling/nwchem.json +4 -0
- package/dist/js/schema/software_directory/modeling/unit/execution.json +4 -0
- package/dist/js/schema/software_directory/modeling/vasp.json +4 -0
- package/dist/js/schema/software_directory/scripting/jupyter_lab.json +4 -0
- package/dist/js/schema/software_directory/scripting/python.json +4 -0
- package/dist/js/schema/software_directory/scripting/shell.json +4 -0
- package/dist/js/schema/software_directory/scripting/unit/execution.json +4 -0
- package/dist/js/schema/workflow/subworkflow/unit.json +4 -0
- package/dist/js/schema/workflow/subworkflow.json +8 -0
- package/dist/js/schema/workflow/unit/execution.json +4 -0
- package/dist/js/schema/workflow/unit.json +4 -0
- package/dist/js/schema/workflow.json +12 -0
- package/dist/js/schemas.json +1 -1
- package/dist/js/scripts/compileTs.js +1 -1
- package/dist/js/scripts/setSchemaIds.js +1 -1
- package/dist/js/types.d.ts +112 -0
- package/dist/js/types.js +5 -5
- package/dist/js/utils/ajv.js +4 -5
- package/dist/js/utils/common.js +2 -3
- package/dist/js/utils/filesystem.js +2 -3
- package/example/software/application.json +3 -2
- package/package.json +14 -14
- package/schema/software/application.json +4 -0
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = compileTS;
|
|
6
7
|
const fs_1 = __importDefault(require("fs"));
|
|
7
8
|
const json_schema_to_typescript_1 = require("json-schema-to-typescript");
|
|
8
9
|
const schemaUtils_1 = require("../esse/schemaUtils");
|
|
@@ -77,4 +78,3 @@ async function compileTS(schemaPath, savePath) {
|
|
|
77
78
|
await fs_1.default.promises.appendFile(savePath, `${compiledSchema} \n`, { flag: "a+" });
|
|
78
79
|
});
|
|
79
80
|
}
|
|
80
|
-
exports.default = compileTS;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = setSchemaIds;
|
|
6
7
|
const fs_1 = __importDefault(require("fs"));
|
|
7
8
|
const path_1 = __importDefault(require("path"));
|
|
8
9
|
const filesystem_1 = require("../utils/filesystem");
|
|
@@ -26,4 +27,3 @@ function setSchemaIds(schemaDir) {
|
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
|
-
exports.default = setSchemaIds;
|
package/dist/js/types.d.ts
CHANGED
|
@@ -6217,6 +6217,10 @@ export interface JobSchema {
|
|
|
6217
6217
|
* Whether licensing is present
|
|
6218
6218
|
*/
|
|
6219
6219
|
isLicensed?: boolean;
|
|
6220
|
+
/**
|
|
6221
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
6222
|
+
*/
|
|
6223
|
+
isUsingMaterial?: boolean;
|
|
6220
6224
|
/**
|
|
6221
6225
|
* entity identity
|
|
6222
6226
|
*/
|
|
@@ -6787,6 +6791,10 @@ export interface JobSchema {
|
|
|
6787
6791
|
* Whether licensing is present
|
|
6788
6792
|
*/
|
|
6789
6793
|
isLicensed?: boolean;
|
|
6794
|
+
/**
|
|
6795
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
6796
|
+
*/
|
|
6797
|
+
isUsingMaterial?: boolean;
|
|
6790
6798
|
/**
|
|
6791
6799
|
* entity identity
|
|
6792
6800
|
*/
|
|
@@ -7494,6 +7502,10 @@ export interface JobSchema {
|
|
|
7494
7502
|
* Whether licensing is present
|
|
7495
7503
|
*/
|
|
7496
7504
|
isLicensed?: boolean;
|
|
7505
|
+
/**
|
|
7506
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
7507
|
+
*/
|
|
7508
|
+
isUsingMaterial?: boolean;
|
|
7497
7509
|
/**
|
|
7498
7510
|
* entity identity
|
|
7499
7511
|
*/
|
|
@@ -48175,6 +48187,10 @@ export interface WorkflowPropertySchema {
|
|
|
48175
48187
|
* Whether licensing is present
|
|
48176
48188
|
*/
|
|
48177
48189
|
isLicensed?: boolean;
|
|
48190
|
+
/**
|
|
48191
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
48192
|
+
*/
|
|
48193
|
+
isUsingMaterial?: boolean;
|
|
48178
48194
|
/**
|
|
48179
48195
|
* entity identity
|
|
48180
48196
|
*/
|
|
@@ -48745,6 +48761,10 @@ export interface WorkflowPropertySchema {
|
|
|
48745
48761
|
* Whether licensing is present
|
|
48746
48762
|
*/
|
|
48747
48763
|
isLicensed?: boolean;
|
|
48764
|
+
/**
|
|
48765
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
48766
|
+
*/
|
|
48767
|
+
isUsingMaterial?: boolean;
|
|
48748
48768
|
/**
|
|
48749
48769
|
* entity identity
|
|
48750
48770
|
*/
|
|
@@ -49452,6 +49472,10 @@ export interface WorkflowPropertySchema {
|
|
|
49452
49472
|
* Whether licensing is present
|
|
49453
49473
|
*/
|
|
49454
49474
|
isLicensed?: boolean;
|
|
49475
|
+
/**
|
|
49476
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
49477
|
+
*/
|
|
49478
|
+
isUsingMaterial?: boolean;
|
|
49455
49479
|
/**
|
|
49456
49480
|
* entity identity
|
|
49457
49481
|
*/
|
|
@@ -52163,6 +52187,10 @@ export interface PropertyHolderSchema {
|
|
|
52163
52187
|
* Whether licensing is present
|
|
52164
52188
|
*/
|
|
52165
52189
|
isLicensed?: boolean;
|
|
52190
|
+
/**
|
|
52191
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
52192
|
+
*/
|
|
52193
|
+
isUsingMaterial?: boolean;
|
|
52166
52194
|
/**
|
|
52167
52195
|
* entity identity
|
|
52168
52196
|
*/
|
|
@@ -52733,6 +52761,10 @@ export interface PropertyHolderSchema {
|
|
|
52733
52761
|
* Whether licensing is present
|
|
52734
52762
|
*/
|
|
52735
52763
|
isLicensed?: boolean;
|
|
52764
|
+
/**
|
|
52765
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
52766
|
+
*/
|
|
52767
|
+
isUsingMaterial?: boolean;
|
|
52736
52768
|
/**
|
|
52737
52769
|
* entity identity
|
|
52738
52770
|
*/
|
|
@@ -53440,6 +53472,10 @@ export interface PropertyHolderSchema {
|
|
|
53440
53472
|
* Whether licensing is present
|
|
53441
53473
|
*/
|
|
53442
53474
|
isLicensed?: boolean;
|
|
53475
|
+
/**
|
|
53476
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
53477
|
+
*/
|
|
53478
|
+
isUsingMaterial?: boolean;
|
|
53443
53479
|
/**
|
|
53444
53480
|
* entity identity
|
|
53445
53481
|
*/
|
|
@@ -54729,6 +54765,10 @@ export interface ApplicationSchemaBase {
|
|
|
54729
54765
|
* Whether licensing is present
|
|
54730
54766
|
*/
|
|
54731
54767
|
isLicensed?: boolean;
|
|
54768
|
+
/**
|
|
54769
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
54770
|
+
*/
|
|
54771
|
+
isUsingMaterial?: boolean;
|
|
54732
54772
|
/**
|
|
54733
54773
|
* entity identity
|
|
54734
54774
|
*/
|
|
@@ -54807,6 +54847,10 @@ export interface ApplicationWithBuildConfigSchema {
|
|
|
54807
54847
|
* Whether licensing is present
|
|
54808
54848
|
*/
|
|
54809
54849
|
isLicensed?: boolean;
|
|
54850
|
+
/**
|
|
54851
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
54852
|
+
*/
|
|
54853
|
+
isUsingMaterial?: boolean;
|
|
54810
54854
|
/**
|
|
54811
54855
|
* entity identity
|
|
54812
54856
|
*/
|
|
@@ -55063,6 +55107,10 @@ export interface DeePMDAppSchema {
|
|
|
55063
55107
|
* Whether licensing is present
|
|
55064
55108
|
*/
|
|
55065
55109
|
isLicensed?: boolean;
|
|
55110
|
+
/**
|
|
55111
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
55112
|
+
*/
|
|
55113
|
+
isUsingMaterial?: boolean;
|
|
55066
55114
|
/**
|
|
55067
55115
|
* entity identity
|
|
55068
55116
|
*/
|
|
@@ -55141,6 +55189,10 @@ export interface LAMMPS {
|
|
|
55141
55189
|
* Whether licensing is present
|
|
55142
55190
|
*/
|
|
55143
55191
|
isLicensed?: boolean;
|
|
55192
|
+
/**
|
|
55193
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
55194
|
+
*/
|
|
55195
|
+
isUsingMaterial?: boolean;
|
|
55144
55196
|
/**
|
|
55145
55197
|
* entity identity
|
|
55146
55198
|
*/
|
|
@@ -55190,6 +55242,10 @@ export interface NWChem {
|
|
|
55190
55242
|
* Whether licensing is present
|
|
55191
55243
|
*/
|
|
55192
55244
|
isLicensed?: boolean;
|
|
55245
|
+
/**
|
|
55246
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
55247
|
+
*/
|
|
55248
|
+
isUsingMaterial?: boolean;
|
|
55193
55249
|
/**
|
|
55194
55250
|
* entity identity
|
|
55195
55251
|
*/
|
|
@@ -55239,6 +55295,10 @@ export interface ExecutionUnitSchemaForPhysicsBasedSimulationEnginesDefinedUsing
|
|
|
55239
55295
|
* Whether licensing is present
|
|
55240
55296
|
*/
|
|
55241
55297
|
isLicensed?: boolean;
|
|
55298
|
+
/**
|
|
55299
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
55300
|
+
*/
|
|
55301
|
+
isUsingMaterial?: boolean;
|
|
55242
55302
|
/**
|
|
55243
55303
|
* entity identity
|
|
55244
55304
|
*/
|
|
@@ -55573,6 +55633,10 @@ export interface ViennaAbInitoSimulationPackage {
|
|
|
55573
55633
|
* Whether licensing is present
|
|
55574
55634
|
*/
|
|
55575
55635
|
isLicensed?: boolean;
|
|
55636
|
+
/**
|
|
55637
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
55638
|
+
*/
|
|
55639
|
+
isUsingMaterial?: boolean;
|
|
55576
55640
|
/**
|
|
55577
55641
|
* entity identity
|
|
55578
55642
|
*/
|
|
@@ -55623,6 +55687,10 @@ export interface JupyterLabApplicationSchema {
|
|
|
55623
55687
|
* Whether licensing is present
|
|
55624
55688
|
*/
|
|
55625
55689
|
isLicensed?: boolean;
|
|
55690
|
+
/**
|
|
55691
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
55692
|
+
*/
|
|
55693
|
+
isUsingMaterial?: boolean;
|
|
55626
55694
|
/**
|
|
55627
55695
|
* entity identity
|
|
55628
55696
|
*/
|
|
@@ -55685,6 +55753,10 @@ export interface PythonProgramingLanguageSchema {
|
|
|
55685
55753
|
* Whether licensing is present
|
|
55686
55754
|
*/
|
|
55687
55755
|
isLicensed?: boolean;
|
|
55756
|
+
/**
|
|
55757
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
55758
|
+
*/
|
|
55759
|
+
isUsingMaterial?: boolean;
|
|
55688
55760
|
/**
|
|
55689
55761
|
* entity identity
|
|
55690
55762
|
*/
|
|
@@ -55743,6 +55815,10 @@ export interface ShellScriptingLanguageSchema {
|
|
|
55743
55815
|
* Whether licensing is present
|
|
55744
55816
|
*/
|
|
55745
55817
|
isLicensed?: boolean;
|
|
55818
|
+
/**
|
|
55819
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
55820
|
+
*/
|
|
55821
|
+
isUsingMaterial?: boolean;
|
|
55746
55822
|
/**
|
|
55747
55823
|
* entity identity
|
|
55748
55824
|
*/
|
|
@@ -55792,6 +55868,10 @@ export interface ExecutionUnitSchemaForScriptingBasedApplications {
|
|
|
55792
55868
|
* Whether licensing is present
|
|
55793
55869
|
*/
|
|
55794
55870
|
isLicensed?: boolean;
|
|
55871
|
+
/**
|
|
55872
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
55873
|
+
*/
|
|
55874
|
+
isUsingMaterial?: boolean;
|
|
55795
55875
|
/**
|
|
55796
55876
|
* entity identity
|
|
55797
55877
|
*/
|
|
@@ -57307,6 +57387,10 @@ export type WorkflowSubworkflowUnitSchema = {
|
|
|
57307
57387
|
* Whether licensing is present
|
|
57308
57388
|
*/
|
|
57309
57389
|
isLicensed?: boolean;
|
|
57390
|
+
/**
|
|
57391
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
57392
|
+
*/
|
|
57393
|
+
isUsingMaterial?: boolean;
|
|
57310
57394
|
/**
|
|
57311
57395
|
* entity identity
|
|
57312
57396
|
*/
|
|
@@ -58385,6 +58469,10 @@ export interface Subworkflow {
|
|
|
58385
58469
|
* Whether licensing is present
|
|
58386
58470
|
*/
|
|
58387
58471
|
isLicensed?: boolean;
|
|
58472
|
+
/**
|
|
58473
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
58474
|
+
*/
|
|
58475
|
+
isUsingMaterial?: boolean;
|
|
58388
58476
|
/**
|
|
58389
58477
|
* entity identity
|
|
58390
58478
|
*/
|
|
@@ -58955,6 +59043,10 @@ export interface Subworkflow {
|
|
|
58955
59043
|
* Whether licensing is present
|
|
58956
59044
|
*/
|
|
58957
59045
|
isLicensed?: boolean;
|
|
59046
|
+
/**
|
|
59047
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
59048
|
+
*/
|
|
59049
|
+
isUsingMaterial?: boolean;
|
|
58958
59050
|
/**
|
|
58959
59051
|
* entity identity
|
|
58960
59052
|
*/
|
|
@@ -59596,6 +59688,10 @@ export interface ExecutionUnitSchemaBase {
|
|
|
59596
59688
|
* Whether licensing is present
|
|
59597
59689
|
*/
|
|
59598
59690
|
isLicensed?: boolean;
|
|
59691
|
+
/**
|
|
59692
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
59693
|
+
*/
|
|
59694
|
+
isUsingMaterial?: boolean;
|
|
59599
59695
|
/**
|
|
59600
59696
|
* entity identity
|
|
59601
59697
|
*/
|
|
@@ -61294,6 +61390,10 @@ export type WorkflowUnitSchema = {
|
|
|
61294
61390
|
* Whether licensing is present
|
|
61295
61391
|
*/
|
|
61296
61392
|
isLicensed?: boolean;
|
|
61393
|
+
/**
|
|
61394
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
61395
|
+
*/
|
|
61396
|
+
isUsingMaterial?: boolean;
|
|
61297
61397
|
/**
|
|
61298
61398
|
* entity identity
|
|
61299
61399
|
*/
|
|
@@ -62598,6 +62698,10 @@ export interface WorkflowSchema {
|
|
|
62598
62698
|
* Whether licensing is present
|
|
62599
62699
|
*/
|
|
62600
62700
|
isLicensed?: boolean;
|
|
62701
|
+
/**
|
|
62702
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
62703
|
+
*/
|
|
62704
|
+
isUsingMaterial?: boolean;
|
|
62601
62705
|
/**
|
|
62602
62706
|
* entity identity
|
|
62603
62707
|
*/
|
|
@@ -63168,6 +63272,10 @@ export interface WorkflowSchema {
|
|
|
63168
63272
|
* Whether licensing is present
|
|
63169
63273
|
*/
|
|
63170
63274
|
isLicensed?: boolean;
|
|
63275
|
+
/**
|
|
63276
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
63277
|
+
*/
|
|
63278
|
+
isUsingMaterial?: boolean;
|
|
63171
63279
|
/**
|
|
63172
63280
|
* entity identity
|
|
63173
63281
|
*/
|
|
@@ -63875,6 +63983,10 @@ export interface WorkflowSchema {
|
|
|
63875
63983
|
* Whether licensing is present
|
|
63876
63984
|
*/
|
|
63877
63985
|
isLicensed?: boolean;
|
|
63986
|
+
/**
|
|
63987
|
+
* Whether the application is using (being passed during a downstream processing routine) a material structure.
|
|
63988
|
+
*/
|
|
63989
|
+
isUsingMaterial?: boolean;
|
|
63878
63990
|
/**
|
|
63879
63991
|
* entity identity
|
|
63880
63992
|
*/
|
package/dist/js/types.js
CHANGED
|
@@ -29,7 +29,7 @@ var Name;
|
|
|
29
29
|
Name["VASPInputDataManager"] = "VASPInputDataManager";
|
|
30
30
|
Name["VASPNEBInputDataManager"] = "VASPNEBInputDataManager";
|
|
31
31
|
Name["NWChemInputDataManager"] = "NWChemInputDataManager";
|
|
32
|
-
})(Name
|
|
32
|
+
})(Name || (exports.Name = Name = {}));
|
|
33
33
|
/**
|
|
34
34
|
* This interface was referenced by `ContextProvidersDirectoryEnum`'s JSON-Schema
|
|
35
35
|
* via the `definition` "ContextProviderNameEnum".
|
|
@@ -61,7 +61,7 @@ var ContextProviderNameEnum;
|
|
|
61
61
|
ContextProviderNameEnum["VASPInputDataManager"] = "VASPInputDataManager";
|
|
62
62
|
ContextProviderNameEnum["VASPNEBInputDataManager"] = "VASPNEBInputDataManager";
|
|
63
63
|
ContextProviderNameEnum["NWChemInputDataManager"] = "NWChemInputDataManager";
|
|
64
|
-
})(ContextProviderNameEnum
|
|
64
|
+
})(ContextProviderNameEnum || (exports.ContextProviderNameEnum = ContextProviderNameEnum = {}));
|
|
65
65
|
/**
|
|
66
66
|
* The type of the message to distinguish the direction of the message.
|
|
67
67
|
*/
|
|
@@ -69,7 +69,7 @@ var Type;
|
|
|
69
69
|
(function (Type) {
|
|
70
70
|
Type["fromIframeToHost"] = "from-iframe-to-host";
|
|
71
71
|
Type["fromHostToIframe"] = "from-host-to-iframe";
|
|
72
|
-
})(Type
|
|
72
|
+
})(Type || (exports.Type = Type = {}));
|
|
73
73
|
/**
|
|
74
74
|
* The action to be performed upon receiving the message.
|
|
75
75
|
*/
|
|
@@ -78,7 +78,7 @@ var Action;
|
|
|
78
78
|
Action["setData"] = "set-data";
|
|
79
79
|
Action["getData"] = "get-data";
|
|
80
80
|
Action["info"] = "info";
|
|
81
|
-
})(Action
|
|
81
|
+
})(Action || (exports.Action = Action = {}));
|
|
82
82
|
/**
|
|
83
83
|
* This interface was referenced by `WorkflowSubworkflowConvergenceEnumOptions`'s JSON-Schema
|
|
84
84
|
* via the `definition` "ConvergenceParameterNameEnum".
|
|
@@ -88,4 +88,4 @@ var ConvergenceParameterNameEnum;
|
|
|
88
88
|
ConvergenceParameterNameEnum["N_k"] = "N_k";
|
|
89
89
|
ConvergenceParameterNameEnum["N_k_nonuniform"] = "N_k_nonuniform";
|
|
90
90
|
ConvergenceParameterNameEnum["N_k_nonuniform_2D"] = "N_k_nonuniform_2D";
|
|
91
|
-
})(ConvergenceParameterNameEnum
|
|
91
|
+
})(ConvergenceParameterNameEnum || (exports.ConvergenceParameterNameEnum = ConvergenceParameterNameEnum = {}));
|
package/dist/js/utils/ajv.js
CHANGED
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.getValidator = getValidator;
|
|
7
|
+
exports.validate = validate;
|
|
8
|
+
exports.validateAndClean = validateAndClean;
|
|
7
9
|
const ajv_1 = __importDefault(require("ajv"));
|
|
8
10
|
const ajv_formats_1 = __importDefault(require("ajv-formats"));
|
|
9
11
|
const schemaUtils_1 = require("../esse/schemaUtils");
|
|
@@ -23,7 +25,7 @@ function addAdditionalPropertiesToSchema(schema, additionalProperties = false) {
|
|
|
23
25
|
});
|
|
24
26
|
}
|
|
25
27
|
const ajvConfig = {
|
|
26
|
-
strict: false,
|
|
28
|
+
strict: false, // TODO: adjust schemas and enable strict mode
|
|
27
29
|
useDefaults: true,
|
|
28
30
|
/**
|
|
29
31
|
* discriminator fixes default values in oneOf
|
|
@@ -80,7 +82,6 @@ function getValidator(jsonSchema, { clean, coerceTypes, useDefaults = true, }) {
|
|
|
80
82
|
}
|
|
81
83
|
return validate;
|
|
82
84
|
}
|
|
83
|
-
exports.getValidator = getValidator;
|
|
84
85
|
/**
|
|
85
86
|
* Validates a given example against the schema.
|
|
86
87
|
* @param example example to validate.
|
|
@@ -95,7 +96,6 @@ function validate(data, jsonSchema) {
|
|
|
95
96
|
errors: validator.errors,
|
|
96
97
|
};
|
|
97
98
|
}
|
|
98
|
-
exports.validate = validate;
|
|
99
99
|
/**
|
|
100
100
|
* Validates and clean a given example against the schema
|
|
101
101
|
* @param example example to validate.
|
|
@@ -110,4 +110,3 @@ function validateAndClean(data, jsonSchema, { coerceTypes = false, useDefaults =
|
|
|
110
110
|
errors: validator.errors,
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
exports.validateAndClean = validateAndClean;
|
package/dist/js/utils/common.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isInstanceOf = isInstanceOf;
|
|
4
|
+
exports.safeParseJSON = safeParseJSON;
|
|
4
5
|
function isInstanceOf(object, type) {
|
|
5
6
|
return Object.prototype.toString.call(object).slice(8, -1) === type;
|
|
6
7
|
}
|
|
7
|
-
exports.isInstanceOf = isInstanceOf;
|
|
8
8
|
/**
|
|
9
9
|
* Makes sure that text representing arrays is parsed into Arrays.
|
|
10
10
|
*/
|
|
@@ -12,4 +12,3 @@ function safeParseJSON(string) {
|
|
|
12
12
|
const obj = JSON.parse(string);
|
|
13
13
|
return string[0] === "[" ? Object.keys(obj).map((key) => obj[key]) : obj;
|
|
14
14
|
}
|
|
15
|
-
exports.safeParseJSON = safeParseJSON;
|
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.walkDir = walkDir;
|
|
7
|
+
exports.walkDirSync = walkDirSync;
|
|
7
8
|
/* eslint-disable no-await-in-loop */
|
|
8
9
|
/* eslint-disable no-restricted-syntax */
|
|
9
10
|
const fs_1 = __importDefault(require("fs"));
|
|
@@ -21,7 +22,6 @@ async function walkDir(dir, callback) {
|
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
|
-
exports.walkDir = walkDir;
|
|
25
25
|
function walkDirSync(dir, callback) {
|
|
26
26
|
const subDirs = fs_1.default.readdirSync(dir);
|
|
27
27
|
for (const subDir of subDirs) {
|
|
@@ -35,4 +35,3 @@ function walkDirSync(dir, callback) {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
exports.walkDirSync = walkDirSync;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mat3ra/esse",
|
|
3
|
-
"version": "2026.4.
|
|
3
|
+
"version": "2026.4.29-0",
|
|
4
4
|
"description": "Mat3ra's Excellent Source of Schemas and Examples (ESSE) for Digital Materials R&D",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"transpile": "tsc -p tsconfig-transpile.json",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/Exabyte-io/esse",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@exabyte-io/eslint-config": "2025.5.13-0",
|
|
30
|
+
"@exabyte-io/eslint-config": "^2025.5.13-0",
|
|
31
31
|
"@mat3ra/tsconfig": "^2024.6.3-0",
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
33
33
|
"@typescript-eslint/parser": "^5.62.0",
|
|
34
|
-
"chai": "4.5.0",
|
|
34
|
+
"chai": "^4.5.0",
|
|
35
35
|
"eslint": "^7.32.0",
|
|
36
36
|
"eslint-config-airbnb": "^19.0.4",
|
|
37
37
|
"eslint-config-prettier": "^8.10.2",
|
|
38
38
|
"eslint-import-resolver-exports": "^1.0.0-beta.5",
|
|
39
39
|
"eslint-import-resolver-meteor": "^0.4.0",
|
|
40
|
-
"eslint-import-resolver-node": "^0.3.
|
|
40
|
+
"eslint-import-resolver-node": "^0.3.10",
|
|
41
41
|
"eslint-plugin-import": "^2.32.0",
|
|
42
42
|
"eslint-plugin-jsdoc": "^50.8.0",
|
|
43
43
|
"eslint-plugin-jsonc": "^2.21.1",
|
|
@@ -49,37 +49,37 @@
|
|
|
49
49
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
50
50
|
"husky": "^7.0.4",
|
|
51
51
|
"lint-staged": "^12.5.0",
|
|
52
|
-
"mocha": "10.8.2",
|
|
53
|
-
"nyc": "15.1.0",
|
|
52
|
+
"mocha": "^10.8.2",
|
|
53
|
+
"nyc": "^15.1.0",
|
|
54
54
|
"prettier": "^2.8.8",
|
|
55
55
|
"prettyjson": "^1.2.5",
|
|
56
56
|
"ts-node": "^10.9.2",
|
|
57
|
-
"typescript": "^
|
|
57
|
+
"typescript": "^5.9.3"
|
|
58
58
|
},
|
|
59
59
|
"license": "Apache-2.0",
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@mat3ra/utils": "2026.3.7-0",
|
|
62
61
|
"@babel/cli": "^7.28.6",
|
|
63
62
|
"@babel/core": "^7.29.0",
|
|
64
63
|
"@babel/eslint-parser": "^7.28.6",
|
|
65
64
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
66
|
-
"@babel/preset-env": "^7.29.
|
|
65
|
+
"@babel/preset-env": "^7.29.2",
|
|
67
66
|
"@babel/preset-react": "^7.28.5",
|
|
68
67
|
"@babel/preset-typescript": "^7.28.5",
|
|
69
68
|
"@babel/register": "^7.28.6",
|
|
70
|
-
"@babel/runtime-corejs3": "^7.29.
|
|
69
|
+
"@babel/runtime-corejs3": "^7.29.2",
|
|
70
|
+
"@mat3ra/utils": "^2026.4.15-1",
|
|
71
71
|
"@types/chai": "^4.3.20",
|
|
72
72
|
"@types/js-yaml": "^4.0.9",
|
|
73
73
|
"@types/json-schema-merge-allof": "^0.6.5",
|
|
74
74
|
"@types/mocha": "^10.0.10",
|
|
75
|
-
"ajv": "^8.
|
|
75
|
+
"ajv": "^8.20.0",
|
|
76
76
|
"ajv-formats": "^2.1.1",
|
|
77
77
|
"js-yaml": "^4.1.1",
|
|
78
78
|
"json-schema": "^0.4.0",
|
|
79
|
-
"json-schema-deref-sync": "0.14.0",
|
|
79
|
+
"json-schema-deref-sync": "^0.14.0",
|
|
80
80
|
"json-schema-merge-allof": "^0.8.1",
|
|
81
|
-
"
|
|
82
|
-
"
|
|
81
|
+
"json-schema-to-typescript": "^15.0.4",
|
|
82
|
+
"lodash": "^4.18.1"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": ">=14.0.0"
|
|
@@ -36,6 +36,10 @@
|
|
|
36
36
|
"isLicensed": {
|
|
37
37
|
"description": "Whether licensing is present",
|
|
38
38
|
"type": "boolean"
|
|
39
|
+
},
|
|
40
|
+
"isUsingMaterial": {
|
|
41
|
+
"description": "Whether the application is using (being passed during a downstream processing routine) a material structure.",
|
|
42
|
+
"type": "boolean"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
}
|