@imferno/schema 3.0.2-fix-working-group-resolutions.b60b447 → 3.0.2-fix-napi-typescript-types.043fc9b

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 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-working-group-resolutions.b60b447",
3
+ "version": "3.0.2-fix-napi-typescript-types.043fc9b",
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",
@@ -1353,21 +1353,6 @@
1353
1353
  }
1354
1354
  }
1355
1355
  },
1356
- "J2KCcapi": {
1357
- "description": "`Ccapi` array of `J2KExtendedCapabilities`.",
1358
- "type": "object",
1359
- "properties": {
1360
- "UInt16": {
1361
- "default": [],
1362
- "type": "array",
1363
- "items": {
1364
- "type": "integer",
1365
- "format": "uint16",
1366
- "minimum": 0.0
1367
- }
1368
- }
1369
- }
1370
- },
1371
1356
  "J2KComponentSizing": {
1372
1357
  "description": "Individual J2K component sizing",
1373
1358
  "type": "object",
@@ -1408,18 +1393,6 @@
1408
1393
  "description": "J2K Extended Capabilities (ISO/IEC 15444-15)",
1409
1394
  "type": "object",
1410
1395
  "properties": {
1411
- "Ccapi": {
1412
- "description": "Codestream capabilities (Ccap^i), one UInt16 per Pcap bit set, in increasing order of i (ISO/IEC 15444-1 CAP marker).",
1413
- "default": null,
1414
- "anyOf": [
1415
- {
1416
- "$ref": "#/definitions/J2KCcapi"
1417
- },
1418
- {
1419
- "type": "null"
1420
- }
1421
- ]
1422
- },
1423
1396
  "Pcap": {
1424
1397
  "description": "Profile capabilities (Pcap)",
1425
1398
  "default": null,