cedar-model-typescript-library 1.0.14 → 1.0.15

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.
Files changed (79) hide show
  1. package/README.md +24 -0
  2. package/index.d.ts +6 -1
  3. package/index.d.ts.map +1 -1
  4. package/index.esm.js +1 -1
  5. package/index.esm.js.map +1 -1
  6. package/index.js +1 -1
  7. package/index.js.map +1 -1
  8. package/index.umd.js +1 -1
  9. package/index.umd.js.map +1 -1
  10. package/org/metadatacenter/io/reader/ReaderUtil.d.ts +12 -0
  11. package/org/metadatacenter/io/reader/ReaderUtil.d.ts.map +1 -1
  12. package/org/metadatacenter/io/reader/json/JsonAbstractArtifactReader.d.ts.map +1 -1
  13. package/org/metadatacenter/io/reader/json/JsonAbstractSchemaArtifactReader.d.ts.map +1 -1
  14. package/org/metadatacenter/io/reader/json/JsonContainerArtifactReader.d.ts.map +1 -1
  15. package/org/metadatacenter/io/reader/json/JsonTemplateFieldReader.d.ts.map +1 -1
  16. package/org/metadatacenter/io/reader/json/JsonTemplateInstanceReader.d.ts +1 -0
  17. package/org/metadatacenter/io/reader/json/JsonTemplateInstanceReader.d.ts.map +1 -1
  18. package/org/metadatacenter/io/reader/json/JsonTemplateReader.d.ts.map +1 -1
  19. package/org/metadatacenter/io/reader/yaml/YamlAbstractArtifactReader.d.ts.map +1 -1
  20. package/org/metadatacenter/io/reader/yaml/YamlContainerArtifactReader.d.ts.map +1 -1
  21. package/org/metadatacenter/io/reader/yaml/YamlTemplateInstanceReader.d.ts +7 -3
  22. package/org/metadatacenter/io/reader/yaml/YamlTemplateInstanceReader.d.ts.map +1 -1
  23. package/org/metadatacenter/io/writer/json/JsonTemplateFieldWriterInternal.d.ts.map +1 -1
  24. package/org/metadatacenter/io/writer/json/JsonTemplateInstanceWriter.d.ts +1 -0
  25. package/org/metadatacenter/io/writer/json/JsonTemplateInstanceWriter.d.ts.map +1 -1
  26. package/org/metadatacenter/io/writer/json/stringifyInstance.d.ts +5 -0
  27. package/org/metadatacenter/io/writer/json/stringifyInstance.d.ts.map +1 -0
  28. package/org/metadatacenter/io/writer/json/stringifySchema.d.ts.map +1 -1
  29. package/org/metadatacenter/io/writer/yaml/JavaPlainDecimal.d.ts +11 -0
  30. package/org/metadatacenter/io/writer/yaml/JavaPlainDecimal.d.ts.map +1 -0
  31. package/org/metadatacenter/io/writer/yaml/SimpleYamlSerializer.d.ts.map +1 -1
  32. package/org/metadatacenter/io/writer/yaml/YamlPlainScalarPolicy.d.ts +2 -0
  33. package/org/metadatacenter/io/writer/yaml/YamlPlainScalarPolicy.d.ts.map +1 -1
  34. package/org/metadatacenter/io/writer/yaml/YamlTemplateInstanceWriter.d.ts +1 -0
  35. package/org/metadatacenter/io/writer/yaml/YamlTemplateInstanceWriter.d.ts.map +1 -1
  36. package/org/metadatacenter/model/cedar/AbstractArtifacBuilder.d.ts +3 -0
  37. package/org/metadatacenter/model/cedar/AbstractArtifacBuilder.d.ts.map +1 -1
  38. package/org/metadatacenter/model/cedar/AbstractContainerArtifact.d.ts +2 -0
  39. package/org/metadatacenter/model/cedar/AbstractContainerArtifact.d.ts.map +1 -1
  40. package/org/metadatacenter/model/cedar/AbstractSchemaArtifact.d.ts +2 -0
  41. package/org/metadatacenter/model/cedar/AbstractSchemaArtifact.d.ts.map +1 -1
  42. package/org/metadatacenter/model/cedar/ReservedNames.d.ts +38 -0
  43. package/org/metadatacenter/model/cedar/ReservedNames.d.ts.map +1 -0
  44. package/org/metadatacenter/model/cedar/SchemaExtensions.d.ts +15 -0
  45. package/org/metadatacenter/model/cedar/SchemaExtensions.d.ts.map +1 -0
  46. package/org/metadatacenter/model/cedar/constants/JsonSchema.d.ts +1 -0
  47. package/org/metadatacenter/model/cedar/constants/JsonSchema.d.ts.map +1 -1
  48. package/org/metadatacenter/model/cedar/constants/YamlKeys.d.ts +1 -0
  49. package/org/metadatacenter/model/cedar/constants/YamlKeys.d.ts.map +1 -1
  50. package/org/metadatacenter/model/cedar/deployment/ContainerArtifactChildrenInfo.d.ts +11 -23
  51. package/org/metadatacenter/model/cedar/deployment/ContainerArtifactChildrenInfo.d.ts.map +1 -1
  52. package/org/metadatacenter/model/cedar/field/dynamic/attribute-value/JsonFieldWriterAttributeValue.d.ts +2 -0
  53. package/org/metadatacenter/model/cedar/field/dynamic/attribute-value/JsonFieldWriterAttributeValue.d.ts.map +1 -1
  54. package/org/metadatacenter/model/cedar/template-instance/AttributeValueNamePolicy.d.ts +11 -3
  55. package/org/metadatacenter/model/cedar/template-instance/AttributeValueNamePolicy.d.ts.map +1 -1
  56. package/org/metadatacenter/model/cedar/template-instance/InstanceDataAtomType.d.ts +3 -1
  57. package/org/metadatacenter/model/cedar/template-instance/InstanceDataAtomType.d.ts.map +1 -1
  58. package/org/metadatacenter/model/cedar/template-instance/InstanceDataAttributeValueField.d.ts.map +1 -1
  59. package/org/metadatacenter/model/cedar/template-instance/InstanceDataContainer.d.ts.map +1 -1
  60. package/org/metadatacenter/model/cedar/template-instance/InstanceDataControlledAtom.d.ts +10 -3
  61. package/org/metadatacenter/model/cedar/template-instance/InstanceDataControlledAtom.d.ts.map +1 -1
  62. package/org/metadatacenter/model/cedar/template-instance/InstanceDataEmptyAtom.d.ts +2 -4
  63. package/org/metadatacenter/model/cedar/template-instance/InstanceDataEmptyAtom.d.ts.map +1 -1
  64. package/org/metadatacenter/model/cedar/template-instance/InstanceDataLabelAtom.d.ts +11 -0
  65. package/org/metadatacenter/model/cedar/template-instance/InstanceDataLabelAtom.d.ts.map +1 -0
  66. package/org/metadatacenter/model/cedar/template-instance/InstanceDataLinkAtom.d.ts +11 -4
  67. package/org/metadatacenter/model/cedar/template-instance/InstanceDataLinkAtom.d.ts.map +1 -1
  68. package/org/metadatacenter/model/cedar/template-instance/InstanceDataNotationAtom.d.ts +9 -0
  69. package/org/metadatacenter/model/cedar/template-instance/InstanceDataNotationAtom.d.ts.map +1 -0
  70. package/org/metadatacenter/model/cedar/template-instance/InstanceDataStringAtom.d.ts +6 -1
  71. package/org/metadatacenter/model/cedar/template-instance/InstanceDataStringAtom.d.ts.map +1 -1
  72. package/org/metadatacenter/model/cedar/template-instance/InstanceDataTypedAtom.d.ts +6 -1
  73. package/org/metadatacenter/model/cedar/template-instance/InstanceDataTypedAtom.d.ts.map +1 -1
  74. package/org/metadatacenter/model/cedar/template-instance/InstanceValidator.d.ts.map +1 -1
  75. package/org/metadatacenter/model/cedar/template-instance/TemplateInstance.d.ts +2 -0
  76. package/org/metadatacenter/model/cedar/template-instance/TemplateInstance.d.ts.map +1 -1
  77. package/org/metadatacenter/model/cedar/util/serialization/JsonTemplateContent.d.ts +1 -0
  78. package/org/metadatacenter/model/cedar/util/serialization/JsonTemplateContent.d.ts.map +1 -1
  79. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"InstanceDataContainer.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataContainer.ts"],"names":[],"mappings":"AAAA,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;IAI5D,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,EAEzD;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,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"}
