@actuarial-ts/interchange 0.4.0 → 0.6.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 +36 -70
- package/dist/convert/diagnosticDefinition.d.ts +15 -0
- package/dist/convert/diagnosticDefinition.d.ts.map +1 -0
- package/dist/convert/diagnosticDefinition.js +47 -0
- package/dist/convert/diagnosticDefinition.js.map +1 -0
- package/dist/convert/result.d.ts.map +1 -1
- package/dist/convert/result.js +2 -2
- package/dist/convert/result.js.map +1 -1
- package/dist/envelope.d.ts +3 -3
- package/dist/envelope.d.ts.map +1 -1
- package/dist/envelope.js +4 -2
- package/dist/envelope.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/parse.d.ts +2 -1
- package/dist/parse.d.ts.map +1 -1
- package/dist/parse.js +1 -0
- package/dist/parse.js.map +1 -1
- package/dist/schemas/bundle.d.ts +2 -0
- package/dist/schemas/bundle.d.ts.map +1 -1
- package/dist/schemas/bundle.js +2 -0
- package/dist/schemas/bundle.js.map +1 -1
- package/dist/schemas/diagnosticDefinition.d.ts +11500 -0
- package/dist/schemas/diagnosticDefinition.d.ts.map +1 -0
- package/dist/schemas/diagnosticDefinition.js +132 -0
- package/dist/schemas/diagnosticDefinition.js.map +1 -0
- package/dist/schemas/manifest.d.ts.map +1 -1
- package/dist/schemas/manifest.js +7 -1
- package/dist/schemas/manifest.js.map +1 -1
- package/package.json +3 -3
- package/src/convert/diagnosticDefinition.ts +75 -0
- package/src/convert/result.ts +2 -1
- package/src/envelope.ts +4 -2
- package/src/index.ts +2 -0
- package/src/parse.ts +4 -1
- package/src/schemas/bundle.ts +3 -0
- package/src/schemas/diagnosticDefinition.ts +171 -0
- package/src/schemas/manifest.ts +7 -1
package/src/schemas/manifest.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { methodResultDocSchema, stochasticResultDocSchema } from "./result.js";
|
|
|
6
6
|
import { studyDocSchema } from "./study.js";
|
|
7
7
|
import { bundleDocSchema } from "./bundle.js";
|
|
8
8
|
import { crosscheckReportDocSchema } from "./crosscheck.js";
|
|
9
|
+
import { diagnosticDefinitionDocSchema } from "./diagnosticDefinition.js";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Schema publication manifest (spec 3.4). The zod schemas here are the
|
|
@@ -46,11 +47,16 @@ export const INTERCHANGE_SCHEMA_MANIFEST: readonly SchemaManifestEntry[] = [
|
|
|
46
47
|
fileName: "crosscheck-report.schema.json",
|
|
47
48
|
schema: crosscheckReportDocSchema,
|
|
48
49
|
},
|
|
50
|
+
{
|
|
51
|
+
kind: "diagnostic-definition",
|
|
52
|
+
fileName: "diagnostic-definition.schema.json",
|
|
53
|
+
schema: diagnosticDefinitionDocSchema,
|
|
54
|
+
},
|
|
49
55
|
];
|
|
50
56
|
|
|
51
57
|
/** Options both the emit script and the drift test must pass to the converter. */
|
|
52
58
|
export function emitOptionsFor(kind: DocumentKind): { name: string; [key: string]: unknown } {
|
|
53
|
-
return { name: kind, target: "jsonSchema7", $refStrategy: "
|
|
59
|
+
return { name: kind, target: "jsonSchema7", $refStrategy: "root" };
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
export interface EmittedSchema {
|