@nmshd/content 2.5.1 → 2.6.0
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/attributes/AttributeValueTypes.d.ts +13 -13
- package/dist/attributes/AttributeValueTypes.js +4 -0
- package/dist/attributes/AttributeValueTypes.js.map +1 -1
- package/dist/attributes/types/index.d.ts +1 -0
- package/dist/attributes/types/index.js +1 -0
- package/dist/attributes/types/index.js.map +1 -1
- package/dist/attributes/types/statement/AbstractIdentityDescriptor.d.ts +15 -0
- package/dist/attributes/types/statement/AbstractIdentityDescriptor.js +46 -0
- package/dist/attributes/types/statement/AbstractIdentityDescriptor.js.map +1 -0
- package/dist/attributes/types/statement/AbstractStatement.d.ts +34 -0
- package/dist/attributes/types/statement/AbstractStatement.js +87 -0
- package/dist/attributes/types/statement/AbstractStatement.js.map +1 -0
- package/dist/attributes/types/statement/DigitalIdentityDescriptor.d.ts +18 -0
- package/dist/attributes/types/statement/DigitalIdentityDescriptor.js +56 -0
- package/dist/attributes/types/statement/DigitalIdentityDescriptor.js.map +1 -0
- package/dist/attributes/types/statement/Statement.d.ts +10 -0
- package/dist/attributes/types/statement/Statement.js +24 -0
- package/dist/attributes/types/statement/Statement.js.map +1 -0
- package/dist/attributes/types/statement/StatementAuthorityType.d.ts +25 -0
- package/dist/attributes/types/statement/StatementAuthorityType.js +60 -0
- package/dist/attributes/types/statement/StatementAuthorityType.js.map +1 -0
- package/dist/attributes/types/statement/StatementEvidence.d.ts +29 -0
- package/dist/attributes/types/statement/StatementEvidence.js +61 -0
- package/dist/attributes/types/statement/StatementEvidence.js.map +1 -0
- package/dist/attributes/types/statement/StatementIssuerConditions.d.ts +33 -0
- package/dist/attributes/types/statement/StatementIssuerConditions.js +90 -0
- package/dist/attributes/types/statement/StatementIssuerConditions.js.map +1 -0
- package/dist/attributes/types/statement/StatementObject.d.ts +18 -0
- package/dist/attributes/types/statement/StatementObject.js +56 -0
- package/dist/attributes/types/statement/StatementObject.js.map +1 -0
- package/dist/attributes/types/statement/StatementPredicate.d.ts +25 -0
- package/dist/attributes/types/statement/StatementPredicate.js +68 -0
- package/dist/attributes/types/statement/StatementPredicate.js.map +1 -0
- package/dist/attributes/types/statement/StatementSubject.d.ts +18 -0
- package/dist/attributes/types/statement/StatementSubject.js +56 -0
- package/dist/attributes/types/statement/StatementSubject.js.map +1 -0
- package/dist/attributes/types/statement/index.d.ts +10 -0
- package/dist/attributes/types/statement/index.js +27 -0
- package/dist/attributes/types/statement/index.js.map +1 -0
- package/dist/buildInformation.js +4 -4
- package/dist/requests/items/freeText/FreeTextAcceptResponseItem.d.ts +3 -3
- package/dist/requests/items/freeText/FreeTextAcceptResponseItem.js +1 -1
- package/dist/requests/items/freeText/FreeTextRequestItem.d.ts +3 -3
- package/dist/requests/items/freeText/FreeTextRequestItem.js +1 -1
- package/lib-web/nmshd.content.js +741 -6
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +1 -1
package/lib-web/nmshd.content.js
CHANGED
|
@@ -208,7 +208,9 @@ var AttributeValues;
|
|
|
208
208
|
types_1.HonorificSuffix,
|
|
209
209
|
types_1.HouseNumber,
|
|
210
210
|
types_1.MiddleName,
|
|
211
|
+
types_1.SchematizedXML,
|
|
211
212
|
types_1.State,
|
|
213
|
+
types_1.Statement,
|
|
212
214
|
types_1.Street,
|
|
213
215
|
types_1.Surname,
|
|
214
216
|
types_1.ZipCode
|
|
@@ -230,7 +232,9 @@ var AttributeValues;
|
|
|
230
232
|
"HonorificSuffix",
|
|
231
233
|
"HouseNumber",
|
|
232
234
|
"MiddleName",
|
|
235
|
+
"SchematizedXML",
|
|
233
236
|
"State",
|
|
237
|
+
"Statement",
|
|
234
238
|
"Street",
|
|
235
239
|
"Surname",
|
|
236
240
|
"ZipCode"
|
|
@@ -4311,6 +4315,7 @@ __exportStar(__webpack_require__(/*! ./name */ "./dist/attributes/types/name/ind
|
|
|
4311
4315
|
__exportStar(__webpack_require__(/*! ./person */ "./dist/attributes/types/person/index.js"), exports);
|
|
4312
4316
|
__exportStar(__webpack_require__(/*! ./proprietary */ "./dist/attributes/types/proprietary/index.js"), exports);
|
|
4313
4317
|
__exportStar(__webpack_require__(/*! ./relationship */ "./dist/attributes/types/relationship/index.js"), exports);
|
|
4318
|
+
__exportStar(__webpack_require__(/*! ./statement */ "./dist/attributes/types/statement/index.js"), exports);
|
|
4314
4319
|
__exportStar(__webpack_require__(/*! ./strings */ "./dist/attributes/types/strings/index.js"), exports);
|
|
4315
4320
|
//# sourceMappingURL=index.js.map
|
|
4316
4321
|
|
|
@@ -5962,6 +5967,736 @@ __exportStar(__webpack_require__(/*! ./Consent */ "./dist/attributes/types/relat
|
|
|
5962
5967
|
|
|
5963
5968
|
/***/ }),
|
|
5964
5969
|
|
|
5970
|
+
/***/ "./dist/attributes/types/statement/AbstractIdentityDescriptor.js":
|
|
5971
|
+
/*!***********************************************************************!*\
|
|
5972
|
+
!*** ./dist/attributes/types/statement/AbstractIdentityDescriptor.js ***!
|
|
5973
|
+
\***********************************************************************/
|
|
5974
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5975
|
+
|
|
5976
|
+
|
|
5977
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5978
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5979
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5980
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5981
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5982
|
+
};
|
|
5983
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
5984
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
5985
|
+
};
|
|
5986
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5987
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5988
|
+
};
|
|
5989
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5990
|
+
exports.AbstractIdentityDescriptor = void 0;
|
|
5991
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5992
|
+
const easy_tsnameof_1 = __importDefault(__webpack_require__(/*! easy-tsnameof */ "./node_modules/easy-tsnameof/dist/easy-tsnameof.esm.js"));
|
|
5993
|
+
const AbstractComplexValue_1 = __webpack_require__(/*! ../../../attributes/AbstractComplexValue */ "./dist/attributes/AbstractComplexValue.js");
|
|
5994
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
5995
|
+
class AbstractIdentityDescriptor extends AbstractComplexValue_1.AbstractComplexValue {
|
|
5996
|
+
static get valueHints() {
|
|
5997
|
+
return hints_1.ValueHints.from({
|
|
5998
|
+
propertyHints: {
|
|
5999
|
+
[this.propertyNames.attributes.$path]: hints_1.ValueHints.from({})
|
|
6000
|
+
}
|
|
6001
|
+
});
|
|
6002
|
+
}
|
|
6003
|
+
static get renderHints() {
|
|
6004
|
+
return super.renderHints.copyWith({
|
|
6005
|
+
propertyHints: {
|
|
6006
|
+
[this.propertyNames.attributes.$path]: hints_1.RenderHints.from({
|
|
6007
|
+
editType: hints_1.RenderHintsEditType.Complex,
|
|
6008
|
+
technicalType: hints_1.RenderHintsTechnicalType.Object
|
|
6009
|
+
})
|
|
6010
|
+
}
|
|
6011
|
+
});
|
|
6012
|
+
}
|
|
6013
|
+
}
|
|
6014
|
+
AbstractIdentityDescriptor.propertyNames = (0, easy_tsnameof_1.default)();
|
|
6015
|
+
__decorate([
|
|
6016
|
+
(0, ts_serval_1.serialize)(),
|
|
6017
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
6018
|
+
__metadata("design:type", Array)
|
|
6019
|
+
], AbstractIdentityDescriptor.prototype, "attributes", void 0);
|
|
6020
|
+
exports.AbstractIdentityDescriptor = AbstractIdentityDescriptor;
|
|
6021
|
+
//# sourceMappingURL=AbstractIdentityDescriptor.js.map
|
|
6022
|
+
|
|
6023
|
+
/***/ }),
|
|
6024
|
+
|
|
6025
|
+
/***/ "./dist/attributes/types/statement/AbstractStatement.js":
|
|
6026
|
+
/*!**************************************************************!*\
|
|
6027
|
+
!*** ./dist/attributes/types/statement/AbstractStatement.js ***!
|
|
6028
|
+
\**************************************************************/
|
|
6029
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6030
|
+
|
|
6031
|
+
|
|
6032
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6033
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6034
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6035
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6036
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6037
|
+
};
|
|
6038
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
6039
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6040
|
+
};
|
|
6041
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6042
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6043
|
+
};
|
|
6044
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6045
|
+
exports.AbstractStatement = void 0;
|
|
6046
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6047
|
+
const easy_tsnameof_1 = __importDefault(__webpack_require__(/*! easy-tsnameof */ "./node_modules/easy-tsnameof/dist/easy-tsnameof.esm.js"));
|
|
6048
|
+
const AbstractComplexValue_1 = __webpack_require__(/*! ../../AbstractComplexValue */ "./dist/attributes/AbstractComplexValue.js");
|
|
6049
|
+
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
6050
|
+
const DigitalIdentityDescriptor_1 = __webpack_require__(/*! ./DigitalIdentityDescriptor */ "./dist/attributes/types/statement/DigitalIdentityDescriptor.js");
|
|
6051
|
+
const StatementIssuerConditions_1 = __webpack_require__(/*! ./StatementIssuerConditions */ "./dist/attributes/types/statement/StatementIssuerConditions.js");
|
|
6052
|
+
const StatementObject_1 = __webpack_require__(/*! ./StatementObject */ "./dist/attributes/types/statement/StatementObject.js");
|
|
6053
|
+
const StatementPredicate_1 = __webpack_require__(/*! ./StatementPredicate */ "./dist/attributes/types/statement/StatementPredicate.js");
|
|
6054
|
+
const StatementSubject_1 = __webpack_require__(/*! ./StatementSubject */ "./dist/attributes/types/statement/StatementSubject.js");
|
|
6055
|
+
class AbstractStatement extends AbstractComplexValue_1.AbstractComplexValue {
|
|
6056
|
+
static postFrom(value) {
|
|
6057
|
+
if (!(value instanceof AbstractStatement))
|
|
6058
|
+
throw new Error("this should never happen");
|
|
6059
|
+
if (value.predicate.value === StatementPredicate_1.Predicates.HasAttribute && (value.object.attributes?.length ?? 0) < 1) {
|
|
6060
|
+
throw new ts_serval_1.ValidationError(this.constructor.name, `${(0, easy_tsnameof_1.default)((x) => x.object)}.${(0, easy_tsnameof_1.default)((x) => x.attributes)}`, `If the predicate of the Statement is '${StatementPredicate_1.Predicates.HasAttribute}' you have to define attributes in '${(0, easy_tsnameof_1.default)((x) => x.object)}.${(0, easy_tsnameof_1.default)((x) => x.attributes)}'.`);
|
|
6061
|
+
}
|
|
6062
|
+
return value;
|
|
6063
|
+
}
|
|
6064
|
+
toJSON(verbose, serializeAsString) {
|
|
6065
|
+
return super.toJSON(verbose, serializeAsString);
|
|
6066
|
+
}
|
|
6067
|
+
static get valueHints() {
|
|
6068
|
+
return hints_1.ValueHints.from({
|
|
6069
|
+
propertyHints: {
|
|
6070
|
+
[this.propertyNames.subject.$path]: StatementSubject_1.StatementSubject.valueHints,
|
|
6071
|
+
[this.propertyNames.predicate.$path]: StatementPredicate_1.StatementPredicate.valueHints,
|
|
6072
|
+
[this.propertyNames.object.$path]: StatementObject_1.StatementObject.valueHints,
|
|
6073
|
+
[this.propertyNames.issuer.$path]: DigitalIdentityDescriptor_1.DigitalIdentityDescriptor.valueHints,
|
|
6074
|
+
[this.propertyNames.issuerConditions.$path]: StatementIssuerConditions_1.StatementIssuerConditions.valueHints
|
|
6075
|
+
}
|
|
6076
|
+
});
|
|
6077
|
+
}
|
|
6078
|
+
static get renderHints() {
|
|
6079
|
+
return super.renderHints.copyWith({
|
|
6080
|
+
propertyHints: {
|
|
6081
|
+
[this.propertyNames.subject.$path]: StatementSubject_1.StatementSubject.renderHints,
|
|
6082
|
+
[this.propertyNames.predicate.$path]: StatementPredicate_1.StatementPredicate.renderHints,
|
|
6083
|
+
[this.propertyNames.object.$path]: StatementObject_1.StatementObject.renderHints,
|
|
6084
|
+
[this.propertyNames.issuer.$path]: DigitalIdentityDescriptor_1.DigitalIdentityDescriptor.renderHints,
|
|
6085
|
+
[this.propertyNames.issuerConditions.$path]: StatementIssuerConditions_1.StatementIssuerConditions.renderHints
|
|
6086
|
+
}
|
|
6087
|
+
});
|
|
6088
|
+
}
|
|
6089
|
+
}
|
|
6090
|
+
AbstractStatement.propertyNames = (0, easy_tsnameof_1.default)();
|
|
6091
|
+
__decorate([
|
|
6092
|
+
(0, ts_serval_1.serialize)(),
|
|
6093
|
+
(0, ts_serval_1.validate)(),
|
|
6094
|
+
__metadata("design:type", StatementSubject_1.StatementSubject)
|
|
6095
|
+
], AbstractStatement.prototype, "subject", void 0);
|
|
6096
|
+
__decorate([
|
|
6097
|
+
(0, ts_serval_1.serialize)(),
|
|
6098
|
+
(0, ts_serval_1.validate)(),
|
|
6099
|
+
__metadata("design:type", StatementPredicate_1.StatementPredicate)
|
|
6100
|
+
], AbstractStatement.prototype, "predicate", void 0);
|
|
6101
|
+
__decorate([
|
|
6102
|
+
(0, ts_serval_1.serialize)(),
|
|
6103
|
+
(0, ts_serval_1.validate)(),
|
|
6104
|
+
__metadata("design:type", StatementObject_1.StatementObject)
|
|
6105
|
+
], AbstractStatement.prototype, "object", void 0);
|
|
6106
|
+
__decorate([
|
|
6107
|
+
(0, ts_serval_1.serialize)(),
|
|
6108
|
+
(0, ts_serval_1.validate)(),
|
|
6109
|
+
__metadata("design:type", DigitalIdentityDescriptor_1.DigitalIdentityDescriptor)
|
|
6110
|
+
], AbstractStatement.prototype, "issuer", void 0);
|
|
6111
|
+
__decorate([
|
|
6112
|
+
(0, ts_serval_1.serialize)(),
|
|
6113
|
+
(0, ts_serval_1.validate)(),
|
|
6114
|
+
__metadata("design:type", StatementIssuerConditions_1.StatementIssuerConditions)
|
|
6115
|
+
], AbstractStatement.prototype, "issuerConditions", void 0);
|
|
6116
|
+
exports.AbstractStatement = AbstractStatement;
|
|
6117
|
+
//# sourceMappingURL=AbstractStatement.js.map
|
|
6118
|
+
|
|
6119
|
+
/***/ }),
|
|
6120
|
+
|
|
6121
|
+
/***/ "./dist/attributes/types/statement/DigitalIdentityDescriptor.js":
|
|
6122
|
+
/*!**********************************************************************!*\
|
|
6123
|
+
!*** ./dist/attributes/types/statement/DigitalIdentityDescriptor.js ***!
|
|
6124
|
+
\**********************************************************************/
|
|
6125
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6126
|
+
|
|
6127
|
+
|
|
6128
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6129
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6130
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6131
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6132
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6133
|
+
};
|
|
6134
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
6135
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6136
|
+
};
|
|
6137
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6138
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6139
|
+
};
|
|
6140
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6141
|
+
exports.DigitalIdentityDescriptor = void 0;
|
|
6142
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6143
|
+
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
6144
|
+
const easy_tsnameof_1 = __importDefault(__webpack_require__(/*! easy-tsnameof */ "./node_modules/easy-tsnameof/dist/easy-tsnameof.esm.js"));
|
|
6145
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
6146
|
+
const AbstractIdentityDescriptor_1 = __webpack_require__(/*! ./AbstractIdentityDescriptor */ "./dist/attributes/types/statement/AbstractIdentityDescriptor.js");
|
|
6147
|
+
let DigitalIdentityDescriptor = class DigitalIdentityDescriptor extends AbstractIdentityDescriptor_1.AbstractIdentityDescriptor {
|
|
6148
|
+
static from(value) {
|
|
6149
|
+
return this.fromAny(value);
|
|
6150
|
+
}
|
|
6151
|
+
toJSON(verbose, serializeAsString) {
|
|
6152
|
+
return super.toJSON(verbose, serializeAsString);
|
|
6153
|
+
}
|
|
6154
|
+
static get valueHints() {
|
|
6155
|
+
return super.valueHints.copyWith({
|
|
6156
|
+
propertyHints: {
|
|
6157
|
+
[this.propertyNames.address.$path]: hints_1.ValueHints.from({})
|
|
6158
|
+
}
|
|
6159
|
+
});
|
|
6160
|
+
}
|
|
6161
|
+
static get renderHints() {
|
|
6162
|
+
return super.renderHints.copyWith({
|
|
6163
|
+
propertyHints: {
|
|
6164
|
+
[this.propertyNames.address.$path]: hints_1.RenderHints.from({
|
|
6165
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
6166
|
+
technicalType: hints_1.RenderHintsTechnicalType.String
|
|
6167
|
+
})
|
|
6168
|
+
}
|
|
6169
|
+
});
|
|
6170
|
+
}
|
|
6171
|
+
};
|
|
6172
|
+
DigitalIdentityDescriptor.propertyNames = (0, easy_tsnameof_1.default)();
|
|
6173
|
+
__decorate([
|
|
6174
|
+
(0, ts_serval_1.serialize)({ type: transport_1.CoreAddress }),
|
|
6175
|
+
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
6176
|
+
__metadata("design:type", transport_1.CoreAddress)
|
|
6177
|
+
], DigitalIdentityDescriptor.prototype, "address", void 0);
|
|
6178
|
+
DigitalIdentityDescriptor = __decorate([
|
|
6179
|
+
(0, ts_serval_1.type)("DigitalIdentityDescriptor")
|
|
6180
|
+
], DigitalIdentityDescriptor);
|
|
6181
|
+
exports.DigitalIdentityDescriptor = DigitalIdentityDescriptor;
|
|
6182
|
+
//# sourceMappingURL=DigitalIdentityDescriptor.js.map
|
|
6183
|
+
|
|
6184
|
+
/***/ }),
|
|
6185
|
+
|
|
6186
|
+
/***/ "./dist/attributes/types/statement/Statement.js":
|
|
6187
|
+
/*!******************************************************!*\
|
|
6188
|
+
!*** ./dist/attributes/types/statement/Statement.js ***!
|
|
6189
|
+
\******************************************************/
|
|
6190
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6191
|
+
|
|
6192
|
+
|
|
6193
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6194
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6195
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6196
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6197
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6198
|
+
};
|
|
6199
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6200
|
+
exports.Statement = void 0;
|
|
6201
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6202
|
+
const AbstractStatement_1 = __webpack_require__(/*! ./AbstractStatement */ "./dist/attributes/types/statement/AbstractStatement.js");
|
|
6203
|
+
let Statement = class Statement extends AbstractStatement_1.AbstractStatement {
|
|
6204
|
+
static from(value) {
|
|
6205
|
+
return this.fromAny(value);
|
|
6206
|
+
}
|
|
6207
|
+
toJSON(verbose, serializeAsString) {
|
|
6208
|
+
return super.toJSON(verbose, serializeAsString);
|
|
6209
|
+
}
|
|
6210
|
+
};
|
|
6211
|
+
Statement = __decorate([
|
|
6212
|
+
(0, ts_serval_1.type)("Statement")
|
|
6213
|
+
], Statement);
|
|
6214
|
+
exports.Statement = Statement;
|
|
6215
|
+
//# sourceMappingURL=Statement.js.map
|
|
6216
|
+
|
|
6217
|
+
/***/ }),
|
|
6218
|
+
|
|
6219
|
+
/***/ "./dist/attributes/types/statement/StatementAuthorityType.js":
|
|
6220
|
+
/*!*******************************************************************!*\
|
|
6221
|
+
!*** ./dist/attributes/types/statement/StatementAuthorityType.js ***!
|
|
6222
|
+
\*******************************************************************/
|
|
6223
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6224
|
+
|
|
6225
|
+
|
|
6226
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6227
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6228
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6229
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6230
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6231
|
+
};
|
|
6232
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
6233
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6234
|
+
};
|
|
6235
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6236
|
+
exports.StatementAuthorityType = exports.Authority = void 0;
|
|
6237
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6238
|
+
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
6239
|
+
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
6240
|
+
/**
|
|
6241
|
+
* Supported Authority
|
|
6242
|
+
*/
|
|
6243
|
+
var Authority;
|
|
6244
|
+
(function (Authority) {
|
|
6245
|
+
Authority["OwnAuthority"] = "ownAuthority";
|
|
6246
|
+
Authority["TrustedAuthority"] = "trustedAuthority";
|
|
6247
|
+
Authority["PublicAuthority"] = "publicAuthority";
|
|
6248
|
+
Authority["RelayedOwnAuthority"] = "relayedOwnAuthority";
|
|
6249
|
+
Authority["RelayedTrustedAuthority"] = "relayedTrustedAuthority";
|
|
6250
|
+
Authority["RelayedPublicAuthority"] = "relayedPublicAuthority";
|
|
6251
|
+
})(Authority = exports.Authority || (exports.Authority = {}));
|
|
6252
|
+
let StatementAuthorityType = class StatementAuthorityType extends AbstractString_1.AbstractString {
|
|
6253
|
+
static get valueHints() {
|
|
6254
|
+
return super.valueHints.copyWith({
|
|
6255
|
+
values: Object.values(Authority).map((value) => hints_1.ValueHintsValue.from({
|
|
6256
|
+
key: value,
|
|
6257
|
+
displayName: `i18n://attributes.values.StatementAuthority.${value}`
|
|
6258
|
+
}))
|
|
6259
|
+
});
|
|
6260
|
+
}
|
|
6261
|
+
static get renderHints() {
|
|
6262
|
+
return super.renderHints.copyWith({
|
|
6263
|
+
editType: hints_1.RenderHintsEditType.ButtonLike
|
|
6264
|
+
});
|
|
6265
|
+
}
|
|
6266
|
+
static from(value) {
|
|
6267
|
+
return this.fromAny(value);
|
|
6268
|
+
}
|
|
6269
|
+
toJSON(verbose, serializeAsString) {
|
|
6270
|
+
return super.toJSON(verbose, serializeAsString);
|
|
6271
|
+
}
|
|
6272
|
+
};
|
|
6273
|
+
__decorate([
|
|
6274
|
+
(0, ts_serval_1.serialize)(),
|
|
6275
|
+
(0, ts_serval_1.validate)({
|
|
6276
|
+
customValidator: (v) => !Object.values(Authority).includes(v) ? `must be one of: ${Object.values(Authority)}` : undefined
|
|
6277
|
+
}),
|
|
6278
|
+
__metadata("design:type", String)
|
|
6279
|
+
], StatementAuthorityType.prototype, "value", void 0);
|
|
6280
|
+
StatementAuthorityType = __decorate([
|
|
6281
|
+
(0, ts_serval_1.type)("StatementAuthorityType")
|
|
6282
|
+
], StatementAuthorityType);
|
|
6283
|
+
exports.StatementAuthorityType = StatementAuthorityType;
|
|
6284
|
+
//# sourceMappingURL=StatementAuthorityType.js.map
|
|
6285
|
+
|
|
6286
|
+
/***/ }),
|
|
6287
|
+
|
|
6288
|
+
/***/ "./dist/attributes/types/statement/StatementEvidence.js":
|
|
6289
|
+
/*!**************************************************************!*\
|
|
6290
|
+
!*** ./dist/attributes/types/statement/StatementEvidence.js ***!
|
|
6291
|
+
\**************************************************************/
|
|
6292
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6293
|
+
|
|
6294
|
+
|
|
6295
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6296
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6297
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6298
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6299
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6300
|
+
};
|
|
6301
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
6302
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6303
|
+
};
|
|
6304
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6305
|
+
exports.StatementEvidence = exports.Evidence = void 0;
|
|
6306
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6307
|
+
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
6308
|
+
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
6309
|
+
/**
|
|
6310
|
+
* Supported Evidence
|
|
6311
|
+
*/
|
|
6312
|
+
var Evidence;
|
|
6313
|
+
(function (Evidence) {
|
|
6314
|
+
Evidence["OwnFact"] = "ownFact";
|
|
6315
|
+
Evidence["DigitalPublicIDCard"] = "digitalPublicIDCard";
|
|
6316
|
+
Evidence["DigitalPublicDocument"] = "digitalPublicDocument";
|
|
6317
|
+
Evidence["DigitalDocument"] = "digitalDocument";
|
|
6318
|
+
Evidence["SightCheckOfPublicIDCard"] = "sightCheckOfPublicIDCard";
|
|
6319
|
+
Evidence["SightCheckOfPublicDocument"] = "sightCheckOfPublicDocument";
|
|
6320
|
+
Evidence["SightCheckOfDocument"] = "sightCheckOfDocument";
|
|
6321
|
+
Evidence["MediaOfPublicIDCard"] = "mediaOfPublicIDCard";
|
|
6322
|
+
Evidence["MediaOfPublicDocument"] = "mediaOfPublicDocument";
|
|
6323
|
+
Evidence["MediaOfDocument"] = "mediaOfDocument";
|
|
6324
|
+
})(Evidence = exports.Evidence || (exports.Evidence = {}));
|
|
6325
|
+
let StatementEvidence = class StatementEvidence extends AbstractString_1.AbstractString {
|
|
6326
|
+
static get valueHints() {
|
|
6327
|
+
return super.valueHints.copyWith({
|
|
6328
|
+
values: Object.values(Evidence).map((value) => hints_1.ValueHintsValue.from({ key: value, displayName: `i18n://attributes.values.StatementEvidence.${value}` }))
|
|
6329
|
+
});
|
|
6330
|
+
}
|
|
6331
|
+
static get renderHints() {
|
|
6332
|
+
return super.renderHints.copyWith({
|
|
6333
|
+
editType: hints_1.RenderHintsEditType.ButtonLike
|
|
6334
|
+
});
|
|
6335
|
+
}
|
|
6336
|
+
static from(value) {
|
|
6337
|
+
return this.fromAny(value);
|
|
6338
|
+
}
|
|
6339
|
+
toJSON(verbose, serializeAsString) {
|
|
6340
|
+
return super.toJSON(verbose, serializeAsString);
|
|
6341
|
+
}
|
|
6342
|
+
};
|
|
6343
|
+
__decorate([
|
|
6344
|
+
(0, ts_serval_1.serialize)(),
|
|
6345
|
+
(0, ts_serval_1.validate)({
|
|
6346
|
+
customValidator: (v) => !Object.values(Evidence).includes(v) ? `must be one of: ${Object.values(Evidence)}` : undefined
|
|
6347
|
+
}),
|
|
6348
|
+
__metadata("design:type", String)
|
|
6349
|
+
], StatementEvidence.prototype, "value", void 0);
|
|
6350
|
+
StatementEvidence = __decorate([
|
|
6351
|
+
(0, ts_serval_1.type)("StatementEvidence")
|
|
6352
|
+
], StatementEvidence);
|
|
6353
|
+
exports.StatementEvidence = StatementEvidence;
|
|
6354
|
+
//# sourceMappingURL=StatementEvidence.js.map
|
|
6355
|
+
|
|
6356
|
+
/***/ }),
|
|
6357
|
+
|
|
6358
|
+
/***/ "./dist/attributes/types/statement/StatementIssuerConditions.js":
|
|
6359
|
+
/*!**********************************************************************!*\
|
|
6360
|
+
!*** ./dist/attributes/types/statement/StatementIssuerConditions.js ***!
|
|
6361
|
+
\**********************************************************************/
|
|
6362
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6363
|
+
|
|
6364
|
+
|
|
6365
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6366
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6367
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6368
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6369
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6370
|
+
};
|
|
6371
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
6372
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6373
|
+
};
|
|
6374
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6375
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6376
|
+
};
|
|
6377
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6378
|
+
exports.StatementIssuerConditions = void 0;
|
|
6379
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6380
|
+
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
6381
|
+
const easy_tsnameof_1 = __importDefault(__webpack_require__(/*! easy-tsnameof */ "./node_modules/easy-tsnameof/dist/easy-tsnameof.esm.js"));
|
|
6382
|
+
const AbstractComplexValue_1 = __webpack_require__(/*! ../../AbstractComplexValue */ "./dist/attributes/AbstractComplexValue.js");
|
|
6383
|
+
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
6384
|
+
const DigitalIdentityDescriptor_1 = __webpack_require__(/*! ./DigitalIdentityDescriptor */ "./dist/attributes/types/statement/DigitalIdentityDescriptor.js");
|
|
6385
|
+
const StatementAuthorityType_1 = __webpack_require__(/*! ./StatementAuthorityType */ "./dist/attributes/types/statement/StatementAuthorityType.js");
|
|
6386
|
+
const StatementEvidence_1 = __webpack_require__(/*! ./StatementEvidence */ "./dist/attributes/types/statement/StatementEvidence.js");
|
|
6387
|
+
let StatementIssuerConditions = class StatementIssuerConditions extends AbstractComplexValue_1.AbstractComplexValue {
|
|
6388
|
+
static from(value) {
|
|
6389
|
+
return this.fromAny(value);
|
|
6390
|
+
}
|
|
6391
|
+
toJSON(verbose, serializeAsString) {
|
|
6392
|
+
return super.toJSON(verbose, serializeAsString);
|
|
6393
|
+
}
|
|
6394
|
+
static get valueHints() {
|
|
6395
|
+
return hints_1.ValueHints.from({
|
|
6396
|
+
propertyHints: {
|
|
6397
|
+
[this.propertyNames.validFrom.$path]: hints_1.ValueHints.from({}),
|
|
6398
|
+
[this.propertyNames.validTo.$path]: hints_1.ValueHints.from({}),
|
|
6399
|
+
[this.propertyNames.evidence.$path]: StatementEvidence_1.StatementEvidence.valueHints,
|
|
6400
|
+
[this.propertyNames.authorityType.$path]: StatementAuthorityType_1.StatementAuthorityType.valueHints,
|
|
6401
|
+
[this.propertyNames.relayedParty.$path]: DigitalIdentityDescriptor_1.DigitalIdentityDescriptor.valueHints
|
|
6402
|
+
}
|
|
6403
|
+
});
|
|
6404
|
+
}
|
|
6405
|
+
static get renderHints() {
|
|
6406
|
+
return super.renderHints.copyWith({
|
|
6407
|
+
propertyHints: {
|
|
6408
|
+
[this.propertyNames.validFrom.$path]: hints_1.RenderHints.from({
|
|
6409
|
+
editType: hints_1.RenderHintsEditType.Secret,
|
|
6410
|
+
technicalType: hints_1.RenderHintsTechnicalType.String
|
|
6411
|
+
}),
|
|
6412
|
+
[this.propertyNames.validTo.$path]: hints_1.RenderHints.from({
|
|
6413
|
+
editType: hints_1.RenderHintsEditType.Secret,
|
|
6414
|
+
technicalType: hints_1.RenderHintsTechnicalType.String
|
|
6415
|
+
}),
|
|
6416
|
+
[this.propertyNames.evidence.$path]: StatementEvidence_1.StatementEvidence.renderHints,
|
|
6417
|
+
[this.propertyNames.authorityType.$path]: StatementAuthorityType_1.StatementAuthorityType.renderHints,
|
|
6418
|
+
[this.propertyNames.relayedParty.$path]: DigitalIdentityDescriptor_1.DigitalIdentityDescriptor.renderHints
|
|
6419
|
+
}
|
|
6420
|
+
});
|
|
6421
|
+
}
|
|
6422
|
+
};
|
|
6423
|
+
StatementIssuerConditions.propertyNames = (0, easy_tsnameof_1.default)();
|
|
6424
|
+
__decorate([
|
|
6425
|
+
(0, ts_serval_1.serialize)(),
|
|
6426
|
+
(0, ts_serval_1.validate)(),
|
|
6427
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
6428
|
+
], StatementIssuerConditions.prototype, "validFrom", void 0);
|
|
6429
|
+
__decorate([
|
|
6430
|
+
(0, ts_serval_1.serialize)(),
|
|
6431
|
+
(0, ts_serval_1.validate)(),
|
|
6432
|
+
__metadata("design:type", transport_1.CoreDate)
|
|
6433
|
+
], StatementIssuerConditions.prototype, "validTo", void 0);
|
|
6434
|
+
__decorate([
|
|
6435
|
+
(0, ts_serval_1.serialize)(),
|
|
6436
|
+
(0, ts_serval_1.validate)(),
|
|
6437
|
+
__metadata("design:type", StatementEvidence_1.StatementEvidence)
|
|
6438
|
+
], StatementIssuerConditions.prototype, "evidence", void 0);
|
|
6439
|
+
__decorate([
|
|
6440
|
+
(0, ts_serval_1.serialize)(),
|
|
6441
|
+
(0, ts_serval_1.validate)(),
|
|
6442
|
+
__metadata("design:type", StatementAuthorityType_1.StatementAuthorityType)
|
|
6443
|
+
], StatementIssuerConditions.prototype, "authorityType", void 0);
|
|
6444
|
+
__decorate([
|
|
6445
|
+
(0, ts_serval_1.serialize)(),
|
|
6446
|
+
(0, ts_serval_1.validate)({ nullable: true }),
|
|
6447
|
+
__metadata("design:type", DigitalIdentityDescriptor_1.DigitalIdentityDescriptor)
|
|
6448
|
+
], StatementIssuerConditions.prototype, "relayedParty", void 0);
|
|
6449
|
+
StatementIssuerConditions = __decorate([
|
|
6450
|
+
(0, ts_serval_1.type)("StatementIssuerConditions")
|
|
6451
|
+
], StatementIssuerConditions);
|
|
6452
|
+
exports.StatementIssuerConditions = StatementIssuerConditions;
|
|
6453
|
+
//# sourceMappingURL=StatementIssuerConditions.js.map
|
|
6454
|
+
|
|
6455
|
+
/***/ }),
|
|
6456
|
+
|
|
6457
|
+
/***/ "./dist/attributes/types/statement/StatementObject.js":
|
|
6458
|
+
/*!************************************************************!*\
|
|
6459
|
+
!*** ./dist/attributes/types/statement/StatementObject.js ***!
|
|
6460
|
+
\************************************************************/
|
|
6461
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6462
|
+
|
|
6463
|
+
|
|
6464
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6465
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6466
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6467
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6468
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6469
|
+
};
|
|
6470
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
6471
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6472
|
+
};
|
|
6473
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6474
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6475
|
+
};
|
|
6476
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6477
|
+
exports.StatementObject = void 0;
|
|
6478
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6479
|
+
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
6480
|
+
const easy_tsnameof_1 = __importDefault(__webpack_require__(/*! easy-tsnameof */ "./node_modules/easy-tsnameof/dist/easy-tsnameof.esm.js"));
|
|
6481
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
6482
|
+
const AbstractIdentityDescriptor_1 = __webpack_require__(/*! ./AbstractIdentityDescriptor */ "./dist/attributes/types/statement/AbstractIdentityDescriptor.js");
|
|
6483
|
+
let StatementObject = class StatementObject extends AbstractIdentityDescriptor_1.AbstractIdentityDescriptor {
|
|
6484
|
+
static from(value) {
|
|
6485
|
+
return this.fromAny(value);
|
|
6486
|
+
}
|
|
6487
|
+
toJSON(verbose, serializeAsString) {
|
|
6488
|
+
return super.toJSON(verbose, serializeAsString);
|
|
6489
|
+
}
|
|
6490
|
+
static get valueHints() {
|
|
6491
|
+
return super.valueHints.copyWith({
|
|
6492
|
+
propertyHints: {
|
|
6493
|
+
[this.propertyNames.address.$path]: hints_1.ValueHints.from({})
|
|
6494
|
+
}
|
|
6495
|
+
});
|
|
6496
|
+
}
|
|
6497
|
+
static get renderHints() {
|
|
6498
|
+
return super.renderHints.copyWith({
|
|
6499
|
+
propertyHints: {
|
|
6500
|
+
[this.propertyNames.address.$path]: hints_1.RenderHints.from({
|
|
6501
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
6502
|
+
technicalType: hints_1.RenderHintsTechnicalType.String
|
|
6503
|
+
})
|
|
6504
|
+
}
|
|
6505
|
+
});
|
|
6506
|
+
}
|
|
6507
|
+
};
|
|
6508
|
+
StatementObject.propertyNames = (0, easy_tsnameof_1.default)();
|
|
6509
|
+
__decorate([
|
|
6510
|
+
(0, ts_serval_1.serialize)({ type: transport_1.CoreAddress }),
|
|
6511
|
+
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
6512
|
+
__metadata("design:type", transport_1.CoreAddress)
|
|
6513
|
+
], StatementObject.prototype, "address", void 0);
|
|
6514
|
+
StatementObject = __decorate([
|
|
6515
|
+
(0, ts_serval_1.type)("StatementObject")
|
|
6516
|
+
], StatementObject);
|
|
6517
|
+
exports.StatementObject = StatementObject;
|
|
6518
|
+
//# sourceMappingURL=StatementObject.js.map
|
|
6519
|
+
|
|
6520
|
+
/***/ }),
|
|
6521
|
+
|
|
6522
|
+
/***/ "./dist/attributes/types/statement/StatementPredicate.js":
|
|
6523
|
+
/*!***************************************************************!*\
|
|
6524
|
+
!*** ./dist/attributes/types/statement/StatementPredicate.js ***!
|
|
6525
|
+
\***************************************************************/
|
|
6526
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6527
|
+
|
|
6528
|
+
|
|
6529
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6530
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6531
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6532
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6533
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6534
|
+
};
|
|
6535
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
6536
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6537
|
+
};
|
|
6538
|
+
var StatementPredicate_1;
|
|
6539
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6540
|
+
exports.StatementPredicate = exports.Predicates = void 0;
|
|
6541
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6542
|
+
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
6543
|
+
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
6544
|
+
/**
|
|
6545
|
+
* Supported Predicates
|
|
6546
|
+
*/
|
|
6547
|
+
var Predicates;
|
|
6548
|
+
(function (Predicates) {
|
|
6549
|
+
Predicates["HasAttribute"] = "hasAttribute";
|
|
6550
|
+
Predicates["RelatesTo"] = "relatesTo";
|
|
6551
|
+
Predicates["IsRelatedTo"] = "isRelatedTo";
|
|
6552
|
+
})(Predicates = exports.Predicates || (exports.Predicates = {}));
|
|
6553
|
+
let StatementPredicate = StatementPredicate_1 = class StatementPredicate extends AbstractString_1.AbstractString {
|
|
6554
|
+
static get valueHints() {
|
|
6555
|
+
return super.valueHints.copyWith({
|
|
6556
|
+
values: Object.values(Predicates).map((value) => hints_1.ValueHintsValue.from({
|
|
6557
|
+
key: value,
|
|
6558
|
+
displayName: `i18n://attributes.values.StatementPredicate.${value}`
|
|
6559
|
+
}))
|
|
6560
|
+
});
|
|
6561
|
+
}
|
|
6562
|
+
static get renderHints() {
|
|
6563
|
+
return super.renderHints.copyWith({
|
|
6564
|
+
editType: hints_1.RenderHintsEditType.ButtonLike
|
|
6565
|
+
});
|
|
6566
|
+
}
|
|
6567
|
+
static from(value) {
|
|
6568
|
+
return this.fromAny(value);
|
|
6569
|
+
}
|
|
6570
|
+
toJSON(verbose, serializeAsString) {
|
|
6571
|
+
return super.toJSON(verbose, serializeAsString);
|
|
6572
|
+
}
|
|
6573
|
+
static validatePredicate(predicate) {
|
|
6574
|
+
if (Object.values(Predicates).includes(predicate)) {
|
|
6575
|
+
return undefined;
|
|
6576
|
+
}
|
|
6577
|
+
if (predicate.startsWith("z-")) {
|
|
6578
|
+
return undefined;
|
|
6579
|
+
}
|
|
6580
|
+
return `must be one of: ${Object.values(Predicates)} or start with z-`;
|
|
6581
|
+
}
|
|
6582
|
+
};
|
|
6583
|
+
__decorate([
|
|
6584
|
+
(0, ts_serval_1.serialize)(),
|
|
6585
|
+
(0, ts_serval_1.validate)({
|
|
6586
|
+
customValidator: StatementPredicate_1.validatePredicate,
|
|
6587
|
+
allowedTypes: [ts_serval_1.PrimitiveType.String]
|
|
6588
|
+
}),
|
|
6589
|
+
__metadata("design:type", String)
|
|
6590
|
+
], StatementPredicate.prototype, "value", void 0);
|
|
6591
|
+
StatementPredicate = StatementPredicate_1 = __decorate([
|
|
6592
|
+
(0, ts_serval_1.type)("StatementPredicate")
|
|
6593
|
+
], StatementPredicate);
|
|
6594
|
+
exports.StatementPredicate = StatementPredicate;
|
|
6595
|
+
//# sourceMappingURL=StatementPredicate.js.map
|
|
6596
|
+
|
|
6597
|
+
/***/ }),
|
|
6598
|
+
|
|
6599
|
+
/***/ "./dist/attributes/types/statement/StatementSubject.js":
|
|
6600
|
+
/*!*************************************************************!*\
|
|
6601
|
+
!*** ./dist/attributes/types/statement/StatementSubject.js ***!
|
|
6602
|
+
\*************************************************************/
|
|
6603
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6604
|
+
|
|
6605
|
+
|
|
6606
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
6607
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6608
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6609
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6610
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6611
|
+
};
|
|
6612
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
6613
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
6614
|
+
};
|
|
6615
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6616
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6617
|
+
};
|
|
6618
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6619
|
+
exports.StatementSubject = void 0;
|
|
6620
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
6621
|
+
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
6622
|
+
const easy_tsnameof_1 = __importDefault(__webpack_require__(/*! easy-tsnameof */ "./node_modules/easy-tsnameof/dist/easy-tsnameof.esm.js"));
|
|
6623
|
+
const hints_1 = __webpack_require__(/*! ../../../attributes/hints */ "./dist/attributes/hints/index.js");
|
|
6624
|
+
const AbstractIdentityDescriptor_1 = __webpack_require__(/*! ./AbstractIdentityDescriptor */ "./dist/attributes/types/statement/AbstractIdentityDescriptor.js");
|
|
6625
|
+
let StatementSubject = class StatementSubject extends AbstractIdentityDescriptor_1.AbstractIdentityDescriptor {
|
|
6626
|
+
static from(value) {
|
|
6627
|
+
return this.fromAny(value);
|
|
6628
|
+
}
|
|
6629
|
+
toJSON(verbose, serializeAsString) {
|
|
6630
|
+
return super.toJSON(verbose, serializeAsString);
|
|
6631
|
+
}
|
|
6632
|
+
static get valueHints() {
|
|
6633
|
+
return super.valueHints.copyWith({
|
|
6634
|
+
propertyHints: {
|
|
6635
|
+
[this.propertyNames.address.$path]: hints_1.ValueHints.from({})
|
|
6636
|
+
}
|
|
6637
|
+
});
|
|
6638
|
+
}
|
|
6639
|
+
static get renderHints() {
|
|
6640
|
+
return super.renderHints.copyWith({
|
|
6641
|
+
propertyHints: {
|
|
6642
|
+
[this.propertyNames.address.$path]: hints_1.RenderHints.from({
|
|
6643
|
+
editType: hints_1.RenderHintsEditType.InputLike,
|
|
6644
|
+
technicalType: hints_1.RenderHintsTechnicalType.String
|
|
6645
|
+
})
|
|
6646
|
+
}
|
|
6647
|
+
});
|
|
6648
|
+
}
|
|
6649
|
+
};
|
|
6650
|
+
StatementSubject.propertyNames = (0, easy_tsnameof_1.default)();
|
|
6651
|
+
__decorate([
|
|
6652
|
+
(0, ts_serval_1.serialize)({ type: transport_1.CoreAddress }),
|
|
6653
|
+
(0, ts_serval_1.validate)({ customValidator: (v) => (v.length < 1 ? "may not be empty" : undefined) }),
|
|
6654
|
+
__metadata("design:type", transport_1.CoreAddress)
|
|
6655
|
+
], StatementSubject.prototype, "address", void 0);
|
|
6656
|
+
StatementSubject = __decorate([
|
|
6657
|
+
(0, ts_serval_1.type)("StatementSubject")
|
|
6658
|
+
], StatementSubject);
|
|
6659
|
+
exports.StatementSubject = StatementSubject;
|
|
6660
|
+
//# sourceMappingURL=StatementSubject.js.map
|
|
6661
|
+
|
|
6662
|
+
/***/ }),
|
|
6663
|
+
|
|
6664
|
+
/***/ "./dist/attributes/types/statement/index.js":
|
|
6665
|
+
/*!**************************************************!*\
|
|
6666
|
+
!*** ./dist/attributes/types/statement/index.js ***!
|
|
6667
|
+
\**************************************************/
|
|
6668
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6669
|
+
|
|
6670
|
+
|
|
6671
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6672
|
+
if (k2 === undefined) k2 = k;
|
|
6673
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6674
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6675
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6676
|
+
}
|
|
6677
|
+
Object.defineProperty(o, k2, desc);
|
|
6678
|
+
}) : (function(o, m, k, k2) {
|
|
6679
|
+
if (k2 === undefined) k2 = k;
|
|
6680
|
+
o[k2] = m[k];
|
|
6681
|
+
}));
|
|
6682
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
6683
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
6684
|
+
};
|
|
6685
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6686
|
+
__exportStar(__webpack_require__(/*! ./AbstractIdentityDescriptor */ "./dist/attributes/types/statement/AbstractIdentityDescriptor.js"), exports);
|
|
6687
|
+
__exportStar(__webpack_require__(/*! ./AbstractStatement */ "./dist/attributes/types/statement/AbstractStatement.js"), exports);
|
|
6688
|
+
__exportStar(__webpack_require__(/*! ./DigitalIdentityDescriptor */ "./dist/attributes/types/statement/DigitalIdentityDescriptor.js"), exports);
|
|
6689
|
+
__exportStar(__webpack_require__(/*! ./Statement */ "./dist/attributes/types/statement/Statement.js"), exports);
|
|
6690
|
+
__exportStar(__webpack_require__(/*! ./StatementAuthorityType */ "./dist/attributes/types/statement/StatementAuthorityType.js"), exports);
|
|
6691
|
+
__exportStar(__webpack_require__(/*! ./StatementEvidence */ "./dist/attributes/types/statement/StatementEvidence.js"), exports);
|
|
6692
|
+
__exportStar(__webpack_require__(/*! ./StatementIssuerConditions */ "./dist/attributes/types/statement/StatementIssuerConditions.js"), exports);
|
|
6693
|
+
__exportStar(__webpack_require__(/*! ./StatementObject */ "./dist/attributes/types/statement/StatementObject.js"), exports);
|
|
6694
|
+
__exportStar(__webpack_require__(/*! ./StatementPredicate */ "./dist/attributes/types/statement/StatementPredicate.js"), exports);
|
|
6695
|
+
__exportStar(__webpack_require__(/*! ./StatementSubject */ "./dist/attributes/types/statement/StatementSubject.js"), exports);
|
|
6696
|
+
//# sourceMappingURL=index.js.map
|
|
6697
|
+
|
|
6698
|
+
/***/ }),
|
|
6699
|
+
|
|
5965
6700
|
/***/ "./dist/attributes/types/strings/AbstractCountry.js":
|
|
5966
6701
|
/*!**********************************************************!*\
|
|
5967
6702
|
!*** ./dist/attributes/types/strings/AbstractCountry.js ***!
|
|
@@ -6394,10 +7129,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
6394
7129
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
6395
7130
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
6396
7131
|
exports.buildInformation = {
|
|
6397
|
-
version: "2.
|
|
6398
|
-
build: "
|
|
6399
|
-
date: "2023-08-
|
|
6400
|
-
commit: "
|
|
7132
|
+
version: "2.6.0",
|
|
7133
|
+
build: "144",
|
|
7134
|
+
date: "2023-08-11T12:01:06+00:00",
|
|
7135
|
+
commit: "054511a7329860a1e234871b8d862bc1799a8aee",
|
|
6401
7136
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0","@nmshd/iql":"^0.0.1","easy-tsnameof":"^3.0.6","mocha-param":"^2.0.1"},
|
|
6402
7137
|
libraries: {
|
|
6403
7138
|
serval: ts_serval_1.buildInformation,
|
|
@@ -7113,7 +7848,7 @@ __decorate([
|
|
|
7113
7848
|
(0, ts_serval_1.serialize)(),
|
|
7114
7849
|
(0, ts_serval_1.validate)(),
|
|
7115
7850
|
__metadata("design:type", String)
|
|
7116
|
-
], FreeTextAcceptResponseItem.prototype, "
|
|
7851
|
+
], FreeTextAcceptResponseItem.prototype, "freeText", void 0);
|
|
7117
7852
|
FreeTextAcceptResponseItem = __decorate([
|
|
7118
7853
|
(0, ts_serval_1.type)("FreeTextAcceptResponseItem")
|
|
7119
7854
|
], FreeTextAcceptResponseItem);
|
|
@@ -7154,7 +7889,7 @@ __decorate([
|
|
|
7154
7889
|
(0, ts_serval_1.serialize)(),
|
|
7155
7890
|
(0, ts_serval_1.validate)(),
|
|
7156
7891
|
__metadata("design:type", String)
|
|
7157
|
-
], FreeTextRequestItem.prototype, "
|
|
7892
|
+
], FreeTextRequestItem.prototype, "freeText", void 0);
|
|
7158
7893
|
FreeTextRequestItem = __decorate([
|
|
7159
7894
|
(0, ts_serval_1.type)("FreeTextRequestItem")
|
|
7160
7895
|
], FreeTextRequestItem);
|