@dangl/avacloud-client-node 1.22.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. package/api.d.ts +196 -8
  2. package/api.js +432 -13
  3. package/api.js.map +1 -1
  4. package/api.ts +505 -16
  5. package/package.json +1 -1
package/api.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  /**
3
- * AVACloud API 1.40.0
3
+ * AVACloud API 1.41.5
4
4
  * AVACloud API specification
5
5
  *
6
- * OpenAPI spec version: 1.40.0
6
+ * OpenAPI spec version: 1.41.5
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.PostAvaSourceOptions = exports.PostAvaProjectValidationSourceOptions = exports.PositionTypeDto = exports.PositionHoldOutPropertiesDto = exports.PositionDto = exports.PositionComplementingTypeDto = exports.PartyInformationDto = exports.OriginDto = exports.OenormPropertiesDto = exports.OenormPositionPropertiesDto = exports.OenormOriginCodeDto = exports.OenormNoteTextPropertiesDto = exports.ObjectValidationCheckDetails = exports.NoteTextDto = exports.LoginPost = exports.LabourPriceComponentDto = exports.ItemNumberTypeDto = exports.ItemNumberSchemaTierTypeDto = exports.ItemNumberSchemaTierDto = exports.ItemNumberSchemaDto = exports.ItemNumberDto = exports.HttpStatusCode = exports.HoldOutTypeDto = exports.HoldOutDurationUnitDto = exports.GrossPriceComponentDto = exports.GetStatus = exports.ForgotPasswordPost = exports.FileValidationSourceType = exports.ExecutionDescriptionDto = exports.IElementDto = exports.ExchangePhaseDto = exports.DurationUnitDto = exports.DestinationRebType = exports.DestinationOenormType = exports.DestinationGaebType = exports.DestinationGaebExchangePhase = exports.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.OenormConversionApiApiKeys = exports.GaebConversionApi = exports.GaebConversionApiApiKeys = exports.ExcelConversionApi = exports.ExcelConversionApiApiKeys = exports.DanglIdentityApi = exports.DanglIdentityApiApiKeys = exports.AvaConversionApi = exports.AvaConversionApiApiKeys = exports.AslvConversionApi = exports.AslvConversionApiApiKeys = exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBasicAuth = exports.XmlSchemaValidationCheckDetails = exports.WarrantyDurationDto = exports.ValidationType = exports.ValidationSeverity = exports.ValidationResult = exports.ValidationCheckType = exports.ValidationCheckResult = exports.TradeDiscountDto = exports.TokenResponseGet = exports.TokenRefreshPost = exports.TokenLoginPost = exports.SubDescriptionDto = exports.StandardizedDescriptionDto = exports.StandardReferenceTypeDto = exports.SpecialAwardKindDto = exports.ServiceTypeDto = exports.ServiceSpecificationGroupDto = exports.ServiceSpecificationDto = exports.ServiceSpecificationCommercePropertiesDto = exports.STLBReferenceDto = exports.STLBKeyDto = exports.ResponseErrorType = exports.RegisterPost = exports.QuantityAssignmentDto = exports.ProjectValidationCheckDetails = exports.ProjectInformationDto = exports.ProjectDto = exports.ProductDataDto = exports.PriceTypeDto = exports.PriceRoundingModeDto = exports.PriceInformationDto = exports.PriceComponentTypeDto = exports.PriceComponentDto = exports.PostOenormDestinationOptions = exports.PostGaebDestinationOptions = void 0;
16
- exports.ValidationApi = exports.ValidationApiApiKeys = exports.StatusApi = exports.StatusApiApiKeys = exports.SiaConversionApi = exports.SiaConversionApiApiKeys = exports.RebConversionApi = exports.RebConversionApiApiKeys = exports.OenormConversionApi = void 0;
14
+ exports.PostAvaProjectValidationSourceOptions = exports.PositionTypeDto = exports.PositionHoldOutPropertiesDto = exports.PositionDto = exports.PositionComplementingTypeDto = exports.PartyInformationDto = exports.OriginDto = exports.OenormPropertiesDto = exports.OenormPositionPropertiesDto = exports.OenormOriginCodeDto = exports.OenormNoteTextPropertiesDto = exports.ObjectValidationCheckDetails = exports.NoteTextDto = exports.LoginPost = exports.LabourPriceComponentDto = exports.ItemNumberTypeDto = exports.ItemNumberSchemaTierTypeDto = exports.ItemNumberSchemaTierDto = exports.ItemNumberSchemaDto = exports.ItemNumberDto = exports.HttpStatusCode = exports.HoldOutTypeDto = exports.HoldOutDurationUnitDto = exports.GrossPriceComponentDto = exports.GetStatus = exports.ForgotPasswordPost = exports.FileValidationSourceType = exports.ExecutionDescriptionDto = exports.IElementDto = exports.ExchangePhaseDto = exports.DurationUnitDto = exports.DestinationRebType = exports.DestinationOenormType = exports.DestinationGaebType = exports.DestinationGaebExchangePhase = exports.DatanormDestinationVersion = exports.ComplementedByQuantityDto = exports.CommercePropertiesDto = exports.CommerceInquiryTypeDto = exports.ComissionStatusDto = exports.CatalogueTypeDto = exports.CatalogueReferenceDto = exports.CatalogueDto = exports.CalculationDto = exports.BankingInformationDto = exports.AwardTypeDto = exports.ArticleDataDto = exports.ApiError = exports.AdditionTypeDto = exports.AddendumStatusDto = void 0;
15
+ exports.ExcelConversionApiApiKeys = exports.DatanormConversionApi = exports.DatanormConversionApiApiKeys = exports.DanglIdentityApi = exports.DanglIdentityApiApiKeys = exports.AvaConversionApi = exports.AvaConversionApiApiKeys = exports.AslvConversionApi = exports.AslvConversionApiApiKeys = exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBasicAuth = exports.XmlSchemaValidationCheckDetails = exports.WarrantyDurationDto = exports.ValidationType = exports.ValidationSeverity = exports.ValidationResult = exports.ValidationCheckType = exports.ValidationCheckResult = exports.UglDestinationVersion = exports.TradeDiscountDto = exports.TokenResponseGet = exports.TokenRefreshPost = exports.TokenLoginPost = exports.SubDescriptionDto = exports.StandardizedDescriptionDto = exports.StandardReferenceTypeDto = exports.SpecialAwardKindDto = exports.ServiceTypeDto = exports.ServiceSpecificationGroupDto = exports.ServiceSpecificationDto = exports.ServiceSpecificationCommercePropertiesDto = exports.STLBReferenceDto = exports.STLBKeyDto = exports.ResponseErrorType = exports.RegisterPost = exports.QuantityAssignmentDto = exports.ProjectValidationCheckDetails = exports.ProjectInformationDto = exports.ProjectDto = exports.ProductDataDto = exports.PriceTypeDto = exports.PriceRoundingModeDto = exports.PriceInformationDto = exports.PriceComponentTypeDto = exports.PriceComponentDto = exports.PostOenormDestinationOptions = exports.PostGaebDestinationOptions = exports.PostAvaSourceOptions = void 0;
16
+ exports.ValidationApi = exports.ValidationApiApiKeys = exports.UglConversionApi = exports.UglConversionApiApiKeys = exports.StatusApi = exports.StatusApiApiKeys = exports.SiaConversionApi = exports.SiaConversionApiApiKeys = exports.RebConversionApi = exports.RebConversionApiApiKeys = exports.OenormConversionApi = exports.OenormConversionApiApiKeys = exports.GaebConversionApi = exports.GaebConversionApiApiKeys = exports.ExcelConversionApi = void 0;
17
17
  const localVarRequest = require("request");
18
18
  let defaultBasePath = 'https://avacloud-api.dangl-it.com';
19
19
  // ===============================================
@@ -515,6 +515,17 @@ ComplementedByQuantityDto.attributeTypeMap = [
515
515
  }
516
516
  ];
517
517
  /**
518
+ * Represents valid Datanorm versions for export
519
+ */
520
+ class DatanormDestinationVersion {
521
+ static getAttributeTypeMap() {
522
+ return DatanormDestinationVersion.attributeTypeMap;
523
+ }
524
+ }
525
+ exports.DatanormDestinationVersion = DatanormDestinationVersion;
526
+ DatanormDestinationVersion.discriminator = undefined;
527
+ DatanormDestinationVersion.attributeTypeMap = [];
528
+ /**
518
529
  * The GAEB exchange phase to transform to
519
530
  */
