@bedrock-engineer/bro-xml-parser 0.5.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 +25 -4
- 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 +69 -15
- package/dist/core/producer.d.ts.map +1 -1
- package/dist/core/producer.js +28 -8
- 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 +28 -6
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +46 -27
- package/dist/parser.js.map +1 -1
- package/dist/producers.d.ts +4 -3
- package/dist/producers.d.ts.map +1 -1
- package/dist/producers.js +3 -3
- 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 +1039 -325
- 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 +69 -69
- 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 +262 -337
- 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 +2 -2
- 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 +110 -177
- 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 +32 -78
- 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 +148 -113
- 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
package/README.md
CHANGED
|
@@ -56,6 +56,21 @@ const bhr_gt = parser.parseBHRGT(xmlText);
|
|
|
56
56
|
const bhr_g = parser.parseBHRG(xmlText);
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
+
### Coded values
|
|
60
|
+
|
|
61
|
+
Fields that carry a BRO code (quality class, soil name, method, …) parse to a
|
|
62
|
+
`Coded` object — the `code` plus the `codeSpace` domain the XML declares — or
|
|
63
|
+
`null` when absent:
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
cpt.qualityClass;
|
|
67
|
+
// { code: "klasse2", codeSpace: "urn:bro:cpt:QualityClass" } | null
|
|
68
|
+
cpt.qualityClass?.code === "klasse2";
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Keeping the `codeSpace` from the instance is what lets [`describe`](#reference-codes)
|
|
72
|
+
resolve the human-readable text without ever guessing the domain.
|
|
73
|
+
|
|
59
74
|
## Custom Schemas
|
|
60
75
|
|
|
61
76
|
Extract only the fields you need:
|
|
@@ -82,7 +97,7 @@ const result = parser.parseCustom(
|
|
|
82
97
|
```
|
|
83
98
|
|
|
84
99
|
The `producers` namespace carries every building block the library uses internally:
|
|
85
|
-
|
|
100
|
+
leaf combinators (`text`, `number`, `integer`, `date`, `boolean`, `code`),
|
|
86
101
|
structural combinators (`object`, `array`, `oneOf`, `custom`), the domain helpers
|
|
87
102
|
(`gmlLocation`, `columns`), and the shared field-maps (`COMMON_REGISTRATION_PRODUCERS`,
|
|
88
103
|
`REGISTRATION_HISTORY`) you can spread into a schema.
|
|
@@ -111,20 +126,26 @@ See [`src/types/index.ts`](./src/types/index.ts) for full type definitions.
|
|
|
111
126
|
|
|
112
127
|
BRO/XML values use camelCase domain codes like `"langwerpig"`, `"mechanischDiscontinu"`, or `"ISO19901d8v2014"` some are intuitive, some are cryptic. The BRO publishes official human-readable descriptions for all of these codes.
|
|
113
128
|
|
|
114
|
-
|
|
129
|
+
Coded values parse to `{ code, codeSpace }` (a `Coded`), carrying the domain the
|
|
130
|
+
XML declares. Resolve any of them with the single `describe` function, generated
|
|
131
|
+
from the [BRO reference codes API](https://publiek.broservices.nl/bro/refcodes/v1/codes):
|
|
115
132
|
|
|
116
133
|
```typescript
|
|
117
|
-
import {
|
|
134
|
+
import { describe } from "@bedrock-engineer/bro-xml-parser/reference-codes";
|
|
118
135
|
|
|
119
136
|
const bore = parser.parseBHRGT(xmlText);
|
|
120
137
|
|
|
121
138
|
bore.data.forEach((layer) => {
|
|
122
|
-
const description =
|
|
139
|
+
const description = describe(layer.geotechnicalSoilName); // domain-correct by construction
|
|
123
140
|
console.log(`${layer.upperBoundary}–${layer.lowerBoundary}m: ${description}`);
|
|
124
141
|
// e.g. "0–2m: Grove minerale grond, waarvan de grove fractie uit zand bestaat..."
|
|
125
142
|
});
|
|
126
143
|
```
|
|
127
144
|
|
|
145
|
+
Because a `Coded` carries its own `codeSpace`, `describe` never has to guess which
|
|
146
|
+
table a code belongs to. The per-domain `*_CODES` tables and the `CODES_BY_DOMAIN`
|
|
147
|
+
index are also exported for advanced use.
|
|
148
|
+
|
|
128
149
|
Run `npm run codegen:reference-codes` to regenerate the lookup tables from the latest API.
|
|
129
150
|
|
|
130
151
|
## License
|
package/dist/browser.d.ts
CHANGED
|
@@ -19,19 +19,21 @@ export { 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=browser.d.ts.map
|
package/dist/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,iBAAiB,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhF,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;AAC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E,MAAM,iBAAiB,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGjG,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAG5C,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG9F,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG1F,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC"}
|
package/dist/browser.js
CHANGED
|
@@ -24,6 +24,8 @@ export { BRO_NAMESPACES, KNOWN_BRO_PREFIXES } from "./namespaces.js";
|
|
|
24
24
|
export { BRO_SOIL_COLORS, 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=browser.js.map
|
package/dist/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,iBAAiB,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAmBhF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,OA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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/core/producer.d.ts
CHANGED
|
@@ -6,18 +6,37 @@
|
|
|
6
6
|
* themselves producers, an array producer's item is a producer, and so on all
|
|
7
7
|
* the way down. {@link SchemaParser.produce} interprets this tree.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* Six kinds, each built by a combinator:
|
|
10
10
|
* - `scalar` — a leaf: text (or an attribute) decoded into `T`.
|
|
11
|
+
* - `code` — a leaf: a BRO coded value (`{ code, codeSpace }`), text + its domain.
|
|
11
12
|
* - `object` — a fixed set of named fields, each a producer.
|
|
12
13
|
* - `array` — a repeated subtree: `each` selects item nodes, `item` produces one.
|
|
13
14
|
* - `oneOf` — an honest discriminated union (shared `base` + tagged `branches`).
|
|
14
15
|
* - `custom` — the sole escape hatch, handed a narrow {@link NodeLens}.
|
|
15
16
|
*
|
|
16
|
-
* Absence model
|
|
17
|
+
* Absence model: a `required` field that is missing nulls its
|
|
17
18
|
* *nearest enclosing object*; arrays *drop* null items (recording a warning);
|
|
18
19
|
* only the document root throws. `required` is opt-in, so nothing cascades unless
|
|
19
20
|
* a schema author asks for it.
|
|
20
21
|
*/
|
|
22
|
+
/**
|
|
23
|
+
* A BRO coded value: the `code` text plus the `codeSpace` domain URI that the XML
|
|
24
|
+
* carries as a `codeSpace` attribute (e.g. `urn:bro:cpt:QualityClass`).
|
|
25
|
+
*
|
|
26
|
+
* First-class data, so the domain is never guessed from a field name — the
|
|
27
|
+
* `describe` helper in the `/reference-codes` subpath resolves it correctly by
|
|
28
|
+
* `codeSpace`. An absent or nil coded element parses to `null`; a present one is
|
|
29
|
+
* always a full `{ code, codeSpace }`.
|
|
30
|
+
*/
|
|
31
|
+
export interface Coded {
|
|
32
|
+
code: string;
|
|
33
|
+
codeSpace: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A sink for non-fatal decode messages (bad numeric text, etc.). The engine
|
|
37
|
+
* passes one that appends to `meta.warnings`; direct callers may omit it.
|
|
38
|
+
*/
|
|
39
|
+
type WarnSink = (message: string) => void;
|
|
21
40
|
/** How a producer behaves when it finds no data. */
|
|
22
41
|
export type Presence =
|
|
23
42
|
/** Missing → `null` (or `[]` for arrays). The default. */
|
|
@@ -66,12 +85,24 @@ interface ProducerMeta {
|
|
|
66
85
|
*/
|
|
67
86
|
export interface ScalarProducer<T, P extends Presence = "optional"> extends ProducerMeta {
|
|
68
87
|
kind: "scalar";
|
|
69
|
-
decode: (raw: string | null) => T;
|
|
88
|
+
decode: (raw: string | null, warn?: WarnSink) => T;
|
|
70
89
|
/** Absence behaviour (default `"optional"`). */
|
|
71
90
|
presence?: P;
|
|
72
91
|
/** Phantom output type — never present at runtime. */
|
|
73
92
|
readonly _out?: T;
|
|
74
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* A leaf coded value. Like {@link ScalarProducer} it is text-presence driven, but
|
|
96
|
+
* its decode also receives the node's `codeSpace` attribute so it can build a
|
|
97
|
+
* {@link Coded}. It is a first-class leaf (not a {@link CustomProducer}) so the
|
|
98
|
+
* presence/absence model applies uniformly.
|
|
99
|
+
*/
|
|
100
|
+
export interface CodeProducer<T, P extends Presence = "optional"> extends ProducerMeta {
|
|
101
|
+
kind: "code";
|
|
102
|
+
decode: (text: string | null, codeSpace: string | null) => T;
|
|
103
|
+
presence?: P;
|
|
104
|
+
readonly _out?: T;
|
|
105
|
+
}
|
|
75
106
|
export interface ObjectProducer<T, P extends Presence = "optional"> extends ProducerMeta {
|
|
76
107
|
kind: "object";
|
|
77
108
|
fields: Record<string, Producer<unknown, Presence>>;
|
|
@@ -93,7 +124,7 @@ export interface CustomProducer<T, P extends Presence = "optional"> extends Prod
|
|
|
93
124
|
readonly _out?: T;
|
|
94
125
|
}
|
|
95
126
|
/** One tagged branch of a {@link OneOfProducer}. */
|
|
96
|
-
|
|
127
|
+
interface OneOfBranch {
|
|
97
128
|
/** XPath whose existence selects this branch (first match wins). */
|
|
98
129
|
when: string;
|
|
99
130
|
/** Relative XPath to the branch's node (defaults to the oneOf node). */
|
|
@@ -112,7 +143,9 @@ export interface OneOfProducer<T, P extends Presence = "optional"> extends Produ
|
|
|
112
143
|
presence?: P;
|
|
113
144
|
readonly _out?: T;
|
|
114
145
|
}
|
|
115
|
-
export type Producer<T, P extends Presence = "optional"> = ScalarProducer<T, P> | ObjectProducer<T, P> | ArrayProducer<T, P> | CustomProducer<T, P> | OneOfProducer<T, P>;
|
|
146
|
+
export type Producer<T, P extends Presence = "optional"> = ScalarProducer<T, P> | CodeProducer<T, P> | ObjectProducer<T, P> | ArrayProducer<T, P> | CustomProducer<T, P> | OneOfProducer<T, P>;
|
|
147
|
+
/** Leaf producer kinds: value-bearing, driven by text presence. */
|
|
148
|
+
export type LeafKind = "scalar" | "code";
|
|
116
149
|
/** Flatten an intersection into a single object literal for legible hovers. */
|
|
117
150
|
type Simplify<T> = {
|
|
118
151
|
[K in keyof T]: T[K];
|
|
@@ -149,7 +182,7 @@ type LeafOpts<P extends Presence = "optional"> = BaseMeta & {
|
|
|
149
182
|
presence?: P;
|
|
150
183
|
};
|
|
151
184
|
type ScalarOpts<T, P extends Presence = "optional"> = LeafOpts<P> & {
|
|
152
|
-
decode: (raw: string | null) => T;
|
|
185
|
+
decode: (raw: string | null, warn?: WarnSink) => T;
|
|
153
186
|
};
|
|
154
187
|
/** A leaf producer with an explicit decoder. */
|
|
155
188
|
export declare function scalar<T, P extends Presence = "optional">(opts: ScalarOpts<T, P>): ScalarProducer<T, P>;
|
|
@@ -163,19 +196,37 @@ export declare function number<P extends Presence = "optional">(at?: string, opt
|
|
|
163
196
|
export declare function integer<P extends Presence = "optional">(at?: string, opts?: LeafOpts<P>): ScalarProducer<number | null, P>;
|
|
164
197
|
/** Boolean (`boolean | null`), understanding BRO's `ja`/`nee`. */
|
|
165
198
|
export declare function boolean<P extends Presence = "optional">(at?: string, opts?: LeafOpts<P>): ScalarProducer<boolean | null, P>;
|
|
166
|
-
/**
|
|
167
|
-
|
|
168
|
-
|
|
199
|
+
/**
|
|
200
|
+
* A BRO coded value (`{ code, codeSpace } | null`). Reads the element's text and
|
|
201
|
+
* its `codeSpace` attribute; absent/nil (no text) → `null`. A first-class leaf, so
|
|
202
|
+
* presence (`optional`/`required`/`omit`) and array-item handling apply as they do
|
|
203
|
+
* to {@link text} / {@link number}.
|
|
204
|
+
*/
|
|
205
|
+
export declare function code<P extends Presence = "optional">(at?: string, opts?: LeafOpts<P>): CodeProducer<Coded | null, P>;
|
|
206
|
+
/**
|
|
207
|
+
* A fixed set of named fields. Output type is inferred from `fields`.
|
|
208
|
+
*
|
|
209
|
+
* The concrete `fields` map type is also carried in the phantom `_fields`, so the
|
|
210
|
+
* `project` selector can mirror the producer's structure at the type level (an
|
|
211
|
+
* atomic `custom` field stays a leaf even when its value type looks structural).
|
|
212
|
+
*/
|
|
169
213
|
export declare function object<F extends Record<string, Producer<unknown, Presence>>, P extends Presence = "optional">(opts: {
|
|
170
214
|
fields: F;
|
|
171
215
|
presence?: P;
|
|
172
|
-
} & BaseMeta): ObjectProducer<ProducedFields<F>, P
|
|
173
|
-
|
|
174
|
-
|
|
216
|
+
} & BaseMeta): ObjectProducer<ProducedFields<F>, P> & {
|
|
217
|
+
readonly _fields?: F;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* A repeated subtree. `each` selects item nodes; `item` produces one value. The
|
|
221
|
+
* item producer's type is carried in the phantom `_item` (see {@link object}).
|
|
222
|
+
*/
|
|
223
|
+
export declare function array<I extends Producer<unknown, Presence>, P extends Presence = "optional">(opts: {
|
|
175
224
|
each: string;
|
|
176
|
-
item:
|
|
225
|
+
item: I;
|
|
177
226
|
presence?: P;
|
|
178
|
-
} & BaseMeta): ArrayProducer<Array<
|
|
227
|
+
} & BaseMeta): ArrayProducer<Array<Produced<I>>, P> & {
|
|
228
|
+
readonly _item?: I;
|
|
229
|
+
};
|
|
179
230
|
/** The escape hatch: a decoder handed a relative-only {@link NodeLens}. */
|
|
180
231
|
export declare function custom<T, P extends Presence = "optional">(opts: {
|
|
181
232
|
produce: (lens: NodeLens) => T;
|
|
@@ -211,6 +262,9 @@ export declare function oneOf<TagKey extends string, const Base extends Record<s
|
|
|
211
262
|
base?: Base;
|
|
212
263
|
branches: Branches;
|
|
213
264
|
presence?: P;
|
|
214
|
-
} & BaseMeta): OneOfProducer<OneOfOut<TagKey, Base, Branches>, P
|
|
265
|
+
} & BaseMeta): OneOfProducer<OneOfOut<TagKey, Base, Branches>, P> & {
|
|
266
|
+
readonly _base?: Base;
|
|
267
|
+
readonly _branches?: Branches;
|
|
268
|
+
};
|
|
215
269
|
export {};
|
|
216
270
|
//# sourceMappingURL=producer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"producer.d.ts","sourceRoot":"","sources":["../../src/core/producer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"producer.d.ts","sourceRoot":"","sources":["../../src/core/producer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AASH;;;;;;;;GAQG;AACH,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,KAAK,QAAQ,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;AAE1C,oDAAoD;AACpD,MAAM,MAAM,QAAQ;AAClB,0DAA0D;AACxD,UAAU;AACZ,2EAA2E;GACzE,UAAU;AACZ,kFAAkF;GAChF,MAAM,CAAC;AAEX;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACvB,+EAA+E;IAC/E,IAAI,IAAI,MAAM,GAAG,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AE,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,GAAG;IACtD,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC;CAC/B,CAGA"}
|
package/dist/core/producer.js
CHANGED
|
@@ -6,19 +6,20 @@
|
|
|
6
6
|
* themselves producers, an array producer's item is a producer, and so on all
|
|
7
7
|
* the way down. {@link SchemaParser.produce} interprets this tree.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* Six kinds, each built by a combinator:
|
|
10
10
|
* - `scalar` — a leaf: text (or an attribute) decoded into `T`.
|
|
11
|
+
* - `code` — a leaf: a BRO coded value (`{ code, codeSpace }`), text + its domain.
|
|
11
12
|
* - `object` — a fixed set of named fields, each a producer.
|
|
12
13
|
* - `array` — a repeated subtree: `each` selects item nodes, `item` produces one.
|
|
13
14
|
* - `oneOf` — an honest discriminated union (shared `base` + tagged `branches`).
|
|
14
15
|
* - `custom` — the sole escape hatch, handed a narrow {@link NodeLens}.
|
|
15
16
|
*
|
|
16
|
-
* Absence model
|
|
17
|
+
* Absence model: a `required` field that is missing nulls its
|
|
17
18
|
* *nearest enclosing object*; arrays *drop* null items (recording a warning);
|
|
18
19
|
* only the document root throws. `required` is opt-in, so nothing cascades unless
|
|
19
20
|
* a schema author asks for it.
|
|
20
21
|
*/
|
|
21
|
-
import { parseDate, parseFloat, parseInt, parseBoolean,
|
|
22
|
+
import { parseDate, parseFloat, parseInt, parseBoolean, } from "../decoders/type-decoders.js";
|
|
22
23
|
/** A leaf producer with an explicit decoder. */
|
|
23
24
|
export function scalar(opts) {
|
|
24
25
|
return { kind: "scalar", ...opts };
|
|
@@ -50,16 +51,35 @@ export function integer(at, opts = {}) {
|
|
|
50
51
|
export function boolean(at, opts = {}) {
|
|
51
52
|
return leaf(parseBoolean, at, opts);
|
|
52
53
|
}
|
|
53
|
-
/**
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
/**
|
|
55
|
+
* A BRO coded value (`{ code, codeSpace } | null`). Reads the element's text and
|
|
56
|
+
* its `codeSpace` attribute; absent/nil (no text) → `null`. A first-class leaf, so
|
|
57
|
+
* presence (`optional`/`required`/`omit`) and array-item handling apply as they do
|
|
58
|
+
* to {@link text} / {@link number}.
|
|
59
|
+
*/
|
|
60
|
+
export function code(at, opts = {}) {
|
|
61
|
+
return {
|
|
62
|
+
kind: "code",
|
|
63
|
+
decode: (text, codeSpace) => text === null || codeSpace === null ? null : { code: text, codeSpace },
|
|
64
|
+
...(at !== undefined ? { at } : {}),
|
|
65
|
+
...opts,
|
|
66
|
+
};
|
|
56
67
|
}
|
|
57
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* A fixed set of named fields. Output type is inferred from `fields`.
|
|
70
|
+
*
|
|
71
|
+
* The concrete `fields` map type is also carried in the phantom `_fields`, so the
|
|
72
|
+
* `project` selector can mirror the producer's structure at the type level (an
|
|
73
|
+
* atomic `custom` field stays a leaf even when its value type looks structural).
|
|
74
|
+
*/
|
|
58
75
|
export function object(opts) {
|
|
59
76
|
const { fields, ...meta } = opts;
|
|
60
77
|
return { kind: "object", fields, ...meta };
|
|
61
78
|
}
|
|
62
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* A repeated subtree. `each` selects item nodes; `item` produces one value. The
|
|
81
|
+
* item producer's type is carried in the phantom `_item` (see {@link object}).
|
|
82
|
+
*/
|
|
63
83
|
export function array(opts) {
|
|
64
84
|
const { each, item, ...meta } = opts;
|
|
65
85
|
return { kind: "array", each, item, ...meta };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"producer.js","sourceRoot":"","sources":["../../src/core/producer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"producer.js","sourceRoot":"","sources":["../../src/core/producer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EACL,SAAS,EACT,UAAU,EACV,QAAQ,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O,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,CAAC;AAC3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-parser.d.ts","sourceRoot":"","sources":["../../src/core/schema-parser.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,KAAK,EAAsB,cAAc,
|
|
1
|
+
{"version":3,"file":"schema-parser.d.ts","sourceRoot":"","sources":["../../src/core/schema-parser.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,KAAK,EAAsB,cAAc,EAAsB,MAAM,eAAe,CAAC;AA4B5F,qBAAa,YAAY;IAErB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,UAAU;gBADV,OAAO,EAAE,UAAU,EACnB,UAAU,EAAE,UAAU;IAGhC;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,CAAC,EACP,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,EACvB,QAAQ,CAAC,EAAE,MAAM,GAChB;QAAE,KAAK,EAAE,CAAC,CAAC;QAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE;IAexC;;;OAGG;IACH,OAAO,CAAC,WAAW;IAkBnB,OAAO,KAAK,UAAU,GAErB;IAED,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,QAAQ;IAIhB,oEAAoE;IACpE,OAAO,CAAC,GAAG;IAoDX;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IAoCjB,mFAAmF;IACnF,OAAO,CAAC,QAAQ;IAkChB,mEAAmE;IACnE,OAAO,CAAC,UAAU;IAalB,6DAA6D;IAC7D,OAAO,CAAC,QAAQ;CAgBjB"}
|
|
@@ -15,6 +15,11 @@ function readText(node) {
|
|
|
15
15
|
}
|
|
16
16
|
return trimmed;
|
|
17
17
|
}
|
|
18
|
+
const LEAF_KINDS = new Set(["scalar", "code"]);
|
|
19
|
+
/** Leaf producers are value-bearing and text-presence driven (`scalar`, `code`). */
|
|
20
|
+
function isLeafKind(kind) {
|
|
21
|
+
return LEAF_KINDS.has(kind);
|
|
22
|
+
}
|
|
18
23
|
export class SchemaParser {
|
|
19
24
|
adapter;
|
|
20
25
|
namespaces;
|
|
@@ -84,7 +89,16 @@ export class SchemaParser {
|
|
|
84
89
|
switch (producer.kind) {
|
|
85
90
|
case "scalar": {
|
|
86
91
|
const raw = readText(self);
|
|
87
|
-
return {
|
|
92
|
+
return {
|
|
93
|
+
value: producer.decode(raw, (msg) => warnings.push(msg)),
|
|
94
|
+
satisfied: raw !== null,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
case "code": {
|
|
98
|
+
const raw = readText(self);
|
|
99
|
+
const csNode = this.xpath(self, "@codeSpace");
|
|
100
|
+
const codeSpace = csNode ? readText(csNode) : null;
|
|
101
|
+
return { value: producer.decode(raw, codeSpace), satisfied: raw !== null };
|
|
88
102
|
}
|
|
89
103
|
case "custom": {
|
|
90
104
|
return { value: producer.produce(this.makeLens(self)), satisfied: true };
|
|
@@ -99,8 +113,8 @@ export class SchemaParser {
|
|
|
99
113
|
const outcome = this.run(itemNode, producer.item, warnings);
|
|
100
114
|
if (!outcome.satisfied) {
|
|
101
115
|
// Structured items (object/oneOf) that fail a required field are a
|
|
102
|
-
// meaningful data loss; an empty scalar in a
|
|
103
|
-
if (producer.item.kind
|
|
116
|
+
// meaningful data loss; an empty leaf (scalar/code) in a value list is not.
|
|
117
|
+
if (!isLeafKind(producer.item.kind)) {
|
|
104
118
|
warnings.push(`Dropped an item from array "${producer.each}": required data was missing`);
|
|
105
119
|
}
|
|
106
120
|
continue;
|
|
@@ -179,6 +193,8 @@ export class SchemaParser {
|
|
|
179
193
|
switch (producer.kind) {
|
|
180
194
|
case "scalar":
|
|
181
195
|
return producer.decode(null);
|
|
196
|
+
case "code":
|
|
197
|
+
return producer.decode(null, null);
|
|
182
198
|
case "array":
|
|
183
199
|
return [];
|
|
184
200
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-parser.js","sourceRoot":"","sources":["../../src/core/schema-parser.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAMlD,4DAA4D;AAC5D,SAAS,QAAQ,CAAC,IAAU;IAC1B,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC;IACzC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AASD,MAAM,OAAO,YAAY;IAEb;IACA;IAFV,YACU,OAAmB,EACnB,UAAsB;QADtB,YAAO,GAAP,OAAO,CAAY;QACnB,eAAU,GAAV,UAAU,CAAY;IAC7B,CAAC;IAEJ;;;;;;;;;;;OAWG;IACH,OAAO,CACL,GAAa,EACb,IAAuB,EACvB,QAAiB;QAEjB,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QACpD,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;QACtE,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,aAAa,CAAC,2BAA2B,IAAI,CAAC,EAAE,IAAI,QAAQ,IAAI,GAAG,EAAE,EAAE;gBAC/E,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,QAAQ;aAC1B,CAAC,CAAC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AC;QACxC,CAAC,CAAC;QACF,OAAO;YACL,IAAI,EAAE,GAAG,EAAE;gBACT,MAAM,SAAS,GAAI,IAAyB,CAAC,SAAS,CAAC;gBACvD,OAAO,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;YAC1D,CAAC;YACD,IAAI,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;YAC1B,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,EAAE;YACR,GAAG,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;SACxE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 type { Presence, Produced, ObjectProducer } from "./producer.js";
|
|
24
|
+
declare const OUT: unique symbol;
|
|
25
|
+
/** A selection token carrying the value type `V` it will parse to. */
|
|
26
|
+
export interface Leaf<V> {
|
|
27
|
+
readonly [OUT]?: V;
|
|
28
|
+
}
|
|
29
|
+
/** An array node: select the whole array (it is a {@link Leaf}), or `.each` a row. */
|
|
30
|
+
export interface ArraySel<I> extends Leaf<Array<Produced<I>>> {
|
|
31
|
+
each<R>(fn: (el: SelectableProducer<I>) => R): Leaf<Array<ProjectResult<R>>>;
|
|
32
|
+
}
|
|
33
|
+
/** Intersect the `fields` maps of every `oneOf` branch (a tuple of `BranchInput`). */
|
|
34
|
+
type BranchFields<Br> = Br extends readonly [infer H, ...infer T] ? (H extends {
|
|
35
|
+
fields: infer F;
|
|
36
|
+
} ? F : object) & BranchFields<T> : object;
|
|
37
|
+
/**
|
|
38
|
+
* Mirror a producer as a navigable path tree. Array producers → {@link ArraySel};
|
|
39
|
+
* object producers → descend by field; `oneOf` → descend the merged base + branch
|
|
40
|
+
* fields (selecting one flattens the union); every leaf (`text`/`number`/`date`/
|
|
41
|
+
* `boolean`/`code`) and atomic `custom`/`columns` → a whole-value {@link Leaf}.
|
|
42
|
+
*/
|
|
43
|
+
export type SelectableProducer<P> = P extends {
|
|
44
|
+
kind: "array";
|
|
45
|
+
_item?: infer I;
|
|
46
|
+
} ? ArraySel<I> : P extends {
|
|
47
|
+
kind: "object";
|
|
48
|
+
_fields?: infer F;
|
|
49
|
+
} ? {
|
|
50
|
+
[K in keyof F]-?: SelectableProducer<F[K]>;
|
|
51
|
+
} : P extends {
|
|
52
|
+
kind: "oneOf";
|
|
53
|
+
_base?: infer B;
|
|
54
|
+
_branches?: infer Br;
|
|
55
|
+
} ? {
|
|
56
|
+
[K in keyof (B & BranchFields<Br>)]-?: SelectableProducer<(B & BranchFields<Br>)[K]>;
|
|
57
|
+
} : P extends {
|
|
58
|
+
readonly _out?: infer V;
|
|
59
|
+
} ? Leaf<V> : never;
|
|
60
|
+
/** Resolve a returned selection tree to its parsed output type. */
|
|
61
|
+
export type ProjectResult<S> = S extends Leaf<infer V> ? V : S extends Record<string, unknown> ? {
|
|
62
|
+
[K in keyof S]: ProjectResult<S[K]>;
|
|
63
|
+
} : never;
|
|
64
|
+
/**
|
|
65
|
+
* Compile a selection over `root` into an {@link ObjectProducer}. The result
|
|
66
|
+
* parses through {@link SchemaParser} like any producer (e.g. via
|
|
67
|
+
* `BROParser.parseSelection`).
|
|
68
|
+
*/
|
|
69
|
+
export declare function project<P extends ObjectProducer<unknown, Presence>, S>(root: P, select: (t: SelectableProducer<P>) => S): ObjectProducer<ProjectResult<S>>;
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/core/select.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,KAAK,EAAY,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAMlF,OAAO,CAAC,MAAM,GAAG,EAAE,OAAO,MAAM,CAAC;AAEjC,sEAAsE;AACtE,MAAM,WAAW,IAAI,CAAC,CAAC;IACrB,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;CACpB;AAED,sFAAsF;AACtF,MAAM,WAAW,QAAQ,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3D,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC9E;AAED,sFAAsF;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