@dangl/avacloud-client-node 1.45.0-beta0010-avacloud-preview → 1.46.0-avacloud-preview

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/api.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  /**
3
- * AVACloud API 1.45.0-beta0010
3
+ * AVACloud API 1.46.0
4
4
  * AVACloud API specification
5
5
  *
6
- * OpenAPI spec version: 1.45.0-beta0010
6
+ * OpenAPI spec version: 1.46.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.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.IdsConnectVersion = 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.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.SiaDestinationType = 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.PriceCatalogueDataDto = exports.PostOenormDestinationOptions = exports.PostGaebDestinationOptions = exports.PostAvaSourceOptions = exports.PostAvaProjectValidationSourceOptions = 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.IdsConnectConversionApi = exports.IdsConnectConversionApiApiKeys = exports.GaebConversionApi = exports.GaebConversionApiApiKeys = exports.ExcelConversionApi = exports.ExcelConversionApiApiKeys = exports.DatanormConversionApi = exports.DatanormConversionApiApiKeys = void 0;
14
+ 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.IdsConnectVersion = exports.HttpStatusCode = exports.HoldOutTypeDto = exports.HoldOutDurationUnitDto = exports.GrossPriceComponentDto = exports.GetStatus = exports.ForgotPasswordPost = exports.FlatElementDto = exports.FlatAvaProject = 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.ClaimGet = exports.CatalogueTypeDto = exports.CatalogueReferenceDto = exports.CatalogueDto = exports.CalculationDto = exports.BankingInformationDto = exports.AwardTypeDto = exports.ArticleDataDto = exports.ApiError = exports.AdditionTypeDto = exports.AddendumStatusDto = void 0;
15
+ 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.UserInfoGet = exports.UglDestinationVersion = exports.TradeDiscountDto = exports.TokenResponseGet = exports.TokenRefreshPost = exports.TokenLoginPost = exports.SubDescriptionDto = exports.StandardizedDescriptionDto = exports.StandardReferenceTypeDto = exports.SpecialAwardKindDto = exports.SiaDestinationType = 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.PriceCatalogueDataDto = exports.PostOenormDestinationOptions = exports.PostGaebDestinationOptions = exports.PostAvaSourceOptions = exports.PostAvaProjectValidationSourceOptions = exports.PositionTypeDto = exports.PositionHoldOutPropertiesDto = exports.PositionDto = 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.IdsConnectConversionApi = exports.IdsConnectConversionApiApiKeys = exports.GaebConversionApi = exports.GaebConversionApiApiKeys = exports.FlatAvaConversionApi = exports.FlatAvaConversionApiApiKeys = exports.ExcelConversionApi = exports.ExcelConversionApiApiKeys = exports.DatanormConversionApi = exports.DatanormConversionApiApiKeys = exports.DanglIdentityApi = exports.DanglIdentityApiApiKeys = exports.AvaConversionApi = exports.AvaConversionApiApiKeys = void 0;
17
17
  const localVarRequest = require("request");
18
18
  let defaultBasePath = 'https://avacloud-api.dangl-it.com';
19
19
  // ===============================================
@@ -428,6 +428,30 @@ class CatalogueTypeDto {
428
428
  exports.CatalogueTypeDto = CatalogueTypeDto;
429
429
  CatalogueTypeDto.discriminator = undefined;
430
430
  CatalogueTypeDto.attributeTypeMap = [];
431
+ class ClaimGet {
432
+ static getAttributeTypeMap() {
433
+ return ClaimGet.attributeTypeMap;
434
+ }
435
+ }
436
+ exports.ClaimGet = ClaimGet;
437
+ ClaimGet.discriminator = undefined;
438
+ ClaimGet.attributeTypeMap = [
439
+ {
440
+ "name": "issuer",
441
+ "baseName": "issuer",
442
+ "type": "string"
443
+ },
444
+ {
445
+ "name": "type",
446
+ "baseName": "type",
447
+ "type": "string"
448
+ },
449
+ {
450
+ "name": "value",
451
+ "baseName": "value",
452
+ "type": "string"
453
+ }
454
+ ];
431
455
  /**
432
456
  * Indicates if this service specification item is commissioned (and therefore should be executed), postponed for later or undefined.
433
457
  */
@@ -683,6 +707,55 @@ class FileValidationSourceType {
683
707
  exports.FileValidationSourceType = FileValidationSourceType;
684
708
  FileValidationSourceType.discriminator = undefined;
685
709
  FileValidationSourceType.attributeTypeMap = [];
710
+ /**
711
+ * This model contains a flattened represention of an AVA project, which makes it easy to use in systems that expect elements in a list form.
712
+ */
713
+ class FlatAvaProject {
714
+ static getAttributeTypeMap() {
715
+ return FlatAvaProject.attributeTypeMap;
716
+ }
717
+ }
718
+ exports.FlatAvaProject = FlatAvaProject;
719
+ FlatAvaProject.discriminator = undefined;
720
+ FlatAvaProject.attributeTypeMap = [
721
+ {
722
+ "name": "project",
723
+ "baseName": "project",
724
+ "type": "ProjectDto"
725
+ },
726
+ {
727
+ "name": "elements",
728
+ "baseName": "elements",
729
+ "type": "Array<FlatElementDto>"
730
+ }
731
+ ];
732
+ /**
733
+ * This model contains a flattened represention of an AVA project, which
734
+ */
735
+ class FlatElementDto {
736
+ static getAttributeTypeMap() {
737
+ return FlatElementDto.attributeTypeMap;
738
+ }
739
+ }
740
+ exports.FlatElementDto = FlatElementDto;
741
+ FlatElementDto.discriminator = undefined;
742
+ FlatElementDto.attributeTypeMap = [
743
+ {
744
+ "name": "previousElementId",
745
+ "baseName": "previousElementId",
746
+ "type": "string"
747
+ },
748
+ {
749
+ "name": "parentElementId",
750
+ "baseName": "parentElementId",
751
+ "type": "string"
752
+ },
753
+ {
754
+ "name": "element",
755
+ "baseName": "element",
756
+ "type": "IElementDto"
757
+ }
758
+ ];
686
759
  class ForgotPasswordPost {
687
760
  static getAttributeTypeMap() {
688
761
  return ForgotPasswordPost.attributeTypeMap;
@@ -3180,6 +3253,60 @@ class UglDestinationVersion {
3180
3253
  exports.UglDestinationVersion = UglDestinationVersion;
3181
3254
  UglDestinationVersion.discriminator = undefined;
3182
3255
  UglDestinationVersion.attributeTypeMap = [];
3256
+ class UserInfoGet {
3257
+ static getAttributeTypeMap() {
3258
+ return UserInfoGet.attributeTypeMap;
3259
+ }
3260
+ }
3261
+ exports.UserInfoGet = UserInfoGet;
3262
+ UserInfoGet.discriminator = undefined;
3263
+ UserInfoGet.attributeTypeMap = [
3264
+ {
3265
+ "name": "userIsAuthenticated",
3266
+ "baseName": "userIsAuthenticated",
3267
+ "type": "boolean"
3268
+ },
3269
+ {
3270
+ "name": "clientIsAuthenticated",
3271
+ "baseName": "clientIsAuthenticated",
3272
+ "type": "boolean"
3273
+ },
3274
+ {
3275
+ "name": "currentUserId",
3276
+ "baseName": "currentUserId",
3277
+ "type": "string"
3278
+ },
3279
+ {
3280
+ "name": "currentUserIdenticonId",
3281
+ "baseName": "currentUserIdenticonId",
3282
+ "type": "string"
3283
+ },
3284
+ {
3285
+ "name": "currentUserName",
3286
+ "baseName": "currentUserName",
3287
+ "type": "string"
3288
+ },
3289
+ {
3290
+ "name": "currentUserEmail",
3291
+ "baseName": "currentUserEmail",
3292
+ "type": "string"
3293
+ },
3294
+ {
3295
+ "name": "currentClientId",
3296
+ "baseName": "currentClientId",
3297
+ "type": "string"
3298
+ },
3299
+ {
3300
+ "name": "userClaims",
3301
+ "baseName": "userClaims",
3302
+ "type": "Array<ClaimGet>"
3303
+ },
3304
+ {
3305
+ "name": "clientClaims",
3306
+ "baseName": "clientClaims",
3307
+ "type": "Array<ClaimGet>"
3308
+ }
3309
+ ];
3183
3310
  /**
3184
3311
  * This class models the results of a single check performed during a validation action
3185
3312
  */
@@ -3343,6 +3470,7 @@ let typeMap = {
3343
3470
  "CatalogueDto": CatalogueDto,
3344
3471
  "CatalogueReferenceDto": CatalogueReferenceDto,
3345
3472
  "CatalogueTypeDto": CatalogueTypeDto,
3473
+ "ClaimGet": ClaimGet,
3346
3474
  "ComissionStatusDto": ComissionStatusDto,
3347
3475
  "CommerceInquiryTypeDto": CommerceInquiryTypeDto,
3348
3476
  "CommercePropertiesDto": CommercePropertiesDto,
@@ -3356,6 +3484,8 @@ let typeMap = {
3356
3484
  "ExchangePhaseDto": ExchangePhaseDto,
3357
3485
  "ExecutionDescriptionDto": ExecutionDescriptionDto,
3358
3486
  "FileValidationSourceType": FileValidationSourceType,
3487
+ "FlatAvaProject": FlatAvaProject,
3488
+ "FlatElementDto": FlatElementDto,
3359
3489
  "ForgotPasswordPost": ForgotPasswordPost,
3360
3490
  "GetStatus": GetStatus,
3361
3491
  "GrossPriceComponentDto": GrossPriceComponentDto,
@@ -3416,6 +3546,7 @@ let typeMap = {
3416
3546
  "TokenResponseGet": TokenResponseGet,
3417
3547
  "TradeDiscountDto": TradeDiscountDto,
3418
3548
  "UglDestinationVersion": UglDestinationVersion,
3549
+ "UserInfoGet": UserInfoGet,
3419
3550
  "ValidationCheckResult": ValidationCheckResult,
3420
3551
  "ValidationCheckType": ValidationCheckType,
3421
3552
  "ValidationResult": ValidationResult,
@@ -3654,6 +3785,58 @@ class AslvConversionApi {
3654
3785
  });
3655
3786
  });
3656
3787
  }
3788
+ /**
3789
+ *
3790
+ * @summary Converts Aslv files to Dangl.AVA projects
3791
+ * @param aslvFile The input file
3792
+ * @param {*} [options] Override http request options.
3793
+ */
3794
+ aslvConversionConvertToFlatAva(aslvFile, options = {}) {
3795
+ const localVarPath = this.basePath + '/conversion/aslv/flat-ava';
3796
+ let localVarQueryParameters = {};
3797
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
3798
+ let localVarFormParams = {};
3799
+ Object.assign(localVarHeaderParams, options.headers);
3800
+ let localVarUseFormData = false;
3801
+ if (aslvFile !== undefined) {
3802
+ localVarFormParams['aslvFile'] = aslvFile;
3803
+ }
3804
+ localVarUseFormData = true;
3805
+ let localVarRequestOptions = {
3806
+ method: 'POST',
3807
+ qs: localVarQueryParameters,
3808
+ headers: localVarHeaderParams,
3809
+ uri: localVarPath,
3810
+ useQuerystring: this._useQuerystring,
3811
+ json: true,
3812
+ };
3813
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
3814
+ this.authentications.default.applyToRequest(localVarRequestOptions);
3815
+ if (Object.keys(localVarFormParams).length) {
3816
+ if (localVarUseFormData) {
3817
+ localVarRequestOptions.formData = localVarFormParams;
3818
+ }
3819
+ else {
3820
+ localVarRequestOptions.form = localVarFormParams;
3821
+ }
3822
+ }
3823
+ return new Promise((resolve, reject) => {
3824
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
3825
+ if (error) {
3826
+ reject(error);
3827
+ }
3828
+ else {
3829
+ body = ObjectSerializer.deserialize(body, "FlatAvaProject");
3830
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3831
+ resolve({ response: response, body: body });
3832
+ }
3833
+ else {
3834
+ reject({ response: response, body: body });
3835
+ }
3836
+ }
3837
+ });
3838
+ });
3839
+ }
3657
3840
  /**
3658
3841
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
3659
3842
  */
