@dangl/avacloud-client-node 1.21.1 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.swagger-codegen/VERSION +1 -1
- package/api.d.ts +321 -29
- package/api.js +570 -32
- package/api.js.map +1 -1
- package/api.ts +735 -69
- package/package.json +1 -1
package/api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* AVACloud API 1.
|
|
3
|
+
* AVACloud API 1.41.0
|
|
4
4
|
* AVACloud API specification
|
|
5
5
|
*
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.41.0
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.ValidationApi = exports.ValidationApiApiKeys = exports.StatusApi = exports.StatusApiApiKeys = exports.SiaConversionApi = exports.SiaConversionApiApiKeys = void 0;
|
|
14
|
+
exports.PostAvaProjectValidationSourceOptions = exports.PositionTypeDto = exports.PositionHoldOutPropertiesDto = exports.PositionDto = exports.PositionComplementingTypeDto = 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.HoldOutTypeDto = exports.HoldOutDurationUnitDto = 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.DatanormDestinationVersion = exports.ComplementedByQuantityDto = exports.CommercePropertiesDto = exports.CommerceInquiryTypeDto = 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
|
+
exports.ExcelConversionApiApiKeys = exports.DatanormConversionApi = exports.DatanormConversionApiApiKeys = 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.UglDestinationVersion = exports.TradeDiscountDto = exports.TokenResponseGet = exports.TokenRefreshPost = exports.TokenLoginPost = exports.SubDescriptionDto = exports.StandardizedDescriptionDto = exports.StandardReferenceTypeDto = exports.SpecialAwardKindDto = exports.ServiceTypeDto = exports.ServiceSpecificationGroupDto = exports.ServiceSpecificationDto = exports.ServiceSpecificationCommercePropertiesDto = 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 = void 0;
|
|
16
|
+
exports.ValidationApi = exports.ValidationApiApiKeys = exports.UglConversionApi = exports.UglConversionApiApiKeys = exports.StatusApi = exports.StatusApiApiKeys = exports.SiaConversionApi = exports.SiaConversionApiApiKeys = exports.RebConversionApi = exports.RebConversionApiApiKeys = exports.OenormConversionApi = exports.OenormConversionApiApiKeys = exports.GaebConversionApi = exports.GaebConversionApiApiKeys = exports.ExcelConversionApi = void 0;
|
|
17
17
|
const localVarRequest = require("request");
|
|
18
18
|
let defaultBasePath = 'https://avacloud-api.dangl-it.com';
|
|
19
19
|
// ===============================================
|
|
@@ -485,6 +485,11 @@ CommercePropertiesDto.attributeTypeMap = [
|
|
|
485
485
|
"name": "priceBasis",
|
|
486
486
|
"baseName": "priceBasis",
|
|
487
487
|
"type": "number"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "subPositionIdentifier",
|
|
491
|
+
"baseName": "subPositionIdentifier",
|
|
492
|
+
"type": "string"
|
|
488
493
|
}
|
|
489
494
|
];
|
|
490
495
|
/**
|
|
@@ -510,6 +515,17 @@ ComplementedByQuantityDto.attributeTypeMap = [
|
|
|
510
515
|
}
|
|
511
516
|
];
|
|
512
517
|
/**
|
|
518
|
+
* Represents valid Datanorm versions for export
|
|
519
|
+
*/
|
|
520
|
+
class DatanormDestinationVersion {
|
|
521
|
+
static getAttributeTypeMap() {
|
|
522
|
+
return DatanormDestinationVersion.attributeTypeMap;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
exports.DatanormDestinationVersion = DatanormDestinationVersion;
|
|
526
|
+
DatanormDestinationVersion.discriminator = undefined;
|
|
527
|
+
DatanormDestinationVersion.attributeTypeMap = [];
|
|
528
|
+
/**
|
|
513
529
|
* The GAEB exchange phase to transform to
|
|
514
530
|
*/
|
|
515
531
|
class DestinationGaebExchangePhase {
|
|
@@ -756,6 +772,28 @@ GrossPriceComponentDto.attributeTypeMap = [
|
|
|
756
772
|
}
|
|
757
773
|
];
|
|
758
774
|
/**
|
|
775
|
+
* Duration used in retention positions
|
|
776
|
+
*/
|
|
777
|
+
class HoldOutDurationUnitDto {
|
|
778
|
+
static getAttributeTypeMap() {
|
|
779
|
+
return HoldOutDurationUnitDto.attributeTypeMap;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
exports.HoldOutDurationUnitDto = HoldOutDurationUnitDto;
|
|
783
|
+
HoldOutDurationUnitDto.discriminator = undefined;
|
|
784
|
+
HoldOutDurationUnitDto.attributeTypeMap = [];
|
|
785
|
+
/**
|
|
786
|
+
* Types of retentions to be used in positions
|
|
787
|
+
*/
|
|
788
|
+
class HoldOutTypeDto {
|
|
789
|
+
static getAttributeTypeMap() {
|
|
790
|
+
return HoldOutTypeDto.attributeTypeMap;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
exports.HoldOutTypeDto = HoldOutTypeDto;
|
|
794
|
+
HoldOutTypeDto.discriminator = undefined;
|
|
795
|
+
HoldOutTypeDto.attributeTypeMap = [];
|
|
796
|
+
/**
|
|
759
797
|
*
|
|
760
798
|
*/
|
|
761
799
|
class HttpStatusCode {
|
|
@@ -868,6 +906,11 @@ ItemNumberSchemaDto.attributeTypeMap = [
|
|
|
868
906
|
"name": "schemaIsCorrectlyDefined",
|
|
869
907
|
"baseName": "schemaIsCorrectlyDefined",
|
|
870
908
|
"type": "boolean"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"name": "allowUpperCaseLettering",
|
|
912
|
+
"baseName": "allowUpperCaseLettering",
|
|
913
|
+
"type": "boolean"
|
|
871
914
|
}
|
|
872
915
|
];
|
|
873
916
|
/**
|
|
@@ -1579,6 +1622,48 @@ PositionDto.attributeTypeMap = [
|
|
|
1579
1622
|
"name": "gaebComplementingType",
|
|
1580
1623
|
"baseName": "gaebComplementingType",
|
|
1581
1624
|
"type": "PositionComplementingTypeDto"
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"name": "holdOutProperties",
|
|
1628
|
+
"baseName": "holdOutProperties",
|
|
1629
|
+
"type": "PositionHoldOutPropertiesDto"
|
|
1630
|
+
}
|
|
1631
|
+
];
|
|
1632
|
+
/**
|
|
1633
|
+
* This class holds properties that describe retention types in position. Retention / hold out usually means that a service is provided and kept available for a specific amount of time, e.g. fences on a construction site
|
|
1634
|
+
*/
|
|
1635
|
+
class PositionHoldOutPropertiesDto {
|
|
1636
|
+
static getAttributeTypeMap() {
|
|
1637
|
+
return PositionHoldOutPropertiesDto.attributeTypeMap;
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
exports.PositionHoldOutPropertiesDto = PositionHoldOutPropertiesDto;
|
|
1641
|
+
PositionHoldOutPropertiesDto.discriminator = undefined;
|
|
1642
|
+
PositionHoldOutPropertiesDto.attributeTypeMap = [
|
|
1643
|
+
{
|
|
1644
|
+
"name": "id",
|
|
1645
|
+
"baseName": "id",
|
|
1646
|
+
"type": "string"
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
"name": "holdOutType",
|
|
1650
|
+
"baseName": "holdOutType",
|
|
1651
|
+
"type": "HoldOutTypeDto"
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
"name": "holdOutDuration",
|
|
1655
|
+
"baseName": "holdOutDuration",
|
|
1656
|
+
"type": "number"
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
"name": "holdOutDurationUnit",
|
|
1660
|
+
"baseName": "holdOutDurationUnit",
|
|
1661
|
+
"type": "HoldOutDurationUnitDto"
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
"name": "basePositionReferences",
|
|
1665
|
+
"baseName": "basePositionReferences",
|
|
1666
|
+
"type": "Array<string>"
|
|
1582
1667
|
}
|
|
1583
1668
|
];
|
|
1584
1669
|
/**
|
|
@@ -2016,6 +2101,16 @@ ProjectInformationDto.attributeTypeMap = [
|
|
|
2016
2101
|
"name": "specialAwardKind",
|
|
2017
2102
|
"baseName": "specialAwardKind",
|
|
2018
2103
|
"type": "SpecialAwardKindDto"
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"name": "requesters",
|
|
2107
|
+
"baseName": "requesters",
|
|
2108
|
+
"type": "Array<PartyInformationDto>"
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
"name": "notificationSites",
|
|
2112
|
+
"baseName": "notificationSites",
|
|
2113
|
+
"type": "Array<PartyInformationDto>"
|
|
2019
2114
|
}
|
|
2020
2115
|
];
|
|
2021
2116
|
/**
|
|
@@ -2409,6 +2504,21 @@ ServiceSpecificationDto.attributeTypeMap = [
|
|
|
2409
2504
|
"baseName": "decisionDate",
|
|
2410
2505
|
"type": "Date"
|
|
2411
2506
|
},
|
|
2507
|
+
{
|
|
2508
|
+
"name": "bidDate",
|
|
2509
|
+
"baseName": "bidDate",
|
|
2510
|
+
"type": "Date"
|
|
2511
|
+
},
|
|
2512
|
+
{
|
|
2513
|
+
"name": "warrantyBondPercentage",
|
|
2514
|
+
"baseName": "warrantyBondPercentage",
|
|
2515
|
+
"type": "number"
|
|
2516
|
+
},
|
|
2517
|
+
{
|
|
2518
|
+
"name": "executionGuaranteePercentage",
|
|
2519
|
+
"baseName": "executionGuaranteePercentage",
|
|
2520
|
+
"type": "number"
|
|
2521
|
+
},
|
|
2412
2522
|
{
|
|
2413
2523
|
"name": "submissionLocation",
|
|
2414
2524
|
"baseName": "submissionLocation",
|
|
@@ -2642,6 +2752,16 @@ ServiceSpecificationGroupDto.attributeTypeMap = [
|
|
|
2642
2752
|
"name": "addendumStatus",
|
|
2643
2753
|
"baseName": "addendumStatus",
|
|
2644
2754
|
"type": "AddendumStatusDto"
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
"name": "alternativeIdentifier",
|
|
2758
|
+
"baseName": "alternativeIdentifier",
|
|
2759
|
+
"type": "number"
|
|
2760
|
+
},
|
|
2761
|
+
{
|
|
2762
|
+
"name": "alternativeGroupIdentifier",
|
|
2763
|
+
"baseName": "alternativeGroupIdentifier",
|
|
2764
|
+
"type": "number"
|
|
2645
2765
|
}
|
|
2646
2766
|
];
|
|
2647
2767
|
/**
|
|
@@ -2931,6 +3051,17 @@ TradeDiscountDto.attributeTypeMap = [
|
|
|
2931
3051
|
}
|
|
2932
3052
|
];
|
|
2933
3053
|
/**
|
|
3054
|
+
* Represents valid UGL versions for export
|
|
3055
|
+
*/
|
|
3056
|
+
class UglDestinationVersion {
|
|
3057
|
+
static getAttributeTypeMap() {
|
|
3058
|
+
return UglDestinationVersion.attributeTypeMap;
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
exports.UglDestinationVersion = UglDestinationVersion;
|
|
3062
|
+
UglDestinationVersion.discriminator = undefined;
|
|
3063
|
+
UglDestinationVersion.attributeTypeMap = [];
|
|
3064
|
+
/**
|
|
2934
3065
|
* This class models the results of a single check performed during a validation action
|
|
2935
3066
|
*/
|
|
2936
3067
|
class ValidationCheckResult {
|
|
@@ -3097,6 +3228,7 @@ let typeMap = {
|
|
|
3097
3228
|
"CommerceInquiryTypeDto": CommerceInquiryTypeDto,
|
|
3098
3229
|
"CommercePropertiesDto": CommercePropertiesDto,
|
|
3099
3230
|
"ComplementedByQuantityDto": ComplementedByQuantityDto,
|
|
3231
|
+
"DatanormDestinationVersion": DatanormDestinationVersion,
|
|
3100
3232
|
"DestinationGaebExchangePhase": DestinationGaebExchangePhase,
|
|
3101
3233
|
"DestinationGaebType": DestinationGaebType,
|
|
3102
3234
|
"DestinationOenormType": DestinationOenormType,
|
|
@@ -3108,6 +3240,8 @@ let typeMap = {
|
|
|
3108
3240
|
"ForgotPasswordPost": ForgotPasswordPost,
|
|
3109
3241
|
"GetStatus": GetStatus,
|
|
3110
3242
|
"GrossPriceComponentDto": GrossPriceComponentDto,
|
|
3243
|
+
"HoldOutDurationUnitDto": HoldOutDurationUnitDto,
|
|
3244
|
+
"HoldOutTypeDto": HoldOutTypeDto,
|
|
3111
3245
|
"HttpStatusCode": HttpStatusCode,
|
|
3112
3246
|
"IElementDto": IElementDto,
|
|
3113
3247
|
"ItemNumberDto": ItemNumberDto,
|
|
@@ -3127,6 +3261,7 @@ let typeMap = {
|
|
|
3127
3261
|
"PartyInformationDto": PartyInformationDto,
|
|
3128
3262
|
"PositionComplementingTypeDto": PositionComplementingTypeDto,
|
|
3129
3263
|
"PositionDto": PositionDto,
|
|
3264
|
+
"PositionHoldOutPropertiesDto": PositionHoldOutPropertiesDto,
|
|
3130
3265
|
"PositionTypeDto": PositionTypeDto,
|
|
3131
3266
|
"PostAvaProjectValidationSourceOptions": PostAvaProjectValidationSourceOptions,
|
|
3132
3267
|
"PostAvaSourceOptions": PostAvaSourceOptions,
|
|
@@ -3158,6 +3293,7 @@ let typeMap = {
|
|
|
3158
3293
|
"TokenRefreshPost": TokenRefreshPost,
|
|
3159
3294
|
"TokenResponseGet": TokenResponseGet,
|
|
3160
3295
|
"TradeDiscountDto": TradeDiscountDto,
|
|
3296
|
+
"UglDestinationVersion": UglDestinationVersion,
|
|
3161
3297
|
"ValidationCheckResult": ValidationCheckResult,
|
|
3162
3298
|
"ValidationCheckType": ValidationCheckType,
|
|
3163
3299
|
"ValidationResult": ValidationResult,
|
|
@@ -3406,7 +3542,7 @@ class AslvConversionApi {
|
|
|
3406
3542
|
* @param targetExchangePhaseTransform Defaults to none, meaning no transformation will be done
|
|
3407
3543
|
* @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.
|
|
3408
3544
|
* @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the 'QtyDeterm' (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the 'QuantityComponents' property of positions. Please see the entry for 'Quantity Determination' 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 'QuantityComponents' property.
|
|
3409
|
-
* @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.
|
|
3545
|
+
* @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. Defaults to true.
|
|
3410
3546
|
* @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.
|
|
3411
3547
|
* @param treatNullItemNumberSchemaAsInvalid When exporting to GAEB, an item number schema is usually required. AVACloud will try to fix invalid item number schemas. With this setting, you can also tell AVACloud to treat a null value as invalid. Otherwise, null schemas will simply be ignored and not lead to any schema being generated. It is recommended to enable this option, but it is disabled by default for compatibility reasons.
|
|
3412
3548
|
* @param {*} [options] Override http request options.
|
|
@@ -3491,7 +3627,7 @@ class AslvConversionApi {
|
|
|
3491
3627
|
* @param destinationOenormType Defaults to Lv2015
|
|
3492
3628
|
* @param tryRepairProjectStructure Defaults to false. If this is enabled, the converter will try to ensure that the project structure can be mapped to Oenorm. It might introduce additional group levels to ensure a compatible target
|
|
3493
3629
|
* @param skipTryEnforceSchemaCompliantXmlOutput If this option is enabled, AVACloud will not attempt to force a schema-compliant Xml output for ÖNorm targets that are Xml based. By default, AVACloud will try to add required fields, even if no data is present, with sensible defaults. This behavior can be disabled with this option.
|
|
3494
|
-
* @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.
|
|
3630
|
+
* @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. Defaults to true.
|
|
3495
3631
|
* @param {*} [options] Override http request options.
|
|
3496
3632
|
*/
|
|
3497
3633
|
aslvConversionConvertToOenorm(aslvFile, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, options = {}) {
|
|
@@ -3669,6 +3805,74 @@ class AvaConversionApi {
|
|
|
3669
3805
|
/**
|
|
3670
3806
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
3671
3807
|
*/
|
|
3808
|
+
avaConversionConvertToDatanormWithRequestObject(avaProject, options) {
|
|
3809
|
+
return this.avaConversionConvertToDatanorm(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.datanormDestinationVersion, options.options || {});
|
|
3810
|
+
}
|
|
3811
|
+
/**
|
|
3812
|
+
*
|
|
3813
|
+
* @summary Converts Dangl.AVA projects to Datanorm
|
|
3814
|
+
* @param avaProject The Dangl.AVA project
|
|
3815
|
+
* @param tryAutoGenerateItemNumbersAndSchema If this is set to true, AVACloud will try to generate item numbers and an item number schema automatically for the input project. The operation will not have any effect if either an item number schema is already present, or if any of the elements already has an item number.
|
|
3816
|
+
* @param datanormDestinationVersion The Datanorm version to convert to. Defaults to V4.
|
|
3817
|
+
* @param {*} [options] Override http request options.
|
|
3818
|
+
*/
|
|
3819
|
+
avaConversionConvertToDatanorm(avaProject, tryAutoGenerateItemNumbersAndSchema, datanormDestinationVersion, options = {}) {
|
|
3820
|
+
const localVarPath = this.basePath + '/conversion/ava/datanorm';
|
|
3821
|
+
let localVarQueryParameters = {};
|
|
3822
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
3823
|
+
let localVarFormParams = {};
|
|
3824
|
+
// verify required parameter 'avaProject' is not null or undefined
|
|
3825
|
+
if (avaProject === null || avaProject === undefined) {
|
|
3826
|
+
throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToDatanorm.');
|
|
3827
|
+
}
|
|
3828
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
3829
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
3830
|
+
}
|
|
3831
|
+
if (datanormDestinationVersion !== undefined) {
|
|
3832
|
+
localVarQueryParameters['DatanormDestinationVersion'] = ObjectSerializer.serialize(datanormDestinationVersion, "'V4' | 'V5'");
|
|
3833
|
+
}
|
|
3834
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3835
|
+
let localVarUseFormData = false;
|
|
3836
|
+
let localVarRequestOptions = {
|
|
3837
|
+
method: 'POST',
|
|
3838
|
+
qs: localVarQueryParameters,
|
|
3839
|
+
headers: localVarHeaderParams,
|
|
3840
|
+
uri: localVarPath,
|
|
3841
|
+
useQuerystring: this._useQuerystring,
|
|
3842
|
+
encoding: null,
|
|
3843
|
+
body: avaProject,
|
|
3844
|
+
json: true
|
|
3845
|
+
};
|
|
3846
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
3847
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3848
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3849
|
+
if (localVarUseFormData) {
|
|
3850
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3851
|
+
}
|
|
3852
|
+
else {
|
|
3853
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3854
|
+
}
|
|
3855
|
+
}
|
|
3856
|
+
return new Promise((resolve, reject) => {
|
|
3857
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3858
|
+
if (error) {
|
|
3859
|
+
reject(error);
|
|
3860
|
+
}
|
|
3861
|
+
else {
|
|
3862
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
3863
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3864
|
+
resolve({ response: response, body: body });
|
|
3865
|
+
}
|
|
3866
|
+
else {
|
|
3867
|
+
reject({ response: response, body: body });
|
|
3868
|
+
}
|
|
3869
|
+
}
|
|
3870
|
+
});
|
|
3871
|
+
});
|
|
3872
|
+
}
|
|
3873
|
+
/**
|
|
3874
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
3875
|
+
*/
|
|
3672
3876
|
avaConversionConvertToExcelWithRequestObject(avaProject, options) {
|
|
3673
3877
|
return this.avaConversionConvertToExcel(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.writePrices, options.writeLongTexts, options.conversionCulture, options.options || {});
|
|
3674
3878
|
}
|
|
@@ -3757,7 +3961,7 @@ class AvaConversionApi {
|
|
|
3757
3961
|
* @param targetExchangePhaseTransform Defaults to none, meaning no transformation will be done
|
|
3758
3962
|
* @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.
|
|
3759
3963
|
* @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the 'QtyDeterm' (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the 'QuantityComponents' property of positions. Please see the entry for 'Quantity Determination' 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 'QuantityComponents' property.
|
|
3760
|
-
* @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.
|
|
3964
|
+
* @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. Defaults to true.
|
|
3761
3965
|
* @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.
|
|
3762
3966
|
* @param treatNullItemNumberSchemaAsInvalid When exporting to GAEB, an item number schema is usually required. AVACloud will try to fix invalid item number schemas. With this setting, you can also tell AVACloud to treat a null value as invalid. Otherwise, null schemas will simply be ignored and not lead to any schema being generated. It is recommended to enable this option, but it is disabled by default for compatibility reasons.
|
|
3763
3967
|
* @param {*} [options] Override http request options.
|
|
@@ -3848,7 +4052,7 @@ class AvaConversionApi {
|
|
|
3848
4052
|
* @param destinationOenormType Defaults to Lv2015
|
|
3849
4053
|
* @param tryRepairProjectStructure Defaults to false. If this is enabled, the converter will try to ensure that the project structure can be mapped to Oenorm. It might introduce additional group levels to ensure a compatible target
|
|
3850
4054
|
* @param skipTryEnforceSchemaCompliantXmlOutput If this option is enabled, AVACloud will not attempt to force a schema-compliant Xml output for ÖNorm targets that are Xml based. By default, AVACloud will try to add required fields, even if no data is present, with sensible defaults. This behavior can be disabled with this option.
|
|
3851
|
-
* @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.
|
|
4055
|
+
* @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. Defaults to true.
|
|
3852
4056
|
* @param {*} [options] Override http request options.
|
|
3853
4057
|
*/
|
|
3854
4058
|
avaConversionConvertToOenorm(avaProject, tryAutoGenerateItemNumbersAndSchema, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, options = {}) {
|
|
@@ -3941,7 +4145,7 @@ class AvaConversionApi {
|
|
|
3941
4145
|
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
3942
4146
|
}
|
|
3943
4147
|
if (destinationRebType !== undefined) {
|
|
3944
|
-
localVarQueryParameters['DestinationRebType'] = ObjectSerializer.serialize(destinationRebType, "'D11' | 'X31GaebXmlV32'");
|
|
4148
|
+
localVarQueryParameters['DestinationRebType'] = ObjectSerializer.serialize(destinationRebType, "'D11' | 'X31GaebXmlV32' | 'X31GaebXmlV33'");
|
|
3945
4149
|
}
|
|
3946
4150
|
Object.assign(localVarHeaderParams, options.headers);
|
|
3947
4151
|
let localVarUseFormData = false;
|
|
@@ -4046,6 +4250,74 @@ class AvaConversionApi {
|
|
|
4046
4250
|
});
|
|
4047
4251
|
});
|
|
4048
4252
|
}
|
|
4253
|
+
/**
|
|
4254
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4255
|
+
*/
|
|
4256
|
+
avaConversionConvertToUglWithRequestObject(avaProject, options) {
|
|
4257
|
+
return this.avaConversionConvertToUgl(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.uglDestinationVersion, options.options || {});
|
|
4258
|
+
}
|
|
4259
|
+
/**
|
|
4260
|
+
*
|
|
4261
|
+
* @summary Converts Dangl.AVA projects to UGL
|
|
4262
|
+
* @param avaProject The Dangl.AVA project
|
|
4263
|
+
* @param tryAutoGenerateItemNumbersAndSchema If this is set to true, AVACloud will try to generate item numbers and an item number schema automatically for the input project. The operation will not have any effect if either an item number schema is already present, or if any of the elements already has an item number.
|
|
4264
|
+
* @param uglDestinationVersion The UGL version to convert to. Defaults to V1.
|
|
4265
|
+
* @param {*} [options] Override http request options.
|
|
4266
|
+
*/
|
|
4267
|
+
avaConversionConvertToUgl(avaProject, tryAutoGenerateItemNumbersAndSchema, uglDestinationVersion, options = {}) {
|
|
4268
|
+
const localVarPath = this.basePath + '/conversion/ava/ugl';
|
|
4269
|
+
let localVarQueryParameters = {};
|
|
4270
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
4271
|
+
let localVarFormParams = {};
|
|
4272
|
+
// verify required parameter 'avaProject' is not null or undefined
|
|
4273
|
+
if (avaProject === null || avaProject === undefined) {
|
|
4274
|
+
throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToUgl.');
|
|
4275
|
+
}
|
|
4276
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
4277
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
4278
|
+
}
|
|
4279
|
+
if (uglDestinationVersion !== undefined) {
|
|
4280
|
+
localVarQueryParameters['UglDestinationVersion'] = ObjectSerializer.serialize(uglDestinationVersion, "'V4' | 'V5'");
|
|
4281
|
+
}
|
|
4282
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4283
|
+
let localVarUseFormData = false;
|
|
4284
|
+
let localVarRequestOptions = {
|
|
4285
|
+
method: 'POST',
|
|
4286
|
+
qs: localVarQueryParameters,
|
|
4287
|
+
headers: localVarHeaderParams,
|
|
4288
|
+
uri: localVarPath,
|
|
4289
|
+
useQuerystring: this._useQuerystring,
|
|
4290
|
+
encoding: null,
|
|
4291
|
+
body: avaProject,
|
|
4292
|
+
json: true
|
|
4293
|
+
};
|
|
4294
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
4295
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
4296
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4297
|
+
if (localVarUseFormData) {
|
|
4298
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4299
|
+
}
|
|
4300
|
+
else {
|
|
4301
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
4304
|
+
return new Promise((resolve, reject) => {
|
|
4305
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4306
|
+
if (error) {
|
|
4307
|
+
reject(error);
|
|
4308
|
+
}
|
|
4309
|
+
else {
|
|
4310
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
4311
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4312
|
+
resolve({ response: response, body: body });
|
|
4313
|
+
}
|
|
4314
|
+
else {
|
|
4315
|
+
reject({ response: response, body: body });
|
|
4316
|
+
}
|
|
4317
|
+
}
|
|
4318
|
+
});
|
|
4319
|
+
});
|
|
4320
|
+
}
|
|
4049
4321
|
}
|
|
4050
4322
|
exports.AvaConversionApi = AvaConversionApi;
|
|
4051
4323
|
var DanglIdentityApiApiKeys;
|
|
@@ -4403,6 +4675,115 @@ class DanglIdentityApi {
|
|
|
4403
4675
|
}
|
|
4404
4676
|
}
|
|
4405
4677
|
exports.DanglIdentityApi = DanglIdentityApi;
|
|
4678
|
+
var DatanormConversionApiApiKeys;
|
|
4679
|
+
(function (DatanormConversionApiApiKeys) {
|
|
4680
|
+
})(DatanormConversionApiApiKeys = exports.DatanormConversionApiApiKeys || (exports.DatanormConversionApiApiKeys = {}));
|
|
4681
|
+
class DatanormConversionApi {
|
|
4682
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
4683
|
+
this._basePath = defaultBasePath;
|
|
4684
|
+
this.defaultHeaders = {};
|
|
4685
|
+
this._useQuerystring = false;
|
|
4686
|
+
this.authentications = {
|
|
4687
|
+
'default': new VoidAuth(),
|
|
4688
|
+
'Dangl.Identity': new OAuth(),
|
|
4689
|
+
};
|
|
4690
|
+
if (password) {
|
|
4691
|
+
if (basePath) {
|
|
4692
|
+
this.basePath = basePath;
|
|
4693
|
+
}
|
|
4694
|
+
}
|
|
4695
|
+
else {
|
|
4696
|
+
if (basePathOrUsername) {
|
|
4697
|
+
this.basePath = basePathOrUsername;
|
|
4698
|
+
}
|
|
4699
|
+
}
|
|
4700
|
+
}
|
|
4701
|
+
set useQuerystring(value) {
|
|
4702
|
+
this._useQuerystring = value;
|
|
4703
|
+
}
|
|
4704
|
+
set basePath(basePath) {
|
|
4705
|
+
this._basePath = basePath;
|
|
4706
|
+
}
|
|
4707
|
+
get basePath() {
|
|
4708
|
+
return this._basePath;
|
|
4709
|
+
}
|
|
4710
|
+
setDefaultAuthentication(auth) {
|
|
4711
|
+
this.authentications.default = auth;
|
|
4712
|
+
}
|
|
4713
|
+
setApiKey(key, value) {
|
|
4714
|
+
this.authentications[DatanormConversionApiApiKeys[key]].apiKey = value;
|
|
4715
|
+
}
|
|
4716
|
+
set accessToken(token) {
|
|
4717
|
+
this.authentications['Dangl.Identity'].accessToken = token;
|
|
4718
|
+
}
|
|
4719
|
+
/**
|
|
4720
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4721
|
+
*/
|
|
4722
|
+
datanormConversionConvertToAvaWithRequestObject(datanormFile, options) {
|
|
4723
|
+
return this.datanormConversionConvertToAva(datanormFile, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
|
|
4724
|
+
}
|
|
4725
|
+
/**
|
|
4726
|
+
*
|
|
4727
|
+
* @summary Converts Datanorm files to Dangl.AVA projects
|
|
4728
|
+
* @param datanormFile The input file
|
|
4729
|
+
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
4730
|
+
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
4731
|
+
* @param {*} [options] Override http request options.
|
|
4732
|
+
*/
|
|
4733
|
+
datanormConversionConvertToAva(datanormFile, removePlainTextLongTexts, removeHtmlLongTexts, options = {}) {
|
|
4734
|
+
const localVarPath = this.basePath + '/conversion/datanorm/ava';
|
|
4735
|
+
let localVarQueryParameters = {};
|
|
4736
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
4737
|
+
let localVarFormParams = {};
|
|
4738
|
+
if (removePlainTextLongTexts !== undefined) {
|
|
4739
|
+
localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
|
|
4740
|
+
}
|
|
4741
|
+
if (removeHtmlLongTexts !== undefined) {
|
|
4742
|
+
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
4743
|
+
}
|
|
4744
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4745
|
+
let localVarUseFormData = false;
|
|
4746
|
+
if (datanormFile !== undefined) {
|
|
4747
|
+
localVarFormParams['datanormFile'] = datanormFile;
|
|
4748
|
+
}
|
|
4749
|
+
localVarUseFormData = true;
|
|
4750
|
+
let localVarRequestOptions = {
|
|
4751
|
+
method: 'POST',
|
|
4752
|
+
qs: localVarQueryParameters,
|
|
4753
|
+
headers: localVarHeaderParams,
|
|
4754
|
+
uri: localVarPath,
|
|
4755
|
+
useQuerystring: this._useQuerystring,
|
|
4756
|
+
json: true,
|
|
4757
|
+
};
|
|
4758
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
4759
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
4760
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4761
|
+
if (localVarUseFormData) {
|
|
4762
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4763
|
+
}
|
|
4764
|
+
else {
|
|
4765
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4766
|
+
}
|
|
4767
|
+
}
|
|
4768
|
+
return new Promise((resolve, reject) => {
|
|
4769
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4770
|
+
if (error) {
|
|
4771
|
+
reject(error);
|
|
4772
|
+
}
|
|
4773
|
+
else {
|
|
4774
|
+
body = ObjectSerializer.deserialize(body, "ProjectDto");
|
|
4775
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4776
|
+
resolve({ response: response, body: body });
|
|
4777
|
+
}
|
|
4778
|
+
else {
|
|
4779
|
+
reject({ response: response, body: body });
|
|
4780
|
+
}
|
|
4781
|
+
}
|
|
4782
|
+
});
|
|
4783
|
+
});
|
|
4784
|
+
}
|
|
4785
|
+
}
|
|
4786
|
+
exports.DatanormConversionApi = DatanormConversionApi;
|
|
4406
4787
|
var ExcelConversionApiApiKeys;
|
|
4407
4788
|
(function (ExcelConversionApiApiKeys) {
|
|
4408
4789
|
})(ExcelConversionApiApiKeys = exports.ExcelConversionApiApiKeys || (exports.ExcelConversionApiApiKeys = {}));
|
|
@@ -4612,7 +4993,7 @@ class ExcelConversionApi {
|
|
|
4612
4993
|
* @param targetExchangePhaseTransform Defaults to none, meaning no transformation will be done
|
|
4613
4994
|
* @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.
|
|
4614
4995
|
* @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the 'QtyDeterm' (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the 'QuantityComponents' property of positions. Please see the entry for 'Quantity Determination' 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 'QuantityComponents' property.
|
|
4615
|
-
* @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.
|
|
4996
|
+
* @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. Defaults to true.
|
|
4616
4997
|
* @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.
|
|
4617
4998
|
* @param treatNullItemNumberSchemaAsInvalid When exporting to GAEB, an item number schema is usually required. AVACloud will try to fix invalid item number schemas. With this setting, you can also tell AVACloud to treat a null value as invalid. Otherwise, null schemas will simply be ignored and not lead to any schema being generated. It is recommended to enable this option, but it is disabled by default for compatibility reasons.
|
|
4618
4999
|
* @param {*} [options] Override http request options.
|
|
@@ -4705,7 +5086,7 @@ class ExcelConversionApi {
|
|
|
4705
5086
|
* @param destinationOenormType Defaults to Lv2015
|
|
4706
5087
|
* @param tryRepairProjectStructure Defaults to false. If this is enabled, the converter will try to ensure that the project structure can be mapped to Oenorm. It might introduce additional group levels to ensure a compatible target
|
|
4707
5088
|
* @param skipTryEnforceSchemaCompliantXmlOutput If this option is enabled, AVACloud will not attempt to force a schema-compliant Xml output for ÖNorm targets that are Xml based. By default, AVACloud will try to add required fields, even if no data is present, with sensible defaults. This behavior can be disabled with this option.
|
|
4708
|
-
* @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.
|
|
5089
|
+
* @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. Defaults to true.
|
|
4709
5090
|
* @param {*} [options] Override http request options.
|
|
4710
5091
|
*/
|
|
4711
5092
|
excelConversionConvertToOenorm(excelFile, readNewElements, rebuildItemNumberSchema, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, options = {}) {
|
|
@@ -4819,18 +5200,21 @@ class GaebConversionApi {
|
|
|
4819
5200
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4820
5201
|
*/
|
|
4821
5202
|
gaebConversionConvertToAvaWithRequestObject(gaebFile, options) {
|
|
4822
|
-
return this.gaebConversionConvertToAva(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
|
|
5203
|
+
return this.gaebConversionConvertToAva(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
4823
5204
|
}
|
|
4824
5205
|
/**
|
|
4825
5206
|
*
|
|
4826
5207
|
* @summary Converts GAEB files to Dangl.AVA projects
|
|
4827
5208
|
* @param gaebFile The input file
|
|
4828
|
-
* @param supportSkippedItemNumberLevelsInPositions Defaults to 'false'. This controls if, when deserializing GAEB files, skipped levels in position item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group levels and one position
|
|
5209
|
+
* @param supportSkippedItemNumberLevelsInPositions Defaults to 'false'. This controls if, when deserializing GAEB files, skipped levels in position item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group levels and one position level - but the ItemNumber of the position is just '01.02', then it will be displayed as '01.__.02' if this is set to true.
|
|
4829
5210
|
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
4830
5211
|
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
5212
|
+
* @param outputHtmlAsXml Defaults to 'false'. If this is enabled, then Html text will be output as XML in the output. This means that e.g. void Html tags will always be output with their closing tag, e.g. it will produce '<br />' instead of '<br>'.
|
|
5213
|
+
* @param keepEmptyHtmlText Defaults to 'false'. If this is enabled, then Html text that is empty will be kept in the output. Otherwise, Html text without any plain text will be removed. This is useful for example if you want to keep texts that only consist of empty paragraphs in the output.
|
|
5214
|
+
* @param allowUpperCaseItemNumbers Defaults to 'false'. If this is enabled, then the ItemNumber of positions will be in uppercase format if the source file has them. By default, all item numbers will be converted to lowercase, but this option will enable the option to support uppercase item numbers as well.
|
|
4831
5215
|
* @param {*} [options] Override http request options.
|
|
4832
5216
|
*/
|
|
4833
|
-
gaebConversionConvertToAva(gaebFile, supportSkippedItemNumberLevelsInPositions, removePlainTextLongTexts, removeHtmlLongTexts, options = {}) {
|
|
5217
|
+
gaebConversionConvertToAva(gaebFile, supportSkippedItemNumberLevelsInPositions, removePlainTextLongTexts, removeHtmlLongTexts, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, options = {}) {
|
|
4834
5218
|
const localVarPath = this.basePath + '/conversion/gaeb/ava';
|
|
4835
5219
|
let localVarQueryParameters = {};
|
|
4836
5220
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -4844,6 +5228,15 @@ class GaebConversionApi {
|
|
|
4844
5228
|
if (removeHtmlLongTexts !== undefined) {
|
|
4845
5229
|
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
4846
5230
|
}
|
|
5231
|
+
if (outputHtmlAsXml !== undefined) {
|
|
5232
|
+
localVarQueryParameters['OutputHtmlAsXml'] = ObjectSerializer.serialize(outputHtmlAsXml, "boolean");
|
|
5233
|
+
}
|
|
5234
|
+
if (keepEmptyHtmlText !== undefined) {
|
|
5235
|
+
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
5236
|
+
}
|
|
5237
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
5238
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
5239
|
+
}
|
|
4847
5240
|
Object.assign(localVarHeaderParams, options.headers);
|
|
4848
5241
|
let localVarUseFormData = false;
|
|
4849
5242
|
if (gaebFile !== undefined) {
|
|
@@ -4889,19 +5282,22 @@ class GaebConversionApi {
|
|
|
4889
5282
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4890
5283
|
*/
|
|
4891
5284
|
gaebConversionConvertToExcelWithRequestObject(gaebFile, options) {
|
|
4892
|
-
return this.gaebConversionConvertToExcel(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.writePrices, options.writeLongTexts, options.conversionCulture, options.options || {});
|
|
5285
|
+
return this.gaebConversionConvertToExcel(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.writePrices, options.writeLongTexts, options.conversionCulture, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
4893
5286
|
}
|
|
4894
5287
|
/**
|
|
4895
5288
|
*
|
|
4896
5289
|
* @summary Converts GAEB files to Excel
|
|
4897
5290
|
* @param gaebFile The input file
|
|
4898
|
-
* @param supportSkippedItemNumberLevelsInPositions Defaults to 'false'. This controls if, when deserializing GAEB files, skipped levels in position item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group levels and one position
|
|
5291
|
+
* @param supportSkippedItemNumberLevelsInPositions Defaults to 'false'. This controls if, when deserializing GAEB files, skipped levels in position item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group levels and one position level - but the ItemNumber of the position is just '01.02', then it will be displayed as '01.__.02' if this is set to true.
|
|
4899
5292
|
* @param writePrices Defaults to true
|
|
4900
5293
|
* @param writeLongTexts Defaults to true
|
|
4901
5294
|
* @param conversionCulture The culture that should be used for the conversion process, to have localized Excel files
|
|
5295
|
+
* @param outputHtmlAsXml Defaults to 'false'. If this is enabled, then Html text will be output as XML in the output. This means that e.g. void Html tags will always be output with their closing tag, e.g. it will produce '<br />' instead of '<br>'.
|
|
5296
|
+
* @param keepEmptyHtmlText Defaults to 'false'. If this is enabled, then Html text that is empty will be kept in the output. Otherwise, Html text without any plain text will be removed. This is useful for example if you want to keep texts that only consist of empty paragraphs in the output.
|
|
5297
|
+
* @param allowUpperCaseItemNumbers Defaults to 'false'. If this is enabled, then the ItemNumber of positions will be in uppercase format if the source file has them. By default, all item numbers will be converted to lowercase, but this option will enable the option to support uppercase item numbers as well.
|
|
4902
5298
|
* @param {*} [options] Override http request options.
|
|
4903
5299
|
*/
|
|
4904
|
-
gaebConversionConvertToExcel(gaebFile, supportSkippedItemNumberLevelsInPositions, writePrices, writeLongTexts, conversionCulture, options = {}) {
|
|
5300
|
+
gaebConversionConvertToExcel(gaebFile, supportSkippedItemNumberLevelsInPositions, writePrices, writeLongTexts, conversionCulture, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, options = {}) {
|
|
4905
5301
|
const localVarPath = this.basePath + '/conversion/gaeb/excel';
|
|
4906
5302
|
let localVarQueryParameters = {};
|
|
4907
5303
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -4918,6 +5314,15 @@ class GaebConversionApi {
|
|
|
4918
5314
|
if (conversionCulture !== undefined) {
|
|
4919
5315
|
localVarQueryParameters['ConversionCulture'] = ObjectSerializer.serialize(conversionCulture, "string");
|
|
4920
5316
|
}
|
|
5317
|
+
if (outputHtmlAsXml !== undefined) {
|
|
5318
|
+
localVarQueryParameters['OutputHtmlAsXml'] = ObjectSerializer.serialize(outputHtmlAsXml, "boolean");
|
|
5319
|
+
}
|
|
5320
|
+
if (keepEmptyHtmlText !== undefined) {
|
|
5321
|
+
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
5322
|
+
}
|
|
5323
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
5324
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
5325
|
+
}
|
|
4921
5326
|
Object.assign(localVarHeaderParams, options.headers);
|
|
4922
5327
|
let localVarUseFormData = false;
|
|
4923
5328
|
if (gaebFile !== undefined) {
|
|
@@ -4963,23 +5368,26 @@ class GaebConversionApi {
|
|
|
4963
5368
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4964
5369
|
*/
|
|
4965
5370
|
gaebConversionConvertToGaebWithRequestObject(gaebFile, options) {
|
|
4966
|
-
return this.gaebConversionConvertToGaeb(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationGaebType, options.targetExchangePhaseTransform, options.enforceStrictOfferPhaseLongTextOutput, options.exportQuantityDetermination, options.removeUnprintableCharactersFromTexts, options.forceIncludeDescriptions, options.treatNullItemNumberSchemaAsInvalid, options.options || {});
|
|
5371
|
+
return this.gaebConversionConvertToGaeb(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationGaebType, options.targetExchangePhaseTransform, options.enforceStrictOfferPhaseLongTextOutput, options.exportQuantityDetermination, options.removeUnprintableCharactersFromTexts, options.forceIncludeDescriptions, options.treatNullItemNumberSchemaAsInvalid, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
4967
5372
|
}
|
|
4968
5373
|
/**
|
|
4969
5374
|
*
|
|
4970
5375
|
* @summary Converts GAEB files to GAEB files. Used for example when transforming or repairing GAEB files.
|
|
4971
5376
|
* @param gaebFile The input file
|
|
4972
|
-
* @param supportSkippedItemNumberLevelsInPositions Defaults to 'false'. This controls if, when deserializing GAEB files, skipped levels in position item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group levels and one position
|
|
5377
|
+
* @param supportSkippedItemNumberLevelsInPositions Defaults to 'false'. This controls if, when deserializing GAEB files, skipped levels in position item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group levels and one position level - but the ItemNumber of the position is just '01.02', then it will be displayed as '01.__.02' if this is set to true.
|
|
4973
5378
|
* @param destinationGaebType Defaults to GAEB XML V3.2
|
|
4974
5379
|
* @param targetExchangePhaseTransform Defaults to none, meaning no transformation will be done
|
|
4975
5380
|
* @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.
|
|
4976
5381
|
* @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the 'QtyDeterm' (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the 'QuantityComponents' property of positions. Please see the entry for 'Quantity Determination' 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 'QuantityComponents' property.
|
|
4977
|
-
* @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.
|
|
5382
|
+
* @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. Defaults to true.
|
|
4978
5383
|
* @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.
|
|
4979
5384
|
* @param treatNullItemNumberSchemaAsInvalid When exporting to GAEB, an item number schema is usually required. AVACloud will try to fix invalid item number schemas. With this setting, you can also tell AVACloud to treat a null value as invalid. Otherwise, null schemas will simply be ignored and not lead to any schema being generated. It is recommended to enable this option, but it is disabled by default for compatibility reasons.
|
|
5385
|
+
* @param outputHtmlAsXml Defaults to 'false'. If this is enabled, then Html text will be output as XML in the output. This means that e.g. void Html tags will always be output with their closing tag, e.g. it will produce '<br />' instead of '<br>'.
|
|
5386
|
+
* @param keepEmptyHtmlText Defaults to 'false'. If this is enabled, then Html text that is empty will be kept in the output. Otherwise, Html text without any plain text will be removed. This is useful for example if you want to keep texts that only consist of empty paragraphs in the output.
|
|
5387
|
+
* @param allowUpperCaseItemNumbers Defaults to 'false'. If this is enabled, then the ItemNumber of positions will be in uppercase format if the source file has them. By default, all item numbers will be converted to lowercase, but this option will enable the option to support uppercase item numbers as well.
|
|
4980
5388
|
* @param {*} [options] Override http request options.
|
|
4981
5389
|
*/
|
|
4982
|
-
gaebConversionConvertToGaeb(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, treatNullItemNumberSchemaAsInvalid, options = {}) {
|
|
5390
|
+
gaebConversionConvertToGaeb(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, treatNullItemNumberSchemaAsInvalid, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, options = {}) {
|
|
4983
5391
|
const localVarPath = this.basePath + '/conversion/gaeb/gaeb';
|
|
4984
5392
|
let localVarQueryParameters = {};
|
|
4985
5393
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -5008,6 +5416,15 @@ class GaebConversionApi {
|
|
|
5008
5416
|
if (treatNullItemNumberSchemaAsInvalid !== undefined) {
|
|
5009
5417
|
localVarQueryParameters['TreatNullItemNumberSchemaAsInvalid'] = ObjectSerializer.serialize(treatNullItemNumberSchemaAsInvalid, "boolean");
|
|
5010
5418
|
}
|
|
5419
|
+
if (outputHtmlAsXml !== undefined) {
|
|
5420
|
+
localVarQueryParameters['OutputHtmlAsXml'] = ObjectSerializer.serialize(outputHtmlAsXml, "boolean");
|
|
5421
|
+
}
|
|
5422
|
+
if (keepEmptyHtmlText !== undefined) {
|
|
5423
|
+
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
5424
|
+
}
|
|
5425
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
5426
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
5427
|
+
}
|
|
5011
5428
|
Object.assign(localVarHeaderParams, options.headers);
|
|
5012
5429
|
let localVarUseFormData = false;
|
|
5013
5430
|
if (gaebFile !== undefined) {
|
|
@@ -5053,20 +5470,23 @@ class GaebConversionApi {
|
|
|
5053
5470
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
5054
5471
|
*/
|
|
5055
5472
|
gaebConversionConvertToOenormWithRequestObject(gaebFile, options) {
|
|
5056
|
-
return this.gaebConversionConvertToOenorm(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationOenormType, options.tryRepairProjectStructure, options.skipTryEnforceSchemaCompliantXmlOutput, options.removeUnprintableCharactersFromTexts, options.options || {});
|
|
5473
|
+
return this.gaebConversionConvertToOenorm(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationOenormType, options.tryRepairProjectStructure, options.skipTryEnforceSchemaCompliantXmlOutput, options.removeUnprintableCharactersFromTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
5057
5474
|
}
|
|
5058
5475
|
/**
|
|
5059
5476
|
*
|
|
5060
5477
|
* @summary Converts GAEB files to Oenorm files
|
|
5061
5478
|
* @param gaebFile The input file
|
|
5062
|
-
* @param supportSkippedItemNumberLevelsInPositions Defaults to 'false'. This controls if, when deserializing GAEB files, skipped levels in position item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group levels and one position
|
|
5479
|
+
* @param supportSkippedItemNumberLevelsInPositions Defaults to 'false'. This controls if, when deserializing GAEB files, skipped levels in position item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group levels and one position level - but the ItemNumber of the position is just '01.02', then it will be displayed as '01.__.02' if this is set to true.
|
|
5063
5480
|
* @param destinationOenormType Defaults to Lv2015
|
|
5064
5481
|
* @param tryRepairProjectStructure Defaults to false. If this is enabled, the converter will try to ensure that the project structure can be mapped to Oenorm. It might introduce additional group levels to ensure a compatible target
|
|
5065
5482
|
* @param skipTryEnforceSchemaCompliantXmlOutput If this option is enabled, AVACloud will not attempt to force a schema-compliant Xml output for ÖNorm targets that are Xml based. By default, AVACloud will try to add required fields, even if no data is present, with sensible defaults. This behavior can be disabled with this option.
|
|
5066
|
-
* @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.
|
|
5483
|
+
* @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. Defaults to true.
|
|
5484
|
+
* @param outputHtmlAsXml Defaults to 'false'. If this is enabled, then Html text will be output as XML in the output. This means that e.g. void Html tags will always be output with their closing tag, e.g. it will produce '<br />' instead of '<br>'.
|
|
5485
|
+
* @param keepEmptyHtmlText Defaults to 'false'. If this is enabled, then Html text that is empty will be kept in the output. Otherwise, Html text without any plain text will be removed. This is useful for example if you want to keep texts that only consist of empty paragraphs in the output.
|
|
5486
|
+
* @param allowUpperCaseItemNumbers Defaults to 'false'. If this is enabled, then the ItemNumber of positions will be in uppercase format if the source file has them. By default, all item numbers will be converted to lowercase, but this option will enable the option to support uppercase item numbers as well.
|
|
5067
5487
|
* @param {*} [options] Override http request options.
|
|
5068
5488
|
*/
|
|
5069
|
-
gaebConversionConvertToOenorm(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, options = {}) {
|
|
5489
|
+
gaebConversionConvertToOenorm(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, options = {}) {
|
|
5070
5490
|
const localVarPath = this.basePath + '/conversion/gaeb/oenorm';
|
|
5071
5491
|
let localVarQueryParameters = {};
|
|
5072
5492
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -5086,6 +5506,15 @@ class GaebConversionApi {
|
|
|
5086
5506
|
if (removeUnprintableCharactersFromTexts !== undefined) {
|
|
5087
5507
|
localVarQueryParameters['RemoveUnprintableCharactersFromTexts'] = ObjectSerializer.serialize(removeUnprintableCharactersFromTexts, "boolean");
|
|
5088
5508
|
}
|
|
5509
|
+
if (outputHtmlAsXml !== undefined) {
|
|
5510
|
+
localVarQueryParameters['OutputHtmlAsXml'] = ObjectSerializer.serialize(outputHtmlAsXml, "boolean");
|
|
5511
|
+
}
|
|
5512
|
+
if (keepEmptyHtmlText !== undefined) {
|
|
5513
|
+
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
5514
|
+
}
|
|
5515
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
5516
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
5517
|
+
}
|
|
5089
5518
|
Object.assign(localVarHeaderParams, options.headers);
|
|
5090
5519
|
let localVarUseFormData = false;
|
|
5091
5520
|
if (gaebFile !== undefined) {
|
|
@@ -5320,7 +5749,7 @@ class OenormConversionApi {
|
|
|
5320
5749
|
* @param targetExchangePhaseTransform Defaults to none, meaning no transformation will be done
|
|
5321
5750
|
* @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.
|
|
5322
5751
|
* @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the 'QtyDeterm' (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the 'QuantityComponents' property of positions. Please see the entry for 'Quantity Determination' 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 'QuantityComponents' property.
|
|
5323
|
-
* @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.
|
|
5752
|
+
* @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. Defaults to true.
|
|
5324
5753
|
* @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.
|
|
5325
5754
|
* @param treatNullItemNumberSchemaAsInvalid When exporting to GAEB, an item number schema is usually required. AVACloud will try to fix invalid item number schemas. With this setting, you can also tell AVACloud to treat a null value as invalid. Otherwise, null schemas will simply be ignored and not lead to any schema being generated. It is recommended to enable this option, but it is disabled by default for compatibility reasons.
|
|
5326
5755
|
* @param {*} [options] Override http request options.
|
|
@@ -5405,7 +5834,7 @@ class OenormConversionApi {
|
|
|
5405
5834
|
* @param destinationOenormType Defaults to Lv2015
|
|
5406
5835
|
* @param tryRepairProjectStructure Defaults to false. If this is enabled, the converter will try to ensure that the project structure can be mapped to Oenorm. It might introduce additional group levels to ensure a compatible target
|
|
5407
5836
|
* @param skipTryEnforceSchemaCompliantXmlOutput If this option is enabled, AVACloud will not attempt to force a schema-compliant Xml output for ÖNorm targets that are Xml based. By default, AVACloud will try to add required fields, even if no data is present, with sensible defaults. This behavior can be disabled with this option.
|
|
5408
|
-
* @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.
|
|
5837
|
+
* @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. Defaults to true.
|
|
5409
5838
|
* @param {*} [options] Override http request options.
|
|
5410
5839
|
*/
|
|
5411
5840
|
oenormConversionConvertToOenorm(oenormFile, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, options = {}) {
|
|
@@ -5659,7 +6088,7 @@ class RebConversionApi {
|
|
|
5659
6088
|
* @param targetExchangePhaseTransform Defaults to none, meaning no transformation will be done
|
|
5660
6089
|
* @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.
|
|
5661
6090
|
* @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the 'QtyDeterm' (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the 'QuantityComponents' property of positions. Please see the entry for 'Quantity Determination' 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 'QuantityComponents' property.
|
|
5662
|
-
* @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.
|
|
6091
|
+
* @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. Defaults to true.
|
|
5663
6092
|
* @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.
|
|
5664
6093
|
* @param treatNullItemNumberSchemaAsInvalid When exporting to GAEB, an item number schema is usually required. AVACloud will try to fix invalid item number schemas. With this setting, you can also tell AVACloud to treat a null value as invalid. Otherwise, null schemas will simply be ignored and not lead to any schema being generated. It is recommended to enable this option, but it is disabled by default for compatibility reasons.
|
|
5665
6094
|
* @param {*} [options] Override http request options.
|
|
@@ -5744,7 +6173,7 @@ class RebConversionApi {
|
|
|
5744
6173
|
* @param destinationOenormType Defaults to Lv2015
|
|
5745
6174
|
* @param tryRepairProjectStructure Defaults to false. If this is enabled, the converter will try to ensure that the project structure can be mapped to Oenorm. It might introduce additional group levels to ensure a compatible target
|
|
5746
6175
|
* @param skipTryEnforceSchemaCompliantXmlOutput If this option is enabled, AVACloud will not attempt to force a schema-compliant Xml output for ÖNorm targets that are Xml based. By default, AVACloud will try to add required fields, even if no data is present, with sensible defaults. This behavior can be disabled with this option.
|
|
5747
|
-
* @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.
|
|
6176
|
+
* @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. Defaults to true.
|
|
5748
6177
|
* @param {*} [options] Override http request options.
|
|
5749
6178
|
*/
|
|
5750
6179
|
rebConversionConvertToOenorm(rebFile, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, options = {}) {
|
|
@@ -5998,7 +6427,7 @@ class SiaConversionApi {
|
|
|
5998
6427
|
* @param targetExchangePhaseTransform Defaults to none, meaning no transformation will be done
|
|
5999
6428
|
* @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.
|
|
6000
6429
|
* @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the 'QtyDeterm' (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the 'QuantityComponents' property of positions. Please see the entry for 'Quantity Determination' 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 'QuantityComponents' property.
|
|
6001
|
-
* @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.
|
|
6430
|
+
* @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. Defaults to true.
|
|
6002
6431
|
* @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.
|
|
6003
6432
|
* @param treatNullItemNumberSchemaAsInvalid When exporting to GAEB, an item number schema is usually required. AVACloud will try to fix invalid item number schemas. With this setting, you can also tell AVACloud to treat a null value as invalid. Otherwise, null schemas will simply be ignored and not lead to any schema being generated. It is recommended to enable this option, but it is disabled by default for compatibility reasons.
|
|
6004
6433
|
* @param {*} [options] Override http request options.
|
|
@@ -6083,7 +6512,7 @@ class SiaConversionApi {
|
|
|
6083
6512
|
* @param destinationOenormType Defaults to Lv2015
|
|
6084
6513
|
* @param tryRepairProjectStructure Defaults to false. If this is enabled, the converter will try to ensure that the project structure can be mapped to Oenorm. It might introduce additional group levels to ensure a compatible target
|
|
6085
6514
|
* @param skipTryEnforceSchemaCompliantXmlOutput If this option is enabled, AVACloud will not attempt to force a schema-compliant Xml output for ÖNorm targets that are Xml based. By default, AVACloud will try to add required fields, even if no data is present, with sensible defaults. This behavior can be disabled with this option.
|
|
6086
|
-
* @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.
|
|
6515
|
+
* @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. Defaults to true.
|
|
6087
6516
|
* @param {*} [options] Override http request options.
|
|
6088
6517
|
*/
|
|
6089
6518
|
siaConversionConvertToOenorm(siaFile, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, options = {}) {
|
|
@@ -6236,6 +6665,115 @@ class StatusApi {
|
|
|
6236
6665
|
}
|
|
6237
6666
|
}
|
|
6238
6667
|
exports.StatusApi = StatusApi;
|
|
6668
|
+
var UglConversionApiApiKeys;
|
|
6669
|
+
(function (UglConversionApiApiKeys) {
|
|
6670
|
+
})(UglConversionApiApiKeys = exports.UglConversionApiApiKeys || (exports.UglConversionApiApiKeys = {}));
|
|
6671
|
+
class UglConversionApi {
|
|
6672
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
6673
|
+
this._basePath = defaultBasePath;
|
|
6674
|
+
this.defaultHeaders = {};
|
|
6675
|
+
this._useQuerystring = false;
|
|
6676
|
+
this.authentications = {
|
|
6677
|
+
'default': new VoidAuth(),
|
|
6678
|
+
'Dangl.Identity': new OAuth(),
|
|
6679
|
+
};
|
|
6680
|
+
if (password) {
|
|
6681
|
+
if (basePath) {
|
|
6682
|
+
this.basePath = basePath;
|
|
6683
|
+
}
|
|
6684
|
+
}
|
|
6685
|
+
else {
|
|
6686
|
+
if (basePathOrUsername) {
|
|
6687
|
+
this.basePath = basePathOrUsername;
|
|
6688
|
+
}
|
|
6689
|
+
}
|
|
6690
|
+
}
|
|
6691
|
+
set useQuerystring(value) {
|
|
6692
|
+
this._useQuerystring = value;
|
|
6693
|
+
}
|
|
6694
|
+
set basePath(basePath) {
|
|
6695
|
+
this._basePath = basePath;
|
|
6696
|
+
}
|
|
6697
|
+
get basePath() {
|
|
6698
|
+
return this._basePath;
|
|
6699
|
+
}
|
|
6700
|
+
setDefaultAuthentication(auth) {
|
|
6701
|
+
this.authentications.default = auth;
|
|
6702
|
+
}
|
|
6703
|
+
setApiKey(key, value) {
|
|
6704
|
+
this.authentications[UglConversionApiApiKeys[key]].apiKey = value;
|
|
6705
|
+
}
|
|
6706
|
+
set accessToken(token) {
|
|
6707
|
+
this.authentications['Dangl.Identity'].accessToken = token;
|
|
6708
|
+
}
|
|
6709
|
+
/**
|
|
6710
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6711
|
+
*/
|
|
6712
|
+
uglConversionConvertToAvaWithRequestObject(uglFile, options) {
|
|
6713
|
+
return this.uglConversionConvertToAva(uglFile, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
|
|
6714
|
+
}
|
|
6715
|
+
/**
|
|
6716
|
+
*
|
|
6717
|
+
* @summary Converts Ugl files to Dangl.AVA projects
|
|
6718
|
+
* @param uglFile The input file
|
|
6719
|
+
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
6720
|
+
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
6721
|
+
* @param {*} [options] Override http request options.
|
|
6722
|
+
*/
|
|
6723
|
+
uglConversionConvertToAva(uglFile, removePlainTextLongTexts, removeHtmlLongTexts, options = {}) {
|
|
6724
|
+
const localVarPath = this.basePath + '/conversion/ugl/ava';
|
|
6725
|
+
let localVarQueryParameters = {};
|
|
6726
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
6727
|
+
let localVarFormParams = {};
|
|
6728
|
+
if (removePlainTextLongTexts !== undefined) {
|
|
6729
|
+
localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
|
|
6730
|
+
}
|
|
6731
|
+
if (removeHtmlLongTexts !== undefined) {
|
|
6732
|
+
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
6733
|
+
}
|
|
6734
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
6735
|
+
let localVarUseFormData = false;
|
|
6736
|
+
if (uglFile !== undefined) {
|
|
6737
|
+
localVarFormParams['uglFile'] = uglFile;
|
|
6738
|
+
}
|
|
6739
|
+
localVarUseFormData = true;
|
|
6740
|
+
let localVarRequestOptions = {
|
|
6741
|
+
method: 'POST',
|
|
6742
|
+
qs: localVarQueryParameters,
|
|
6743
|
+
headers: localVarHeaderParams,
|
|
6744
|
+
uri: localVarPath,
|
|
6745
|
+
useQuerystring: this._useQuerystring,
|
|
6746
|
+
json: true,
|
|
6747
|
+
};
|
|
6748
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
6749
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
6750
|
+
if (Object.keys(localVarFormParams).length) {
|
|
6751
|
+
if (localVarUseFormData) {
|
|
6752
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
6753
|
+
}
|
|
6754
|
+
else {
|
|
6755
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
6756
|
+
}
|
|
6757
|
+
}
|
|
6758
|
+
return new Promise((resolve, reject) => {
|
|
6759
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6760
|
+
if (error) {
|
|
6761
|
+
reject(error);
|
|
6762
|
+
}
|
|
6763
|
+
else {
|
|
6764
|
+
body = ObjectSerializer.deserialize(body, "ProjectDto");
|
|
6765
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6766
|
+
resolve({ response: response, body: body });
|
|
6767
|
+
}
|
|
6768
|
+
else {
|
|
6769
|
+
reject({ response: response, body: body });
|
|
6770
|
+
}
|
|
6771
|
+
}
|
|
6772
|
+
});
|
|
6773
|
+
});
|
|
6774
|
+
}
|
|
6775
|
+
}
|
|
6776
|
+
exports.UglConversionApi = UglConversionApi;
|
|
6239
6777
|
var ValidationApiApiKeys;
|
|
6240
6778
|
(function (ValidationApiApiKeys) {
|
|
6241
6779
|
})(ValidationApiApiKeys = exports.ValidationApiApiKeys || (exports.ValidationApiApiKeys = {}));
|