@dangl/avacloud-client-node 1.17.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. package/api.d.ts +393 -25
  2. package/api.js +525 -30
  3. package/api.js.map +1 -1
  4. package/api.ts +711 -45
  5. package/package.json +1 -1
package/api.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  /**
3
- * AVACloud API 1.29.0
3
+ * AVACloud API 1.30.0
4
4
  * AVACloud API specification
5
5
  *
6
- * OpenAPI spec version: 1.29.0
6
+ * OpenAPI spec version: 1.30.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -11,7 +11,7 @@
11
11
  * Do not edit the class manually.
12
12
  */
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.StatusApi = exports.StatusApiApiKeys = exports.SiaConversionApi = exports.SiaConversionApiApiKeys = exports.RebConversionApi = exports.RebConversionApiApiKeys = exports.OenormConversionApi = exports.OenormConversionApiApiKeys = exports.GaebConversionApi = exports.GaebConversionApiApiKeys = exports.ExcelConversionApi = exports.ExcelConversionApiApiKeys = exports.DanglIdentityApi = exports.DanglIdentityApiApiKeys = exports.AvaConversionApi = exports.AvaConversionApiApiKeys = exports.AslvConversionApi = exports.AslvConversionApiApiKeys = exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBasicAuth = exports.WarrantyDurationDto = exports.TradeDiscountDto = exports.TokenResponseGet = exports.TokenRefreshPost = exports.TokenLoginPost = exports.SubDescriptionDto = exports.StandardizedDescriptionDto = exports.StandardReferenceTypeDto = exports.SpecialAwardKindDto = exports.ServiceTypeDto = exports.ServiceSpecificationGroupDto = exports.ServiceSpecificationDto = exports.STLBReferenceDto = exports.STLBKeyDto = exports.ResponseErrorType = exports.RegisterPost = exports.QuantityAssignmentDto = exports.ProjectInformationDto = exports.ProjectDto = exports.ProductDataDto = exports.PriceTypeDto = exports.PriceRoundingModeDto = exports.PriceInformationDto = exports.PriceComponentTypeDto = exports.PriceComponentDto = exports.PositionTypeDto = exports.PositionDto = exports.PartyInformationDto = exports.OriginDto = exports.OenormPropertiesDto = exports.OenormPositionPropertiesDto = exports.OenormOriginCodeDto = exports.OenormNoteTextPropertiesDto = exports.NoteTextDto = exports.LoginPost = exports.LabourPriceComponentDto = exports.ItemNumberTypeDto = exports.ItemNumberSchemaTierTypeDto = exports.ItemNumberSchemaTierDto = exports.ItemNumberSchemaDto = exports.ItemNumberDto = exports.HttpStatusCode = exports.GrossPriceComponentDto = exports.GetStatus = exports.ForgotPasswordPost = exports.ExecutionDescriptionDto = exports.IElementDto = exports.ExchangePhaseDto = exports.DurationUnitDto = exports.DestinationRebType = exports.DestinationOenormType = exports.DestinationGaebType = exports.DestinationGaebExchangePhase = exports.ComplementedByQuantityDto = exports.CommercePropertiesDto = exports.ComissionStatusDto = exports.CatalogueTypeDto = exports.CatalogueReferenceDto = exports.CatalogueDto = exports.CalculationDto = exports.BankingInformationDto = exports.AwardTypeDto = exports.ArticleDataDto = exports.ApiError = exports.AdditionTypeDto = exports.AddendumStatusDto = void 0;
14
+ exports.ValidationApi = exports.ValidationApiApiKeys = exports.StatusApi = exports.StatusApiApiKeys = exports.SiaConversionApi = exports.SiaConversionApiApiKeys = exports.RebConversionApi = exports.RebConversionApiApiKeys = exports.OenormConversionApi = exports.OenormConversionApiApiKeys = exports.GaebConversionApi = exports.GaebConversionApiApiKeys = exports.ExcelConversionApi = exports.ExcelConversionApiApiKeys = exports.DanglIdentityApi = exports.DanglIdentityApiApiKeys = exports.AvaConversionApi = exports.AvaConversionApiApiKeys = exports.AslvConversionApi = exports.AslvConversionApiApiKeys = exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBasicAuth = exports.XmlSchemaValidationCheckDetails = exports.WarrantyDurationDto = exports.ValidationType = exports.ValidationSeverity = exports.ValidationResult = exports.ValidationCheckType = exports.ValidationCheckResult = exports.TradeDiscountDto = exports.TokenResponseGet = exports.TokenRefreshPost = exports.TokenLoginPost = exports.SubDescriptionDto = exports.StandardizedDescriptionDto = exports.StandardReferenceTypeDto = exports.SpecialAwardKindDto = exports.ServiceTypeDto = exports.ServiceSpecificationGroupDto = exports.ServiceSpecificationDto = exports.STLBReferenceDto = exports.STLBKeyDto = exports.ResponseErrorType = exports.RegisterPost = exports.QuantityAssignmentDto = exports.ProjectValidationCheckDetails = exports.ProjectInformationDto = exports.ProjectDto = exports.ProductDataDto = exports.PriceTypeDto = exports.PriceRoundingModeDto = exports.PriceInformationDto = exports.PriceComponentTypeDto = exports.PriceComponentDto = exports.PostOenormDestinationOptions = exports.PostGaebDestinationOptions = exports.PostAvaSourceOptions = exports.PostAvaProjectValidationSourceOptions = exports.PositionTypeDto = exports.PositionDto = exports.PartyInformationDto = exports.OriginDto = exports.OenormPropertiesDto = exports.OenormPositionPropertiesDto = exports.OenormOriginCodeDto = exports.OenormNoteTextPropertiesDto = exports.ObjectValidationCheckDetails = exports.NoteTextDto = exports.LoginPost = exports.LabourPriceComponentDto = exports.ItemNumberTypeDto = exports.ItemNumberSchemaTierTypeDto = exports.ItemNumberSchemaTierDto = exports.ItemNumberSchemaDto = exports.ItemNumberDto = exports.HttpStatusCode = exports.GrossPriceComponentDto = exports.GetStatus = exports.ForgotPasswordPost = exports.FileValidationSourceType = exports.ExecutionDescriptionDto = exports.IElementDto = exports.ExchangePhaseDto = exports.DurationUnitDto = exports.DestinationRebType = exports.DestinationOenormType = exports.DestinationGaebType = exports.DestinationGaebExchangePhase = exports.ComplementedByQuantityDto = exports.CommercePropertiesDto = exports.ComissionStatusDto = exports.CatalogueTypeDto = exports.CatalogueReferenceDto = exports.CatalogueDto = exports.CalculationDto = exports.BankingInformationDto = exports.AwardTypeDto = exports.ArticleDataDto = exports.ApiError = exports.AdditionTypeDto = exports.AddendumStatusDto = void 0;
15
15
  const localVarRequest = require("request");
