@bedrock-engineer/bro-xml-parser 0.2.0 → 0.4.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 (116) hide show
  1. package/README.md +21 -12
  2. package/dist/browser.d.ts +15 -5
  3. package/dist/browser.d.ts.map +1 -1
  4. package/dist/browser.js +7 -5
  5. package/dist/browser.js.map +1 -1
  6. package/dist/core/columns.d.ts +80 -0
  7. package/dist/core/columns.d.ts.map +1 -0
  8. package/dist/core/columns.js +100 -0
  9. package/dist/core/columns.js.map +1 -0
  10. package/dist/core/producer.d.ts +216 -0
  11. package/dist/core/producer.d.ts.map +1 -0
  12. package/dist/core/producer.js +85 -0
  13. package/dist/core/producer.js.map +1 -0
  14. package/dist/core/schema-parser.d.ts +41 -17
  15. package/dist/core/schema-parser.d.ts.map +1 -1
  16. package/dist/core/schema-parser.js +178 -73
  17. package/dist/core/schema-parser.js.map +1 -1
  18. package/dist/core/version-detector.d.ts +3 -1
  19. package/dist/core/version-detector.d.ts.map +1 -1
  20. package/dist/core/version-detector.js +37 -0
  21. package/dist/core/version-detector.js.map +1 -1
  22. package/dist/decoders/constants.d.ts +2 -0
  23. package/dist/decoders/constants.d.ts.map +1 -0
  24. package/dist/decoders/constants.js +2 -0
  25. package/dist/decoders/constants.js.map +1 -0
  26. package/dist/decoders/type-decoders.d.ts +38 -0
  27. package/dist/decoders/type-decoders.d.ts.map +1 -0
  28. package/dist/decoders/type-decoders.js +134 -0
  29. package/dist/decoders/type-decoders.js.map +1 -0
  30. package/dist/namespaces.d.ts.map +1 -1
  31. package/dist/namespaces.js +16 -0
  32. package/dist/namespaces.js.map +1 -1
  33. package/dist/node.d.ts +15 -5
  34. package/dist/node.d.ts.map +1 -1
  35. package/dist/node.js +7 -5
  36. package/dist/node.js.map +1 -1
  37. package/dist/parser.d.ts +69 -19
  38. package/dist/parser.d.ts.map +1 -1
  39. package/dist/parser.js +103 -29
  40. package/dist/parser.js.map +1 -1
  41. package/dist/producers.d.ts +36 -0
  42. package/dist/producers.d.ts.map +1 -0
  43. package/dist/producers.js +35 -0
  44. package/dist/producers.js.map +1 -0
  45. package/dist/resolvers/bhrg-resolvers.d.ts +3 -18
  46. package/dist/resolvers/bhrg-resolvers.d.ts.map +1 -1
  47. package/dist/resolvers/bhrg-resolvers.js +294 -41
  48. package/dist/resolvers/bhrg-resolvers.js.map +1 -1
  49. package/dist/resolvers/bore-resolver-utils.d.ts +21 -2
  50. package/dist/resolvers/bore-resolver-utils.d.ts.map +1 -1
  51. package/dist/resolvers/bore-resolver-utils.js +69 -22
  52. package/dist/resolvers/bore-resolver-utils.js.map +1 -1
  53. package/dist/resolvers/bore-resolvers.d.ts +34 -17
  54. package/dist/resolvers/bore-resolvers.d.ts.map +1 -1
  55. package/dist/resolvers/bore-resolvers.js +342 -175
  56. package/dist/resolvers/bore-resolvers.js.map +1 -1
  57. package/dist/resolvers/cpt-resolvers.d.ts +1 -8
  58. package/dist/resolvers/cpt-resolvers.d.ts.map +1 -1
  59. package/dist/resolvers/cpt-resolvers.js +2 -29
  60. package/dist/resolvers/cpt-resolvers.js.map +1 -1
  61. package/dist/resolvers/gld-resolvers.d.ts +30 -0
  62. package/dist/resolvers/gld-resolvers.d.ts.map +1 -0
  63. package/dist/resolvers/gld-resolvers.js +76 -0
  64. package/dist/resolvers/gld-resolvers.js.map +1 -0
  65. package/dist/resolvers/gmw-resolvers.d.ts +37 -0
  66. package/dist/resolvers/gmw-resolvers.d.ts.map +1 -0
  67. package/dist/resolvers/gmw-resolvers.js +101 -0
  68. package/dist/resolvers/gmw-resolvers.js.map +1 -0
  69. package/dist/resolvers/type-resolvers.d.ts +12 -4
  70. package/dist/resolvers/type-resolvers.d.ts.map +1 -1
  71. package/dist/resolvers/type-resolvers.js +12 -4
  72. package/dist/resolvers/type-resolvers.js.map +1 -1
  73. package/dist/resolvers.d.ts +5 -2
  74. package/dist/resolvers.d.ts.map +1 -1
  75. package/dist/resolvers.js +8 -2
  76. package/dist/resolvers.js.map +1 -1
  77. package/dist/schema-presets.d.ts +67 -16
  78. package/dist/schema-presets.d.ts.map +1 -1
  79. package/dist/schema-presets.js +51 -114
  80. package/dist/schema-presets.js.map +1 -1
  81. package/dist/schemas/bhrg-schema.d.ts +528 -9
  82. package/dist/schemas/bhrg-schema.d.ts.map +1 -1
  83. package/dist/schemas/bhrg-schema.js +330 -162
  84. package/dist/schemas/bhrg-schema.js.map +1 -1
  85. package/dist/schemas/bhrgt-analysis.d.ts +1057 -0
  86. package/dist/schemas/bhrgt-analysis.d.ts.map +1 -0
  87. package/dist/schemas/bhrgt-analysis.js +454 -0
  88. package/dist/schemas/bhrgt-analysis.js.map +1 -0
  89. package/dist/schemas/bore-schema.d.ts +773 -9
  90. package/dist/schemas/bore-schema.d.ts.map +1 -1
  91. package/dist/schemas/bore-schema.js +344 -257
  92. package/dist/schemas/bore-schema.js.map +1 -1
  93. package/dist/schemas/common-fields.d.ts +61 -0
  94. package/dist/schemas/common-fields.d.ts.map +1 -0
  95. package/dist/schemas/common-fields.js +82 -0
  96. package/dist/schemas/common-fields.js.map +1 -0
  97. package/dist/schemas/cpt-schema.d.ts +126 -9
  98. package/dist/schemas/cpt-schema.d.ts.map +1 -1
  99. package/dist/schemas/cpt-schema.js +182 -275
  100. package/dist/schemas/cpt-schema.js.map +1 -1
  101. package/dist/schemas/generated/gld.generated.d.ts +9 -0
  102. package/dist/schemas/generated/gld.generated.d.ts.map +1 -0
  103. package/dist/schemas/generated/gld.generated.js +19 -0
  104. package/dist/schemas/generated/gld.generated.js.map +1 -0
  105. package/dist/schemas/gld-schema.d.ts +92 -0
  106. package/dist/schemas/gld-schema.d.ts.map +1 -0
  107. package/dist/schemas/gld-schema.js +88 -0
  108. package/dist/schemas/gld-schema.js.map +1 -0
  109. package/dist/schemas/gmw-schema.d.ts +180 -0
  110. package/dist/schemas/gmw-schema.d.ts.map +1 -0
  111. package/dist/schemas/gmw-schema.js +131 -0
  112. package/dist/schemas/gmw-schema.js.map +1 -0
  113. package/dist/types/index.d.ts +51 -1005
  114. package/dist/types/index.d.ts.map +1 -1
  115. package/dist/types/index.js.map +1 -1
  116. package/package.json +3 -2
