@nmshd/content 1.2.2 → 2.0.0-alpha.2

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 (215) hide show
  1. package/dist/attributes/Attribute.d.ts +9 -11
  2. package/dist/attributes/Attribute.js +27 -14
  3. package/dist/attributes/Attribute.js.map +1 -1
  4. package/dist/attributes/AttributeName.d.ts +16 -0
  5. package/dist/attributes/AttributeName.js +62 -0
  6. package/dist/attributes/AttributeName.js.map +1 -0
  7. package/dist/attributes/AttributeNamespace.d.ts +8 -0
  8. package/dist/attributes/AttributeNamespace.js +13 -0
  9. package/dist/attributes/AttributeNamespace.js.map +1 -0
  10. package/dist/attributes/addresses/Address.d.ts +22 -0
  11. package/dist/attributes/{types/address/DeliveryBoxAddress.js → addresses/Address.js} +31 -22
  12. package/dist/attributes/addresses/Address.js.map +1 -0
  13. package/dist/attributes/addresses/DeliveryAddress.d.ts +12 -0
  14. package/dist/attributes/{types/birth/BirthDate.js → addresses/DeliveryAddress.js} +17 -17
  15. package/dist/attributes/addresses/DeliveryAddress.js.map +1 -0
  16. package/dist/buildInformation.js +4 -4
  17. package/dist/forms/FormItem.js +4 -10
  18. package/dist/forms/FormItem.js.map +1 -1
  19. package/dist/index.d.ts +10 -1
  20. package/dist/index.js +10 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/messages/Mail.js +2 -3
  23. package/dist/messages/Mail.js.map +1 -1
  24. package/dist/relationships/RelationshipCreationChangeRequestBody.d.ts +29 -0
  25. package/dist/relationships/RelationshipCreationChangeRequestBody.js +56 -0
  26. package/dist/relationships/RelationshipCreationChangeRequestBody.js.map +1 -0
  27. package/dist/relationships/RelationshipCreationChangeResponseBody.d.ts +0 -0
  28. package/dist/relationships/RelationshipCreationChangeResponseBody.js +2 -0
  29. package/dist/relationships/RelationshipCreationChangeResponseBody.js.map +1 -0
  30. package/dist/relationships/RelationshipExistsAction.d.ts +7 -0
  31. package/dist/{attributes/types/birth/BirthCountry.js → relationships/RelationshipExistsAction.js} +7 -8
  32. package/dist/relationships/RelationshipExistsAction.js.map +1 -0
  33. package/dist/relationships/RelationshipExistsMessageAction.d.ts +11 -0
  34. package/dist/{attributes/types/address/City.js → relationships/RelationshipExistsMessageAction.js} +10 -10
  35. package/dist/relationships/RelationshipExistsMessageAction.js.map +1 -0
  36. package/dist/relationships/RelationshipTemplateBody.d.ts +42 -0
  37. package/dist/relationships/RelationshipTemplateBody.js +73 -0
  38. package/dist/relationships/RelationshipTemplateBody.js.map +1 -0
  39. package/dist/requests/AttributesRequest.d.ts +49 -0
  40. package/dist/requests/AttributesRequest.js +65 -0
  41. package/dist/requests/AttributesRequest.js.map +1 -0
  42. package/dist/requests/Request.d.ts +41 -0
  43. package/dist/{attributes/types/name/LegalNameDE.js → requests/Request.js} +20 -25
  44. package/dist/requests/Request.js.map +1 -0
  45. package/dist/requests/RequestItem.d.ts +62 -0
  46. package/dist/{attributes/AttributeQuery.js → requests/RequestItem.js} +18 -24
  47. package/dist/requests/RequestItem.js.map +1 -0
  48. package/dist/requests/RequestItemGroup.d.ts +82 -0
  49. package/dist/{attributes/types/name/Salutation.js → requests/RequestItemGroup.js} +23 -23
  50. package/dist/requests/RequestItemGroup.js.map +1 -0
  51. package/dist/requests/Response.d.ts +18 -0
  52. package/dist/{attributes/types/address/HouseNumber.js → requests/Response.js} +19 -10
  53. package/dist/requests/Response.js.map +1 -0
  54. package/dist/requests/ResponseItem.d.ts +48 -0
  55. package/dist/requests/ResponseItem.js +71 -0
  56. package/dist/requests/ResponseItem.js.map +1 -0
  57. package/dist/requests/ResponseItemGroup.d.ts +15 -0
  58. package/dist/{attributes/types/measurements/AbstractMeasurement.js → requests/ResponseItemGroup.js} +14 -15
  59. package/dist/requests/ResponseItemGroup.js.map +1 -0
  60. package/dist/requests/ResponseItemResult.d.ts +5 -0
  61. package/dist/requests/ResponseItemResult.js +10 -0
  62. package/dist/requests/ResponseItemResult.js.map +1 -0
  63. package/lib-web/nmshd.content.js +443 -1889
  64. package/lib-web/nmshd.content.min.js +1 -1
  65. package/package.json +7 -7
  66. package/dist/attributes/AbstractAttributeValue.d.ts +0 -9
  67. package/dist/attributes/AbstractAttributeValue.js +0 -8
  68. package/dist/attributes/AbstractAttributeValue.js.map +0 -1
  69. package/dist/attributes/AttributeQuery.d.ts +0 -12
  70. package/dist/attributes/AttributeQuery.js.map +0 -1
  71. package/dist/attributes/index.d.ts +0 -4
  72. package/dist/attributes/index.js +0 -21
  73. package/dist/attributes/index.js.map +0 -1
  74. package/dist/attributes/types/AbstractDay.d.ts +0 -7
  75. package/dist/attributes/types/AbstractDay.js +0 -26
  76. package/dist/attributes/types/AbstractDay.js.map +0 -1
  77. package/dist/attributes/types/AbstractMonth.d.ts +0 -25
  78. package/dist/attributes/types/AbstractMonth.js +0 -44
  79. package/dist/attributes/types/AbstractMonth.js.map +0 -1
  80. package/dist/attributes/types/AbstractYear.d.ts +0 -4
  81. package/dist/attributes/types/AbstractYear.js +0 -23
  82. package/dist/attributes/types/AbstractYear.js.map +0 -1
  83. package/dist/attributes/types/AttributeList.d.ts +0 -1
  84. package/dist/attributes/types/AttributeList.js +0 -37
  85. package/dist/attributes/types/AttributeList.js.map +0 -1
  86. package/dist/attributes/types/AttributeTypeMapping.d.ts +0 -1
  87. package/dist/attributes/types/AttributeTypeMapping.js +0 -9
  88. package/dist/attributes/types/AttributeTypeMapping.js.map +0 -1
  89. package/dist/attributes/types/address/AbstractAddress.d.ts +0 -4
  90. package/dist/attributes/types/address/AbstractAddress.js +0 -23
  91. package/dist/attributes/types/address/AbstractAddress.js.map +0 -1
  92. package/dist/attributes/types/address/City.d.ts +0 -4
  93. package/dist/attributes/types/address/City.js.map +0 -1
  94. package/dist/attributes/types/address/Country.d.ts +0 -4
  95. package/dist/attributes/types/address/Country.js +0 -26
  96. package/dist/attributes/types/address/Country.js.map +0 -1
  97. package/dist/attributes/types/address/DeliveryBoxAddress.d.ts +0 -13
  98. package/dist/attributes/types/address/DeliveryBoxAddress.js.map +0 -1
  99. package/dist/attributes/types/address/HouseNumber.d.ts +0 -4
  100. package/dist/attributes/types/address/HouseNumber.js.map +0 -1
  101. package/dist/attributes/types/address/PostOfficeBoxAddress.d.ts +0 -12
  102. package/dist/attributes/types/address/PostOfficeBoxAddress.js +0 -50
  103. package/dist/attributes/types/address/PostOfficeBoxAddress.js.map +0 -1
  104. package/dist/attributes/types/address/State.d.ts +0 -4
  105. package/dist/attributes/types/address/State.js +0 -26
  106. package/dist/attributes/types/address/State.js.map +0 -1
  107. package/dist/attributes/types/address/Street.d.ts +0 -4
  108. package/dist/attributes/types/address/Street.js +0 -26
  109. package/dist/attributes/types/address/Street.js.map +0 -1
  110. package/dist/attributes/types/address/StreetAddress.d.ts +0 -15
  111. package/dist/attributes/types/address/StreetAddress.js +0 -57
  112. package/dist/attributes/types/address/StreetAddress.js.map +0 -1
  113. package/dist/attributes/types/address/ZipCode.d.ts +0 -4
  114. package/dist/attributes/types/address/ZipCode.js +0 -26
  115. package/dist/attributes/types/address/ZipCode.js.map +0 -1
  116. package/dist/attributes/types/address/index.d.ts +0 -10
  117. package/dist/attributes/types/address/index.js +0 -27
  118. package/dist/attributes/types/address/index.js.map +0 -1
  119. package/dist/attributes/types/birth/BirthCity.d.ts +0 -3
  120. package/dist/attributes/types/birth/BirthCity.js +0 -18
  121. package/dist/attributes/types/birth/BirthCity.js.map +0 -1
  122. package/dist/attributes/types/birth/BirthCountry.d.ts +0 -3
  123. package/dist/attributes/types/birth/BirthCountry.js.map +0 -1
  124. package/dist/attributes/types/birth/BirthDate.d.ts +0 -9
  125. package/dist/attributes/types/birth/BirthDate.js.map +0 -1
  126. package/dist/attributes/types/birth/BirthDay.d.ts +0 -3
  127. package/dist/attributes/types/birth/BirthDay.js +0 -18
  128. package/dist/attributes/types/birth/BirthDay.js.map +0 -1
  129. package/dist/attributes/types/birth/BirthMonth.d.ts +0 -3
  130. package/dist/attributes/types/birth/BirthMonth.js +0 -18
  131. package/dist/attributes/types/birth/BirthMonth.js.map +0 -1
  132. package/dist/attributes/types/birth/BirthPlace.d.ts +0 -9
  133. package/dist/attributes/types/birth/BirthPlace.js +0 -39
  134. package/dist/attributes/types/birth/BirthPlace.js.map +0 -1
  135. package/dist/attributes/types/birth/BirthState.d.ts +0 -3
  136. package/dist/attributes/types/birth/BirthState.js +0 -18
  137. package/dist/attributes/types/birth/BirthState.js.map +0 -1
  138. package/dist/attributes/types/birth/BirthYear.d.ts +0 -3
  139. package/dist/attributes/types/birth/BirthYear.js +0 -18
  140. package/dist/attributes/types/birth/BirthYear.js.map +0 -1
  141. package/dist/attributes/types/birth/index.d.ts +0 -8
  142. package/dist/attributes/types/birth/index.js +0 -25
  143. package/dist/attributes/types/birth/index.js.map +0 -1
  144. package/dist/attributes/types/idcard/AbstractIDCard.d.ts +0 -3
  145. package/dist/attributes/types/idcard/AbstractIDCard.js +0 -8
  146. package/dist/attributes/types/idcard/AbstractIDCard.js.map +0 -1
  147. package/dist/attributes/types/idcard/IDCardAuthorityName.d.ts +0 -4
  148. package/dist/attributes/types/idcard/IDCardAuthorityName.js +0 -26
  149. package/dist/attributes/types/idcard/IDCardAuthorityName.js.map +0 -1
  150. package/dist/attributes/types/idcard/IDCardDE.d.ts +0 -11
  151. package/dist/attributes/types/idcard/IDCardDE.js +0 -45
  152. package/dist/attributes/types/idcard/IDCardDE.js.map +0 -1
  153. package/dist/attributes/types/idcard/IDCardIssuingDate.d.ts +0 -4
  154. package/dist/attributes/types/idcard/IDCardIssuingDate.js +0 -26
  155. package/dist/attributes/types/idcard/IDCardIssuingDate.js.map +0 -1
  156. package/dist/attributes/types/idcard/index.d.ts +0 -4
  157. package/dist/attributes/types/idcard/index.js +0 -21
  158. package/dist/attributes/types/idcard/index.js.map +0 -1
  159. package/dist/attributes/types/index.d.ts +0 -6
  160. package/dist/attributes/types/index.js +0 -23
  161. package/dist/attributes/types/index.js.map +0 -1
  162. package/dist/attributes/types/measurements/AbstractMeasurement.d.ts +0 -8
  163. package/dist/attributes/types/measurements/AbstractMeasurement.js.map +0 -1
  164. package/dist/attributes/types/measurements/LengthMeasurement.d.ts +0 -18
  165. package/dist/attributes/types/measurements/LengthMeasurement.js +0 -43
  166. package/dist/attributes/types/measurements/LengthMeasurement.js.map +0 -1
  167. package/dist/attributes/types/measurements/index.d.ts +0 -1
  168. package/dist/attributes/types/measurements/index.js +0 -18
  169. package/dist/attributes/types/measurements/index.js.map +0 -1
  170. package/dist/attributes/types/name/AbstractLegalName.d.ts +0 -3
  171. package/dist/attributes/types/name/AbstractLegalName.js +0 -8
  172. package/dist/attributes/types/name/AbstractLegalName.js.map +0 -1
  173. package/dist/attributes/types/name/BirthName.d.ts +0 -4
  174. package/dist/attributes/types/name/BirthName.js +0 -26
  175. package/dist/attributes/types/name/BirthName.js.map +0 -1
  176. package/dist/attributes/types/name/DisplayName.d.ts +0 -4
  177. package/dist/attributes/types/name/DisplayName.js +0 -26
  178. package/dist/attributes/types/name/DisplayName.js.map +0 -1
  179. package/dist/attributes/types/name/GivenName.d.ts +0 -4
  180. package/dist/attributes/types/name/GivenName.js +0 -26
  181. package/dist/attributes/types/name/GivenName.js.map +0 -1
  182. package/dist/attributes/types/name/LegalNameDE.d.ts +0 -11
  183. package/dist/attributes/types/name/LegalNameDE.js.map +0 -1
  184. package/dist/attributes/types/name/Pseudonym.d.ts +0 -4
  185. package/dist/attributes/types/name/Pseudonym.js +0 -26
  186. package/dist/attributes/types/name/Pseudonym.js.map +0 -1
  187. package/dist/attributes/types/name/Salutation.d.ts +0 -11
  188. package/dist/attributes/types/name/Salutation.js.map +0 -1
  189. package/dist/attributes/types/name/Surname.d.ts +0 -4
  190. package/dist/attributes/types/name/Surname.js +0 -26
  191. package/dist/attributes/types/name/Surname.js.map +0 -1
  192. package/dist/attributes/types/name/Title.d.ts +0 -4
  193. package/dist/attributes/types/name/Title.js +0 -26
  194. package/dist/attributes/types/name/Title.js.map +0 -1
  195. package/dist/attributes/types/name/index.d.ts +0 -9
  196. package/dist/attributes/types/name/index.js +0 -26
  197. package/dist/attributes/types/name/index.js.map +0 -1
  198. package/dist/attributes/types/person/Age.d.ts +0 -4
  199. package/dist/attributes/types/person/Age.js +0 -26
  200. package/dist/attributes/types/person/Age.js.map +0 -1
  201. package/dist/attributes/types/person/Gender.d.ts +0 -7
  202. package/dist/attributes/types/person/Gender.js +0 -29
  203. package/dist/attributes/types/person/Gender.js.map +0 -1
  204. package/dist/attributes/types/person/PersonEyeColor.d.ts +0 -4
  205. package/dist/attributes/types/person/PersonEyeColor.js +0 -26
  206. package/dist/attributes/types/person/PersonEyeColor.js.map +0 -1
  207. package/dist/attributes/types/person/PersonHeight.d.ts +0 -4
  208. package/dist/attributes/types/person/PersonHeight.js +0 -29
  209. package/dist/attributes/types/person/PersonHeight.js.map +0 -1
  210. package/dist/attributes/types/person/Sex.d.ts +0 -7
  211. package/dist/attributes/types/person/Sex.js +0 -29
  212. package/dist/attributes/types/person/Sex.js.map +0 -1
  213. package/dist/attributes/types/person/index.d.ts +0 -5
  214. package/dist/attributes/types/person/index.js +0 -22
  215. package/dist/attributes/types/person/index.js.map +0 -1