16
16
  let defaultBasePath = 'https://avacloud-api.dangl-it.com';
17
17
  // ===============================================
@@ -583,6 +583,16 @@ IElementDto.attributeTypeMap = [
583
583
  "baseName": "addendumNumber",
584
584
  "type": "string"
585
585
  },
586
+ {
587
+ "name": "projectCatalogues",
588
+ "baseName": "projectCatalogues",
589
+ "type": "Array<CatalogueDto>"
590
+ },
591
+ {
592
+ "name": "catalogueReferences",
593
+ "baseName": "catalogueReferences",
594
+ "type": "Array<CatalogueReferenceDto>"
595
+ },
586
596
  {
587
597
  "name": "elementTypeDiscriminator",
588
598
  "baseName": "elementTypeDiscriminator",
@@ -618,6 +628,17 @@ ExecutionDescriptionDto.attributeTypeMap = [
618
628
  "type": "string"
619
629
  }
620
630
  ];
631
+ /**
632
+ * This enum represents the source type for a file based validation operation
633
+ */
634
+ class FileValidationSourceType {
635
+ static getAttributeTypeMap() {
636
+ return FileValidationSourceType.attributeTypeMap;
637
+ }
638
+ }
639
+ exports.FileValidationSourceType = FileValidationSourceType;
640
+ FileValidationSourceType.discriminator = undefined;
641
+ FileValidationSourceType.attributeTypeMap = [];
621
642
  class ForgotPasswordPost {
622
643
  static getAttributeTypeMap() {
623
644
  return ForgotPasswordPost.attributeTypeMap;
@@ -1036,6 +1057,23 @@ NoteTextDto.attributeTypeMap = [
1036
1057
  }
1037
1058
  ];
1038
1059
  /**
1060
+ * Basic information about Object check validation details, commonly used when checking GAEB 2000 files
1061
+ */
1062
+ class ObjectValidationCheckDetails {
1063
+ static getAttributeTypeMap() {
1064
+ return ObjectValidationCheckDetails.attributeTypeMap;
1065
+ }
1066
+ }
1067
+ exports.ObjectValidationCheckDetails = ObjectValidationCheckDetails;
1068
+ ObjectValidationCheckDetails.discriminator = undefined;
1069
+ ObjectValidationCheckDetails.attributeTypeMap = [
1070
+ {
1071
+ "name": "elementPath",
1072
+ "baseName": "elementPath",
1073
+ "type": "string"
1074
+ }
1075
+ ];
1076
+ /**
1039
1077
  * This class models special properties that only apply to some exchange scenarios where ÖNorm is used. It is special for NoteTexts.
1040
1078
  */
1041
1079
  class OenormNoteTextPropertiesDto {
@@ -1433,16 +1471,6 @@ PositionDto.attributeTypeMap = [
1433
1471
  "baseName": "repetitionTo",
1434
1472
  "type": "string"
1435
1473
  },
1436
- {
1437
- "name": "projectCatalogues",
1438
- "baseName": "projectCatalogues",
1439
- "type": "Array<CatalogueDto>"
1440
- },
1441
- {
1442
- "name": "catalogueReferences",
1443
- "baseName": "catalogueReferences",
1444
- "type": "Array<CatalogueReferenceDto>"
1445
- },
1446
1474
  {
1447
1475
  "name": "type",
1448
1476
  "baseName": "type",
@@ -1506,6 +1534,144 @@ exports.PositionTypeDto = PositionTypeDto;
1506
1534
  PositionTypeDto.discriminator = undefined;
1507
1535
  PositionTypeDto.attributeTypeMap = [];
1508
1536
  /**
1537
+ * Options for validating an AVA project
1538
+ */
1539
+ class PostAvaProjectValidationSourceOptions {
1540
+ static getAttributeTypeMap() {
1541
+ return PostAvaProjectValidationSourceOptions.attributeTypeMap;
1542
+ }
1543
+ }
1544
+ exports.PostAvaProjectValidationSourceOptions = PostAvaProjectValidationSourceOptions;
1545
+ PostAvaProjectValidationSourceOptions.discriminator = undefined;
1546
+ PostAvaProjectValidationSourceOptions.attributeTypeMap = [
1547
+ {
1548
+ "name": "avaProject",
1549
+ "baseName": "avaProject",
1550
+ "type": "ProjectDto"
1551
+ },
1552
+ {
1553
+ "name": "serviceSpecificationIndex",
1554
+ "baseName": "serviceSpecificationIndex",
1555
+ "type": "number"
1556
+ },
1557
+ {
1558
+ "name": "validationType",
1559
+ "baseName": "validationType",
1560
+ "type": "ValidationType"
1561
+ },
1562
+ {
1563
+ "name": "exchangePhase",
1564
+ "baseName": "exchangePhase",
1565
+ "type": "ExchangePhaseDto"
1566
+ },
1567
+ {
1568
+ "name": "avaSourceOptions",
1569
+ "baseName": "avaSourceOptions",
1570
+ "type": "PostAvaSourceOptions"
1571
+ },
1572
+ {
1573
+ "name": "oenormDestinationOptions",
1574
+ "baseName": "oenormDestinationOptions",
1575
+ "type": "PostOenormDestinationOptions"
1576
+ },
1577
+ {
1578
+ "name": "gaebDestinationOptions",
1579
+ "baseName": "gaebDestinationOptions",
1580
+ "type": "PostGaebDestinationOptions"
1581
+ }
1582
+ ];
1583
+ /**
1584
+ * Options for conversions from AVA
1585
+ */
1586
+ class PostAvaSourceOptions {
1587
+ static getAttributeTypeMap() {
1588
+ return PostAvaSourceOptions.attributeTypeMap;
1589
+ }
1590
+ }
1591
+ exports.PostAvaSourceOptions = PostAvaSourceOptions;
1592
+ PostAvaSourceOptions.discriminator = undefined;
1593
+ PostAvaSourceOptions.attributeTypeMap = [
1594
+ {
1595
+ "name": "tryAutoGenerateItemNumbersAndSchema",
1596
+ "baseName": "tryAutoGenerateItemNumbersAndSchema",
1597
+ "type": "boolean"
1598
+ }
1599
+ ];
1600
+ /**
1601
+ * Options for conversions to GAEB
1602
+ */
1603
+ class PostGaebDestinationOptions {
1604
+ static getAttributeTypeMap() {
1605
+ return PostGaebDestinationOptions.attributeTypeMap;
1606
+ }
1607
+ }
1608
+ exports.PostGaebDestinationOptions = PostGaebDestinationOptions;
1609
+ PostGaebDestinationOptions.discriminator = undefined;
1610
+ PostGaebDestinationOptions.attributeTypeMap = [
1611
+ {
1612
+ "name": "destinationGaebType",
1613
+ "baseName": "destinationGaebType",
1614
+ "type": "DestinationGaebType"
1615
+ },
1616
+ {
1617
+ "name": "targetExchangePhaseTransform",
1618
+ "baseName": "targetExchangePhaseTransform",
1619
+ "type": "DestinationGaebExchangePhase"
1620
+ },
1621
+ {
1622
+ "name": "enforceStrictOfferPhaseLongTextOutput",
1623
+ "baseName": "enforceStrictOfferPhaseLongTextOutput",
1624
+ "type": "boolean"
1625
+ },
1626
+ {
1627
+ "name": "exportQuantityDetermination",
1628
+ "baseName": "exportQuantityDetermination",
1629
+ "type": "boolean"
1630
+ },
1631
+ {
1632
+ "name": "removeUnprintableCharactersFromTexts",
1633
+ "baseName": "removeUnprintableCharactersFromTexts",
1634
+ "type": "boolean"
1635
+ },
1636
+ {
1637
+ "name": "forceIncludeDescriptions",
1638
+ "baseName": "forceIncludeDescriptions",
1639
+ "type": "boolean"
1640
+ }
1641
+ ];
1642
+ /**
1643
+ * Options for conversions to Oenorm
1644
+ */
1645
+ class PostOenormDestinationOptions {
1646
+ static getAttributeTypeMap() {
1647
+ return PostOenormDestinationOptions.attributeTypeMap;
1648
+ }
1649
+ }
1650
+ exports.PostOenormDestinationOptions = PostOenormDestinationOptions;
1651
+ PostOenormDestinationOptions.discriminator = undefined;
1652
+ PostOenormDestinationOptions.attributeTypeMap = [
1653
+ {
1654
+ "name": "destinationOenormType",
1655
+ "baseName": "destinationOenormType",
1656
+ "type": "DestinationOenormType"
1657
+ },
1658
+ {
1659
+ "name": "tryRepairProjectStructure",
1660
+ "baseName": "tryRepairProjectStructure",
1661
+ "type": "boolean"
1662
+ },
1663
+ {
1664
+ "name": "skipTryEnforceSchemaCompliantXmlOutput",
1665
+ "baseName": "skipTryEnforceSchemaCompliantXmlOutput",
1666
+ "type": "boolean"
1667
+ },
1668
+ {
1669
+ "name": "removeUnprintableCharactersFromTexts",
1670
+ "baseName": "removeUnprintableCharactersFromTexts",
1671
+ "type": "boolean"
1672
+ }
1673
+ ];
1674
+ /**
1509
1675
  * This class provides means to store information about a price and it's composition. Note that this is referencing to a single price component, so for example a Position would have a list of PriceComponents, one for Material, one for Labour etc.
1510
1676
  */
1511
1677
  class PriceComponentDto {
@@ -1789,6 +1955,23 @@ ProjectInformationDto.attributeTypeMap = [
1789
1955
  }
1790
1956
  ];
1791
1957
  /**
1958
+ * Check details specificly for checking ProjectDto objects
1959
+ */
1960
+ class ProjectValidationCheckDetails {
1961
+ static getAttributeTypeMap() {
1962
+ return ProjectValidationCheckDetails.attributeTypeMap;
1963
+ }
1964
+ }
1965
+ exports.ProjectValidationCheckDetails = ProjectValidationCheckDetails;
1966
+ ProjectValidationCheckDetails.discriminator = undefined;
1967
+ ProjectValidationCheckDetails.attributeTypeMap = [
1968
+ {
1969
+ "name": "elementId",
1970
+ "baseName": "elementId",
1971
+ "type": "string"
1972
+ }
1973
+ ];
1974
+ /**
1792
1975
  * Quantity assignments are, in contrast to SubDescriptions, used to categorize parts of their parent Position. For example, it could be categorized by cost group - e.g. a Position describing concrete walls could follow the German DIN 276 Cost Groups Standard and specify that of the total 1.000m² wall, 500m² are classified as exterior walls and 500m² are classified as interior walls. They would then have different cost groups associated, e.g. for accounting purposes.
1793
1976
  */
1794
1977
  class QuantityAssignmentDto {
@@ -2309,16 +2492,6 @@ ServiceSpecificationGroupDto.attributeTypeMap = [
2309
2492
  "baseName": "type",
2310
2493
  "type": "string"
2311
2494
  },
2312
- {
2313
- "name": "projectCatalogues",
2314
- "baseName": "projectCatalogues",
2315
- "type": "Array<CatalogueDto>"
2316
- },
2317
- {
2318
- "name": "catalogueReferences",
2319
- "baseName": "catalogueReferences",
2320
- "type": "Array<CatalogueReferenceDto>"
2321
- },
2322
2495
  {
2323
2496
  "name": "oenormProperties",
2324
2497
  "baseName": "oenormProperties",
@@ -2602,6 +2775,113 @@ TradeDiscountDto.attributeTypeMap = [
2602
2775
  }
2603
2776
  ];
2604
2777
  /**
2778
+ * This class models the results of a single check performed during a validation action
2779
+ */
2780
+ class ValidationCheckResult {
2781
+ static getAttributeTypeMap() {
2782
+ return ValidationCheckResult.attributeTypeMap;
2783
+ }
2784
+ }
2785
+ exports.ValidationCheckResult = ValidationCheckResult;
2786
+ ValidationCheckResult.discriminator = undefined;
2787
+ ValidationCheckResult.attributeTypeMap = [
2788
+ {
2789
+ "name": "severity",
2790
+ "baseName": "severity",
2791
+ "type": "ValidationSeverity"
2792
+ },
2793
+ {
2794
+ "name": "checkType",
2795
+ "baseName": "checkType",
2796
+ "type": "ValidationCheckType"
2797
+ },
2798
+ {
2799
+ "name": "message",
2800
+ "baseName": "message",
2801
+ "type": "string"
2802
+ },
2803
+ {
2804
+ "name": "objectValidationCheckDetails",
2805
+ "baseName": "objectValidationCheckDetails",
2806
+ "type": "ObjectValidationCheckDetails"
2807
+ },
2808
+ {
2809
+ "name": "xmlSchemaValidationCheckDetails",
2810
+ "baseName": "xmlSchemaValidationCheckDetails",
2811
+ "type": "XmlSchemaValidationCheckDetails"
2812
+ },
2813
+ {
2814
+ "name": "projectValidationCheckDetails",
2815
+ "baseName": "projectValidationCheckDetails",
2816
+ "type": "ProjectValidationCheckDetails"
2817
+ }
2818
+ ];
2819
+ /**
2820
+ * Enumeration for the different types of checks performed
2821
+ */
2822
+ class ValidationCheckType {
2823
+ static getAttributeTypeMap() {
2824
+ return ValidationCheckType.attributeTypeMap;
2825
+ }
2826
+ }
2827
+ exports.ValidationCheckType = ValidationCheckType;
2828
+ ValidationCheckType.discriminator = undefined;
2829
+ ValidationCheckType.attributeTypeMap = [];
2830
+ /**
2831
+ * This class represents the result of a validation operation
2832
+ */
2833
+ class ValidationResult {
2834
+ static getAttributeTypeMap() {
2835
+ return ValidationResult.attributeTypeMap;
2836
+ }
2837
+ }
2838
+ exports.ValidationResult = ValidationResult;
2839
+ ValidationResult.discriminator = undefined;
2840
+ ValidationResult.attributeTypeMap = [
2841
+ {
2842
+ "name": "isSchemaCompliant",
2843
+ "baseName": "isSchemaCompliant",
2844
+ "type": "boolean"
2845
+ },
2846
+ {
2847
+ "name": "checkResults",
2848
+ "baseName": "checkResults",
2849
+ "type": "Array<ValidationCheckResult>"
2850
+ },
2851
+ {
2852
+ "name": "validationType",
2853
+ "baseName": "validationType",
2854
+ "type": "ValidationType"
2855
+ },
2856
+ {
2857
+ "name": "fileName",
2858
+ "baseName": "fileName",
2859
+ "type": "string"
2860
+ }
2861
+ ];
2862
+ /**
2863
+ * Indicates the severity of a check
2864
+ */
2865
+ class ValidationSeverity {
2866
+ static getAttributeTypeMap() {
2867
+ return ValidationSeverity.attributeTypeMap;
2868
+ }
2869
+ }
2870
+ exports.ValidationSeverity = ValidationSeverity;
2871
+ ValidationSeverity.discriminator = undefined;
2872
+ ValidationSeverity.attributeTypeMap = [];
2873
+ /**
2874
+ * This enumeration represents the possible conversion targets when performing a validation
2875
+ */
2876
+ class ValidationType {
2877
+ static getAttributeTypeMap() {
2878
+ return ValidationType.attributeTypeMap;
2879
+ }
2880
+ }
2881
+ exports.ValidationType = ValidationType;
2882
+ ValidationType.discriminator = undefined;
2883
+ ValidationType.attributeTypeMap = [];
2884
+ /**
2605
2885
  * This class does not represent a typical `TimeSpan` but has a scalar value int Duration and a DurationUnit Unit to represent durations as typically used in contracts, e.g. 5 Months
2606
2886
  */
2607
2887
  class WarrantyDurationDto {
@@ -2623,6 +2903,28 @@ WarrantyDurationDto.attributeTypeMap = [
2623
2903
  "type": "DurationUnitDto"
2624
2904
  }
2625
2905
  ];
2906
+ /**
2907
+ * Check details for an XML schema validation result
2908
+ */
2909
+ class XmlSchemaValidationCheckDetails {
2910
+ static getAttributeTypeMap() {
2911
+ return XmlSchemaValidationCheckDetails.attributeTypeMap;
2912
+ }
2913
+ }
2914
+ exports.XmlSchemaValidationCheckDetails = XmlSchemaValidationCheckDetails;
2915
+ XmlSchemaValidationCheckDetails.discriminator = undefined;
2916
+ XmlSchemaValidationCheckDetails.attributeTypeMap = [
2917
+ {
2918
+ "name": "lineNumber",
2919
+ "baseName": "lineNumber",
2920
+ "type": "number"
2921
+ },
2922
+ {
2923
+ "name": "linePosition",
2924
+ "baseName": "linePosition",
2925
+ "type": "number"
2926
+ }
2927
+ ];
2626
2928
  let enumsMap = {};
2627
2929
  let typeMap = {
2628
2930
  "AddendumStatusDto": AddendumStatusDto,
@@ -2645,6 +2947,7 @@ let typeMap = {
2645
2947
  "DurationUnitDto": DurationUnitDto,
2646
2948
  "ExchangePhaseDto": ExchangePhaseDto,
2647
2949
  "ExecutionDescriptionDto": ExecutionDescriptionDto,
2950
+ "FileValidationSourceType": FileValidationSourceType,
2648
2951
  "ForgotPasswordPost": ForgotPasswordPost,
2649
2952
  "GetStatus": GetStatus,
2650
2953
  "GrossPriceComponentDto": GrossPriceComponentDto,
@@ -2658,6 +2961,7 @@ let typeMap = {
2658
2961
  "LabourPriceComponentDto": LabourPriceComponentDto,
2659
2962
  "LoginPost": LoginPost,
2660
2963
  "NoteTextDto": NoteTextDto,
2964
+ "ObjectValidationCheckDetails": ObjectValidationCheckDetails,
2661
2965
  "OenormNoteTextPropertiesDto": OenormNoteTextPropertiesDto,
2662
2966
  "OenormOriginCodeDto": OenormOriginCodeDto,
2663
2967
  "OenormPositionPropertiesDto": OenormPositionPropertiesDto,
@@ -2666,6 +2970,10 @@ let typeMap = {
2666
2970
  "PartyInformationDto": PartyInformationDto,
2667
2971
  "PositionDto": PositionDto,
2668
2972
  "PositionTypeDto": PositionTypeDto,
2973
+ "PostAvaProjectValidationSourceOptions": PostAvaProjectValidationSourceOptions,
2974
+ "PostAvaSourceOptions": PostAvaSourceOptions,
2975
+ "PostGaebDestinationOptions": PostGaebDestinationOptions,
2976
+ "PostOenormDestinationOptions": PostOenormDestinationOptions,
2669
2977
  "PriceComponentDto": PriceComponentDto,
2670
2978
  "PriceComponentTypeDto": PriceComponentTypeDto,
2671
2979
  "PriceInformationDto": PriceInformationDto,
@@ -2674,6 +2982,7 @@ let typeMap = {
2674
2982
  "ProductDataDto": ProductDataDto,
2675
2983
  "ProjectDto": ProjectDto,
2676
2984
  "ProjectInformationDto": ProjectInformationDto,
2985
+ "ProjectValidationCheckDetails": ProjectValidationCheckDetails,
2677
2986
  "QuantityAssignmentDto": QuantityAssignmentDto,
2678
2987
  "RegisterPost": RegisterPost,
2679
2988
  "ResponseErrorType": ResponseErrorType,
@@ -2690,7 +2999,13 @@ let typeMap = {
2690
2999
  "TokenRefreshPost": TokenRefreshPost,
2691
3000
  "TokenResponseGet": TokenResponseGet,
2692
3001
  "TradeDiscountDto": TradeDiscountDto,
3002
+ "ValidationCheckResult": ValidationCheckResult,
3003
+ "ValidationCheckType": ValidationCheckType,
3004
+ "ValidationResult": ValidationResult,
3005
+ "ValidationSeverity": ValidationSeverity,
3006
+ "ValidationType": ValidationType,
2693
3007
  "WarrantyDurationDto": WarrantyDurationDto,
3008
+ "XmlSchemaValidationCheckDetails": XmlSchemaValidationCheckDetails,
2694
3009
  };
2695
3010
  class HttpBasicAuth {
2696
3011
  constructor() {
@@ -2915,9 +3230,10 @@ class AslvConversionApi {
2915
3230
  * @param enforceStrictOfferPhaseLongTextOutput Defaults to false. If this is enabled, exported long texts to GAEB XML that use text additions will be strictly schema compliant. If this is not enabled, any text that is marked to contain a text addition is exported in full to ensure that incorrectly used text additions are still preserved in the export.
2916
3231
  * @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the &#39;QtyDeterm&#39; (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the &#39;QuantityComponents&#39; property of positions. Please see the entry for &#39;Quantity Determination&#39; in the Dangl.AVA HowTo documentation section. Please be advised that enabling this might export data that was not intended to be exported, like internal quantity calculation details, depending on what data you put in the &#39;QuantityComponents&#39; property.
2917
3232
  * @param removeUnprintableCharactersFromTexts If this is enabled, unprintable characters are removed from text elements. Otherwise, the conversion might fail in case some text content contains characters that are not allowed in XML output formats.
3233
+ * @param forceIncludeDescriptions If this is enabled, all description elements like texts and execution descriptions will be output to the result. This is mostly only applicable to GAEB exports to phase 84 - Offer, which does typically not include descriptions.
2918
3234
  * @param {*} [options] Override http request options.
2919
3235
  */
2920
- aslvConversionConvertToGaeb(aslvFile, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, options = {}) {
3236
+ aslvConversionConvertToGaeb(aslvFile, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, options = {}) {
2921
3237
  const localVarPath = this.basePath + '/conversion/aslv/gaeb';
2922
3238
  let localVarQueryParameters = {};
2923
3239
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -2937,6 +3253,9 @@ class AslvConversionApi {
2937
3253
  if (removeUnprintableCharactersFromTexts !== undefined) {
2938
3254
  localVarQueryParameters['RemoveUnprintableCharactersFromTexts'] = ObjectSerializer.serialize(removeUnprintableCharactersFromTexts, "boolean");
2939
3255
  }
3256
+ if (forceIncludeDescriptions !== undefined) {
3257
+ localVarQueryParameters['ForceIncludeDescriptions'] = ObjectSerializer.serialize(forceIncludeDescriptions, "boolean");
3258
+ }
2940
3259
  Object.assign(localVarHeaderParams, options.headers);
2941
3260
  let localVarUseFormData = false;
2942
3261
  if (aslvFile !== undefined) {
@@ -3234,9 +3553,10 @@ class AvaConversionApi {
3234
3553
  * @param enforceStrictOfferPhaseLongTextOutput Defaults to false. If this is enabled, exported long texts to GAEB XML that use text additions will be strictly schema compliant. If this is not enabled, any text that is marked to contain a text addition is exported in full to ensure that incorrectly used text additions are still preserved in the export.
3235
3554
  * @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the &#39;QtyDeterm&#39; (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the &#39;QuantityComponents&#39; property of positions. Please see the entry for &#39;Quantity Determination&#39; in the Dangl.AVA HowTo documentation section. Please be advised that enabling this might export data that was not intended to be exported, like internal quantity calculation details, depending on what data you put in the &#39;QuantityComponents&#39; property.
3236
3555
  * @param removeUnprintableCharactersFromTexts If this is enabled, unprintable characters are removed from text elements. Otherwise, the conversion might fail in case some text content contains characters that are not allowed in XML output formats.
3556
+ * @param forceIncludeDescriptions If this is enabled, all description elements like texts and execution descriptions will be output to the result. This is mostly only applicable to GAEB exports to phase 84 - Offer, which does typically not include descriptions.
3237
3557
  * @param {*} [options] Override http request options.
3238
3558
  */
3239
- avaConversionConvertToGaeb(avaProject, tryAutoGenerateItemNumbersAndSchema, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, options = {}) {
3559
+ avaConversionConvertToGaeb(avaProject, tryAutoGenerateItemNumbersAndSchema, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, options = {}) {
3240
3560
  const localVarPath = this.basePath + '/conversion/ava/gaeb';
3241
3561
  let localVarQueryParameters = {};
3242
3562
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -3263,6 +3583,9 @@ class AvaConversionApi {
3263
3583
  if (removeUnprintableCharactersFromTexts !== undefined) {
3264
3584
  localVarQueryParameters['RemoveUnprintableCharactersFromTexts'] = ObjectSerializer.serialize(removeUnprintableCharactersFromTexts, "boolean");
3265
3585
  }
3586
+ if (forceIncludeDescriptions !== undefined) {
3587
+ localVarQueryParameters['ForceIncludeDescriptions'] = ObjectSerializer.serialize(forceIncludeDescriptions, "boolean");
3588
+ }
3266
3589
  Object.assign(localVarHeaderParams, options.headers);
3267
3590
  let localVarUseFormData = false;
3268
3591
  let localVarRequestOptions = {
@@ -4039,9 +4362,10 @@ class ExcelConversionApi {
4039
4362
  * @param enforceStrictOfferPhaseLongTextOutput Defaults to false. If this is enabled, exported long texts to GAEB XML that use text additions will be strictly schema compliant. If this is not enabled, any text that is marked to contain a text addition is exported in full to ensure that incorrectly used text additions are still preserved in the export.
4040
4363
  * @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the &#39;QtyDeterm&#39; (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the &#39;QuantityComponents&#39; property of positions. Please see the entry for &#39;Quantity Determination&#39; in the Dangl.AVA HowTo documentation section. Please be advised that enabling this might export data that was not intended to be exported, like internal quantity calculation details, depending on what data you put in the &#39;QuantityComponents&#39; property.
4041
4364
  * @param removeUnprintableCharactersFromTexts If this is enabled, unprintable characters are removed from text elements. Otherwise, the conversion might fail in case some text content contains characters that are not allowed in XML output formats.
4365
+ * @param forceIncludeDescriptions If this is enabled, all description elements like texts and execution descriptions will be output to the result. This is mostly only applicable to GAEB exports to phase 84 - Offer, which does typically not include descriptions.
4042
4366
  * @param {*} [options] Override http request options.
4043
4367
  */
4044
- excelConversionConvertToGaeb(excelFile, readNewElements, rebuildItemNumberSchema, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, options = {}) {
4368
+ excelConversionConvertToGaeb(excelFile, readNewElements, rebuildItemNumberSchema, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, options = {}) {
4045
4369
  const localVarPath = this.basePath + '/conversion/excel/gaeb';
4046
4370
  let localVarQueryParameters = {};
4047
4371
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4067,6 +4391,9 @@ class ExcelConversionApi {
4067
4391
  if (removeUnprintableCharactersFromTexts !== undefined) {
4068
4392
  localVarQueryParameters['RemoveUnprintableCharactersFromTexts'] = ObjectSerializer.serialize(removeUnprintableCharactersFromTexts, "boolean");
4069
4393
  }
4394
+ if (forceIncludeDescriptions !== undefined) {
4395
+ localVarQueryParameters['ForceIncludeDescriptions'] = ObjectSerializer.serialize(forceIncludeDescriptions, "boolean");
4396
+ }
4070
4397
  Object.assign(localVarHeaderParams, options.headers);
4071
4398
  let localVarUseFormData = false;
4072
4399
  if (excelFile !== undefined) {
@@ -4369,9 +4696,10 @@ class GaebConversionApi {
4369
4696
  * @param enforceStrictOfferPhaseLongTextOutput Defaults to false. If this is enabled, exported long texts to GAEB XML that use text additions will be strictly schema compliant. If this is not enabled, any text that is marked to contain a text addition is exported in full to ensure that incorrectly used text additions are still preserved in the export.
4370
4697
  * @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the &#39;QtyDeterm&#39; (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the &#39;QuantityComponents&#39; property of positions. Please see the entry for &#39;Quantity Determination&#39; in the Dangl.AVA HowTo documentation section. Please be advised that enabling this might export data that was not intended to be exported, like internal quantity calculation details, depending on what data you put in the &#39;QuantityComponents&#39; property.
4371
4698
  * @param removeUnprintableCharactersFromTexts If this is enabled, unprintable characters are removed from text elements. Otherwise, the conversion might fail in case some text content contains characters that are not allowed in XML output formats.
4699
+ * @param forceIncludeDescriptions If this is enabled, all description elements like texts and execution descriptions will be output to the result. This is mostly only applicable to GAEB exports to phase 84 - Offer, which does typically not include descriptions.
4372
4700
  * @param {*} [options] Override http request options.
4373
4701
  */
4374
- gaebConversionConvertToGaeb(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, options = {}) {
4702
+ gaebConversionConvertToGaeb(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, options = {}) {
4375
4703
  const localVarPath = this.basePath + '/conversion/gaeb/gaeb';
4376
4704
  let localVarQueryParameters = {};
4377
4705
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4394,6 +4722,9 @@ class GaebConversionApi {
4394
4722
  if (removeUnprintableCharactersFromTexts !== undefined) {
4395
4723
  localVarQueryParameters['RemoveUnprintableCharactersFromTexts'] = ObjectSerializer.serialize(removeUnprintableCharactersFromTexts, "boolean");
4396
4724
  }
4725
+ if (forceIncludeDescriptions !== undefined) {
4726
+ localVarQueryParameters['ForceIncludeDescriptions'] = ObjectSerializer.serialize(forceIncludeDescriptions, "boolean");
4727
+ }
4397
4728
  Object.assign(localVarHeaderParams, options.headers);
4398
4729
  let localVarUseFormData = false;
4399
4730
  if (gaebFile !== undefined) {
@@ -4683,9 +5014,10 @@ class OenormConversionApi {
4683
5014
  * @param enforceStrictOfferPhaseLongTextOutput Defaults to false. If this is enabled, exported long texts to GAEB XML that use text additions will be strictly schema compliant. If this is not enabled, any text that is marked to contain a text addition is exported in full to ensure that incorrectly used text additions are still preserved in the export.
4684
5015
  * @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the &#39;QtyDeterm&#39; (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the &#39;QuantityComponents&#39; property of positions. Please see the entry for &#39;Quantity Determination&#39; in the Dangl.AVA HowTo documentation section. Please be advised that enabling this might export data that was not intended to be exported, like internal quantity calculation details, depending on what data you put in the &#39;QuantityComponents&#39; property.
4685
5016
  * @param removeUnprintableCharactersFromTexts If this is enabled, unprintable characters are removed from text elements. Otherwise, the conversion might fail in case some text content contains characters that are not allowed in XML output formats.
5017
+ * @param forceIncludeDescriptions If this is enabled, all description elements like texts and execution descriptions will be output to the result. This is mostly only applicable to GAEB exports to phase 84 - Offer, which does typically not include descriptions.
4686
5018
  * @param {*} [options] Override http request options.
4687
5019
  */
4688
- oenormConversionConvertToGaeb(oenormFile, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, options = {}) {
5020
+ oenormConversionConvertToGaeb(oenormFile, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, options = {}) {
4689
5021
  const localVarPath = this.basePath + '/conversion/oenorm/gaeb';
4690
5022
  let localVarQueryParameters = {};
4691
5023
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4705,6 +5037,9 @@ class OenormConversionApi {
4705
5037
  if (removeUnprintableCharactersFromTexts !== undefined) {
4706
5038
  localVarQueryParameters['RemoveUnprintableCharactersFromTexts'] = ObjectSerializer.serialize(removeUnprintableCharactersFromTexts, "boolean");
4707
5039
  }
5040
+ if (forceIncludeDescriptions !== undefined) {
5041
+ localVarQueryParameters['ForceIncludeDescriptions'] = ObjectSerializer.serialize(forceIncludeDescriptions, "boolean");
5042
+ }
4708
5043
  Object.assign(localVarHeaderParams, options.headers);
4709
5044
  let localVarUseFormData = false;
4710
5045
  if (oenormFile !== undefined) {
@@ -4990,9 +5325,10 @@ class RebConversionApi {
4990
5325
  * @param enforceStrictOfferPhaseLongTextOutput Defaults to false. If this is enabled, exported long texts to GAEB XML that use text additions will be strictly schema compliant. If this is not enabled, any text that is marked to contain a text addition is exported in full to ensure that incorrectly used text additions are still preserved in the export.
4991
5326
  * @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the &#39;QtyDeterm&#39; (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the &#39;QuantityComponents&#39; property of positions. Please see the entry for &#39;Quantity Determination&#39; in the Dangl.AVA HowTo documentation section. Please be advised that enabling this might export data that was not intended to be exported, like internal quantity calculation details, depending on what data you put in the &#39;QuantityComponents&#39; property.
4992
5327
  * @param removeUnprintableCharactersFromTexts If this is enabled, unprintable characters are removed from text elements. Otherwise, the conversion might fail in case some text content contains characters that are not allowed in XML output formats.
5328
+ * @param forceIncludeDescriptions If this is enabled, all description elements like texts and execution descriptions will be output to the result. This is mostly only applicable to GAEB exports to phase 84 - Offer, which does typically not include descriptions.
4993
5329
  * @param {*} [options] Override http request options.
4994
5330
  */
4995
- rebConversionConvertToGaeb(rebFile, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, options = {}) {
5331
+ rebConversionConvertToGaeb(rebFile, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, options = {}) {
4996
5332
  const localVarPath = this.basePath + '/conversion/reb/gaeb';
4997
5333
  let localVarQueryParameters = {};
4998
5334
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -5012,6 +5348,9 @@ class RebConversionApi {
5012
5348
  if (removeUnprintableCharactersFromTexts !== undefined) {
5013
5349
  localVarQueryParameters['RemoveUnprintableCharactersFromTexts'] = ObjectSerializer.serialize(removeUnprintableCharactersFromTexts, "boolean");
5014
5350
  }
5351
+ if (forceIncludeDescriptions !== undefined) {
5352
+ localVarQueryParameters['ForceIncludeDescriptions'] = ObjectSerializer.serialize(forceIncludeDescriptions, "boolean");
5353
+ }
5015
5354
  Object.assign(localVarHeaderParams, options.headers);
5016
5355
  let localVarUseFormData = false;
5017
5356
  if (rebFile !== undefined) {
@@ -5297,9 +5636,10 @@ class SiaConversionApi {
5297
5636
  * @param enforceStrictOfferPhaseLongTextOutput Defaults to false. If this is enabled, exported long texts to GAEB XML that use text additions will be strictly schema compliant. If this is not enabled, any text that is marked to contain a text addition is exported in full to ensure that incorrectly used text additions are still preserved in the export.
5298
5637
  * @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the &#39;QtyDeterm&#39; (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the &#39;QuantityComponents&#39; property of positions. Please see the entry for &#39;Quantity Determination&#39; in the Dangl.AVA HowTo documentation section. Please be advised that enabling this might export data that was not intended to be exported, like internal quantity calculation details, depending on what data you put in the &#39;QuantityComponents&#39; property.
5299
5638
  * @param removeUnprintableCharactersFromTexts If this is enabled, unprintable characters are removed from text elements. Otherwise, the conversion might fail in case some text content contains characters that are not allowed in XML output formats.
5639
+ * @param forceIncludeDescriptions If this is enabled, all description elements like texts and execution descriptions will be output to the result. This is mostly only applicable to GAEB exports to phase 84 - Offer, which does typically not include descriptions.
5300
5640
  * @param {*} [options] Override http request options.
5301
5641
  */
5302
- siaConversionConvertToGaeb(siaFile, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, options = {}) {
5642
+ siaConversionConvertToGaeb(siaFile, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, options = {}) {
5303
5643
  const localVarPath = this.basePath + '/conversion/sia/gaeb';
5304
5644
  let localVarQueryParameters = {};
5305
5645
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -5319,6 +5659,9 @@ class SiaConversionApi {
5319
5659
  if (removeUnprintableCharactersFromTexts !== undefined) {
5320
5660
  localVarQueryParameters['RemoveUnprintableCharactersFromTexts'] = ObjectSerializer.serialize(removeUnprintableCharactersFromTexts, "boolean");
5321
5661
  }
5662
+ if (forceIncludeDescriptions !== undefined) {
5663
+ localVarQueryParameters['ForceIncludeDescriptions'] = ObjectSerializer.serialize(forceIncludeDescriptions, "boolean");
5664
+ }
5322
5665
  Object.assign(localVarHeaderParams, options.headers);
5323
5666
  let localVarUseFormData = false;
5324
5667
  if (siaFile !== undefined) {
@@ -5520,4 +5863,156 @@ class StatusApi {
5520
5863
  }
5521
5864
  }
5522
5865
  exports.StatusApi = StatusApi;
5866
+ var ValidationApiApiKeys;
5867
+ (function (ValidationApiApiKeys) {
5868
+ })(ValidationApiApiKeys = exports.ValidationApiApiKeys || (exports.ValidationApiApiKeys = {}));
5869
+ class ValidationApi {
5870
+ constructor(basePathOrUsername, password, basePath) {
5871
+ this._basePath = defaultBasePath;
5872
+ this.defaultHeaders = {};
5873
+ this._useQuerystring = false;
5874
+ this.authentications = {
5875
+ 'default': new VoidAuth(),
5876
+ 'Dangl.Identity': new OAuth(),
5877
+ };
5878
+ if (password) {
5879
+ if (basePath) {
5880
+ this.basePath = basePath;
5881
+ }
5882
+ }
5883
+ else {
5884
+ if (basePathOrUsername) {
5885
+ this.basePath = basePathOrUsername;
5886
+ }
5887
+ }
5888
+ }
5889
+ set useQuerystring(value) {
5890
+ this._useQuerystring = value;
5891
+ }
5892
+ set basePath(basePath) {
5893
+ this._basePath = basePath;
5894
+ }
5895
+ get basePath() {
5896
+ return this._basePath;
5897
+ }
5898
+ setDefaultAuthentication(auth) {
5899
+ this.authentications.default = auth;
5900
+ }
5901
+ setApiKey(key, value) {
5902
+ this.authentications[ValidationApiApiKeys[key]].apiKey = value;
5903
+ }
5904
+ set accessToken(token) {
5905
+ this.authentications['Dangl.Identity'].accessToken = token;
5906
+ }
5907
+ /**
5908
+ *
5909
+ * @summary This endpoint validates AVA files, typically GAEB or ÖNorm. The type of file needs to be provided as a query parameter, since there is no auto detection of the uploaded file type.
5910
+ * @param avaFile The file to validate
5911
+ * @param fileValidationSourceType You need to indicate which type of file is being provided, there is no auto detection mechanism
5912
+ * @param {*} [options] Override http request options.
5913
+ */
5914
+ validationValidateFile(avaFile, fileValidationSourceType, options = {}) {
5915
+ const localVarPath = this.basePath + '/validation/file';
5916
+ let localVarQueryParameters = {};
5917
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
5918
+ let localVarFormParams = {};
5919
+ if (fileValidationSourceType !== undefined) {
5920
+ localVarQueryParameters['fileValidationSourceType'] = ObjectSerializer.serialize(fileValidationSourceType, "'Gaeb' | 'Oenorm'");
5921
+ }
5922
+ Object.assign(localVarHeaderParams, options.headers);
5923
+ let localVarUseFormData = false;
5924
+ if (avaFile !== undefined) {
5925
+ localVarFormParams['avaFile'] = avaFile;
5926
+ }
5927
+ localVarUseFormData = true;
5928
+ let localVarRequestOptions = {
5929
+ method: 'POST',
5930
+ qs: localVarQueryParameters,
5931
+ headers: localVarHeaderParams,
5932
+ uri: localVarPath,
5933
+ useQuerystring: this._useQuerystring,
5934
+ json: true,
5935
+ };
5936
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
5937
+ this.authentications.default.applyToRequest(localVarRequestOptions);
5938
+ if (Object.keys(localVarFormParams).length) {
5939
+ if (localVarUseFormData) {
5940
+ localVarRequestOptions.formData = localVarFormParams;
5941
+ }
5942
+ else {
5943
+ localVarRequestOptions.form = localVarFormParams;
5944
+ }
5945
+ }
5946
+ return new Promise((resolve, reject) => {
5947
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
5948
+ if (error) {
5949
+ reject(error);
5950
+ }
5951
+ else {
5952
+ body = ObjectSerializer.deserialize(body, "ValidationResult");
5953
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5954
+ resolve({ response: response, body: body });
5955
+ }
5956
+ else {
5957
+ reject({ response: response, body: body });
5958
+ }
5959
+ }
5960
+ });
5961
+ });
5962
+ }
5963
+ /**
5964
+ *
5965
+ * @summary This endpoint provides a full validation of a provided ProjectDto. It will take the given exchange phase into account and do some general project validation. Optionally, a conversion to a desired target can also be done, in which case the target file will also be validated.
5966
+ * @param avaProjectValidationSourceOptions The options used for the validation operation
5967
+ * @param {*} [options] Override http request options.
5968
+ */
5969
+ validationValidateProject(avaProjectValidationSourceOptions, options = {}) {
5970
+ const localVarPath = this.basePath + '/validation/project';
5971
+ let localVarQueryParameters = {};
5972
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
5973
+ let localVarFormParams = {};
5974
+ // verify required parameter 'avaProjectValidationSourceOptions' is not null or undefined
5975
+ if (avaProjectValidationSourceOptions === null || avaProjectValidationSourceOptions === undefined) {
5976
+ throw new Error('Required parameter avaProjectValidationSourceOptions was null or undefined when calling validationValidateProject.');
5977
+ }
5978
+ Object.assign(localVarHeaderParams, options.headers);
5979
+ let localVarUseFormData = false;
5980
+ let localVarRequestOptions = {
5981
+ method: 'POST',
5982
+ qs: localVarQueryParameters,
5983
+ headers: localVarHeaderParams,
5984
+ uri: localVarPath,
5985
+ useQuerystring: this._useQuerystring,
5986
+ json: true,
5987
+ body: ObjectSerializer.serialize(avaProjectValidationSourceOptions, "PostAvaProjectValidationSourceOptions")
5988
+ };
5989
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
5990
+ this.authentications.default.applyToRequest(localVarRequestOptions);
5991
+ if (Object.keys(localVarFormParams).length) {
5992
+ if (localVarUseFormData) {
5993
+ localVarRequestOptions.formData = localVarFormParams;
5994
+ }
5995
+ else {
5996
+ localVarRequestOptions.form = localVarFormParams;
5997
+ }
5998
+ }
5999
+ return new Promise((resolve, reject) => {
6000
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
6001
+ if (error) {
6002
+ reject(error);
6003
+ }
6004
+ else {
6005
+ body = ObjectSerializer.deserialize(body, "ValidationResult");
6006
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6007
+ resolve({ response: response, body: body });
6008
+ }
6009
+ else {
6010
+ reject({ response: response, body: body });
6011
+ }
6012
+ }
6013
+ });
6014
+ });
6015
+ }
6016
+ }
6017
+ exports.ValidationApi = ValidationApi;
5523
6018
  //# sourceMappingURL=api.js.map