@actuarial-ts/interchange 0.5.0 → 0.6.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 (58) hide show
  1. package/README.md +36 -70
  2. package/dist/convert/diagnosticDefinition.d.ts +16 -0
  3. package/dist/convert/diagnosticDefinition.d.ts.map +1 -0
  4. package/dist/convert/diagnosticDefinition.js +82 -0
  5. package/dist/convert/diagnosticDefinition.js.map +1 -0
  6. package/dist/convert/result.d.ts.map +1 -1
  7. package/dist/convert/result.js +2 -2
  8. package/dist/convert/result.js.map +1 -1
  9. package/dist/envelope.d.ts +6 -6
  10. package/dist/envelope.d.ts.map +1 -1
  11. package/dist/envelope.js +13 -7
  12. package/dist/envelope.js.map +1 -1
  13. package/dist/index.d.ts +2 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +2 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/json.d.ts +5 -0
  18. package/dist/json.d.ts.map +1 -0
  19. package/dist/json.js +13 -0
  20. package/dist/json.js.map +1 -0
  21. package/dist/parse.d.ts +2 -1
  22. package/dist/parse.d.ts.map +1 -1
  23. package/dist/parse.js +8 -2
  24. package/dist/parse.js.map +1 -1
  25. package/dist/schemas/bundle.d.ts +2 -0
  26. package/dist/schemas/bundle.d.ts.map +1 -1
  27. package/dist/schemas/bundle.js +2 -0
  28. package/dist/schemas/bundle.js.map +1 -1
  29. package/dist/schemas/crosscheck.d.ts +6 -6
  30. package/dist/schemas/diagnosticDefinition.d.ts +11572 -0
  31. package/dist/schemas/diagnosticDefinition.d.ts.map +1 -0
  32. package/dist/schemas/diagnosticDefinition.js +133 -0
  33. package/dist/schemas/diagnosticDefinition.js.map +1 -0
  34. package/dist/schemas/manifest.d.ts.map +1 -1
  35. package/dist/schemas/manifest.js +7 -1
  36. package/dist/schemas/manifest.js.map +1 -1
  37. package/dist/schemas/record.d.ts +5 -0
  38. package/dist/schemas/record.d.ts.map +1 -0
  39. package/dist/schemas/record.js +9 -0
  40. package/dist/schemas/record.js.map +1 -0
  41. package/dist/schemas/result.d.ts +12 -12
  42. package/dist/schemas/selection.d.ts +6 -6
  43. package/dist/schemas/triangle.d.ts +89 -89
  44. package/dist/schemas/triangle.d.ts.map +1 -1
  45. package/dist/schemas/triangle.js +20 -5
  46. package/dist/schemas/triangle.js.map +1 -1
  47. package/package.json +4 -3
  48. package/src/convert/diagnosticDefinition.ts +150 -0
  49. package/src/convert/result.ts +2 -1
  50. package/src/envelope.ts +28 -9
  51. package/src/index.ts +2 -0
  52. package/src/json.ts +17 -0
  53. package/src/parse.ts +11 -3
  54. package/src/schemas/bundle.ts +3 -0
  55. package/src/schemas/diagnosticDefinition.ts +172 -0
  56. package/src/schemas/manifest.ts +7 -1
  57. package/src/schemas/record.ts +16 -0
  58. package/src/schemas/triangle.ts +23 -5
