@datashaper/schema
Advanced tools
Comparing version 8.0.1 to 8.1.0
@@ -7,3 +7,7 @@ /*! | ||
export * from './Constraints.js'; | ||
export * from './ErrorCode.js'; | ||
export * from './Field.js'; | ||
export * from './FieldError.js'; | ||
export * from './FieldMetadata.js'; | ||
export * from './ValidationResult.js'; | ||
export * from './ValidationTestResult.js'; |
@@ -6,3 +6,7 @@ /*! | ||
export * from './Constraints.js'; | ||
export * from './ErrorCode.js'; | ||
export * from './Field.js'; | ||
export * from './FieldError.js'; | ||
export * from './FieldMetadata.js'; | ||
export * from './ValidationResult.js'; | ||
export * from './ValidationTestResult.js'; |
@@ -20,2 +20,3 @@ <!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
| [DateComparisonOperator](./schema.datecomparisonoperator.md) | | | ||
| [ErrorCode](./schema.errorcode.md) | | | ||
| [FieldAggregateOperation](./schema.fieldaggregateoperation.md) | This is the subset of aggregate functions that can operate on a single field so we don't accommodate additional args. See https://uwdata.github.io/arquero/api/op\#aggregate-functions | | ||
@@ -69,2 +70,3 @@ | [FilterCompareType](./schema.filtercomparetype.md) | | | ||
| [Field](./schema.field.md) | Contains the full schema definition and metadata for a data field (usually a table column). This includes the required data type, various data nature and rendering properties, potential validation rules, and mappings from a data dictionary. | | ||
| [FieldError](./schema.fielderror.md) | | | ||
| [FieldMetadata](./schema.fieldmetadata.md) | Holds core metadata/stats for a data field. | | ||
@@ -99,2 +101,4 @@ | [FillArgs](./schema.fillargs.md) | | | ||
| [UnhotArgs](./schema.unhotargs.md) | | | ||
| [ValidationResult](./schema.validationresult.md) | | | ||
| [ValidationTestResult](./schema.validationtestresult.md) | | | ||
| [VariadicInput](./schema.variadicinput.md) | Multi-input, single output step I/O | | ||
@@ -101,0 +105,0 @@ | [WindowArgs](./schema.windowargs.md) | | |
@@ -347,2 +347,24 @@ ## API Report File for "@datashaper/schema" | ||
// Warning: (ae-missing-release-tag) "ErrorCode" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
// | ||
// @public (undocumented) | ||
export enum ErrorCode { | ||
// (undocumented) | ||
Enum = "enum", | ||
// (undocumented) | ||
Maximum = "maximum length", | ||
// (undocumented) | ||
MaxLength = "max length", | ||
// (undocumented) | ||
Minimum = "minimum length", | ||
// (undocumented) | ||
MinLength = "min length", | ||
// (undocumented) | ||
Pattern = "pattern", | ||
// (undocumented) | ||
Required = "required", | ||
// (undocumented) | ||
Unique = "unique" | ||
} | ||
// Warning: (ae-missing-release-tag) "FactoryInput" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
@@ -424,2 +446,14 @@ // | ||
// Warning: (ae-missing-release-tag) "FieldError" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
// | ||
// @public (undocumented) | ||
export interface FieldError { | ||
// (undocumented) | ||
indexes?: number[]; | ||
// (undocumented) | ||
name: string; | ||
// (undocumented) | ||
rule: ErrorCode; | ||
} | ||
// Warning: (ae-missing-release-tag) "FieldMetadata" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
@@ -997,2 +1031,22 @@ // | ||
// Warning: (ae-missing-release-tag) "ValidationResult" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
// | ||
// @public (undocumented) | ||
export interface ValidationResult { | ||
// (undocumented) | ||
errors: FieldError[]; | ||
} | ||
// Warning: (ae-missing-release-tag) "ValidationTestResult" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
// | ||
// @public (undocumented) | ||
export interface ValidationTestResult { | ||
// (undocumented) | ||
fail: boolean; | ||
// (undocumented) | ||
indexes: number[]; | ||
// (undocumented) | ||
rule: ErrorCode; | ||
} | ||
// Warning: (ae-missing-release-tag) "Value" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
@@ -999,0 +1053,0 @@ // |
@@ -347,2 +347,24 @@ ## API Report File for "@datashaper/schema" | ||
// Warning: (ae-missing-release-tag) "ErrorCode" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
// | ||
// @public (undocumented) | ||
export enum ErrorCode { | ||
// (undocumented) | ||
Enum = "enum", | ||
// (undocumented) | ||
Maximum = "maximum length", | ||
// (undocumented) | ||
MaxLength = "max length", | ||
// (undocumented) | ||
Minimum = "minimum length", | ||
// (undocumented) | ||
MinLength = "min length", | ||
// (undocumented) | ||
Pattern = "pattern", | ||
// (undocumented) | ||
Required = "required", | ||
// (undocumented) | ||
Unique = "unique" | ||
} | ||
// Warning: (ae-missing-release-tag) "FactoryInput" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
@@ -424,2 +446,14 @@ // | ||
// Warning: (ae-missing-release-tag) "FieldError" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
// | ||
// @public (undocumented) | ||
export interface FieldError { | ||
// (undocumented) | ||
indexes?: number[]; | ||
// (undocumented) | ||
name: string; | ||
// (undocumented) | ||
rule: ErrorCode; | ||
} | ||
// Warning: (ae-missing-release-tag) "FieldMetadata" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
@@ -997,2 +1031,22 @@ // | ||
// Warning: (ae-missing-release-tag) "ValidationResult" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
// | ||
// @public (undocumented) | ||
export interface ValidationResult { | ||
// (undocumented) | ||
errors: FieldError[]; | ||
} | ||
// Warning: (ae-missing-release-tag) "ValidationTestResult" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
// | ||
// @public (undocumented) | ||
export interface ValidationTestResult { | ||
// (undocumented) | ||
fail: boolean; | ||
// (undocumented) | ||
indexes: number[]; | ||
// (undocumented) | ||
rule: ErrorCode; | ||
} | ||
// Warning: (ae-missing-release-tag) "Value" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) | ||
@@ -999,0 +1053,0 @@ // |
{ | ||
"name": "@datashaper/schema", | ||
"version": "8.0.1", | ||
"version": "8.1.0", | ||
"type": "module", | ||
@@ -36,7 +36,6 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"clean": "essex clean dist docs", | ||
"_create_versions_file": "node create_versions_file.js", | ||
"clean": "essex clean dist docs versions.js versions.d.ts", | ||
"_transpile": "essex build --docs", | ||
"_bundle_schemas": "run-p bundle-codebook bundle-datapackage bundle-datatable bundle-workflow", | ||
"build": "run-p _create_versions_file _transpile _bundle_schemas", | ||
"build": "run-p _transpile _bundle_schemas", | ||
"lint": "essex lint --fix", | ||
@@ -43,0 +42,0 @@ "test": "NODE_OPTIONS=--experimental-vm-modules yarn node $(yarn bin jest) --runInBand", |
@@ -7,3 +7,7 @@ /*! | ||
export * from './Constraints.js' | ||
export * from './ErrorCode.js' | ||
export * from './Field.js' | ||
export * from './FieldError.js' | ||
export * from './FieldMetadata.js' | ||
export * from './ValidationResult.js' | ||
export * from './ValidationTestResult.js' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
771064
377
15019
0