@maroonedog/luq 0.1.1-alpha → 2.0.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/LICENSE +9 -9
- package/README.md +389 -215
- package/dist/async/async-context.d.ts +41 -0
- package/dist/async/async-context.js +84 -0
- package/dist/async/async-context.mjs +79 -0
- package/dist/async/async-validator.d.ts +20 -0
- package/dist/async/async-validator.js +52 -0
- package/dist/async/async-validator.mjs +47 -0
- package/dist/async/index.d.ts +4 -0
- package/dist/async/index.js +25 -0
- package/dist/async/index.mjs +16 -0
- package/dist/async.d.ts +1 -0
- package/dist/async.js +2 -0
- package/dist/async.mjs +1 -0
- package/dist/builder/builder-surface.types.d.ts +39 -0
- package/dist/builder/builder-surface.types.js +2 -0
- package/dist/builder/builder-surface.types.mjs +1 -0
- package/dist/builder/compile-declarations.d.ts +4 -0
- package/dist/builder/compile-declarations.js +40 -0
- package/dist/builder/compile-declarations.mjs +37 -0
- package/dist/builder/create-builder.d.ts +16 -0
- package/dist/builder/create-builder.js +98 -0
- package/dist/builder/create-builder.mjs +92 -0
- package/dist/builder/create-field-builder.d.ts +5 -0
- package/dist/builder/create-field-builder.js +47 -0
- package/dist/builder/create-field-builder.mjs +44 -0
- package/dist/builder/create-plan-validator.d.ts +3 -0
- package/dist/builder/create-plan-validator.js +15 -0
- package/dist/builder/create-plan-validator.mjs +12 -0
- package/dist/builder/create-projection-reader.d.ts +3 -0
- package/dist/builder/create-projection-reader.js +44 -0
- package/dist/builder/create-projection-reader.mjs +41 -0
- package/dist/builder/create-subset-validator.d.ts +3 -0
- package/dist/builder/create-subset-validator.js +40 -0
- package/dist/builder/create-subset-validator.mjs +37 -0
- package/dist/builder/field-builder.types.d.ts +43 -0
- package/dist/builder/field-builder.types.js +11 -0
- package/dist/builder/field-builder.types.mjs +8 -0
- package/dist/builder/field-entry.types.d.ts +10 -0
- package/dist/builder/field-entry.types.js +2 -0
- package/dist/builder/field-entry.types.mjs +1 -0
- package/dist/builder/field-options.types.d.ts +11 -0
- package/dist/builder/field-options.types.js +13 -0
- package/dist/builder/field-options.types.mjs +12 -0
- package/dist/builder/global-config-store.d.ts +4 -0
- package/dist/builder/global-config-store.js +29 -0
- package/dist/builder/global-config-store.mjs +24 -0
- package/dist/builder/index.d.ts +6 -0
- package/dist/builder/index.js +17 -0
- package/dist/builder/index.mjs +8 -0
- package/dist/builder/resolve-field-default.d.ts +14 -0
- package/dist/builder/resolve-field-default.js +50 -0
- package/dist/builder/resolve-field-default.mjs +47 -0
- package/dist/builder/validator.types.d.ts +28 -0
- package/dist/builder/validator.types.js +2 -0
- package/dist/builder/validator.types.mjs +1 -0
- package/dist/chain/attach-slot-methods.d.ts +17 -0
- package/dist/chain/attach-slot-methods.js +47 -0
- package/dist/chain/attach-slot-methods.mjs +42 -0
- package/dist/chain/chain-method.types.d.ts +16 -0
- package/dist/chain/chain-method.types.js +2 -0
- package/dist/chain/chain-method.types.mjs +1 -0
- package/dist/chain/chain-state.types.d.ts +47 -0
- package/dist/chain/chain-state.types.js +2 -0
- package/dist/chain/chain-state.types.mjs +1 -0
- package/dist/chain/collect-branch-rules.d.ts +18 -0
- package/dist/chain/collect-branch-rules.js +71 -0
- package/dist/chain/collect-branch-rules.mjs +65 -0
- package/dist/chain/collect-field-rules.d.ts +10 -0
- package/dist/chain/collect-field-rules.js +22 -0
- package/dist/chain/collect-field-rules.mjs +17 -0
- package/dist/chain/create-chain-node.d.ts +26 -0
- package/dist/chain/create-chain-node.js +82 -0
- package/dist/chain/create-chain-node.mjs +77 -0
- package/dist/chain/create-field-slots.d.ts +6 -0
- package/dist/chain/create-field-slots.js +37 -0
- package/dist/chain/create-field-slots.mjs +33 -0
- package/dist/chain/field-chain.types.d.ts +25 -0
- package/dist/chain/field-chain.types.js +2 -0
- package/dist/chain/field-chain.types.mjs +1 -0
- package/dist/chain/field-slots.types.d.ts +18 -0
- package/dist/chain/field-slots.types.js +2 -0
- package/dist/chain/field-slots.types.mjs +1 -0
- package/dist/chain/index.d.ts +13 -0
- package/dist/chain/index.js +26 -0
- package/dist/chain/index.mjs +9 -0
- package/dist/chain/marker-coverage.types.d.ts +56 -0
- package/dist/chain/marker-coverage.types.js +2 -0
- package/dist/chain/marker-coverage.types.mjs +1 -0
- package/dist/chain/plugin-bag.types.d.ts +9 -0
- package/dist/chain/plugin-bag.types.js +2 -0
- package/dist/chain/plugin-bag.types.mjs +1 -0
- package/dist/chain/refine-methods.types.d.ts +33 -0
- package/dist/chain/refine-methods.types.js +14 -0
- package/dist/chain/refine-methods.types.mjs +11 -0
- package/dist/chain/resolve-args.types.d.ts +28 -0
- package/dist/chain/resolve-args.types.js +2 -0
- package/dist/chain/resolve-args.types.mjs +1 -0
- package/dist/chain/slot-value.types.d.ts +14 -0
- package/dist/chain/slot-value.types.js +2 -0
- package/dist/chain/slot-value.types.mjs +1 -0
- package/dist/compile/branch-executor.port.d.ts +6 -0
- package/dist/compile/branch-executor.port.js +2 -0
- package/dist/compile/branch-executor.port.mjs +1 -0
- package/dist/compile/compile-array-node.d.ts +19 -0
- package/dist/compile/compile-array-node.js +50 -0
- package/dist/compile/compile-array-node.mjs +46 -0
- package/dist/compile/compile-composite.d.ts +18 -0
- package/dist/compile/compile-composite.js +30 -0
- package/dist/compile/compile-composite.mjs +27 -0
- package/dist/compile/compile-field.d.ts +31 -0
- package/dist/compile/compile-field.js +67 -0
- package/dist/compile/compile-field.mjs +62 -0
- package/dist/compile/compile-schema.d.ts +8 -0
- package/dist/compile/compile-schema.js +126 -0
- package/dist/compile/compile-schema.mjs +121 -0
- package/dist/compile/declared-child-keys.d.ts +15 -0
- package/dist/compile/declared-child-keys.js +70 -0
- package/dist/compile/declared-child-keys.mjs +66 -0
- package/dist/compile/group-array-fields.d.ts +39 -0
- package/dist/compile/group-array-fields.js +66 -0
- package/dist/compile/group-array-fields.mjs +63 -0
- package/dist/compile/index.d.ts +18 -0
- package/dist/compile/index.js +33 -0
- package/dist/compile/index.mjs +10 -0
- package/dist/compile/resolve-conditional-presence.d.ts +5 -0
- package/dist/compile/resolve-conditional-presence.js +41 -0
- package/dist/compile/resolve-conditional-presence.mjs +37 -0
- package/dist/compile/resolve-presence.d.ts +6 -0
- package/dist/compile/resolve-presence.js +59 -0
- package/dist/compile/resolve-presence.mjs +55 -0
- package/dist/compile/resolve-recursion.d.ts +10 -0
- package/dist/compile/resolve-recursion.js +33 -0
- package/dist/compile/resolve-recursion.mjs +28 -0
- package/dist/compile/split-rules-by-kind.d.ts +16 -0
- package/dist/compile/split-rules-by-kind.js +61 -0
- package/dist/compile/split-rules-by-kind.mjs +56 -0
- package/dist/compile/validation-plan.types.d.ts +113 -0
- package/dist/compile/validation-plan.types.js +2 -0
- package/dist/compile/validation-plan.types.mjs +1 -0
- package/dist/core/type-erasure.d.ts +42 -0
- package/dist/core/type-erasure.js +63 -0
- package/dist/core/type-erasure.mjs +57 -0
- package/dist/field-rule/create-field-rule.d.ts +11 -0
- package/dist/field-rule/create-field-rule.js +50 -0
- package/dist/field-rule/create-field-rule.mjs +46 -0
- package/dist/field-rule/create-plugin-registry.d.ts +2 -0
- package/dist/field-rule/create-plugin-registry.js +60 -0
- package/dist/field-rule/create-plugin-registry.mjs +57 -0
- package/dist/field-rule/field-rule.types.d.ts +38 -0
- package/dist/field-rule/field-rule.types.js +2 -0
- package/dist/field-rule/field-rule.types.mjs +1 -0
- package/dist/field-rule/index.d.ts +5 -0
- package/dist/field-rule/index.js +13 -0
- package/dist/field-rule/index.mjs +6 -0
- package/dist/field-rule/plugin-registry.types.d.ts +17 -0
- package/dist/field-rule/plugin-registry.types.js +2 -0
- package/dist/field-rule/plugin-registry.types.mjs +1 -0
- package/dist/field-rule/use-field.d.ts +6 -0
- package/dist/field-rule/use-field.js +6 -0
- package/dist/field-rule/use-field.mjs +3 -0
- package/dist/field-rule.d.ts +1 -0
- package/dist/field-rule.js +2 -0
- package/dist/field-rule.mjs +1 -0
- package/dist/index.d.ts +14 -72
- package/dist/index.js +48 -2
- package/dist/index.mjs +18 -2
- package/dist/json-schema/apply-keyword-binding.d.ts +20 -0
- package/dist/json-schema/apply-keyword-binding.js +7 -0
- package/dist/json-schema/apply-keyword-binding.mjs +4 -0
- package/dist/json-schema/bind-keyword.d.ts +7 -0
- package/dist/json-schema/bind-keyword.js +21 -0
- package/dist/json-schema/bind-keyword.mjs +16 -0
- package/dist/json-schema/build-from-schema.d.ts +23 -0
- package/dist/json-schema/build-from-schema.js +64 -0
- package/dist/json-schema/build-from-schema.mjs +57 -0
- package/dist/json-schema/collect-definitions.d.ts +21 -0
- package/dist/json-schema/collect-definitions.js +67 -0
- package/dist/json-schema/collect-definitions.mjs +59 -0
- package/dist/json-schema/collect-sub-schema-rules.d.ts +6 -0
- package/dist/json-schema/collect-sub-schema-rules.js +82 -0
- package/dist/json-schema/collect-sub-schema-rules.mjs +78 -0
- package/dist/json-schema/compose-conditional.d.ts +4 -0
- package/dist/json-schema/compose-conditional.js +17 -0
- package/dist/json-schema/compose-conditional.mjs +14 -0
- package/dist/json-schema/compose-keyword.d.ts +7 -0
- package/dist/json-schema/compose-keyword.js +127 -0
- package/dist/json-schema/compose-keyword.mjs +121 -0
- package/dist/json-schema/create-structural-context.d.ts +10 -0
- package/dist/json-schema/create-structural-context.js +51 -0
- package/dist/json-schema/create-structural-context.mjs +48 -0
- package/dist/json-schema/declare-object-keywords.d.ts +24 -0
- package/dist/json-schema/declare-object-keywords.js +140 -0
- package/dist/json-schema/declare-object-keywords.mjs +132 -0
- package/dist/json-schema/declare-presence.d.ts +12 -0
- package/dist/json-schema/declare-presence.js +46 -0
- package/dist/json-schema/declare-presence.mjs +43 -0
- package/dist/json-schema/declare-required-properties.d.ts +18 -0
- package/dist/json-schema/declare-required-properties.js +58 -0
- package/dist/json-schema/declare-required-properties.mjs +55 -0
- package/dist/json-schema/declare-scalar-keywords.d.ts +11 -0
- package/dist/json-schema/declare-scalar-keywords.js +110 -0
- package/dist/json-schema/declare-scalar-keywords.mjs +105 -0
- package/dist/json-schema/declare-value-keywords.d.ts +23 -0
- package/dist/json-schema/declare-value-keywords.js +120 -0
- package/dist/json-schema/declare-value-keywords.mjs +112 -0
- package/dist/json-schema/draft07-keyword-value.types.d.ts +61 -0
- package/dist/json-schema/draft07-keyword-value.types.js +2 -0
- package/dist/json-schema/draft07-keyword-value.types.mjs +1 -0
- package/dist/json-schema/draft07.types.d.ts +57 -0
- package/dist/json-schema/draft07.types.js +28 -0
- package/dist/json-schema/draft07.types.mjs +24 -0
- package/dist/json-schema/extensions/json-schema/index.d.ts +3 -0
- package/dist/json-schema/extensions/json-schema/index.js +27 -0
- package/dist/json-schema/extensions/json-schema/index.mjs +11 -0
- package/dist/json-schema/extensions/json-schema/json-schema.d.ts +18 -0
- package/dist/json-schema/extensions/json-schema/json-schema.js +100 -0
- package/dist/json-schema/extensions/json-schema/json-schema.mjs +96 -0
- package/dist/json-schema/extensions/json-schema-full-feature/bundle-coverage.d.ts +38 -0
- package/dist/json-schema/extensions/json-schema-full-feature/bundle-coverage.js +96 -0
- package/dist/json-schema/extensions/json-schema-full-feature/bundle-coverage.mjs +89 -0
- package/dist/json-schema/extensions/json-schema-full-feature/bundled-plugins.d.ts +7 -0
- package/dist/json-schema/extensions/json-schema-full-feature/bundled-plugins.js +107 -0
- package/dist/json-schema/extensions/json-schema-full-feature/bundled-plugins.mjs +104 -0
- package/dist/json-schema/extensions/json-schema-full-feature/index.d.ts +4 -0
- package/dist/json-schema/extensions/json-schema-full-feature/index.js +25 -0
- package/dist/json-schema/extensions/json-schema-full-feature/index.mjs +14 -0
- package/dist/json-schema/extensions/json-schema-full-feature/json-schema-full-feature.d.ts +23 -0
- package/dist/json-schema/extensions/json-schema-full-feature/json-schema-full-feature.js +64 -0
- package/dist/json-schema/extensions/json-schema-full-feature/json-schema-full-feature.mjs +60 -0
- package/dist/json-schema/flatten-array-schema.d.ts +25 -0
- package/dist/json-schema/flatten-array-schema.js +141 -0
- package/dist/json-schema/flatten-array-schema.mjs +134 -0
- package/dist/json-schema/flatten-schema.d.ts +20 -0
- package/dist/json-schema/flatten-schema.js +162 -0
- package/dist/json-schema/flatten-schema.mjs +157 -0
- package/dist/json-schema/format-map.d.ts +20 -0
- package/dist/json-schema/format-map.js +89 -0
- package/dist/json-schema/format-map.mjs +84 -0
- package/dist/json-schema/index.d.ts +19 -0
- package/dist/json-schema/index.js +57 -0
- package/dist/json-schema/index.mjs +19 -0
- package/dist/json-schema/json-schema-bag.types.d.ts +124 -0
- package/dist/json-schema/json-schema-bag.types.js +2 -0
- package/dist/json-schema/json-schema-bag.types.mjs +1 -0
- package/dist/json-schema/keyword-binding.types.d.ts +50 -0
- package/dist/json-schema/keyword-binding.types.js +2 -0
- package/dist/json-schema/keyword-binding.types.mjs +1 -0
- package/dist/json-schema/keyword-map-array.d.ts +13 -0
- package/dist/json-schema/keyword-map-array.js +37 -0
- package/dist/json-schema/keyword-map-array.mjs +34 -0
- package/dist/json-schema/keyword-map-core.d.ts +8 -0
- package/dist/json-schema/keyword-map-core.js +54 -0
- package/dist/json-schema/keyword-map-core.mjs +51 -0
- package/dist/json-schema/keyword-map-number.d.ts +13 -0
- package/dist/json-schema/keyword-map-number.js +33 -0
- package/dist/json-schema/keyword-map-number.mjs +30 -0
- package/dist/json-schema/keyword-map-object.d.ts +17 -0
- package/dist/json-schema/keyword-map-object.js +51 -0
- package/dist/json-schema/keyword-map-object.mjs +48 -0
- package/dist/json-schema/keyword-map-string.d.ts +20 -0
- package/dist/json-schema/keyword-map-string.js +44 -0
- package/dist/json-schema/keyword-map-string.mjs +41 -0
- package/dist/json-schema/keyword-map.d.ts +32 -0
- package/dist/json-schema/keyword-map.js +93 -0
- package/dist/json-schema/keyword-map.mjs +84 -0
- package/dist/json-schema/resolve-ref.d.ts +16 -0
- package/dist/json-schema/resolve-ref.js +103 -0
- package/dist/json-schema/resolve-ref.mjs +97 -0
- package/dist/json-schema/schema-to-declarations.d.ts +9 -0
- package/dist/json-schema/schema-to-declarations.js +122 -0
- package/dist/json-schema/schema-to-declarations.mjs +116 -0
- package/dist/json-schema/structural-expansion.types.d.ts +83 -0
- package/dist/json-schema/structural-expansion.types.js +22 -0
- package/dist/json-schema/structural-expansion.types.mjs +18 -0
- package/dist/json-schema/unsupported-keyword-error.d.ts +5 -0
- package/dist/json-schema/unsupported-keyword-error.js +24 -0
- package/dist/json-schema/unsupported-keyword-error.mjs +20 -0
- package/dist/path/create-array-reader.d.ts +13 -0
- package/dist/path/create-array-reader.js +22 -0
- package/dist/path/create-array-reader.mjs +19 -0
- package/dist/path/create-value-reader.d.ts +26 -0
- package/dist/path/create-value-reader.js +71 -0
- package/dist/path/create-value-reader.mjs +65 -0
- package/dist/path/create-value-writer.d.ts +5 -0
- package/dist/path/create-value-writer.js +55 -0
- package/dist/path/create-value-writer.mjs +52 -0
- package/dist/path/element-of.types.d.ts +1 -0
- package/dist/path/element-of.types.js +2 -0
- package/dist/path/element-of.types.mjs +1 -0
- package/dist/path/field-path.types.d.ts +13 -0
- package/dist/path/field-path.types.js +2 -0
- package/dist/path/field-path.types.mjs +1 -0
- package/dist/path/format-issue-path.d.ts +15 -0
- package/dist/path/format-issue-path.js +34 -0
- package/dist/path/format-issue-path.mjs +31 -0
- package/dist/path/index.d.ts +18 -0
- package/dist/path/index.js +26 -0
- package/dist/path/index.mjs +7 -0
- package/dist/path/leaf-path.types.d.ts +16 -0
- package/dist/path/leaf-path.types.js +2 -0
- package/dist/path/leaf-path.types.mjs +1 -0
- package/dist/path/match-path-pattern.d.ts +9 -0
- package/dist/path/match-path-pattern.js +66 -0
- package/dist/path/match-path-pattern.mjs +63 -0
- package/dist/path/opaque-object.types.d.ts +5 -0
- package/dist/path/opaque-object.types.js +2 -0
- package/dist/path/opaque-object.types.mjs +1 -0
- package/dist/path/parse-field-path.d.ts +25 -0
- package/dist/path/parse-field-path.js +75 -0
- package/dist/path/parse-field-path.mjs +69 -0
- package/dist/path/path-depth.types.d.ts +4 -0
- package/dist/path/path-depth.types.js +2 -0
- package/dist/path/path-depth.types.mjs +1 -0
- package/dist/path/path-segment.types.d.ts +27 -0
- package/dist/path/path-segment.types.js +2 -0
- package/dist/path/path-segment.types.mjs +1 -0
- package/dist/path/property-value-of.types.d.ts +2 -0
- package/dist/path/property-value-of.types.js +2 -0
- package/dist/path/property-value-of.types.mjs +1 -0
- package/dist/path/reserved-segment.d.ts +28 -0
- package/dist/path/reserved-segment.js +68 -0
- package/dist/path/reserved-segment.mjs +62 -0
- package/dist/path/value-at-path.types.d.ts +25 -0
- package/dist/path/value-at-path.types.js +2 -0
- package/dist/path/value-at-path.types.mjs +1 -0
- package/dist/plugin-kit/compiled-rule.d.ts +99 -0
- package/dist/plugin-kit/compiled-rule.js +2 -0
- package/dist/plugin-kit/compiled-rule.mjs +1 -0
- package/dist/plugin-kit/create-conditional-presence.d.ts +25 -0
- package/dist/plugin-kit/create-conditional-presence.js +32 -0
- package/dist/plugin-kit/create-conditional-presence.mjs +28 -0
- package/dist/plugin-kit/create-rule.d.ts +48 -0
- package/dist/plugin-kit/create-rule.js +67 -0
- package/dist/plugin-kit/create-rule.mjs +57 -0
- package/dist/plugin-kit/external-context.d.ts +2 -0
- package/dist/plugin-kit/external-context.js +25 -0
- package/dist/plugin-kit/external-context.mjs +22 -0
- package/dist/plugin-kit/index.d.ts +11 -0
- package/dist/plugin-kit/index.js +39 -0
- package/dist/plugin-kit/index.mjs +23 -0
- package/dist/plugin-kit/is-json-value-equal.d.ts +10 -0
- package/dist/plugin-kit/is-json-value-equal.js +81 -0
- package/dist/plugin-kit/is-json-value-equal.mjs +77 -0
- package/dist/plugin-kit/marker.types.d.ts +114 -0
- package/dist/plugin-kit/marker.types.js +2 -0
- package/dist/plugin-kit/marker.types.mjs +1 -0
- package/dist/plugin-kit/plugin-definition.d.ts +40 -0
- package/dist/plugin-kit/plugin-definition.js +25 -0
- package/dist/plugin-kit/plugin-definition.mjs +20 -0
- package/dist/plugin-kit/rule-build-context.d.ts +27 -0
- package/dist/plugin-kit/rule-build-context.js +8 -0
- package/dist/plugin-kit/rule-build-context.mjs +5 -0
- package/dist/plugin-kit/runtime-args.types.d.ts +27 -0
- package/dist/plugin-kit/runtime-args.types.js +2 -0
- package/dist/plugin-kit/runtime-args.types.mjs +1 -0
- package/dist/plugin-kit.d.ts +1 -0
- package/dist/plugin-kit.js +2 -0
- package/dist/plugin-kit.mjs +1 -0
- package/dist/plugins/array-contains/array-contains.d.ts +22 -0
- package/dist/plugins/array-contains/array-contains.js +82 -0
- package/dist/plugins/array-contains/array-contains.mjs +79 -0
- package/dist/plugins/array-contains/index.d.ts +2 -0
- package/dist/plugins/array-contains/index.js +5 -0
- package/dist/plugins/array-contains/index.mjs +1 -0
- package/dist/plugins/array-each/array-each.d.ts +14 -0
- package/dist/plugins/array-each/array-each.js +51 -0
- package/dist/plugins/array-each/array-each.mjs +48 -0
- package/dist/plugins/array-each/index.d.ts +1 -0
- package/dist/plugins/array-each/index.js +5 -0
- package/dist/plugins/array-each/index.mjs +1 -0
- package/dist/plugins/array-includes/array-includes.d.ts +9 -0
- package/dist/plugins/array-includes/array-includes.js +26 -0
- package/dist/plugins/array-includes/array-includes.mjs +23 -0
- package/dist/plugins/array-includes/index.d.ts +2 -0
- package/dist/plugins/array-includes/index.js +5 -0
- package/dist/plugins/array-includes/index.mjs +1 -0
- package/dist/plugins/array-max-length/array-max-length.d.ts +10 -0
- package/dist/plugins/array-max-length/array-max-length.js +29 -0
- package/dist/plugins/array-max-length/array-max-length.mjs +26 -0
- package/dist/plugins/array-max-length/index.d.ts +2 -0
- package/dist/plugins/array-max-length/index.js +5 -0
- package/dist/plugins/array-max-length/index.mjs +1 -0
- package/dist/plugins/array-min-length/array-min-length.d.ts +10 -0
- package/dist/plugins/array-min-length/array-min-length.js +29 -0
- package/dist/plugins/array-min-length/array-min-length.mjs +26 -0
- package/dist/plugins/array-min-length/index.d.ts +2 -0
- package/dist/plugins/array-min-length/index.js +5 -0
- package/dist/plugins/array-min-length/index.mjs +1 -0
- package/dist/plugins/array-unique/array-unique.d.ts +7 -0
- package/dist/plugins/array-unique/array-unique.js +54 -0
- package/dist/plugins/array-unique/array-unique.mjs +51 -0
- package/dist/plugins/array-unique/index.d.ts +1 -0
- package/dist/plugins/array-unique/index.js +5 -0
- package/dist/plugins/array-unique/index.mjs +1 -0
- package/dist/plugins/arrayContains.d.ts +1 -37
- package/dist/plugins/arrayContains.js +2 -1
- package/dist/plugins/arrayContains.mjs +1 -1
- package/dist/plugins/arrayEach.d.ts +1 -0
- package/dist/plugins/arrayEach.js +2 -0
- package/dist/plugins/arrayEach.mjs +1 -0
- package/dist/plugins/arrayIncludes.d.ts +1 -42
- package/dist/plugins/arrayIncludes.js +2 -1
- package/dist/plugins/arrayIncludes.mjs +1 -1
- package/dist/plugins/arrayMaxLength.d.ts +1 -43
- package/dist/plugins/arrayMaxLength.js +2 -1
- package/dist/plugins/arrayMaxLength.mjs +1 -1
- package/dist/plugins/arrayMinLength.d.ts +1 -43
- package/dist/plugins/arrayMinLength.js +2 -1
- package/dist/plugins/arrayMinLength.mjs +1 -1
- package/dist/plugins/arrayUnique.d.ts +1 -41
- package/dist/plugins/arrayUnique.js +2 -1
- package/dist/plugins/arrayUnique.mjs +1 -1
- package/dist/plugins/boolean-falsy/boolean-falsy.d.ts +7 -0
- package/dist/plugins/boolean-falsy/boolean-falsy.js +24 -0
- package/dist/plugins/boolean-falsy/boolean-falsy.mjs +21 -0
- package/dist/plugins/boolean-falsy/index.d.ts +1 -0
- package/dist/plugins/boolean-falsy/index.js +5 -0
- package/dist/plugins/boolean-falsy/index.mjs +1 -0
- package/dist/plugins/boolean-truthy/boolean-truthy.d.ts +7 -0
- package/dist/plugins/boolean-truthy/boolean-truthy.js +24 -0
- package/dist/plugins/boolean-truthy/boolean-truthy.mjs +21 -0
- package/dist/plugins/boolean-truthy/index.d.ts +1 -0
- package/dist/plugins/boolean-truthy/index.js +5 -0
- package/dist/plugins/boolean-truthy/index.mjs +1 -0
- package/dist/plugins/booleanFalsy.d.ts +1 -41
- package/dist/plugins/booleanFalsy.js +2 -1
- package/dist/plugins/booleanFalsy.mjs +1 -1
- package/dist/plugins/booleanTruthy.d.ts +1 -38
- package/dist/plugins/booleanTruthy.js +2 -1
- package/dist/plugins/booleanTruthy.mjs +1 -1
- package/dist/plugins/compare-field/compare-field.d.ts +13 -0
- package/dist/plugins/compare-field/compare-field.js +57 -0
- package/dist/plugins/compare-field/compare-field.mjs +54 -0
- package/dist/plugins/compare-field/index.d.ts +2 -0
- package/dist/plugins/compare-field/index.js +5 -0
- package/dist/plugins/compare-field/index.mjs +1 -0
- package/dist/plugins/compareField.d.ts +1 -58
- package/dist/plugins/compareField.js +2 -1
- package/dist/plugins/compareField.mjs +1 -1
- package/dist/plugins/conditional-schema/conditional-schema.d.ts +17 -0
- package/dist/plugins/conditional-schema/conditional-schema.js +87 -0
- package/dist/plugins/conditional-schema/conditional-schema.mjs +84 -0
- package/dist/plugins/conditional-schema/index.d.ts +2 -0
- package/dist/plugins/conditional-schema/index.js +5 -0
- package/dist/plugins/conditional-schema/index.mjs +1 -0
- package/dist/plugins/conditionalSchema.d.ts +1 -0
- package/dist/plugins/conditionalSchema.js +2 -0
- package/dist/plugins/conditionalSchema.mjs +1 -0
- package/dist/plugins/custom/custom.d.ts +12 -0
- package/dist/plugins/custom/custom.js +82 -0
- package/dist/plugins/custom/custom.mjs +79 -0
- package/dist/plugins/custom/index.d.ts +1 -0
- package/dist/plugins/custom/index.js +5 -0
- package/dist/plugins/custom/index.mjs +1 -0
- package/dist/plugins/custom.d.ts +1 -60
- package/dist/plugins/custom.js +2 -1
- package/dist/plugins/custom.mjs +1 -1
- package/dist/plugins/from-context/from-context.d.ts +28 -0
- package/dist/plugins/from-context/from-context.js +84 -0
- package/dist/plugins/from-context/from-context.mjs +81 -0
- package/dist/plugins/from-context/index.d.ts +2 -0
- package/dist/plugins/from-context/index.js +5 -0
- package/dist/plugins/from-context/index.mjs +1 -0
- package/dist/plugins/fromContext.d.ts +1 -0
- package/dist/plugins/fromContext.js +2 -0
- package/dist/plugins/fromContext.mjs +1 -0
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.generated.d.ts +77 -0
- package/dist/plugins/index.generated.js +160 -0
- package/dist/plugins/index.generated.mjs +79 -0
- package/dist/plugins/index.js +2 -0
- package/dist/plugins/index.mjs +1 -0
- package/dist/plugins/jsonSchema.d.ts +1 -11
- package/dist/plugins/jsonSchema.js +2 -1
- package/dist/plugins/jsonSchema.mjs +1 -1
- package/dist/plugins/jsonSchemaFullFeature.d.ts +1 -31
- package/dist/plugins/jsonSchemaFullFeature.js +2 -1
- package/dist/plugins/jsonSchemaFullFeature.mjs +1 -1
- package/dist/plugins/literal/index.d.ts +1 -0
- package/dist/plugins/literal/index.js +5 -0
- package/dist/plugins/literal/index.mjs +1 -0
- package/dist/plugins/literal/literal.d.ts +10 -0
- package/dist/plugins/literal/literal.js +53 -0
- package/dist/plugins/literal/literal.mjs +50 -0
- package/dist/plugins/literal.d.ts +1 -40
- package/dist/plugins/literal.js +2 -1
- package/dist/plugins/literal.mjs +1 -1
- package/dist/plugins/manifest.generated.d.ts +8 -0
- package/dist/plugins/manifest.generated.js +83 -0
- package/dist/plugins/manifest.generated.mjs +80 -0
- package/dist/plugins/nullable/index.d.ts +1 -0
- package/dist/plugins/nullable/index.js +5 -0
- package/dist/plugins/nullable/index.mjs +1 -0
- package/dist/plugins/nullable/nullable.d.ts +7 -0
- package/dist/plugins/nullable/nullable.js +39 -0
- package/dist/plugins/nullable/nullable.mjs +36 -0
- package/dist/plugins/nullable.d.ts +1 -34
- package/dist/plugins/nullable.js +2 -1
- package/dist/plugins/nullable.mjs +1 -1
- package/dist/plugins/number-finite/index.d.ts +1 -0
- package/dist/plugins/number-finite/index.js +5 -0
- package/dist/plugins/number-finite/index.mjs +1 -0
- package/dist/plugins/number-finite/number-finite.d.ts +7 -0
- package/dist/plugins/number-finite/number-finite.js +21 -0
- package/dist/plugins/number-finite/number-finite.mjs +18 -0
- package/dist/plugins/number-integer/index.d.ts +1 -0
- package/dist/plugins/number-integer/index.js +5 -0
- package/dist/plugins/number-integer/index.mjs +1 -0
- package/dist/plugins/number-integer/number-integer.d.ts +7 -0
- package/dist/plugins/number-integer/number-integer.js +21 -0
- package/dist/plugins/number-integer/number-integer.mjs +18 -0
- package/dist/plugins/number-max/index.d.ts +2 -0
- package/dist/plugins/number-max/index.js +5 -0
- package/dist/plugins/number-max/index.mjs +1 -0
- package/dist/plugins/number-max/number-max.d.ts +11 -0
- package/dist/plugins/number-max/number-max.js +36 -0
- package/dist/plugins/number-max/number-max.mjs +33 -0
- package/dist/plugins/number-min/index.d.ts +2 -0
- package/dist/plugins/number-min/index.js +5 -0
- package/dist/plugins/number-min/index.mjs +1 -0
- package/dist/plugins/number-min/number-min.d.ts +11 -0
- package/dist/plugins/number-min/number-min.js +38 -0
- package/dist/plugins/number-min/number-min.mjs +35 -0
- package/dist/plugins/number-multiple-of/index.d.ts +2 -0
- package/dist/plugins/number-multiple-of/index.js +5 -0
- package/dist/plugins/number-multiple-of/index.mjs +1 -0
- package/dist/plugins/number-multiple-of/is-multiple-of.d.ts +7 -0
- package/dist/plugins/number-multiple-of/is-multiple-of.js +61 -0
- package/dist/plugins/number-multiple-of/is-multiple-of.mjs +57 -0
- package/dist/plugins/number-multiple-of/number-multiple-of.d.ts +9 -0
- package/dist/plugins/number-multiple-of/number-multiple-of.js +27 -0
- package/dist/plugins/number-multiple-of/number-multiple-of.mjs +24 -0
- package/dist/plugins/number-negative/index.d.ts +1 -0
- package/dist/plugins/number-negative/index.js +5 -0
- package/dist/plugins/number-negative/index.mjs +1 -0
- package/dist/plugins/number-negative/number-negative.d.ts +7 -0
- package/dist/plugins/number-negative/number-negative.js +21 -0
- package/dist/plugins/number-negative/number-negative.mjs +18 -0
- package/dist/plugins/number-positive/index.d.ts +1 -0
- package/dist/plugins/number-positive/index.js +5 -0
- package/dist/plugins/number-positive/index.mjs +1 -0
- package/dist/plugins/number-positive/number-positive.d.ts +7 -0
- package/dist/plugins/number-positive/number-positive.js +21 -0
- package/dist/plugins/number-positive/number-positive.mjs +18 -0
- package/dist/plugins/number-range/index.d.ts +2 -0
- package/dist/plugins/number-range/index.js +5 -0
- package/dist/plugins/number-range/index.mjs +1 -0
- package/dist/plugins/number-range/number-range.d.ts +11 -0
- package/dist/plugins/number-range/number-range.js +39 -0
- package/dist/plugins/number-range/number-range.mjs +36 -0
- package/dist/plugins/numberFinite.d.ts +1 -0
- package/dist/plugins/numberFinite.js +2 -0
- package/dist/plugins/numberFinite.mjs +1 -0
- package/dist/plugins/numberInteger.d.ts +1 -41
- package/dist/plugins/numberInteger.js +2 -1
- package/dist/plugins/numberInteger.mjs +1 -1
- package/dist/plugins/numberMax.d.ts +1 -49
- package/dist/plugins/numberMax.js +2 -1
- package/dist/plugins/numberMax.mjs +1 -1
- package/dist/plugins/numberMin.d.ts +1 -49
- package/dist/plugins/numberMin.js +2 -1
- package/dist/plugins/numberMin.mjs +1 -1
- package/dist/plugins/numberMultipleOf.d.ts +1 -42
- package/dist/plugins/numberMultipleOf.js +2 -1
- package/dist/plugins/numberMultipleOf.mjs +1 -1
- package/dist/plugins/numberNegative.d.ts +1 -41
- package/dist/plugins/numberNegative.js +2 -1
- package/dist/plugins/numberNegative.mjs +1 -1
- package/dist/plugins/numberPositive.d.ts +1 -41
- package/dist/plugins/numberPositive.js +2 -1
- package/dist/plugins/numberPositive.mjs +1 -1
- package/dist/plugins/numberRange.d.ts +1 -0
- package/dist/plugins/numberRange.js +2 -0
- package/dist/plugins/numberRange.mjs +1 -0
- package/dist/plugins/object/index.d.ts +2 -0
- package/dist/plugins/object/index.js +5 -0
- package/dist/plugins/object/index.mjs +1 -0
- package/dist/plugins/object/object.d.ts +9 -0
- package/dist/plugins/object/object.js +29 -0
- package/dist/plugins/object/object.mjs +26 -0
- package/dist/plugins/object-additional-properties/index.d.ts +3 -0
- package/dist/plugins/object-additional-properties/index.js +11 -0
- package/dist/plugins/object-additional-properties/index.mjs +6 -0
- package/dist/plugins/object-additional-properties/object-additional-properties-schema.d.ts +14 -0
- package/dist/plugins/object-additional-properties/object-additional-properties-schema.js +56 -0
- package/dist/plugins/object-additional-properties/object-additional-properties-schema.mjs +53 -0
- package/dist/plugins/object-additional-properties/object-additional-properties.d.ts +9 -0
- package/dist/plugins/object-additional-properties/object-additional-properties.js +40 -0
- package/dist/plugins/object-additional-properties/object-additional-properties.mjs +37 -0
- package/dist/plugins/object-dependent-required/dependent-required-violation.d.ts +7 -0
- package/dist/plugins/object-dependent-required/dependent-required-violation.js +45 -0
- package/dist/plugins/object-dependent-required/dependent-required-violation.mjs +40 -0
- package/dist/plugins/object-dependent-required/index.d.ts +3 -0
- package/dist/plugins/object-dependent-required/index.js +5 -0
- package/dist/plugins/object-dependent-required/index.mjs +1 -0
- package/dist/plugins/object-dependent-required/object-dependent-required.d.ts +10 -0
- package/dist/plugins/object-dependent-required/object-dependent-required.js +27 -0
- package/dist/plugins/object-dependent-required/object-dependent-required.mjs +24 -0
- package/dist/plugins/object-dependent-schemas/index.d.ts +2 -0
- package/dist/plugins/object-dependent-schemas/index.js +5 -0
- package/dist/plugins/object-dependent-schemas/index.mjs +1 -0
- package/dist/plugins/object-dependent-schemas/object-dependent-schemas.d.ts +16 -0
- package/dist/plugins/object-dependent-schemas/object-dependent-schemas.js +47 -0
- package/dist/plugins/object-dependent-schemas/object-dependent-schemas.mjs +44 -0
- package/dist/plugins/object-max-properties/index.d.ts +2 -0
- package/dist/plugins/object-max-properties/index.js +5 -0
- package/dist/plugins/object-max-properties/index.mjs +1 -0
- package/dist/plugins/object-max-properties/object-max-properties.d.ts +10 -0
- package/dist/plugins/object-max-properties/object-max-properties.js +32 -0
- package/dist/plugins/object-max-properties/object-max-properties.mjs +29 -0
- package/dist/plugins/object-min-properties/index.d.ts +2 -0
- package/dist/plugins/object-min-properties/index.js +5 -0
- package/dist/plugins/object-min-properties/index.mjs +1 -0
- package/dist/plugins/object-min-properties/object-min-properties.d.ts +10 -0
- package/dist/plugins/object-min-properties/object-min-properties.js +32 -0
- package/dist/plugins/object-min-properties/object-min-properties.mjs +29 -0
- package/dist/plugins/object-pattern-properties/index.d.ts +2 -0
- package/dist/plugins/object-pattern-properties/index.js +5 -0
- package/dist/plugins/object-pattern-properties/index.mjs +1 -0
- package/dist/plugins/object-pattern-properties/object-pattern-properties.d.ts +16 -0
- package/dist/plugins/object-pattern-properties/object-pattern-properties.js +57 -0
- package/dist/plugins/object-pattern-properties/object-pattern-properties.mjs +54 -0
- package/dist/plugins/object-property-names/index.d.ts +2 -0
- package/dist/plugins/object-property-names/index.js +5 -0
- package/dist/plugins/object-property-names/index.mjs +1 -0
- package/dist/plugins/object-property-names/object-property-names.d.ts +16 -0
- package/dist/plugins/object-property-names/object-property-names.js +47 -0
- package/dist/plugins/object-property-names/object-property-names.mjs +44 -0
- package/dist/plugins/object-recursively/index.d.ts +2 -0
- package/dist/plugins/object-recursively/index.js +5 -0
- package/dist/plugins/object-recursively/index.mjs +1 -0
- package/dist/plugins/object-recursively/object-recursively.d.ts +11 -0
- package/dist/plugins/object-recursively/object-recursively.js +26 -0
- package/dist/plugins/object-recursively/object-recursively.mjs +23 -0
- package/dist/plugins/object.d.ts +1 -43
- package/dist/plugins/object.js +2 -1
- package/dist/plugins/object.mjs +1 -1
- package/dist/plugins/objectAdditionalProperties.d.ts +1 -51
- package/dist/plugins/objectAdditionalProperties.js +2 -1
- package/dist/plugins/objectAdditionalProperties.mjs +1 -1
- package/dist/plugins/objectDependentRequired.d.ts +1 -42
- package/dist/plugins/objectDependentRequired.js +2 -1
- package/dist/plugins/objectDependentRequired.mjs +1 -1
- package/dist/plugins/objectDependentSchemas.d.ts +1 -40
- package/dist/plugins/objectDependentSchemas.js +2 -1
- package/dist/plugins/objectDependentSchemas.mjs +1 -1
- package/dist/plugins/objectMaxProperties.d.ts +1 -42
- package/dist/plugins/objectMaxProperties.js +2 -1
- package/dist/plugins/objectMaxProperties.mjs +1 -1
- package/dist/plugins/objectMinProperties.d.ts +1 -42
- package/dist/plugins/objectMinProperties.js +2 -1
- package/dist/plugins/objectMinProperties.mjs +1 -1
- package/dist/plugins/objectPatternProperties.d.ts +1 -46
- package/dist/plugins/objectPatternProperties.js +2 -1
- package/dist/plugins/objectPatternProperties.mjs +1 -1
- package/dist/plugins/objectPropertyNames.d.ts +1 -36
- package/dist/plugins/objectPropertyNames.js +2 -1
- package/dist/plugins/objectPropertyNames.mjs +1 -1
- package/dist/plugins/objectRecursively.d.ts +1 -0
- package/dist/plugins/objectRecursively.js +2 -0
- package/dist/plugins/objectRecursively.mjs +1 -0
- package/dist/plugins/one-of/index.d.ts +1 -0
- package/dist/plugins/one-of/index.js +5 -0
- package/dist/plugins/one-of/index.mjs +1 -0
- package/dist/plugins/one-of/one-of.d.ts +7 -0
- package/dist/plugins/one-of/one-of.js +67 -0
- package/dist/plugins/one-of/one-of.mjs +64 -0
- package/dist/plugins/oneOf.d.ts +1 -44
- package/dist/plugins/oneOf.js +2 -1
- package/dist/plugins/oneOf.mjs +1 -1
- package/dist/plugins/optional/index.d.ts +1 -0
- package/dist/plugins/optional/index.js +5 -0
- package/dist/plugins/optional/index.mjs +1 -0
- package/dist/plugins/optional/optional.d.ts +7 -0
- package/dist/plugins/optional/optional.js +42 -0
- package/dist/plugins/optional/optional.mjs +39 -0
- package/dist/plugins/optional-if/index.d.ts +1 -0
- package/dist/plugins/optional-if/index.js +5 -0
- package/dist/plugins/optional-if/index.mjs +1 -0
- package/dist/plugins/optional-if/optional-if.d.ts +11 -0
- package/dist/plugins/optional-if/optional-if.js +31 -0
- package/dist/plugins/optional-if/optional-if.mjs +28 -0
- package/dist/plugins/optional.d.ts +1 -35
- package/dist/plugins/optional.js +2 -1
- package/dist/plugins/optional.mjs +1 -1
- package/dist/plugins/optionalIf.d.ts +1 -0
- package/dist/plugins/optionalIf.js +2 -0
- package/dist/plugins/optionalIf.mjs +1 -0
- package/dist/plugins/or-fail/index.d.ts +1 -0
- package/dist/plugins/or-fail/index.js +5 -0
- package/dist/plugins/or-fail/index.mjs +1 -0
- package/dist/plugins/or-fail/or-fail.d.ts +7 -0
- package/dist/plugins/or-fail/or-fail.js +44 -0
- package/dist/plugins/or-fail/or-fail.mjs +41 -0
- package/dist/plugins/orFail.d.ts +1 -0
- package/dist/plugins/orFail.js +2 -0
- package/dist/plugins/orFail.mjs +1 -0
- package/dist/plugins/read-only/index.d.ts +1 -0
- package/dist/plugins/read-only/index.js +5 -0
- package/dist/plugins/read-only/index.mjs +1 -0
- package/dist/plugins/read-only/read-only.d.ts +7 -0
- package/dist/plugins/read-only/read-only.js +52 -0
- package/dist/plugins/read-only/read-only.mjs +49 -0
- package/dist/plugins/readOnly.d.ts +1 -0
- package/dist/plugins/readOnly.js +2 -0
- package/dist/plugins/readOnly.mjs +1 -0
- package/dist/plugins/readOnlyWriteOnly.d.ts +1 -48
- package/dist/plugins/readOnlyWriteOnly.js +2 -1
- package/dist/plugins/readOnlyWriteOnly.mjs +1 -1
- package/dist/plugins/required/index.d.ts +1 -0
- package/dist/plugins/required/index.js +5 -0
- package/dist/plugins/required/index.mjs +1 -0
- package/dist/plugins/required/required.d.ts +7 -0
- package/dist/plugins/required/required.js +42 -0
- package/dist/plugins/required/required.mjs +39 -0
- package/dist/plugins/required-if/index.d.ts +1 -0
- package/dist/plugins/required-if/index.js +5 -0
- package/dist/plugins/required-if/index.mjs +1 -0
- package/dist/plugins/required-if/required-if.d.ts +11 -0
- package/dist/plugins/required-if/required-if.js +34 -0
- package/dist/plugins/required-if/required-if.mjs +31 -0
- package/dist/plugins/required.d.ts +1 -45
- package/dist/plugins/required.js +2 -1
- package/dist/plugins/required.mjs +1 -1
- package/dist/plugins/requiredIf.d.ts +1 -66
- package/dist/plugins/requiredIf.js +2 -1
- package/dist/plugins/requiredIf.mjs +1 -1
- package/dist/plugins/skip/index.d.ts +1 -0
- package/dist/plugins/skip/index.js +5 -0
- package/dist/plugins/skip/index.mjs +1 -0
- package/dist/plugins/skip/skip.d.ts +7 -0
- package/dist/plugins/skip/skip.js +22 -0
- package/dist/plugins/skip/skip.mjs +19 -0
- package/dist/plugins/skip.d.ts +1 -57
- package/dist/plugins/skip.js +2 -1
- package/dist/plugins/skip.mjs +1 -1
- package/dist/plugins/stitch/index.d.ts +2 -0
- package/dist/plugins/stitch/index.js +5 -0
- package/dist/plugins/stitch/index.mjs +1 -0
- package/dist/plugins/stitch/stitch.d.ts +30 -0
- package/dist/plugins/stitch/stitch.js +72 -0
- package/dist/plugins/stitch/stitch.mjs +69 -0
- package/dist/plugins/stitch.d.ts +1 -0
- package/dist/plugins/stitch.js +2 -0
- package/dist/plugins/stitch.mjs +1 -0
- package/dist/plugins/string-alphanumeric/index.d.ts +1 -0
- package/dist/plugins/string-alphanumeric/index.js +5 -0
- package/dist/plugins/string-alphanumeric/index.mjs +1 -0
- package/dist/plugins/string-alphanumeric/string-alphanumeric.d.ts +8 -0
- package/dist/plugins/string-alphanumeric/string-alphanumeric.js +39 -0
- package/dist/plugins/string-alphanumeric/string-alphanumeric.mjs +36 -0
- package/dist/plugins/string-base64/index.d.ts +1 -0
- package/dist/plugins/string-base64/index.js +5 -0
- package/dist/plugins/string-base64/index.mjs +1 -0
- package/dist/plugins/string-base64/string-base64.d.ts +12 -0
- package/dist/plugins/string-base64/string-base64.js +40 -0
- package/dist/plugins/string-base64/string-base64.mjs +37 -0
- package/dist/plugins/string-content-encoding/content-encoding-checks.d.ts +4 -0
- package/dist/plugins/string-content-encoding/content-encoding-checks.js +67 -0
- package/dist/plugins/string-content-encoding/content-encoding-checks.mjs +64 -0
- package/dist/plugins/string-content-encoding/index.d.ts +2 -0
- package/dist/plugins/string-content-encoding/index.js +5 -0
- package/dist/plugins/string-content-encoding/index.mjs +1 -0
- package/dist/plugins/string-content-encoding/string-content-encoding.d.ts +10 -0
- package/dist/plugins/string-content-encoding/string-content-encoding.js +40 -0
- package/dist/plugins/string-content-encoding/string-content-encoding.mjs +37 -0
- package/dist/plugins/string-content-media-type/index.d.ts +1 -0
- package/dist/plugins/string-content-media-type/index.js +5 -0
- package/dist/plugins/string-content-media-type/index.mjs +1 -0
- package/dist/plugins/string-content-media-type/media-type-checks.d.ts +3 -0
- package/dist/plugins/string-content-media-type/media-type-checks.js +46 -0
- package/dist/plugins/string-content-media-type/media-type-checks.mjs +43 -0
- package/dist/plugins/string-content-media-type/string-content-media-type.d.ts +8 -0
- package/dist/plugins/string-content-media-type/string-content-media-type.js +41 -0
- package/dist/plugins/string-content-media-type/string-content-media-type.mjs +38 -0
- package/dist/plugins/string-date/calendar-date.d.ts +3 -0
- package/dist/plugins/string-date/calendar-date.js +24 -0
- package/dist/plugins/string-date/calendar-date.mjs +20 -0
- package/dist/plugins/string-date/index.d.ts +1 -0
- package/dist/plugins/string-date/index.js +5 -0
- package/dist/plugins/string-date/index.mjs +1 -0
- package/dist/plugins/string-date/string-date.d.ts +7 -0
- package/dist/plugins/string-date/string-date.js +42 -0
- package/dist/plugins/string-date/string-date.mjs +39 -0
- package/dist/plugins/string-datetime/calendar-date.d.ts +2 -0
- package/dist/plugins/string-datetime/calendar-date.js +24 -0
- package/dist/plugins/string-datetime/calendar-date.mjs +20 -0
- package/dist/plugins/string-datetime/index.d.ts +1 -0
- package/dist/plugins/string-datetime/index.js +5 -0
- package/dist/plugins/string-datetime/index.mjs +1 -0
- package/dist/plugins/string-datetime/string-datetime.d.ts +12 -0
- package/dist/plugins/string-datetime/string-datetime.js +67 -0
- package/dist/plugins/string-datetime/string-datetime.mjs +64 -0
- package/dist/plugins/string-duration/index.d.ts +1 -0
- package/dist/plugins/string-duration/index.js +5 -0
- package/dist/plugins/string-duration/index.mjs +1 -0
- package/dist/plugins/string-duration/string-duration.d.ts +7 -0
- package/dist/plugins/string-duration/string-duration.js +31 -0
- package/dist/plugins/string-duration/string-duration.mjs +28 -0
- package/dist/plugins/string-email/index.d.ts +1 -0
- package/dist/plugins/string-email/index.js +5 -0
- package/dist/plugins/string-email/index.mjs +1 -0
- package/dist/plugins/string-email/string-email.d.ts +14 -0
- package/dist/plugins/string-email/string-email.js +58 -0
- package/dist/plugins/string-email/string-email.mjs +55 -0
- package/dist/plugins/string-ends-with/index.d.ts +1 -0
- package/dist/plugins/string-ends-with/index.js +5 -0
- package/dist/plugins/string-ends-with/index.mjs +1 -0
- package/dist/plugins/string-ends-with/string-ends-with.d.ts +8 -0
- package/dist/plugins/string-ends-with/string-ends-with.js +30 -0
- package/dist/plugins/string-ends-with/string-ends-with.mjs +27 -0
- package/dist/plugins/string-exact-length/index.d.ts +1 -0
- package/dist/plugins/string-exact-length/index.js +5 -0
- package/dist/plugins/string-exact-length/index.mjs +1 -0
- package/dist/plugins/string-exact-length/string-exact-length.d.ts +11 -0
- package/dist/plugins/string-exact-length/string-exact-length.js +34 -0
- package/dist/plugins/string-exact-length/string-exact-length.mjs +31 -0
- package/dist/plugins/string-hostname/index.d.ts +1 -0
- package/dist/plugins/string-hostname/index.js +5 -0
- package/dist/plugins/string-hostname/index.mjs +1 -0
- package/dist/plugins/string-hostname/string-hostname.d.ts +7 -0
- package/dist/plugins/string-hostname/string-hostname.js +30 -0
- package/dist/plugins/string-hostname/string-hostname.mjs +27 -0
- package/dist/plugins/string-idn-email/idn-email.d.ts +1 -0
- package/dist/plugins/string-idn-email/idn-email.js +85 -0
- package/dist/plugins/string-idn-email/idn-email.mjs +82 -0
- package/dist/plugins/string-idn-email/index.d.ts +1 -0
- package/dist/plugins/string-idn-email/index.js +5 -0
- package/dist/plugins/string-idn-email/index.mjs +1 -0
- package/dist/plugins/string-idn-email/string-idn-email.d.ts +7 -0
- package/dist/plugins/string-idn-email/string-idn-email.js +29 -0
- package/dist/plugins/string-idn-email/string-idn-email.mjs +26 -0
- package/dist/plugins/string-idn-hostname/idn-hostname.d.ts +1 -0
- package/dist/plugins/string-idn-hostname/idn-hostname.js +72 -0
- package/dist/plugins/string-idn-hostname/idn-hostname.mjs +69 -0
- package/dist/plugins/string-idn-hostname/index.d.ts +1 -0
- package/dist/plugins/string-idn-hostname/index.js +5 -0
- package/dist/plugins/string-idn-hostname/index.mjs +1 -0
- package/dist/plugins/string-idn-hostname/string-idn-hostname.d.ts +7 -0
- package/dist/plugins/string-idn-hostname/string-idn-hostname.js +31 -0
- package/dist/plugins/string-idn-hostname/string-idn-hostname.mjs +28 -0
- package/dist/plugins/string-ipv4/index.d.ts +1 -0
- package/dist/plugins/string-ipv4/index.js +5 -0
- package/dist/plugins/string-ipv4/index.mjs +1 -0
- package/dist/plugins/string-ipv4/string-ipv4.d.ts +7 -0
- package/dist/plugins/string-ipv4/string-ipv4.js +32 -0
- package/dist/plugins/string-ipv4/string-ipv4.mjs +29 -0
- package/dist/plugins/string-ipv6/index.d.ts +1 -0
- package/dist/plugins/string-ipv6/index.js +5 -0
- package/dist/plugins/string-ipv6/index.mjs +1 -0
- package/dist/plugins/string-ipv6/ipv6-address.d.ts +2 -0
- package/dist/plugins/string-ipv6/ipv6-address.js +70 -0
- package/dist/plugins/string-ipv6/ipv6-address.mjs +67 -0
- package/dist/plugins/string-ipv6/string-ipv6.d.ts +7 -0
- package/dist/plugins/string-ipv6/string-ipv6.js +27 -0
- package/dist/plugins/string-ipv6/string-ipv6.mjs +24 -0
- package/dist/plugins/string-iri/control-character.d.ts +1 -0
- package/dist/plugins/string-iri/control-character.js +21 -0
- package/dist/plugins/string-iri/control-character.mjs +18 -0
- package/dist/plugins/string-iri/index.d.ts +1 -0
- package/dist/plugins/string-iri/index.js +5 -0
- package/dist/plugins/string-iri/index.mjs +1 -0
- package/dist/plugins/string-iri/string-iri.d.ts +7 -0
- package/dist/plugins/string-iri/string-iri.js +49 -0
- package/dist/plugins/string-iri/string-iri.mjs +46 -0
- package/dist/plugins/string-iri-reference/control-character.d.ts +1 -0
- package/dist/plugins/string-iri-reference/control-character.js +21 -0
- package/dist/plugins/string-iri-reference/control-character.mjs +18 -0
- package/dist/plugins/string-iri-reference/index.d.ts +1 -0
- package/dist/plugins/string-iri-reference/index.js +5 -0
- package/dist/plugins/string-iri-reference/index.mjs +1 -0
- package/dist/plugins/string-iri-reference/iri-reference.d.ts +1 -0
- package/dist/plugins/string-iri-reference/iri-reference.js +39 -0
- package/dist/plugins/string-iri-reference/iri-reference.mjs +36 -0
- package/dist/plugins/string-iri-reference/string-iri-reference.d.ts +7 -0
- package/dist/plugins/string-iri-reference/string-iri-reference.js +26 -0
- package/dist/plugins/string-iri-reference/string-iri-reference.mjs +23 -0
- package/dist/plugins/string-json-pointer/index.d.ts +1 -0
- package/dist/plugins/string-json-pointer/index.js +5 -0
- package/dist/plugins/string-json-pointer/index.mjs +1 -0
- package/dist/plugins/string-json-pointer/string-json-pointer.d.ts +7 -0
- package/dist/plugins/string-json-pointer/string-json-pointer.js +35 -0
- package/dist/plugins/string-json-pointer/string-json-pointer.mjs +32 -0
- package/dist/plugins/string-max/index.d.ts +1 -0
- package/dist/plugins/string-max/index.js +5 -0
- package/dist/plugins/string-max/index.mjs +1 -0
- package/dist/plugins/string-max/string-max.d.ts +11 -0
- package/dist/plugins/string-max/string-max.js +34 -0
- package/dist/plugins/string-max/string-max.mjs +31 -0
- package/dist/plugins/string-min/index.d.ts +1 -0
- package/dist/plugins/string-min/index.js +5 -0
- package/dist/plugins/string-min/index.mjs +1 -0
- package/dist/plugins/string-min/string-min.d.ts +11 -0
- package/dist/plugins/string-min/string-min.js +37 -0
- package/dist/plugins/string-min/string-min.mjs +34 -0
- package/dist/plugins/string-pattern/index.d.ts +1 -0
- package/dist/plugins/string-pattern/index.js +5 -0
- package/dist/plugins/string-pattern/index.mjs +1 -0
- package/dist/plugins/string-pattern/string-pattern.d.ts +8 -0
- package/dist/plugins/string-pattern/string-pattern.js +49 -0
- package/dist/plugins/string-pattern/string-pattern.mjs +46 -0
- package/dist/plugins/string-regex/index.d.ts +1 -0
- package/dist/plugins/string-regex/index.js +5 -0
- package/dist/plugins/string-regex/index.mjs +1 -0
- package/dist/plugins/string-regex/is-ecma262-regex.d.ts +2 -0
- package/dist/plugins/string-regex/is-ecma262-regex.js +25 -0
- package/dist/plugins/string-regex/is-ecma262-regex.mjs +22 -0
- package/dist/plugins/string-regex/string-regex.d.ts +7 -0
- package/dist/plugins/string-regex/string-regex.js +28 -0
- package/dist/plugins/string-regex/string-regex.mjs +25 -0
- package/dist/plugins/string-relative-json-pointer/index.d.ts +1 -0
- package/dist/plugins/string-relative-json-pointer/index.js +5 -0
- package/dist/plugins/string-relative-json-pointer/index.mjs +1 -0
- package/dist/plugins/string-relative-json-pointer/string-relative-json-pointer.d.ts +7 -0
- package/dist/plugins/string-relative-json-pointer/string-relative-json-pointer.js +42 -0
- package/dist/plugins/string-relative-json-pointer/string-relative-json-pointer.mjs +39 -0
- package/dist/plugins/string-starts-with/index.d.ts +1 -0
- package/dist/plugins/string-starts-with/index.js +5 -0
- package/dist/plugins/string-starts-with/index.mjs +1 -0
- package/dist/plugins/string-starts-with/string-starts-with.d.ts +8 -0
- package/dist/plugins/string-starts-with/string-starts-with.js +30 -0
- package/dist/plugins/string-starts-with/string-starts-with.mjs +27 -0
- package/dist/plugins/string-time/index.d.ts +1 -0
- package/dist/plugins/string-time/index.js +5 -0
- package/dist/plugins/string-time/index.mjs +1 -0
- package/dist/plugins/string-time/string-time.d.ts +12 -0
- package/dist/plugins/string-time/string-time.js +37 -0
- package/dist/plugins/string-time/string-time.mjs +34 -0
- package/dist/plugins/string-uri-reference/index.d.ts +1 -0
- package/dist/plugins/string-uri-reference/index.js +5 -0
- package/dist/plugins/string-uri-reference/index.mjs +1 -0
- package/dist/plugins/string-uri-reference/string-uri-reference.d.ts +7 -0
- package/dist/plugins/string-uri-reference/string-uri-reference.js +28 -0
- package/dist/plugins/string-uri-reference/string-uri-reference.mjs +25 -0
- package/dist/plugins/string-uri-reference/uri-reference.d.ts +1 -0
- package/dist/plugins/string-uri-reference/uri-reference.js +71 -0
- package/dist/plugins/string-uri-reference/uri-reference.mjs +68 -0
- package/dist/plugins/string-uri-template/index.d.ts +1 -0
- package/dist/plugins/string-uri-template/index.js +5 -0
- package/dist/plugins/string-uri-template/index.mjs +1 -0
- package/dist/plugins/string-uri-template/string-uri-template.d.ts +7 -0
- package/dist/plugins/string-uri-template/string-uri-template.js +26 -0
- package/dist/plugins/string-uri-template/string-uri-template.mjs +23 -0
- package/dist/plugins/string-uri-template/uri-template.d.ts +1 -0
- package/dist/plugins/string-uri-template/uri-template.js +59 -0
- package/dist/plugins/string-uri-template/uri-template.mjs +56 -0
- package/dist/plugins/string-url/index.d.ts +1 -0
- package/dist/plugins/string-url/index.js +5 -0
- package/dist/plugins/string-url/index.mjs +1 -0
- package/dist/plugins/string-url/string-url.d.ts +14 -0
- package/dist/plugins/string-url/string-url.js +55 -0
- package/dist/plugins/string-url/string-url.mjs +52 -0
- package/dist/plugins/stringAlphanumeric.d.ts +1 -0
- package/dist/plugins/stringAlphanumeric.js +2 -0
- package/dist/plugins/stringAlphanumeric.mjs +1 -0
- package/dist/plugins/stringBase64.d.ts +1 -119
- package/dist/plugins/stringBase64.js +2 -1
- package/dist/plugins/stringBase64.mjs +1 -1
- package/dist/plugins/stringContentEncoding.d.ts +1 -43
- package/dist/plugins/stringContentEncoding.js +2 -1
- package/dist/plugins/stringContentEncoding.mjs +1 -1
- package/dist/plugins/stringContentMediaType.d.ts +1 -47
- package/dist/plugins/stringContentMediaType.js +2 -1
- package/dist/plugins/stringContentMediaType.mjs +1 -1
- package/dist/plugins/stringDate.d.ts +1 -48
- package/dist/plugins/stringDate.js +2 -1
- package/dist/plugins/stringDate.mjs +1 -1
- package/dist/plugins/stringDatetime.d.ts +1 -108
- package/dist/plugins/stringDatetime.js +2 -1
- package/dist/plugins/stringDatetime.mjs +1 -1
- package/dist/plugins/stringDuration.d.ts +1 -41
- package/dist/plugins/stringDuration.js +2 -1
- package/dist/plugins/stringDuration.mjs +1 -1
- package/dist/plugins/stringEmail.d.ts +1 -81
- package/dist/plugins/stringEmail.js +2 -1
- package/dist/plugins/stringEmail.mjs +1 -1
- package/dist/plugins/stringEndsWith.d.ts +1 -0
- package/dist/plugins/stringEndsWith.js +2 -0
- package/dist/plugins/stringEndsWith.mjs +1 -0
- package/dist/plugins/stringExactLength.d.ts +1 -0
- package/dist/plugins/stringExactLength.js +2 -0
- package/dist/plugins/stringExactLength.mjs +1 -0
- package/dist/plugins/stringHostname.d.ts +1 -104
- package/dist/plugins/stringHostname.js +2 -1
- package/dist/plugins/stringHostname.mjs +1 -1
- package/dist/plugins/stringIdnEmail.d.ts +1 -0
- package/dist/plugins/stringIdnEmail.js +2 -0
- package/dist/plugins/stringIdnEmail.mjs +1 -0
- package/dist/plugins/stringIdnHostname.d.ts +1 -0
- package/dist/plugins/stringIdnHostname.js +2 -0
- package/dist/plugins/stringIdnHostname.mjs +1 -0
- package/dist/plugins/stringIpv4.d.ts +1 -85
- package/dist/plugins/stringIpv4.js +2 -1
- package/dist/plugins/stringIpv4.mjs +1 -1
- package/dist/plugins/stringIpv6.d.ts +1 -104
- package/dist/plugins/stringIpv6.js +2 -1
- package/dist/plugins/stringIpv6.mjs +1 -1
- package/dist/plugins/stringIri.d.ts +1 -117
- package/dist/plugins/stringIri.js +2 -1
- package/dist/plugins/stringIri.mjs +1 -1
- package/dist/plugins/stringIriReference.d.ts +1 -43
- package/dist/plugins/stringIriReference.js +2 -1
- package/dist/plugins/stringIriReference.mjs +1 -1
- package/dist/plugins/stringJsonPointer.d.ts +1 -107
- package/dist/plugins/stringJsonPointer.js +2 -1
- package/dist/plugins/stringJsonPointer.mjs +1 -1
- package/dist/plugins/stringMax.d.ts +1 -43
- package/dist/plugins/stringMax.js +2 -1
- package/dist/plugins/stringMax.mjs +1 -1
- package/dist/plugins/stringMin.d.ts +1 -43
- package/dist/plugins/stringMin.js +2 -1
- package/dist/plugins/stringMin.mjs +1 -1
- package/dist/plugins/stringPattern.d.ts +1 -40
- package/dist/plugins/stringPattern.js +2 -1
- package/dist/plugins/stringPattern.mjs +1 -1
- package/dist/plugins/stringRegex.d.ts +1 -0
- package/dist/plugins/stringRegex.js +2 -0
- package/dist/plugins/stringRegex.mjs +1 -0
- package/dist/plugins/stringRelativeJsonPointer.d.ts +1 -42
- package/dist/plugins/stringRelativeJsonPointer.js +2 -1
- package/dist/plugins/stringRelativeJsonPointer.mjs +1 -1
- package/dist/plugins/stringStartsWith.d.ts +1 -0
- package/dist/plugins/stringStartsWith.js +2 -0
- package/dist/plugins/stringStartsWith.mjs +1 -0
- package/dist/plugins/stringTime.d.ts +1 -39
- package/dist/plugins/stringTime.js +2 -1
- package/dist/plugins/stringTime.mjs +1 -1
- package/dist/plugins/stringUriReference.d.ts +1 -0
- package/dist/plugins/stringUriReference.js +2 -0
- package/dist/plugins/stringUriReference.mjs +1 -0
- package/dist/plugins/stringUriTemplate.d.ts +1 -43
- package/dist/plugins/stringUriTemplate.js +2 -1
- package/dist/plugins/stringUriTemplate.mjs +1 -1
- package/dist/plugins/stringUrl.d.ts +1 -97
- package/dist/plugins/stringUrl.js +2 -1
- package/dist/plugins/stringUrl.mjs +1 -1
- package/dist/plugins/transform/index.d.ts +1 -0
- package/dist/plugins/transform/index.js +5 -0
- package/dist/plugins/transform/index.mjs +1 -0
- package/dist/plugins/transform/transform.d.ts +7 -0
- package/dist/plugins/transform/transform.js +35 -0
- package/dist/plugins/transform/transform.mjs +32 -0
- package/dist/plugins/transform.d.ts +1 -35
- package/dist/plugins/transform.js +2 -1
- package/dist/plugins/transform.mjs +1 -1
- package/dist/plugins/tuple-builder/index.d.ts +2 -0
- package/dist/plugins/tuple-builder/index.js +5 -0
- package/dist/plugins/tuple-builder/index.mjs +1 -0
- package/dist/plugins/tuple-builder/tuple-builder.d.ts +21 -0
- package/dist/plugins/tuple-builder/tuple-builder.js +128 -0
- package/dist/plugins/tuple-builder/tuple-builder.mjs +125 -0
- package/dist/plugins/tupleBuilder.d.ts +1 -66
- package/dist/plugins/tupleBuilder.js +2 -1
- package/dist/plugins/tupleBuilder.mjs +1 -1
- package/dist/plugins/union-guard/index.d.ts +1 -0
- package/dist/plugins/union-guard/index.js +5 -0
- package/dist/plugins/union-guard/index.mjs +1 -0
- package/dist/plugins/union-guard/union-guard.d.ts +14 -0
- package/dist/plugins/union-guard/union-guard.js +56 -0
- package/dist/plugins/union-guard/union-guard.mjs +53 -0
- package/dist/plugins/unionGuard.d.ts +1 -0
- package/dist/plugins/unionGuard.js +2 -0
- package/dist/plugins/unionGuard.mjs +1 -0
- package/dist/plugins/uuid/index.d.ts +1 -0
- package/dist/plugins/uuid/index.js +5 -0
- package/dist/plugins/uuid/index.mjs +1 -0
- package/dist/plugins/uuid/uuid.d.ts +10 -0
- package/dist/plugins/uuid/uuid.js +56 -0
- package/dist/plugins/uuid/uuid.mjs +53 -0
- package/dist/plugins/uuid.d.ts +1 -95
- package/dist/plugins/uuid.js +2 -1
- package/dist/plugins/uuid.mjs +1 -1
- package/dist/plugins/validate-if/index.d.ts +1 -0
- package/dist/plugins/validate-if/index.js +5 -0
- package/dist/plugins/validate-if/index.mjs +1 -0
- package/dist/plugins/validate-if/validate-if.d.ts +7 -0
- package/dist/plugins/validate-if/validate-if.js +22 -0
- package/dist/plugins/validate-if/validate-if.mjs +19 -0
- package/dist/plugins/validateIf.d.ts +1 -57
- package/dist/plugins/validateIf.js +2 -1
- package/dist/plugins/validateIf.mjs +1 -1
- package/dist/plugins/write-only/index.d.ts +1 -0
- package/dist/plugins/write-only/index.js +5 -0
- package/dist/plugins/write-only/index.mjs +1 -0
- package/dist/plugins/write-only/write-only.d.ts +7 -0
- package/dist/plugins/write-only/write-only.js +48 -0
- package/dist/plugins/write-only/write-only.mjs +45 -0
- package/dist/plugins/writeOnly.d.ts +1 -0
- package/dist/plugins/writeOnly.js +2 -0
- package/dist/plugins/writeOnly.mjs +1 -0
- package/dist/result/index.d.ts +18 -0
- package/dist/result/index.js +44 -0
- package/dist/result/index.mjs +36 -0
- package/dist/result.d.ts +1 -0
- package/dist/result.js +2 -0
- package/dist/result.mjs +1 -0
- package/dist/runtime/create-field-validator.d.ts +12 -0
- package/dist/runtime/create-field-validator.js +74 -0
- package/dist/runtime/create-field-validator.mjs +71 -0
- package/dist/runtime/create-issue.d.ts +24 -0
- package/dist/runtime/create-issue.js +34 -0
- package/dist/runtime/create-issue.mjs +30 -0
- package/dist/runtime/create-validator.d.ts +19 -0
- package/dist/runtime/create-validator.js +70 -0
- package/dist/runtime/create-validator.mjs +65 -0
- package/dist/runtime/decide-presence.d.ts +5 -0
- package/dist/runtime/decide-presence.js +47 -0
- package/dist/runtime/decide-presence.mjs +44 -0
- package/dist/runtime/index-stack.d.ts +28 -0
- package/dist/runtime/index-stack.js +68 -0
- package/dist/runtime/index-stack.mjs +63 -0
- package/dist/runtime/index.d.ts +19 -0
- package/dist/runtime/index.js +48 -0
- package/dist/runtime/index.mjs +16 -0
- package/dist/runtime/issue-sink.d.ts +39 -0
- package/dist/runtime/issue-sink.js +61 -0
- package/dist/runtime/issue-sink.mjs +56 -0
- package/dist/runtime/output-writer.d.ts +38 -0
- package/dist/runtime/output-writer.js +59 -0
- package/dist/runtime/output-writer.mjs +52 -0
- package/dist/runtime/run-array-node.d.ts +9 -0
- package/dist/runtime/run-array-node.js +98 -0
- package/dist/runtime/run-array-node.mjs +95 -0
- package/dist/runtime/run-branch.d.ts +14 -0
- package/dist/runtime/run-branch.js +67 -0
- package/dist/runtime/run-branch.mjs +63 -0
- package/dist/runtime/run-field.d.ts +27 -0
- package/dist/runtime/run-field.js +88 -0
- package/dist/runtime/run-field.mjs +84 -0
- package/dist/runtime/run-plan.d.ts +28 -0
- package/dist/runtime/run-plan.js +50 -0
- package/dist/runtime/run-plan.mjs +46 -0
- package/dist/runtime/run-recursion.d.ts +17 -0
- package/dist/runtime/run-recursion.js +119 -0
- package/dist/runtime/run-recursion.mjs +115 -0
- package/dist/subpath-aliases/read-only-write-only.d.ts +2 -0
- package/dist/subpath-aliases/read-only-write-only.js +16 -0
- package/dist/subpath-aliases/read-only-write-only.mjs +11 -0
- package/dist/types/global-config.d.ts +31 -0
- package/dist/types/global-config.js +36 -0
- package/dist/types/global-config.mjs +32 -0
- package/dist/types/index.d.ts +64 -70
- package/dist/types/index.js +28 -0
- package/dist/types/index.mjs +19 -0
- package/dist/types/validation-result.types.d.ts +22 -0
- package/dist/types/validation-result.types.js +2 -0
- package/dist/types/validation-result.types.mjs +1 -0
- package/package.json +516 -353
- package/dist/constants.d.ts +0 -27
- package/dist/core/async.experimental/async-context.d.ts +0 -60
- package/dist/core/builder/array-batch-optimizer.d.ts +0 -66
- package/dist/core/builder/context/field-context.d.ts +0 -31
- package/dist/core/builder/context/field-type-detector.d.ts +0 -19
- package/dist/core/builder/core/builder.d.ts +0 -10
- package/dist/core/builder/core/field-builder.d.ts +0 -13
- package/dist/core/builder/core/index.d.ts +0 -17
- package/dist/core/builder/index.d.ts +0 -24
- package/dist/core/builder/nested-array-processor.d.ts +0 -52
- package/dist/core/builder/plugins/composable-conditional-plugin.d.ts +0 -32
- package/dist/core/builder/plugins/composable-directly-plugin.d.ts +0 -32
- package/dist/core/builder/plugins/composable-plugin.d.ts +0 -242
- package/dist/core/builder/plugins/plugin-creator.d.ts +0 -38
- package/dist/core/builder/plugins/plugin-interfaces.d.ts +0 -343
- package/dist/core/builder/plugins/plugin-types.d.ts +0 -441
- package/dist/core/builder/raw-validator.d.ts +0 -22
- package/dist/core/builder/types/field-options.d.ts +0 -46
- package/dist/core/builder/types/types.d.ts +0 -318
- package/dist/core/builder/ultra-fast-validator.d.ts +0 -30
- package/dist/core/builder/validator-factory.d.ts +0 -29
- package/dist/core/global-config.d.ts +0 -27
- package/dist/core/index.d.ts +0 -36
- package/dist/core/optimization/array-batch-validator.d.ts +0 -68
- package/dist/core/optimization/core/field-utils.d.ts +0 -103
- package/dist/core/optimization/core/strategy-factory.d.ts +0 -84
- package/dist/core/optimization/core/validation-engine.d.ts +0 -107
- package/dist/core/optimization/execution-strategy-selector.d.ts +0 -23
- package/dist/core/optimization/unified-validator.d.ts +0 -45
- package/dist/core/plugin/__tests__/test-utils.d.ts +0 -1
- package/dist/core/plugin/arrayContains.d.ts +0 -37
- package/dist/core/plugin/arrayIncludes.d.ts +0 -42
- package/dist/core/plugin/arrayMaxLength.d.ts +0 -43
- package/dist/core/plugin/arrayMinLength.d.ts +0 -43
- package/dist/core/plugin/arrayUnique.d.ts +0 -41
- package/dist/core/plugin/booleanFalsy.d.ts +0 -41
- package/dist/core/plugin/booleanTruthy.d.ts +0 -38
- package/dist/core/plugin/compareField.d.ts +0 -58
- package/dist/core/plugin/conditionalSchema.d.ts +0 -24
- package/dist/core/plugin/custom.d.ts +0 -60
- package/dist/core/plugin/fromContext.d.ts +0 -150
- package/dist/core/plugin/index.d.ts +0 -71
- package/dist/core/plugin/jsonSchema/dsl-converter.d.ts +0 -22
- package/dist/core/plugin/jsonSchema/error-generation.d.ts +0 -14
- package/dist/core/plugin/jsonSchema/format-validators.d.ts +0 -20
- package/dist/core/plugin/jsonSchema/index.d.ts +0 -11
- package/dist/core/plugin/jsonSchema/plugin.d.ts +0 -35
- package/dist/core/plugin/jsonSchema/ref-resolver.d.ts +0 -14
- package/dist/core/plugin/jsonSchema/types.d.ts +0 -69
- package/dist/core/plugin/jsonSchema/validation-core.d.ts +0 -29
- package/dist/core/plugin/jsonSchemaFullFeature.d.ts +0 -31
- package/dist/core/plugin/literal.d.ts +0 -40
- package/dist/core/plugin/message-factories.d.ts +0 -9
- package/dist/core/plugin/nullable.d.ts +0 -34
- package/dist/core/plugin/numberFinite.d.ts +0 -41
- package/dist/core/plugin/numberInteger.d.ts +0 -41
- package/dist/core/plugin/numberMax.d.ts +0 -49
- package/dist/core/plugin/numberMin.d.ts +0 -49
- package/dist/core/plugin/numberMultipleOf.d.ts +0 -42
- package/dist/core/plugin/numberNegative.d.ts +0 -41
- package/dist/core/plugin/numberPositive.d.ts +0 -41
- package/dist/core/plugin/numberRange.d.ts +0 -48
- package/dist/core/plugin/object.d.ts +0 -43
- package/dist/core/plugin/objectAdditionalProperties.d.ts +0 -51
- package/dist/core/plugin/objectDependentRequired.d.ts +0 -42
- package/dist/core/plugin/objectDependentSchemas.d.ts +0 -40
- package/dist/core/plugin/objectMaxProperties.d.ts +0 -42
- package/dist/core/plugin/objectMinProperties.d.ts +0 -42
- package/dist/core/plugin/objectPatternProperties.d.ts +0 -46
- package/dist/core/plugin/objectPropertyNames.d.ts +0 -36
- package/dist/core/plugin/objectRecursively.d.ts +0 -81
- package/dist/core/plugin/oneOf.d.ts +0 -44
- package/dist/core/plugin/optional.d.ts +0 -35
- package/dist/core/plugin/optionalIf.d.ts +0 -42
- package/dist/core/plugin/orFail.d.ts +0 -132
- package/dist/core/plugin/readOnlyWriteOnly.d.ts +0 -48
- package/dist/core/plugin/required.d.ts +0 -45
- package/dist/core/plugin/requiredIf.d.ts +0 -66
- package/dist/core/plugin/shared-constants.d.ts +0 -45
- package/dist/core/plugin/shared.d.ts +0 -3
- package/dist/core/plugin/skip.d.ts +0 -57
- package/dist/core/plugin/stitch-typed.d.ts +0 -15
- package/dist/core/plugin/stitch.d.ts +0 -1
- package/dist/core/plugin/stitchSimple.d.ts +0 -4
- package/dist/core/plugin/stringAlphanumeric.d.ts +0 -42
- package/dist/core/plugin/stringBase64.d.ts +0 -119
- package/dist/core/plugin/stringContentEncoding.d.ts +0 -43
- package/dist/core/plugin/stringContentMediaType.d.ts +0 -47
- package/dist/core/plugin/stringDate.d.ts +0 -48
- package/dist/core/plugin/stringDatetime.d.ts +0 -108
- package/dist/core/plugin/stringDuration.d.ts +0 -41
- package/dist/core/plugin/stringEmail.d.ts +0 -81
- package/dist/core/plugin/stringEndsWith.d.ts +0 -42
- package/dist/core/plugin/stringExactLength.d.ts +0 -46
- package/dist/core/plugin/stringHostname.d.ts +0 -104
- package/dist/core/plugin/stringIpv4.d.ts +0 -85
- package/dist/core/plugin/stringIpv6.d.ts +0 -104
- package/dist/core/plugin/stringIri.d.ts +0 -117
- package/dist/core/plugin/stringIriReference.d.ts +0 -43
- package/dist/core/plugin/stringJsonPointer.d.ts +0 -107
- package/dist/core/plugin/stringMax.d.ts +0 -43
- package/dist/core/plugin/stringMin.d.ts +0 -43
- package/dist/core/plugin/stringPattern.d.ts +0 -40
- package/dist/core/plugin/stringRelativeJsonPointer.d.ts +0 -42
- package/dist/core/plugin/stringStartsWith.d.ts +0 -42
- package/dist/core/plugin/stringTime.d.ts +0 -39
- package/dist/core/plugin/stringUriTemplate.d.ts +0 -43
- package/dist/core/plugin/stringUrl.d.ts +0 -97
- package/dist/core/plugin/testUtils.d.ts +0 -15
- package/dist/core/plugin/transform-type-restrictions.d.ts +0 -61
- package/dist/core/plugin/transform.d.ts +0 -35
- package/dist/core/plugin/tupleBuilder.d.ts +0 -66
- package/dist/core/plugin/types.d.ts +0 -143
- package/dist/core/plugin/unionGuard.d.ts +0 -50
- package/dist/core/plugin/utils/field-accessor-optimized.d.ts +0 -50
- package/dist/core/plugin/utils/field-accessor.d.ts +0 -107
- package/dist/core/plugin/uuid.d.ts +0 -95
- package/dist/core/plugin/validateIf.d.ts +0 -57
- package/dist/core/registry/plugin-registry.d.ts +0 -116
- package/dist/core/registry.d.ts +0 -6
- package/dist/core/transform/index.d.ts +0 -1
- package/dist/core/transform/string/defaultValue.d.ts +0 -6
- package/dist/core/transform/string/index.d.ts +0 -3
- package/dist/core/transform/string/replace.d.ts +0 -14
- package/dist/core/transform/string/sanitize.d.ts +0 -6
- package/dist/core/utils/type-guards.d.ts +0 -68
- package/dist/index.js.map +0 -7
- package/dist/index.mjs.map +0 -7
- package/dist/types/array-type-analysis.d.ts +0 -115
- package/dist/types/indexed-result.d.ts +0 -44
- package/dist/types/result.d.ts +0 -159
- package/dist/types/stitch-types.d.ts +0 -118
- package/dist/types/util.d.ts +0 -19
- package/dist/types/valitator.d.ts +0 -10
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { NestedKeyOf } from "../../types";
|
|
2
|
-
import { TypeName, TypeMapping } from "../builder/plugins/plugin-types";
|
|
3
|
-
export { NestedKeyOf };
|
|
4
|
-
export type ExtractTypes<T extends readonly TypeName[]> = TypeMapping[T[number]];
|
|
5
|
-
export declare const SEVERITY: {
|
|
6
|
-
readonly INFO: "INFO";
|
|
7
|
-
readonly WARN: "WARN";
|
|
8
|
-
readonly ERROR: "ERROR";
|
|
9
|
-
};
|
|
10
|
-
export type Severity = (typeof SEVERITY)[keyof typeof SEVERITY];
|
|
11
|
-
/**
|
|
12
|
-
* Zod-style issue factory for generating validation errors
|
|
13
|
-
* @param ctx - Context object containing field path, value, and other metadata
|
|
14
|
-
* @returns Error message string
|
|
15
|
-
*/
|
|
16
|
-
export type MessageFactory<TContext extends Record<string, any> = {}> = (ctx: MessageContext & TContext) => string;
|
|
17
|
-
/**
|
|
18
|
-
* Base context provided to all issue factories
|
|
19
|
-
*/
|
|
20
|
-
export interface MessageContext {
|
|
21
|
-
path: string;
|
|
22
|
-
value: any;
|
|
23
|
-
code: string;
|
|
24
|
-
}
|
|
25
|
-
export interface ValidationOptions<TContext extends Record<string, any> = {}> {
|
|
26
|
-
code?: string;
|
|
27
|
-
fieldName?: string;
|
|
28
|
-
severity?: Severity;
|
|
29
|
-
messageFactory?: MessageFactory<TContext>;
|
|
30
|
-
}
|
|
31
|
-
export interface RecursiveContext<TObject = any> {
|
|
32
|
-
currentDepth: number;
|
|
33
|
-
rootObject: TObject;
|
|
34
|
-
parent?: any;
|
|
35
|
-
current: any;
|
|
36
|
-
}
|
|
37
|
-
export interface ValidationContext<TObject, TInput> {
|
|
38
|
-
originalValue: TInput;
|
|
39
|
-
currentValue: TInput;
|
|
40
|
-
allValues: TObject;
|
|
41
|
-
path: string;
|
|
42
|
-
recursiveContext?: RecursiveContext<TObject>;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Context provided to conditional validation functions when validating array items
|
|
46
|
-
* Contains information about the current array index and the object at that index
|
|
47
|
-
*/
|
|
48
|
-
export interface ArrayContext<TItem = any> {
|
|
49
|
-
/** The current index in the array */
|
|
50
|
-
index: number;
|
|
51
|
-
/** The object at the current index */
|
|
52
|
-
item: TItem;
|
|
53
|
-
/** The full array being validated */
|
|
54
|
-
array: TItem[];
|
|
55
|
-
}
|
|
56
|
-
export interface ValidationFunctionReturnType {
|
|
57
|
-
valid: boolean;
|
|
58
|
-
message?: string;
|
|
59
|
-
}
|
|
60
|
-
export type ValidationResult = ValidationFunctionReturnType;
|
|
61
|
-
export interface TransformFunctionReturnType<TOutput> extends ValidationFunctionReturnType {
|
|
62
|
-
transformData?: TOutput;
|
|
63
|
-
}
|
|
64
|
-
export type ValidationFunction<TObject, TInputTypes extends readonly TypeName[] | TypeName> = (value: TInputTypes extends readonly TypeName[] ? TInputTypes[number] extends TypeName ? import("../builder/plugins/plugin-types").TypeMapping[TInputTypes[number]] : never : TInputTypes extends TypeName ? import("../builder/plugins/plugin-types").TypeMapping[TInputTypes] : never, ctx: ValidationContext<TObject, TInputTypes extends readonly TypeName[] ? TInputTypes[number] : TInputTypes>) => ValidationFunctionReturnType;
|
|
65
|
-
export type TransformFunction<TObject, TInputTypes extends readonly TypeName[] | TypeName> = <TOutput>(value: TInputTypes extends readonly TypeName[] ? TInputTypes[number] extends TypeName ? import("../builder/plugins/plugin-types").TypeMapping[TInputTypes[number]] : any : TInputTypes extends TypeName ? import("../builder/plugins/plugin-types").TypeMapping[TInputTypes] : any, ctx: ValidationContext<TObject, TInputTypes extends readonly TypeName[] ? TInputTypes[number] : TInputTypes>) => TransformFunctionReturnType<TOutput>;
|
|
66
|
-
/**
|
|
67
|
-
* Indicates that all remaining validations should be skipped
|
|
68
|
-
* Used by: validateIf, skip
|
|
69
|
-
*/
|
|
70
|
-
export interface SkipAllValidationFlag {
|
|
71
|
-
__skipAllValidation: true;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Indicates that further validations should be skipped (but not transforms)
|
|
75
|
-
* Used by: optional, optionalIf
|
|
76
|
-
*/
|
|
77
|
-
export interface SkipFurtherValidationFlag {
|
|
78
|
-
__skipFurtherValidation: true;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Indicates that this is a transform operation
|
|
82
|
-
* Used by: transform
|
|
83
|
-
*/
|
|
84
|
-
export interface TransformFlag<TOutput = any> {
|
|
85
|
-
__isTransform: true;
|
|
86
|
-
__transformFn: (value: any) => TOutput;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Indicates that the field is nullable
|
|
90
|
-
* Used by: nullable
|
|
91
|
-
*/
|
|
92
|
-
export interface NullableFlag {
|
|
93
|
-
__isNullable: true;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Indicates that the validation should be recursive
|
|
97
|
-
* Used by: objectRecursively
|
|
98
|
-
*/
|
|
99
|
-
export interface RecursiveFlag {
|
|
100
|
-
__isRecursive: true;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Combined validation result with optional flags
|
|
104
|
-
*/
|
|
105
|
-
export type ValidationResultWithFlags<TFlags = {}> = ValidationFunctionReturnType & TFlags;
|
|
106
|
-
/**
|
|
107
|
-
* Helper type to create validation results with flags
|
|
108
|
-
*/
|
|
109
|
-
export type WithFlags<TFlags> = {
|
|
110
|
-
valid: boolean;
|
|
111
|
-
message?: string;
|
|
112
|
-
} & TFlags;
|
|
113
|
-
/**
|
|
114
|
-
* Type guards for checking flags
|
|
115
|
-
*/
|
|
116
|
-
export declare const ValidationFlags: {
|
|
117
|
-
isSkipAll(result: any): result is ValidationResultWithFlags<SkipAllValidationFlag>;
|
|
118
|
-
isSkipFurther(result: any): result is ValidationResultWithFlags<SkipFurtherValidationFlag>;
|
|
119
|
-
isTransform(result: any): result is ValidationResultWithFlags<TransformFlag>;
|
|
120
|
-
isNullable(result: any): result is ValidationResultWithFlags<NullableFlag>;
|
|
121
|
-
isRecursive(result: any): result is ValidationResultWithFlags<RecursiveFlag>;
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Conditional method signature that preserves the TObject type
|
|
125
|
-
*/
|
|
126
|
-
export type ConditionalMethod<TObject = any> = {
|
|
127
|
-
validateIf?: (condition: (allValues: TObject, arrayContext?: ArrayContext) => boolean, options?: ValidationOptions) => ValidationFunction<any, any>;
|
|
128
|
-
requiredIf?: (condition: (allValues: TObject, arrayContext?: ArrayContext) => boolean, options?: ValidationOptions) => ValidationFunction<any, any>;
|
|
129
|
-
optionalIf?: (condition: (allValues: TObject, arrayContext?: ArrayContext) => boolean, options?: ValidationOptions) => ValidationFunction<any, any>;
|
|
130
|
-
skip?: (condition: (allValues: TObject, arrayContext?: ArrayContext) => boolean, options?: ValidationOptions) => ValidationFunction<any, any>;
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Type helper to create properly typed conditional plugin methods
|
|
134
|
-
*/
|
|
135
|
-
export type WithConditionalMethods<TMethods extends Record<string, any>, TObject> = {
|
|
136
|
-
[K in keyof TMethods]: K extends keyof ConditionalMethod<TObject> ? ConditionalMethod<TObject>[K] : TMethods[K];
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Type for validateIf plugin methods
|
|
140
|
-
*/
|
|
141
|
-
export type ValidateIfMethods<TObject = any> = {
|
|
142
|
-
validateIf: (condition: (allValues: TObject, arrayContext?: ArrayContext) => boolean, options?: ValidationOptions) => ValidationFunction<any, any>;
|
|
143
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @luq-plugin
|
|
3
|
-
* @name unionGuard
|
|
4
|
-
* @category composable-conditional
|
|
5
|
-
* @description Validates union types by applying different validation rules based on type guards
|
|
6
|
-
* @allowedTypes ["union"]
|
|
7
|
-
* @example
|
|
8
|
-
* ```typescript
|
|
9
|
-
* // Union type validation with type guards
|
|
10
|
-
* type StringOrNumber = string | number;
|
|
11
|
-
*
|
|
12
|
-
* const validator = Builder()
|
|
13
|
-
* .use(unionGuardPlugin)
|
|
14
|
-
* .for<{ value: StringOrNumber }>()
|
|
15
|
-
* .v("value", (b) => b.union
|
|
16
|
-
* .guard(
|
|
17
|
-
* (v): v is string => typeof v === 'string',
|
|
18
|
-
* (b) => b.string.min(3)
|
|
19
|
-
* )
|
|
20
|
-
* .guard(
|
|
21
|
-
* (v): v is number => typeof v === 'number',
|
|
22
|
-
* (b) => b.number.min(0).max(100)
|
|
23
|
-
* )
|
|
24
|
-
* )
|
|
25
|
-
* .build();
|
|
26
|
-
* ```
|
|
27
|
-
* @params
|
|
28
|
-
* - condition: TypeGuardCondition - Type guard function that returns true if value matches the type
|
|
29
|
-
* - builderFn: (context: FieldBuilderContext) => any - Builder function for the specific type
|
|
30
|
-
* @returns Composable validation function that can chain multiple guards
|
|
31
|
-
* @customError
|
|
32
|
-
* Returns false if no guard condition matches the value
|
|
33
|
-
* @since 0.1.0-alpha
|
|
34
|
-
*/
|
|
35
|
-
/**
|
|
36
|
-
* Union Guard Plugin - Composable implementation for chaining
|
|
37
|
-
* Supports: guard(cond1, builder1).guard(cond2, builder2)
|
|
38
|
-
*/
|
|
39
|
-
import type { FieldBuilderContext } from "../builder/plugins/plugin-types";
|
|
40
|
-
export interface TypeGuardCondition {
|
|
41
|
-
(value: unknown): boolean;
|
|
42
|
-
}
|
|
43
|
-
export interface GuardBuilderFunction<TObject extends object, TPlugins> {
|
|
44
|
-
(context: FieldBuilderContext<TObject, TPlugins, any>): any;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Union Guard Composable Plugin
|
|
48
|
-
* Accumulates multiple guard calls and builds an integrated validator
|
|
49
|
-
*/
|
|
50
|
-
export declare const unionGuardPlugin: import("../builder/plugins/composable-conditional-plugin").ComposableConditionalPlugin<"unionGuard", "guard", readonly ["union"]>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Optimized Field Accessor Utilities
|
|
3
|
-
*
|
|
4
|
-
* High-performance field access with:
|
|
5
|
-
* - Pre-split path segments cached at build time
|
|
6
|
-
* - No runtime string splitting
|
|
7
|
-
* - Direct property access for common depths
|
|
8
|
-
* - Minimal object allocations
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Get or cache path segments to avoid runtime splitting
|
|
12
|
-
*/
|
|
13
|
-
export declare function getPathSegments(fieldPath: string): readonly string[];
|
|
14
|
-
/**
|
|
15
|
-
* Create optimized accessor function for a nested field path
|
|
16
|
-
* V8 Optimization: Generate direct property access code for common depths
|
|
17
|
-
*/
|
|
18
|
-
export declare function createAccessor(pathSegments: readonly string[]): (obj: any) => any;
|
|
19
|
-
/**
|
|
20
|
-
* Create accessor from dot-notation field path with caching
|
|
21
|
-
*/
|
|
22
|
-
export declare function createFieldAccessor(fieldPath: string): (obj: any) => any;
|
|
23
|
-
/**
|
|
24
|
-
* Batch create accessors for multiple field paths
|
|
25
|
-
* Pre-allocates array for better performance
|
|
26
|
-
*/
|
|
27
|
-
export declare function createBatchAccessors(fieldPaths: readonly string[]): Array<{
|
|
28
|
-
fieldName: string;
|
|
29
|
-
accessor: (obj: any) => any;
|
|
30
|
-
}>;
|
|
31
|
-
/**
|
|
32
|
-
* Create field setter with caching
|
|
33
|
-
* V8 Optimization: Direct property assignment for common depths
|
|
34
|
-
*/
|
|
35
|
-
export declare function createFieldSetter(fieldPath: string): (obj: any, value: any) => void;
|
|
36
|
-
/**
|
|
37
|
-
* Optimized nested value accessor with array support
|
|
38
|
-
* Pre-compiles access patterns for better performance
|
|
39
|
-
*/
|
|
40
|
-
export declare function createNestedValueAccessor(fieldPath: string): (obj: Record<string, unknown>) => unknown;
|
|
41
|
-
/**
|
|
42
|
-
* Pre-warm the cache with common field paths
|
|
43
|
-
* @deprecated Caches have been removed to prevent memory leaks
|
|
44
|
-
*/
|
|
45
|
-
export declare function prewarmCache(commonPaths: string[]): void;
|
|
46
|
-
/**
|
|
47
|
-
* Clear all caches (useful for testing)
|
|
48
|
-
* @deprecated Caches have been removed to prevent memory leaks
|
|
49
|
-
*/
|
|
50
|
-
export declare function clearAllCaches(): void;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Field Accessor Utilities
|
|
3
|
-
*
|
|
4
|
-
* Optimized field value access with pre-created accessor functions.
|
|
5
|
-
* V8 Optimization: Direct property access chains for better performance.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Create optimized accessor function for a nested field path
|
|
9
|
-
* V8 Optimization: Generate direct property access code for common depths
|
|
10
|
-
*
|
|
11
|
-
* @param pathSegments - Array of property keys to traverse
|
|
12
|
-
* @returns Optimized accessor function
|
|
13
|
-
*/
|
|
14
|
-
export declare function createAccessor(pathSegments: string[]): (obj: any) => any;
|
|
15
|
-
/**
|
|
16
|
-
* Create accessor from dot-notation field path
|
|
17
|
-
*
|
|
18
|
-
* @param fieldPath - Field path in dot notation (e.g., "user.profile.name")
|
|
19
|
-
* @returns Optimized accessor function
|
|
20
|
-
*/
|
|
21
|
-
export declare function createFieldAccessor(fieldPath: string): (obj: any) => any;
|
|
22
|
-
/**
|
|
23
|
-
* Get cached accessor or create new one
|
|
24
|
-
* NOTE: Cache should be managed by the caller (e.g., validator factory)
|
|
25
|
-
* to avoid global state and memory leaks
|
|
26
|
-
*
|
|
27
|
-
* @param fieldPath - Field path in dot notation
|
|
28
|
-
* @param cache - Cache map provided by the caller
|
|
29
|
-
* @returns Cached or newly created accessor function
|
|
30
|
-
*/
|
|
31
|
-
export declare function getCachedAccessor(fieldPath: string, cache: Map<string, (obj: any) => any>): (obj: any) => any;
|
|
32
|
-
/**
|
|
33
|
-
* Create accessor cache factory
|
|
34
|
-
* Returns a function that manages its own cache scope
|
|
35
|
-
*
|
|
36
|
-
* @returns Function to get cached accessors with local cache
|
|
37
|
-
*/
|
|
38
|
-
export declare function createAccessorCacheFactory(): (fieldPath: string) => (obj: any) => any;
|
|
39
|
-
/**
|
|
40
|
-
* Batch create accessors for multiple field paths
|
|
41
|
-
* Useful for plugins that need to access multiple fields
|
|
42
|
-
*
|
|
43
|
-
* @param fieldPaths - Array of field paths in dot notation
|
|
44
|
-
* @returns Array of accessor objects with fieldName and accessor function
|
|
45
|
-
*/
|
|
46
|
-
export declare function createBatchAccessors(fieldPaths: string[]): Array<{
|
|
47
|
-
fieldName: string;
|
|
48
|
-
accessor: (obj: any) => any;
|
|
49
|
-
}>;
|
|
50
|
-
/**
|
|
51
|
-
* Create field value getter that returns values for multiple fields
|
|
52
|
-
*
|
|
53
|
-
* @param fieldPaths - Array of field paths to access
|
|
54
|
-
* @returns Function that extracts values for all specified fields
|
|
55
|
-
*/
|
|
56
|
-
export declare function createMultiFieldGetter(fieldPaths: string[]): (obj: any) => Record<string, any>;
|
|
57
|
-
/**
|
|
58
|
-
* Optimized field existence checker
|
|
59
|
-
*
|
|
60
|
-
* @param fieldPath - Field path in dot notation
|
|
61
|
-
* @returns Function that checks if field exists (not undefined)
|
|
62
|
-
*/
|
|
63
|
-
export declare function createFieldExistenceChecker(fieldPath: string): (obj: any) => boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Create field setter for nested paths
|
|
66
|
-
* V8 Optimization: Direct property assignment for common depths
|
|
67
|
-
*
|
|
68
|
-
* @param fieldPath - Field path in dot notation
|
|
69
|
-
* @returns Function that sets the field value
|
|
70
|
-
*/
|
|
71
|
-
export declare function createFieldSetter(fieldPath: string): (obj: any, value: any) => void;
|
|
72
|
-
/**
|
|
73
|
-
* Create optimized nested value accessor with array support
|
|
74
|
-
* Handles array element validation patterns and standard nested access
|
|
75
|
-
* V8 Optimization: Fast paths for common access patterns
|
|
76
|
-
*
|
|
77
|
-
* @param fieldPath - Field path in dot notation
|
|
78
|
-
* @returns Function that gets nested values with array support
|
|
79
|
-
*/
|
|
80
|
-
export declare function createNestedValueAccessor(fieldPath: string): (obj: Record<string, unknown>) => unknown;
|
|
81
|
-
/**
|
|
82
|
-
* Parse field path and detect array element notation [*]
|
|
83
|
-
*
|
|
84
|
-
* @param fieldPath - Field path that may contain [*] notation
|
|
85
|
-
* @returns Object describing the path structure
|
|
86
|
-
*/
|
|
87
|
-
export declare function parseFieldPath(fieldPath: string): {
|
|
88
|
-
hasArrayElements: boolean;
|
|
89
|
-
segments: Array<{
|
|
90
|
-
name: string;
|
|
91
|
-
isArrayElement: boolean;
|
|
92
|
-
}>;
|
|
93
|
-
baseArrayPath?: string;
|
|
94
|
-
elementPath?: string;
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* Create accessor for array element fields with [*] notation
|
|
98
|
-
* Returns array of values that should be validated individually
|
|
99
|
-
*
|
|
100
|
-
* @param fieldPath - Field path with [*] notation (e.g., "categories[*]", "categories[*].name")
|
|
101
|
-
* @returns Function that returns array element values for validation
|
|
102
|
-
*/
|
|
103
|
-
export declare function createArrayElementAccessor(fieldPath: string): (obj: any) => {
|
|
104
|
-
elements: any[];
|
|
105
|
-
basePath: string;
|
|
106
|
-
elementPath: string;
|
|
107
|
-
} | null;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { ValidationOptions } from "./types";
|
|
2
|
-
declare const SUPPORTED_VERSIONS: readonly [1, 3, 4, 5, 6, 7, 8];
|
|
3
|
-
type UUIDVersion = (typeof SUPPORTED_VERSIONS)[number];
|
|
4
|
-
/**
|
|
5
|
-
* @luq-plugin
|
|
6
|
-
* @name uuid
|
|
7
|
-
* @category standard
|
|
8
|
-
* @description Validates that a string is a valid UUID (Universally Unique Identifier)
|
|
9
|
-
* @allowedTypes ["string"]
|
|
10
|
-
* @see https://tools.ietf.org/html/rfc4122 - RFC 4122: A Universally Unique IDentifier (UUID) URN Namespace
|
|
11
|
-
* @see https://developer.mozilla.org/en-US/docs/Glossary/UUID - MDN UUID Reference
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* // Basic usage - validate any UUID version (RFC 4122 compliant)
|
|
15
|
-
* const validator = Builder()
|
|
16
|
-
* .use(uuidPlugin)
|
|
17
|
-
* .for<Entity>()
|
|
18
|
-
* .v("id", (b) => b.string.uuid())
|
|
19
|
-
* .v("correlationId", (b) => b.string.required().uuid())
|
|
20
|
-
* .build();
|
|
21
|
-
*
|
|
22
|
-
* // Validate specific UUID version
|
|
23
|
-
* builder.v("userId", b => b.string.uuid(4)) // UUID v4 only
|
|
24
|
-
* builder.v("namespaceId", b => b.string.uuid(5)) // UUID v5 only
|
|
25
|
-
* builder.v("timestamp", b => b.string.uuid(7)) // UUID v7 only (time-based)
|
|
26
|
-
*
|
|
27
|
-
* // ✅ VALID UUID formats (RFC 4122)
|
|
28
|
-
* // UUID v1 (MAC address + timestamp based)
|
|
29
|
-
* validator.parse({ id: "12345678-1234-1234-8123-123456789abc" });
|
|
30
|
-
* validator.parse({ id: "f47ac10b-58cc-4372-a567-0e02b2c3d479" });
|
|
31
|
-
*
|
|
32
|
-
* // UUID v3 (MD5 hash based)
|
|
33
|
-
* validator.parse({ id: "6ba7b810-9dad-11d1-80b4-00c04fd430c8" });
|
|
34
|
-
* validator.parse({ id: "12345678-1234-3234-8123-123456789abc" });
|
|
35
|
-
*
|
|
36
|
-
* // UUID v4 (random)
|
|
37
|
-
* validator.parse({ id: "550e8400-e29b-41d4-a716-446655440000" });
|
|
38
|
-
* validator.parse({ id: "f47ac10b-58cc-4372-a567-0e02b2c3d479" });
|
|
39
|
-
* validator.parse({ id: "12345678-1234-4234-9123-123456789abc" });
|
|
40
|
-
*
|
|
41
|
-
* // UUID v5 (SHA-1 hash based)
|
|
42
|
-
* validator.parse({ id: "6ba7b811-9dad-11d1-80b4-00c04fd430c8" });
|
|
43
|
-
* validator.parse({ id: "12345678-1234-5234-8123-123456789abc" });
|
|
44
|
-
*
|
|
45
|
-
* // UUID v6 (reordered timestamp)
|
|
46
|
-
* validator.parse({ id: "1EC9414C-232A-6B00-B3C8-9E6BDECED846" });
|
|
47
|
-
* validator.parse({ id: "12345678-1234-6234-9123-123456789abc" });
|
|
48
|
-
*
|
|
49
|
-
* // UUID v7 (Unix timestamp based)
|
|
50
|
-
* validator.parse({ id: "017F22E2-79B0-7CC3-98C4-DC0C0C07398F" });
|
|
51
|
-
* validator.parse({ id: "12345678-1234-7234-8123-123456789abc" });
|
|
52
|
-
*
|
|
53
|
-
* // UUID v8 (custom/application-specific)
|
|
54
|
-
* validator.parse({ id: "12345678-1234-8234-9123-123456789abc" });
|
|
55
|
-
*
|
|
56
|
-
* // Case insensitive
|
|
57
|
-
* validator.parse({ id: "F47AC10B-58CC-4372-A567-0E02B2C3D479" });
|
|
58
|
-
* validator.parse({ id: "f47ac10b-58cc-4372-a567-0e02b2c3d479" });
|
|
59
|
-
*
|
|
60
|
-
* // ❌ INVALID UUID formats
|
|
61
|
-
* validator.parse({ id: "not-a-uuid" }); // Plain text
|
|
62
|
-
* validator.parse({ id: "12345678-1234-1234-1234-123456789" }); // Too short
|
|
63
|
-
* validator.parse({ id: "12345678-1234-1234-1234-123456789abcd" }); // Too long
|
|
64
|
-
* validator.parse({ id: "12345678-1234-0234-8123-123456789abc" }); // Invalid version (0)
|
|
65
|
-
* validator.parse({ id: "12345678-1234-9234-8123-123456789abc" }); // Invalid version (9)
|
|
66
|
-
* validator.parse({ id: "12345678-1234-4234-0123-123456789abc" }); // Invalid variant (0)
|
|
67
|
-
* validator.parse({ id: "12345678-1234-4234-c123-123456789abc" }); // Invalid variant (c)
|
|
68
|
-
* validator.parse({ id: "12345678-1234-4234-g123-123456789abc" }); // Invalid hex char (g)
|
|
69
|
-
* validator.parse({ id: "12345678123412348123123456789abc" }); // Missing hyphens
|
|
70
|
-
* validator.parse({ id: "12345678-1234-4234-8123-123456789ab" }); // Missing last char
|
|
71
|
-
* validator.parse({ id: "12345678-1234-4234-8123-123456789abcX" }); // Extra char
|
|
72
|
-
* validator.parse({ id: "" }); // Empty string
|
|
73
|
-
* validator.parse({ id: "12345678-1234-4234-8123-123456789ab " }); // Trailing space
|
|
74
|
-
* validator.parse({ id: " 12345678-1234-4234-8123-123456789abc" }); // Leading space
|
|
75
|
-
* ```
|
|
76
|
-
* @params
|
|
77
|
-
* - version?: 1 | 3 | 4 | 5 | 6 | 7 | 8 - Specific UUID version to validate (optional)
|
|
78
|
-
* - options?: { messageFactory?: (context: MessageContext) => string } - Optional configuration
|
|
79
|
-
* @returns Validation function that returns true if string is a valid UUID
|
|
80
|
-
* @customError
|
|
81
|
-
* ```typescript
|
|
82
|
-
* .uuid(4, {
|
|
83
|
-
* messageFactory: ({ path, value, params }) =>
|
|
84
|
-
* `${path} must be a valid UUID v${params.version} (received: ${value})`
|
|
85
|
-
* })
|
|
86
|
-
* ```
|
|
87
|
-
* @since 0.1.0-alpha
|
|
88
|
-
*/
|
|
89
|
-
export declare const uuidPlugin: import("../..").TypedPlugin<"stringUuid", "uuid", (version?: UUIDVersion | readonly UUIDVersion[], options?: ValidationOptions) => {
|
|
90
|
-
check: (value: any) => boolean;
|
|
91
|
-
code: string;
|
|
92
|
-
getErrorMessage: (value: any, path: string) => string;
|
|
93
|
-
params: (1 | 5 | 7 | 3 | 4 | ValidationOptions<{}> | 6 | 8 | readonly (1 | 5 | 7 | 3 | 4 | 6 | 8)[])[];
|
|
94
|
-
}, readonly ["string"], "validator", "standard">;
|
|
95
|
-
export {};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ValidationOptions, MessageContext } from "./types";
|
|
2
|
-
export interface ValidateIfContext extends MessageContext {
|
|
3
|
-
condition?: boolean;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* @luq-plugin
|
|
7
|
-
* @name validateIf
|
|
8
|
-
* @category conditional
|
|
9
|
-
* @description Conditionally applies all validation rules to a field based on a dynamic condition, with support for array context validation
|
|
10
|
-
* @allowedTypes ["string", "number", "boolean", "array", "object", "date", "union"]
|
|
11
|
-
* @example
|
|
12
|
-
* ```typescript
|
|
13
|
-
* // Validate URL only when custom endpoint is enabled
|
|
14
|
-
* const validator = Builder()
|
|
15
|
-
* .use(validateIfPlugin)
|
|
16
|
-
* .for<ConfigData>()
|
|
17
|
-
* .v("customEndpoint", b =>
|
|
18
|
-
* b.string
|
|
19
|
-
* .validateIf(values => values.useCustomEndpoint)
|
|
20
|
-
* .url()
|
|
21
|
-
* .min(10)
|
|
22
|
-
* )
|
|
23
|
-
* .build();
|
|
24
|
-
*
|
|
25
|
-
* // Skip validation in local environment
|
|
26
|
-
* builder.v("apiKey", b =>
|
|
27
|
-
* b.string
|
|
28
|
-
* .validateIf(values => values.environment !== 'local')
|
|
29
|
-
* .required()
|
|
30
|
-
* .min(32)
|
|
31
|
-
* )
|
|
32
|
-
*
|
|
33
|
-
* // Conditional sections in forms
|
|
34
|
-
* builder.v("businessDetails.taxId", b =>
|
|
35
|
-
* b.string
|
|
36
|
-
* .validateIf(values => values.accountType === 'business')
|
|
37
|
-
* .required()
|
|
38
|
-
* .pattern(/^\d{9}$/)
|
|
39
|
-
* )
|
|
40
|
-
* ```
|
|
41
|
-
* @params
|
|
42
|
-
* - condition: (allValues: TObject, arrayContext?: ArrayContext) => boolean - Function that returns true if validation should run, with access to array context
|
|
43
|
-
* - options?: ValidationOptions - Optional configuration
|
|
44
|
-
* @returns Validation function that skips all validations when condition is false
|
|
45
|
-
* @customError
|
|
46
|
-
* ```typescript
|
|
47
|
-
* This plugin does not generate errors - it controls whether validation runs
|
|
48
|
-
* ```
|
|
49
|
-
* @since 0.1.0-alpha
|
|
50
|
-
*/
|
|
51
|
-
export declare const validateIfPlugin: import("../..").TypedPlugin<"validateIf", "validateIf", <TObject>(condition: (allValues: TObject, arrayContext?: import("./types").ArrayContext) => boolean, options?: ValidationOptions<ValidateIfContext>) => {
|
|
52
|
-
check: (value: any, allValues?: TObject, arrayContext?: import("./types").ArrayContext) => boolean;
|
|
53
|
-
code: string;
|
|
54
|
-
getErrorMessage: () => never;
|
|
55
|
-
params: (((allValues: TObject, arrayContext?: import("./types").ArrayContext) => boolean) | ValidationOptions<ValidateIfContext>)[];
|
|
56
|
-
shouldSkipAllValidation: (value: any, allValues?: TObject, arrayContext?: import("./types").ArrayContext) => boolean;
|
|
57
|
-
}, readonly ["string", "number", "boolean", "array", "object", "date", "union"], "validator", "conditional">;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Plugin Registry - Shared plugin management for reusable field rules
|
|
3
|
-
*
|
|
4
|
-
* Enables:
|
|
5
|
-
* 1. Pre-defining field validation rules with plugins
|
|
6
|
-
* 2. Individual field validation before integration
|
|
7
|
-
* 3. Shared plugin pools for team consistency
|
|
8
|
-
*/
|
|
9
|
-
import { Result } from "../../types/result";
|
|
10
|
-
import { ValidationOptions, ParseOptions } from "../../types";
|
|
11
|
-
import type { TypedPlugin, FieldBuilderContext, ChainableFieldBuilder, PluginCategory, TypeName, PluginType } from "../builder/plugins/plugin-types";
|
|
12
|
-
import { IChainableBuilder } from "../builder/core/builder";
|
|
13
|
-
import type { NestedKeyOf, TypeOfPath } from "../../types/util";
|
|
14
|
-
/**
|
|
15
|
-
* Field Rule - Individual field validation rule with plugin support
|
|
16
|
-
*/
|
|
17
|
-
export interface FieldRule<T> {
|
|
18
|
-
readonly _phantomType: T;
|
|
19
|
-
readonly name?: string;
|
|
20
|
-
readonly description?: string;
|
|
21
|
-
readonly fieldOptions?: import("../builder/types/field-options").FieldOptions<T>;
|
|
22
|
-
/**
|
|
23
|
-
* Validate single field value
|
|
24
|
-
*/
|
|
25
|
-
validate(value: T | unknown, options?: ValidationOptions): Result<T>;
|
|
26
|
-
/**
|
|
27
|
-
* Parse single field value (with transformations)
|
|
28
|
-
*/
|
|
29
|
-
parse(value: T | unknown, options?: ParseOptions): Result<T>;
|
|
30
|
-
/**
|
|
31
|
-
* Get the plugin registry used by this rule
|
|
32
|
-
*/
|
|
33
|
-
getPluginRegistry(): PluginRegistry<any>;
|
|
34
|
-
/**
|
|
35
|
-
* Internal: Get validators and transforms for integration
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
|
-
_getInternalValidators?: () => {
|
|
39
|
-
validators: any[];
|
|
40
|
-
transforms: any[];
|
|
41
|
-
executionPlan: any;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Plugin Registry - Manages shared plugins for field rules with type accumulation
|
|
46
|
-
*/
|
|
47
|
-
export interface PluginRegistry<TPlugins = {}> {
|
|
48
|
-
/**
|
|
49
|
-
* Add a plugin to the registry with type accumulation
|
|
50
|
-
*/
|
|
51
|
-
use<TName extends string, TMethodName extends string, TMethod extends Function, TAllowedTypes extends readonly TypeName[] | undefined, TPluginType extends PluginType = PluginType, TCategory extends PluginCategory = PluginCategory>(plugin: TypedPlugin<TName, TMethodName, TMethod, TAllowedTypes, TPluginType, TCategory>): PluginRegistry<TPlugins & {
|
|
52
|
-
[K in TName]: TypedPlugin<TName, TMethodName, TMethod, TAllowedTypes, TPluginType, TCategory>;
|
|
53
|
-
}> & TPlugins & {
|
|
54
|
-
[K in TMethodName]: TMethod;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Create a field rule using registered plugins with practical type inference
|
|
58
|
-
*/
|
|
59
|
-
createFieldRule<T>(definition: (context: FieldBuilderContext<any, TPlugins, T>) => ChainableFieldBuilder<any, TPlugins, any, T>, options?: {
|
|
60
|
-
name?: string;
|
|
61
|
-
description?: string;
|
|
62
|
-
fieldOptions?: import("../builder/types/field-options").FieldOptions<T>;
|
|
63
|
-
} | import("../builder/types/field-options").FieldConfig<T>): FieldRule<T>;
|
|
64
|
-
/**
|
|
65
|
-
* Create a builder instance using this registry's plugins
|
|
66
|
-
*/
|
|
67
|
-
toBuilder(): IChainableBuilder<any, TPlugins & {
|
|
68
|
-
[K in keyof TPlugins]: TPlugins[K] extends TypedPlugin<any, any, any, any, any, any> ? TPlugins[K] : never;
|
|
69
|
-
}>;
|
|
70
|
-
/**
|
|
71
|
-
* Get all registered plugins
|
|
72
|
-
*/
|
|
73
|
-
getPlugins(): Record<string, TypedPlugin<any, any, any, any, any, any>>;
|
|
74
|
-
/**
|
|
75
|
-
* Set the target type for type-safe field rule creation
|
|
76
|
-
*/
|
|
77
|
-
for<TObject extends object>(): TypedPluginRegistry<TObject, TPlugins>;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Type-safe Plugin Registry with target type specified
|
|
81
|
-
*/
|
|
82
|
-
export interface TypedPluginRegistry<TObject extends object, TPlugins = {}> extends Omit<PluginRegistry<TPlugins>, "createFieldRule" | "for"> {
|
|
83
|
-
/**
|
|
84
|
-
* Create a field rule with type-safe field names and automatic type inference
|
|
85
|
-
*/
|
|
86
|
-
createFieldRule<TName extends NestedKeyOf<TObject> & string, TExplicitType = TypeOfPath<TObject, TName>>(definition: (context: FieldBuilderContext<TObject, TPlugins, TExplicitType>) => ChainableFieldBuilder<TObject, TPlugins, any, TExplicitType>, options: {
|
|
87
|
-
name: TName;
|
|
88
|
-
description?: string;
|
|
89
|
-
fieldOptions?: import("../builder/types/field-options").FieldOptions<TExplicitType>;
|
|
90
|
-
}): FieldRule<TExplicitType>;
|
|
91
|
-
/**
|
|
92
|
-
* Create a field rule with explicit type override
|
|
93
|
-
*/
|
|
94
|
-
createFieldRule<T>(definition: (context: FieldBuilderContext<any, TPlugins, T>) => ChainableFieldBuilder<any, TPlugins, any, T>, options: {
|
|
95
|
-
name: NestedKeyOf<TObject> & string;
|
|
96
|
-
description?: string;
|
|
97
|
-
fieldOptions?: import("../builder/types/field-options").FieldOptions<T>;
|
|
98
|
-
}): FieldRule<T>;
|
|
99
|
-
/**
|
|
100
|
-
* Change the target type
|
|
101
|
-
*/
|
|
102
|
-
for<TNewObject extends object>(): TypedPluginRegistry<TNewObject, TPlugins>;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Create a new plugin registry with empty plugin set
|
|
106
|
-
* Generic type parameter allows TypeScript to properly track plugin accumulation
|
|
107
|
-
*/
|
|
108
|
-
export declare function createPluginRegistry<TPlugins = {}>(): PluginRegistry<TPlugins>;
|
|
109
|
-
/**
|
|
110
|
-
* Type helper to extract the field type from a FieldRule
|
|
111
|
-
*/
|
|
112
|
-
export type ExtractFieldRuleType<T> = T extends FieldRule<infer U> ? U : never;
|
|
113
|
-
/**
|
|
114
|
-
* Type helper for field rule definitions
|
|
115
|
-
*/
|
|
116
|
-
export type FieldRuleDefinition<T, TPlugins = {}> = (context: FieldBuilderContext<{}, TPlugins, T>) => ChainableFieldBuilder<{}, TPlugins, any, T>;
|
package/dist/core/registry.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Luq Registry - Plugin registry functionality
|
|
3
|
-
*
|
|
4
|
-
* This entry point exports the plugin registry system.
|
|
5
|
-
*/
|
|
6
|
-
export { createPluginRegistry, type PluginRegistry, type FieldRule, type ExtractFieldRuleType, type FieldRuleDefinition, type TypedPluginRegistry } from "./registry/plugin-registry";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as string from "./string";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a default value transform function
|
|
3
|
-
* @param defaultValue - The default value to use when input is null or undefined
|
|
4
|
-
* @returns A function that returns the input value or default
|
|
5
|
-
*/
|
|
6
|
-
export declare function createDefaultValue(defaultValue: string): (value: string | null | undefined) => string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a replace transform function
|
|
3
|
-
* @param searchValue - The string or regex pattern to search for
|
|
4
|
-
* @param replaceValue - The string to replace matches with
|
|
5
|
-
* @returns A function that performs the replacement
|
|
6
|
-
*/
|
|
7
|
-
export declare function createReplace(searchValue: string | RegExp, replaceValue: string): (value: string) => string;
|
|
8
|
-
/**
|
|
9
|
-
* Replaces all occurrences of a string
|
|
10
|
-
* @param searchValue - The string to search for
|
|
11
|
-
* @param replaceValue - The string to replace matches with
|
|
12
|
-
* @returns A function that performs the replacement
|
|
13
|
-
*/
|
|
14
|
-
export declare function createReplaceAll(searchValue: string, replaceValue: string): (value: string) => string;
|