@@ -1,13 +1,532 @@
1
1
  /**
2
- * BHR-G (Geological Borehole) schema definition
2
+ * BHR-G (Geologische boring / geological borehole) schema.
3
3
  *
4
- * Defines metadata fields for BHR-G data following BRO structure.
5
- * Each field specifies:
6
- * - xpath: location in XML document
7
- * - resolver: function to convert/parse value (optional)
8
- * - attribute: which property to extract (optional, defaults to textContent)
9
- * - required: whether field is mandatory (optional, defaults to false)
4
+ * Maps the dsbhrg/3.1 registration object to {@link BHRGData}. The bulk is the
5
+ * descriptive borehole log: an array of soil layers, each carrying a large
6
+ * flattened soil surface plus nested sub-structures (Munsell colour,
7
+ * sand/shell/gravel/peat fractions, fraction distribution, chunks, mottles, thin
8
+ * strata). Optional soil codes that should be *absent* (not `null`) when
9
+ * unspecified use `presence: "omit"`; repeatable code lists use an array with
10
+ * `presence: "omit"` so the key appears only when non-empty.
11
+ *
12
+ * Field coverage is verified against the official XSD with
13
+ * `npm run check:xsd-coverage`.
14
+ */
15
+ import type { Produced } from "../core/producer.js";
16
+ declare const MUNSELL_COLOUR: import("../core/producer.js").ObjectProducer<{
17
+ munsellHue: string | null;
18
+ munsellValue: string | null;
19
+ munsellChroma: string | null;
20
+ }, "optional">;
21
+ declare const SAND_FRACTION: import("../core/producer.js").ObjectProducer<{
22
+ angularity: string | null;
23
+ sandMedianClass: string | null;
24
+ darkGrainContentClass: string | null;
25
+ darkGrainContentClassArchive: string | null;
26
+ sandSorting: string | null;
27
+ variegation: string | null;
28
+ anomalouslyCoarseContentClass: string | null;
29
+ anomalouslyCoarseContentClassArchive: string | null;
30
+ granuleContentClass: string | null;
31
+ granuleContentClassArchive: string | null;
32
+ estimatedMedian: number | null;
33
+ sandConstituents: {
34
+ grainColour: string | null;
35
+ percentageClass: string | null;
36
+ archiveClass: string | null;
37
+ }[];
38
+ }, "optional">;
39
+ declare const SHELL_FRACTION: import("../core/producer.js").ObjectProducer<{
40
+ weatheringDegree: string | null;
41
+ gritContentClass: string | null;
42
+ fragmentContentClass: string | null;
43
+ remainsContentClass: string | null;
44
+ wholeContentClass: string | null;
45
+ doublets: string | null;
46
+ thickWalledContentClass: string | null;
47
+ thinWalledContentClass: string | null;
48
+ inSitu: string | null;
49
+ shellConstituents: {
50
+ shellTaxon: string | null;
51
+ relativeAbundance: string | null;
52
+ relativeAbundanceClass: string | null;
53
+ relativeAbundanceClassArchive: string | null;
54
+ }[];
55
+ }, "optional">;
56
+ declare const GRAVEL_FRACTION: import("../core/producer.js").ObjectProducer<{
57
+ angularity: string | null;
58
+ sphericity: string | null;
59
+ gravelMedianClass: string | null;
60
+ fineGravelContentClass: string | null;
61
+ mediumCoarseGravelContentClass: string | null;
62
+ veryCoarseGravelContentClass: string | null;
63
+ variegation: string | null;
64
+ estimatedMedian: number | null;
65
+ ventifactPresent: string | null;
66
+ gravelProvenance: string | null;
67
+ gravelConstituents: {
68
+ archiveClass: string | null;
69
+ gravelType: string | null;
70
+ fractionProportion: number | null;
71
+ }[];
72
+ }, "optional">;
73
+ declare const PEAT_FRACTION: import("../core/producer.js").ObjectProducer<{
74
+ peatType: string | null;
75
+ peatConstituents: {
76
+ percentageClass: string | null;
77
+ archiveClass: string | null;
78
+ plantRemainType: string | null;
79
+ }[];
80
+ }, "optional">;
81
+ declare const FRACTION_DISTRIBUTION: import("../core/producer.js").ObjectProducer<{
82
+ fractionDistributionComplete: string | null;
83
+ estimatedMassProportionOrganicMatter: number | null;
84
+ estimatedMassProportionShellMatter: number | null;
85
+ estimatedVolumeProportionShellMatter: number | null;
86
+ estimatedMassProportionShell: number | null;
87
+ estimatedMassProportionGravel: number | null;
88
+ estimatedVolumeProportionGravel: number | null;
89
+ fineFractionDistributionOrganicSoil?: {
90
+ estimatedMassProportionSand: number | null;
91
+ estimatedMassProportionSilt: number | null;
92
+ estimatedMassProportionLutum: number | null;
93
+ };
94
+ fineFractionDistributionShellySoil?: {
95
+ estimatedVolumeProportionSand: number | null;
96
+ estimatedVolumeProportionSilt: number | null;
97
+ estimatedVolumeProportionLutum: number | null;
98
+ };
99
+ }, "optional">;
100
+ declare const THIN_STRATUM: import("../core/producer.js").ObjectProducer<{
101
+ layerProportion: number | null;
102
+ layerProportionClass: string | null;
103
+ layerProportionClassArchive: string | null;
104
+ stratumThicknessClass: string | null;
105
+ geologicalOrigin: string | null;
106
+ }, "optional">;
107
+ declare const CHUNK: import("../core/producer.js").ObjectProducer<{
108
+ colour: string | null;
109
+ percentageClass: string | null;
110
+ archiveClass: string | null;
111
+ geologicalOrigin: string | null;
112
+ soilType: string | null;
113
+ sizeClass: string | null;
114
+ cemented: string | null;
115
+ }, "optional">;
116
+ declare const MOTTLE: import("../core/producer.js").ObjectProducer<{
117
+ colour: string | null;
118
+ density: string | null;
119
+ inBands: string | null;
120
+ }, "optional">;
121
+ declare const LAYER: import("../core/producer.js").ObjectProducer<{
122
+ upperBoundary: number | null;
123
+ lowerBoundary: number | null;
124
+ carbonateContentClass: string | null;
125
+ soilNameNEN5104: string | null;
126
+ organicMatterContentClassNEN5104: string | null;
127
+ sandMedianClass: string | null;
128
+ upperBoundaryDetermination: string | null;
129
+ lowerBoundaryDetermination: string | null;
130
+ anthropogenic: string | null;
131
+ rooted: string | null;
132
+ gravelContentClass: string | null;
133
+ fractionDistribution?: {
134
+ fractionDistributionComplete: string | null;
135
+ estimatedMassProportionOrganicMatter: number | null;
136
+ estimatedMassProportionShellMatter: number | null;
137
+ estimatedVolumeProportionShellMatter: number | null;
138
+ estimatedMassProportionShell: number | null;
139
+ estimatedMassProportionGravel: number | null;
140
+ estimatedVolumeProportionGravel: number | null;
141
+ fineFractionDistributionOrganicSoil?: {
142
+ estimatedMassProportionSand: number | null;
143
+ estimatedMassProportionSilt: number | null;
144
+ estimatedMassProportionLutum: number | null;
145
+ };
146
+ fineFractionDistributionShellySoil?: {
147
+ estimatedVolumeProportionSand: number | null;
148
+ estimatedVolumeProportionSilt: number | null;
149
+ estimatedVolumeProportionLutum: number | null;
150
+ };
151
+ };
152
+ color?: string | null;
153
+ geologicalOrigin?: string | null;
154
+ postSedimentary?: string | null;
155
+ horizonCode?: string | null;
156
+ humanTrace?: string | null;
157
+ bioturbated?: string | null;
158
+ structure?: (string | null)[];
159
+ verticalTrend?: (string | null)[];
160
+ archeologicalConstituents?: (string | null)[];
161
+ thinStrata?: {
162
+ layerProportion: number | null;
163
+ layerProportionClass: string | null;
164
+ layerProportionClassArchive: string | null;
165
+ stratumThicknessClass: string | null;
166
+ geologicalOrigin: string | null;
167
+ }[];
168
+ geologicalSoilName?: string | null;
169
+ shellMatterContentClass?: string | null;
170
+ micaContentClass?: string | null;
171
+ micaContentClassArchive?: string | null;
172
+ shellMatterContentClassArchive?: string | null;
173
+ glauconiteContentClass?: string | null;
174
+ glauconiteContentClassArchive?: string | null;
175
+ sedimentaryPhenomenon?: string | null;
176
+ veryCoarseFractionContentClass?: (string | null)[];
177
+ veryCoarseFractionContentClassArchive?: (string | null)[];
178
+ animalFossils?: (string | null)[];
179
+ munsellColour?: {
180
+ munsellHue: string | null;
181
+ munsellValue: string | null;
182
+ munsellChroma: string | null;
183
+ };
184
+ sandFraction?: {
185
+ angularity: string | null;
186
+ sandMedianClass: string | null;
187
+ darkGrainContentClass: string | null;
188
+ darkGrainContentClassArchive: string | null;
189
+ sandSorting: string | null;
190
+ variegation: string | null;
191
+ anomalouslyCoarseContentClass: string | null;
192
+ anomalouslyCoarseContentClassArchive: string | null;
193
+ granuleContentClass: string | null;
194
+ granuleContentClassArchive: string | null;
195
+ estimatedMedian: number | null;
196
+ sandConstituents: {
197
+ grainColour: string | null;
198
+ percentageClass: string | null;
199
+ archiveClass: string | null;
200
+ }[];
201
+ };
202
+ shellFraction?: {
203
+ weatheringDegree: string | null;
204
+ gritContentClass: string | null;
205
+ fragmentContentClass: string | null;
206
+ remainsContentClass: string | null;
207
+ wholeContentClass: string | null;
208
+ doublets: string | null;
209
+ thickWalledContentClass: string | null;
210
+ thinWalledContentClass: string | null;
211
+ inSitu: string | null;
212
+ shellConstituents: {
213
+ shellTaxon: string | null;
214
+ relativeAbundance: string | null;
215
+ relativeAbundanceClass: string | null;
216
+ relativeAbundanceClassArchive: string | null;
217
+ }[];
218
+ };
219
+ gravelFraction?: {
220
+ angularity: string | null;
221
+ sphericity: string | null;
222
+ gravelMedianClass: string | null;
223
+ fineGravelContentClass: string | null;
224
+ mediumCoarseGravelContentClass: string | null;
225
+ veryCoarseGravelContentClass: string | null;
226
+ variegation: string | null;
227
+ estimatedMedian: number | null;
228
+ ventifactPresent: string | null;
229
+ gravelProvenance: string | null;
230
+ gravelConstituents: {
231
+ archiveClass: string | null;
232
+ gravelType: string | null;
233
+ fractionProportion: number | null;
234
+ }[];
235
+ };
236
+ peatFraction?: {
237
+ peatType: string | null;
238
+ peatConstituents: {
239
+ percentageClass: string | null;
240
+ archiveClass: string | null;
241
+ plantRemainType: string | null;
242
+ }[];
243
+ };
244
+ chunks?: {
245
+ colour: string | null;
246
+ percentageClass: string | null;
247
+ archiveClass: string | null;
248
+ geologicalOrigin: string | null;
249
+ soilType: string | null;
250
+ sizeClass: string | null;
251
+ cemented: string | null;
252
+ }[];
253
+ mottles?: {
254
+ colour: string | null;
255
+ density: string | null;
256
+ inBands: string | null;
257
+ }[];
258
+ }, "optional">;
259
+ /** Report history: an event log; the first event's date stands in for start/end. */
260
+ /**
261
+ * Report history. BHR-G carries only an `event` list (no explicit report
262
+ * start/end), so both dates are taken from the first event via `event[1]`.
10
263
  */