@@ -13,17 +13,24 @@ import { PARSED_NODE } from './InstanceDataLinkAtom';
13
13
  * signature to learn what a controlled atom holds was told the wrong thing.
14
14
  */
15
15
  export declare class InstanceDataControlledAtom {
16
+ /** Optional JSON-LD language tag, preserved across JSON and YAML. */
17
+ language: string | null;
18
+ /** Optional SKOS notation, including an explicitly empty string. */
19
+ notation: string | null;
16
20
  private readonly _id;
21
+ private readonly _type;
17
22
  private readonly _label;
18
- constructor(id: string, label: string);
19
- constructor(id: string | null, label: string | null, parsed: typeof PARSED_NODE);
23
+ constructor(id: string, label: string, type?: string | null);
24
+ constructor(id: string | null, label: string | null, parsed: typeof PARSED_NODE, type?: string | null);
20
25
  /**
21
26
  * The atom a reader makes of a node carrying a label and a null `@id`.
22
27
  *
23
28
  * Only the readers use this — see `InstanceDataLinkAtom.fromParsedNode` for
24
29
  * why a malformed document is preserved rather than repaired.
25
30
  */
26
- static fromParsedNode(id: string | null, label: string | null): InstanceDataControlledAtom;
31
+ static fromParsedNode(id: string | null, label: string | null, type?: string | null): InstanceDataControlledAtom;
32
+ /** Explicit linked-value datatype; absent types are not synthesized. */
33
+ get type(): string | null;
27
34
  get id(): string | null;
28
35
  get label(): string | null;
29
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InstanceDataControlledAtom.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataControlledAtom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;;;;;;;;;;;GAYG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;gBAE3B,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;gBACzB,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,OAAO,WAAW;IAY/E;;;;;OAKG;IACH,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,0BAA0B;IAI1F,IAAI,EAAE,IAAI,MAAM,GAAG,IAAI,CAEtB;IAED,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;CACF"}
1
+ {"version":3,"file":"InstanceDataControlledAtom.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataControlledAtom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;;;;;;;;;;;GAYG;AACH,qBAAa,0BAA0B;IACrC,qEAAqE;IAC9D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,oEAAoE;IAC7D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;gBAE3B,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI;gBAC/C,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,OAAO,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI;IAarG;;;;;OAKG;IACH,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,GAAE,MAAM,GAAG,IAAW,GAAG,0BAA0B;IAItH,wEAAwE;IACxE,IAAI,IAAI,IAAI,MAAM,GAAG,IAAI,CAExB;IAED,IAAI,EAAE,IAAI,MAAM,GAAG,IAAI,CAEtB;IAED,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;CACF"}
@@ -1,10 +1,8 @@
1
1
  /**
2
2
  * A value node the reader could not make a value out of.
3
3
  *
4
- * A CEDAR value is a literal (`@value`) or an IRI (`@id`, optionally with an
5
- * `rdfs:label`). A node carrying neither has no value in it, whatever else it
6
- * holds — `{"rdfs:label": "Some Term"}` is a label with nothing to label, so
7
- * there is no term.
4
+ * Literal, IRI and label-only fields have dedicated atom types. This fallback
5
+ * retains other unrecognized content for callers to inspect.
8
6
  *
9
7
  * `discarded` is what the node held. The reader used to return a bare empty atom
10
8
  * and the content was simply gone: a host application handing CEDAR a
@@ -1 +1 @@
1
- {"version":3,"file":"InstanceDataEmptyAtom.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataEmptyAtom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;gBAE/B,SAAS,GAAE,MAAM,GAAG,IAAW;IAI3C,uEAAuE;IACvE,IAAI,SAAS,IAAI,MAAM,GAAG,IAAI,CAE7B;IAED,gEAAgE;IAChE,mBAAmB,IAAI,OAAO;CAG/B"}
1
+ {"version":3,"file":"InstanceDataEmptyAtom.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataEmptyAtom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;gBAE/B,SAAS,GAAE,MAAM,GAAG,IAAW;IAI3C,uEAAuE;IACvE,IAAI,SAAS,IAAI,MAAM,GAAG,IAAI,CAE7B;IAED,gEAAgE;IAChE,mBAAmB,IAAI,OAAO;CAG/B"}
@@ -0,0 +1,11 @@
1
+ /** A field carrying a label without an IRI or literal value. */
2
+ export declare class InstanceDataLabelAtom {
3
+ readonly label: string;
4
+ readonly type: string | null;
5
+ /** Optional JSON-LD language tag, preserved across JSON and YAML. */
6
+ language: string | null;
7
+ /** Optional SKOS notation, including an explicitly empty string. */
8
+ notation: string | null;
9
+ constructor(label: string, type?: string | null);
10
+ }
11
+ //# sourceMappingURL=InstanceDataLabelAtom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InstanceDataLabelAtom.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataLabelAtom.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,qBAAa,qBAAqB;aAMd,KAAK,EAAE,MAAM;aACb,IAAI,EAAE,MAAM,GAAG,IAAI;IANrC,qEAAqE;IAC9D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,oEAAoE;IAC7D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAEpB,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,MAAM,GAAG,IAAW;CAE7C"}
@@ -14,7 +14,7 @@ export declare const PARSED_NODE: unique symbol;
14
14
  */
15
15
  export declare function assertIri(id: string | null, className: string): void;
16
16
  /**
17
- * A value that is an IRI and nothing else.
17
+ * An IRI-valued link with an optional explicit datatype.
18
18
  *
19
19
  * The IRI is required, and the constructor now says so. `{"@id": null}` is not
20
20
  * an unfilled link — an unfilled IRI-valued field is `{}`, which is
@@ -25,9 +25,14 @@ export declare function assertIri(id: string | null, className: string): void;
25
25
  * node the reader would go on to complain about.
26
26
  */
27
27
  export declare class InstanceDataLinkAtom {
28
+ /** Optional JSON-LD language tag, preserved across JSON and YAML. */
29
+ language: string | null;
30
+ /** Optional SKOS notation, including an explicitly empty string. */
31
+ notation: string | null;
28
32
  private readonly _id;
29
- constructor(id: string);
30
- constructor(id: string | null, parsed: typeof PARSED_NODE);
33
+ private readonly _type;
34
+ constructor(id: string, type?: string | null);
35
+ constructor(id: string | null, parsed: typeof PARSED_NODE, type?: string | null);
31
36
  /**
32
37
  * The atom a reader makes of a node whose `@id` is null.
33
38
  *
@@ -38,7 +43,9 @@ export declare class InstanceDataLinkAtom {
38
43
  * for code that is composing an instance, where there is still something to
39
44
  * fix.
40
45
  */
41
- static fromParsedNode(id: string | null): InstanceDataLinkAtom;
46
+ static fromParsedNode(id: string | null, type?: string | null): InstanceDataLinkAtom;
47
+ /** Explicit linked-value datatype; absent types are not synthesized. */
48
+ get type(): string | null;
42
49
  get id(): string | null;
43
50
  }
44
51
  //# sourceMappingURL=InstanceDataLinkAtom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InstanceDataLinkAtom.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataLinkAtom.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,OAAO,MAA8B,CAAC;AAEhE;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAIpE;AAED;;;;;;;;;;GAUG;AACH,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;gBAExB,EAAE,EAAE,MAAM;gBACV,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,OAAO,WAAW;IAQzD;;;;;;;;;OASG;IACH,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,oBAAoB;IAI9D,IAAI,EAAE,IAAI,MAAM,GAAG,IAAI,CAEtB;CACF"}
1
+ {"version":3,"file":"InstanceDataLinkAtom.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataLinkAtom.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,OAAO,MAA8B,CAAC;AAEhE;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAIpE;AAED;;;;;;;;;;GAUG;AACH,qBAAa,oBAAoB;IAC/B,qEAAqE;IAC9D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,oEAAoE;IAC7D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgB;gBAE1B,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI;gBAChC,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,OAAO,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI;IAS/E;;;;;;;;;OASG;IACH,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,GAAE,MAAM,GAAG,IAAW,GAAG,oBAAoB;IAI1F,wEAAwE;IACxE,IAAI,IAAI,IAAI,MAAM,GAAG,IAAI,CAExB;IAED,IAAI,EAAE,IAAI,MAAM,GAAG,IAAI,CAEtB;CACF"}
@@ -0,0 +1,9 @@
1
+ /** A field carrying notation without an IRI, literal value or label. */
2
+ export declare class InstanceDataNotationAtom {
3
+ readonly notation: string;
4
+ readonly type: string | null;
5
+ /** Optional JSON-LD language tag, preserved across JSON and YAML. */
6
+ language: string | null;
7
+ constructor(notation: string, type?: string | null);
8
+ }
9
+ //# sourceMappingURL=InstanceDataNotationAtom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InstanceDataNotationAtom.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataNotationAtom.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,qBAAa,wBAAwB;aAIjB,QAAQ,EAAE,MAAM;aAChB,IAAI,EAAE,MAAM,GAAG,IAAI;IAJrC,qEAAqE;IAC9D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;gBAEpB,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE,MAAM,GAAG,IAAW;CAE7C"}
@@ -1,6 +1,11 @@
1
1
  export declare class InstanceDataStringAtom {
2
+ readonly label: string | null;
3
+ /** Optional JSON-LD language tag, preserved across JSON and YAML. */
4
+ language: string | null;
5
+ /** Optional SKOS notation, including an explicitly empty string. */
6
+ notation: string | null;
2
7
  private _value;
3
- constructor(value: string | null);
8
+ constructor(value: string | null, label?: string | null);
4
9
  get value(): string | null;
5
10
  }
6
11
  //# sourceMappingURL=InstanceDataStringAtom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InstanceDataStringAtom.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataStringAtom.ts"],"names":[],"mappings":"AAAA,qBAAa,sBAAsB;IACjC,OAAO,CAAC,MAAM,CAAgB;gBAElB,KAAK,EAAE,MAAM,GAAG,IAAI;IAIhC,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;CACF"}
1
+ {"version":3,"file":"InstanceDataStringAtom.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataStringAtom.ts"],"names":[],"mappings":"AAAA,qBAAa,sBAAsB;aASf,KAAK,EAAE,MAAM,GAAG,IAAI;IARtC,qEAAqE;IAC9D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,oEAAoE;IAC7D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,OAAO,CAAC,MAAM,CAAgB;gBAG5B,KAAK,EAAE,MAAM,GAAG,IAAI,EACJ,KAAK,GAAE,MAAM,GAAG,IAAW;IAK7C,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;CACF"}
@@ -8,9 +8,14 @@
8
8
  * ever have built.