520
531
  class DestinationGaebExchangePhase {
@@ -895,6 +906,11 @@ ItemNumberSchemaDto.attributeTypeMap = [
895
906
  "name": "schemaIsCorrectlyDefined",
896
907
  "baseName": "schemaIsCorrectlyDefined",
897
908
  "type": "boolean"
909
+ },
910
+ {
911
+ "name": "allowUpperCaseLettering",
912
+ "baseName": "allowUpperCaseLettering",
913
+ "type": "boolean"
898
914
  }
899
915
  ];
900
916
  /**
@@ -1611,6 +1627,11 @@ PositionDto.attributeTypeMap = [
1611
1627
  "name": "holdOutProperties",
1612
1628
  "baseName": "holdOutProperties",
1613
1629
  "type": "PositionHoldOutPropertiesDto"
1630
+ },
1631
+ {
1632
+ "name": "estimatedQuantity",
1633
+ "baseName": "estimatedQuantity",
1634
+ "type": "number"
1614
1635
  }
1615
1636
  ];
1616
1637
  /**
@@ -1974,6 +1995,11 @@ ProjectDto.attributeTypeMap = [
1974
1995
  "baseName": "priceAccuracy",
1975
1996
  "type": "number"
1976
1997
  },
1998
+ {
1999
+ "name": "unitPriceAccuracy",
2000
+ "baseName": "unitPriceAccuracy",
2001
+ "type": "number"
2002
+ },
1977
2003
  {
1978
2004
  "name": "forceStrictTotals",
1979
2005
  "baseName": "forceStrictTotals",
@@ -2736,6 +2762,16 @@ ServiceSpecificationGroupDto.attributeTypeMap = [
2736
2762
  "name": "addendumStatus",
2737
2763
  "baseName": "addendumStatus",
2738
2764
  "type": "AddendumStatusDto"
2765
+ },
2766
+ {
2767
+ "name": "alternativeIdentifier",
2768
+ "baseName": "alternativeIdentifier",
2769
+ "type": "number"
2770
+ },
2771
+ {
2772
+ "name": "alternativeGroupIdentifier",
2773
+ "baseName": "alternativeGroupIdentifier",
2774
+ "type": "number"
2739
2775
  }
2740
2776
  ];
2741
2777
  /**
@@ -3025,6 +3061,17 @@ TradeDiscountDto.attributeTypeMap = [
3025
3061
  }
3026
3062
  ];
3027
3063
  /**
3064
+ * Represents valid UGL versions for export
3065
+ */
3066
+ class UglDestinationVersion {
3067
+ static getAttributeTypeMap() {
3068
+ return UglDestinationVersion.attributeTypeMap;
3069
+ }
3070
+ }
3071
+ exports.UglDestinationVersion = UglDestinationVersion;
3072
+ UglDestinationVersion.discriminator = undefined;
3073
+ UglDestinationVersion.attributeTypeMap = [];
3074
+ /**
3028
3075
  * This class models the results of a single check performed during a validation action
3029
3076
  */
