@nmshd/content 2.0.0-beta.26 → 2.0.0-beta.28

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 (95) hide show
  1. package/dist/attributes/constants/AttributeValueTypeQueryMapping.d.ts +1 -0
  2. package/dist/attributes/constants/AttributeValueTypeQueryMapping.js +7 -0
  3. package/dist/attributes/constants/AttributeValueTypeQueryMapping.js.map +1 -0
  4. package/dist/attributes/constants/AttributeValueTypes.d.ts +4 -0
  5. package/dist/attributes/constants/AttributeValueTypes.js +58 -0
  6. package/dist/attributes/constants/AttributeValueTypes.js.map +1 -0
  7. package/dist/attributes/constants/index.d.ts +2 -0
  8. package/dist/attributes/constants/index.js +2 -0
  9. package/dist/attributes/constants/index.js.map +1 -1
  10. package/dist/attributes/types/AbstractString.js +2 -2
  11. package/dist/attributes/types/{name/LegalNameDE.d.ts → affiliation/Affiliation.d.ts} +21 -591
  12. package/dist/attributes/types/affiliation/Affiliation.js +77 -0
  13. package/dist/attributes/types/affiliation/Affiliation.js.map +1 -0
  14. package/dist/attributes/types/affiliation/AffiliationOrganization.d.ts +3 -0
  15. package/dist/attributes/types/affiliation/AffiliationOrganization.js +18 -0
  16. package/dist/attributes/types/affiliation/AffiliationOrganization.js.map +1 -0
  17. package/dist/attributes/types/affiliation/AffiliationRole.d.ts +3 -0
  18. package/dist/attributes/types/affiliation/AffiliationRole.js +18 -0
  19. package/dist/attributes/types/affiliation/AffiliationRole.js.map +1 -0
  20. package/dist/attributes/types/affiliation/AffiliationUnit.d.ts +3 -0
  21. package/dist/attributes/types/affiliation/AffiliationUnit.js +18 -0
  22. package/dist/attributes/types/affiliation/AffiliationUnit.js.map +1 -0
  23. package/dist/attributes/types/affiliation/index.d.ts +4 -0
  24. package/dist/attributes/types/affiliation/index.js +21 -0
  25. package/dist/attributes/types/affiliation/index.js.map +1 -0
  26. package/dist/attributes/types/{name → identity}/DisplayName.d.ts +0 -0
  27. package/dist/attributes/types/{name → identity}/DisplayName.js +0 -0
  28. package/dist/attributes/types/identity/DisplayName.js.map +1 -0
  29. package/dist/attributes/types/{files → identity}/FileReference.d.ts +0 -0
  30. package/dist/attributes/types/{files → identity}/FileReference.js +0 -0
  31. package/dist/attributes/types/identity/FileReference.js.map +1 -0
  32. package/dist/attributes/types/{files → identity}/index.d.ts +1 -0
  33. package/dist/attributes/types/{files → identity}/index.js +1 -0
  34. package/dist/attributes/types/identity/index.js.map +1 -0
  35. package/dist/attributes/types/index.d.ts +2 -3
  36. package/dist/attributes/types/index.js +2 -3
  37. package/dist/attributes/types/index.js.map +1 -1
  38. package/dist/attributes/types/name/MiddleName.d.ts +3 -0
  39. package/dist/attributes/types/name/MiddleName.js +18 -0
  40. package/dist/attributes/types/name/MiddleName.js.map +1 -0
  41. package/dist/attributes/types/name/{Salutation.d.ts → PersonName.d.ts} +17 -23
  42. package/dist/attributes/types/name/{Salutation.js → PersonName.js} +32 -23
  43. package/dist/attributes/types/name/PersonName.js.map +1 -0
  44. package/dist/attributes/types/name/index.d.ts +2 -4
  45. package/dist/attributes/types/name/index.js +2 -4
  46. package/dist/attributes/types/name/index.js.map +1 -1
  47. package/dist/attributes/types/person/JobTitle.d.ts +3 -0
  48. package/dist/attributes/types/person/{Picture.js → JobTitle.js} +8 -8
  49. package/dist/attributes/types/person/JobTitle.js.map +1 -0
  50. package/dist/attributes/types/person/Sex.d.ts +2 -2
  51. package/dist/attributes/types/person/Sex.js +2 -2
  52. package/dist/attributes/types/person/Sex.js.map +1 -1
  53. package/dist/attributes/types/person/index.d.ts +1 -2
  54. package/dist/attributes/types/person/index.js +1 -2
  55. package/dist/attributes/types/person/index.js.map +1 -1
  56. package/dist/attributes/types/proprietary/index.d.ts +0 -1
  57. package/dist/attributes/types/proprietary/index.js +0 -1
  58. package/dist/attributes/types/proprietary/index.js.map +1 -1
  59. package/dist/attributes/types/strings/AbstractEMailAddress.js +2 -2
  60. package/dist/attributes/types/strings/index.d.ts +0 -1
  61. package/dist/attributes/types/strings/index.js +0 -1
  62. package/dist/attributes/types/strings/index.js.map +1 -1
  63. package/dist/buildInformation.js +4 -4
  64. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.d.ts +4 -4
  65. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.js +1 -1
  66. package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.js.map +1 -1
  67. package/lib-web/nmshd.content.js +436 -437
  68. package/lib-web/nmshd.content.min.js +1 -1
  69. package/package.json +10 -10
  70. package/dist/attributes/types/AttributeList.d.ts +0 -1
  71. package/dist/attributes/types/AttributeList.js +0 -37
  72. package/dist/attributes/types/AttributeList.js.map +0 -1
  73. package/dist/attributes/types/AttributeTypeMapping.d.ts +0 -1
  74. package/dist/attributes/types/AttributeTypeMapping.js +0 -9
  75. package/dist/attributes/types/AttributeTypeMapping.js.map +0 -1
  76. package/dist/attributes/types/files/FileReference.js.map +0 -1
  77. package/dist/attributes/types/files/index.js.map +0 -1
  78. package/dist/attributes/types/name/AbstractLegalName.d.ts +0 -3
  79. package/dist/attributes/types/name/AbstractLegalName.js +0 -8
  80. package/dist/attributes/types/name/AbstractLegalName.js.map +0 -1
  81. package/dist/attributes/types/name/DisplayName.js.map +0 -1
  82. package/dist/attributes/types/name/LegalNameDE.js +0 -92
  83. package/dist/attributes/types/name/LegalNameDE.js.map +0 -1
  84. package/dist/attributes/types/name/Salutation.js.map +0 -1
  85. package/dist/attributes/types/person/Age.d.ts +0 -6
  86. package/dist/attributes/types/person/Age.js +0 -34
  87. package/dist/attributes/types/person/Age.js.map +0 -1
  88. package/dist/attributes/types/person/Picture.d.ts +0 -3
  89. package/dist/attributes/types/person/Picture.js.map +0 -1
  90. package/dist/attributes/types/proprietary/ProprietaryDataURL.d.ts +0 -15
  91. package/dist/attributes/types/proprietary/ProprietaryDataURL.js +0 -31
  92. package/dist/attributes/types/proprietary/ProprietaryDataURL.js.map +0 -1
  93. package/dist/attributes/types/strings/AbstractDataURL.d.ts +0 -7
  94. package/dist/attributes/types/strings/AbstractDataURL.js +0 -40
  95. package/dist/attributes/types/strings/AbstractDataURL.js.map +0 -1
