@allgemein/schema-api 1.7.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -1
- package/api/IBaseRef.d.ts +2 -2
- package/api/IBaseRef.js +1 -2
- package/api/IBuildOptions.d.ts +2 -2
- package/api/IBuildOptions.js +1 -2
- package/api/IClassRef.d.ts +5 -5
- package/api/IClassRef.js +3 -6
- package/api/IClassRef.js.map +1 -1
- package/api/IEntityRef.d.ts +5 -5
- package/api/IEntityRef.js +3 -6
- package/api/IEntityRef.js.map +1 -1
- package/api/IJsonSchema.d.ts +4 -4
- package/api/IJsonSchema.js +3 -8
- package/api/IJsonSchema.js.map +1 -1
- package/api/ILookupRegistry.d.ts +6 -6
- package/api/ILookupRegistry.js +6 -9
- package/api/ILookupRegistry.js.map +1 -1
- package/api/IPropertyExtentions.d.ts +1 -1
- package/api/IPropertyExtentions.js +1 -2
- package/api/IPropertyExtentions.js.map +1 -1
- package/api/IPropertyRef.d.ts +3 -3
- package/api/IPropertyRef.js +3 -6
- package/api/IPropertyRef.js.map +1 -1
- package/api/ISchemaRef.d.ts +2 -2
- package/api/ISchemaRef.js +1 -2
- package/api/ISerializeSupport.d.ts +4 -4
- package/api/ISerializeSupport.js +3 -8
- package/api/ISerializeSupport.js.map +1 -1
- package/browser.d.ts +65 -65
- package/browser.js +43 -112
- package/browser.js.map +1 -1
- package/decorators/Embeddable.d.ts +1 -1
- package/decorators/Embeddable.js +4 -7
- package/decorators/Embeddable.js.map +1 -1
- package/decorators/Entity.d.ts +1 -1
- package/decorators/Entity.js +4 -7
- package/decorators/Entity.js.map +1 -1
- package/decorators/Namespace.js +7 -10
- package/decorators/Namespace.js.map +1 -1
- package/decorators/Property.d.ts +1 -1
- package/decorators/Property.js +19 -22
- package/decorators/Property.js.map +1 -1
- package/decorators/PropertyOf.d.ts +1 -1
- package/decorators/PropertyOf.js +6 -9
- package/decorators/PropertyOf.js.map +1 -1
- package/decorators/Schema.d.ts +1 -1
- package/decorators/Schema.js +4 -7
- package/decorators/Schema.js.map +1 -1
- package/decorators/validate/Hostname.d.ts +1 -1
- package/decorators/validate/Hostname.js +12 -16
- package/decorators/validate/Hostname.js.map +1 -1
- package/decorators/validate/Ip4.d.ts +1 -1
- package/decorators/validate/Ip4.js +11 -15
- package/decorators/validate/Ip4.js.map +1 -1
- package/decorators/validate/Ip6.d.ts +1 -1
- package/decorators/validate/Ip6.js +11 -15
- package/decorators/validate/Ip6.js.map +1 -1
- package/decorators/validate/IsEmail.d.ts +1 -1
- package/decorators/validate/IsEmail.js +10 -14
- package/decorators/validate/IsEmail.js.map +1 -1
- package/decorators/validate/IsNotEmpty.d.ts +1 -1
- package/decorators/validate/IsNotEmpty.js +11 -14
- package/decorators/validate/IsNotEmpty.js.map +1 -1
- package/decorators/validate/MaxLength.d.ts +1 -1
- package/decorators/validate/MaxLength.js +9 -12
- package/decorators/validate/MaxLength.js.map +1 -1
- package/decorators/validate/MinLength.d.ts +1 -1
- package/decorators/validate/MinLength.js +9 -12
- package/decorators/validate/MinLength.js.map +1 -1
- package/decorators/validate/Regex.d.ts +1 -1
- package/decorators/validate/Regex.js +10 -13
- package/decorators/validate/Regex.js.map +1 -1
- package/decorators/validate/Required.d.ts +1 -1
- package/decorators/validate/Required.js +9 -12
- package/decorators/validate/Required.js.map +1 -1
- package/decorators/validate/index.d.ts +8 -8
- package/decorators/validate/index.js +9 -19
- package/decorators/validate/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -17
- package/index.js.map +1 -1
- package/lib/AbstractRef.d.ts +4 -4
- package/lib/AbstractRef.js +29 -33
- package/lib/AbstractRef.js.map +1 -1
- package/lib/AnnotationsHelper.d.ts +2 -2
- package/lib/AnnotationsHelper.js +30 -34
- package/lib/AnnotationsHelper.js.map +1 -1
- package/lib/ClassRef.d.ts +7 -7
- package/lib/ClassRef.js +62 -66
- package/lib/ClassRef.js.map +1 -1
- package/lib/Constants.js +42 -45
- package/lib/Constants.js.map +1 -1
- package/lib/DataContainer.d.ts +6 -6
- package/lib/DataContainer.js +17 -21
- package/lib/DataContainer.js.map +1 -1
- package/lib/LookupRegistry.js +13 -17
- package/lib/LookupRegistry.js.map +1 -1
- package/lib/SchemaRef.d.ts +7 -7
- package/lib/SchemaRef.js +11 -15
- package/lib/SchemaRef.js.map +1 -1
- package/lib/SchemaUtils.d.ts +3 -3
- package/lib/SchemaUtils.js +19 -23
- package/lib/SchemaUtils.js.map +1 -1
- package/lib/functions.d.ts +2 -2
- package/lib/functions.js +7 -10
- package/lib/functions.js.map +1 -1
- package/lib/json-schema/Constants.js +3 -6
- package/lib/json-schema/Constants.js.map +1 -1
- package/lib/json-schema/IJsonSchemaSerializeOptions.d.ts +4 -4
- package/lib/json-schema/IJsonSchemaSerializeOptions.js +1 -2
- package/lib/json-schema/IJsonSchemaSerializer.d.ts +3 -3
- package/lib/json-schema/IJsonSchemaSerializer.js +1 -2
- package/lib/json-schema/IJsonSchemaUnserializeOptions.d.ts +3 -3
- package/lib/json-schema/IJsonSchemaUnserializeOptions.js +1 -2
- package/lib/json-schema/IJsonSchemaUnserializer.d.ts +1 -1
- package/lib/json-schema/IJsonSchemaUnserializer.js +1 -2
- package/lib/json-schema/IParseOptions.d.ts +2 -2
- package/lib/json-schema/IParseOptions.js +1 -4
- package/lib/json-schema/IParseOptions.js.map +1 -1
- package/lib/json-schema/JsonSchema.d.ts +10 -10
- package/lib/json-schema/JsonSchema.js +26 -30
- package/lib/json-schema/JsonSchema.js.map +1 -1
- package/lib/json-schema/JsonSchema7.d.ts +2 -2
- package/lib/json-schema/JsonSchema7.js +3 -8
- package/lib/json-schema/JsonSchema7.js.map +1 -1
- package/lib/json-schema/JsonSchema7Serializer.d.ts +9 -9
- package/lib/json-schema/JsonSchema7Serializer.js +93 -97
- package/lib/json-schema/JsonSchema7Serializer.js.map +1 -1
- package/lib/json-schema/JsonSchema7Unserializer.d.ts +10 -10
- package/lib/json-schema/JsonSchema7Unserializer.js +99 -103
- package/lib/json-schema/JsonSchema7Unserializer.js.map +1 -1
- package/lib/json-schema/functions.d.ts +2 -2
- package/lib/json-schema/functions.js +8 -12
- package/lib/json-schema/functions.js.map +1 -1
- package/lib/options/IAbstractOptions.d.ts +1 -1
- package/lib/options/IAbstractOptions.js +1 -2
- package/lib/options/IAttributeOptions.d.ts +2 -2
- package/lib/options/IAttributeOptions.js +1 -2
- package/lib/options/IEntityOptions.d.ts +2 -2
- package/lib/options/IEntityOptions.js +1 -2
- package/lib/options/INamedOptions.js +1 -2
- package/lib/options/IObjectOptions.d.ts +2 -2
- package/lib/options/IObjectOptions.js +1 -2
- package/lib/options/IPropertyOptions.d.ts +2 -2
- package/lib/options/IPropertyOptions.js +1 -2
- package/lib/options/ISchemaOptions.d.ts +2 -2
- package/lib/options/ISchemaOptions.js +1 -2
- package/lib/registry/AbstractRegistry.d.ts +8 -8
- package/lib/registry/AbstractRegistry.js +19 -23
- package/lib/registry/AbstractRegistry.js.map +1 -1
- package/lib/registry/Binding.d.ts +1 -1
- package/lib/registry/Binding.js +1 -5
- package/lib/registry/Binding.js.map +1 -1
- package/lib/registry/DefaultEntityRef.d.ts +9 -9
- package/lib/registry/DefaultEntityRef.js +10 -14
- package/lib/registry/DefaultEntityRef.js.map +1 -1
- package/lib/registry/DefaultNamespacedRegistry.d.ts +14 -14
- package/lib/registry/DefaultNamespacedRegistry.js +122 -126
- package/lib/registry/DefaultNamespacedRegistry.js.map +1 -1
- package/lib/registry/DefaultPropertyRef.d.ts +7 -7
- package/lib/registry/DefaultPropertyRef.js +42 -46
- package/lib/registry/DefaultPropertyRef.js.map +1 -1
- package/lib/registry/IRegistryOptions.js +1 -2
- package/lib/registry/MetadataRegistry.d.ts +8 -8
- package/lib/registry/MetadataRegistry.js +29 -33
- package/lib/registry/MetadataRegistry.js.map +1 -1
- package/lib/registry/RegistryFactory.d.ts +3 -3
- package/lib/registry/RegistryFactory.js +19 -23
- package/lib/registry/RegistryFactory.js.map +1 -1
- package/lib/serializer/ISerializeOptions.js +1 -2
- package/lib/serializer/ISerializer.d.ts +2 -2
- package/lib/serializer/ISerializer.js +1 -2
- package/lib/serializer/ISerializerFactory.d.ts +6 -6
- package/lib/serializer/ISerializerFactory.js +1 -2
- package/lib/serializer/IUnserializeOptions.js +1 -2
- package/lib/serializer/IUnserializer.d.ts +2 -2
- package/lib/serializer/IUnserializer.js +1 -2
- package/lib/serializer/SerializerRegistry.d.ts +1 -1
- package/lib/serializer/SerializerRegistry.js +3 -7
- package/lib/serializer/SerializerRegistry.js.map +1 -1
- package/lib/validation/DefaultValidator.d.ts +5 -5
- package/lib/validation/DefaultValidator.js +32 -36
- package/lib/validation/DefaultValidator.js.map +1 -1
- package/lib/validation/IValidateOptions.js +1 -2
- package/lib/validation/IValidationError.js +1 -2
- package/lib/validation/IValidationMessage.js +1 -2
- package/lib/validation/IValidationOptions.d.ts +1 -0
- package/lib/validation/IValidationOptions.js +1 -0
- package/lib/validation/IValidationOptions.js.map +1 -1
- package/lib/validation/IValidationResult.d.ts +1 -1
- package/lib/validation/IValidationResult.js +1 -2
- package/lib/validation/IValidator.d.ts +1 -1
- package/lib/validation/IValidator.js +1 -2
- package/lib/validation/IValidatorEntry.d.ts +1 -1
- package/lib/validation/IValidatorEntry.js +1 -2
- package/lib/validation/IValidatorHandle.js +1 -2
- package/lib/validation/Validator.d.ts +4 -4
- package/lib/validation/Validator.js +7 -11
- package/lib/validation/Validator.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ With the decorators
|
|
|
20
20
|
@Object
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
can be used to define a instancable json schema.
|
|
23
|
+
can be used to define a instancable json schema.
|
|
24
24
|
This can be analysed and dynamically used to instance differetn kind of models.
|
|
25
25
|
|
|
26
26
|
|
|
@@ -32,3 +32,106 @@ annotation -> internal runtime structure
|
|
|
32
32
|
json schema -> generate classes ES6 + TS
|
|
33
33
|
generate classes ES6 + TS -> runtime loading
|
|
34
34
|
generate classes ES6 + TS -> json schema
|
|
35
|
+
|
|
36
|
+
`@allgemein/schema-api` builds a runtime meta-model (`ClassRef`, `EntityRef`, `PropertyRef`, ...)
|
|
37
|
+
on top of your TypeScript classes. Once a class is annotated it can be looked up in a registry,
|
|
38
|
+
introspected, built/instantiated from plain objects, (un)serialized to/from JSON Schema draft-07,
|
|
39
|
+
and validated - independent of any specific ORM, database, or transport layer.
|
|
40
|
+
|
|
41
|
+
## Install
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npm i @allgemein/schema-api
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Usage
|
|
48
|
+
|
|
49
|
+
### Define an entity and its properties
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
import 'reflect-metadata';
|
|
53
|
+
import {Entity, Property} from '@allgemein/schema-api';
|
|
54
|
+
|
|
55
|
+
@Entity()
|
|
56
|
+
class Person {
|
|
57
|
+
|
|
58
|
+
@Property()
|
|
59
|
+
firstName: string;
|
|
60
|
+
|
|
61
|
+
@Property()
|
|
62
|
+
lastName: string;
|
|
63
|
+
|
|
64
|
+
@Property({type: 'number'})
|
|
65
|
+
age: number;
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Look up the entity and build an instance from plain data
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
import {RegistryFactory} from '@allgemein/schema-api';
|
|
73
|
+
|
|
74
|
+
const registry = RegistryFactory.get();
|
|
75
|
+
const entityRef = registry.getEntityRefFor(Person);
|
|
76
|
+
|
|
77
|
+
console.log(entityRef.name); // 'Person'
|
|
78
|
+
console.log(entityRef.getPropertyRefs().map(p => p.name)); // ['firstName', 'lastName', 'age']
|
|
79
|
+
|
|
80
|
+
const person = entityRef.build<Person>({firstName: 'Ada', lastName: 'Lovelace', age: 36});
|
|
81
|
+
console.log(person instanceof Person); // true
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Attach additional properties to an existing entity with `@PropertyOf`
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
import {Entity, Property, PropertyOf} from '@allgemein/schema-api';
|
|
88
|
+
|
|
89
|
+
@Entity()
|
|
90
|
+
class Address {
|
|
91
|
+
@Property()
|
|
92
|
+
value: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@PropertyOf('address', Address)
|
|
96
|
+
class ContactInfo {
|
|
97
|
+
@Property()
|
|
98
|
+
city: string;
|
|
99
|
+
|
|
100
|
+
@Property()
|
|
101
|
+
zip: string;
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Serialize to / parse from JSON Schema (draft-07)
|
|
106
|
+
|
|
107
|
+
```ts
|
|
108
|
+
import {ClassRef, JsonSchema} from '@allgemein/schema-api';
|
|
109
|
+
|
|
110
|
+
const ref = ClassRef.get(Person);
|
|
111
|
+
const jsonSchema = JsonSchema.serialize(ref);
|
|
112
|
+
|
|
113
|
+
const parsedRef = await JsonSchema.unserialize(jsonSchema);
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Validate a built instance
|
|
117
|
+
|
|
118
|
+
```ts
|
|
119
|
+
import {Validator} from '@allgemein/schema-api';
|
|
120
|
+
|
|
121
|
+
const errors = await Validator.validate(person, entityRef.getClassRef());
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Features
|
|
125
|
+
|
|
126
|
+
* Decorators to declare instanceable json schemas from plain classes: `@Entity`, `@Property`,
|
|
127
|
+
`@PropertyOf`, `@Schema`, `@Namespace`, `@Embeddable`
|
|
128
|
+
* Validation decorators: `@Required`, `@MinLength`, `@MaxLength`, `@Regex`, `@IsEmail`,
|
|
129
|
+
`@IsNotEmpty`, `@Hostname`, `@Ip4`, `@Ip6`
|
|
130
|
+
* A namespaced lookup registry (`RegistryFactory`, `LookupRegistry`) to resolve `ClassRef` /
|
|
131
|
+
`EntityRef` / `PropertyRef` for any registered class
|
|
132
|
+
* Build/instantiate typed objects from plain data (`EntityRef#build`, `EntityRef#create`)
|
|
133
|
+
* Bidirectional transformation support:
|
|
134
|
+
* internal runtime structure <-> json schema (draft-07)
|
|
135
|
+
* annotation -> internal runtime structure
|
|
136
|
+
* json schema -> generate classes ES6 + TS
|
|
137
|
+
* generated ES6 + TS classes -> runtime loading / json schema
|
package/api/IBaseRef.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { METADATA_TYPE } from '../lib/Constants';
|
|
2
|
-
import { ILookupRegistry } from './ILookupRegistry';
|
|
1
|
+
import { METADATA_TYPE } from '../lib/Constants.js';
|
|
2
|
+
import { ILookupRegistry } from './ILookupRegistry.js';
|
|
3
3
|
export interface IBaseRef {
|
|
4
4
|
/**
|
|
5
5
|
* Original class name
|
package/api/IBaseRef.js
CHANGED
package/api/IBuildOptions.d.ts
CHANGED
package/api/IBuildOptions.js
CHANGED
package/api/IClassRef.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IPropertyRef } from './IPropertyRef';
|
|
2
|
-
import { IBuildOptions } from './IBuildOptions';
|
|
3
|
-
import { IBaseRef } from './IBaseRef';
|
|
4
|
-
import { ILookupRegistry } from './ILookupRegistry';
|
|
5
|
-
import { IEntityRef } from './IEntityRef';
|
|
1
|
+
import { IPropertyRef } from './IPropertyRef.js';
|
|
2
|
+
import { IBuildOptions } from './IBuildOptions.js';
|
|
3
|
+
import { IBaseRef } from './IBaseRef.js';
|
|
4
|
+
import { ILookupRegistry } from './ILookupRegistry.js';
|
|
5
|
+
import { IEntityRef } from './IEntityRef.js';
|
|
6
6
|
export declare function isClassRef(x: any): x is IClassRef;
|
|
7
7
|
export interface IClassRef extends IBaseRef {
|
|
8
8
|
isPlaceholder(): boolean;
|
package/api/IClassRef.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const Constants_1 = require("../lib/Constants");
|
|
5
|
-
function isClassRef(x) {
|
|
6
|
-
if (x !== undefined && x && x.metaType === Constants_1.METATYPE_CLASS_REF) {
|
|
1
|
+
import { METATYPE_CLASS_REF } from '../lib/Constants.js';
|
|
2
|
+
export function isClassRef(x) {
|
|
3
|
+
if (x !== undefined && x && x.metaType === METATYPE_CLASS_REF) {
|
|
7
4
|
return true;
|
|
8
5
|
}
|
|
9
6
|
return false;
|
package/api/IClassRef.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IClassRef.js","sourceRoot":"","sources":["../../../src/api/IClassRef.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IClassRef.js","sourceRoot":"","sources":["../../../src/api/IClassRef.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AAIvD,MAAM,UAAU,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,KAAK,kBAAkB,EAAE,CAAC;QAC9D,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/api/IEntityRef.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IPropertyRef } from './IPropertyRef';
|
|
2
|
-
import { IClassRef } from './IClassRef';
|
|
3
|
-
import { IBuildOptions } from './IBuildOptions';
|
|
4
|
-
import { IBaseRef } from './IBaseRef';
|
|
5
|
-
import { ISchemaRef } from './ISchemaRef';
|
|
1
|
+
import { IPropertyRef } from './IPropertyRef.js';
|
|
2
|
+
import { IClassRef } from './IClassRef.js';
|
|
3
|
+
import { IBuildOptions } from './IBuildOptions.js';
|
|
4
|
+
import { IBaseRef } from './IBaseRef.js';
|
|
5
|
+
import { ISchemaRef } from './ISchemaRef.js';
|
|
6
6
|
export declare function isEntityRef(x: any): x is IEntityRef;
|
|
7
7
|
export interface IEntityRef extends IBaseRef {
|
|
8
8
|
getPropertyRef(name: string): IPropertyRef;
|
package/api/IEntityRef.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const Constants_1 = require("../lib/Constants");
|
|
5
|
-
function isEntityRef(x) {
|
|
6
|
-
return x?.metaType === Constants_1.METATYPE_ENTITY;
|
|
1
|
+
import { METATYPE_ENTITY } from "../lib/Constants.js";
|
|
2
|
+
export function isEntityRef(x) {
|
|
3
|
+
return x?.metaType === METATYPE_ENTITY;
|
|
7
4
|
}
|
|
8
5
|
//# sourceMappingURL=IEntityRef.js.map
|
package/api/IEntityRef.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEntityRef.js","sourceRoot":"","sources":["../../../src/api/IEntityRef.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IEntityRef.js","sourceRoot":"","sources":["../../../src/api/IEntityRef.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAGpD,MAAM,UAAU,WAAW,CAAC,CAAM;IAChC,OAAQ,CAAgB,EAAE,QAAQ,KAAK,eAAe,CAAC;AACzD,CAAC"}
|
package/api/IJsonSchema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IJsonSchemaSerializeOptions } from '../lib/json-schema/IJsonSchemaSerializeOptions';
|
|
2
|
-
import { IClassRef } from './IClassRef';
|
|
3
|
-
import { IEntityRef } from './IEntityRef';
|
|
4
|
-
import { IJsonSchemaUnserializeOptions } from '../lib/json-schema/IJsonSchemaUnserializeOptions';
|
|
1
|
+
import { IJsonSchemaSerializeOptions } from '../lib/json-schema/IJsonSchemaSerializeOptions.js';
|
|
2
|
+
import { IClassRef } from './IClassRef.js';
|
|
3
|
+
import { IEntityRef } from './IEntityRef.js';
|
|
4
|
+
import { IJsonSchemaUnserializeOptions } from '../lib/json-schema/IJsonSchemaUnserializeOptions.js';
|
|
5
5
|
export declare function supportsJsonSchemaExport(x: any): x is IJsonSchema;
|
|
6
6
|
export declare function supportsJsonSchemaImport(x: any): x is IJsonSchema;
|
|
7
7
|
export declare function supportsJsonSchema(x: any): x is IJsonSchema;
|
package/api/IJsonSchema.js
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.supportsJsonSchemaExport = supportsJsonSchemaExport;
|
|
4
|
-
exports.supportsJsonSchemaImport = supportsJsonSchemaImport;
|
|
5
|
-
exports.supportsJsonSchema = supportsJsonSchema;
|
|
6
|
-
function supportsJsonSchemaExport(x) {
|
|
1
|
+
export function supportsJsonSchemaExport(x) {
|
|
7
2
|
if (x.toJsonSchema) {
|
|
8
3
|
return true;
|
|
9
4
|
}
|
|
10
5
|
return false;
|
|
11
6
|
}
|
|
12
|
-
function supportsJsonSchemaImport(x) {
|
|
7
|
+
export function supportsJsonSchemaImport(x) {
|
|
13
8
|
if (x.fromJsonSchema) {
|
|
14
9
|
return true;
|
|
15
10
|
}
|
|
16
11
|
return false;
|
|
17
12
|
}
|
|
18
|
-
function supportsJsonSchema(x) {
|
|
13
|
+
export function supportsJsonSchema(x) {
|
|
19
14
|
if (supportsJsonSchemaExport(x) && supportsJsonSchemaImport(x)) {
|
|
20
15
|
return true;
|
|
21
16
|
}
|
package/api/IJsonSchema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IJsonSchema.js","sourceRoot":"","sources":["../../../src/api/IJsonSchema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IJsonSchema.js","sourceRoot":"","sources":["../../../src/api/IJsonSchema.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,wBAAwB,CAAC,CAAM;IAC7C,IAAI,CAAC,CAAC,YAAY,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,CAAM;IAC7C,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAGD,MAAM,UAAU,kBAAkB,CAAC,CAAM;IACvC,IAAI,wBAAwB,CAAC,CAAC,CAAC,IAAI,wBAAwB,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/D,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/api/ILookupRegistry.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IEntityRef } from './IEntityRef';
|
|
2
|
-
import { IPropertyRef } from './IPropertyRef';
|
|
3
|
-
import { LookupRegistry } from '../lib/LookupRegistry';
|
|
4
|
-
import { IClassRef } from './IClassRef';
|
|
5
|
-
import { ISchemaRef } from './ISchemaRef';
|
|
6
|
-
import { METADATA_TYPE } from '../lib/Constants';
|
|
1
|
+
import { IEntityRef } from './IEntityRef.js';
|
|
2
|
+
import { IPropertyRef } from './IPropertyRef.js';
|
|
3
|
+
import { LookupRegistry } from '../lib/LookupRegistry.js';
|
|
4
|
+
import { IClassRef } from './IClassRef.js';
|
|
5
|
+
import { ISchemaRef } from './ISchemaRef.js';
|
|
6
|
+
import { METADATA_TYPE } from '../lib/Constants.js';
|
|
7
7
|
export declare function isLookupRegistry(x: any): x is ILookupRegistry;
|
|
8
8
|
/**
|
|
9
9
|
*
|
package/api/ILookupRegistry.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.isLookupRegistry = isLookupRegistry;
|
|
4
|
-
const lodash_1 = require("lodash");
|
|
5
|
-
function isLookupRegistry(x) {
|
|
1
|
+
import { isFunction } from '@allgemein/base';
|
|
2
|
+
export function isLookupRegistry(x) {
|
|
6
3
|
if (x !== undefined && x &&
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
isFunction(x['getLookupRegistry']) &&
|
|
5
|
+
isFunction(x['getEntityRefFor']) &&
|
|
6
|
+
isFunction(x['getPropertyRefs']) &&
|
|
7
|
+
isFunction(x['getEntities'])) {
|
|
11
8
|
return true;
|
|
12
9
|
}
|
|
13
10
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILookupRegistry.js","sourceRoot":"","sources":["../../../src/api/ILookupRegistry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ILookupRegistry.js","sourceRoot":"","sources":["../../../src/api/ILookupRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAS3C,MAAM,UAAU,gBAAgB,CAAC,CAAM;IACrC,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC;QACtB,UAAU,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC;QAClC,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC;QAChC,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC;QAChC,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,EAC5B,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPropertyExtentions.js","sourceRoot":"","sources":["../../../src/api/IPropertyExtentions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IPropertyExtentions.js","sourceRoot":"","sources":["../../../src/api/IPropertyExtentions.ts"],"names":[],"mappings":"AAAA,sDAAsD"}
|
package/api/IPropertyRef.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IClassRef } from './IClassRef';
|
|
2
|
-
import { IBaseRef } from './IBaseRef';
|
|
3
|
-
import { IBuildOptions } from './IBuildOptions';
|
|
1
|
+
import { IClassRef } from './IClassRef.js';
|
|
2
|
+
import { IBaseRef } from './IBaseRef.js';
|
|
3
|
+
import { IBuildOptions } from './IBuildOptions.js';
|
|
4
4
|
export declare function isPropertyRef(x: any): boolean;
|
|
5
5
|
export interface IPropertyRef extends IBaseRef {
|
|
6
6
|
/**
|
package/api/IPropertyRef.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const Constants_1 = require("../lib/Constants");
|
|
5
|
-
function isPropertyRef(x) {
|
|
6
|
-
if (x !== undefined && x && x.metaType === Constants_1.METATYPE_PROPERTY) {
|
|
1
|
+
import { METATYPE_PROPERTY } from '../lib/Constants.js';
|
|
2
|
+
export function isPropertyRef(x) {
|
|
3
|
+
if (x !== undefined && x && x.metaType === METATYPE_PROPERTY) {
|
|
7
4
|
return true;
|
|
8
5
|
}
|
|
9
6
|
return false;
|
package/api/IPropertyRef.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPropertyRef.js","sourceRoot":"","sources":["../../../src/api/IPropertyRef.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IPropertyRef.js","sourceRoot":"","sources":["../../../src/api/IPropertyRef.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,MAAM,UAAU,aAAa,CAAC,CAAM;IAClC,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,KAAK,iBAAiB,EAAE,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/api/ISchemaRef.d.ts
CHANGED
package/api/ISchemaRef.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IClassRef } from './IClassRef';
|
|
2
|
-
import { IEntityRef } from './IEntityRef';
|
|
3
|
-
import { ISerializeOptions } from '../lib/serializer/ISerializeOptions';
|
|
4
|
-
import { IUnserializeOptions } from '../lib/serializer/IUnserializeOptions';
|
|
1
|
+
import { IClassRef } from './IClassRef.js';
|
|
2
|
+
import { IEntityRef } from './IEntityRef.js';
|
|
3
|
+
import { ISerializeOptions } from '../lib/serializer/ISerializeOptions.js';
|
|
4
|
+
import { IUnserializeOptions } from '../lib/serializer/IUnserializeOptions.js';
|
|
5
5
|
export declare function supportsSerialize(x: any): x is ISerializeSupport;
|
|
6
6
|
export declare function supportsUnserialize(x: any): x is ISerializeSupport;
|
|
7
7
|
export declare function supportsSerialization(x: any): x is ISerializeSupport;
|
package/api/ISerializeSupport.js
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.supportsSerialize = supportsSerialize;
|
|
4
|
-
exports.supportsUnserialize = supportsUnserialize;
|
|
5
|
-
exports.supportsSerialization = supportsSerialization;
|
|
6
|
-
function supportsSerialize(x) {
|
|
1
|
+
export function supportsSerialize(x) {
|
|
7
2
|
if (x.serialize) {
|
|
8
3
|
return true;
|
|
9
4
|
}
|
|
10
5
|
return false;
|
|
11
6
|
}
|
|
12
|
-
function supportsUnserialize(x) {
|
|
7
|
+
export function supportsUnserialize(x) {
|
|
13
8
|
if (x.unserialize) {
|
|
14
9
|
return true;
|
|
15
10
|
}
|
|
16
11
|
return false;
|
|
17
12
|
}
|
|
18
|
-
function supportsSerialization(x) {
|
|
13
|
+
export function supportsSerialization(x) {
|
|
19
14
|
if (supportsSerialize(x) && supportsUnserialize(x)) {
|
|
20
15
|
return true;
|
|
21
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISerializeSupport.js","sourceRoot":"","sources":["../../../src/api/ISerializeSupport.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ISerializeSupport.js","sourceRoot":"","sources":["../../../src/api/ISerializeSupport.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,iBAAiB,CAAC,CAAM;IACtC,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;QAChB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,CAAM;IACxC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAGD,MAAM,UAAU,qBAAqB,CAAC,CAAM;IAC1C,IAAI,iBAAiB,CAAC,CAAC,CAAC,IAAI,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;QACnD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/browser.d.ts
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
export { IBaseRef } from './api/IBaseRef';
|
|
2
|
-
export { IBuildOptions } from './api/IBuildOptions';
|
|
3
|
-
export { IClassRef, isClassRef } from './api/IClassRef';
|
|
4
|
-
export { IEntityRef, isEntityRef } from './api/IEntityRef';
|
|
5
|
-
export { ILookupRegistry, isLookupRegistry } from './api/ILookupRegistry';
|
|
6
|
-
export { IPropertyExtentions } from './api/IPropertyExtentions';
|
|
7
|
-
export { IPropertyRef, isPropertyRef } from './api/IPropertyRef';
|
|
8
|
-
export { ISchemaRef } from './api/ISchemaRef';
|
|
9
|
-
export { IJsonSchema, supportsJsonSchemaExport, supportsJsonSchema, supportsJsonSchemaImport } from './api/IJsonSchema';
|
|
10
|
-
export { Entity } from './decorators/Entity';
|
|
11
|
-
export { Property } from './decorators/Property';
|
|
12
|
-
export { Embeddable } from './decorators/Embeddable';
|
|
13
|
-
export { PropertyOf } from './decorators/PropertyOf';
|
|
14
|
-
export { Schema } from './decorators/Schema';
|
|
15
|
-
export { Namespace } from './decorators/Namespace';
|
|
16
|
-
export { Hostname, HOSTNAME_RFC1034_REGEX, IHostnameOptions, HOSTNAME_RFC952_REGEX } from './decorators/validate/Hostname';
|
|
17
|
-
export { Ip4, IP4_REGEX, IIp4Options } from './decorators/validate/Ip4';
|
|
18
|
-
export { Ip6, IP6_REGEX, IIp6Options } from './decorators/validate/Ip6';
|
|
19
|
-
export { IsEmail, MAIL_REGEX, IIsEmailOptions } from './decorators/validate/IsEmail';
|
|
20
|
-
export { Regex, IRegexOptions } from './decorators/validate/Regex';
|
|
21
|
-
export { Required, IRequiredOptions } from './decorators/validate/Required';
|
|
22
|
-
export { MinLength, IMinLengthOptions } from './decorators/validate/MinLength';
|
|
23
|
-
export { MaxLength, IMaxLengthOptions } from './decorators/validate/MaxLength';
|
|
24
|
-
export { IsNotEmpty, IIsNotEmptyOptions } from './decorators/validate/IsNotEmpty';
|
|
25
|
-
export { AbstractRef } from './lib/AbstractRef';
|
|
26
|
-
export { AbstractRegistry } from './lib/registry/AbstractRegistry';
|
|
27
|
-
export { AnnotationsHelper } from './lib/AnnotationsHelper';
|
|
28
|
-
export { ClassRef } from './lib/ClassRef';
|
|
29
|
-
export * from './lib/Constants';
|
|
30
|
-
export { DataContainer } from './lib/DataContainer';
|
|
31
|
-
export { DRAFT_07 } from './lib/json-schema/Constants';
|
|
32
|
-
export { IJsonSchemaSerializeOptions } from './lib/json-schema/IJsonSchemaSerializeOptions';
|
|
33
|
-
export { IJsonSchemaSerializer } from './lib/json-schema/IJsonSchemaSerializer';
|
|
34
|
-
export { IJsonSchemaUnserializeOptions } from './lib/json-schema/IJsonSchemaUnserializeOptions';
|
|
35
|
-
export { IJsonSchemaUnserializer } from './lib/json-schema/IJsonSchemaUnserializer';
|
|
36
|
-
export { IParseOptions } from './lib/json-schema/IParseOptions';
|
|
37
|
-
export { JsonSchema } from './lib/json-schema/JsonSchema';
|
|
38
|
-
export { IJsonSchema7, IJsonSchema7Definition, hasClassInDefinition, hasClassPropertiesInDefinition, IJsonSchema7TypeName, JSON_SCHEMA_7_TYPES } from './lib/json-schema/JsonSchema7';
|
|
39
|
-
export { JsonSchema7Serializer } from './lib/json-schema/JsonSchema7Serializer';
|
|
40
|
-
export { JsonSchema7Unserializer } from './lib/json-schema/JsonSchema7Unserializer';
|
|
41
|
-
export { LookupRegistry } from './lib/LookupRegistry';
|
|
42
|
-
export { INamedOptions } from './lib/options/INamedOptions';
|
|
43
|
-
export { IAbstractOptions } from './lib/options/IAbstractOptions';
|
|
44
|
-
export { IAttributeOptions } from './lib/options/IAttributeOptions';
|
|
45
|
-
export { IEntityOptions } from './lib/options/IEntityOptions';
|
|
46
|
-
export { IObjectOptions } from './lib/options/IObjectOptions';
|
|
47
|
-
export { IPropertyOptions } from './lib/options/IPropertyOptions';
|
|
48
|
-
export { ISchemaOptions } from './lib/options/ISchemaOptions';
|
|
49
|
-
export { DefaultEntityRef } from './lib/registry/DefaultEntityRef';
|
|
50
|
-
export { DefaultNamespacedRegistry } from './lib/registry/DefaultNamespacedRegistry';
|
|
51
|
-
export { DefaultPropertyRef } from './lib/registry/DefaultPropertyRef';
|
|
52
|
-
export { MetadataRegistry } from './lib/registry/MetadataRegistry';
|
|
53
|
-
export { RegistryFactory } from './lib/registry/RegistryFactory';
|
|
54
|
-
export { Binding } from './lib/registry/Binding';
|
|
55
|
-
export { SchemaRef } from './lib/SchemaRef';
|
|
56
|
-
export { SchemaUtils } from './lib/SchemaUtils';
|
|
57
|
-
export { DefaultValidator } from './lib/validation/DefaultValidator';
|
|
58
|
-
export { IValidateOptions } from './lib/validation/IValidateOptions';
|
|
59
|
-
export { IValidatorEntry } from './lib/validation/IValidatorEntry';
|
|
60
|
-
export { IValidationError } from './lib/validation/IValidationError';
|
|
61
|
-
export { IValidationMessage } from './lib/validation/IValidationMessage';
|
|
62
|
-
export { IValidationResult } from './lib/validation/IValidationResult';
|
|
63
|
-
export { IValidator } from './lib/validation/IValidator';
|
|
64
|
-
export { Validator, validate_function } from './lib/validation/Validator';
|
|
65
|
-
export { getClassName } from './lib/functions';
|
|
1
|
+
export { IBaseRef } from './api/IBaseRef.js';
|
|
2
|
+
export { IBuildOptions } from './api/IBuildOptions.js';
|
|
3
|
+
export { IClassRef, isClassRef } from './api/IClassRef.js';
|
|
4
|
+
export { IEntityRef, isEntityRef } from './api/IEntityRef.js';
|
|
5
|
+
export { ILookupRegistry, isLookupRegistry } from './api/ILookupRegistry.js';
|
|
6
|
+
export { IPropertyExtentions } from './api/IPropertyExtentions.js';
|
|
7
|
+
export { IPropertyRef, isPropertyRef } from './api/IPropertyRef.js';
|
|
8
|
+
export { ISchemaRef } from './api/ISchemaRef.js';
|
|
9
|
+
export { IJsonSchema, supportsJsonSchemaExport, supportsJsonSchema, supportsJsonSchemaImport } from './api/IJsonSchema.js';
|
|
10
|
+
export { Entity } from './decorators/Entity.js';
|
|
11
|
+
export { Property } from './decorators/Property.js';
|
|
12
|
+
export { Embeddable } from './decorators/Embeddable.js';
|
|
13
|
+
export { PropertyOf } from './decorators/PropertyOf.js';
|
|
14
|
+
export { Schema } from './decorators/Schema.js';
|
|
15
|
+
export { Namespace } from './decorators/Namespace.js';
|
|
16
|
+
export { Hostname, HOSTNAME_RFC1034_REGEX, IHostnameOptions, HOSTNAME_RFC952_REGEX } from './decorators/validate/Hostname.js';
|
|
17
|
+
export { Ip4, IP4_REGEX, IIp4Options } from './decorators/validate/Ip4.js';
|
|
18
|
+
export { Ip6, IP6_REGEX, IIp6Options } from './decorators/validate/Ip6.js';
|
|
19
|
+
export { IsEmail, MAIL_REGEX, IIsEmailOptions } from './decorators/validate/IsEmail.js';
|
|
20
|
+
export { Regex, IRegexOptions } from './decorators/validate/Regex.js';
|
|
21
|
+
export { Required, IRequiredOptions } from './decorators/validate/Required.js';
|
|
22
|
+
export { MinLength, IMinLengthOptions } from './decorators/validate/MinLength.js';
|
|
23
|
+
export { MaxLength, IMaxLengthOptions } from './decorators/validate/MaxLength.js';
|
|
24
|
+
export { IsNotEmpty, IIsNotEmptyOptions } from './decorators/validate/IsNotEmpty.js';
|
|
25
|
+
export { AbstractRef } from './lib/AbstractRef.js';
|
|
26
|
+
export { AbstractRegistry } from './lib/registry/AbstractRegistry.js';
|
|
27
|
+
export { AnnotationsHelper } from './lib/AnnotationsHelper.js';
|
|
28
|
+
export { ClassRef } from './lib/ClassRef.js';
|
|
29
|
+
export * from './lib/Constants.js';
|
|
30
|
+
export { DataContainer } from './lib/DataContainer.js';
|
|
31
|
+
export { DRAFT_07 } from './lib/json-schema/Constants.js';
|
|
32
|
+
export { IJsonSchemaSerializeOptions } from './lib/json-schema/IJsonSchemaSerializeOptions.js';
|
|
33
|
+
export { IJsonSchemaSerializer } from './lib/json-schema/IJsonSchemaSerializer.js';
|
|
34
|
+
export { IJsonSchemaUnserializeOptions } from './lib/json-schema/IJsonSchemaUnserializeOptions.js';
|
|
35
|
+
export { IJsonSchemaUnserializer } from './lib/json-schema/IJsonSchemaUnserializer.js';
|
|
36
|
+
export { IParseOptions } from './lib/json-schema/IParseOptions.js';
|
|
37
|
+
export { JsonSchema } from './lib/json-schema/JsonSchema.js';
|
|
38
|
+
export { IJsonSchema7, IJsonSchema7Definition, hasClassInDefinition, hasClassPropertiesInDefinition, IJsonSchema7TypeName, JSON_SCHEMA_7_TYPES } from './lib/json-schema/JsonSchema7.js';
|
|
39
|
+
export { JsonSchema7Serializer } from './lib/json-schema/JsonSchema7Serializer.js';
|
|
40
|
+
export { JsonSchema7Unserializer } from './lib/json-schema/JsonSchema7Unserializer.js';
|
|
41
|
+
export { LookupRegistry } from './lib/LookupRegistry.js';
|
|
42
|
+
export { INamedOptions } from './lib/options/INamedOptions.js';
|
|
43
|
+
export { IAbstractOptions } from './lib/options/IAbstractOptions.js';
|
|
44
|
+
export { IAttributeOptions } from './lib/options/IAttributeOptions.js';
|
|
45
|
+
export { IEntityOptions } from './lib/options/IEntityOptions.js';
|
|
46
|
+
export { IObjectOptions } from './lib/options/IObjectOptions.js';
|
|
47
|
+
export { IPropertyOptions } from './lib/options/IPropertyOptions.js';
|
|
48
|
+
export { ISchemaOptions } from './lib/options/ISchemaOptions.js';
|
|
49
|
+
export { DefaultEntityRef } from './lib/registry/DefaultEntityRef.js';
|
|
50
|
+
export { DefaultNamespacedRegistry } from './lib/registry/DefaultNamespacedRegistry.js';
|
|
51
|
+
export { DefaultPropertyRef } from './lib/registry/DefaultPropertyRef.js';
|
|
52
|
+
export { MetadataRegistry } from './lib/registry/MetadataRegistry.js';
|
|
53
|
+
export { RegistryFactory } from './lib/registry/RegistryFactory.js';
|
|
54
|
+
export { Binding } from './lib/registry/Binding.js';
|
|
55
|
+
export { SchemaRef } from './lib/SchemaRef.js';
|
|
56
|
+
export { SchemaUtils } from './lib/SchemaUtils.js';
|
|
57
|
+
export { DefaultValidator } from './lib/validation/DefaultValidator.js';
|
|
58
|
+
export { IValidateOptions } from './lib/validation/IValidateOptions.js';
|
|
59
|
+
export { IValidatorEntry } from './lib/validation/IValidatorEntry.js';
|
|
60
|
+
export { IValidationError } from './lib/validation/IValidationError.js';
|
|
61
|
+
export { IValidationMessage } from './lib/validation/IValidationMessage.js';
|
|
62
|
+
export { IValidationResult } from './lib/validation/IValidationResult.js';
|
|
63
|
+
export { IValidator } from './lib/validation/IValidator.js';
|
|
64
|
+
export { Validator, validate_function } from './lib/validation/Validator.js';
|
|
65
|
+
export { getClassName } from './lib/functions.js';
|