@dangl/ava-model 2.26.0-beta0044 → 2.26.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
var PriceRoundingModeDto,ItemNumberTypeDto,ItemNumberSchemaTierAlignmentDto,ItemNumberSchemaTierTypeDto,PriceComponentTypeDto,AwardTypeDto,SpecialAwardKindDto,CatalogueTypeDto,AdditionTypeDto,StandardReferenceTypeDto,ComissionStatusDto,PositionTypeDto,PriceTypeDto,ServiceTypeDto,OenormOriginCodeDto,AddendumStatusDto,PositionComplementingTypeDto,HoldOutTypeDto,HoldOutDurationUnitDto,ExchangePhaseDto,OriginDto,DurationUnitDto,CommerceInquiryTypeDto;!function(e){e.Normal="Normal",e.Floor="Floor",e.Ceiling="Ceiling"}(PriceRoundingModeDto||(PriceRoundingModeDto={}));class ProjectInformationDto{buyer;description;descriptionShort;name;site;itemNumberSchema;currencyShort;currencyLong;labourTimeLabel;priceComponents;priceComponentTypes;bidderCommentAllowed;sideOffersAllowed;awardType;specialAwardKind;requesters;notificationSites;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(this.buyer=e.buyer&&!e.buyer.toJSON?new PartyInformationDto(e.buyer):this.buyer,this.site=e.site&&!e.site.toJSON?new PartyInformationDto(e.site):this.site,this.itemNumberSchema=e.itemNumberSchema&&!e.itemNumberSchema.toJSON?new ItemNumberSchemaDto(e.itemNumberSchema):this.itemNumberSchema,e.requesters){this.requesters=[];for(let t=0;t<e.requesters.length;t++){let i=e.requesters[t];this.requesters[t]=i&&!i.toJSON?new PartyInformationDto(i):i}}if(e.notificationSites){this.notificationSites=[];for(let t=0;t<e.notificationSites.length;t++){let i=e.notificationSites[t];this.notificationSites[t]=i&&!i.toJSON?new PartyInformationDto(i):i}}}}init(e){if(e){if(this.buyer=e.buyer?PartyInformationDto.fromJS(e.buyer):void 0,this.description=e.description,this.descriptionShort=e.descriptionShort,this.name=e.name,this.site=e.site?PartyInformationDto.fromJS(e.site):void 0,this.itemNumberSchema=e.itemNumberSchema?ItemNumberSchemaDto.fromJS(e.itemNumberSchema):void 0,this.currencyShort=e.currencyShort,this.currencyLong=e.currencyLong,this.labourTimeLabel=e.labourTimeLabel,Array.isArray(e.priceComponents)){this.priceComponents=[];for(let t of e.priceComponents)this.priceComponents.push(t)}if(e.priceComponentTypes){this.priceComponentTypes={};for(let t in e.priceComponentTypes)e.priceComponentTypes.hasOwnProperty(t)&&(this.priceComponentTypes[t]=e.priceComponentTypes[t])}if(this.bidderCommentAllowed=e.bidderCommentAllowed,this.sideOffersAllowed=e.sideOffersAllowed,this.awardType=e.awardType,this.specialAwardKind=e.specialAwardKind,Array.isArray(e.requesters)){this.requesters=[];for(let t of e.requesters)this.requesters.push(PartyInformationDto.fromJS(t))}if(Array.isArray(e.notificationSites)){this.notificationSites=[];for(let t of e.notificationSites)this.notificationSites.push(PartyInformationDto.fromJS(t))}}}static fromJS(e){e="object"==typeof e?e:{};let t=new ProjectInformationDto;return t.init(e),t}toJSON(e){if(e="object"==typeof e?e:{},this.buyer?void 0!==this.buyer.toJSON?e.buyer=this.buyer.toJSON():e.buyer=this.buyer:e.buyer=void 0,e.description=this.description,e.descriptionShort=this.descriptionShort,e.name=this.name,this.site?void 0!==this.site.toJSON?e.site=this.site.toJSON():e.site=this.site:e.site=void 0,this.itemNumberSchema?void 0!==this.itemNumberSchema.toJSON?e.itemNumberSchema=this.itemNumberSchema.toJSON():e.itemNumberSchema=this.itemNumberSchema:e.itemNumberSchema=void 0,e.currencyShort=this.currencyShort,e.currencyLong=this.currencyLong,e.labourTimeLabel=this.labourTimeLabel,Array.isArray(this.priceComponents)){e.priceComponents=[];for(let t of this.priceComponents)e.priceComponents.push(t)}if(this.priceComponentTypes){e.priceComponentTypes={};for(let t in this.priceComponentTypes)this.priceComponentTypes.hasOwnProperty(t)&&(e.priceComponentTypes[t]=this.priceComponentTypes[t])}if(e.bidderCommentAllowed=this.bidderCommentAllowed,e.sideOffersAllowed=this.sideOffersAllowed,e.awardType=this.awardType,e.specialAwardKind=this.specialAwardKind,Array.isArray(this.requesters)){e.requesters=[];for(let t of this.requesters)void 0!==t.toJSON?e.requesters.push(t.toJSON()):e.requesters.push(t)}if(Array.isArray(this.notificationSites)){e.notificationSites=[];for(let t of this.notificationSites)void 0!==t.toJSON?e.notificationSites.push(t.toJSON()):e.notificationSites.push(t)}return e}}class PartyInformationDto{id;name;street;zipCode;city;country;identifier;remarks;email;phone;contactPersonName;awardIdentifier;isInEuropeanEconomicArea;vatId;fax;countryCode;creditorOrDebtorIdentifier;globalLocationNumber;bankingInformation;registrationNumber;taxId;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.bankingInformation){this.bankingInformation=[];for(let t=0;t<e.bankingInformation.length;t++){let i=e.bankingInformation[t];this.bankingInformation[t]=i&&!i.toJSON?new BankingInformationDto(i):i}}}}init(e){if(e){if(this.id=e.id,this.name=e.name,this.street=e.street,this.zipCode=e.zipCode,this.city=e.city,this.country=e.country,this.identifier=e.identifier,this.remarks=e.remarks,this.email=e.email,this.phone=e.phone,this.contactPersonName=e.contactPersonName,this.awardIdentifier=e.awardIdentifier,this.isInEuropeanEconomicArea=e.isInEuropeanEconomicArea,this.vatId=e.vatId,this.fax=e.fax,this.countryCode=e.countryCode,this.creditorOrDebtorIdentifier=e.creditorOrDebtorIdentifier,this.globalLocationNumber=e.globalLocationNumber,Array.isArray(e.bankingInformation)){this.bankingInformation=[];for(let t of e.bankingInformation)this.bankingInformation.push(BankingInformationDto.fromJS(t))}this.registrationNumber=e.registrationNumber,this.taxId=e.taxId}}static fromJS(e){e="object"==typeof e?e:{};let t=new PartyInformationDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.name=this.name,e.street=this.street,e.zipCode=this.zipCode,e.city=this.city,e.country=this.country,e.identifier=this.identifier,e.remarks=this.remarks,e.email=this.email,e.phone=this.phone,e.contactPersonName=this.contactPersonName,e.awardIdentifier=this.awardIdentifier,e.isInEuropeanEconomicArea=this.isInEuropeanEconomicArea,e.vatId=this.vatId,e.fax=this.fax,e.countryCode=this.countryCode,e.creditorOrDebtorIdentifier=this.creditorOrDebtorIdentifier,e.globalLocationNumber=this.globalLocationNumber,Array.isArray(this.bankingInformation)){e.bankingInformation=[];for(let t of this.bankingInformation)void 0!==t.toJSON?e.bankingInformation.push(t.toJSON()):e.bankingInformation.push(t)}return e.registrationNumber=this.registrationNumber,e.taxId=this.taxId,e}}class BankingInformationDto{id;name;iban;accountNumber;bic;routingNumber;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.id=e.id,this.name=e.name,this.iban=e.iban,this.accountNumber=e.accountNumber,this.bic=e.bic,this.routingNumber=e.routingNumber)}static fromJS(e){e="object"==typeof e?e:{};let t=new BankingInformationDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).id=this.id,e.name=this.name,e.iban=this.iban,e.accountNumber=this.accountNumber,e.bic=this.bic,e.routingNumber=this.routingNumber,e}}class ItemNumberSchemaDto{totalLength;tiers;separator;filler;identifier;skipNonExistingLevelsInPositionItemNumbers;skippedTiersFiller;schemaIsCorrectlyDefined;allowUpperCaseLettering;disableLeftPaddingTiersWithFiller;disableItemNumberIdentifierTransformations;disableItemNumberIdentifierTransformationsOnlyForAlphanumericTiers;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.tiers){this.tiers=[];for(let t=0;t<e.tiers.length;t++){let i=e.tiers[t];this.tiers[t]=i&&!i.toJSON?new ItemNumberSchemaTierDto(i):i}}}}init(e){if(e){if(this.totalLength=e.totalLength,Array.isArray(e.tiers)){this.tiers=[];for(let t of e.tiers)this.tiers.push(ItemNumberSchemaTierDto.fromJS(t))}this.separator=e.separator,this.filler=e.filler,this.identifier=e.identifier,this.skipNonExistingLevelsInPositionItemNumbers=e.skipNonExistingLevelsInPositionItemNumbers,this.skippedTiersFiller=e.skippedTiersFiller,this.schemaIsCorrectlyDefined=e.schemaIsCorrectlyDefined,this.allowUpperCaseLettering=e.allowUpperCaseLettering,this.disableLeftPaddingTiersWithFiller=e.disableLeftPaddingTiersWithFiller,this.disableItemNumberIdentifierTransformations=e.disableItemNumberIdentifierTransformations,this.disableItemNumberIdentifierTransformationsOnlyForAlphanumericTiers=e.disableItemNumberIdentifierTransformationsOnlyForAlphanumericTiers}}static fromJS(e){e="object"==typeof e?e:{};let t=new ItemNumberSchemaDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).totalLength=this.totalLength,Array.isArray(this.tiers)){e.tiers=[];for(let t of this.tiers)void 0!==t.toJSON?e.tiers.push(t.toJSON()):e.tiers.push(t)}return e.separator=this.separator,e.filler=this.filler,e.identifier=this.identifier,e.skipNonExistingLevelsInPositionItemNumbers=this.skipNonExistingLevelsInPositionItemNumbers,e.skippedTiersFiller=this.skippedTiersFiller,e.schemaIsCorrectlyDefined=this.schemaIsCorrectlyDefined,e.allowUpperCaseLettering=this.allowUpperCaseLettering,e.disableLeftPaddingTiersWithFiller=this.disableLeftPaddingTiersWithFiller,e.disableItemNumberIdentifierTransformations=this.disableItemNumberIdentifierTransformations,e.disableItemNumberIdentifierTransformationsOnlyForAlphanumericTiers=this.disableItemNumberIdentifierTransformationsOnlyForAlphanumericTiers,e}}class ItemNumberSchemaTierDto{length;type;alignment;tierType;isLot;increment;tierName;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.length=e.length,this.type=e.type,this.alignment=e.alignment,this.tierType=e.tierType,this.isLot=e.isLot,this.increment=e.increment,this.tierName=e.tierName)}static fromJS(e){e="object"==typeof e?e:{};let t=new ItemNumberSchemaTierDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).length=this.length,e.type=this.type,e.alignment=this.alignment,e.tierType=this.tierType,e.isLot=this.isLot,e.increment=this.increment,e.tierName=this.tierName,e}}!function(e){e.Numeric="Numeric",e.Alphanumeric="Alphanumeric"}(ItemNumberTypeDto||(ItemNumberTypeDto={})),function(e){e.Undefined="Undefined",e.Left="Left",e.Right="Right"}(ItemNumberSchemaTierAlignmentDto||(ItemNumberSchemaTierAlignmentDto={})),function(e){e.Undefined="Undefined",e.Index="Index",e.Position="Position",e.Group="Group",e.Lot="Lot"}(ItemNumberSchemaTierTypeDto||(ItemNumberSchemaTierTypeDto={})),function(e){e.Unknown="Unknown",e.Wages="Wages",e.Materials="Materials",e.Plant="Plant",e.Miscellaneous="Miscellaneous"}(PriceComponentTypeDto||(PriceComponentTypeDto={})),function(e){e.Unspecified="Unspecified",e.OpenProcurement="OpenProcurement",e.ClosedProducrement="ClosedProducrement",e.NegotiationProcurementWithoutPublicAnnouncement="NegotiationProcurementWithoutPublicAnnouncement",e.NegotiationProcurement="NegotiationProcurement",e.OpenCall="OpenCall",e.SelectedCallWithoutPublicCompetition="SelectedCallWithoutPublicCompetition",e.SelectedCall="SelectedCall",e.DirectAward="DirectAward",e.InternationalNATOProcurement="InternationalNATOProcurement",e.CompetitiveDialog="CompetitiveDialog"}(AwardTypeDto||(AwardTypeDto={})),function(e){e.Unspecified="Unspecified",e.MaintenanceContract="MaintenanceContract",e.OutlineContract="OutlineContract",e.OutlineForMaintenanceContract="OutlineForMaintenanceContract"}(SpecialAwardKindDto||(SpecialAwardKindDto={}));class ServiceSpecificationDto{id;projectHourlyWage;projectTaxRate;projectPriceComponents;projectItemNumberSchema;elements;projectLabourTimeLabel;containsDuplicateItemNumbers;containsDuplicateElementIds;ignoreDuplicateItemNumbers;ignoreProjectCataloguePropagation;ignoreDuplicateElementIds;totalPriceGrossByTaxRate;ignoreChildPriceUpdates;deductedPrice;deductionFactor;absoluteDeduction;totalPrice;totalPriceGross;totalPriceGrossDeducted;priceType;bidder;bidderDiscriminator;gaebXmlId;projectInformation;exchangePhase;origin;originDetail;creationDate;offerByDate;decisionDate;bidDate;warrantyBondPercentage;executionGuaranteePercentage;submissionLocation;description;name;priceInformation;projectCatalogues;catalogueReferences;plannedExecutionStart;plannedExecutionEnd;contractDate;contractIdentifier;warrantyDuration;warrantyEnd;approvalDate;typeOfApproval;addendumNumber;addendumStatus;commerceProperties;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(this.projectItemNumberSchema=e.projectItemNumberSchema&&!e.projectItemNumberSchema.toJSON?new ItemNumberSchemaDto(e.projectItemNumberSchema):this.projectItemNumberSchema,e.totalPriceGrossByTaxRate){this.totalPriceGrossByTaxRate=[];for(let t=0;t<e.totalPriceGrossByTaxRate.length;t++){let i=e.totalPriceGrossByTaxRate[t];this.totalPriceGrossByTaxRate[t]=i&&!i.toJSON?new GrossPriceComponentDto(i):i}}if(this.bidder=e.bidder&&!e.bidder.toJSON?new PartyInformationDto(e.bidder):this.bidder,this.projectInformation=e.projectInformation&&!e.projectInformation.toJSON?new ProjectInformationDto(e.projectInformation):this.projectInformation,this.priceInformation=e.priceInformation&&!e.priceInformation.toJSON?new PriceInformationDto(e.priceInformation):this.priceInformation,e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}if(e.catalogueReferences){this.catalogueReferences=[];for(let t=0;t<e.catalogueReferences.length;t++){let i=e.catalogueReferences[t];this.catalogueReferences[t]=i&&!i.toJSON?new CatalogueReferenceDto(i):i}}this.warrantyDuration=e.warrantyDuration&&!e.warrantyDuration.toJSON?new WarrantyDurationDto(e.warrantyDuration):this.warrantyDuration,this.commerceProperties=e.commerceProperties&&!e.commerceProperties.toJSON?new ServiceSpecificationCommercePropertiesDto(e.commerceProperties):this.commerceProperties}}init(e){if(e){if(this.id=e.id,this.projectHourlyWage=e.projectHourlyWage,this.projectTaxRate=e.projectTaxRate,Array.isArray(e.projectPriceComponents)){this.projectPriceComponents=[];for(let t of e.projectPriceComponents)this.projectPriceComponents.push(t)}if(this.projectItemNumberSchema=e.projectItemNumberSchema?ItemNumberSchemaDto.fromJS(e.projectItemNumberSchema):void 0,Array.isArray(e.elements)){this.elements=[];for(let t of e.elements)this.elements.push(IElementDto.fromJS(t))}if(this.projectLabourTimeLabel=e.projectLabourTimeLabel,this.containsDuplicateItemNumbers=e.containsDuplicateItemNumbers,this.containsDuplicateElementIds=e.containsDuplicateElementIds,this.ignoreDuplicateItemNumbers=e.ignoreDuplicateItemNumbers,this.ignoreProjectCataloguePropagation=e.ignoreProjectCataloguePropagation,this.ignoreDuplicateElementIds=e.ignoreDuplicateElementIds,Array.isArray(e.totalPriceGrossByTaxRate)){this.totalPriceGrossByTaxRate=[];for(let t of e.totalPriceGrossByTaxRate)this.totalPriceGrossByTaxRate.push(GrossPriceComponentDto.fromJS(t))}if(this.ignoreChildPriceUpdates=e.ignoreChildPriceUpdates,this.deductedPrice=e.deductedPrice,this.deductionFactor=e.deductionFactor,this.absoluteDeduction=e.absoluteDeduction,this.totalPrice=e.totalPrice,this.totalPriceGross=e.totalPriceGross,this.totalPriceGrossDeducted=e.totalPriceGrossDeducted,this.priceType=e.priceType,this.bidder=e.bidder?PartyInformationDto.fromJS(e.bidder):void 0,this.bidderDiscriminator=e.bidderDiscriminator,this.gaebXmlId=e.gaebXmlId,this.projectInformation=e.projectInformation?ProjectInformationDto.fromJS(e.projectInformation):void 0,this.exchangePhase=e.exchangePhase,this.origin=e.origin,this.originDetail=e.originDetail,this.creationDate=e.creationDate?new Date(e.creationDate.toString()):void 0,this.offerByDate=e.offerByDate?new Date(e.offerByDate.toString()):void 0,this.decisionDate=e.decisionDate?new Date(e.decisionDate.toString()):void 0,this.bidDate=e.bidDate?new Date(e.bidDate.toString()):void 0,this.warrantyBondPercentage=e.warrantyBondPercentage,this.executionGuaranteePercentage=e.executionGuaranteePercentage,this.submissionLocation=e.submissionLocation,this.description=e.description,this.name=e.name,this.priceInformation=e.priceInformation?PriceInformationDto.fromJS(e.priceInformation):void 0,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}if(Array.isArray(e.catalogueReferences)){this.catalogueReferences=[];for(let t of e.catalogueReferences)this.catalogueReferences.push(CatalogueReferenceDto.fromJS(t))}this.plannedExecutionStart=e.plannedExecutionStart?new Date(e.plannedExecutionStart.toString()):void 0,this.plannedExecutionEnd=e.plannedExecutionEnd?new Date(e.plannedExecutionEnd.toString()):void 0,this.contractDate=e.contractDate?new Date(e.contractDate.toString()):void 0,this.contractIdentifier=e.contractIdentifier,this.warrantyDuration=e.warrantyDuration?WarrantyDurationDto.fromJS(e.warrantyDuration):void 0,this.warrantyEnd=e.warrantyEnd?new Date(e.warrantyEnd.toString()):void 0,this.approvalDate=e.approvalDate?new Date(e.approvalDate.toString()):void 0,this.typeOfApproval=e.typeOfApproval,this.addendumNumber=e.addendumNumber,this.addendumStatus=e.addendumStatus,this.commerceProperties=e.commerceProperties?ServiceSpecificationCommercePropertiesDto.fromJS(e.commerceProperties):void 0}}static fromJS(e){e="object"==typeof e?e:{};let t=new ServiceSpecificationDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.projectHourlyWage=this.projectHourlyWage,e.projectTaxRate=this.projectTaxRate,Array.isArray(this.projectPriceComponents)){e.projectPriceComponents=[];for(let t of this.projectPriceComponents)e.projectPriceComponents.push(t)}if(this.projectItemNumberSchema?void 0!==this.projectItemNumberSchema.toJSON?e.projectItemNumberSchema=this.projectItemNumberSchema.toJSON():e.projectItemNumberSchema=this.projectItemNumberSchema:e.projectItemNumberSchema=void 0,Array.isArray(this.elements)){e.elements=[];for(let t of this.elements)void 0!==t.toJSON?e.elements.push(t.toJSON()):e.elements.push(t)}if(e.projectLabourTimeLabel=this.projectLabourTimeLabel,e.containsDuplicateItemNumbers=this.containsDuplicateItemNumbers,e.containsDuplicateElementIds=this.containsDuplicateElementIds,e.ignoreDuplicateItemNumbers=this.ignoreDuplicateItemNumbers,e.ignoreProjectCataloguePropagation=this.ignoreProjectCataloguePropagation,e.ignoreDuplicateElementIds=this.ignoreDuplicateElementIds,Array.isArray(this.totalPriceGrossByTaxRate)){e.totalPriceGrossByTaxRate=[];for(let t of this.totalPriceGrossByTaxRate)void 0!==t.toJSON?e.totalPriceGrossByTaxRate.push(t.toJSON()):e.totalPriceGrossByTaxRate.push(t)}if(e.ignoreChildPriceUpdates=this.ignoreChildPriceUpdates,e.deductedPrice=this.deductedPrice,e.deductionFactor=this.deductionFactor,e.absoluteDeduction=this.absoluteDeduction,e.totalPrice=this.totalPrice,e.totalPriceGross=this.totalPriceGross,e.totalPriceGrossDeducted=this.totalPriceGrossDeducted,e.priceType=this.priceType,this.bidder?void 0!==this.bidder.toJSON?e.bidder=this.bidder.toJSON():e.bidder=this.bidder:e.bidder=void 0,e.bidderDiscriminator=this.bidderDiscriminator,e.gaebXmlId=this.gaebXmlId,this.projectInformation?void 0!==this.projectInformation.toJSON?e.projectInformation=this.projectInformation.toJSON():e.projectInformation=this.projectInformation:e.projectInformation=void 0,e.exchangePhase=this.exchangePhase,e.origin=this.origin,e.originDetail=this.originDetail,e.creationDate=this.creationDate?this.creationDate.toISOString():void 0,e.offerByDate=this.offerByDate?this.offerByDate.toISOString():void 0,e.decisionDate=this.decisionDate?this.decisionDate.toISOString():void 0,e.bidDate=this.bidDate?this.bidDate.toISOString():void 0,e.warrantyBondPercentage=this.warrantyBondPercentage,e.executionGuaranteePercentage=this.executionGuaranteePercentage,e.submissionLocation=this.submissionLocation,e.description=this.description,e.name=this.name,this.priceInformation?void 0!==this.priceInformation.toJSON?e.priceInformation=this.priceInformation.toJSON():e.priceInformation=this.priceInformation:e.priceInformation=void 0,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}if(Array.isArray(this.catalogueReferences)){e.catalogueReferences=[];for(let t of this.catalogueReferences)void 0!==t.toJSON?e.catalogueReferences.push(t.toJSON()):e.catalogueReferences.push(t)}return e.plannedExecutionStart=this.plannedExecutionStart?this.plannedExecutionStart.toISOString():void 0,e.plannedExecutionEnd=this.plannedExecutionEnd?this.plannedExecutionEnd.toISOString():void 0,e.contractDate=this.contractDate?this.contractDate.toISOString():void 0,e.contractIdentifier=this.contractIdentifier,this.warrantyDuration?void 0!==this.warrantyDuration.toJSON?e.warrantyDuration=this.warrantyDuration.toJSON():e.warrantyDuration=this.warrantyDuration:e.warrantyDuration=void 0,e.warrantyEnd=this.warrantyEnd?this.warrantyEnd.toISOString():void 0,e.approvalDate=this.approvalDate?this.approvalDate.toISOString():void 0,e.typeOfApproval=this.typeOfApproval,e.addendumNumber=this.addendumNumber,e.addendumStatus=this.addendumStatus,this.commerceProperties?void 0!==this.commerceProperties.toJSON?e.commerceProperties=this.commerceProperties.toJSON():e.commerceProperties=this.commerceProperties:e.commerceProperties=void 0,e}}class IElementDto{elementType;elementTypeDiscriminator;id;gaebXmlId;addendumNumber;projectCatalogues;catalogueReferences;_discriminator;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}if(e.catalogueReferences){this.catalogueReferences=[];for(let t=0;t<e.catalogueReferences.length;t++){let i=e.catalogueReferences[t];this.catalogueReferences[t]=i&&!i.toJSON?new CatalogueReferenceDto(i):i}}}this._discriminator="IElementDto"}init(e){if(e){if(this.elementType=e.elementType,this.id=e.id,this.gaebXmlId=e.gaebXmlId,this.addendumNumber=e.addendumNumber,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}if(Array.isArray(e.catalogueReferences)){this.catalogueReferences=[];for(let t of e.catalogueReferences)this.catalogueReferences.push(CatalogueReferenceDto.fromJS(t))}}}static fromJS(e){if("PositionDto"===(e="object"==typeof e?e:{}).elementTypeDiscriminator){let t=new PositionDto;return t.init(e),t}if("ExecutionDescriptionDto"===e.elementTypeDiscriminator){let t=new ExecutionDescriptionDto;return t.init(e),t}if("NoteTextDto"===e.elementTypeDiscriminator){let t=new NoteTextDto;return t.init(e),t}if("ServiceSpecificationGroupDto"===e.elementTypeDiscriminator){let t=new ServiceSpecificationGroupDto;return t.init(e),t}throw new Error("The abstract class 'IElementDto' cannot be instantiated.")}toJSON(e){if((e="object"==typeof e?e:{}).elementTypeDiscriminator=this._discriminator,e.elementType=this.elementType,e.id=this.id,e.gaebXmlId=this.gaebXmlId,e.addendumNumber=this.addendumNumber,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}if(Array.isArray(this.catalogueReferences)){e.catalogueReferences=[];for(let t of this.catalogueReferences)void 0!==t.toJSON?e.catalogueReferences.push(t.toJSON()):e.catalogueReferences.push(t)}return e}}class CatalogueDto{id;gaebXmlId;name;description;catalogueType;catalogueTypeDetail;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.id=e.id,this.gaebXmlId=e.gaebXmlId,this.name=e.name,this.description=e.description,this.catalogueType=e.catalogueType,this.catalogueTypeDetail=e.catalogueTypeDetail)}static fromJS(e){e="object"==typeof e?e:{};let t=new CatalogueDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).id=this.id,e.gaebXmlId=this.gaebXmlId,e.name=this.name,e.description=this.description,e.catalogueType=this.catalogueType,e.catalogueTypeDetail=this.catalogueTypeDetail,e}}!function(e){e.Unknown="Unknown",e.Location="Location",e.DIN276="DIN276",e.CostUnit="CostUnit",e.WorkCategory="WorkCategory",e.OenormB1801CostGroup="OenormB1801CostGroup",e.BIM="BIM",e.Attachment="Attachment"}(CatalogueTypeDto||(CatalogueTypeDto={}));class CatalogueReferenceDto{id;catalogueReferenceKey;catalogueReferenceId;projectCatalogues;catalogue;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}this.catalogue=e.catalogue&&!e.catalogue.toJSON?new CatalogueDto(e.catalogue):this.catalogue}}init(e){if(e){if(this.id=e.id,this.catalogueReferenceKey=e.catalogueReferenceKey,this.catalogueReferenceId=e.catalogueReferenceId,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}this.catalogue=e.catalogue?CatalogueDto.fromJS(e.catalogue):void 0}}static fromJS(e){e="object"==typeof e?e:{};let t=new CatalogueReferenceDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.catalogueReferenceKey=this.catalogueReferenceKey,e.catalogueReferenceId=this.catalogueReferenceId,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}return this.catalogue?void 0!==this.catalogue.toJSON?e.catalogue=this.catalogue.toJSON():e.catalogue=this.catalogue:e.catalogue=void 0,e}}class PositionDto extends IElementDto{unitPrice;unitPriceOverride;quantity;quantityOverride;isComplementingPosition;complementsPositions;complementingPricePercentageOverride;complementingPricePercentage;unitTag;labourComponents;priceComponents;quantityComponents;subDescriptions;comissionStatus;complementedBy;complemented;amountToBeEnteredByBidder;priceCompositionRequired;useDifferentTaxRate;taxRate;itemNumber;deductionFactor;totalPrice;totalPriceGross;totalPriceGrossDeducted;deductedPrice;positionType;priceType;serviceType;productData;shortText;htmlShortText;longText;htmlLongText;additionType;elementType="Position";elementTypeDiscriminator="Position";quantityAssignments;commerceProperties;alternativeTo;alternativeIdentifier;alternativeGroupIdentifier;isLumpSum;repetitionTo;v1CompatibilityPriceType;standardizedDescription;complementedByQuantities;executionDescriptionReference;notOffered;oenormPositionProperties;descriptionId;hierarchyLevel;addendumStatus;hasBidderCommentInHtmlLongText;gaebComplementingType;holdOutProperties;estimatedQuantity;priceCatalogueData;ignoreProjectCataloguePropagation;constructor(e){if(super(e),e){if(this.labourComponents=e.labourComponents&&!e.labourComponents.toJSON?new LabourPriceComponentDto(e.labourComponents):this.labourComponents,e.priceComponents){this.priceComponents=[];for(let t=0;t<e.priceComponents.length;t++){let i=e.priceComponents[t];this.priceComponents[t]=i&&!i.toJSON?new PriceComponentDto(i):i}}if(e.quantityComponents){this.quantityComponents=[];for(let t=0;t<e.quantityComponents.length;t++){let i=e.quantityComponents[t];this.quantityComponents[t]=i&&!i.toJSON?new CalculationDto(i):i}}if(e.subDescriptions){this.subDescriptions=[];for(let t=0;t<e.subDescriptions.length;t++){let i=e.subDescriptions[t];this.subDescriptions[t]=i&&!i.toJSON?new SubDescriptionDto(i):i}}if(this.itemNumber=e.itemNumber&&!e.itemNumber.toJSON?new ItemNumberDto(e.itemNumber):this.itemNumber,this.productData=e.productData&&!e.productData.toJSON?new ProductDataDto(e.productData):this.productData,e.quantityAssignments){this.quantityAssignments=[];for(let t=0;t<e.quantityAssignments.length;t++){let i=e.quantityAssignments[t];this.quantityAssignments[t]=i&&!i.toJSON?new QuantityAssignmentDto(i):i}}if(this.commerceProperties=e.commerceProperties&&!e.commerceProperties.toJSON?new CommercePropertiesDto(e.commerceProperties):this.commerceProperties,this.standardizedDescription=e.standardizedDescription&&!e.standardizedDescription.toJSON?new StandardizedDescriptionDto(e.standardizedDescription):this.standardizedDescription,e.complementedByQuantities){this.complementedByQuantities=[];for(let t=0;t<e.complementedByQuantities.length;t++){let i=e.complementedByQuantities[t];this.complementedByQuantities[t]=i&&!i.toJSON?new ComplementedByQuantityDto(i):i}}this.oenormPositionProperties=e.oenormPositionProperties&&!e.oenormPositionProperties.toJSON?new OenormPositionPropertiesDto(e.oenormPositionProperties):this.oenormPositionProperties,this.holdOutProperties=e.holdOutProperties&&!e.holdOutProperties.toJSON?new PositionHoldOutPropertiesDto(e.holdOutProperties):this.holdOutProperties,this.priceCatalogueData=e.priceCatalogueData&&!e.priceCatalogueData.toJSON?new PriceCatalogueDataDto(e.priceCatalogueData):this.priceCatalogueData}this._discriminator="PositionDto"}init(e){if(void 0!==super.init&&super.init(e),e){if(this.unitPrice=e.unitPrice,this.unitPriceOverride=e.unitPriceOverride,this.quantity=e.quantity,this.quantityOverride=e.quantityOverride,this.isComplementingPosition=e.isComplementingPosition,Array.isArray(e.complementsPositions)){this.complementsPositions=[];for(let t of e.complementsPositions)this.complementsPositions.push(t)}if(this.complementingPricePercentageOverride=e.complementingPricePercentageOverride,this.complementingPricePercentage=e.complementingPricePercentage,this.unitTag=e.unitTag,this.labourComponents=e.labourComponents?LabourPriceComponentDto.fromJS(e.labourComponents):void 0,Array.isArray(e.priceComponents)){this.priceComponents=[];for(let t of e.priceComponents)this.priceComponents.push(PriceComponentDto.fromJS(t))}if(Array.isArray(e.quantityComponents)){this.quantityComponents=[];for(let t of e.quantityComponents)this.quantityComponents.push(CalculationDto.fromJS(t))}if(Array.isArray(e.subDescriptions)){this.subDescriptions=[];for(let t of e.subDescriptions)this.subDescriptions.push(SubDescriptionDto.fromJS(t))}if(this.comissionStatus=e.comissionStatus,Array.isArray(e.complementedBy)){this.complementedBy=[];for(let t of e.complementedBy)this.complementedBy.push(t)}if(this.complemented=e.complemented,this.amountToBeEnteredByBidder=e.amountToBeEnteredByBidder,this.priceCompositionRequired=e.priceCompositionRequired,this.useDifferentTaxRate=e.useDifferentTaxRate,this.taxRate=e.taxRate,this.itemNumber=e.itemNumber?ItemNumberDto.fromJS(e.itemNumber):void 0,this.deductionFactor=e.deductionFactor,this.totalPrice=e.totalPrice,this.totalPriceGross=e.totalPriceGross,this.totalPriceGrossDeducted=e.totalPriceGrossDeducted,this.deductedPrice=e.deductedPrice,this.positionType=e.positionType,this.priceType=e.priceType,this.serviceType=e.serviceType,this.productData=e.productData?ProductDataDto.fromJS(e.productData):void 0,this.shortText=e.shortText,this.htmlShortText=e.htmlShortText,this.longText=e.longText,this.htmlLongText=e.htmlLongText,this.additionType=e.additionType,this.elementType=e.elementType,Array.isArray(e.quantityAssignments)){this.quantityAssignments=[];for(let t of e.quantityAssignments)this.quantityAssignments.push(QuantityAssignmentDto.fromJS(t))}if(this.commerceProperties=e.commerceProperties?CommercePropertiesDto.fromJS(e.commerceProperties):void 0,this.alternativeTo=e.alternativeTo,this.alternativeIdentifier=e.alternativeIdentifier,this.alternativeGroupIdentifier=e.alternativeGroupIdentifier,this.isLumpSum=e.isLumpSum,this.repetitionTo=e.repetitionTo,this.v1CompatibilityPriceType=e.v1CompatibilityPriceType,this.standardizedDescription=e.standardizedDescription?StandardizedDescriptionDto.fromJS(e.standardizedDescription):void 0,Array.isArray(e.complementedByQuantities)){this.complementedByQuantities=[];for(let t of e.complementedByQuantities)this.complementedByQuantities.push(ComplementedByQuantityDto.fromJS(t))}this.executionDescriptionReference=e.executionDescriptionReference,this.notOffered=e.notOffered,this.oenormPositionProperties=e.oenormPositionProperties?OenormPositionPropertiesDto.fromJS(e.oenormPositionProperties):void 0,this.descriptionId=e.descriptionId,this.hierarchyLevel=e.hierarchyLevel,this.addendumStatus=e.addendumStatus,this.hasBidderCommentInHtmlLongText=e.hasBidderCommentInHtmlLongText,this.gaebComplementingType=e.gaebComplementingType,this.holdOutProperties=e.holdOutProperties?PositionHoldOutPropertiesDto.fromJS(e.holdOutProperties):void 0,this.estimatedQuantity=e.estimatedQuantity,this.priceCatalogueData=e.priceCatalogueData?PriceCatalogueDataDto.fromJS(e.priceCatalogueData):void 0,this.ignoreProjectCataloguePropagation=e.ignoreProjectCataloguePropagation}}static fromJS(e){e="object"==typeof e?e:{};let t=new PositionDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).unitPrice=this.unitPrice,e.unitPriceOverride=this.unitPriceOverride,e.quantity=this.quantity,e.quantityOverride=this.quantityOverride,e.isComplementingPosition=this.isComplementingPosition,Array.isArray(this.complementsPositions)){e.complementsPositions=[];for(let t of this.complementsPositions)e.complementsPositions.push(t)}if(e.complementingPricePercentageOverride=this.complementingPricePercentageOverride,e.complementingPricePercentage=this.complementingPricePercentage,e.unitTag=this.unitTag,this.labourComponents?void 0!==this.labourComponents.toJSON?e.labourComponents=this.labourComponents.toJSON():e.labourComponents=this.labourComponents:e.labourComponents=void 0,Array.isArray(this.priceComponents)){e.priceComponents=[];for(let t of this.priceComponents)void 0!==t.toJSON?e.priceComponents.push(t.toJSON()):e.priceComponents.push(t)}if(Array.isArray(this.quantityComponents)){e.quantityComponents=[];for(let t of this.quantityComponents)void 0!==t.toJSON?e.quantityComponents.push(t.toJSON()):e.quantityComponents.push(t)}if(Array.isArray(this.subDescriptions)){e.subDescriptions=[];for(let t of this.subDescriptions)void 0!==t.toJSON?e.subDescriptions.push(t.toJSON()):e.subDescriptions.push(t)}if(e.comissionStatus=this.comissionStatus,Array.isArray(this.complementedBy)){e.complementedBy=[];for(let t of this.complementedBy)e.complementedBy.push(t)}if(e.complemented=this.complemented,e.amountToBeEnteredByBidder=this.amountToBeEnteredByBidder,e.priceCompositionRequired=this.priceCompositionRequired,e.useDifferentTaxRate=this.useDifferentTaxRate,e.taxRate=this.taxRate,this.itemNumber?void 0!==this.itemNumber.toJSON?e.itemNumber=this.itemNumber.toJSON():e.itemNumber=this.itemNumber:e.itemNumber=void 0,e.deductionFactor=this.deductionFactor,e.totalPrice=this.totalPrice,e.totalPriceGross=this.totalPriceGross,e.totalPriceGrossDeducted=this.totalPriceGrossDeducted,e.deductedPrice=this.deductedPrice,e.positionType=this.positionType,e.priceType=this.priceType,e.serviceType=this.serviceType,this.productData?void 0!==this.productData.toJSON?e.productData=this.productData.toJSON():e.productData=this.productData:e.productData=void 0,e.shortText=this.shortText,e.htmlShortText=this.htmlShortText,e.longText=this.longText,e.htmlLongText=this.htmlLongText,e.additionType=this.additionType,e.elementType=this.elementType,Array.isArray(this.quantityAssignments)){e.quantityAssignments=[];for(let t of this.quantityAssignments)void 0!==t.toJSON?e.quantityAssignments.push(t.toJSON()):e.quantityAssignments.push(t)}if(this.commerceProperties?void 0!==this.commerceProperties.toJSON?e.commerceProperties=this.commerceProperties.toJSON():e.commerceProperties=this.commerceProperties:e.commerceProperties=void 0,e.alternativeTo=this.alternativeTo,e.alternativeIdentifier=this.alternativeIdentifier,e.alternativeGroupIdentifier=this.alternativeGroupIdentifier,e.isLumpSum=this.isLumpSum,e.repetitionTo=this.repetitionTo,e.v1CompatibilityPriceType=this.v1CompatibilityPriceType,this.standardizedDescription?void 0!==this.standardizedDescription.toJSON?e.standardizedDescription=this.standardizedDescription.toJSON():e.standardizedDescription=this.standardizedDescription:e.standardizedDescription=void 0,Array.isArray(this.complementedByQuantities)){e.complementedByQuantities=[];for(let t of this.complementedByQuantities)void 0!==t.toJSON?e.complementedByQuantities.push(t.toJSON()):e.complementedByQuantities.push(t)}return e.executionDescriptionReference=this.executionDescriptionReference,e.notOffered=this.notOffered,this.oenormPositionProperties?void 0!==this.oenormPositionProperties.toJSON?e.oenormPositionProperties=this.oenormPositionProperties.toJSON():e.oenormPositionProperties=this.oenormPositionProperties:e.oenormPositionProperties=void 0,e.descriptionId=this.descriptionId,e.hierarchyLevel=this.hierarchyLevel,e.addendumStatus=this.addendumStatus,e.hasBidderCommentInHtmlLongText=this.hasBidderCommentInHtmlLongText,e.gaebComplementingType=this.gaebComplementingType,this.holdOutProperties?void 0!==this.holdOutProperties.toJSON?e.holdOutProperties=this.holdOutProperties.toJSON():e.holdOutProperties=this.holdOutProperties:e.holdOutProperties=void 0,e.estimatedQuantity=this.estimatedQuantity,this.priceCatalogueData?void 0!==this.priceCatalogueData.toJSON?e.priceCatalogueData=this.priceCatalogueData.toJSON():e.priceCatalogueData=this.priceCatalogueData:e.priceCatalogueData=void 0,e.ignoreProjectCataloguePropagation=this.ignoreProjectCataloguePropagation,void 0!==super.toJSON&&super.toJSON(e),e}}class LabourPriceComponentDto{label;price;hourlyWage;values;useOwnHourlyWage;totalTime;projectCatalogues;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.values){this.values=[];for(let t=0;t<e.values.length;t++){let i=e.values[t];this.values[t]=i&&!i.toJSON?new CalculationDto(i):i}}if(e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}}}init(e){if(e){if(this.label=e.label,this.price=e.price,this.hourlyWage=e.hourlyWage,Array.isArray(e.values)){this.values=[];for(let t of e.values)this.values.push(CalculationDto.fromJS(t))}if(this.useOwnHourlyWage=e.useOwnHourlyWage,this.totalTime=e.totalTime,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}}}static fromJS(e){e="object"==typeof e?e:{};let t=new LabourPriceComponentDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).label=this.label,e.price=this.price,e.hourlyWage=this.hourlyWage,Array.isArray(this.values)){e.values=[];for(let t of this.values)void 0!==t.toJSON?e.values.push(t.toJSON()):e.values.push(t)}if(e.useOwnHourlyWage=this.useOwnHourlyWage,e.totalTime=this.totalTime,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}return e}}class CalculationDto{description;formula;result;valid;errorPositionInLine;projectCatalogues;catalogueReferences;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}if(e.catalogueReferences){this.catalogueReferences=[];for(let t=0;t<e.catalogueReferences.length;t++){let i=e.catalogueReferences[t];this.catalogueReferences[t]=i&&!i.toJSON?new CatalogueReferenceDto(i):i}}}}init(e){if(e){if(this.description=e.description,this.formula=e.formula,this.result=e.result,this.valid=e.valid,this.errorPositionInLine=e.errorPositionInLine,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}if(Array.isArray(e.catalogueReferences)){this.catalogueReferences=[];for(let t of e.catalogueReferences)this.catalogueReferences.push(CatalogueReferenceDto.fromJS(t))}}}static fromJS(e){e="object"==typeof e?e:{};let t=new CalculationDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).description=this.description,e.formula=this.formula,e.result=this.result,e.valid=this.valid,e.errorPositionInLine=this.errorPositionInLine,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}if(Array.isArray(this.catalogueReferences)){e.catalogueReferences=[];for(let t of this.catalogueReferences)void 0!==t.toJSON?e.catalogueReferences.push(t.toJSON()):e.catalogueReferences.push(t)}return e}}class PriceComponentDto{price;label;values;projectCatalogues;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.values){this.values=[];for(let t=0;t<e.values.length;t++){let i=e.values[t];this.values[t]=i&&!i.toJSON?new CalculationDto(i):i}}if(e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}}}init(e){if(e){if(this.price=e.price,this.label=e.label,Array.isArray(e.values)){this.values=[];for(let t of e.values)this.values.push(CalculationDto.fromJS(t))}if(Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}}}static fromJS(e){e="object"==typeof e?e:{};let t=new PriceComponentDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).price=this.price,e.label=this.label,Array.isArray(this.values)){e.values=[];for(let t of this.values)void 0!==t.toJSON?e.values.push(t.toJSON()):e.values.push(t)}if(Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}return e}}class SubDescriptionDto{id;quantity;quantityOverride;quantityComponents;amountToBeEnteredByBidder;identifier;shortText;htmlShortText;longText;unitTag;htmlLongText;additionType;standardizedDescription;executionDescriptionReference;projectCatalogues;descriptionId;hasBidderCommentInHtmlLongText;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.quantityComponents){this.quantityComponents=[];for(let t=0;t<e.quantityComponents.length;t++){let i=e.quantityComponents[t];this.quantityComponents[t]=i&&!i.toJSON?new CalculationDto(i):i}}if(this.standardizedDescription=e.standardizedDescription&&!e.standardizedDescription.toJSON?new StandardizedDescriptionDto(e.standardizedDescription):this.standardizedDescription,e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}}}init(e){if(e){if(this.id=e.id,this.quantity=e.quantity,this.quantityOverride=e.quantityOverride,Array.isArray(e.quantityComponents)){this.quantityComponents=[];for(let t of e.quantityComponents)this.quantityComponents.push(CalculationDto.fromJS(t))}if(this.amountToBeEnteredByBidder=e.amountToBeEnteredByBidder,this.identifier=e.identifier,this.shortText=e.shortText,this.htmlShortText=e.htmlShortText,this.longText=e.longText,this.unitTag=e.unitTag,this.htmlLongText=e.htmlLongText,this.additionType=e.additionType,this.standardizedDescription=e.standardizedDescription?StandardizedDescriptionDto.fromJS(e.standardizedDescription):void 0,this.executionDescriptionReference=e.executionDescriptionReference,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}this.descriptionId=e.descriptionId,this.hasBidderCommentInHtmlLongText=e.hasBidderCommentInHtmlLongText}}static fromJS(e){e="object"==typeof e?e:{};let t=new SubDescriptionDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.quantity=this.quantity,e.quantityOverride=this.quantityOverride,Array.isArray(this.quantityComponents)){e.quantityComponents=[];for(let t of this.quantityComponents)void 0!==t.toJSON?e.quantityComponents.push(t.toJSON()):e.quantityComponents.push(t)}if(e.amountToBeEnteredByBidder=this.amountToBeEnteredByBidder,e.identifier=this.identifier,e.shortText=this.shortText,e.htmlShortText=this.htmlShortText,e.longText=this.longText,e.unitTag=this.unitTag,e.htmlLongText=this.htmlLongText,e.additionType=this.additionType,this.standardizedDescription?void 0!==this.standardizedDescription.toJSON?e.standardizedDescription=this.standardizedDescription.toJSON():e.standardizedDescription=this.standardizedDescription:e.standardizedDescription=void 0,e.executionDescriptionReference=this.executionDescriptionReference,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}return e.descriptionId=this.descriptionId,e.hasBidderCommentInHtmlLongText=this.hasBidderCommentInHtmlLongText,e}}!function(e){e.None="None",e.ByBuyer="ByBuyer",e.ByBidder="ByBidder"}(AdditionTypeDto||(AdditionTypeDto={}));class StandardizedDescriptionDto{standardReferenceType;standardReference;stlbReference;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);this.stlbReference=e.stlbReference&&!e.stlbReference.toJSON?new STLBReferenceDto(e.stlbReference):this.stlbReference}}init(e){e&&(this.standardReferenceType=e.standardReferenceType,this.standardReference=e.standardReference,this.stlbReference=e.stlbReference?STLBReferenceDto.fromJS(e.stlbReference):void 0)}static fromJS(e){e="object"==typeof e?e:{};let t=new StandardizedDescriptionDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).standardReferenceType=this.standardReferenceType,e.standardReference=this.standardReference,this.stlbReference?void 0!==this.stlbReference.toJSON?e.stlbReference=this.stlbReference.toJSON():e.stlbReference=this.stlbReference:e.stlbReference=void 0,e}}!function(e){e.Unknown="Unknown",e.StLB="StLB",e.StLK="StLK",e.STLBBauZ="STLBBauZ"}(StandardReferenceTypeDto||(StandardReferenceTypeDto={}));class STLBReferenceDto{versionDate;catalogueName;group;costGroup;serviceArea;keys;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.keys){this.keys=[];for(let t=0;t<e.keys.length;t++){let i=e.keys[t];this.keys[t]=i&&!i.toJSON?new STLBKeyDto(i):i}}}}init(e){if(e&&(this.versionDate=e.versionDate?new Date(e.versionDate.toString()):void 0,this.catalogueName=e.catalogueName,this.group=e.group,this.costGroup=e.costGroup,this.serviceArea=e.serviceArea,Array.isArray(e.keys))){this.keys=[];for(let t of e.keys)this.keys.push(STLBKeyDto.fromJS(t))}}static fromJS(e){e="object"==typeof e?e:{};let t=new STLBReferenceDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).versionDate=this.versionDate?this.versionDate.toISOString():void 0,e.catalogueName=this.catalogueName,e.group=this.group,e.costGroup=this.costGroup,e.serviceArea=this.serviceArea,Array.isArray(this.keys)){e.keys=[];for(let t of this.keys)void 0!==t.toJSON?e.keys.push(t.toJSON()):e.keys.push(t)}return e}}class STLBKeyDto{artIdentifier;artIndex;kindIdentifier;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.artIdentifier=e.artIdentifier,this.artIndex=e.artIndex,this.kindIdentifier=e.kindIdentifier)}static fromJS(e){e="object"==typeof e?e:{};let t=new STLBKeyDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).artIdentifier=this.artIdentifier,e.artIndex=this.artIndex,e.kindIdentifier=this.kindIdentifier,e}}!function(e){e.Undefined="Undefined",e.Commissioned="Commissioned",e.Postponed="Postponed",e.Removed="Removed"}(ComissionStatusDto||(ComissionStatusDto={}));class ItemNumberDto{id;stringRepresentation;isSchemaCompliant;itemNumberSchema;identifiers;isLot;hierarchyLevel;isAttachedToPosition;itemNumberSchemaBeforeMapping;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);this.itemNumberSchema=e.itemNumberSchema&&!e.itemNumberSchema.toJSON?new ItemNumberSchemaDto(e.itemNumberSchema):this.itemNumberSchema,this.itemNumberSchemaBeforeMapping=e.itemNumberSchemaBeforeMapping&&!e.itemNumberSchemaBeforeMapping.toJSON?new ItemNumberSchemaDto(e.itemNumberSchemaBeforeMapping):this.itemNumberSchemaBeforeMapping}}init(e){if(e){if(this.id=e.id,this.stringRepresentation=e.stringRepresentation,this.isSchemaCompliant=e.isSchemaCompliant,this.itemNumberSchema=e.itemNumberSchema?ItemNumberSchemaDto.fromJS(e.itemNumberSchema):void 0,Array.isArray(e.identifiers)){this.identifiers=[];for(let t of e.identifiers)this.identifiers.push(t)}this.isLot=e.isLot,this.hierarchyLevel=e.hierarchyLevel,this.isAttachedToPosition=e.isAttachedToPosition,this.itemNumberSchemaBeforeMapping=e.itemNumberSchemaBeforeMapping?ItemNumberSchemaDto.fromJS(e.itemNumberSchemaBeforeMapping):void 0}}static fromJS(e){e="object"==typeof e?e:{};let t=new ItemNumberDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.stringRepresentation=this.stringRepresentation,e.isSchemaCompliant=this.isSchemaCompliant,this.itemNumberSchema?void 0!==this.itemNumberSchema.toJSON?e.itemNumberSchema=this.itemNumberSchema.toJSON():e.itemNumberSchema=this.itemNumberSchema:e.itemNumberSchema=void 0,Array.isArray(this.identifiers)){e.identifiers=[];for(let t of this.identifiers)e.identifiers.push(t)}return e.isLot=this.isLot,e.hierarchyLevel=this.hierarchyLevel,e.isAttachedToPosition=this.isAttachedToPosition,this.itemNumberSchemaBeforeMapping?void 0!==this.itemNumberSchemaBeforeMapping.toJSON?e.itemNumberSchemaBeforeMapping=this.itemNumberSchemaBeforeMapping.toJSON():e.itemNumberSchemaBeforeMapping=this.itemNumberSchemaBeforeMapping:e.itemNumberSchemaBeforeMapping=void 0,e}}!function(e){e.Regular="Regular",e.Optional="Optional",e.Alternative="Alternative"}(PositionTypeDto||(PositionTypeDto={})),function(e){e.WithTotal="WithTotal",e.WithoutTotal="WithoutTotal"}(PriceTypeDto||(PriceTypeDto={})),function(e){e.Regular="Regular",e.HourlyPaidWork="HourlyPaidWork"}(ServiceTypeDto||(ServiceTypeDto={}));class ProductDataDto{id;vendor;articles;shortText;longText;htmlLongText;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(this.vendor=e.vendor&&!e.vendor.toJSON?new PartyInformationDto(e.vendor):this.vendor,e.articles){this.articles=[];for(let t=0;t<e.articles.length;t++){let i=e.articles[t];this.articles[t]=i&&!i.toJSON?new ArticleDataDto(i):i}}}}init(e){if(e){if(this.id=e.id,this.vendor=e.vendor?PartyInformationDto.fromJS(e.vendor):void 0,Array.isArray(e.articles)){this.articles=[];for(let t of e.articles)this.articles.push(ArticleDataDto.fromJS(t))}this.shortText=e.shortText,this.longText=e.longText,this.htmlLongText=e.htmlLongText}}static fromJS(e){e="object"==typeof e?e:{};let t=new ProductDataDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,this.vendor?void 0!==this.vendor.toJSON?e.vendor=this.vendor.toJSON():e.vendor=this.vendor:e.vendor=void 0,Array.isArray(this.articles)){e.articles=[];for(let t of this.articles)void 0!==t.toJSON?e.articles.push(t.toJSON()):e.articles.push(t)}return e.shortText=this.shortText,e.longText=this.longText,e.htmlLongText=this.htmlLongText,e}}class ArticleDataDto{id;name;articleNumber;quantity;unitTag;description;shortText;longText;htmlLongText;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.id=e.id,this.name=e.name,this.articleNumber=e.articleNumber,this.quantity=e.quantity,this.unitTag=e.unitTag,this.description=e.description,this.shortText=e.shortText,this.longText=e.longText,this.htmlLongText=e.htmlLongText)}static fromJS(e){e="object"==typeof e?e:{};let t=new ArticleDataDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).id=this.id,e.name=this.name,e.articleNumber=this.articleNumber,e.quantity=this.quantity,e.unitTag=this.unitTag,e.description=this.description,e.shortText=this.shortText,e.longText=this.longText,e.htmlLongText=this.htmlLongText,e}}class QuantityAssignmentDto{id;quantity;projectCatalogues;catalogueReferences;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}if(e.catalogueReferences){this.catalogueReferences=[];for(let t=0;t<e.catalogueReferences.length;t++){let i=e.catalogueReferences[t];this.catalogueReferences[t]=i&&!i.toJSON?new CatalogueReferenceDto(i):i}}}}init(e){if(e){if(this.id=e.id,this.quantity=e.quantity,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}if(Array.isArray(e.catalogueReferences)){this.catalogueReferences=[];for(let t of e.catalogueReferences)this.catalogueReferences.push(CatalogueReferenceDto.fromJS(t))}}}static fromJS(e){e="object"==typeof e?e:{};let t=new QuantityAssignmentDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.quantity=this.quantity,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}if(Array.isArray(this.catalogueReferences)){e.catalogueReferences=[];for(let t of this.catalogueReferences)void 0!==t.toJSON?e.catalogueReferences.push(t.toJSON()):e.catalogueReferences.push(t)}return e}}class CommercePropertiesDto{articleNumber;eanGtinArticleNumber;ilnArticleNumber;catalogueNumber;catalogueArticleNumber;priceBasis;subPositionIdentifier;customerBaseItemNumber;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.articleNumber=e.articleNumber,this.eanGtinArticleNumber=e.eanGtinArticleNumber,this.ilnArticleNumber=e.ilnArticleNumber,this.catalogueNumber=e.catalogueNumber,this.catalogueArticleNumber=e.catalogueArticleNumber,this.priceBasis=e.priceBasis,this.subPositionIdentifier=e.subPositionIdentifier,this.customerBaseItemNumber=e.customerBaseItemNumber)}static fromJS(e){e="object"==typeof e?e:{};let t=new CommercePropertiesDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).articleNumber=this.articleNumber,e.eanGtinArticleNumber=this.eanGtinArticleNumber,e.ilnArticleNumber=this.ilnArticleNumber,e.catalogueNumber=this.catalogueNumber,e.catalogueArticleNumber=this.catalogueArticleNumber,e.priceBasis=this.priceBasis,e.subPositionIdentifier=this.subPositionIdentifier,e.customerBaseItemNumber=this.customerBaseItemNumber,e}}class ComplementedByQuantityDto{quantity;complementingPositionId;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.quantity=e.quantity,this.complementingPositionId=e.complementingPositionId)}static fromJS(e){e="object"==typeof e?e:{};let t=new ComplementedByQuantityDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).quantity=this.quantity,e.complementingPositionId=this.complementingPositionId,e}}class OenormPositionPropertiesDto{originCode;openingTextIsFreeText;isMainPosition;isUndividedPosition;oenormShortText;oenormShortTextAddition;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.originCode=e.originCode,this.openingTextIsFreeText=e.openingTextIsFreeText,this.isMainPosition=e.isMainPosition,this.isUndividedPosition=e.isUndividedPosition,this.oenormShortText=e.oenormShortText,this.oenormShortTextAddition=e.oenormShortTextAddition)}static fromJS(e){e="object"==typeof e?e:{};let t=new OenormPositionPropertiesDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).originCode=this.originCode,e.openingTextIsFreeText=this.openingTextIsFreeText,e.isMainPosition=this.isMainPosition,e.isUndividedPosition=this.isUndividedPosition,e.oenormShortText=this.oenormShortText,e.oenormShortTextAddition=this.oenormShortTextAddition,e}}!function(e){e.Unknown="Unknown",e.FreeText="FreeText",e.AdditionDescription="AdditionDescription"}(OenormOriginCodeDto||(OenormOriginCodeDto={})),function(e){e.Unknown="Unknown",e.Recognized="Recognized",e.Filed="Filed",e.Offered="Offered",e.Withdrawn="Withdrawn",e.Rejected="Rejected",e.RejectionObjected="RejectionObjected",e.FormallyAcknowledged="FormallyAcknowledged",e.Approved="Approved"}(AddendumStatusDto||(AddendumStatusDto={})),function(e){e.Undefined="Undefined",e.AllPreviousMarkedPositions="AllPreviousMarkedPositions",e.AllPreviousPositions="AllPreviousPositions",e.ReferencedPositions="ReferencedPositions"}(PositionComplementingTypeDto||(PositionComplementingTypeDto={}));class PositionHoldOutPropertiesDto{id;holdOutType;holdOutDuration;holdOutDurationUnit;basePositionReferences;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e&&(this.id=e.id,this.holdOutType=e.holdOutType,this.holdOutDuration=e.holdOutDuration,this.holdOutDurationUnit=e.holdOutDurationUnit,Array.isArray(e.basePositionReferences))){this.basePositionReferences=[];for(let t of e.basePositionReferences)this.basePositionReferences.push(t)}}static fromJS(e){e="object"==typeof e?e:{};let t=new PositionHoldOutPropertiesDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.holdOutType=this.holdOutType,e.holdOutDuration=this.holdOutDuration,e.holdOutDurationUnit=this.holdOutDurationUnit,Array.isArray(this.basePositionReferences)){e.basePositionReferences=[];for(let t of this.basePositionReferences)e.basePositionReferences.push(t)}return e}}!function(e){e.Unknown="Unknown",e.Base="Base",e.Extension="Extension",e.Rent="Rent"}(HoldOutTypeDto||(HoldOutTypeDto={})),function(e){e.Unknown="Unknown",e.Minutes="Minutes",e.Hours="Hours",e.Days="Days",e.Weeks="Weeks",e.Months="Months"}(HoldOutDurationUnitDto||(HoldOutDurationUnitDto={}));class PriceCatalogueDataDto{id;unitPriceFrom;unitPriceTo;unitPriceAverage;wagePriceFrom;wagePriceTo;wagePriceAverage;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.id=e.id,this.unitPriceFrom=e.unitPriceFrom,this.unitPriceTo=e.unitPriceTo,this.unitPriceAverage=e.unitPriceAverage,this.wagePriceFrom=e.wagePriceFrom,this.wagePriceTo=e.wagePriceTo,this.wagePriceAverage=e.wagePriceAverage)}static fromJS(e){e="object"==typeof e?e:{};let t=new PriceCatalogueDataDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).id=this.id,e.unitPriceFrom=this.unitPriceFrom,e.unitPriceTo=this.unitPriceTo,e.unitPriceAverage=this.unitPriceAverage,e.wagePriceFrom=this.wagePriceFrom,e.wagePriceTo=this.wagePriceTo,e.wagePriceAverage=this.wagePriceAverage,e}}class ExecutionDescriptionDto extends IElementDto{blocks;label;identifier;elementType="ExecutionDescription";elementTypeDiscriminator="ExecutionDescription";constructor(e){super(e),this._discriminator="ExecutionDescriptionDto"}init(e){if(void 0!==super.init&&super.init(e),e){if(Array.isArray(e.blocks)){this.blocks=[];for(let t of e.blocks)this.blocks.push(NoteTextDto.fromJS(t))}this.label=e.label,this.identifier=e.identifier,this.elementType=e.elementType}}static fromJS(e){e="object"==typeof e?e:{};let t=new ExecutionDescriptionDto;return t.init(e),t}toJSON(e){if(e="object"==typeof e?e:{},Array.isArray(this.blocks)){e.blocks=[];for(let t of this.blocks)void 0!==t.toJSON?e.blocks.push(t.toJSON()):e.blocks.push(t)}return e.label=this.label,e.identifier=this.identifier,e.elementType=this.elementType,void 0!==super.toJSON&&super.toJSON(e),e}}class NoteTextDto extends IElementDto{isOpeningText;isClosingText;shortText;htmlShortText;additionType;longText;htmlLongText;identifier;standardizedDescription;elementType="NoteText";elementTypeDiscriminator="NoteText";descriptionId;oenormNoteTextProperties;hasBidderCommentInHtmlLongText;constructor(e){super(e),e&&(this.standardizedDescription=e.standardizedDescription&&!e.standardizedDescription.toJSON?new StandardizedDescriptionDto(e.standardizedDescription):this.standardizedDescription,this.oenormNoteTextProperties=e.oenormNoteTextProperties&&!e.oenormNoteTextProperties.toJSON?new OenormNoteTextPropertiesDto(e.oenormNoteTextProperties):this.oenormNoteTextProperties),this._discriminator="NoteTextDto"}init(e){void 0!==super.init&&super.init(e),e&&(this.isOpeningText=e.isOpeningText,this.isClosingText=e.isClosingText,this.shortText=e.shortText,this.htmlShortText=e.htmlShortText,this.additionType=e.additionType,this.longText=e.longText,this.htmlLongText=e.htmlLongText,this.identifier=e.identifier,this.standardizedDescription=e.standardizedDescription?StandardizedDescriptionDto.fromJS(e.standardizedDescription):void 0,this.elementType=e.elementType,this.descriptionId=e.descriptionId,this.oenormNoteTextProperties=e.oenormNoteTextProperties?OenormNoteTextPropertiesDto.fromJS(e.oenormNoteTextProperties):void 0,this.hasBidderCommentInHtmlLongText=e.hasBidderCommentInHtmlLongText)}static fromJS(e){e="object"==typeof e?e:{};let t=new NoteTextDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).isOpeningText=this.isOpeningText,e.isClosingText=this.isClosingText,e.shortText=this.shortText,e.htmlShortText=this.htmlShortText,e.additionType=this.additionType,e.longText=this.longText,e.htmlLongText=this.htmlLongText,e.identifier=this.identifier,this.standardizedDescription?void 0!==this.standardizedDescription.toJSON?e.standardizedDescription=this.standardizedDescription.toJSON():e.standardizedDescription=this.standardizedDescription:e.standardizedDescription=void 0,e.elementType=this.elementType,e.descriptionId=this.descriptionId,this.oenormNoteTextProperties?void 0!==this.oenormNoteTextProperties.toJSON?e.oenormNoteTextProperties=this.oenormNoteTextProperties.toJSON():e.oenormNoteTextProperties=this.oenormNoteTextProperties:e.oenormNoteTextProperties=void 0,e.hasBidderCommentInHtmlLongText=this.hasBidderCommentInHtmlLongText,void 0!==super.toJSON&&super.toJSON(e),e}}class OenormNoteTextPropertiesDto{originCode;openingTextIsFreeText;isUndividedPosition;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.originCode=e.originCode,this.openingTextIsFreeText=e.openingTextIsFreeText,this.isUndividedPosition=e.isUndividedPosition)}static fromJS(e){e="object"==typeof e?e:{};let t=new OenormNoteTextPropertiesDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).originCode=this.originCode,e.openingTextIsFreeText=this.openingTextIsFreeText,e.isUndividedPosition=this.isUndividedPosition,e}}class ServiceSpecificationGroupDto extends IElementDto{projectHourlyWage;projectTaxRate;projectPriceComponents;projectItemNumberSchema;elements;projectLabourTimeLabel;containsDuplicateItemNumbers;containsDuplicateElementIds;ignoreDuplicateItemNumbers;ignoreProjectCataloguePropagation;ignoreDuplicateElementIds;totalPriceGrossByTaxRate;ignoreChildPriceUpdates;deductedPrice;deductionFactor;absoluteDeduction;totalPrice;totalPriceGross;totalPriceGrossDeducted;priceType;shortText;comissionStatus;itemNumber;elementType="ServiceSpecificationGroup";elementTypeDiscriminator="ServiceSpecificationGroup";isLot;alternativeTo;oenormProperties;hierarchyLevel;addendumStatus;alternativeIdentifier;alternativeGroupIdentifier;constructor(e){if(super(e),e){if(this.projectItemNumberSchema=e.projectItemNumberSchema&&!e.projectItemNumberSchema.toJSON?new ItemNumberSchemaDto(e.projectItemNumberSchema):this.projectItemNumberSchema,e.totalPriceGrossByTaxRate){this.totalPriceGrossByTaxRate=[];for(let t=0;t<e.totalPriceGrossByTaxRate.length;t++){let i=e.totalPriceGrossByTaxRate[t];this.totalPriceGrossByTaxRate[t]=i&&!i.toJSON?new GrossPriceComponentDto(i):i}}this.itemNumber=e.itemNumber&&!e.itemNumber.toJSON?new ItemNumberDto(e.itemNumber):this.itemNumber,this.oenormProperties=e.oenormProperties&&!e.oenormProperties.toJSON?new OenormPropertiesDto(e.oenormProperties):this.oenormProperties}this._discriminator="ServiceSpecificationGroupDto"}init(e){if(void 0!==super.init&&super.init(e),e){if(this.projectHourlyWage=e.projectHourlyWage,this.projectTaxRate=e.projectTaxRate,Array.isArray(e.projectPriceComponents)){this.projectPriceComponents=[];for(let t of e.projectPriceComponents)this.projectPriceComponents.push(t)}if(this.projectItemNumberSchema=e.projectItemNumberSchema?ItemNumberSchemaDto.fromJS(e.projectItemNumberSchema):void 0,Array.isArray(e.elements)){this.elements=[];for(let t of e.elements)this.elements.push(IElementDto.fromJS(t))}if(this.projectLabourTimeLabel=e.projectLabourTimeLabel,this.containsDuplicateItemNumbers=e.containsDuplicateItemNumbers,this.containsDuplicateElementIds=e.containsDuplicateElementIds,this.ignoreDuplicateItemNumbers=e.ignoreDuplicateItemNumbers,this.ignoreProjectCataloguePropagation=e.ignoreProjectCataloguePropagation,this.ignoreDuplicateElementIds=e.ignoreDuplicateElementIds,Array.isArray(e.totalPriceGrossByTaxRate)){this.totalPriceGrossByTaxRate=[];for(let t of e.totalPriceGrossByTaxRate)this.totalPriceGrossByTaxRate.push(GrossPriceComponentDto.fromJS(t))}this.ignoreChildPriceUpdates=e.ignoreChildPriceUpdates,this.deductedPrice=e.deductedPrice,this.deductionFactor=e.deductionFactor,this.absoluteDeduction=e.absoluteDeduction,this.totalPrice=e.totalPrice,this.totalPriceGross=e.totalPriceGross,this.totalPriceGrossDeducted=e.totalPriceGrossDeducted,this.priceType=e.priceType,this.shortText=e.shortText,this.comissionStatus=e.comissionStatus,this.itemNumber=e.itemNumber?ItemNumberDto.fromJS(e.itemNumber):void 0,this.elementType=e.elementType,this.isLot=e.isLot,this.alternativeTo=e.alternativeTo,this.oenormProperties=e.oenormProperties?OenormPropertiesDto.fromJS(e.oenormProperties):void 0,this.hierarchyLevel=e.hierarchyLevel,this.addendumStatus=e.addendumStatus,this.alternativeIdentifier=e.alternativeIdentifier,this.alternativeGroupIdentifier=e.alternativeGroupIdentifier}}static fromJS(e){e="object"==typeof e?e:{};let t=new ServiceSpecificationGroupDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).projectHourlyWage=this.projectHourlyWage,e.projectTaxRate=this.projectTaxRate,Array.isArray(this.projectPriceComponents)){e.projectPriceComponents=[];for(let t of this.projectPriceComponents)e.projectPriceComponents.push(t)}if(this.projectItemNumberSchema?void 0!==this.projectItemNumberSchema.toJSON?e.projectItemNumberSchema=this.projectItemNumberSchema.toJSON():e.projectItemNumberSchema=this.projectItemNumberSchema:e.projectItemNumberSchema=void 0,Array.isArray(this.elements)){e.elements=[];for(let t of this.elements)void 0!==t.toJSON?e.elements.push(t.toJSON()):e.elements.push(t)}if(e.projectLabourTimeLabel=this.projectLabourTimeLabel,e.containsDuplicateItemNumbers=this.containsDuplicateItemNumbers,e.containsDuplicateElementIds=this.containsDuplicateElementIds,e.ignoreDuplicateItemNumbers=this.ignoreDuplicateItemNumbers,e.ignoreProjectCataloguePropagation=this.ignoreProjectCataloguePropagation,e.ignoreDuplicateElementIds=this.ignoreDuplicateElementIds,Array.isArray(this.totalPriceGrossByTaxRate)){e.totalPriceGrossByTaxRate=[];for(let t of this.totalPriceGrossByTaxRate)void 0!==t.toJSON?e.totalPriceGrossByTaxRate.push(t.toJSON()):e.totalPriceGrossByTaxRate.push(t)}return e.ignoreChildPriceUpdates=this.ignoreChildPriceUpdates,e.deductedPrice=this.deductedPrice,e.deductionFactor=this.deductionFactor,e.absoluteDeduction=this.absoluteDeduction,e.totalPrice=this.totalPrice,e.totalPriceGross=this.totalPriceGross,e.totalPriceGrossDeducted=this.totalPriceGrossDeducted,e.priceType=this.priceType,e.shortText=this.shortText,e.comissionStatus=this.comissionStatus,this.itemNumber?void 0!==this.itemNumber.toJSON?e.itemNumber=this.itemNumber.toJSON():e.itemNumber=this.itemNumber:e.itemNumber=void 0,e.elementType=this.elementType,e.isLot=this.isLot,e.alternativeTo=this.alternativeTo,this.oenormProperties?void 0!==this.oenormProperties.toJSON?e.oenormProperties=this.oenormProperties.toJSON():e.oenormProperties=this.oenormProperties:e.oenormProperties=void 0,e.hierarchyLevel=this.hierarchyLevel,e.addendumStatus=this.addendumStatus,e.alternativeIdentifier=this.alternativeIdentifier,e.alternativeGroupIdentifier=this.alternativeGroupIdentifier,void 0!==super.toJSON&&super.toJSON(e),e}}class GrossPriceComponentDto{taxRate;deductionFactor;totalNet;totalDeducted;totalTax;totalGross;totalGrossDeducted;totalTaxDeducted;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.taxRate=e.taxRate,this.deductionFactor=e.deductionFactor,this.totalNet=e.totalNet,this.totalDeducted=e.totalDeducted,this.totalTax=e.totalTax,this.totalGross=e.totalGross,this.totalGrossDeducted=e.totalGrossDeducted,this.totalTaxDeducted=e.totalTaxDeducted)}static fromJS(e){e="object"==typeof e?e:{};let t=new GrossPriceComponentDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).taxRate=this.taxRate,e.deductionFactor=this.deductionFactor,e.totalNet=this.totalNet,e.totalDeducted=this.totalDeducted,e.totalTax=this.totalTax,e.totalGross=this.totalGross,e.totalGrossDeducted=this.totalGrossDeducted,e.totalTaxDeducted=this.totalTaxDeducted,e}}class OenormPropertiesDto{originCode;openingTextIsFreeText;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.originCode=e.originCode,this.openingTextIsFreeText=e.openingTextIsFreeText)}static fromJS(e){e="object"==typeof e?e:{};let t=new OenormPropertiesDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).originCode=this.originCode,e.openingTextIsFreeText=this.openingTextIsFreeText,e}}!function(e){e.Undefined="Undefined",e.Base="Base",e.CostEstimate="CostEstimate",e.OfferRequest="OfferRequest",e.Offer="Offer",e.SideOffer="SideOffer",e.Grant="Grant"}(ExchangePhaseDto||(ExchangePhaseDto={})),function(e){e.Self="Self",e.Gaeb90="Gaeb90",e.Gaeb2000="Gaeb2000",e.GaebXml="GaebXml",e.Oenorm="Oenorm",e.Reb="Reb",e.Sia="Sia"}(OriginDto||(OriginDto={}));class PriceInformationDto{id;hourlyWage;deductionFactor;flatSum;taxRate;hasUnsetTaxRate;tradeDiscounts;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.tradeDiscounts){this.tradeDiscounts=[];for(let t=0;t<e.tradeDiscounts.length;t++){let i=e.tradeDiscounts[t];this.tradeDiscounts[t]=i&&!i.toJSON?new TradeDiscountDto(i):i}}}}init(e){if(e&&(this.id=e.id,this.hourlyWage=e.hourlyWage,this.deductionFactor=e.deductionFactor,this.flatSum=e.flatSum,this.taxRate=e.taxRate,this.hasUnsetTaxRate=e.hasUnsetTaxRate,Array.isArray(e.tradeDiscounts))){this.tradeDiscounts=[];for(let t of e.tradeDiscounts)this.tradeDiscounts.push(TradeDiscountDto.fromJS(t))}}static fromJS(e){e="object"==typeof e?e:{};let t=new PriceInformationDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.hourlyWage=this.hourlyWage,e.deductionFactor=this.deductionFactor,e.flatSum=this.flatSum,e.taxRate=this.taxRate,e.hasUnsetTaxRate=this.hasUnsetTaxRate,Array.isArray(this.tradeDiscounts)){e.tradeDiscounts=[];for(let t of this.tradeDiscounts)void 0!==t.toJSON?e.tradeDiscounts.push(t.toJSON()):e.tradeDiscounts.push(t)}return e}}class TradeDiscountDto{id;deadline;rate;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.id=e.id,this.deadline=e.deadline,this.rate=e.rate)}static fromJS(e){e="object"==typeof e?e:{};let t=new TradeDiscountDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).id=this.id,e.deadline=this.deadline,e.rate=this.rate,e}}class WarrantyDurationDto{duration;unit;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.duration=e.duration,this.unit=e.unit)}static fromJS(e){e="object"==typeof e?e:{};let t=new WarrantyDurationDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).duration=this.duration,e.unit=this.unit,e}}!function(e){e.Months="Months",e.Years="Years"}(DurationUnitDto||(DurationUnitDto={}));class ServiceSpecificationCommercePropertiesDto{fixedPriceDate;deliveryVoucherDate;deliveryDate;inquiryNumber;offerNumber;orderNumber;orderConfirmationNumber;deliveryNumber;customerReferenceNumber;supplierReferenceNumber;shippingType;inquiryType;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.fixedPriceDate=e.fixedPriceDate?new Date(e.fixedPriceDate.toString()):void 0,this.deliveryVoucherDate=e.deliveryVoucherDate?new Date(e.deliveryVoucherDate.toString()):void 0,this.deliveryDate=e.deliveryDate?new Date(e.deliveryDate.toString()):void 0,this.inquiryNumber=e.inquiryNumber,this.offerNumber=e.offerNumber,this.orderNumber=e.orderNumber,this.orderConfirmationNumber=e.orderConfirmationNumber,this.deliveryNumber=e.deliveryNumber,this.customerReferenceNumber=e.customerReferenceNumber,this.supplierReferenceNumber=e.supplierReferenceNumber,this.shippingType=e.shippingType,this.inquiryType=e.inquiryType)}static fromJS(e){e="object"==typeof e?e:{};let t=new ServiceSpecificationCommercePropertiesDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).fixedPriceDate=this.fixedPriceDate?this.fixedPriceDate.toISOString():void 0,e.deliveryVoucherDate=this.deliveryVoucherDate?this.deliveryVoucherDate.toISOString():void 0,e.deliveryDate=this.deliveryDate?this.deliveryDate.toISOString():void 0,e.inquiryNumber=this.inquiryNumber,e.offerNumber=this.offerNumber,e.orderNumber=this.orderNumber,e.orderConfirmationNumber=this.orderConfirmationNumber,e.deliveryNumber=this.deliveryNumber,e.customerReferenceNumber=this.customerReferenceNumber,e.supplierReferenceNumber=this.supplierReferenceNumber,e.shippingType=this.shippingType,e.inquiryType=this.inquiryType,e}}!function(e){e.Unknown="Unknown",e.Project="Project",e.Immediate="Immediate",e.Exhibition="Exhibition"}(CommerceInquiryTypeDto||(CommerceInquiryTypeDto={}));class ProjectDto{id;priceAccuracy;unitPriceAccuracy;forceStrictTotals;priceRoundingMode;projectInformation;serviceSpecifications;gaebXmlId;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(this.projectInformation=e.projectInformation&&!e.projectInformation.toJSON?new ProjectInformationDto(e.projectInformation):this.projectInformation,e.serviceSpecifications){this.serviceSpecifications=[];for(let t=0;t<e.serviceSpecifications.length;t++){let i=e.serviceSpecifications[t];this.serviceSpecifications[t]=i&&!i.toJSON?new ServiceSpecificationDto(i):i}}}}init(e){if(e){if(this.id=e.id,this.priceAccuracy=e.priceAccuracy,this.unitPriceAccuracy=e.unitPriceAccuracy,this.forceStrictTotals=e.forceStrictTotals,this.priceRoundingMode=e.priceRoundingMode,this.projectInformation=e.projectInformation?ProjectInformationDto.fromJS(e.projectInformation):void 0,Array.isArray(e.serviceSpecifications)){this.serviceSpecifications=[];for(let t of e.serviceSpecifications)this.serviceSpecifications.push(ServiceSpecificationDto.fromJS(t))}this.gaebXmlId=e.gaebXmlId}}static fromJS(e){e="object"==typeof e?e:{};let t=new ProjectDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.priceAccuracy=this.priceAccuracy,e.unitPriceAccuracy=this.unitPriceAccuracy,e.forceStrictTotals=this.forceStrictTotals,e.priceRoundingMode=this.priceRoundingMode,this.projectInformation?void 0!==this.projectInformation.toJSON?e.projectInformation=this.projectInformation.toJSON():e.projectInformation=this.projectInformation:e.projectInformation=void 0,Array.isArray(this.serviceSpecifications)){e.serviceSpecifications=[];for(let t of this.serviceSpecifications)void 0!==t.toJSON?e.serviceSpecifications.push(t.toJSON()):e.serviceSpecifications.push(t)}return e.gaebXmlId=this.gaebXmlId,e}}const avaModelsVersion={version:"2.26.0-beta0044",commitInfo:"Branch.develop.Sha.749474fb7a66bf8f39963a14490ce4139f6b7386",commitDate:"2025-08-14",commitHash:"749474fb7a66bf8f39963a14490ce4139f6b7386",informationalVersion:"2.26.0-beta.44+Branch.develop.Sha.749474fb7a66bf8f39963a14490ce4139f6b7386",buildDateUtc:new Date(Date.UTC(2025,7,14,10,32,51))};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};
|
|
1
|
+
var PriceRoundingModeDto,ItemNumberTypeDto,ItemNumberSchemaTierAlignmentDto,ItemNumberSchemaTierTypeDto,PriceComponentTypeDto,AwardTypeDto,SpecialAwardKindDto,CatalogueTypeDto,AdditionTypeDto,StandardReferenceTypeDto,ComissionStatusDto,PositionTypeDto,PriceTypeDto,ServiceTypeDto,OenormOriginCodeDto,AddendumStatusDto,PositionComplementingTypeDto,HoldOutTypeDto,HoldOutDurationUnitDto,ExchangePhaseDto,OriginDto,DurationUnitDto,CommerceInquiryTypeDto;!function(e){e.Normal="Normal",e.Floor="Floor",e.Ceiling="Ceiling"}(PriceRoundingModeDto||(PriceRoundingModeDto={}));class ProjectInformationDto{buyer;description;descriptionShort;name;site;itemNumberSchema;currencyShort;currencyLong;labourTimeLabel;priceComponents;priceComponentTypes;bidderCommentAllowed;sideOffersAllowed;awardType;specialAwardKind;requesters;notificationSites;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(this.buyer=e.buyer&&!e.buyer.toJSON?new PartyInformationDto(e.buyer):this.buyer,this.site=e.site&&!e.site.toJSON?new PartyInformationDto(e.site):this.site,this.itemNumberSchema=e.itemNumberSchema&&!e.itemNumberSchema.toJSON?new ItemNumberSchemaDto(e.itemNumberSchema):this.itemNumberSchema,e.requesters){this.requesters=[];for(let t=0;t<e.requesters.length;t++){let i=e.requesters[t];this.requesters[t]=i&&!i.toJSON?new PartyInformationDto(i):i}}if(e.notificationSites){this.notificationSites=[];for(let t=0;t<e.notificationSites.length;t++){let i=e.notificationSites[t];this.notificationSites[t]=i&&!i.toJSON?new PartyInformationDto(i):i}}}}init(e){if(e){if(this.buyer=e.buyer?PartyInformationDto.fromJS(e.buyer):void 0,this.description=e.description,this.descriptionShort=e.descriptionShort,this.name=e.name,this.site=e.site?PartyInformationDto.fromJS(e.site):void 0,this.itemNumberSchema=e.itemNumberSchema?ItemNumberSchemaDto.fromJS(e.itemNumberSchema):void 0,this.currencyShort=e.currencyShort,this.currencyLong=e.currencyLong,this.labourTimeLabel=e.labourTimeLabel,Array.isArray(e.priceComponents)){this.priceComponents=[];for(let t of e.priceComponents)this.priceComponents.push(t)}if(e.priceComponentTypes){this.priceComponentTypes={};for(let t in e.priceComponentTypes)e.priceComponentTypes.hasOwnProperty(t)&&(this.priceComponentTypes[t]=e.priceComponentTypes[t])}if(this.bidderCommentAllowed=e.bidderCommentAllowed,this.sideOffersAllowed=e.sideOffersAllowed,this.awardType=e.awardType,this.specialAwardKind=e.specialAwardKind,Array.isArray(e.requesters)){this.requesters=[];for(let t of e.requesters)this.requesters.push(PartyInformationDto.fromJS(t))}if(Array.isArray(e.notificationSites)){this.notificationSites=[];for(let t of e.notificationSites)this.notificationSites.push(PartyInformationDto.fromJS(t))}}}static fromJS(e){e="object"==typeof e?e:{};let t=new ProjectInformationDto;return t.init(e),t}toJSON(e){if(e="object"==typeof e?e:{},this.buyer?void 0!==this.buyer.toJSON?e.buyer=this.buyer.toJSON():e.buyer=this.buyer:e.buyer=void 0,e.description=this.description,e.descriptionShort=this.descriptionShort,e.name=this.name,this.site?void 0!==this.site.toJSON?e.site=this.site.toJSON():e.site=this.site:e.site=void 0,this.itemNumberSchema?void 0!==this.itemNumberSchema.toJSON?e.itemNumberSchema=this.itemNumberSchema.toJSON():e.itemNumberSchema=this.itemNumberSchema:e.itemNumberSchema=void 0,e.currencyShort=this.currencyShort,e.currencyLong=this.currencyLong,e.labourTimeLabel=this.labourTimeLabel,Array.isArray(this.priceComponents)){e.priceComponents=[];for(let t of this.priceComponents)e.priceComponents.push(t)}if(this.priceComponentTypes){e.priceComponentTypes={};for(let t in this.priceComponentTypes)this.priceComponentTypes.hasOwnProperty(t)&&(e.priceComponentTypes[t]=this.priceComponentTypes[t])}if(e.bidderCommentAllowed=this.bidderCommentAllowed,e.sideOffersAllowed=this.sideOffersAllowed,e.awardType=this.awardType,e.specialAwardKind=this.specialAwardKind,Array.isArray(this.requesters)){e.requesters=[];for(let t of this.requesters)void 0!==t.toJSON?e.requesters.push(t.toJSON()):e.requesters.push(t)}if(Array.isArray(this.notificationSites)){e.notificationSites=[];for(let t of this.notificationSites)void 0!==t.toJSON?e.notificationSites.push(t.toJSON()):e.notificationSites.push(t)}return e}}class PartyInformationDto{id;name;street;zipCode;city;country;identifier;remarks;email;phone;contactPersonName;awardIdentifier;isInEuropeanEconomicArea;vatId;fax;countryCode;creditorOrDebtorIdentifier;globalLocationNumber;bankingInformation;registrationNumber;taxId;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.bankingInformation){this.bankingInformation=[];for(let t=0;t<e.bankingInformation.length;t++){let i=e.bankingInformation[t];this.bankingInformation[t]=i&&!i.toJSON?new BankingInformationDto(i):i}}}}init(e){if(e){if(this.id=e.id,this.name=e.name,this.street=e.street,this.zipCode=e.zipCode,this.city=e.city,this.country=e.country,this.identifier=e.identifier,this.remarks=e.remarks,this.email=e.email,this.phone=e.phone,this.contactPersonName=e.contactPersonName,this.awardIdentifier=e.awardIdentifier,this.isInEuropeanEconomicArea=e.isInEuropeanEconomicArea,this.vatId=e.vatId,this.fax=e.fax,this.countryCode=e.countryCode,this.creditorOrDebtorIdentifier=e.creditorOrDebtorIdentifier,this.globalLocationNumber=e.globalLocationNumber,Array.isArray(e.bankingInformation)){this.bankingInformation=[];for(let t of e.bankingInformation)this.bankingInformation.push(BankingInformationDto.fromJS(t))}this.registrationNumber=e.registrationNumber,this.taxId=e.taxId}}static fromJS(e){e="object"==typeof e?e:{};let t=new PartyInformationDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.name=this.name,e.street=this.street,e.zipCode=this.zipCode,e.city=this.city,e.country=this.country,e.identifier=this.identifier,e.remarks=this.remarks,e.email=this.email,e.phone=this.phone,e.contactPersonName=this.contactPersonName,e.awardIdentifier=this.awardIdentifier,e.isInEuropeanEconomicArea=this.isInEuropeanEconomicArea,e.vatId=this.vatId,e.fax=this.fax,e.countryCode=this.countryCode,e.creditorOrDebtorIdentifier=this.creditorOrDebtorIdentifier,e.globalLocationNumber=this.globalLocationNumber,Array.isArray(this.bankingInformation)){e.bankingInformation=[];for(let t of this.bankingInformation)void 0!==t.toJSON?e.bankingInformation.push(t.toJSON()):e.bankingInformation.push(t)}return e.registrationNumber=this.registrationNumber,e.taxId=this.taxId,e}}class BankingInformationDto{id;name;iban;accountNumber;bic;routingNumber;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.id=e.id,this.name=e.name,this.iban=e.iban,this.accountNumber=e.accountNumber,this.bic=e.bic,this.routingNumber=e.routingNumber)}static fromJS(e){e="object"==typeof e?e:{};let t=new BankingInformationDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).id=this.id,e.name=this.name,e.iban=this.iban,e.accountNumber=this.accountNumber,e.bic=this.bic,e.routingNumber=this.routingNumber,e}}class ItemNumberSchemaDto{totalLength;tiers;separator;filler;identifier;skipNonExistingLevelsInPositionItemNumbers;skippedTiersFiller;schemaIsCorrectlyDefined;allowUpperCaseLettering;disableLeftPaddingTiersWithFiller;disableItemNumberIdentifierTransformations;disableItemNumberIdentifierTransformationsOnlyForAlphanumericTiers;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.tiers){this.tiers=[];for(let t=0;t<e.tiers.length;t++){let i=e.tiers[t];this.tiers[t]=i&&!i.toJSON?new ItemNumberSchemaTierDto(i):i}}}}init(e){if(e){if(this.totalLength=e.totalLength,Array.isArray(e.tiers)){this.tiers=[];for(let t of e.tiers)this.tiers.push(ItemNumberSchemaTierDto.fromJS(t))}this.separator=e.separator,this.filler=e.filler,this.identifier=e.identifier,this.skipNonExistingLevelsInPositionItemNumbers=e.skipNonExistingLevelsInPositionItemNumbers,this.skippedTiersFiller=e.skippedTiersFiller,this.schemaIsCorrectlyDefined=e.schemaIsCorrectlyDefined,this.allowUpperCaseLettering=e.allowUpperCaseLettering,this.disableLeftPaddingTiersWithFiller=e.disableLeftPaddingTiersWithFiller,this.disableItemNumberIdentifierTransformations=e.disableItemNumberIdentifierTransformations,this.disableItemNumberIdentifierTransformationsOnlyForAlphanumericTiers=e.disableItemNumberIdentifierTransformationsOnlyForAlphanumericTiers}}static fromJS(e){e="object"==typeof e?e:{};let t=new ItemNumberSchemaDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).totalLength=this.totalLength,Array.isArray(this.tiers)){e.tiers=[];for(let t of this.tiers)void 0!==t.toJSON?e.tiers.push(t.toJSON()):e.tiers.push(t)}return e.separator=this.separator,e.filler=this.filler,e.identifier=this.identifier,e.skipNonExistingLevelsInPositionItemNumbers=this.skipNonExistingLevelsInPositionItemNumbers,e.skippedTiersFiller=this.skippedTiersFiller,e.schemaIsCorrectlyDefined=this.schemaIsCorrectlyDefined,e.allowUpperCaseLettering=this.allowUpperCaseLettering,e.disableLeftPaddingTiersWithFiller=this.disableLeftPaddingTiersWithFiller,e.disableItemNumberIdentifierTransformations=this.disableItemNumberIdentifierTransformations,e.disableItemNumberIdentifierTransformationsOnlyForAlphanumericTiers=this.disableItemNumberIdentifierTransformationsOnlyForAlphanumericTiers,e}}class ItemNumberSchemaTierDto{length;type;alignment;tierType;isLot;increment;tierName;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.length=e.length,this.type=e.type,this.alignment=e.alignment,this.tierType=e.tierType,this.isLot=e.isLot,this.increment=e.increment,this.tierName=e.tierName)}static fromJS(e){e="object"==typeof e?e:{};let t=new ItemNumberSchemaTierDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).length=this.length,e.type=this.type,e.alignment=this.alignment,e.tierType=this.tierType,e.isLot=this.isLot,e.increment=this.increment,e.tierName=this.tierName,e}}!function(e){e.Numeric="Numeric",e.Alphanumeric="Alphanumeric"}(ItemNumberTypeDto||(ItemNumberTypeDto={})),function(e){e.Undefined="Undefined",e.Left="Left",e.Right="Right"}(ItemNumberSchemaTierAlignmentDto||(ItemNumberSchemaTierAlignmentDto={})),function(e){e.Undefined="Undefined",e.Index="Index",e.Position="Position",e.Group="Group",e.Lot="Lot"}(ItemNumberSchemaTierTypeDto||(ItemNumberSchemaTierTypeDto={})),function(e){e.Unknown="Unknown",e.Wages="Wages",e.Materials="Materials",e.Plant="Plant",e.Miscellaneous="Miscellaneous"}(PriceComponentTypeDto||(PriceComponentTypeDto={})),function(e){e.Unspecified="Unspecified",e.OpenProcurement="OpenProcurement",e.ClosedProducrement="ClosedProducrement",e.NegotiationProcurementWithoutPublicAnnouncement="NegotiationProcurementWithoutPublicAnnouncement",e.NegotiationProcurement="NegotiationProcurement",e.OpenCall="OpenCall",e.SelectedCallWithoutPublicCompetition="SelectedCallWithoutPublicCompetition",e.SelectedCall="SelectedCall",e.DirectAward="DirectAward",e.InternationalNATOProcurement="InternationalNATOProcurement",e.CompetitiveDialog="CompetitiveDialog"}(AwardTypeDto||(AwardTypeDto={})),function(e){e.Unspecified="Unspecified",e.MaintenanceContract="MaintenanceContract",e.OutlineContract="OutlineContract",e.OutlineForMaintenanceContract="OutlineForMaintenanceContract"}(SpecialAwardKindDto||(SpecialAwardKindDto={}));class ServiceSpecificationDto{id;projectHourlyWage;projectTaxRate;projectPriceComponents;projectItemNumberSchema;elements;projectLabourTimeLabel;containsDuplicateItemNumbers;containsDuplicateElementIds;ignoreDuplicateItemNumbers;ignoreProjectCataloguePropagation;ignoreDuplicateElementIds;totalPriceGrossByTaxRate;ignoreChildPriceUpdates;deductedPrice;deductionFactor;absoluteDeduction;totalPrice;totalPriceGross;totalPriceGrossDeducted;priceType;bidder;bidderDiscriminator;gaebXmlId;projectInformation;exchangePhase;origin;originDetail;creationDate;offerByDate;decisionDate;bidDate;warrantyBondPercentage;executionGuaranteePercentage;submissionLocation;description;name;priceInformation;projectCatalogues;catalogueReferences;plannedExecutionStart;plannedExecutionEnd;contractDate;contractIdentifier;warrantyDuration;warrantyEnd;approvalDate;typeOfApproval;addendumNumber;addendumStatus;commerceProperties;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(this.projectItemNumberSchema=e.projectItemNumberSchema&&!e.projectItemNumberSchema.toJSON?new ItemNumberSchemaDto(e.projectItemNumberSchema):this.projectItemNumberSchema,e.totalPriceGrossByTaxRate){this.totalPriceGrossByTaxRate=[];for(let t=0;t<e.totalPriceGrossByTaxRate.length;t++){let i=e.totalPriceGrossByTaxRate[t];this.totalPriceGrossByTaxRate[t]=i&&!i.toJSON?new GrossPriceComponentDto(i):i}}if(this.bidder=e.bidder&&!e.bidder.toJSON?new PartyInformationDto(e.bidder):this.bidder,this.projectInformation=e.projectInformation&&!e.projectInformation.toJSON?new ProjectInformationDto(e.projectInformation):this.projectInformation,this.priceInformation=e.priceInformation&&!e.priceInformation.toJSON?new PriceInformationDto(e.priceInformation):this.priceInformation,e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}if(e.catalogueReferences){this.catalogueReferences=[];for(let t=0;t<e.catalogueReferences.length;t++){let i=e.catalogueReferences[t];this.catalogueReferences[t]=i&&!i.toJSON?new CatalogueReferenceDto(i):i}}this.warrantyDuration=e.warrantyDuration&&!e.warrantyDuration.toJSON?new WarrantyDurationDto(e.warrantyDuration):this.warrantyDuration,this.commerceProperties=e.commerceProperties&&!e.commerceProperties.toJSON?new ServiceSpecificationCommercePropertiesDto(e.commerceProperties):this.commerceProperties}}init(e){if(e){if(this.id=e.id,this.projectHourlyWage=e.projectHourlyWage,this.projectTaxRate=e.projectTaxRate,Array.isArray(e.projectPriceComponents)){this.projectPriceComponents=[];for(let t of e.projectPriceComponents)this.projectPriceComponents.push(t)}if(this.projectItemNumberSchema=e.projectItemNumberSchema?ItemNumberSchemaDto.fromJS(e.projectItemNumberSchema):void 0,Array.isArray(e.elements)){this.elements=[];for(let t of e.elements)this.elements.push(IElementDto.fromJS(t))}if(this.projectLabourTimeLabel=e.projectLabourTimeLabel,this.containsDuplicateItemNumbers=e.containsDuplicateItemNumbers,this.containsDuplicateElementIds=e.containsDuplicateElementIds,this.ignoreDuplicateItemNumbers=e.ignoreDuplicateItemNumbers,this.ignoreProjectCataloguePropagation=e.ignoreProjectCataloguePropagation,this.ignoreDuplicateElementIds=e.ignoreDuplicateElementIds,Array.isArray(e.totalPriceGrossByTaxRate)){this.totalPriceGrossByTaxRate=[];for(let t of e.totalPriceGrossByTaxRate)this.totalPriceGrossByTaxRate.push(GrossPriceComponentDto.fromJS(t))}if(this.ignoreChildPriceUpdates=e.ignoreChildPriceUpdates,this.deductedPrice=e.deductedPrice,this.deductionFactor=e.deductionFactor,this.absoluteDeduction=e.absoluteDeduction,this.totalPrice=e.totalPrice,this.totalPriceGross=e.totalPriceGross,this.totalPriceGrossDeducted=e.totalPriceGrossDeducted,this.priceType=e.priceType,this.bidder=e.bidder?PartyInformationDto.fromJS(e.bidder):void 0,this.bidderDiscriminator=e.bidderDiscriminator,this.gaebXmlId=e.gaebXmlId,this.projectInformation=e.projectInformation?ProjectInformationDto.fromJS(e.projectInformation):void 0,this.exchangePhase=e.exchangePhase,this.origin=e.origin,this.originDetail=e.originDetail,this.creationDate=e.creationDate?new Date(e.creationDate.toString()):void 0,this.offerByDate=e.offerByDate?new Date(e.offerByDate.toString()):void 0,this.decisionDate=e.decisionDate?new Date(e.decisionDate.toString()):void 0,this.bidDate=e.bidDate?new Date(e.bidDate.toString()):void 0,this.warrantyBondPercentage=e.warrantyBondPercentage,this.executionGuaranteePercentage=e.executionGuaranteePercentage,this.submissionLocation=e.submissionLocation,this.description=e.description,this.name=e.name,this.priceInformation=e.priceInformation?PriceInformationDto.fromJS(e.priceInformation):void 0,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}if(Array.isArray(e.catalogueReferences)){this.catalogueReferences=[];for(let t of e.catalogueReferences)this.catalogueReferences.push(CatalogueReferenceDto.fromJS(t))}this.plannedExecutionStart=e.plannedExecutionStart?new Date(e.plannedExecutionStart.toString()):void 0,this.plannedExecutionEnd=e.plannedExecutionEnd?new Date(e.plannedExecutionEnd.toString()):void 0,this.contractDate=e.contractDate?new Date(e.contractDate.toString()):void 0,this.contractIdentifier=e.contractIdentifier,this.warrantyDuration=e.warrantyDuration?WarrantyDurationDto.fromJS(e.warrantyDuration):void 0,this.warrantyEnd=e.warrantyEnd?new Date(e.warrantyEnd.toString()):void 0,this.approvalDate=e.approvalDate?new Date(e.approvalDate.toString()):void 0,this.typeOfApproval=e.typeOfApproval,this.addendumNumber=e.addendumNumber,this.addendumStatus=e.addendumStatus,this.commerceProperties=e.commerceProperties?ServiceSpecificationCommercePropertiesDto.fromJS(e.commerceProperties):void 0}}static fromJS(e){e="object"==typeof e?e:{};let t=new ServiceSpecificationDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.projectHourlyWage=this.projectHourlyWage,e.projectTaxRate=this.projectTaxRate,Array.isArray(this.projectPriceComponents)){e.projectPriceComponents=[];for(let t of this.projectPriceComponents)e.projectPriceComponents.push(t)}if(this.projectItemNumberSchema?void 0!==this.projectItemNumberSchema.toJSON?e.projectItemNumberSchema=this.projectItemNumberSchema.toJSON():e.projectItemNumberSchema=this.projectItemNumberSchema:e.projectItemNumberSchema=void 0,Array.isArray(this.elements)){e.elements=[];for(let t of this.elements)void 0!==t.toJSON?e.elements.push(t.toJSON()):e.elements.push(t)}if(e.projectLabourTimeLabel=this.projectLabourTimeLabel,e.containsDuplicateItemNumbers=this.containsDuplicateItemNumbers,e.containsDuplicateElementIds=this.containsDuplicateElementIds,e.ignoreDuplicateItemNumbers=this.ignoreDuplicateItemNumbers,e.ignoreProjectCataloguePropagation=this.ignoreProjectCataloguePropagation,e.ignoreDuplicateElementIds=this.ignoreDuplicateElementIds,Array.isArray(this.totalPriceGrossByTaxRate)){e.totalPriceGrossByTaxRate=[];for(let t of this.totalPriceGrossByTaxRate)void 0!==t.toJSON?e.totalPriceGrossByTaxRate.push(t.toJSON()):e.totalPriceGrossByTaxRate.push(t)}if(e.ignoreChildPriceUpdates=this.ignoreChildPriceUpdates,e.deductedPrice=this.deductedPrice,e.deductionFactor=this.deductionFactor,e.absoluteDeduction=this.absoluteDeduction,e.totalPrice=this.totalPrice,e.totalPriceGross=this.totalPriceGross,e.totalPriceGrossDeducted=this.totalPriceGrossDeducted,e.priceType=this.priceType,this.bidder?void 0!==this.bidder.toJSON?e.bidder=this.bidder.toJSON():e.bidder=this.bidder:e.bidder=void 0,e.bidderDiscriminator=this.bidderDiscriminator,e.gaebXmlId=this.gaebXmlId,this.projectInformation?void 0!==this.projectInformation.toJSON?e.projectInformation=this.projectInformation.toJSON():e.projectInformation=this.projectInformation:e.projectInformation=void 0,e.exchangePhase=this.exchangePhase,e.origin=this.origin,e.originDetail=this.originDetail,e.creationDate=this.creationDate?this.creationDate.toISOString():void 0,e.offerByDate=this.offerByDate?this.offerByDate.toISOString():void 0,e.decisionDate=this.decisionDate?this.decisionDate.toISOString():void 0,e.bidDate=this.bidDate?this.bidDate.toISOString():void 0,e.warrantyBondPercentage=this.warrantyBondPercentage,e.executionGuaranteePercentage=this.executionGuaranteePercentage,e.submissionLocation=this.submissionLocation,e.description=this.description,e.name=this.name,this.priceInformation?void 0!==this.priceInformation.toJSON?e.priceInformation=this.priceInformation.toJSON():e.priceInformation=this.priceInformation:e.priceInformation=void 0,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}if(Array.isArray(this.catalogueReferences)){e.catalogueReferences=[];for(let t of this.catalogueReferences)void 0!==t.toJSON?e.catalogueReferences.push(t.toJSON()):e.catalogueReferences.push(t)}return e.plannedExecutionStart=this.plannedExecutionStart?this.plannedExecutionStart.toISOString():void 0,e.plannedExecutionEnd=this.plannedExecutionEnd?this.plannedExecutionEnd.toISOString():void 0,e.contractDate=this.contractDate?this.contractDate.toISOString():void 0,e.contractIdentifier=this.contractIdentifier,this.warrantyDuration?void 0!==this.warrantyDuration.toJSON?e.warrantyDuration=this.warrantyDuration.toJSON():e.warrantyDuration=this.warrantyDuration:e.warrantyDuration=void 0,e.warrantyEnd=this.warrantyEnd?this.warrantyEnd.toISOString():void 0,e.approvalDate=this.approvalDate?this.approvalDate.toISOString():void 0,e.typeOfApproval=this.typeOfApproval,e.addendumNumber=this.addendumNumber,e.addendumStatus=this.addendumStatus,this.commerceProperties?void 0!==this.commerceProperties.toJSON?e.commerceProperties=this.commerceProperties.toJSON():e.commerceProperties=this.commerceProperties:e.commerceProperties=void 0,e}}class IElementDto{elementType;elementTypeDiscriminator;id;gaebXmlId;addendumNumber;projectCatalogues;catalogueReferences;_discriminator;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}if(e.catalogueReferences){this.catalogueReferences=[];for(let t=0;t<e.catalogueReferences.length;t++){let i=e.catalogueReferences[t];this.catalogueReferences[t]=i&&!i.toJSON?new CatalogueReferenceDto(i):i}}}this._discriminator="IElementDto"}init(e){if(e){if(this.elementType=e.elementType,this.id=e.id,this.gaebXmlId=e.gaebXmlId,this.addendumNumber=e.addendumNumber,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}if(Array.isArray(e.catalogueReferences)){this.catalogueReferences=[];for(let t of e.catalogueReferences)this.catalogueReferences.push(CatalogueReferenceDto.fromJS(t))}}}static fromJS(e){if("PositionDto"===(e="object"==typeof e?e:{}).elementTypeDiscriminator){let t=new PositionDto;return t.init(e),t}if("ExecutionDescriptionDto"===e.elementTypeDiscriminator){let t=new ExecutionDescriptionDto;return t.init(e),t}if("NoteTextDto"===e.elementTypeDiscriminator){let t=new NoteTextDto;return t.init(e),t}if("ServiceSpecificationGroupDto"===e.elementTypeDiscriminator){let t=new ServiceSpecificationGroupDto;return t.init(e),t}throw new Error("The abstract class 'IElementDto' cannot be instantiated.")}toJSON(e){if((e="object"==typeof e?e:{}).elementTypeDiscriminator=this._discriminator,e.elementType=this.elementType,e.id=this.id,e.gaebXmlId=this.gaebXmlId,e.addendumNumber=this.addendumNumber,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}if(Array.isArray(this.catalogueReferences)){e.catalogueReferences=[];for(let t of this.catalogueReferences)void 0!==t.toJSON?e.catalogueReferences.push(t.toJSON()):e.catalogueReferences.push(t)}return e}}class CatalogueDto{id;gaebXmlId;name;description;catalogueType;catalogueTypeDetail;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.id=e.id,this.gaebXmlId=e.gaebXmlId,this.name=e.name,this.description=e.description,this.catalogueType=e.catalogueType,this.catalogueTypeDetail=e.catalogueTypeDetail)}static fromJS(e){e="object"==typeof e?e:{};let t=new CatalogueDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).id=this.id,e.gaebXmlId=this.gaebXmlId,e.name=this.name,e.description=this.description,e.catalogueType=this.catalogueType,e.catalogueTypeDetail=this.catalogueTypeDetail,e}}!function(e){e.Unknown="Unknown",e.Location="Location",e.DIN276="DIN276",e.CostUnit="CostUnit",e.WorkCategory="WorkCategory",e.OenormB1801CostGroup="OenormB1801CostGroup",e.BIM="BIM",e.Attachment="Attachment"}(CatalogueTypeDto||(CatalogueTypeDto={}));class CatalogueReferenceDto{id;catalogueReferenceKey;catalogueReferenceId;projectCatalogues;catalogue;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}this.catalogue=e.catalogue&&!e.catalogue.toJSON?new CatalogueDto(e.catalogue):this.catalogue}}init(e){if(e){if(this.id=e.id,this.catalogueReferenceKey=e.catalogueReferenceKey,this.catalogueReferenceId=e.catalogueReferenceId,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}this.catalogue=e.catalogue?CatalogueDto.fromJS(e.catalogue):void 0}}static fromJS(e){e="object"==typeof e?e:{};let t=new CatalogueReferenceDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.catalogueReferenceKey=this.catalogueReferenceKey,e.catalogueReferenceId=this.catalogueReferenceId,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}return this.catalogue?void 0!==this.catalogue.toJSON?e.catalogue=this.catalogue.toJSON():e.catalogue=this.catalogue:e.catalogue=void 0,e}}class PositionDto extends IElementDto{unitPrice;unitPriceOverride;quantity;quantityOverride;isComplementingPosition;complementsPositions;complementingPricePercentageOverride;complementingPricePercentage;unitTag;labourComponents;priceComponents;quantityComponents;subDescriptions;comissionStatus;complementedBy;complemented;amountToBeEnteredByBidder;priceCompositionRequired;useDifferentTaxRate;taxRate;itemNumber;deductionFactor;totalPrice;totalPriceGross;totalPriceGrossDeducted;deductedPrice;positionType;priceType;serviceType;productData;shortText;htmlShortText;longText;htmlLongText;additionType;elementType="Position";elementTypeDiscriminator="Position";quantityAssignments;commerceProperties;alternativeTo;alternativeIdentifier;alternativeGroupIdentifier;isLumpSum;repetitionTo;v1CompatibilityPriceType;standardizedDescription;complementedByQuantities;executionDescriptionReference;notOffered;oenormPositionProperties;descriptionId;hierarchyLevel;addendumStatus;hasBidderCommentInHtmlLongText;gaebComplementingType;holdOutProperties;estimatedQuantity;priceCatalogueData;ignoreProjectCataloguePropagation;constructor(e){if(super(e),e){if(this.labourComponents=e.labourComponents&&!e.labourComponents.toJSON?new LabourPriceComponentDto(e.labourComponents):this.labourComponents,e.priceComponents){this.priceComponents=[];for(let t=0;t<e.priceComponents.length;t++){let i=e.priceComponents[t];this.priceComponents[t]=i&&!i.toJSON?new PriceComponentDto(i):i}}if(e.quantityComponents){this.quantityComponents=[];for(let t=0;t<e.quantityComponents.length;t++){let i=e.quantityComponents[t];this.quantityComponents[t]=i&&!i.toJSON?new CalculationDto(i):i}}if(e.subDescriptions){this.subDescriptions=[];for(let t=0;t<e.subDescriptions.length;t++){let i=e.subDescriptions[t];this.subDescriptions[t]=i&&!i.toJSON?new SubDescriptionDto(i):i}}if(this.itemNumber=e.itemNumber&&!e.itemNumber.toJSON?new ItemNumberDto(e.itemNumber):this.itemNumber,this.productData=e.productData&&!e.productData.toJSON?new ProductDataDto(e.productData):this.productData,e.quantityAssignments){this.quantityAssignments=[];for(let t=0;t<e.quantityAssignments.length;t++){let i=e.quantityAssignments[t];this.quantityAssignments[t]=i&&!i.toJSON?new QuantityAssignmentDto(i):i}}if(this.commerceProperties=e.commerceProperties&&!e.commerceProperties.toJSON?new CommercePropertiesDto(e.commerceProperties):this.commerceProperties,this.standardizedDescription=e.standardizedDescription&&!e.standardizedDescription.toJSON?new StandardizedDescriptionDto(e.standardizedDescription):this.standardizedDescription,e.complementedByQuantities){this.complementedByQuantities=[];for(let t=0;t<e.complementedByQuantities.length;t++){let i=e.complementedByQuantities[t];this.complementedByQuantities[t]=i&&!i.toJSON?new ComplementedByQuantityDto(i):i}}this.oenormPositionProperties=e.oenormPositionProperties&&!e.oenormPositionProperties.toJSON?new OenormPositionPropertiesDto(e.oenormPositionProperties):this.oenormPositionProperties,this.holdOutProperties=e.holdOutProperties&&!e.holdOutProperties.toJSON?new PositionHoldOutPropertiesDto(e.holdOutProperties):this.holdOutProperties,this.priceCatalogueData=e.priceCatalogueData&&!e.priceCatalogueData.toJSON?new PriceCatalogueDataDto(e.priceCatalogueData):this.priceCatalogueData}this._discriminator="PositionDto"}init(e){if(void 0!==super.init&&super.init(e),e){if(this.unitPrice=e.unitPrice,this.unitPriceOverride=e.unitPriceOverride,this.quantity=e.quantity,this.quantityOverride=e.quantityOverride,this.isComplementingPosition=e.isComplementingPosition,Array.isArray(e.complementsPositions)){this.complementsPositions=[];for(let t of e.complementsPositions)this.complementsPositions.push(t)}if(this.complementingPricePercentageOverride=e.complementingPricePercentageOverride,this.complementingPricePercentage=e.complementingPricePercentage,this.unitTag=e.unitTag,this.labourComponents=e.labourComponents?LabourPriceComponentDto.fromJS(e.labourComponents):void 0,Array.isArray(e.priceComponents)){this.priceComponents=[];for(let t of e.priceComponents)this.priceComponents.push(PriceComponentDto.fromJS(t))}if(Array.isArray(e.quantityComponents)){this.quantityComponents=[];for(let t of e.quantityComponents)this.quantityComponents.push(CalculationDto.fromJS(t))}if(Array.isArray(e.subDescriptions)){this.subDescriptions=[];for(let t of e.subDescriptions)this.subDescriptions.push(SubDescriptionDto.fromJS(t))}if(this.comissionStatus=e.comissionStatus,Array.isArray(e.complementedBy)){this.complementedBy=[];for(let t of e.complementedBy)this.complementedBy.push(t)}if(this.complemented=e.complemented,this.amountToBeEnteredByBidder=e.amountToBeEnteredByBidder,this.priceCompositionRequired=e.priceCompositionRequired,this.useDifferentTaxRate=e.useDifferentTaxRate,this.taxRate=e.taxRate,this.itemNumber=e.itemNumber?ItemNumberDto.fromJS(e.itemNumber):void 0,this.deductionFactor=e.deductionFactor,this.totalPrice=e.totalPrice,this.totalPriceGross=e.totalPriceGross,this.totalPriceGrossDeducted=e.totalPriceGrossDeducted,this.deductedPrice=e.deductedPrice,this.positionType=e.positionType,this.priceType=e.priceType,this.serviceType=e.serviceType,this.productData=e.productData?ProductDataDto.fromJS(e.productData):void 0,this.shortText=e.shortText,this.htmlShortText=e.htmlShortText,this.longText=e.longText,this.htmlLongText=e.htmlLongText,this.additionType=e.additionType,this.elementType=e.elementType,Array.isArray(e.quantityAssignments)){this.quantityAssignments=[];for(let t of e.quantityAssignments)this.quantityAssignments.push(QuantityAssignmentDto.fromJS(t))}if(this.commerceProperties=e.commerceProperties?CommercePropertiesDto.fromJS(e.commerceProperties):void 0,this.alternativeTo=e.alternativeTo,this.alternativeIdentifier=e.alternativeIdentifier,this.alternativeGroupIdentifier=e.alternativeGroupIdentifier,this.isLumpSum=e.isLumpSum,this.repetitionTo=e.repetitionTo,this.v1CompatibilityPriceType=e.v1CompatibilityPriceType,this.standardizedDescription=e.standardizedDescription?StandardizedDescriptionDto.fromJS(e.standardizedDescription):void 0,Array.isArray(e.complementedByQuantities)){this.complementedByQuantities=[];for(let t of e.complementedByQuantities)this.complementedByQuantities.push(ComplementedByQuantityDto.fromJS(t))}this.executionDescriptionReference=e.executionDescriptionReference,this.notOffered=e.notOffered,this.oenormPositionProperties=e.oenormPositionProperties?OenormPositionPropertiesDto.fromJS(e.oenormPositionProperties):void 0,this.descriptionId=e.descriptionId,this.hierarchyLevel=e.hierarchyLevel,this.addendumStatus=e.addendumStatus,this.hasBidderCommentInHtmlLongText=e.hasBidderCommentInHtmlLongText,this.gaebComplementingType=e.gaebComplementingType,this.holdOutProperties=e.holdOutProperties?PositionHoldOutPropertiesDto.fromJS(e.holdOutProperties):void 0,this.estimatedQuantity=e.estimatedQuantity,this.priceCatalogueData=e.priceCatalogueData?PriceCatalogueDataDto.fromJS(e.priceCatalogueData):void 0,this.ignoreProjectCataloguePropagation=e.ignoreProjectCataloguePropagation}}static fromJS(e){e="object"==typeof e?e:{};let t=new PositionDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).unitPrice=this.unitPrice,e.unitPriceOverride=this.unitPriceOverride,e.quantity=this.quantity,e.quantityOverride=this.quantityOverride,e.isComplementingPosition=this.isComplementingPosition,Array.isArray(this.complementsPositions)){e.complementsPositions=[];for(let t of this.complementsPositions)e.complementsPositions.push(t)}if(e.complementingPricePercentageOverride=this.complementingPricePercentageOverride,e.complementingPricePercentage=this.complementingPricePercentage,e.unitTag=this.unitTag,this.labourComponents?void 0!==this.labourComponents.toJSON?e.labourComponents=this.labourComponents.toJSON():e.labourComponents=this.labourComponents:e.labourComponents=void 0,Array.isArray(this.priceComponents)){e.priceComponents=[];for(let t of this.priceComponents)void 0!==t.toJSON?e.priceComponents.push(t.toJSON()):e.priceComponents.push(t)}if(Array.isArray(this.quantityComponents)){e.quantityComponents=[];for(let t of this.quantityComponents)void 0!==t.toJSON?e.quantityComponents.push(t.toJSON()):e.quantityComponents.push(t)}if(Array.isArray(this.subDescriptions)){e.subDescriptions=[];for(let t of this.subDescriptions)void 0!==t.toJSON?e.subDescriptions.push(t.toJSON()):e.subDescriptions.push(t)}if(e.comissionStatus=this.comissionStatus,Array.isArray(this.complementedBy)){e.complementedBy=[];for(let t of this.complementedBy)e.complementedBy.push(t)}if(e.complemented=this.complemented,e.amountToBeEnteredByBidder=this.amountToBeEnteredByBidder,e.priceCompositionRequired=this.priceCompositionRequired,e.useDifferentTaxRate=this.useDifferentTaxRate,e.taxRate=this.taxRate,this.itemNumber?void 0!==this.itemNumber.toJSON?e.itemNumber=this.itemNumber.toJSON():e.itemNumber=this.itemNumber:e.itemNumber=void 0,e.deductionFactor=this.deductionFactor,e.totalPrice=this.totalPrice,e.totalPriceGross=this.totalPriceGross,e.totalPriceGrossDeducted=this.totalPriceGrossDeducted,e.deductedPrice=this.deductedPrice,e.positionType=this.positionType,e.priceType=this.priceType,e.serviceType=this.serviceType,this.productData?void 0!==this.productData.toJSON?e.productData=this.productData.toJSON():e.productData=this.productData:e.productData=void 0,e.shortText=this.shortText,e.htmlShortText=this.htmlShortText,e.longText=this.longText,e.htmlLongText=this.htmlLongText,e.additionType=this.additionType,e.elementType=this.elementType,Array.isArray(this.quantityAssignments)){e.quantityAssignments=[];for(let t of this.quantityAssignments)void 0!==t.toJSON?e.quantityAssignments.push(t.toJSON()):e.quantityAssignments.push(t)}if(this.commerceProperties?void 0!==this.commerceProperties.toJSON?e.commerceProperties=this.commerceProperties.toJSON():e.commerceProperties=this.commerceProperties:e.commerceProperties=void 0,e.alternativeTo=this.alternativeTo,e.alternativeIdentifier=this.alternativeIdentifier,e.alternativeGroupIdentifier=this.alternativeGroupIdentifier,e.isLumpSum=this.isLumpSum,e.repetitionTo=this.repetitionTo,e.v1CompatibilityPriceType=this.v1CompatibilityPriceType,this.standardizedDescription?void 0!==this.standardizedDescription.toJSON?e.standardizedDescription=this.standardizedDescription.toJSON():e.standardizedDescription=this.standardizedDescription:e.standardizedDescription=void 0,Array.isArray(this.complementedByQuantities)){e.complementedByQuantities=[];for(let t of this.complementedByQuantities)void 0!==t.toJSON?e.complementedByQuantities.push(t.toJSON()):e.complementedByQuantities.push(t)}return e.executionDescriptionReference=this.executionDescriptionReference,e.notOffered=this.notOffered,this.oenormPositionProperties?void 0!==this.oenormPositionProperties.toJSON?e.oenormPositionProperties=this.oenormPositionProperties.toJSON():e.oenormPositionProperties=this.oenormPositionProperties:e.oenormPositionProperties=void 0,e.descriptionId=this.descriptionId,e.hierarchyLevel=this.hierarchyLevel,e.addendumStatus=this.addendumStatus,e.hasBidderCommentInHtmlLongText=this.hasBidderCommentInHtmlLongText,e.gaebComplementingType=this.gaebComplementingType,this.holdOutProperties?void 0!==this.holdOutProperties.toJSON?e.holdOutProperties=this.holdOutProperties.toJSON():e.holdOutProperties=this.holdOutProperties:e.holdOutProperties=void 0,e.estimatedQuantity=this.estimatedQuantity,this.priceCatalogueData?void 0!==this.priceCatalogueData.toJSON?e.priceCatalogueData=this.priceCatalogueData.toJSON():e.priceCatalogueData=this.priceCatalogueData:e.priceCatalogueData=void 0,e.ignoreProjectCataloguePropagation=this.ignoreProjectCataloguePropagation,void 0!==super.toJSON&&super.toJSON(e),e}}class LabourPriceComponentDto{label;price;hourlyWage;values;useOwnHourlyWage;totalTime;projectCatalogues;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.values){this.values=[];for(let t=0;t<e.values.length;t++){let i=e.values[t];this.values[t]=i&&!i.toJSON?new CalculationDto(i):i}}if(e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}}}init(e){if(e){if(this.label=e.label,this.price=e.price,this.hourlyWage=e.hourlyWage,Array.isArray(e.values)){this.values=[];for(let t of e.values)this.values.push(CalculationDto.fromJS(t))}if(this.useOwnHourlyWage=e.useOwnHourlyWage,this.totalTime=e.totalTime,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}}}static fromJS(e){e="object"==typeof e?e:{};let t=new LabourPriceComponentDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).label=this.label,e.price=this.price,e.hourlyWage=this.hourlyWage,Array.isArray(this.values)){e.values=[];for(let t of this.values)void 0!==t.toJSON?e.values.push(t.toJSON()):e.values.push(t)}if(e.useOwnHourlyWage=this.useOwnHourlyWage,e.totalTime=this.totalTime,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}return e}}class CalculationDto{description;formula;result;valid;errorPositionInLine;projectCatalogues;catalogueReferences;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}if(e.catalogueReferences){this.catalogueReferences=[];for(let t=0;t<e.catalogueReferences.length;t++){let i=e.catalogueReferences[t];this.catalogueReferences[t]=i&&!i.toJSON?new CatalogueReferenceDto(i):i}}}}init(e){if(e){if(this.description=e.description,this.formula=e.formula,this.result=e.result,this.valid=e.valid,this.errorPositionInLine=e.errorPositionInLine,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}if(Array.isArray(e.catalogueReferences)){this.catalogueReferences=[];for(let t of e.catalogueReferences)this.catalogueReferences.push(CatalogueReferenceDto.fromJS(t))}}}static fromJS(e){e="object"==typeof e?e:{};let t=new CalculationDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).description=this.description,e.formula=this.formula,e.result=this.result,e.valid=this.valid,e.errorPositionInLine=this.errorPositionInLine,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}if(Array.isArray(this.catalogueReferences)){e.catalogueReferences=[];for(let t of this.catalogueReferences)void 0!==t.toJSON?e.catalogueReferences.push(t.toJSON()):e.catalogueReferences.push(t)}return e}}class PriceComponentDto{price;label;values;projectCatalogues;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.values){this.values=[];for(let t=0;t<e.values.length;t++){let i=e.values[t];this.values[t]=i&&!i.toJSON?new CalculationDto(i):i}}if(e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}}}init(e){if(e){if(this.price=e.price,this.label=e.label,Array.isArray(e.values)){this.values=[];for(let t of e.values)this.values.push(CalculationDto.fromJS(t))}if(Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}}}static fromJS(e){e="object"==typeof e?e:{};let t=new PriceComponentDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).price=this.price,e.label=this.label,Array.isArray(this.values)){e.values=[];for(let t of this.values)void 0!==t.toJSON?e.values.push(t.toJSON()):e.values.push(t)}if(Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}return e}}class SubDescriptionDto{id;quantity;quantityOverride;quantityComponents;amountToBeEnteredByBidder;identifier;shortText;htmlShortText;longText;unitTag;htmlLongText;additionType;standardizedDescription;executionDescriptionReference;projectCatalogues;descriptionId;hasBidderCommentInHtmlLongText;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.quantityComponents){this.quantityComponents=[];for(let t=0;t<e.quantityComponents.length;t++){let i=e.quantityComponents[t];this.quantityComponents[t]=i&&!i.toJSON?new CalculationDto(i):i}}if(this.standardizedDescription=e.standardizedDescription&&!e.standardizedDescription.toJSON?new StandardizedDescriptionDto(e.standardizedDescription):this.standardizedDescription,e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}}}init(e){if(e){if(this.id=e.id,this.quantity=e.quantity,this.quantityOverride=e.quantityOverride,Array.isArray(e.quantityComponents)){this.quantityComponents=[];for(let t of e.quantityComponents)this.quantityComponents.push(CalculationDto.fromJS(t))}if(this.amountToBeEnteredByBidder=e.amountToBeEnteredByBidder,this.identifier=e.identifier,this.shortText=e.shortText,this.htmlShortText=e.htmlShortText,this.longText=e.longText,this.unitTag=e.unitTag,this.htmlLongText=e.htmlLongText,this.additionType=e.additionType,this.standardizedDescription=e.standardizedDescription?StandardizedDescriptionDto.fromJS(e.standardizedDescription):void 0,this.executionDescriptionReference=e.executionDescriptionReference,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}this.descriptionId=e.descriptionId,this.hasBidderCommentInHtmlLongText=e.hasBidderCommentInHtmlLongText}}static fromJS(e){e="object"==typeof e?e:{};let t=new SubDescriptionDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.quantity=this.quantity,e.quantityOverride=this.quantityOverride,Array.isArray(this.quantityComponents)){e.quantityComponents=[];for(let t of this.quantityComponents)void 0!==t.toJSON?e.quantityComponents.push(t.toJSON()):e.quantityComponents.push(t)}if(e.amountToBeEnteredByBidder=this.amountToBeEnteredByBidder,e.identifier=this.identifier,e.shortText=this.shortText,e.htmlShortText=this.htmlShortText,e.longText=this.longText,e.unitTag=this.unitTag,e.htmlLongText=this.htmlLongText,e.additionType=this.additionType,this.standardizedDescription?void 0!==this.standardizedDescription.toJSON?e.standardizedDescription=this.standardizedDescription.toJSON():e.standardizedDescription=this.standardizedDescription:e.standardizedDescription=void 0,e.executionDescriptionReference=this.executionDescriptionReference,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}return e.descriptionId=this.descriptionId,e.hasBidderCommentInHtmlLongText=this.hasBidderCommentInHtmlLongText,e}}!function(e){e.None="None",e.ByBuyer="ByBuyer",e.ByBidder="ByBidder"}(AdditionTypeDto||(AdditionTypeDto={}));class StandardizedDescriptionDto{standardReferenceType;standardReference;stlbReference;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);this.stlbReference=e.stlbReference&&!e.stlbReference.toJSON?new STLBReferenceDto(e.stlbReference):this.stlbReference}}init(e){e&&(this.standardReferenceType=e.standardReferenceType,this.standardReference=e.standardReference,this.stlbReference=e.stlbReference?STLBReferenceDto.fromJS(e.stlbReference):void 0)}static fromJS(e){e="object"==typeof e?e:{};let t=new StandardizedDescriptionDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).standardReferenceType=this.standardReferenceType,e.standardReference=this.standardReference,this.stlbReference?void 0!==this.stlbReference.toJSON?e.stlbReference=this.stlbReference.toJSON():e.stlbReference=this.stlbReference:e.stlbReference=void 0,e}}!function(e){e.Unknown="Unknown",e.StLB="StLB",e.StLK="StLK",e.STLBBauZ="STLBBauZ"}(StandardReferenceTypeDto||(StandardReferenceTypeDto={}));class STLBReferenceDto{versionDate;catalogueName;group;costGroup;serviceArea;keys;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.keys){this.keys=[];for(let t=0;t<e.keys.length;t++){let i=e.keys[t];this.keys[t]=i&&!i.toJSON?new STLBKeyDto(i):i}}}}init(e){if(e&&(this.versionDate=e.versionDate?new Date(e.versionDate.toString()):void 0,this.catalogueName=e.catalogueName,this.group=e.group,this.costGroup=e.costGroup,this.serviceArea=e.serviceArea,Array.isArray(e.keys))){this.keys=[];for(let t of e.keys)this.keys.push(STLBKeyDto.fromJS(t))}}static fromJS(e){e="object"==typeof e?e:{};let t=new STLBReferenceDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).versionDate=this.versionDate?this.versionDate.toISOString():void 0,e.catalogueName=this.catalogueName,e.group=this.group,e.costGroup=this.costGroup,e.serviceArea=this.serviceArea,Array.isArray(this.keys)){e.keys=[];for(let t of this.keys)void 0!==t.toJSON?e.keys.push(t.toJSON()):e.keys.push(t)}return e}}class STLBKeyDto{artIdentifier;artIndex;kindIdentifier;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.artIdentifier=e.artIdentifier,this.artIndex=e.artIndex,this.kindIdentifier=e.kindIdentifier)}static fromJS(e){e="object"==typeof e?e:{};let t=new STLBKeyDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).artIdentifier=this.artIdentifier,e.artIndex=this.artIndex,e.kindIdentifier=this.kindIdentifier,e}}!function(e){e.Undefined="Undefined",e.Commissioned="Commissioned",e.Postponed="Postponed",e.Removed="Removed"}(ComissionStatusDto||(ComissionStatusDto={}));class ItemNumberDto{id;stringRepresentation;isSchemaCompliant;itemNumberSchema;identifiers;isLot;hierarchyLevel;isAttachedToPosition;itemNumberSchemaBeforeMapping;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);this.itemNumberSchema=e.itemNumberSchema&&!e.itemNumberSchema.toJSON?new ItemNumberSchemaDto(e.itemNumberSchema):this.itemNumberSchema,this.itemNumberSchemaBeforeMapping=e.itemNumberSchemaBeforeMapping&&!e.itemNumberSchemaBeforeMapping.toJSON?new ItemNumberSchemaDto(e.itemNumberSchemaBeforeMapping):this.itemNumberSchemaBeforeMapping}}init(e){if(e){if(this.id=e.id,this.stringRepresentation=e.stringRepresentation,this.isSchemaCompliant=e.isSchemaCompliant,this.itemNumberSchema=e.itemNumberSchema?ItemNumberSchemaDto.fromJS(e.itemNumberSchema):void 0,Array.isArray(e.identifiers)){this.identifiers=[];for(let t of e.identifiers)this.identifiers.push(t)}this.isLot=e.isLot,this.hierarchyLevel=e.hierarchyLevel,this.isAttachedToPosition=e.isAttachedToPosition,this.itemNumberSchemaBeforeMapping=e.itemNumberSchemaBeforeMapping?ItemNumberSchemaDto.fromJS(e.itemNumberSchemaBeforeMapping):void 0}}static fromJS(e){e="object"==typeof e?e:{};let t=new ItemNumberDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.stringRepresentation=this.stringRepresentation,e.isSchemaCompliant=this.isSchemaCompliant,this.itemNumberSchema?void 0!==this.itemNumberSchema.toJSON?e.itemNumberSchema=this.itemNumberSchema.toJSON():e.itemNumberSchema=this.itemNumberSchema:e.itemNumberSchema=void 0,Array.isArray(this.identifiers)){e.identifiers=[];for(let t of this.identifiers)e.identifiers.push(t)}return e.isLot=this.isLot,e.hierarchyLevel=this.hierarchyLevel,e.isAttachedToPosition=this.isAttachedToPosition,this.itemNumberSchemaBeforeMapping?void 0!==this.itemNumberSchemaBeforeMapping.toJSON?e.itemNumberSchemaBeforeMapping=this.itemNumberSchemaBeforeMapping.toJSON():e.itemNumberSchemaBeforeMapping=this.itemNumberSchemaBeforeMapping:e.itemNumberSchemaBeforeMapping=void 0,e}}!function(e){e.Regular="Regular",e.Optional="Optional",e.Alternative="Alternative"}(PositionTypeDto||(PositionTypeDto={})),function(e){e.WithTotal="WithTotal",e.WithoutTotal="WithoutTotal"}(PriceTypeDto||(PriceTypeDto={})),function(e){e.Regular="Regular",e.HourlyPaidWork="HourlyPaidWork"}(ServiceTypeDto||(ServiceTypeDto={}));class ProductDataDto{id;vendor;articles;shortText;longText;htmlLongText;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(this.vendor=e.vendor&&!e.vendor.toJSON?new PartyInformationDto(e.vendor):this.vendor,e.articles){this.articles=[];for(let t=0;t<e.articles.length;t++){let i=e.articles[t];this.articles[t]=i&&!i.toJSON?new ArticleDataDto(i):i}}}}init(e){if(e){if(this.id=e.id,this.vendor=e.vendor?PartyInformationDto.fromJS(e.vendor):void 0,Array.isArray(e.articles)){this.articles=[];for(let t of e.articles)this.articles.push(ArticleDataDto.fromJS(t))}this.shortText=e.shortText,this.longText=e.longText,this.htmlLongText=e.htmlLongText}}static fromJS(e){e="object"==typeof e?e:{};let t=new ProductDataDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,this.vendor?void 0!==this.vendor.toJSON?e.vendor=this.vendor.toJSON():e.vendor=this.vendor:e.vendor=void 0,Array.isArray(this.articles)){e.articles=[];for(let t of this.articles)void 0!==t.toJSON?e.articles.push(t.toJSON()):e.articles.push(t)}return e.shortText=this.shortText,e.longText=this.longText,e.htmlLongText=this.htmlLongText,e}}class ArticleDataDto{id;name;articleNumber;quantity;unitTag;description;shortText;longText;htmlLongText;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.id=e.id,this.name=e.name,this.articleNumber=e.articleNumber,this.quantity=e.quantity,this.unitTag=e.unitTag,this.description=e.description,this.shortText=e.shortText,this.longText=e.longText,this.htmlLongText=e.htmlLongText)}static fromJS(e){e="object"==typeof e?e:{};let t=new ArticleDataDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).id=this.id,e.name=this.name,e.articleNumber=this.articleNumber,e.quantity=this.quantity,e.unitTag=this.unitTag,e.description=this.description,e.shortText=this.shortText,e.longText=this.longText,e.htmlLongText=this.htmlLongText,e}}class QuantityAssignmentDto{id;quantity;projectCatalogues;catalogueReferences;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.projectCatalogues){this.projectCatalogues=[];for(let t=0;t<e.projectCatalogues.length;t++){let i=e.projectCatalogues[t];this.projectCatalogues[t]=i&&!i.toJSON?new CatalogueDto(i):i}}if(e.catalogueReferences){this.catalogueReferences=[];for(let t=0;t<e.catalogueReferences.length;t++){let i=e.catalogueReferences[t];this.catalogueReferences[t]=i&&!i.toJSON?new CatalogueReferenceDto(i):i}}}}init(e){if(e){if(this.id=e.id,this.quantity=e.quantity,Array.isArray(e.projectCatalogues)){this.projectCatalogues=[];for(let t of e.projectCatalogues)this.projectCatalogues.push(CatalogueDto.fromJS(t))}if(Array.isArray(e.catalogueReferences)){this.catalogueReferences=[];for(let t of e.catalogueReferences)this.catalogueReferences.push(CatalogueReferenceDto.fromJS(t))}}}static fromJS(e){e="object"==typeof e?e:{};let t=new QuantityAssignmentDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.quantity=this.quantity,Array.isArray(this.projectCatalogues)){e.projectCatalogues=[];for(let t of this.projectCatalogues)void 0!==t.toJSON?e.projectCatalogues.push(t.toJSON()):e.projectCatalogues.push(t)}if(Array.isArray(this.catalogueReferences)){e.catalogueReferences=[];for(let t of this.catalogueReferences)void 0!==t.toJSON?e.catalogueReferences.push(t.toJSON()):e.catalogueReferences.push(t)}return e}}class CommercePropertiesDto{articleNumber;eanGtinArticleNumber;ilnArticleNumber;catalogueNumber;catalogueArticleNumber;priceBasis;subPositionIdentifier;customerBaseItemNumber;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.articleNumber=e.articleNumber,this.eanGtinArticleNumber=e.eanGtinArticleNumber,this.ilnArticleNumber=e.ilnArticleNumber,this.catalogueNumber=e.catalogueNumber,this.catalogueArticleNumber=e.catalogueArticleNumber,this.priceBasis=e.priceBasis,this.subPositionIdentifier=e.subPositionIdentifier,this.customerBaseItemNumber=e.customerBaseItemNumber)}static fromJS(e){e="object"==typeof e?e:{};let t=new CommercePropertiesDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).articleNumber=this.articleNumber,e.eanGtinArticleNumber=this.eanGtinArticleNumber,e.ilnArticleNumber=this.ilnArticleNumber,e.catalogueNumber=this.catalogueNumber,e.catalogueArticleNumber=this.catalogueArticleNumber,e.priceBasis=this.priceBasis,e.subPositionIdentifier=this.subPositionIdentifier,e.customerBaseItemNumber=this.customerBaseItemNumber,e}}class ComplementedByQuantityDto{quantity;complementingPositionId;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.quantity=e.quantity,this.complementingPositionId=e.complementingPositionId)}static fromJS(e){e="object"==typeof e?e:{};let t=new ComplementedByQuantityDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).quantity=this.quantity,e.complementingPositionId=this.complementingPositionId,e}}class OenormPositionPropertiesDto{originCode;openingTextIsFreeText;isMainPosition;isUndividedPosition;oenormShortText;oenormShortTextAddition;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.originCode=e.originCode,this.openingTextIsFreeText=e.openingTextIsFreeText,this.isMainPosition=e.isMainPosition,this.isUndividedPosition=e.isUndividedPosition,this.oenormShortText=e.oenormShortText,this.oenormShortTextAddition=e.oenormShortTextAddition)}static fromJS(e){e="object"==typeof e?e:{};let t=new OenormPositionPropertiesDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).originCode=this.originCode,e.openingTextIsFreeText=this.openingTextIsFreeText,e.isMainPosition=this.isMainPosition,e.isUndividedPosition=this.isUndividedPosition,e.oenormShortText=this.oenormShortText,e.oenormShortTextAddition=this.oenormShortTextAddition,e}}!function(e){e.Unknown="Unknown",e.FreeText="FreeText",e.AdditionDescription="AdditionDescription"}(OenormOriginCodeDto||(OenormOriginCodeDto={})),function(e){e.Unknown="Unknown",e.Recognized="Recognized",e.Filed="Filed",e.Offered="Offered",e.Withdrawn="Withdrawn",e.Rejected="Rejected",e.RejectionObjected="RejectionObjected",e.FormallyAcknowledged="FormallyAcknowledged",e.Approved="Approved"}(AddendumStatusDto||(AddendumStatusDto={})),function(e){e.Undefined="Undefined",e.AllPreviousMarkedPositions="AllPreviousMarkedPositions",e.AllPreviousPositions="AllPreviousPositions",e.ReferencedPositions="ReferencedPositions"}(PositionComplementingTypeDto||(PositionComplementingTypeDto={}));class PositionHoldOutPropertiesDto{id;holdOutType;holdOutDuration;holdOutDurationUnit;basePositionReferences;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){if(e&&(this.id=e.id,this.holdOutType=e.holdOutType,this.holdOutDuration=e.holdOutDuration,this.holdOutDurationUnit=e.holdOutDurationUnit,Array.isArray(e.basePositionReferences))){this.basePositionReferences=[];for(let t of e.basePositionReferences)this.basePositionReferences.push(t)}}static fromJS(e){e="object"==typeof e?e:{};let t=new PositionHoldOutPropertiesDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.holdOutType=this.holdOutType,e.holdOutDuration=this.holdOutDuration,e.holdOutDurationUnit=this.holdOutDurationUnit,Array.isArray(this.basePositionReferences)){e.basePositionReferences=[];for(let t of this.basePositionReferences)e.basePositionReferences.push(t)}return e}}!function(e){e.Unknown="Unknown",e.Base="Base",e.Extension="Extension",e.Rent="Rent"}(HoldOutTypeDto||(HoldOutTypeDto={})),function(e){e.Unknown="Unknown",e.Minutes="Minutes",e.Hours="Hours",e.Days="Days",e.Weeks="Weeks",e.Months="Months"}(HoldOutDurationUnitDto||(HoldOutDurationUnitDto={}));class PriceCatalogueDataDto{id;unitPriceFrom;unitPriceTo;unitPriceAverage;wagePriceFrom;wagePriceTo;wagePriceAverage;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.id=e.id,this.unitPriceFrom=e.unitPriceFrom,this.unitPriceTo=e.unitPriceTo,this.unitPriceAverage=e.unitPriceAverage,this.wagePriceFrom=e.wagePriceFrom,this.wagePriceTo=e.wagePriceTo,this.wagePriceAverage=e.wagePriceAverage)}static fromJS(e){e="object"==typeof e?e:{};let t=new PriceCatalogueDataDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).id=this.id,e.unitPriceFrom=this.unitPriceFrom,e.unitPriceTo=this.unitPriceTo,e.unitPriceAverage=this.unitPriceAverage,e.wagePriceFrom=this.wagePriceFrom,e.wagePriceTo=this.wagePriceTo,e.wagePriceAverage=this.wagePriceAverage,e}}class ExecutionDescriptionDto extends IElementDto{blocks;label;identifier;elementType="ExecutionDescription";elementTypeDiscriminator="ExecutionDescription";constructor(e){super(e),this._discriminator="ExecutionDescriptionDto"}init(e){if(void 0!==super.init&&super.init(e),e){if(Array.isArray(e.blocks)){this.blocks=[];for(let t of e.blocks)this.blocks.push(NoteTextDto.fromJS(t))}this.label=e.label,this.identifier=e.identifier,this.elementType=e.elementType}}static fromJS(e){e="object"==typeof e?e:{};let t=new ExecutionDescriptionDto;return t.init(e),t}toJSON(e){if(e="object"==typeof e?e:{},Array.isArray(this.blocks)){e.blocks=[];for(let t of this.blocks)void 0!==t.toJSON?e.blocks.push(t.toJSON()):e.blocks.push(t)}return e.label=this.label,e.identifier=this.identifier,e.elementType=this.elementType,void 0!==super.toJSON&&super.toJSON(e),e}}class NoteTextDto extends IElementDto{isOpeningText;isClosingText;shortText;htmlShortText;additionType;longText;htmlLongText;identifier;standardizedDescription;elementType="NoteText";elementTypeDiscriminator="NoteText";descriptionId;oenormNoteTextProperties;hasBidderCommentInHtmlLongText;constructor(e){super(e),e&&(this.standardizedDescription=e.standardizedDescription&&!e.standardizedDescription.toJSON?new StandardizedDescriptionDto(e.standardizedDescription):this.standardizedDescription,this.oenormNoteTextProperties=e.oenormNoteTextProperties&&!e.oenormNoteTextProperties.toJSON?new OenormNoteTextPropertiesDto(e.oenormNoteTextProperties):this.oenormNoteTextProperties),this._discriminator="NoteTextDto"}init(e){void 0!==super.init&&super.init(e),e&&(this.isOpeningText=e.isOpeningText,this.isClosingText=e.isClosingText,this.shortText=e.shortText,this.htmlShortText=e.htmlShortText,this.additionType=e.additionType,this.longText=e.longText,this.htmlLongText=e.htmlLongText,this.identifier=e.identifier,this.standardizedDescription=e.standardizedDescription?StandardizedDescriptionDto.fromJS(e.standardizedDescription):void 0,this.elementType=e.elementType,this.descriptionId=e.descriptionId,this.oenormNoteTextProperties=e.oenormNoteTextProperties?OenormNoteTextPropertiesDto.fromJS(e.oenormNoteTextProperties):void 0,this.hasBidderCommentInHtmlLongText=e.hasBidderCommentInHtmlLongText)}static fromJS(e){e="object"==typeof e?e:{};let t=new NoteTextDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).isOpeningText=this.isOpeningText,e.isClosingText=this.isClosingText,e.shortText=this.shortText,e.htmlShortText=this.htmlShortText,e.additionType=this.additionType,e.longText=this.longText,e.htmlLongText=this.htmlLongText,e.identifier=this.identifier,this.standardizedDescription?void 0!==this.standardizedDescription.toJSON?e.standardizedDescription=this.standardizedDescription.toJSON():e.standardizedDescription=this.standardizedDescription:e.standardizedDescription=void 0,e.elementType=this.elementType,e.descriptionId=this.descriptionId,this.oenormNoteTextProperties?void 0!==this.oenormNoteTextProperties.toJSON?e.oenormNoteTextProperties=this.oenormNoteTextProperties.toJSON():e.oenormNoteTextProperties=this.oenormNoteTextProperties:e.oenormNoteTextProperties=void 0,e.hasBidderCommentInHtmlLongText=this.hasBidderCommentInHtmlLongText,void 0!==super.toJSON&&super.toJSON(e),e}}class OenormNoteTextPropertiesDto{originCode;openingTextIsFreeText;isUndividedPosition;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.originCode=e.originCode,this.openingTextIsFreeText=e.openingTextIsFreeText,this.isUndividedPosition=e.isUndividedPosition)}static fromJS(e){e="object"==typeof e?e:{};let t=new OenormNoteTextPropertiesDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).originCode=this.originCode,e.openingTextIsFreeText=this.openingTextIsFreeText,e.isUndividedPosition=this.isUndividedPosition,e}}class ServiceSpecificationGroupDto extends IElementDto{projectHourlyWage;projectTaxRate;projectPriceComponents;projectItemNumberSchema;elements;projectLabourTimeLabel;containsDuplicateItemNumbers;containsDuplicateElementIds;ignoreDuplicateItemNumbers;ignoreProjectCataloguePropagation;ignoreDuplicateElementIds;totalPriceGrossByTaxRate;ignoreChildPriceUpdates;deductedPrice;deductionFactor;absoluteDeduction;totalPrice;totalPriceGross;totalPriceGrossDeducted;priceType;shortText;comissionStatus;itemNumber;elementType="ServiceSpecificationGroup";elementTypeDiscriminator="ServiceSpecificationGroup";isLot;alternativeTo;oenormProperties;hierarchyLevel;addendumStatus;alternativeIdentifier;alternativeGroupIdentifier;constructor(e){if(super(e),e){if(this.projectItemNumberSchema=e.projectItemNumberSchema&&!e.projectItemNumberSchema.toJSON?new ItemNumberSchemaDto(e.projectItemNumberSchema):this.projectItemNumberSchema,e.totalPriceGrossByTaxRate){this.totalPriceGrossByTaxRate=[];for(let t=0;t<e.totalPriceGrossByTaxRate.length;t++){let i=e.totalPriceGrossByTaxRate[t];this.totalPriceGrossByTaxRate[t]=i&&!i.toJSON?new GrossPriceComponentDto(i):i}}this.itemNumber=e.itemNumber&&!e.itemNumber.toJSON?new ItemNumberDto(e.itemNumber):this.itemNumber,this.oenormProperties=e.oenormProperties&&!e.oenormProperties.toJSON?new OenormPropertiesDto(e.oenormProperties):this.oenormProperties}this._discriminator="ServiceSpecificationGroupDto"}init(e){if(void 0!==super.init&&super.init(e),e){if(this.projectHourlyWage=e.projectHourlyWage,this.projectTaxRate=e.projectTaxRate,Array.isArray(e.projectPriceComponents)){this.projectPriceComponents=[];for(let t of e.projectPriceComponents)this.projectPriceComponents.push(t)}if(this.projectItemNumberSchema=e.projectItemNumberSchema?ItemNumberSchemaDto.fromJS(e.projectItemNumberSchema):void 0,Array.isArray(e.elements)){this.elements=[];for(let t of e.elements)this.elements.push(IElementDto.fromJS(t))}if(this.projectLabourTimeLabel=e.projectLabourTimeLabel,this.containsDuplicateItemNumbers=e.containsDuplicateItemNumbers,this.containsDuplicateElementIds=e.containsDuplicateElementIds,this.ignoreDuplicateItemNumbers=e.ignoreDuplicateItemNumbers,this.ignoreProjectCataloguePropagation=e.ignoreProjectCataloguePropagation,this.ignoreDuplicateElementIds=e.ignoreDuplicateElementIds,Array.isArray(e.totalPriceGrossByTaxRate)){this.totalPriceGrossByTaxRate=[];for(let t of e.totalPriceGrossByTaxRate)this.totalPriceGrossByTaxRate.push(GrossPriceComponentDto.fromJS(t))}this.ignoreChildPriceUpdates=e.ignoreChildPriceUpdates,this.deductedPrice=e.deductedPrice,this.deductionFactor=e.deductionFactor,this.absoluteDeduction=e.absoluteDeduction,this.totalPrice=e.totalPrice,this.totalPriceGross=e.totalPriceGross,this.totalPriceGrossDeducted=e.totalPriceGrossDeducted,this.priceType=e.priceType,this.shortText=e.shortText,this.comissionStatus=e.comissionStatus,this.itemNumber=e.itemNumber?ItemNumberDto.fromJS(e.itemNumber):void 0,this.elementType=e.elementType,this.isLot=e.isLot,this.alternativeTo=e.alternativeTo,this.oenormProperties=e.oenormProperties?OenormPropertiesDto.fromJS(e.oenormProperties):void 0,this.hierarchyLevel=e.hierarchyLevel,this.addendumStatus=e.addendumStatus,this.alternativeIdentifier=e.alternativeIdentifier,this.alternativeGroupIdentifier=e.alternativeGroupIdentifier}}static fromJS(e){e="object"==typeof e?e:{};let t=new ServiceSpecificationGroupDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).projectHourlyWage=this.projectHourlyWage,e.projectTaxRate=this.projectTaxRate,Array.isArray(this.projectPriceComponents)){e.projectPriceComponents=[];for(let t of this.projectPriceComponents)e.projectPriceComponents.push(t)}if(this.projectItemNumberSchema?void 0!==this.projectItemNumberSchema.toJSON?e.projectItemNumberSchema=this.projectItemNumberSchema.toJSON():e.projectItemNumberSchema=this.projectItemNumberSchema:e.projectItemNumberSchema=void 0,Array.isArray(this.elements)){e.elements=[];for(let t of this.elements)void 0!==t.toJSON?e.elements.push(t.toJSON()):e.elements.push(t)}if(e.projectLabourTimeLabel=this.projectLabourTimeLabel,e.containsDuplicateItemNumbers=this.containsDuplicateItemNumbers,e.containsDuplicateElementIds=this.containsDuplicateElementIds,e.ignoreDuplicateItemNumbers=this.ignoreDuplicateItemNumbers,e.ignoreProjectCataloguePropagation=this.ignoreProjectCataloguePropagation,e.ignoreDuplicateElementIds=this.ignoreDuplicateElementIds,Array.isArray(this.totalPriceGrossByTaxRate)){e.totalPriceGrossByTaxRate=[];for(let t of this.totalPriceGrossByTaxRate)void 0!==t.toJSON?e.totalPriceGrossByTaxRate.push(t.toJSON()):e.totalPriceGrossByTaxRate.push(t)}return e.ignoreChildPriceUpdates=this.ignoreChildPriceUpdates,e.deductedPrice=this.deductedPrice,e.deductionFactor=this.deductionFactor,e.absoluteDeduction=this.absoluteDeduction,e.totalPrice=this.totalPrice,e.totalPriceGross=this.totalPriceGross,e.totalPriceGrossDeducted=this.totalPriceGrossDeducted,e.priceType=this.priceType,e.shortText=this.shortText,e.comissionStatus=this.comissionStatus,this.itemNumber?void 0!==this.itemNumber.toJSON?e.itemNumber=this.itemNumber.toJSON():e.itemNumber=this.itemNumber:e.itemNumber=void 0,e.elementType=this.elementType,e.isLot=this.isLot,e.alternativeTo=this.alternativeTo,this.oenormProperties?void 0!==this.oenormProperties.toJSON?e.oenormProperties=this.oenormProperties.toJSON():e.oenormProperties=this.oenormProperties:e.oenormProperties=void 0,e.hierarchyLevel=this.hierarchyLevel,e.addendumStatus=this.addendumStatus,e.alternativeIdentifier=this.alternativeIdentifier,e.alternativeGroupIdentifier=this.alternativeGroupIdentifier,void 0!==super.toJSON&&super.toJSON(e),e}}class GrossPriceComponentDto{taxRate;deductionFactor;totalNet;totalDeducted;totalTax;totalGross;totalGrossDeducted;totalTaxDeducted;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.taxRate=e.taxRate,this.deductionFactor=e.deductionFactor,this.totalNet=e.totalNet,this.totalDeducted=e.totalDeducted,this.totalTax=e.totalTax,this.totalGross=e.totalGross,this.totalGrossDeducted=e.totalGrossDeducted,this.totalTaxDeducted=e.totalTaxDeducted)}static fromJS(e){e="object"==typeof e?e:{};let t=new GrossPriceComponentDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).taxRate=this.taxRate,e.deductionFactor=this.deductionFactor,e.totalNet=this.totalNet,e.totalDeducted=this.totalDeducted,e.totalTax=this.totalTax,e.totalGross=this.totalGross,e.totalGrossDeducted=this.totalGrossDeducted,e.totalTaxDeducted=this.totalTaxDeducted,e}}class OenormPropertiesDto{originCode;openingTextIsFreeText;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.originCode=e.originCode,this.openingTextIsFreeText=e.openingTextIsFreeText)}static fromJS(e){e="object"==typeof e?e:{};let t=new OenormPropertiesDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).originCode=this.originCode,e.openingTextIsFreeText=this.openingTextIsFreeText,e}}!function(e){e.Undefined="Undefined",e.Base="Base",e.CostEstimate="CostEstimate",e.OfferRequest="OfferRequest",e.Offer="Offer",e.SideOffer="SideOffer",e.Grant="Grant"}(ExchangePhaseDto||(ExchangePhaseDto={})),function(e){e.Self="Self",e.Gaeb90="Gaeb90",e.Gaeb2000="Gaeb2000",e.GaebXml="GaebXml",e.Oenorm="Oenorm",e.Reb="Reb",e.Sia="Sia"}(OriginDto||(OriginDto={}));class PriceInformationDto{id;hourlyWage;deductionFactor;flatSum;taxRate;hasUnsetTaxRate;tradeDiscounts;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(e.tradeDiscounts){this.tradeDiscounts=[];for(let t=0;t<e.tradeDiscounts.length;t++){let i=e.tradeDiscounts[t];this.tradeDiscounts[t]=i&&!i.toJSON?new TradeDiscountDto(i):i}}}}init(e){if(e&&(this.id=e.id,this.hourlyWage=e.hourlyWage,this.deductionFactor=e.deductionFactor,this.flatSum=e.flatSum,this.taxRate=e.taxRate,this.hasUnsetTaxRate=e.hasUnsetTaxRate,Array.isArray(e.tradeDiscounts))){this.tradeDiscounts=[];for(let t of e.tradeDiscounts)this.tradeDiscounts.push(TradeDiscountDto.fromJS(t))}}static fromJS(e){e="object"==typeof e?e:{};let t=new PriceInformationDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.hourlyWage=this.hourlyWage,e.deductionFactor=this.deductionFactor,e.flatSum=this.flatSum,e.taxRate=this.taxRate,e.hasUnsetTaxRate=this.hasUnsetTaxRate,Array.isArray(this.tradeDiscounts)){e.tradeDiscounts=[];for(let t of this.tradeDiscounts)void 0!==t.toJSON?e.tradeDiscounts.push(t.toJSON()):e.tradeDiscounts.push(t)}return e}}class TradeDiscountDto{id;deadline;rate;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.id=e.id,this.deadline=e.deadline,this.rate=e.rate)}static fromJS(e){e="object"==typeof e?e:{};let t=new TradeDiscountDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).id=this.id,e.deadline=this.deadline,e.rate=this.rate,e}}class WarrantyDurationDto{duration;unit;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.duration=e.duration,this.unit=e.unit)}static fromJS(e){e="object"==typeof e?e:{};let t=new WarrantyDurationDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).duration=this.duration,e.unit=this.unit,e}}!function(e){e.Months="Months",e.Years="Years"}(DurationUnitDto||(DurationUnitDto={}));class ServiceSpecificationCommercePropertiesDto{fixedPriceDate;deliveryVoucherDate;deliveryDate;inquiryNumber;offerNumber;orderNumber;orderConfirmationNumber;deliveryNumber;customerReferenceNumber;supplierReferenceNumber;shippingType;inquiryType;constructor(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}init(e){e&&(this.fixedPriceDate=e.fixedPriceDate?new Date(e.fixedPriceDate.toString()):void 0,this.deliveryVoucherDate=e.deliveryVoucherDate?new Date(e.deliveryVoucherDate.toString()):void 0,this.deliveryDate=e.deliveryDate?new Date(e.deliveryDate.toString()):void 0,this.inquiryNumber=e.inquiryNumber,this.offerNumber=e.offerNumber,this.orderNumber=e.orderNumber,this.orderConfirmationNumber=e.orderConfirmationNumber,this.deliveryNumber=e.deliveryNumber,this.customerReferenceNumber=e.customerReferenceNumber,this.supplierReferenceNumber=e.supplierReferenceNumber,this.shippingType=e.shippingType,this.inquiryType=e.inquiryType)}static fromJS(e){e="object"==typeof e?e:{};let t=new ServiceSpecificationCommercePropertiesDto;return t.init(e),t}toJSON(e){return(e="object"==typeof e?e:{}).fixedPriceDate=this.fixedPriceDate?this.fixedPriceDate.toISOString():void 0,e.deliveryVoucherDate=this.deliveryVoucherDate?this.deliveryVoucherDate.toISOString():void 0,e.deliveryDate=this.deliveryDate?this.deliveryDate.toISOString():void 0,e.inquiryNumber=this.inquiryNumber,e.offerNumber=this.offerNumber,e.orderNumber=this.orderNumber,e.orderConfirmationNumber=this.orderConfirmationNumber,e.deliveryNumber=this.deliveryNumber,e.customerReferenceNumber=this.customerReferenceNumber,e.supplierReferenceNumber=this.supplierReferenceNumber,e.shippingType=this.shippingType,e.inquiryType=this.inquiryType,e}}!function(e){e.Unknown="Unknown",e.Project="Project",e.Immediate="Immediate",e.Exhibition="Exhibition"}(CommerceInquiryTypeDto||(CommerceInquiryTypeDto={}));class ProjectDto{id;priceAccuracy;unitPriceAccuracy;forceStrictTotals;priceRoundingMode;projectInformation;serviceSpecifications;gaebXmlId;constructor(e){if(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);if(this.projectInformation=e.projectInformation&&!e.projectInformation.toJSON?new ProjectInformationDto(e.projectInformation):this.projectInformation,e.serviceSpecifications){this.serviceSpecifications=[];for(let t=0;t<e.serviceSpecifications.length;t++){let i=e.serviceSpecifications[t];this.serviceSpecifications[t]=i&&!i.toJSON?new ServiceSpecificationDto(i):i}}}}init(e){if(e){if(this.id=e.id,this.priceAccuracy=e.priceAccuracy,this.unitPriceAccuracy=e.unitPriceAccuracy,this.forceStrictTotals=e.forceStrictTotals,this.priceRoundingMode=e.priceRoundingMode,this.projectInformation=e.projectInformation?ProjectInformationDto.fromJS(e.projectInformation):void 0,Array.isArray(e.serviceSpecifications)){this.serviceSpecifications=[];for(let t of e.serviceSpecifications)this.serviceSpecifications.push(ServiceSpecificationDto.fromJS(t))}this.gaebXmlId=e.gaebXmlId}}static fromJS(e){e="object"==typeof e?e:{};let t=new ProjectDto;return t.init(e),t}toJSON(e){if((e="object"==typeof e?e:{}).id=this.id,e.priceAccuracy=this.priceAccuracy,e.unitPriceAccuracy=this.unitPriceAccuracy,e.forceStrictTotals=this.forceStrictTotals,e.priceRoundingMode=this.priceRoundingMode,this.projectInformation?void 0!==this.projectInformation.toJSON?e.projectInformation=this.projectInformation.toJSON():e.projectInformation=this.projectInformation:e.projectInformation=void 0,Array.isArray(this.serviceSpecifications)){e.serviceSpecifications=[];for(let t of this.serviceSpecifications)void 0!==t.toJSON?e.serviceSpecifications.push(t.toJSON()):e.serviceSpecifications.push(t)}return e.gaebXmlId=this.gaebXmlId,e}}const avaModelsVersion={version:"2.26.0",commitInfo:"Branch.master.Sha.2f54abc881a26b660225b34492b32aa7b0d5deda",commitDate:"2025-08-20",commitHash:"2f54abc881a26b660225b34492b32aa7b0d5deda",informationalVersion:"2.26.0+Branch.master.Sha.2f54abc881a26b660225b34492b32aa7b0d5deda",buildDateUtc:new Date(Date.UTC(2025,7,20,21,45,41))};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};
|
|
@@ -3748,12 +3748,12 @@ class ProjectDto {
|
|
|
3748
3748
|
|
|
3749
3749
|
// This file is automatically generated as part of the build process
|
|
3750
3750
|
const avaModelsVersion = {
|
|
3751
|
-
version: "2.26.0
|
|
3752
|
-
commitInfo: "Branch.
|
|
3753
|
-
commitDate: "2025-08-
|
|
3754
|
-
commitHash: "
|
|
3755
|
-
informationalVersion: "2.26.0
|
|
3756
|
-
buildDateUtc: new Date(Date.UTC(2025, 7,
|
|
3751
|
+
version: "2.26.0",
|
|
3752
|
+
commitInfo: "Branch.master.Sha.2f54abc881a26b660225b34492b32aa7b0d5deda",
|
|
3753
|
+
commitDate: "2025-08-20",
|
|
3754
|
+
commitHash: "2f54abc881a26b660225b34492b32aa7b0d5deda",
|
|
3755
|
+
informationalVersion: "2.26.0+Branch.master.Sha.2f54abc881a26b660225b34492b32aa7b0d5deda",
|
|
3756
|
+
buildDateUtc: new Date(Date.UTC(2025, 7, 20, 21, 45, 41))
|
|
3757
3757
|
};
|
|
3758
3758
|
|
|
3759
3759
|
/**
|