@@ -4079,6 +4262,69 @@ class AvaConversionApi {
4079
4262
  /**
4080
4263
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4081
4264
  */
4265
+ avaConversionConvertToFlatAvaWithRequestObject(avaProject, options) {
4266
+ return this.avaConversionConvertToFlatAva(avaProject, options === null || options === void 0 ? void 0 : options.tryAutoGenerateItemNumbersAndSchema, (options === null || options === void 0 ? void 0 : options.options) || {});
4267
+ }
4268
+ /**
4269
+ *
4270
+ * @summary Converts Dangl.AVA projects to Dangl.AVA. This is useful when you want to generate the calculated properties.
4271
+ * @param avaProject The Dangl.AVA project
4272
+ * @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.
4273
+ * @param {*} [options] Override http request options.
4274
+ */
4275
+ avaConversionConvertToFlatAva(avaProject, tryAutoGenerateItemNumbersAndSchema, options = {}) {
4276
+ const localVarPath = this.basePath + '/conversion/ava/flat-ava';
4277
+ let localVarQueryParameters = {};
4278
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
4279
+ let localVarFormParams = {};
4280
+ // verify required parameter 'avaProject' is not null or undefined
4281
+ if (avaProject === null || avaProject === undefined) {
4282
+ throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToFlatAva.');
4283
+ }
4284
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
4285
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
4286
+ }
4287
+ Object.assign(localVarHeaderParams, options.headers);
4288
+ let localVarUseFormData = false;
4289
+ let localVarRequestOptions = {
4290
+ method: 'POST',
4291
+ qs: localVarQueryParameters,
4292
+ headers: localVarHeaderParams,
4293
+ uri: localVarPath,
4294
+ useQuerystring: this._useQuerystring,
4295
+ json: true,
4296
+ body: avaProject
4297
+ };
4298
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
4299
+ this.authentications.default.applyToRequest(localVarRequestOptions);
4300
+ if (Object.keys(localVarFormParams).length) {
4301
+ if (localVarUseFormData) {
4302
+ localVarRequestOptions.formData = localVarFormParams;
4303
+ }
4304
+ else {
4305
+ localVarRequestOptions.form = localVarFormParams;
4306
+ }
4307
+ }
4308
+ return new Promise((resolve, reject) => {
4309
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
4310
+ if (error) {
4311
+ reject(error);
4312
+ }
4313
+ else {
4314
+ body = ObjectSerializer.deserialize(body, "FlatAvaProject");
4315
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4316
+ resolve({ response: response, body: body });
4317
+ }
4318
+ else {
4319
+ reject({ response: response, body: body });
4320
+ }
4321
+ }
4322
+ });
4323
+ });
4324
+ }
4325
+ /**
4326
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4327
+ */
4082
4328
  avaConversionConvertToGaebWithRequestObject(avaProject, options) {
4083
4329
  return this.avaConversionConvertToGaeb(avaProject, options === null || options === void 0 ? void 0 : options.tryAutoGenerateItemNumbersAndSchema, options === null || options === void 0 ? void 0 : options.destinationGaebType, options === null || options === void 0 ? void 0 : options.targetExchangePhaseTransform, options === null || options === void 0 ? void 0 : options.enforceStrictOfferPhaseLongTextOutput, options === null || options === void 0 ? void 0 : options.exportQuantityDetermination, options === null || options === void 0 ? void 0 : options.removeUnprintableCharactersFromTexts, options === null || options === void 0 ? void 0 : options.forceIncludeDescriptions, options === null || options === void 0 ? void 0 : options.treatNullItemNumberSchemaAsInvalid, (options === null || options === void 0 ? void 0 : options.options) || {});
4084
4330
  }
@@ -4563,6 +4809,52 @@ class DanglIdentityApi {
4563
4809
  set accessToken(token) {
4564
4810
  this.authentications['Dangl.Identity'].accessToken = token;
4565
4811
  }
4812
+ /**
4813
+ *
4814
+ * @param {*} [options] Override http request options.
4815
+ */
4816
+ danglIdentityGetUserInfo(options = {}) {
4817
+ const localVarPath = this.basePath + '/identity/user-info';
4818
+ let localVarQueryParameters = {};
4819
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
4820
+ let localVarFormParams = {};
4821
+ Object.assign(localVarHeaderParams, options.headers);
4822
+ let localVarUseFormData = false;
4823
+ let localVarRequestOptions = {
4824
+ method: 'GET',
4825
+ qs: localVarQueryParameters,
4826
+ headers: localVarHeaderParams,
4827
+ uri: localVarPath,
4828
+ useQuerystring: this._useQuerystring,
4829
+ json: true,
4830
+ };
4831
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
4832
+ this.authentications.default.applyToRequest(localVarRequestOptions);
4833
+ if (Object.keys(localVarFormParams).length) {
4834
+ if (localVarUseFormData) {
4835
+ localVarRequestOptions.formData = localVarFormParams;
4836
+ }
4837
+ else {
4838
+ localVarRequestOptions.form = localVarFormParams;
4839
+ }
4840
+ }
4841
+ return new Promise((resolve, reject) => {
4842
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
4843
+ if (error) {
4844
+ reject(error);
4845
+ }
4846
+ else {
4847
+ body = ObjectSerializer.deserialize(body, "UserInfoGet");
4848
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4849
+ resolve({ response: response, body: body });
4850
+ }
4851
+ else {
4852
+ reject({ response: response, body: body });
4853
+ }
4854
+ }
4855
+ });
4856
+ });
4857
+ }
4566
4858
  /**
4567
4859
  *
4568
4860
  * @param model
@@ -4984,29 +5276,81 @@ class DatanormConversionApi {
4984
5276
  });
4985
5277
  });
4986
5278
  }
4987
- }
4988
- exports.DatanormConversionApi = DatanormConversionApi;
4989
- var ExcelConversionApiApiKeys;
4990
- (function (ExcelConversionApiApiKeys) {
4991
- })(ExcelConversionApiApiKeys = exports.ExcelConversionApiApiKeys || (exports.ExcelConversionApiApiKeys = {}));
4992
- class ExcelConversionApi {
4993
- constructor(basePathOrUsername, password, basePath) {
4994
- this._basePath = defaultBasePath;
4995
- this.defaultHeaders = {};
4996
- this._useQuerystring = false;
4997
- this.authentications = {
4998
- 'default': new VoidAuth(),
4999
- 'Dangl.Identity': new OAuth(),
5000
- };
5001
- if (password) {
5002
- if (basePath) {
5003
- this.basePath = basePath;
5004
- }
5005
- }
5006
- else {
5007
- if (basePathOrUsername) {
5008
- this.basePath = basePathOrUsername;
5009
- }
5279
+ /**
5280
+ *
5281
+ * @summary Converts Datanorm files to Dangl.AVA projects
5282
+ * @param datanormFile The input file
5283
+ * @param {*} [options] Override http request options.
5284
+ */
5285
+ datanormConversionConvertToFlatAva(datanormFile, options = {}) {
5286
+ const localVarPath = this.basePath + '/conversion/datanorm/flat-ava';
5287
+ let localVarQueryParameters = {};
5288
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
5289
+ let localVarFormParams = {};
5290
+ Object.assign(localVarHeaderParams, options.headers);
5291
+ let localVarUseFormData = false;
5292
+ if (datanormFile !== undefined) {
5293
+ localVarFormParams['datanormFile'] = datanormFile;
5294
+ }
5295
+ localVarUseFormData = true;
5296
+ let localVarRequestOptions = {
5297
+ method: 'POST',
5298
+ qs: localVarQueryParameters,
5299
+ headers: localVarHeaderParams,
5300
+ uri: localVarPath,
5301
+ useQuerystring: this._useQuerystring,
5302
+ json: true,
5303
+ };
5304
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
5305
+ this.authentications.default.applyToRequest(localVarRequestOptions);
5306
+ if (Object.keys(localVarFormParams).length) {
5307
+ if (localVarUseFormData) {
5308
+ localVarRequestOptions.formData = localVarFormParams;
5309
+ }
5310
+ else {
5311
+ localVarRequestOptions.form = localVarFormParams;
5312
+ }
5313
+ }
5314
+ return new Promise((resolve, reject) => {
5315
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
5316
+ if (error) {
5317
+ reject(error);
5318
+ }
5319
+ else {
5320
+ body = ObjectSerializer.deserialize(body, "FlatAvaProject");
5321
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5322
+ resolve({ response: response, body: body });
5323
+ }
5324
+ else {
5325
+ reject({ response: response, body: body });
5326
+ }
5327
+ }
5328
+ });
5329
+ });
5330
+ }
5331
+ }
5332
+ exports.DatanormConversionApi = DatanormConversionApi;
5333
+ var ExcelConversionApiApiKeys;
5334
+ (function (ExcelConversionApiApiKeys) {
5335
+ })(ExcelConversionApiApiKeys = exports.ExcelConversionApiApiKeys || (exports.ExcelConversionApiApiKeys = {}));
5336
+ class ExcelConversionApi {
5337
+ constructor(basePathOrUsername, password, basePath) {
5338
+ this._basePath = defaultBasePath;
5339
+ this.defaultHeaders = {};
5340
+ this._useQuerystring = false;
5341
+ this.authentications = {
5342
+ 'default': new VoidAuth(),
5343
+ 'Dangl.Identity': new OAuth(),
5344
+ };
5345
+ if (password) {
5346
+ if (basePath) {
5347
+ this.basePath = basePath;
5348
+ }
5349
+ }
5350
+ else {
5351
+ if (basePathOrUsername) {
5352
+ this.basePath = basePathOrUsername;
5353
+ }
5010
5354
  }
5011
5355
  }
5012
5356
  set useQuerystring(value) {
@@ -5186,6 +5530,72 @@ class ExcelConversionApi {
5186
5530
  /**
5187
5531
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5188
5532
  */
5533
+ excelConversionConvertToFlatAvaWithRequestObject(excelFile, options) {
5534
+ return this.excelConversionConvertToFlatAva(excelFile, options === null || options === void 0 ? void 0 : options.readNewElements, options === null || options === void 0 ? void 0 : options.rebuildItemNumberSchema, (options === null || options === void 0 ? void 0 : options.options) || {});
5535
+ }
5536
+ /**
5537
+ *
5538
+ * @summary Converts Excel files to Dangl.AVA projects.
5539
+ * @param excelFile The input file
5540
+ * @param readNewElements Defaults to false
5541
+ * @param rebuildItemNumberSchema When importing new elements from Excel, sometimes the ItemNumberSchema in the file is not in compliance with the GAEB requirements. Enabling this option tries to repair the ItemNumberSchema. Defaults to false.
5542
+ * @param {*} [options] Override http request options.
5543
+ */
5544
+ excelConversionConvertToFlatAva(excelFile, readNewElements, rebuildItemNumberSchema, options = {}) {
5545
+ const localVarPath = this.basePath + '/conversion/excel/flat-ava';
5546
+ let localVarQueryParameters = {};
5547
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
5548
+ let localVarFormParams = {};
5549
+ if (readNewElements !== undefined) {
5550
+ localVarQueryParameters['ReadNewElements'] = ObjectSerializer.serialize(readNewElements, "boolean");
5551
+ }
5552
+ if (rebuildItemNumberSchema !== undefined) {
5553
+ localVarQueryParameters['RebuildItemNumberSchema'] = ObjectSerializer.serialize(rebuildItemNumberSchema, "boolean");
5554
+ }
5555
+ Object.assign(localVarHeaderParams, options.headers);
5556
+ let localVarUseFormData = false;
5557
+ if (excelFile !== undefined) {
5558
+ localVarFormParams['excelFile'] = excelFile;
5559
+ }
5560
+ localVarUseFormData = true;
5561
+ let localVarRequestOptions = {
5562
+ method: 'POST',
5563
+ qs: localVarQueryParameters,
5564
+ headers: localVarHeaderParams,
5565
+ uri: localVarPath,
5566
+ useQuerystring: this._useQuerystring,
5567
+ json: true,
5568
+ };
5569
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
5570
+ this.authentications.default.applyToRequest(localVarRequestOptions);
5571
+ if (Object.keys(localVarFormParams).length) {
5572
+ if (localVarUseFormData) {
5573
+ localVarRequestOptions.formData = localVarFormParams;
5574
+ }
5575
+ else {
5576
+ localVarRequestOptions.form = localVarFormParams;
5577
+ }
5578
+ }
5579
+ return new Promise((resolve, reject) => {
5580
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
5581
+ if (error) {
5582
+ reject(error);
5583
+ }
5584
+ else {
5585
+ body = ObjectSerializer.deserialize(body, "FlatAvaProject");
5586
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5587
+ resolve({ response: response, body: body });
5588
+ }
5589
+ else {
5590
+ reject({ response: response, body: body });
5591
+ }
5592
+ }
5593
+ });
5594
+ });
5595
+ }
5596
+ /**
5597
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5598
+ */
5189
5599
  excelConversionConvertToGaebWithRequestObject(excelFile, options) {
5190
5600
  return this.excelConversionConvertToGaeb(excelFile, options === null || options === void 0 ? void 0 : options.readNewElements, options === null || options === void 0 ? void 0 : options.rebuildItemNumberSchema, options === null || options === void 0 ? void 0 : options.destinationGaebType, options === null || options === void 0 ? void 0 : options.targetExchangePhaseTransform, options === null || options === void 0 ? void 0 : options.enforceStrictOfferPhaseLongTextOutput, options === null || options === void 0 ? void 0 : options.exportQuantityDetermination, options === null || options === void 0 ? void 0 : options.removeUnprintableCharactersFromTexts, options === null || options === void 0 ? void 0 : options.forceIncludeDescriptions, options === null || options === void 0 ? void 0 : options.treatNullItemNumberSchemaAsInvalid, (options === null || options === void 0 ? void 0 : options.options) || {});
5191
5601
  }
