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