@bedrock-engineer/bro-xml-parser 0.4.0 → 0.6.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.
- package/README.md +27 -6
- package/dist/browser.d.ts +8 -6
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +2 -0
- package/dist/browser.js.map +1 -1
- package/dist/core/producer.d.ts +72 -18
- package/dist/core/producer.d.ts.map +1 -1
- package/dist/core/producer.js +31 -11
- package/dist/core/producer.js.map +1 -1
- package/dist/core/schema-parser.d.ts.map +1 -1
- package/dist/core/schema-parser.js +19 -3
- package/dist/core/schema-parser.js.map +1 -1
- package/dist/core/select.d.ts +71 -0
- package/dist/core/select.d.ts.map +1 -0
- package/dist/core/select.js +143 -0
- package/dist/core/select.js.map +1 -0
- package/dist/decoders/type-decoders.d.ts +9 -6
- package/dist/decoders/type-decoders.d.ts.map +1 -1
- package/dist/decoders/type-decoders.js +9 -22
- package/dist/decoders/type-decoders.js.map +1 -1
- package/dist/node.d.ts +8 -6
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +2 -0
- package/dist/node.js.map +1 -1
- package/dist/parser.d.ts +29 -7
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +48 -29
- package/dist/parser.js.map +1 -1
- package/dist/producers.d.ts +5 -4
- package/dist/producers.d.ts.map +1 -1
- package/dist/producers.js +4 -4
- package/dist/producers.js.map +1 -1
- package/dist/reference-codes/bhrg-activity-type.d.ts +4 -8
- package/dist/reference-codes/bhrg-activity-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-activity-type.js +8 -14
- package/dist/reference-codes/bhrg-activity-type.js.map +1 -1
- package/dist/reference-codes/bhrg-analysis-procedure.d.ts +4 -8
- package/dist/reference-codes/bhrg-analysis-procedure.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-analysis-procedure.js +6 -12
- package/dist/reference-codes/bhrg-analysis-procedure.js.map +1 -1
- package/dist/reference-codes/bhrg-angularity.d.ts +4 -8
- package/dist/reference-codes/bhrg-angularity.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-angularity.js +14 -20
- package/dist/reference-codes/bhrg-angularity.js.map +1 -1
- package/dist/reference-codes/bhrg-animal-fossil-type.d.ts +4 -8
- package/dist/reference-codes/bhrg-animal-fossil-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-animal-fossil-type.js +17 -23
- package/dist/reference-codes/bhrg-animal-fossil-type.js.map +1 -1
- package/dist/reference-codes/bhrg-applied-optical-model.d.ts +4 -8
- package/dist/reference-codes/bhrg-applied-optical-model.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-applied-optical-model.js +6 -12
- package/dist/reference-codes/bhrg-applied-optical-model.js.map +1 -1
- package/dist/reference-codes/bhrg-archeological-constituent-type.d.ts +4 -8
- package/dist/reference-codes/bhrg-archeological-constituent-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-archeological-constituent-type.js +18 -24
- package/dist/reference-codes/bhrg-archeological-constituent-type.js.map +1 -1
- package/dist/reference-codes/bhrg-archive-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-archive-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-archive-class.js +15 -21
- package/dist/reference-codes/bhrg-archive-class.js.map +1 -1
- package/dist/reference-codes/bhrg-backfill-material.d.ts +4 -8
- package/dist/reference-codes/bhrg-backfill-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-backfill-material.js +26 -32
- package/dist/reference-codes/bhrg-backfill-material.js.map +1 -1
- package/dist/reference-codes/bhrg-boring-procedure.d.ts +4 -8
- package/dist/reference-codes/bhrg-boring-procedure.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-boring-procedure.js +8 -14
- package/dist/reference-codes/bhrg-boring-procedure.js.map +1 -1
- package/dist/reference-codes/bhrg-boring-technique.d.ts +4 -8
- package/dist/reference-codes/bhrg-boring-technique.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-boring-technique.js +28 -34
- package/dist/reference-codes/bhrg-boring-technique.js.map +1 -1
- package/dist/reference-codes/bhrg-boundary-positioning-method.d.ts +4 -8
- package/dist/reference-codes/bhrg-boundary-positioning-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-boundary-positioning-method.js +14 -20
- package/dist/reference-codes/bhrg-boundary-positioning-method.js.map +1 -1
- package/dist/reference-codes/bhrg-calculation-value-origin.d.ts +4 -8
- package/dist/reference-codes/bhrg-calculation-value-origin.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-calculation-value-origin.js +7 -13
- package/dist/reference-codes/bhrg-calculation-value-origin.js.map +1 -1
- package/dist/reference-codes/bhrg-carbonate-content-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-carbonate-content-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-carbonate-content-class.js +13 -19
- package/dist/reference-codes/bhrg-carbonate-content-class.js.map +1 -1
- package/dist/reference-codes/bhrg-casing-material.d.ts +4 -8
- package/dist/reference-codes/bhrg-casing-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-casing-material.js +11 -17
- package/dist/reference-codes/bhrg-casing-material.js.map +1 -1
- package/dist/reference-codes/bhrg-chunk-size-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-chunk-size-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-chunk-size-class.js +10 -16
- package/dist/reference-codes/bhrg-chunk-size-class.js.map +1 -1
- package/dist/reference-codes/bhrg-colour.d.ts +4 -8
- package/dist/reference-codes/bhrg-colour.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-colour.js +145 -151
- package/dist/reference-codes/bhrg-colour.js.map +1 -1
- package/dist/reference-codes/bhrg-correction-reason.d.ts +4 -8
- package/dist/reference-codes/bhrg-correction-reason.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-correction-reason.js +9 -15
- package/dist/reference-codes/bhrg-correction-reason.js.map +1 -1
- package/dist/reference-codes/bhrg-current-process.d.ts +4 -8
- package/dist/reference-codes/bhrg-current-process.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-current-process.js +9 -15
- package/dist/reference-codes/bhrg-current-process.js.map +1 -1
- package/dist/reference-codes/bhrg-delivery-context.d.ts +4 -8
- package/dist/reference-codes/bhrg-delivery-context.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-delivery-context.js +12 -18
- package/dist/reference-codes/bhrg-delivery-context.js.map +1 -1
- package/dist/reference-codes/bhrg-described-material.d.ts +4 -8
- package/dist/reference-codes/bhrg-described-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-described-material.js +5 -11
- package/dist/reference-codes/bhrg-described-material.js.map +1 -1
- package/dist/reference-codes/bhrg-described-samples-quality.d.ts +4 -8
- package/dist/reference-codes/bhrg-described-samples-quality.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-described-samples-quality.js +8 -14
- package/dist/reference-codes/bhrg-described-samples-quality.js.map +1 -1
- package/dist/reference-codes/bhrg-description-location.d.ts +4 -8
- package/dist/reference-codes/bhrg-description-location.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-description-location.js +8 -14
- package/dist/reference-codes/bhrg-description-location.js.map +1 -1
- package/dist/reference-codes/bhrg-description-procedure.d.ts +4 -8
- package/dist/reference-codes/bhrg-description-procedure.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-description-procedure.js +12 -18
- package/dist/reference-codes/bhrg-description-procedure.js.map +1 -1
- package/dist/reference-codes/bhrg-description-quality.d.ts +4 -8
- package/dist/reference-codes/bhrg-description-quality.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-description-quality.js +12 -18
- package/dist/reference-codes/bhrg-description-quality.js.map +1 -1
- package/dist/reference-codes/bhrg-determination-method.d.ts +4 -8
- package/dist/reference-codes/bhrg-determination-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-determination-method.js +17 -23
- package/dist/reference-codes/bhrg-determination-method.js.map +1 -1
- package/dist/reference-codes/bhrg-determination-procedure.d.ts +4 -8
- package/dist/reference-codes/bhrg-determination-procedure.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-determination-procedure.js +14 -20
- package/dist/reference-codes/bhrg-determination-procedure.js.map +1 -1
- package/dist/reference-codes/bhrg-determined-composition-properties.d.ts +4 -8
- package/dist/reference-codes/bhrg-determined-composition-properties.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-determined-composition-properties.js +9 -15
- package/dist/reference-codes/bhrg-determined-composition-properties.js.map +1 -1
- package/dist/reference-codes/bhrg-determined-hydrophysical-properties.d.ts +4 -8
- package/dist/reference-codes/bhrg-determined-hydrophysical-properties.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-determined-hydrophysical-properties.js +8 -14
- package/dist/reference-codes/bhrg-determined-hydrophysical-properties.js.map +1 -1
- package/dist/reference-codes/bhrg-discipline.d.ts +4 -8
- package/dist/reference-codes/bhrg-discipline.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-discipline.js +9 -15
- package/dist/reference-codes/bhrg-discipline.js.map +1 -1
- package/dist/reference-codes/bhrg-discontinuity-type.d.ts +4 -8
- package/dist/reference-codes/bhrg-discontinuity-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-discontinuity-type.js +11 -17
- package/dist/reference-codes/bhrg-discontinuity-type.js.map +1 -1
- package/dist/reference-codes/bhrg-dispersion-method.d.ts +4 -8
- package/dist/reference-codes/bhrg-dispersion-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-dispersion-method.js +7 -13
- package/dist/reference-codes/bhrg-dispersion-method.js.map +1 -1
- package/dist/reference-codes/bhrg-drying-period.d.ts +4 -8
- package/dist/reference-codes/bhrg-drying-period.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-drying-period.js +8 -14
- package/dist/reference-codes/bhrg-drying-period.js.map +1 -1
- package/dist/reference-codes/bhrg-drying-temperature.d.ts +4 -8
- package/dist/reference-codes/bhrg-drying-temperature.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-drying-temperature.js +6 -12
- package/dist/reference-codes/bhrg-drying-temperature.js.map +1 -1
- package/dist/reference-codes/bhrg-event-name.d.ts +4 -8
- package/dist/reference-codes/bhrg-event-name.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-event-name.js +7 -13
- package/dist/reference-codes/bhrg-event-name.js.map +1 -1
- package/dist/reference-codes/bhrg-excavated-material.d.ts +4 -8
- package/dist/reference-codes/bhrg-excavated-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-excavated-material.js +14 -20
- package/dist/reference-codes/bhrg-excavated-material.js.map +1 -1
- package/dist/reference-codes/bhrg-fine-soil-consistency.d.ts +4 -8
- package/dist/reference-codes/bhrg-fine-soil-consistency.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-fine-soil-consistency.js +17 -23
- package/dist/reference-codes/bhrg-fine-soil-consistency.js.map +1 -1
- package/dist/reference-codes/bhrg-fluid-mud-layer-positioning-method.d.ts +4 -8
- package/dist/reference-codes/bhrg-fluid-mud-layer-positioning-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-fluid-mud-layer-positioning-method.js +14 -20
- package/dist/reference-codes/bhrg-fluid-mud-layer-positioning-method.js.map +1 -1
- package/dist/reference-codes/bhrg-flushing-additive.d.ts +4 -8
- package/dist/reference-codes/bhrg-flushing-additive.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-flushing-additive.js +9 -15
- package/dist/reference-codes/bhrg-flushing-additive.js.map +1 -1
- package/dist/reference-codes/bhrg-fraction-distribution-lab.d.ts +4 -8
- package/dist/reference-codes/bhrg-fraction-distribution-lab.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-fraction-distribution-lab.js +7 -13
- package/dist/reference-codes/bhrg-fraction-distribution-lab.js.map +1 -1
- package/dist/reference-codes/bhrg-geological-origin.d.ts +4 -8
- package/dist/reference-codes/bhrg-geological-origin.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-geological-origin.js +21 -27
- package/dist/reference-codes/bhrg-geological-origin.js.map +1 -1
- package/dist/reference-codes/bhrg-geological-soil-name.d.ts +4 -8
- package/dist/reference-codes/bhrg-geological-soil-name.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-geological-soil-name.js +83 -89
- package/dist/reference-codes/bhrg-geological-soil-name.js.map +1 -1
- package/dist/reference-codes/bhrg-geotechnical-soil-name.d.ts +4 -8
- package/dist/reference-codes/bhrg-geotechnical-soil-name.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-geotechnical-soil-name.js +65 -71
- package/dist/reference-codes/bhrg-geotechnical-soil-name.js.map +1 -1
- package/dist/reference-codes/bhrg-grain-colour.d.ts +4 -8
- package/dist/reference-codes/bhrg-grain-colour.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-grain-colour.js +10 -16
- package/dist/reference-codes/bhrg-grain-colour.js.map +1 -1
- package/dist/reference-codes/bhrg-gravel-content-class-to50.d.ts +11 -0
- package/dist/reference-codes/bhrg-gravel-content-class-to50.d.ts.map +1 -0
- package/dist/reference-codes/bhrg-gravel-content-class-to50.js +16 -0
- package/dist/reference-codes/bhrg-gravel-content-class-to50.js.map +1 -0
- package/dist/reference-codes/bhrg-gravel-content-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-gravel-content-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-gravel-content-class.js +10 -16
- package/dist/reference-codes/bhrg-gravel-content-class.js.map +1 -1
- package/dist/reference-codes/bhrg-gravel-median-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-gravel-median-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-gravel-median-class.js +11 -17
- package/dist/reference-codes/bhrg-gravel-median-class.js.map +1 -1
- package/dist/reference-codes/bhrg-gravel-provenance.d.ts +4 -8
- package/dist/reference-codes/bhrg-gravel-provenance.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-gravel-provenance.js +15 -21
- package/dist/reference-codes/bhrg-gravel-provenance.js.map +1 -1
- package/dist/reference-codes/bhrg-gravel-type.d.ts +4 -8
- package/dist/reference-codes/bhrg-gravel-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-gravel-type.js +63 -69
- package/dist/reference-codes/bhrg-gravel-type.js.map +1 -1
- package/dist/reference-codes/bhrg-horizon-code.d.ts +4 -8
- package/dist/reference-codes/bhrg-horizon-code.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-horizon-code.js +14 -20
- package/dist/reference-codes/bhrg-horizon-code.js.map +1 -1
- package/dist/reference-codes/bhrg-horizontal-positioning-method.d.ts +4 -8
- package/dist/reference-codes/bhrg-horizontal-positioning-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-horizontal-positioning-method.js +26 -32
- package/dist/reference-codes/bhrg-horizontal-positioning-method.js.map +1 -1
- package/dist/reference-codes/bhrg-human-trace.d.ts +4 -8
- package/dist/reference-codes/bhrg-human-trace.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-human-trace.js +7 -13
- package/dist/reference-codes/bhrg-human-trace.js.map +1 -1
- package/dist/reference-codes/bhrg-hydrological-setting.d.ts +4 -8
- package/dist/reference-codes/bhrg-hydrological-setting.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-hydrological-setting.js +8 -14
- package/dist/reference-codes/bhrg-hydrological-setting.js.map +1 -1
- package/dist/reference-codes/bhrg-landscape-element.d.ts +4 -8
- package/dist/reference-codes/bhrg-landscape-element.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-landscape-element.js +44 -50
- package/dist/reference-codes/bhrg-landscape-element.js.map +1 -1
- package/dist/reference-codes/bhrg-layer-proportion-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-layer-proportion-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-layer-proportion-class.js +13 -19
- package/dist/reference-codes/bhrg-layer-proportion-class.js.map +1 -1
- package/dist/reference-codes/bhrg-local-vertical-reference-point.d.ts +4 -8
- package/dist/reference-codes/bhrg-local-vertical-reference-point.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-local-vertical-reference-point.js +6 -12
- package/dist/reference-codes/bhrg-local-vertical-reference-point.js.map +1 -1
- package/dist/reference-codes/bhrg-mass-percentage-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-mass-percentage-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-mass-percentage-class.js +11 -17
- package/dist/reference-codes/bhrg-mass-percentage-class.js.map +1 -1
- package/dist/reference-codes/bhrg-material-irregularity.d.ts +4 -8
- package/dist/reference-codes/bhrg-material-irregularity.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-material-irregularity.js +12 -18
- package/dist/reference-codes/bhrg-material-irregularity.js.map +1 -1
- package/dist/reference-codes/bhrg-material-shape.d.ts +4 -8
- package/dist/reference-codes/bhrg-material-shape.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-material-shape.js +15 -21
- package/dist/reference-codes/bhrg-material-shape.js.map +1 -1
- package/dist/reference-codes/bhrg-mica-content-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-mica-content-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-mica-content-class.js +9 -15
- package/dist/reference-codes/bhrg-mica-content-class.js.map +1 -1
- package/dist/reference-codes/bhrg-mottling-density.d.ts +4 -8
- package/dist/reference-codes/bhrg-mottling-density.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-mottling-density.js +14 -20
- package/dist/reference-codes/bhrg-mottling-density.js.map +1 -1
- package/dist/reference-codes/bhrg-munsell-chroma.d.ts +4 -8
- package/dist/reference-codes/bhrg-munsell-chroma.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-munsell-chroma.js +10 -16
- package/dist/reference-codes/bhrg-munsell-chroma.js.map +1 -1
- package/dist/reference-codes/bhrg-munsell-hue.d.ts +4 -8
- package/dist/reference-codes/bhrg-munsell-hue.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-munsell-hue.js +26 -33
- package/dist/reference-codes/bhrg-munsell-hue.js.map +1 -1
- package/dist/reference-codes/bhrg-munsell-value.d.ts +4 -8
- package/dist/reference-codes/bhrg-munsell-value.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-munsell-value.js +16 -22
- package/dist/reference-codes/bhrg-munsell-value.js.map +1 -1
- package/dist/reference-codes/bhrg-no-description-reason.d.ts +4 -8
- package/dist/reference-codes/bhrg-no-description-reason.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-no-description-reason.js +14 -20
- package/dist/reference-codes/bhrg-no-description-reason.js.map +1 -1
- package/dist/reference-codes/bhrg-organic-matter-content-class-nen5104.d.ts +4 -8
- package/dist/reference-codes/bhrg-organic-matter-content-class-nen5104.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-organic-matter-content-class-nen5104.js +10 -16
- package/dist/reference-codes/bhrg-organic-matter-content-class-nen5104.js.map +1 -1
- package/dist/reference-codes/bhrg-organic-matter-content-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-organic-matter-content-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-organic-matter-content-class.js +7 -13
- package/dist/reference-codes/bhrg-organic-matter-content-class.js.map +1 -1
- package/dist/reference-codes/bhrg-organic-soil-consistency.d.ts +4 -8
- package/dist/reference-codes/bhrg-organic-soil-consistency.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-organic-soil-consistency.js +10 -16
- package/dist/reference-codes/bhrg-organic-soil-consistency.js.map +1 -1
- package/dist/reference-codes/bhrg-organic-soil-texture.d.ts +4 -8
- package/dist/reference-codes/bhrg-organic-soil-texture.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-organic-soil-texture.js +15 -21
- package/dist/reference-codes/bhrg-organic-soil-texture.js.map +1 -1
- package/dist/reference-codes/bhrg-particular-constituent-type.d.ts +4 -8
- package/dist/reference-codes/bhrg-particular-constituent-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-particular-constituent-type.js +29 -35
- package/dist/reference-codes/bhrg-particular-constituent-type.js.map +1 -1
- package/dist/reference-codes/bhrg-peat-type.d.ts +4 -8
- package/dist/reference-codes/bhrg-peat-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-peat-type.js +13 -19
- package/dist/reference-codes/bhrg-peat-type.js.map +1 -1
- package/dist/reference-codes/bhrg-performance-irregularity.d.ts +4 -8
- package/dist/reference-codes/bhrg-performance-irregularity.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-performance-irregularity.js +10 -16
- package/dist/reference-codes/bhrg-performance-irregularity.js.map +1 -1
- package/dist/reference-codes/bhrg-plant-remain-type.d.ts +4 -8
- package/dist/reference-codes/bhrg-plant-remain-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-plant-remain-type.js +26 -32
- package/dist/reference-codes/bhrg-plant-remain-type.js.map +1 -1
- package/dist/reference-codes/bhrg-position-on-ground-body.d.ts +4 -8
- package/dist/reference-codes/bhrg-position-on-ground-body.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-position-on-ground-body.js +9 -15
- package/dist/reference-codes/bhrg-position-on-ground-body.js.map +1 -1
- package/dist/reference-codes/bhrg-pre-treatment.d.ts +4 -8
- package/dist/reference-codes/bhrg-pre-treatment.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-pre-treatment.js +9 -15
- package/dist/reference-codes/bhrg-pre-treatment.js.map +1 -1
- package/dist/reference-codes/bhrg-preparation.d.ts +4 -8
- package/dist/reference-codes/bhrg-preparation.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-preparation.js +11 -17
- package/dist/reference-codes/bhrg-preparation.js.map +1 -1
- package/dist/reference-codes/bhrg-relative-abundance-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-relative-abundance-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-relative-abundance-class.js +10 -16
- package/dist/reference-codes/bhrg-relative-abundance-class.js.map +1 -1
- package/dist/reference-codes/bhrg-removal-method-carbonate.d.ts +4 -8
- package/dist/reference-codes/bhrg-removal-method-carbonate.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-removal-method-carbonate.js +7 -13
- package/dist/reference-codes/bhrg-removal-method-carbonate.js.map +1 -1
- package/dist/reference-codes/bhrg-removal-method-organic-matter.d.ts +4 -8
- package/dist/reference-codes/bhrg-removal-method-organic-matter.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-removal-method-organic-matter.js +7 -13
- package/dist/reference-codes/bhrg-removal-method-organic-matter.js.map +1 -1
- package/dist/reference-codes/bhrg-removed-material.d.ts +4 -8
- package/dist/reference-codes/bhrg-removed-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-removed-material.js +15 -21
- package/dist/reference-codes/bhrg-removed-material.js.map +1 -1
- package/dist/reference-codes/bhrg-rock-type.d.ts +4 -8
- package/dist/reference-codes/bhrg-rock-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-rock-type.js +11 -17
- package/dist/reference-codes/bhrg-rock-type.js.map +1 -1
- package/dist/reference-codes/bhrg-salt-correction-method.d.ts +4 -8
- package/dist/reference-codes/bhrg-salt-correction-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-salt-correction-method.js +7 -13
- package/dist/reference-codes/bhrg-salt-correction-method.js.map +1 -1
- package/dist/reference-codes/bhrg-sample-container-volume.d.ts +4 -8
- package/dist/reference-codes/bhrg-sample-container-volume.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-sample-container-volume.js +6 -12
- package/dist/reference-codes/bhrg-sample-container-volume.js.map +1 -1
- package/dist/reference-codes/bhrg-sample-moistness.d.ts +4 -8
- package/dist/reference-codes/bhrg-sample-moistness.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-sample-moistness.js +8 -14
- package/dist/reference-codes/bhrg-sample-moistness.js.map +1 -1
- package/dist/reference-codes/bhrg-sample-quality.d.ts +4 -8
- package/dist/reference-codes/bhrg-sample-quality.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-sample-quality.js +9 -15
- package/dist/reference-codes/bhrg-sample-quality.js.map +1 -1
- package/dist/reference-codes/bhrg-sampler-type.d.ts +4 -8
- package/dist/reference-codes/bhrg-sampler-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-sampler-type.js +12 -18
- package/dist/reference-codes/bhrg-sampler-type.js.map +1 -1
- package/dist/reference-codes/bhrg-sampling-method.d.ts +4 -8
- package/dist/reference-codes/bhrg-sampling-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-sampling-method.js +20 -26
- package/dist/reference-codes/bhrg-sampling-method.js.map +1 -1
- package/dist/reference-codes/bhrg-sampling-procedure.d.ts +4 -8
- package/dist/reference-codes/bhrg-sampling-procedure.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-sampling-procedure.js +7 -13
- package/dist/reference-codes/bhrg-sampling-procedure.js.map +1 -1
- package/dist/reference-codes/bhrg-sampling-quality.d.ts +4 -8
- package/dist/reference-codes/bhrg-sampling-quality.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-sampling-quality.js +13 -19
- package/dist/reference-codes/bhrg-sampling-quality.js.map +1 -1
- package/dist/reference-codes/bhrg-sand-median-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-sand-median-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-sand-median-class.js +18 -24
- package/dist/reference-codes/bhrg-sand-median-class.js.map +1 -1
- package/dist/reference-codes/bhrg-sand-median-class50to2000.d.ts +11 -0
- package/dist/reference-codes/bhrg-sand-median-class50to2000.d.ts.map +1 -0
- package/dist/reference-codes/bhrg-sand-median-class50to2000.js +18 -0
- package/dist/reference-codes/bhrg-sand-median-class50to2000.js.map +1 -0
- package/dist/reference-codes/bhrg-sand-sorting.d.ts +4 -8
- package/dist/reference-codes/bhrg-sand-sorting.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-sand-sorting.js +15 -21
- package/dist/reference-codes/bhrg-sand-sorting.js.map +1 -1
- package/dist/reference-codes/bhrg-saturation-method.d.ts +4 -8
- package/dist/reference-codes/bhrg-saturation-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-saturation-method.js +6 -12
- package/dist/reference-codes/bhrg-saturation-method.js.map +1 -1
- package/dist/reference-codes/bhrg-sedimentary-phenomenon.d.ts +4 -8
- package/dist/reference-codes/bhrg-sedimentary-phenomenon.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-sedimentary-phenomenon.js +6 -12
- package/dist/reference-codes/bhrg-sedimentary-phenomenon.js.map +1 -1
- package/dist/reference-codes/bhrg-shell-taxon.d.ts +4 -8
- package/dist/reference-codes/bhrg-shell-taxon.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-shell-taxon.js +163 -169
- package/dist/reference-codes/bhrg-shell-taxon.js.map +1 -1
- package/dist/reference-codes/bhrg-soil-name-berendsen-stouthamer.d.ts +11 -0
- package/dist/reference-codes/bhrg-soil-name-berendsen-stouthamer.d.ts.map +1 -0
- package/dist/reference-codes/bhrg-soil-name-berendsen-stouthamer.js +42 -0
- package/dist/reference-codes/bhrg-soil-name-berendsen-stouthamer.js.map +1 -0
- package/dist/reference-codes/bhrg-soil-name-nen5104.d.ts +4 -8
- package/dist/reference-codes/bhrg-soil-name-nen5104.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-soil-name-nen5104.js +82 -88
- package/dist/reference-codes/bhrg-soil-name-nen5104.js.map +1 -1
- package/dist/reference-codes/bhrg-soil-type.d.ts +4 -8
- package/dist/reference-codes/bhrg-soil-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-soil-type.js +20 -26
- package/dist/reference-codes/bhrg-soil-type.js.map +1 -1
- package/dist/reference-codes/bhrg-soil-use.d.ts +4 -8
- package/dist/reference-codes/bhrg-soil-use.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-soil-use.js +16 -22
- package/dist/reference-codes/bhrg-soil-use.js.map +1 -1
- package/dist/reference-codes/bhrg-special-material.d.ts +4 -8
- package/dist/reference-codes/bhrg-special-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-special-material.js +25 -31
- package/dist/reference-codes/bhrg-special-material.js.map +1 -1
- package/dist/reference-codes/bhrg-sphericity.d.ts +4 -8
- package/dist/reference-codes/bhrg-sphericity.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-sphericity.js +7 -13
- package/dist/reference-codes/bhrg-sphericity.js.map +1 -1
- package/dist/reference-codes/bhrg-stain-colour.d.ts +4 -8
- package/dist/reference-codes/bhrg-stain-colour.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-stain-colour.js +19 -25
- package/dist/reference-codes/bhrg-stain-colour.js.map +1 -1
- package/dist/reference-codes/bhrg-stop-criterion-field.d.ts +4 -8
- package/dist/reference-codes/bhrg-stop-criterion-field.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-stop-criterion-field.js +17 -23
- package/dist/reference-codes/bhrg-stop-criterion-field.js.map +1 -1
- package/dist/reference-codes/bhrg-stratum-thickness-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-stratum-thickness-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-stratum-thickness-class.js +14 -20
- package/dist/reference-codes/bhrg-stratum-thickness-class.js.map +1 -1
- package/dist/reference-codes/bhrg-structure.d.ts +4 -8
- package/dist/reference-codes/bhrg-structure.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-structure.js +20 -26
- package/dist/reference-codes/bhrg-structure.js.map +1 -1
- package/dist/reference-codes/bhrg-survey-procedure.d.ts +4 -8
- package/dist/reference-codes/bhrg-survey-procedure.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-survey-procedure.js +6 -12
- package/dist/reference-codes/bhrg-survey-procedure.js.map +1 -1
- package/dist/reference-codes/bhrg-survey-purpose.d.ts +4 -8
- package/dist/reference-codes/bhrg-survey-purpose.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-survey-purpose.js +17 -23
- package/dist/reference-codes/bhrg-survey-purpose.js.map +1 -1
- package/dist/reference-codes/bhrg-temporary-change.d.ts +4 -8
- package/dist/reference-codes/bhrg-temporary-change.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-temporary-change.js +11 -17
- package/dist/reference-codes/bhrg-temporary-change.js.map +1 -1
- package/dist/reference-codes/bhrg-used-medium.d.ts +4 -8
- package/dist/reference-codes/bhrg-used-medium.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-used-medium.js +10 -16
- package/dist/reference-codes/bhrg-used-medium.js.map +1 -1
- package/dist/reference-codes/bhrg-utensil.d.ts +4 -8
- package/dist/reference-codes/bhrg-utensil.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-utensil.js +11 -17
- package/dist/reference-codes/bhrg-utensil.js.map +1 -1
- package/dist/reference-codes/bhrg-variegation.d.ts +4 -8
- package/dist/reference-codes/bhrg-variegation.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-variegation.js +11 -17
- package/dist/reference-codes/bhrg-variegation.js.map +1 -1
- package/dist/reference-codes/bhrg-vertical-datum.d.ts +4 -8
- package/dist/reference-codes/bhrg-vertical-datum.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-vertical-datum.js +7 -13
- package/dist/reference-codes/bhrg-vertical-datum.js.map +1 -1
- package/dist/reference-codes/bhrg-vertical-positioning-method.d.ts +4 -8
- package/dist/reference-codes/bhrg-vertical-positioning-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-vertical-positioning-method.js +32 -38
- package/dist/reference-codes/bhrg-vertical-positioning-method.js.map +1 -1
- package/dist/reference-codes/bhrg-vertical-trend.d.ts +4 -8
- package/dist/reference-codes/bhrg-vertical-trend.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-vertical-trend.js +44 -50
- package/dist/reference-codes/bhrg-vertical-trend.js.map +1 -1
- package/dist/reference-codes/bhrg-very-coarse-fraction-content-class-archive.d.ts +4 -8
- package/dist/reference-codes/bhrg-very-coarse-fraction-content-class-archive.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-very-coarse-fraction-content-class-archive.js +11 -17
- package/dist/reference-codes/bhrg-very-coarse-fraction-content-class-archive.js.map +1 -1
- package/dist/reference-codes/bhrg-very-coarse-fraction-content-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-very-coarse-fraction-content-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-very-coarse-fraction-content-class.js +10 -16
- package/dist/reference-codes/bhrg-very-coarse-fraction-content-class.js.map +1 -1
- package/dist/reference-codes/bhrg-volume-percentage-class.d.ts +4 -8
- package/dist/reference-codes/bhrg-volume-percentage-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-volume-percentage-class.js +13 -19
- package/dist/reference-codes/bhrg-volume-percentage-class.js.map +1 -1
- package/dist/reference-codes/bhrg-weathering-degree.d.ts +4 -8
- package/dist/reference-codes/bhrg-weathering-degree.d.ts.map +1 -1
- package/dist/reference-codes/bhrg-weathering-degree.js +8 -14
- package/dist/reference-codes/bhrg-weathering-degree.js.map +1 -1
- package/dist/reference-codes/bhrgt-activity-type.d.ts +4 -8
- package/dist/reference-codes/bhrgt-activity-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-activity-type.js +9 -15
- package/dist/reference-codes/bhrgt-activity-type.js.map +1 -1
- package/dist/reference-codes/bhrgt-analysis-procedure.d.ts +4 -8
- package/dist/reference-codes/bhrgt-analysis-procedure.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-analysis-procedure.js +6 -12
- package/dist/reference-codes/bhrgt-analysis-procedure.js.map +1 -1
- package/dist/reference-codes/bhrgt-analysis-type.d.ts +4 -8
- package/dist/reference-codes/bhrgt-analysis-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-analysis-type.js +19 -25
- package/dist/reference-codes/bhrgt-analysis-type.js.map +1 -1
- package/dist/reference-codes/bhrgt-angularity.d.ts +4 -8
- package/dist/reference-codes/bhrgt-angularity.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-angularity.js +13 -19
- package/dist/reference-codes/bhrgt-angularity.js.map +1 -1
- package/dist/reference-codes/bhrgt-aperture-class-discontinuity.d.ts +4 -8
- package/dist/reference-codes/bhrgt-aperture-class-discontinuity.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-aperture-class-discontinuity.js +10 -16
- package/dist/reference-codes/bhrgt-aperture-class-discontinuity.js.map +1 -1
- package/dist/reference-codes/bhrgt-aperture-class.d.ts +4 -8
- package/dist/reference-codes/bhrgt-aperture-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-aperture-class.js +10 -16
- package/dist/reference-codes/bhrgt-aperture-class.js.map +1 -1
- package/dist/reference-codes/bhrgt-backfill-material.d.ts +4 -8
- package/dist/reference-codes/bhrgt-backfill-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-backfill-material.js +26 -32
- package/dist/reference-codes/bhrgt-backfill-material.js.map +1 -1
- package/dist/reference-codes/bhrgt-bedding.d.ts +4 -8
- package/dist/reference-codes/bhrgt-bedding.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-bedding.js +11 -17
- package/dist/reference-codes/bhrgt-bedding.js.map +1 -1
- package/dist/reference-codes/bhrgt-boring-procedure.d.ts +4 -8
- package/dist/reference-codes/bhrgt-boring-procedure.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-boring-procedure.js +8 -14
- package/dist/reference-codes/bhrgt-boring-procedure.js.map +1 -1
- package/dist/reference-codes/bhrgt-boring-technique.d.ts +4 -8
- package/dist/reference-codes/bhrgt-boring-technique.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-boring-technique.js +28 -34
- package/dist/reference-codes/bhrgt-boring-technique.js.map +1 -1
- package/dist/reference-codes/bhrgt-boundary-positioning-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-boundary-positioning-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-boundary-positioning-method.js +11 -17
- package/dist/reference-codes/bhrgt-boundary-positioning-method.js.map +1 -1
- package/dist/reference-codes/bhrgt-calculation-value-source.d.ts +4 -8
- package/dist/reference-codes/bhrgt-calculation-value-source.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-calculation-value-source.js +7 -13
- package/dist/reference-codes/bhrgt-calculation-value-source.js.map +1 -1
- package/dist/reference-codes/bhrgt-carbonate-content-class.d.ts +4 -8
- package/dist/reference-codes/bhrgt-carbonate-content-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-carbonate-content-class.js +11 -17
- package/dist/reference-codes/bhrgt-carbonate-content-class.js.map +1 -1
- package/dist/reference-codes/bhrgt-casing-material.d.ts +4 -8
- package/dist/reference-codes/bhrgt-casing-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-casing-material.js +11 -17
- package/dist/reference-codes/bhrgt-casing-material.js.map +1 -1
- package/dist/reference-codes/bhrgt-cement-type.d.ts +4 -8
- package/dist/reference-codes/bhrgt-cement-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-cement-type.js +9 -15
- package/dist/reference-codes/bhrgt-cement-type.js.map +1 -1
- package/dist/reference-codes/bhrgt-colour.d.ts +4 -8
- package/dist/reference-codes/bhrgt-colour.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-colour.js +36 -42
- package/dist/reference-codes/bhrgt-colour.js.map +1 -1
- package/dist/reference-codes/bhrgt-consolidation-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-consolidation-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-consolidation-method.js +8 -14
- package/dist/reference-codes/bhrgt-consolidation-method.js.map +1 -1
- package/dist/reference-codes/bhrgt-conus-type.d.ts +4 -8
- package/dist/reference-codes/bhrgt-conus-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-conus-type.js +6 -12
- package/dist/reference-codes/bhrgt-conus-type.js.map +1 -1
- package/dist/reference-codes/bhrgt-correction-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-correction-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-correction-method.js +7 -13
- package/dist/reference-codes/bhrgt-correction-method.js.map +1 -1
- package/dist/reference-codes/bhrgt-correction-reason.d.ts +4 -8
- package/dist/reference-codes/bhrgt-correction-reason.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-correction-reason.js +9 -15
- package/dist/reference-codes/bhrgt-correction-reason.js.map +1 -1
- package/dist/reference-codes/bhrgt-decomposition.d.ts +4 -8
- package/dist/reference-codes/bhrgt-decomposition.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-decomposition.js +7 -13
- package/dist/reference-codes/bhrgt-decomposition.js.map +1 -1
- package/dist/reference-codes/bhrgt-delivery-context.d.ts +4 -8
- package/dist/reference-codes/bhrgt-delivery-context.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-delivery-context.js +12 -18
- package/dist/reference-codes/bhrgt-delivery-context.js.map +1 -1
- package/dist/reference-codes/bhrgt-depositional-age.d.ts +4 -8
- package/dist/reference-codes/bhrgt-depositional-age.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-depositional-age.js +8 -14
- package/dist/reference-codes/bhrgt-depositional-age.js.map +1 -1
- package/dist/reference-codes/bhrgt-depositional-characteristic.d.ts +4 -8
- package/dist/reference-codes/bhrgt-depositional-characteristic.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-depositional-characteristic.js +20 -26
- package/dist/reference-codes/bhrgt-depositional-characteristic.js.map +1 -1
- package/dist/reference-codes/bhrgt-described-material.d.ts +4 -8
- package/dist/reference-codes/bhrgt-described-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-described-material.js +7 -13
- package/dist/reference-codes/bhrgt-described-material.js.map +1 -1
- package/dist/reference-codes/bhrgt-description-location.d.ts +4 -8
- package/dist/reference-codes/bhrgt-description-location.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-description-location.js +8 -14
- package/dist/reference-codes/bhrgt-description-location.js.map +1 -1
- package/dist/reference-codes/bhrgt-description-procedure.d.ts +4 -8
- package/dist/reference-codes/bhrgt-description-procedure.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-description-procedure.js +8 -14
- package/dist/reference-codes/bhrgt-description-procedure.js.map +1 -1
- package/dist/reference-codes/bhrgt-description-quality.d.ts +4 -8
- package/dist/reference-codes/bhrgt-description-quality.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-description-quality.js +9 -15
- package/dist/reference-codes/bhrgt-description-quality.js.map +1 -1
- package/dist/reference-codes/bhrgt-determination-diameter.d.ts +4 -8
- package/dist/reference-codes/bhrgt-determination-diameter.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-determination-diameter.js +12 -18
- package/dist/reference-codes/bhrgt-determination-diameter.js.map +1 -1
- package/dist/reference-codes/bhrgt-determination-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-determination-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-determination-method.js +34 -40
- package/dist/reference-codes/bhrgt-determination-method.js.map +1 -1
- package/dist/reference-codes/bhrgt-determination-procedure.d.ts +4 -8
- package/dist/reference-codes/bhrgt-determination-procedure.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-determination-procedure.js +20 -26
- package/dist/reference-codes/bhrgt-determination-procedure.js.map +1 -1
- package/dist/reference-codes/bhrgt-determined-properties.d.ts +4 -8
- package/dist/reference-codes/bhrgt-determined-properties.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-determined-properties.js +18 -24
- package/dist/reference-codes/bhrgt-determined-properties.js.map +1 -1
- package/dist/reference-codes/bhrgt-discipline.d.ts +4 -8
- package/dist/reference-codes/bhrgt-discipline.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-discipline.js +8 -14
- package/dist/reference-codes/bhrgt-discipline.js.map +1 -1
- package/dist/reference-codes/bhrgt-discolouration.d.ts +4 -8
- package/dist/reference-codes/bhrgt-discolouration.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-discolouration.js +7 -13
- package/dist/reference-codes/bhrgt-discolouration.js.map +1 -1
- package/dist/reference-codes/bhrgt-discontinuity-type.d.ts +4 -8
- package/dist/reference-codes/bhrgt-discontinuity-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-discontinuity-type.js +8 -14
- package/dist/reference-codes/bhrgt-discontinuity-type.js.map +1 -1
- package/dist/reference-codes/bhrgt-disintegration.d.ts +4 -8
- package/dist/reference-codes/bhrgt-disintegration.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-disintegration.js +7 -13
- package/dist/reference-codes/bhrgt-disintegration.js.map +1 -1
- package/dist/reference-codes/bhrgt-dispersed-inhomogeneity.d.ts +4 -8
- package/dist/reference-codes/bhrgt-dispersed-inhomogeneity.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-dispersed-inhomogeneity.js +35 -41
- package/dist/reference-codes/bhrgt-dispersed-inhomogeneity.js.map +1 -1
- package/dist/reference-codes/bhrgt-dispersion-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-dispersion-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-dispersion-method.js +7 -13
- package/dist/reference-codes/bhrgt-dispersion-method.js.map +1 -1
- package/dist/reference-codes/bhrgt-drainage-strip-coverage.d.ts +4 -8
- package/dist/reference-codes/bhrgt-drainage-strip-coverage.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-drainage-strip-coverage.js +9 -15
- package/dist/reference-codes/bhrgt-drainage-strip-coverage.js.map +1 -1
- package/dist/reference-codes/bhrgt-drainage-strip-orientation.d.ts +4 -8
- package/dist/reference-codes/bhrgt-drainage-strip-orientation.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-drainage-strip-orientation.js +7 -13
- package/dist/reference-codes/bhrgt-drainage-strip-orientation.js.map +1 -1
- package/dist/reference-codes/bhrgt-drying-period.d.ts +4 -8
- package/dist/reference-codes/bhrgt-drying-period.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-drying-period.js +7 -13
- package/dist/reference-codes/bhrgt-drying-period.js.map +1 -1
- package/dist/reference-codes/bhrgt-drying-temperature.d.ts +4 -8
- package/dist/reference-codes/bhrgt-drying-temperature.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-drying-temperature.js +7 -13
- package/dist/reference-codes/bhrgt-drying-temperature.js.map +1 -1
- package/dist/reference-codes/bhrgt-equivalent-mass-determination-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-equivalent-mass-determination-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-equivalent-mass-determination-method.js +7 -13
- package/dist/reference-codes/bhrgt-equivalent-mass-determination-method.js.map +1 -1
- package/dist/reference-codes/bhrgt-event-name.d.ts +4 -8
- package/dist/reference-codes/bhrgt-event-name.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-event-name.js +8 -14
- package/dist/reference-codes/bhrgt-event-name.js.map +1 -1
- package/dist/reference-codes/bhrgt-excavated-material.d.ts +4 -8
- package/dist/reference-codes/bhrgt-excavated-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-excavated-material.js +13 -19
- package/dist/reference-codes/bhrgt-excavated-material.js.map +1 -1
- package/dist/reference-codes/bhrgt-fine-gravel-content-class.d.ts +4 -8
- package/dist/reference-codes/bhrgt-fine-gravel-content-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-fine-gravel-content-class.js +9 -15
- package/dist/reference-codes/bhrgt-fine-gravel-content-class.js.map +1 -1
- package/dist/reference-codes/bhrgt-fine-soil-consistency.d.ts +4 -8
- package/dist/reference-codes/bhrgt-fine-soil-consistency.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-fine-soil-consistency.js +17 -23
- package/dist/reference-codes/bhrgt-fine-soil-consistency.js.map +1 -1
- package/dist/reference-codes/bhrgt-fluid-mud-layer-positioning-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-fluid-mud-layer-positioning-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-fluid-mud-layer-positioning-method.js +14 -20
- package/dist/reference-codes/bhrgt-fluid-mud-layer-positioning-method.js.map +1 -1
- package/dist/reference-codes/bhrgt-flushing-additive.d.ts +4 -8
- package/dist/reference-codes/bhrgt-flushing-additive.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-flushing-additive.js +10 -16
- package/dist/reference-codes/bhrgt-flushing-additive.js.map +1 -1
- package/dist/reference-codes/bhrgt-fraction-distribution.d.ts +4 -8
- package/dist/reference-codes/bhrgt-fraction-distribution.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-fraction-distribution.js +13 -19
- package/dist/reference-codes/bhrgt-fraction-distribution.js.map +1 -1
- package/dist/reference-codes/bhrgt-geotechnical-depositional-characteristic.d.ts +4 -8
- package/dist/reference-codes/bhrgt-geotechnical-depositional-characteristic.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-geotechnical-depositional-characteristic.js +20 -26
- package/dist/reference-codes/bhrgt-geotechnical-depositional-characteristic.js.map +1 -1
- package/dist/reference-codes/bhrgt-geotechnical-soil-name.d.ts +4 -8
- package/dist/reference-codes/bhrgt-geotechnical-soil-name.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-geotechnical-soil-name.js +65 -71
- package/dist/reference-codes/bhrgt-geotechnical-soil-name.js.map +1 -1
- package/dist/reference-codes/bhrgt-gravel-content-class-nen5104.d.ts +4 -8
- package/dist/reference-codes/bhrgt-gravel-content-class-nen5104.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-gravel-content-class-nen5104.js +8 -14
- package/dist/reference-codes/bhrgt-gravel-content-class-nen5104.js.map +1 -1
- package/dist/reference-codes/bhrgt-gravel-content-class.d.ts +4 -8
- package/dist/reference-codes/bhrgt-gravel-content-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-gravel-content-class.js +8 -14
- package/dist/reference-codes/bhrgt-gravel-content-class.js.map +1 -1
- package/dist/reference-codes/bhrgt-gravel-median-class.d.ts +4 -8
- package/dist/reference-codes/bhrgt-gravel-median-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-gravel-median-class.js +10 -16
- package/dist/reference-codes/bhrgt-gravel-median-class.js.map +1 -1
- package/dist/reference-codes/bhrgt-horizontal-positioning-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-horizontal-positioning-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-horizontal-positioning-method.js +24 -30
- package/dist/reference-codes/bhrgt-horizontal-positioning-method.js.map +1 -1
- package/dist/reference-codes/bhrgt-infill-material.d.ts +4 -8
- package/dist/reference-codes/bhrgt-infill-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-infill-material.js +12 -18
- package/dist/reference-codes/bhrgt-infill-material.js.map +1 -1
- package/dist/reference-codes/bhrgt-interbedding.d.ts +4 -8
- package/dist/reference-codes/bhrgt-interbedding.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-interbedding.js +155 -161
- package/dist/reference-codes/bhrgt-interbedding.js.map +1 -1
- package/dist/reference-codes/bhrgt-lateral-support.d.ts +4 -8
- package/dist/reference-codes/bhrgt-lateral-support.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-lateral-support.js +6 -12
- package/dist/reference-codes/bhrgt-lateral-support.js.map +1 -1
- package/dist/reference-codes/bhrgt-local-vertical-reference-point.d.ts +4 -8
- package/dist/reference-codes/bhrgt-local-vertical-reference-point.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-local-vertical-reference-point.js +6 -12
- package/dist/reference-codes/bhrgt-local-vertical-reference-point.js.map +1 -1
- package/dist/reference-codes/bhrgt-making-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-making-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-making-method.js +12 -18
- package/dist/reference-codes/bhrgt-making-method.js.map +1 -1
- package/dist/reference-codes/bhrgt-mass-percentage-class.d.ts +4 -8
- package/dist/reference-codes/bhrgt-mass-percentage-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-mass-percentage-class.js +9 -15
- package/dist/reference-codes/bhrgt-mass-percentage-class.js.map +1 -1
- package/dist/reference-codes/bhrgt-material-irregularity.d.ts +4 -8
- package/dist/reference-codes/bhrgt-material-irregularity.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-material-irregularity.js +10 -16
- package/dist/reference-codes/bhrgt-material-irregularity.js.map +1 -1
- package/dist/reference-codes/bhrgt-medium-coarse-gravel-content-class.d.ts +4 -8
- package/dist/reference-codes/bhrgt-medium-coarse-gravel-content-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-medium-coarse-gravel-content-class.js +9 -15
- package/dist/reference-codes/bhrgt-medium-coarse-gravel-content-class.js.map +1 -1
- package/dist/reference-codes/bhrgt-mixing-type.d.ts +4 -8
- package/dist/reference-codes/bhrgt-mixing-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-mixing-type.js +7 -13
- package/dist/reference-codes/bhrgt-mixing-type.js.map +1 -1
- package/dist/reference-codes/bhrgt-no-description-reason.d.ts +4 -8
- package/dist/reference-codes/bhrgt-no-description-reason.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-no-description-reason.js +11 -17
- package/dist/reference-codes/bhrgt-no-description-reason.js.map +1 -1
- package/dist/reference-codes/bhrgt-organic-matter-content-class-nen5104.d.ts +4 -8
- package/dist/reference-codes/bhrgt-organic-matter-content-class-nen5104.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-organic-matter-content-class-nen5104.js +8 -14
- package/dist/reference-codes/bhrgt-organic-matter-content-class-nen5104.js.map +1 -1
- package/dist/reference-codes/bhrgt-organic-matter-content-class.d.ts +4 -8
- package/dist/reference-codes/bhrgt-organic-matter-content-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-organic-matter-content-class.js +7 -13
- package/dist/reference-codes/bhrgt-organic-matter-content-class.js.map +1 -1
- package/dist/reference-codes/bhrgt-organic-soil-consistency.d.ts +4 -8
- package/dist/reference-codes/bhrgt-organic-soil-consistency.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-organic-soil-consistency.js +10 -16
- package/dist/reference-codes/bhrgt-organic-soil-consistency.js.map +1 -1
- package/dist/reference-codes/bhrgt-organic-soil-texture.d.ts +4 -8
- package/dist/reference-codes/bhrgt-organic-soil-texture.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-organic-soil-texture.js +14 -20
- package/dist/reference-codes/bhrgt-organic-soil-texture.js.map +1 -1
- package/dist/reference-codes/bhrgt-particular-constituent-type.d.ts +4 -8
- package/dist/reference-codes/bhrgt-particular-constituent-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-particular-constituent-type.js +46 -52
- package/dist/reference-codes/bhrgt-particular-constituent-type.js.map +1 -1
- package/dist/reference-codes/bhrgt-peat-tensile-strength.d.ts +4 -8
- package/dist/reference-codes/bhrgt-peat-tensile-strength.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-peat-tensile-strength.js +8 -14
- package/dist/reference-codes/bhrgt-peat-tensile-strength.js.map +1 -1
- package/dist/reference-codes/bhrgt-peat-type.d.ts +4 -8
- package/dist/reference-codes/bhrgt-peat-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-peat-type.js +12 -18
- package/dist/reference-codes/bhrgt-peat-type.js.map +1 -1
- package/dist/reference-codes/bhrgt-performance-irregularity.d.ts +4 -8
- package/dist/reference-codes/bhrgt-performance-irregularity.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-performance-irregularity.js +18 -24
- package/dist/reference-codes/bhrgt-performance-irregularity.js.map +1 -1
- package/dist/reference-codes/bhrgt-position-on-ground-body.d.ts +4 -8
- package/dist/reference-codes/bhrgt-position-on-ground-body.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-position-on-ground-body.js +9 -15
- package/dist/reference-codes/bhrgt-position-on-ground-body.js.map +1 -1
- package/dist/reference-codes/bhrgt-pre-treatment.d.ts +4 -8
- package/dist/reference-codes/bhrgt-pre-treatment.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-pre-treatment.js +9 -15
- package/dist/reference-codes/bhrgt-pre-treatment.js.map +1 -1
- package/dist/reference-codes/bhrgt-preparation.d.ts +4 -8
- package/dist/reference-codes/bhrgt-preparation.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-preparation.js +11 -17
- package/dist/reference-codes/bhrgt-preparation.js.map +1 -1
- package/dist/reference-codes/bhrgt-removed-material.d.ts +4 -8
- package/dist/reference-codes/bhrgt-removed-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-removed-material.js +14 -20
- package/dist/reference-codes/bhrgt-removed-material.js.map +1 -1
- package/dist/reference-codes/bhrgt-result-irregularity.d.ts +4 -8
- package/dist/reference-codes/bhrgt-result-irregularity.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-result-irregularity.js +5 -11
- package/dist/reference-codes/bhrgt-result-irregularity.js.map +1 -1
- package/dist/reference-codes/bhrgt-ring-diameter.d.ts +4 -8
- package/dist/reference-codes/bhrgt-ring-diameter.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-ring-diameter.js +6 -12
- package/dist/reference-codes/bhrgt-ring-diameter.js.map +1 -1
- package/dist/reference-codes/bhrgt-rock-type.d.ts +4 -8
- package/dist/reference-codes/bhrgt-rock-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-rock-type.js +28 -34
- package/dist/reference-codes/bhrgt-rock-type.js.map +1 -1
- package/dist/reference-codes/bhrgt-roughness.d.ts +4 -8
- package/dist/reference-codes/bhrgt-roughness.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-roughness.js +6 -12
- package/dist/reference-codes/bhrgt-roughness.js.map +1 -1
- package/dist/reference-codes/bhrgt-salt-correction-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-salt-correction-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-salt-correction-method.js +7 -13
- package/dist/reference-codes/bhrgt-salt-correction-method.js.map +1 -1
- package/dist/reference-codes/bhrgt-sample-container-volume.d.ts +4 -8
- package/dist/reference-codes/bhrgt-sample-container-volume.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-sample-container-volume.js +6 -12
- package/dist/reference-codes/bhrgt-sample-container-volume.js.map +1 -1
- package/dist/reference-codes/bhrgt-sample-moistness.d.ts +4 -8
- package/dist/reference-codes/bhrgt-sample-moistness.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-sample-moistness.js +8 -14
- package/dist/reference-codes/bhrgt-sample-moistness.js.map +1 -1
- package/dist/reference-codes/bhrgt-sample-quality.d.ts +4 -8
- package/dist/reference-codes/bhrgt-sample-quality.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-sample-quality.js +9 -15
- package/dist/reference-codes/bhrgt-sample-quality.js.map +1 -1
- package/dist/reference-codes/bhrgt-sampler-type.d.ts +4 -8
- package/dist/reference-codes/bhrgt-sampler-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-sampler-type.js +12 -18
- package/dist/reference-codes/bhrgt-sampler-type.js.map +1 -1
- package/dist/reference-codes/bhrgt-sampling-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-sampling-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-sampling-method.js +20 -26
- package/dist/reference-codes/bhrgt-sampling-method.js.map +1 -1
- package/dist/reference-codes/bhrgt-sampling-procedure.d.ts +4 -8
- package/dist/reference-codes/bhrgt-sampling-procedure.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-sampling-procedure.js +10 -16
- package/dist/reference-codes/bhrgt-sampling-procedure.js.map +1 -1
- package/dist/reference-codes/bhrgt-sampling-quality.d.ts +4 -8
- package/dist/reference-codes/bhrgt-sampling-quality.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-sampling-quality.js +13 -19
- package/dist/reference-codes/bhrgt-sampling-quality.js.map +1 -1
- package/dist/reference-codes/bhrgt-sand-median-class.d.ts +4 -8
- package/dist/reference-codes/bhrgt-sand-median-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-sand-median-class.js +19 -25
- package/dist/reference-codes/bhrgt-sand-median-class.js.map +1 -1
- package/dist/reference-codes/bhrgt-sand-sorting-nen5104.d.ts +4 -8
- package/dist/reference-codes/bhrgt-sand-sorting-nen5104.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-sand-sorting-nen5104.js +9 -15
- package/dist/reference-codes/bhrgt-sand-sorting-nen5104.js.map +1 -1
- package/dist/reference-codes/bhrgt-sand-sorting.d.ts +4 -8
- package/dist/reference-codes/bhrgt-sand-sorting.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-sand-sorting.js +9 -15
- package/dist/reference-codes/bhrgt-sand-sorting.js.map +1 -1
- package/dist/reference-codes/bhrgt-size-fraction.d.ts +4 -8
- package/dist/reference-codes/bhrgt-size-fraction.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-size-fraction.js +8 -14
- package/dist/reference-codes/bhrgt-size-fraction.js.map +1 -1
- package/dist/reference-codes/bhrgt-soil-name-nen5104.d.ts +4 -8
- package/dist/reference-codes/bhrgt-soil-name-nen5104.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-soil-name-nen5104.js +35 -41
- package/dist/reference-codes/bhrgt-soil-name-nen5104.js.map +1 -1
- package/dist/reference-codes/bhrgt-soil-use.d.ts +4 -8
- package/dist/reference-codes/bhrgt-soil-use.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-soil-use.js +16 -22
- package/dist/reference-codes/bhrgt-soil-use.js.map +1 -1
- package/dist/reference-codes/bhrgt-special-material.d.ts +4 -8
- package/dist/reference-codes/bhrgt-special-material.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-special-material.js +28 -34
- package/dist/reference-codes/bhrgt-special-material.js.map +1 -1
- package/dist/reference-codes/bhrgt-specimen-shape.d.ts +4 -8
- package/dist/reference-codes/bhrgt-specimen-shape.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-specimen-shape.js +9 -15
- package/dist/reference-codes/bhrgt-specimen-shape.js.map +1 -1
- package/dist/reference-codes/bhrgt-sphericity.d.ts +4 -8
- package/dist/reference-codes/bhrgt-sphericity.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-sphericity.js +7 -13
- package/dist/reference-codes/bhrgt-sphericity.js.map +1 -1
- package/dist/reference-codes/bhrgt-stability.d.ts +4 -8
- package/dist/reference-codes/bhrgt-stability.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-stability.js +7 -13
- package/dist/reference-codes/bhrgt-stability.js.map +1 -1
- package/dist/reference-codes/bhrgt-step-type.d.ts +4 -8
- package/dist/reference-codes/bhrgt-step-type.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-step-type.js +7 -13
- package/dist/reference-codes/bhrgt-step-type.js.map +1 -1
- package/dist/reference-codes/bhrgt-stiffness-class-membrane.d.ts +4 -8
- package/dist/reference-codes/bhrgt-stiffness-class-membrane.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-stiffness-class-membrane.js +9 -15
- package/dist/reference-codes/bhrgt-stiffness-class-membrane.js.map +1 -1
- package/dist/reference-codes/bhrgt-stop-criterion-determination.d.ts +4 -8
- package/dist/reference-codes/bhrgt-stop-criterion-determination.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-stop-criterion-determination.js +7 -13
- package/dist/reference-codes/bhrgt-stop-criterion-determination.js.map +1 -1
- package/dist/reference-codes/bhrgt-stop-criterion-field.d.ts +4 -8
- package/dist/reference-codes/bhrgt-stop-criterion-field.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-stop-criterion-field.js +18 -24
- package/dist/reference-codes/bhrgt-stop-criterion-field.js.map +1 -1
- package/dist/reference-codes/bhrgt-stop-criterion.d.ts +4 -8
- package/dist/reference-codes/bhrgt-stop-criterion.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-stop-criterion.js +18 -24
- package/dist/reference-codes/bhrgt-stop-criterion.js.map +1 -1
- package/dist/reference-codes/bhrgt-strength-class.d.ts +4 -8
- package/dist/reference-codes/bhrgt-strength-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-strength-class.js +11 -17
- package/dist/reference-codes/bhrgt-strength-class.js.map +1 -1
- package/dist/reference-codes/bhrgt-survey-procedure.d.ts +4 -8
- package/dist/reference-codes/bhrgt-survey-procedure.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-survey-procedure.js +8 -14
- package/dist/reference-codes/bhrgt-survey-procedure.js.map +1 -1
- package/dist/reference-codes/bhrgt-survey-purpose.d.ts +4 -8
- package/dist/reference-codes/bhrgt-survey-purpose.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-survey-purpose.js +18 -24
- package/dist/reference-codes/bhrgt-survey-purpose.js.map +1 -1
- package/dist/reference-codes/bhrgt-temporary-change.d.ts +4 -8
- package/dist/reference-codes/bhrgt-temporary-change.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-temporary-change.js +11 -17
- package/dist/reference-codes/bhrgt-temporary-change.js.map +1 -1
- package/dist/reference-codes/bhrgt-tertiary-constituent.d.ts +4 -8
- package/dist/reference-codes/bhrgt-tertiary-constituent.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-tertiary-constituent.js +50 -56
- package/dist/reference-codes/bhrgt-tertiary-constituent.js.map +1 -1
- package/dist/reference-codes/bhrgt-tertiary-rock-constituent.d.ts +4 -8
- package/dist/reference-codes/bhrgt-tertiary-rock-constituent.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-tertiary-rock-constituent.js +13 -19
- package/dist/reference-codes/bhrgt-tertiary-rock-constituent.js.map +1 -1
- package/dist/reference-codes/bhrgt-used-medium.d.ts +4 -8
- package/dist/reference-codes/bhrgt-used-medium.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-used-medium.js +17 -23
- package/dist/reference-codes/bhrgt-used-medium.js.map +1 -1
- package/dist/reference-codes/bhrgt-used-optical-model.d.ts +4 -8
- package/dist/reference-codes/bhrgt-used-optical-model.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-used-optical-model.js +6 -12
- package/dist/reference-codes/bhrgt-used-optical-model.js.map +1 -1
- package/dist/reference-codes/bhrgt-vertical-datum.d.ts +4 -8
- package/dist/reference-codes/bhrgt-vertical-datum.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-vertical-datum.js +7 -13
- package/dist/reference-codes/bhrgt-vertical-datum.js.map +1 -1
- package/dist/reference-codes/bhrgt-vertical-positioning-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-vertical-positioning-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-vertical-positioning-method.js +29 -35
- package/dist/reference-codes/bhrgt-vertical-positioning-method.js.map +1 -1
- package/dist/reference-codes/bhrgt-very-coarse-gravel-content-class.d.ts +4 -8
- package/dist/reference-codes/bhrgt-very-coarse-gravel-content-class.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-very-coarse-gravel-content-class.js +9 -15
- package/dist/reference-codes/bhrgt-very-coarse-gravel-content-class.js.map +1 -1
- package/dist/reference-codes/bhrgt-void-distribution.d.ts +4 -8
- package/dist/reference-codes/bhrgt-void-distribution.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-void-distribution.js +6 -12
- package/dist/reference-codes/bhrgt-void-distribution.js.map +1 -1
- package/dist/reference-codes/bhrgt-wall-friction-correction-method.d.ts +4 -8
- package/dist/reference-codes/bhrgt-wall-friction-correction-method.d.ts.map +1 -1
- package/dist/reference-codes/bhrgt-wall-friction-correction-method.js +7 -13
- package/dist/reference-codes/bhrgt-wall-friction-correction-method.js.map +1 -1
- package/dist/reference-codes/bro-coordinate-transformation.d.ts +11 -0
- package/dist/reference-codes/bro-coordinate-transformation.d.ts.map +1 -0
- package/dist/reference-codes/bro-coordinate-transformation.js +19 -0
- package/dist/reference-codes/bro-coordinate-transformation.js.map +1 -0
- package/dist/reference-codes/bro-date-format.d.ts +11 -0
- package/dist/reference-codes/bro-date-format.d.ts.map +1 -0
- package/dist/reference-codes/bro-date-format.js +17 -0
- package/dist/reference-codes/bro-date-format.js.map +1 -0
- package/dist/reference-codes/bro-etrs89transformation.d.ts +11 -0
- package/dist/reference-codes/bro-etrs89transformation.d.ts.map +1 -0
- package/dist/reference-codes/bro-etrs89transformation.js +17 -0
- package/dist/reference-codes/bro-etrs89transformation.js.map +1 -0
- package/dist/reference-codes/bro-horizontal-crs.d.ts +11 -0
- package/dist/reference-codes/bro-horizontal-crs.d.ts.map +1 -0
- package/dist/reference-codes/bro-horizontal-crs.js +15 -0
- package/dist/reference-codes/bro-horizontal-crs.js.map +1 -0
- package/dist/reference-codes/bro-indication-yes-no.d.ts +11 -0
- package/dist/reference-codes/bro-indication-yes-no.d.ts.map +1 -0
- package/dist/reference-codes/bro-indication-yes-no.js +15 -0
- package/dist/reference-codes/bro-indication-yes-no.js.map +1 -0
- package/dist/reference-codes/bro-quality-regime.d.ts +11 -0
- package/dist/reference-codes/bro-quality-regime.d.ts.map +1 -0
- package/dist/reference-codes/bro-quality-regime.js +14 -0
- package/dist/reference-codes/bro-quality-regime.js.map +1 -0
- package/dist/reference-codes/codes-by-domain.d.ts +11 -0
- package/dist/reference-codes/codes-by-domain.d.ts.map +1 -0
- package/dist/reference-codes/codes-by-domain.js +522 -0
- package/dist/reference-codes/codes-by-domain.js.map +1 -0
- package/dist/reference-codes/cpt-coord-transformation.d.ts +4 -8
- package/dist/reference-codes/cpt-coord-transformation.d.ts.map +1 -1
- package/dist/reference-codes/cpt-coord-transformation.js +9 -15
- package/dist/reference-codes/cpt-coord-transformation.js.map +1 -1
- package/dist/reference-codes/cpt-correction-reason.d.ts +4 -8
- package/dist/reference-codes/cpt-correction-reason.d.ts.map +1 -1
- package/dist/reference-codes/cpt-correction-reason.js +9 -15
- package/dist/reference-codes/cpt-correction-reason.js.map +1 -1
- package/dist/reference-codes/cpt-cpt-method.d.ts +4 -8
- package/dist/reference-codes/cpt-cpt-method.d.ts.map +1 -1
- package/dist/reference-codes/cpt-cpt-method.js +11 -17
- package/dist/reference-codes/cpt-cpt-method.js.map +1 -1
- package/dist/reference-codes/cpt-cpt-standard.d.ts +4 -8
- package/dist/reference-codes/cpt-cpt-standard.d.ts.map +1 -1
- package/dist/reference-codes/cpt-cpt-standard.js +10 -16
- package/dist/reference-codes/cpt-cpt-standard.js.map +1 -1
- package/dist/reference-codes/cpt-delivery-context.d.ts +4 -8
- package/dist/reference-codes/cpt-delivery-context.d.ts.map +1 -1
- package/dist/reference-codes/cpt-delivery-context.js +8 -14
- package/dist/reference-codes/cpt-delivery-context.js.map +1 -1
- package/dist/reference-codes/cpt-horizontal-crs.d.ts +4 -8
- package/dist/reference-codes/cpt-horizontal-crs.d.ts.map +1 -1
- package/dist/reference-codes/cpt-horizontal-crs.js +7 -13
- package/dist/reference-codes/cpt-horizontal-crs.js.map +1 -1
- package/dist/reference-codes/cpt-horizontal-positioning-method.d.ts +4 -8
- package/dist/reference-codes/cpt-horizontal-positioning-method.d.ts.map +1 -1
- package/dist/reference-codes/cpt-horizontal-positioning-method.js +20 -26
- package/dist/reference-codes/cpt-horizontal-positioning-method.js.map +1 -1
- package/dist/reference-codes/cpt-local-vertical-reference-point.d.ts +4 -8
- package/dist/reference-codes/cpt-local-vertical-reference-point.d.ts.map +1 -1
- package/dist/reference-codes/cpt-local-vertical-reference-point.js +6 -12
- package/dist/reference-codes/cpt-local-vertical-reference-point.js.map +1 -1
- package/dist/reference-codes/cpt-quality-class.d.ts +4 -8
- package/dist/reference-codes/cpt-quality-class.d.ts.map +1 -1
- package/dist/reference-codes/cpt-quality-class.js +13 -19
- package/dist/reference-codes/cpt-quality-class.js.map +1 -1
- package/dist/reference-codes/cpt-registration-status.d.ts +4 -8
- package/dist/reference-codes/cpt-registration-status.d.ts.map +1 -1
- package/dist/reference-codes/cpt-registration-status.js +5 -11
- package/dist/reference-codes/cpt-registration-status.js.map +1 -1
- package/dist/reference-codes/cpt-stop-criterion.d.ts +4 -8
- package/dist/reference-codes/cpt-stop-criterion.d.ts.map +1 -1
- package/dist/reference-codes/cpt-stop-criterion.js +14 -20
- package/dist/reference-codes/cpt-stop-criterion.js.map +1 -1
- package/dist/reference-codes/cpt-survey-purpose.d.ts +4 -8
- package/dist/reference-codes/cpt-survey-purpose.d.ts.map +1 -1
- package/dist/reference-codes/cpt-survey-purpose.js +13 -19
- package/dist/reference-codes/cpt-survey-purpose.js.map +1 -1
- package/dist/reference-codes/cpt-vertical-datum.d.ts +4 -8
- package/dist/reference-codes/cpt-vertical-datum.d.ts.map +1 -1
- package/dist/reference-codes/cpt-vertical-datum.js +7 -13
- package/dist/reference-codes/cpt-vertical-datum.js.map +1 -1
- package/dist/reference-codes/cpt-vertical-positioning-method.d.ts +4 -8
- package/dist/reference-codes/cpt-vertical-positioning-method.d.ts.map +1 -1
- package/dist/reference-codes/cpt-vertical-positioning-method.js +25 -31
- package/dist/reference-codes/cpt-vertical-positioning-method.js.map +1 -1
- package/dist/reference-codes/describe.d.ts +26 -0
- package/dist/reference-codes/describe.d.ts.map +1 -0
- package/dist/reference-codes/describe.js +40 -0
- package/dist/reference-codes/describe.js.map +1 -0
- package/dist/reference-codes/index.d.ts +260 -246
- package/dist/reference-codes/index.d.ts.map +1 -1
- package/dist/reference-codes/index.js +260 -246
- package/dist/reference-codes/index.js.map +1 -1
- package/dist/reference-codes-entry.d.ts +2 -1
- package/dist/reference-codes-entry.d.ts.map +1 -1
- package/dist/reference-codes-entry.js +2 -1
- package/dist/reference-codes-entry.js.map +1 -1
- package/dist/schema-presets.d.ts +76 -99
- package/dist/schema-presets.d.ts.map +1 -1
- package/dist/schema-presets.js +80 -101
- package/dist/schema-presets.js.map +1 -1
- package/dist/schemas/bhrg-schema.d.ts +9173 -502
- package/dist/schemas/bhrg-schema.d.ts.map +1 -1
- package/dist/schemas/bhrg-schema.js +1040 -326
- package/dist/schemas/bhrg-schema.js.map +1 -1
- package/dist/schemas/bhrg-types.d.ts +53 -0
- package/dist/schemas/bhrg-types.d.ts.map +1 -0
- package/dist/schemas/bhrg-types.js +9 -0
- package/dist/schemas/bhrg-types.js.map +1 -0
- package/dist/schemas/bhrgt-analysis.d.ts +2229 -217
- package/dist/schemas/bhrgt-analysis.d.ts.map +1 -1
- package/dist/schemas/bhrgt-analysis.js +190 -190
- package/dist/schemas/bhrgt-analysis.js.map +1 -1
- package/dist/schemas/bore-schema.d.ts +2853 -520
- package/dist/schemas/bore-schema.d.ts.map +1 -1
- package/dist/schemas/bore-schema.js +263 -338
- package/dist/schemas/bore-schema.js.map +1 -1
- package/dist/schemas/bore-types.d.ts +55 -0
- package/dist/schemas/bore-types.d.ts.map +1 -0
- package/dist/schemas/bore-types.js +10 -0
- package/dist/schemas/bore-types.js.map +1 -0
- package/dist/schemas/common-fields.d.ts +17 -2
- package/dist/schemas/common-fields.d.ts.map +1 -1
- package/dist/schemas/common-fields.js +7 -7
- package/dist/schemas/common-fields.js.map +1 -1
- package/dist/schemas/cpt-curation.d.ts +62 -0
- package/dist/schemas/cpt-curation.d.ts.map +1 -0
- package/dist/schemas/cpt-curation.js +90 -0
- package/dist/schemas/cpt-curation.js.map +1 -0
- package/dist/schemas/cpt-schema.d.ts +422 -111
- package/dist/schemas/cpt-schema.d.ts.map +1 -1
- package/dist/schemas/cpt-schema.js +111 -178
- package/dist/schemas/cpt-schema.js.map +1 -1
- package/dist/schemas/gld-curation.d.ts +77 -0
- package/dist/schemas/gld-curation.d.ts.map +1 -0
- package/dist/schemas/gld-curation.js +62 -0
- package/dist/schemas/gld-curation.js.map +1 -0
- package/dist/schemas/gld-schema.d.ts +138 -54
- package/dist/schemas/gld-schema.d.ts.map +1 -1
- package/dist/schemas/gld-schema.js +33 -79
- package/dist/schemas/gld-schema.js.map +1 -1
- package/dist/schemas/gld-types.d.ts +16 -0
- package/dist/schemas/gld-types.d.ts.map +1 -0
- package/dist/schemas/gld-types.js +7 -0
- package/dist/schemas/gld-types.js.map +1 -0
- package/dist/schemas/gmw-schema.d.ts +770 -143
- package/dist/schemas/gmw-schema.d.ts.map +1 -1
- package/dist/schemas/gmw-schema.js +153 -118
- package/dist/schemas/gmw-schema.js.map +1 -1
- package/dist/schemas/gmw-types.d.ts +24 -0
- package/dist/schemas/gmw-types.d.ts.map +1 -0
- package/dist/schemas/gmw-types.js +11 -0
- package/dist/schemas/gmw-types.js.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +8 -4
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `project` — a typed path-tree selector over a producer schema.
|
|
3
|
+
*
|
|
4
|
+
* Navigate a producer (e.g. `CPT_PRODUCER`) through a proxy that mirrors its
|
|
5
|
+
* structure, naming your own output keys. The selection is compiled back into an
|
|
6
|
+
* {@link ObjectProducer} that reuses the original leaf decoders, so parsing runs
|
|
7
|
+
* through the same {@link SchemaParser}. No hand-written XPath strings.
|
|
8
|
+
*
|
|
9
|
+
* ```ts
|
|
10
|
+
* const survey = project(CPT_PRODUCER, (t) => ({
|
|
11
|
+
* id: t.broId,
|
|
12
|
+
* depth: t.finalDepth,
|
|
13
|
+
* klass: t.qualityClass, // Coded | null
|
|
14
|
+
* }));
|
|
15
|
+
* parser.parseSelection(xml, survey, "CPT"); // { id, depth, klass, meta }
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* The selector type is derived from the *producer* structure, not the output
|
|
19
|
+
* type: an atomic `custom`/`columns` field (whose value may look structural, like
|
|
20
|
+
* `CPTMeasurement[]`) stays a leaf and is selected whole, matching what the
|
|
21
|
+
* runtime can actually decompose.
|
|
22
|
+
*/
|
|
23
|
+
import { object, array } from "./producer.js";
|
|
24
|
+
// ===========================================================================
|
|
25
|
+
// Runtime
|
|
26
|
+
// ===========================================================================
|
|
27
|
+
const TOKEN = Symbol("bro.selectToken");
|
|
28
|
+
/** Join a context path with a producer's own relative `at`. */
|
|
29
|
+
function joinPath(prefix, at) {
|
|
30
|
+
if (!at) {
|
|
31
|
+
return prefix;
|
|
32
|
+
}
|
|
33
|
+
if (!prefix) {
|
|
34
|
+
return at;
|
|
35
|
+
}
|
|
36
|
+
return `${prefix}/${at.replace(/^\.\//, "")}`;
|
|
37
|
+
}
|
|
38
|
+
function readOwn(target, key) {
|
|
39
|
+
return Reflect.get(target, key);
|
|
40
|
+
}
|
|
41
|
+
/** Build a navigation proxy (or terminal token) for `producer` reached at `path`. */
|
|
42
|
+
function proxyFor(producer, path) {
|
|
43
|
+
if (producer.kind === "object") {
|
|
44
|
+
const node = producer;
|
|
45
|
+
const token = { [TOKEN]: "object", producer, path };
|
|
46
|
+
return new Proxy(token, {
|
|
47
|
+
get(target, key) {
|
|
48
|
+
if (typeof key === "symbol" || Reflect.has(target, key)) {
|
|
49
|
+
return readOwn(target, key);
|
|
50
|
+
}
|
|
51
|
+
const child = node.fields[key];
|
|
52
|
+
if (!child) {
|
|
53
|
+
throw new Error(`project: unknown field '${key}'`);
|
|
54
|
+
}
|
|
55
|
+
return proxyFor(child, joinPath(path, child.at));
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
if (producer.kind === "array") {
|
|
60
|
+
const node = producer;
|
|
61
|
+
const token = { [TOKEN]: "array", producer, path };
|
|
62
|
+
return new Proxy(token, {
|
|
63
|
+
get(target, key) {
|
|
64
|
+
if (key === "each") {
|
|
65
|
+
return (fn) => {
|
|
66
|
+
const itemSel = fn(proxyFor(node.item, ""));
|
|
67
|
+
return { [TOKEN]: "each", producer, path, itemSel };
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
if (typeof key === "symbol" || Reflect.has(target, key)) {
|
|
71
|
+
return readOwn(target, key);
|
|
72
|
+
}
|
|
73
|
+
throw new Error("project: use .each() to select array elements");
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
if (producer.kind === "oneOf") {
|
|
78
|
+
// Navigate the merged base + branch fields; selecting one flattens the union.
|
|
79
|
+
const node = producer;
|
|
80
|
+
const token = { [TOKEN]: "leaf", producer, path };
|
|
81
|
+
return new Proxy(token, {
|
|
82
|
+
get(target, key) {
|
|
83
|
+
if (typeof key === "symbol" || Reflect.has(target, key)) {
|
|
84
|
+
return readOwn(target, key);
|
|
85
|
+
}
|
|
86
|
+
const baseField = node.base[key];
|
|
87
|
+
if (baseField) {
|
|
88
|
+
return proxyFor(baseField, joinPath(path, baseField.at));
|
|
89
|
+
}
|
|
90
|
+
for (const branch of node.branches) {
|
|
91
|
+
const bf = branch.fields[key];
|
|
92
|
+
if (bf) {
|
|
93
|
+
return proxyFor(bf, joinPath(joinPath(path, branch.at), bf.at));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
throw new Error(`project: unknown field '${key}' on union`);
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
// Leaf kinds (scalar, code, custom): a terminal token, selected whole.
|
|
101
|
+
return { [TOKEN]: "leaf", producer, path };
|
|
102
|
+
}
|
|
103
|
+
function isToken(v) {
|
|
104
|
+
return typeof v === "object" && v !== null && TOKEN in v;
|
|
105
|
+
}
|
|
106
|
+
/** Compile one selection value into a producer. */
|
|
107
|
+
function buildProducer(value) {
|
|
108
|
+
if (isToken(value)) {
|
|
109
|
+
const { producer, path } = value;
|
|
110
|
+
if (value[TOKEN] === "each") {
|
|
111
|
+
const node = producer;
|
|
112
|
+
return array({
|
|
113
|
+
...(path ? { at: path } : {}),
|
|
114
|
+
each: node.each,
|
|
115
|
+
item: object({ fields: buildFields(value.itemSel ?? {}) }),
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
// Leaf / whole-object / whole-array: reuse the producer, retarget its `at`.
|
|
119
|
+
return { ...producer, ...(path ? { at: path } : {}) };
|
|
120
|
+
}
|
|
121
|
+
// A plain nested record the caller assembled by hand.
|
|
122
|
+
return object({ fields: buildFields(value) });
|
|
123
|
+
}
|
|
124
|
+
function buildFields(sel) {
|
|
125
|
+
const fields = {};
|
|
126
|
+
for (const [key, value] of Object.entries(sel)) {
|
|
127
|
+
fields[key] = buildProducer(value);
|
|
128
|
+
}
|
|
129
|
+
return fields;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Compile a selection over `root` into an {@link ObjectProducer}. The result
|
|
133
|
+
* parses through {@link SchemaParser} like any producer (e.g. via
|
|
134
|
+
* `BROParser.parseSelection`).
|
|
135
|
+
*/
|
|
136
|
+
export function project(root, select) {
|
|
137
|
+
const start = root.at ?? "";
|
|
138
|
+
const selection = select(proxyFor(root, start));
|
|
139
|
+
return object({
|
|
140
|
+
fields: buildFields(selection),
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../src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,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAA0B,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC;QACZ,MAAM,EAAE,WAAW,CAAC,SAAoC,CAAC;KAC1D,CAAgD,CAAC;AACpD,CAAC"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type decoder functions for converting XML values to JavaScript types
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* A sink for non-fatal decode messages. The {@link SchemaParser} passes one that
|
|
6
|
+
* appends to `meta.warnings`; when omitted (direct callers) messages go to
|
|
7
|
+
* `console.warn`, preserving the previous behaviour.
|
|
8
|
+
*/
|
|
9
|
+
type WarnSink = (message: string) => void;
|
|
4
10
|
/**
|
|
5
11
|
* Parse float, handle null values and -999999 sentinel
|
|
6
12
|
*/
|
|
7
|
-
export declare function parseFloat(value: string | null | undefined): number | null;
|
|
8
|
-
export declare function parseInt(value: string | null | undefined): number | null;
|
|
13
|
+
export declare function parseFloat(value: string | null | undefined, warn?: WarnSink): number | null;
|
|
14
|
+
export declare function parseInt(value: string | null | undefined, warn?: WarnSink): number | null;
|
|
9
15
|
export declare function parseBoolean(value: string | null | undefined): boolean | null;
|
|
10
16
|
/**
|
|
11
17
|
* Normalize a BRO temporal value to a precision-preserving ISO 8601 string.
|
|
@@ -31,8 +37,5 @@ export declare function parseBoolean(value: string | null | undefined): boolean
|
|
|
31
37
|
* because `voidReason` is a legitimate and common value in archive data.
|
|
32
38
|
*/
|
|
33
39
|
export declare function parseDate(value: string | null | undefined): string | null;
|
|
34
|
-
|
|
35
|
-
* Parse quality class (handles "klasse2" or "2" format)
|
|
36
|
-
*/
|
|
37
|
-
export declare function parseQualityClass(value: string | null): number | null;
|
|
40
|
+
export {};
|
|
38
41
|
//# sourceMappingURL=type-decoders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-decoders.d.ts","sourceRoot":"","sources":["../../src/decoders/type-decoders.ts"],"names":[],"mappings":"AAAA;;GAEG;AAeH;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"type-decoders.d.ts","sourceRoot":"","sources":["../../src/decoders/type-decoders.ts"],"names":[],"mappings":"AAAA;;GAEG;AAeH;;;;GAIG;AACH,KAAK,QAAQ,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;AAM1C;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,CAmB3F;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,CAiBzF;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,GAAG,IAAI,CAgB7E;AAgBD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAezE"}
|
|
@@ -12,10 +12,13 @@ import { SENTINEL } from "./constants.js";
|
|
|
12
12
|
function isMissingNumber(value) {
|
|
13
13
|
return value.trim().toLowerCase() === "nan";
|
|
14
14
|
}
|
|
15
|
+
function warnVia(warn, message) {
|
|
16
|
+
(warn ?? console.warn)(message);
|
|
17
|
+
}
|
|
15
18
|
/**
|
|
16
19
|
* Parse float, handle null values and -999999 sentinel
|
|
17
20
|
*/
|
|
18
|
-
export function parseFloat(value) {
|
|
21
|
+
export function parseFloat(value, warn) {
|
|
19
22
|
// BRO encodes a missing numeric value as an empty string, the -999999
|
|
20
23
|
// sentinel, or the literal "NaN" (common in embedded measurement CSVs).
|
|
21
24
|
if (!value || value.trim() === "" || value === String(SENTINEL) || isMissingNumber(value)) {
|
|
@@ -24,32 +27,32 @@ export function parseFloat(value) {
|
|
|
24
27
|
try {
|
|
25
28
|
const num = Number.parseFloat(value);
|
|
26
29
|
if (isNaN(num)) {
|
|
27
|
-
|
|
30
|
+
warnVia(warn, `Failed to parse float value: "${value}"`);
|
|
28
31
|
return null;
|
|
29
32
|
}
|
|
30
33
|
return num;
|
|
31
34
|
}
|
|
32
35
|
catch (error) {
|
|
33
36
|
const message = error instanceof Error ? error.message : String(error);
|
|
34
|
-
|
|
37
|
+
warnVia(warn, `Failed to parse float value: "${value}" - ${message}`);
|
|
35
38
|
return null;
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
|
-
export function parseInt(value) {
|
|
41
|
+
export function parseInt(value, warn) {
|
|
39
42
|
if (!value || value.trim() === "" || value === String(SENTINEL) || isMissingNumber(value)) {
|
|
40
43
|
return null;
|
|
41
44
|
}
|
|
42
45
|
try {
|
|
43
46
|
const num = Number.parseInt(value, 10);
|
|
44
47
|
if (isNaN(num)) {
|
|
45
|
-
|
|
48
|
+
warnVia(warn, `Failed to parse integer value: "${value}"`);
|
|
46
49
|
return null;
|
|
47
50
|
}
|
|
48
51
|
return num;
|
|
49
52
|
}
|
|
50
53
|
catch (error) {
|
|
51
54
|
const message = error instanceof Error ? error.message : String(error);
|
|
52
|
-
|
|
55
|
+
warnVia(warn, `Failed to parse integer value: "${value}" - ${message}`);
|
|
53
56
|
return null;
|
|
54
57
|
}
|
|
55
58
|
}
|
|
@@ -115,20 +118,4 @@ export function parseDate(value) {
|
|
|
115
118
|
}
|
|
116
119
|
return null;
|
|
117
120
|
}
|
|
118
|
-
/**
|
|
119
|
-
* Parse quality class (handles "klasse2" or "2" format)
|
|
120
|
-
*/
|
|
121
|
-
export function parseQualityClass(value) {
|
|
122
|
-
if (!value) {
|
|
123
|
-
return null;
|
|
124
|
-
}
|
|
125
|
-
// Handle "klasse2" format
|
|
126
|
-
const regex = /klasse(\d+)/i;
|
|
127
|
-
const match = regex.exec(value);
|
|
128
|
-
if (match?.[1]) {
|
|
129
|
-
return Number.parseInt(match[1], 10);
|
|
130
|
-
}
|
|
131
|
-
// Handle plain number
|
|
132
|
-
return parseInt(value);
|
|
133
|
-
}
|
|
134
121
|
//# sourceMappingURL=type-decoders.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-decoders.js","sourceRoot":"","sources":["../../src/decoders/type-decoders.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C;;;;;;GAMG;AACH,SAAS,eAAe,CAAC,KAAa;IACpC,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC;AAC9C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,KAAgC;
|
|
1
|
+
{"version":3,"file":"type-decoders.js","sourceRoot":"","sources":["../../src/decoders/type-decoders.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C;;;;;;GAMG;AACH,SAAS,eAAe,CAAC,KAAa;IACpC,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC;AAC9C,CAAC;AASD,SAAS,OAAO,CAAC,IAA0B,EAAE,OAAe;IAC1D,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,KAAgC,EAAE,IAAe;IAC1E,sEAAsE;IACtE,wEAAwE;IACxE,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,KAAK,KAAK,MAAM,CAAC,QAAQ,CAAC,IAAI,eAAe,CAAC,KA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{ BROParseError } from "./types/index.js";
|
|
|
19
19
|
export { SUPPORTED_VERSIONS } from "./core/version-detector.js";
|
|
20
20
|
export type { DataType } from "./core/version-detector.js";
|
|
21
21
|
export { CPT_PRODUCER } from "./schemas/cpt-schema.js";
|
|
22
|
-
export type { DissipationTest, RemovedLayer } from "./
|
|
22
|
+
export type { DissipationTest, RemovedLayer } from "./types/index.js";
|
|
23
23
|
export { BORE_PRODUCER } from "./schemas/bore-schema.js";
|
|
24
|
-
export type { BHRGTLayer, BHRGTLayerBase, BHRGTSoilLayer, BHRGTRockLayer, RockDescription, RockWeatheringDegree, Grainshape, BoredInterval, SampledInterval, SamplerDetails, CoreRecovery, CompletedInterval, PostSedimentaryDiscontinuity, ExcavatedLayer, BoringVelocityMeasurement, NotDescribedInterval, FluidMudLayer, } from "./schemas/bore-
|
|
24
|
+
export type { BHRGTLayer, BHRGTLayerBase, BHRGTSoilLayer, BHRGTRockLayer, RockDescription, RockWeatheringDegree, Grainshape, BoredInterval, SampledInterval, SamplerDetails, CoreRecovery, CompletedInterval, PostSedimentaryDiscontinuity, ExcavatedLayer, BoringVelocityMeasurement, NotDescribedInterval, FluidMudLayer, } from "./schemas/bore-types.js";
|
|
25
25
|
export type { HeightAtSpecificTime, StressAtSpecificSettlement, VolumeChangeAtSpecificTime, ShearStressAtSpecificStrain, HorizontalDeformationDataPoint, BoreholeSampleAnalysis, InvestigatedInterval, WaterContentDetermination, VolumetricMassDensityDetermination, OrganicMatterContentDetermination, CarbonateContentDetermination, VolumetricMassDensityOfSolidsDetermination, MaximumUndrainedShearStrengthDetermination, ParticleSizeDistributionDetermination, ConsistencyLimitsDetermination, SettlementCharacteristicsDetermination, SettlementDeterminationStep, SaturationStageAtCompression, SaturatedPermeabilityDetermination, ShearStressChangeDuringLoadingDetermination, ConsolidationStepAtHorizontalDeformation, ShearStressChangeDuringHorizontalDeformationDetermination, PlasticityAtSpecificWaterContent, SaturatedPermeabilityAtSpecificDensity, SaturatedPermeabilityAtSpecificLoad, MembraneCorrection, DrainageStripCorrection, SpecimenMadeForLoading, SaturationStageAtLoading, ConsolidationStageAtLoading, LoadStage, ConsolidationStageAtHorizontalDeformation, ShearStageAtHorizontalDeformation, } from "./schemas/bhrgt-analysis.js";
|
|
26
|
-
export type { GLDObservation, GLDObservationPoint, GroundwaterMonitoringTubeRef, } from "./schemas/gld-
|
|
26
|
+
export type { GLDObservation, GLDObservationPoint, GroundwaterMonitoringTubeRef, } from "./schemas/gld-types.js";
|
|
27
27
|
export { BHRG_PRODUCER } from "./schemas/bhrg-schema.js";
|
|
28
|
-
export type { BHRGLayer, MunsellColour, SandFraction, SandConstituent, ShellFraction, ShellConstituent, GravelFraction, GravelConstituent, PeatFraction, PeatConstituent, Chunk, FractionDistribution, FineFractionDistributionOrganicSoil, FineFractionDistributionShellySoil, Mottle, ThinStratum, ReportHistory, IntermediateEvent, } from "./schemas/bhrg-
|
|
28
|
+
export type { BHRGLayer, MunsellColour, SandFraction, SandConstituent, ShellFraction, ShellConstituent, GravelFraction, GravelConstituent, PeatFraction, PeatConstituent, Chunk, FractionDistribution, FineFractionDistributionOrganicSoil, FineFractionDistributionShellySoil, Mottle, ThinStratum, ReportHistory, IntermediateEvent, } from "./schemas/bhrg-types.js";
|
|
29
29
|
export { GMW_PRODUCER } from "./schemas/gmw-schema.js";
|
|
30
|
-
export type { MonitoringTube, GeoOhmCable, Electrode, GMWIntermediateEvent, } from "./schemas/gmw-
|
|
30
|
+
export type { MonitoringTube, GeoOhmCable, Electrode, GMWIntermediateEvent, } from "./schemas/gmw-types.js";
|
|
31
31
|
export { GLD_PRODUCER } from "./schemas/gld-schema.js";
|
|
32
32
|
export { BRO_NAMESPACES, KNOWN_BRO_PREFIXES } from "./namespaces.js";
|
|
33
33
|
export { BRO_SOIL_COLORS, getSoilColor, isValidSoilColor, getSoilColorNames } from "./colors.js";
|
|
34
34
|
export * as producers from "./producers.js";
|
|
35
|
-
export type { Producer, NodeLens, Produced, ProducedFields } from "./core/producer.js";
|
|
35
|
+
export type { Producer, NodeLens, Produced, ProducedFields, Coded } from "./core/producer.js";
|
|
36
|
+
export { project } from "./core/select.js";
|
|
37
|
+
export type { Leaf, ArraySel, SelectableProducer, ProjectResult } from "./core/select.js";
|
|
36
38
|
export * as presets from "./schema-presets.js";
|
|
37
39
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE1E,YAAY,EACV,OAAO,EACP,cAAc,EACd,sBAAsB,EACtB,SAAS,EACT,QAAQ,EACR,OAAO,EACP,OAAO,EACP,OAAO,EACP,WAAW,EACX,QAAQ,EACR,SAAS,EACT,UAAU,EACV,aAAa,GACd,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,YAAY,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE1E,YAAY,EACV,OAAO,EACP,cAAc,EACd,sBAAsB,EACtB,SA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getSoilColor, isValidSoilColor, getSoilColorNames } from "./colors.js";
|
|
25
25
|
// The authoring surface for custom schemas (combinators + domain helpers).
|
|
26
26
|
export * as producers from "./producers.js";
|
|
27
|
+
// The typed path-tree selector over a producer schema (see BROParser.parseSelection).
|
|
28
|
+
export { project } from "./core/select.js";
|
|
27
29
|
// Export schema presets for common use cases
|
|
28
30
|
export * as presets from "./schema-presets.js";
|
|
29
31
|
//# sourceMappingURL=node.js.map
|
package/dist/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAmB1E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AA4DzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAqBzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAOvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEjG,2EAA2E;AAC3E,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAK5C,6CAA6C;AAC7C,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAmB1E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AA4DzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAqBzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAOvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEjG,2EAA2E;AAC3E,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAK5C,sFAAsF;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,6CAA6C;AAC7C,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC"}
|
package/dist/parser.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* environment-specific behavior explicit.
|
|
7
7
|
*/
|
|
8
8
|
import type { XMLAdapter, Namespaces, CPTData, BHRGTData, BHRGData, GMWData, GLDData, BROData, ParseMeta, BROFileType } from "./types/index.js";
|
|
9
|
-
import type { Producer, ProducedFields, Presence } from "./core/producer.js";
|
|
9
|
+
import type { Producer, ProducedFields, Presence, ObjectProducer } from "./core/producer.js";
|
|
10
10
|
/**
|
|
11
11
|
* Main BRO Parser class
|
|
12
12
|
*
|
|
@@ -122,10 +122,10 @@ export declare class BROParser {
|
|
|
122
122
|
* const parser = new BROParser(new XMLAdapter());
|
|
123
123
|
* const gmw = parser.parseGMW(xmlString);
|
|
124
124
|
*
|
|
125
|
-
* console.log(gmw.broId);
|
|
126
|
-
* console.log(gmw.numberOfMonitoringTubes);
|
|
127
|
-
* console.log(gmw.
|
|
128
|
-
* console.log(gmw.meta.schemaVersion);
|
|
125
|
+
* console.log(gmw.broId); // "GMW000000048066"
|
|
126
|
+
* console.log(gmw.numberOfMonitoringTubes); // 1
|
|
127
|
+
* console.log(gmw.monitoringTube[0].screen?.screenLength); // 1.0
|
|
128
|
+
* console.log(gmw.meta.schemaVersion); // "1.1"
|
|
129
129
|
* ```
|
|
130
130
|
*/
|
|
131
131
|
parseGMW(xmlText: string): GMWData;
|
|
@@ -151,7 +151,7 @@ export declare class BROParser {
|
|
|
151
151
|
*
|
|
152
152
|
* console.log(gld.broId); // "GLD000000010000"
|
|
153
153
|
* console.log(gld.monitoringPoint?.broId); // "GMW000000020142"
|
|
154
|
-
* console.log(gld.
|
|
154
|
+
* console.log(gld.observation[0].points.length); // 8760
|
|
155
155
|
* ```
|
|
156
156
|
*/
|
|
157
157
|
parseGLD(xmlText: string): GLDData;
|
|
@@ -210,7 +210,7 @@ export declare class BROParser {
|
|
|
210
210
|
* // Define only the fields you need
|
|
211
211
|
* const result = parser.parseCustom(xmlText, {
|
|
212
212
|
* id: p.text('brocom:broId'), // string | null
|
|
213
|
-
* depth: p.
|
|
213
|
+
* depth: p.number('./dscpt:conePenetrometerSurvey/cptcommon:trajectory/cptcommon:finalDepth'),
|
|
214
214
|
* location: p.gmlLocation('./dscpt:deliveredLocation/cptcommon:location'),
|
|
215
215
|
* }, 'CPT');
|
|
216
216
|
*
|
|
@@ -221,6 +221,28 @@ export declare class BROParser {
|
|
|
221
221
|
parseCustom<const F extends Record<string, Producer<unknown, Presence>>>(xmlText: string, fields: F, dataType?: BROFileType): ProducedFields<F> & {
|
|
222
222
|
meta: ParseMeta;
|
|
223
223
|
};
|
|
224
|
+
/**
|
|
225
|
+
* Parse BRO XML with a `project()` selection — a selector over the full producer
|
|
226
|
+
* schema (`CPT_PRODUCER`, …). The result is the projected shape plus `meta`, with
|
|
227
|
+
* no hand-written XPaths.
|
|
228
|
+
*
|
|
229
|
+
* @example
|
|
230
|
+
* ```typescript
|
|
231
|
+
* import { project, CPT_PRODUCER } from '@bedrock-engineer/bro-xml-parser/node';
|
|
232
|
+
*
|
|
233
|
+
* const survey = project(CPT_PRODUCER, (t) => ({
|
|
234
|
+
* id: t.broId,
|
|
235
|
+
* depth: t.finalDepth,
|
|
236
|
+
* klass: t.qualityClass, // Coded | null
|
|
237
|
+
* }));
|
|
238
|
+
* const r = parser.parseSelection(xml, survey, 'CPT'); // { id, depth, klass, meta }
|
|
239
|
+
* ```
|
|
240
|
+
*/
|
|
241
|
+
parseSelection<T>(xmlText: string, selection: ObjectProducer<T>, dataType?: BROFileType): T & {
|
|
242
|
+
meta: ParseMeta;
|
|
243
|
+
};
|
|
244
|
+
/** Resolve {@link ParseMeta}: validate `dataType` if given, else auto-detect. */
|
|
245
|
+
private resolveMeta;
|
|
224
246
|
/**
|
|
225
247
|
* Get the underlying XML adapter
|
|
226
248
|
* (useful for advanced use cases or testing)
|
package/dist/parser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAcH,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,OAAO,EACP,SAAS,EACT,QAAQ,EACR,OAAO,EACP,OAAO,EACP,OAAO,EACP,SAAS,EACT,WAAW,EACZ,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"A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Q,CAAC,EAAE,WAAW,GACrB,cAAc,CAAC,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE;IAU1C;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CAAC,CAAC,EACd,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,EAC5B,QAAQ,CAAC,EAAE,WAAW,GACrB,CAAC,GAAG;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE;IAU1B,iFAAiF;IACjF,OAAO,CAAC,WAAW;IAgBnB;;;OAGG;IACH,UAAU,IAAI,UAAU;CAGzB"}
|
package/dist/parser.js
CHANGED
|
@@ -14,7 +14,7 @@ import { GMW_PRODUCER } from "./schemas/gmw-schema.js";
|
|
|
14
14
|
import { GLD_PRODUCER } from "./schemas/gld-schema.js";
|
|
15
15
|
import { BRO_NAMESPACES } from "./namespaces.js";
|
|
16
16
|
import { BROParseError } from "./types/index.js";
|
|
17
|
-
import {
|
|
17
|
+
import { object } from "./core/producer.js";
|
|
18
18
|
/**
|
|
19
19
|
* Main BRO Parser class
|
|
20
20
|
*
|
|
@@ -165,10 +165,10 @@ export class BROParser {
|
|
|
165
165
|
* const parser = new BROParser(new XMLAdapter());
|
|
166
166
|
* const gmw = parser.parseGMW(xmlString);
|
|
167
167
|
*
|
|
168
|
-
* console.log(gmw.broId);
|
|
169
|
-
* console.log(gmw.numberOfMonitoringTubes);
|
|
170
|
-
* console.log(gmw.
|
|
171
|
-
* console.log(gmw.meta.schemaVersion);
|
|
168
|
+
* console.log(gmw.broId); // "GMW000000048066"
|
|
169
|
+
* console.log(gmw.numberOfMonitoringTubes); // 1
|
|
170
|
+
* console.log(gmw.monitoringTube[0].screen?.screenLength); // 1.0
|
|
171
|
+
* console.log(gmw.meta.schemaVersion); // "1.1"
|
|
172
172
|
* ```
|
|
173
173
|
*/
|
|
174
174
|
parseGMW(xmlText) {
|
|
@@ -201,7 +201,7 @@ export class BROParser {
|
|
|
201
201
|
*
|
|
202
202
|
* console.log(gld.broId); // "GLD000000010000"
|
|
203
203
|
* console.log(gld.monitoringPoint?.broId); // "GMW000000020142"
|
|
204
|
-
* console.log(gld.
|
|
204
|
+
* console.log(gld.observation[0].points.length); // 8760
|
|
205
205
|
* ```
|
|
206
206
|
*/
|
|
207
207
|
parseGLD(xmlText) {
|
|
@@ -287,7 +287,7 @@ export class BROParser {
|
|
|
287
287
|
* // Define only the fields you need
|
|
288
288
|
* const result = parser.parseCustom(xmlText, {
|
|
289
289
|
* id: p.text('brocom:broId'), // string | null
|
|
290
|
-
* depth: p.
|
|
290
|
+
* depth: p.number('./dscpt:conePenetrometerSurvey/cptcommon:trajectory/cptcommon:finalDepth'),
|
|
291
291
|
* location: p.gmlLocation('./dscpt:deliveredLocation/cptcommon:location'),
|
|
292
292
|
* }, 'CPT');
|
|
293
293
|
*
|
|
@@ -297,31 +297,50 @@ export class BROParser {
|
|
|
297
297
|
*/
|
|
298
298
|
parseCustom(xmlText, fields, dataType) {
|
|
299
299
|
const doc = this.adapter.parseXML(xmlText);
|
|
300
|
-
|
|
301
|
-
|
|
300
|
+
const meta = this.resolveMeta(doc, dataType);
|
|
301
|
+
const { value, warnings } = this.parser.produce(doc, object({ fields }), "dispatchDocument");
|
|
302
|
+
meta.warnings.push(...warnings);
|
|
303
|
+
return { meta, ...value };
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Parse BRO XML with a `project()` selection — a selector over the full producer
|
|
307
|
+
* schema (`CPT_PRODUCER`, …). The result is the projected shape plus `meta`, with
|
|
308
|
+
* no hand-written XPaths.
|
|
309
|
+
*
|
|
310
|
+
* @example
|
|
311
|
+
* ```typescript
|
|
312
|
+
* import { project, CPT_PRODUCER } from '@bedrock-engineer/bro-xml-parser/node';
|
|
313
|
+
*
|
|
314
|
+
* const survey = project(CPT_PRODUCER, (t) => ({
|
|
315
|
+
* id: t.broId,
|
|
316
|
+
* depth: t.finalDepth,
|
|
317
|
+
* klass: t.qualityClass, // Coded | null
|
|
318
|
+
* }));
|
|
319
|
+
* const r = parser.parseSelection(xml, survey, 'CPT'); // { id, depth, klass, meta }
|
|
320
|
+
* ```
|
|
321
|
+
*/
|
|
322
|
+
parseSelection(xmlText, selection, dataType) {
|
|
323
|
+
const doc = this.adapter.parseXML(xmlText);
|
|
324
|
+
const meta = this.resolveMeta(doc, dataType);
|
|
325
|
+
const { value, warnings } = this.parser.produce(doc, selection, "dispatchDocument");
|
|
326
|
+
meta.warnings.push(...warnings);
|
|
327
|
+
return { meta, ...value };
|
|
328
|
+
}
|
|
329
|
+
/** Resolve {@link ParseMeta}: validate `dataType` if given, else auto-detect. */
|
|
330
|
+
resolveMeta(doc, dataType) {
|
|
302
331
|
if (dataType) {
|
|
303
|
-
|
|
304
|
-
meta = this.createMeta(versionResult);
|
|
332
|
+
return this.createMeta(detectAndValidateVersion(doc, dataType));
|
|
305
333
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
if (versionInfo) {
|
|
310
|
-
const versionResult = detectAndValidateVersion(doc, versionInfo.type);
|
|
311
|
-
meta = this.createMeta(versionResult);
|
|
312
|
-
}
|
|
313
|
-
else {
|
|
314
|
-
meta = {
|
|
315
|
-
schemaVersion: "unknown",
|
|
316
|
-
schemaNamespace: "unknown",
|
|
317
|
-
dataType: "CPT", // fallback
|
|
318
|
-
warnings: ["Could not detect BRO data type"],
|
|
319
|
-
};
|
|
320
|
-
}
|
|
334
|
+
const versionInfo = getVersionInfo(doc);
|
|
335
|
+
if (versionInfo) {
|
|
336
|
+
return this.createMeta(detectAndValidateVersion(doc, versionInfo.type));
|
|
321
337
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
338
|
+
return {
|
|
339
|
+
schemaVersion: "unknown",
|
|
340
|
+
schemaNamespace: "unknown",
|
|
341
|
+
dataType: "CPT", // fallback
|
|
342
|
+
warnings: ["Could not detect BRO data type"],
|
|
343
|
+
};
|
|
325
344
|
}
|
|
326
345
|
/**
|
|
327
346
|
* Get the underlying XML adapter
|
package/dist/parser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,wBAAwB,EACxB,cAAc,GAEf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAajD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,wBAAwB,EACxB,cAAc,GAEf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAajD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,MAAM,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C,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QAE7C,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,kBAAkB,CAAC,CAAC;QACpF,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;QAEhC,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC;IAC5B,CAAC;IAED,iFAAiF;IACzE,WAAW,CAAC,GAAa,EAAE,QAAsB;QACvD,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;QAClE,CAAC;QACD,MAAM,WAAW,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;QACxC,IAAI,WAAW,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC,GAAG,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1E,CAAC;QACD,OAAO;YACL,aAAa,EAAE,SAAS;YACxB,eAAe,EAAE,SAAS;YAC1B,QAAQ,EAAE,KAAK,EAAE,WAAW;YAC5B,QAAQ,EAAE,CAAC,gCAAgC,CAAC;SAC7C,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF"}
|
package/dist/producers.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* One import carrying every building block the library uses internally to
|
|
5
5
|
* describe how an XML node becomes a typed value:
|
|
6
6
|
*
|
|
7
|
-
* - the leaf combinators (`text`, `date`, `
|
|
8
|
-
*
|
|
7
|
+
* - the leaf combinators (`text`, `date`, `number`, `integer`, `boolean`)
|
|
8
|
+
* and the structural combinators (`object`, `array`,
|
|
9
9
|
* `oneOf`, and the `custom` / `scalar` escape hatches),
|
|
10
10
|
* - the domain helpers `gmlLocation` (GML `Point` → {@link Location}) and
|
|
11
11
|
* `columns` / `col` (BRO's column time-series CSVs),
|
|
@@ -22,14 +22,15 @@
|
|
|
22
22
|
* const parser = new BROParser(new XMLAdapter());
|
|
23
23
|
* const result = parser.parseCustom(xml, {
|
|
24
24
|
* ...p.COMMON_REGISTRATION_PRODUCERS,
|
|
25
|
-
* depth: p.
|
|
25
|
+
* depth: p.number("./dscpt:conePenetrometerSurvey/cptcommon:trajectory/cptcommon:finalDepth"),
|
|
26
26
|
* location: p.gmlLocation("./dscpt:deliveredLocation/cptcommon:location"),
|
|
27
27
|
* }, "CPT");
|
|
28
28
|
* result.depth; // number | null — inferred, no casts
|
|
29
29
|
* result.location; // Location | null
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
export { scalar, text, date,
|
|
32
|
+
export { scalar, text, date, number, integer, boolean, code, object, array, custom, oneOf, } from "./core/producer.js";
|
|
33
|
+
export type { Coded } from "./core/producer.js";
|
|
33
34
|
export { columns, col } from "./core/columns.js";
|
|
34
35
|
export type { ColumnSpec, ColumnParser, RowOf } from "./core/columns.js";
|
|
35
36
|
export { gmlLocation, REGISTRATION_HISTORY, COMMON_REGISTRATION_PRODUCERS, } from "./schemas/common-fields.js";
|
package/dist/producers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"producers.d.ts","sourceRoot":"","sources":["../src/producers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EACL,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"producers.d.ts","sourceRoot":"","sources":["../src/producers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EACL,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,OAAO,EACP,IAAI,EACJ,MAAM,EACN,KAAK,EACL,MAAM,EACN,KAAK,GACN,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEzE,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC"}
|
package/dist/producers.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* One import carrying every building block the library uses internally to
|
|
5
5
|
* describe how an XML node becomes a typed value:
|
|
6
6
|
*
|
|
7
|
-
* - the leaf combinators (`text`, `date`, `
|
|
8
|
-
*
|
|
7
|
+
* - the leaf combinators (`text`, `date`, `number`, `integer`, `boolean`)
|
|
8
|
+
* and the structural combinators (`object`, `array`,
|
|
9
9
|
* `oneOf`, and the `custom` / `scalar` escape hatches),
|
|
10
10
|
* - the domain helpers `gmlLocation` (GML `Point` → {@link Location}) and
|
|
11
11
|
* `columns` / `col` (BRO's column time-series CSVs),
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
* const parser = new BROParser(new XMLAdapter());
|
|
23
23
|
* const result = parser.parseCustom(xml, {
|
|
24
24
|
* ...p.COMMON_REGISTRATION_PRODUCERS,
|
|
25
|
-
* depth: p.
|
|
25
|
+
* depth: p.number("./dscpt:conePenetrometerSurvey/cptcommon:trajectory/cptcommon:finalDepth"),
|
|
26
26
|
* location: p.gmlLocation("./dscpt:deliveredLocation/cptcommon:location"),
|
|
27
27
|
* }, "CPT");
|
|
28
28
|
* result.depth; // number | null — inferred, no casts
|
|
29
29
|
* result.location; // Location | null
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
export { scalar, text, date,
|
|
32
|
+
export { scalar, text, date, number, integer, boolean, code, object, array, custom, oneOf, } from "./core/producer.js";
|
|
33
33
|
export { columns, col } from "./core/columns.js";
|
|
34
34
|
export { gmlLocation, REGISTRATION_HISTORY, COMMON_REGISTRATION_PRODUCERS, } from "./schemas/common-fields.js";
|
|
35
35
|
//# sourceMappingURL=producers.js.map
|