@@ -5361,10 +5771,10 @@ class ExcelConversionApi {
5361
5771
  }
5362
5772
  }
5363
5773
  exports.ExcelConversionApi = ExcelConversionApi;
5364
- var GaebConversionApiApiKeys;
5365
- (function (GaebConversionApiApiKeys) {
5366
- })(GaebConversionApiApiKeys = exports.GaebConversionApiApiKeys || (exports.GaebConversionApiApiKeys = {}));
5367
- class GaebConversionApi {
5774
+ var FlatAvaConversionApiApiKeys;
5775
+ (function (FlatAvaConversionApiApiKeys) {
5776
+ })(FlatAvaConversionApiApiKeys = exports.FlatAvaConversionApiApiKeys || (exports.FlatAvaConversionApiApiKeys = {}));
5777
+ class FlatAvaConversionApi {
5368
5778
  constructor(basePathOrUsername, password, basePath) {
5369
5779
  this._basePath = defaultBasePath;
5370
5780
  this.defaultHeaders = {};
@@ -5397,7 +5807,7 @@ class GaebConversionApi {
5397
5807
  this.authentications.default = auth;
5398
5808
  }
5399
5809
  setApiKey(key, value) {
5400
- this.authentications[GaebConversionApiApiKeys[key]].apiKey = value;
5810
+ this.authentications[FlatAvaConversionApiApiKeys[key]].apiKey = value;
5401
5811
  }
5402
5812
  set accessToken(token) {
5403
5813
  this.authentications['Dangl.Identity'].accessToken = token;
@@ -5405,29 +5815,29 @@ class GaebConversionApi {
5405
5815
  /**
5406
5816
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5407
5817
  */
5408
- gaebConversionConvertToAvaWithRequestObject(gaebFile, options) {
5409
- return this.gaebConversionConvertToAva(gaebFile, options === null || options === void 0 ? void 0 : options.supportSkippedItemNumberLevelsInPositions, options === null || options === void 0 ? void 0 : options.removePlainTextLongTexts, options === null || options === void 0 ? void 0 : options.removeHtmlLongTexts, options === null || options === void 0 ? void 0 : options.outputHtmlAsXml, options === null || options === void 0 ? void 0 : options.keepEmptyHtmlText, options === null || options === void 0 ? void 0 : options.allowUpperCaseItemNumbers, options === null || options === void 0 ? void 0 : options.allowLumpSumItemsWithDifferingQuantities, (options === null || options === void 0 ? void 0 : options.options) || {});
5818
+ flatAvaConversionConvertToAvaWithRequestObject(flatAvaProject, options) {
5819
+ return this.flatAvaConversionConvertToAva(flatAvaProject, options === null || options === void 0 ? void 0 : options.tryAutoGenerateItemNumbersAndSchema, options === null || options === void 0 ? void 0 : options.removePlainTextLongTexts, options === null || options === void 0 ? void 0 : options.removeHtmlLongTexts, (options === null || options === void 0 ? void 0 : options.options) || {});
5410
5820
  }
5411
5821
  /**
5412
5822
  *
5413
- * @summary Converts GAEB files to Dangl.AVA projects
5414
- * @param gaebFile The input file
5415
- * @param supportSkippedItemNumberLevelsInPositions Defaults to &#39;false&#39;. 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 &#39;01.02&#39;, then it will be displayed as &#39;01.__.02&#39; if this is set to true.
5823
+ * @summary Converts flat Dangl.AVA projects to Dangl.AVA. This is useful when you want to generate the calculated properties.
5824
+ * @param flatAvaProject The flat Dangl.AVA project
5825
+ * @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.
5416
5826
  * @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
5417
5827
  * @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
5418
- * @param outputHtmlAsXml Defaults to &#39;false&#39;. 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 &#39;&lt;br /&gt;&#39; instead of &#39;&lt;br&gt;&#39;.
5419
- * @param keepEmptyHtmlText Defaults to &#39;false&#39;. 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.
5420
- * @param allowUpperCaseItemNumbers Defaults to &#39;false&#39;. 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.
5421
- * @param allowLumpSumItemsWithDifferingQuantities Defaults to &#39;false&#39;. By default, the GAEB standard requires lump sum items (&#39;Pauschalpositionen&#39; in German) to have a quantity of exactly 1. AVACloud does enforce this convention, but if you set this property to &#39;true&#39;, then differing quantities will be kept during the import.
5422
5828
  * @param {*} [options] Override http request options.
5423
5829
  */
5424
- gaebConversionConvertToAva(gaebFile, supportSkippedItemNumberLevelsInPositions, removePlainTextLongTexts, removeHtmlLongTexts, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, allowLumpSumItemsWithDifferingQuantities, options = {}) {
5425
- const localVarPath = this.basePath + '/conversion/gaeb/ava';
5830
+ flatAvaConversionConvertToAva(flatAvaProject, tryAutoGenerateItemNumbersAndSchema, removePlainTextLongTexts, removeHtmlLongTexts, options = {}) {
5831
+ const localVarPath = this.basePath + '/conversion/flat-ava/ava';
5426
5832
  let localVarQueryParameters = {};
5427
5833
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
5428
5834
  let localVarFormParams = {};
5429
- if (supportSkippedItemNumberLevelsInPositions !== undefined) {
5430
- localVarQueryParameters['SupportSkippedItemNumberLevelsInPositions'] = ObjectSerializer.serialize(supportSkippedItemNumberLevelsInPositions, "boolean");
5835
+ // verify required parameter 'flatAvaProject' is not null or undefined
5836
+ if (flatAvaProject === null || flatAvaProject === undefined) {
5837
+ throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToAva.');
5838
+ }
5839
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
5840
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
5431
5841
  }
5432
5842
  if (removePlainTextLongTexts !== undefined) {
5433
5843
  localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
@@ -5435,31 +5845,83 @@ class GaebConversionApi {
5435
5845
  if (removeHtmlLongTexts !== undefined) {
5436
5846
  localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
5437
5847
  }
5438
- if (outputHtmlAsXml !== undefined) {
5439
- localVarQueryParameters['OutputHtmlAsXml'] = ObjectSerializer.serialize(outputHtmlAsXml, "boolean");
5848
+ Object.assign(localVarHeaderParams, options.headers);
5849
+ let localVarUseFormData = false;
5850
+ let localVarRequestOptions = {
5851
+ method: 'POST',
5852
+ qs: localVarQueryParameters,
5853
+ headers: localVarHeaderParams,
5854
+ uri: localVarPath,
5855
+ useQuerystring: this._useQuerystring,
5856
+ json: true,
5857
+ body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
5858
+ };
5859
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
5860
+ this.authentications.default.applyToRequest(localVarRequestOptions);
5861
+ if (Object.keys(localVarFormParams).length) {
5862
+ if (localVarUseFormData) {
5863
+ localVarRequestOptions.formData = localVarFormParams;
5864
+ }
5865
+ else {
5866
+ localVarRequestOptions.form = localVarFormParams;
5867
+ }
5440
5868
  }
5441
- if (keepEmptyHtmlText !== undefined) {
5442
- localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
5869
+ return new Promise((resolve, reject) => {
5870
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
5871
+ if (error) {
5872
+ reject(error);
5873
+ }
5874
+ else {
5875
+ body = ObjectSerializer.deserialize(body, "ProjectDto");
5876
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5877
+ resolve({ response: response, body: body });
5878
+ }
5879
+ else {
5880
+ reject({ response: response, body: body });
5881
+ }
5882
+ }
5883
+ });
5884
+ });
5885
+ }
5886
+ /**
5887
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5888
+ */
5889
+ flatAvaConversionConvertToDatanormWithRequestObject(flatAvaProject, options) {
5890
+ return this.flatAvaConversionConvertToDatanorm(flatAvaProject, options === null || options === void 0 ? void 0 : options.tryAutoGenerateItemNumbersAndSchema, options === null || options === void 0 ? void 0 : options.datanormDestinationVersion, (options === null || options === void 0 ? void 0 : options.options) || {});
5891
+ }
5892
+ /**
5893
+ *
5894
+ * @summary Converts flat Dangl.AVA projects to Datanorm
5895
+ * @param flatAvaProject The flat Dangl.AVA project
5896
+ * @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.
5897
+ * @param datanormDestinationVersion The Datanorm version to convert to. Defaults to V4.
5898
+ * @param {*} [options] Override http request options.
5899
+ */
5900
+ flatAvaConversionConvertToDatanorm(flatAvaProject, tryAutoGenerateItemNumbersAndSchema, datanormDestinationVersion, options = {}) {
5901
+ const localVarPath = this.basePath + '/conversion/flat-ava/datanorm';
5902
+ let localVarQueryParameters = {};
5903
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
5904
+ let localVarFormParams = {};
5905
+ // verify required parameter 'flatAvaProject' is not null or undefined
5906
+ if (flatAvaProject === null || flatAvaProject === undefined) {
5907
+ throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToDatanorm.');
5443
5908
  }
5444
- if (allowUpperCaseItemNumbers !== undefined) {
5445
- localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
5909
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
5910
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
5446
5911
  }
5447
- if (allowLumpSumItemsWithDifferingQuantities !== undefined) {
5448
- localVarQueryParameters['AllowLumpSumItemsWithDifferingQuantities'] = ObjectSerializer.serialize(allowLumpSumItemsWithDifferingQuantities, "boolean");
5912
+ if (datanormDestinationVersion !== undefined) {
5913
+ localVarQueryParameters['DatanormDestinationVersion'] = ObjectSerializer.serialize(datanormDestinationVersion, "'V4' | 'V5'");
5449
5914
  }
5450
5915
  Object.assign(localVarHeaderParams, options.headers);
5451
5916
  let localVarUseFormData = false;
5452
- if (gaebFile !== undefined) {
5453
- localVarFormParams['gaebFile'] = gaebFile;
5454
- }
5455
- localVarUseFormData = true;
5456
5917
  let localVarRequestOptions = {
5457
5918
  method: 'POST',
5458
5919
  qs: localVarQueryParameters,
5459
5920
  headers: localVarHeaderParams,
5460
5921
  uri: localVarPath,
5461
5922
  useQuerystring: this._useQuerystring,
5462
- json: true,
5923
+ encoding: null,
5924
+ body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
5463
5925
  };
5464
5926
  this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
5465
5927
  this.authentications.default.applyToRequest(localVarRequestOptions);
@@ -5477,7 +5939,7 @@ class GaebConversionApi {
5477
5939
  reject(error);
5478
5940
  }
5479
5941
  else {
5480
- body = ObjectSerializer.deserialize(body, "ProjectDto");
5942
+ body = ObjectSerializer.deserialize(body, "Buffer");
5481
5943
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5482
5944
  resolve({ response: response, body: body });
5483
5945
  }
@@ -5491,31 +5953,31 @@ class GaebConversionApi {
5491
5953
  /**
5492
5954
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5493
5955
  */
5494
- gaebConversionConvertToExcelWithRequestObject(gaebFile, options) {
5495
- return this.gaebConversionConvertToExcel(gaebFile, options === null || options === void 0 ? void 0 : options.supportSkippedItemNumberLevelsInPositions, options === null || options === void 0 ? void 0 : options.writePrices, options === null || options === void 0 ? void 0 : options.writeLongTexts, options === null || options === void 0 ? void 0 : options.conversionCulture, options === null || options === void 0 ? void 0 : options.includeArticleNumbers, options === null || options === void 0 ? void 0 : options.outputHtmlAsXml, options === null || options === void 0 ? void 0 : options.keepEmptyHtmlText, options === null || options === void 0 ? void 0 : options.allowUpperCaseItemNumbers, options === null || options === void 0 ? void 0 : options.allowLumpSumItemsWithDifferingQuantities, (options === null || options === void 0 ? void 0 : options.options) || {});
5956
+ flatAvaConversionConvertToExcelWithRequestObject(flatAvaProject, options) {
5957
+ return this.flatAvaConversionConvertToExcel(flatAvaProject, options === null || options === void 0 ? void 0 : options.tryAutoGenerateItemNumbersAndSchema, options === null || options === void 0 ? void 0 : options.writePrices, options === null || options === void 0 ? void 0 : options.writeLongTexts, options === null || options === void 0 ? void 0 : options.conversionCulture, options === null || options === void 0 ? void 0 : options.includeArticleNumbers, (options === null || options === void 0 ? void 0 : options.options) || {});
5496
5958
  }
5497
5959
  /**
5498
5960
  *
5499
- * @summary Converts GAEB files to Excel
5500
- * @param gaebFile The input file
5501
- * @param supportSkippedItemNumberLevelsInPositions Defaults to &#39;false&#39;. 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 &#39;01.02&#39;, then it will be displayed as &#39;01.__.02&#39; if this is set to true.
5961
+ * @summary Converts flat Dangl.AVA projects to Excel
5962
+ * @param flatAvaProject The flat Dangl.AVA project
5963
+ * @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.
5502
5964
  * @param writePrices Defaults to true
5503
5965
  * @param writeLongTexts Defaults to true
5504
5966
  * @param conversionCulture The culture that should be used for the conversion process, to have localized Excel files
5505
5967
  * @param includeArticleNumbers If this is enabled, then a new column will be created in the overview worksheet that contains the article numbers for positions. Article numbers will be read from &#39;position.commerceProperties.articleNumber&#39;
5506
- * @param outputHtmlAsXml Defaults to &#39;false&#39;. 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 &#39;&lt;br /&gt;&#39; instead of &#39;&lt;br&gt;&#39;.
5507
- * @param keepEmptyHtmlText Defaults to &#39;false&#39;. 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.
5508
- * @param allowUpperCaseItemNumbers Defaults to &#39;false&#39;. 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.
5509
- * @param allowLumpSumItemsWithDifferingQuantities Defaults to &#39;false&#39;. By default, the GAEB standard requires lump sum items (&#39;Pauschalpositionen&#39; in German) to have a quantity of exactly 1. AVACloud does enforce this convention, but if you set this property to &#39;true&#39;, then differing quantities will be kept during the import.
5510
5968
  * @param {*} [options] Override http request options.
5511
5969
  */
5512
- gaebConversionConvertToExcel(gaebFile, supportSkippedItemNumberLevelsInPositions, writePrices, writeLongTexts, conversionCulture, includeArticleNumbers, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, allowLumpSumItemsWithDifferingQuantities, options = {}) {
5513
- const localVarPath = this.basePath + '/conversion/gaeb/excel';
5970
+ flatAvaConversionConvertToExcel(flatAvaProject, tryAutoGenerateItemNumbersAndSchema, writePrices, writeLongTexts, conversionCulture, includeArticleNumbers, options = {}) {
5971
+ const localVarPath = this.basePath + '/conversion/flat-ava/excel';
5514
5972
  let localVarQueryParameters = {};
5515
5973
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
5516
5974
  let localVarFormParams = {};
5517
- if (supportSkippedItemNumberLevelsInPositions !== undefined) {
5518
- localVarQueryParameters['SupportSkippedItemNumberLevelsInPositions'] = ObjectSerializer.serialize(supportSkippedItemNumberLevelsInPositions, "boolean");
5975
+ // verify required parameter 'flatAvaProject' is not null or undefined
5976
+ if (flatAvaProject === null || flatAvaProject === undefined) {
5977
+ throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToExcel.');
5978
+ }
5979
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
5980
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
5519
5981
  }
5520
5982
  if (writePrices !== undefined) {
5521
5983
  localVarQueryParameters['WritePrices'] = ObjectSerializer.serialize(writePrices, "boolean");
@@ -5529,6 +5991,793 @@ class GaebConversionApi {
5529
5991
  if (includeArticleNumbers !== undefined) {
5530
5992
  localVarQueryParameters['IncludeArticleNumbers'] = ObjectSerializer.serialize(includeArticleNumbers, "boolean");
5531
5993
  }
5994
+ Object.assign(localVarHeaderParams, options.headers);
5995
+ let localVarUseFormData = false;
5996
+ let localVarRequestOptions = {
5997
+ method: 'POST',
5998
+ qs: localVarQueryParameters,
5999
+ headers: localVarHeaderParams,
6000
+ uri: localVarPath,
6001
+ useQuerystring: this._useQuerystring,
6002
+ encoding: null,
6003
+ body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
6004
+ };
6005
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
6006
+ this.authentications.default.applyToRequest(localVarRequestOptions);
6007
+ if (Object.keys(localVarFormParams).length) {
6008
+ if (localVarUseFormData) {
6009
+ localVarRequestOptions.formData = localVarFormParams;
6010
+ }
6011
+ else {
6012
+ localVarRequestOptions.form = localVarFormParams;
6013
+ }
6014
+ }
6015
+ return new Promise((resolve, reject) => {
6016
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
6017
+ if (error) {
6018
+ reject(error);
6019
+ }
6020
+ else {
6021
+ body = ObjectSerializer.deserialize(body, "Buffer");
6022
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6023
+ resolve({ response: response, body: body });
6024
+ }
6025
+ else {
6026
+ reject({ response: response, body: body });
6027
+ }
6028
+ }
6029
+ });
6030
+ });
6031
+ }
6032
+ /**
6033
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6034
+ */
6035
+ flatAvaConversionConvertToFlatAvaWithRequestObject(flatAvaProject, options) {
6036
+ return this.flatAvaConversionConvertToFlatAva(flatAvaProject, options === null || options === void 0 ? void 0 : options.tryAutoGenerateItemNumbersAndSchema, (options === null || options === void 0 ? void 0 : options.options) || {});
6037
+ }
6038
+ /**
6039
+ *
6040
+ * @summary Converts flat Dangl.AVA projects to Dangl.AVA. This is useful when you want to generate the calculated properties.
6041
+ * @param flatAvaProject The flat Dangl.AVA project
6042
+ * @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.
6043
+ * @param {*} [options] Override http request options.
6044
+ */
6045
+ flatAvaConversionConvertToFlatAva(flatAvaProject, tryAutoGenerateItemNumbersAndSchema, options = {}) {
6046
+ const localVarPath = this.basePath + '/conversion/flat-ava/flat-ava';
6047
+ let localVarQueryParameters = {};
6048
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
6049
+ let localVarFormParams = {};
6050
+ // verify required parameter 'flatAvaProject' is not null or undefined
6051
+ if (flatAvaProject === null || flatAvaProject === undefined) {
6052
+ throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToFlatAva.');
6053
+ }
6054
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
6055
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
6056
+ }
6057
+ Object.assign(localVarHeaderParams, options.headers);
6058
+ let localVarUseFormData = false;
6059
+ let localVarRequestOptions = {
6060
+ method: 'POST',
6061
+ qs: localVarQueryParameters,
6062
+ headers: localVarHeaderParams,
6063
+ uri: localVarPath,
6064
+ useQuerystring: this._useQuerystring,
6065
+ json: true,
6066
+ body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
6067
+ };
6068
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
6069
+ this.authentications.default.applyToRequest(localVarRequestOptions);
6070
+ if (Object.keys(localVarFormParams).length) {
6071
+ if (localVarUseFormData) {
6072
+ localVarRequestOptions.formData = localVarFormParams;
6073
+ }
6074
+ else {
6075
+ localVarRequestOptions.form = localVarFormParams;
6076
+ }
6077
+ }
6078
+ return new Promise((resolve, reject) => {
6079
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
6080
+ if (error) {
6081
+ reject(error);
6082
+ }
6083
+ else {
6084
+ body = ObjectSerializer.deserialize(body, "FlatAvaProject");
6085
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6086
+ resolve({ response: response, body: body });
6087
+ }
6088
+ else {
6089
+ reject({ response: response, body: body });
6090
+ }
6091
+ }
6092
+ });
6093
+ });
6094
+ }
6095
+ /**
6096
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6097
+ */
6098
+ flatAvaConversionConvertToGaebWithRequestObject(flatAvaProject, options) {
6099
+ return this.flatAvaConversionConvertToGaeb(flatAvaProject, options === null || options === void 0 ? void 0 : options.tryAutoGenerateItemNumbersAndSchema, options === null || options === void 0 ? void 0 : options.destinationGaebType, options === null || options === void 0 ? void 0 : options.targetExchangePhaseTransform, options === null || options === void 0 ? void 0 : options.enforceStrictOfferPhaseLongTextOutput, options === null || options === void 0 ? void 0 : options.exportQuantityDetermination, options === null || options === void 0 ? void 0 : options.removeUnprintableCharactersFromTexts, options === null || options === void 0 ? void 0 : options.forceIncludeDescriptions, options === null || options === void 0 ? void 0 : options.treatNullItemNumberSchemaAsInvalid, (options === null || options === void 0 ? void 0 : options.options) || {});
6100
+ }
6101
+ /**
6102
+ *
6103
+ * @summary Converts flat Dangl.AVA projects to GAEB
6104
+ * @param flatAvaProject The flat Dangl.AVA project
6105
+ * @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.
6106
+ * @param destinationGaebType Defaults to GAEB XML V3.2
6107
+ * @param targetExchangePhaseTransform Defaults to none, meaning no transformation will be done. The phases are: Base &#x3D; 81 CostEstimate &#x3D; 82 OfferRequest &#x3D; 83 Offer &#x3D; 84 SideOffer &#x3D; 85 Grant &#x3D; 86
6108
+ * @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.
6109
+ * @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.
6110
+ * @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.
6111
+ * @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.
6112
+ * @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.
6113
+ * @param {*} [options] Override http request options.
6114
+ */
6115
+ flatAvaConversionConvertToGaeb(flatAvaProject, tryAutoGenerateItemNumbersAndSchema, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, treatNullItemNumberSchemaAsInvalid, options = {}) {
6116
+ const localVarPath = this.basePath + '/conversion/flat-ava/gaeb';
6117
+ let localVarQueryParameters = {};
6118
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
6119
+ let localVarFormParams = {};
6120
+ // verify required parameter 'flatAvaProject' is not null or undefined
6121
+ if (flatAvaProject === null || flatAvaProject === undefined) {
6122
+ throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToGaeb.');
6123
+ }
6124
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
6125
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
6126
+ }
6127
+ if (destinationGaebType !== undefined) {
6128
+ localVarQueryParameters['DestinationGaebType'] = ObjectSerializer.serialize(destinationGaebType, "'Gaeb90' | 'Gaeb2000' | 'Gaeb2000Commerce' | 'GaebXml_V3_1' | 'GaebXml_V3_2' | 'GaebXml_V3_2_Commerce' | 'GaebXml_V3_3' | 'GaebXml_V3_3_Commerce' | 'GaebXml_V3_3_2019' | 'GaebXml_V3_3_2019_Commerce'");
6129
+ }
6130
+ if (targetExchangePhaseTransform !== undefined) {
6131
+ localVarQueryParameters['TargetExchangePhaseTransform'] = ObjectSerializer.serialize(targetExchangePhaseTransform, "'None' | 'Base' | 'OfferRequest' | 'Offer' | 'Grant' | 'CostEstimate' | 'SideOffer'");
6132
+ }
6133
+ if (enforceStrictOfferPhaseLongTextOutput !== undefined) {
6134
+ localVarQueryParameters['EnforceStrictOfferPhaseLongTextOutput'] = ObjectSerializer.serialize(enforceStrictOfferPhaseLongTextOutput, "boolean");
6135
+ }
6136
+ if (exportQuantityDetermination !== undefined) {
6137
+ localVarQueryParameters['ExportQuantityDetermination'] = ObjectSerializer.serialize(exportQuantityDetermination, "boolean");
6138
+ }
6139
+ if (removeUnprintableCharactersFromTexts !== undefined) {
6140
+ localVarQueryParameters['RemoveUnprintableCharactersFromTexts'] = ObjectSerializer.serialize(removeUnprintableCharactersFromTexts, "boolean");
6141
+ }
6142
+ if (forceIncludeDescriptions !== undefined) {
6143
+ localVarQueryParameters['ForceIncludeDescriptions'] = ObjectSerializer.serialize(forceIncludeDescriptions, "boolean");
6144
+ }
6145
+ if (treatNullItemNumberSchemaAsInvalid !== undefined) {
6146
+ localVarQueryParameters['TreatNullItemNumberSchemaAsInvalid'] = ObjectSerializer.serialize(treatNullItemNumberSchemaAsInvalid, "boolean");
6147
+ }
6148
+ Object.assign(localVarHeaderParams, options.headers);
6149
+ let localVarUseFormData = false;
6150
+ let localVarRequestOptions = {
6151
+ method: 'POST',
6152
+ qs: localVarQueryParameters,
6153
+ headers: localVarHeaderParams,
6154
+ uri: localVarPath,
6155
+ useQuerystring: this._useQuerystring,
6156
+ encoding: null,
6157
+ body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
6158
+ };
6159
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
6160
+ this.authentications.default.applyToRequest(localVarRequestOptions);
6161
+ if (Object.keys(localVarFormParams).length) {
6162
+ if (localVarUseFormData) {
6163
+ localVarRequestOptions.formData = localVarFormParams;
6164
+ }
6165
+ else {
6166
+ localVarRequestOptions.form = localVarFormParams;
6167
+ }
6168
+ }
6169
+ return new Promise((resolve, reject) => {
6170
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
6171
+ if (error) {
6172
+ reject(error);
6173
+ }
6174
+ else {
6175
+ body = ObjectSerializer.deserialize(body, "Buffer");
6176
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6177
+ resolve({ response: response, body: body });
6178
+ }
6179
+ else {
6180
+ reject({ response: response, body: body });
6181
+ }
6182
+ }
6183
+ });
6184
+ });
6185
+ }
6186
+ /**
6187
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6188
+ */
6189
+ flatAvaConversionConvertToIdsConnectWithRequestObject(flatAvaProject, options) {
6190
+ return this.flatAvaConversionConvertToIdsConnect(flatAvaProject, options === null || options === void 0 ? void 0 : options.tryAutoGenerateItemNumbersAndSchema, options === null || options === void 0 ? void 0 : options.version, (options === null || options === void 0 ? void 0 : options.options) || {});
6191
+ }
6192
+ /**
6193
+ *
6194
+ * @summary Converts flat Dangl.AVA projects to IDS Connect files
6195
+ * @param flatAvaProject The flat Dangl.AVA project
6196
+ * @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.
6197
+ * @param version The IDS Connect version to convert to. Defaults to V2_5.
6198
+ * @param {*} [options] Override http request options.
6199
+ */
6200
+ flatAvaConversionConvertToIdsConnect(flatAvaProject, tryAutoGenerateItemNumbersAndSchema, version, options = {}) {
6201
+ const localVarPath = this.basePath + '/conversion/flat-ava/ids-connect';
6202
+ let localVarQueryParameters = {};
6203
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
6204
+ let localVarFormParams = {};
6205
+ // verify required parameter 'flatAvaProject' is not null or undefined
6206
+ if (flatAvaProject === null || flatAvaProject === undefined) {
6207
+ throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToIdsConnect.');
6208
+ }
6209
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
6210
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
6211
+ }
6212
+ if (version !== undefined) {
6213
+ localVarQueryParameters['Version'] = ObjectSerializer.serialize(version, "'V2_5'");
6214
+ }
6215
+ Object.assign(localVarHeaderParams, options.headers);
6216
+ let localVarUseFormData = false;
6217
+ let localVarRequestOptions = {
6218
+ method: 'POST',
6219
+ qs: localVarQueryParameters,
6220
+ headers: localVarHeaderParams,
6221
+ uri: localVarPath,
6222
+ useQuerystring: this._useQuerystring,
6223
+ encoding: null,
6224
+ body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
6225
+ };
6226
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
6227
+ this.authentications.default.applyToRequest(localVarRequestOptions);
6228
+ if (Object.keys(localVarFormParams).length) {
6229
+ if (localVarUseFormData) {
6230
+ localVarRequestOptions.formData = localVarFormParams;
6231
+ }
6232
+ else {
6233
+ localVarRequestOptions.form = localVarFormParams;
6234
+ }
6235
+ }
6236
+ return new Promise((resolve, reject) => {
6237
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
6238
+ if (error) {
6239
+ reject(error);
6240
+ }
6241
+ else {
6242
+ body = ObjectSerializer.deserialize(body, "Buffer");
6243
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6244
+ resolve({ response: response, body: body });
6245
+ }
6246
+ else {
6247
+ reject({ response: response, body: body });
6248
+ }
6249
+ }
6250
+ });
6251
+ });
6252
+ }
6253
+ /**
6254
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6255
+ */
6256
+ flatAvaConversionConvertToOenormWithRequestObject(flatAvaProject, options) {
6257
+ return this.flatAvaConversionConvertToOenorm(flatAvaProject, options === null || options === void 0 ? void 0 : options.tryAutoGenerateItemNumbersAndSchema, options === null || options === void 0 ? void 0 : options.destinationOenormType, options === null || options === void 0 ? void 0 : options.tryRepairProjectStructure, options === null || options === void 0 ? void 0 : options.skipTryEnforceSchemaCompliantXmlOutput, options === null || options === void 0 ? void 0 : options.removeUnprintableCharactersFromTexts, (options === null || options === void 0 ? void 0 : options.options) || {});
6258
+ }
6259
+ /**
6260
+ *
6261
+ * @summary Converts flat Dangl.AVA projects to Oenorm
6262
+ * @param flatAvaProject The flat Dangl.AVA project
6263
+ * @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.
6264
+ * @param destinationOenormType Defaults to Lv2015
6265
+ * @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
6266
+ * @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.
6267
+ * @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.
6268
+ * @param {*} [options] Override http request options.
6269
+ */
6270
+ flatAvaConversionConvertToOenorm(flatAvaProject, tryAutoGenerateItemNumbersAndSchema, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, options = {}) {
6271
+ const localVarPath = this.basePath + '/conversion/flat-ava/oenorm';
6272
+ let localVarQueryParameters = {};
6273
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
6274
+ let localVarFormParams = {};
6275
+ // verify required parameter 'flatAvaProject' is not null or undefined
6276
+ if (flatAvaProject === null || flatAvaProject === undefined) {
6277
+ throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToOenorm.');
6278
+ }
6279
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
6280
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
6281
+ }
6282
+ if (destinationOenormType !== undefined) {
6283
+ localVarQueryParameters['DestinationOenormType'] = ObjectSerializer.serialize(destinationOenormType, "'Lv2015' | 'Lb2015' | 'B2063' | 'Lv2009' | 'Lb2009' | 'Lv2021' | 'Lb2021'");
6284
+ }
6285
+ if (tryRepairProjectStructure !== undefined) {
6286
+ localVarQueryParameters['TryRepairProjectStructure'] = ObjectSerializer.serialize(tryRepairProjectStructure, "boolean");
6287
+ }
6288
+ if (skipTryEnforceSchemaCompliantXmlOutput !== undefined) {
6289
+ localVarQueryParameters['SkipTryEnforceSchemaCompliantXmlOutput'] = ObjectSerializer.serialize(skipTryEnforceSchemaCompliantXmlOutput, "boolean");
6290
+ }
6291
+ if (removeUnprintableCharactersFromTexts !== undefined) {
6292
+ localVarQueryParameters['RemoveUnprintableCharactersFromTexts'] = ObjectSerializer.serialize(removeUnprintableCharactersFromTexts, "boolean");
6293
+ }
6294
+ Object.assign(localVarHeaderParams, options.headers);
6295
+ let localVarUseFormData = false;
6296
+ let localVarRequestOptions = {
6297
+ method: 'POST',
6298
+ qs: localVarQueryParameters,
6299
+ headers: localVarHeaderParams,
6300
+ uri: localVarPath,
6301
+ useQuerystring: this._useQuerystring,
6302
+ encoding: null,
6303
+ body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
6304
+ };
6305
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
6306
+ this.authentications.default.applyToRequest(localVarRequestOptions);
6307
+ if (Object.keys(localVarFormParams).length) {
6308
+ if (localVarUseFormData) {
6309
+ localVarRequestOptions.formData = localVarFormParams;
6310
+ }
6311
+ else {
6312
+ localVarRequestOptions.form = localVarFormParams;
6313
+ }
6314
+ }
6315
+ return new Promise((resolve, reject) => {
6316
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
6317
+ if (error) {
6318
+ reject(error);
6319
+ }
6320
+ else {
6321
+ body = ObjectSerializer.deserialize(body, "Buffer");
6322
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6323
+ resolve({ response: response, body: body });
6324
+ }
6325
+ else {
6326
+ reject({ response: response, body: body });
6327
+ }
6328
+ }
6329
+ });
6330
+ });
6331
+ }
6332
+ /**
6333
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6334
+ */
6335
+ flatAvaConversionConvertToRebWithRequestObject(flatAvaProject, options) {
6336
+ return this.flatAvaConversionConvertToReb(flatAvaProject, options === null || options === void 0 ? void 0 : options.tryAutoGenerateItemNumbersAndSchema, options === null || options === void 0 ? void 0 : options.destinationRebType, (options === null || options === void 0 ? void 0 : options.options) || {});
6337
+ }
6338
+ /**
6339
+ *
6340
+ * @summary Converts flat Dangl.AVA projects to REB
6341
+ * @param flatAvaProject The flat Dangl.AVA project
6342
+ * @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.
6343
+ * @param destinationRebType Defaults to D11
6344
+ * @param {*} [options] Override http request options.
6345
+ */
6346
+ flatAvaConversionConvertToReb(flatAvaProject, tryAutoGenerateItemNumbersAndSchema, destinationRebType, options = {}) {
6347
+ const localVarPath = this.basePath + '/conversion/flat-ava/reb';
6348
+ let localVarQueryParameters = {};
6349
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
6350
+ let localVarFormParams = {};
6351
+ // verify required parameter 'flatAvaProject' is not null or undefined
6352
+ if (flatAvaProject === null || flatAvaProject === undefined) {
6353
+ throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToReb.');
6354
+ }
6355
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
6356
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
6357
+ }
6358
+ if (destinationRebType !== undefined) {
6359
+ localVarQueryParameters['DestinationRebType'] = ObjectSerializer.serialize(destinationRebType, "'D11' | 'X31GaebXmlV32' | 'X31GaebXmlV33'");
6360
+ }
6361
+ Object.assign(localVarHeaderParams, options.headers);
6362
+ let localVarUseFormData = false;
6363
+ let localVarRequestOptions = {
6364
+ method: 'POST',
6365
+ qs: localVarQueryParameters,
6366
+ headers: localVarHeaderParams,
6367
+ uri: localVarPath,
6368
+ useQuerystring: this._useQuerystring,
6369
+ encoding: null,
6370
+ body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
6371
+ };
6372
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
6373
+ this.authentications.default.applyToRequest(localVarRequestOptions);
6374
+ if (Object.keys(localVarFormParams).length) {
6375
+ if (localVarUseFormData) {
6376
+ localVarRequestOptions.formData = localVarFormParams;
6377
+ }
6378
+ else {
6379
+ localVarRequestOptions.form = localVarFormParams;
6380
+ }
6381
+ }
6382
+ return new Promise((resolve, reject) => {
6383
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
6384
+ if (error) {
6385
+ reject(error);
6386
+ }
6387
+ else {
6388
+ body = ObjectSerializer.deserialize(body, "Buffer");
6389
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6390
+ resolve({ response: response, body: body });
6391
+ }
6392
+ else {
6393
+ reject({ response: response, body: body });
6394
+ }
6395
+ }
6396
+ });
6397
+ });
6398
+ }
6399
+ /**
6400
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6401
+ */
6402
+ flatAvaConversionConvertToSiaWithRequestObject(flatAvaProject, options) {
6403
+ return this.flatAvaConversionConvertToSia(flatAvaProject, options === null || options === void 0 ? void 0 : options.tryAutoGenerateItemNumbersAndSchema, options === null || options === void 0 ? void 0 : options.siaDestinationType, (options === null || options === void 0 ? void 0 : options.options) || {});
6404
+ }
6405
+ /**
6406
+ *
6407
+ * @summary Converts flat Dangl.AVA projects to SIA 451
6408
+ * @param flatAvaProject The flat Dangl.AVA project
6409
+ * @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.
6410
+ * @param siaDestinationType Defaults to Sia451
6411
+ * @param {*} [options] Override http request options.
6412
+ */
6413
+ flatAvaConversionConvertToSia(flatAvaProject, tryAutoGenerateItemNumbersAndSchema, siaDestinationType, options = {}) {
6414
+ const localVarPath = this.basePath + '/conversion/flat-ava/sia';
6415
+ let localVarQueryParameters = {};
6416
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
6417
+ let localVarFormParams = {};
6418
+ // verify required parameter 'flatAvaProject' is not null or undefined
6419
+ if (flatAvaProject === null || flatAvaProject === undefined) {
6420
+ throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToSia.');
6421
+ }
6422
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
6423
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
6424
+ }
6425
+ if (siaDestinationType !== undefined) {
6426
+ localVarQueryParameters['SiaDestinationType'] = ObjectSerializer.serialize(siaDestinationType, "'Sia451' | 'Ifa18'");
6427
+ }
6428
+ Object.assign(localVarHeaderParams, options.headers);
6429
+ let localVarUseFormData = false;
6430
+ let localVarRequestOptions = {
6431
+ method: 'POST',
6432
+ qs: localVarQueryParameters,
6433
+ headers: localVarHeaderParams,
6434
+ uri: localVarPath,
6435
+ useQuerystring: this._useQuerystring,
6436
+ encoding: null,
6437
+ body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
6438
+ };
6439
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
6440
+ this.authentications.default.applyToRequest(localVarRequestOptions);
6441
+ if (Object.keys(localVarFormParams).length) {
6442
+ if (localVarUseFormData) {
6443
+ localVarRequestOptions.formData = localVarFormParams;
6444
+ }
6445
+ else {
6446
+ localVarRequestOptions.form = localVarFormParams;
6447
+ }
6448
+ }
6449
+ return new Promise((resolve, reject) => {
6450
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
6451
+ if (error) {
6452
+ reject(error);
6453
+ }
6454
+ else {
6455
+ body = ObjectSerializer.deserialize(body, "Buffer");
6456
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6457
+ resolve({ response: response, body: body });
6458
+ }
6459
+ else {
6460
+ reject({ response: response, body: body });
6461
+ }
6462
+ }
6463
+ });
6464
+ });
6465
+ }
6466
+ /**
6467
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6468
+ */
6469
+ flatAvaConversionConvertToUglWithRequestObject(flatAvaProject, options) {
6470
+ return this.flatAvaConversionConvertToUgl(flatAvaProject, options === null || options === void 0 ? void 0 : options.tryAutoGenerateItemNumbersAndSchema, options === null || options === void 0 ? void 0 : options.uglDestinationVersion, (options === null || options === void 0 ? void 0 : options.options) || {});
6471
+ }
6472
+ /**
6473
+ *
6474
+ * @summary Converts flat Dangl.AVA projects to UGL
6475
+ * @param flatAvaProject The flat Dangl.AVA project
6476
+ * @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.
6477
+ * @param uglDestinationVersion The UGL version to convert to. Defaults to V1.
6478
+ * @param {*} [options] Override http request options.
6479
+ */
6480
+ flatAvaConversionConvertToUgl(flatAvaProject, tryAutoGenerateItemNumbersAndSchema, uglDestinationVersion, options = {}) {
6481
+ const localVarPath = this.basePath + '/conversion/flat-ava/ugl';
6482
+ let localVarQueryParameters = {};
6483
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
6484
+ let localVarFormParams = {};
6485
+ // verify required parameter 'flatAvaProject' is not null or undefined
6486
+ if (flatAvaProject === null || flatAvaProject === undefined) {
6487
+ throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToUgl.');
6488
+ }
6489
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
6490
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
6491
+ }
6492
+ if (uglDestinationVersion !== undefined) {
6493
+ localVarQueryParameters['UglDestinationVersion'] = ObjectSerializer.serialize(uglDestinationVersion, "'V4' | 'V5'");
6494
+ }
6495
+ Object.assign(localVarHeaderParams, options.headers);
6496
+ let localVarUseFormData = false;
6497
+ let localVarRequestOptions = {
6498
+ method: 'POST',
6499
+ qs: localVarQueryParameters,
6500
+ headers: localVarHeaderParams,
6501
+ uri: localVarPath,
6502
+ useQuerystring: this._useQuerystring,
6503
+ encoding: null,
6504
+ body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
6505
+ };
6506
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
6507
+ this.authentications.default.applyToRequest(localVarRequestOptions);
6508
+ if (Object.keys(localVarFormParams).length) {
6509
+ if (localVarUseFormData) {
6510
+ localVarRequestOptions.formData = localVarFormParams;
6511
+ }
6512
+ else {
6513
+ localVarRequestOptions.form = localVarFormParams;
6514
+ }
6515
+ }
6516
+ return new Promise((resolve, reject) => {
6517
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
6518
+ if (error) {
6519
+ reject(error);
6520
+ }
6521
+ else {
6522
+ body = ObjectSerializer.deserialize(body, "Buffer");
6523
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6524
+ resolve({ response: response, body: body });
6525
+ }
6526
+ else {
6527
+ reject({ response: response, body: body });
6528
+ }
6529
+ }
6530
+ });
6531
+ });
6532
+ }
6533
+ }
6534
+ exports.FlatAvaConversionApi = FlatAvaConversionApi;
6535
+ var GaebConversionApiApiKeys;
6536
+ (function (GaebConversionApiApiKeys) {
6537
+ })(GaebConversionApiApiKeys = exports.GaebConversionApiApiKeys || (exports.GaebConversionApiApiKeys = {}));
6538
+ class GaebConversionApi {
6539
+ constructor(basePathOrUsername, password, basePath) {
6540
+ this._basePath = defaultBasePath;
6541
+ this.defaultHeaders = {};
6542
+ this._useQuerystring = false;
6543
+ this.authentications = {
6544
+ 'default': new VoidAuth(),
6545
+ 'Dangl.Identity': new OAuth(),
6546
+ };
6547
+ if (password) {
6548
+ if (basePath) {
6549
+ this.basePath = basePath;
6550
+ }
6551
+ }
6552
+ else {
6553
+ if (basePathOrUsername) {
6554
+ this.basePath = basePathOrUsername;
6555
+ }
6556
+ }
6557
+ }
6558
+ set useQuerystring(value) {
6559
+ this._useQuerystring = value;
6560
+ }
6561
+ set basePath(basePath) {
6562
+ this._basePath = basePath;
6563
+ }
6564
+ get basePath() {
6565
+ return this._basePath;
6566
+ }
6567
+ setDefaultAuthentication(auth) {
6568
+ this.authentications.default = auth;
6569
+ }
6570
+ setApiKey(key, value) {
6571
+ this.authentications[GaebConversionApiApiKeys[key]].apiKey = value;
6572
+ }
6573
+ set accessToken(token) {
6574
+ this.authentications['Dangl.Identity'].accessToken = token;
6575
+ }
6576
+ /**
6577
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6578
+ */
6579
+ gaebConversionConvertToAvaWithRequestObject(gaebFile, options) {
6580
+ return this.gaebConversionConvertToAva(gaebFile, options === null || options === void 0 ? void 0 : options.supportSkippedItemNumberLevelsInPositions, options === null || options === void 0 ? void 0 : options.removePlainTextLongTexts, options === null || options === void 0 ? void 0 : options.removeHtmlLongTexts, options === null || options === void 0 ? void 0 : options.outputHtmlAsXml, options === null || options === void 0 ? void 0 : options.keepEmptyHtmlText, options === null || options === void 0 ? void 0 : options.allowUpperCaseItemNumbers, options === null || options === void 0 ? void 0 : options.allowLumpSumItemsWithDifferingQuantities, (options === null || options === void 0 ? void 0 : options.options) || {});
6581
+ }
6582
+ /**
6583
+ *
6584
+ * @summary Converts GAEB files to Dangl.AVA projects
6585
+ * @param gaebFile The input file
6586
+ * @param supportSkippedItemNumberLevelsInPositions Defaults to &#39;false&#39;. 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 &#39;01.02&#39;, then it will be displayed as &#39;01.__.02&#39; if this is set to true.
6587
+ * @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
6588
+ * @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
6589
+ * @param outputHtmlAsXml Defaults to &#39;false&#39;. 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 &#39;&lt;br /&gt;&#39; instead of &#39;&lt;br&gt;&#39;.
6590
+ * @param keepEmptyHtmlText Defaults to &#39;false&#39;. 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.
6591
+ * @param allowUpperCaseItemNumbers Defaults to &#39;false&#39;. 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.
6592
+ * @param allowLumpSumItemsWithDifferingQuantities Defaults to &#39;false&#39;. By default, the GAEB standard requires lump sum items (&#39;Pauschalpositionen&#39; in German) to have a quantity of exactly 1. AVACloud does enforce this convention, but if you set this property to &#39;true&#39;, then differing quantities will be kept during the import.
6593
+ * @param {*} [options] Override http request options.
6594
+ */
6595
+ gaebConversionConvertToAva(gaebFile, supportSkippedItemNumberLevelsInPositions, removePlainTextLongTexts, removeHtmlLongTexts, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, allowLumpSumItemsWithDifferingQuantities, options = {}) {
6596
+ const localVarPath = this.basePath + '/conversion/gaeb/ava';
6597
+ let localVarQueryParameters = {};
6598
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
6599
+ let localVarFormParams = {};
6600
+ if (supportSkippedItemNumberLevelsInPositions !== undefined) {
6601
+ localVarQueryParameters['SupportSkippedItemNumberLevelsInPositions'] = ObjectSerializer.serialize(supportSkippedItemNumberLevelsInPositions, "boolean");
6602
+ }
6603
+ if (removePlainTextLongTexts !== undefined) {
6604
+ localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
6605
+ }
6606
+ if (removeHtmlLongTexts !== undefined) {
6607
+ localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
6608
+ }
6609
+ if (outputHtmlAsXml !== undefined) {
6610
+ localVarQueryParameters['OutputHtmlAsXml'] = ObjectSerializer.serialize(outputHtmlAsXml, "boolean");
6611
+ }
6612
+ if (keepEmptyHtmlText !== undefined) {
6613
+ localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
6614
+ }
6615
+ if (allowUpperCaseItemNumbers !== undefined) {
6616
+ localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
6617
+ }
6618
+ if (allowLumpSumItemsWithDifferingQuantities !== undefined) {
6619
+ localVarQueryParameters['AllowLumpSumItemsWithDifferingQuantities'] = ObjectSerializer.serialize(allowLumpSumItemsWithDifferingQuantities, "boolean");
6620
+ }
6621
+ Object.assign(localVarHeaderParams, options.headers);
6622
+ let localVarUseFormData = false;
6623
+ if (gaebFile !== undefined) {
6624
+ localVarFormParams['gaebFile'] = gaebFile;
6625
+ }
6626
+ localVarUseFormData = true;
6627
+ let localVarRequestOptions = {
6628
+ method: 'POST',
6629
+ qs: localVarQueryParameters,
6630
+ headers: localVarHeaderParams,
6631
+ uri: localVarPath,
6632
+ useQuerystring: this._useQuerystring,
6633
+ json: true,
6634
+ };
6635
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
6636
+ this.authentications.default.applyToRequest(localVarRequestOptions);
6637
+ if (Object.keys(localVarFormParams).length) {
6638
+ if (localVarUseFormData) {
6639
+ localVarRequestOptions.formData = localVarFormParams;
6640
+ }
6641
+ else {
6642
+ localVarRequestOptions.form = localVarFormParams;
6643
+ }
6644
+ }
6645
+ return new Promise((resolve, reject) => {
6646
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
6647
+ if (error) {
6648
+ reject(error);
6649
+ }
6650
+ else {
6651
+ body = ObjectSerializer.deserialize(body, "ProjectDto");
6652
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6653
+ resolve({ response: response, body: body });
6654
+ }
6655
+ else {
6656
+ reject({ response: response, body: body });
6657
+ }
6658
+ }
6659
+ });
6660
+ });
6661
+ }
6662
+ /**
6663
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6664
+ */
6665
+ gaebConversionConvertToExcelWithRequestObject(gaebFile, options) {
6666
+ return this.gaebConversionConvertToExcel(gaebFile, options === null || options === void 0 ? void 0 : options.supportSkippedItemNumberLevelsInPositions, options === null || options === void 0 ? void 0 : options.writePrices, options === null || options === void 0 ? void 0 : options.writeLongTexts, options === null || options === void 0 ? void 0 : options.conversionCulture, options === null || options === void 0 ? void 0 : options.includeArticleNumbers, options === null || options === void 0 ? void 0 : options.outputHtmlAsXml, options === null || options === void 0 ? void 0 : options.keepEmptyHtmlText, options === null || options === void 0 ? void 0 : options.allowUpperCaseItemNumbers, options === null || options === void 0 ? void 0 : options.allowLumpSumItemsWithDifferingQuantities, (options === null || options === void 0 ? void 0 : options.options) || {});
6667
+ }
6668
+ /**
6669
+ *
6670
+ * @summary Converts GAEB files to Excel
6671
+ * @param gaebFile The input file
6672
+ * @param supportSkippedItemNumberLevelsInPositions Defaults to &#39;false&#39;. 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 &#39;01.02&#39;, then it will be displayed as &#39;01.__.02&#39; if this is set to true.
6673
+ * @param writePrices Defaults to true
6674
+ * @param writeLongTexts Defaults to true
6675
+ * @param conversionCulture The culture that should be used for the conversion process, to have localized Excel files
6676
+ * @param includeArticleNumbers If this is enabled, then a new column will be created in the overview worksheet that contains the article numbers for positions. Article numbers will be read from &#39;position.commerceProperties.articleNumber&#39;
6677
+ * @param outputHtmlAsXml Defaults to &#39;false&#39;. 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 &#39;&lt;br /&gt;&#39; instead of &#39;&lt;br&gt;&#39;.
6678
+ * @param keepEmptyHtmlText Defaults to &#39;false&#39;. 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.
6679
+ * @param allowUpperCaseItemNumbers Defaults to &#39;false&#39;. 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.
6680
+ * @param allowLumpSumItemsWithDifferingQuantities Defaults to &#39;false&#39;. By default, the GAEB standard requires lump sum items (&#39;Pauschalpositionen&#39; in German) to have a quantity of exactly 1. AVACloud does enforce this convention, but if you set this property to &#39;true&#39;, then differing quantities will be kept during the import.
6681
+ * @param {*} [options] Override http request options.
6682
+ */
6683
+ gaebConversionConvertToExcel(gaebFile, supportSkippedItemNumberLevelsInPositions, writePrices, writeLongTexts, conversionCulture, includeArticleNumbers, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, allowLumpSumItemsWithDifferingQuantities, options = {}) {
6684
+ const localVarPath = this.basePath + '/conversion/gaeb/excel';
6685
+ let localVarQueryParameters = {};
6686
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
6687
+ let localVarFormParams = {};
6688
+ if (supportSkippedItemNumberLevelsInPositions !== undefined) {
6689
+ localVarQueryParameters['SupportSkippedItemNumberLevelsInPositions'] = ObjectSerializer.serialize(supportSkippedItemNumberLevelsInPositions, "boolean");
6690
+ }
6691
+ if (writePrices !== undefined) {
6692
+ localVarQueryParameters['WritePrices'] = ObjectSerializer.serialize(writePrices, "boolean");
6693
+ }
6694
+ if (writeLongTexts !== undefined) {
6695
+ localVarQueryParameters['WriteLongTexts'] = ObjectSerializer.serialize(writeLongTexts, "boolean");
6696
+ }
6697
+ if (conversionCulture !== undefined) {
6698
+ localVarQueryParameters['ConversionCulture'] = ObjectSerializer.serialize(conversionCulture, "string");
6699
+ }
6700
+ if (includeArticleNumbers !== undefined) {
6701
+ localVarQueryParameters['IncludeArticleNumbers'] = ObjectSerializer.serialize(includeArticleNumbers, "boolean");
6702
+ }
6703
+ if (outputHtmlAsXml !== undefined) {
6704
+ localVarQueryParameters['OutputHtmlAsXml'] = ObjectSerializer.serialize(outputHtmlAsXml, "boolean");
6705
+ }
6706
+ if (keepEmptyHtmlText !== undefined) {
6707
+ localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
6708
+ }
6709
+ if (allowUpperCaseItemNumbers !== undefined) {
6710
+ localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
6711
+ }
6712
+ if (allowLumpSumItemsWithDifferingQuantities !== undefined) {
6713
+ localVarQueryParameters['AllowLumpSumItemsWithDifferingQuantities'] = ObjectSerializer.serialize(allowLumpSumItemsWithDifferingQuantities, "boolean");
6714
+ }
6715
+ Object.assign(localVarHeaderParams, options.headers);
6716
+ let localVarUseFormData = false;
6717
+ if (gaebFile !== undefined) {
6718
+ localVarFormParams['gaebFile'] = gaebFile;
6719
+ }
6720
+ localVarUseFormData = true;
6721
+ let localVarRequestOptions = {
6722
+ method: 'POST',
6723
+ qs: localVarQueryParameters,
6724
+ headers: localVarHeaderParams,
6725
+ uri: localVarPath,
6726
+ useQuerystring: this._useQuerystring,
6727
+ encoding: null,
6728
+ };
6729
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
6730
+ this.authentications.default.applyToRequest(localVarRequestOptions);
6731
+ if (Object.keys(localVarFormParams).length) {
6732
+ if (localVarUseFormData) {
6733
+ localVarRequestOptions.formData = localVarFormParams;
6734
+ }
6735
+ else {
6736
+ localVarRequestOptions.form = localVarFormParams;
6737
+ }
6738
+ }
6739
+ return new Promise((resolve, reject) => {
6740
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
6741
+ if (error) {
6742
+ reject(error);
6743
+ }
6744
+ else {
6745
+ body = ObjectSerializer.deserialize(body, "Buffer");
6746
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6747
+ resolve({ response: response, body: body });
6748
+ }
6749
+ else {
6750
+ reject({ response: response, body: body });
6751
+ }
6752
+ }
6753
+ });
6754
+ });
6755
+ }
6756
+ /**
6757
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6758
+ */
6759
+ gaebConversionConvertToFlatAvaWithRequestObject(gaebFile, options) {
6760
+ return this.gaebConversionConvertToFlatAva(gaebFile, options === null || options === void 0 ? void 0 : options.supportSkippedItemNumberLevelsInPositions, options === null || options === void 0 ? void 0 : options.outputHtmlAsXml, options === null || options === void 0 ? void 0 : options.keepEmptyHtmlText, options === null || options === void 0 ? void 0 : options.allowUpperCaseItemNumbers, options === null || options === void 0 ? void 0 : options.allowLumpSumItemsWithDifferingQuantities, (options === null || options === void 0 ? void 0 : options.options) || {});
6761
+ }
6762
+ /**
6763
+ *
6764
+ * @summary Converts GAEB files to Dangl.AVA projects
6765
+ * @param gaebFile The input file
6766
+ * @param supportSkippedItemNumberLevelsInPositions Defaults to &#39;false&#39;. 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 &#39;01.02&#39;, then it will be displayed as &#39;01.__.02&#39; if this is set to true.
6767
+ * @param outputHtmlAsXml Defaults to &#39;false&#39;. 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 &#39;&lt;br /&gt;&#39; instead of &#39;&lt;br&gt;&#39;.
6768
+ * @param keepEmptyHtmlText Defaults to &#39;false&#39;. 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.
6769
+ * @param allowUpperCaseItemNumbers Defaults to &#39;false&#39;. 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.
6770
+ * @param allowLumpSumItemsWithDifferingQuantities Defaults to &#39;false&#39;. By default, the GAEB standard requires lump sum items (&#39;Pauschalpositionen&#39; in German) to have a quantity of exactly 1. AVACloud does enforce this convention, but if you set this property to &#39;true&#39;, then differing quantities will be kept during the import.
6771
+ * @param {*} [options] Override http request options.
6772
+ */
6773
+ gaebConversionConvertToFlatAva(gaebFile, supportSkippedItemNumberLevelsInPositions, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, allowLumpSumItemsWithDifferingQuantities, options = {}) {
6774
+ const localVarPath = this.basePath + '/conversion/gaeb/flat-ava';
6775
+ let localVarQueryParameters = {};
6776
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
6777
+ let localVarFormParams = {};
6778
+ if (supportSkippedItemNumberLevelsInPositions !== undefined) {
6779
+ localVarQueryParameters['SupportSkippedItemNumberLevelsInPositions'] = ObjectSerializer.serialize(supportSkippedItemNumberLevelsInPositions, "boolean");
6780
+ }
5532
6781
  if (outputHtmlAsXml !== undefined) {
5533
6782
  localVarQueryParameters['OutputHtmlAsXml'] = ObjectSerializer.serialize(outputHtmlAsXml, "boolean");
5534
6783
  }
@@ -5553,7 +6802,7 @@ class GaebConversionApi {
5553
6802
  headers: localVarHeaderParams,
5554
6803
  uri: localVarPath,
5555
6804
  useQuerystring: this._useQuerystring,
5556
- encoding: null,
6805
+ json: true,
5557
6806
  };
5558
6807
  this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
5559
6808
  this.authentications.default.applyToRequest(localVarRequestOptions);
@@ -5571,7 +6820,7 @@ class GaebConversionApi {
5571
6820
  reject(error);
5572
6821
  }
5573
6822
  else {
5574
- body = ObjectSerializer.deserialize(body, "Buffer");
6823
+ body = ObjectSerializer.deserialize(body, "FlatAvaProject");
5575
6824
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5576
6825
  resolve({ response: response, body: body });
5577
6826
  }
@@ -5891,6 +7140,58 @@ class IdsConnectConversionApi {
5891
7140
  });