11
- import type { Schema } from "../types/index.js";
12
- export declare const BHRG_SCHEMA: Schema;
264
+ declare const REPORT_HISTORY: import("../core/producer.js").ObjectProducer<{
265
+ reportStartDate: string | null;
266
+ reportEndDate: string | null;
267
+ intermediateEvents: {
268
+ eventName: string | null;
269
+ eventDate: string | null;
270
+ }[];
271
+ }, "optional">;
272
+ /** Report history (start/end + intermediate events). Inferred from {@link REPORT_HISTORY}. @internal */
273
+ export type ReportHistory = Produced<typeof REPORT_HISTORY>;
274
+ /** One dated intermediate report event. @internal */
275
+ export type IntermediateEvent = ReportHistory["intermediateEvents"][number];
276
+ export declare const BHRG_PRODUCER: import("../core/producer.js").ObjectProducer<{
277
+ researchReportDate: string | null;
278
+ deliveredLocation: import("../browser.js").Location | null;
279
+ standardizedLocation: import("../browser.js").Location | null;
280
+ deliveredVerticalPositionOffset: number | null;
281
+ deliveredVerticalPositionDatum: string | null;
282
+ deliveredVerticalPositionReferencePoint: string | null;
283
+ waterDepth: number | null;
284
+ verticalPositioningDate: string | null;
285
+ verticalPositioningMethod: string | null;
286
+ verticalPositioningOperator: string | null;
287
+ deliveryContext: string | null;
288
+ surveyPurpose: string | null;
289
+ stopCriterion: string | null;
290
+ data: {
291
+ upperBoundary: number | null;
292
+ lowerBoundary: number | null;
293
+ carbonateContentClass: string | null;
294
+ soilNameNEN5104: string | null;
295
+ organicMatterContentClassNEN5104: string | null;
296
+ sandMedianClass: string | null;
297
+ upperBoundaryDetermination: string | null;
298
+ lowerBoundaryDetermination: string | null;
299
+ anthropogenic: string | null;
300
+ rooted: string | null;
301
+ gravelContentClass: string | null;
302
+ fractionDistribution?: {
303
+ fractionDistributionComplete: string | null;
304
+ estimatedMassProportionOrganicMatter: number | null;
305
+ estimatedMassProportionShellMatter: number | null;
306
+ estimatedVolumeProportionShellMatter: number | null;
307
+ estimatedMassProportionShell: number | null;
308
+ estimatedMassProportionGravel: number | null;
309
+ estimatedVolumeProportionGravel: number | null;
310
+ fineFractionDistributionOrganicSoil?: {
311
+ estimatedMassProportionSand: number | null;
312
+ estimatedMassProportionSilt: number | null;
313
+ estimatedMassProportionLutum: number | null;
314
+ };
315
+ fineFractionDistributionShellySoil?: {
316
+ estimatedVolumeProportionSand: number | null;
317
+ estimatedVolumeProportionSilt: number | null;
318
+ estimatedVolumeProportionLutum: number | null;
319
+ };
320
+ };
321
+ color?: string | null;
322
+ geologicalOrigin?: string | null;
323
+ postSedimentary?: string | null;
324
+ horizonCode?: string | null;
325
+ humanTrace?: string | null;
326
+ bioturbated?: string | null;
327
+ structure?: (string | null)[];
328
+ verticalTrend?: (string | null)[];
329
+ archeologicalConstituents?: (string | null)[];
330
+ thinStrata?: {
331
+ layerProportion: number | null;
332
+ layerProportionClass: string | null;
333
+ layerProportionClassArchive: string | null;
334
+ stratumThicknessClass: string | null;
335
+ geologicalOrigin: string | null;
336
+ }[];
337
+ geologicalSoilName?: string | null;
338
+ shellMatterContentClass?: string | null;
339
+ micaContentClass?: string | null;
340
+ micaContentClassArchive?: string | null;
341
+ shellMatterContentClassArchive?: string | null;
342
+ glauconiteContentClass?: string | null;
343
+ glauconiteContentClassArchive?: string | null;
344
+ sedimentaryPhenomenon?: string | null;
345
+ veryCoarseFractionContentClass?: (string | null)[];
346
+ veryCoarseFractionContentClassArchive?: (string | null)[];
347
+ animalFossils?: (string | null)[];
348
+ munsellColour?: {
349
+ munsellHue: string | null;
350
+ munsellValue: string | null;
351
+ munsellChroma: string | null;
352
+ };
353
+ sandFraction?: {
354
+ angularity: string | null;
355
+ sandMedianClass: string | null;
356
+ darkGrainContentClass: string | null;
357
+ darkGrainContentClassArchive: string | null;
358
+ sandSorting: string | null;
359
+ variegation: string | null;
360
+ anomalouslyCoarseContentClass: string | null;
361
+ anomalouslyCoarseContentClassArchive: string | null;
362
+ granuleContentClass: string | null;
363
+ granuleContentClassArchive: string | null;
364
+ estimatedMedian: number | null;
365
+ sandConstituents: {
366
+ grainColour: string | null;
367
+ percentageClass: string | null;
368
+ archiveClass: string | null;
369
+ }[];
370
+ };
371
+ shellFraction?: {
372
+ weatheringDegree: string | null;
373
+ gritContentClass: string | null;
374
+ fragmentContentClass: string | null;
375
+ remainsContentClass: string | null;
376
+ wholeContentClass: string | null;
377
+ doublets: string | null;
378
+ thickWalledContentClass: string | null;
379
+ thinWalledContentClass: string | null;
380
+ inSitu: string | null;
381
+ shellConstituents: {
382
+ shellTaxon: string | null;
383
+ relativeAbundance: string | null;
384
+ relativeAbundanceClass: string | null;
385
+ relativeAbundanceClassArchive: string | null;
386
+ }[];
387
+ };
388
+ gravelFraction?: {
389
+ angularity: string | null;
390
+ sphericity: string | null;
391
+ gravelMedianClass: string | null;
392
+ fineGravelContentClass: string | null;
393
+ mediumCoarseGravelContentClass: string | null;
394
+ veryCoarseGravelContentClass: string | null;
395
+ variegation: string | null;
396
+ estimatedMedian: number | null;
397
+ ventifactPresent: string | null;
398
+ gravelProvenance: string | null;
399
+ gravelConstituents: {
400
+ archiveClass: string | null;
401
+ gravelType: string | null;
402
+ fractionProportion: number | null;
403
+ }[];
404
+ };
405
+ peatFraction?: {
406
+ peatType: string | null;
407
+ peatConstituents: {
408
+ percentageClass: string | null;
409
+ archiveClass: string | null;
410
+ plantRemainType: string | null;
411
+ }[];
412
+ };
413
+ chunks?: {
414
+ colour: string | null;
415
+ percentageClass: string | null;
416
+ archiveClass: string | null;
417
+ geologicalOrigin: string | null;
418
+ soilType: string | null;
419
+ sizeClass: string | null;
420
+ cemented: string | null;
421
+ }[];
422
+ mottles?: {
423
+ colour: string | null;
424
+ density: string | null;
425
+ inBands: string | null;
426
+ }[];
427
+ }[];
428
+ registrationHistory: {
429
+ objectRegistrationTime: string | null;
430
+ registrationStatus: string | null;
431
+ registrationCompletionTime: string | null;
432
+ latestCorrectionTime: string | null;
433
+ latestAdditionTime: string | null;
434
+ underReviewTime: string | null;
435
+ deregistrationTime: string | null;
436
+ reregistrationTime: string | null;
437
+ corrected: boolean | null;
438
+ underReview: boolean | null;
439
+ deregistered: boolean | null;
440
+ reregistered: boolean | null;
441
+ };
442
+ broId: string | null;
443
+ qualityRegime: string | null;
444
+ deliveryAccountableParty: string | null;
445
+ objectIdAccountableParty: string | null;
446
+ deliveryResponsibleParty: string | null;
447
+ sampleMoistness: string | null;
448
+ boringTechnique: string | null;
449
+ samplingMethod: string | null;
450
+ samplingQuality: string | null;
451
+ descriptionProcedure: string | null;
452
+ boreRockReached: boolean | null;
453
+ finalBoreDepth: number | null;
454
+ finalSampleDepth: number | null;
455
+ boreHoleCompleted: string | null;
456
+ boringStartDate: string | null;
457
+ boringEndDate: string | null;
458
+ boringProcedure: string | null;
459
+ trajectoryExcavated: boolean | null;
460
+ subsurfaceContaminated: boolean | null;
461
+ samplingProcedure: string | null;
462
+ descriptionQuality: string | null;
463
+ descriptionLocation: string | null;
464
+ descriptionReportDate: string | null;
465
+ describedMaterial: string | null;
466
+ continuouslySampled: boolean | null;
467
+ boredIntervals: {
468
+ beginDepth: number | null;
469
+ endDepth: number | null;
470
+ boringTechnique: string | null;
471
+ boredDiameter: number | null;
472
+ }[];
473
+ sampledIntervals: {
474
+ beginDepth: number | null;
475
+ endDepth: number | null;
476
+ preTreatment: string | null;
477
+ samplingMethod: string | null;
478
+ samplingQuality: string | null;
479
+ orientatedSampled: boolean | null;
480
+ }[];
481
+ reportHistory: {
482
+ reportStartDate: string | null;
483
+ reportEndDate: string | null;
484
+ intermediateEvents: {
485
+ eventName: string | null;
486
+ eventDate: string | null;
487
+ }[];
488
+ };
489
+ discipline: string | null;
490
+ surveyProcedure: string | null;
491
+ landscapeElement: string | null;
492
+ hydrologicalSetting: string | null;
493
+ currentProcess: string | null;
494
+ utensil: string | null;
495
+ flushingAdditiveUsed: string | null;
496
+ describedSamplesQuality: string | null;
497
+ nitgCode: string | null;
498
+ }, "optional">;
499
+ /** One descriptive-log layer of a BHR-G borehole. Inferred from {@link LAYER}. @internal */
500
+ export type BHRGLayer = Produced<typeof LAYER>;
501
+ /** Munsell colour of a layer. Inferred from {@link MUNSELL_COLOUR}. @internal */
502
+ export type MunsellColour = Produced<typeof MUNSELL_COLOUR>;
503
+ /** Sand fraction of a layer. Inferred from {@link SAND_FRACTION}. @internal */
504
+ export type SandFraction = Produced<typeof SAND_FRACTION>;
505
+ /** Shell fraction of a layer. Inferred from {@link SHELL_FRACTION}. @internal */
506
+ export type ShellFraction = Produced<typeof SHELL_FRACTION>;
507
+ /** Gravel fraction of a layer. Inferred from {@link GRAVEL_FRACTION}. @internal */
508
+ export type GravelFraction = Produced<typeof GRAVEL_FRACTION>;
509
+ /** Peat fraction of a layer. Inferred from {@link PEAT_FRACTION}. @internal */
510
+ export type PeatFraction = Produced<typeof PEAT_FRACTION>;
511
+ /** Mass/volume fraction distribution of a layer. Inferred from {@link FRACTION_DISTRIBUTION}. @internal */
512
+ export type FractionDistribution = Produced<typeof FRACTION_DISTRIBUTION>;
513
+ /** A thin stratum within a layer. Inferred from {@link THIN_STRATUM}. @internal */
514
+ export type ThinStratum = Produced<typeof THIN_STRATUM>;
515
+ /** A chunk within a layer. Inferred from {@link CHUNK}. @internal */
516
+ export type Chunk = Produced<typeof CHUNK>;
517
+ /** A mottle within a layer. Inferred from {@link MOTTLE}. @internal */
518
+ export type Mottle = Produced<typeof MOTTLE>;
519
+ /** @internal */
520
+ export type SandConstituent = SandFraction["sandConstituents"][number];
521
+ /** @internal */
522
+ export type ShellConstituent = ShellFraction["shellConstituents"][number];
523
+ /** @internal */
524
+ export type GravelConstituent = GravelFraction["gravelConstituents"][number];
525
+ /** @internal */
526
+ export type PeatConstituent = PeatFraction["peatConstituents"][number];
527
+ /** @internal */
528
+ export type FineFractionDistributionOrganicSoil = NonNullable<FractionDistribution["fineFractionDistributionOrganicSoil"]>;
529
+ /** @internal */
530
+ export type FineFractionDistributionShellySoil = NonNullable<FractionDistribution["fineFractionDistributionShellySoil"]>;
531
+ export {};
13
532
  //# sourceMappingURL=bhrg-schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bhrg-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/bhrg-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKhD,eAAO,MAAM,WAAW,EAAE,MAsNzB,CAAC"}
1
+ {"version":3,"file":"bhrg-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/bhrg-schema.ts"],"names":[],"mappings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