cedar-model-typescript-library 1.0.23 → 1.0.24
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 +76 -1
- package/conformance/CedarSchemaOracle.java +67 -0
- package/conformance/java-oracle.mjs +63 -0
- package/conformance/pom.xml +22 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.esm.js +1 -1
- package/index.esm.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.umd.js +1 -1
- package/index.umd.js.map +1 -1
- package/org/metadatacenter/io/reader/ReaderUtil.d.ts +29 -2
- package/org/metadatacenter/io/reader/ReaderUtil.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/SchemaReaderDefaults.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/CedarJsonReaders.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonAbstractArtifactReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonAbstractSchemaArtifactReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonArtifactShape.d.ts +68 -0
- package/org/metadatacenter/io/reader/json/JsonArtifactShape.d.ts.map +1 -0
- package/org/metadatacenter/io/reader/json/JsonContainerArtifactReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonTemplateElementReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonTemplateFieldReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonTemplateInstanceReader.d.ts +34 -10
- package/org/metadatacenter/io/reader/json/JsonTemplateInstanceReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonTemplateReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonTermConstraintChecks.d.ts +26 -0
- package/org/metadatacenter/io/reader/json/JsonTermConstraintChecks.d.ts.map +1 -0
- package/org/metadatacenter/io/reader/yaml/YamlAbstractArtifactReader.d.ts +47 -2
- package/org/metadatacenter/io/reader/yaml/YamlAbstractArtifactReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/yaml/YamlSourcePolicy.d.ts +10 -0
- package/org/metadatacenter/io/reader/yaml/YamlSourcePolicy.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/yaml/YamlTemplateElementReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/yaml/YamlTemplateFieldReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/yaml/YamlTemplateInstanceReader.d.ts +16 -14
- package/org/metadatacenter/io/reader/yaml/YamlTemplateInstanceReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/yaml/YamlTemplateReader.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/WriterUtil.d.ts +8 -0
- package/org/metadatacenter/io/writer/WriterUtil.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/json/JsonAbstractArtifactWriter.d.ts +4 -0
- package/org/metadatacenter/io/writer/json/JsonAbstractArtifactWriter.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/json/JsonAnnotationsWriter.d.ts +2 -0
- package/org/metadatacenter/io/writer/json/JsonAnnotationsWriter.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/json/JsonTemplateInstanceWriter.d.ts +4 -1
- package/org/metadatacenter/io/writer/json/JsonTemplateInstanceWriter.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/yaml/YamlAbstractArtifactWriter.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/yaml/YamlTemplateInstanceWriter.d.ts +11 -0
- package/org/metadatacenter/io/writer/yaml/YamlTemplateInstanceWriter.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/AbstractArtifacBuilder.d.ts +10 -0
- package/org/metadatacenter/model/cedar/AbstractArtifacBuilder.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/ReservedNames.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/TemplateValueValidator.d.ts +0 -1
- package/org/metadatacenter/model/cedar/TemplateValueValidator.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/constants/YamlKeys.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/constants/YamlValues.d.ts +2 -0
- package/org/metadatacenter/model/cedar/constants/YamlValues.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/deployment/ItemBounds.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/checkbox/YamlFieldReaderCheckbox.d.ts +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/checkbox/YamlFieldReaderCheckbox.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/JsonFieldReaderControlledTerm.d.ts +3 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/JsonFieldReaderControlledTerm.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/YamlFieldReaderControlledTerm.d.ts +29 -2
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/YamlFieldReaderControlledTerm.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/action/ControlledTermAction.d.ts +11 -0
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/action/ControlledTermAction.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/YamlValueConstraintsOntologyWriter.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/list-multiple-choice/YamlFieldReaderMultiSelectList.d.ts +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/list-multiple-choice/YamlFieldReaderMultiSelectList.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/list-single-choice/YamlFieldReaderSingleSelectList.d.ts +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/list-single-choice/YamlFieldReaderSingleSelectList.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/radio/YamlFieldReaderRadio.d.ts +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/radio/YamlFieldReaderRadio.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/JsonFieldReaderTemporal.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/JsonFieldWriterTemporal.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalField.d.ts +3 -2
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalField.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalFieldImpl.d.ts +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalFieldImpl.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/YamlFieldReaderTemporal.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/field/dynamic/temporal/YamlFieldWriterTemporal.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/template-instance/InstanceDataContainer.d.ts +4 -0
- package/org/metadatacenter/model/cedar/template-instance/InstanceDataContainer.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/template-instance/InstanceValidator.d.ts +121 -2
- package/org/metadatacenter/model/cedar/template-instance/InstanceValidator.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/template-instance/StoredForm.d.ts +41 -0
- package/org/metadatacenter/model/cedar/template-instance/StoredForm.d.ts.map +1 -0
- package/org/metadatacenter/model/cedar/types/bioportal-types/BioportalTermType.d.ts +7 -0
- package/org/metadatacenter/model/cedar/types/bioportal-types/BioportalTermType.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/types/wrapped-types/BiboStatus.d.ts +7 -0
- package/org/metadatacenter/model/cedar/types/wrapped-types/BiboStatus.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/types/wrapped-types/NumberType.d.ts +6 -0
- package/org/metadatacenter/model/cedar/types/wrapped-types/NumberType.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/types/wrapped-types/TemporalGranularity.d.ts +7 -0
- package/org/metadatacenter/model/cedar/types/wrapped-types/TemporalGranularity.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/types/wrapped-types/TemporalType.d.ts +6 -0
- package/org/metadatacenter/model/cedar/types/wrapped-types/TemporalType.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/types/wrapped-types/TimeFormat.d.ts +6 -0
- package/org/metadatacenter/model/cedar/types/wrapped-types/TimeFormat.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/util/compare/JsonArtifactParsingResult.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/validation/SchemaArtifactValidator.d.ts +16 -0
- package/org/metadatacenter/model/cedar/validation/SchemaArtifactValidator.d.ts.map +1 -0
- package/org/metadatacenter/model/cedar/validation/SchemaFormats.d.ts +12 -0
- package/org/metadatacenter/model/cedar/validation/SchemaFormats.d.ts.map +1 -0
- package/org/metadatacenter/policy/FieldValuePolicy.d.ts +3 -0
- package/org/metadatacenter/policy/FieldValuePolicy.d.ts.map +1 -1
- package/org/metadatacenter/policy/IdentifierPolicy.d.ts +7 -0
- package/org/metadatacenter/policy/IdentifierPolicy.d.ts.map +1 -1
- package/org/metadatacenter/policy/JsonSourcePolicy.d.ts +6 -0
- package/org/metadatacenter/policy/JsonSourcePolicy.d.ts.map +1 -1
- package/org/metadatacenter/policy/SchemaValuePolicy.d.ts +6 -0
- package/org/metadatacenter/policy/SchemaValuePolicy.d.ts.map +1 -0
- package/org/metadatacenter/policy/TextPolicy.d.ts +8 -0
- package/org/metadatacenter/policy/TextPolicy.d.ts.map +1 -1
- package/org/metadatacenter/policy/TimestampPolicy.d.ts +11 -0
- package/org/metadatacenter/policy/TimestampPolicy.d.ts.map +1 -1
- package/package.json +3 -2
- package/policy.esm.js +1 -1
- package/policy.esm.js.map +1 -1
- package/policy.js +1 -1
- package/policy.js.map +1 -1
- package/policy.umd.js +1 -1
- package/policy.umd.js.map +1 -1
- package/schema.d.ts +3 -0
- package/schema.d.ts.map +1 -0
- package/schema.esm.js +2 -0
- package/schema.esm.js.map +1 -0
- package/schema.js +2 -0
- package/schema.js.map +1 -0
- package/schema.umd.js +2 -0
- package/schema.umd.js.map +1 -0
|
@@ -4,11 +4,14 @@ import { CedarJsonWriters } from './CedarJsonWriters';
|
|
|
4
4
|
import { JsonAbstractArtifactWriter } from './JsonAbstractArtifactWriter';
|
|
5
5
|
import { TemplateInstance } from '../../../model/cedar/template-instance/TemplateInstance';
|
|
6
6
|
import { AbstractInstanceArtifact } from '../../../model/cedar/AbstractInstanceArtifact';
|
|
7
|
+
import { InstanceDataContainer } from '../../../model/cedar/template-instance/InstanceDataContainer';
|
|
7
8
|
import { InstanceDataAtomType } from '../../../model/cedar/template-instance/InstanceDataAtomType';
|
|
8
9
|
export declare class JsonTemplateInstanceWriter extends JsonAbstractArtifactWriter {
|
|
9
10
|
private constructor();
|
|
10
11
|
protected macroContext(_artifact: AbstractInstanceArtifact): JsonNode;
|
|
11
12
|
static getFor(behavior: JsonWriterBehavior, writers: CedarJsonWriters): JsonTemplateInstanceWriter;
|
|
13
|
+
/** A container's `@type`: one class as a string, several as a list in order, and none as no key. */
|
|
14
|
+
static writeTypes(dataContainer: InstanceDataContainer): JsonNode;
|
|
12
15
|
private buildContext;
|
|
13
16
|
private getDataTree;
|
|
14
17
|
private serializeDataLevelInto;
|
|
@@ -24,7 +27,7 @@ export declare class JsonTemplateInstanceWriter extends JsonAbstractArtifactWrit
|
|
|
24
27
|
static writeValueNode(atom: InstanceDataAtomType): JsonNode | null;
|
|
25
28
|
private static writeValueNodeWithoutNotation;
|
|
26
29
|
private serializeCommonType;
|
|
27
|
-
|
|
30
|
+
/** An attribute is written as the field value it is, so its label, datatype and identifier survive. */
|
|
28
31
|
private serializeAttributeValueFields;
|
|
29
32
|
getAsJsonString(instance: TemplateInstance, indent?: number): string;
|
|
30
33
|
getAsJsonNode(instance: TemplateInstance): JsonNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonTemplateInstanceWriter.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/io/writer/json/JsonTemplateInstanceWriter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAI1E,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAC3F,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"JsonTemplateInstanceWriter.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/io/writer/json/JsonTemplateInstanceWriter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAI1E,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAC3F,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAEzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,6DAA6D,CAAC;AAanG,qBAAa,0BAA2B,SAAQ,0BAA0B;IACxE,OAAO;IAIP,SAAS,CAAC,YAAY,CAAC,SAAS,EAAE,wBAAwB;WAI5C,MAAM,CAAC,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,gBAAgB,GAAG,0BAA0B;IAIzG,oGAAoG;WACtF,UAAU,CAAC,aAAa,EAAE,qBAAqB,GAAG,QAAQ;IAMxE,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,WAAW;IAMn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,SAAS,EAAE,OAAO,GAAG,QAAQ;IAU9F,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,QAAQ;IAIhE,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,gBAAgB;CAYjD"}
|
|
@@ -10,7 +10,18 @@ export declare class YamlTemplateInstanceWriter extends YamlAbstractArtifactWrit
|
|
|
10
10
|
getAsYamlString(instance: TemplateInstance, isCompact?: boolean): string;
|
|
11
11
|
private getDataTree;
|
|
12
12
|
private serializeDataLevelInto;
|
|
13
|
+
/**
|
|
14
|
+
* A container's `@type` under `instanceType`, the key a template uses for the classes its
|
|
15
|
+
* instances take: one class as a string, several as a list in order, and none as no key.
|
|
16
|
+
*/
|
|
17
|
+
private static typesNode;
|
|
13
18
|
private serializeAttributeValueFields;
|
|
19
|
+
/**
|
|
20
|
+
* An attribute is written as the field value it is, as Java's writer writes it, so its label,
|
|
21
|
+
* datatype and identifier survive. An attribute that holds nothing is left out, and an element is
|
|
22
|
+
* never an attribute.
|
|
23
|
+
*/
|
|
24
|
+
private serializeAttribute;
|
|
14
25
|
private getUnpackedAttributeValueGroups;
|
|
15
26
|
private serializeCommonType;
|
|
16
27
|
private serializeCommonTypeWithoutNotation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlTemplateInstanceWriter.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/io/writer/yaml/YamlTemplateInstanceWriter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;
|
|
1
|
+
{"version":3,"file":"YamlTemplateInstanceWriter.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/io/writer/yaml/YamlTemplateInstanceWriter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAgB3F,qBAAa,0BAA2B,SAAQ,0BAA0B;IACxE,OAAO;WAIO,MAAM,CAAC,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,gBAAgB,GAAG,0BAA0B;IAIlG,iBAAiB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,SAAS,GAAE,OAAe,GAAG,QAAQ;IA2BnF,eAAe,CAAC,QAAQ,EAAE,gBAAgB,EAAE,SAAS,GAAE,OAAe,GAAG,MAAM;IAItF,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,sBAAsB;IA2E9B;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,SAAS;IAMxB,OAAO,CAAC,6BAA6B;IA6CrC;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,+BAA+B;IAiBvC,OAAO,CAAC,mBAAmB;IAkB3B,OAAO,CAAC,kCAAkC;IA+C1C,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,KAAK;CAGd"}
|
|
@@ -38,6 +38,16 @@ export declare abstract class AbstractArtifactBuilder {
|
|
|
38
38
|
withDerivedFrom(pav_derivedFrom: CedarArtifactId): this;
|
|
39
39
|
withSchemaIdentifier(schema_identifier: string): this;
|
|
40
40
|
protected buildInternal(artifact: AbstractSchemaArtifact): void;
|
|
41
|
+
/**
|
|
42
|
+
* Refuse a template, element or field name that is not empty but is made only of whitespace, as the
|
|
43
|
+
* Java library's builders refuse it. Whitespace is what Java's `String.isBlank` counts: the ASCII
|
|
44
|
+
* controls from tab to carriage return and from U+001C to U+001F, the space, and the Unicode space,
|
|
45
|
+
* line and paragraph separators other than the no-break spaces. An empty or absent name is not
|
|
46
|
+
* refused here. Every template, element and field builder reaches this check when it builds, and
|
|
47
|
+
* nothing else does. The readers construct artifacts without a builder, so they accept such a name,
|
|
48
|
+
* as the meta-schema does.
|
|
49
|
+
*/
|
|
50
|
+
private assertNameNotBlank;
|
|
41
51
|
private static kindOf;
|
|
42
52
|
}
|
|
43
53
|
//# sourceMappingURL=AbstractArtifacBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractArtifacBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/org/metadatacenter/model/cedar/AbstractArtifacBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"AbstractArtifacBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/org/metadatacenter/model/cedar/AbstractArtifacBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE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,+DAA+D;IAC/D,gBAAuB,2BAA2B,EAAE,WAAW,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"ReservedNames.d.ts","sourceRoot":"","sources":["../../../../../src/org/metadatacenter/model/cedar/ReservedNames.ts"],"names":[],"mappings":"AAEA,kGAAkG;AAClG,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,SAAS,CAAC;AAE/D;;;;;;;;;;;;;;;GAeG;AACH,8BAAsB,aAAa;IACjC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAexC;IAEH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAA2E;IAEnH,+DAA+D;IAC/D,gBAAuB,2BAA2B,EAAE,WAAW,CAAC,MAAM,CAAC,CAcpE;IAEH,oGAAoG;IACpG,gBAAuB,iCAAiC,EAAE,WAAW,CAAC,MAAM,CAAC,CAK1E;IAEH,yFAAyF;IACzF,gBAAuB,qCAAqC,EAAE,WAAW,CAAC,MAAM,CAAC,CAW9E;IAEH,sFAAsF;WACxE,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIlD,OAAO;IAEP,oFAAoF;WACtE,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAInD,2FAA2F;WAC7E,iCAAiC,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,yBAAyB,GAAG,OAAO;IAOzG,0FAA0F;WAC5E,QAAQ,CAAC,MAAM,EAAE,yBAAyB,GAAG,WAAW,CAAC,MAAM,CAAC;CAG/E"}
|
|
@@ -6,6 +6,5 @@ export declare class TemplateValueValidator {
|
|
|
6
6
|
private static visitModel;
|
|
7
7
|
/** Also accepts retained imported definitions so their defaults can be corrected. */
|
|
8
8
|
static validateSource(source: unknown): ValidationSummary;
|
|
9
|
-
private static visit;
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=TemplateValueValidator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateValueValidator.d.ts","sourceRoot":"","sources":["../../../../../src/org/metadatacenter/model/cedar/TemplateValueValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAuC,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAOvG,8FAA8F;AAC9F,qBAAa,sBAAsB;IACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,GAAG,iBAAiB;IAY9D,OAAO,CAAC,MAAM,CAAC,UAAU;IAuBzB,qFAAqF;IACrF,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,iBAAiB;
|
|
1
|
+
{"version":3,"file":"TemplateValueValidator.d.ts","sourceRoot":"","sources":["../../../../../src/org/metadatacenter/model/cedar/TemplateValueValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAuC,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAOvG,8FAA8F;AAC9F,qBAAa,sBAAsB;IACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,GAAG,iBAAiB;IAY9D,OAAO,CAAC,MAAM,CAAC,UAAU;IAuBzB,qFAAqF;IACrF,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,iBAAiB;CAK1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlKeys.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/constants/YamlKeys.ts"],"names":[],"mappings":"AAAA,qBAAa,QAAQ;IACnB,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAc;IACrC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAQ;IACzB,MAAM,CAAC,IAAI,EAAE,MAAM,CAAU;IAC7B,MAAM,CAAC,IAAI,EAAE,MAAM,CAAU;IAC7B,MAAM,CAAC,WAA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AM,CAAoB;IAEjD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAY;IACjC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAc;IAErC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAa;IACnC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAY;IAEjC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAmB;IAE/C,MAAM,CAAC,UAAU;;sBAKM,MAAM;uBACL,MAAM;oBACT,MAAM;mBACP,MAAM;mBAGN,MAAM;iBACR,MAAM;kBACL,MAAM;mBACL,MAAM;0BACC,MAAM;qBACX,MAAM;uBACJ,MAAM;sBACP,MAAM;mBACT,MAAM;mBAIN,MAAM;8BACK,MAAM;gCACJ,MAAM;YAE1B,MAAM;MACjB;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlValues.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/constants/YamlValues.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;IACrB,MAAM,CAAC,EAAE,EAAE,MAAM,CAAQ;IACzB,MAAM,CAAC,KAAK,EAAE,MAAM,CAAW;IAC/B,MAAM,CAAC,GAAG,EAAE,MAAM,CAAS;IAC3B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAY;IAEjC,MAAM,CAAC,UAAU;;eACD,MAAM;kBACH,MAAM;kBACN,MAAM;gBACR,MAAM;
|
|
1
|
+
{"version":3,"file":"YamlValues.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/constants/YamlValues.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;IACrB,MAAM,CAAC,EAAE,EAAE,MAAM,CAAQ;IACzB,MAAM,CAAC,KAAK,EAAE,MAAM,CAAW;IAC/B,MAAM,CAAC,GAAG,EAAE,MAAM,CAAS;IAC3B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAY;IAEjC,MAAM,CAAC,UAAU;;eACD,MAAM;kBACH,MAAM;kBACN,MAAM;gBACR,MAAM;sCAGgB,MAAM;kCAIV,MAAM;MACvC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemBounds.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/deployment/ItemBounds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"ItemBounds.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/deployment/ItemBounds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI,CAkB9G"}
|
|
@@ -5,6 +5,6 @@ import { ChildDeploymentInfo } from '../../../deployment/ChildDeploymentInfo';
|
|
|
5
5
|
import { YamlTemplateFieldTypeSpecificReader } from '../../../../../io/reader/yaml/YamlTemplateFieldTypeSpecificReader';
|
|
6
6
|
import { YamlArtifactParsingResult } from '../../../util/compare/YamlArtifactParsingResult';
|
|
7
7
|
export declare class YamlFieldReaderCheckbox extends YamlTemplateFieldTypeSpecificReader {
|
|
8
|
-
read(fieldSourceObject: JsonNode, _childInfo: ChildDeploymentInfo, _parsingResult: YamlArtifactParsingResult,
|
|
8
|
+
read(fieldSourceObject: JsonNode, _childInfo: ChildDeploymentInfo, _parsingResult: YamlArtifactParsingResult, path: JsonPath): CheckboxField;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=YamlFieldReaderCheckbox.d.ts.map
|
package/org/metadatacenter/model/cedar/field/dynamic/checkbox/YamlFieldReaderCheckbox.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlFieldReaderCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/checkbox/YamlFieldReaderCheckbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAGxH,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"YamlFieldReaderCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/checkbox/YamlFieldReaderCheckbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAGxH,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAI5F,qBAAa,uBAAwB,SAAQ,mCAAmC;IACrE,IAAI,CACX,iBAAiB,EAAE,QAAQ,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,cAAc,EAAE,yBAAyB,EACzC,IAAI,EAAE,QAAQ,GACb,aAAa;CAoBjB"}
|
|
@@ -5,12 +5,14 @@ import { ControlledTermField } from './ControlledTermField';
|
|
|
5
5
|
import { JsonTemplateFieldTypeSpecificReader } from '../../../../../io/reader/json/JsonTemplateFieldTypeSpecificReader';
|
|
6
6
|
import { ChildDeploymentInfo } from '../../../deployment/ChildDeploymentInfo';
|
|
7
7
|
export declare class JsonFieldReaderControlledTerm extends JsonTemplateFieldTypeSpecificReader {
|
|
8
|
-
read(fieldSourceObject: JsonNode, childInfo: ChildDeploymentInfo, _parsingResult: JsonArtifactParsingResult,
|
|
8
|
+
read(fieldSourceObject: JsonNode, childInfo: ChildDeploymentInfo, _parsingResult: JsonArtifactParsingResult, path: JsonPath): ControlledTermField;
|
|
9
9
|
private getOntologies;
|
|
10
10
|
private getClasses;
|
|
11
11
|
private getBranches;
|
|
12
12
|
private getValueSets;
|
|
13
13
|
private getActions;
|
|
14
|
+
/** The value at `key`, or undefined where the node states none. */
|
|
15
|
+
private static own;
|
|
14
16
|
/**
|
|
15
17
|
* The three source-explicit keys, in the order every constraint constructor takes them. Optional and
|
|
16
18
|
* usually absent: a constraint written before they existed has none, and reads as it always did.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonFieldReaderControlledTerm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/JsonFieldReaderControlledTerm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAOxH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"JsonFieldReaderControlledTerm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/JsonFieldReaderControlledTerm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAOxH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAS9E,qBAAa,6BAA8B,SAAQ,mCAAmC;IAC3E,IAAI,CACX,iBAAiB,EAAE,QAAQ,EAC3B,SAAS,EAAE,mBAAmB,EAC9B,cAAc,EAAE,yBAAyB,EACzC,IAAI,EAAE,QAAQ,GACb,mBAAmB;IA+BtB,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,UAAU;IAiBlB,mEAAmE;IACnE,OAAO,CAAC,MAAM,CAAC,GAAG;IAIlB;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAMnC;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAsB1B,OAAO,CAAC,eAAe;CAYxB"}
|
|
@@ -5,8 +5,35 @@ import { ChildDeploymentInfo } from '../../../deployment/ChildDeploymentInfo';
|
|
|
5
5
|
import { YamlTemplateFieldTypeSpecificReader } from '../../../../../io/reader/yaml/YamlTemplateFieldTypeSpecificReader';
|
|
6
6
|
import { YamlArtifactParsingResult } from '../../../util/compare/YamlArtifactParsingResult';
|
|
7
7
|
export declare class YamlFieldReaderControlledTerm extends YamlTemplateFieldTypeSpecificReader {
|
|
8
|
-
read(fieldSourceObject: JsonNode, _childInfo: ChildDeploymentInfo, _parsingResult: YamlArtifactParsingResult,
|
|
9
|
-
/**
|
|
8
|
+
read(fieldSourceObject: JsonNode, _childInfo: ChildDeploymentInfo, _parsingResult: YamlArtifactParsingResult, path: JsonPath): ControlledTermField;
|
|
9
|
+
/**
|
|
10
|
+
* Read the constraints a choice field's `values:` entries state, and discard them. Java's reader reads
|
|
11
|
+
* every field's `values:` for constraints, so an option that states a `type` is read as the constraint
|
|
12
|
+
* that type names. A type of another spelling is refused, and so is a constraint the entry does not
|
|
13
|
+
* complete. A complete one has no effect, since a choice field holds no constraint.
|
|
14
|
+
*/
|
|
15
|
+
static readStatedConstraints(fieldSourceObject: JsonNode, path: JsonPath): void;
|
|
16
|
+
/**
|
|
17
|
+
* Read one `values:` entry, at `entryPath`, into `field` as the constraint its `type` names. An entry
|
|
18
|
+
* with no type is passed over.
|
|
19
|
+
*/
|
|
20
|
+
private readValueConstraint;
|
|
21
|
+
/**
|
|
22
|
+
* Refuse a `values:` entry whose `type` is not one of the four kinds as the writer spells them, as
|
|
23
|
+
* Java refuses it. Each kind is read from the entries of its own type, so an entry of any other type
|
|
24
|
+
* was passed over and its constraint lost. A literal entry states no type, and is passed over still.
|
|
25
|
+
*/
|
|
26
|
+
private static assertValueConstraintType;
|
|
27
|
+
/**
|
|
28
|
+
* The integer at `key` in the entry at `entryPath`, or null where the entry states none, as Java's
|
|
29
|
+
* reader holds a Java `int`. A fraction, a number YAML types as a float such as `3.0`, a number past
|
|
30
|
+
* the range of an `int`, a string, a boolean, a list or a mapping is refused, as Java refuses it.
|
|
31
|
+
*/
|
|
32
|
+
private static readInteger;
|
|
33
|
+
/**
|
|
34
|
+
* The service address the entry states, held to the identifier rule as Java holds it, or the BioPortal
|
|
35
|
+
* address derived from the acronym where it states none, as it states none for a BioPortal ontology.
|
|
36
|
+
*/
|
|
10
37
|
private ontologyUri;
|
|
11
38
|
/** The keys every constraint kind shares: which vocabulary, on which system, at which snapshot. */
|
|
12
39
|
private readSourceAndVersion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlFieldReaderControlledTerm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/YamlFieldReaderControlledTerm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;
|
|
1
|
+
{"version":3,"file":"YamlFieldReaderControlledTerm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/YamlFieldReaderControlledTerm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAUxH,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAgB5F,qBAAa,6BAA8B,SAAQ,mCAAmC;IAC3E,IAAI,CACX,iBAAiB,EAAE,QAAQ,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,cAAc,EAAE,yBAAyB,EACzC,IAAI,EAAE,QAAQ,GACb,mBAAmB;IA8BtB;;;;;OAKG;IACH,MAAM,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,GAAG,IAAI;IAoB/E;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IA6C3B;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,yBAAyB;IAaxC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B;;;OAGG;IACH,OAAO,CAAC,WAAW;IASnB,mGAAmG;IACnG,OAAO,CAAC,oBAAoB;IAU5B;;;;;;OAMG;IACH,OAAO,CAAC,WAAW;CAiBpB"}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { Iri } from '../../../../../types/wrapped-types/Iri';
|
|
2
2
|
import { ControlledTermAbstractValueConstraint } from '../ControlledTermAbstractValueConstraint';
|
|
3
3
|
import { BioportalTermType } from '../../../../../types/bioportal-types/BioportalTermType';
|
|
4
|
+
/** What an action does to a term, as Java's `ValueConstraintsActionType` defines it. */
|
|
5
|
+
export declare const ControlledTermActionValues: {
|
|
6
|
+
readonly DELETE: "delete";
|
|
7
|
+
readonly MOVE: "move";
|
|
8
|
+
};
|
|
4
9
|
export declare class ControlledTermAction extends ControlledTermAbstractValueConstraint {
|
|
5
10
|
static className: string;
|
|
11
|
+
/**
|
|
12
|
+
* The action a document's `action` names, in JSON or in YAML. Java's readers take `delete` and
|
|
13
|
+
* `move` exactly and refuse any other spelling, and an action that states none. These readers kept
|
|
14
|
+
* whatever a document stated, and the writers wrote it back.
|
|
15
|
+
*/
|
|
16
|
+
static forAction(value: unknown): string;
|
|
6
17
|
className: string;
|
|
7
18
|
private readonly _to;
|
|
8
19
|
private readonly _action;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControlledTermAction.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/action/ControlledTermAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAE3F,qBAAa,oBAAqB,SAAQ,qCAAqC;IAC7E,MAAM,CAAC,SAAS,SAA0B;
|
|
1
|
+
{"version":3,"file":"ControlledTermAction.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/action/ControlledTermAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AACjG,OAAO,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAE3F,wFAAwF;AACxF,eAAO,MAAM,0BAA0B;;;CAG7B,CAAC;AAEX,qBAAa,oBAAqB,SAAQ,qCAAqC;IAC7E,MAAM,CAAC,SAAS,SAA0B;IAE1C;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM;IAYjC,SAAS,SAA0B;IAC1C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAuB;IAC3C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAM;IAC/B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAM;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAoB;gBAE9B,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB;IAUpH,IAAI,EAAE,IAAI,MAAM,GAAG,IAAI,CAEtB;IAED,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,OAAO,IAAI,GAAG,CAEjB;IAED,IAAI,SAAS,IAAI,GAAG,CAEnB;IAED,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,IAAI,IAAI,iBAAiB,CAE5B;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlValueConstraintsOntologyWriter.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/YamlValueConstraintsOntologyWriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,+CAA+C,EAAE,MAAM,oDAAoD,CAAC;AAGrH,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAExF,qBAAa,kCAAmC,SAAQ,+CAA+C;gBAClF,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,gBAAgB;IAIjE,aAAa,CAAC,QAAQ,EAAE,sBAAsB,GAAG,QAAQ;
|
|
1
|
+
{"version":3,"file":"YamlValueConstraintsOntologyWriter.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/YamlValueConstraintsOntologyWriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,+CAA+C,EAAE,MAAM,oDAAoD,CAAC;AAGrH,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAExF,qBAAa,kCAAmC,SAAQ,+CAA+C;gBAClF,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,gBAAgB;IAIjE,aAAa,CAAC,QAAQ,EAAE,sBAAsB,GAAG,QAAQ;CAmBnE"}
|
|
@@ -5,6 +5,6 @@ import { YamlTemplateFieldTypeSpecificReader } from '../../../../../io/reader/ya
|
|
|
5
5
|
import { MultipleChoiceListField } from './MultipleChoiceListField';
|
|
6
6
|
import { YamlArtifactParsingResult } from '../../../util/compare/YamlArtifactParsingResult';
|
|
7
7
|
export declare class YamlFieldReaderMultiSelectList extends YamlTemplateFieldTypeSpecificReader {
|
|
8
|
-
read(fieldSourceObject: JsonNode, _childInfo: ChildDeploymentInfo, _parsingResult: YamlArtifactParsingResult,
|
|
8
|
+
read(fieldSourceObject: JsonNode, _childInfo: ChildDeploymentInfo, _parsingResult: YamlArtifactParsingResult, path: JsonPath): MultipleChoiceListField;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=YamlFieldReaderMultiSelectList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlFieldReaderMultiSelectList.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/list-multiple-choice/YamlFieldReaderMultiSelectList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AACxH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"YamlFieldReaderMultiSelectList.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/list-multiple-choice/YamlFieldReaderMultiSelectList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AACxH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAG5F,qBAAa,8BAA+B,SAAQ,mCAAmC;IAC5E,IAAI,CACX,iBAAiB,EAAE,QAAQ,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,cAAc,EAAE,yBAAyB,EACzC,IAAI,EAAE,QAAQ,GACb,uBAAuB;CAO3B"}
|
|
@@ -5,6 +5,6 @@ import { YamlTemplateFieldTypeSpecificReader } from '../../../../../io/reader/ya
|
|
|
5
5
|
import { SingleChoiceListField } from './SingleChoiceListField';
|
|
6
6
|
import { YamlArtifactParsingResult } from '../../../util/compare/YamlArtifactParsingResult';
|
|
7
7
|
export declare class YamlFieldReaderSingleSelectList extends YamlTemplateFieldTypeSpecificReader {
|
|
8
|
-
read(fieldSourceObject: JsonNode, _childInfo: ChildDeploymentInfo, _parsingResult: YamlArtifactParsingResult,
|
|
8
|
+
read(fieldSourceObject: JsonNode, _childInfo: ChildDeploymentInfo, _parsingResult: YamlArtifactParsingResult, path: JsonPath): SingleChoiceListField;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=YamlFieldReaderSingleSelectList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlFieldReaderSingleSelectList.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/list-single-choice/YamlFieldReaderSingleSelectList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAExH,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"YamlFieldReaderSingleSelectList.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/list-single-choice/YamlFieldReaderSingleSelectList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAExH,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAG5F,qBAAa,+BAAgC,SAAQ,mCAAmC;IAC7E,IAAI,CACX,iBAAiB,EAAE,QAAQ,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,cAAc,EAAE,yBAAyB,EACzC,IAAI,EAAE,QAAQ,GACb,qBAAqB;CAOzB"}
|
|
@@ -5,6 +5,6 @@ import { ChildDeploymentInfo } from '../../../deployment/ChildDeploymentInfo';
|
|
|
5
5
|
import { YamlTemplateFieldTypeSpecificReader } from '../../../../../io/reader/yaml/YamlTemplateFieldTypeSpecificReader';
|
|
6
6
|
import { YamlArtifactParsingResult } from '../../../util/compare/YamlArtifactParsingResult';
|
|
7
7
|
export declare class YamlFieldReaderRadio extends YamlTemplateFieldTypeSpecificReader {
|
|
8
|
-
read(fieldSourceObject: JsonNode, _childInfo: ChildDeploymentInfo, _parsingResult: YamlArtifactParsingResult,
|
|
8
|
+
read(fieldSourceObject: JsonNode, _childInfo: ChildDeploymentInfo, _parsingResult: YamlArtifactParsingResult, path: JsonPath): RadioField;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=YamlFieldReaderRadio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlFieldReaderRadio.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/radio/YamlFieldReaderRadio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAGxH,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"YamlFieldReaderRadio.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/radio/YamlFieldReaderRadio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAGxH,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAI5F,qBAAa,oBAAqB,SAAQ,mCAAmC;IAClE,IAAI,CACX,iBAAiB,EAAE,QAAQ,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,cAAc,EAAE,yBAAyB,EACzC,IAAI,EAAE,QAAQ,GACb,UAAU;CAqBd"}
|
package/org/metadatacenter/model/cedar/field/dynamic/temporal/JsonFieldReaderTemporal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonFieldReaderTemporal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/temporal/JsonFieldReaderTemporal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AACxH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAI9E,qBAAa,uBAAwB,SAAQ,mCAAmC;IACrE,IAAI,CACX,iBAAiB,EAAE,QAAQ,EAC3B,SAAS,EAAE,mBAAmB,EAC9B,cAAc,EAAE,yBAAyB,EACzC,KAAK,EAAE,QAAQ,GACd,aAAa;
|
|
1
|
+
{"version":3,"file":"JsonFieldReaderTemporal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/temporal/JsonFieldReaderTemporal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AACxH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAI9E,qBAAa,uBAAwB,SAAQ,mCAAmC;IACrE,IAAI,CACX,iBAAiB,EAAE,QAAQ,EAC3B,SAAS,EAAE,mBAAmB,EAC9B,cAAc,EAAE,yBAAyB,EACzC,KAAK,EAAE,QAAQ,GACd,aAAa;CA+BjB"}
|
package/org/metadatacenter/model/cedar/field/dynamic/temporal/JsonFieldWriterTemporal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonFieldWriterTemporal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/temporal/JsonFieldWriterTemporal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAI/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAC;AAChH,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAIlF,qBAAa,uBAAwB,SAAQ,+BAA+B;gBAC9D,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,gBAAgB;IAI1D,YAAY,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,mBAAmB,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"JsonFieldWriterTemporal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/temporal/JsonFieldWriterTemporal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAI/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAC;AAChH,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAIlF,qBAAa,uBAAwB,SAAQ,+BAA+B;gBAC9D,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,gBAAgB;IAI1D,YAAY,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,mBAAmB,GAAG,IAAI;IAkB1F,0BAA0B,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,mBAAmB,GAAG,IAAI;IAaxG,kBAAkB,CAAC,cAAc,EAAE,QAAQ,GAAG,IAAI;CAG5D"}
|
|
@@ -5,8 +5,9 @@ import { TemporalGranularity } from '../../../types/wrapped-types/TemporalGranul
|
|
|
5
5
|
import { ChildDeploymentInfoBuilder } from '../../../deployment/ChildDeploymentInfoBuilder';
|
|
6
6
|
export interface TemporalField extends TemplateField {
|
|
7
7
|
get valueConstraints(): ValueConstraintsTemporalField;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/** Whether the field's values carry a time zone, or null where the field does not state it. */
|
|
9
|
+
get timezoneEnabled(): boolean | null;
|
|
10
|
+
set timezoneEnabled(timezoneEnabled: boolean | null);
|
|
10
11
|
get inputTimeFormat(): TimeFormat;
|
|
11
12
|
set inputTimeFormat(imeFormat: TimeFormat);
|
|
12
13
|
get temporalGranularity(): TemporalGranularity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemporalField.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAE5F,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,IAAI,gBAAgB,IAAI,6BAA6B,CAAC;IAEtD,IAAI,eAAe,IAAI,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TemporalField.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalField.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAE5F,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,IAAI,gBAAgB,IAAI,6BAA6B,CAAC;IAEtD,+FAA+F;IAC/F,IAAI,eAAe,IAAI,OAAO,GAAG,IAAI,CAAC;IAEtC,IAAI,eAAe,CAAC,eAAe,EAAE,OAAO,GAAG,IAAI,EAAE;IAErD,IAAI,eAAe,IAAI,UAAU,CAAC;IAElC,IAAI,eAAe,CAAC,SAAS,EAAE,UAAU,EAAE;IAE3C,IAAI,mBAAmB,IAAI,mBAAmB,CAAC;IAE/C,IAAI,mBAAmB,CAAC,mBAAmB,EAAE,mBAAmB,EAAE;IAElE,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,0BAA0B,CAAC;CACxE"}
|
|
@@ -6,7 +6,7 @@ import { TemporalField } from './TemporalField';
|
|
|
6
6
|
import { ChildDeploymentInfoBuilder } from '../../../deployment/ChildDeploymentInfoBuilder';
|
|
7
7
|
export declare class TemporalFieldImpl extends TemplateField implements TemporalField {
|
|
8
8
|
valueConstraints: ValueConstraintsTemporalField;
|
|
9
|
-
timezoneEnabled: boolean;
|
|
9
|
+
timezoneEnabled: boolean | null;
|
|
10
10
|
inputTimeFormat: TimeFormat;
|
|
11
11
|
temporalGranularity: TemporalGranularity;
|
|
12
12
|
private constructor();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemporalFieldImpl.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalFieldImpl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAE5F,qBAAa,iBAAkB,SAAQ,aAAc,YAAW,aAAa;IAEpE,gBAAgB,EAAE,6BAA6B,CAAC;IAEhD,eAAe,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"TemporalFieldImpl.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalFieldImpl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAE5F,qBAAa,iBAAkB,SAAQ,aAAc,YAAW,aAAa;IAEpE,gBAAgB,EAAE,6BAA6B,CAAC;IAEhD,eAAe,EAAE,OAAO,GAAG,IAAI,CAAQ;IACvC,eAAe,EAAE,UAAU,CAAmB;IAC9C,mBAAmB,EAAE,mBAAmB,CAA4B;IAE3E,OAAO;WAOO,UAAU,IAAI,aAAa;IAIhC,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,0BAA0B;CAGhF"}
|
package/org/metadatacenter/model/cedar/field/dynamic/temporal/YamlFieldReaderTemporal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlFieldReaderTemporal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/temporal/YamlFieldReaderTemporal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAGxH,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAG5F,qBAAa,uBAAwB,SAAQ,mCAAmC;IACrE,IAAI,CACX,iBAAiB,EAAE,QAAQ,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,cAAc,EAAE,yBAAyB,EACzC,KAAK,EAAE,QAAQ,GACd,aAAa;
|
|
1
|
+
{"version":3,"file":"YamlFieldReaderTemporal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/temporal/YamlFieldReaderTemporal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,mEAAmE,CAAC;AAGxH,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAG5F,qBAAa,uBAAwB,SAAQ,mCAAmC;IACrE,IAAI,CACX,iBAAiB,EAAE,QAAQ,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,cAAc,EAAE,yBAAyB,EACzC,KAAK,EAAE,QAAQ,GACd,aAAa;CAwBjB"}
|
package/org/metadatacenter/model/cedar/field/dynamic/temporal/YamlFieldWriterTemporal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YamlFieldWriterTemporal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/temporal/YamlFieldWriterTemporal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAG/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAC;AAEhH,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAGlF,qBAAa,uBAAwB,SAAQ,+BAA+B;gBAC9D,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,gBAAgB;IAI1D,iCAAiC,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,mBAAmB,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"YamlFieldWriterTemporal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/org/metadatacenter/model/cedar/field/dynamic/temporal/YamlFieldWriterTemporal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAG/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAC;AAEhH,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAGlF,qBAAa,uBAAwB,SAAQ,+BAA+B;gBAC9D,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,gBAAgB;IAI1D,iCAAiC,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,mBAAmB,GAAG,IAAI;CA+B1H"}
|
|
@@ -14,6 +14,7 @@ import { InstanceDataAtomType } from './InstanceDataAtomType';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare class InstanceDataContainer {
|
|
16
16
|
private _id;
|
|
17
|
+
private _types;
|
|
17
18
|
private _values;
|
|
18
19
|
private _iris;
|
|
19
20
|
constructor();
|
|
@@ -46,5 +47,8 @@ export declare class InstanceDataContainer {
|
|
|
46
47
|
};
|
|
47
48
|
set id(value: string | null);
|
|
48
49
|
get id(): string | null;
|
|
50
|
+
/** The classes the occurrence, or the instance at the root, states as its `@type`, in order. */
|
|
51
|
+
set types(value: string[]);
|
|
52
|
+
get types(): string[];
|
|
49
53
|
}
|
|
50
54
|
//# sourceMappingURL=InstanceDataContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstanceDataContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataContainer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;;;;;;;;;;;GAYG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,GAAG,CAAuB;IAClC,OAAO,CAAC,OAAO,CAA0C;IACzD,OAAO,CAAC,KAAK,CAA4B;;IAOzC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,gBAAgB,EAAE,oBAAoB;IAK5D,yDAAyD;IACzD,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAI9B;;;;;;;;OAQG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK9B,IAAI,MAAM,IAAI;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAElD;IAED,IAAI,MAAM,CAAC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,EAGzD;IAED,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAI/B,oEAAoE;IACpE,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAI5B,2EAA2E;IAC3E,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI5B,IAAI,IAAI,IAAI;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAElC;IAED,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAE1B;IAED,IAAI,EAAE,IAAI,MAAM,GAAG,IAAI,CAEtB;CACF"}
|
|
1
|
+
{"version":3,"file":"InstanceDataContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataContainer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;;;;;;;;;;;GAYG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,GAAG,CAAuB;IAClC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,OAAO,CAA0C;IACzD,OAAO,CAAC,KAAK,CAA4B;;IAOzC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,gBAAgB,EAAE,oBAAoB;IAK5D,yDAAyD;IACzD,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAI9B;;;;;;;;OAQG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK9B,IAAI,MAAM,IAAI;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAElD;IAED,IAAI,MAAM,CAAC,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,EAGzD;IAED,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAI/B,oEAAoE;IACpE,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAI5B,2EAA2E;IAC3E,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI5B,IAAI,IAAI,IAAI;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAElC;IAED,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAE1B;IAED,IAAI,EAAE,IAAI,MAAM,GAAG,IAAI,CAEtB;IAED,gGAAgG;IAChG,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,EAExB;IAED,IAAI,KAAK,IAAI,MAAM,EAAE,CAEpB;CACF"}
|
|
@@ -2,6 +2,32 @@ import { TemplateInstance } from './TemplateInstance';
|
|
|
2
2
|
import { Template } from '../template/Template';
|
|
3
3
|
import { JsonArtifactParsingResult } from '../util/compare/JsonArtifactParsingResult';
|
|
4
4
|
import { ValidationSummary } from '../../../policy/ValidationPolicy';
|
|
5
|
+
import { JsonNode } from '../types/basic-types/JsonNode';
|
|
6
|
+
/** How the caller will write the instance it asks about. */
|
|
7
|
+
export interface InstanceValidationOptions {
|
|
8
|
+
/**
|
|
9
|
+
* The caller writes the instance through `InstanceInflater` and this
|
|
10
|
+
* library's JSON writer, and asks whether the server would store what that
|
|
11
|
+
* write produces. The write maps each child to the template's property IRI,
|
|
12
|
+
* gives the root the standard `@context` terms, and leaves out an optional
|
|
13
|
+
* property held as null, so those are judged as written rather than as the
|
|
14
|
+
* instance holds them. A term the template does not declare is still judged,
|
|
15
|
+
* since the write keeps it. Without this the instance is judged as it was
|
|
16
|
+
* stored.
|
|
17
|
+
*/
|
|
18
|
+
asWritten?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The caller asks whether the server would store the document exactly as it
|
|
21
|
+
* stands, as a verbatim write stores it. An editor's save leaves the
|
|
22
|
+
* document's identity, its provenance and each element occurrence's `@id` to
|
|
23
|
+
* the host and the server, which write them before judging it, so without
|
|
24
|
+
* this they are not asked of the instance. A verbatim write is judged with
|
|
25
|
+
* them, so each container's own keys are then held to what its stored schema
|
|
26
|
+
* requires and admits. It has no effect with `asWritten`, whose write gets
|
|
27
|
+
* those keys from the host and the server too.
|
|
28
|
+
*/
|
|
29
|
+
verbatim?: boolean;
|
|
30
|
+
}
|
|
5
31
|
/**
|
|
6
32
|
* Compare a parsed instance with its template without repairing it. Missing slots,
|
|
7
33
|
* wrong atom/container shapes and malformed typed values are structural errors.
|
|
@@ -17,15 +43,108 @@ export declare class InstanceValidator {
|
|
|
17
43
|
* A `JsonArtifactParsingResult` rather than a new result type, so a consumer
|
|
18
44
|
* already reading `wasSuccessful()` or `adheresToBlueprint()` off a reader
|
|
19
45
|
* result can read this the same way.
|
|
46
|
+
*
|
|
47
|
+
* `stored` is the template document as it is stored, when the caller has it.
|
|
48
|
+
* The server judges an instance against that document, and three of its facts
|
|
49
|
+
* can differ from what the model would write: which children a container
|
|
50
|
+
* requires, which further keys a container admits, and which properties a
|
|
51
|
+
* field's value must carry. Older templates state them differently, and
|
|
52
|
+
* neither library's model keeps them, so where `stored` is given they come
|
|
53
|
+
* from it. Its `@context` schemas are also where the server checks each
|
|
54
|
+
* container's property IRIs, which are judged only where it is given. Without
|
|
55
|
+
* it the instance is judged against the template as the model writes it.
|
|
20
56
|
*/
|
|
21
|
-
static validate(instance: TemplateInstance, template: Template): JsonArtifactParsingResult;
|
|
57
|
+
static validate(instance: TemplateInstance, template: Template, stored?: JsonNode | null, options?: InstanceValidationOptions): JsonArtifactParsingResult;
|
|
22
58
|
/** Saveability and quality are different answers; semantic checks remain explicitly not checked. */
|
|
23
|
-
static validateReport(instance: TemplateInstance, template: Template): ValidationSummary;
|
|
59
|
+
static validateReport(instance: TemplateInstance, template: Template, stored?: JsonNode | null, options?: InstanceValidationOptions): ValidationSummary;
|
|
24
60
|
private static validateContainer;
|
|
61
|
+
/**
|
|
62
|
+
* A container's `@context` judged against its stored `@context` schema.
|
|
63
|
+
*
|
|
64
|
+
* The model holds the IRI an instance maps each child to, and `terms` holds
|
|
65
|
+
* the standard prefixes and term definitions: the stored ones, or the ones
|
|
66
|
+
* the writer gives the document. A declared key must take a value the
|
|
67
|
+
* template admits, an undeclared one must be admitted by
|
|
68
|
+
* `additionalProperties`, and every required key must be there. `supplied`
|
|
69
|
+
* holds the child mappings the caller's writer takes from the template
|
|
70
|
+
* instead, and `terms` is null where the stored terms are not known.
|
|
71
|
+
*/
|
|
72
|
+
private static validateContext;
|
|
73
|
+
/** Judged elsewhere: the `@context` by `validateContext`, the others by `validateOwnTerm` in every mode. */
|
|
74
|
+
private static readonly OWN_TERMS;
|
|
75
|
+
/**
|
|
76
|
+
* A container's `@type`, as stored or, with `asWritten` or for a model the reader did not build, as
|
|
77
|
+
* the writer writes it. Undefined where there is none.
|
|
78
|
+
*/
|
|
79
|
+
private static statedTypes;
|
|
80
|
+
/**
|
|
81
|
+
* What the model cannot read in a `@type` or `_annotations`, wherever the schema would admit it: each
|
|
82
|
+
* class and each annotation's IRI is an absolute IRI, and a literal annotation is a string.
|
|
83
|
+
*/
|
|
84
|
+
private static unreadableOwnTerms;
|
|
85
|
+
/**
|
|
86
|
+
* A key the instance holds of its own, its `@type` or its `_annotations`, against the stored
|
|
87
|
+
* template. Neither is the host's or the server's to write, so every save writes it as the instance
|
|
88
|
+
* holds it. A key the template declares must take a value its schema admits, and one it does not
|
|
89
|
+
* declare must be admitted by `additionalProperties`.
|
|
90
|
+
*/
|
|
91
|
+
private static validateOwnTerm;
|
|
92
|
+
/**
|
|
93
|
+
* A container's own keys as a verbatim write stores them, against its stored
|
|
94
|
+
* schema: its `@context` and `@id` and, at the root, the template, name and
|
|
95
|
+
* provenance. Each key the schema requires must be there, and each one there
|
|
96
|
+
* must take a value the schema admits. The `@context` entries themselves are
|
|
97
|
+
* judged by `validateContext`, and annotations by the reader.
|
|
98
|
+
*/
|
|
99
|
+
private static validateMembers;
|
|
100
|
+
private static readonly ROOT_IDENTIFIERS;
|
|
101
|
+
private static readonly OCCURRENCE_IDENTIFIERS;
|
|
102
|
+
/**
|
|
103
|
+
* Whether a value meets the schema it is held to: its `oneOf`, `enum`, `type`,
|
|
104
|
+
* `minLength` and `format`, for a list its `items`, `minItems` and
|
|
105
|
+
* `uniqueItems`, and for an object its `properties`, `patternProperties`,
|
|
106
|
+
* `required` and `additionalProperties`. Enough of JSON Schema for a
|
|
107
|
+
* `@context` entry and for the keys of the instance's own.
|
|
108
|
+
*/
|
|
109
|
+
private static conformsTo;
|
|
110
|
+
private static isOfType;
|
|
111
|
+
/** A stored schema node, or null for anything that is not one. */
|
|
112
|
+
private static object;
|
|
113
|
+
/**
|
|
114
|
+
* The children a container requires its instances to hold. A stored template
|
|
115
|
+
* says so in its `required`, which older templates kept shorter than the
|
|
116
|
+
* model writes it. The instance's own metadata is required there too, and is
|
|
117
|
+
* the server's to write, so it is not asked of an instance here.
|
|
118
|
+
*/
|
|
119
|
+
private static requiredChildren;
|
|
120
|
+
/**
|
|
121
|
+
* Whether a container's stored schema admits a key it does not declare. JSON
|
|
122
|
+
* Schema admits one unless `additionalProperties` is false, and holds it to
|
|
123
|
+
* that schema where it is one. Older templates admit further literal values
|
|
124
|
+
* this way without having an attribute-value child.
|
|
125
|
+
*/
|
|
126
|
+
private static admitsUndeclared;
|
|
127
|
+
/** The field's schema, with the properties its value must and may carry taken from the stored one. */
|
|
128
|
+
private static withStoredShape;
|
|
129
|
+
/**
|
|
130
|
+
* An attribute-value field's value lists the names of the attributes a user
|
|
131
|
+
* added, and the schema admits nothing else in the list: an entry holding a
|
|
132
|
+
* value, such as `{"@value": null}`, is refused, as is a value that is no
|
|
133
|
+
* list at all. A list of names alone reads as an attribute-value field.
|
|
134
|
+
*/
|
|
135
|
+
private static validateAttributeNames;
|
|
25
136
|
private static attributeValueGroups;
|
|
26
137
|
private static validateChild;
|
|
27
138
|
private static validateCardinality;
|
|
28
139
|
private static validateItem;
|
|
140
|
+
/**
|
|
141
|
+
* A value as the document stored it, which the writer's form of it can
|
|
142
|
+
* differ from in two ways. An unfilled value can still hold something, such
|
|
143
|
+
* as a null label or a class as `@type`, which the writer makes `{}` of. And
|
|
144
|
+
* the writer leaves out an optional property held as null, which a field may
|
|
145
|
+
* require.
|
|
146
|
+
*/
|
|
147
|
+
private static asStored;
|
|
29
148
|
/** An unfilled slot, in any of the shapes the reader produces for one. */
|
|
30
149
|
private static isEmpty;
|
|
31
150
|
}
|