@nmshd/content 2.1.1 → 2.2.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/IdentityAttribute.d.ts +1 -0
- package/dist/attributes/IdentityAttribute.js +13 -3
- package/dist/attributes/IdentityAttribute.js.map +1 -1
- package/dist/attributes/IdentityAttributeQuery.d.ts +1 -0
- package/dist/attributes/IdentityAttributeQuery.js +13 -3
- package/dist/attributes/IdentityAttributeQuery.js.map +1 -1
- package/dist/attributes/RelationshipAttribute.js +1 -1
- package/dist/attributes/RelationshipAttribute.js.map +1 -1
- package/dist/attributes/RelationshipAttributeQuery.js +4 -3
- package/dist/attributes/RelationshipAttributeQuery.js.map +1 -1
- package/dist/attributes/ThirdPartyRelationshipAttributeQuery.js +1 -1
- package/dist/attributes/ThirdPartyRelationshipAttributeQuery.js.map +1 -1
- package/dist/attributes/hints/ValueHints.js +4 -4
- package/dist/attributes/hints/ValueHints.js.map +1 -1
- package/dist/attributes/hints/ValueHintsValue.d.ts +1 -0
- package/dist/attributes/hints/ValueHintsValue.js +14 -4
- package/dist/attributes/hints/ValueHintsValue.js.map +1 -1
- package/dist/attributes/types/address/AbstractAddress.js +1 -1
- package/dist/attributes/types/address/AbstractAddress.js.map +1 -1
- package/dist/attributes/types/address/DeliveryBoxAddress.js +2 -2
- package/dist/attributes/types/address/DeliveryBoxAddress.js.map +1 -1
- package/dist/attributes/types/address/PostOfficeBoxAddress.js +1 -1
- package/dist/attributes/types/address/PostOfficeBoxAddress.js.map +1 -1
- package/dist/attributes/types/measurements/AbstractMeasurement.js +1 -1
- package/dist/attributes/types/measurements/AbstractMeasurement.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryAttributeValue.d.ts +2 -0
- package/dist/attributes/types/proprietary/ProprietaryAttributeValue.js +3 -0
- package/dist/attributes/types/proprietary/ProprietaryAttributeValue.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryBoolean.js +3 -2
- package/dist/attributes/types/proprietary/ProprietaryBoolean.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryCountry.js +3 -2
- package/dist/attributes/types/proprietary/ProprietaryCountry.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js +3 -2
- package/dist/attributes/types/proprietary/ProprietaryEMailAddress.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryFileReference.js +3 -2
- package/dist/attributes/types/proprietary/ProprietaryFileReference.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryFloat.js +3 -2
- package/dist/attributes/types/proprietary/ProprietaryFloat.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryHEXColor.js +3 -2
- package/dist/attributes/types/proprietary/ProprietaryHEXColor.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryInteger.js +3 -2
- package/dist/attributes/types/proprietary/ProprietaryInteger.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryJSON.js +3 -2
- package/dist/attributes/types/proprietary/ProprietaryJSON.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryLanguage.js +3 -2
- package/dist/attributes/types/proprietary/ProprietaryLanguage.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.d.ts +1 -1
- package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.js +3 -2
- package/dist/attributes/types/proprietary/ProprietaryPhoneNumber.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryString.js +3 -2
- package/dist/attributes/types/proprietary/ProprietaryString.js.map +1 -1
- package/dist/attributes/types/proprietary/ProprietaryURL.js +3 -2
- package/dist/attributes/types/proprietary/ProprietaryURL.js.map +1 -1
- package/dist/buildInformation.js +4 -4
- package/dist/messages/Mail.js +2 -2
- package/dist/messages/Mail.js.map +1 -1
- package/dist/relationships/RelationshipTemplateContent.js +1 -1
- package/dist/relationships/RelationshipTemplateContent.js.map +1 -1
- package/dist/requests/Request.js +2 -2
- package/dist/requests/Request.js.map +1 -1
- package/dist/requests/RequestItem.d.ts +4 -6
- package/dist/requests/RequestItem.js +2 -2
- package/dist/requests/RequestItem.js.map +1 -1
- package/dist/requests/RequestItemGroup.js +2 -2
- package/dist/requests/RequestItemGroup.js.map +1 -1
- package/dist/requests/items/consent/ConsentRequestItem.js +9 -2
- package/dist/requests/items/consent/ConsentRequestItem.js.map +1 -1
- package/dist/requests/items/index.d.ts +2 -0
- package/dist/requests/items/index.js +2 -0
- package/dist/requests/items/index.js.map +1 -1
- package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerAcceptResponseItem.js +1 -1
- package/dist/requests/items/registerAttributeListener/RegisterAttributeListenerAcceptResponseItem.js.map +1 -1
- package/dist/requests/items/succeedAttribute/SucceedAttributeAcceptResponseItem.d.ts +14 -0
- package/dist/requests/items/succeedAttribute/SucceedAttributeAcceptResponseItem.js +33 -0
- package/dist/requests/items/succeedAttribute/SucceedAttributeAcceptResponseItem.js.map +1 -0
- package/dist/requests/items/succeedAttribute/SucceedAttributeRequestItem.d.ts +40 -0
- package/dist/requests/items/succeedAttribute/SucceedAttributeRequestItem.js +66 -0
- package/dist/requests/items/succeedAttribute/SucceedAttributeRequestItem.js.map +1 -0
- package/dist/requests/response/AcceptResponseItem.d.ts +4 -4
- package/dist/requests/response/AcceptResponseItem.js.map +1 -1
- package/dist/requests/response/ErrorResponseItem.js +2 -2
- package/dist/requests/response/ErrorResponseItem.js.map +1 -1
- package/dist/requests/response/RejectResponseItem.js +2 -2
- package/dist/requests/response/RejectResponseItem.js.map +1 -1
- package/lib-web/nmshd.content.js +252 -68
- package/lib-web/nmshd.content.min.js +1 -1
- package/package.json +2 -2
package/lib-web/nmshd.content.js
CHANGED
|
@@ -317,18 +317,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
317
317
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
318
318
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
319
319
|
};
|
|
320
|
+
var IdentityAttribute_1;
|
|
320
321
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
321
322
|
exports.IdentityAttribute = void 0;
|
|
322
323
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
323
324
|
const AbstractAttribute_1 = __webpack_require__(/*! ./AbstractAttribute */ "./dist/attributes/AbstractAttribute.js");
|
|
324
325
|
const AttributeValueTypes_1 = __webpack_require__(/*! ./AttributeValueTypes */ "./dist/attributes/AttributeValueTypes.js");
|
|
325
|
-
let IdentityAttribute = class IdentityAttribute extends AbstractAttribute_1.AbstractAttribute {
|
|
326
|
+
let IdentityAttribute = IdentityAttribute_1 = class IdentityAttribute extends AbstractAttribute_1.AbstractAttribute {
|
|
326
327
|
static from(value) {
|
|
327
328
|
return this.fromAny(value);
|
|
328
329
|
}
|
|
329
330
|
toJSON(verbose, serializeAsString) {
|
|
330
331
|
return super.toJSON(verbose, serializeAsString);
|
|
331
332
|
}
|
|
333
|
+
static validateTags(tags) {
|
|
334
|
+
if (tags.length > 20) {
|
|
335
|
+
return "The maximum number of tags is 20.";
|
|
336
|
+
}
|
|
337
|
+
if (tags.some((tag) => tag.length > 100)) {
|
|
338
|
+
return "The maximum length of a tag is 100 characters.";
|
|
339
|
+
}
|
|
340
|
+
return undefined;
|
|
341
|
+
}
|
|
332
342
|
};
|
|
333
343
|
__decorate([
|
|
334
344
|
(0, ts_serval_1.serialize)({ unionTypes: AttributeValueTypes_1.AttributeValues.Identity.CLASSES }),
|
|
@@ -337,10 +347,10 @@ __decorate([
|
|
|
337
347
|
], IdentityAttribute.prototype, "value", void 0);
|
|
338
348
|
__decorate([
|
|
339
349
|
(0, ts_serval_1.serialize)({ type: String }),
|
|
340
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
350
|
+
(0, ts_serval_1.validate)({ nullable: true, customValidator: IdentityAttribute_1.validateTags }),
|
|
341
351
|
__metadata("design:type", Array)
|
|
342
352
|
], IdentityAttribute.prototype, "tags", void 0);
|
|
343
|
-
IdentityAttribute = __decorate([
|
|
353
|
+
IdentityAttribute = IdentityAttribute_1 = __decorate([
|
|
344
354
|
(0, ts_serval_1.type)("IdentityAttribute")
|
|
345
355
|
], IdentityAttribute);
|
|
346
356
|
exports.IdentityAttribute = IdentityAttribute;
|
|
@@ -364,18 +374,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
364
374
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
365
375
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
366
376
|
};
|
|
377
|
+
var IdentityAttributeQuery_1;
|
|
367
378
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
368
379
|
exports.IdentityAttributeQuery = void 0;
|
|
369
380
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
370
381
|
const AbstractAttributeQuery_1 = __webpack_require__(/*! ./AbstractAttributeQuery */ "./dist/attributes/AbstractAttributeQuery.js");
|
|
371
382
|
const AttributeValueTypes_1 = __webpack_require__(/*! ./AttributeValueTypes */ "./dist/attributes/AttributeValueTypes.js");
|
|
372
|
-
let IdentityAttributeQuery = class IdentityAttributeQuery extends AbstractAttributeQuery_1.AbstractAttributeQuery {
|
|
383
|
+
let IdentityAttributeQuery = IdentityAttributeQuery_1 = class IdentityAttributeQuery extends AbstractAttributeQuery_1.AbstractAttributeQuery {
|
|
373
384
|
static from(value) {
|
|
374
385
|
return this.fromAny(value);
|
|
375
386
|
}
|
|
376
387
|
toJSON(verbose, serializeAsString) {
|
|
377
388
|
return super.toJSON(verbose, serializeAsString);
|
|
378
389
|
}
|
|
390
|
+
static validateTags(tags) {
|
|
391
|
+
if (tags.length > 20) {
|
|
392
|
+
return "The maximum number of tags is 20.";
|
|
393
|
+
}
|
|
394
|
+
if (tags.some((tag) => tag.length > 100)) {
|
|
395
|
+
return "The maximum length of a tag is 100 characters.";
|
|
396
|
+
}
|
|
397
|
+
return undefined;
|
|
398
|
+
}
|
|
379
399
|
};
|
|
380
400
|
__decorate([
|
|
381
401
|
(0, ts_serval_1.serialize)(),
|
|
@@ -388,10 +408,10 @@ __decorate([
|
|
|
388
408
|
], IdentityAttributeQuery.prototype, "valueType", void 0);
|
|
389
409
|
__decorate([
|
|
390
410
|
(0, ts_serval_1.serialize)({ type: String }),
|
|
391
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
411
|
+
(0, ts_serval_1.validate)({ nullable: true, customValidator: IdentityAttributeQuery_1.validateTags }),
|
|
392
412
|
__metadata("design:type", Array)
|
|
393
413
|
], IdentityAttributeQuery.prototype, "tags", void 0);
|
|
394
|
-
IdentityAttributeQuery = __decorate([
|
|
414
|
+
IdentityAttributeQuery = IdentityAttributeQuery_1 = __decorate([
|
|
395
415
|
(0, ts_serval_1.type)("IdentityAttributeQuery")
|
|
396
416
|
], IdentityAttributeQuery);
|
|
397
417
|
exports.IdentityAttributeQuery = IdentityAttributeQuery;
|
|
@@ -441,7 +461,7 @@ __decorate([
|
|
|
441
461
|
], RelationshipAttribute.prototype, "value", void 0);
|
|
442
462
|
__decorate([
|
|
443
463
|
(0, ts_serval_1.serialize)(),
|
|
444
|
-
(0, ts_serval_1.validate)(),
|
|
464
|
+
(0, ts_serval_1.validate)({ max: 100 }),
|
|
445
465
|
__metadata("design:type", String)
|
|
446
466
|
], RelationshipAttribute.prototype, "key", void 0);
|
|
447
467
|
__decorate([
|
|
@@ -534,6 +554,7 @@ const AbstractAttributeQuery_1 = __webpack_require__(/*! ./AbstractAttributeQuer
|
|
|
534
554
|
const AttributeValueTypes_1 = __webpack_require__(/*! ./AttributeValueTypes */ "./dist/attributes/AttributeValueTypes.js");
|
|
535
555
|
const hints_1 = __webpack_require__(/*! ./hints */ "./dist/attributes/hints/index.js");
|
|
536
556
|
const RelationshipAttributeConfidentiality_1 = __webpack_require__(/*! ./RelationshipAttributeConfidentiality */ "./dist/attributes/RelationshipAttributeConfidentiality.js");
|
|
557
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./types/proprietary/ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
537
558
|
/**
|
|
538
559
|
* AttributeHints are rendering hints with a `title` and a possible `description` set.
|
|
539
560
|
* They are primarily used within `RelationshipAttributeQuery` to define the metadata of
|
|
@@ -551,7 +572,7 @@ let RelationshipAttributeCreationHints = class RelationshipAttributeCreationHint
|
|
|
551
572
|
};
|
|
552
573
|
__decorate([
|
|
553
574
|
(0, ts_serval_1.serialize)(),
|
|
554
|
-
(0, ts_serval_1.validate)(),
|
|
575
|
+
(0, ts_serval_1.validate)({ max: 100 }),
|
|
555
576
|
__metadata("design:type", String)
|
|
556
577
|
], RelationshipAttributeCreationHints.prototype, "title", void 0);
|
|
557
578
|
__decorate([
|
|
@@ -565,7 +586,7 @@ __decorate([
|
|
|
565
586
|
], RelationshipAttributeCreationHints.prototype, "valueType", void 0);
|
|
566
587
|
__decorate([
|
|
567
588
|
(0, ts_serval_1.serialize)(),
|
|
568
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
589
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
569
590
|
__metadata("design:type", String)
|
|
570
591
|
], RelationshipAttributeCreationHints.prototype, "description", void 0);
|
|
571
592
|
__decorate([
|
|
@@ -596,7 +617,7 @@ let RelationshipAttributeQuery = class RelationshipAttributeQuery extends Abstra
|
|
|
596
617
|
};
|
|
597
618
|
__decorate([
|
|
598
619
|
(0, ts_serval_1.serialize)(),
|
|
599
|
-
(0, ts_serval_1.validate)(),
|
|
620
|
+
(0, ts_serval_1.validate)({ max: 100 }),
|
|
600
621
|
__metadata("design:type", String)
|
|
601
622
|
], RelationshipAttributeQuery.prototype, "key", void 0);
|
|
602
623
|
__decorate([
|
|
@@ -654,7 +675,7 @@ let ThirdPartyRelationshipAttributeQuery = class ThirdPartyRelationshipAttribute
|
|
|
654
675
|
};
|
|
655
676
|
__decorate([
|
|
656
677
|
(0, ts_serval_1.serialize)(),
|
|
657
|
-
(0, ts_serval_1.validate)(),
|
|
678
|
+
(0, ts_serval_1.validate)({ max: 100 }),
|
|
658
679
|
__metadata("design:type", String)
|
|
659
680
|
], ThirdPartyRelationshipAttributeQuery.prototype, "key", void 0);
|
|
660
681
|
__decorate([
|
|
@@ -1894,7 +1915,7 @@ let ValueHints = ValueHints_1 = class ValueHints extends ts_serval_1.Serializabl
|
|
|
1894
1915
|
};
|
|
1895
1916
|
__decorate([
|
|
1896
1917
|
(0, ts_serval_1.serialize)(),
|
|
1897
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
1918
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 500 }),
|
|
1898
1919
|
__metadata("design:type", String)
|
|
1899
1920
|
], ValueHints.prototype, "editHelp", void 0);
|
|
1900
1921
|
__decorate([
|
|
@@ -1909,7 +1930,7 @@ __decorate([
|
|
|
1909
1930
|
], ValueHints.prototype, "max", void 0);
|
|
1910
1931
|
__decorate([
|
|
1911
1932
|
(0, ts_serval_1.serialize)(),
|
|
1912
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
1933
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 1000 }),
|
|
1913
1934
|
__metadata("design:type", String)
|
|
1914
1935
|
], ValueHints.prototype, "pattern", void 0);
|
|
1915
1936
|
__decorate([
|
|
@@ -1947,7 +1968,7 @@ let ValueHintsOverride = class ValueHintsOverride extends ts_serval_1.Serializab
|
|
|
1947
1968
|
};
|
|
1948
1969
|
__decorate([
|
|
1949
1970
|
(0, ts_serval_1.serialize)(),
|
|
1950
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
1971
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 500 }),
|
|
1951
1972
|
__metadata("design:type", String)
|
|
1952
1973
|
], ValueHintsOverride.prototype, "editHelp", void 0);
|
|
1953
1974
|
__decorate([
|
|
@@ -1962,7 +1983,7 @@ __decorate([
|
|
|
1962
1983
|
], ValueHintsOverride.prototype, "max", void 0);
|
|
1963
1984
|
__decorate([
|
|
1964
1985
|
(0, ts_serval_1.serialize)(),
|
|
1965
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
1986
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 1000 }),
|
|
1966
1987
|
__metadata("design:type", String)
|
|
1967
1988
|
], ValueHintsOverride.prototype, "pattern", void 0);
|
|
1968
1989
|
__decorate([
|
|
@@ -2004,25 +2025,35 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
2004
2025
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
2005
2026
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2006
2027
|
};
|
|
2028
|
+
var ValueHintsValue_1;
|
|
2007
2029
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2008
2030
|
exports.ValueHintsValue = void 0;
|
|
2009
2031
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
2010
|
-
let ValueHintsValue = class ValueHintsValue extends ts_serval_1.Serializable {
|
|
2032
|
+
let ValueHintsValue = ValueHintsValue_1 = class ValueHintsValue extends ts_serval_1.Serializable {
|
|
2011
2033
|
static from(value) {
|
|
2012
2034
|
return this.fromAny(value);
|
|
2013
2035
|
}
|
|
2036
|
+
static validateKey(key) {
|
|
2037
|
+
if (typeof key === "string" && key.length > 100) {
|
|
2038
|
+
return "The maximum length of a key is 200 characters.";
|
|
2039
|
+
}
|
|
2040
|
+
return undefined;
|
|
2041
|
+
}
|
|
2014
2042
|
};
|
|
2015
2043
|
__decorate([
|
|
2016
2044
|
(0, ts_serval_1.serialize)(),
|
|
2017
|
-
(0, ts_serval_1.validate)(),
|
|
2045
|
+
(0, ts_serval_1.validate)({ max: 100 }),
|
|
2018
2046
|
__metadata("design:type", String)
|
|
2019
2047
|
], ValueHintsValue.prototype, "displayName", void 0);
|
|
2020
2048
|
__decorate([
|
|
2021
|
-
(0, ts_serval_1.validate)({
|
|
2049
|
+
(0, ts_serval_1.validate)({
|
|
2050
|
+
allowedTypes: [ts_serval_1.PrimitiveType.String, ts_serval_1.PrimitiveType.Number, ts_serval_1.PrimitiveType.Boolean],
|
|
2051
|
+
customValidator: ValueHintsValue_1.validateKey
|
|
2052
|
+
}),
|
|
2022
2053
|
(0, ts_serval_1.serialize)(),
|
|
2023
2054
|
__metadata("design:type", Object)
|
|
2024
2055
|
], ValueHintsValue.prototype, "key", void 0);
|
|
2025
|
-
ValueHintsValue = __decorate([
|
|
2056
|
+
ValueHintsValue = ValueHintsValue_1 = __decorate([
|
|
2026
2057
|
(0, ts_serval_1.type)("ValueHintsValue")
|
|
2027
2058
|
], ValueHintsValue);
|
|
2028
2059
|
exports.ValueHintsValue = ValueHintsValue;
|
|
@@ -2351,7 +2382,7 @@ class AbstractAddress extends AbstractComplexValue_1.AbstractComplexValue {
|
|
|
2351
2382
|
AbstractAddress.propertyNames = (0, easy_tsnameof_1.default)();
|
|
2352
2383
|
__decorate([
|
|
2353
2384
|
(0, ts_serval_1.serialize)(),
|
|
2354
|
-
(0, ts_serval_1.validate)(),
|
|
2385
|
+
(0, ts_serval_1.validate)({ max: 100 }),
|
|
2355
2386
|
__metadata("design:type", String)
|
|
2356
2387
|
], AbstractAddress.prototype, "recipient", void 0);
|
|
2357
2388
|
exports.AbstractAddress = AbstractAddress;
|
|
@@ -2510,12 +2541,12 @@ let DeliveryBoxAddress = class DeliveryBoxAddress extends AbstractAddress_1.Abst
|
|
|
2510
2541
|
DeliveryBoxAddress.propertyNames = (0, easy_tsnameof_1.default)();
|
|
2511
2542
|
__decorate([
|
|
2512
2543
|
(0, ts_serval_1.serialize)(),
|
|
2513
|
-
(0, ts_serval_1.validate)(),
|
|
2544
|
+
(0, ts_serval_1.validate)({ max: 100 }),
|
|
2514
2545
|
__metadata("design:type", String)
|
|
2515
2546
|
], DeliveryBoxAddress.prototype, "userId", void 0);
|
|
2516
2547
|
__decorate([
|
|
2517
2548
|
(0, ts_serval_1.serialize)(),
|
|
2518
|
-
(0, ts_serval_1.validate)(),
|
|
2549
|
+
(0, ts_serval_1.validate)({ max: 100 }),
|
|
2519
2550
|
__metadata("design:type", String)
|
|
2520
2551
|
], DeliveryBoxAddress.prototype, "deliveryBoxId", void 0);
|
|
2521
2552
|
__decorate([
|
|
@@ -2663,7 +2694,7 @@ let PostOfficeBoxAddress = class PostOfficeBoxAddress extends AbstractAddress_1.
|
|
|
2663
2694
|
PostOfficeBoxAddress.propertyNames = (0, easy_tsnameof_1.default)();
|
|
2664
2695
|
__decorate([
|
|
2665
2696
|
(0, ts_serval_1.serialize)(),
|
|
2666
|
-
(0, ts_serval_1.validate)(),
|
|
2697
|
+
(0, ts_serval_1.validate)({ max: 100 }),
|
|
2667
2698
|
__metadata("design:type", String)
|
|
2668
2699
|
], PostOfficeBoxAddress.prototype, "boxId", void 0);
|
|
2669
2700
|
__decorate([
|
|
@@ -4269,7 +4300,7 @@ class AbstractMeasurement extends AbstractComplexValue_1.AbstractComplexValue {
|
|
|
4269
4300
|
AbstractMeasurement.propertyNames = (0, easy_tsnameof_1.default)();
|
|
4270
4301
|
__decorate([
|
|
4271
4302
|
(0, ts_serval_1.serialize)(),
|
|
4272
|
-
(0, ts_serval_1.validate)(),
|
|
4303
|
+
(0, ts_serval_1.validate)({ max: 50 }),
|
|
4273
4304
|
__metadata("design:type", String)
|
|
4274
4305
|
], AbstractMeasurement.prototype, "unit", void 0);
|
|
4275
4306
|
__decorate([
|
|
@@ -4874,6 +4905,21 @@ __exportStar(__webpack_require__(/*! ./Sex */ "./dist/attributes/types/person/Se
|
|
|
4874
4905
|
|
|
4875
4906
|
/***/ }),
|
|
4876
4907
|
|
|
4908
|
+
/***/ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js":
|
|
4909
|
+
/*!************************************************************************!*\
|
|
4910
|
+
!*** ./dist/attributes/types/proprietary/ProprietaryAttributeValue.js ***!
|
|
4911
|
+
\************************************************************************/
|
|
4912
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
4913
|
+
|
|
4914
|
+
|
|
4915
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4916
|
+
exports.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH = exports.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH = void 0;
|
|
4917
|
+
exports.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH = 100;
|
|
4918
|
+
exports.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH = 1000;
|
|
4919
|
+
//# sourceMappingURL=ProprietaryAttributeValue.js.map
|
|
4920
|
+
|
|
4921
|
+
/***/ }),
|
|
4922
|
+
|
|
4877
4923
|
/***/ "./dist/attributes/types/proprietary/ProprietaryBoolean.js":
|
|
4878
4924
|
/*!*****************************************************************!*\
|
|
4879
4925
|
!*** ./dist/attributes/types/proprietary/ProprietaryBoolean.js ***!
|
|
@@ -4895,6 +4941,7 @@ exports.ProprietaryBoolean = void 0;
|
|
|
4895
4941
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
4896
4942
|
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
4897
4943
|
const AbstractBoolean_1 = __webpack_require__(/*! ../AbstractBoolean */ "./dist/attributes/types/AbstractBoolean.js");
|
|
4944
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
4898
4945
|
let ProprietaryBoolean = class ProprietaryBoolean extends AbstractBoolean_1.AbstractBoolean {
|
|
4899
4946
|
static from(value) {
|
|
4900
4947
|
return this.fromAny(value);
|
|
@@ -4908,12 +4955,12 @@ let ProprietaryBoolean = class ProprietaryBoolean extends AbstractBoolean_1.Abst
|
|
|
4908
4955
|
};
|
|
4909
4956
|
__decorate([
|
|
4910
4957
|
(0, ts_serval_1.serialize)(),
|
|
4911
|
-
(0, ts_serval_1.validate)(),
|
|
4958
|
+
(0, ts_serval_1.validate)({ max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH }),
|
|
4912
4959
|
__metadata("design:type", String)
|
|
4913
4960
|
], ProprietaryBoolean.prototype, "title", void 0);
|
|
4914
4961
|
__decorate([
|
|
4915
4962
|
(0, ts_serval_1.serialize)(),
|
|
4916
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
4963
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
4917
4964
|
__metadata("design:type", String)
|
|
4918
4965
|
], ProprietaryBoolean.prototype, "description", void 0);
|
|
4919
4966
|
__decorate([
|
|
@@ -4950,6 +4997,7 @@ exports.ProprietaryCountry = void 0;
|
|
|
4950
4997
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
4951
4998
|
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
4952
4999
|
const AbstractCountry_1 = __webpack_require__(/*! ../strings/AbstractCountry */ "./dist/attributes/types/strings/AbstractCountry.js");
|
|
5000
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
4953
5001
|
let ProprietaryCountry = class ProprietaryCountry extends AbstractCountry_1.AbstractCountry {
|
|
4954
5002
|
static from(value) {
|
|
4955
5003
|
return this.fromAny(value);
|
|
@@ -4963,12 +5011,12 @@ let ProprietaryCountry = class ProprietaryCountry extends AbstractCountry_1.Abst
|
|
|
4963
5011
|
};
|
|
4964
5012
|
__decorate([
|
|
4965
5013
|
(0, ts_serval_1.serialize)(),
|
|
4966
|
-
(0, ts_serval_1.validate)(),
|
|
5014
|
+
(0, ts_serval_1.validate)({ max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH }),
|
|
4967
5015
|
__metadata("design:type", String)
|
|
4968
5016
|
], ProprietaryCountry.prototype, "title", void 0);
|
|
4969
5017
|
__decorate([
|
|
4970
5018
|
(0, ts_serval_1.serialize)(),
|
|
4971
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5019
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
4972
5020
|
__metadata("design:type", String)
|
|
4973
5021
|
], ProprietaryCountry.prototype, "description", void 0);
|
|
4974
5022
|
__decorate([
|
|
@@ -5005,6 +5053,7 @@ exports.ProprietaryEMailAddress = void 0;
|
|
|
5005
5053
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5006
5054
|
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
5007
5055
|
const AbstractEMailAddress_1 = __webpack_require__(/*! ../strings/AbstractEMailAddress */ "./dist/attributes/types/strings/AbstractEMailAddress.js");
|
|
5056
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
5008
5057
|
let ProprietaryEMailAddress = class ProprietaryEMailAddress extends AbstractEMailAddress_1.AbstractEMailAddress {
|
|
5009
5058
|
static from(value) {
|
|
5010
5059
|
return this.fromAny(value);
|
|
@@ -5018,12 +5067,12 @@ let ProprietaryEMailAddress = class ProprietaryEMailAddress extends AbstractEMai
|
|
|
5018
5067
|
};
|
|
5019
5068
|
__decorate([
|
|
5020
5069
|
(0, ts_serval_1.serialize)(),
|
|
5021
|
-
(0, ts_serval_1.validate)(),
|
|
5070
|
+
(0, ts_serval_1.validate)({ max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH }),
|
|
5022
5071
|
__metadata("design:type", String)
|
|
5023
5072
|
], ProprietaryEMailAddress.prototype, "title", void 0);
|
|
5024
5073
|
__decorate([
|
|
5025
5074
|
(0, ts_serval_1.serialize)(),
|
|
5026
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5075
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
5027
5076
|
__metadata("design:type", String)
|
|
5028
5077
|
], ProprietaryEMailAddress.prototype, "description", void 0);
|
|
5029
5078
|
__decorate([
|
|
@@ -5060,6 +5109,7 @@ exports.ProprietaryFileReference = void 0;
|
|
|
5060
5109
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5061
5110
|
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
5062
5111
|
const strings_1 = __webpack_require__(/*! ../strings */ "./dist/attributes/types/strings/index.js");
|
|
5112
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
5063
5113
|
let ProprietaryFileReference = class ProprietaryFileReference extends strings_1.AbstractFileReference {
|
|
5064
5114
|
static from(value) {
|
|
5065
5115
|
return this.fromAny(value);
|
|
@@ -5073,12 +5123,12 @@ let ProprietaryFileReference = class ProprietaryFileReference extends strings_1.
|
|
|
5073
5123
|
};
|
|
5074
5124
|
__decorate([
|
|
5075
5125
|
(0, ts_serval_1.serialize)(),
|
|
5076
|
-
(0, ts_serval_1.validate)(),
|
|
5126
|
+
(0, ts_serval_1.validate)({ max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH }),
|
|
5077
5127
|
__metadata("design:type", String)
|
|
5078
5128
|
], ProprietaryFileReference.prototype, "title", void 0);
|
|
5079
5129
|
__decorate([
|
|
5080
5130
|
(0, ts_serval_1.serialize)(),
|
|
5081
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5131
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
5082
5132
|
__metadata("design:type", String)
|
|
5083
5133
|
], ProprietaryFileReference.prototype, "description", void 0);
|
|
5084
5134
|
__decorate([
|
|
@@ -5115,6 +5165,7 @@ exports.ProprietaryFloat = void 0;
|
|
|
5115
5165
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5116
5166
|
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
5117
5167
|
const AbstractFloat_1 = __webpack_require__(/*! ../AbstractFloat */ "./dist/attributes/types/AbstractFloat.js");
|
|
5168
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
5118
5169
|
let ProprietaryFloat = class ProprietaryFloat extends AbstractFloat_1.AbstractFloat {
|
|
5119
5170
|
static from(value) {
|
|
5120
5171
|
return this.fromAny(value);
|
|
@@ -5128,12 +5179,12 @@ let ProprietaryFloat = class ProprietaryFloat extends AbstractFloat_1.AbstractFl
|
|
|
5128
5179
|
};
|
|
5129
5180
|
__decorate([
|
|
5130
5181
|
(0, ts_serval_1.serialize)(),
|
|
5131
|
-
(0, ts_serval_1.validate)(),
|
|
5182
|
+
(0, ts_serval_1.validate)({ max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH }),
|
|
5132
5183
|
__metadata("design:type", String)
|
|
5133
5184
|
], ProprietaryFloat.prototype, "title", void 0);
|
|
5134
5185
|
__decorate([
|
|
5135
5186
|
(0, ts_serval_1.serialize)(),
|
|
5136
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5187
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
5137
5188
|
__metadata("design:type", String)
|
|
5138
5189
|
], ProprietaryFloat.prototype, "description", void 0);
|
|
5139
5190
|
__decorate([
|
|
@@ -5170,6 +5221,7 @@ exports.ProprietaryHEXColor = void 0;
|
|
|
5170
5221
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5171
5222
|
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
5172
5223
|
const AbstractHEXColor_1 = __webpack_require__(/*! ../strings/AbstractHEXColor */ "./dist/attributes/types/strings/AbstractHEXColor.js");
|
|
5224
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
5173
5225
|
let ProprietaryHEXColor = class ProprietaryHEXColor extends AbstractHEXColor_1.AbstractHEXColor {
|
|
5174
5226
|
static from(value) {
|
|
5175
5227
|
return this.fromAny(value);
|
|
@@ -5183,12 +5235,12 @@ let ProprietaryHEXColor = class ProprietaryHEXColor extends AbstractHEXColor_1.A
|
|
|
5183
5235
|
};
|
|
5184
5236
|
__decorate([
|
|
5185
5237
|
(0, ts_serval_1.serialize)(),
|
|
5186
|
-
(0, ts_serval_1.validate)(),
|
|
5238
|
+
(0, ts_serval_1.validate)({ max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH }),
|
|
5187
5239
|
__metadata("design:type", String)
|
|
5188
5240
|
], ProprietaryHEXColor.prototype, "title", void 0);
|
|
5189
5241
|
__decorate([
|
|
5190
5242
|
(0, ts_serval_1.serialize)(),
|
|
5191
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5243
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
5192
5244
|
__metadata("design:type", String)
|
|
5193
5245
|
], ProprietaryHEXColor.prototype, "description", void 0);
|
|
5194
5246
|
__decorate([
|
|
@@ -5225,6 +5277,7 @@ exports.ProprietaryInteger = void 0;
|
|
|
5225
5277
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5226
5278
|
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
5227
5279
|
const AbstractInteger_1 = __webpack_require__(/*! ../AbstractInteger */ "./dist/attributes/types/AbstractInteger.js");
|
|
5280
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
5228
5281
|
let ProprietaryInteger = class ProprietaryInteger extends AbstractInteger_1.AbstractInteger {
|
|
5229
5282
|
static from(value) {
|
|
5230
5283
|
return this.fromAny(value);
|
|
@@ -5238,12 +5291,12 @@ let ProprietaryInteger = class ProprietaryInteger extends AbstractInteger_1.Abst
|
|
|
5238
5291
|
};
|
|
5239
5292
|
__decorate([
|
|
5240
5293
|
(0, ts_serval_1.serialize)(),
|
|
5241
|
-
(0, ts_serval_1.validate)(),
|
|
5294
|
+
(0, ts_serval_1.validate)({ max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH }),
|
|
5242
5295
|
__metadata("design:type", String)
|
|
5243
5296
|
], ProprietaryInteger.prototype, "title", void 0);
|
|
5244
5297
|
__decorate([
|
|
5245
5298
|
(0, ts_serval_1.serialize)(),
|
|
5246
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5299
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
5247
5300
|
__metadata("design:type", String)
|
|
5248
5301
|
], ProprietaryInteger.prototype, "description", void 0);
|
|
5249
5302
|
__decorate([
|
|
@@ -5280,6 +5333,7 @@ exports.ProprietaryJSON = void 0;
|
|
|
5280
5333
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5281
5334
|
const AbstractAttributeValue_1 = __webpack_require__(/*! ../../AbstractAttributeValue */ "./dist/attributes/AbstractAttributeValue.js");
|
|
5282
5335
|
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
5336
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
5283
5337
|
let ProprietaryJSON = class ProprietaryJSON extends AbstractAttributeValue_1.AbstractAttributeValue {
|
|
5284
5338
|
static get valueHints() {
|
|
5285
5339
|
return hints_1.ValueHints.from({});
|
|
@@ -5299,12 +5353,12 @@ let ProprietaryJSON = class ProprietaryJSON extends AbstractAttributeValue_1.Abs
|
|
|
5299
5353
|
};
|
|
5300
5354
|
__decorate([
|
|
5301
5355
|
(0, ts_serval_1.serialize)(),
|
|
5302
|
-
(0, ts_serval_1.validate)(),
|
|
5356
|
+
(0, ts_serval_1.validate)({ max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH }),
|
|
5303
5357
|
__metadata("design:type", String)
|
|
5304
5358
|
], ProprietaryJSON.prototype, "title", void 0);
|
|
5305
5359
|
__decorate([
|
|
5306
5360
|
(0, ts_serval_1.serialize)(),
|
|
5307
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5361
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
5308
5362
|
__metadata("design:type", String)
|
|
5309
5363
|
], ProprietaryJSON.prototype, "description", void 0);
|
|
5310
5364
|
__decorate([
|
|
@@ -5356,6 +5410,7 @@ exports.ProprietaryLanguage = void 0;
|
|
|
5356
5410
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5357
5411
|
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
5358
5412
|
const AbstractLanguage_1 = __webpack_require__(/*! ../strings/AbstractLanguage */ "./dist/attributes/types/strings/AbstractLanguage.js");
|
|
5413
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
5359
5414
|
let ProprietaryLanguage = class ProprietaryLanguage extends AbstractLanguage_1.AbstractLanguage {
|
|
5360
5415
|
static from(value) {
|
|
5361
5416
|
return this.fromAny(value);
|
|
@@ -5369,12 +5424,12 @@ let ProprietaryLanguage = class ProprietaryLanguage extends AbstractLanguage_1.A
|
|
|
5369
5424
|
};
|
|
5370
5425
|
__decorate([
|
|
5371
5426
|
(0, ts_serval_1.serialize)(),
|
|
5372
|
-
(0, ts_serval_1.validate)(),
|
|
5427
|
+
(0, ts_serval_1.validate)({ max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH }),
|
|
5373
5428
|
__metadata("design:type", String)
|
|
5374
5429
|
], ProprietaryLanguage.prototype, "title", void 0);
|
|
5375
5430
|
__decorate([
|
|
5376
5431
|
(0, ts_serval_1.serialize)(),
|
|
5377
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5432
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
5378
5433
|
__metadata("design:type", String)
|
|
5379
5434
|
], ProprietaryLanguage.prototype, "description", void 0);
|
|
5380
5435
|
__decorate([
|
|
@@ -5411,6 +5466,7 @@ exports.ProprietaryPhoneNumber = void 0;
|
|
|
5411
5466
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5412
5467
|
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
5413
5468
|
const AbstractPhoneNumber_1 = __webpack_require__(/*! ../strings/AbstractPhoneNumber */ "./dist/attributes/types/strings/AbstractPhoneNumber.js");
|
|
5469
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
5414
5470
|
let ProprietaryPhoneNumber = class ProprietaryPhoneNumber extends AbstractPhoneNumber_1.AbstractPhoneNumber {
|
|
5415
5471
|
static from(value) {
|
|
5416
5472
|
return this.fromAny(value);
|
|
@@ -5424,12 +5480,12 @@ let ProprietaryPhoneNumber = class ProprietaryPhoneNumber extends AbstractPhoneN
|
|
|
5424
5480
|
};
|
|
5425
5481
|
__decorate([
|
|
5426
5482
|
(0, ts_serval_1.serialize)(),
|
|
5427
|
-
(0, ts_serval_1.validate)(),
|
|
5483
|
+
(0, ts_serval_1.validate)({ max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH }),
|
|
5428
5484
|
__metadata("design:type", String)
|
|
5429
5485
|
], ProprietaryPhoneNumber.prototype, "title", void 0);
|
|
5430
5486
|
__decorate([
|
|
5431
5487
|
(0, ts_serval_1.serialize)(),
|
|
5432
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5488
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
5433
5489
|
__metadata("design:type", String)
|
|
5434
5490
|
], ProprietaryPhoneNumber.prototype, "description", void 0);
|
|
5435
5491
|
__decorate([
|
|
@@ -5466,6 +5522,7 @@ exports.ProprietaryString = void 0;
|
|
|
5466
5522
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5467
5523
|
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
5468
5524
|
const AbstractString_1 = __webpack_require__(/*! ../AbstractString */ "./dist/attributes/types/AbstractString.js");
|
|
5525
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
5469
5526
|
let ProprietaryString = class ProprietaryString extends AbstractString_1.AbstractString {
|
|
5470
5527
|
static from(value) {
|
|
5471
5528
|
return this.fromAny(value);
|
|
@@ -5479,12 +5536,12 @@ let ProprietaryString = class ProprietaryString extends AbstractString_1.Abstrac
|
|
|
5479
5536
|
};
|
|
5480
5537
|
__decorate([
|
|
5481
5538
|
(0, ts_serval_1.serialize)(),
|
|
5482
|
-
(0, ts_serval_1.validate)(),
|
|
5539
|
+
(0, ts_serval_1.validate)({ max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH }),
|
|
5483
5540
|
__metadata("design:type", String)
|
|
5484
5541
|
], ProprietaryString.prototype, "title", void 0);
|
|
5485
5542
|
__decorate([
|
|
5486
5543
|
(0, ts_serval_1.serialize)(),
|
|
5487
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5544
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
5488
5545
|
__metadata("design:type", String)
|
|
5489
5546
|
], ProprietaryString.prototype, "description", void 0);
|
|
5490
5547
|
__decorate([
|
|
@@ -5521,6 +5578,7 @@ exports.ProprietaryURL = void 0;
|
|
|
5521
5578
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
5522
5579
|
const hints_1 = __webpack_require__(/*! ../../hints */ "./dist/attributes/hints/index.js");
|
|
5523
5580
|
const AbstractURL_1 = __webpack_require__(/*! ../strings/AbstractURL */ "./dist/attributes/types/strings/AbstractURL.js");
|
|
5581
|
+
const ProprietaryAttributeValue_1 = __webpack_require__(/*! ./ProprietaryAttributeValue */ "./dist/attributes/types/proprietary/ProprietaryAttributeValue.js");
|
|
5524
5582
|
let ProprietaryURL = class ProprietaryURL extends AbstractURL_1.AbstractURL {
|
|
5525
5583
|
static from(value) {
|
|
5526
5584
|
return this.fromAny(value);
|
|
@@ -5534,12 +5592,12 @@ let ProprietaryURL = class ProprietaryURL extends AbstractURL_1.AbstractURL {
|
|
|
5534
5592
|
};
|
|
5535
5593
|
__decorate([
|
|
5536
5594
|
(0, ts_serval_1.serialize)(),
|
|
5537
|
-
(0, ts_serval_1.validate)(),
|
|
5595
|
+
(0, ts_serval_1.validate)({ max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_TITLE_LENGTH }),
|
|
5538
5596
|
__metadata("design:type", String)
|
|
5539
5597
|
], ProprietaryURL.prototype, "title", void 0);
|
|
5540
5598
|
__decorate([
|
|
5541
5599
|
(0, ts_serval_1.serialize)(),
|
|
5542
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
5600
|
+
(0, ts_serval_1.validate)({ nullable: true, max: ProprietaryAttributeValue_1.PROPRIETARY_ATTRIBUTE_MAX_DESCRIPTION_LENGTH }),
|
|
5543
5601
|
__metadata("design:type", String)
|
|
5544
5602
|
], ProprietaryURL.prototype, "description", void 0);
|
|
5545
5603
|
__decorate([
|
|
@@ -6089,10 +6147,10 @@ const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-s
|
|
|
6089
6147
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
6090
6148
|
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
6091
6149
|
exports.buildInformation = {
|
|
6092
|
-
version: "2.
|
|
6093
|
-
build: "
|
|
6094
|
-
date: "2022-11-
|
|
6095
|
-
commit: "
|
|
6150
|
+
version: "2.2.0",
|
|
6151
|
+
build: "127",
|
|
6152
|
+
date: "2022-11-22T12:16:43+00:00",
|
|
6153
|
+
commit: "cce5e694ec6010d0df2ccf5732eec87d374b1d5a",
|
|
6096
6154
|
dependencies: {"@js-soft/logging-abstractions":"^1.0.0","easy-tsnameof":"^3.0.6","mocha-param":"^2.0.1"},
|
|
6097
6155
|
libraries: {
|
|
6098
6156
|
serval: ts_serval_1.buildInformation,
|
|
@@ -6186,12 +6244,12 @@ __decorate([
|
|
|
6186
6244
|
], Mail.prototype, "cc", void 0);
|
|
6187
6245
|
__decorate([
|
|
6188
6246
|
(0, ts_serval_1.serialize)(),
|
|
6189
|
-
(0, ts_serval_1.validate)(),
|
|
6247
|
+
(0, ts_serval_1.validate)({ max: 300 }),
|
|
6190
6248
|
__metadata("design:type", String)
|
|
6191
6249
|
], Mail.prototype, "subject", void 0);
|
|
6192
6250
|
__decorate([
|
|
6193
6251
|
(0, ts_serval_1.serialize)(),
|
|
6194
|
-
(0, ts_serval_1.validate)(),
|
|
6252
|
+
(0, ts_serval_1.validate)({ max: 50000 }),
|
|
6195
6253
|
__metadata("design:type", String)
|
|
6196
6254
|
], Mail.prototype, "body", void 0);
|
|
6197
6255
|
Mail = __decorate([
|
|
@@ -6273,7 +6331,7 @@ let RelationshipTemplateContent = class RelationshipTemplateContent extends ts_s
|
|
|
6273
6331
|
};
|
|
6274
6332
|
__decorate([
|
|
6275
6333
|
(0, ts_serval_1.serialize)(),
|
|
6276
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
6334
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 200 }),
|
|
6277
6335
|
__metadata("design:type", String)
|
|
6278
6336
|
], RelationshipTemplateContent.prototype, "title", void 0);
|
|
6279
6337
|
__decorate([
|
|
@@ -6372,12 +6430,12 @@ __decorate([
|
|
|
6372
6430
|
], Request.prototype, "items", void 0);
|
|
6373
6431
|
__decorate([
|
|
6374
6432
|
(0, ts_serval_1.serialize)(),
|
|
6375
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
6433
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 200 }),
|
|
6376
6434
|
__metadata("design:type", String)
|
|
6377
6435
|
], Request.prototype, "title", void 0);
|
|
6378
6436
|
__decorate([
|
|
6379
6437
|
(0, ts_serval_1.serialize)(),
|
|
6380
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
6438
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 500 }),
|
|
6381
6439
|
__metadata("design:type", String)
|
|
6382
6440
|
], Request.prototype, "description", void 0);
|
|
6383
6441
|
__decorate([
|
|
@@ -6419,12 +6477,12 @@ class RequestItem extends ts_serval_1.Serializable {
|
|
|
6419
6477
|
}
|
|
6420
6478
|
__decorate([
|
|
6421
6479
|
(0, ts_serval_1.serialize)(),
|
|
6422
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
6480
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 200 }),
|
|
6423
6481
|
__metadata("design:type", String)
|
|
6424
6482
|
], RequestItem.prototype, "title", void 0);
|
|
6425
6483
|
__decorate([
|
|
6426
6484
|
(0, ts_serval_1.serialize)(),
|
|
6427
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
6485
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 500 }),
|
|
6428
6486
|
__metadata("design:type", String)
|
|
6429
6487
|
], RequestItem.prototype, "description", void 0);
|
|
6430
6488
|
__decorate([
|
|
@@ -6486,12 +6544,12 @@ let RequestItemGroup = RequestItemGroup_1 = class RequestItemGroup extends ts_se
|
|
|
6486
6544
|
};
|
|
6487
6545
|
__decorate([
|
|
6488
6546
|
(0, ts_serval_1.serialize)(),
|
|
6489
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
6547
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 200 }),
|
|
6490
6548
|
__metadata("design:type", String)
|
|
6491
6549
|
], RequestItemGroup.prototype, "title", void 0);
|
|
6492
6550
|
__decorate([
|
|
6493
6551
|
(0, ts_serval_1.serialize)(),
|
|
6494
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
6552
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 500 }),
|
|
6495
6553
|
__metadata("design:type", String)
|
|
6496
6554
|
], RequestItemGroup.prototype, "description", void 0);
|
|
6497
6555
|
__decorate([
|
|
@@ -6611,12 +6669,19 @@ let ConsentRequestItem = class ConsentRequestItem extends RequestItem_1.RequestI
|
|
|
6611
6669
|
};
|
|
6612
6670
|
__decorate([
|
|
6613
6671
|
(0, ts_serval_1.serialize)(),
|
|
6614
|
-
(0, ts_serval_1.validate)(),
|
|
6672
|
+
(0, ts_serval_1.validate)({ max: 2000 }),
|
|
6615
6673
|
__metadata("design:type", String)
|
|
6616
6674
|
], ConsentRequestItem.prototype, "consent", void 0);
|
|
6617
6675
|
__decorate([
|
|
6618
6676
|
(0, ts_serval_1.serialize)(),
|
|
6619
|
-
(0, ts_serval_1.validate)({
|
|
6677
|
+
(0, ts_serval_1.validate)({
|
|
6678
|
+
nullable: true,
|
|
6679
|
+
min: 3,
|
|
6680
|
+
max: 1024,
|
|
6681
|
+
regExp: new RegExp(
|
|
6682
|
+
// eslint-disable-next-line no-useless-escape
|
|
6683
|
+
/^((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)$/i)
|
|
6684
|
+
}),
|
|
6620
6685
|
__metadata("design:type", String)
|
|
6621
6686
|
], ConsentRequestItem.prototype, "link", void 0);
|
|
6622
6687
|
ConsentRequestItem = __decorate([
|
|
@@ -6745,6 +6810,8 @@ __exportStar(__webpack_require__(/*! ./registerAttributeListener/RegisterAttribu
|
|
|
6745
6810
|
__exportStar(__webpack_require__(/*! ./registerAttributeListener/RegisterAttributeListenerRequestItem */ "./dist/requests/items/registerAttributeListener/RegisterAttributeListenerRequestItem.js"), exports);
|
|
6746
6811
|
__exportStar(__webpack_require__(/*! ./shareAttribute/ShareAttributeAcceptResponseItem */ "./dist/requests/items/shareAttribute/ShareAttributeAcceptResponseItem.js"), exports);
|
|
6747
6812
|
__exportStar(__webpack_require__(/*! ./shareAttribute/ShareAttributeRequestItem */ "./dist/requests/items/shareAttribute/ShareAttributeRequestItem.js"), exports);
|
|
6813
|
+
__exportStar(__webpack_require__(/*! ./succeedAttribute/SucceedAttributeAcceptResponseItem */ "./dist/requests/items/succeedAttribute/SucceedAttributeAcceptResponseItem.js"), exports);
|
|
6814
|
+
__exportStar(__webpack_require__(/*! ./succeedAttribute/SucceedAttributeRequestItem */ "./dist/requests/items/succeedAttribute/SucceedAttributeRequestItem.js"), exports);
|
|
6748
6815
|
//# sourceMappingURL=index.js.map
|
|
6749
6816
|
|
|
6750
6817
|
/***/ }),
|
|
@@ -6983,7 +7050,7 @@ let RegisterAttributeListenerAcceptResponseItem = class RegisterAttributeListene
|
|
|
6983
7050
|
};
|
|
6984
7051
|
__decorate([
|
|
6985
7052
|
(0, ts_serval_1.serialize)(),
|
|
6986
|
-
(0, ts_serval_1.validate)(),
|
|
7053
|
+
(0, ts_serval_1.validate)({ max: 30 }),
|
|
6987
7054
|
__metadata("design:type", String)
|
|
6988
7055
|
], RegisterAttributeListenerAcceptResponseItem.prototype, "listenerId", void 0);
|
|
6989
7056
|
RegisterAttributeListenerAcceptResponseItem = __decorate([
|
|
@@ -7128,6 +7195,123 @@ exports.ShareAttributeRequestItem = ShareAttributeRequestItem;
|
|
|
7128
7195
|
|
|
7129
7196
|
/***/ }),
|
|
7130
7197
|
|
|
7198
|
+
/***/ "./dist/requests/items/succeedAttribute/SucceedAttributeAcceptResponseItem.js":
|
|
7199
|
+
/*!************************************************************************************!*\
|
|
7200
|
+
!*** ./dist/requests/items/succeedAttribute/SucceedAttributeAcceptResponseItem.js ***!
|
|
7201
|
+
\************************************************************************************/
|
|
7202
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
7203
|
+
|
|
7204
|
+
|
|
7205
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7206
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7207
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7208
|
+
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;
|
|
7209
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7210
|
+
};
|
|
7211
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
7212
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
7213
|
+
};
|
|
7214
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7215
|
+
exports.SucceedAttributeAcceptResponseItem = void 0;
|
|
7216
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
7217
|
+
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
7218
|
+
const response_1 = __webpack_require__(/*! ../../response */ "./dist/requests/response/index.js");
|
|
7219
|
+
let SucceedAttributeAcceptResponseItem = class SucceedAttributeAcceptResponseItem extends response_1.AcceptResponseItem {
|
|
7220
|
+
static from(value) {
|
|
7221
|
+
return this.fromAny(value);
|
|
7222
|
+
}
|
|
7223
|
+
toJSON(verbose, serializeAsString) {
|
|
7224
|
+
return super.toJSON(verbose, serializeAsString);
|
|
7225
|
+
}
|
|
7226
|
+
};
|
|
7227
|
+
__decorate([
|
|
7228
|
+
(0, ts_serval_1.serialize)(),
|
|
7229
|
+
(0, ts_serval_1.validate)(),
|
|
7230
|
+
__metadata("design:type", transport_1.CoreId)
|
|
7231
|
+
], SucceedAttributeAcceptResponseItem.prototype, "attributeId", void 0);
|
|
7232
|
+
SucceedAttributeAcceptResponseItem = __decorate([
|
|
7233
|
+
(0, ts_serval_1.type)("SucceedAttributeAcceptResponseItem")
|
|
7234
|
+
], SucceedAttributeAcceptResponseItem);
|
|
7235
|
+
exports.SucceedAttributeAcceptResponseItem = SucceedAttributeAcceptResponseItem;
|
|
7236
|
+
//# sourceMappingURL=SucceedAttributeAcceptResponseItem.js.map
|
|
7237
|
+
|
|
7238
|
+
/***/ }),
|
|
7239
|
+
|
|
7240
|
+
/***/ "./dist/requests/items/succeedAttribute/SucceedAttributeRequestItem.js":
|
|
7241
|
+
/*!*****************************************************************************!*\
|
|
7242
|
+
!*** ./dist/requests/items/succeedAttribute/SucceedAttributeRequestItem.js ***!
|
|
7243
|
+
\*****************************************************************************/
|
|
7244
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
7245
|
+
|
|
7246
|
+
|
|
7247
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7248
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7249
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7250
|
+
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;
|
|
7251
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7252
|
+
};
|
|
7253
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
7254
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
7255
|
+
};
|
|
7256
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7257
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7258
|
+
};
|
|
7259
|
+
var SucceedAttributeRequestItem_1;
|
|
7260
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7261
|
+
exports.SucceedAttributeRequestItem = void 0;
|
|
7262
|
+
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
7263
|
+
const transport_1 = __webpack_require__(/*! @nmshd/transport */ "@nmshd/transport");
|
|
7264
|
+
const easy_tsnameof_1 = __importDefault(__webpack_require__(/*! easy-tsnameof */ "./node_modules/easy-tsnameof/dist/easy-tsnameof.esm.js"));
|
|
7265
|
+
const attributes_1 = __webpack_require__(/*! ../../../attributes */ "./dist/attributes/index.js");
|
|
7266
|
+
const RequestItem_1 = __webpack_require__(/*! ../../RequestItem */ "./dist/requests/RequestItem.js");
|
|
7267
|
+
let SucceedAttributeRequestItem = SucceedAttributeRequestItem_1 = class SucceedAttributeRequestItem extends RequestItem_1.RequestItem {
|
|
7268
|
+
static postFrom(value) {
|
|
7269
|
+
if (!(value instanceof SucceedAttributeRequestItem_1))
|
|
7270
|
+
throw new Error("this should never happen");
|
|
7271
|
+
if (value.succeededAttribute.toJSON()["@type"] !== value.newAttribute.toJSON()["@type"]) {
|
|
7272
|
+
throw new ts_serval_1.ValidationError(SucceedAttributeRequestItem_1.name, (0, easy_tsnameof_1.default)((x) => x.succeededAttribute), "the type of the new Attribute must be the same as the type of the succeeded Attribute");
|
|
7273
|
+
}
|
|
7274
|
+
if (!value.succeededAttribute.validTo) {
|
|
7275
|
+
throw new ts_serval_1.ValidationError(SucceedAttributeRequestItem_1.name, (0, easy_tsnameof_1.default)((x) => x.succeededAttribute.validTo), "succeededAttribute must have a validTo date");
|
|
7276
|
+
}
|
|
7277
|
+
if (!value.newAttribute.validFrom) {
|
|
7278
|
+
throw new ts_serval_1.ValidationError(SucceedAttributeRequestItem_1.name, (0, easy_tsnameof_1.default)((x) => x.newAttribute.validFrom), "newAttribute must have a validFrom date");
|
|
7279
|
+
}
|
|
7280
|
+
if (!value.succeededAttribute.validTo.add({ day: 1 }).isSame(value.newAttribute.validFrom, "day")) {
|
|
7281
|
+
throw new ts_serval_1.ValidationError(SucceedAttributeRequestItem_1.name, (0, easy_tsnameof_1.default)((x) => x.succeededAttribute.validTo), "the validTo date of the succeeded Attribute must be one day before the validFrom date of the new Attribute");
|
|
7282
|
+
}
|
|
7283
|
+
return value;
|
|
7284
|
+
}
|
|
7285
|
+
static from(value) {
|
|
7286
|
+
return this.fromAny(value);
|
|
7287
|
+
}
|
|
7288
|
+
toJSON(verbose, serializeAsString) {
|
|
7289
|
+
return super.toJSON(verbose, serializeAsString);
|
|
7290
|
+
}
|
|
7291
|
+
};
|
|
7292
|
+
__decorate([
|
|
7293
|
+
(0, ts_serval_1.validate)(),
|
|
7294
|
+
(0, ts_serval_1.serialize)(),
|
|
7295
|
+
__metadata("design:type", transport_1.CoreId)
|
|
7296
|
+
], SucceedAttributeRequestItem.prototype, "succeededId", void 0);
|
|
7297
|
+
__decorate([
|
|
7298
|
+
(0, ts_serval_1.validate)(),
|
|
7299
|
+
(0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
|
|
7300
|
+
__metadata("design:type", Object)
|
|
7301
|
+
], SucceedAttributeRequestItem.prototype, "succeededAttribute", void 0);
|
|
7302
|
+
__decorate([
|
|
7303
|
+
(0, ts_serval_1.validate)(),
|
|
7304
|
+
(0, ts_serval_1.serialize)({ unionTypes: [attributes_1.IdentityAttribute, attributes_1.RelationshipAttribute] }),
|
|
7305
|
+
__metadata("design:type", Object)
|
|
7306
|
+
], SucceedAttributeRequestItem.prototype, "newAttribute", void 0);
|
|
7307
|
+
SucceedAttributeRequestItem = SucceedAttributeRequestItem_1 = __decorate([
|
|
7308
|
+
(0, ts_serval_1.type)("SucceedAttributeRequestItem")
|
|
7309
|
+
], SucceedAttributeRequestItem);
|
|
7310
|
+
exports.SucceedAttributeRequestItem = SucceedAttributeRequestItem;
|
|
7311
|
+
//# sourceMappingURL=SucceedAttributeRequestItem.js.map
|
|
7312
|
+
|
|
7313
|
+
/***/ }),
|
|
7314
|
+
|
|
7131
7315
|
/***/ "./dist/requests/response/AcceptResponseItem.js":
|
|
7132
7316
|
/*!******************************************************!*\
|
|
7133
7317
|
!*** ./dist/requests/response/AcceptResponseItem.js ***!
|
|
@@ -7191,12 +7375,12 @@ let ErrorResponseItem = class ErrorResponseItem extends ResponseItem_1.ResponseI
|
|
|
7191
7375
|
};
|
|
7192
7376
|
__decorate([
|
|
7193
7377
|
(0, ts_serval_1.serialize)(),
|
|
7194
|
-
(0, ts_serval_1.validate)(),
|
|
7378
|
+
(0, ts_serval_1.validate)({ max: 200 }),
|
|
7195
7379
|
__metadata("design:type", String)
|
|
7196
7380
|
], ErrorResponseItem.prototype, "code", void 0);
|
|
7197
7381
|
__decorate([
|
|
7198
7382
|
(0, ts_serval_1.serialize)(),
|
|
7199
|
-
(0, ts_serval_1.validate)(),
|
|
7383
|
+
(0, ts_serval_1.validate)({ max: 1000 }),
|
|
7200
7384
|
__metadata("design:type", String)
|
|
7201
7385
|
], ErrorResponseItem.prototype, "message", void 0);
|
|
7202
7386
|
ErrorResponseItem = __decorate([
|
|
@@ -7237,12 +7421,12 @@ let RejectResponseItem = class RejectResponseItem extends ResponseItem_1.Respons
|
|
|
7237
7421
|
};
|
|
7238
7422
|
__decorate([
|
|
7239
7423
|
(0, ts_serval_1.serialize)(),
|
|
7240
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
7424
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 200 }),
|
|
7241
7425
|
__metadata("design:type", String)
|
|
7242
7426
|
], RejectResponseItem.prototype, "code", void 0);
|
|
7243
7427
|
__decorate([
|
|
7244
7428
|
(0, ts_serval_1.serialize)(),
|
|
7245
|
-
(0, ts_serval_1.validate)({ nullable: true }),
|
|
7429
|
+
(0, ts_serval_1.validate)({ nullable: true, max: 1000 }),
|
|
7246
7430
|
__metadata("design:type", String)
|
|
7247
7431
|
], RejectResponseItem.prototype, "message", void 0);
|
|
7248
7432
|
RejectResponseItem = __decorate([
|