5892
7141
  });
5893
7142
  }
7143
+ /**
7144
+ *
7145
+ * @summary Converts IDS Connect files to Dangl.AVA projects
7146
+ * @param idsConnectFile The input file
7147
+ * @param {*} [options] Override http request options.
7148
+ */
7149
+ idsConnectConversionConvertToFlatAva(idsConnectFile, options = {}) {
7150
+ const localVarPath = this.basePath + '/conversion/ids-connect/flat-ava';
7151
+ let localVarQueryParameters = {};
7152
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
7153
+ let localVarFormParams = {};
7154
+ Object.assign(localVarHeaderParams, options.headers);
7155
+ let localVarUseFormData = false;
7156
+ if (idsConnectFile !== undefined) {
7157
+ localVarFormParams['idsConnectFile'] = idsConnectFile;
7158
+ }
7159
+ localVarUseFormData = true;
7160
+ let localVarRequestOptions = {
7161
+ method: 'POST',
7162
+ qs: localVarQueryParameters,
7163
+ headers: localVarHeaderParams,
7164
+ uri: localVarPath,
7165
+ useQuerystring: this._useQuerystring,
7166
+ json: true,
7167
+ };
7168
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
7169
+ this.authentications.default.applyToRequest(localVarRequestOptions);
7170
+ if (Object.keys(localVarFormParams).length) {
7171
+ if (localVarUseFormData) {
7172
+ localVarRequestOptions.formData = localVarFormParams;
7173
+ }
7174
+ else {
7175
+ localVarRequestOptions.form = localVarFormParams;
7176
+ }
7177
+ }
7178
+ return new Promise((resolve, reject) => {
7179
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
7180
+ if (error) {
7181
+ reject(error);
7182
+ }
7183
+ else {
7184
+ body = ObjectSerializer.deserialize(body, "FlatAvaProject");
7185
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
7186
+ resolve({ response: response, body: body });
7187
+ }
7188
+ else {
7189
+ reject({ response: response, body: body });
7190
+ }
7191
+ }
7192
+ });
7193
+ });
7194
+ }
5894
7195
  }
