@imferno/schema 3.0.2-fix-working-group-resolutions.9aee1e2 → 3.0.2-fix-napi-typescript-types.ddf740f
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 +2 -0
- package/index.d.ts +6 -0
- package/index.js +4 -0
- package/package.json +1 -1
- package/schemas/imferno-package.json +3391 -0
- package/schemas/validation-result.json +3842 -0
package/README.md
CHANGED
|
@@ -29,6 +29,8 @@ if (validate(data)) {
|
|
|
29
29
|
|
|
30
30
|
| Export | Description |
|
|
31
31
|
|--------|-------------|
|
|
32
|
+
| `validationResult` | `{ package, validation }` as returned by `validate()` in `@imferno/node` |
|
|
33
|
+
| `imfernoPackage` | Full parsed package as returned by `parsePackage()` in `@imferno/node` |
|
|
32
34
|
| `imfReport` | Full IMF package report (metadata + validation + CPL analysis) |
|
|
33
35
|
| `validationReport` | Validation issues and diagnostics |
|
|
34
36
|
| `compositionPlaylist` | SMPTE ST 2067-3 Composition Playlist |
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/** A JSON Schema object (Draft 7). */
|
|
2
2
|
type JsonSchema = Record<string, unknown>;
|
|
3
3
|
|
|
4
|
+
/** `{ package, validation }` as returned by `validate()` in @imferno/node. */
|
|
5
|
+
export declare const validationResult: JsonSchema;
|
|
6
|
+
/** The full parsed package (`Imferno`) as returned by `parsePackage()` in @imferno/node. */
|
|
7
|
+
export declare const imfernoPackage: JsonSchema;
|
|
4
8
|
export declare const imfReport: JsonSchema;
|
|
5
9
|
export declare const validationReport: JsonSchema;
|
|
6
10
|
export declare const compositionPlaylist: JsonSchema;
|
|
@@ -10,6 +14,8 @@ export declare const volumeIndex: JsonSchema;
|
|
|
10
14
|
export declare const rulesConfig: JsonSchema;
|
|
11
15
|
|
|
12
16
|
export declare const schemas: {
|
|
17
|
+
validationResult: JsonSchema;
|
|
18
|
+
imfernoPackage: JsonSchema;
|
|
13
19
|
imfReport: JsonSchema;
|
|
14
20
|
validationReport: JsonSchema;
|
|
15
21
|
compositionPlaylist: JsonSchema;
|
package/index.js
CHANGED
|
@@ -9,6 +9,8 @@ function loadSchema(name) {
|
|
|
9
9
|
return JSON.parse(readFileSync(join(schemasDir, `${name}.json`), "utf-8"));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
export const validationResult = loadSchema("validation-result");
|
|
13
|
+
export const imfernoPackage = loadSchema("imferno-package");
|
|
12
14
|
export const imfReport = loadSchema("imf-report");
|
|
13
15
|
export const validationReport = loadSchema("validation-report");
|
|
14
16
|
export const compositionPlaylist = loadSchema("composition-playlist");
|
|
@@ -18,6 +20,8 @@ export const volumeIndex = loadSchema("volume-index");
|
|
|
18
20
|
export const rulesConfig = loadSchema("rules-config");
|
|
19
21
|
|
|
20
22
|
export const schemas = {
|
|
23
|
+
validationResult,
|
|
24
|
+
imfernoPackage,
|
|
21
25
|
imfReport,
|
|
22
26
|
validationReport,
|
|
23
27
|
compositionPlaylist,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imferno/schema",
|
|
3
|
-
"version": "3.0.2-fix-
|
|
3
|
+
"version": "3.0.2-fix-napi-typescript-types.ddf740f",
|
|
4
4
|
"description": "JSON Schema definitions for SMPTE ST 2067 IMF types — validates imferno export output",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|