3030
3077
  class ValidationCheckResult {
@@ -3191,6 +3238,7 @@ let typeMap = {
3191
3238
  "CommerceInquiryTypeDto": CommerceInquiryTypeDto,
3192
3239
  "CommercePropertiesDto": CommercePropertiesDto,
3193
3240
  "ComplementedByQuantityDto": ComplementedByQuantityDto,
3241
+ "DatanormDestinationVersion": DatanormDestinationVersion,
3194
3242
  "DestinationGaebExchangePhase": DestinationGaebExchangePhase,
3195
3243
  "DestinationGaebType": DestinationGaebType,
3196
3244
  "DestinationOenormType": DestinationOenormType,
@@ -3255,6 +3303,7 @@ let typeMap = {
3255
3303
  "TokenRefreshPost": TokenRefreshPost,
3256
3304
  "TokenResponseGet": TokenResponseGet,
3257
3305
  "TradeDiscountDto": TradeDiscountDto,
3306
+ "UglDestinationVersion": UglDestinationVersion,
3258
3307
  "ValidationCheckResult": ValidationCheckResult,
3259
3308
  "ValidationCheckType": ValidationCheckType,
3260
3309
  "ValidationResult": ValidationResult,
@@ -3766,6 +3815,74 @@ class AvaConversionApi {
3766
3815
  /**
3767
3816
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
3768
3817
  */
3818
+ avaConversionConvertToDatanormWithRequestObject(avaProject, options) {
3819
+ return this.avaConversionConvertToDatanorm(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.datanormDestinationVersion, options.options || {});
3820
+ }
3821
+ /**
3822
+ *
3823
+ * @summary Converts Dangl.AVA projects to Datanorm
3824
+ * @param avaProject The Dangl.AVA project
3825
+ * @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.
3826
+ * @param datanormDestinationVersion The Datanorm version to convert to. Defaults to V4.
3827
+ * @param {*} [options] Override http request options.
3828
+ */
3829
+ avaConversionConvertToDatanorm(avaProject, tryAutoGenerateItemNumbersAndSchema, datanormDestinationVersion, options = {}) {
3830
+ const localVarPath = this.basePath + '/conversion/ava/datanorm';
3831
+ let localVarQueryParameters = {};
3832
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
3833
+ let localVarFormParams = {};
3834
+ // verify required parameter 'avaProject' is not null or undefined
3835
+ if (avaProject === null || avaProject === undefined) {
3836
+ throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToDatanorm.');
3837
+ }
3838
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
3839
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
3840
+ }
3841
+ if (datanormDestinationVersion !== undefined) {
3842
+ localVarQueryParameters['DatanormDestinationVersion'] = ObjectSerializer.serialize(datanormDestinationVersion, "'V4' | 'V5'");
3843
+ }
3844
+ Object.assign(localVarHeaderParams, options.headers);
3845
+ let localVarUseFormData = false;
3846
+ let localVarRequestOptions = {
3847
+ method: 'POST',
3848
+ qs: localVarQueryParameters,
3849
+ headers: localVarHeaderParams,
3850
+ uri: localVarPath,
3851
+ useQuerystring: this._useQuerystring,
3852
+ encoding: null,
3853
+ body: avaProject,
3854
+ json: true
3855
+ };
3856
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
3857
+ this.authentications.default.applyToRequest(localVarRequestOptions);
3858
+ if (Object.keys(localVarFormParams).length) {
3859
+ if (localVarUseFormData) {
3860
+ localVarRequestOptions.formData = localVarFormParams;
3861
+ }
3862
+ else {
3863
+ localVarRequestOptions.form = localVarFormParams;
3864
+ }
3865
+ }
3866
+ return new Promise((resolve, reject) => {
3867
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
3868
+ if (error) {
3869
+ reject(error);
3870
+ }
3871
+ else {
3872
+ body = ObjectSerializer.deserialize(body, "Buffer");
3873
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
3874
+ resolve({ response: response, body: body });
3875
+ }
3876
+ else {
3877
+ reject({ response: response, body: body });
3878
+ }
3879
+ }
3880
+ });
3881
+ });
3882
+ }
3883
+ /**
3884
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
3885
+ */
3769
3886
  avaConversionConvertToExcelWithRequestObject(avaProject, options) {
3770
3887
  return this.avaConversionConvertToExcel(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.writePrices, options.writeLongTexts, options.conversionCulture, options.options || {});
3771
3888
  }
