@nmshd/content 1.3.0 → 2.0.0-alpha.2.1

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 (238) 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/index.d.ts +4 -10
  18. package/dist/index.js +4 -10
  19. package/dist/index.js.map +1 -1
  20. package/dist/messages/RequestMail.d.ts +2 -2
  21. package/dist/messages/RequestMail.js +4 -4
  22. package/dist/messages/RequestMail.js.map +1 -1
  23. package/dist/relationships/RelationshipCreationChangeRequestBody.d.ts +29 -0
  24. package/dist/relationships/RelationshipCreationChangeRequestBody.js +56 -0
  25. package/dist/relationships/RelationshipCreationChangeRequestBody.js.map +1 -0
  26. package/dist/relationships/RelationshipCreationChangeResponseBody.d.ts +0 -0
  27. package/dist/relationships/RelationshipCreationChangeResponseBody.js +2 -0
  28. package/dist/relationships/RelationshipCreationChangeResponseBody.js.map +1 -0
  29. package/dist/relationships/RelationshipExistsAction.d.ts +7 -0
  30. package/dist/{attributes/types/birth/BirthCountry.js → relationships/RelationshipExistsAction.js} +7 -8
  31. package/dist/relationships/RelationshipExistsAction.js.map +1 -0
  32. package/dist/relationships/RelationshipExistsMessageAction.d.ts +11 -0
  33. package/dist/{attributes/types/address/City.js → relationships/RelationshipExistsMessageAction.js} +10 -10
  34. package/dist/relationships/RelationshipExistsMessageAction.js.map +1 -0
  35. package/dist/relationships/RelationshipTemplateBody.d.ts +42 -0
  36. package/dist/relationships/RelationshipTemplateBody.js +73 -0
  37. package/dist/relationships/RelationshipTemplateBody.js.map +1 -0
  38. package/dist/requests/Request.js +1 -1
  39. package/dist/requests/Request.js.map +1 -1
  40. package/dist/requests/RequestItemGroup.d.ts +1 -0
  41. package/dist/requests/RequestItemGroup.js +6 -2
  42. package/dist/requests/RequestItemGroup.js.map +1 -1
  43. package/dist/requests/index.d.ts +7 -0
  44. package/dist/{attributes/types/birth → requests}/index.js +7 -8
  45. package/dist/requests/index.js.map +1 -0
  46. package/dist/requests/{AttributesChangeRequest.d.ts → old/AttributesChangeRequest.d.ts} +2 -2
  47. package/dist/requests/{AttributesChangeRequest.js → old/AttributesChangeRequest.js} +3 -3
  48. package/dist/requests/old/AttributesChangeRequest.js.map +1 -0
  49. package/dist/requests/old/AttributesRequest.d.ts +49 -0
  50. package/dist/requests/old/AttributesRequest.js +65 -0
  51. package/dist/requests/old/AttributesRequest.js.map +1 -0
  52. package/dist/requests/{AttributesShareRequest.d.ts → old/AttributesShareRequest.d.ts} +1 -1
  53. package/dist/requests/{AttributesShareRequest.js → old/AttributesShareRequest.js} +0 -0
  54. package/dist/requests/old/AttributesShareRequest.js.map +1 -0
  55. package/dist/requests/response/AcceptResponseItem.d.ts +12 -0
  56. package/dist/{attributes/types/birth/BirthMonth.js → requests/response/AcceptResponseItem.js} +12 -8
  57. package/dist/requests/response/AcceptResponseItem.js.map +1 -0
  58. package/dist/requests/response/ErrorResponseItem.d.ts +18 -0
  59. package/dist/{attributes/types/measurements/AbstractMeasurement.js → requests/response/ErrorResponseItem.js} +16 -12
  60. package/dist/requests/response/ErrorResponseItem.js.map +1 -0
  61. package/dist/requests/response/RejectResponseItem.d.ts +18 -0
  62. package/dist/{attributes/types/address/Country.js → requests/response/RejectResponseItem.js} +18 -9
  63. package/dist/requests/response/RejectResponseItem.js.map +1 -0
  64. package/dist/requests/{Response.d.ts → response/Response.d.ts} +1 -1
  65. package/dist/requests/{Response.js → response/Response.js} +1 -1
  66. package/dist/requests/response/Response.js.map +1 -0
  67. package/dist/requests/response/ResponseItem.d.ts +15 -0
  68. package/dist/{attributes/types/address/AbstractAddress.js → requests/response/ResponseItem.js} +11 -6
  69. package/dist/requests/response/ResponseItem.js.map +1 -0
  70. package/dist/requests/{ResponseItemGroup.d.ts → response/ResponseItemGroup.d.ts} +2 -1
  71. package/dist/requests/{ResponseItemGroup.js → response/ResponseItemGroup.js} +6 -2
  72. package/dist/requests/response/ResponseItemGroup.js.map +1 -0
  73. package/dist/requests/{ResponseItemResult.d.ts → response/ResponseItemResult.d.ts} +0 -0
  74. package/dist/requests/{ResponseItemResult.js → response/ResponseItemResult.js} +0 -0
  75. package/dist/requests/response/ResponseItemResult.js.map +1 -0
  76. package/dist/requests/response/index.d.ts +7 -0
  77. package/dist/{attributes/types/measurements → requests/response}/index.js +7 -1
  78. package/dist/requests/response/index.js.map +1 -0
  79. package/lib-web/nmshd.content.js +520 -2081
  80. package/lib-web/nmshd.content.min.js +1 -1
  81. package/package.json +9 -9
  82. package/dist/attributes/AbstractAttributeValue.d.ts +0 -9
  83. package/dist/attributes/AbstractAttributeValue.js +0 -8
  84. package/dist/attributes/AbstractAttributeValue.js.map +0 -1
  85. package/dist/attributes/AttributeQuery.d.ts +0 -12
  86. package/dist/attributes/AttributeQuery.js +0 -43
  87. package/dist/attributes/AttributeQuery.js.map +0 -1
  88. package/dist/attributes/index.d.ts +0 -4
  89. package/dist/attributes/index.js +0 -21
  90. package/dist/attributes/index.js.map +0 -1
  91. package/dist/attributes/types/AbstractDay.d.ts +0 -7
  92. package/dist/attributes/types/AbstractDay.js +0 -26
  93. package/dist/attributes/types/AbstractDay.js.map +0 -1
  94. package/dist/attributes/types/AbstractMonth.d.ts +0 -25
  95. package/dist/attributes/types/AbstractMonth.js +0 -44
  96. package/dist/attributes/types/AbstractMonth.js.map +0 -1
  97. package/dist/attributes/types/AbstractYear.d.ts +0 -4
  98. package/dist/attributes/types/AbstractYear.js +0 -23
  99. package/dist/attributes/types/AbstractYear.js.map +0 -1
  100. package/dist/attributes/types/AttributeList.d.ts +0 -1
  101. package/dist/attributes/types/AttributeList.js +0 -37
  102. package/dist/attributes/types/AttributeList.js.map +0 -1
  103. package/dist/attributes/types/AttributeTypeMapping.d.ts +0 -1
  104. package/dist/attributes/types/AttributeTypeMapping.js +0 -9
  105. package/dist/attributes/types/AttributeTypeMapping.js.map +0 -1
  106. package/dist/attributes/types/address/AbstractAddress.d.ts +0 -4
  107. package/dist/attributes/types/address/AbstractAddress.js.map +0 -1
  108. package/dist/attributes/types/address/City.d.ts +0 -4
  109. package/dist/attributes/types/address/City.js.map +0 -1
  110. package/dist/attributes/types/address/Country.d.ts +0 -4
  111. package/dist/attributes/types/address/Country.js.map +0 -1
  112. package/dist/attributes/types/address/DeliveryBoxAddress.d.ts +0 -13
  113. package/dist/attributes/types/address/DeliveryBoxAddress.js.map +0 -1
  114. package/dist/attributes/types/address/HouseNumber.d.ts +0 -4
  115. package/dist/attributes/types/address/HouseNumber.js +0 -26
  116. package/dist/attributes/types/address/HouseNumber.js.map +0 -1
  117. package/dist/attributes/types/address/PostOfficeBoxAddress.d.ts +0 -12
  118. package/dist/attributes/types/address/PostOfficeBoxAddress.js +0 -50
  119. package/dist/attributes/types/address/PostOfficeBoxAddress.js.map +0 -1
  120. package/dist/attributes/types/address/State.d.ts +0 -4
  121. package/dist/attributes/types/address/State.js +0 -26
  122. package/dist/attributes/types/address/State.js.map +0 -1
  123. package/dist/attributes/types/address/Street.d.ts +0 -4
  124. package/dist/attributes/types/address/Street.js +0 -26
  125. package/dist/attributes/types/address/Street.js.map +0 -1
  126. package/dist/attributes/types/address/StreetAddress.d.ts +0 -15
  127. package/dist/attributes/types/address/StreetAddress.js +0 -57
  128. package/dist/attributes/types/address/StreetAddress.js.map +0 -1
  129. package/dist/attributes/types/address/ZipCode.d.ts +0 -4
  130. package/dist/attributes/types/address/ZipCode.js +0 -26
  131. package/dist/attributes/types/address/ZipCode.js.map +0 -1
  132. package/dist/attributes/types/address/index.d.ts +0 -10
  133. package/dist/attributes/types/address/index.js +0 -27
  134. package/dist/attributes/types/address/index.js.map +0 -1
  135. package/dist/attributes/types/birth/BirthCity.d.ts +0 -3
  136. package/dist/attributes/types/birth/BirthCity.js +0 -18
  137. package/dist/attributes/types/birth/BirthCity.js.map +0 -1
  138. package/dist/attributes/types/birth/BirthCountry.d.ts +0 -3
  139. package/dist/attributes/types/birth/BirthCountry.js.map +0 -1
  140. package/dist/attributes/types/birth/BirthDate.d.ts +0 -9
  141. package/dist/attributes/types/birth/BirthDate.js.map +0 -1
  142. package/dist/attributes/types/birth/BirthDay.d.ts +0 -3
  143. package/dist/attributes/types/birth/BirthDay.js +0 -18
  144. package/dist/attributes/types/birth/BirthDay.js.map +0 -1
  145. package/dist/attributes/types/birth/BirthMonth.d.ts +0 -3
  146. package/dist/attributes/types/birth/BirthMonth.js.map +0 -1
  147. package/dist/attributes/types/birth/BirthPlace.d.ts +0 -9
  148. package/dist/attributes/types/birth/BirthPlace.js +0 -39
  149. package/dist/attributes/types/birth/BirthPlace.js.map +0 -1
  150. package/dist/attributes/types/birth/BirthState.d.ts +0 -3
  151. package/dist/attributes/types/birth/BirthState.js +0 -18
  152. package/dist/attributes/types/birth/BirthState.js.map +0 -1
  153. package/dist/attributes/types/birth/BirthYear.d.ts +0 -3
  154. package/dist/attributes/types/birth/BirthYear.js +0 -18
  155. package/dist/attributes/types/birth/BirthYear.js.map +0 -1
  156. package/dist/attributes/types/birth/index.d.ts +0 -8
  157. package/dist/attributes/types/birth/index.js.map +0 -1
  158. package/dist/attributes/types/idcard/AbstractIDCard.d.ts +0 -3
  159. package/dist/attributes/types/idcard/AbstractIDCard.js +0 -8
  160. package/dist/attributes/types/idcard/AbstractIDCard.js.map +0 -1
  161. package/dist/attributes/types/idcard/IDCardAuthorityName.d.ts +0 -4
  162. package/dist/attributes/types/idcard/IDCardAuthorityName.js +0 -26
  163. package/dist/attributes/types/idcard/IDCardAuthorityName.js.map +0 -1
  164. package/dist/attributes/types/idcard/IDCardDE.d.ts +0 -11
  165. package/dist/attributes/types/idcard/IDCardDE.js +0 -45
  166. package/dist/attributes/types/idcard/IDCardDE.js.map +0 -1
  167. package/dist/attributes/types/idcard/IDCardIssuingDate.d.ts +0 -4
  168. package/dist/attributes/types/idcard/IDCardIssuingDate.js +0 -26
  169. package/dist/attributes/types/idcard/IDCardIssuingDate.js.map +0 -1
  170. package/dist/attributes/types/idcard/index.d.ts +0 -4
  171. package/dist/attributes/types/idcard/index.js +0 -21
  172. package/dist/attributes/types/idcard/index.js.map +0 -1
  173. package/dist/attributes/types/index.d.ts +0 -6
  174. package/dist/attributes/types/index.js +0 -23
  175. package/dist/attributes/types/index.js.map +0 -1
  176. package/dist/attributes/types/measurements/AbstractMeasurement.d.ts +0 -8
  177. package/dist/attributes/types/measurements/AbstractMeasurement.js.map +0 -1
  178. package/dist/attributes/types/measurements/LengthMeasurement.d.ts +0 -18
  179. package/dist/attributes/types/measurements/LengthMeasurement.js +0 -43
  180. package/dist/attributes/types/measurements/LengthMeasurement.js.map +0 -1
  181. package/dist/attributes/types/measurements/index.d.ts +0 -1
  182. package/dist/attributes/types/measurements/index.js.map +0 -1
  183. package/dist/attributes/types/name/AbstractLegalName.d.ts +0 -3
  184. package/dist/attributes/types/name/AbstractLegalName.js +0 -8
  185. package/dist/attributes/types/name/AbstractLegalName.js.map +0 -1
  186. package/dist/attributes/types/name/BirthName.d.ts +0 -4
  187. package/dist/attributes/types/name/BirthName.js +0 -26
  188. package/dist/attributes/types/name/BirthName.js.map +0 -1
  189. package/dist/attributes/types/name/DisplayName.d.ts +0 -4
  190. package/dist/attributes/types/name/DisplayName.js +0 -26
  191. package/dist/attributes/types/name/DisplayName.js.map +0 -1
  192. package/dist/attributes/types/name/GivenName.d.ts +0 -4
  193. package/dist/attributes/types/name/GivenName.js +0 -26
  194. package/dist/attributes/types/name/GivenName.js.map +0 -1
  195. package/dist/attributes/types/name/LegalNameDE.d.ts +0 -11
  196. package/dist/attributes/types/name/LegalNameDE.js +0 -45
  197. package/dist/attributes/types/name/LegalNameDE.js.map +0 -1
  198. package/dist/attributes/types/name/Pseudonym.d.ts +0 -4
  199. package/dist/attributes/types/name/Pseudonym.js +0 -26
  200. package/dist/attributes/types/name/Pseudonym.js.map +0 -1
  201. package/dist/attributes/types/name/Salutation.d.ts +0 -11
  202. package/dist/attributes/types/name/Salutation.js +0 -45
  203. package/dist/attributes/types/name/Salutation.js.map +0 -1
  204. package/dist/attributes/types/name/Surname.d.ts +0 -4
  205. package/dist/attributes/types/name/Surname.js +0 -26
  206. package/dist/attributes/types/name/Surname.js.map +0 -1
  207. package/dist/attributes/types/name/Title.d.ts +0 -4
  208. package/dist/attributes/types/name/Title.js +0 -26
  209. package/dist/attributes/types/name/Title.js.map +0 -1
  210. package/dist/attributes/types/name/index.d.ts +0 -9
  211. package/dist/attributes/types/name/index.js +0 -26
  212. package/dist/attributes/types/name/index.js.map +0 -1
  213. package/dist/attributes/types/person/Age.d.ts +0 -4
  214. package/dist/attributes/types/person/Age.js +0 -26
  215. package/dist/attributes/types/person/Age.js.map +0 -1
  216. package/dist/attributes/types/person/Gender.d.ts +0 -7
  217. package/dist/attributes/types/person/Gender.js +0 -29
  218. package/dist/attributes/types/person/Gender.js.map +0 -1
  219. package/dist/attributes/types/person/PersonEyeColor.d.ts +0 -4
  220. package/dist/attributes/types/person/PersonEyeColor.js +0 -26
  221. package/dist/attributes/types/person/PersonEyeColor.js.map +0 -1
  222. package/dist/attributes/types/person/PersonHeight.d.ts +0 -4
  223. package/dist/attributes/types/person/PersonHeight.js +0 -29
  224. package/dist/attributes/types/person/PersonHeight.js.map +0 -1
  225. package/dist/attributes/types/person/Sex.d.ts +0 -7
  226. package/dist/attributes/types/person/Sex.js +0 -29
  227. package/dist/attributes/types/person/Sex.js.map +0 -1
  228. package/dist/attributes/types/person/index.d.ts +0 -5
  229. package/dist/attributes/types/person/index.js +0 -22
  230. package/dist/attributes/types/person/index.js.map +0 -1
  231. package/dist/requests/AttributesChangeRequest.js.map +0 -1
  232. package/dist/requests/AttributesShareRequest.js.map +0 -1
  233. package/dist/requests/Response.js.map +0 -1
  234. package/dist/requests/ResponseItem.d.ts +0 -48
  235. package/dist/requests/ResponseItem.js +0 -71
  236. package/dist/requests/ResponseItem.js.map +0 -1
  237. package/dist/requests/ResponseItemGroup.js.map +0 -1
  238. package/dist/requests/ResponseItemResult.js.map +0 -1
