@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.
Files changed (39) hide show
  1. package/README.md +20 -4
  2. package/dist/customizationContracts.d.ts +2473 -0
  3. package/dist/customizationContracts.d.ts.map +1 -0
  4. package/dist/customizationContracts.js +845 -0
  5. package/dist/customizationContracts.js.map +1 -0
  6. package/dist/customizationExternalState.d.ts +42 -0
  7. package/dist/customizationExternalState.d.ts.map +1 -0
  8. package/dist/customizationExternalState.js +121 -0
  9. package/dist/customizationExternalState.js.map +1 -0
  10. package/dist/customizationHistoryStream.d.ts +26 -0
  11. package/dist/customizationHistoryStream.d.ts.map +1 -0
  12. package/dist/customizationHistoryStream.js +66 -0
  13. package/dist/customizationHistoryStream.js.map +1 -0
  14. package/dist/diagnosticInput.d.ts +33 -0
  15. package/dist/diagnosticInput.d.ts.map +1 -1
  16. package/dist/diagnosticInput.js +71 -1
  17. package/dist/diagnosticInput.js.map +1 -1
  18. package/dist/diagnosticPreparedReview.d.ts.map +1 -1
  19. package/dist/diagnosticPreparedReview.js +38 -0
  20. package/dist/diagnosticPreparedReview.js.map +1 -1
  21. package/dist/historyMapping.d.ts +898 -0
  22. package/dist/historyMapping.d.ts.map +1 -0
  23. package/dist/historyMapping.js +395 -0
  24. package/dist/historyMapping.js.map +1 -0
  25. package/dist/index.d.ts +4 -0
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +4 -0
  28. package/dist/index.js.map +1 -1
  29. package/dist/version.d.ts +1 -1
  30. package/dist/version.js +1 -1
  31. package/package.json +3 -3
  32. package/src/customizationContracts.ts +963 -0
  33. package/src/customizationExternalState.ts +208 -0
  34. package/src/customizationHistoryStream.ts +90 -0
  35. package/src/diagnosticInput.ts +101 -0
  36. package/src/diagnosticPreparedReview.ts +48 -0
  37. package/src/historyMapping.ts +514 -0
  38. package/src/index.ts +4 -0
  39. 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.7.1 @actuarial-ts/core@0.7.1
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.7.1/docs/migrations/0.7-compact-diagnostics.md)
97
- and [replay/resource-policy reference](https://github.com/yerromnitsuj/actng/blob/v0.7.1/docs/reference/diagnostic-replay-stream.md).
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
- See the [formula catalog](https://github.com/yerromnitsuj/actng/blob/v0.7.1/docs/reference/diagnostic-formulas.md) and [migration guide](https://github.com/yerromnitsuj/actng/blob/v0.7.1/docs/migrations/0.6-generalized-diagnostics.md).
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