@@ -0,0 +1 @@
1
+ export declare const ATTRIBUTE_VALUE_TYPE_QUERY_MAPPING: Map<string, string[]>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ATTRIBUTE_VALUE_TYPE_QUERY_MAPPING = void 0;
4
+ exports.ATTRIBUTE_VALUE_TYPE_QUERY_MAPPING = new Map([
5
+ ["Address", ["StreetAddress", "DeliveryBoxAddress", "PostOfficeBoxAddress"]]
6
+ ]);
7
+ //# sourceMappingURL=AttributeValueTypeQueryMapping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributeValueTypeQueryMapping.js","sourceRoot":"","sources":["../../../src/attributes/constants/AttributeValueTypeQueryMapping.ts"],"names":[],"mappings":";;;AAAa,QAAA,kCAAkC,GAAG,IAAI,GAAG,CAAmB;IACxE,CAAC,SAAS,EAAE,CAAC,eAAe,EAAE,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;CAC/E,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ export declare const IDENTITY_ATTRIBUTE_VALUE_TYPES_EDITABLE: string[];
2
+ export declare const IDENTITY_ATTRIBUTE_VALUE_TYPES: string[];
3
+ export declare const RELATIONSHIP_ATTRIBUTE_VALUE_TYPES: string[];
4
+ export declare const ATTRIBUTE_VALUE_TYPES: string[];
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ATTRIBUTE_VALUE_TYPES = exports.RELATIONSHIP_ATTRIBUTE_VALUE_TYPES = exports.IDENTITY_ATTRIBUTE_VALUE_TYPES = exports.IDENTITY_ATTRIBUTE_VALUE_TYPES_EDITABLE = void 0;
4
+ exports.IDENTITY_ATTRIBUTE_VALUE_TYPES_EDITABLE = [
5
+ "DeliveryBoxAddress",
6
+ "PostOfficeBoxAddress",
7
+ "StreetAddress",
8
+ "Affiliation",
9
+ "BirthPlace",
10
+ "BirthDate",
11
+ "CommunicationLanguage",
12
+ "EMailAddress",
13
+ "Fax",
14
+ "Phone",
15
+ "Website",
16
+ "DisplayName",
17
+ "FileReference",
18
+ "BirthName",
19
+ "PersonName",
20
+ "Pseudonym",
21
+ "Citizenship",
22
+ "JobTitle",
23
+ "Nationality",
24
+ "Sex"
25
+ ];
26
+ exports.IDENTITY_ATTRIBUTE_VALUE_TYPES = [
27
+ ...exports.IDENTITY_ATTRIBUTE_VALUE_TYPES_EDITABLE,
28
+ "City",
29
+ "Country",
30
+ "HouseNumber",
31
+ "State",
32
+ "Street",
33
+ "ZipCode",
34
+ "AffiliationOrganization",
35
+ "AffiliationRole",
36
+ "AffiliationUnit",
37
+ "BirthCity",
38
+ "BirthCountry",
39
+ "BirthDay",
40
+ "BirthMonth",
41
+ "BirthState",
42
+ "BirthYear"
43
+ ];
44
+ exports.RELATIONSHIP_ATTRIBUTE_VALUE_TYPES = [
45
+ "ProprietaryBoolean",
46
+ "ProprietaryCountry",
47
+ "ProprietaryEMailAddress",
48
+ "ProprietaryFileReference",
49
+ "ProprietaryFloat",
50
+ "ProprietaryHEXColor",
51
+ "ProprietaryInteger",
52
+ "ProprietaryLanguage",
53
+ "ProprietaryPhoneNumber",
54
+ "ProprietaryString",
55
+ "ProprietaryURL"
56
+ ];
57
+ exports.ATTRIBUTE_VALUE_TYPES = [...exports.IDENTITY_ATTRIBUTE_VALUE_TYPES, ...exports.RELATIONSHIP_ATTRIBUTE_VALUE_TYPES];
58
+ //# sourceMappingURL=AttributeValueTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributeValueTypes.js","sourceRoot":"","sources":["../../../src/attributes/constants/AttributeValueTypes.ts"],"names":[],"mappings":";;;AAAa,QAAA,uCAAuC,GAAG;IACnD,oBAAoB;IACpB,sBAAsB;IACtB,eAAe;IACf,aAAa;IACb,YAAY;IACZ,WAAW;IACX,uBAAuB;IACvB,cAAc;IACd,KAAK;IACL,OAAO;IACP,SAAS;IACT,aAAa;IACb,eAAe;IACf,WAAW;IACX,YAAY;IACZ,WAAW;IACX,aAAa;IACb,UAAU;IACV,aAAa;IACb,KAAK;CACR,CAAA;AACY,QAAA,8BAA8B,GAAG;IAC1C,GAAG,+CAAuC;IAC1C,MAAM;IACN,SAAS;IACT,aAAa;IACb,OAAO;IACP,QAAQ;IACR,SAAS;IACT,yBAAyB;IACzB,iBAAiB;IACjB,iBAAiB;IACjB,WAAW;IACX,cAAc;IACd,UAAU;IACV,YAAY;IACZ,YAAY;IACZ,WAAW;CACd,CAAA;AAEY,QAAA,kCAAkC,GAAG;IAC9C,oBAAoB;IACpB,oBAAoB;IACpB,yBAAyB;IACzB,0BAA0B;IAC1B,kBAAkB;IAClB,qBAAqB;IACrB,oBAAoB;IACpB,qBAAqB;IACrB,wBAAwB;IACxB,mBAAmB;IACnB,gBAAgB;CACnB,CAAA;AAEY,QAAA,qBAAqB,GAAG,CAAC,GAAG,sCAA8B,EAAE,GAAG,0CAAkC,CAAC,CAAA"}
@@ -1,2 +1,4 @@
1
+ export * from "./AttributeValueTypeQueryMapping";
2
+ export * from "./AttributeValueTypes";
1
3
  export * from "./CountriesAlpha2";