@@ -20,13 +20,13 @@ export declare const originLengthMonthsSchema: z.ZodUnion<[z.ZodLiteral<12>, z.Z
20
20
  export type OriginLengthMonths = z.infer<typeof originLengthMonthsSchema>;
21
21
  export declare const triangleOriginSchema: z.ZodObject<{
22
22
  label: z.ZodString;
23
- start: z.ZodString;
23
+ start: z.ZodEffects<z.ZodString, string, string>;
24
24
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
25
25
  label: z.ZodString;
26
- start: z.ZodString;
26
+ start: z.ZodEffects<z.ZodString, string, string>;
27
27
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
28
28
  label: z.ZodString;
29
- start: z.ZodString;
29
+ start: z.ZodEffects<z.ZodString, string, string>;
30
30
  }, z.ZodTypeAny, "passthrough">>;
31
31
  /** Bulk-lane reference (spec 3.3). */
32
32
  export declare const valuesRefSchema: z.ZodObject<{
@@ -48,13 +48,13 @@ export declare const triangleBodySchema: z.ZodEffects<z.ZodObject<{
48
48
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
49
49
  origins: z.ZodArray<z.ZodObject<{
50
50
  label: z.ZodString;
51
- start: z.ZodString;
51
+ start: z.ZodEffects<z.ZodString, string, string>;
52
52
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
53
53
  label: z.ZodString;
54
- start: z.ZodString;
54
+ start: z.ZodEffects<z.ZodString, string, string>;
55
55
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
56
56
  label: z.ZodString;
57
- start: z.ZodString;
57
+ start: z.ZodEffects<z.ZodString, string, string>;
58
58
  }, z.ZodTypeAny, "passthrough">>, "many">;
59
59
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
60
60
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -72,7 +72,7 @@ export declare const triangleBodySchema: z.ZodEffects<z.ZodObject<{
72
72
  path: z.ZodString;
73
73
  sha256: z.ZodString;
74
74
  }, z.ZodTypeAny, "passthrough">>>;
75
- valuationDate: z.ZodString;
75
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
76
76
  basis: z.ZodOptional<z.ZodObject<{
77
77
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
78
78
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -106,13 +106,13 @@ export declare const triangleBodySchema: z.ZodEffects<z.ZodObject<{
106
106
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
107
107
  origins: z.ZodArray<z.ZodObject<{
108
108
  label: z.ZodString;
109
- start: z.ZodString;
109
+ start: z.ZodEffects<z.ZodString, string, string>;
110
110
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
111
111
  label: z.ZodString;
112
- start: z.ZodString;
112
+ start: z.ZodEffects<z.ZodString, string, string>;
113
113
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
114
114
  label: z.ZodString;
115
- start: z.ZodString;
115
+ start: z.ZodEffects<z.ZodString, string, string>;
116
116
  }, z.ZodTypeAny, "passthrough">>, "many">;
117
117
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
118
118
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -130,7 +130,7 @@ export declare const triangleBodySchema: z.ZodEffects<z.ZodObject<{
130
130
  path: z.ZodString;
131
131
  sha256: z.ZodString;
132
132
  }, z.ZodTypeAny, "passthrough">>>;
133
- valuationDate: z.ZodString;
133
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
134
134
  basis: z.ZodOptional<z.ZodObject<{
135
135
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
136
136
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -164,13 +164,13 @@ export declare const triangleBodySchema: z.ZodEffects<z.ZodObject<{
164
164
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
165
165
  origins: z.ZodArray<z.ZodObject<{
166
166
  label: z.ZodString;
167
- start: z.ZodString;
167
+ start: z.ZodEffects<z.ZodString, string, string>;
168
168
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
169
169
  label: z.ZodString;
170
- start: z.ZodString;
170
+ start: z.ZodEffects<z.ZodString, string, string>;
171
171
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
172
172
  label: z.ZodString;
173
- start: z.ZodString;
173
+ start: z.ZodEffects<z.ZodString, string, string>;
174
174
  }, z.ZodTypeAny, "passthrough">>, "many">;
175
175
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
176
176
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -188,7 +188,7 @@ export declare const triangleBodySchema: z.ZodEffects<z.ZodObject<{
188
188
  path: z.ZodString;
189
189
  sha256: z.ZodString;
190
190
  }, z.ZodTypeAny, "passthrough">>>;
191
- valuationDate: z.ZodString;
191
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
192
192
  basis: z.ZodOptional<z.ZodObject<{
193
193
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
194
194
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -222,13 +222,13 @@ export declare const triangleBodySchema: z.ZodEffects<z.ZodObject<{
222
222
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
223
223
  origins: z.ZodArray<z.ZodObject<{
224
224
  label: z.ZodString;
225
- start: z.ZodString;
225
+ start: z.ZodEffects<z.ZodString, string, string>;
226
226
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
227
227
  label: z.ZodString;
228
- start: z.ZodString;
228
+ start: z.ZodEffects<z.ZodString, string, string>;
229
229
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
230
230
  label: z.ZodString;
231
- start: z.ZodString;
231
+ start: z.ZodEffects<z.ZodString, string, string>;
232
232
  }, z.ZodTypeAny, "passthrough">>, "many">;
233
233
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
234
234
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -246,7 +246,7 @@ export declare const triangleBodySchema: z.ZodEffects<z.ZodObject<{
246
246
  path: z.ZodString;
247
247
  sha256: z.ZodString;
248
248
  }, z.ZodTypeAny, "passthrough">>>;
249
- valuationDate: z.ZodString;
249
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
250
250
  basis: z.ZodOptional<z.ZodObject<{
251
251
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
252
252
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -280,13 +280,13 @@ export declare const triangleBodySchema: z.ZodEffects<z.ZodObject<{
280
280
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
281
281
  origins: z.ZodArray<z.ZodObject<{
282
282
  label: z.ZodString;
283
- start: z.ZodString;
283
+ start: z.ZodEffects<z.ZodString, string, string>;
284
284
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
285
285
  label: z.ZodString;
286
- start: z.ZodString;
286
+ start: z.ZodEffects<z.ZodString, string, string>;
287
287
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
288
288
  label: z.ZodString;
289
- start: z.ZodString;
289
+ start: z.ZodEffects<z.ZodString, string, string>;
290
290
  }, z.ZodTypeAny, "passthrough">>, "many">;
291
291
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
292
292
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -304,7 +304,7 @@ export declare const triangleBodySchema: z.ZodEffects<z.ZodObject<{
304
304
  path: z.ZodString;
305
305
  sha256: z.ZodString;
306
306
  }, z.ZodTypeAny, "passthrough">>>;
307
- valuationDate: z.ZodString;
307
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
308
308
  basis: z.ZodOptional<z.ZodObject<{
309
309
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
310
310
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -341,13 +341,13 @@ export declare const triangleDocSchema: z.ZodObject<{
341
341
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
342
342
  origins: z.ZodArray<z.ZodObject<{
343
343
  label: z.ZodString;
344
- start: z.ZodString;
344
+ start: z.ZodEffects<z.ZodString, string, string>;
345
345
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
346
346
  label: z.ZodString;
347
- start: z.ZodString;
347
+ start: z.ZodEffects<z.ZodString, string, string>;
348
348
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
349
349
  label: z.ZodString;
350
- start: z.ZodString;
350
+ start: z.ZodEffects<z.ZodString, string, string>;
351
351
  }, z.ZodTypeAny, "passthrough">>, "many">;
352
352
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
353
353
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -365,7 +365,7 @@ export declare const triangleDocSchema: z.ZodObject<{
365
365
  path: z.ZodString;
366
366
  sha256: z.ZodString;
367
367
  }, z.ZodTypeAny, "passthrough">>>;
368
- valuationDate: z.ZodString;
368
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
369
369
  basis: z.ZodOptional<z.ZodObject<{
370
370
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
371
371
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -399,13 +399,13 @@ export declare const triangleDocSchema: z.ZodObject<{
399
399
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
400
400
  origins: z.ZodArray<z.ZodObject<{
401
401
  label: z.ZodString;
402
- start: z.ZodString;
402
+ start: z.ZodEffects<z.ZodString, string, string>;
403
403
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
404
404
  label: z.ZodString;
405
- start: z.ZodString;
405
+ start: z.ZodEffects<z.ZodString, string, string>;
406
406
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
407
407
  label: z.ZodString;
408
- start: z.ZodString;
408
+ start: z.ZodEffects<z.ZodString, string, string>;
409
409
  }, z.ZodTypeAny, "passthrough">>, "many">;
410
410
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
411
411
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -423,7 +423,7 @@ export declare const triangleDocSchema: z.ZodObject<{
423
423
  path: z.ZodString;
424
424
  sha256: z.ZodString;
425
425
  }, z.ZodTypeAny, "passthrough">>>;
426
- valuationDate: z.ZodString;
426
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
427
427
  basis: z.ZodOptional<z.ZodObject<{
428
428
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
429
429
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -457,13 +457,13 @@ export declare const triangleDocSchema: z.ZodObject<{
457
457
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
458
458
  origins: z.ZodArray<z.ZodObject<{
459
459
  label: z.ZodString;
460
- start: z.ZodString;
460
+ start: z.ZodEffects<z.ZodString, string, string>;
461
461
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
462
462
  label: z.ZodString;
463
- start: z.ZodString;
463
+ start: z.ZodEffects<z.ZodString, string, string>;
464
464
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
465
465
  label: z.ZodString;
466
- start: z.ZodString;
466
+ start: z.ZodEffects<z.ZodString, string, string>;
467
467
  }, z.ZodTypeAny, "passthrough">>, "many">;
468
468
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
469
469
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -481,7 +481,7 @@ export declare const triangleDocSchema: z.ZodObject<{
481
481
  path: z.ZodString;
482
482
  sha256: z.ZodString;
483
483
  }, z.ZodTypeAny, "passthrough">>>;
484
- valuationDate: z.ZodString;
484
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
485
485
  basis: z.ZodOptional<z.ZodObject<{
486
486
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
487
487
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -515,13 +515,13 @@ export declare const triangleDocSchema: z.ZodObject<{
515
515
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
516
516
  origins: z.ZodArray<z.ZodObject<{
517
517
  label: z.ZodString;
518
- start: z.ZodString;
518
+ start: z.ZodEffects<z.ZodString, string, string>;
519
519
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
520
520
  label: z.ZodString;
521
- start: z.ZodString;
521
+ start: z.ZodEffects<z.ZodString, string, string>;
522
522
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
523
523
  label: z.ZodString;
524
- start: z.ZodString;
524
+ start: z.ZodEffects<z.ZodString, string, string>;
525
525
  }, z.ZodTypeAny, "passthrough">>, "many">;
526
526
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
527
527
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -539,7 +539,7 @@ export declare const triangleDocSchema: z.ZodObject<{
539
539
  path: z.ZodString;
540
540
  sha256: z.ZodString;
541
541
  }, z.ZodTypeAny, "passthrough">>>;
542
- valuationDate: z.ZodString;
542
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
543
543
  basis: z.ZodOptional<z.ZodObject<{
544
544
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
545
545
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -573,13 +573,13 @@ export declare const triangleDocSchema: z.ZodObject<{
573
573
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
574
574
  origins: z.ZodArray<z.ZodObject<{
575
575
  label: z.ZodString;
576
- start: z.ZodString;
576
+ start: z.ZodEffects<z.ZodString, string, string>;
577
577
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
578
578
  label: z.ZodString;
579
- start: z.ZodString;
579
+ start: z.ZodEffects<z.ZodString, string, string>;
580
580
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
581
581
  label: z.ZodString;
582
- start: z.ZodString;
582
+ start: z.ZodEffects<z.ZodString, string, string>;
583
583
  }, z.ZodTypeAny, "passthrough">>, "many">;
584
584
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
585
585
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -597,7 +597,7 @@ export declare const triangleDocSchema: z.ZodObject<{
597
597
  path: z.ZodString;
598
598
  sha256: z.ZodString;
599
599
  }, z.ZodTypeAny, "passthrough">>>;
600
- valuationDate: z.ZodString;
600
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
601
601
  basis: z.ZodOptional<z.ZodObject<{
602
602
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
603
603
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -638,8 +638,8 @@ export declare const triangleDocSchema: z.ZodObject<{
638
638
  name: z.ZodString;
639
639
  version: z.ZodString;
640
640
  }, z.ZodTypeAny, "passthrough">>;
641
- createdAt: z.ZodString;
642
- extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
641
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
642
+ extensions: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
643
643
  integrity: z.ZodString;
644
644
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
645
645
  triangle: z.ZodEffects<z.ZodObject<{
@@ -648,13 +648,13 @@ export declare const triangleDocSchema: z.ZodObject<{
648
648
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
649
649
  origins: z.ZodArray<z.ZodObject<{
650
650
  label: z.ZodString;
651
- start: z.ZodString;
651
+ start: z.ZodEffects<z.ZodString, string, string>;
652
652
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
653
653
  label: z.ZodString;
654
- start: z.ZodString;
654
+ start: z.ZodEffects<z.ZodString, string, string>;
655
655
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
656
656
  label: z.ZodString;
657
- start: z.ZodString;
657
+ start: z.ZodEffects<z.ZodString, string, string>;
658
658
  }, z.ZodTypeAny, "passthrough">>, "many">;
659
659
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
660
660
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -672,7 +672,7 @@ export declare const triangleDocSchema: z.ZodObject<{
672
672
  path: z.ZodString;
673
673
  sha256: z.ZodString;
674
674
  }, z.ZodTypeAny, "passthrough">>>;
675
- valuationDate: z.ZodString;
675
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
676
676
  basis: z.ZodOptional<z.ZodObject<{
677
677
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
678
678
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -706,13 +706,13 @@ export declare const triangleDocSchema: z.ZodObject<{
706
706
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
707
707
  origins: z.ZodArray<z.ZodObject<{
708
708
  label: z.ZodString;
709
- start: z.ZodString;
709
+ start: z.ZodEffects<z.ZodString, string, string>;
710
710
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
711
711
  label: z.ZodString;
712
- start: z.ZodString;
712
+ start: z.ZodEffects<z.ZodString, string, string>;
713
713
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
714
714
  label: z.ZodString;
715
- start: z.ZodString;
715
+ start: z.ZodEffects<z.ZodString, string, string>;
716
716
  }, z.ZodTypeAny, "passthrough">>, "many">;
717
717
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
718
718
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -730,7 +730,7 @@ export declare const triangleDocSchema: z.ZodObject<{
730
730
  path: z.ZodString;
731
731
  sha256: z.ZodString;
732
732
  }, z.ZodTypeAny, "passthrough">>>;
733
- valuationDate: z.ZodString;
733
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
734
734
  basis: z.ZodOptional<z.ZodObject<{
735
735
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
736
736
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -764,13 +764,13 @@ export declare const triangleDocSchema: z.ZodObject<{
764
764
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
765
765
  origins: z.ZodArray<z.ZodObject<{
766
766
  label: z.ZodString;
767
- start: z.ZodString;
767
+ start: z.ZodEffects<z.ZodString, string, string>;
768
768
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
769
769
  label: z.ZodString;
770
- start: z.ZodString;
770
+ start: z.ZodEffects<z.ZodString, string, string>;
771
771
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
772
772
  label: z.ZodString;
773
- start: z.ZodString;
773
+ start: z.ZodEffects<z.ZodString, string, string>;
774
774
  }, z.ZodTypeAny, "passthrough">>, "many">;
775
775
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
776
776
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -788,7 +788,7 @@ export declare const triangleDocSchema: z.ZodObject<{
788
788
  path: z.ZodString;
789
789
  sha256: z.ZodString;
790
790
  }, z.ZodTypeAny, "passthrough">>>;
791
- valuationDate: z.ZodString;
791
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
792
792
  basis: z.ZodOptional<z.ZodObject<{
793
793
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
794
794
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -822,13 +822,13 @@ export declare const triangleDocSchema: z.ZodObject<{
822
822
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
823
823
  origins: z.ZodArray<z.ZodObject<{
824
824
  label: z.ZodString;
825
- start: z.ZodString;
825
+ start: z.ZodEffects<z.ZodString, string, string>;
826
826
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
827
827
  label: z.ZodString;
828
- start: z.ZodString;
828
+ start: z.ZodEffects<z.ZodString, string, string>;
829
829
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
830
830
  label: z.ZodString;
831
- start: z.ZodString;
831
+ start: z.ZodEffects<z.ZodString, string, string>;
832
832
  }, z.ZodTypeAny, "passthrough">>, "many">;
833
833
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
834
834
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -846,7 +846,7 @@ export declare const triangleDocSchema: z.ZodObject<{
846
846
  path: z.ZodString;
847
847
  sha256: z.ZodString;
848
848
  }, z.ZodTypeAny, "passthrough">>>;
849
- valuationDate: z.ZodString;
849
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
850
850
  basis: z.ZodOptional<z.ZodObject<{
851
851
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
852
852
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -880,13 +880,13 @@ export declare const triangleDocSchema: z.ZodObject<{
880
880
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
881
881
  origins: z.ZodArray<z.ZodObject<{
882
882
  label: z.ZodString;
883
- start: z.ZodString;
883
+ start: z.ZodEffects<z.ZodString, string, string>;
884
884
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
885
885
  label: z.ZodString;
886
- start: z.ZodString;
886
+ start: z.ZodEffects<z.ZodString, string, string>;
887
887
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
888
888
  label: z.ZodString;
889
- start: z.ZodString;
889
+ start: z.ZodEffects<z.ZodString, string, string>;
890
890
  }, z.ZodTypeAny, "passthrough">>, "many">;
891
891
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
892
892
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -904,7 +904,7 @@ export declare const triangleDocSchema: z.ZodObject<{
904
904
  path: z.ZodString;
905
905
  sha256: z.ZodString;
906
906
  }, z.ZodTypeAny, "passthrough">>>;
907
- valuationDate: z.ZodString;
907
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
908
908
  basis: z.ZodOptional<z.ZodObject<{
909
909
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
910
910
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -945,8 +945,8 @@ export declare const triangleDocSchema: z.ZodObject<{
945
945
  name: z.ZodString;
946
946
  version: z.ZodString;
947
947
  }, z.ZodTypeAny, "passthrough">>;
948
- createdAt: z.ZodString;
949
- extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
948
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
949
+ extensions: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
950
950
  integrity: z.ZodString;
951
951
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
952
952
  triangle: z.ZodEffects<z.ZodObject<{
@@ -955,13 +955,13 @@ export declare const triangleDocSchema: z.ZodObject<{
955
955
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
956
956
  origins: z.ZodArray<z.ZodObject<{
957
957
  label: z.ZodString;
958
- start: z.ZodString;
958
+ start: z.ZodEffects<z.ZodString, string, string>;
959
959
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
960
960
  label: z.ZodString;
961
- start: z.ZodString;
961
+ start: z.ZodEffects<z.ZodString, string, string>;
962
962
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
963
963
  label: z.ZodString;
964
- start: z.ZodString;
964
+ start: z.ZodEffects<z.ZodString, string, string>;
965
965
  }, z.ZodTypeAny, "passthrough">>, "many">;
966
966
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
967
967
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -979,7 +979,7 @@ export declare const triangleDocSchema: z.ZodObject<{
979
979
  path: z.ZodString;
980
980
  sha256: z.ZodString;
981
981
  }, z.ZodTypeAny, "passthrough">>>;
982
- valuationDate: z.ZodString;
982
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
983
983
  basis: z.ZodOptional<z.ZodObject<{
984
984
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
985
985
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -1013,13 +1013,13 @@ export declare const triangleDocSchema: z.ZodObject<{
1013
1013
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
1014
1014
  origins: z.ZodArray<z.ZodObject<{
1015
1015
  label: z.ZodString;
1016
- start: z.ZodString;
1016
+ start: z.ZodEffects<z.ZodString, string, string>;
1017
1017
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1018
1018
  label: z.ZodString;
1019
- start: z.ZodString;
1019
+ start: z.ZodEffects<z.ZodString, string, string>;
1020
1020
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1021
1021
  label: z.ZodString;
1022
- start: z.ZodString;
1022
+ start: z.ZodEffects<z.ZodString, string, string>;
1023
1023
  }, z.ZodTypeAny, "passthrough">>, "many">;
1024
1024
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
1025
1025
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -1037,7 +1037,7 @@ export declare const triangleDocSchema: z.ZodObject<{
1037
1037
  path: z.ZodString;
1038
1038
  sha256: z.ZodString;
1039
1039
  }, z.ZodTypeAny, "passthrough">>>;
1040
- valuationDate: z.ZodString;
1040
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
1041
1041
  basis: z.ZodOptional<z.ZodObject<{
1042
1042
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
1043
1043
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -1071,13 +1071,13 @@ export declare const triangleDocSchema: z.ZodObject<{
1071
1071
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
1072
1072
  origins: z.ZodArray<z.ZodObject<{
1073
1073
  label: z.ZodString;
1074
- start: z.ZodString;
1074
+ start: z.ZodEffects<z.ZodString, string, string>;
1075
1075
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1076
1076
  label: z.ZodString;
1077
- start: z.ZodString;
1077
+ start: z.ZodEffects<z.ZodString, string, string>;
1078
1078
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1079
1079
  label: z.ZodString;
1080
- start: z.ZodString;
1080
+ start: z.ZodEffects<z.ZodString, string, string>;
1081
1081
  }, z.ZodTypeAny, "passthrough">>, "many">;
1082
1082
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
1083
1083
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -1095,7 +1095,7 @@ export declare const triangleDocSchema: z.ZodObject<{
1095
1095
  path: z.ZodString;
1096
1096
  sha256: z.ZodString;
1097
1097
  }, z.ZodTypeAny, "passthrough">>>;
1098
- valuationDate: z.ZodString;
1098
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
1099
1099
  basis: z.ZodOptional<z.ZodObject<{
1100
1100
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
1101
1101
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -1129,13 +1129,13 @@ export declare const triangleDocSchema: z.ZodObject<{
1129
1129
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
1130
1130
  origins: z.ZodArray<z.ZodObject<{
1131
1131
  label: z.ZodString;
1132
- start: z.ZodString;
1132
+ start: z.ZodEffects<z.ZodString, string, string>;
1133
1133
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1134
1134
  label: z.ZodString;
1135
- start: z.ZodString;
1135
+ start: z.ZodEffects<z.ZodString, string, string>;
1136
1136
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1137
1137
  label: z.ZodString;
1138
- start: z.ZodString;
1138
+ start: z.ZodEffects<z.ZodString, string, string>;
1139
1139
  }, z.ZodTypeAny, "passthrough">>, "many">;
1140
1140
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
1141
1141
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -1153,7 +1153,7 @@ export declare const triangleDocSchema: z.ZodObject<{
1153
1153
  path: z.ZodString;
1154
1154
  sha256: z.ZodString;
1155
1155
  }, z.ZodTypeAny, "passthrough">>>;
1156
- valuationDate: z.ZodString;
1156
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
1157
1157
  basis: z.ZodOptional<z.ZodObject<{
1158
1158
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
1159
1159
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -1187,13 +1187,13 @@ export declare const triangleDocSchema: z.ZodObject<{
1187
1187
  originLengthMonths: z.ZodUnion<[z.ZodLiteral<12>, z.ZodLiteral<6>, z.ZodLiteral<3>, z.ZodLiteral<1>]>;
1188
1188
  origins: z.ZodArray<z.ZodObject<{
1189
1189
  label: z.ZodString;
1190
- start: z.ZodString;
1190
+ start: z.ZodEffects<z.ZodString, string, string>;
1191
1191
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1192
1192
  label: z.ZodString;
1193
- start: z.ZodString;
1193
+ start: z.ZodEffects<z.ZodString, string, string>;
1194
1194
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1195
1195
  label: z.ZodString;
1196
- start: z.ZodString;
1196
+ start: z.ZodEffects<z.ZodString, string, string>;
1197
1197
  }, z.ZodTypeAny, "passthrough">>, "many">;
1198
1198
  agesMonths: z.ZodArray<z.ZodNumber, "many">;
1199
1199
  /** values[originIndex][ageIndex]; null = not yet observable / missing. */
@@ -1211,7 +1211,7 @@ export declare const triangleDocSchema: z.ZodObject<{
1211
1211
  path: z.ZodString;
1212
1212
  sha256: z.ZodString;
1213
1213
  }, z.ZodTypeAny, "passthrough">>>;
1214
- valuationDate: z.ZodString;
1214
+ valuationDate: z.ZodEffects<z.ZodString, string, string>;
1215
1215
  basis: z.ZodOptional<z.ZodObject<{
1216
1216
  grossNet: z.ZodOptional<z.ZodEnum<["gross", "net"]>>;
1217
1217
  laeTreatment: z.ZodOptional<z.ZodString>;
@@ -1252,8 +1252,8 @@ export declare const triangleDocSchema: z.ZodObject<{
1252
1252
  name: z.ZodString;
1253
1253
  version: z.ZodString;
1254
1254
  }, z.ZodTypeAny, "passthrough">>;
1255
- createdAt: z.ZodString;
1256
- extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1255
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
1256
+ extensions: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
1257
1257
  integrity: z.ZodString;
1258
1258
  }, z.ZodTypeAny, "passthrough">>;
1259
1259
  export type TriangleDoc = z.infer<typeof triangleDocSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"triangle.d.ts","sourceRoot":"","sources":["../../src/schemas/triangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,aAAa,iHAQhB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,aAAa,+JAGxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,wBAAwB,mFAKnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAI1E,eAAO,MAAM,oBAAoB;;;;;;;;;gCAEjB,CAAC;AAEjB,sCAAsC;AACtC,eAAO,MAAM,eAAe;;;;;;;;;;;;gCAEZ,CAAC;AAEjB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;IAO3B,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA1E,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;QAA1E,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAA1E,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAA1E,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAA1E,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAA1E,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAA1E,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAA1E,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCA8E9D,CAAC;AAEjB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { isRealIsoDate } from "@actuarial-ts/core";
1
2
  import { z } from "zod";
2
3
  import { envelopeShape } from "../envelope.js";
3
4
  /**
@@ -24,7 +25,9 @@ export const CORE_MEASURES = [
24
25
  ];
25
26
  export const measureSchema = z.union([
26
27
  z.enum([...CORE_MEASURES, "earnedPremium"]),
27
- z.string().regex(/^custom:.+$/, 'custom measures must be namespaced as "custom:<label>"'),
28
+ z
29
+ .string()
30
+ .regex(/^custom:.+$/, 'custom measures must be namespaced as "custom:<label>"'),
28
31
  ]);
29
32
  export const originLengthMonthsSchema = z.union([
30
33
  z.literal(12),
@@ -32,13 +35,19 @@ export const originLengthMonthsSchema = z.union([
32
35
  z.literal(3),
33
36
  z.literal(1),
34
37
  ]);
35
- const isoDateSchema = z.string().regex(/^\d{4}-\d{2}-\d{2}$/, "expected an ISO yyyy-mm-dd date");
38
+ const isoDateSchema = z
39
+ .string()
40
+ .refine(isRealIsoDate, "expected a real ISO yyyy-mm-dd date");
36
41
  export const triangleOriginSchema = z
37
42
  .object({ label: z.string().min(1), start: isoDateSchema })
38
43
  .passthrough();
39
44
  /** Bulk-lane reference (spec 3.3). */
40
45
  export const valuesRefSchema = z
41
- .object({ format: z.literal("arrow"), path: z.string().min(1), sha256: z.string().min(1) })
46
+ .object({
47
+ format: z.literal("arrow"),
48
+ path: z.string().min(1),
49
+ sha256: z.string().min(1),
50
+ })
42
51
  .passthrough();
43
52
  export const triangleBodySchema = z
44
53
  .object({
@@ -59,10 +68,16 @@ export const triangleBodySchema = z
59
68
  .passthrough()
60
69
  .optional(),
61
70
  units: z
62
- .object({ currency: z.string().optional(), scale: z.number().positive().optional() })
71
+ .object({
72
+ currency: z.string().optional(),
73
+ scale: z.number().positive().optional(),
74
+ })
75
+ .passthrough()
76
+ .optional(),
77
+ segment: z
78
+ .object({ labels: z.record(z.string()) })
63
79
  .passthrough()
64
80
  .optional(),
65
- segment: z.object({ labels: z.record(z.string()) }).passthrough().optional(),
66
81
  })
67
82
  .passthrough()
68
83
  .superRefine((body, ctx) => {