@@ -4143,6 +4260,74 @@ class AvaConversionApi {
4143
4260
  });
4144
4261
  });
4145
4262
  }
4263
+ /**
4264
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4265
+ */
4266
+ avaConversionConvertToUglWithRequestObject(avaProject, options) {
4267
+ return this.avaConversionConvertToUgl(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.uglDestinationVersion, options.options || {});
4268
+ }
4269
+ /**
4270
+ *
4271
+ * @summary Converts Dangl.AVA projects to UGL
4272
+ * @param avaProject The Dangl.AVA project
4273
+ * @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.
4274
+ * @param uglDestinationVersion The UGL version to convert to. Defaults to V1.
4275
+ * @param {*} [options] Override http request options.
4276
+ */
4277
+ avaConversionConvertToUgl(avaProject, tryAutoGenerateItemNumbersAndSchema, uglDestinationVersion, options = {}) {
4278
+ const localVarPath = this.basePath + '/conversion/ava/ugl';
4279
+ let localVarQueryParameters = {};
4280
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
4281
+ let localVarFormParams = {};
4282
+ // verify required parameter 'avaProject' is not null or undefined
4283
+ if (avaProject === null || avaProject === undefined) {
4284
+ throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToUgl.');
4285
+ }
4286
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
4287
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
4288
+ }
4289
+ if (uglDestinationVersion !== undefined) {
4290
+ localVarQueryParameters['UglDestinationVersion'] = ObjectSerializer.serialize(uglDestinationVersion, "'V4' | 'V5'");
4291
+ }
4292
+ Object.assign(localVarHeaderParams, options.headers);
4293
+ let localVarUseFormData = false;
4294
+ let localVarRequestOptions = {
4295
+ method: 'POST',
4296
+ qs: localVarQueryParameters,
4297
+ headers: localVarHeaderParams,
4298
+ uri: localVarPath,
4299
+ useQuerystring: this._useQuerystring,
4300
+ encoding: null,
4301
+ body: avaProject,
4302
+ json: true
4303
+ };
4304
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
4305
+ this.authentications.default.applyToRequest(localVarRequestOptions);
4306
+ if (Object.keys(localVarFormParams).length) {
4307
+ if (localVarUseFormData) {
4308
+ localVarRequestOptions.formData = localVarFormParams;
4309
+ }
4310
+ else {
4311
+ localVarRequestOptions.form = localVarFormParams;
4312
+ }
4313
+ }
4314
+ return new Promise((resolve, reject) => {
4315
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
4316
+ if (error) {
4317
+ reject(error);
4318
+ }
4319
+ else {
4320
+ body = ObjectSerializer.deserialize(body, "Buffer");
4321
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4322
+ resolve({ response: response, body: body });
4323
+ }
4324
+ else {
4325
+ reject({ response: response, body: body });
4326
+ }
4327
+ }
4328
+ });
4329
+ });
4330
+ }
4146
4331
  }
