@asaidimu/anansi 8.9.0 → 8.9.1
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/index.cjs +5274 -1
- package/index.d.cts +18 -2
- package/index.d.mts +18 -2
- package/index.mjs +5231 -1
- package/package.json +9 -3
package/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@asaidimu/query";
|
|
2
|
-
import "@standard-schema/spec";
|
|
2
|
+
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
//#region src/schema/generated.d.ts
|
|
4
4
|
type ComparisonOperator = "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "nin" | "contains" | "ncontains" | "exists" | "nexists";
|
|
5
5
|
type Constraint = ConstraintMetadata & ConstraintUnion;
|
|
@@ -1277,7 +1277,23 @@ declare class SchemaValidator {
|
|
|
1277
1277
|
static validate(schemaDef: SchemaDefinition$1): Promise<Issue[]>;
|
|
1278
1278
|
}
|
|
1279
1279
|
//#endregion
|
|
1280
|
+
//#region src/validation/standard-schema.d.ts
|
|
1281
|
+
/**
|
|
1282
|
+
* A Standard Schema V1 compatible wrapper for the DocumentValidator.
|
|
1283
|
+
*/
|
|
1284
|
+
declare class StandardDocumentValidator<T = unknown> implements StandardSchemaV1<unknown, T> {
|
|
1285
|
+
private readonly validator;
|
|
1286
|
+
readonly schema: SchemaDefinition$1;
|
|
1287
|
+
readonly "~standard": StandardSchemaV1.Props<unknown, T>;
|
|
1288
|
+
constructor(validator: DocumentValidator, schema: SchemaDefinition$1);
|
|
1289
|
+
/**
|
|
1290
|
+
* Factory method to create a StandardDocumentValidator.
|
|
1291
|
+
*/
|
|
1292
|
+
static create<T = unknown>(schema: SchemaDefinition$1, predicateMap?: PredicateMap, config?: ValidationConfig): Promise<StandardDocumentValidator<T>>;
|
|
1293
|
+
}
|
|
1294
|
+
//#endregion
|
|
1280
1295
|
//#region src/validation/predicates.d.ts
|
|
1281
1296
|
declare const metaSchemaPredicateMap: PredicateMap;
|
|
1282
1297
|
//#endregion
|
|
1283
|
-
export { AnansiCodec, type AnansiCodecOptions, type ChangeImpact, ComparisonOperator, Compiler, Constraint, ConstraintGroup, ConstraintMetadata, type ConstraintPatch, ConstraintRule, ConstraintUnion, type DataTransform, container as DataTypes, type DecodeTransforms, DocumentValidator, type DryRunResult, type EncodeKind, type EncodeTransforms, type EngineState, FD_NO_CHILD, FLAG_COMPRESSED, FLAG_ENCRYPTED, FLAG_HASH_PRESENT, FieldDef, FieldDefinition, type FieldDescriptor, type FieldPatch, FieldType, IndexCondition, IndexConditionGroup, IndexConditionUnion, IndexDefinition, IndexOrder, type IndexPatch, IndexType, InlineTypeDescriptor, InlineTypeKind, type Issue, type LinkResult, type LinkedField, type LinkedSlot, Literal, LogicalOperatorEnum, MAX_SCHEMA_SLOTS, MULTI_STEP_BASE, type ManifestField, type Migration, MigrationEngine, MigrationError, MigrationErrorCode, NestedSchemaDefinition, type Patch, type PatchOp, type PredicateMap, type ResolvedEnum, type ResolvedField, type ResolvedNested, type SchemaChange, SchemaDefinition, SchemaReference, SchemaReferenceArray, SchemaValidator, type Slot, String, type TransformFunction, Unknown, type ValidationConfig, addressForSteps, buildEnum, buildManifest, bumpVersion, calculateNextBump, classifyChangeImpact, decodeAnansiBatch, decodeAnansiPacket, decodeBatch, decodeDocument, deepMerge, defaultValidationConfig, encodeAnansiBatchColumnar, encodeAnansiBatchRows, encodeAnansiPacket, encodeBatchColumnar, encodeBatchRows, encodeDocument, internalDP, link, makeDescriptor, metaSchemaPredicateMap, parseSchema, schemaChangeToPatch, sha256, unpackDescriptor, userDataDP };
|
|
1298
|
+
export { AnansiCodec, type AnansiCodecOptions, type ChangeImpact, ComparisonOperator, Compiler, Constraint, ConstraintGroup, ConstraintMetadata, type ConstraintPatch, ConstraintRule, ConstraintUnion, type DataTransform, container as DataTypes, type DecodeTransforms, DocumentValidator, type DryRunResult, type EncodeKind, type EncodeTransforms, type EngineState, FD_NO_CHILD, FLAG_COMPRESSED, FLAG_ENCRYPTED, FLAG_HASH_PRESENT, FieldDef, FieldDefinition, type FieldDescriptor, type FieldPatch, FieldType, IndexCondition, IndexConditionGroup, IndexConditionUnion, IndexDefinition, IndexOrder, type IndexPatch, IndexType, InlineTypeDescriptor, InlineTypeKind, type Issue, type LinkResult, type LinkedField, type LinkedSlot, Literal, LogicalOperatorEnum, MAX_SCHEMA_SLOTS, MULTI_STEP_BASE, type ManifestField, type Migration, MigrationEngine, MigrationError, MigrationErrorCode, NestedSchemaDefinition, type Patch, type PatchOp, type PredicateMap, type ResolvedEnum, type ResolvedField, type ResolvedNested, type SchemaChange, SchemaDefinition, SchemaReference, SchemaReferenceArray, SchemaValidator, type Slot, StandardDocumentValidator, String, type TransformFunction, Unknown, type SchemaDefinition$1 as ValidatedSchemaDefinition, type ValidationConfig, addressForSteps, buildEnum, buildManifest, bumpVersion, calculateNextBump, classifyChangeImpact, decodeAnansiBatch, decodeAnansiPacket, decodeBatch, decodeDocument, deepMerge, defaultValidationConfig, encodeAnansiBatchColumnar, encodeAnansiBatchRows, encodeAnansiPacket, encodeBatchColumnar, encodeBatchRows, encodeDocument, internalDP, link, makeDescriptor, metaSchemaPredicateMap, parseSchema, schemaChangeToPatch, sha256, unpackDescriptor, userDataDP };
|
|
1299
|
+
//# sourceMappingURL=index.d.cts.map
|
package/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@asaidimu/query";
|
|
2
|
-
import "@standard-schema/spec";
|
|
2
|
+
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
//#region src/schema/generated.d.ts
|
|
4
4
|
type ComparisonOperator = "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "in" | "nin" | "contains" | "ncontains" | "exists" | "nexists";
|
|
5
5
|
type Constraint = ConstraintMetadata & ConstraintUnion;
|
|
@@ -1277,7 +1277,23 @@ declare class SchemaValidator {
|
|
|
1277
1277
|
static validate(schemaDef: SchemaDefinition$1): Promise<Issue[]>;
|
|
1278
1278
|
}
|
|
1279
1279
|
//#endregion
|
|
1280
|
+
//#region src/validation/standard-schema.d.ts
|
|
1281
|
+
/**
|
|
1282
|
+
* A Standard Schema V1 compatible wrapper for the DocumentValidator.
|
|
1283
|
+
*/
|
|
1284
|
+
declare class StandardDocumentValidator<T = unknown> implements StandardSchemaV1<unknown, T> {
|
|
1285
|
+
private readonly validator;
|
|
1286
|
+
readonly schema: SchemaDefinition$1;
|
|
1287
|
+
readonly "~standard": StandardSchemaV1.Props<unknown, T>;
|
|
1288
|
+
constructor(validator: DocumentValidator, schema: SchemaDefinition$1);
|
|
1289
|
+
/**
|
|
1290
|
+
* Factory method to create a StandardDocumentValidator.
|
|
1291
|
+
*/
|
|
1292
|
+
static create<T = unknown>(schema: SchemaDefinition$1, predicateMap?: PredicateMap, config?: ValidationConfig): Promise<StandardDocumentValidator<T>>;
|
|
1293
|
+
}
|
|
1294
|
+
//#endregion
|
|
1280
1295
|
//#region src/validation/predicates.d.ts
|
|
1281
1296
|
declare const metaSchemaPredicateMap: PredicateMap;
|
|
1282
1297
|
//#endregion
|
|
1283
|
-
export { AnansiCodec, type AnansiCodecOptions, type ChangeImpact, ComparisonOperator, Compiler, Constraint, ConstraintGroup, ConstraintMetadata, type ConstraintPatch, ConstraintRule, ConstraintUnion, type DataTransform, container as DataTypes, type DecodeTransforms, DocumentValidator, type DryRunResult, type EncodeKind, type EncodeTransforms, type EngineState, FD_NO_CHILD, FLAG_COMPRESSED, FLAG_ENCRYPTED, FLAG_HASH_PRESENT, FieldDef, FieldDefinition, type FieldDescriptor, type FieldPatch, FieldType, IndexCondition, IndexConditionGroup, IndexConditionUnion, IndexDefinition, IndexOrder, type IndexPatch, IndexType, InlineTypeDescriptor, InlineTypeKind, type Issue, type LinkResult, type LinkedField, type LinkedSlot, Literal, LogicalOperatorEnum, MAX_SCHEMA_SLOTS, MULTI_STEP_BASE, type ManifestField, type Migration, MigrationEngine, MigrationError, MigrationErrorCode, NestedSchemaDefinition, type Patch, type PatchOp, type PredicateMap, type ResolvedEnum, type ResolvedField, type ResolvedNested, type SchemaChange, SchemaDefinition, SchemaReference, SchemaReferenceArray, SchemaValidator, type Slot, String, type TransformFunction, Unknown, type ValidationConfig, addressForSteps, buildEnum, buildManifest, bumpVersion, calculateNextBump, classifyChangeImpact, decodeAnansiBatch, decodeAnansiPacket, decodeBatch, decodeDocument, deepMerge, defaultValidationConfig, encodeAnansiBatchColumnar, encodeAnansiBatchRows, encodeAnansiPacket, encodeBatchColumnar, encodeBatchRows, encodeDocument, internalDP, link, makeDescriptor, metaSchemaPredicateMap, parseSchema, schemaChangeToPatch, sha256, unpackDescriptor, userDataDP };
|
|
1298
|
+
export { AnansiCodec, type AnansiCodecOptions, type ChangeImpact, ComparisonOperator, Compiler, Constraint, ConstraintGroup, ConstraintMetadata, type ConstraintPatch, ConstraintRule, ConstraintUnion, type DataTransform, container as DataTypes, type DecodeTransforms, DocumentValidator, type DryRunResult, type EncodeKind, type EncodeTransforms, type EngineState, FD_NO_CHILD, FLAG_COMPRESSED, FLAG_ENCRYPTED, FLAG_HASH_PRESENT, FieldDef, FieldDefinition, type FieldDescriptor, type FieldPatch, FieldType, IndexCondition, IndexConditionGroup, IndexConditionUnion, IndexDefinition, IndexOrder, type IndexPatch, IndexType, InlineTypeDescriptor, InlineTypeKind, type Issue, type LinkResult, type LinkedField, type LinkedSlot, Literal, LogicalOperatorEnum, MAX_SCHEMA_SLOTS, MULTI_STEP_BASE, type ManifestField, type Migration, MigrationEngine, MigrationError, MigrationErrorCode, NestedSchemaDefinition, type Patch, type PatchOp, type PredicateMap, type ResolvedEnum, type ResolvedField, type ResolvedNested, type SchemaChange, SchemaDefinition, SchemaReference, SchemaReferenceArray, SchemaValidator, type Slot, StandardDocumentValidator, String, type TransformFunction, Unknown, type SchemaDefinition$1 as ValidatedSchemaDefinition, type ValidationConfig, addressForSteps, buildEnum, buildManifest, bumpVersion, calculateNextBump, classifyChangeImpact, decodeAnansiBatch, decodeAnansiPacket, decodeBatch, decodeDocument, deepMerge, defaultValidationConfig, encodeAnansiBatchColumnar, encodeAnansiBatchRows, encodeAnansiPacket, encodeBatchColumnar, encodeBatchRows, encodeDocument, internalDP, link, makeDescriptor, metaSchemaPredicateMap, parseSchema, schemaChangeToPatch, sha256, unpackDescriptor, userDataDP };
|
|
1299
|
+
//# sourceMappingURL=index.d.mts.map
|