@@ -1,26 +1,24 @@
1
1
  import { CoreDate, CoreSerializable, ICoreDate, ICoreSerializable } from "@nmshd/transport";
2
2
  import { ContentJSON } from "../ContentJSON";
3
- import { AbstractAttributeValue, AbstractAttributeValueJSON, IAbstractAttributeValue } from "./AbstractAttributeValue";
4
3
  export interface AttributeJSON extends ContentJSON {
5
- content: AbstractAttributeValueJSON;
6
- createdAt: string;
7
- tags?: string[];
4
+ name: string;
5
+ value: any;
8
6
  validFrom?: string;
9
7
  validTo?: string;
10
8
  }
11
9
  export interface IAttribute extends ICoreSerializable {
12
- content: IAbstractAttributeValue;
13
- createdAt: ICoreDate;
14
- tags?: string[] | undefined;
10
+ name: string;
11
+ value: any;
15
12
  validFrom?: ICoreDate;
16
13
  validTo?: ICoreDate;
17
14
  }
18
15
  export declare class Attribute extends CoreSerializable implements IAttribute {
19
- content: AbstractAttributeValue;
20
- createdAt: CoreDate;
21
- tags?: string[];
16
+ name: string;
17
+ value: any;
22
18
  validFrom?: CoreDate;
23
19
  validTo?: CoreDate;
20
+ get namespace(): string | undefined;
21
+ get attribute(): string | undefined;
24
22
  static from(value: IAttribute): Attribute;
25
- static fromJSON(attribute: AttributeJSON): Attribute;
23
+ static fromJSON(value: AttributeJSON): Attribute;
26
24
  }
