@dangl/ava-model 2.29.3 → 2.30.0-beta0002
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.
|
@@ -659,6 +659,8 @@ class ServiceSpecificationDto {
|
|
|
659
659
|
projectCatalogues;
|
|
660
660
|
/** Referenced catalogues for this ElementContainerBase. */
|
|
661
661
|
catalogueReferences;
|
|
662
|
+
/** This is a list of sustainability catalogues that are relevant for this ServiceSpecification. Sustainability catalogues are sources for environmental or sustainability data. */
|
|
663
|
+
sustainabilityCatalogues;
|
|
662
664
|
/** The date when the execution of the services is scheduled to start */
|
|
663
665
|
plannedExecutionStart;
|
|
664
666
|
/** The date then the execution of the services is scheduled to be finished */
|
|
@@ -675,7 +677,7 @@ class ServiceSpecificationDto {
|
|
|
675
677
|
approvalDate;
|
|
676
678
|
/** This should specify how the approval is performed by the buyer. This matches "AcceptType" in GAEB */
|
|
677
679
|
typeOfApproval;
|
|
678
|
-
/** This optional string property is shared by all
|
|
680
|
+
/** This optional string property is shared by all IElement s, and indicates if the element is part of an addendum, a 'Nachtrag' in German. */
|
|
679
681
|
addendumNumber;
|
|
680
682
|
/** This indicates, if this element is part of an addendum an, if yes, with what status. */
|
|
681
683
|
addendumStatus;
|
|
@@ -712,6 +714,13 @@ class ServiceSpecificationDto {
|
|
|
712
714
|
this.catalogueReferences[i] = item && !item.toJSON ? new CatalogueReferenceDto(item) : item;
|
|
713
715
|
}
|
|
714
716
|
}
|
|
717
|
+
if (data.sustainabilityCatalogues) {
|
|
718
|
+
this.sustainabilityCatalogues = [];
|
|
719
|
+
for (let i = 0; i < data.sustainabilityCatalogues.length; i++) {
|
|
720
|
+
let item = data.sustainabilityCatalogues[i];
|
|
721
|
+
this.sustainabilityCatalogues[i] = item && !item.toJSON ? new SustainabilityCatalogueDto(item) : item;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
715
724
|
this.warrantyDuration = data.warrantyDuration && !data.warrantyDuration.toJSON ? new WarrantyDurationDto(data.warrantyDuration) : this.warrantyDuration;
|
|
716
725
|
this.commerceProperties = data.commerceProperties && !data.commerceProperties.toJSON ? new ServiceSpecificationCommercePropertiesDto(data.commerceProperties) : this.commerceProperties;
|
|
717
726
|
}
|
|
@@ -778,6 +787,11 @@ class ServiceSpecificationDto {
|
|
|
778
787
|
for (let item of _data["catalogueReferences"])
|
|
779
788
|
this.catalogueReferences.push(CatalogueReferenceDto.fromJS(item));
|
|
780
789
|
}
|
|
790
|
+
if (Array.isArray(_data["sustainabilityCatalogues"])) {
|
|
791
|
+
this.sustainabilityCatalogues = [];
|
|
792
|
+
for (let item of _data["sustainabilityCatalogues"])
|
|
793
|
+
this.sustainabilityCatalogues.push(SustainabilityCatalogueDto.fromJS(item));
|
|
794
|
+
}
|
|
781
795
|
this.plannedExecutionStart = _data["plannedExecutionStart"] ? new Date(_data["plannedExecutionStart"].toString()) : undefined;
|
|
782
796
|
this.plannedExecutionEnd = _data["plannedExecutionEnd"] ? new Date(_data["plannedExecutionEnd"].toString()) : undefined;
|
|
783
797
|
this.contractDate = _data["contractDate"] ? new Date(_data["contractDate"].toString()) : undefined;
|
|
@@ -919,6 +933,16 @@ class ServiceSpecificationDto {
|
|
|
919
933
|
data["catalogueReferences"].push(item);
|
|
920
934
|
}
|
|
921
935
|
}
|
|
936
|
+
if (Array.isArray(this.sustainabilityCatalogues)) {
|
|
937
|
+
data["sustainabilityCatalogues"] = [];
|
|
938
|
+
for (let item of this.sustainabilityCatalogues)
|
|
939
|
+
if (typeof item.toJSON !== "undefined") {
|
|
940
|
+
data["sustainabilityCatalogues"].push(item.toJSON());
|
|
941
|
+
}
|
|
942
|
+
else {
|
|
943
|
+
data["sustainabilityCatalogues"].push(item);
|
|
944
|
+
}
|
|
945
|
+
}
|
|
922
946
|
data["plannedExecutionStart"] = this.plannedExecutionStart ? this.plannedExecutionStart.toISOString() : undefined;
|
|
923
947
|
data["plannedExecutionEnd"] = this.plannedExecutionEnd ? this.plannedExecutionEnd.toISOString() : undefined;
|
|
924
948
|
data["contractDate"] = this.contractDate ? this.contractDate.toISOString() : undefined;
|
|
@@ -1230,6 +1254,8 @@ class PositionDto extends IElementDto {
|
|
|
1230
1254
|
comissionStatus;
|
|
1231
1255
|
/** A list of positions that complement this Position. The positions are referenced by their GUIDs. It might be used together with ComplementedByQuantities in case that only a given quantity is complemented by positions. */
|
|
1232
1256
|
complementedBy;
|
|
1257
|
+
/** This list contains information about sustainability indicators or environmental impact for this position. */
|
|
1258
|
+
sustainabilityIndicators;
|
|
1233
1259
|
/** Will indicate if this Position is complemented in this ServiceSpecification by other Positions. It can not be set to false when there are entries in the ComplementedBy property. */
|
|
1234
1260
|
complemented;
|
|
1235
1261
|
/** Indicates that the amount for this Position is to be set by the bidder. */
|
|
@@ -1351,6 +1377,13 @@ class PositionDto extends IElementDto {
|
|
|
1351
1377
|
this.subDescriptions[i] = item && !item.toJSON ? new SubDescriptionDto(item) : item;
|
|
1352
1378
|
}
|
|
1353
1379
|
}
|
|
1380
|
+
if (data.sustainabilityIndicators) {
|
|
1381
|
+
this.sustainabilityIndicators = [];
|
|
1382
|
+
for (let i = 0; i < data.sustainabilityIndicators.length; i++) {
|
|
1383
|
+
let item = data.sustainabilityIndicators[i];
|
|
1384
|
+
this.sustainabilityIndicators[i] = item && !item.toJSON ? new PositionSustainabilityIndicatorDto(item) : item;
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1354
1387
|
this.itemNumber = data.itemNumber && !data.itemNumber.toJSON ? new ItemNumberDto(data.itemNumber) : this.itemNumber;
|
|
1355
1388
|
this.productData = data.productData && !data.productData.toJSON ? new ProductDataDto(data.productData) : this.productData;
|
|
1356
1389
|
if (data.quantityAssignments) {
|
|
@@ -1415,6 +1448,11 @@ class PositionDto extends IElementDto {
|
|
|
1415
1448
|
for (let item of _data["complementedBy"])
|
|
1416
1449
|
this.complementedBy.push(item);
|
|
1417
1450
|
}
|
|
1451
|
+
if (Array.isArray(_data["sustainabilityIndicators"])) {
|
|
1452
|
+
this.sustainabilityIndicators = [];
|
|
1453
|
+
for (let item of _data["sustainabilityIndicators"])
|
|
1454
|
+
this.sustainabilityIndicators.push(PositionSustainabilityIndicatorDto.fromJS(item));
|
|
1455
|
+
}
|
|
1418
1456
|
this.complemented = _data["complemented"];
|
|
1419
1457
|
this.amountToBeEnteredByBidder = _data["amountToBeEnteredByBidder"];
|
|
1420
1458
|
this.priceCompositionRequired = _data["priceCompositionRequired"];
|
|
@@ -1538,6 +1576,16 @@ class PositionDto extends IElementDto {
|
|
|
1538
1576
|
for (let item of this.complementedBy)
|
|
1539
1577
|
data["complementedBy"].push(item);
|
|
1540
1578
|
}
|
|
1579
|
+
if (Array.isArray(this.sustainabilityIndicators)) {
|
|
1580
|
+
data["sustainabilityIndicators"] = [];
|
|
1581
|
+
for (let item of this.sustainabilityIndicators)
|
|
1582
|
+
if (typeof item.toJSON !== "undefined") {
|
|
1583
|
+
data["sustainabilityIndicators"].push(item.toJSON());
|
|
1584
|
+
}
|
|
1585
|
+
else {
|
|
1586
|
+
data["sustainabilityIndicators"].push(item);
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1541
1589
|
data["complemented"] = this.complemented;
|
|
1542
1590
|
data["amountToBeEnteredByBidder"] = this.amountToBeEnteredByBidder;
|
|
1543
1591
|
data["priceCompositionRequired"] = this.priceCompositionRequired;
|
|
@@ -2276,6 +2324,120 @@ var ComissionStatusDto;
|
|
|
2276
2324
|
ComissionStatusDto["Postponed"] = "Postponed";
|
|
2277
2325
|
ComissionStatusDto["Removed"] = "Removed";
|
|
2278
2326
|
})(ComissionStatusDto || (ComissionStatusDto = {}));
|
|
2327
|
+
/** This model contains the sustainability or environment impact data. */
|
|
2328
|
+
class PositionSustainabilityIndicatorDto {
|
|
2329
|
+
/** Elements GUID identifier. */
|
|
2330
|
+
id;
|
|
2331
|
+
/** This is usually in the form of an URL that specifies the indicator. */
|
|
2332
|
+
source;
|
|
2333
|
+
/** This is a text giving more information about the indicator, e.g. details about the calculation method, or other comments. */
|
|
2334
|
+
comment;
|
|
2335
|
+
/** If present, this indicator may be divided up into different life cycle stages. */
|
|
2336
|
+
lifeCycleStages;
|
|
2337
|
+
/** This is a key that specifies the type of indicator. It is not used for any calculations but can be used to identify the indicator type, e.g. "carbonFootprint", "waterConsumption" or similar. The actual value of this property is not defined in the library and can be set freely, but it is recommended to use a consistent naming scheme, e.g. by using URLs or IRIs to avoid conflicts. In GAEB XML, it has a max length of 50 characters. */
|
|
2338
|
+
indicatorKey;
|
|
2339
|
+
/** This is the actual value of the indicator. */
|
|
2340
|
+
value;
|
|
2341
|
+
/** The unit of measurement for the value. */
|
|
2342
|
+
unitTag;
|
|
2343
|
+
/** If present, this is a conversion factor used here in this indicator for the value. */
|
|
2344
|
+
conversionFactor;
|
|
2345
|
+
constructor(data) {
|
|
2346
|
+
if (data) {
|
|
2347
|
+
for (var property in data) {
|
|
2348
|
+
if (data.hasOwnProperty(property))
|
|
2349
|
+
this[property] = data[property];
|
|
2350
|
+
}
|
|
2351
|
+
if (data.lifeCycleStages) {
|
|
2352
|
+
this.lifeCycleStages = [];
|
|
2353
|
+
for (let i = 0; i < data.lifeCycleStages.length; i++) {
|
|
2354
|
+
let item = data.lifeCycleStages[i];
|
|
2355
|
+
this.lifeCycleStages[i] = item && !item.toJSON ? new SustainabilityLifeCycleStageDto(item) : item;
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
init(_data) {
|
|
2361
|
+
if (_data) {
|
|
2362
|
+
this.id = _data["id"];
|
|
2363
|
+
this.source = _data["source"];
|
|
2364
|
+
this.comment = _data["comment"];
|
|
2365
|
+
if (Array.isArray(_data["lifeCycleStages"])) {
|
|
2366
|
+
this.lifeCycleStages = [];
|
|
2367
|
+
for (let item of _data["lifeCycleStages"])
|
|
2368
|
+
this.lifeCycleStages.push(SustainabilityLifeCycleStageDto.fromJS(item));
|
|
2369
|
+
}
|
|
2370
|
+
this.indicatorKey = _data["indicatorKey"];
|
|
2371
|
+
this.value = _data["value"];
|
|
2372
|
+
this.unitTag = _data["unitTag"];
|
|
2373
|
+
this.conversionFactor = _data["conversionFactor"];
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
static fromJS(data) {
|
|
2377
|
+
data = typeof data === 'object' ? data : {};
|
|
2378
|
+
let result = new PositionSustainabilityIndicatorDto();
|
|
2379
|
+
result.init(data);
|
|
2380
|
+
return result;
|
|
2381
|
+
}
|
|
2382
|
+
toJSON(data) {
|
|
2383
|
+
data = typeof data === 'object' ? data : {};
|
|
2384
|
+
data["id"] = this.id;
|
|
2385
|
+
data["source"] = this.source;
|
|
2386
|
+
data["comment"] = this.comment;
|
|
2387
|
+
if (Array.isArray(this.lifeCycleStages)) {
|
|
2388
|
+
data["lifeCycleStages"] = [];
|
|
2389
|
+
for (let item of this.lifeCycleStages)
|
|
2390
|
+
if (typeof item.toJSON !== "undefined") {
|
|
2391
|
+
data["lifeCycleStages"].push(item.toJSON());
|
|
2392
|
+
}
|
|
2393
|
+
else {
|
|
2394
|
+
data["lifeCycleStages"].push(item);
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
data["indicatorKey"] = this.indicatorKey;
|
|
2398
|
+
data["value"] = this.value;
|
|
2399
|
+
data["unitTag"] = this.unitTag;
|
|
2400
|
+
data["conversionFactor"] = this.conversionFactor;
|
|
2401
|
+
return data;
|
|
2402
|
+
}
|
|
2403
|
+
}
|
|
2404
|
+
/** This model represents the life cycle stages for sustainability indicators. For example, for a carbon footprint indicator, you could specify the carbon footprint for the production stage, the transportation stage and the disposal stage of a service or product. */
|
|
2405
|
+
class SustainabilityLifeCycleStageDto {
|
|
2406
|
+
/** Elements GUID identifier. */
|
|
2407
|
+
id;
|
|
2408
|
+
/** The key is the name or identifier of the stage. */
|
|
2409
|
+
key;
|
|
2410
|
+
/** The value for this given stage. */
|
|
2411
|
+
value;
|
|
2412
|
+
constructor(data) {
|
|
2413
|
+
if (data) {
|
|
2414
|
+
for (var property in data) {
|
|
2415
|
+
if (data.hasOwnProperty(property))
|
|
2416
|
+
this[property] = data[property];
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
init(_data) {
|
|
2421
|
+
if (_data) {
|
|
2422
|
+
this.id = _data["id"];
|
|
2423
|
+
this.key = _data["key"];
|
|
2424
|
+
this.value = _data["value"];
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
static fromJS(data) {
|
|
2428
|
+
data = typeof data === 'object' ? data : {};
|
|
2429
|
+
let result = new SustainabilityLifeCycleStageDto();
|
|
2430
|
+
result.init(data);
|
|
2431
|
+
return result;
|
|
2432
|
+
}
|
|
2433
|
+
toJSON(data) {
|
|
2434
|
+
data = typeof data === 'object' ? data : {};
|
|
2435
|
+
data["id"] = this.id;
|
|
2436
|
+
data["key"] = this.key;
|
|
2437
|
+
data["value"] = this.value;
|
|
2438
|
+
return data;
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2279
2441
|
/** This class represents as identifier of a certain service specification's element and is uniquely within the service specification. */
|
|
2280
2442
|
class ItemNumberDto {
|
|
2281
2443
|
/** Elements GUID identifier. */
|
|
@@ -3554,6 +3716,43 @@ class TradeDiscountDto {
|
|
|
3554
3716
|
return data;
|
|
3555
3717
|
}
|
|
3556
3718
|
}
|
|
3719
|
+
/** This elements represents a catalogue or source of sustainability information that is used within a ServiceSpecification. */
|
|
3720
|
+
class SustainabilityCatalogueDto {
|
|
3721
|
+
/** Elements GUID identifier. */
|
|
3722
|
+
id;
|
|
3723
|
+
/** The key must be a unique identifier for the sustainability catalogue. It is used to link sustainability data in positions to a catalogue. The Dangl.AVA module does not enforce uniqueness, but it is recommended to use a unique key for each catalogue. */
|
|
3724
|
+
key;
|
|
3725
|
+
/** The description property can be used to provide further information about the sustainability catalogue. */
|
|
3726
|
+
description;
|
|
3727
|
+
constructor(data) {
|
|
3728
|
+
if (data) {
|
|
3729
|
+
for (var property in data) {
|
|
3730
|
+
if (data.hasOwnProperty(property))
|
|
3731
|
+
this[property] = data[property];
|
|
3732
|
+
}
|
|
3733
|
+
}
|
|
3734
|
+
}
|
|
3735
|
+
init(_data) {
|
|
3736
|
+
if (_data) {
|
|
3737
|
+
this.id = _data["id"];
|
|
3738
|
+
this.key = _data["key"];
|
|
3739
|
+
this.description = _data["description"];
|
|
3740
|
+
}
|
|
3741
|
+
}
|
|
3742
|
+
static fromJS(data) {
|
|
3743
|
+
data = typeof data === 'object' ? data : {};
|
|
3744
|
+
let result = new SustainabilityCatalogueDto();
|
|
3745
|
+
result.init(data);
|
|
3746
|
+
return result;
|
|
3747
|
+
}
|
|
3748
|
+
toJSON(data) {
|
|
3749
|
+
data = typeof data === 'object' ? data : {};
|
|
3750
|
+
data["id"] = this.id;
|
|
3751
|
+
data["key"] = this.key;
|
|
3752
|
+
data["description"] = this.description;
|
|
3753
|
+
return data;
|
|
3754
|
+
}
|
|
3755
|
+
}
|
|
3557
3756
|
/** This class does not represent a typical `TimeSpan` but has a scalar value int Duration and a DurationUnit Unit to represent durations as typically used in contracts, e.g. 5 Months */
|
|
3558
3757
|
class WarrantyDurationDto {
|
|
3559
3758
|
/** The scalar value of the duration. This value must be equal to or bigger than zero (>= 0). Negative values can not be set and will be ignored. */
|
|
@@ -3765,17 +3964,17 @@ class ProjectDto {
|
|
|
3765
3964
|
|
|
3766
3965
|
// This file is automatically generated as part of the build process
|
|
3767
3966
|
const avaModelsVersion = {
|
|
3768
|
-
version: "2.
|
|
3769
|
-
commitInfo: "Branch.
|
|
3770
|
-
commitDate: "2026-03-
|
|
3771
|
-
commitHash: "
|
|
3772
|
-
informationalVersion: "2.
|
|
3773
|
-
buildDateUtc: new Date(Date.UTC(2026, 2,
|
|
3967
|
+
version: "2.30.0-beta0002",
|
|
3968
|
+
commitInfo: "Branch.develop.Sha.0220f825dffe4124cfb3ef79c4da521779d7fabf",
|
|
3969
|
+
commitDate: "2026-03-07",
|
|
3970
|
+
commitHash: "0220f825dffe4124cfb3ef79c4da521779d7fabf",
|
|
3971
|
+
informationalVersion: "2.30.0-beta.2+Branch.develop.Sha.0220f825dffe4124cfb3ef79c4da521779d7fabf",
|
|
3972
|
+
buildDateUtc: new Date(Date.UTC(2026, 2, 7, 20, 2, 8))
|
|
3774
3973
|
};
|
|
3775
3974
|
|
|
3776
3975
|
/**
|
|
3777
3976
|
* Generated bundle index. Do not edit.
|
|
3778
3977
|
*/
|
|
3779
3978
|
|
|
3780
|
-
export { AddendumStatusDto, AdditionTypeDto, ArticleDataDto, AwardTypeDto, BankingInformationDto, CalculationDto, CatalogueDto, CatalogueReferenceDto, CatalogueTypeDto, ComissionStatusDto, CommerceInquiryTypeDto, CommercePropertiesDto, ComplementedByQuantityDto, DurationUnitDto, ExchangePhaseDto, ExecutionDescriptionDto, GrossPriceComponentDto, HoldOutDurationUnitDto, HoldOutTypeDto, IElementDto, ItemNumberDto, ItemNumberSchemaDto, ItemNumberSchemaTierAlignmentDto, ItemNumberSchemaTierDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, LabourPriceComponentDto, NoteTextDto, OenormNoteTextPropertiesDto, OenormOriginCodeDto, OenormPositionPropertiesDto, OenormPropertiesDto, OriginDto, PartyInformationDto, PositionComplementingTypeDto, PositionDto, PositionHoldOutPropertiesDto, PositionTypeDto, PriceCatalogueDataDto, PriceComponentDto, PriceComponentTypeDto, PriceInformationDto, PriceRoundingModeDto, PriceTypeDto, ProductDataDto, ProjectDto, ProjectInformationDto, QuantityAssignmentDto, STLBKeyDto, STLBReferenceDto, ServiceSpecificationCommercePropertiesDto, ServiceSpecificationDto, ServiceSpecificationGroupDto, ServiceTypeDto, SpecialAwardKindDto, StandardReferenceTypeDto, StandardizedDescriptionDto, SubDescriptionDto, TradeDiscountDto, WarrantyDurationDto, avaModelsVersion };
|
|
3979
|
+
export { AddendumStatusDto, AdditionTypeDto, ArticleDataDto, AwardTypeDto, BankingInformationDto, CalculationDto, CatalogueDto, CatalogueReferenceDto, CatalogueTypeDto, ComissionStatusDto, CommerceInquiryTypeDto, CommercePropertiesDto, ComplementedByQuantityDto, DurationUnitDto, ExchangePhaseDto, ExecutionDescriptionDto, GrossPriceComponentDto, HoldOutDurationUnitDto, HoldOutTypeDto, IElementDto, ItemNumberDto, ItemNumberSchemaDto, ItemNumberSchemaTierAlignmentDto, ItemNumberSchemaTierDto, ItemNumberSchemaTierTypeDto, ItemNumberTypeDto, LabourPriceComponentDto, NoteTextDto, OenormNoteTextPropertiesDto, OenormOriginCodeDto, OenormPositionPropertiesDto, OenormPropertiesDto, OriginDto, PartyInformationDto, PositionComplementingTypeDto, PositionDto, PositionHoldOutPropertiesDto, PositionSustainabilityIndicatorDto, PositionTypeDto, PriceCatalogueDataDto, PriceComponentDto, PriceComponentTypeDto, PriceInformationDto, PriceRoundingModeDto, PriceTypeDto, ProductDataDto, ProjectDto, ProjectInformationDto, QuantityAssignmentDto, STLBKeyDto, STLBReferenceDto, ServiceSpecificationCommercePropertiesDto, ServiceSpecificationDto, ServiceSpecificationGroupDto, ServiceTypeDto, SpecialAwardKindDto, StandardReferenceTypeDto, StandardizedDescriptionDto, SubDescriptionDto, SustainabilityCatalogueDto, SustainabilityLifeCycleStageDto, TradeDiscountDto, WarrantyDurationDto, avaModelsVersion };
|
|
3781
3980
|
//# sourceMappingURL=dangl-ava-model.mjs.map
|