4147
4332
  exports.AvaConversionApi = AvaConversionApi;
4148
4333
  var DanglIdentityApiApiKeys;
@@ -4500,6 +4685,115 @@ class DanglIdentityApi {
4500
4685
  }
4501
4686
  }
4502
4687
  exports.DanglIdentityApi = DanglIdentityApi;
4688
+ var DatanormConversionApiApiKeys;
4689
+ (function (DatanormConversionApiApiKeys) {
4690
+ })(DatanormConversionApiApiKeys = exports.DatanormConversionApiApiKeys || (exports.DatanormConversionApiApiKeys = {}));
4691
+ class DatanormConversionApi {
4692
+ constructor(basePathOrUsername, password, basePath) {
4693
+ this._basePath = defaultBasePath;
4694
+ this.defaultHeaders = {};
4695
+ this._useQuerystring = false;
4696
+ this.authentications = {
4697
+ 'default': new VoidAuth(),
4698
+ 'Dangl.Identity': new OAuth(),
4699
+ };
4700
+ if (password) {
4701
+ if (basePath) {
4702
+ this.basePath = basePath;
4703
+ }
4704
+ }
4705
+ else {
4706
+ if (basePathOrUsername) {
4707
+ this.basePath = basePathOrUsername;
4708
+ }
4709
+ }
4710
+ }
4711
+ set useQuerystring(value) {
4712
+ this._useQuerystring = value;
4713
+ }
4714
+ set basePath(basePath) {
4715
+ this._basePath = basePath;
4716
+ }
4717
+ get basePath() {
4718
+ return this._basePath;
4719
+ }
4720
+ setDefaultAuthentication(auth) {
4721
+ this.authentications.default = auth;
4722
+ }
4723
+ setApiKey(key, value) {
4724
+ this.authentications[DatanormConversionApiApiKeys[key]].apiKey = value;
4725
+ }
4726
+ set accessToken(token) {
4727
+ this.authentications['Dangl.Identity'].accessToken = token;
4728
+ }
4729
+ /**
4730
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4731
+ */
4732
+ datanormConversionConvertToAvaWithRequestObject(datanormFile, options) {
4733
+ return this.datanormConversionConvertToAva(datanormFile, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
4734
+ }
4735
+ /**
4736
+ *
4737
+ * @summary Converts Datanorm files to Dangl.AVA projects
4738
+ * @param datanormFile The input file
4739
+ * @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
4740
+ * @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
4741
+ * @param {*} [options] Override http request options.
4742
+ */
4743
+ datanormConversionConvertToAva(datanormFile, removePlainTextLongTexts, removeHtmlLongTexts, options = {}) {
4744
+ const localVarPath = this.basePath + '/conversion/datanorm/ava';
4745
+ let localVarQueryParameters = {};
4746
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
4747
+ let localVarFormParams = {};
4748
+ if (removePlainTextLongTexts !== undefined) {
4749
+ localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
4750
+ }
4751
+ if (removeHtmlLongTexts !== undefined) {
4752
+ localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
4753
+ }
4754
+ Object.assign(localVarHeaderParams, options.headers);
4755
+ let localVarUseFormData = false;
4756
+ if (datanormFile !== undefined) {
4757
+ localVarFormParams['datanormFile'] = datanormFile;
4758
+ }
4759
+ localVarUseFormData = true;
4760
+ let localVarRequestOptions = {
4761
+ method: 'POST',
4762
+ qs: localVarQueryParameters,
4763
+ headers: localVarHeaderParams,
4764
+ uri: localVarPath,
4765
+ useQuerystring: this._useQuerystring,
4766
+ json: true,
4767
+ };
4768
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
4769
+ this.authentications.default.applyToRequest(localVarRequestOptions);
4770
+ if (Object.keys(localVarFormParams).length) {
4771
+ if (localVarUseFormData) {
4772
+ localVarRequestOptions.formData = localVarFormParams;
4773
+ }
4774
+ else {
4775
+ localVarRequestOptions.form = localVarFormParams;
4776
+ }
4777
+ }
4778
+ return new Promise((resolve, reject) => {
4779
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
4780
+ if (error) {
4781
+ reject(error);
4782
+ }
4783
+ else {
4784
+ body = ObjectSerializer.deserialize(body, "ProjectDto");
4785
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4786
+ resolve({ response: response, body: body });
4787
+ }
4788
+ else {
4789
+ reject({ response: response, body: body });
4790
+ }
4791
+ }
4792
+ });
4793
+ });
4794
+ }
4795
+ }
4796
+ exports.DatanormConversionApi = DatanormConversionApi;
4503
4797
  var ExcelConversionApiApiKeys;