5895
7196
  exports.IdsConnectConversionApi = IdsConnectConversionApi;
5896
7197
  var OenormConversionApiApiKeys;
@@ -6074,6 +7375,58 @@ class OenormConversionApi {
6074
7375
  });
6075
7376
  });
6076
7377
  }
7378
+ /**
7379
+ *
7380
+ * @summary Converts ÖNorm files to Dangl.AVA projects
7381
+ * @param oenormFile The input file
7382
+ * @param {*} [options] Override http request options.
7383
+ */
7384
+ oenormConversionConvertToFlatAva(oenormFile, options = {}) {
7385
+ const localVarPath = this.basePath + '/conversion/oenorm/flat-ava';
7386
+ let localVarQueryParameters = {};
7387
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
7388
+ let localVarFormParams = {};
7389
+ Object.assign(localVarHeaderParams, options.headers);
7390
+ let localVarUseFormData = false;
7391
+ if (oenormFile !== undefined) {
7392
+ localVarFormParams['oenormFile'] = oenormFile;
7393
+ }
7394
+ localVarUseFormData = true;
7395
+ let localVarRequestOptions = {
7396
+ method: 'POST',
7397
+ qs: localVarQueryParameters,
7398
+ headers: localVarHeaderParams,
7399
+ uri: localVarPath,
7400
+ useQuerystring: this._useQuerystring,
7401
+ json: true,
7402
+ };
7403
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
7404
+ this.authentications.default.applyToRequest(localVarRequestOptions);
7405
+ if (Object.keys(localVarFormParams).length) {
7406
+ if (localVarUseFormData) {
7407
+ localVarRequestOptions.formData = localVarFormParams;
7408
+ }
7409
+ else {
7410
+ localVarRequestOptions.form = localVarFormParams;
7411
+ }
7412
+ }
7413
+ return new Promise((resolve, reject) => {
7414
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
7415
+ if (error) {
7416
+ reject(error);
7417
+ }
7418
+ else {
7419
+ body = ObjectSerializer.deserialize(body, "FlatAvaProject");
7420
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
7421
+ resolve({ response: response, body: body });
7422
+ }
7423
+ else {
7424
+ reject({ response: response, body: body });
7425
+ }
7426
+ }
7427
+ });
7428
+ });
7429
+ }
6077
7430
  /**
6078
7431
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6079
7432
  */