@@ -6,13 +6,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.BirthCountry = void 0;
9
+ exports.RelationshipExistsAction = void 0;
10
10
  const ts_serval_1 = require("@js-soft/ts-serval");
11
- const Country_1 = require("../address/Country");
12
- let BirthCountry = class BirthCountry extends Country_1.Country {
11
+ let RelationshipExistsAction = class RelationshipExistsAction extends ts_serval_1.Serializable {
13
12
  };
14
- BirthCountry = __decorate([
15
- (0, ts_serval_1.type)("BirthCountry")
16
- ], BirthCountry);
17
- exports.BirthCountry = BirthCountry;
18
- //# sourceMappingURL=BirthCountry.js.map
13
+ RelationshipExistsAction = __decorate([
14
+ (0, ts_serval_1.type)("RelationshipExistsAction")
15
+ ], RelationshipExistsAction);
16
+ exports.RelationshipExistsAction = RelationshipExistsAction;
17
+ //# sourceMappingURL=RelationshipExistsAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelationshipExistsAction.js","sourceRoot":"","sources":["../../src/relationships/RelationshipExistsAction.ts"],"names":[],"mappings":";;;;;;;;;AAAA,kDAAuD;AAOvD,IAAsB,wBAAwB,GAA9C,MAAsB,wBAAyB,SAAQ,wBAAY;CAAwC,CAAA;AAArF,wBAAwB;IAD7C,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACX,wBAAwB,CAA6D;AAArF,4DAAwB"}
@@ -0,0 +1,11 @@
1
+ import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
2
+ import { IRelationshipExistsAction, RelationshipExistsAction, RelationshipExistsActionJSON } from "./RelationshipExistsAction";
3
+ export interface RelationshipExistsMessageActionJSON extends RelationshipExistsActionJSON {
4
+ content: any;
5
+ }
6
+ export interface IRelationshipExistsMessageAction extends IRelationshipExistsAction {
7
+ content: ISerializableAsync;
8
+ }
9
+ export declare class RelationshipExistsMessageAction extends RelationshipExistsAction implements IRelationshipExistsMessageAction {
10
+ content: SerializableAsync;
11
+ }
@@ -9,18 +9,18 @@ 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.City = void 0;
12
+ exports.RelationshipExistsMessageAction = void 0;
13
13
  const ts_serval_1 = require("@js-soft/ts-serval");
14
- const AbstractAttributeValue_1 = require("../../AbstractAttributeValue");
15
- let City = class City extends AbstractAttributeValue_1.AbstractAttributeValue {
14
+ const RelationshipExistsAction_1 = require("./RelationshipExistsAction");
15
+ let RelationshipExistsMessageAction = class RelationshipExistsMessageAction extends RelationshipExistsAction_1.RelationshipExistsAction {
16
16
  };
17
17
  __decorate([
18
18
  (0, ts_serval_1.serialize)(),
19
19
  (0, ts_serval_1.validate)(),
20
- __metadata("design:type", String)
21
- ], City.prototype, "value", void 0);
22
- City = __decorate([
23
- (0, ts_serval_1.type)("City")
24
- ], City);
25
- exports.City = City;
26
- //# sourceMappingURL=City.js.map
20
+ __metadata("design:type", ts_serval_1.SerializableAsync)
21
+ ], RelationshipExistsMessageAction.prototype, "content", void 0);
22
+ RelationshipExistsMessageAction = __decorate([
23
+ (0, ts_serval_1.type)("RelationshipExistsMessageAction")
24
+ ], RelationshipExistsMessageAction);
25
+ exports.RelationshipExistsMessageAction = RelationshipExistsMessageAction;
26
+ //# sourceMappingURL=RelationshipExistsMessageAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelationshipExistsMessageAction.js","sourceRoot":"","sources":["../../src/relationships/RelationshipExistsMessageAction.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqG;AACrG,yEAImC;AAWnC,IAAa,+BAA+B,GAA5C,MAAa,+BACT,SAAQ,mDAAwB;CAMnC,CAAA;AADG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;8BACK,6BAAiB;gEAAA;AANxB,+BAA+B;IAD3C,IAAA,gBAAI,EAAC,iCAAiC,CAAC;GAC3B,+BAA+B,CAO3C;AAPY,0EAA+B"}
@@ -0,0 +1,42 @@
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
+ import { AttributesChangeRequest, AttributesChangeRequestJSON, IAttributesChangeRequest } from "../requests/old/AttributesChangeRequest";
6
+ import { AttributesRequest, AttributesRequestJSON, IAttributesRequest } from "../requests/old/AttributesRequest";
7
+ import { IRelationshipExistsAction, RelationshipExistsAction, RelationshipExistsActionJSON } from "./RelationshipExistsAction";
8
+ export interface RelationshipTemplateBodyJSON extends ContentJSON {
9
+ title?: string;
10
+ sessionIdentifier?: string;
11
+ metadata?: any;
12
+ sharedAttributes?: AttributeJSON[];
13
+ sharedCertificates?: any[];
14
+ sharedAuthorizations?: AuthorizationJSON[];
15
+ requestedAttributesChanges?: AttributesChangeRequestJSON[];
16
+ requestedAttributes?: AttributesRequestJSON[];
17
+ requestedCertificates?: any[];
18
+ relationshipExistsAction?: RelationshipExistsActionJSON;
19
+ }
20
+ export interface IRelationshipTemplateBody extends ISerializableAsync {
21
+ title?: string;
22
+ sessionIdentifier?: string;
23
+ metadata?: any;
24
+ sharedAttributes?: IAttribute[];
25
+ sharedCertificates?: any[];
26
+ sharedAuthorizations?: IAuthorization[];
27
+ requestedAttributesChanges?: IAttributesChangeRequest[];
28
+ requestedAttributes?: IAttributesRequest[];
29
+ relationshipExistsAction?: IRelationshipExistsAction;
30
+ }
31
+ export declare class RelationshipTemplateBody extends SerializableAsync implements IRelationshipTemplateBody {
32
+ title?: string;
33
+ sessionIdentifier?: string;
34
+ metadata?: any;
35
+ sharedAttributes?: Attribute[];
36
+ sharedCertificates?: any[];
37
+ sharedAuthorizations?: Authorization[];
38
+ requestedAttributesChanges?: AttributesChangeRequest[];
39
+ requestedAttributes?: AttributesRequest[];
40
+ relationshipExistsAction?: RelationshipExistsAction;
41
+ static from(value: IRelationshipTemplateBody): Promise<RelationshipTemplateBody>;
42
+ }
@@ -0,0 +1,73 @@
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 RelationshipTemplateBody_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.RelationshipTemplateBody = 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
+ const AttributesRequest_1 = require("../requests/old/AttributesRequest");
18
+ const RelationshipExistsAction_1 = require("./RelationshipExistsAction");
19
+ let RelationshipTemplateBody = RelationshipTemplateBody_1 = class RelationshipTemplateBody extends ts_serval_1.SerializableAsync {
20
+ static async from(value) {
21
+ return (await super.from(value, RelationshipTemplateBody_1));
22
+ }
23
+ };
24
+ __decorate([
25
+ (0, ts_serval_1.serialize)(),
26
+ (0, ts_serval_1.validate)({ nullable: true }),
27
+ __metadata("design:type", String)
28
+ ], RelationshipTemplateBody.prototype, "title", void 0);
29
+ __decorate([
30
+ (0, ts_serval_1.serialize)(),
31
+ (0, ts_serval_1.validate)({ nullable: true }),
32
+ __metadata("design:type", String)
33
+ ], RelationshipTemplateBody.prototype, "sessionIdentifier", void 0);
34
+ __decorate([
35
+ (0, ts_serval_1.serialize)({ any: true }),
36
+ (0, ts_serval_1.validate)({ nullable: true }),
37
+ __metadata("design:type", Object)
38
+ ], RelationshipTemplateBody.prototype, "metadata", void 0);
39
+ __decorate([
40
+ (0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
41
+ (0, ts_serval_1.validate)({ nullable: true }),
42
+ __metadata("design:type", Array)
43
+ ], RelationshipTemplateBody.prototype, "sharedAttributes", void 0);
44
+ __decorate([
45
+ (0, ts_serval_1.serialize)(),
46
+ (0, ts_serval_1.validate)({ nullable: true }),
47
+ __metadata("design:type", Array)
48
+ ], RelationshipTemplateBody.prototype, "sharedCertificates", void 0);
49
+ __decorate([
50
+ (0, ts_serval_1.serialize)({ type: Authorization_1.Authorization }),
51
+ (0, ts_serval_1.validate)({ nullable: true }),
52
+ __metadata("design:type", Array)
53
+ ], RelationshipTemplateBody.prototype, "sharedAuthorizations", void 0);
54
+ __decorate([
55
+ (0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
56
+ (0, ts_serval_1.validate)({ nullable: true }),
57
+ __metadata("design:type", Array)
58
+ ], RelationshipTemplateBody.prototype, "requestedAttributesChanges", void 0);
59
+ __decorate([
60
+ (0, ts_serval_1.serialize)({ type: AttributesRequest_1.AttributesRequest }),
61
+ (0, ts_serval_1.validate)({ nullable: true }),
62
+ __metadata("design:type", Array)
63
+ ], RelationshipTemplateBody.prototype, "requestedAttributes", void 0);
64
+ __decorate([
65
+ (0, ts_serval_1.serialize)(),
66
+ (0, ts_serval_1.validate)({ nullable: true }),
67
+ __metadata("design:type", RelationshipExistsAction_1.RelationshipExistsAction)
68
+ ], RelationshipTemplateBody.prototype, "relationshipExistsAction", void 0);
69
+ RelationshipTemplateBody = RelationshipTemplateBody_1 = __decorate([
70
+ (0, ts_serval_1.type)("RelationshipTemplateBody")
71
+ ], RelationshipTemplateBody);
72
+ exports.RelationshipTemplateBody = RelationshipTemplateBody;
73
+ //# sourceMappingURL=RelationshipTemplateBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RelationshipTemplateBody.js","sourceRoot":"","sources":["../../src/relationships/RelationshipTemplateBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,uDAA8E;AAC9E,mEAAkG;AAOlG,yEAAgH;AAChH,yEAImC;AA4BnC,IAAa,wBAAwB,gCAArC,MAAa,wBAAyB,SAAQ,6BAAiB;IAqCpD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAgC;QACrD,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,0BAAwB,CAAC,CAA6B,CAAA;IAC1F,CAAC;CACJ,CAAA;AArCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mEACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACR;AAIrB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACQ;AAIrC;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oEACI;AAIjC;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,6BAAa,EAAE,CAAC;IAClC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACgB;AAI7C;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4EACgC;AAI7D;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qCAAiB,EAAE,CAAC;IACtC,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACmB;AAIhD;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACK,mDAAwB;0EAAA;AAnCjD,wBAAwB;IADpC,IAAA,gBAAI,EAAC,0BAA0B,CAAC;GACpB,wBAAwB,CAwCpC;AAxCY,4DAAwB"}
@@ -15,7 +15,7 @@ const ts_serval_1 = require("@js-soft/ts-serval");
15
15
  const transport_1 = require("@nmshd/transport");
16
16
  let Request = Request_1 = class Request extends ts_serval_1.SerializableAsync {
17
17
  static async from(value) {
18
- return await ts_serval_1.SerializableAsync.fromT(value, Request_1);
18
+ return await super.fromT(value, Request_1);
19
19
  }
20
20
  };
21
21
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../src/requests/Request.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,gDAA8D;AA0C9D,IAAa,OAAO,eAApB,MAAa,OAAQ,SAAQ,6BAAiB;IAanC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAA6B;QAClD,OAAO,MAAM,6BAAiB,CAAC,KAAK,CAAU,KAAK,EAAE,SAAO,CAAC,CAAA;IACjE,CAAC;CACJ,CAAA;AAbG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;mCAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;0CAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,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;;sCACtC;AAXvC,OAAO;IADnB,IAAA,gBAAI,EAAC,SAAS,CAAC;GACH,OAAO,CAgBnB;AAhBY,0BAAO"}
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../src/requests/Request.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,gDAA8D;AA0C9D,IAAa,OAAO,eAApB,MAAa,OAAQ,SAAQ,6BAAiB;IAanC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAA6B;QAClD,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,SAAO,CAAC,CAAA;IAC5C,CAAC;CACJ,CAAA;AAbG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;mCAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;0CAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,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;;sCACtC;AAXvC,OAAO;IADnB,IAAA,gBAAI,EAAC,SAAS,CAAC;GACH,OAAO,CAgBnB;AAhBY,0BAAO"}
@@ -79,4 +79,5 @@ export declare class RequestItemGroup extends SerializableAsync {
79
79
  mustBeAccepted: boolean;
80
80
  items: RequestItem[];
81
81
  responseMetadata?: object;
82
+ static from(value: IRequestItemGroup | RequestItemGroupJSON): Promise<RequestItemGroup>;
82
83
  }
@@ -8,10 +8,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  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
+ var RequestItemGroup_1;
11
12
  Object.defineProperty(exports, "__esModule", { value: true });
12
13
  exports.RequestItemGroup = void 0;
13
14
  const ts_serval_1 = require("@js-soft/ts-serval");
14
- let RequestItemGroup = class RequestItemGroup extends ts_serval_1.SerializableAsync {
15
+ let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_serval_1.SerializableAsync {
16
+ static async from(value) {
17
+ return await super.fromT(value, RequestItemGroup_1);
18
+ }
15
19
  };
16
20
  __decorate([
17
21
  (0, ts_serval_1.serialize)(),
@@ -38,7 +42,7 @@ __decorate([
38
42
  (0, ts_serval_1.validate)({ nullable: true }),
39
43
  __metadata("design:type", Object)
40
44
  ], RequestItemGroup.prototype, "responseMetadata", void 0);
41
- RequestItemGroup = __decorate([
45
+ RequestItemGroup = RequestItemGroup_1 = __decorate([
42
46
  (0, ts_serval_1.type)("RequestItemGroup")
43
47
  ], RequestItemGroup);
44
48
  exports.RequestItemGroup = RequestItemGroup;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestItemGroup.js","sourceRoot":"","sources":["../../src/requests/RequestItemGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAqG;AAuFrG,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,6BAAiB;CAoBtD,CAAA;AAjBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wDACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,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;;+CAC3D;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACG;AAnBvB,gBAAgB;IAD5B,IAAA,gBAAI,EAAC,kBAAkB,CAAC;GACZ,gBAAgB,CAoB5B;AApBY,4CAAgB"}
1
+ {"version":3,"file":"RequestItemGroup.js","sourceRoot":"","sources":["../../src/requests/RequestItemGroup.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AAuFrG,IAAa,gBAAgB,wBAA7B,MAAa,gBAAiB,SAAQ,6BAAiB;IAqB5C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAA+C;QACpE,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,kBAAgB,CAAC,CAAA;IACrD,CAAC;CACJ,CAAA;AArBG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACR;AAIrB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACF;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wDACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,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;;+CAC3D;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACG;AAnBvB,gBAAgB;IAD5B,IAAA,gBAAI,EAAC,kBAAkB,CAAC;GACZ,gBAAgB,CAwB5B;AAxBY,4CAAgB"}
@@ -0,0 +1,7 @@
1
+ export * from "./old/AttributesChangeRequest";
2
+ export * from "./old/AttributesRequest";
3
+ export * from "./old/AttributesShareRequest";
4
+ export * from "./Request";
5
+ export * from "./RequestItem";
6
+ export * from "./RequestItemGroup";
7
+ export * from "./response";
@@ -14,12 +14,11 @@ 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("./BirthCity"), exports);
18
- __exportStar(require("./BirthCountry"), exports);
19
- __exportStar(require("./BirthDate"), exports);
20
- __exportStar(require("./BirthDay"), exports);
21
- __exportStar(require("./BirthMonth"), exports);
22
- __exportStar(require("./BirthPlace"), exports);
23
- __exportStar(require("./BirthState"), exports);
24
- __exportStar(require("./BirthYear"), exports);
17
+ __exportStar(require("./old/AttributesChangeRequest"), exports);
18
+ __exportStar(require("./old/AttributesRequest"), exports);
19
+ __exportStar(require("./old/AttributesShareRequest"), exports);
20
+ __exportStar(require("./Request"), exports);
21
+ __exportStar(require("./RequestItem"), exports);
22
+ __exportStar(require("./RequestItemGroup"), exports);
23
+ __exportStar(require("./response"), exports);
25
24
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C;AAC7C,0DAAuC;AACvC,+DAA4C;AAC5C,4CAAyB;AACzB,gDAA6B;AAC7B,qDAAkC;AAClC,6CAA0B"}
@@ -1,7 +1,7 @@
1
1
  import { ISerializable, SerializableAsync } from "@js-soft/ts-serval";
2
2
  import { CoreAddress, CoreDate, CoreId, ICoreAddress, ICoreDate, ICoreId } from "@nmshd/transport";
3
- import { Attribute, AttributeJSON, IAttribute } from "../attributes";
4
- import { ContentJSON } from "../ContentJSON";
3
+ import { Attribute, AttributeJSON, IAttribute } from "../../attributes/Attribute";
4
+ import { ContentJSON } from "../../ContentJSON";
5
5
  export interface AttributesChangeRequestJSON extends ContentJSON {
6
6
  id?: string;
7
7
  key?: string;
@@ -13,13 +13,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.AttributesChangeRequest = void 0;
14
14
  const ts_serval_1 = require("@js-soft/ts-serval");
15
15
  const transport_1 = require("@nmshd/transport");
16
- const attributes_1 = require("../attributes");
16
+ const Attribute_1 = require("../../attributes/Attribute");
17
17
  let AttributesChangeRequest = AttributesChangeRequest_1 = class AttributesChangeRequest extends ts_serval_1.SerializableAsync {
18
18
  static async from(value) {
19
19
  return (await super.from(value, AttributesChangeRequest_1));
20
20
  }
21
21
  static async fromJSON(value) {
22
- const parsedAttributes = await Promise.all(value.attributes.map((attribute) => attributes_1.Attribute.fromJSON(attribute)));
22
+ const parsedAttributes = await Promise.all(value.attributes.map((attribute) => Attribute_1.Attribute.fromJSON(attribute)));
23
23
  return await this.from({
24
24
  id: value.id ? transport_1.CoreId.from(value.id) : undefined,
25
25
  attributes: parsedAttributes,
@@ -56,7 +56,7 @@ __decorate([
56
56
  __metadata("design:type", String)
57
57
  ], AttributesChangeRequest.prototype, "impact", void 0);
58
58
  __decorate([
59
- (0, ts_serval_1.serialize)({ type: attributes_1.Attribute }),
59
+ (0, ts_serval_1.serialize)({ type: Attribute_1.Attribute }),
60
60
  (0, ts_serval_1.validate)(),
61
61
  __metadata("design:type", Array)
62
62
  ], AttributesChangeRequest.prototype, "attributes", void 0);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributesChangeRequest.js","sourceRoot":"","sources":["../../../src/requests/old/AttributesChangeRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAgG;AAChG,gDAAkG;AAClG,0DAAiF;AA+CjF,IAAa,uBAAuB,+BAApC,MAAa,uBAAwB,SAAQ,6BAAiB;IA6BnD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAA+B;QACpD,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,yBAAuB,CAAC,CAA4B,CAAA;IACxF,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAkC;QAC3D,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,qBAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;QAC9G,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC;YACnB,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;YAChD,UAAU,EAAE,gBAAgB;YAC5B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,uBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;YACpE,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YACvE,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,MAAM,EAAE,KAAK,CAAC,MAAM;SACvB,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AAzCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;mDAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACV;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;0DAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACP;AAItB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,qBAAS,EAAE,CAAC;IAC9B,IAAA,oBAAQ,GAAE;;2DACmB;AAI9B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,uBAAW;wDAAA;AA3BnB,uBAAuB;IADnC,IAAA,gBAAI,EAAC,yBAAyB,CAAC;GACnB,uBAAuB,CA4CnC;AA5CY,0DAAuB"}
@@ -0,0 +1,49 @@
1
+ import { ISerializableAsync, SerializableAsync } from "@js-soft/ts-serval";
2
+ import { CoreDate, CoreId, ICoreDate, ICoreId } from "@nmshd/transport";
3
+ import { ContentJSON } from "../../ContentJSON";
4
+ export interface AttributesRequestJSON extends ContentJSON {
5
+ id?: string;
6
+ key?: string;
7
+ reason?: string;
8
+ expiresAt?: string;
9
+ names: string[];
10
+ required: boolean;
11
+ }
12
+ export interface IAttributesRequest extends ISerializableAsync {
13
+ id?: ICoreId;
14
+ /**
15
+ * The technial key of the request which is submitted back with the answer. This can be used
16
+ * for mapping requests and answers. The key should be unique and non-personal, best a random UUID.
17
+ * @default undefined - no key is used
18
+ */
19
+ key?: string;
20
+ /**
21
+ * The human-readable reason for this request. This can be used to provide the user with more input
22
+ * why this request is necessary and should be answered.
23
+ * @default undefined - no reason is given
24
+ */
25
+ reason?: string;
26
+ /**
27
+ * The point in time the request is considered obsolete either technically (e.g. the request is no longer
28
+ * valid or its response is no longer accepted) or from a business perspective (e.g. the request is no longer
29
+ * of interest).
30
+ * @default undefined - the request won't expire
31
+ */
32
+ expiresAt?: ICoreDate;
33
+ names: string[];
34
+ /**
35
+ * Whether or not this attribute request is required or optional
36
+ * @default undefined - the attribute request is optional
37
+ */
38
+ required?: boolean;
39
+ }
40
+ export declare class AttributesRequest extends SerializableAsync implements IAttributesRequest {
41
+ id?: CoreId;
42
+ key?: string;
43
+ reason?: string;
44
+ expiresAt?: CoreDate;
45
+ names: string[];
46
+ required?: boolean;
47
+ static from(value: IAttributesRequest): Promise<AttributesRequest>;
48
+ static fromJSON(value: AttributesRequestJSON): Promise<AttributesRequest>;
49
+ }
@@ -0,0 +1,65 @@
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 AttributesRequest_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.AttributesRequest = void 0;
14
+ const ts_serval_1 = require("@js-soft/ts-serval");
15
+ const transport_1 = require("@nmshd/transport");
16
+ let AttributesRequest = AttributesRequest_1 = class AttributesRequest extends ts_serval_1.SerializableAsync {
17
+ static async from(value) {
18
+ return (await super.from(value, AttributesRequest_1));
19
+ }
20
+ static async fromJSON(value) {
21
+ return await this.from({
22
+ id: value.id ? transport_1.CoreId.from(value.id) : undefined,
23
+ expiresAt: value.expiresAt ? transport_1.CoreDate.from(value.expiresAt) : undefined,
24
+ key: value.key,
25
+ reason: value.reason,
26
+ names: value.names,
27
+ required: value.required
28
+ });
29
+ }
30
+ };
31
+ __decorate([
32
+ (0, ts_serval_1.serialize)(),
33
+ (0, ts_serval_1.validate)({ nullable: true }),
34
+ __metadata("design:type", transport_1.CoreId)
35
+ ], AttributesRequest.prototype, "id", void 0);
36
+ __decorate([
37
+ (0, ts_serval_1.serialize)(),
38
+ (0, ts_serval_1.validate)({ nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], AttributesRequest.prototype, "key", void 0);
41
+ __decorate([
42
+ (0, ts_serval_1.serialize)(),
43
+ (0, ts_serval_1.validate)({ nullable: true }),
44
+ __metadata("design:type", String)
45
+ ], AttributesRequest.prototype, "reason", void 0);
46
+ __decorate([
47
+ (0, ts_serval_1.serialize)(),
48
+ (0, ts_serval_1.validate)({ nullable: true }),
49
+ __metadata("design:type", transport_1.CoreDate)
50
+ ], AttributesRequest.prototype, "expiresAt", void 0);
51
+ __decorate([
52
+ (0, ts_serval_1.serialize)({ type: String }),
53
+ (0, ts_serval_1.validate)(),
54
+ __metadata("design:type", Array)
55
+ ], AttributesRequest.prototype, "names", void 0);
56
+ __decorate([
57
+ (0, ts_serval_1.serialize)(),
58
+ (0, ts_serval_1.validate)({ nullable: true }),
59
+ __metadata("design:type", Boolean)
60
+ ], AttributesRequest.prototype, "required", void 0);
61
+ AttributesRequest = AttributesRequest_1 = __decorate([
62
+ (0, ts_serval_1.type)("AttributesRequest")
63
+ ], AttributesRequest);
64
+ exports.AttributesRequest = AttributesRequest;
65
+ //# sourceMappingURL=AttributesRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributesRequest.js","sourceRoot":"","sources":["../../../src/requests/old/AttributesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAqG;AACrG,gDAAuE;AA2CvE,IAAa,iBAAiB,yBAA9B,MAAa,iBAAkB,SAAQ,6BAAiB;IAyB7C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAyB;QAC9C,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,mBAAiB,CAAC,CAAsB,CAAA;IAC5E,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,KAA4B;QACrD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC;YACnB,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;YAChD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;YACvE,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ;SAC3B,CAAC,CAAA;IACN,CAAC;CACJ,CAAA;AApCG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;6CAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;oDAAA;AAI3B;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,GAAE;;gDACW;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACJ;AAvBhB,iBAAiB;IAD7B,IAAA,gBAAI,EAAC,mBAAmB,CAAC;GACb,iBAAiB,CAuC7B;AAvCY,8CAAiB"}
@@ -1,6 +1,6 @@
1
1
  import { ISerializable, SerializableAsync } from "@js-soft/ts-serval";
2
2
  import { CoreAddress, CoreDate, CoreId, ICoreAddress, ICoreDate, ICoreId } from "@nmshd/transport";
3
- import { ContentJSON } from "../ContentJSON";
3
+ import { ContentJSON } from "../../ContentJSON";
4
4
  export interface AttributesShareRequestJSON extends ContentJSON {
5
5
  id?: string;
6
6
  key?: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributesShareRequest.js","sourceRoot":"","sources":["../../../src/requests/old/AttributesShareRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAAgG;AAChG,gDAAkG;AA+ClG,IAAa,sBAAsB,8BAAnC,MAAa,sBAAuB,SAAQ,6BAAiB;IA6BlD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAA8B;QACnD,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,wBAAsB,CAAC,CAAA;IAC3D,CAAC;CACJ,CAAA;AA7BG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,kBAAM;kDAAA;AAIlB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACV;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACP;AAItB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACV,oBAAQ;yDAAA;AAI3B;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACP;AAItB;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC3B,IAAA,oBAAQ,GAAE;;0DACgB;AAI3B;IAFC,IAAA,qBAAS,EAAC,EAAE,IAAI,EAAE,uBAAW,EAAE,CAAC;IAChC,IAAA,oBAAQ,GAAE;;0DACqB;AA3BvB,sBAAsB;IADlC,IAAA,gBAAI,EAAC,wBAAwB,CAAC;GAClB,sBAAsB,CAgClC;AAhCY,wDAAsB"}
@@ -0,0 +1,12 @@
1
+ import { IResponseItem, ResponseItem, ResponseItemJSON } from "./ResponseItem";
2
+ import { ResponseItemResult } from "./ResponseItemResult";
3
+ export interface AcceptResponseItemJSON extends ResponseItemJSON {
4
+ result: ResponseItemResult.Accepted;
5
+ }
6
+ export interface IAcceptResponseItem extends IResponseItem {
7
+ result: ResponseItemResult.Accepted;
8
+ }
9
+ export declare class AcceptResponseItem extends ResponseItem implements IAcceptResponseItem {
10
+ result: ResponseItemResult.Accepted;
11
+ static from(value: IAcceptResponseItem | AcceptResponseItemJSON): Promise<AcceptResponseItem>;
12
+ }
@@ -5,14 +5,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
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
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
+ var AcceptResponseItem_1;
8
9
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.BirthMonth = void 0;
10
+ exports.AcceptResponseItem = void 0;
10
11
  const ts_serval_1 = require("@js-soft/ts-serval");
11
- const AbstractMonth_1 = require("../AbstractMonth");
12
- let BirthMonth = class BirthMonth extends AbstractMonth_1.AbstractMonth {
12
+ const ResponseItem_1 = require("./ResponseItem");
13
+ let AcceptResponseItem = AcceptResponseItem_1 = class AcceptResponseItem extends ResponseItem_1.ResponseItem {
14
+ static async from(value) {
15
+ return await super.fromT(value, AcceptResponseItem_1);
16
+ }
13
17
  };
14
- BirthMonth = __decorate([
15
- (0, ts_serval_1.type)("BirthMonth")
16
- ], BirthMonth);
17
- exports.BirthMonth = BirthMonth;
18
- //# sourceMappingURL=BirthMonth.js.map
18
+ AcceptResponseItem = AcceptResponseItem_1 = __decorate([
19
+ (0, ts_serval_1.type)("AcceptResponseItem")
20
+ ], AcceptResponseItem);
21
+ exports.AcceptResponseItem = AcceptResponseItem;
22
+ //# sourceMappingURL=AcceptResponseItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcceptResponseItem.js","sourceRoot":"","sources":["../../../src/requests/response/AcceptResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,kDAAyC;AACzC,iDAA8E;AAY9E,IAAa,kBAAkB,0BAA/B,MAAa,kBAAmB,SAAQ,2BAAY;IAGzC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAmD;QACxE,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,oBAAkB,CAAC,CAAA;IACvD,CAAC;CACJ,CAAA;AANY,kBAAkB;IAD9B,IAAA,gBAAI,EAAC,oBAAoB,CAAC;GACd,kBAAkB,CAM9B;AANY,gDAAkB"}
@@ -0,0 +1,18 @@
1
+ import { IResponseItem, ResponseItem, ResponseItemJSON } from "./ResponseItem";
2
+ import { ResponseItemResult } from "./ResponseItemResult";
3
+ export interface ErrorResponseItemJSON extends ResponseItemJSON {
4
+ result: ResponseItemResult.Failed;
5
+ code: string;
6
+ message: string;
7
+ }
8
+ export interface IErrorResponseItem extends IResponseItem {
9
+ result: ResponseItemResult.Failed;
10
+ code: string;
11
+ message: string;
12
+ }
13
+ export declare class ErrorResponseItem extends ResponseItem implements IErrorResponseItem {
14
+ result: ResponseItemResult.Failed;
15
+ code: string;
16
+ message: string;
17
+ static from(value: IErrorResponseItem | ErrorResponseItemJSON): Promise<ErrorResponseItem>;
18
+ }
@@ -8,24 +8,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  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
+ var ErrorResponseItem_1;
11
12
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.AbstractMeasurement = void 0;
13
+ exports.ErrorResponseItem = void 0;
13
14
  const ts_serval_1 = require("@js-soft/ts-serval");
14
- const AbstractAttributeValue_1 = require("../../AbstractAttributeValue");
15
- /**
16
- * valid unit strings must be defined in the classes extending AbstractMeasurement as enum
17
- */
18
- class AbstractMeasurement extends AbstractAttributeValue_1.AbstractAttributeValue {
19
- }
15
+ const ResponseItem_1 = require("./ResponseItem");
16
+ let ErrorResponseItem = ErrorResponseItem_1 = class ErrorResponseItem extends ResponseItem_1.ResponseItem {
17
+ static async from(value) {
18
+ return await super.fromT(value, ErrorResponseItem_1);
19
+ }
20
+ };
20
21
  __decorate([
21
22
  (0, ts_serval_1.serialize)(),
22
23
  (0, ts_serval_1.validate)(),
23
24
  __metadata("design:type", String)
24
- ], AbstractMeasurement.prototype, "unit", void 0);
25
+ ], ErrorResponseItem.prototype, "code", void 0);
25
26
  __decorate([
26
27
  (0, ts_serval_1.serialize)(),
27
28
  (0, ts_serval_1.validate)(),
28
- __metadata("design:type", Number)
29
- ], AbstractMeasurement.prototype, "value", void 0);
30
- exports.AbstractMeasurement = AbstractMeasurement;
31
- //# sourceMappingURL=AbstractMeasurement.js.map
29
+ __metadata("design:type", String)
30
+ ], ErrorResponseItem.prototype, "message", void 0);
31
+ ErrorResponseItem = ErrorResponseItem_1 = __decorate([
32
+ (0, ts_serval_1.type)("ErrorResponseItem")
33
+ ], ErrorResponseItem);
34
+ exports.ErrorResponseItem = ErrorResponseItem;
35
+ //# sourceMappingURL=ErrorResponseItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorResponseItem.js","sourceRoot":"","sources":["../../../src/requests/response/ErrorResponseItem.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,iDAA8E;AAgB9E,IAAa,iBAAiB,yBAA9B,MAAa,iBAAkB,SAAQ,2BAAY;IAWxC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAiD;QACtE,OAAO,MAAM,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,mBAAiB,CAAC,CAAA;IACtD,CAAC;CACJ,CAAA;AATG;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;+CACQ;AAInB;IAFC,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;kDACW;AATb,iBAAiB;IAD7B,IAAA,gBAAI,EAAC,mBAAmB,CAAC;GACb,iBAAiB,CAc7B;AAdY,8CAAiB"}
@@ -0,0 +1,18 @@
1
+ import { IResponseItem, ResponseItem, ResponseItemJSON } from "./ResponseItem";
2
+ import { ResponseItemResult } from "./ResponseItemResult";
3
+ export interface RejectResponseItemJSON extends ResponseItemJSON {
4
+ result: ResponseItemResult.Rejected;
5
+ code?: string;
6
+ message?: string;
7
+ }
8
+ export interface IRejectResponseItem extends IResponseItem {
9
+ result: ResponseItemResult.Rejected;
10
+ code?: string;
11
+ message?: string;
12
+ }
13
+ export declare class RejectResponseItem extends ResponseItem implements IRejectResponseItem {
14
+ result: ResponseItemResult.Rejected;
15
+ code?: string;
16
+ message?: string;
17
+ static from(value: IRejectResponseItem | RejectResponseItemJSON): Promise<RejectResponseItem>;
18
+ }