@@ -13,30 +13,43 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.Attribute = void 0;
14
14
  const ts_serval_1 = require("@js-soft/ts-serval");
15
15
  const transport_1 = require("@nmshd/transport");
16
- const AbstractAttributeValue_1 = require("./AbstractAttributeValue");
17
16
  let Attribute = Attribute_1 = class Attribute extends transport_1.CoreSerializable {
17
+ get namespace() {
18
+ if (!this.name)
19
+ return undefined;
20
+ const ar = this.name.split(".");
21
+ if (ar.length <= 1)
22
+ return undefined;
23
+ return ar[0];
24
+ }
25
+ get attribute() {
26
+ if (!this.name)
27
+ return undefined;
28
+ const ar = this.name.split(".");
29
+ return ar.pop();
30
+ }
18
31
  static from(value) {
19
- return super.fromT(value, Attribute_1);
32
+ return super.from(value, Attribute_1);
20
33
  }
21
- static fromJSON(attribute) {
22
- return super.fromT(attribute, Attribute_1);
34
+ static fromJSON(value) {
35
+ return this.from({
36
+ name: value.name,
37
+ value: value.value,
38
+ validFrom: value.validFrom ? transport_1.CoreDate.from(value.validFrom) : undefined,
39
+ validTo: value.validTo ? transport_1.CoreDate.from(value.validTo) : undefined
40
+ });
23
41
  }
24
42
  };
25
43
  __decorate([
26
- (0, ts_serval_1.validate)(),
27
44
  (0, ts_serval_1.serialize)(),
28
- __metadata("design:type", AbstractAttributeValue_1.AbstractAttributeValue)
29
- ], Attribute.prototype, "content", void 0);
30
- __decorate([
31
45
  (0, ts_serval_1.validate)(),
32
- (0, ts_serval_1.serialize)(),
33
- __metadata("design:type", transport_1.CoreDate)
34
- ], Attribute.prototype, "createdAt", void 0);
46
+ __metadata("design:type", String)
47
+ ], Attribute.prototype, "name", void 0);
35
48
  __decorate([
36
- (0, ts_serval_1.serialize)({ type: String }),
49
+ (0, ts_serval_1.serialize)({ any: true }),
37
50
  (0, ts_serval_1.validate)({ nullable: true }),
38
- __metadata("design:type", Array)
39
- ], Attribute.prototype, "tags", void 0);
51
+ __metadata("design:type", Object)
52
+ ], Attribute.prototype, "value", void 0);
40
53
  __decorate([
41
54
  (0, ts_serval_1.serialize)(),
42
55
  (0, ts_serval_1.validate)({ nullable: true }),
@@ -1 +1 @@
1
- {"version":3,"file":"Attribute.js","sourceRoot":"","sources":["../../src/attributes/Attribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,gDAA2F;AAE3F,qEAAsH;AAmBtH,IAAa,SAAS,iBAAtB,MAAa,SAAU,SAAQ,4BAAgB;IAqBpC,MAAM,CAAC,IAAI,CAAC,KAAiB;QAChC,OAAO,KAAK,CAAC,KAAK,CAAY,KAAK,EAAE,WAAS,CAAC,CAAA;IACnD,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,SAAwB;QAC3C,OAAO,KAAK,CAAC,KAAK,CAAY,SAAS,EAAE,WAAS,CAAC,CAAA;IACvD,CAAC;CACJ,CAAA;AAzBG;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACI,+CAAsB;0CAAA;AAItC;IAFC,IAAA,oBAAQ,GAAE;IACV,IAAA,qBAAS,GAAE;8BACM,oBAAQ;4CAAA;AAI1B;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;4CAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,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C,OAAO,CAAC,CAAC,CAAC,oBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;SACpE,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AAvCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;uCACQ;AAInB;IAFC,IAAA,qBAAS,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACZ;AAIjB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;4CAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,oBAAQ;0CAAA;AAfhB,SAAS;IADrB,IAAA,gBAAI,EAAC,WAAW,CAAC;GACL,SAAS,CA0CrB;AA1CY,8BAAS"}
@@ -0,0 +1,16 @@
1
+ import { Serializable } from "@js-soft/ts-serval";
2
+ export interface IAttributeName {
3
+ name: string;
4
+ }
5
+ export declare class AttributeName extends Serializable implements IAttributeName {
6
+ set name(value: string);
7
+ get name(): string;
8
+ protected _name: string;
9
+ constructor(name: string);
10
+ protected checkName(name: string, throwError?: boolean): Error | null;
11
+ static from(value: any): AttributeName;
12
+ static deserialize(value: string): AttributeName;
13
+ toString(): string;
14
+ serialize(): string;
15
+ toJSON(): string;
16
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var AttributeName_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.AttributeName = void 0;
14
+ const ts_serval_1 = require("@js-soft/ts-serval");
15
+ let AttributeName = AttributeName_1 = class AttributeName extends ts_serval_1.Serializable {
16
+ constructor(name) {
17
+ super();
18
+ this.checkName(name);
19
+ this._name = name;
20
+ }
21
+ set name(value) {
22
+ this.checkName(value);
23
+ this._name = value;
24
+ }
25
+ get name() {
26
+ return this._name;
27
+ }
28
+ checkName(name, throwError = true) {
29
+ let err;
30
+ if (!name) {
31
+ err = new Error("error.content.attribute.nameMustBeSet");
32
+ }
33
+ if (err && throwError) {
34
+ throw err;
35
+ }
36
+ return null;
37
+ }
38
+ static from(value) {
39
+ if (typeof value === "string") {
40
+ return new AttributeName_1(value);
41
+ }
42
+ return new AttributeName_1(value.name);
43
+ }
44
+ static deserialize(value) {
45
+ return new AttributeName_1(value);
46
+ }
47
+ toString() {
48
+ return this._name;
49
+ }
50
+ serialize() {
51
+ return this._name;
52
+ }
53
+ toJSON() {
54
+ return this._name;
55
+ }
56
+ };
57
+ AttributeName = AttributeName_1 = __decorate([
58
+ (0, ts_serval_1.type)("AttributeName"),
59
+ __metadata("design:paramtypes", [String])
60
+ ], AttributeName);
61
+ exports.AttributeName = AttributeName;
62
+ //# sourceMappingURL=AttributeName.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributeName.js","sourceRoot":"","sources":["../../src/attributes/AttributeName.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAuD;AAOvD,IAAa,aAAa,qBAA1B,MAAa,aAAc,SAAQ,wBAAY;IAU3C,YAAmB,IAAY;QAC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1,
4
+ "Address" = 2,
5
+ "Payment" = 3,
6
+ "Communication" = 4,
7
+ "Corporation" = 5
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttributeNamespaces = void 0;
4
+ var AttributeNamespaces;
5
+ (function (AttributeNamespaces) {
6
+ AttributeNamespaces[AttributeNamespaces["Person"] = 0] = "Person";
7
+ AttributeNamespaces[AttributeNamespaces["Thing"] = 1] = "Thing";
8
+ AttributeNamespaces[AttributeNamespaces["Address"] = 2] = "Address";
9
+ AttributeNamespaces[AttributeNamespaces["Payment"] = 3] = "Payment";
10
+ AttributeNamespaces[AttributeNamespaces["Communication"] = 4] = "Communication";
11
+ AttributeNamespaces[AttributeNamespaces["Corporation"] = 5] = "Corporation";
12
+ })(AttributeNamespaces = exports.AttributeNamespaces || (exports.AttributeNamespaces = {}));
13
+ //# sourceMappingURL=AttributeNamespace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributeNamespace.js","sourceRoot":"","sources":["../../src/attributes/AttributeNamespace.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC3B,iEAAQ,CAAA;IACR,+DAAO,CAAA;IACP,mEAAS,CAAA;IACT,mEAAS,CAAA;IACT,+EAAe,CAAA;IACf,2EAAa,CAAA;AACjB,CAAC,EAPW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAO9B"}
@@ -0,0 +1,22 @@
1
+ import { Attribute, IAttribute } from "../Attribute";
2
+ export interface IAddress extends IAttribute {
3
+ street: string;
4
+ houseNo: string;
5
+ zipCode: string;
6
+ city: string;
7
+ country: string;
8
+ title?: string;
9
+ description?: string;
10
+ state?: string;
11
+ }
12
+ export declare class Address extends Attribute implements IAddress {
13
+ street: string;
14
+ houseNo: string;
15
+ zipCode: string;
16
+ city: string;
17
+ country: string;
18
+ title?: string;
19
+ description?: string;
20
+ state?: string;
21
+ static from(value: IAddress): Address;
22
+ }
@@ -9,47 +9,56 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.DeliveryBoxAddress = void 0;
12
+ exports.Address = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
- const AbstractAddress_1 = require("./AbstractAddress");
15
- const City_1 = require("./City");
16
- const Country_1 = require("./Country");
17
- const State_1 = require("./State");
18
- const ZipCode_1 = require("./ZipCode");
19
- let DeliveryBoxAddress = class DeliveryBoxAddress extends AbstractAddress_1.AbstractAddress {
14
+ const Attribute_1 = require("../Attribute");
15
+ let Address = class Address extends Attribute_1.Attribute {
16
+ static from(value) {
17
+ return super.from(value);
18
+ }
20
19
  };
21
20
  __decorate([
22
21
  (0, ts_serval_1.serialize)(),
23
22
  (0, ts_serval_1.validate)(),
24
23
  __metadata("design:type", String)
25
- ], DeliveryBoxAddress.prototype, "userId", void 0);
24
+ ], Address.prototype, "street", void 0);
26
25
  __decorate([
27
26
  (0, ts_serval_1.serialize)(),
28
27
  (0, ts_serval_1.validate)(),
29
28
  __metadata("design:type", String)
30
- ], DeliveryBoxAddress.prototype, "deliveryBoxId", void 0);
29
+ ], Address.prototype, "houseNo", void 0);
31
30
  __decorate([
32
31
  (0, ts_serval_1.serialize)(),
33
32
  (0, ts_serval_1.validate)(),
34
- __metadata("design:type", ZipCode_1.ZipCode)
35
- ], DeliveryBoxAddress.prototype, "zipCode", void 0);
33
+ __metadata("design:type", String)
34
+ ], Address.prototype, "zipCode", void 0);
36
35
  __decorate([
37
36
  (0, ts_serval_1.serialize)(),
38
37
  (0, ts_serval_1.validate)(),
39
- __metadata("design:type", City_1.City)
40
- ], DeliveryBoxAddress.prototype, "city", void 0);
38
+ __metadata("design:type", String)
39
+ ], Address.prototype, "city", void 0);
41
40
  __decorate([
42
41
  (0, ts_serval_1.serialize)(),
43
42
  (0, ts_serval_1.validate)(),
44
- __metadata("design:type", Country_1.Country)
45
- ], DeliveryBoxAddress.prototype, "country", void 0);
43
+ __metadata("design:type", String)
44
+ ], Address.prototype, "country", void 0);
45
+ __decorate([
46
+ (0, ts_serval_1.serialize)(),
47
+ (0, ts_serval_1.validate)({ nullable: true }),
48
+ __metadata("design:type", String)
49
+ ], Address.prototype, "title", void 0);
50
+ __decorate([
51
+ (0, ts_serval_1.serialize)(),
52
+ (0, ts_serval_1.validate)({ nullable: true }),
53
+ __metadata("design:type", String)
54
+ ], Address.prototype, "description", void 0);
46
55
  __decorate([
47
56
  (0, ts_serval_1.serialize)(),
48
57
  (0, ts_serval_1.validate)({ nullable: true }),
49
- __metadata("design:type", State_1.State)
50
- ], DeliveryBoxAddress.prototype, "state", void 0);
51
- DeliveryBoxAddress = __decorate([
52
- (0, ts_serval_1.type)("DeliveryBoxAddress")
53
- ], DeliveryBoxAddress);
54
- exports.DeliveryBoxAddress = DeliveryBoxAddress;
55
- //# sourceMappingURL=DeliveryBoxAddress.js.map
58
+ __metadata("design:type", String)
59
+ ], Address.prototype, "state", void 0);
60
+ Address = __decorate([
61
+ (0, ts_serval_1.type)("Address")
62
+ ], Address);
63
+ exports.Address = Address;
64
+ //# sourceMappingURL=Address.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Address.js","sourceRoot":"","sources":["../../../src/attributes/addresses/Address.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,4CAAoD;AAcpD,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,qBAAS;IAiC3B,MAAM,CAAC,IAAI,CAAC,KAAe;QAC9B,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAY,CAAA;IACvC,CAAC;CACJ,CAAA;AAjCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;uCACU;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wCACW;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wCACW;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;qCACQ;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wCACW;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACR;AA/BZ,OAAO;IADnB,IAAA,gBAAI,EAAC,SAAS,CAAC;GACH,OAAO,CAoCnB;AApCY,0BAAO"}
@@ -0,0 +1,12 @@
1
+ import { Address, IAddress } from "./Address";
2
+ export interface IDeliveryAddress extends IAddress {
3
+ deliveryPhone?: string;
4
+ deliveryPlacement?: string;
5
+ deliveryTimeframe?: string;
6
+ }
7
+ export declare class DeliveryAddress extends Address implements IDeliveryAddress {
8
+ deliveryPhone?: string;
9
+ deliveryPlacement?: string;
10
+ deliveryTimeframe?: string;
11
+ static from(value: IDeliveryAddress): DeliveryAddress;
12
+ }
@@ -9,31 +9,31 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BirthDate = void 0;
12
+ exports.DeliveryAddress = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
- const AbstractAttributeValue_1 = require("../../AbstractAttributeValue");
15
- const BirthDay_1 = require("./BirthDay");
16
- const BirthMonth_1 = require("./BirthMonth");
17
- const BirthYear_1 = require("./BirthYear");
18
- let BirthDate = class BirthDate extends AbstractAttributeValue_1.AbstractAttributeValue {
14
+ const Address_1 = require("./Address");
15
+ let DeliveryAddress = class DeliveryAddress extends Address_1.Address {
16
+ static from(value) {
17
+ return super.from(value);
18
+ }
19
19
  };
20
20
  __decorate([
21
21
  (0, ts_serval_1.serialize)(),
22
22
  (0, ts_serval_1.validate)(),
23
- __metadata("design:type", BirthDay_1.BirthDay)
24
- ], BirthDate.prototype, "day", void 0);
23
+ __metadata("design:type", String)
24
+ ], DeliveryAddress.prototype, "deliveryPhone", void 0);
25
25
  __decorate([
26
26
  (0, ts_serval_1.serialize)(),
27
27
  (0, ts_serval_1.validate)(),
28
- __metadata("design:type", BirthMonth_1.BirthMonth)
29
- ], BirthDate.prototype, "month", void 0);
28
+ __metadata("design:type", String)
29
+ ], DeliveryAddress.prototype, "deliveryPlacement", void 0);
30
30
  __decorate([
31
31
  (0, ts_serval_1.serialize)(),
32
32
  (0, ts_serval_1.validate)(),
33
- __metadata("design:type", BirthYear_1.BirthYear)
34
- ], BirthDate.prototype, "year", void 0);
35
- BirthDate = __decorate([
36
- (0, ts_serval_1.type)("BirthDate")
37
- ], BirthDate);
38
- exports.BirthDate = BirthDate;
39
- //# sourceMappingURL=BirthDate.js.map
33
+ __metadata("design:type", String)
34
+ ], DeliveryAddress.prototype, "deliveryTimeframe", void 0);
35
+ DeliveryAddress = __decorate([
36
+ (0, ts_serval_1.type)("DeliveryAddress")
37
+ ], DeliveryAddress);
38
+ exports.DeliveryAddress = DeliveryAddress;
39
+ //# sourceMappingURL=DeliveryAddress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeliveryAddress.js","sourceRoot":"","sources":["../../../src/attributes/addresses/DeliveryAddress.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA8D;AAC9D,uCAA6C;AAS7C,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,iBAAO;IAajC,MAAM,CAAC,IAAI,CAAC,KAAuB;QACtC,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAoB,CAAA;IAC/C,CAAC;CACJ,CAAA;AAbG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;sDACkB;AAI7B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;0DACsB;AAIjC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;0DACsB;AAXxB,eAAe;IAD3B,IAAA,gBAAI,EAAC,iBAAiB,CAAC;GACX,eAAe,CAgB3B;AAhBY,0CAAe"}
@@ -5,10 +5,10 @@ const ts_serval_1 = require("@js-soft/ts-serval");
5
5
  const crypto_1 = require("@nmshd/crypto");
