@fougere/schema 0.12.1-alpha.0 → 0.12.2-alpha.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/dist/FougereFieldAxes.d.ts.map +1 -0
- package/dist/FougereFieldAxes.js.map +1 -0
- package/dist/Schema.d.ts +4 -3
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +3 -0
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaConstraints.d.ts +13 -10
- package/dist/SchemaConstraints.d.ts.map +1 -1
- package/dist/SchemaConstraints.js +32 -20
- package/dist/SchemaConstraints.js.map +1 -1
- package/dist/SchemaDefinition.d.ts.map +1 -1
- package/dist/SchemaDefinition.js +6 -5
- package/dist/SchemaDefinition.js.map +1 -1
- package/dist/SchemaError.d.ts +4 -1
- package/dist/SchemaError.d.ts.map +1 -1
- package/dist/SchemaError.js +5 -2
- package/dist/SchemaError.js.map +1 -1
- package/dist/SchemaView.d.ts +3 -2
- package/dist/SchemaView.d.ts.map +1 -1
- package/dist/axis/Axes.d.ts +1 -1
- package/dist/axis/Axes.js +3 -3
- package/dist/axis/Axis.d.ts +12 -2
- package/dist/axis/Axis.d.ts.map +1 -1
- package/dist/axis/boundary/Boundary.d.ts +9 -2
- package/dist/axis/boundary/Boundary.d.ts.map +1 -1
- package/dist/axis/boundary/Boundary.js +6 -2
- package/dist/axis/boundary/Boundary.js.map +1 -1
- package/dist/axis/boundary/Decoder.js.map +1 -1
- package/dist/axis/lifecycle/Lifecycle.d.ts +13 -4
- package/dist/axis/lifecycle/Lifecycle.d.ts.map +1 -1
- package/dist/axis/lifecycle/Lifecycle.js +8 -4
- package/dist/axis/lifecycle/Lifecycle.js.map +1 -1
- package/dist/axis/lifecycle/apply.js +1 -1
- package/dist/axis/lifecycle/apply.js.map +1 -1
- package/dist/axis/role/Role.d.ts +17 -10
- package/dist/axis/role/Role.d.ts.map +1 -1
- package/dist/axis/role/Role.js +30 -10
- package/dist/axis/role/Role.js.map +1 -1
- package/dist/axis/shape/Shape.d.ts +32 -9
- package/dist/axis/shape/Shape.d.ts.map +1 -1
- package/dist/axis/shape/Shape.js +43 -12
- package/dist/axis/shape/Shape.js.map +1 -1
- package/dist/axis/shape/ShapeFormat.d.ts +10 -0
- package/dist/axis/shape/ShapeFormat.d.ts.map +1 -0
- package/dist/axis/shape/ShapeFormat.js +32 -0
- package/dist/axis/shape/ShapeFormat.js.map +1 -0
- package/dist/entity/EntityDeclarations.d.ts +3 -2
- package/dist/entity/EntityDeclarations.d.ts.map +1 -1
- package/dist/entity/FieldGroups.d.ts +9 -0
- package/dist/entity/FieldGroups.d.ts.map +1 -0
- package/dist/entity/FieldGroups.js +2 -0
- package/dist/entity/FieldGroups.js.map +1 -0
- package/dist/field/Field.d.ts +35 -16
- package/dist/field/Field.d.ts.map +1 -1
- package/dist/field/Field.js +53 -8
- package/dist/field/Field.js.map +1 -1
- package/dist/field/FieldFormat.d.ts +1 -1
- package/dist/field/FieldFormat.js +4 -4
- package/dist/field/FieldFormat.js.map +1 -1
- package/dist/field/FieldSet.d.ts +12 -3
- package/dist/field/FieldSet.d.ts.map +1 -1
- package/dist/field/FieldSet.js +22 -15
- package/dist/field/FieldSet.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/Format.d.ts +21 -2
- package/dist/lib/Format.d.ts.map +1 -1
- package/dist/lib/Format.js +31 -3
- package/dist/lib/Format.js.map +1 -1
- package/dist/lib/UnionToIntersection.d.ts +7 -0
- package/dist/lib/UnionToIntersection.d.ts.map +1 -0
- package/dist/lib/UnionToIntersection.js +2 -0
- package/dist/lib/UnionToIntersection.js.map +1 -0
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/projection/Cases.d.ts +1 -1
- package/dist/projection/Cases.d.ts.map +1 -1
- package/dist/projection/Cases.js +20 -8
- package/dist/projection/Cases.js.map +1 -1
- package/dist/projection/Visibility.d.ts.map +1 -1
- package/dist/projection/Visibility.js +6 -6
- package/dist/projection/Visibility.js.map +1 -1
- package/dist/projection/card/Bundle.d.ts.map +1 -1
- package/dist/projection/card/Bundle.js.map +1 -1
- package/dist/projection/card/Card.d.ts.map +1 -1
- package/dist/projection/card/Card.js +21 -30
- package/dist/projection/card/Card.js.map +1 -1
- package/dist/projection/card/CardForms.js +1 -1
- package/dist/projection/card/Diff.js.map +1 -1
- package/dist/projection/card/FieldExtension.d.ts +2 -2
- package/dist/projection/card/FieldExtension.d.ts.map +1 -1
- package/dist/projection/card/RoleDescriptor.d.ts +7 -2
- package/dist/projection/card/RoleDescriptor.d.ts.map +1 -1
- package/dist/projection/card/RoleDescriptor.js +2 -2
- package/dist/projection/card/RoleDescriptor.js.map +1 -1
- package/dist/projection/card/ShapeKeywords.d.ts +1 -1
- package/dist/projection/card/ShapeKeywords.d.ts.map +1 -1
- package/dist/validator/FieldDeclarationValidator.d.ts.map +1 -1
- package/dist/validator/FieldDeclarationValidator.js +7 -10
- package/dist/validator/FieldDeclarationValidator.js.map +1 -1
- package/dist/validator/FieldValueValidator.d.ts.map +1 -1
- package/dist/validator/FieldValueValidator.js +0 -2
- package/dist/validator/FieldValueValidator.js.map +1 -1
- package/dist/validator/InputValidator.d.ts +7 -1
- package/dist/validator/InputValidator.d.ts.map +1 -1
- package/dist/validator/InputValidator.js +15 -14
- package/dist/validator/InputValidator.js.map +1 -1
- package/dist/vocabulary/preset/created.d.ts +2 -2
- package/dist/vocabulary/preset/created.d.ts.map +1 -1
- package/dist/vocabulary/preset/created.js +2 -2
- package/dist/vocabulary/preset/created.js.map +1 -1
- package/dist/vocabulary/preset/updated.d.ts +2 -2
- package/dist/vocabulary/preset/updated.d.ts.map +1 -1
- package/dist/vocabulary/preset/updated.js +2 -2
- package/dist/vocabulary/preset/updated.js.map +1 -1
- package/dist/vocabulary/primitive/bool.d.ts +2 -5
- package/dist/vocabulary/primitive/bool.d.ts.map +1 -1
- package/dist/vocabulary/primitive/bool.js +1 -5
- package/dist/vocabulary/primitive/bool.js.map +1 -1
- package/dist/vocabulary/primitive/date.d.ts +2 -3
- package/dist/vocabulary/primitive/date.d.ts.map +1 -1
- package/dist/vocabulary/primitive/date.js +2 -3
- package/dist/vocabulary/primitive/date.js.map +1 -1
- package/dist/vocabulary/primitive/json.d.ts +3 -3
- package/dist/vocabulary/primitive/json.d.ts.map +1 -1
- package/dist/vocabulary/primitive/json.js +11 -11
- package/dist/vocabulary/primitive/json.js.map +1 -1
- package/dist/vocabulary/primitive/list.d.ts +6 -5
- package/dist/vocabulary/primitive/list.d.ts.map +1 -1
- package/dist/vocabulary/primitive/list.js +13 -7
- package/dist/vocabulary/primitive/list.js.map +1 -1
- package/dist/vocabulary/primitive/many.d.ts +2 -4
- package/dist/vocabulary/primitive/many.d.ts.map +1 -1
- package/dist/vocabulary/primitive/many.js +2 -4
- package/dist/vocabulary/primitive/many.js.map +1 -1
- package/dist/vocabulary/primitive/number.d.ts +2 -4
- package/dist/vocabulary/primitive/number.d.ts.map +1 -1
- package/dist/vocabulary/primitive/number.js +1 -3
- package/dist/vocabulary/primitive/number.js.map +1 -1
- package/dist/vocabulary/primitive/oneOf.d.ts +4 -7
- package/dist/vocabulary/primitive/oneOf.d.ts.map +1 -1
- package/dist/vocabulary/primitive/oneOf.js +19 -11
- package/dist/vocabulary/primitive/oneOf.js.map +1 -1
- package/dist/vocabulary/primitive/primary.d.ts +2 -2
- package/dist/vocabulary/primitive/primary.d.ts.map +1 -1
- package/dist/vocabulary/primitive/primary.js +2 -3
- package/dist/vocabulary/primitive/primary.js.map +1 -1
- package/dist/vocabulary/primitive/ref.d.ts +2 -6
- package/dist/vocabulary/primitive/ref.d.ts.map +1 -1
- package/dist/vocabulary/primitive/ref.js +1 -1
- package/dist/vocabulary/primitive/ref.js.map +1 -1
- package/dist/vocabulary/primitive/text.d.ts +2 -4
- package/dist/vocabulary/primitive/text.d.ts.map +1 -1
- package/dist/vocabulary/primitive/text.js +1 -3
- package/dist/vocabulary/primitive/text.js.map +1 -1
- package/dist/vocabulary/rule/nullable.d.ts +0 -1
- package/dist/vocabulary/rule/nullable.d.ts.map +1 -1
- package/dist/vocabulary/rule/nullable.js +0 -1
- package/dist/vocabulary/rule/nullable.js.map +1 -1
- package/dist/vocabulary/rule/optional.d.ts +0 -1
- package/dist/vocabulary/rule/optional.d.ts.map +1 -1
- package/dist/vocabulary/rule/optional.js +0 -1
- package/dist/vocabulary/rule/optional.js.map +1 -1
- package/dist/vocabulary/rule/readOnly.d.ts +0 -2
- package/dist/vocabulary/rule/readOnly.d.ts.map +1 -1
- package/dist/vocabulary/rule/readOnly.js +0 -2
- package/dist/vocabulary/rule/readOnly.js.map +1 -1
- package/dist/vocabulary/rule/writeOnly.d.ts +0 -2
- package/dist/vocabulary/rule/writeOnly.d.ts.map +1 -1
- package/dist/vocabulary/rule/writeOnly.js +0 -2
- package/dist/vocabulary/rule/writeOnly.js.map +1 -1
- package/dist/vocabulary/vocabulary.d.ts +2 -3
- package/dist/vocabulary/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary/vocabulary.js +17 -21
- package/dist/vocabulary/vocabulary.js.map +1 -1
- package/package.json +1 -1
- package/src/Schema.ts +11 -8
- package/src/SchemaConstraints.ts +40 -22
- package/src/SchemaDefinition.ts +7 -5
- package/src/SchemaError.ts +8 -2
- package/src/SchemaView.ts +3 -2
- package/src/axis/Axes.ts +3 -3
- package/src/axis/Axis.ts +13 -2
- package/src/axis/boundary/Boundary.ts +16 -2
- package/src/axis/boundary/Decoder.ts +2 -0
- package/src/axis/lifecycle/Lifecycle.ts +15 -4
- package/src/axis/lifecycle/apply.ts +1 -1
- package/src/axis/role/Role.ts +41 -9
- package/src/axis/shape/Shape.ts +89 -23
- package/src/axis/shape/ShapeFormat.ts +37 -0
- package/src/entity/EntityDeclarations.ts +3 -2
- package/src/entity/FieldGroups.ts +9 -0
- package/src/field/Field.ts +84 -21
- package/src/field/FieldFormat.ts +5 -5
- package/src/field/FieldSet.ts +27 -19
- package/src/index.ts +1 -0
- package/src/lib/Format.ts +36 -3
- package/src/lib/UnionToIntersection.ts +10 -0
- package/src/lib/utils.ts +5 -1
- package/src/projection/Cases.ts +25 -8
- package/src/projection/Visibility.ts +9 -6
- package/src/projection/card/Bundle.ts +2 -0
- package/src/projection/card/Card.ts +26 -27
- package/src/projection/card/CardForms.ts +1 -1
- package/src/projection/card/Diff.ts +4 -0
- package/src/projection/card/FieldExtension.ts +2 -2
- package/src/projection/card/RoleDescriptor.ts +9 -4
- package/src/projection/card/ShapeKeywords.ts +1 -1
- package/src/validator/FieldDeclarationValidator.ts +7 -10
- package/src/validator/FieldValueValidator.ts +3 -1
- package/src/validator/InputValidator.ts +17 -12
- package/src/vocabulary/preset/created.ts +3 -3
- package/src/vocabulary/preset/updated.ts +4 -3
- package/src/vocabulary/primitive/bool.ts +3 -8
- package/src/vocabulary/primitive/date.ts +5 -4
- package/src/vocabulary/primitive/json.ts +27 -12
- package/src/vocabulary/primitive/list.ts +16 -9
- package/src/vocabulary/primitive/many.ts +3 -4
- package/src/vocabulary/primitive/number.ts +3 -8
- package/src/vocabulary/primitive/oneOf.ts +40 -24
- package/src/vocabulary/primitive/primary.ts +9 -5
- package/src/vocabulary/primitive/ref.ts +3 -7
- package/src/vocabulary/primitive/text.ts +3 -8
- package/src/vocabulary/rule/nullable.ts +0 -1
- package/src/vocabulary/rule/optional.ts +0 -1
- package/src/vocabulary/rule/readOnly.ts +0 -2
- package/src/vocabulary/rule/writeOnly.ts +0 -2
- package/src/vocabulary/vocabulary.ts +18 -22
- package/dist/entity/CompositeUnique.d.ts +0 -4
- package/dist/entity/CompositeUnique.d.ts.map +0 -1
- package/dist/entity/CompositeUnique.js +0 -2
- package/dist/entity/CompositeUnique.js.map +0 -1
- package/dist/field/FougereFieldAxes.d.ts.map +0 -1
- package/dist/field/FougereFieldAxes.js.map +0 -1
- package/dist/field/Meta.d.ts +0 -6
- package/dist/field/Meta.d.ts.map +0 -1
- package/dist/field/Meta.js +0 -3
- package/dist/field/Meta.js.map +0 -1
- package/src/entity/CompositeUnique.ts +0 -6
- package/src/field/Meta.ts +0 -5
- /package/dist/{field/FougereFieldAxes.d.ts → FougereFieldAxes.d.ts} +0 -0
- /package/dist/{field/FougereFieldAxes.js → FougereFieldAxes.js} +0 -0
- /package/src/{field/FougereFieldAxes.ts → FougereFieldAxes.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMtD,wBAAgB,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AAC9D,wBAAgB,IAAI,CAAC,CAAC,SAAS,UAAU,GAAG,CAAC,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,EACvE,EAAE,EAAE,CAAC,EACL,IAAI,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAC7B,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { Field } from '../../field/Field.js';
|
|
2
2
|
import { InputValidator } from '../../validator/InputValidator.js';
|
|
3
|
+
import { SchemaError } from '../../SchemaError.js';
|
|
3
4
|
/**
|
|
4
|
-
* `json(Address)` where the object has a shape; `json()` alone admits any shape forever.
|
|
5
|
-
* FR : `json(Address)` quand l'objet a une forme ; `json()` seul admet tout, à jamais.
|
|
6
5
|
* `json(Address)` → the entity's properties, and its required keys
|
|
7
6
|
*/
|
|
8
|
-
export function json(of) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
export function json(of, opts) {
|
|
8
|
+
const [schema, shared] = typeof of === 'function' ? [of, opts] : [undefined, of];
|
|
9
|
+
if (schema && typeof schema.getFields !== 'function')
|
|
10
|
+
throw new SchemaError('json() takes an entity, such as json(Address) — got a function that is not one');
|
|
11
|
+
if (!schema)
|
|
12
|
+
return new Field({ shape: { type: 'object' } }).setShared(shared);
|
|
13
|
+
const fields = schema.getFields();
|
|
12
14
|
const validator = InputValidator.of(fields);
|
|
13
15
|
const properties = {};
|
|
14
16
|
const required = [];
|
|
15
17
|
for (const [key, field] of Object.entries(fields)) {
|
|
16
|
-
properties[key] = field.
|
|
17
|
-
|
|
18
|
-
: field.shape;
|
|
19
|
-
if (validator.onAbsent(field) === null)
|
|
18
|
+
properties[key] = field.shape;
|
|
19
|
+
if (validator.requires(field))
|
|
20
20
|
required.push(key);
|
|
21
21
|
}
|
|
22
22
|
return new Field({
|
|
23
23
|
shape: { type: 'object', properties, ...(required.length ? { required } : {}) },
|
|
24
|
-
});
|
|
24
|
+
}).setShared(shared);
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAe,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAUnD;;GAEG;AACH,MAAM,UAAU,IAAI,CAClB,EAA6B,EAC7B,IAAsB;IAEtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,EAAE,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAEjF,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,UAAU;QAClD,MAAM,IAAI,WAAW,CACnB,gFAAgF,CACjF,CAAC;IAEJ,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAE/E,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IAClC,MAAM,SAAS,GAAG,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;IAC5C,MAAM,UAAU,GAA4B,EAAE,CAAC;IAC/C,MAAM,QAAQ,GAAa,EAAE,CAAC;IAE9B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,UAAU,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;QAE9B,IAAI,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpD,CAAC;IAED,OAAO,IAAI,KAAK,CAAC;QACf,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;KAChF,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Field } from '../../field/Field.js';
|
|
2
|
-
export interface ListOptions {
|
|
1
|
+
import { Field, type Shared } from '../../field/Field.js';
|
|
2
|
+
export interface ListOptions<T = unknown> extends Shared<T[]> {
|
|
3
3
|
min?: number;
|
|
4
4
|
max?: number;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
|
-
* A list of
|
|
8
|
-
*
|
|
7
|
+
* A list of values. It keeps the shape of the item and nothing else: `nullable()` and a
|
|
8
|
+
* `description` write in the shape, so they work. A rule writes beside it, and an item of a
|
|
9
|
+
* list has no key, no column and no name to keep it on.
|
|
9
10
|
* `list(text(), { max: 5 })` → `{ type: 'array', items: { type: 'string' }, maxItems: 5 }`
|
|
10
11
|
*/
|
|
11
|
-
export declare function list<T>(
|
|
12
|
+
export declare function list<T>(field: Field<T>, opts?: ListOptions<T>): Field<T[]>;
|
|
12
13
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,MAAM,CAAC,CAAC,EAAE,CAAC;IAC3D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAc1E"}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { Field } from '../../field/Field.js';
|
|
2
2
|
import { SchemaError } from '../../SchemaError.js';
|
|
3
3
|
/**
|
|
4
|
-
* A list of
|
|
5
|
-
*
|
|
4
|
+
* A list of values. It keeps the shape of the item and nothing else: `nullable()` and a
|
|
5
|
+
* `description` write in the shape, so they work. A rule writes beside it, and an item of a
|
|
6
|
+
* list has no key, no column and no name to keep it on.
|
|
6
7
|
* `list(text(), { max: 5 })` → `{ type: 'array', items: { type: 'string' }, maxItems: 5 }`
|
|
7
8
|
*/
|
|
8
|
-
export function list(
|
|
9
|
-
if (
|
|
10
|
-
throw new SchemaError('list() takes a value
|
|
9
|
+
export function list(field, opts) {
|
|
10
|
+
if (field.hasAxes())
|
|
11
|
+
throw new SchemaError('list() takes a value, not a rule. Put the rule on the list: unique(list(text())).');
|
|
11
12
|
return new Field({
|
|
12
|
-
shape: {
|
|
13
|
-
|
|
13
|
+
shape: {
|
|
14
|
+
type: 'array',
|
|
15
|
+
items: field.shape,
|
|
16
|
+
minItems: opts?.min,
|
|
17
|
+
maxItems: opts?.max,
|
|
18
|
+
},
|
|
19
|
+
}).setShared(opts);
|
|
14
20
|
}
|
|
15
21
|
//# sourceMappingURL=list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAe,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAOnD;;;;;GAKG;AACH,MAAM,UAAU,IAAI,CAAI,KAAe,EAAE,IAAqB;IAC5D,IAAI,KAAK,CAAC,OAAO,EAAE;QACjB,MAAM,IAAI,WAAW,CACnB,mFAAmF,CACpF,CAAC;IAEJ,OAAO,IAAI,KAAK,CAAM;QACpB,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,QAAQ,EAAE,IAAI,EAAE,GAAG;YACnB,QAAQ,EAAE,IAAI,EAAE,GAAG;SACpB;KACF,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { type EntityConstructor } from '../../axis/role/EntityConstructor.js';
|
|
2
|
-
import { Field } from '../../field/Field.js';
|
|
2
|
+
import { Field, type Described } from '../../field/Field.js';
|
|
3
3
|
/**
|
|
4
|
-
* The far side of a `ref()`: no column of its own, and absent from what a client sends.
|
|
5
|
-
* FR : l'autre côté d'un `ref()` : aucune colonne à lui, et absent de ce qu'un client envoie.
|
|
6
4
|
* `many(() => Post)` → `{ type: 'array' }` with `role.relation.kind` `'many'`
|
|
7
5
|
*/
|
|
8
|
-
export declare function many<E extends EntityConstructor>(target: E | (() => E)): Field<InstanceType<E>[]>;
|
|
6
|
+
export declare function many<E extends EntityConstructor>(target: E | (() => E), opts?: Described): Field<InstanceType<E>[]>;
|
|
9
7
|
//# sourceMappingURL=many.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"many.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/many.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"many.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/many.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;GAEG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,iBAAiB,EAC9C,MAAM,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EACrB,IAAI,CAAC,EAAE,SAAS,GACf,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAK1B"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { Relation } from '../../axis/role/Relation.js';
|
|
2
2
|
import { Field } from '../../field/Field.js';
|
|
3
3
|
/**
|
|
4
|
-
* The far side of a `ref()`: no column of its own, and absent from what a client sends.
|
|
5
|
-
* FR : l'autre côté d'un `ref()` : aucune colonne à lui, et absent de ce qu'un client envoie.
|
|
6
4
|
* `many(() => Post)` → `{ type: 'array' }` with `role.relation.kind` `'many'`
|
|
7
5
|
*/
|
|
8
|
-
export function many(target) {
|
|
6
|
+
export function many(target, opts) {
|
|
9
7
|
return new Field({
|
|
10
8
|
shape: { type: 'array' },
|
|
11
9
|
role: { relation: Relation.many(target) },
|
|
12
|
-
});
|
|
10
|
+
}).setShared(opts);
|
|
13
11
|
}
|
|
14
12
|
//# sourceMappingURL=many.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"many.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/many.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"many.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/many.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAkB,MAAM,sBAAsB,CAAC;AAE7D;;GAEG;AACH,MAAM,UAAU,IAAI,CAClB,MAAqB,EACrB,IAAgB;IAEhB,OAAO,IAAI,KAAK,CAAoB;QAClC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;QACxB,IAAI,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;KAC1C,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { Field } from '../../field/Field.js';
|
|
2
|
-
export interface NumberOptions {
|
|
1
|
+
import { Field, type Shared } from '../../field/Field.js';
|
|
2
|
+
export interface NumberOptions extends Shared<number> {
|
|
3
3
|
min?: number;
|
|
4
4
|
max?: number;
|
|
5
5
|
integer?: boolean;
|
|
6
|
-
default?: number;
|
|
7
|
-
description?: string;
|
|
8
6
|
}
|
|
9
7
|
export declare function number(opts?: NumberOptions): Field<number>;
|
|
10
8
|
//# sourceMappingURL=number.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,MAAM,CAAC;IACnD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,MAAM,CAAC,IAAI,CAAC,EAAE,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,CAQ1D"}
|
|
@@ -6,8 +6,6 @@ export function number(opts) {
|
|
|
6
6
|
minimum: opts?.min,
|
|
7
7
|
maximum: opts?.max,
|
|
8
8
|
},
|
|
9
|
-
|
|
10
|
-
meta: opts?.description !== undefined ? { description: opts.description } : undefined,
|
|
11
|
-
});
|
|
9
|
+
}).setShared(opts);
|
|
12
10
|
}
|
|
13
11
|
//# sourceMappingURL=number.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"number.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAe,MAAM,sBAAsB,CAAC;AAQ1D,MAAM,UAAU,MAAM,CAAC,IAAoB;IACzC,OAAO,IAAI,KAAK,CAAS;QACvB,KAAK,EAAE;YACL,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;YAC1C,OAAO,EAAE,IAAI,EAAE,GAAG;YAClB,OAAO,EAAE,IAAI,EAAE,GAAG;SACnB;KACF,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { Field } from '../../field/Field.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export declare function oneOf<const T extends readonly string[]>(...values: [...T]): Field<T[number]>;
|
|
7
|
-
export declare function oneOf<const T extends readonly string[]>(...args: [...T, OneOfOptions<T[number]>]): Field<T[number]>;
|
|
1
|
+
import { Field, type Shared } from '../../field/Field.js';
|
|
2
|
+
type Values = readonly [string, ...string[]] | readonly [number, ...number[]];
|
|
3
|
+
export declare function oneOf<const T extends Values>(...values: [...T]): Field<T[number]>;
|
|
4
|
+
export declare function oneOf<const T extends Values>(...args: [...T, Shared<T[number]>]): Field<T[number]>;
|
|
8
5
|
export {};
|
|
9
6
|
//# sourceMappingURL=oneOf.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oneOf.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/oneOf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"oneOf.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/oneOf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAK1D,KAAK,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;AAE9E,wBAAgB,KAAK,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEnF,wBAAgB,KAAK,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,EAC1C,GAAG,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACjC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import { Field } from '../../field/Field.js';
|
|
2
|
+
import { isArrayOf, isObject } from '../../lib/utils.js';
|
|
3
|
+
import { SchemaError } from '../../SchemaError.js';
|
|
2
4
|
/**
|
|
3
|
-
* The set travels: GraphQL enum, form `select` and DDL `CHECK`, from this one declaration.
|
|
4
|
-
* FR : l'ensemble voyage : enum GraphQL, `select` du formulaire, `CHECK` du DDL.
|
|
5
5
|
* `oneOf('draft', 'published', { default: 'draft' })` → `{ type: 'string', enum: [...] }`
|
|
6
6
|
*/
|
|
7
7
|
export function oneOf(...args) {
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
const given = args;
|
|
9
|
+
const last = given.at(-1);
|
|
10
|
+
const opts = isObject(last) ? last : undefined;
|
|
11
|
+
const values = opts ? given.slice(0, -1) : given;
|
|
12
|
+
let shape = undefined;
|
|
13
|
+
if (values.length === 0)
|
|
14
|
+
throw new SchemaError('oneOf() takes strings or numbers, then an optional object of options', { received: given });
|
|
15
|
+
if (isArrayOf(values, (value) => typeof value === 'string'))
|
|
16
|
+
shape = { type: 'string', enum: values };
|
|
17
|
+
if (isArrayOf(values, (value) => typeof value === 'number'))
|
|
18
|
+
shape = {
|
|
19
|
+
type: values.every(Number.isInteger) ? 'integer' : 'number',
|
|
20
|
+
enum: values,
|
|
21
|
+
};
|
|
22
|
+
if (shape === undefined)
|
|
23
|
+
throw new SchemaError('oneOf() takes strings or numbers, then an optional object of options', { received: given });
|
|
24
|
+
return new Field({ shape }).setShared(opts);
|
|
17
25
|
}
|
|
18
26
|
//# sourceMappingURL=oneOf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oneOf.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/oneOf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"oneOf.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/oneOf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAe,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAUnD;;GAEG;AACH,MAAM,UAAU,KAAK,CACnB,GAAG,IAAwC;IAE3C,MAAM,KAAK,GAAuB,IAAI,CAAC;IACvC,MAAM,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAE1B,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IAC/C,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAEjD,IAAI,KAAK,GAAsB,SAAS,CAAC;IAEzC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QACrB,MAAM,IAAI,WAAW,CACnB,sEAAsE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAC5F,CAAC;IAEJ,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC;QACzD,KAAK,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAE3C,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC;QACzD,KAAK,GAAG;YACN,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;YAC3D,IAAI,EAAE,MAAM;SACb,CAAC;IAEJ,IAAI,KAAK,KAAK,SAAS;QACrB,MAAM,IAAI,WAAW,CACnB,sEAAsE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAC5F,CAAC;IAEJ,OAAO,IAAI,KAAK,CAAY,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Field } from '../../field/Field.js';
|
|
1
|
+
import { Field, type Described } from '../../field/Field.js';
|
|
2
2
|
import { type GeneratorRef } from '../../axis/lifecycle/Generators.js';
|
|
3
|
-
interface PrimaryOptions {
|
|
3
|
+
interface PrimaryOptions extends Described {
|
|
4
4
|
generate?: GeneratorRef | [name: string, fn: () => string];
|
|
5
5
|
}
|
|
6
6
|
export declare function primary(opts?: PrimaryOptions): Field<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primary.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/primary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"primary.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/primary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAEnF,UAAU,cAAe,SAAQ,SAAS;IACxC,QAAQ,CAAC,EAAE,YAAY,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC,CAAC;CAC5D;AAED,wBAAgB,OAAO,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAC9D,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { Field } from '../../field/Field.js';
|
|
|
2
2
|
import { Generators } from '../../axis/lifecycle/Generators.js';
|
|
3
3
|
/**
|
|
4
4
|
* `primary()` for a generated id; `primary(number())` to make a declared field the key.
|
|
5
|
-
* FR : `primary()` pour un identifiant généré ; `primary(number())` pour promouvoir un champ.
|
|
6
5
|
* `primary()` → `create: { generate: 'cuid2' }`, `update: 'forbidden'`
|
|
7
6
|
*/
|
|
8
7
|
export function primary(fieldOrOptions) {
|
|
@@ -13,7 +12,7 @@ export function primary(fieldOrOptions) {
|
|
|
13
12
|
lifecycle: { ...field.lifecycle, update: 'forbidden' },
|
|
14
13
|
});
|
|
15
14
|
}
|
|
16
|
-
const opts =
|
|
15
|
+
const opts = fieldOrOptions ?? {};
|
|
17
16
|
let generate;
|
|
18
17
|
if (Array.isArray(opts.generate)) {
|
|
19
18
|
const [name, fn] = opts.generate;
|
|
@@ -27,6 +26,6 @@ export function primary(fieldOrOptions) {
|
|
|
27
26
|
shape: { type: 'string' },
|
|
28
27
|
role: { primary: true },
|
|
29
28
|
lifecycle: { create: { generate }, update: 'forbidden' },
|
|
30
|
-
});
|
|
29
|
+
}).setShared(opts);
|
|
31
30
|
}
|
|
32
31
|
//# sourceMappingURL=primary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primary.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/primary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"primary.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/primary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAkB,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAqB,MAAM,oCAAoC,CAAC;AAQnF;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,cAAuC;IAC7D,IAAI,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;QAC7B,MAAM,KAAK,GAAG,cAAc,CAAC;QAE7B,OAAO,KAAK,CAAC,IAAI,CAAC;YAChB,IAAI,EAAE,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE;YACtC,SAAS,EAAE,EAAE,GAAG,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE;SACvD,CAAC,CAAC;IACL,CAAC;IAED,MAAM,IAAI,GAAmB,cAAc,IAAI,EAAE,CAAC;IAElD,IAAI,QAAsB,CAAC;IAC3B,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACjC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;QAEjC,UAAU,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAE9B,QAAQ,GAAG,IAAI,CAAC;IAClB,CAAC;SAAM,CAAC;QACN,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,OAAO,CAAC;IACtC,CAAC;IAED,OAAO,IAAI,KAAK,CAAS;QACvB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;QACvB,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE;KACzD,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { type EntityConstructor } from '../../axis/role/EntityConstructor.js';
|
|
2
2
|
import { type OnDelete } from '../../axis/role/Relation.js';
|
|
3
|
-
import { Field } from '../../field/Field.js';
|
|
4
|
-
export interface RefOptions {
|
|
5
|
-
/**
|
|
6
|
-
* What becomes of this row when the target's is deleted. `restrict` is the default because
|
|
7
|
-
* it is what a foreign key already does when nothing is stated.
|
|
8
|
-
*/
|
|
3
|
+
import { Field, type Shared } from '../../field/Field.js';
|
|
4
|
+
export interface RefOptions extends Shared<string> {
|
|
9
5
|
onDelete?: OnDelete;
|
|
10
6
|
}
|
|
11
7
|
export declare function ref<E extends EntityConstructor>(target: E | (() => E), opts?: RefOptions): Field<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ref.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,CAAC;IAChD,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,wBAAgB,GAAG,CAAC,CAAC,SAAS,iBAAiB,EAC7C,MAAM,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EACrB,IAAI,CAAC,EAAE,UAAU,GAChB,KAAK,CAAC,MAAM,CAAC,CAKf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/ref.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAiB,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"ref.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/ref.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAiB,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,KAAK,EAAe,MAAM,sBAAsB,CAAC;AAM1D,MAAM,UAAU,GAAG,CACjB,MAAqB,EACrB,IAAiB;IAEjB,OAAO,IAAI,KAAK,CAAS;QACvB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,IAAI,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE;KACzD,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { Field } from '../../field/Field.js';
|
|
1
|
+
import { Field, type Shared } from '../../field/Field.js';
|
|
2
2
|
import { type StringFormat } from '../../axis/shape/StringFormat.js';
|
|
3
|
-
export interface TextOptions {
|
|
3
|
+
export interface TextOptions extends Shared<string> {
|
|
4
4
|
min?: number;
|
|
5
5
|
max?: number;
|
|
6
6
|
pattern?: string;
|
|
7
7
|
format?: StringFormat;
|
|
8
|
-
default?: string;
|
|
9
|
-
description?: string;
|
|
10
8
|
}
|
|
11
9
|
export declare function text(opts?: TextOptions): Field<string>;
|
|
12
10
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/primitive/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAErE,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,MAAM,CAAC;IACjD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,wBAAgB,IAAI,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,CAUtD"}
|
|
@@ -8,8 +8,6 @@ export function text(opts) {
|
|
|
8
8
|
pattern: opts?.pattern,
|
|
9
9
|
format: opts?.format,
|
|
10
10
|
},
|
|
11
|
-
|
|
12
|
-
meta: opts?.description !== undefined ? { description: opts.description } : undefined,
|
|
13
|
-
});
|
|
11
|
+
}).setShared(opts);
|
|
14
12
|
}
|
|
15
13
|
//# sourceMappingURL=text.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../src/vocabulary/primitive/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAe,MAAM,sBAAsB,CAAC;AAU1D,MAAM,UAAU,IAAI,CAAC,IAAkB;IACrC,OAAO,IAAI,KAAK,CAAS;QACvB,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI,EAAE,GAAG;YACpB,SAAS,EAAE,IAAI,EAAE,GAAG;YACpB,OAAO,EAAE,IAAI,EAAE,OAAO;YACtB,MAAM,EAAE,IAAI,EAAE,MAAM;SACrB;KACF,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type Field } from '../../field/Field.js';
|
|
2
2
|
/**
|
|
3
3
|
* Adds `null` and leaves the field REQUIRED — `optional()` is the one permitting absence.
|
|
4
|
-
* FR : ajoute `null` en laissant le champ OBLIGATOIRE — `optional()` permet l'absence.
|
|
5
4
|
* `nullable(text())` → `{ type: ['string', 'null'] }`, and `validate({})` still refuses
|
|
6
5
|
*/
|
|
7
6
|
export declare const nullable: <T>(field: Field<T>) => Field<T | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nullable.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/rule/nullable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD
|
|
1
|
+
{"version":3,"file":"nullable.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/rule/nullable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,GAAG,IAAI,CAK5D,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { vocabulary } from '../vocabulary.js';
|
|
|
2
2
|
import { Shapes } from '../../axis/shape/Shape.js';
|
|
3
3
|
/**
|
|
4
4
|
* Adds `null` and leaves the field REQUIRED — `optional()` is the one permitting absence.
|
|
5
|
-
* FR : ajoute `null` en laissant le champ OBLIGATOIRE — `optional()` permet l'absence.
|
|
6
5
|
* `nullable(text())` → `{ type: ['string', 'null'] }`, and `validate({})` still refuses
|
|
7
6
|
*/
|
|
8
7
|
export const nullable = vocabulary('nullable', (field) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nullable.js","sourceRoot":"","sources":["../../../src/vocabulary/rule/nullable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAGnD
|
|
1
|
+
{"version":3,"file":"nullable.js","sourceRoot":"","sources":["../../../src/vocabulary/rule/nullable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAGnD;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA4C,UAAU,CACzE,UAAU,EACV,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACV,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;CACpC,CAAC,CACH,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type Field } from '../../field/Field.js';
|
|
2
2
|
/**
|
|
3
3
|
* Adds `null` AND permits absence. A field that already states a `create` rule keeps it.
|
|
4
|
-
* FR : ajoute `null` ET permet l'absence. Un champ qui énonce déjà un `create` le garde.
|
|
5
4
|
* `optional(text())` → `{ type: ['string', 'null'] }` and `create: 'optional'`
|
|
6
5
|
*/
|
|
7
6
|
export declare const optional: <T>(field: Field<T>) => Field<T | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optional.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/rule/optional.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD
|
|
1
|
+
{"version":3,"file":"optional.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/rule/optional.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,GAAG,IAAI,CAQ5D,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { vocabulary } from '../vocabulary.js';
|
|
|
2
2
|
import { Shapes } from '../../axis/shape/Shape.js';
|
|
3
3
|
/**
|
|
4
4
|
* Adds `null` AND permits absence. A field that already states a `create` rule keeps it.
|
|
5
|
-
* FR : ajoute `null` ET permet l'absence. Un champ qui énonce déjà un `create` le garde.
|
|
6
5
|
* `optional(text())` → `{ type: ['string', 'null'] }` and `create: 'optional'`
|
|
7
6
|
*/
|
|
8
7
|
export const optional = vocabulary('optional', (field) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optional.js","sourceRoot":"","sources":["../../../src/vocabulary/rule/optional.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAGnD
|
|
1
|
+
{"version":3,"file":"optional.js","sourceRoot":"","sources":["../../../src/vocabulary/rule/optional.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAGnD;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA4C,UAAU,CACzE,UAAU,EACV,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACV,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;IACnC,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,MAAM,KAAK,SAAS;QACvC,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,UAAmB,EAAE,EAAE;QAChD,CAAC,CAAC,EAAE,CAAC;CACR,CAAC,CACH,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Field } from '../../field/Field.js';
|
|
2
2
|
/**
|
|
3
|
-
* Closes the way in, so the field leaves `Visibility.input` and every form derived from it.
|
|
4
|
-
* FR : ferme l'entrée : le champ quitte `Visibility.input` et tout formulaire qui en dérive.
|
|
5
3
|
* `readOnly(text())` → `boundary.in` is `'closed'`
|
|
6
4
|
*/
|
|
7
5
|
export declare const readOnly: <T>(field: Field<T>) => Field<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readOnly.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/rule/readOnly.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C
|
|
1
|
+
{"version":3,"file":"readOnly.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/rule/readOnly.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAKrD,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { vocabulary } from '../vocabulary.js';
|
|
2
2
|
import { Boundary } from '../../axis/boundary/Boundary.js';
|
|
3
3
|
/**
|
|
4
|
-
* Closes the way in, so the field leaves `Visibility.input` and every form derived from it.
|
|
5
|
-
* FR : ferme l'entrée : le champ quitte `Visibility.input` et tout formulaire qui en dérive.
|
|
6
4
|
* `readOnly(text())` → `boundary.in` is `'closed'`
|
|
7
5
|
*/
|
|
8
6
|
export const readOnly = vocabulary('readOnly', (field) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readOnly.js","sourceRoot":"","sources":["../../../src/vocabulary/rule/readOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAG3D
|
|
1
|
+
{"version":3,"file":"readOnly.js","sourceRoot":"","sources":["../../../src/vocabulary/rule/readOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAG3D;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAqC,UAAU,CAClE,UAAU,EACV,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACV,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;CAC/D,CAAC,CACH,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Field } from '../../field/Field.js';
|
|
2
2
|
/**
|
|
3
|
-
* Closes the way out, the dual of `readOnly`: the value is written and never sent back.
|
|
4
|
-
* FR : ferme la sortie, dual de `readOnly` : la valeur s'écrit et ne repart jamais.
|
|
5
3
|
* `writeOnly(text())` → `boundary.out` is `'closed'`
|
|
6
4
|
*/
|
|
7
5
|
export declare const writeOnly: <T>(field: Field<T>) => Field<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeOnly.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/rule/writeOnly.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C
|
|
1
|
+
{"version":3,"file":"writeOnly.d.ts","sourceRoot":"","sources":["../../../src/vocabulary/rule/writeOnly.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAKtD,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { vocabulary } from '../vocabulary.js';
|
|
2
2
|
import { Boundary } from '../../axis/boundary/Boundary.js';
|
|
3
3
|
/**
|
|
4
|
-
* Closes the way out, the dual of `readOnly`: the value is written and never sent back.
|
|
5
|
-
* FR : ferme la sortie, dual de `readOnly` : la valeur s'écrit et ne repart jamais.
|
|
6
4
|
* `writeOnly(text())` → `boundary.out` is `'closed'`
|
|
7
5
|
*/
|
|
8
6
|
export const writeOnly = vocabulary('writeOnly', (field) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeOnly.js","sourceRoot":"","sources":["../../../src/vocabulary/rule/writeOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAG3D
|
|
1
|
+
{"version":3,"file":"writeOnly.js","sourceRoot":"","sources":["../../../src/vocabulary/rule/writeOnly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAG3D;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAqC,UAAU,CACnE,WAAW,EACX,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACV,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;CAChE,CAAC,CACH,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Field } from '../field/Field.js';
|
|
2
2
|
/**
|
|
3
|
-
* Builds a `rule/` word
|
|
4
|
-
* FR : fabrique un mot de `rule/`, qui énonce des membres sur le champ reçu.
|
|
3
|
+
* Builds a `rule/` word
|
|
5
4
|
* `vocabulary('indexed', () => ({ role: { index: true } }))`
|
|
6
5
|
*/
|
|
7
|
-
export declare function vocabulary(
|
|
6
|
+
export declare function vocabulary(word: string, states: (field: Field) => Partial<Field>): FieldWord;
|
|
8
7
|
export type FieldWord = (field: Field<any>) => Field<any>;
|
|
9
8
|
//# sourceMappingURL=vocabulary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vocabulary.d.ts","sourceRoot":"","sources":["../../src/vocabulary/vocabulary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"vocabulary.d.ts","sourceRoot":"","sources":["../../src/vocabulary/vocabulary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAyB,MAAM,mBAAmB,CAAC;AAKjE;;;GAGG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,KAAK,CAAC,GACvC,SAAS,CAEX;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,CAAC"}
|