@actuarial-ts/data 0.7.1 → 0.8.1
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 +20 -4
- package/dist/customizationContracts.d.ts +2473 -0
- package/dist/customizationContracts.d.ts.map +1 -0
- package/dist/customizationContracts.js +845 -0
- package/dist/customizationContracts.js.map +1 -0
- package/dist/customizationExternalState.d.ts +42 -0
- package/dist/customizationExternalState.d.ts.map +1 -0
- package/dist/customizationExternalState.js +121 -0
- package/dist/customizationExternalState.js.map +1 -0
- package/dist/customizationHistoryStream.d.ts +26 -0
- package/dist/customizationHistoryStream.d.ts.map +1 -0
- package/dist/customizationHistoryStream.js +66 -0
- package/dist/customizationHistoryStream.js.map +1 -0
- package/dist/diagnosticInput.d.ts +33 -0
- package/dist/diagnosticInput.d.ts.map +1 -1
- package/dist/diagnosticInput.js +71 -1
- package/dist/diagnosticInput.js.map +1 -1
- package/dist/diagnosticPreparedReview.d.ts.map +1 -1
- package/dist/diagnosticPreparedReview.js +38 -0
- package/dist/diagnosticPreparedReview.js.map +1 -1
- package/dist/historyMapping.d.ts +898 -0
- package/dist/historyMapping.d.ts.map +1 -0
- package/dist/historyMapping.js +395 -0
- package/dist/historyMapping.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/src/customizationContracts.ts +963 -0
- package/src/customizationExternalState.ts +208 -0
- package/src/customizationHistoryStream.ts +90 -0
- package/src/diagnosticInput.ts +101 -0
- package/src/diagnosticPreparedReview.ts +48 -0
- package/src/historyMapping.ts +514 -0
- package/src/index.ts +4 -0
- package/src/version.ts +1 -1
package/README.md
CHANGED
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
Typed ingestion, preparation, and data-review boundaries for the actuarial-ts SDK. It supports loss-run/exposure CSVs, annual claim-development adaptation, triangle assembly, and generalized diagnostic review designed to support ASOP No. 23 work.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npm install @actuarial-ts/data@0.
|
|
6
|
+
npm install @actuarial-ts/data@0.8.1 @actuarial-ts/core@0.8.1
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Node 20+, ESM. Responsibility for the review and resulting actuarial work remains with the actuary.
|
|
10
10
|
|
|
11
|
+
SDK 0.8 adds strict parsers, source mapping, externally staged revision
|
|
12
|
+
history, and complete customization resource-policy validation. See the
|
|
13
|
+
[0.8 adoption guide](https://github.com/yerromnitsuj/actng/blob/v0.8.1/docs/migrations/0.8-reusable-customization.md)
|
|
14
|
+
and [customization reference](https://github.com/yerromnitsuj/actng/blob/v0.8.1/docs/reference/reusable-customization.md).
|
|
15
|
+
|
|
11
16
|
## Existing ingestion and triangle review
|
|
12
17
|
|
|
13
18
|
`parseLossRunCsv`, `parseExposureCsv`, `adaptAnnualClaimDevelopment`, `triangleFromLongFormat`, `reviewClaimData`, and `reviewTriangles` return structured errors/findings rather than silently cleaning source records. Physical source-line numbers are retained where available.
|
|
@@ -93,12 +98,23 @@ JSON, spreads, and casts cannot recreate these owners. Use
|
|
|
93
98
|
`createCompactDiagnosticRunIdentity` in compliance for compact completed runs;
|
|
94
99
|
the eager provenance function is not interchangeable.
|
|
95
100
|
|
|
96
|
-
See the runnable [compact adoption guide](https://github.com/yerromnitsuj/actng/blob/v0.
|
|
97
|
-
and [replay/resource-policy reference](https://github.com/yerromnitsuj/actng/blob/v0.
|
|
101
|
+
See the runnable [compact adoption guide](https://github.com/yerromnitsuj/actng/blob/v0.8.1/docs/migrations/0.7-compact-diagnostics.md)
|
|
102
|
+
and [replay/resource-policy reference](https://github.com/yerromnitsuj/actng/blob/v0.8.1/docs/reference/diagnostic-replay-stream.md).
|
|
98
103
|
Compact representation preserves evidence; it is not a claim that an arbitrary
|
|
99
104
|
large dataset or host memory budget has passed acceptance.
|
|
100
105
|
|
|
101
|
-
|
|
106
|
+
## Compact diagnostic queries
|
|
107
|
+
|
|
108
|
+
`createDiagnosticQueryContext` owns one compact run input, and
|
|
109
|
+
`runDiagnosticQueryCompact` validates, prepares, reviews, calculates, and gates
|
|
110
|
+
each requested scope. Queries can replace declared filters, cutoffs, expected
|
|
111
|
+
cells, grouping, and evidence labels. Definition, source rows, review evidence,
|
|
112
|
+
and execution policy stay fixed. Eligible clean aggregate selections reuse
|
|
113
|
+
immutable preparation and exact review evidence; every other selection follows
|
|
114
|
+
the ordinary compact preparation path. The API does not promise a latency or
|
|
115
|
+
process-memory target.
|
|
116
|
+
|
|
117
|
+
See the [formula catalog](https://github.com/yerromnitsuj/actng/blob/v0.8.1/docs/reference/diagnostic-formulas.md) and [migration guide](https://github.com/yerromnitsuj/actng/blob/v0.8.1/docs/migrations/0.6-generalized-diagnostics.md).
|
|
102
118
|
|
|
103
119
|
## License
|
|
104
120
|
|