4504
4798
  (function (ExcelConversionApiApiKeys) {
4505
4799
  })(ExcelConversionApiApiKeys = exports.ExcelConversionApiApiKeys || (exports.ExcelConversionApiApiKeys = {}));
@@ -4916,7 +5210,7 @@ class GaebConversionApi {
4916
5210
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4917
5211
  */
4918
5212
  gaebConversionConvertToAvaWithRequestObject(gaebFile, options) {
4919
- return this.gaebConversionConvertToAva(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.options || {});
5213
+ return this.gaebConversionConvertToAva(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
4920
5214
  }
4921
5215
  /**
4922
5216
  *
@@ -4927,9 +5221,10 @@ class GaebConversionApi {
4927
5221
  * @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
4928
5222
  * @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;.
4929
5223
  * @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.
5224
+ * @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.
4930
5225
  * @param {*} [options] Override http request options.
4931
5226
  */
4932
- gaebConversionConvertToAva(gaebFile, supportSkippedItemNumberLevelsInPositions, removePlainTextLongTexts, removeHtmlLongTexts, outputHtmlAsXml, keepEmptyHtmlText, options = {}) {
5227
+ gaebConversionConvertToAva(gaebFile, supportSkippedItemNumberLevelsInPositions, removePlainTextLongTexts, removeHtmlLongTexts, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, options = {}) {
4933
5228
  const localVarPath = this.basePath + '/conversion/gaeb/ava';
4934
5229
  let localVarQueryParameters = {};
4935
5230
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -4949,6 +5244,9 @@ class GaebConversionApi {
4949
5244
  if (keepEmptyHtmlText !== undefined) {
4950
5245
  localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
4951
5246
  }
5247
+ if (allowUpperCaseItemNumbers !== undefined) {
5248
+ localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
5249
+ }
4952
5250
  Object.assign(localVarHeaderParams, options.headers);
4953
5251
  let localVarUseFormData = false;
4954
5252
  if (gaebFile !== undefined) {
@@ -4994,7 +5292,7 @@ class GaebConversionApi {
4994
5292
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4995
5293
  */
4996
5294
  gaebConversionConvertToExcelWithRequestObject(gaebFile, options) {
4997
- return this.gaebConversionConvertToExcel(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.writePrices, options.writeLongTexts, options.conversionCulture, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.options || {});
5295
+ return this.gaebConversionConvertToExcel(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.writePrices, options.writeLongTexts, options.conversionCulture, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
4998
5296
  }
4999
5297
  /**
5000
5298
  *
@@ -5006,9 +5304,10 @@ class GaebConversionApi {
5006
5304
  * @param conversionCulture The culture that should be used for the conversion process, to have localized Excel files
5007
5305
  * @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;.
5008
5306
  * @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.
5307
+ * @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.
5009
5308
  * @param {*} [options] Override http request options.
5010
5309
  */
5011
- gaebConversionConvertToExcel(gaebFile, supportSkippedItemNumberLevelsInPositions, writePrices, writeLongTexts, conversionCulture, outputHtmlAsXml, keepEmptyHtmlText, options = {}) {
5310
+ gaebConversionConvertToExcel(gaebFile, supportSkippedItemNumberLevelsInPositions, writePrices, writeLongTexts, conversionCulture, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, options = {}) {
5012
5311
  const localVarPath = this.basePath + '/conversion/gaeb/excel';
5013
5312
  let localVarQueryParameters = {};
5014
5313
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -5031,6 +5330,9 @@ class GaebConversionApi {
5031
5330
  if (keepEmptyHtmlText !== undefined) {
5032
5331
  localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
5033
5332
  }
5333
+ if (allowUpperCaseItemNumbers !== undefined) {
5334
+ localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
5335
+ }
5034
5336
  Object.assign(localVarHeaderParams, options.headers);
5035
5337
  let localVarUseFormData = false;
5036
5338
  if (gaebFile !== undefined) {
@@ -5076,7 +5378,7 @@ class GaebConversionApi {
5076
5378
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5077
5379
  */
5078
5380
  gaebConversionConvertToGaebWithRequestObject(gaebFile, options) {
5079
- return this.gaebConversionConvertToGaeb(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationGaebType, options.targetExchangePhaseTransform, options.enforceStrictOfferPhaseLongTextOutput, options.exportQuantityDetermination, options.removeUnprintableCharactersFromTexts, options.forceIncludeDescriptions, options.treatNullItemNumberSchemaAsInvalid, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.options || {});
5381
+ return this.gaebConversionConvertToGaeb(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationGaebType, options.targetExchangePhaseTransform, options.enforceStrictOfferPhaseLongTextOutput, options.exportQuantityDetermination, options.removeUnprintableCharactersFromTexts, options.forceIncludeDescriptions, options.treatNullItemNumberSchemaAsInvalid, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
5080
5382
  }
5081
5383
  /**
5082
5384
  *
@@ -5092,9 +5394,10 @@ class GaebConversionApi {
5092
5394
  * @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.
5093
5395
  * @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;.
5094
5396
  * @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.
5397
+ * @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.
5095
5398
  * @param {*} [options] Override http request options.
5096
5399
  */
5097
- gaebConversionConvertToGaeb(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, treatNullItemNumberSchemaAsInvalid, outputHtmlAsXml, keepEmptyHtmlText, options = {}) {
5400
+ gaebConversionConvertToGaeb(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, treatNullItemNumberSchemaAsInvalid, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, options = {}) {
5098
5401
  const localVarPath = this.basePath + '/conversion/gaeb/gaeb';
5099
5402
  let localVarQueryParameters = {};
5100
5403
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -5129,6 +5432,9 @@ class GaebConversionApi {
5129
5432
  if (keepEmptyHtmlText !== undefined) {
5130
5433
  localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
5131
5434
  }
5435
+ if (allowUpperCaseItemNumbers !== undefined) {
5436
+ localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
5437
+ }
5132
5438
  Object.assign(localVarHeaderParams, options.headers);
5133
5439
  let localVarUseFormData = false;
5134
5440
  if (gaebFile !== undefined) {
@@ -5174,7 +5480,7 @@ class GaebConversionApi {
5174
5480
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5175
5481
  */
5176
5482
  gaebConversionConvertToOenormWithRequestObject(gaebFile, options) {
5177
- return this.gaebConversionConvertToOenorm(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationOenormType, options.tryRepairProjectStructure, options.skipTryEnforceSchemaCompliantXmlOutput, options.removeUnprintableCharactersFromTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.options || {});
5483
+ return this.gaebConversionConvertToOenorm(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationOenormType, options.tryRepairProjectStructure, options.skipTryEnforceSchemaCompliantXmlOutput, options.removeUnprintableCharactersFromTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
5178
5484
  }
5179
5485
  /**
5180
5486
  *
@@ -5187,9 +5493,10 @@ class GaebConversionApi {
5187
5493
  * @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.
5188
5494
  * @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;.
5189
5495
  * @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.
5496
+ * @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.
5190
5497
  * @param {*} [options] Override http request options.
5191
5498
  */
5192
- gaebConversionConvertToOenorm(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, outputHtmlAsXml, keepEmptyHtmlText, options = {}) {
5499
+ gaebConversionConvertToOenorm(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, options = {}) {
5193
5500
  const localVarPath = this.basePath + '/conversion/gaeb/oenorm';
5194
5501
  let localVarQueryParameters = {};
5195
5502
  let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
@@ -5215,6 +5522,9 @@ class GaebConversionApi {
5215
5522
  if (keepEmptyHtmlText !== undefined) {
5216
5523
  localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
5217
5524
  }
5525
+ if (allowUpperCaseItemNumbers !== undefined) {
5526
+ localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
5527
+ }
5218
5528
  Object.assign(localVarHeaderParams, options.headers);
5219
5529
  let localVarUseFormData = false;
5220
5530
  if (gaebFile !== undefined) {
@@ -6365,6 +6675,115 @@ class StatusApi {
6365
6675
  }
6366
6676
  }
6367
6677
  exports.StatusApi = StatusApi;
6678
+ var UglConversionApiApiKeys;
6679
+ (function (UglConversionApiApiKeys) {
6680
+ })(UglConversionApiApiKeys = exports.UglConversionApiApiKeys || (exports.UglConversionApiApiKeys = {}));
6681
+ class UglConversionApi {
6682
+ constructor(basePathOrUsername, password, basePath) {
6683
+ this._basePath = defaultBasePath;
6684
+ this.defaultHeaders = {};
6685
+ this._useQuerystring = false;
6686
+ this.authentications = {
6687
+ 'default': new VoidAuth(),
6688
+ 'Dangl.Identity': new OAuth(),
6689
+ };
6690
+ if (password) {
6691
+ if (basePath) {
6692
+ this.basePath = basePath;
6693
+ }
6694
+ }
6695
+ else {
6696
+ if (basePathOrUsername) {
6697
+ this.basePath = basePathOrUsername;
6698
+ }
6699
+ }
6700
+ }
6701
+ set useQuerystring(value) {
6702
+ this._useQuerystring = value;
6703
+ }
6704
+ set basePath(basePath) {
6705
+ this._basePath = basePath;
6706
+ }
6707
+ get basePath() {
6708
+ return this._basePath;
6709
+ }
6710
+ setDefaultAuthentication(auth) {
6711
+ this.authentications.default = auth;
6712
+ }
6713
+ setApiKey(key, value) {
6714
+ this.authentications[UglConversionApiApiKeys[key]].apiKey = value;
6715
+ }
6716
+ set accessToken(token) {
6717
+ this.authentications['Dangl.Identity'].accessToken = token;
6718
+ }
6719
+ /**
6720
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
6721
+ */
6722
+ uglConversionConvertToAvaWithRequestObject(uglFile, options) {
6723
+ return this.uglConversionConvertToAva(uglFile, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
6724
+ }
6725
+ /**
6726
+ *
6727
+ * @summary Converts Ugl files to Dangl.AVA projects
6728
+ * @param uglFile The input file
6729
+ * @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
6730
+ * @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
6731
+ * @param {*} [options] Override http request options.
6732
+ */
6733
+ uglConversionConvertToAva(uglFile, removePlainTextLongTexts, removeHtmlLongTexts, options = {}) {
6734
+ const localVarPath = this.basePath + '/conversion/ugl/ava';
6735
+ let localVarQueryParameters = {};
6736
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
6737
+ let localVarFormParams = {};
6738
+ if (removePlainTextLongTexts !== undefined) {
6739
+ localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
6740
+ }
6741
+ if (removeHtmlLongTexts !== undefined) {
6742
+ localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
6743
+ }
6744
+ Object.assign(localVarHeaderParams, options.headers);
6745
+ let localVarUseFormData = false;
6746
+ if (uglFile !== undefined) {
6747
+ localVarFormParams['uglFile'] = uglFile;
6748
+ }
6749
+ localVarUseFormData = true;
6750
+ let localVarRequestOptions = {
6751
+ method: 'POST',
6752
+ qs: localVarQueryParameters,
6753
+ headers: localVarHeaderParams,
6754
+ uri: localVarPath,
6755
+ useQuerystring: this._useQuerystring,
6756
+ json: true,
6757
+ };
6758
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
6759
+ this.authentications.default.applyToRequest(localVarRequestOptions);
6760
+ if (Object.keys(localVarFormParams).length) {
6761
+ if (localVarUseFormData) {
6762
+ localVarRequestOptions.formData = localVarFormParams;
6763
+ }
6764
+ else {
6765
+ localVarRequestOptions.form = localVarFormParams;
6766
+ }
6767
+ }
6768
+ return new Promise((resolve, reject) => {
6769
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
6770
+ if (error) {
6771
+ reject(error);
6772
+ }
6773
+ else {
6774
+ body = ObjectSerializer.deserialize(body, "ProjectDto");
6775
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
6776
+ resolve({ response: response, body: body });
6777
+ }
6778
+ else {
6779
+ reject({ response: response, body: body });
6780
+ }
6781
+ }
6782
+ });
6783
+ });
6784
+ }
6785
+ }
6786
+ exports.UglConversionApi = UglConversionApi;
6368
6787
  var ValidationApiApiKeys;
6369
6788
  (function (ValidationApiApiKeys) {
6370
6789
  })(ValidationApiApiKeys = exports.ValidationApiApiKeys || (exports.ValidationApiApiKeys = {}));