9
9
  */
10
10
  export declare class InstanceDataTypedAtom {
11
+ readonly label: string | null;
12
+ /** Optional JSON-LD language tag, preserved across JSON and YAML. */
13
+ language: string | null;
14
+ /** Optional SKOS notation, including an explicitly empty string. */
15
+ notation: string | null;
11
16
  private readonly _value;
12
17
  private readonly _type;
13
- constructor(value: string | null, type: string);
18
+ constructor(value: string | null, type: string, label?: string | null);
14
19
  get value(): string | null;
15
20
  get type(): string;
16
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"InstanceDataTypedAtom.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataTypedAtom.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IACvC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;gBAEnB,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM;IAQ9C,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;CACF"}
1
+ {"version":3,"file":"InstanceDataTypedAtom.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/InstanceDataTypedAtom.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,qBAAa,qBAAqB;aAWd,KAAK,EAAE,MAAM,GAAG,IAAI;IAVtC,qEAAqE;IAC9D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,oEAAoE;IAC7D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IACvC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;gBAG7B,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,IAAI,EAAE,MAAM,EACI,KAAK,GAAE,MAAM,GAAG,IAAW;IAS7C,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;CACF"}
@@ -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;AAatD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAatF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBAAa,iBAAiB;IAC5B,OAAO;IAEP;;;;;;OAMG;WACW,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,GAAG,yBAAyB;IAMjG,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAoEhC,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAkBnC,OAAO,CAAC,MAAM,CAAC,aAAa;IAqC5B,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAsBlC,OAAO,CAAC,MAAM,CAAC,YAAY;IA8B3B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAS1B;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAUhC,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAsCjC,0EAA0E;IAC1E,OAAO,CAAC,MAAM,CAAC,OAAO;CASvB"}
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;AAatD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAatF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBAAa,iBAAiB;IAC5B,OAAO;IAEP;;;;;;OAMG;WACW,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,GAAG,yBAAyB;IAMjG,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAqEhC,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAkBnC,OAAO,CAAC,MAAM,CAAC,aAAa;IAqC5B,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAsBlC,OAAO,CAAC,MAAM,CAAC,YAAY;IA8B3B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CAAC,MAAM,CAAC,WAAW;IAS1B;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAUhC,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAsCjC,0EAA0E;IAC1E,OAAO,CAAC,MAAM,CAAC,OAAO;CASvB"}
@@ -2,6 +2,8 @@ import { AbstractInstanceArtifact } from '../AbstractInstanceArtifact';
2
2
  import { InstanceDataContainer } from './InstanceDataContainer';
