@nmshd/transport 2.1.0 → 2.1.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.
- package/dist/buildInformation.js +5 -5
- package/dist/core/CoreIdHelper.js.map +1 -1
- package/dist/core/CoreSerializable.js +2 -1
- package/dist/core/CoreSerializable.js.map +1 -1
- package/dist/core/CoreSerializableAsync.js +2 -1
- package/dist/core/CoreSerializableAsync.js.map +1 -1
- package/dist/core/backbone/RESTClient.js +1 -1
- package/dist/core/backbone/RESTClient.js.map +1 -1
- package/dist/core/backbone/RequestError.js.map +1 -1
- package/dist/core/types/CoreAddress.js +2 -1
- package/dist/core/types/CoreAddress.js.map +1 -1
- package/dist/core/types/CoreDate.js +2 -1
- package/dist/core/types/CoreDate.js.map +1 -1
- package/dist/core/types/CoreHash.js +2 -1
- package/dist/core/types/CoreHash.js.map +1 -1
- package/dist/core/types/CoreId.js +2 -1
- package/dist/core/types/CoreId.js.map +1 -1
- package/dist/modules/accounts/AccountController.d.ts +5 -5
- package/dist/modules/accounts/AccountController.js +9 -9
- package/dist/modules/accounts/AccountController.js.map +1 -1
- package/dist/modules/accounts/data/Identity.js +2 -1
- package/dist/modules/accounts/data/Identity.js.map +1 -1
- package/dist/modules/accounts/data/IdentitySecretCredentials.js +2 -1
- package/dist/modules/accounts/data/IdentitySecretCredentials.js.map +1 -1
- package/dist/modules/certificates/data/Certificate.js +2 -1
- package/dist/modules/certificates/data/Certificate.js.map +1 -1
- package/dist/modules/certificates/data/CertificateConstraint.js +2 -1
- package/dist/modules/certificates/data/CertificateConstraint.js.map +1 -1
- package/dist/modules/certificates/data/CertificateContent.js +2 -1
- package/dist/modules/certificates/data/CertificateContent.js.map +1 -1
- package/dist/modules/certificates/data/CertificateItem.js +2 -1
- package/dist/modules/certificates/data/CertificateItem.js.map +1 -1
- package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.js +2 -1
- package/dist/modules/certificates/data/constraints/CertificateBorderConstraint.js.map +1 -1
- package/dist/modules/certificates/data/constraints/CertificateCityConstraint.js +2 -1
- package/dist/modules/certificates/data/constraints/CertificateCityConstraint.js.map +1 -1
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js +2 -1
- package/dist/modules/certificates/data/constraints/CertificateIdentityConstraint.js.map +1 -1
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js +2 -1
- package/dist/modules/certificates/data/constraints/CertificateTimeConstraint.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificateAuthorizationItem.js +2 -1
- package/dist/modules/certificates/data/items/CertificateAuthorizationItem.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificateDelegateItem.js +2 -1
- package/dist/modules/certificates/data/items/CertificateDelegateItem.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js +2 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItem.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js +2 -1
- package/dist/modules/certificates/data/items/CertificatePrivateAttributeItemSource.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.js +2 -1
- package/dist/modules/certificates/data/items/CertificatePublicAttributeItem.js.map +1 -1
- package/dist/modules/certificates/data/items/CertificateRoleItem.js +2 -1
- package/dist/modules/certificates/data/items/CertificateRoleItem.js.map +1 -1
- package/dist/modules/challenges/ChallengeController.js +3 -2
- package/dist/modules/challenges/ChallengeController.js.map +1 -1
- package/dist/modules/challenges/data/Challenge.js +2 -1
- package/dist/modules/challenges/data/Challenge.js.map +1 -1
- package/dist/modules/challenges/data/ChallengeSigned.js +2 -1
- package/dist/modules/challenges/data/ChallengeSigned.js.map +1 -1
- package/dist/modules/devices/DevicesController.js +1 -1
- package/dist/modules/devices/DevicesController.js.map +1 -1
- package/dist/modules/devices/local/Device.js +2 -1
- package/dist/modules/devices/local/Device.js.map +1 -1
- package/dist/modules/devices/local/DeviceSecretCredentials.js +2 -1
- package/dist/modules/devices/local/DeviceSecretCredentials.js.map +1 -1
- package/dist/modules/devices/local/SendDeviceParameters.js +2 -1
- package/dist/modules/devices/local/SendDeviceParameters.js.map +1 -1
- package/dist/modules/devices/transmission/DeviceSharedSecret.js +2 -1
- package/dist/modules/devices/transmission/DeviceSharedSecret.js.map +1 -1
- package/dist/modules/files/local/CachedFile.js +2 -1
- package/dist/modules/files/local/CachedFile.js.map +1 -1
- package/dist/modules/files/local/File.js +2 -1
- package/dist/modules/files/local/File.js.map +1 -1
- package/dist/modules/files/local/SendFileParameters.js +2 -1
- package/dist/modules/files/local/SendFileParameters.js.map +1 -1
- package/dist/modules/files/transmission/FileMetadata.js +2 -1
- package/dist/modules/files/transmission/FileMetadata.js.map +1 -1
- package/dist/modules/files/transmission/FileReference.js +2 -1
- package/dist/modules/files/transmission/FileReference.js.map +1 -1
- package/dist/modules/messages/local/CachedMessage.js +2 -1
- package/dist/modules/messages/local/CachedMessage.js.map +1 -1
- package/dist/modules/messages/local/Message.js +2 -1
- package/dist/modules/messages/local/Message.js.map +1 -1
- package/dist/modules/messages/local/SendMessageParameters.js +2 -1
- package/dist/modules/messages/local/SendMessageParameters.js.map +1 -1
- package/dist/modules/messages/transmission/MessageContentWrapper.js +2 -1
- package/dist/modules/messages/transmission/MessageContentWrapper.js.map +1 -1
- package/dist/modules/messages/transmission/MessageEnvelope.js +2 -1
- package/dist/modules/messages/transmission/MessageEnvelope.js.map +1 -1
- package/dist/modules/messages/transmission/MessageEnvelopeRecipient.js +2 -1
- package/dist/modules/messages/transmission/MessageEnvelopeRecipient.js.map +1 -1
- package/dist/modules/messages/transmission/MessageSignature.js +2 -1
- package/dist/modules/messages/transmission/MessageSignature.js.map +1 -1
- package/dist/modules/messages/transmission/MessageSigned.js +2 -1
- package/dist/modules/messages/transmission/MessageSigned.js.map +1 -1
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js +2 -1
- package/dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js.map +1 -1
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js +2 -1
- package/dist/modules/relationshipTemplates/local/RelationshipTemplate.js.map +1 -1
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js +2 -1
- package/dist/modules/relationshipTemplates/local/SendRelationshipTemplateParameters.js.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.js +2 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateContentWrapper.js.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.js +2 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.js.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateReference.js +2 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateReference.js.map +1 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.js +2 -1
- package/dist/modules/relationshipTemplates/transmission/RelationshipTemplateSigned.js.map +1 -1
- package/dist/modules/relationships/local/CachedRelationship.js +2 -1
- package/dist/modules/relationships/local/CachedRelationship.js.map +1 -1
- package/dist/modules/relationships/local/Relationship.js +2 -1
- package/dist/modules/relationships/local/Relationship.js.map +1 -1
- package/dist/modules/relationships/local/SendRelationshipParameters.js +2 -1
- package/dist/modules/relationships/local/SendRelationshipParameters.js.map +1 -1
- package/dist/modules/relationships/transmission/changes/RelationshipChange.js +2 -1
- package/dist/modules/relationships/transmission/changes/RelationshipChange.js.map +1 -1
- package/dist/modules/relationships/transmission/changes/RelationshipChangeRequest.js +2 -1
- package/dist/modules/relationships/transmission/changes/RelationshipChangeRequest.js.map +1 -1
- package/dist/modules/relationships/transmission/changes/RelationshipChangeResponse.js +2 -1
- package/dist/modules/relationships/transmission/changes/RelationshipChangeResponse.js.map +1 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestCipher.js +2 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestCipher.js.map +1 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestContentWrapper.js +2 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestContentWrapper.js.map +1 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestSigned.js +2 -1
- package/dist/modules/relationships/transmission/requests/RelationshipCreationChangeRequestSigned.js.map +1 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseCipher.js +2 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseCipher.js.map +1 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseContentWrapper.js +2 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseContentWrapper.js.map +1 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseSigned.js +2 -1
- package/dist/modules/relationships/transmission/responses/RelationshipCreationChangeResponseSigned.js.map +1 -1
- package/dist/modules/secrets/data/SecretContainerCipher.js +2 -1
- package/dist/modules/secrets/data/SecretContainerCipher.js.map +1 -1
- package/dist/modules/secrets/data/SecretContainerPlain.js +2 -1
- package/dist/modules/secrets/data/SecretContainerPlain.js.map +1 -1
- package/dist/modules/sync/local/DatawalletModification.js +2 -1
- package/dist/modules/sync/local/DatawalletModification.js.map +1 -1
- package/dist/modules/tokens/local/CachedToken.js +2 -1
- package/dist/modules/tokens/local/CachedToken.js.map +1 -1
- package/dist/modules/tokens/local/SendTokenParameters.js +2 -1
- package/dist/modules/tokens/local/SendTokenParameters.js.map +1 -1
- package/dist/modules/tokens/local/Token.js +2 -1
- package/dist/modules/tokens/local/Token.js.map +1 -1
- package/dist/modules/tokens/transmission/TokenContentDeviceSharedSecret.js +2 -1
- package/dist/modules/tokens/transmission/TokenContentDeviceSharedSecret.js.map +1 -1
- package/dist/modules/tokens/transmission/TokenContentFile.js +2 -1
- package/dist/modules/tokens/transmission/TokenContentFile.js.map +1 -1
- package/dist/modules/tokens/transmission/TokenContentRelationshipTemplate.js +2 -1
- package/dist/modules/tokens/transmission/TokenContentRelationshipTemplate.js.map +1 -1
- package/dist/modules/tokens/transmission/TokenReference.js +2 -1
- package/dist/modules/tokens/transmission/TokenReference.js.map +1 -1
- package/lib-web/nmshd.transport.js +292 -163
- package/lib-web/nmshd.transport.js.map +1 -1
- package/lib-web/nmshd.transport.min.js +1 -1
- package/lib-web/nmshd.transport.min.js.map +1 -1
- package/package.json +21 -21
|
@@ -15,11 +15,11 @@ exports.buildInformation = void 0;
|
|
|
15
15
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
16
16
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
17
17
|
exports.buildInformation = {
|
|
18
|
-
version: "2.1.
|
|
19
|
-
build: "
|
|
20
|
-
date: "2023-
|
|
21
|
-
commit: "
|
|
22
|
-
dependencies: {"@js-soft/docdb-access-abstractions":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/simple-logger":"1.0.2","@js-soft/ts-utils":"2.3.1","axios":"^1.
|
|
18
|
+
version: "2.1.2",
|
|
19
|
+
build: "61",
|
|
20
|
+
date: "2023-09-29T08:33:10+00:00",
|
|
21
|
+
commit: "d9b4a255c6a36f21cfe525f55cc8f0963685e1ef",
|
|
22
|
+
dependencies: {"@js-soft/docdb-access-abstractions":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/simple-logger":"1.0.2","@js-soft/ts-utils":"2.3.1","axios":"^1.5.1","deep-equal":"^2.2.2","fast-json-patch":"^3.1.1","form-data":"^4.0.0","json-stringify-safe":"^5.0.1","lodash":"^4.17.21","luxon":"^3.4.3","qs":"^6.11.2","reflect-metadata":"^0.1.13","ts-simple-nameof":"^1.3.1","uuid":"^9.0.1"},
|
|
23
23
|
libraries: {
|
|
24
24
|
crypto: crypto_1.buildInformation,
|
|
25
25
|
serval: ts_serval_1.buildInformation
|
|
@@ -530,7 +530,7 @@ const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
|
530
530
|
* are called synchronous. Please be aware, that CoreSerializable classes should
|
|
531
531
|
* have no CoreSerializableAsync properties.
|
|
532
532
|
*/
|
|
533
|
-
let CoreSerializable =
|
|
533
|
+
let CoreSerializable = class CoreSerializable extends ts_serval_1.Serializable {
|
|
534
534
|
toBase64() {
|
|
535
535
|
return crypto_1.CoreBuffer.fromUtf8(this.serialize()).toBase64URL();
|
|
536
536
|
}
|
|
@@ -543,6 +543,7 @@ let CoreSerializable = exports.CoreSerializable = class CoreSerializable extends
|
|
|
543
543
|
return ts_serval_1.Serializable.deserializeUnknown(serialized);
|
|
544
544
|
}
|
|
545
545
|
};
|
|
546
|
+
exports.CoreSerializable = CoreSerializable;
|
|
546
547
|
exports.CoreSerializable = CoreSerializable = __decorate([
|
|
547
548
|
(0, ts_serval_1.type)("CoreSerializable")
|
|
548
549
|
], CoreSerializable);
|
|
@@ -576,7 +577,7 @@ const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
|
576
577
|
* are called asynchronous (returning a Promise). You should only use CoreSerializableAsync
|
|
577
578
|
* classes if properties with CoreSerializableAsync types are used.
|
|
578
579
|
*/
|
|
579
|
-
let CoreSerializableAsync =
|
|
580
|
+
let CoreSerializableAsync = class CoreSerializableAsync extends ts_serval_1.SerializableAsync {
|
|
580
581
|
toBase64() {
|
|
581
582
|
return crypto_1.CoreBuffer.fromUtf8(this.serialize()).toBase64URL();
|
|
582
583
|
}
|
|
@@ -590,6 +591,7 @@ let CoreSerializableAsync = exports.CoreSerializableAsync = class CoreSerializab
|
|
|
590
591
|
return await ts_serval_1.SerializableAsync.deserializeUnknown(serialized);
|
|
591
592
|
}
|
|
592
593
|
};
|
|
594
|
+
exports.CoreSerializableAsync = CoreSerializableAsync;
|
|
593
595
|
exports.CoreSerializableAsync = CoreSerializableAsync = __decorate([
|
|
594
596
|
(0, ts_serval_1.type)("CoreSerializableAsync")
|
|
595
597
|
], CoreSerializableAsync);
|
|
@@ -1616,7 +1618,7 @@ class RESTClient {
|
|
|
1616
1618
|
return ClientResult_1.ClientResult.ok({}, platformParameters);
|
|
1617
1619
|
}
|
|
1618
1620
|
if (response.status === 404) {
|
|
1619
|
-
const error = new RequestError_1.RequestError(method, path, platformParameters, "error.transport.request.notFound", "
|
|
1621
|
+
const error = new RequestError_1.RequestError(method, path, platformParameters, "error.transport.request.notFound", "An http request returned an unspecific 404 (Not Found) error, which is usually the case if the Backbone is not reachable. This could be a temporary problem, or a network, gateway, firewall or configuration issue.", "", 404);
|
|
1620
1622
|
this._logger.debug(error);
|
|
1621
1623
|
return ClientResult_1.ClientResult.fail(error, platformParameters);
|
|
1622
1624
|
}
|
|
@@ -2169,7 +2171,7 @@ const CoreSerializable_1 = __webpack_require__(/*! ../CoreSerializable */ "./dis
|
|
|
2169
2171
|
/**
|
|
2170
2172
|
* A CoreAddress is the primariy technical identitier of an account.
|
|
2171
2173
|
*/
|
|
2172
|
-
let CoreAddress =
|
|
2174
|
+
let CoreAddress = class CoreAddress extends CoreSerializable_1.CoreSerializable {
|
|
2173
2175
|
static preFrom(value) {
|
|
2174
2176
|
if (typeof value === "string") {
|
|
2175
2177
|
return { address: value };
|
|
@@ -2191,6 +2193,7 @@ let CoreAddress = exports.CoreAddress = class CoreAddress extends CoreSerializab
|
|
|
2191
2193
|
return this.address;
|
|
2192
2194
|
}
|
|
2193
2195
|
};
|
|
2196
|
+
exports.CoreAddress = CoreAddress;
|
|
2194
2197
|
__decorate([
|
|
2195
2198
|
(0, ts_serval_1.validate)(),
|
|
2196
2199
|
(0, ts_serval_1.serialize)(),
|
|
@@ -2228,7 +2231,7 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
2228
2231
|
const luxon_1 = __webpack_require__(/*! luxon */ "./node_modules/luxon/build/node/luxon.js");
|
|
2229
2232
|
const CoreSerializable_1 = __webpack_require__(/*! ../CoreSerializable */ "./dist/core/CoreSerializable.js");
|
|
2230
2233
|
const TransportError_1 = __webpack_require__(/*! ../TransportError */ "./dist/core/TransportError.js");
|
|
2231
|
-
let CoreDate =
|
|
2234
|
+
let CoreDate = CoreDate_1 = class CoreDate extends CoreSerializable_1.CoreSerializable {
|
|
2232
2235
|
get dateTime() {
|
|
2233
2236
|
return this._dateTime;
|
|
2234
2237
|
}
|
|
@@ -2374,6 +2377,7 @@ let CoreDate = exports.CoreDate = CoreDate_1 = class CoreDate extends CoreSerial
|
|
|
2374
2377
|
return this.fromAny(value);
|
|
2375
2378
|
}
|
|
2376
2379
|
};
|
|
2380
|
+
exports.CoreDate = CoreDate;
|
|
2377
2381
|
exports.CoreDate = CoreDate = CoreDate_1 = __decorate([
|
|
2378
2382
|
(0, ts_serval_1.type)("CoreDate"),
|
|
2379
2383
|
__metadata("design:paramtypes", [luxon_1.DateTime])
|
|
@@ -2408,7 +2412,7 @@ const CoreSerializable_1 = __webpack_require__(/*! ../CoreSerializable */ "./dis
|
|
|
2408
2412
|
/**
|
|
2409
2413
|
* Hash wraps a hash
|
|
2410
2414
|
*/
|
|
2411
|
-
let CoreHash =
|
|
2415
|
+
let CoreHash = CoreHash_1 = class CoreHash extends CoreSerializable_1.CoreSerializable {
|
|
2412
2416
|
toString() {
|
|
2413
2417
|
return this.hash;
|
|
2414
2418
|
}
|
|
@@ -2454,6 +2458,7 @@ let CoreHash = exports.CoreHash = CoreHash_1 = class CoreHash extends CoreSerial
|
|
|
2454
2458
|
return this.hash;
|
|
2455
2459
|
}
|
|
2456
2460
|
};
|
|
2461
|
+
exports.CoreHash = CoreHash;
|
|
2457
2462
|
__decorate([
|
|
2458
2463
|
(0, ts_serval_1.validate)(),
|
|
2459
2464
|
(0, ts_serval_1.serialize)(),
|
|
@@ -2492,7 +2497,7 @@ const TransportError_1 = __webpack_require__(/*! ../TransportError */ "./dist/co
|
|
|
2492
2497
|
/**
|
|
2493
2498
|
* A CoreId is any kind of identifier we have in the system.
|
|
2494
2499
|
*/
|
|
2495
|
-
let CoreId =
|
|
2500
|
+
let CoreId = class CoreId extends CoreSerializable_1.CoreSerializable {
|
|
2496
2501
|
toString() {
|
|
2497
2502
|
return this.id;
|
|
2498
2503
|
}
|
|
@@ -2519,6 +2524,7 @@ let CoreId = exports.CoreId = class CoreId extends CoreSerializable_1.CoreSerial
|
|
|
2519
2524
|
return this.id;
|
|
2520
2525
|
}
|
|
2521
2526
|
};
|
|
2527
|
+
exports.CoreId = CoreId;
|
|
2522
2528
|
__decorate([
|
|
2523
2529
|
(0, ts_serval_1.validate)(),
|
|
2524
2530
|
(0, ts_serval_1.serialize)(),
|
|
@@ -2802,37 +2808,37 @@ exports.AccountController = void 0;
|
|
|
2802
2808
|
const ts_utils_1 = __webpack_require__(/*! @js-soft/ts-utils */ "./node_modules/@js-soft/ts-utils/dist/index.js");
|
|
2803
2809
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
2804
2810
|
const core_1 = __webpack_require__(/*! ../../core */ "./dist/core/index.js");
|
|
2805
|
-
const Authenticator_1 = __webpack_require__(/*! ../../core/backbone/Authenticator */ "./dist/core/backbone/Authenticator.js");
|
|
2806
2811
|
const CoreCrypto_1 = __webpack_require__(/*! ../../core/CoreCrypto */ "./dist/core/CoreCrypto.js");
|
|
2807
2812
|
const DbCollectionName_1 = __webpack_require__(/*! ../../core/DbCollectionName */ "./dist/core/DbCollectionName.js");
|
|
2808
2813
|
const TransportLoggerFactory_1 = __webpack_require__(/*! ../../core/TransportLoggerFactory */ "./dist/core/TransportLoggerFactory.js");
|
|
2814
|
+
const Authenticator_1 = __webpack_require__(/*! ../../core/backbone/Authenticator */ "./dist/core/backbone/Authenticator.js");
|
|
2809
2815
|
const util_1 = __webpack_require__(/*! ../../util */ "./dist/util/index.js");
|
|
2810
2816
|
const CertificateController_1 = __webpack_require__(/*! ../certificates/CertificateController */ "./dist/modules/certificates/CertificateController.js");
|
|
2811
2817
|
const CertificateIssuer_1 = __webpack_require__(/*! ../certificates/CertificateIssuer */ "./dist/modules/certificates/CertificateIssuer.js");
|
|
2812
2818
|
const CertificateValidator_1 = __webpack_require__(/*! ../certificates/CertificateValidator */ "./dist/modules/certificates/CertificateValidator.js");
|
|
2813
2819
|
const ChallengeController_1 = __webpack_require__(/*! ../challenges/ChallengeController */ "./dist/modules/challenges/ChallengeController.js");
|
|
2814
|
-
const DeviceAuthClient_1 = __webpack_require__(/*! ../devices/backbone/DeviceAuthClient */ "./dist/modules/devices/backbone/DeviceAuthClient.js");
|
|
2815
|
-
const DeviceClient_1 = __webpack_require__(/*! ../devices/backbone/DeviceClient */ "./dist/modules/devices/backbone/DeviceClient.js");
|
|
2816
2820
|
const DeviceController_1 = __webpack_require__(/*! ../devices/DeviceController */ "./dist/modules/devices/DeviceController.js");
|
|
2817
|
-
const DevicesController_1 = __webpack_require__(/*! ../devices/DevicesController */ "./dist/modules/devices/DevicesController.js");
|
|
2818
2821
|
const DeviceSecretController_1 = __webpack_require__(/*! ../devices/DeviceSecretController */ "./dist/modules/devices/DeviceSecretController.js");
|
|
2822
|
+
const DevicesController_1 = __webpack_require__(/*! ../devices/DevicesController */ "./dist/modules/devices/DevicesController.js");
|
|
2823
|
+
const DeviceAuthClient_1 = __webpack_require__(/*! ../devices/backbone/DeviceAuthClient */ "./dist/modules/devices/backbone/DeviceAuthClient.js");
|
|
2824
|
+
const DeviceClient_1 = __webpack_require__(/*! ../devices/backbone/DeviceClient */ "./dist/modules/devices/backbone/DeviceClient.js");
|
|
2819
2825
|
const Device_1 = __webpack_require__(/*! ../devices/local/Device */ "./dist/modules/devices/local/Device.js");
|
|
2820
2826
|
const DeviceSecretCredentials_1 = __webpack_require__(/*! ../devices/local/DeviceSecretCredentials */ "./dist/modules/devices/local/DeviceSecretCredentials.js");
|
|
2821
2827
|
const DeviceSharedSecret_1 = __webpack_require__(/*! ../devices/transmission/DeviceSharedSecret */ "./dist/modules/devices/transmission/DeviceSharedSecret.js");
|
|
2822
2828
|
const FileController_1 = __webpack_require__(/*! ../files/FileController */ "./dist/modules/files/FileController.js");
|
|
2823
2829
|
const MessageController_1 = __webpack_require__(/*! ../messages/MessageController */ "./dist/modules/messages/MessageController.js");
|
|
2824
|
-
const RelationshipsController_1 = __webpack_require__(/*! ../relationships/RelationshipsController */ "./dist/modules/relationships/RelationshipsController.js");
|
|
2825
|
-
const RelationshipSecretController_1 = __webpack_require__(/*! ../relationships/RelationshipSecretController */ "./dist/modules/relationships/RelationshipSecretController.js");
|
|
2826
2830
|
const RelationshipTemplateController_1 = __webpack_require__(/*! ../relationshipTemplates/RelationshipTemplateController */ "./dist/modules/relationshipTemplates/RelationshipTemplateController.js");
|
|
2831
|
+
const RelationshipSecretController_1 = __webpack_require__(/*! ../relationships/RelationshipSecretController */ "./dist/modules/relationships/RelationshipSecretController.js");
|
|
2832
|
+
const RelationshipsController_1 = __webpack_require__(/*! ../relationships/RelationshipsController */ "./dist/modules/relationships/RelationshipsController.js");
|
|
2827
2833
|
const SecretController_1 = __webpack_require__(/*! ../secrets/SecretController */ "./dist/modules/secrets/SecretController.js");
|
|
2828
2834
|
const SyncCallback_1 = __webpack_require__(/*! ../sync/SyncCallback */ "./dist/modules/sync/SyncCallback.js");
|
|
2829
2835
|
const SyncController_1 = __webpack_require__(/*! ../sync/SyncController */ "./dist/modules/sync/SyncController.js");
|
|
2830
2836
|
const SynchronizedCollection_1 = __webpack_require__(/*! ../sync/SynchronizedCollection */ "./dist/modules/sync/SynchronizedCollection.js");
|
|
2831
2837
|
const TokenController_1 = __webpack_require__(/*! ../tokens/TokenController */ "./dist/modules/tokens/TokenController.js");
|
|
2832
|
-
const IdentityClient_1 = __webpack_require__(/*! ./backbone/IdentityClient */ "./dist/modules/accounts/backbone/IdentityClient.js");
|
|
2833
|
-
const Identity_1 = __webpack_require__(/*! ./data/Identity */ "./dist/modules/accounts/data/Identity.js");
|
|
2834
2838
|
const IdentityController_1 = __webpack_require__(/*! ./IdentityController */ "./dist/modules/accounts/IdentityController.js");
|
|
2835
2839
|
const IdentityUtil_1 = __webpack_require__(/*! ./IdentityUtil */ "./dist/modules/accounts/IdentityUtil.js");
|
|
2840
|
+
const IdentityClient_1 = __webpack_require__(/*! ./backbone/IdentityClient */ "./dist/modules/accounts/backbone/IdentityClient.js");
|
|
2841
|
+
const Identity_1 = __webpack_require__(/*! ./data/Identity */ "./dist/modules/accounts/data/Identity.js");
|
|
2836
2842
|
class AccountController {
|
|
2837
2843
|
get authenticator() {
|
|
2838
2844
|
return this._authenticator;
|
|
@@ -3082,7 +3088,7 @@ class AccountController {
|
|
|
3082
3088
|
type: deviceInfo.type,
|
|
3083
3089
|
publicKey: deviceKeypair.publicKey,
|
|
3084
3090
|
username: deviceSharedSecret.username,
|
|
3085
|
-
initialPassword:
|
|
3091
|
+
initialPassword: undefined,
|
|
3086
3092
|
isAdmin: deviceSharedSecret.identityPrivateKey ? true : false
|
|
3087
3093
|
});
|
|
3088
3094
|
// Initialize required controllers
|
|
@@ -3346,11 +3352,12 @@ var Realm;
|
|
|
3346
3352
|
Realm["Stage"] = "id0";
|
|
3347
3353
|
Realm["Prod"] = "id1";
|
|
3348
3354
|
})(Realm || (exports.Realm = Realm = {}));
|
|
3349
|
-
let Identity =
|
|
3355
|
+
let Identity = class Identity extends CoreSerializable_1.CoreSerializable {
|
|
3350
3356
|
static from(value) {
|
|
3351
3357
|
return this.fromAny(value);
|
|
3352
3358
|
}
|
|
3353
3359
|
};
|
|
3360
|
+
exports.Identity = Identity;
|
|
3354
3361
|
__decorate([
|
|
3355
3362
|
(0, ts_serval_1.validate)(),
|
|
3356
3363
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3518,7 +3525,7 @@ const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
|
3518
3525
|
*
|
|
3519
3526
|
*
|
|
3520
3527
|
*/
|
|
3521
|
-
let Certificate =
|
|
3528
|
+
let Certificate = class Certificate extends core_1.CoreSerializable {
|
|
3522
3529
|
static from(value) {
|
|
3523
3530
|
return this.fromAny(value);
|
|
3524
3531
|
}
|
|
@@ -3538,6 +3545,7 @@ let Certificate = exports.Certificate = class Certificate extends core_1.CoreSer
|
|
|
3538
3545
|
return correct;
|
|
3539
3546
|
}
|
|
3540
3547
|
};
|
|
3548
|
+
exports.Certificate = Certificate;
|
|
3541
3549
|
__decorate([
|
|
3542
3550
|
(0, ts_serval_1.validate)(),
|
|
3543
3551
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3576,11 +3584,12 @@ const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
|
3576
3584
|
/**
|
|
3577
3585
|
* A CertificateConstraint limits a Certificate to a specific time, region or identity.
|
|
3578
3586
|
*/
|
|
3579
|
-
let CertificateConstraint =
|
|
3587
|
+
let CertificateConstraint = class CertificateConstraint extends core_1.CoreSerializable {
|
|
3580
3588
|
static from(value) {
|
|
3581
3589
|
return this.fromAny(value);
|
|
3582
3590
|
}
|
|
3583
3591
|
};
|
|
3592
|
+
exports.CertificateConstraint = CertificateConstraint;
|
|
3584
3593
|
exports.CertificateConstraint = CertificateConstraint = __decorate([
|
|
3585
3594
|
(0, ts_serval_1.type)("CertificateConstraint")
|
|
3586
3595
|
], CertificateConstraint);
|
|
@@ -3616,11 +3625,12 @@ const CertificateItem_1 = __webpack_require__(/*! ./CertificateItem */ "./dist/m
|
|
|
3616
3625
|
* A CertificateContent is the content which should be digitally signed. The digital signature
|
|
3617
3626
|
* is done on top of the serialized content of this data structure.
|
|
3618
3627
|
*/
|
|
3619
|
-
let CertificateContent =
|
|
3628
|
+
let CertificateContent = class CertificateContent extends core_1.CoreSerializable {
|
|
3620
3629
|
static from(value) {
|
|
3621
3630
|
return this.fromAny(value);
|
|
3622
3631
|
}
|
|
3623
3632
|
};
|
|
3633
|
+
exports.CertificateContent = CertificateContent;
|
|
3624
3634
|
__decorate([
|
|
3625
3635
|
(0, ts_serval_1.validate)(),
|
|
3626
3636
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3685,11 +3695,12 @@ const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
|
3685
3695
|
* A CertificateItem is a digitally signed hash with information about the signature date,
|
|
3686
3696
|
* the signer, the signature algorithm and the version.
|
|
3687
3697
|
*/
|
|
3688
|
-
let CertificateItem =
|
|
3698
|
+
let CertificateItem = class CertificateItem extends core_1.CoreSerializable {
|
|
3689
3699
|
static from(value) {
|
|
3690
3700
|
return this.fromAny(value);
|
|
3691
3701
|
}
|
|
3692
3702
|
};
|
|
3703
|
+
exports.CertificateItem = CertificateItem;
|
|
3693
3704
|
exports.CertificateItem = CertificateItem = __decorate([
|
|
3694
3705
|
(0, ts_serval_1.type)("CertificateItem")
|
|
3695
3706
|
], CertificateItem);
|
|
@@ -3735,11 +3746,12 @@ const CertificateConstraint_1 = __webpack_require__(/*! ../CertificateConstraint
|
|
|
3735
3746
|
* - Access rights to buildings of the UN
|
|
3736
3747
|
* - German driver license
|
|
3737
3748
|
*/
|
|
3738
|
-
let CertificateBorderConstraint =
|
|
3749
|
+
let CertificateBorderConstraint = class CertificateBorderConstraint extends CertificateConstraint_1.CertificateConstraint {
|
|
3739
3750
|
static from(value) {
|
|
3740
3751
|
return this.fromAny(value);
|
|
3741
3752
|
}
|
|
3742
3753
|
};
|
|
3754
|
+
exports.CertificateBorderConstraint = CertificateBorderConstraint;
|
|
3743
3755
|
__decorate([
|
|
3744
3756
|
(0, ts_serval_1.validate)(),
|
|
3745
3757
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3803,11 +3815,12 @@ const CertificateConstraint_1 = __webpack_require__(/*! ../CertificateConstraint
|
|
|
3803
3815
|
* - Public transport tickets
|
|
3804
3816
|
* - City-Inhabitant IDs
|
|
3805
3817
|
*/
|
|
3806
|
-
let CertificateCityConstraint =
|
|
3818
|
+
let CertificateCityConstraint = class CertificateCityConstraint extends CertificateConstraint_1.CertificateConstraint {
|
|
3807
3819
|
static from(value) {
|
|
3808
3820
|
return this.fromAny(value);
|
|
3809
3821
|
}
|
|
3810
3822
|
};
|
|
3823
|
+
exports.CertificateCityConstraint = CertificateCityConstraint;
|
|
3811
3824
|
__decorate([
|
|
3812
3825
|
(0, ts_serval_1.validate)(),
|
|
3813
3826
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3852,11 +3865,12 @@ exports.CertificateIdentityConstraint = void 0;
|
|
|
3852
3865
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
3853
3866
|
const core_1 = __webpack_require__(/*! ../../../../core */ "./dist/core/index.js");
|
|
3854
3867
|
const CertificateConstraint_1 = __webpack_require__(/*! ../CertificateConstraint */ "./dist/modules/certificates/data/CertificateConstraint.js");
|
|
3855
|
-
let CertificateIdentityConstraint =
|
|
3868
|
+
let CertificateIdentityConstraint = class CertificateIdentityConstraint extends CertificateConstraint_1.CertificateConstraint {
|
|
3856
3869
|
static from(value) {
|
|
3857
3870
|
return this.fromAny(value);
|
|
3858
3871
|
}
|
|
3859
3872
|
};
|
|
3873
|
+
exports.CertificateIdentityConstraint = CertificateIdentityConstraint;
|
|
3860
3874
|
__decorate([
|
|
3861
3875
|
(0, ts_serval_1.validate)(),
|
|
3862
3876
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3896,11 +3910,12 @@ const CertificateConstraint_1 = __webpack_require__(/*! ../CertificateConstraint
|
|
|
3896
3910
|
* dates. The certificate is not valid before the validFrom date, and not after the
|
|
3897
3911
|
* validTo date.
|
|
3898
3912
|
*/
|
|
3899
|
-
let CertificateTimeConstraint =
|
|
3913
|
+
let CertificateTimeConstraint = class CertificateTimeConstraint extends CertificateConstraint_1.CertificateConstraint {
|
|
3900
3914
|
static from(value) {
|
|
3901
3915
|
return this.fromAny(value);
|
|
3902
3916
|
}
|
|
3903
3917
|
};
|
|
3918
|
+
exports.CertificateTimeConstraint = CertificateTimeConstraint;
|
|
3904
3919
|
__decorate([
|
|
3905
3920
|
(0, ts_serval_1.validate)(),
|
|
3906
3921
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3948,11 +3963,12 @@ const CertificateItem_1 = __webpack_require__(/*! ../CertificateItem */ "./dist/
|
|
|
3948
3963
|
* - Admin access to a computer
|
|
3949
3964
|
* - Facility access to a visitor
|
|
3950
3965
|
*/
|
|
3951
|
-
let CertificateAuthorizationItem =
|
|
3966
|
+
let CertificateAuthorizationItem = class CertificateAuthorizationItem extends CertificateItem_1.CertificateItem {
|
|
3952
3967
|
static from(value) {
|
|
3953
3968
|
return this.fromAny(value);
|
|
3954
3969
|
}
|
|
3955
3970
|
};
|
|
3971
|
+
exports.CertificateAuthorizationItem = CertificateAuthorizationItem;
|
|
3956
3972
|
__decorate([
|
|
3957
3973
|
(0, ts_serval_1.validate)(),
|
|
3958
3974
|
(0, ts_serval_1.serialize)(),
|
|
@@ -3997,11 +4013,12 @@ var CertificateDelegateType;
|
|
|
3997
4013
|
/**
|
|
3998
4014
|
* A CertificateDelegateItem
|
|
3999
4015
|
*/
|
|
4000
|
-
let CertificateDelegateItem =
|
|
4016
|
+
let CertificateDelegateItem = class CertificateDelegateItem extends CertificateItem_1.CertificateItem {
|
|
4001
4017
|
static from(value) {
|
|
4002
4018
|
return this.fromAny(value);
|
|
4003
4019
|
}
|
|
4004
4020
|
};
|
|
4021
|
+
exports.CertificateDelegateItem = CertificateDelegateItem;
|
|
4005
4022
|
__decorate([
|
|
4006
4023
|
(0, ts_serval_1.validate)(),
|
|
4007
4024
|
(0, ts_serval_1.serialize)(),
|
|
@@ -4052,11 +4069,12 @@ const CertificateItem_1 = __webpack_require__(/*! ../CertificateItem */ "./dist/
|
|
|
4052
4069
|
* the additional data within the shared certificate is of no value to the third party, without
|
|
4053
4070
|
* the shared attributes (+ nonce).
|
|
4054
4071
|
*/
|
|
4055
|
-
let CertificatePrivateAttributeItem =
|
|
4072
|
+
let CertificatePrivateAttributeItem = class CertificatePrivateAttributeItem extends CertificateItem_1.CertificateItem {
|
|
4056
4073
|
static from(value) {
|
|
4057
4074
|
return this.fromAny(value);
|
|
4058
4075
|
}
|
|
4059
4076
|
};
|
|
4077
|
+
exports.CertificatePrivateAttributeItem = CertificatePrivateAttributeItem;
|
|
4060
4078
|
__decorate([
|
|
4061
4079
|
(0, ts_serval_1.validate)(),
|
|
4062
4080
|
(0, ts_serval_1.serialize)(),
|
|
@@ -4102,7 +4120,7 @@ const CertificateItem_1 = __webpack_require__(/*! ../CertificateItem */ "./dist/
|
|
|
4102
4120
|
* the additional data within the shared certificate is of no value to the third party, without
|
|
4103
4121
|
* the shared attributes (+ nonce).
|
|
4104
4122
|
*/
|
|
4105
|
-
let CertificatePrivateAttributeItemSource =
|
|
4123
|
+
let CertificatePrivateAttributeItemSource = class CertificatePrivateAttributeItemSource extends CertificateItem_1.CertificateItem {
|
|
4106
4124
|
async hash() {
|
|
4107
4125
|
return await types_1.CoreHash.hash(`${this.nonce}|${this.name}|${this.value}`);
|
|
4108
4126
|
}
|
|
@@ -4110,6 +4128,7 @@ let CertificatePrivateAttributeItemSource = exports.CertificatePrivateAttributeI
|
|
|
4110
4128
|
return this.fromAny(value);
|
|
4111
4129
|
}
|
|
4112
4130
|
};
|
|
4131
|
+
exports.CertificatePrivateAttributeItemSource = CertificatePrivateAttributeItemSource;
|
|
4113
4132
|
__decorate([
|
|
4114
4133
|
(0, ts_serval_1.validate)(),
|
|
4115
4134
|
(0, ts_serval_1.serialize)(),
|
|
@@ -4157,11 +4176,12 @@ const CertificateItem_1 = __webpack_require__(/*! ../CertificateItem */ "./dist/
|
|
|
4157
4176
|
* A CertificatePublicAttributeItem is a representation of a single attribute,
|
|
4158
4177
|
* consisting of a name of the attribute and its value.
|
|
4159
4178
|
*/
|
|
4160
|
-
let CertificatePublicAttributeItem =
|
|
4179
|
+
let CertificatePublicAttributeItem = class CertificatePublicAttributeItem extends CertificateItem_1.CertificateItem {
|
|
4161
4180
|
static from(value) {
|
|
4162
4181
|
return this.fromAny(value);
|
|
4163
4182
|
}
|
|
4164
4183
|
};
|
|
4184
|
+
exports.CertificatePublicAttributeItem = CertificatePublicAttributeItem;
|
|
4165
4185
|
__decorate([
|
|
4166
4186
|
(0, ts_serval_1.validate)(),
|
|
4167
4187
|
(0, ts_serval_1.serialize)(),
|
|
@@ -4208,11 +4228,12 @@ const CertificateItem_1 = __webpack_require__(/*! ../CertificateItem */ "./dist/
|
|
|
4208
4228
|
* - Employee
|
|
4209
4229
|
* - Administrator
|
|
4210
4230
|
*/
|
|
4211
|
-
let CertificateRoleItem =
|
|
4231
|
+
let CertificateRoleItem = class CertificateRoleItem extends CertificateItem_1.CertificateItem {
|
|
4212
4232
|
static from(value) {
|
|
4213
4233
|
return this.fromAny(value);
|
|
4214
4234
|
}
|
|
4215
4235
|
};
|
|
4236
|
+
exports.CertificateRoleItem = CertificateRoleItem;
|
|
4216
4237
|
__decorate([
|
|
4217
4238
|
(0, ts_serval_1.validate)(),
|
|
4218
4239
|
(0, ts_serval_1.serialize)(),
|
|
@@ -4295,8 +4316,9 @@ class ChallengeController extends TransportController_1.TransportController {
|
|
|
4295
4316
|
const backboneChallengeResponse = await this.authClient.getChallenge(challenge.id.toString());
|
|
4296
4317
|
if (backboneChallengeResponse.isError)
|
|
4297
4318
|
return { isValid: false };
|
|
4298
|
-
if (
|
|
4299
|
-
|
|
4319
|
+
if (backboneChallengeResponse.value.id !== challenge.id.toString())
|
|
4320
|
+
return { isValid: false };
|
|
4321
|
+
if (challenge.createdBy && backboneChallengeResponse.value.createdBy !== challenge.createdBy.toString()) {
|
|
4300
4322
|
return { isValid: false };
|
|
4301
4323
|
}
|
|
4302
4324
|
return await this.validateChallengeLocally(challenge, signedChallenge);
|
|
@@ -4442,11 +4464,12 @@ var ChallengeType;
|
|
|
4442
4464
|
ChallengeType["Device"] = "Device";
|
|
4443
4465
|
ChallengeType["Relationship"] = "Relationship";
|
|
4444
4466
|
})(ChallengeType || (exports.ChallengeType = ChallengeType = {}));
|
|
4445
|
-
let Challenge =
|
|
4467
|
+
let Challenge = class Challenge extends core_1.CoreSerializable {
|
|
4446
4468
|
static from(value) {
|
|
4447
4469
|
return this.fromAny(value);
|
|
4448
4470
|
}
|
|
4449
4471
|
};
|
|
4472
|
+
exports.Challenge = Challenge;
|
|
4450
4473
|
__decorate([
|
|
4451
4474
|
(0, ts_serval_1.validate)(),
|
|
4452
4475
|
(0, ts_serval_1.serialize)(),
|
|
@@ -4501,7 +4524,7 @@ exports.ChallengeSigned = void 0;
|
|
|
4501
4524
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
4502
4525
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
4503
4526
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
4504
|
-
let ChallengeSigned =
|
|
4527
|
+
let ChallengeSigned = class ChallengeSigned extends core_1.CoreSerializable {
|
|
4505
4528
|
static from(value) {
|
|
4506
4529
|
return this.fromAny(value);
|
|
4507
4530
|
}
|
|
@@ -4520,6 +4543,7 @@ let ChallengeSigned = exports.ChallengeSigned = class ChallengeSigned extends co
|
|
|
4520
4543
|
return obj;
|
|
4521
4544
|
}
|
|
4522
4545
|
};
|
|
4546
|
+
exports.ChallengeSigned = ChallengeSigned;
|
|
4523
4547
|
__decorate([
|
|
4524
4548
|
(0, ts_serval_1.validate)(),
|
|
4525
4549
|
(0, ts_serval_1.serialize)({ enforceString: true }),
|
|
@@ -4981,7 +5005,7 @@ class DevicesController extends TransportController_1.TransportController {
|
|
|
4981
5005
|
}
|
|
4982
5006
|
const count = await this.devices.count();
|
|
4983
5007
|
const device = Device_1.Device.from(deviceDoc);
|
|
4984
|
-
if (
|
|
5008
|
+
if (typeof device.publicKey !== "undefined") {
|
|
4985
5009
|
throw core_1.CoreErrors.device.alreadyOnboarded();
|
|
4986
5010
|
}
|
|
4987
5011
|
const isAdmin = device.isAdmin === true;
|
|
@@ -5110,7 +5134,7 @@ var DeviceType;
|
|
|
5110
5134
|
DeviceType[DeviceType["Desktop"] = 3] = "Desktop";
|
|
5111
5135
|
DeviceType[DeviceType["Connector"] = 4] = "Connector";
|
|
5112
5136
|
})(DeviceType || (exports.DeviceType = DeviceType = {}));
|
|
5113
|
-
let Device =
|
|
5137
|
+
let Device = class Device extends core_1.CoreSynchronizable {
|
|
5114
5138
|
constructor() {
|
|
5115
5139
|
super(...arguments);
|
|
5116
5140
|
this.technicalProperties = [
|
|
@@ -5134,6 +5158,7 @@ let Device = exports.Device = class Device extends core_1.CoreSynchronizable {
|
|
|
5134
5158
|
return this.fromAny(value);
|
|
5135
5159
|
}
|
|
5136
5160
|
};
|
|
5161
|
+
exports.Device = Device;
|
|
5137
5162
|
__decorate([
|
|
5138
5163
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5139
5164
|
(0, ts_serval_1.serialize)(),
|
|
@@ -5227,11 +5252,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
5227
5252
|
exports.DeviceSecretCredentials = void 0;
|
|
5228
5253
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5229
5254
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
5230
|
-
let DeviceSecretCredentials =
|
|
5255
|
+
let DeviceSecretCredentials = class DeviceSecretCredentials extends core_1.CoreSerializable {
|
|
5231
5256
|
static from(value) {
|
|
5232
5257
|
return this.fromAny(value);
|
|
5233
5258
|
}
|
|
5234
5259
|
};
|
|
5260
|
+
exports.DeviceSecretCredentials = DeviceSecretCredentials;
|
|
5235
5261
|
__decorate([
|
|
5236
5262
|
(0, ts_serval_1.serialize)(),
|
|
5237
5263
|
(0, ts_serval_1.validate)(),
|
|
@@ -5275,11 +5301,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
5275
5301
|
exports.SendDeviceParameters = void 0;
|
|
5276
5302
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5277
5303
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
5278
|
-
let SendDeviceParameters =
|
|
5304
|
+
let SendDeviceParameters = class SendDeviceParameters extends core_1.CoreSerializable {
|
|
5279
5305
|
static from(value) {
|
|
5280
5306
|
return this.fromAny(value);
|
|
5281
5307
|
}
|
|
5282
5308
|
};
|
|
5309
|
+
exports.SendDeviceParameters = SendDeviceParameters;
|
|
5283
5310
|
__decorate([
|
|
5284
5311
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5285
5312
|
(0, ts_serval_1.serialize)(),
|
|
@@ -5325,11 +5352,12 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
5325
5352
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
5326
5353
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
5327
5354
|
const Identity_1 = __webpack_require__(/*! ../../accounts/data/Identity */ "./dist/modules/accounts/data/Identity.js");
|
|
5328
|
-
let DeviceSharedSecret =
|
|
5355
|
+
let DeviceSharedSecret = class DeviceSharedSecret extends core_1.CoreSerializable {
|
|
5329
5356
|
static from(value) {
|
|
5330
5357
|
return this.fromAny(value);
|
|
5331
5358
|
}
|
|
5332
5359
|
};
|
|
5360
|
+
exports.DeviceSharedSecret = DeviceSharedSecret;
|
|
5333
5361
|
__decorate([
|
|
5334
5362
|
(0, ts_serval_1.serialize)(),
|
|
5335
5363
|
(0, ts_serval_1.validate)(),
|
|
@@ -5730,7 +5758,7 @@ exports.CachedFile = void 0;
|
|
|
5730
5758
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5731
5759
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
5732
5760
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
5733
|
-
let CachedFile =
|
|
5761
|
+
let CachedFile = CachedFile_1 = class CachedFile extends core_1.CoreSerializable {
|
|
5734
5762
|
static from(value) {
|
|
5735
5763
|
return this.fromAny(value);
|
|
5736
5764
|
}
|
|
@@ -5759,6 +5787,7 @@ let CachedFile = exports.CachedFile = CachedFile_1 = class CachedFile extends co
|
|
|
5759
5787
|
});
|
|
5760
5788
|
}
|
|
5761
5789
|
};
|
|
5790
|
+
exports.CachedFile = CachedFile;
|
|
5762
5791
|
__decorate([
|
|
5763
5792
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5764
5793
|
(0, ts_serval_1.serialize)(),
|
|
@@ -5881,7 +5910,7 @@ const ts_simple_nameof_1 = __webpack_require__(/*! ts-simple-nameof */ "./node_m
|
|
|
5881
5910
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
5882
5911
|
const FileReference_1 = __webpack_require__(/*! ../transmission/FileReference */ "./dist/modules/files/transmission/FileReference.js");
|
|
5883
5912
|
const CachedFile_1 = __webpack_require__(/*! ./CachedFile */ "./dist/modules/files/local/CachedFile.js");
|
|
5884
|
-
let File =
|
|
5913
|
+
let File = class File extends core_1.CoreSynchronizable {
|
|
5885
5914
|
constructor() {
|
|
5886
5915
|
super(...arguments);
|
|
5887
5916
|
this.technicalProperties = [
|
|
@@ -5916,6 +5945,7 @@ let File = exports.File = class File extends core_1.CoreSynchronizable {
|
|
|
5916
5945
|
return this;
|
|
5917
5946
|
}
|
|
5918
5947
|
};
|
|
5948
|
+
exports.File = File;
|
|
5919
5949
|
__decorate([
|
|
5920
5950
|
(0, ts_serval_1.validate)(),
|
|
5921
5951
|
(0, ts_serval_1.serialize)(),
|
|
@@ -5976,11 +6006,12 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
5976
6006
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
5977
6007
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
5978
6008
|
const CoreDate_1 = __webpack_require__(/*! ../../../core/types/CoreDate */ "./dist/core/types/CoreDate.js");
|
|
5979
|
-
let SendFileParameters =
|
|
6009
|
+
let SendFileParameters = class SendFileParameters extends core_1.CoreSerializable {
|
|
5980
6010
|
static from(value) {
|
|
5981
6011
|
return this.fromAny(value);
|
|
5982
6012
|
}
|
|
5983
6013
|
};
|
|
6014
|
+
exports.SendFileParameters = SendFileParameters;
|
|
5984
6015
|
__decorate([
|
|
5985
6016
|
(0, ts_serval_1.validate)(),
|
|
5986
6017
|
(0, ts_serval_1.serialize)(),
|
|
@@ -6045,11 +6076,12 @@ exports.FileMetadata = void 0;
|
|
|
6045
6076
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6046
6077
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
6047
6078
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
6048
|
-
let FileMetadata =
|
|
6079
|
+
let FileMetadata = class FileMetadata extends core_1.CoreSerializable {
|
|
6049
6080
|
static from(value) {
|
|
6050
6081
|
return this.fromAny(value);
|
|
6051
6082
|
}
|
|
6052
6083
|
};
|
|
6084
|
+
exports.FileMetadata = FileMetadata;
|
|
6053
6085
|
__decorate([
|
|
6054
6086
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
6055
6087
|
(0, ts_serval_1.serialize)(),
|
|
@@ -6115,7 +6147,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
6115
6147
|
exports.FileReference = void 0;
|
|
6116
6148
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6117
6149
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
6118
|
-
let FileReference =
|
|
6150
|
+
let FileReference = class FileReference extends core_1.Reference {
|
|
6119
6151
|
static preFrom(value) {
|
|
6120
6152
|
super.validateId(value, core_1.BackboneIds.file);
|
|
6121
6153
|
return value;
|
|
@@ -6124,6 +6156,7 @@ let FileReference = exports.FileReference = class FileReference extends core_1.R
|
|
|
6124
6156
|
return super.from(value);
|
|
6125
6157
|
}
|
|
6126
6158
|
};
|
|
6159
|
+
exports.FileReference = FileReference;
|
|
6127
6160
|
exports.FileReference = FileReference = __decorate([
|
|
6128
6161
|
(0, ts_serval_1.type)("FileReference")
|
|
6129
6162
|
], FileReference);
|
|
@@ -6761,7 +6794,7 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
6761
6794
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
6762
6795
|
const CoreDate_1 = __webpack_require__(/*! ../../../core/types/CoreDate */ "./dist/core/types/CoreDate.js");
|
|
6763
6796
|
const MessageEnvelopeRecipient_1 = __webpack_require__(/*! ../transmission/MessageEnvelopeRecipient */ "./dist/modules/messages/transmission/MessageEnvelopeRecipient.js");
|
|
6764
|
-
let CachedMessage =
|
|
6797
|
+
let CachedMessage = class CachedMessage extends core_1.CoreSerializable {
|
|
6765
6798
|
constructor() {
|
|
6766
6799
|
super(...arguments);
|
|
6767
6800
|
this.receivedByEveryone = false;
|
|
@@ -6770,6 +6803,7 @@ let CachedMessage = exports.CachedMessage = class CachedMessage extends core_1.C
|
|
|
6770
6803
|
return this.fromAny(value);
|
|
6771
6804
|
}
|
|
6772
6805
|
};
|
|
6806
|
+
exports.CachedMessage = CachedMessage;
|
|
6773
6807
|
__decorate([
|
|
6774
6808
|
(0, ts_serval_1.validate)(),
|
|
6775
6809
|
(0, ts_serval_1.serialize)(),
|
|
@@ -6836,7 +6870,7 @@ const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
|
6836
6870
|
const ts_simple_nameof_1 = __webpack_require__(/*! ts-simple-nameof */ "./node_modules/ts-simple-nameof/index.js");
|
|
6837
6871
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
6838
6872
|
const CachedMessage_1 = __webpack_require__(/*! ./CachedMessage */ "./dist/modules/messages/local/CachedMessage.js");
|
|
6839
|
-
let Message =
|
|
6873
|
+
let Message = class Message extends core_1.CoreSynchronizable {
|
|
6840
6874
|
constructor() {
|
|
6841
6875
|
super(...arguments);
|
|
6842
6876
|
this.technicalProperties = [
|
|
@@ -6865,6 +6899,7 @@ let Message = exports.Message = class Message extends core_1.CoreSynchronizable
|
|
|
6865
6899
|
return this;
|
|
6866
6900
|
}
|
|
6867
6901
|
};
|
|
6902
|
+
exports.Message = Message;
|
|
6868
6903
|
__decorate([
|
|
6869
6904
|
(0, ts_serval_1.validate)(),
|
|
6870
6905
|
(0, ts_serval_1.serialize)(),
|
|
@@ -6929,11 +6964,12 @@ exports.SendMessageParameters = void 0;
|
|
|
6929
6964
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6930
6965
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
6931
6966
|
const File_1 = __webpack_require__(/*! ../../files/local/File */ "./dist/modules/files/local/File.js");
|
|
6932
|
-
let SendMessageParameters =
|
|
6967
|
+
let SendMessageParameters = class SendMessageParameters extends core_1.CoreSerializable {
|
|
6933
6968
|
static from(value) {
|
|
6934
6969
|
return this.fromAny(value);
|
|
6935
6970
|
}
|
|
6936
6971
|
};
|
|
6972
|
+
exports.SendMessageParameters = SendMessageParameters;
|
|
6937
6973
|
__decorate([
|
|
6938
6974
|
(0, ts_serval_1.validate)(),
|
|
6939
6975
|
(0, ts_serval_1.serialize)({ type: core_1.CoreAddress }),
|
|
@@ -6990,7 +7026,7 @@ const FileReference_1 = __webpack_require__(/*! ../../files/transmission/FileRef
|
|
|
6990
7026
|
* the sender. If a recipient is not in the signed list of recipients, the message needs to be
|
|
6991
7027
|
* ignored (as the whole message could have been forwarded by bad party to a wrong recipient).
|
|
6992
7028
|
*/
|
|
6993
|
-
let MessageContentWrapper =
|
|
7029
|
+
let MessageContentWrapper = class MessageContentWrapper extends core_1.CoreSerializable {
|
|
6994
7030
|
constructor() {
|
|
6995
7031
|
super(...arguments);
|
|
6996
7032
|
this.attachments = [];
|
|
@@ -7005,6 +7041,7 @@ let MessageContentWrapper = exports.MessageContentWrapper = class MessageContent
|
|
|
7005
7041
|
return this.fromAny(value);
|
|
7006
7042
|
}
|
|
7007
7043
|
};
|
|
7044
|
+
exports.MessageContentWrapper = MessageContentWrapper;
|
|
7008
7045
|
__decorate([
|
|
7009
7046
|
(0, ts_serval_1.validate)(),
|
|
7010
7047
|
(0, ts_serval_1.serialize)({ type: FileReference_1.FileReference }),
|
|
@@ -7055,7 +7092,7 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
7055
7092
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
7056
7093
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
7057
7094
|
const MessageEnvelopeRecipient_1 = __webpack_require__(/*! ./MessageEnvelopeRecipient */ "./dist/modules/messages/transmission/MessageEnvelopeRecipient.js");
|
|
7058
|
-
let MessageEnvelope =
|
|
7095
|
+
let MessageEnvelope = class MessageEnvelope extends core_1.CoreSerializable {
|
|
7059
7096
|
static from(value) {
|
|
7060
7097
|
return this.fromAny(value);
|
|
7061
7098
|
}
|
|
@@ -7079,6 +7116,7 @@ let MessageEnvelope = exports.MessageEnvelope = class MessageEnvelope extends co
|
|
|
7079
7116
|
return obj;
|
|
7080
7117
|
}
|
|
7081
7118
|
};
|
|
7119
|
+
exports.MessageEnvelope = MessageEnvelope;
|
|
7082
7120
|
__decorate([
|
|
7083
7121
|
(0, ts_serval_1.validate)(),
|
|
7084
7122
|
(0, ts_serval_1.serialize)(),
|
|
@@ -7144,11 +7182,12 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
7144
7182
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
7145
7183
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
7146
7184
|
const CoreAddress_1 = __webpack_require__(/*! ../../../core/types/CoreAddress */ "./dist/core/types/CoreAddress.js");
|
|
7147
|
-
let MessageEnvelopeRecipient =
|
|
7185
|
+
let MessageEnvelopeRecipient = class MessageEnvelopeRecipient extends core_1.CoreSerializable {
|
|
7148
7186
|
static from(value) {
|
|
7149
7187
|
return this.fromAny(value);
|
|
7150
7188
|
}
|
|
7151
7189
|
};
|
|
7190
|
+
exports.MessageEnvelopeRecipient = MessageEnvelopeRecipient;
|
|
7152
7191
|
__decorate([
|
|
7153
7192
|
(0, ts_serval_1.validate)(),
|
|
7154
7193
|
(0, ts_serval_1.serialize)(),
|
|
@@ -7198,11 +7237,12 @@ exports.MessageSignature = void 0;
|
|
|
7198
7237
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
7199
7238
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
7200
7239
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
7201
|
-
let MessageSignature =
|
|
7240
|
+
let MessageSignature = class MessageSignature extends core_1.CoreSerializable {
|
|
7202
7241
|
static from(value) {
|
|
7203
7242
|
return this.fromAny(value);
|
|
7204
7243
|
}
|
|
7205
7244
|
};
|
|
7245
|
+
exports.MessageSignature = MessageSignature;
|
|
7206
7246
|
__decorate([
|
|
7207
7247
|
(0, ts_serval_1.validate)(),
|
|
7208
7248
|
(0, ts_serval_1.serialize)(),
|
|
@@ -7245,11 +7285,12 @@ const MessageSignature_1 = __webpack_require__(/*! ./MessageSignature */ "./dist
|
|
|
7245
7285
|
/**
|
|
7246
7286
|
* MessageSigned encapsulates the actual message with the senders digital signature.
|
|
7247
7287
|
*/
|
|
7248
|
-
let MessageSigned =
|
|
7288
|
+
let MessageSigned = class MessageSigned extends core_1.CoreSerializable {
|
|
7249
7289
|
static from(value) {
|
|
7250
7290
|
return this.fromAny(value);
|
|
7251
7291
|
}
|
|
7252
7292
|
};
|
|
7293
|
+
exports.MessageSigned = MessageSigned;
|
|
7253
7294
|
__decorate([
|
|
7254
7295
|
(0, ts_serval_1.validate)(),
|
|
7255
7296
|
(0, ts_serval_1.serialize)({ type: MessageSignature_1.MessageSignature }),
|
|
@@ -7570,11 +7611,12 @@ const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
|
7570
7611
|
const CoreId_1 = __webpack_require__(/*! ../../../core/types/CoreId */ "./dist/core/types/CoreId.js");
|
|
7571
7612
|
const Identity_1 = __webpack_require__(/*! ../../accounts/data/Identity */ "./dist/modules/accounts/data/Identity.js");
|
|
7572
7613
|
const RelationshipTemplatePublicKey_1 = __webpack_require__(/*! ../transmission/RelationshipTemplatePublicKey */ "./dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.js");
|
|
7573
|
-
let CachedRelationshipTemplate =
|
|
7614
|
+
let CachedRelationshipTemplate = class CachedRelationshipTemplate extends core_1.CoreSerializable {
|
|
7574
7615
|
static from(value) {
|
|
7575
7616
|
return this.fromAny(value);
|
|
7576
7617
|
}
|
|
7577
7618
|
};
|
|
7619
|
+
exports.CachedRelationshipTemplate = CachedRelationshipTemplate;
|
|
7578
7620
|
__decorate([
|
|
7579
7621
|
(0, ts_serval_1.validate)(),
|
|
7580
7622
|
(0, ts_serval_1.serialize)(),
|
|
@@ -7657,7 +7699,7 @@ const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
|
7657
7699
|
const CoreDate_1 = __webpack_require__(/*! ../../../core/types/CoreDate */ "./dist/core/types/CoreDate.js");
|
|
7658
7700
|
const RelationshipTemplateReference_1 = __webpack_require__(/*! ../transmission/RelationshipTemplateReference */ "./dist/modules/relationshipTemplates/transmission/RelationshipTemplateReference.js");
|
|
7659
7701
|
const CachedRelationshipTemplate_1 = __webpack_require__(/*! ./CachedRelationshipTemplate */ "./dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js");
|
|
7660
|
-
let RelationshipTemplate =
|
|
7702
|
+
let RelationshipTemplate = class RelationshipTemplate extends core_1.CoreSynchronizable {
|
|
7661
7703
|
constructor() {
|
|
7662
7704
|
super(...arguments);
|
|
7663
7705
|
this.technicalProperties = [
|
|
@@ -7692,6 +7734,7 @@ let RelationshipTemplate = exports.RelationshipTemplate = class RelationshipTemp
|
|
|
7692
7734
|
return this;
|
|
7693
7735
|
}
|
|
7694
7736
|
};
|
|
7737
|
+
exports.RelationshipTemplate = RelationshipTemplate;
|
|
7695
7738
|
__decorate([
|
|
7696
7739
|
(0, ts_serval_1.validate)(),
|
|
7697
7740
|
(0, ts_serval_1.serialize)(),
|
|
@@ -7751,11 +7794,12 @@ exports.SendRelationshipTemplateParameters = void 0;
|
|
|
7751
7794
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
7752
7795
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
7753
7796
|
const CachedRelationshipTemplate_1 = __webpack_require__(/*! ./CachedRelationshipTemplate */ "./dist/modules/relationshipTemplates/local/CachedRelationshipTemplate.js");
|
|
7754
|
-
let SendRelationshipTemplateParameters =
|
|
7797
|
+
let SendRelationshipTemplateParameters = class SendRelationshipTemplateParameters extends core_1.CoreSerializable {
|
|
7755
7798
|
static from(value) {
|
|
7756
7799
|
return this.fromAny(value);
|
|
7757
7800
|
}
|
|
7758
7801
|
};
|
|
7802
|
+
exports.SendRelationshipTemplateParameters = SendRelationshipTemplateParameters;
|
|
7759
7803
|
__decorate([
|
|
7760
7804
|
(0, ts_serval_1.validate)(),
|
|
7761
7805
|
(0, ts_serval_1.serialize)(),
|
|
@@ -7801,11 +7845,12 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
7801
7845
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
7802
7846
|
const Identity_1 = __webpack_require__(/*! ../../accounts/data/Identity */ "./dist/modules/accounts/data/Identity.js");
|
|
7803
7847
|
const RelationshipTemplatePublicKey_1 = __webpack_require__(/*! ./RelationshipTemplatePublicKey */ "./dist/modules/relationshipTemplates/transmission/RelationshipTemplatePublicKey.js");
|
|
7804
|
-
let RelationshipTemplateContentWrapper =
|
|
7848
|
+
let RelationshipTemplateContentWrapper = class RelationshipTemplateContentWrapper extends core_1.CoreSerializable {
|
|
7805
7849
|
static from(value) {
|
|
7806
7850
|
return this.fromAny(value);
|
|
7807
7851
|
}
|
|
7808
7852
|
};
|
|
7853
|
+
exports.RelationshipTemplateContentWrapper = RelationshipTemplateContentWrapper;
|
|
7809
7854
|
__decorate([
|
|
7810
7855
|
(0, ts_serval_1.validate)(),
|
|
7811
7856
|
(0, ts_serval_1.serialize)(),
|
|
@@ -7850,7 +7895,7 @@ exports.RelationshipTemplatePublicKey = void 0;
|
|
|
7850
7895
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
7851
7896
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
7852
7897
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
7853
|
-
let RelationshipTemplatePublicKey =
|
|
7898
|
+
let RelationshipTemplatePublicKey = class RelationshipTemplatePublicKey extends crypto_1.CryptoExchangePublicKey {
|
|
7854
7899
|
toJSON(verbose = true) {
|
|
7855
7900
|
return {
|
|
7856
7901
|
id: this.id.toString(),
|
|
@@ -7877,6 +7922,7 @@ let RelationshipTemplatePublicKey = exports.RelationshipTemplatePublicKey = clas
|
|
|
7877
7922
|
return this.fromAny(value);
|
|
7878
7923
|
}
|
|
7879
7924
|
};
|
|
7925
|
+
exports.RelationshipTemplatePublicKey = RelationshipTemplatePublicKey;
|
|
7880
7926
|
__decorate([
|
|
7881
7927
|
(0, ts_serval_1.serialize)(),
|
|
7882
7928
|
(0, ts_serval_1.validate)(),
|
|
@@ -7907,7 +7953,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
7907
7953
|
exports.RelationshipTemplateReference = void 0;
|
|
7908
7954
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
7909
7955
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
7910
|
-
let RelationshipTemplateReference =
|
|
7956
|
+
let RelationshipTemplateReference = class RelationshipTemplateReference extends core_1.Reference {
|
|
7911
7957
|
static preFrom(value) {
|
|
7912
7958
|
super.validateId(value, core_1.BackboneIds.relationshipTemplate);
|
|
7913
7959
|
return value;
|
|
@@ -7916,6 +7962,7 @@ let RelationshipTemplateReference = exports.RelationshipTemplateReference = clas
|
|
|
7916
7962
|
return super.from(value);
|
|
7917
7963
|
}
|
|
7918
7964
|
};
|
|
7965
|
+
exports.RelationshipTemplateReference = RelationshipTemplateReference;
|
|
7919
7966
|
exports.RelationshipTemplateReference = RelationshipTemplateReference = __decorate([
|
|
7920
7967
|
(0, ts_serval_1.type)("RelationshipTemplateReference")
|
|
7921
7968
|
], RelationshipTemplateReference);
|
|
@@ -7945,11 +7992,12 @@ exports.RelationshipTemplateSigned = void 0;
|
|
|
7945
7992
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
7946
7993
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
7947
7994
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
7948
|
-
let RelationshipTemplateSigned =
|
|
7995
|
+
let RelationshipTemplateSigned = class RelationshipTemplateSigned extends core_1.CoreSerializable {
|
|
7949
7996
|
static from(value) {
|
|
7950
7997
|
return this.fromAny(value);
|
|
7951
7998
|
}
|
|
7952
7999
|
};
|
|
8000
|
+
exports.RelationshipTemplateSigned = RelationshipTemplateSigned;
|
|
7953
8001
|
__decorate([
|
|
7954
8002
|
(0, ts_serval_1.validate)(),
|
|
7955
8003
|
(0, ts_serval_1.serialize)(),
|
|
@@ -8885,7 +8933,7 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
8885
8933
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
8886
8934
|
const RelationshipTemplate_1 = __webpack_require__(/*! ../../relationshipTemplates/local/RelationshipTemplate */ "./dist/modules/relationshipTemplates/local/RelationshipTemplate.js");
|
|
8887
8935
|
const RelationshipChange_1 = __webpack_require__(/*! ../transmission/changes/RelationshipChange */ "./dist/modules/relationships/transmission/changes/RelationshipChange.js");
|
|
8888
|
-
let CachedRelationship =
|
|
8936
|
+
let CachedRelationship = class CachedRelationship extends core_1.CoreSerializable {
|
|
8889
8937
|
get creationChange() {
|
|
8890
8938
|
return this.changes[0];
|
|
8891
8939
|
}
|
|
@@ -8893,6 +8941,7 @@ let CachedRelationship = exports.CachedRelationship = class CachedRelationship e
|
|
|
8893
8941
|
return this.fromAny(value);
|
|
8894
8942
|
}
|
|
8895
8943
|
};
|
|
8944
|
+
exports.CachedRelationship = CachedRelationship;
|
|
8896
8945
|
__decorate([
|
|
8897
8946
|
(0, ts_serval_1.validate)(),
|
|
8898
8947
|
(0, ts_serval_1.serialize)(),
|
|
@@ -8946,7 +8995,7 @@ const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
|
8946
8995
|
const Identity_1 = __webpack_require__(/*! ../../accounts/data/Identity */ "./dist/modules/accounts/data/Identity.js");
|
|
8947
8996
|
const RelationshipStatus_1 = __webpack_require__(/*! ../transmission/RelationshipStatus */ "./dist/modules/relationships/transmission/RelationshipStatus.js");
|
|
8948
8997
|
const CachedRelationship_1 = __webpack_require__(/*! ./CachedRelationship */ "./dist/modules/relationships/local/CachedRelationship.js");
|
|
8949
|
-
let Relationship =
|
|
8998
|
+
let Relationship = Relationship_1 = class Relationship extends core_1.CoreSynchronizable {
|
|
8950
8999
|
constructor() {
|
|
8951
9000
|
super(...arguments);
|
|
8952
9001
|
this.technicalProperties = [
|
|
@@ -9024,6 +9073,7 @@ let Relationship = exports.Relationship = Relationship_1 = class Relationship ex
|
|
|
9024
9073
|
return new core_1.TransportError(`The cache of the Relationship with id "${this.id}" is empty.`);
|
|
9025
9074
|
}
|
|
9026
9075
|
};
|
|
9076
|
+
exports.Relationship = Relationship;
|
|
9027
9077
|
__decorate([
|
|
9028
9078
|
(0, ts_serval_1.validate)(),
|
|
9029
9079
|
(0, ts_serval_1.serialize)(),
|
|
@@ -9088,11 +9138,12 @@ exports.SendRelationshipParameters = void 0;
|
|
|
9088
9138
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
9089
9139
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
9090
9140
|
const RelationshipTemplate_1 = __webpack_require__(/*! ../../relationshipTemplates/local/RelationshipTemplate */ "./dist/modules/relationshipTemplates/local/RelationshipTemplate.js");
|
|
9091
|
-
let SendRelationshipParameters =
|
|
9141
|
+
let SendRelationshipParameters = class SendRelationshipParameters extends core_1.CoreSerializable {
|
|
9092
9142
|
static from(value) {
|
|
9093
9143
|
return this.fromAny(value);
|
|
9094
9144
|
}
|
|
9095
9145
|
};
|
|
9146
|
+
exports.SendRelationshipParameters = SendRelationshipParameters;
|
|
9096
9147
|
__decorate([
|
|
9097
9148
|
(0, ts_serval_1.validate)(),
|
|
9098
9149
|
(0, ts_serval_1.serialize)(),
|
|
@@ -9159,7 +9210,7 @@ const RelationshipChangeRequest_1 = __webpack_require__(/*! ./RelationshipChange
|
|
|
9159
9210
|
const RelationshipChangeResponse_1 = __webpack_require__(/*! ./RelationshipChangeResponse */ "./dist/modules/relationships/transmission/changes/RelationshipChangeResponse.js");
|
|
9160
9211
|
const RelationshipChangeStatus_1 = __webpack_require__(/*! ./RelationshipChangeStatus */ "./dist/modules/relationships/transmission/changes/RelationshipChangeStatus.js");
|
|
9161
9212
|
const RelationshipChangeType_1 = __webpack_require__(/*! ./RelationshipChangeType */ "./dist/modules/relationships/transmission/changes/RelationshipChangeType.js");
|
|
9162
|
-
let RelationshipChange =
|
|
9213
|
+
let RelationshipChange = class RelationshipChange extends core_1.CoreSerializable {
|
|
9163
9214
|
static fromBackbone(backboneChange, requestContent, responseContent) {
|
|
9164
9215
|
const relationshipChange = this.from({
|
|
9165
9216
|
id: CoreId_1.CoreId.from(backboneChange.id),
|
|
@@ -9177,6 +9228,7 @@ let RelationshipChange = exports.RelationshipChange = class RelationshipChange e
|
|
|
9177
9228
|
return this.fromAny(value);
|
|
9178
9229
|
}
|
|
9179
9230
|
};
|
|
9231
|
+
exports.RelationshipChange = RelationshipChange;
|
|
9180
9232
|
__decorate([
|
|
9181
9233
|
(0, ts_serval_1.validate)(),
|
|
9182
9234
|
(0, ts_serval_1.serialize)(),
|
|
@@ -9236,7 +9288,7 @@ exports.RelationshipChangeRequest = void 0;
|
|
|
9236
9288
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
9237
9289
|
const core_1 = __webpack_require__(/*! ../../../../core */ "./dist/core/index.js");
|
|
9238
9290
|
const CoreId_1 = __webpack_require__(/*! ../../../../core/types/CoreId */ "./dist/core/types/CoreId.js");
|
|
9239
|
-
let RelationshipChangeRequest =
|
|
9291
|
+
let RelationshipChangeRequest = class RelationshipChangeRequest extends core_1.CoreSerializable {
|
|
9240
9292
|
static fromBackbone(backboneChange, content) {
|
|
9241
9293
|
return this.from({
|
|
9242
9294
|
createdBy: core_1.CoreAddress.from(backboneChange.createdBy),
|
|
@@ -9249,6 +9301,7 @@ let RelationshipChangeRequest = exports.RelationshipChangeRequest = class Relati
|
|
|
9249
9301
|
return this.fromAny(value);
|
|
9250
9302
|
}
|
|
9251
9303
|
};
|
|
9304
|
+
exports.RelationshipChangeRequest = RelationshipChangeRequest;
|
|
9252
9305
|
__decorate([
|
|
9253
9306
|
(0, ts_serval_1.validate)(),
|
|
9254
9307
|
(0, ts_serval_1.serialize)(),
|
|
@@ -9298,7 +9351,7 @@ exports.RelationshipChangeResponse = void 0;
|
|
|
9298
9351
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
9299
9352
|
const core_1 = __webpack_require__(/*! ../../../../core */ "./dist/core/index.js");
|
|
9300
9353
|
const CoreId_1 = __webpack_require__(/*! ../../../../core/types/CoreId */ "./dist/core/types/CoreId.js");
|
|
9301
|
-
let RelationshipChangeResponse =
|
|
9354
|
+
let RelationshipChangeResponse = class RelationshipChangeResponse extends core_1.CoreSerializable {
|
|
9302
9355
|
static fromBackbone(backboneChange, content) {
|
|
9303
9356
|
return this.from({
|
|
9304
9357
|
createdBy: core_1.CoreAddress.from(backboneChange.createdBy),
|
|
@@ -9311,6 +9364,7 @@ let RelationshipChangeResponse = exports.RelationshipChangeResponse = class Rela
|
|
|
9311
9364
|
return this.fromAny(value);
|
|
9312
9365
|
}
|
|
9313
9366
|
};
|
|
9367
|
+
exports.RelationshipChangeResponse = RelationshipChangeResponse;
|
|
9314
9368
|
__decorate([
|
|
9315
9369
|
(0, ts_serval_1.validate)(),
|
|
9316
9370
|
(0, ts_serval_1.serialize)(),
|
|
@@ -9401,7 +9455,7 @@ exports.RelationshipCreationChangeRequestCipher = void 0;
|
|
|
9401
9455
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
9402
9456
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
9403
9457
|
const core_1 = __webpack_require__(/*! ../../../../core */ "./dist/core/index.js");
|
|
9404
|
-
let RelationshipCreationChangeRequestCipher =
|
|
9458
|
+
let RelationshipCreationChangeRequestCipher = class RelationshipCreationChangeRequestCipher extends core_1.CoreSerializable {
|
|
9405
9459
|
static from(value) {
|
|
9406
9460
|
return this.fromAny(value);
|
|
9407
9461
|
}
|
|
@@ -9409,6 +9463,7 @@ let RelationshipCreationChangeRequestCipher = exports.RelationshipCreationChange
|
|
|
9409
9463
|
return super.fromBase64T(value);
|
|
9410
9464
|
}
|
|
9411
9465
|
};
|
|
9466
|
+
exports.RelationshipCreationChangeRequestCipher = RelationshipCreationChangeRequestCipher;
|
|
9412
9467
|
__decorate([
|
|
9413
9468
|
(0, ts_serval_1.validate)(),
|
|
9414
9469
|
(0, ts_serval_1.serialize)(),
|
|
@@ -9448,11 +9503,12 @@ exports.RelationshipCreationChangeRequestContentWrapper = void 0;
|
|
|
9448
9503
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
9449
9504
|
const core_1 = __webpack_require__(/*! ../../../../core */ "./dist/core/index.js");
|
|
9450
9505
|
const Identity_1 = __webpack_require__(/*! ../../../accounts/data/Identity */ "./dist/modules/accounts/data/Identity.js");
|
|
9451
|
-
let RelationshipCreationChangeRequestContentWrapper =
|
|
9506
|
+
let RelationshipCreationChangeRequestContentWrapper = class RelationshipCreationChangeRequestContentWrapper extends core_1.CoreSerializable {
|
|
9452
9507
|
static from(value) {
|
|
9453
9508
|
return this.fromAny(value);
|
|
9454
9509
|
}
|
|
9455
9510
|
};
|
|
9511
|
+
exports.RelationshipCreationChangeRequestContentWrapper = RelationshipCreationChangeRequestContentWrapper;
|
|
9456
9512
|
__decorate([
|
|
9457
9513
|
(0, ts_serval_1.validate)(),
|
|
9458
9514
|
(0, ts_serval_1.serialize)(),
|
|
@@ -9497,11 +9553,12 @@ exports.RelationshipCreationChangeRequestSigned = void 0;
|
|
|
9497
9553
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
9498
9554
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
9499
9555
|
const core_1 = __webpack_require__(/*! ../../../../core */ "./dist/core/index.js");
|
|
9500
|
-
let RelationshipCreationChangeRequestSigned =
|
|
9556
|
+
let RelationshipCreationChangeRequestSigned = class RelationshipCreationChangeRequestSigned extends core_1.CoreSerializable {
|
|
9501
9557
|
static from(value) {
|
|
9502
9558
|
return this.fromAny(value);
|
|
9503
9559
|
}
|
|
9504
9560
|
};
|
|
9561
|
+
exports.RelationshipCreationChangeRequestSigned = RelationshipCreationChangeRequestSigned;
|
|
9505
9562
|
__decorate([
|
|
9506
9563
|
(0, ts_serval_1.validate)(),
|
|
9507
9564
|
(0, ts_serval_1.serialize)(),
|
|
@@ -9546,7 +9603,7 @@ exports.RelationshipCreationChangeResponseCipher = void 0;
|
|
|
9546
9603
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
9547
9604
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
9548
9605
|
const core_1 = __webpack_require__(/*! ../../../../core */ "./dist/core/index.js");
|
|
9549
|
-
let RelationshipCreationChangeResponseCipher =
|
|
9606
|
+
let RelationshipCreationChangeResponseCipher = class RelationshipCreationChangeResponseCipher extends core_1.CoreSerializable {
|
|
9550
9607
|
static from(value) {
|
|
9551
9608
|
return this.fromAny(value);
|
|
9552
9609
|
}
|
|
@@ -9554,6 +9611,7 @@ let RelationshipCreationChangeResponseCipher = exports.RelationshipCreationChang
|
|
|
9554
9611
|
return super.fromBase64T(value);
|
|
9555
9612
|
}
|
|
9556
9613
|
};
|
|
9614
|
+
exports.RelationshipCreationChangeResponseCipher = RelationshipCreationChangeResponseCipher;
|
|
9557
9615
|
__decorate([
|
|
9558
9616
|
(0, ts_serval_1.validate)(),
|
|
9559
9617
|
(0, ts_serval_1.serialize)(),
|
|
@@ -9592,11 +9650,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
9592
9650
|
exports.RelationshipCreationChangeResponseContentWrapper = void 0;
|
|
9593
9651
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
9594
9652
|
const core_1 = __webpack_require__(/*! ../../../../core */ "./dist/core/index.js");
|
|
9595
|
-
let RelationshipCreationChangeResponseContentWrapper =
|
|
9653
|
+
let RelationshipCreationChangeResponseContentWrapper = class RelationshipCreationChangeResponseContentWrapper extends core_1.CoreSerializable {
|
|
9596
9654
|
static from(value) {
|
|
9597
9655
|
return this.fromAny(value);
|
|
9598
9656
|
}
|
|
9599
9657
|
};
|
|
9658
|
+
exports.RelationshipCreationChangeResponseContentWrapper = RelationshipCreationChangeResponseContentWrapper;
|
|
9600
9659
|
__decorate([
|
|
9601
9660
|
(0, ts_serval_1.validate)(),
|
|
9602
9661
|
(0, ts_serval_1.serialize)(),
|
|
@@ -9636,11 +9695,12 @@ exports.RelationshipCreationChangeResponseSigned = void 0;
|
|
|
9636
9695
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
9637
9696
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
9638
9697
|
const core_1 = __webpack_require__(/*! ../../../../core */ "./dist/core/index.js");
|
|
9639
|
-
let RelationshipCreationChangeResponseSigned =
|
|
9698
|
+
let RelationshipCreationChangeResponseSigned = class RelationshipCreationChangeResponseSigned extends core_1.CoreSerializable {
|
|
9640
9699
|
static from(value) {
|
|
9641
9700
|
return this.fromAny(value);
|
|
9642
9701
|
}
|
|
9643
9702
|
};
|
|
9703
|
+
exports.RelationshipCreationChangeResponseSigned = RelationshipCreationChangeResponseSigned;
|
|
9644
9704
|
__decorate([
|
|
9645
9705
|
(0, ts_serval_1.validate)(),
|
|
9646
9706
|
(0, ts_serval_1.serialize)(),
|
|
@@ -9878,7 +9938,7 @@ const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
|
9878
9938
|
const ts_simple_nameof_1 = __webpack_require__(/*! ts-simple-nameof */ "./node_modules/ts-simple-nameof/index.js");
|
|
9879
9939
|
const CoreSynchronizable_1 = __webpack_require__(/*! ../../../core/CoreSynchronizable */ "./dist/core/CoreSynchronizable.js");
|
|
9880
9940
|
const CoreDate_1 = __webpack_require__(/*! ../../../core/types/CoreDate */ "./dist/core/types/CoreDate.js");
|
|
9881
|
-
let SecretContainerCipher =
|
|
9941
|
+
let SecretContainerCipher = class SecretContainerCipher extends CoreSynchronizable_1.CoreSynchronizable {
|
|
9882
9942
|
constructor() {
|
|
9883
9943
|
super(...arguments);
|
|
9884
9944
|
this.technicalProperties = [
|
|
@@ -9902,6 +9962,7 @@ let SecretContainerCipher = exports.SecretContainerCipher = class SecretContaine
|
|
|
9902
9962
|
return this.fromAny(value);
|
|
9903
9963
|
}
|
|
9904
9964
|
};
|
|
9965
|
+
exports.SecretContainerCipher = SecretContainerCipher;
|
|
9905
9966
|
__decorate([
|
|
9906
9967
|
(0, ts_serval_1.serialize)(),
|
|
9907
9968
|
(0, ts_serval_1.validate)({ nullable: true }),
|
|
@@ -9971,7 +10032,7 @@ exports.SecretContainerPlain = void 0;
|
|
|
9971
10032
|
/* eslint-disable @typescript-eslint/no-inferrable-types */
|
|
9972
10033
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
9973
10034
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
9974
|
-
let SecretContainerPlain =
|
|
10035
|
+
let SecretContainerPlain = class SecretContainerPlain extends core_1.CoreSerializable {
|
|
9975
10036
|
constructor() {
|
|
9976
10037
|
super(...arguments);
|
|
9977
10038
|
this.name = "";
|
|
@@ -9981,6 +10042,7 @@ let SecretContainerPlain = exports.SecretContainerPlain = class SecretContainerP
|
|
|
9981
10042
|
return this.fromAny(value);
|
|
9982
10043
|
}
|
|
9983
10044
|
};
|
|
10045
|
+
exports.SecretContainerPlain = SecretContainerPlain;
|
|
9984
10046
|
__decorate([
|
|
9985
10047
|
(0, ts_serval_1.serialize)(),
|
|
9986
10048
|
(0, ts_serval_1.validate)(),
|
|
@@ -11287,11 +11349,12 @@ var DatawalletModificationCategory;
|
|
|
11287
11349
|
DatawalletModificationCategory["Userdata"] = "Userdata";
|
|
11288
11350
|
DatawalletModificationCategory["Metadata"] = "Metadata";
|
|
11289
11351
|
})(DatawalletModificationCategory || (exports.DatawalletModificationCategory = DatawalletModificationCategory = {}));
|
|
11290
|
-
let DatawalletModification =
|
|
11352
|
+
let DatawalletModification = class DatawalletModification extends core_1.CoreSerializable {
|
|
11291
11353
|
static from(value) {
|
|
11292
11354
|
return this.fromAny(value);
|
|
11293
11355
|
}
|
|
11294
11356
|
};
|
|
11357
|
+
exports.DatawalletModification = DatawalletModification;
|
|
11295
11358
|
__decorate([
|
|
11296
11359
|
(0, ts_serval_1.validate)(),
|
|
11297
11360
|
(0, ts_serval_1.serialize)(),
|
|
@@ -11751,11 +11814,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
11751
11814
|
exports.CachedToken = void 0;
|
|
11752
11815
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
11753
11816
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
11754
|
-
let CachedToken =
|
|
11817
|
+
let CachedToken = class CachedToken extends core_1.CoreSerializable {
|
|
11755
11818
|
static from(value) {
|
|
11756
11819
|
return this.fromAny(value);
|
|
11757
11820
|
}
|
|
11758
11821
|
};
|
|
11822
|
+
exports.CachedToken = CachedToken;
|
|
11759
11823
|
__decorate([
|
|
11760
11824
|
(0, ts_serval_1.validate)(),
|
|
11761
11825
|
(0, ts_serval_1.serialize)(),
|
|
@@ -11809,11 +11873,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
11809
11873
|
exports.SendTokenParameters = void 0;
|
|
11810
11874
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
11811
11875
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
11812
|
-
let SendTokenParameters =
|
|
11876
|
+
let SendTokenParameters = class SendTokenParameters extends core_1.CoreSerializable {
|
|
11813
11877
|
static from(value) {
|
|
11814
11878
|
return this.fromAny(value);
|
|
11815
11879
|
}
|
|
11816
11880
|
};
|
|
11881
|
+
exports.SendTokenParameters = SendTokenParameters;
|
|
11817
11882
|
__decorate([
|
|
11818
11883
|
(0, ts_serval_1.validate)(),
|
|
11819
11884
|
(0, ts_serval_1.serialize)(),
|
|
@@ -11861,7 +11926,7 @@ const ts_simple_nameof_1 = __webpack_require__(/*! ts-simple-nameof */ "./node_m
|
|
|
11861
11926
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
11862
11927
|
const TokenReference_1 = __webpack_require__(/*! ../transmission/TokenReference */ "./dist/modules/tokens/transmission/TokenReference.js");
|
|
11863
11928
|
const CachedToken_1 = __webpack_require__(/*! ./CachedToken */ "./dist/modules/tokens/local/CachedToken.js");
|
|
11864
|
-
let Token =
|
|
11929
|
+
let Token = class Token extends core_1.CoreSynchronizable {
|
|
11865
11930
|
constructor() {
|
|
11866
11931
|
super(...arguments);
|
|
11867
11932
|
this.technicalProperties = [
|
|
@@ -11895,6 +11960,7 @@ let Token = exports.Token = class Token extends core_1.CoreSynchronizable {
|
|
|
11895
11960
|
this.metadataModifiedAt = core_1.CoreDate.utc();
|
|
11896
11961
|
}
|
|
11897
11962
|
};
|
|
11963
|
+
exports.Token = Token;
|
|
11898
11964
|
__decorate([
|
|
11899
11965
|
(0, ts_serval_1.validate)(),
|
|
11900
11966
|
(0, ts_serval_1.serialize)(),
|
|
@@ -11954,11 +12020,12 @@ exports.TokenContentDeviceSharedSecret = void 0;
|
|
|
11954
12020
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
11955
12021
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
11956
12022
|
const DeviceSharedSecret_1 = __webpack_require__(/*! ../../devices/transmission/DeviceSharedSecret */ "./dist/modules/devices/transmission/DeviceSharedSecret.js");
|
|
11957
|
-
let TokenContentDeviceSharedSecret =
|
|
12023
|
+
let TokenContentDeviceSharedSecret = class TokenContentDeviceSharedSecret extends core_1.CoreSerializable {
|
|
11958
12024
|
static from(value) {
|
|
11959
12025
|
return this.fromAny(value);
|
|
11960
12026
|
}
|
|
11961
12027
|
};
|
|
12028
|
+
exports.TokenContentDeviceSharedSecret = TokenContentDeviceSharedSecret;
|
|
11962
12029
|
__decorate([
|
|
11963
12030
|
(0, ts_serval_1.validate)(),
|
|
11964
12031
|
(0, ts_serval_1.serialize)(),
|
|
@@ -11993,11 +12060,12 @@ exports.TokenContentFile = void 0;
|
|
|
11993
12060
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
11994
12061
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
11995
12062
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
11996
|
-
let TokenContentFile =
|
|
12063
|
+
let TokenContentFile = class TokenContentFile extends core_1.CoreSerializable {
|
|
11997
12064
|
static from(value) {
|
|
11998
12065
|
return this.fromAny(value);
|
|
11999
12066
|
}
|
|
12000
12067
|
};
|
|
12068
|
+
exports.TokenContentFile = TokenContentFile;
|
|
12001
12069
|
__decorate([
|
|
12002
12070
|
(0, ts_serval_1.validate)(),
|
|
12003
12071
|
(0, ts_serval_1.serialize)(),
|
|
@@ -12037,11 +12105,12 @@ exports.TokenContentRelationshipTemplate = void 0;
|
|
|
12037
12105
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
12038
12106
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
12039
12107
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
12040
|
-
let TokenContentRelationshipTemplate =
|
|
12108
|
+
let TokenContentRelationshipTemplate = class TokenContentRelationshipTemplate extends core_1.CoreSerializable {
|
|
12041
12109
|
static from(value) {
|
|
12042
12110
|
return this.fromAny(value);
|
|
12043
12111
|
}
|
|
12044
12112
|
};
|
|
12113
|
+
exports.TokenContentRelationshipTemplate = TokenContentRelationshipTemplate;
|
|
12045
12114
|
__decorate([
|
|
12046
12115
|
(0, ts_serval_1.validate)(),
|
|
12047
12116
|
(0, ts_serval_1.serialize)(),
|
|
@@ -12077,7 +12146,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
12077
12146
|
exports.TokenReference = void 0;
|
|
12078
12147
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
12079
12148
|
const core_1 = __webpack_require__(/*! ../../../core */ "./dist/core/index.js");
|
|
12080
|
-
let TokenReference =
|
|
12149
|
+
let TokenReference = class TokenReference extends core_1.Reference {
|
|
12081
12150
|
static preFrom(value) {
|
|
12082
12151
|
super.validateId(value, core_1.BackboneIds.token);
|
|
12083
12152
|
return value;
|
|
@@ -12086,6 +12155,7 @@ let TokenReference = exports.TokenReference = class TokenReference extends core_
|
|
|
12086
12155
|
return super.from(value);
|
|
12087
12156
|
}
|
|
12088
12157
|
};
|
|
12158
|
+
exports.TokenReference = TokenReference;
|
|
12089
12159
|
exports.TokenReference = TokenReference = __decorate([
|
|
12090
12160
|
(0, ts_serval_1.type)("TokenReference")
|
|
12091
12161
|
], TokenReference);
|
|
@@ -35090,27 +35160,61 @@ function clone$1(dur, alts, clear = false) {
|
|
|
35090
35160
|
};
|
|
35091
35161
|
return new Duration(conf);
|
|
35092
35162
|
}
|
|
35093
|
-
|
|
35094
|
-
|
|
35095
|
-
|
|
35096
|
-
|
|
35097
|
-
|
|
35098
|
-
|
|
35099
|
-
|
|
35100
|
-
|
|
35101
|
-
|
|
35102
|
-
raw = fromMap[fromUnit] / conv,
|
|
35103
|
-
added = Math.floor(raw);
|
|
35104
|
-
toMap[toUnit] = removePrecisionIssue(toMap[toUnit] + added);
|
|
35105
|
-
fromMap[fromUnit] = removePrecisionIssue(fromMap[fromUnit] - added * conv);
|
|
35163
|
+
function durationToMillis(matrix, vals) {
|
|
35164
|
+
var _vals$milliseconds;
|
|
35165
|
+
let sum = (_vals$milliseconds = vals.milliseconds) != null ? _vals$milliseconds : 0;
|
|
35166
|
+
for (const unit of reverseUnits.slice(1)) {
|
|
35167
|
+
if (vals[unit]) {
|
|
35168
|
+
sum += vals[unit] * matrix[unit]["milliseconds"];
|
|
35169
|
+
}
|
|
35170
|
+
}
|
|
35171
|
+
return sum;
|
|
35106
35172
|
}
|
|
35107
35173
|
|
|
35108
35174
|
// NB: mutates parameters
|
|
35109
35175
|
function normalizeValues(matrix, vals) {
|
|
35110
|
-
|
|
35176
|
+
// the logic below assumes the overall value of the duration is positive
|
|
35177
|
+
// if this is not the case, factor is used to make it so
|
|
35178
|
+
const factor = durationToMillis(matrix, vals) < 0 ? -1 : 1;
|
|
35179
|
+
orderedUnits$1.reduceRight((previous, current) => {
|
|
35111
35180
|
if (!isUndefined(vals[current])) {
|
|
35112
35181
|
if (previous) {
|
|
35113
|
-
|
|
35182
|
+
const previousVal = vals[previous] * factor;
|
|
35183
|
+
const conv = matrix[current][previous];
|
|
35184
|
+
|
|
35185
|
+
// if (previousVal < 0):
|
|
35186
|
+
// lower order unit is negative (e.g. { years: 2, days: -2 })
|
|
35187
|
+
// normalize this by reducing the higher order unit by the appropriate amount
|
|
35188
|
+
// and increasing the lower order unit
|
|
35189
|
+
// this can never make the higher order unit negative, because this function only operates
|
|
35190
|
+
// on positive durations, so the amount of time represented by the lower order unit cannot
|
|
35191
|
+
// be larger than the higher order unit
|
|
35192
|
+
// else:
|
|
35193
|
+
// lower order unit is positive (e.g. { years: 2, days: 450 } or { years: -2, days: 450 })
|
|
35194
|
+
// in this case we attempt to convert as much as possible from the lower order unit into
|
|
35195
|
+
// the higher order one
|
|
35196
|
+
//
|
|
35197
|
+
// Math.floor takes care of both of these cases, rounding away from 0
|
|
35198
|
+
// if previousVal < 0 it makes the absolute value larger
|
|
35199
|
+
// if previousVal >= it makes the absolute value smaller
|
|
35200
|
+
const rollUp = Math.floor(previousVal / conv);
|
|
35201
|
+
vals[current] += rollUp * factor;
|
|
35202
|
+
vals[previous] -= rollUp * conv * factor;
|
|
35203
|
+
}
|
|
35204
|
+
return current;
|
|
35205
|
+
} else {
|
|
35206
|
+
return previous;
|
|
35207
|
+
}
|
|
35208
|
+
}, null);
|
|
35209
|
+
|
|
35210
|
+
// try to convert any decimals into smaller units if possible
|
|
35211
|
+
// for example for { years: 2.5, days: 0, seconds: 0 } we want to get { years: 2, days: 182, hours: 12 }
|
|
35212
|
+
orderedUnits$1.reduce((previous, current) => {
|
|
35213
|
+
if (!isUndefined(vals[current])) {
|
|
35214
|
+
if (previous) {
|
|
35215
|
+
const fraction = vals[previous] % 1;
|
|
35216
|
+
vals[previous] -= fraction;
|
|
35217
|
+
vals[current] += fraction * matrix[previous][current];
|
|
35114
35218
|
}
|
|
35115
35219
|
return current;
|
|
35116
35220
|
} else {
|
|
@@ -35416,6 +35520,7 @@ class Duration {
|
|
|
35416
35520
|
* ```
|
|
35417
35521
|
*/
|
|
35418
35522
|
toHuman(opts = {}) {
|
|
35523
|
+
if (!this.isValid) return INVALID$2;
|
|
35419
35524
|
const l = orderedUnits$1.map(unit => {
|
|
35420
35525
|
const val = this.values[unit];
|
|
35421
35526
|
if (isUndefined(val)) {
|
|
@@ -35531,15 +35636,8 @@ class Duration {
|
|
|
35531
35636
|
* @return {number}
|
|
35532
35637
|
*/
|
|
35533
35638
|
toMillis() {
|
|
35534
|
-
|
|
35535
|
-
|
|
35536
|
-
for (let unit of reverseUnits.slice(1)) {
|
|
35537
|
-
var _this$values;
|
|
35538
|
-
if ((_this$values = this.values) != null && _this$values[unit]) {
|
|
35539
|
-
sum += this.values[unit] * this.matrix[unit]["milliseconds"];
|
|
35540
|
-
}
|
|
35541
|
-
}
|
|
35542
|
-
return sum;
|
|
35639
|
+
if (!this.isValid) return NaN;
|
|
35640
|
+
return durationToMillis(this.matrix, this.values);
|
|
35543
35641
|
}
|
|
35544
35642
|
|
|
35545
35643
|
/**
|
|
@@ -35665,20 +35763,26 @@ class Duration {
|
|
|
35665
35763
|
|
|
35666
35764
|
/**
|
|
35667
35765
|
* Reduce this Duration to its canonical representation in its current units.
|
|
35766
|
+
* Assuming the overall value of the Duration is positive, this means:
|
|
35767
|
+
* - excessive values for lower-order units are converted to higher-order units (if possible, see first and second example)
|
|
35768
|
+
* - negative lower-order units are converted to higher order units (there must be such a higher order unit, otherwise
|
|
35769
|
+
* the overall value would be negative, see second example)
|
|
35770
|
+
* - fractional values for higher-order units are converted to lower-order units (if possible, see fourth example)
|
|
35771
|
+
*
|
|
35772
|
+
* If the overall value is negative, the result of this method is equivalent to `this.negate().normalize().negate()`.
|
|
35668
35773
|
* @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }
|
|
35774
|
+
* @example Duration.fromObject({ days: 5000 }).normalize().toObject() //=> { days: 5000 }
|
|
35669
35775
|
* @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }
|
|
35776
|
+
* @example Duration.fromObject({ years: 2.5, days: 0, hours: 0 }).normalize().toObject() //=> { years: 2, days: 182, hours: 12 }
|
|
35670
35777
|
* @return {Duration}
|
|
35671
35778
|
*/
|
|
35672
35779
|
normalize() {
|
|
35673
35780
|
if (!this.isValid) return this;
|
|
35674
35781
|
const vals = this.toObject();
|
|
35675
|
-
|
|
35676
|
-
|
|
35677
|
-
|
|
35678
|
-
|
|
35679
|
-
}, true);
|
|
35680
|
-
}
|
|
35681
|
-
return this.negate().normalize().negate();
|
|
35782
|
+
normalizeValues(this.matrix, vals);
|
|
35783
|
+
return clone$1(this, {
|
|
35784
|
+
values: vals
|
|
35785
|
+
}, true);
|
|
35682
35786
|
}
|
|
35683
35787
|
|
|
35684
35788
|
/**
|
|
@@ -35724,16 +35828,13 @@ class Duration {
|
|
|
35724
35828
|
if (isNumber(vals[k])) {
|
|
35725
35829
|
own += vals[k];
|
|
35726
35830
|
}
|
|
35831
|
+
|
|
35832
|
+
// only keep the integer part for now in the hopes of putting any decimal part
|
|
35833
|
+
// into a smaller unit later
|
|
35727
35834
|
const i = Math.trunc(own);
|
|
35728
35835
|
built[k] = i;
|
|
35729
35836
|
accumulated[k] = (own * 1000 - i * 1000) / 1000;
|
|
35730
35837
|
|
|
35731
|
-
// plus anything further down the chain that should be rolled up in to this
|
|
35732
|
-
for (const down in vals) {
|
|
35733
|
-
if (orderedUnits$1.indexOf(down) > orderedUnits$1.indexOf(k)) {
|
|
35734
|
-
convert(this.matrix, vals, down, built, k);
|
|
35735
|
-
}
|
|
35736
|
-
}
|
|
35737
35838
|
// otherwise, keep it in the wings to boil it later
|
|
35738
35839
|
} else if (isNumber(vals[k])) {
|
|
35739
35840
|
accumulated[k] = vals[k];
|
|
@@ -35747,9 +35848,10 @@ class Duration {
|
|
|
35747
35848
|
built[lastUnit] += key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];
|
|
35748
35849
|
}
|
|
35749
35850
|
}
|
|
35851
|
+
normalizeValues(this.matrix, built);
|
|
35750
35852
|
return clone$1(this, {
|
|
35751
35853
|
values: built
|
|
35752
|
-
}, true)
|
|
35854
|
+
}, true);
|
|
35753
35855
|
}
|
|
35754
35856
|
|
|
35755
35857
|
/**
|
|
@@ -39664,7 +39766,7 @@ function friendlyDateTime(dateTimeish) {
|
|
|
39664
39766
|
}
|
|
39665
39767
|
}
|
|
39666
39768
|
|
|
39667
|
-
const VERSION = "3.4.
|
|
39769
|
+
const VERSION = "3.4.3";
|
|
39668
39770
|
|
|
39669
39771
|
exports.DateTime = DateTime;
|
|
39670
39772
|
exports.Duration = Duration;
|
|
@@ -44808,7 +44910,7 @@ for (let i = 0; i < 256; ++i) {
|
|
|
44808
44910
|
function unsafeStringify(arr, offset = 0) {
|
|
44809
44911
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
44810
44912
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
44811
|
-
return
|
|
44913
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
44812
44914
|
}
|
|
44813
44915
|
|
|
44814
44916
|
function stringify(arr, offset = 0) {
|
|
@@ -45239,7 +45341,7 @@ module.exports = TSServal;
|
|
|
45239
45341
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
45240
45342
|
|
|
45241
45343
|
"use strict";
|
|
45242
|
-
// Axios v1.
|
|
45344
|
+
// Axios v1.5.1 Copyright (c) 2023 Matt Zabriskie and contributors
|
|
45243
45345
|
|
|
45244
45346
|
|
|
45245
45347
|
function bind(fn, thisArg) {
|
|
@@ -45786,8 +45888,9 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
45786
45888
|
const reducedDescriptors = {};
|
|
45787
45889
|
|
|
45788
45890
|
forEach(descriptors, (descriptor, name) => {
|
|
45789
|
-
|
|
45790
|
-
|
|
45891
|
+
let ret;
|
|
45892
|
+
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
45893
|
+
reducedDescriptors[name] = ret || descriptor;
|
|
45791
45894
|
}
|
|
45792
45895
|
});
|
|
45793
45896
|
|
|
@@ -46629,10 +46732,6 @@ function formDataToJSON(formData) {
|
|
|
46629
46732
|
return null;
|
|
46630
46733
|
}
|
|
46631
46734
|
|
|
46632
|
-
const DEFAULT_CONTENT_TYPE = {
|
|
46633
|
-
'Content-Type': undefined
|
|
46634
|
-
};
|
|
46635
|
-
|
|
46636
46735
|
/**
|
|
46637
46736
|
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
|
46638
46737
|
* of the input
|
|
@@ -46771,19 +46870,16 @@ const defaults = {
|
|
|
46771
46870
|
|
|
46772
46871
|
headers: {
|
|
46773
46872
|
common: {
|
|
46774
|
-
'Accept': 'application/json, text/plain, */*'
|
|
46873
|
+
'Accept': 'application/json, text/plain, */*',
|
|
46874
|
+
'Content-Type': undefined
|
|
46775
46875
|
}
|
|
46776
46876
|
}
|
|
46777
46877
|
};
|
|
46778
46878
|
|
|
46779
|
-
utils.forEach(['delete', 'get', 'head'],
|
|
46879
|
+
utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
|
|
46780
46880
|
defaults.headers[method] = {};
|
|
46781
46881
|
});
|
|
46782
46882
|
|
|
46783
|
-
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
46784
|
-
defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
|
|
46785
|
-
});
|
|
46786
|
-
|
|
46787
46883
|
var defaults$1 = defaults;
|
|
46788
46884
|
|
|
46789
46885
|
// RawAxiosHeaders whose duplicates are ignored by node
|
|
@@ -47117,7 +47213,17 @@ class AxiosHeaders {
|
|
|
47117
47213
|
|
|
47118
47214
|
AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
|
|
47119
47215
|
|
|
47120
|
-
|
|
47216
|
+
// reserved names hotfix
|
|
47217
|
+
utils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
|
|
47218
|
+
let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
|
|
47219
|
+
return {
|
|
47220
|
+
get: () => value,
|
|
47221
|
+
set(headerValue) {
|
|
47222
|
+
this[mapped] = headerValue;
|
|
47223
|
+
}
|
|
47224
|
+
}
|
|
47225
|
+
});
|
|
47226
|
+
|
|
47121
47227
|
utils.freezeMethods(AxiosHeaders);
|
|
47122
47228
|
|
|
47123
47229
|
var AxiosHeaders$1 = AxiosHeaders;
|
|
@@ -47452,11 +47558,16 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
47452
47558
|
}
|
|
47453
47559
|
}
|
|
47454
47560
|
|
|
47561
|
+
let contentType;
|
|
47562
|
+
|
|
47455
47563
|
if (utils.isFormData(requestData)) {
|
|
47456
47564
|
if (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv) {
|
|
47457
47565
|
requestHeaders.setContentType(false); // Let the browser set it
|
|
47458
|
-
} else {
|
|
47459
|
-
requestHeaders.setContentType('multipart/form-data
|
|
47566
|
+
} else if(!requestHeaders.getContentType(/^\s*multipart\/form-data/)){
|
|
47567
|
+
requestHeaders.setContentType('multipart/form-data'); // mobile/desktop app frameworks
|
|
47568
|
+
} else if(utils.isString(contentType = requestHeaders.getContentType())){
|
|
47569
|
+
// fix semicolon duplication issue for ReactNative FormData implementation
|
|
47570
|
+
requestHeaders.setContentType(contentType.replace(/^\s*(multipart\/form-data);+/, '$1'));
|
|
47460
47571
|
}
|
|
47461
47572
|
}
|
|
47462
47573
|
|
|
@@ -47649,7 +47760,7 @@ const knownAdapters = {
|
|
|
47649
47760
|
};
|
|
47650
47761
|
|
|
47651
47762
|
utils.forEach(knownAdapters, (fn, value) => {
|
|
47652
|
-
if(fn) {
|
|
47763
|
+
if (fn) {
|
|
47653
47764
|
try {
|
|
47654
47765
|
Object.defineProperty(fn, 'name', {value});
|
|
47655
47766
|
} catch (e) {
|
|
@@ -47659,6 +47770,10 @@ utils.forEach(knownAdapters, (fn, value) => {
|
|
|
47659
47770
|
}
|
|
47660
47771
|
});
|
|
47661
47772
|
|
|
47773
|
+
const renderReason = (reason) => `- ${reason}`;
|
|
47774
|
+
|
|
47775
|
+
const isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;
|
|
47776
|
+
|
|
47662
47777
|
var adapters = {
|
|
47663
47778
|
getAdapter: (adapters) => {
|
|
47664
47779
|
adapters = utils.isArray(adapters) ? adapters : [adapters];
|
|
@@ -47667,30 +47782,44 @@ var adapters = {
|
|
|
47667
47782
|
let nameOrAdapter;
|
|
47668
47783
|
let adapter;
|
|
47669
47784
|
|
|
47785
|
+
const rejectedReasons = {};
|
|
47786
|
+
|
|
47670
47787
|
for (let i = 0; i < length; i++) {
|
|
47671
47788
|
nameOrAdapter = adapters[i];
|
|
47672
|
-
|
|
47789
|
+
let id;
|
|
47790
|
+
|
|
47791
|
+
adapter = nameOrAdapter;
|
|
47792
|
+
|
|
47793
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
47794
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
47795
|
+
|
|
47796
|
+
if (adapter === undefined) {
|
|
47797
|
+
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
47798
|
+
}
|
|
47799
|
+
}
|
|
47800
|
+
|
|
47801
|
+
if (adapter) {
|
|
47673
47802
|
break;
|
|
47674
47803
|
}
|
|
47804
|
+
|
|
47805
|
+
rejectedReasons[id || '#' + i] = adapter;
|
|
47675
47806
|
}
|
|
47676
47807
|
|
|
47677
47808
|
if (!adapter) {
|
|
47678
|
-
|
|
47679
|
-
|
|
47680
|
-
|
|
47681
|
-
'
|
|
47809
|
+
|
|
47810
|
+
const reasons = Object.entries(rejectedReasons)
|
|
47811
|
+
.map(([id, state]) => `adapter ${id} ` +
|
|
47812
|
+
(state === false ? 'is not supported by the environment' : 'is not available in the build')
|
|
47682
47813
|
);
|
|
47683
|
-
}
|
|
47684
47814
|
|
|
47685
|
-
|
|
47686
|
-
|
|
47687
|
-
|
|
47688
|
-
`Unknown adapter '${nameOrAdapter}'`
|
|
47689
|
-
);
|
|
47690
|
-
}
|
|
47815
|
+
let s = length ?
|
|
47816
|
+
(reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
|
|
47817
|
+
'as no adapter specified';
|
|
47691
47818
|
|
|
47692
|
-
|
|
47693
|
-
|
|
47819
|
+
throw new AxiosError(
|
|
47820
|
+
`There is no suitable adapter to dispatch the request ` + s,
|
|
47821
|
+
'ERR_NOT_SUPPORT'
|
|
47822
|
+
);
|
|
47694
47823
|
}
|
|
47695
47824
|
|
|
47696
47825
|
return adapter;
|
|
@@ -47872,7 +48001,7 @@ function mergeConfig(config1, config2) {
|
|
|
47872
48001
|
return config;
|
|
47873
48002
|
}
|
|
47874
48003
|
|
|
47875
|
-
const VERSION = "1.
|
|
48004
|
+
const VERSION = "1.5.1";
|
|
47876
48005
|
|
|
47877
48006
|
const validators$1 = {};
|
|
47878
48007
|
|
|
@@ -48025,15 +48154,13 @@ class Axios {
|
|
|
48025
48154
|
// Set config.method
|
|
48026
48155
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
48027
48156
|
|
|
48028
|
-
let contextHeaders;
|
|
48029
|
-
|
|
48030
48157
|
// Flatten headers
|
|
48031
|
-
contextHeaders = headers && utils.merge(
|
|
48158
|
+
let contextHeaders = headers && utils.merge(
|
|
48032
48159
|
headers.common,
|
|
48033
48160
|
headers[config.method]
|
|
48034
48161
|
);
|
|
48035
48162
|
|
|
48036
|
-
|
|
48163
|
+
headers && utils.forEach(
|
|
48037
48164
|
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
|
|
48038
48165
|
(method) => {
|
|
48039
48166
|
delete headers[method];
|
|
@@ -48443,6 +48570,8 @@ axios.AxiosHeaders = AxiosHeaders$1;
|
|
|
48443
48570
|
|
|
48444
48571
|
axios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
48445
48572
|
|
|
48573
|
+
axios.getAdapter = adapters.getAdapter;
|
|
48574
|
+
|
|
48446
48575
|
axios.HttpStatusCode = HttpStatusCode$1;
|
|
48447
48576
|
|
|
48448
48577
|
axios.default = axios;
|