@@ -6417,6 +7770,58 @@ class RebConversionApi {
6417
7770
  });
6418
7771
  });
6419
7772
  }
7773
+ /**
7774
+ *
7775
+ * @summary Converts REB files to Dangl.AVA projects
7776
+ * @param rebFile The input file
7777
+ * @param {*} [options] Override http request options.
7778
+ */
7779
+ rebConversionConvertToFlatAva(rebFile, options = {}) {
7780
+ const localVarPath = this.basePath + '/conversion/reb/flat-ava';
7781
+ let localVarQueryParameters = {};
7782
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
7783
+ let localVarFormParams = {};
7784
+ Object.assign(localVarHeaderParams, options.headers);
7785
+ let localVarUseFormData = false;
7786
+ if (rebFile !== undefined) {
7787
+ localVarFormParams['rebFile'] = rebFile;
7788
+ }
7789
+ localVarUseFormData = true;
7790
+ let localVarRequestOptions = {
7791
+ method: 'POST',
7792
+ qs: localVarQueryParameters,
7793
+ headers: localVarHeaderParams,
7794
+ uri: localVarPath,
7795
+ useQuerystring: this._useQuerystring,
7796
+ json: true,
7797
+ };
7798
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
7799
+ this.authentications.default.applyToRequest(localVarRequestOptions);
7800
+ if (Object.keys(localVarFormParams).length) {
7801
+ if (localVarUseFormData) {
7802
+ localVarRequestOptions.formData = localVarFormParams;
7803
+ }
7804
+ else {
7805
+ localVarRequestOptions.form = localVarFormParams;
7806
+ }
7807
+ }
7808
+ return new Promise((resolve, reject) => {
7809
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
7810
+ if (error) {
7811
+ reject(error);
7812
+ }
7813
+ else {
7814
+ body = ObjectSerializer.deserialize(body, "FlatAvaProject");
7815
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
7816
+ resolve({ response: response, body: body });
7817
+ }
7818
+ else {
7819
+ reject({ response: response, body: body });
7820
+ }
7821
+ }
7822
+ });
7823
+ });
7824
+ }
6420
7825
  /**
6421
7826
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6422
7827
  */