3
3
  export declare class TemplateInstance extends AbstractInstanceArtifact {
4
4
  dataContainer: InstanceDataContainer;
5
+ /** Reader provenance used only to match Java's position for a synthesized empty description. */
6
+ descriptionWasAbsent: boolean;
5
7
  private constructor();
6
8
  static buildEmptyWithNullValues(): TemplateInstance;
7
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TemplateInstance.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/TemplateInstance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,qBAAa,gBAAiB,SAAQ,wBAAwB;IAC5D,aAAa,EAAE,qBAAqB,CAAC;IAErC,OAAO;WAMO,wBAAwB,IAAI,gBAAgB;CAG3D"}
1
+ {"version":3,"file":"TemplateInstance.d.ts","sourceRoot":"","sources":["../../../../../../src/org/metadatacenter/model/cedar/template-instance/TemplateInstance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,qBAAa,gBAAiB,SAAQ,wBAAwB;IAC5D,aAAa,EAAE,qBAAqB,CAAC;IAErC,gGAAgG;IAChG,oBAAoB,EAAE,OAAO,CAAS;IAEtC,OAAO;WAMO,wBAAwB,IAAI,gBAAgB;CAG3D"}
@@ -1,5 +1,6 @@
1
1
  import { JsonNode } from '../../types/basic-types/JsonNode';
2
2
  export declare class JsonTemplateContent {
3
+ static readonly ANNOTATIONS: JsonNode;
3
4
  static REQUIRED_PARTIAL: string[];
4
5
  static PROPERTIES_PARTIAL: JsonNode;
5
6
  static REQUIRED_PARTIAL_KEY_MAP: Map<string, boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"JsonTemplateContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/util/serialization/JsonTemplateContent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAE5D,qBAAa,mBAAmB;IAE9B,OAAc,gBAAgB,WAU5B;IAIF,OAAc,kBAAkB,EAAE,QAAQ,CAgMxC;IAEF,OAAc,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7D,OAAc,2BAA2B,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAC9D,OAAc,0BAA0B,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAa;IAC3E,OAAc,wBAAwB,EAAE,QAAQ,CAAC;CAkBlD"}
1
+ {"version":3,"file":"JsonTemplateContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/org/metadatacenter/model/cedar/util/serialization/JsonTemplateContent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAE5D,qBAAa,mBAAmB;IAC9B,gBAAuB,WAAW,EAAE,QAAQ,CA4B1C;IAGF,OAAc,gBAAgB,WAU5B;IAIF,OAAc,kBAAkB,EAAE,QAAQ,CAkMxC;IAEF,OAAc,wBAAwB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7D,OAAc,2BAA2B,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAC9D,OAAc,0BAA0B,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAa;IAC3E,OAAc,wBAAwB,EAAE,QAAQ,CAAC;CAkBlD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cedar-model-typescript-library",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
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",