2
4
  export * from "./LanguagesISO639";
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AttributeValueTypeQueryMapping"), exports);
18
+ __exportStar(require("./AttributeValueTypes"), exports);
17
19
  __exportStar(require("./CountriesAlpha2"), exports);
18
20
  __exportStar(require("./LanguagesISO639"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/attributes/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,oDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/attributes/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAgD;AAChD,wDAAqC;AACrC,oDAAiC;AACjC,oDAAiC"}
@@ -24,7 +24,7 @@ class AbstractString extends AbstractAttributeValue_1.AbstractAttributeValue {
24
24
  }
25
25
  static get valueHints() {
26
26
  return hints_1.ValueHints.from({
27
- max: 200
27
+ max: 100
28
28
  });
29
29
  }
30
30
  static get renderHints() {
@@ -36,7 +36,7 @@ class AbstractString extends AbstractAttributeValue_1.AbstractAttributeValue {
36
36
  }
37
37
  __decorate([
38
38
  (0, ts_serval_1.serialize)(),
39
- (0, ts_serval_1.validate)({ max: 200 }),
39
+ (0, ts_serval_1.validate)({ max: 100 }),
40
40
  __metadata("design:type", String)
41
41
  ], AbstractString.prototype, "value", void 0);
42
42
  exports.AbstractString = AbstractString;