@imferno/node 3.0.2-feat-rule-model-per-edition.a92877c → 3.0.2-feat-rule-model-per-edition.ab840ae
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/codes.d.ts +3 -1
- package/codes.js +3 -1
- package/package.json +7 -7
- package/types.d.ts +33 -1
package/codes.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const codes: {
|
|
|
16
16
|
readonly SoundfieldGroupLinkIDMismatch: "ST377-4/SoundfieldGroupLinkIDMismatch";
|
|
17
17
|
};
|
|
18
18
|
readonly ST429_9: {
|
|
19
|
+
readonly AssetListEmpty: "ST429-9/AssetListEmpty";
|
|
19
20
|
readonly VolindexMissing: "ST429-9/VolindexMissing";
|
|
20
21
|
readonly MalformedXml: "ST429-9/MalformedXml";
|
|
21
22
|
readonly PathNotRelative: "ST429-9/PathNotRelative";
|
|
@@ -28,7 +29,6 @@ export declare const codes: {
|
|
|
28
29
|
readonly PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap";
|
|
29
30
|
};
|
|
30
31
|
readonly ST2067_2: {
|
|
31
|
-
readonly AssetMap: "ST2067-2/AssetMap";
|
|
32
32
|
readonly AssetMapMalformedXml: "ST2067-2/AssetMapMalformedXml";
|
|
33
33
|
readonly PklMalformedXml: "ST2067-2/PklMalformedXml";
|
|
34
34
|
readonly NoCpls: "ST2067-2/NoCpls";
|
|
@@ -239,6 +239,8 @@ export declare const codes: {
|
|
|
239
239
|
readonly NotValidated: "XSD/NotValidated";
|
|
240
240
|
};
|
|
241
241
|
readonly IMFERNO: {
|
|
242
|
+
readonly EditionAssumed: "IMFERNO/EditionAssumed";
|
|
243
|
+
readonly DeliveryNotChecked: "IMFERNO/DeliveryNotChecked";
|
|
242
244
|
readonly OpenFailed: "IMFERNO/OpenFailed";
|
|
243
245
|
readonly PartitionPackParseFailed: "IMFERNO/PartitionPackParseFailed";
|
|
244
246
|
readonly RegXmlConversionFailed: "IMFERNO/RegXmlConversionFailed";
|
package/codes.js
CHANGED
|
@@ -16,6 +16,7 @@ const codes = {
|
|
|
16
16
|
SoundfieldGroupLinkIDMismatch: "ST377-4/SoundfieldGroupLinkIDMismatch",
|
|
17
17
|
},
|
|
18
18
|
ST429_9: {
|
|
19
|
+
AssetListEmpty: "ST429-9/AssetListEmpty",
|
|
19
20
|
VolindexMissing: "ST429-9/VolindexMissing",
|
|
20
21
|
MalformedXml: "ST429-9/MalformedXml",
|
|
21
22
|
PathNotRelative: "ST429-9/PathNotRelative",
|
|
@@ -28,7 +29,6 @@ const codes = {
|
|
|
28
29
|
PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap",
|
|
29
30
|
},
|
|
30
31
|
ST2067_2: {
|
|
31
|
-
AssetMap: "ST2067-2/AssetMap",
|
|
32
32
|
AssetMapMalformedXml: "ST2067-2/AssetMapMalformedXml",
|
|
33
33
|
PklMalformedXml: "ST2067-2/PklMalformedXml",
|
|
34
34
|
NoCpls: "ST2067-2/NoCpls",
|
|
@@ -239,6 +239,8 @@ const codes = {
|
|
|
239
239
|
NotValidated: "XSD/NotValidated",
|
|
240
240
|
},
|
|
241
241
|
IMFERNO: {
|
|
242
|
+
EditionAssumed: "IMFERNO/EditionAssumed",
|
|
243
|
+
DeliveryNotChecked: "IMFERNO/DeliveryNotChecked",
|
|
242
244
|
OpenFailed: "IMFERNO/OpenFailed",
|
|
243
245
|
PartitionPackParseFailed: "IMFERNO/PartitionPackParseFailed",
|
|
244
246
|
RegXmlConversionFailed: "IMFERNO/RegXmlConversionFailed",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imferno/node",
|
|
3
|
-
"version": "3.0.2-feat-rule-model-per-edition.
|
|
3
|
+
"version": "3.0.2-feat-rule-model-per-edition.ab840ae",
|
|
4
4
|
"description": "Native Node.js bindings for the imferno SMPTE ST 2067 IMF validator",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"test": "vitest run"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"@imferno/node-darwin-arm64": "3.0.2-feat-rule-model-per-edition.
|
|
49
|
-
"@imferno/node-darwin-x64": "3.0.2-feat-rule-model-per-edition.
|
|
50
|
-
"@imferno/node-linux-x64-gnu": "3.0.2-feat-rule-model-per-edition.
|
|
51
|
-
"@imferno/node-linux-arm64-gnu": "3.0.2-feat-rule-model-per-edition.
|
|
52
|
-
"@imferno/node-win32-x64-msvc": "3.0.2-feat-rule-model-per-edition.
|
|
53
|
-
"@imferno/node-win32-arm64-msvc": "3.0.2-feat-rule-model-per-edition.
|
|
48
|
+
"@imferno/node-darwin-arm64": "3.0.2-feat-rule-model-per-edition.ab840ae",
|
|
49
|
+
"@imferno/node-darwin-x64": "3.0.2-feat-rule-model-per-edition.ab840ae",
|
|
50
|
+
"@imferno/node-linux-x64-gnu": "3.0.2-feat-rule-model-per-edition.ab840ae",
|
|
51
|
+
"@imferno/node-linux-arm64-gnu": "3.0.2-feat-rule-model-per-edition.ab840ae",
|
|
52
|
+
"@imferno/node-win32-x64-msvc": "3.0.2-feat-rule-model-per-edition.ab840ae",
|
|
53
|
+
"@imferno/node-win32-arm64-msvc": "3.0.2-feat-rule-model-per-edition.ab840ae"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
package/types.d.ts
CHANGED
|
@@ -204,6 +204,18 @@ export type MimeType =
|
|
|
204
204
|
* Mirrors ESLint's `"off"` / `"warn"` / `"error"` vocabulary, extended with the two IMF severity levels.
|
|
205
205
|
*/
|
|
206
206
|
export type RuleSeverity = "off" | "info" | "warn" | "error" | "critical";
|
|
207
|
+
export type RuleValidationReason =
|
|
208
|
+
| {
|
|
209
|
+
kind: "unknown_source";
|
|
210
|
+
variant: string;
|
|
211
|
+
}
|
|
212
|
+
| {
|
|
213
|
+
kind: "matches_nothing";
|
|
214
|
+
}
|
|
215
|
+
| {
|
|
216
|
+
hint: string;
|
|
217
|
+
kind: "unsupported_pattern";
|
|
218
|
+
};
|
|
207
219
|
|
|
208
220
|
/**
|
|
209
221
|
* @deprecated
|
|
@@ -1390,7 +1402,11 @@ export interface EditionInfo {
|
|
|
1390
1402
|
*/
|
|
1391
1403
|
strengthVerified: boolean;
|
|
1392
1404
|
/**
|
|
1393
|
-
*
|
|
1405
|
+
* The clause is known or suspected to be wrong.
|
|
1406
|
+
*/
|
|
1407
|
+
suspect: boolean;
|
|
1408
|
+
/**
|
|
1409
|
+
* `true` only when the row was checked against this edition's text.
|
|
1394
1410
|
*/
|
|
1395
1411
|
verified: boolean;
|
|
1396
1412
|
}
|
|
@@ -1420,8 +1436,24 @@ export interface RulesConfig {
|
|
|
1420
1436
|
*/
|
|
1421
1437
|
export interface ValidationResult {
|
|
1422
1438
|
package: Imferno;
|
|
1439
|
+
/**
|
|
1440
|
+
* Keys of the `rules` option that select no rule (typos, unknown editions); they were ignored. Absent when every key matched.
|
|
1441
|
+
*/
|
|
1442
|
+
rule_warnings?: RuleValidationWarning[];
|
|
1423
1443
|
validation: ValidationReport;
|
|
1424
1444
|
}
|
|
1445
|
+
/**
|
|
1446
|
+
* A diagnostic about a `RulesConfig` key that the engine couldn't match.
|
|
1447
|
+
*
|
|
1448
|
+
* Produced by `RulesConfig::validate`. Operators can use these at config-load time to catch typos before any validation work runs.
|
|
1449
|
+
*/
|
|
1450
|
+
export interface RuleValidationWarning {
|
|
1451
|
+
/**
|
|
1452
|
+
* The configured key that triggered the warning.
|
|
1453
|
+
*/
|
|
1454
|
+
key: string;
|
|
1455
|
+
reason: RuleValidationReason;
|
|
1456
|
+
}
|
|
1425
1457
|
|
|
1426
1458
|
/** Core constraints (ST 2067-2) edition to validate against. `"auto"` detects it from the CPL. */
|
|
1427
1459
|
export type CoreSpec = "auto" | "v2013" | "v2016" | "v2020";
|