6
6
  const transport_1 = require("@nmshd/transport");
7
7
  exports.buildInformation = {
8
- version: "1.2.2",
9
- build: "15",
10
- date: "2022-03-17T16:26:13+00:00",
11
- commit: "be09286cf8b0d5c773d5df6305b9dffdf11b3b41",
8
+ version: "2.0.0-alpha.2",
9
+ build: "18",
10
+ date: "2022-03-21T12:05:58+00:00",
11
+ commit: "d90382fb1c5cdd73dd95dfe2b37bf9dadcb2e466",
12
12
  dependencies: {"@js-soft/logging-abstractions":"^1.0.0"},
13
13
  libraries: {
14
14
  serval: ts_serval_1.buildInformation,
@@ -19,8 +19,8 @@ var FormType;
19
19
  FormType["Date"] = "date";
20
20
  FormType["Text"] = "text";
21
21
  })(FormType = exports.FormType || (exports.FormType = {}));
22
- let FormItem = class FormItem extends ts_serval_1.Serializable {
23
- };
22
+ class FormItem extends ts_serval_1.Serializable {
23
+ }
24
24
  __decorate([
25
25
  (0, ts_serval_1.serialize)(),
26
26
  (0, ts_serval_1.validate)(),
@@ -31,12 +31,9 @@ __decorate([
31
31
  (0, ts_serval_1.validate)(),
32
32
  __metadata("design:type", String)
33
33
  ], FormItem.prototype, "type", void 0);
34
- FormItem = __decorate([
35
- (0, ts_serval_1.type)("FormItem")
36
- ], FormItem);
37
34
  exports.FormItem = FormItem;
38
- let FormItemVisible = class FormItemVisible extends FormItem {
39
- };
35
+ class FormItemVisible extends FormItem {
36
+ }
40
37
  __decorate([
41
38
  (0, ts_serval_1.serialize)(),
42
39
  (0, ts_serval_1.validate)(),
@@ -52,8 +49,5 @@ __decorate([
52
49
  (0, ts_serval_1.validate)({ nullable: true }),
53
50
  __metadata("design:type", String)
54
51
  ], FormItemVisible.prototype, "help", void 0);
55
- FormItemVisible = __decorate([
56
- (0, ts_serval_1.type)("FormItemVisible")
57
- ], FormItemVisible);
58
52
  exports.FormItemVisible = FormItemVisible;
59
53
  //# sourceMappingURL=FormItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormItem.js","sourceRoot":"","sources":["../../src/forms/FormItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA2F;AAG3F,IAAY,QAMX;AAND,WAAY,QAAQ;IAChB,mCAAuB,CAAA;IACvB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,yBAAa,CAAA;AACjB,CAAC,EANW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAMnB;AAmBD,IAAsB,QAAQ,GAA9B,MAAsB,QAAS,SAAQ,wBAAY;CAQlD,CAAA;AALG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;qCACO;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;sCACU;AAPH,QAAQ;IAD7B,IAAA,gBAAI,EAAC,UAAU,CAAC;GACK,QAAQ,CAQ7B;AARqB,4BAAQ;AAgB9B,IAAsB,eAAe,GAArC,MAAsB,eAAgB,SAAQ,QAAQ;CAYrD,CAAA;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;8CACS;AAIpB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACJ;AAIzB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACT;AAXF,eAAe;IADpC,IAAA,gBAAI,EAAC,iBAAiB,CAAC;GACF,eAAe,CAYpC;AAZqB,0CAAe"}
1
+ {"version":3,"file":"FormItem.js","sourceRoot":"","sources":["../../src/forms/FormItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqF;AAGrF,IAAY,QAMX;AAND,WAAY,QAAQ;IAChB,mCAAuB,CAAA;IACvB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,yBAAa,CAAA;AACjB,CAAC,EANW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAMnB;AAkBD,MAAsB,QAAS,SAAQ,wBAAY;CAQlD;AALG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;qCACO;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;sCACU;AAPzB,4BAQC;AAOD,MAAsB,eAAgB,SAAQ,QAAQ;CAYrD;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;8CACS;AAIpB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACJ;AAIzB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACT;AAXxB,0CAYC"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
- export * from "./attributes";
1
+ export * from "./attributes/Attribute";
2
+ export * from "./attributes/AttributeName";
3
+ export * from "./attributes/AttributeNamespace";
2
4
  export * from "./authorizations/Authorization";
3
5
  export * from "./buildInformation";
4
6
  export * from "./ContentJSON";
@@ -7,3 +9,10 @@ export * from "./messages/Mail";
7
9
  export * from "./messages/RequestMail";
8
10
  export * from "./requests/AttributesChangeRequest";
9
11
  export * from "./requests/AttributesShareRequest";
12
+ export * from "./requests/Request";
13
+ export * from "./requests/RequestItem";
14
+ export * from "./requests/RequestItemGroup";
15
+ export * from "./requests/Response";
16
+ export * from "./requests/ResponseItem";
17
+ export * from "./requests/ResponseItemGroup";
18
+ export * from "./requests/ResponseItemResult";
package/dist/index.js CHANGED
@@ -14,7 +14,9 @@ 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("./attributes"), exports);
17
+ __exportStar(require("./attributes/Attribute"), exports);
18
+ __exportStar(require("./attributes/AttributeName"), exports);
19
+ __exportStar(require("./attributes/AttributeNamespace"), exports);
18
20
  __exportStar(require("./authorizations/Authorization"), exports);
19
21
  __exportStar(require("./buildInformation"), exports);
20
22
  __exportStar(require("./ContentJSON"), exports);
@@ -23,4 +25,11 @@ __exportStar(require("./messages/Mail"), exports);
23
25
  __exportStar(require("./messages/RequestMail"), exports);
24
26
  __exportStar(require("./requests/AttributesChangeRequest"), exports);
25
27
  __exportStar(require("./requests/AttributesShareRequest"), exports);
28
+ __exportStar(require("./requests/Request"), exports);
29
+ __exportStar(require("./requests/RequestItem"), exports);
30
+ __exportStar(require("./requests/RequestItemGroup"), exports);
31
+ __exportStar(require("./requests/Response"), exports);
32
+ __exportStar(require("./requests/ResponseItem"), exports);
33
+ __exportStar(require("./requests/ResponseItemGroup"), exports);
34
+ __exportStar(require("./requests/ResponseItemResult"), exports);
26
35
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,iEAA8C;AAC9C,qDAAkC;AAClC,gDAA6B;AAC7B,0CAAuB;AACvB,kDAA+B;AAC/B,yDAAsC;AACtC,qEAAkD;AAClD,oEAAiD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,6DAA0C;AAC1C,kEAA+C;AAC/C,iEAA8C;AAC9C,qDAAkC;AAClC,gDAA6B;AAC7B,0CAAuB;AACvB,kDAA+B;AAC/B,yDAAsC;AACtC,qEAAkD;AAClD,oEAAiD;AACjD,qDAAkC;AAClC,yDAAsC;AACtC,8DAA2C;AAC3C,sDAAmC;AACnC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C"}
@@ -25,13 +25,12 @@ let Mail = Mail_1 = class Mail extends ts_serval_1.SerializableAsync {
25
25
  return await super.fromT(value, Mail_1);
26
26
  }
27
27
  static async fromJSON(value) {
28
- var _a, _b;
29
28
  return await this.from({
30
29
  body: value.body,
31
30
  subject: value.subject,
32
31
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
33
- to: (_a = value.to) === null || _a === void 0 ? void 0 : _a.map((recipient) => transport_1.CoreAddress.from(recipient)),
34
- cc: (_b = value.cc) === null || _b === void 0 ? void 0 : _b.map((recipient) => transport_1.CoreAddress.from(recipient))
32
+ to: value.to?.map((recipient) => transport_1.CoreAddress.from(recipient)),
33
+ cc: value.cc?.map((recipient) => transport_1.CoreAddress.from(recipient))
35
34
  });
36
35
  }
37
36
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Mail.js","sourceRoot":"","sources":["../../src/messages/Mail.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,gDAA4D;AAiB5D,IAAa,IAAI,YAAjB,MAAa,IAAK,SAAQ,6BAAiB;IAiBhC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAY;QACjC,IAAI,OAAO,KAAK,CAAC,EAAE,KAAK,WAAW,EAAE;YACjC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAA;SAChB;QACD,IAAI,O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W,EAAE,CAAC;IAChC,IAAA,oBAAQ,EAAC,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC;;gCAC9D;AAIxB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,uBAAW,EAAE,CAAC;IAChC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gCACJ;AAIzB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;qCACW;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;kCACQ;AAfV,IAAI;IADhB,IAAA,gBAAI,EAAC,MAAM,CAAC;GACA,IAAI,CAsChB;AAtCY,oBAAI"}
@@ -0,0 +1,29 @@
1
+ import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
2
+ import { Attribute, AttributeJSON, IAttribute } from "../attributes/Attribute";
3
+ import { Authorization, AuthorizationJSON, IAuthorization } from "../authorizations/Authorization";
4
+ import { ContentJSON } from "../ContentJSON";
5
+ export interface RelationshipCreationChangeRequestBodyJSON extends ContentJSON {
6
+ title?: string;
7
+ sessionIdentifier?: string;
8
+ metadata?: any;
9
+ sharedAttributes?: AttributeJSON[];
10
+ sharedCertificates?: any[];
11
+ sharedAuthorizations?: AuthorizationJSON[];
12
+ }
13
+ export interface IRelationshipCreationChangeRequestBody extends ISerializableAsync {
14
+ title?: string;
15
+ sessionIdentifier?: string;
16
+ metadata?: any;
17
+ sharedAttributes?: IAttribute[];
18
+ sharedCertificates?: any[];
19
+ sharedAuthorizations?: IAuthorization[];
20
+ }
21
+ export declare class RelationshipCreationChangeRequestBody extends SerializableAsync implements IRelationshipCreationChangeRequestBody {
22
+ title?: string;
23
+ sessionIdentifier?: string;
24
+ metadata?: any;
25
+ sharedAttributes?: Attribute[];
26
+ sharedCertificates?: any[];
27
+ sharedAuthorizations?: Authorization[];
28
+ static from(value: IRelationshipCreationChangeRequestBody): Promise<RelationshipCreationChangeRequestBody>;
29
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var RelationshipCreationChangeRequestBody_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.RelationshipCreationChangeRequestBody = void 0;
14
+ const ts_serval_1 = require("@js-soft/ts-serval");
15
+ const Attribute_1 = require("../attributes/Attribute");
16
+ const Authorization_1 = require("../authorizations/Authorization");
17
+ let RelationshipCreationChangeRequestBody = RelationshipCreationChangeRequestBody_1 = class RelationshipCreationChangeRequestBody extends ts_serval_1.SerializableAsync {
18
+ static async from(value) {
19
+ return (await super.from(value, RelationshipCreationChangeRequestBody_1));
20
+ }
21
+ };
22
+ __decorate([
23
+ (0, ts_serval_1.serialize)(),
24
+ (0, ts_serval_1.validate)({ nullable: true }),
25
+ __metadata("design:type", String)
26
+ ], RelationshipCreationChangeRequestBody.prototype, "title", void 0);
27
+ __decorate([
28
+ (0, ts_serval_1.serialize)(),
29
+ (0, ts_serval_1.validate)({ nullable: true }),
30
+ __metadata("design:type", String)
31
+ ], RelationshipCreationChangeRequestBody.prototype, "sessionIdentifier", void 0);
32
+ __decorate([
33
+ (0, ts_serval_1.serialize)({ any: true }),
34
+ (0, ts_serval_1.validate)({ nullable: true }),
35
+ __metadata("design:type", Object)
36
+ ], RelationshipCreationChangeRequestBody.prototype, "metadata", void 0);
37
+ __decorate([
38
+ (0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
39
+ (0, ts_serval_1.validate)({ nullable: true }),
40
+ __metadata("design:type", Array)
41
+ ], RelationshipCreationChangeRequestBody.prototype, "sharedAttributes", void 0);
42
+ __decorate([
43
+ (0, ts_serval_1.serialize)(),
44
+ (0, ts_serval_1.validate)({ nullable: true }),
45
+ __metadata("design:type", Array)
46
+ ], RelationshipCreationChangeRequestBody.prototype, "sharedCertificates", void 0);
47
+ __decorate([
48
+ (0, ts_serval_1.serialize)({ type: Authorization_1.Authorization }),
49
+ (0, ts_serval_1.validate)({ nullable: true }),
50
+ __metadata("design:type", Array)
51
+ ], RelationshipCreationChangeRequestBody.prototype, "sharedAuthorizations", void 0);
52
+ RelationshipCreationChangeRequestBody = RelationshipCreationChangeRequestBody_1 = __decorate([
53
+ (0, ts_serval_1.type)("RelationshipCreationChangeRequestBody")
54
+ ], RelationshipCreationChangeRequestBody);
55
+ exports.RelationshipCreationChangeRequestBody = RelationshipCreationChangeRequestBody;
56
+ //# sourceMappingURL=RelationshipCreationChangeRequestBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelationshipCreationChangeRequestBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeRequestBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,uDAA8E;AAC9E,mEAAkG;AAsBlG,IAAa,qCAAqC,6CAAlD,MAAa,qCACT,SAAQ,6BAAiB;IA2BlB,MAAM,CAAC,KAAK,CAAC,IAAI,CACpB,KAA6C;QAE7C,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,uCAAqC,CAAC,CAA0C,CAAA;IACpH,CAAC;CACJ,CAAA;AA3BG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gFACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACR;AAIrB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+EACQ;AAIrC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iFACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,6BAAa,EAAE,CAAC;IAClC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mFACgB;AA1BpC,qCAAqC;IADjD,IAAA,gBAAI,EAAC,uCAAuC,CAAC;GACjC,qCAAqC,CAiCjD;AAjCY,sFAAqC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=RelationshipCreationChangeResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelationshipCreationChangeResponseBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipCreationChangeResponseBody.ts"],"names":[],"mappings":""}