@@ -6760,6 +8165,58 @@ class SiaConversionApi {
6760
8165
  });
6761
8166
  });
6762
8167
  }
8168
+ /**
8169
+ *
8170
+ * @summary Converts SIA 451 files to Dangl.AVA projects
8171
+ * @param siaFile The input file
8172
+ * @param {*} [options] Override http request options.
8173
+ */
8174
+ siaConversionConvertToFlatAva(siaFile, options = {}) {
8175
+ const localVarPath = this.basePath + '/conversion/sia/flat-ava';
8176
+ let localVarQueryParameters = {};
8177
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
8178
+ let localVarFormParams = {};
8179
+ Object.assign(localVarHeaderParams, options.headers);
8180
+ let localVarUseFormData = false;
8181
+ if (siaFile !== undefined) {
8182
+ localVarFormParams['siaFile'] = siaFile;
8183
+ }
8184
+ localVarUseFormData = true;
8185
+ let localVarRequestOptions = {
8186
+ method: 'POST',
8187
+ qs: localVarQueryParameters,
8188
+ headers: localVarHeaderParams,
8189
+ uri: localVarPath,
8190
+ useQuerystring: this._useQuerystring,
8191
+ json: true,
8192
+ };
8193
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
8194
+ this.authentications.default.applyToRequest(localVarRequestOptions);
8195
+ if (Object.keys(localVarFormParams).length) {
8196
+ if (localVarUseFormData) {
8197
+ localVarRequestOptions.formData = localVarFormParams;
8198
+ }
8199
+ else {
8200
+ localVarRequestOptions.form = localVarFormParams;
8201
+ }
8202
+ }
8203
+ return new Promise((resolve, reject) => {
8204
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
8205
+ if (error) {
8206
+ reject(error);
8207
+ }
8208
+ else {
8209
+ body = ObjectSerializer.deserialize(body, "FlatAvaProject");
8210
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
8211
+ resolve({ response: response, body: body });
8212
+ }
8213
+ else {
8214
+ reject({ response: response, body: body });
8215
+ }
8216
+ }
8217
+ });
8218
+ });
8219
+ }
6763
8220
  /**
6764
8221
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6765
8222
  */
