cedar-model-typescript-library 1.0.22 → 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 +83 -2
- 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 +15 -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 +30 -2
- 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/InstanceInflater.d.ts +11 -8
- package/org/metadatacenter/model/cedar/template-instance/InstanceInflater.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
|
@@ -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
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstanceValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAWtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAYtF,OAAO,EAAoB,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"InstanceValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAWtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAYtF,OAAO,EAAoB,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAEvF,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAczD,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,qBAAa,iBAAiB;IAC5B,OAAO;IAEP;;;;;;;;;;;;;;;;OAgBG;WACW,QAAQ,CACpB,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,QAAQ,EAClB,MAAM,GAAE,QAAQ,GAAG,IAAW,EAC9B,OAAO,GAAE,yBAA8B,GACtC,yBAAyB;IAiB5B,oGAAoG;WACtF,cAAc,CAC1B,QAAQ,EAAE,gBAAgB,EAC1B,QAAQ,EAAE,QAAQ,EAClB,MAAM,GAAE,QAAQ,GAAG,IAAW,EAC9B,OAAO,GAAE,yBAA8B,GACtC,iBAAiB;IAIpB,OAAO,CAAC,MAAM,CAAC,iBAAiB;IA2GhC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IA0C9B,4GAA4G;IAC5G,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAmG;IAEpI;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAM1B;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAuBjC;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IA8B9B;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAuC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAA+F;IACvI,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,sBAAsB,CAAmE;IAEjH;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,UAAU;IA0CzB,OAAO,CAAC,MAAM,CAAC,QAAQ;IAqBvB,kEAAkE;IAClE,OAAO,CAAC,MAAM,CAAC,MAAM;IAIrB;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAM/B;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAe/B,sGAAsG;IACtG,OAAO,CAAC,MAAM,CAAC,eAAe;IAW9B;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAiBrC,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAkBnC,OAAO,CAAC,MAAM,CAAC,aAAa;IAwC5B,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAkBlC,OAAO,CAAC,MAAM,CAAC,YAAY;IA6E3B;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ;IAQvB,0EAA0E;IAC1E,OAAO,CAAC,MAAM,CAAC,OAAO;CASvB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a document stated that the instance model does not keep.
|
|
3
|
+
*
|
|
4
|
+
* The model keeps an optional property held as null as no value, and gives
|
|
5
|
+
* every instance the writer's standard `@context` terms, so neither a stored
|
|
6
|
+
* null nor a stored term survives into it. The server judges the document as it
|
|
7
|
+
* was stored, and so does a validator asked about that document. The reader
|
|
8
|
+
* records both here, keyed by the objects it builds, which leaves the model, its
|
|
9
|
+
* equality and its serializations as they were. A copy of a model carries no
|
|
10
|
+
* record, and is judged as the writer would write it.
|
|
11
|
+
*/
|
|
12
|
+
export declare class StoredForm {
|
|
13
|
+
private static readonly nulls;
|
|
14
|
+
private static readonly contextTerms;
|
|
15
|
+
private static readonly members;
|
|
16
|
+
private constructor();
|
|
17
|
+
/** The optional properties a value held as null. */
|
|
18
|
+
static recordNulls(value: object, keys: readonly string[]): void;
|
|
19
|
+
static nullsOf(value: object): readonly string[];
|
|
20
|
+
/** The standard prefixes and term definitions a container's `@context` held. */
|
|
21
|
+
static recordContextTerms(container: object, terms: {
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
}): void;
|
|
24
|
+
/** Null for a container the reader did not build from a document. */
|
|
25
|
+
static contextTermsOf(container: object): {
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
} | null;
|
|
28
|
+
/**
|
|
29
|
+
* The keys a container's own object held besides its children, as stored:
|
|
30
|
+
* its `@context` and `@id` and, at the root, the template, name and
|
|
31
|
+
* provenance. The model keeps a missing identifier and a null one alike.
|
|
32
|
+
*/
|
|
33
|
+
static recordMembers(container: object, members: {
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
}): void;
|
|
36
|
+
/** Null for a container the reader did not build from a document. */
|
|
37
|
+
static membersOf(container: object): {
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
} | null;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=StoredForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoredForm.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/StoredForm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAA4C;IACzE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAqD;IACzF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAqD;IAEpF,OAAO;IAEP,oDAAoD;IACpD,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAIhE,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE;IAIhD,gFAAgF;IAChF,MAAM,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI;IAIrF,qEAAqE;IACrE,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI;IAI3E;;;;OAIG;IACH,MAAM,CAAC,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI;IAIlF,qEAAqE;IACrE,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI;CAGvE"}
|
|
@@ -19,6 +19,13 @@ export declare class BioportalTermType {
|
|
|
19
19
|
static NULL: BioportalTermType;
|
|
20
20
|
static values(): BioportalTermType[];
|
|
21
21
|
static forJsonValue(value: string | null): BioportalTermType;
|
|
22
|
+
/**
|
|
23
|
+
* The term type a JSON constraint's `type` names. Java's reader matches the spelling to a constant
|
|
24
|
+
* ignoring case, so `ontologyclass` is an ontology class, and refuses any other, and a constraint
|
|
25
|
+
* that states none. A spelling that `forJsonValue` did not know was read as no type, and the writers
|
|
26
|
+
* then wrote `"type": null`.
|
|
27
|
+
*/
|
|
28
|
+
static forJsonType(value: unknown, constraint: string): BioportalTermType;
|
|
22
29
|
static forYamlValue(value: string | null): BioportalTermType;
|
|
23
30
|
}
|
|
24
31
|
//# sourceMappingURL=BioportalTermType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BioportalTermType.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/bioportal-types/BioportalTermType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BioportalTermType.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/bioportal-types/BioportalTermType.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B;;;CAG9B,CAAC;AAEX,eAAO,MAAM,2BAA2B;;;CAG9B,CAAC;AAEX,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,OAAO,2BAA2B,CAAC,GAAG,IAAI,CAAC;AAC/H,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,OAAO,2BAA2B,CAAC,GAAG,IAAI,CAAC;AAE/H,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoC;IAC9D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoC;IAE9D,OAAO;IAKA,YAAY,IAAI,0BAA0B;IAIjD,YAAY,IAAI,0BAA0B;IAI1C,OAAc,cAAc,oBAG1B;IACF,OAAc,KAAK,oBAA+F;IAClH,OAAc,IAAI,oBAAqC;WAEzC,MAAM,IAAI,iBAAiB,EAAE;WAI7B,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,iBAAiB;IASnE;;;;;OAKG;WACW,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,iBAAiB;WAclE,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,iBAAiB;CAQpE"}
|
|
@@ -19,6 +19,13 @@ export declare class BiboStatus {
|
|
|
19
19
|
static NULL: BiboStatus;
|
|
20
20
|
static values(): BiboStatus[];
|
|
21
21
|
static forJsonValue(value: string | null): BiboStatus;
|
|
22
|
+
/**
|
|
23
|
+
* The status a JSON document's `bibo:status` names. Java's reader matches the spelling to a constant
|
|
24
|
+
* ignoring case, so `bibo:Draft` is a draft, and refuses any other. A spelling that `forJsonValue`
|
|
25
|
+
* did not know was read as no status, and the writers then left the key out. A document that states
|
|
26
|
+
* no status has none, as in Java.
|
|
27
|
+
*/
|
|
28
|
+
static forJsonStatus(value: unknown): BiboStatus;
|
|
22
29
|
static forYamlValue(value: string | null): BiboStatus;
|
|
23
30
|
}
|
|
24
31
|
//# sourceMappingURL=BiboStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BiboStatus.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/BiboStatus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BiboStatus.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/BiboStatus.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,GAAG,IAAI,CAAC;AAC1G,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,GAAG,IAAI,CAAC;AAE1G,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;IACvD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;IAEvD,OAAO;IAKA,YAAY,IAAI,mBAAmB;IAI1C,YAAY,IAAI,mBAAmB;IAInC,OAAc,KAAK,aAA0E;IAC7F,OAAc,SAAS,aAAkF;IACzG,OAAc,IAAI,aAA8B;WAElC,MAAM,IAAI,UAAU,EAAE;WAItB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU;IAS5D;;;;;OAKG;WACW,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU;WAczC,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU;CAQ7D"}
|
|
@@ -22,5 +22,11 @@ export declare class NumberType {
|
|
|
22
22
|
static NULL: NumberType;
|
|
23
23
|
static values(): NumberType[];
|
|
24
24
|
static forValue(value: string | null): NumberType;
|
|
25
|
+
/**
|
|
26
|
+
* The constant a document's datatype names. Java's readers match the spelling to a constant ignoring
|
|
27
|
+
* case and refuse any other, a full XSD IRI among them, and so does this. A spelling that `forValue`
|
|
28
|
+
* did not know was read as no datatype, and the writers wrote it back as null.
|
|
29
|
+
*/
|
|
30
|
+
static forDatatype(value: unknown): NumberType;
|
|
25
31
|
}
|
|
26
32
|
//# sourceMappingURL=NumberType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberType.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/NumberType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberType.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/NumberType.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;CAQnB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,GAAG,IAAI,CAAC;AAE9F,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAyB;IAE/C,OAAO;IAIA,QAAQ,IAAI,eAAe;IAIlC,OAAc,OAAO,aAA4C;IACjE,OAAc,GAAG,aAAwC;IACzD,OAAc,IAAI,aAAyC;IAC3D,OAAc,IAAI,aAAyC;IAC3D,OAAc,KAAK,aAA0C;IAC7D,OAAc,KAAK,aAA0C;IAC7D,OAAc,MAAM,aAA2C;IAC/D,OAAc,IAAI,aAAwB;WAE5B,MAAM,IAAI,UAAU,EAAE;WAItB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU;IASxD;;;;OAIG;WACW,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU;CAUtD"}
|
|
@@ -23,6 +23,13 @@ export declare class TemporalGranularity {
|
|
|
23
23
|
static values(): TemporalGranularity[];
|
|
24
24
|
static valuesWithTimes(): TemporalGranularity[];
|
|
25
25
|
static forValue(value: string | null): TemporalGranularity;
|
|
26
|
+
/**
|
|
27
|
+
* The constant a document's granularity names. Java's readers take only a constant's exact spelling
|
|
28
|
+
* and refuse any other, a case variant among them, and so does this. A spelling that `forValue` did
|
|
29
|
+
* not know was read as no granularity, and the writers then left the key out. A temporal field has a
|
|
30
|
+
* granularity, so a document that states none, or states null, is refused too, as Java refuses it.
|
|
31
|
+
*/
|
|
32
|
+
static forGranularity(value: unknown): TemporalGranularity;
|
|
26
33
|
static hasTime(temporalGranularity: TemporalGranularity): boolean;
|
|
27
34
|
}
|
|
28
35
|
//# sourceMappingURL=TemporalGranularity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemporalGranularity.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/TemporalGranularity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;CAQ5B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,GAAG,IAAI,CAAC;AAEzH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkC;IAExD,OAAO;IAIA,QAAQ,IAAI,wBAAwB;IAI3C,OAAc,IAAI,sBAA2D;IAC7E,OAAc,KAAK,sBAA4D;IAC/E,OAAc,GAAG,sBAA0D;IAC3E,OAAc,IAAI,sBAA2D;IAC7E,OAAc,MAAM,sBAA6D;IACjF,OAAc,MAAM,sBAA6D;IACjF,OAAc,cAAc,sBAAqE;IACjG,OAAc,IAAI,sBAAiC;WAErC,MAAM,IAAI,mBAAmB,EAAE;WAY/B,eAAe,IAAI,mBAAmB,EAAE;WAIxC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,mBAAmB;IASjE,MAAM,CAAC,OAAO,CAAC,mBAAmB,EAAE,mBAAmB;CAGxD"}
|
|
1
|
+
{"version":3,"file":"TemporalGranularity.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/TemporalGranularity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;CAQ5B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,GAAG,IAAI,CAAC;AAEzH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkC;IAExD,OAAO;IAIA,QAAQ,IAAI,wBAAwB;IAI3C,OAAc,IAAI,sBAA2D;IAC7E,OAAc,KAAK,sBAA4D;IAC/E,OAAc,GAAG,sBAA0D;IAC3E,OAAc,IAAI,sBAA2D;IAC7E,OAAc,MAAM,sBAA6D;IACjF,OAAc,MAAM,sBAA6D;IACjF,OAAc,cAAc,sBAAqE;IACjG,OAAc,IAAI,sBAAiC;WAErC,MAAM,IAAI,mBAAmB,EAAE;WAY/B,eAAe,IAAI,mBAAmB,EAAE;WAIxC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,mBAAmB;IASjE;;;;;OAKG;WACW,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB;IAWjE,MAAM,CAAC,OAAO,CAAC,mBAAmB,EAAE,mBAAmB;CAGxD"}
|
|
@@ -14,5 +14,11 @@ export declare class TemporalType {
|
|
|
14
14
|
static NULL: TemporalType;
|
|
15
15
|
static values(): TemporalType[];
|
|
16
16
|
static forValue(value: string | null): TemporalType;
|
|
17
|
+
/**
|
|
18
|
+
* The constant a document's datatype names. Java's readers match the spelling to a constant ignoring
|
|
19
|
+
* case and refuse any other, a full XSD IRI among them, and so does this. A spelling that `forValue`
|
|
20
|
+
* did not know was read as no datatype, and the writers wrote it back as null.
|
|
21
|
+
*/
|
|
22
|
+
static forDatatype(value: unknown): TemporalType;
|
|
17
23
|
}
|
|
18
24
|
//# sourceMappingURL=TemporalType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemporalType.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/TemporalType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TemporalType.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/TemporalType.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,GAAG,IAAI,CAAC;AAEpG,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA2B;IAEjD,OAAO;IAIA,QAAQ,IAAI,iBAAiB;IAIpC,OAAc,IAAI,eAA6C;IAC/D,OAAc,IAAI,eAA6C;IAC/D,OAAc,QAAQ,eAAiD;IACvE,OAAc,IAAI,eAA0B;WAE9B,MAAM,IAAI,YAAY,EAAE;WAIxB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,YAAY;IAS1D;;;;OAIG;WACW,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY;CAUxD"}
|
|
@@ -12,5 +12,11 @@ export declare class TimeFormat {
|
|
|
12
12
|
static NULL: TimeFormat;
|
|
13
13
|
static values(): TimeFormat[];
|
|
14
14
|
static forValue(value: string | null): TimeFormat;
|
|
15
|
+
/**
|
|
16
|
+
* The constant a document's input time format names. Java's readers take only a constant's exact
|
|
17
|
+
* spelling and refuse any other, a case variant among them, and so does this. A spelling that
|
|
18
|
+
* `forValue` did not know was read as no input time format, and the writers then left the key out.
|
|
19
|
+
*/
|
|
20
|
+
static forInputTimeFormat(value: unknown): TimeFormat;
|
|
15
21
|
}
|
|
16
22
|
//# sourceMappingURL=TimeFormat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeFormat.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/TimeFormat.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,GAAG,IAAI,CAAC;AAE9F,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAyB;IAE/C,OAAO;IAIA,QAAQ,IAAI,eAAe;IAIlC,OAAc,GAAG,aAAwC;IACzD,OAAc,GAAG,aAAwC;IACzD,OAAc,IAAI,aAAwB;WAE5B,MAAM,IAAI,UAAU,EAAE;WAItB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU;
|
|
1
|
+
{"version":3,"file":"TimeFormat.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/types/wrapped-types/TimeFormat.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,GAAG,IAAI,CAAC;AAE9F,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAyB;IAE/C,OAAO;IAIA,QAAQ,IAAI,eAAe;IAIlC,OAAc,GAAG,aAAwC;IACzD,OAAc,GAAG,aAAwC;IACzD,OAAc,IAAI,aAAwB;WAE5B,MAAM,IAAI,UAAU,EAAE;WAItB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU;IASxD;;;;OAIG;WACW,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU;CAO7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonArtifactParsingResult.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/util/compare/JsonArtifactParsingResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAoB,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAEhI,qBAAa,yBAAyB;IACpC,OAAO,CAAC,yBAAyB,CAA8B;IAC/D,OAAO,CAAC,2BAA2B,CAA8B;IACjE,OAAO,CAAC,kBAAkB,CAA2B;IAErD,2FAA2F;IACpF,qBAAqB,IAAI,iBAAiB,EAAE;IAI5C,oBAAoB,CACzB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,GAAE,iBAA8B,EACvC,gBAAgB,CAAC,EAAE,eAAe,GACjC,IAAI;IAWA,mBAAmB,CAAC,OAAO,GAAE,iBAA8B,GAAG,iBAAiB;
|
|
1
|
+
{"version":3,"file":"JsonArtifactParsingResult.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/util/compare/JsonArtifactParsingResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAoB,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAEhI,qBAAa,yBAAyB;IACpC,OAAO,CAAC,yBAAyB,CAA8B;IAC/D,OAAO,CAAC,2BAA2B,CAA8B;IACjE,OAAO,CAAC,kBAAkB,CAA2B;IAErD,2FAA2F;IACpF,qBAAqB,IAAI,iBAAiB,EAAE;IAI5C,oBAAoB,CACzB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,GAAE,iBAA8B,EACvC,gBAAgB,CAAC,EAAE,eAAe,GACjC,IAAI;IAWA,mBAAmB,CAAC,OAAO,GAAE,iBAA8B,GAAG,iBAAiB;IAW/E,2BAA2B,CAAC,KAAK,EAAE,eAAe;IAIlD,4BAA4B,IAAI,KAAK,CAAC,eAAe,CAAC;IAI7D,gCAAgC;IAIzB,6BAA6B,CAAC,OAAO,EAAE,eAAe;IAItD,8BAA8B,IAAI,KAAK,CAAC,eAAe,CAAC;IAI/D,kCAAkC;IAIlC;;;;;;OAMG;IACI,aAAa,IAAI,OAAO;IAI/B;;;;;;;;;;;;;OAaG;IACI,kBAAkB,IAAI,OAAO;IAIpC,KAAK,CAAC,WAAW,EAAE,yBAAyB;CAK7C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ValidationSummary } from '../../../policy/ValidationPolicy';
|
|
2
|
+
export type SchemaArtifactKind = 'template' | 'element' | 'field';
|
|
3
|
+
/**
|
|
4
|
+
* Checks the JSON that will be sent, before a model reader can normalize or omit unsupported content.
|
|
5
|
+
* Structural rules are compiled from Java's meta-schemas. This does not replace the server's reader
|
|
6
|
+
* or terminology checks; the conformance gate exercises both readers against the same payload.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SchemaArtifactValidator {
|
|
9
|
+
static readonly schemaDigests: Readonly<Record<string, string>>;
|
|
10
|
+
static validate(source: unknown, kind?: SchemaArtifactKind): ValidationSummary;
|
|
11
|
+
static structure(source: unknown, kind?: SchemaArtifactKind): ValidationSummary;
|
|
12
|
+
private static explain;
|
|
13
|
+
private static schemaView;
|
|
14
|
+
private static occurrences;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=SchemaArtifactValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaArtifactValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/validation/SchemaArtifactValidator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuC,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAG1G,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;AAgBlE;;;;GAIG;AACH,qBAAa,uBAAuB;IAClC,MAAM,CAAC,QAAQ,CAAC,aAAa,mCAAyB;IAEtD,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,iBAAiB;IAM9E,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,iBAAiB;IAwD/E,OAAO,CAAC,MAAM,CAAC,OAAO;IAqCtB,OAAO,CAAC,MAAM,CAAC,UAAU;IAazB,OAAO,CAAC,MAAM,CAAC,WAAW;CAoB3B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Draft-04 formats follow the Java validator's legacy URI-reference and offset spellings. */
|
|
2
|
+
export declare const schemaFormats: {
|
|
3
|
+
uri: {
|
|
4
|
+
type: string;
|
|
5
|
+
validate(value: string): boolean;
|
|
6
|
+
};
|
|
7
|
+
'date-time': {
|
|
8
|
+
type: string;
|
|
9
|
+
validate(value: string): boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=SchemaFormats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaFormats.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/validation/SchemaFormats.ts"],"names":[],"mappings":"AAGA,8FAA8F;AAC9F,eAAO,MAAM,aAAa;;;wBAGN,MAAM,GAAG,OAAO;;;;wBAYhB,MAAM,GAAG,OAAO;;CAUnC,CAAC"}
|
|
@@ -14,10 +14,13 @@ export interface ValidationField {
|
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
};
|
|
16
16
|
required?: string[];
|
|
17
|
+
additionalProperties?: boolean;
|
|
17
18
|
}
|
|
18
19
|
/** Local facts shared by model callers and editors. Remote checks are explicit, separate facts. */
|
|
19
20
|
export declare class FieldValuePolicy {
|
|
20
21
|
static readonly authorityTypes: Set<string>;
|
|
22
|
+
/** Fields that present content rather than take an answer. */
|
|
23
|
+
static readonly staticTypes: Set<string>;
|
|
21
24
|
private static readonly integerRanges;
|
|
22
25
|
static isControlled(field: ValidationField): boolean;
|
|
23
26
|
static isIri(field: ValidationField): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldValuePolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/FieldValuePolicy.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAoB,MAAM,oBAAoB,CAAC;AAE5F,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,eAAe,CAAC,EAAE,OAAO,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAGrH,iBAAiB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAE3C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"FieldValuePolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/FieldValuePolicy.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAoB,MAAM,oBAAoB,CAAC;AAE5F,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,eAAe,CAAC,EAAE,OAAO,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAGrH,iBAAiB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAE3C,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,mGAAmG;AACnG,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CAAC,cAAc,cAA0G;IACxI,8DAA8D;IAC9D,MAAM,CAAC,QAAQ,CAAC,WAAW,cAA4E;IACvG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAKnC;IACF,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO;IAOpD,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO;IAK7C,MAAM,CAAC,qBAAqB,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,SAAK,GAAG,iBAAiB,EAAE;IA8CpF,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,SAAK,EAAE,OAAO,GAAE,iBAA8B,GAAG,iBAAiB,EAAE;IA0ChI,6FAA6F;IAC7F,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,SAAK,GAAG,iBAAiB,EAAE;IAkF1F,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,SAAK,GAAG,iBAAiB,EAAE;IAqB9E,kGAAkG;IAClG,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAWrD,OAAO,CAAC,MAAM,CAAC,KAAK;IAepB,OAAO,CAAC,MAAM,CAAC,OAAO;IAoDtB,OAAO,CAAC,MAAM,CAAC,QAAQ;CA0DxB"}
|
|
@@ -18,6 +18,13 @@ export declare abstract class IdentifierPolicy {
|
|
|
18
18
|
* `template`. Null is absence; the empty string is a relative reference and is refused.
|
|
19
19
|
*/
|
|
20
20
|
static assertIdentifier(raw: string | null, key: string): void;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the `uri` format the meta-schemas name admits a value, as the server's validator checks
|
|
23
|
+
* it: an RFC 3987 IRI reference, relative or absolute, spelled as given, which is what
|
|
24
|
+
* `assertFieldIri` takes. The empty string is a relative reference and passes. Where a position
|
|
25
|
+
* needs more, an absolute identifier say, the validator asks for it separately.
|
|
26
|
+
*/
|
|
27
|
+
static matchesUriFormat(value: string): boolean;
|
|
21
28
|
static isValid(value: string): boolean;
|
|
22
29
|
/** Field values retain the RFC 3987 spelling, including Unicode spaces. */
|
|
23
30
|
static isValidFieldValue(value: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentifierPolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/IdentifierPolicy.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,8BAAsB,gBAAgB;IACpC,0FAA0F;WAC5E,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAsB/E,wFAAwF;WAC1E,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAsCnE;;;;;OAKG;WACW,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAO9D;;;;;OAKG;WACW,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"IdentifierPolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/IdentifierPolicy.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,8BAAsB,gBAAgB;IACpC,0FAA0F;WAC5E,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAsB/E,wFAAwF;WAC1E,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAsCnE;;;;;OAKG;WACW,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAO9D;;;;;OAKG;WACW,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAYrE;;;;;OAKG;WACW,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;WAWxC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAU7C,2EAA2E;WAC7D,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAUvD;;;OAGG;WACW,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,UAAQ,GAAG,OAAO;CAW9E"}
|
|
@@ -2,6 +2,12 @@ import { NumericValue } from './NumericPolicy';
|
|
|
2
2
|
import { JsonNode } from '../model/cedar/types/basic-types/JsonNode';
|
|
3
3
|
/** Raw JSON boundary. Duplicate decoded keys and rounded or nonfinite source numbers are never accepted silently. */
|
|
4
4
|
export declare class JsonSourcePolicy {
|
|
5
|
+
/**
|
|
6
|
+
* The text of the number at `key` in a parsed JSON object where it was written with a fraction or an
|
|
7
|
+
* exponent, as `3.0` or `3e0` is, and null otherwise. Java's reader holds such a number as a decimal
|
|
8
|
+
* whatever value it denotes, and holds an integer only where the text wrote one.
|
|
9
|
+
*/
|
|
10
|
+
static decimalSpelling(object: JsonNode, key: string): string | null;
|
|
5
11
|
static sourceNumber(text: string): NumericValue;
|
|
6
12
|
static parse(source: string): JsonNode;
|
|
7
13
|
/** Own a JSON tree while preserving exact numeric atoms across independent bundles. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonSourcePolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/JsonSourcePolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"JsonSourcePolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/JsonSourcePolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAKrE,qHAAqH;AACrH,qBAAa,gBAAgB;IAC3B;;;;OAIG;WACW,eAAe,CAAC,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;WAK7D,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY;WAKxC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ;IAgF7C,uFAAuF;WACzE,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC;IAoBpC,0FAA0F;WAC5E,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,SAAI,GAAG,MAAM;CAkC5D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ValidationFinding } from './ValidationPolicy';
|
|
2
|
+
/** Raw schema constraint checks shared by model validation and the host's retained payload. */
|
|
3
|
+
export declare class SchemaValuePolicy {
|
|
4
|
+
static visit(source: unknown, path: string, out: ValidationFinding[]): void;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=SchemaValuePolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaValuePolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/SchemaValuePolicy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAoB,MAAM,oBAAoB,CAAC;AAEzE,+FAA+F;AAC/F,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,EAAE,GAAG,IAAI;CAuC5E"}
|
|
@@ -6,6 +6,14 @@ export declare class TextPolicy {
|
|
|
6
6
|
static isBlankCodePoint(cp: number): boolean;
|
|
7
7
|
/** JSON Schema length, distinct from UTF-16 layout offsets and displayed graphemes. */
|
|
8
8
|
static codePointLength(value: string): number;
|
|
9
|
+
/**
|
|
10
|
+
* Whether two strings are equal ignoring case, as Java's `String.equalsIgnoreCase` decides it: the
|
|
11
|
+
* same length, and at each position the same character, the same upper case, or the same lower case
|
|
12
|
+
* of the upper cases. JavaScript applies the full case mappings and Java the single-character ones,
|
|
13
|
+
* so the two can differ where a mapping yields more than one character, as the lower case of U+0130
|
|
14
|
+
* does.
|
|
15
|
+
*/
|
|
16
|
+
static equalsIgnoreCase(a: string, b: string): boolean;
|
|
9
17
|
/** Explicit authoring affordance only, never a reader/writer or identity normalization. */
|
|
10
18
|
static trimInputPadding(value: string): string;
|
|
11
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextPolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/TextPolicy.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,qBAAa,UAAU;IACrB,OAAO;IAEP,mGAAmG;WACrF,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;WAK/B,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAcnD,uFAAuF;WACzE,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIpD,2FAA2F;WAC7E,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAGtD"}
|
|
1
|
+
{"version":3,"file":"TextPolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/TextPolicy.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,qBAAa,UAAU;IACrB,OAAO;IAEP,mGAAmG;WACrF,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;WAK/B,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAcnD,uFAAuF;WACzE,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIpD;;;;;;OAMG;WACW,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IAY7D,2FAA2F;WAC7E,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAGtD"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
/** Provenance timestamps. Partial temporal field values have a separate contract. */
|
|
2
2
|
export declare class TimestampPolicy {
|
|
3
3
|
static canonical(value: string): string;
|
|
4
|
+
/**
|
|
5
|
+
* Whether the `date-time` format the meta-schemas name admits a value, as the
|
|
6
|
+
* server's validator checks it. That check resolves a value leniently rather
|
|
7
|
+
* than reading it as a calendar: any month takes a day up to 31, and
|
|
8
|
+
* `24:00:00` is the next midnight. It wants a four-digit year from 0001, or a
|
|
9
|
+
* longer one after `+`, seconds, a fraction of one to nine digits, and an
|
|
10
|
+
* offset of `Z`, `±HH:MM`, `±HH:MM:SS` or `±HHMM` no further than 18 hours.
|
|
11
|
+
* The model reads a provenance timestamp more strictly in some respects and
|
|
12
|
+
* less in others, so a stored one must satisfy both.
|
|
13
|
+
*/
|
|
14
|
+
static matchesFormat(value: string): boolean;
|
|
4
15
|
}
|
|
5
16
|
//# sourceMappingURL=TimestampPolicy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimestampPolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/TimestampPolicy.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,qBAAa,eAAe;WACZ,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;
|
|
1
|
+
{"version":3,"file":"TimestampPolicy.d.ts","sourceRoot":"","sources":["../../../../src/org/metadatacenter/policy/TimestampPolicy.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,qBAAa,eAAe;WACZ,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAwC9C;;;;;;;;;OASG;WACW,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CASpD"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cedar-model-typescript-library",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "TypeScript models, builders, readers, writers, and validators for CEDAR metadata artifacts",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.esm.js",
|
|
7
7
|
"browser": {
|
|
8
|
-
"./policy.js": "./policy.esm.js"
|
|
8
|
+
"./policy.js": "./policy.esm.js",
|
|
9
|
+
"./schema.js": "./schema.esm.js"
|
|
9
10
|
},
|
|
10
11
|
"types": "index.d.ts",
|
|
11
12
|
"repository": {
|