@actuarial-ts/data 0.7.1 → 0.8.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.
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
@@ -0,0 +1,898 @@
1
+ import { type HistoricalObservationRecord, type HistoricalScalar } from "@actuarial-ts/core";
2
+ import { z } from "zod";
3
+ export interface HistoricalColumnSelector {
4
+ readonly columns: readonly string[];
5
+ }
6
+ export interface HistoricalDateSelector extends HistoricalColumnSelector {
7
+ readonly format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
8
+ }
9
+ export interface HistoricalNumberSelector extends HistoricalColumnSelector {
10
+ readonly decimalSeparator: "." | ",";
11
+ readonly thousandsSeparator: "," | "." | " " | null;
12
+ readonly negative: "leading-minus" | "parentheses-or-leading-minus";
13
+ readonly blank: "null" | "error";
14
+ readonly scale: number;
15
+ }
16
+ export interface HistoricalDimensionSelector extends HistoricalColumnSelector {
17
+ readonly type: "string" | "number" | "boolean" | "date";
18
+ readonly dateFormat?: HistoricalDateSelector["format"];
19
+ readonly numberFormat?: Omit<HistoricalNumberSelector, "columns">;
20
+ readonly multipleDelimiter?: string;
21
+ }
22
+ export interface HistoricalSourceMapping {
23
+ readonly id: string;
24
+ readonly version: string;
25
+ readonly sourceNamespace: string;
26
+ readonly artifactId: string;
27
+ readonly grain: HistoricalObservationRecord["grain"];
28
+ readonly completeness: HistoricalObservationRecord["completeness"];
29
+ readonly fields: {
30
+ readonly recordId: HistoricalColumnSelector;
31
+ readonly claimId: HistoricalColumnSelector;
32
+ readonly componentId?: HistoricalColumnSelector;
33
+ readonly accidentDate?: HistoricalDateSelector;
34
+ readonly reportDate?: HistoricalDateSelector;
35
+ readonly evaluationDate?: HistoricalDateSelector;
36
+ readonly effectiveDate?: HistoricalDateSelector;
37
+ readonly status?: HistoricalColumnSelector;
38
+ };
39
+ readonly measures: Readonly<Record<string, HistoricalNumberSelector>>;
40
+ readonly dimensions?: Readonly<Record<string, HistoricalDimensionSelector>>;
41
+ readonly relationships?: {
42
+ readonly claimantIds?: HistoricalColumnSelector & {
43
+ readonly delimiter: string;
44
+ };
45
+ readonly occurrenceId?: HistoricalColumnSelector;
46
+ readonly policyIds?: HistoricalColumnSelector & {
47
+ readonly delimiter: string;
48
+ };
49
+ readonly coverageIds?: HistoricalColumnSelector & {
50
+ readonly delimiter: string;
51
+ };
52
+ };
53
+ readonly revision: {
54
+ readonly id: HistoricalColumnSelector;
55
+ readonly action?: HistoricalColumnSelector;
56
+ readonly sequence?: HistoricalNumberSelector;
57
+ readonly correctedAt?: HistoricalColumnSelector;
58
+ };
59
+ readonly preserveUnmappedAttributes: boolean;
60
+ }
61
+ export interface HistoricalSourceRow {
62
+ readonly rowNumber: number;
63
+ readonly values: Readonly<Record<string, HistoricalScalar>>;
64
+ }
65
+ export interface HistoricalMappedRowRejection {
66
+ readonly rowNumber: number;
67
+ readonly source: {
68
+ readonly artifactId: string;
69
+ readonly sourceRow: number;
70
+ };
71
+ readonly issues: readonly {
72
+ readonly path: string;
73
+ readonly message: string;
74
+ }[];
75
+ }
76
+ export interface HistoricalMappingResult {
77
+ readonly mappingId: string;
78
+ readonly mappingVersion: string;
79
+ readonly sourceNamespace: string;
80
+ readonly artifactId: string;
81
+ readonly records: readonly HistoricalObservationRecord[];
82
+ readonly rejected: readonly HistoricalMappedRowRejection[];
83
+ readonly attributeCatalog: readonly {
84
+ readonly id: string;
85
+ readonly sourceColumn: string;
86
+ readonly observedTypes: readonly ("string" | "number" | "boolean" | "null")[];
87
+ }[];
88
+ readonly reconciliation: {
89
+ readonly inputRows: number;
90
+ readonly acceptedRows: number;
91
+ readonly rejectedRows: number;
92
+ };
93
+ }
94
+ export declare const historicalSourceMappingSchema: z.ZodEffects<z.ZodObject<{
95
+ id: z.ZodEffects<z.ZodString, string, string>;
96
+ version: z.ZodEffects<z.ZodString, string, string>;
97
+ sourceNamespace: z.ZodEffects<z.ZodString, string, string>;
98
+ artifactId: z.ZodEffects<z.ZodString, string, string>;
99
+ grain: z.ZodEnum<["claim-snapshot", "claim-component-snapshot", "transaction"]>;
100
+ completeness: z.ZodEnum<["complete-snapshot", "partial-snapshot", "change-only"]>;
101
+ fields: z.ZodObject<{
102
+ recordId: z.ZodObject<{
103
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
104
+ }, "strict", z.ZodTypeAny, {
105
+ columns: string[];
106
+ }, {
107
+ columns: string[];
108
+ }>;
109
+ claimId: z.ZodObject<{
110
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
111
+ }, "strict", z.ZodTypeAny, {
112
+ columns: string[];
113
+ }, {
114
+ columns: string[];
115
+ }>;
116
+ componentId: z.ZodOptional<z.ZodObject<{
117
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
118
+ }, "strict", z.ZodTypeAny, {
119
+ columns: string[];
120
+ }, {
121
+ columns: string[];
122
+ }>>;
123
+ accidentDate: z.ZodOptional<z.ZodObject<{
124
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
125
+ } & {
126
+ format: z.ZodEnum<["iso-yyyy-mm-dd", "mdy-slash", "dmy-slash"]>;
127
+ }, "strict", z.ZodTypeAny, {
128
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
129
+ columns: string[];
130
+ }, {
131
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
132
+ columns: string[];
133
+ }>>;
134
+ reportDate: z.ZodOptional<z.ZodObject<{
135
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
136
+ } & {
137
+ format: z.ZodEnum<["iso-yyyy-mm-dd", "mdy-slash", "dmy-slash"]>;
138
+ }, "strict", z.ZodTypeAny, {
139
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
140
+ columns: string[];
141
+ }, {
142
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
143
+ columns: string[];
144
+ }>>;
145
+ evaluationDate: z.ZodOptional<z.ZodObject<{
146
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
147
+ } & {
148
+ format: z.ZodEnum<["iso-yyyy-mm-dd", "mdy-slash", "dmy-slash"]>;
149
+ }, "strict", z.ZodTypeAny, {
150
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
151
+ columns: string[];
152
+ }, {
153
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
154
+ columns: string[];
155
+ }>>;
156
+ effectiveDate: z.ZodOptional<z.ZodObject<{
157
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
158
+ } & {
159
+ format: z.ZodEnum<["iso-yyyy-mm-dd", "mdy-slash", "dmy-slash"]>;
160
+ }, "strict", z.ZodTypeAny, {
161
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
162
+ columns: string[];
163
+ }, {
164
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
165
+ columns: string[];
166
+ }>>;
167
+ status: z.ZodOptional<z.ZodObject<{
168
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
169
+ }, "strict", z.ZodTypeAny, {
170
+ columns: string[];
171
+ }, {
172
+ columns: string[];
173
+ }>>;
174
+ }, "strict", z.ZodTypeAny, {
175
+ claimId: {
176
+ columns: string[];
177
+ };
178
+ recordId: {
179
+ columns: string[];
180
+ };
181
+ status?: {
182
+ columns: string[];
183
+ } | undefined;
184
+ evaluationDate?: {
185
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
186
+ columns: string[];
187
+ } | undefined;
188
+ effectiveDate?: {
189
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
190
+ columns: string[];
191
+ } | undefined;
192
+ componentId?: {
193
+ columns: string[];
194
+ } | undefined;
195
+ accidentDate?: {
196
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
197
+ columns: string[];
198
+ } | undefined;
199
+ reportDate?: {
200
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
201
+ columns: string[];
202
+ } | undefined;
203
+ }, {
204
+ claimId: {
205
+ columns: string[];
206
+ };
207
+ recordId: {
208
+ columns: string[];
209
+ };
210
+ status?: {
211
+ columns: string[];
212
+ } | undefined;
213
+ evaluationDate?: {
214
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
215
+ columns: string[];
216
+ } | undefined;
217
+ effectiveDate?: {
218
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
219
+ columns: string[];
220
+ } | undefined;
221
+ componentId?: {
222
+ columns: string[];
223
+ } | undefined;
224
+ accidentDate?: {
225
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
226
+ columns: string[];
227
+ } | undefined;
228
+ reportDate?: {
229
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
230
+ columns: string[];
231
+ } | undefined;
232
+ }>;
233
+ measures: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodObject<{
234
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
235
+ } & {
236
+ decimalSeparator: z.ZodEnum<[".", ","]>;
237
+ thousandsSeparator: z.ZodNullable<z.ZodEnum<[",", ".", " "]>>;
238
+ negative: z.ZodEnum<["leading-minus", "parentheses-or-leading-minus"]>;
239
+ blank: z.ZodEnum<["null", "error"]>;
240
+ scale: z.ZodNumber;
241
+ }, "strict", z.ZodTypeAny, {
242
+ negative: "leading-minus" | "parentheses-or-leading-minus";
243
+ scale: number;
244
+ columns: string[];
245
+ decimalSeparator: "." | ",";
246
+ thousandsSeparator: "." | "," | " " | null;
247
+ blank: "null" | "error";
248
+ }, {
249
+ negative: "leading-minus" | "parentheses-or-leading-minus";
250
+ scale: number;
251
+ columns: string[];
252
+ decimalSeparator: "." | ",";
253
+ thousandsSeparator: "." | "," | " " | null;
254
+ blank: "null" | "error";
255
+ }>, {
256
+ negative: "leading-minus" | "parentheses-or-leading-minus";
257
+ scale: number;
258
+ columns: string[];
259
+ decimalSeparator: "." | ",";
260
+ thousandsSeparator: "." | "," | " " | null;
261
+ blank: "null" | "error";
262
+ }, {
263
+ negative: "leading-minus" | "parentheses-or-leading-minus";
264
+ scale: number;
265
+ columns: string[];
266
+ decimalSeparator: "." | ",";
267
+ thousandsSeparator: "." | "," | " " | null;
268
+ blank: "null" | "error";
269
+ }>>;
270
+ dimensions: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodObject<{
271
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
272
+ } & {
273
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
274
+ dateFormat: z.ZodOptional<z.ZodEnum<["iso-yyyy-mm-dd", "mdy-slash", "dmy-slash"]>>;
275
+ numberFormat: z.ZodOptional<z.ZodObject<{
276
+ decimalSeparator: z.ZodEnum<[".", ","]>;
277
+ thousandsSeparator: z.ZodNullable<z.ZodEnum<[",", ".", " "]>>;
278
+ negative: z.ZodEnum<["leading-minus", "parentheses-or-leading-minus"]>;
279
+ blank: z.ZodEnum<["null", "error"]>;
280
+ scale: z.ZodNumber;
281
+ }, "strict", z.ZodTypeAny, {
282
+ negative: "leading-minus" | "parentheses-or-leading-minus";
283
+ scale: number;
284
+ decimalSeparator: "." | ",";
285
+ thousandsSeparator: "." | "," | " " | null;
286
+ blank: "null" | "error";
287
+ }, {
288
+ negative: "leading-minus" | "parentheses-or-leading-minus";
289
+ scale: number;
290
+ decimalSeparator: "." | ",";
291
+ thousandsSeparator: "." | "," | " " | null;
292
+ blank: "null" | "error";
293
+ }>>;
294
+ multipleDelimiter: z.ZodOptional<z.ZodString>;
295
+ }, "strict", z.ZodTypeAny, {
296
+ type: "string" | "number" | "boolean" | "date";
297
+ columns: string[];
298
+ dateFormat?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined;
299
+ numberFormat?: {
300
+ negative: "leading-minus" | "parentheses-or-leading-minus";
301
+ scale: number;
302
+ decimalSeparator: "." | ",";
303
+ thousandsSeparator: "." | "," | " " | null;
304
+ blank: "null" | "error";
305
+ } | undefined;
306
+ multipleDelimiter?: string | undefined;
307
+ }, {
308
+ type: "string" | "number" | "boolean" | "date";
309
+ columns: string[];
310
+ dateFormat?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined;
311
+ numberFormat?: {
312
+ negative: "leading-minus" | "parentheses-or-leading-minus";
313
+ scale: number;
314
+ decimalSeparator: "." | ",";
315
+ thousandsSeparator: "." | "," | " " | null;
316
+ blank: "null" | "error";
317
+ } | undefined;
318
+ multipleDelimiter?: string | undefined;
319
+ }>, {
320
+ type: "string" | "number" | "boolean" | "date";
321
+ columns: string[];
322
+ dateFormat?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined;
323
+ numberFormat?: {
324
+ negative: "leading-minus" | "parentheses-or-leading-minus";
325
+ scale: number;
326
+ decimalSeparator: "." | ",";
327
+ thousandsSeparator: "." | "," | " " | null;
328
+ blank: "null" | "error";
329
+ } | undefined;
330
+ multipleDelimiter?: string | undefined;
331
+ }, {
332
+ type: "string" | "number" | "boolean" | "date";
333
+ columns: string[];
334
+ dateFormat?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined;
335
+ numberFormat?: {
336
+ negative: "leading-minus" | "parentheses-or-leading-minus";
337
+ scale: number;
338
+ decimalSeparator: "." | ",";
339
+ thousandsSeparator: "." | "," | " " | null;
340
+ blank: "null" | "error";
341
+ } | undefined;
342
+ multipleDelimiter?: string | undefined;
343
+ }>>>;
344
+ relationships: z.ZodOptional<z.ZodObject<{
345
+ claimantIds: z.ZodOptional<z.ZodObject<{
346
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
347
+ } & {
348
+ delimiter: z.ZodString;
349
+ }, "strict", z.ZodTypeAny, {
350
+ columns: string[];
351
+ delimiter: string;
352
+ }, {
353
+ columns: string[];
354
+ delimiter: string;
355
+ }>>;
356
+ occurrenceId: z.ZodOptional<z.ZodObject<{
357
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
358
+ }, "strict", z.ZodTypeAny, {
359
+ columns: string[];
360
+ }, {
361
+ columns: string[];
362
+ }>>;
363
+ policyIds: z.ZodOptional<z.ZodObject<{
364
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
365
+ } & {
366
+ delimiter: z.ZodString;
367
+ }, "strict", z.ZodTypeAny, {
368
+ columns: string[];
369
+ delimiter: string;
370
+ }, {
371
+ columns: string[];
372
+ delimiter: string;
373
+ }>>;
374
+ coverageIds: z.ZodOptional<z.ZodObject<{
375
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
376
+ } & {
377
+ delimiter: z.ZodString;
378
+ }, "strict", z.ZodTypeAny, {
379
+ columns: string[];
380
+ delimiter: string;
381
+ }, {
382
+ columns: string[];
383
+ delimiter: string;
384
+ }>>;
385
+ }, "strict", z.ZodTypeAny, {
386
+ claimantIds?: {
387
+ columns: string[];
388
+ delimiter: string;
389
+ } | undefined;
390
+ occurrenceId?: {
391
+ columns: string[];
392
+ } | undefined;
393
+ policyIds?: {
394
+ columns: string[];
395
+ delimiter: string;
396
+ } | undefined;
397
+ coverageIds?: {
398
+ columns: string[];
399
+ delimiter: string;
400
+ } | undefined;
401
+ }, {
402
+ claimantIds?: {
403
+ columns: string[];
404
+ delimiter: string;
405
+ } | undefined;
406
+ occurrenceId?: {
407
+ columns: string[];
408
+ } | undefined;
409
+ policyIds?: {
410
+ columns: string[];
411
+ delimiter: string;
412
+ } | undefined;
413
+ coverageIds?: {
414
+ columns: string[];
415
+ delimiter: string;
416
+ } | undefined;
417
+ }>>;
418
+ revision: z.ZodObject<{
419
+ id: z.ZodObject<{
420
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
421
+ }, "strict", z.ZodTypeAny, {
422
+ columns: string[];
423
+ }, {
424
+ columns: string[];
425
+ }>;
426
+ action: z.ZodOptional<z.ZodObject<{
427
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
428
+ }, "strict", z.ZodTypeAny, {
429
+ columns: string[];
430
+ }, {
431
+ columns: string[];
432
+ }>>;
433
+ sequence: z.ZodOptional<z.ZodEffects<z.ZodObject<{
434
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
435
+ } & {
436
+ decimalSeparator: z.ZodEnum<[".", ","]>;
437
+ thousandsSeparator: z.ZodNullable<z.ZodEnum<[",", ".", " "]>>;
438
+ negative: z.ZodEnum<["leading-minus", "parentheses-or-leading-minus"]>;
439
+ blank: z.ZodEnum<["null", "error"]>;
440
+ scale: z.ZodNumber;
441
+ }, "strict", z.ZodTypeAny, {
442
+ negative: "leading-minus" | "parentheses-or-leading-minus";
443
+ scale: number;
444
+ columns: string[];
445
+ decimalSeparator: "." | ",";
446
+ thousandsSeparator: "." | "," | " " | null;
447
+ blank: "null" | "error";
448
+ }, {
449
+ negative: "leading-minus" | "parentheses-or-leading-minus";
450
+ scale: number;
451
+ columns: string[];
452
+ decimalSeparator: "." | ",";
453
+ thousandsSeparator: "." | "," | " " | null;
454
+ blank: "null" | "error";
455
+ }>, {
456
+ negative: "leading-minus" | "parentheses-or-leading-minus";
457
+ scale: number;
458
+ columns: string[];
459
+ decimalSeparator: "." | ",";
460
+ thousandsSeparator: "." | "," | " " | null;
461
+ blank: "null" | "error";
462
+ }, {
463
+ negative: "leading-minus" | "parentheses-or-leading-minus";
464
+ scale: number;
465
+ columns: string[];
466
+ decimalSeparator: "." | ",";
467
+ thousandsSeparator: "." | "," | " " | null;
468
+ blank: "null" | "error";
469
+ }>>;
470
+ correctedAt: z.ZodOptional<z.ZodObject<{
471
+ columns: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
472
+ }, "strict", z.ZodTypeAny, {
473
+ columns: string[];
474
+ }, {
475
+ columns: string[];
476
+ }>>;
477
+ }, "strict", z.ZodTypeAny, {
478
+ id: {
479
+ columns: string[];
480
+ };
481
+ action?: {
482
+ columns: string[];
483
+ } | undefined;
484
+ sequence?: {
485
+ negative: "leading-minus" | "parentheses-or-leading-minus";
486
+ scale: number;
487
+ columns: string[];
488
+ decimalSeparator: "." | ",";
489
+ thousandsSeparator: "." | "," | " " | null;
490
+ blank: "null" | "error";
491
+ } | undefined;
492
+ correctedAt?: {
493
+ columns: string[];
494
+ } | undefined;
495
+ }, {
496
+ id: {
497
+ columns: string[];
498
+ };
499
+ action?: {
500
+ columns: string[];
501
+ } | undefined;
502
+ sequence?: {
503
+ negative: "leading-minus" | "parentheses-or-leading-minus";
504
+ scale: number;
505
+ columns: string[];
506
+ decimalSeparator: "." | ",";
507
+ thousandsSeparator: "." | "," | " " | null;
508
+ blank: "null" | "error";
509
+ } | undefined;
510
+ correctedAt?: {
511
+ columns: string[];
512
+ } | undefined;
513
+ }>;
514
+ preserveUnmappedAttributes: z.ZodBoolean;
515
+ }, "strict", z.ZodTypeAny, {
516
+ id: string;
517
+ artifactId: string;
518
+ revision: {
519
+ id: {
520
+ columns: string[];
521
+ };
522
+ action?: {
523
+ columns: string[];
524
+ } | undefined;
525
+ sequence?: {
526
+ negative: "leading-minus" | "parentheses-or-leading-minus";
527
+ scale: number;
528
+ columns: string[];
529
+ decimalSeparator: "." | ",";
530
+ thousandsSeparator: "." | "," | " " | null;
531
+ blank: "null" | "error";
532
+ } | undefined;
533
+ correctedAt?: {
534
+ columns: string[];
535
+ } | undefined;
536
+ };
537
+ sourceNamespace: string;
538
+ grain: "claim-snapshot" | "claim-component-snapshot" | "transaction";
539
+ measures: Record<string, {
540
+ negative: "leading-minus" | "parentheses-or-leading-minus";
541
+ scale: number;
542
+ columns: string[];
543
+ decimalSeparator: "." | ",";
544
+ thousandsSeparator: "." | "," | " " | null;
545
+ blank: "null" | "error";
546
+ }>;
547
+ completeness: "complete-snapshot" | "partial-snapshot" | "change-only";
548
+ version: string;
549
+ fields: {
550
+ claimId: {
551
+ columns: string[];
552
+ };
553
+ recordId: {
554
+ columns: string[];
555
+ };
556
+ status?: {
557
+ columns: string[];
558
+ } | undefined;
559
+ evaluationDate?: {
560
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
561
+ columns: string[];
562
+ } | undefined;
563
+ effectiveDate?: {
564
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
565
+ columns: string[];
566
+ } | undefined;
567
+ componentId?: {
568
+ columns: string[];
569
+ } | undefined;
570
+ accidentDate?: {
571
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
572
+ columns: string[];
573
+ } | undefined;
574
+ reportDate?: {
575
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
576
+ columns: string[];
577
+ } | undefined;
578
+ };
579
+ preserveUnmappedAttributes: boolean;
580
+ dimensions?: Record<string, {
581
+ type: "string" | "number" | "boolean" | "date";
582
+ columns: string[];
583
+ dateFormat?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined;
584
+ numberFormat?: {
585
+ negative: "leading-minus" | "parentheses-or-leading-minus";
586
+ scale: number;
587
+ decimalSeparator: "." | ",";
588
+ thousandsSeparator: "." | "," | " " | null;
589
+ blank: "null" | "error";
590
+ } | undefined;
591
+ multipleDelimiter?: string | undefined;
592
+ }> | undefined;
593
+ relationships?: {
594
+ claimantIds?: {
595
+ columns: string[];
596
+ delimiter: string;
597
+ } | undefined;
598
+ occurrenceId?: {
599
+ columns: string[];
600
+ } | undefined;
601
+ policyIds?: {
602
+ columns: string[];
603
+ delimiter: string;
604
+ } | undefined;
605
+ coverageIds?: {
606
+ columns: string[];
607
+ delimiter: string;
608
+ } | undefined;
609
+ } | undefined;
610
+ }, {
611
+ id: string;
612
+ artifactId: string;
613
+ revision: {
614
+ id: {
615
+ columns: string[];
616
+ };
617
+ action?: {
618
+ columns: string[];
619
+ } | undefined;
620
+ sequence?: {
621
+ negative: "leading-minus" | "parentheses-or-leading-minus";
622
+ scale: number;
623
+ columns: string[];
624
+ decimalSeparator: "." | ",";
625
+ thousandsSeparator: "." | "," | " " | null;
626
+ blank: "null" | "error";
627
+ } | undefined;
628
+ correctedAt?: {
629
+ columns: string[];
630
+ } | undefined;
631
+ };
632
+ sourceNamespace: string;
633
+ grain: "claim-snapshot" | "claim-component-snapshot" | "transaction";
634
+ measures: Record<string, {
635
+ negative: "leading-minus" | "parentheses-or-leading-minus";
636
+ scale: number;
637
+ columns: string[];
638
+ decimalSeparator: "." | ",";
639
+ thousandsSeparator: "." | "," | " " | null;
640
+ blank: "null" | "error";
641
+ }>;
642
+ completeness: "complete-snapshot" | "partial-snapshot" | "change-only";
643
+ version: string;
644
+ fields: {
645
+ claimId: {
646
+ columns: string[];
647
+ };
648
+ recordId: {
649
+ columns: string[];
650
+ };
651
+ status?: {
652
+ columns: string[];
653
+ } | undefined;
654
+ evaluationDate?: {
655
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
656
+ columns: string[];
657
+ } | undefined;
658
+ effectiveDate?: {
659
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
660
+ columns: string[];
661
+ } | undefined;
662
+ componentId?: {
663
+ columns: string[];
664
+ } | undefined;
665
+ accidentDate?: {
666
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
667
+ columns: string[];
668
+ } | undefined;
669
+ reportDate?: {
670
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
671
+ columns: string[];
672
+ } | undefined;
673
+ };
674
+ preserveUnmappedAttributes: boolean;
675
+ dimensions?: Record<string, {
676
+ type: "string" | "number" | "boolean" | "date";
677
+ columns: string[];
678
+ dateFormat?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined;
679
+ numberFormat?: {
680
+ negative: "leading-minus" | "parentheses-or-leading-minus";
681
+ scale: number;
682
+ decimalSeparator: "." | ",";
683
+ thousandsSeparator: "." | "," | " " | null;
684
+ blank: "null" | "error";
685
+ } | undefined;
686
+ multipleDelimiter?: string | undefined;
687
+ }> | undefined;
688
+ relationships?: {
689
+ claimantIds?: {
690
+ columns: string[];
691
+ delimiter: string;
692
+ } | undefined;
693
+ occurrenceId?: {
694
+ columns: string[];
695
+ } | undefined;
696
+ policyIds?: {
697
+ columns: string[];
698
+ delimiter: string;
699
+ } | undefined;
700
+ coverageIds?: {
701
+ columns: string[];
702
+ delimiter: string;
703
+ } | undefined;
704
+ } | undefined;
705
+ }>, {
706
+ id: string;
707
+ artifactId: string;
708
+ revision: {
709
+ id: {
710
+ columns: string[];
711
+ };
712
+ action?: {
713
+ columns: string[];
714
+ } | undefined;
715
+ sequence?: {
716
+ negative: "leading-minus" | "parentheses-or-leading-minus";
717
+ scale: number;
718
+ columns: string[];
719
+ decimalSeparator: "." | ",";
720
+ thousandsSeparator: "." | "," | " " | null;
721
+ blank: "null" | "error";
722
+ } | undefined;
723
+ correctedAt?: {
724
+ columns: string[];
725
+ } | undefined;
726
+ };
727
+ sourceNamespace: string;
728
+ grain: "claim-snapshot" | "claim-component-snapshot" | "transaction";
729
+ measures: Record<string, {
730
+ negative: "leading-minus" | "parentheses-or-leading-minus";
731
+ scale: number;
732
+ columns: string[];
733
+ decimalSeparator: "." | ",";
734
+ thousandsSeparator: "." | "," | " " | null;
735
+ blank: "null" | "error";
736
+ }>;
737
+ completeness: "complete-snapshot" | "partial-snapshot" | "change-only";
738
+ version: string;
739
+ fields: {
740
+ claimId: {
741
+ columns: string[];
742
+ };
743
+ recordId: {
744
+ columns: string[];
745
+ };
746
+ status?: {
747
+ columns: string[];
748
+ } | undefined;
749
+ evaluationDate?: {
750
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
751
+ columns: string[];
752
+ } | undefined;
753
+ effectiveDate?: {
754
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
755
+ columns: string[];
756
+ } | undefined;
757
+ componentId?: {
758
+ columns: string[];
759
+ } | undefined;
760
+ accidentDate?: {
761
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
762
+ columns: string[];
763
+ } | undefined;
764
+ reportDate?: {
765
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
766
+ columns: string[];
767
+ } | undefined;
768
+ };
769
+ preserveUnmappedAttributes: boolean;
770
+ dimensions?: Record<string, {
771
+ type: "string" | "number" | "boolean" | "date";
772
+ columns: string[];
773
+ dateFormat?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined;
774
+ numberFormat?: {
775
+ negative: "leading-minus" | "parentheses-or-leading-minus";
776
+ scale: number;
777
+ decimalSeparator: "." | ",";
778
+ thousandsSeparator: "." | "," | " " | null;
779
+ blank: "null" | "error";
780
+ } | undefined;
781
+ multipleDelimiter?: string | undefined;
782
+ }> | undefined;
783
+ relationships?: {
784
+ claimantIds?: {
785
+ columns: string[];
786
+ delimiter: string;
787
+ } | undefined;
788
+ occurrenceId?: {
789
+ columns: string[];
790
+ } | undefined;
791
+ policyIds?: {
792
+ columns: string[];
793
+ delimiter: string;
794
+ } | undefined;
795
+ coverageIds?: {
796
+ columns: string[];
797
+ delimiter: string;
798
+ } | undefined;
799
+ } | undefined;
800
+ }, {
801
+ id: string;
802
+ artifactId: string;
803
+ revision: {
804
+ id: {
805
+ columns: string[];
806
+ };
807
+ action?: {
808
+ columns: string[];
809
+ } | undefined;
810
+ sequence?: {
811
+ negative: "leading-minus" | "parentheses-or-leading-minus";
812
+ scale: number;
813
+ columns: string[];
814
+ decimalSeparator: "." | ",";
815
+ thousandsSeparator: "." | "," | " " | null;
816
+ blank: "null" | "error";
817
+ } | undefined;
818
+ correctedAt?: {
819
+ columns: string[];
820
+ } | undefined;
821
+ };
822
+ sourceNamespace: string;
823
+ grain: "claim-snapshot" | "claim-component-snapshot" | "transaction";
824
+ measures: Record<string, {
825
+ negative: "leading-minus" | "parentheses-or-leading-minus";
826
+ scale: number;
827
+ columns: string[];
828
+ decimalSeparator: "." | ",";
829
+ thousandsSeparator: "." | "," | " " | null;
830
+ blank: "null" | "error";
831
+ }>;
832
+ completeness: "complete-snapshot" | "partial-snapshot" | "change-only";
833
+ version: string;
834
+ fields: {
835
+ claimId: {
836
+ columns: string[];
837
+ };
838
+ recordId: {
839
+ columns: string[];
840
+ };
841
+ status?: {
842
+ columns: string[];
843
+ } | undefined;
844
+ evaluationDate?: {
845
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
846
+ columns: string[];
847
+ } | undefined;
848
+ effectiveDate?: {
849
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
850
+ columns: string[];
851
+ } | undefined;
852
+ componentId?: {
853
+ columns: string[];
854
+ } | undefined;
855
+ accidentDate?: {
856
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
857
+ columns: string[];
858
+ } | undefined;
859
+ reportDate?: {
860
+ format: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash";
861
+ columns: string[];
862
+ } | undefined;
863
+ };
864
+ preserveUnmappedAttributes: boolean;
865
+ dimensions?: Record<string, {
866
+ type: "string" | "number" | "boolean" | "date";
867
+ columns: string[];
868
+ dateFormat?: "iso-yyyy-mm-dd" | "mdy-slash" | "dmy-slash" | undefined;
869
+ numberFormat?: {
870
+ negative: "leading-minus" | "parentheses-or-leading-minus";
871
+ scale: number;
872
+ decimalSeparator: "." | ",";
873
+ thousandsSeparator: "." | "," | " " | null;
874
+ blank: "null" | "error";
875
+ } | undefined;
876
+ multipleDelimiter?: string | undefined;
877
+ }> | undefined;
878
+ relationships?: {
879
+ claimantIds?: {
880
+ columns: string[];
881
+ delimiter: string;
882
+ } | undefined;
883
+ occurrenceId?: {
884
+ columns: string[];
885
+ } | undefined;
886
+ policyIds?: {
887
+ columns: string[];
888
+ delimiter: string;
889
+ } | undefined;
890
+ coverageIds?: {
891
+ columns: string[];
892
+ delimiter: string;
893
+ } | undefined;
894
+ } | undefined;
895
+ }>;
896
+ export declare function parseHistoricalSourceMapping(value: unknown): HistoricalSourceMapping;
897
+ export declare function mapHistoricalSourceRows(mappingInput: HistoricalSourceMapping | unknown, rowsInput: readonly HistoricalSourceRow[]): HistoricalMappingResult;
898
+ //# sourceMappingURL=historyMapping.d.ts.map