@@ -7119,6 +8576,58 @@ class UglConversionApi {
7119
8576
  });
7120
8577
  });
7121
8578
  }
8579
+ /**
8580
+ *
8581
+ * @summary Converts Ugl files to Dangl.AVA projects
8582
+ * @param uglFile The input file
8583
+ * @param {*} [options] Override http request options.
8584
+ */
8585
+ uglConversionConvertToFlatAva(uglFile, options = {}) {
8586
+ const localVarPath = this.basePath + '/conversion/ugl/flat-ava';
8587
+ let localVarQueryParameters = {};
8588
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
8589
+ let localVarFormParams = {};
8590
+ Object.assign(localVarHeaderParams, options.headers);
8591
+ let localVarUseFormData = false;
8592
+ if (uglFile !== undefined) {
8593
+ localVarFormParams['uglFile'] = uglFile;
8594
+ }
8595
+ localVarUseFormData = true;
8596
+ let localVarRequestOptions = {
8597
+ method: 'POST',
8598
+ qs: localVarQueryParameters,
8599
+ headers: localVarHeaderParams,
8600
+ uri: localVarPath,
8601
+ useQuerystring: this._useQuerystring,
8602
+ json: true,
8603
+ };
8604
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
8605
+ this.authentications.default.applyToRequest(localVarRequestOptions);
8606
+ if (Object.keys(localVarFormParams).length) {
8607
+ if (localVarUseFormData) {
8608
+ localVarRequestOptions.formData = localVarFormParams;
8609
+ }
8610
+ else {
8611
+ localVarRequestOptions.form = localVarFormParams;
8612
+ }
8613
+ }
8614
+ return new Promise((resolve, reject) => {
8615
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
8616
+ if (error) {
8617
+ reject(error);
8618
+ }
8619
+ else {
8620
+ body = ObjectSerializer.deserialize(body, "FlatAvaProject");
8621
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
8622
+ resolve({ response: response, body: body });
8623
+ }
8624
+ else {
8625
+ reject({ response: response, body: body });
8626
+ }
8627
+ }
8628
+ });
8629
+ });
8630
+ }
7122
8631
  }
7123
8632
  exports.UglConversionApi = UglConversionApi;
7124
8633
  var ValidationApiApiKeys;