@dangl/avacloud-client-node 1.23.0 → 1.25.0-beta0001

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 2.4.31
1
+ 2.4.32
package/api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
- * AVACloud API 1.41.0
2
+ * AVACloud API 1.42.0-beta0007
3
3
  * AVACloud API specification
4
4
  *
5
- * OpenAPI spec version: 1.41.0
5
+ * OpenAPI spec version: 1.42.0-beta0007
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -732,6 +732,22 @@ export declare class HttpStatusCode {
732
732
  }[];
733
733
  }
734
734
  /**
735
+ * Represents valid IDS Connect versions for export
736
+ */
737
+ export declare class IdsConnectVersion {
738
+ static discriminator: string | undefined;
739
+ static attributeTypeMap: Array<{
740
+ name: string;
741
+ baseName: string;
742
+ type: string;
743
+ }>;
744
+ static getAttributeTypeMap(): {
745
+ name: string;
746
+ baseName: string;
747
+ type: string;
748
+ }[];
749
+ }
750
+ /**
735
751
  * This class represents as identifier of a certain service specification's element and is uniquely within the service specification.
736
752
  */
737
753
  export declare class ItemNumberDto {
@@ -1469,6 +1485,10 @@ export declare class PositionDto extends IElementDto {
1469
1485
  * HoldOut properties describe services that are to be provided and maintained for a specific time, e.g. fences on a construction site.
1470
1486
  */
1471
1487
  'holdOutProperties'?: PositionHoldOutPropertiesDto;
1488
+ /**
1489
+ * This is an informational property, which directly holds a numerical value for an estimated quantity. It is not used for any price calculations.
1490
+ */
1491
+ 'estimatedQuantity'?: number;
1472
1492
  static discriminator: string | undefined;
1473
1493
  static attributeTypeMap: Array<{
1474
1494
  name: string;
@@ -1842,10 +1862,14 @@ export declare class ProjectDto {
1842
1862
  */
1843
1863
  'id': string;
1844
1864
  /**
1845
- * This property controls the accuracy of all price properties, meaning how many decimal places are preserved in calculations. It defaults to DEFAULT_PRICE_ACCURACY. Please see the Dangl.AVA documentation for further information about decimal precision.
1865
+ * This property controls the accuracy of all price properties, meaning how many decimal places are preserved in calculations. It defaults to DEFAULT_PRICE_ACCURACY. Please see the Dangl.AVA documentation for further information about decimal precision. If UnitPriceAccuracy is set, then this property is ignored for unit prices.
1846
1866
  */
1847
1867
  'priceAccuracy': number;
1848
1868
  /**
1869
+ * This property controls the accuracy of position unit price properties, meaning how many decimal places are preserved in calculations. Please see the Dangl.AVA documentation for further information about decimal precision. This can be separately set from PriceAccuracy, and it only controls the accuracy of the unit price of positions, not the total price. It defaults to null, which means the standard PriceAccuracy is used for unit prices.
1870
+ */
1871
+ 'unitPriceAccuracy'?: number;
1872
+ /**
1849
1873
  * This forces total prices to be the strict product of quantities times unit price in positions. It is enabled by default. If this is disabled, both the unit price and the total price of positions is calculated from the non-rounded values. Please see the documentation for a more detailed explanation of this setting.
1850
1874
  */
1851
1875
  'forceStrictTotals': boolean;
@@ -3229,6 +3253,29 @@ export declare class AvaConversionApi {
3229
3253
  /**
3230
3254
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
3231
3255
  */
3256
+ avaConversionConvertToIdsConnectWithRequestObject(avaProject: ProjectDto, options: {
3257
+ tryAutoGenerateItemNumbersAndSchema?: boolean;
3258
+ version?: 'V2_5';
3259
+ options?: any;
3260
+ }): Promise<{
3261
+ response: http.IncomingMessage;
3262
+ body: Buffer;
3263
+ }>;
3264
+ /**
3265
+ *
3266
+ * @summary Converts Dangl.AVA projects to IDS Connect files
3267
+ * @param avaProject The Dangl.AVA project
3268
+ * @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.
3269
+ * @param version The IDS Connect version to convert to. Defaults to V2_5.
3270
+ * @param {*} [options] Override http request options.
3271
+ */
3272
+ avaConversionConvertToIdsConnect(avaProject: ProjectDto, tryAutoGenerateItemNumbersAndSchema?: boolean, version?: 'V2_5', options?: any): Promise<{
3273
+ response: http.IncomingMessage;
3274
+ body: Buffer;
3275
+ }>;
3276
+ /**
3277
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
3278
+ */
3232
3279
  avaConversionConvertToOenormWithRequestObject(avaProject: ProjectDto, options: {
3233
3280
  tryAutoGenerateItemNumbersAndSchema?: boolean;
3234
3281
  destinationOenormType?: 'Lv2015' | 'Lb2015' | 'B2063' | 'Lv2009' | 'Lb2009' | 'Lv2021' | 'Lb2021';
@@ -3746,6 +3793,47 @@ export declare class GaebConversionApi {
3746
3793
  body: Buffer;
3747
3794
  }>;
3748
3795
  }
3796
+ export declare enum IdsConnectConversionApiApiKeys {
3797
+ }
3798
+ export declare class IdsConnectConversionApi {
3799
+ protected _basePath: string;
3800
+ protected defaultHeaders: any;
3801
+ protected _useQuerystring: boolean;
3802
+ protected authentications: {
3803
+ default: Authentication;
3804
+ 'Dangl.Identity': OAuth;
3805
+ };
3806
+ constructor(basePath?: string);
3807
+ set useQuerystring(value: boolean);
3808
+ set basePath(basePath: string);
3809
+ get basePath(): string;
3810
+ setDefaultAuthentication(auth: Authentication): void;
3811
+ setApiKey(key: IdsConnectConversionApiApiKeys, value: string): void;
3812
+ set accessToken(token: string);
3813
+ /**
3814
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
3815
+ */
3816
+ idsConnectConversionConvertToAvaWithRequestObject(idsConnectFile: FileParameter, options: {
3817
+ removePlainTextLongTexts?: boolean;
3818
+ removeHtmlLongTexts?: boolean;
3819
+ options?: any;
3820
+ }): Promise<{
3821
+ response: http.IncomingMessage;
3822
+ body: ProjectDto;
3823
+ }>;
3824
+ /**
3825
+ *
3826
+ * @summary Converts IDS Connect files to Dangl.AVA projects
3827
+ * @param idsConnectFile The input file
3828
+ * @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
3829
+ * @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
3830
+ * @param {*} [options] Override http request options.
3831
+ */
3832
+ idsConnectConversionConvertToAva(idsConnectFile: FileParameter, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options?: any): Promise<{
3833
+ response: http.IncomingMessage;
3834
+ body: ProjectDto;
3835
+ }>;
3836
+ }
3749
3837
  export declare enum OenormConversionApiApiKeys {
3750
3838
  }
3751
3839
  export declare class OenormConversionApi {
package/api.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  /**
3
- * AVACloud API 1.41.0
3
+ * AVACloud API 1.42.0-beta0007
4
4
  * AVACloud API specification
5
5
  *
6
- * OpenAPI spec version: 1.41.0
6
+ * OpenAPI spec version: 1.42.0-beta0007
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -11,11 +11,11 @@
11
11
  * Do not edit the class manually.
12
12
  */
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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.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 = 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 = void 0;
17
17
  const localVarRequest = require("request");
18
- let defaultBasePath = 'https://avacloud-api.dangl-it.com';
18
+ let defaultBasePath = 'https://avacloud-api-dev.dangl-it.com';
19
19
  // ===============================================
20
20
  // This file is autogenerated - Please do not edit
21
21
  // ===============================================
@@ -805,6 +805,17 @@ exports.HttpStatusCode = HttpStatusCode;
805
805
  HttpStatusCode.discriminator = undefined;
806
806
  HttpStatusCode.attributeTypeMap = [];
807
807
  /**
808
+ * Represents valid IDS Connect versions for export
809
+ */
810
+ class IdsConnectVersion {
811
+ static getAttributeTypeMap() {
812
+ return IdsConnectVersion.attributeTypeMap;
813
+ }
814
+ }
815
+ exports.IdsConnectVersion = IdsConnectVersion;
816
+ IdsConnectVersion.discriminator = undefined;
817
+ IdsConnectVersion.attributeTypeMap = [];
818
+ /**
808
819
  * This class represents as identifier of a certain service specification's element and is uniquely within the service specification.
809
820
  */
810
821
  class ItemNumberDto {
@@ -1627,6 +1638,11 @@ PositionDto.attributeTypeMap = [
1627
1638
  "name": "holdOutProperties",
1628
1639
  "baseName": "holdOutProperties",
1629
1640
  "type": "PositionHoldOutPropertiesDto"
1641
+ },
1642
+ {
1643
+ "name": "estimatedQuantity",
1644
+ "baseName": "estimatedQuantity",
1645
+ "type": "number"
1630
1646
  }
1631
1647
  ];
1632
1648
  /**
@@ -1990,6 +2006,11 @@ ProjectDto.attributeTypeMap = [
1990
2006
  "baseName": "priceAccuracy",
1991
2007
  "type": "number"
1992
2008
  },
2009
+ {
2010
+ "name": "unitPriceAccuracy",
2011
+ "baseName": "unitPriceAccuracy",
2012
+ "type": "number"
2013
+ },
1993
2014
  {
1994
2015
  "name": "forceStrictTotals",
1995
2016
  "baseName": "forceStrictTotals",
@@ -3244,6 +3265,7 @@ let typeMap = {
3244
3265
  "HoldOutTypeDto": HoldOutTypeDto,
3245
3266
  "HttpStatusCode": HttpStatusCode,
3246
3267
  "IElementDto": IElementDto,
3268
+ "IdsConnectVersion": IdsConnectVersion,
3247
3269
  "ItemNumberDto": ItemNumberDto,
3248
3270
  "ItemNumberSchemaDto": ItemNumberSchemaDto,
3249
3271
  "ItemNumberSchemaTierDto": ItemNumberSchemaTierDto,
@@ -4041,6 +4063,74 @@ class AvaConversionApi {
4041
4063
  /**
4042
4064
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4043
4065
  */
4066
+ avaConversionConvertToIdsConnectWithRequestObject(avaProject, options) {
4067
+ return this.avaConversionConvertToIdsConnect(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.version, options.options || {});
4068
+ }
4069
+ /**
4070
+ *
4071
+ * @summary Converts Dangl.AVA projects to IDS Connect files
4072
+ * @param avaProject The Dangl.AVA project
4073
+ * @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.
4074
+ * @param version The IDS Connect version to convert to. Defaults to V2_5.
4075
+ * @param {*} [options] Override http request options.
4076
+ */
4077
+ avaConversionConvertToIdsConnect(avaProject, tryAutoGenerateItemNumbersAndSchema, version, options = {}) {
4078
+ const localVarPath = this.basePath + '/conversion/ava/ids-connect';
4079
+ let localVarQueryParameters = {};
4080
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
4081
+ let localVarFormParams = {};
4082
+ // verify required parameter 'avaProject' is not null or undefined
4083
+ if (avaProject === null || avaProject === undefined) {
4084
+ throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToIdsConnect.');
4085
+ }
4086
+ if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
4087
+ localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
4088
+ }
4089
+ if (version !== undefined) {
4090
+ localVarQueryParameters['Version'] = ObjectSerializer.serialize(version, "'V2_5'");
4091
+ }
4092
+ Object.assign(localVarHeaderParams, options.headers);
4093
+ let localVarUseFormData = false;
4094
+ let localVarRequestOptions = {
4095
+ method: 'POST',
4096
+ qs: localVarQueryParameters,
4097
+ headers: localVarHeaderParams,
4098
+ uri: localVarPath,
4099
+ useQuerystring: this._useQuerystring,
4100
+ encoding: null,
4101
+ body: avaProject,
4102
+ json: true
4103
+ };
4104
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
4105
+ this.authentications.default.applyToRequest(localVarRequestOptions);
4106
+ if (Object.keys(localVarFormParams).length) {
4107
+ if (localVarUseFormData) {
4108
+ localVarRequestOptions.formData = localVarFormParams;
4109
+ }
4110
+ else {
4111
+ localVarRequestOptions.form = localVarFormParams;
4112
+ }
4113
+ }
4114
+ return new Promise((resolve, reject) => {
4115
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
4116
+ if (error) {
4117
+ reject(error);
4118
+ }
4119
+ else {
4120
+ body = ObjectSerializer.deserialize(body, "Buffer");
4121
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
4122
+ resolve({ response: response, body: body });
4123
+ }
4124
+ else {
4125
+ reject({ response: response, body: body });
4126
+ }
4127
+ }
4128
+ });
4129
+ });
4130
+ }
4131
+ /**
4132
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4133
+ */
4044
4134
  avaConversionConvertToOenormWithRequestObject(avaProject, options) {
4045
4135
  return this.avaConversionConvertToOenorm(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.destinationOenormType, options.tryRepairProjectStructure, options.skipTryEnforceSchemaCompliantXmlOutput, options.removeUnprintableCharactersFromTexts, options.options || {});
4046
4136
  }
@@ -5558,6 +5648,115 @@ class GaebConversionApi {
5558
5648
  }
5559
5649
  }
5560
5650
  exports.GaebConversionApi = GaebConversionApi;
5651
+ var IdsConnectConversionApiApiKeys;
5652
+ (function (IdsConnectConversionApiApiKeys) {
5653
+ })(IdsConnectConversionApiApiKeys = exports.IdsConnectConversionApiApiKeys || (exports.IdsConnectConversionApiApiKeys = {}));
5654
+ class IdsConnectConversionApi {
5655
+ constructor(basePathOrUsername, password, basePath) {
5656
+ this._basePath = defaultBasePath;
5657
+ this.defaultHeaders = {};
5658
+ this._useQuerystring = false;
5659
+ this.authentications = {
5660
+ 'default': new VoidAuth(),
5661
+ 'Dangl.Identity': new OAuth(),
5662
+ };
5663
+ if (password) {
5664
+ if (basePath) {
5665
+ this.basePath = basePath;
5666
+ }
5667
+ }
5668
+ else {
5669
+ if (basePathOrUsername) {
5670
+ this.basePath = basePathOrUsername;
5671
+ }
5672
+ }
5673
+ }
5674
+ set useQuerystring(value) {
5675
+ this._useQuerystring = value;
5676
+ }
5677
+ set basePath(basePath) {
5678
+ this._basePath = basePath;
5679
+ }
5680
+ get basePath() {
5681
+ return this._basePath;
5682
+ }
5683
+ setDefaultAuthentication(auth) {
5684
+ this.authentications.default = auth;
5685
+ }
5686
+ setApiKey(key, value) {
5687
+ this.authentications[IdsConnectConversionApiApiKeys[key]].apiKey = value;
5688
+ }
5689
+ set accessToken(token) {
5690
+ this.authentications['Dangl.Identity'].accessToken = token;
5691
+ }
5692
+ /**
5693
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5694
+ */
5695
+ idsConnectConversionConvertToAvaWithRequestObject(idsConnectFile, options) {
5696
+ return this.idsConnectConversionConvertToAva(idsConnectFile, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
5697
+ }
5698
+ /**
5699
+ *
5700
+ * @summary Converts IDS Connect files to Dangl.AVA projects
5701
+ * @param idsConnectFile The input file
5702
+ * @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
5703
+ * @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
5704
+ * @param {*} [options] Override http request options.
5705
+ */
5706
+ idsConnectConversionConvertToAva(idsConnectFile, removePlainTextLongTexts, removeHtmlLongTexts, options = {}) {
5707
+ const localVarPath = this.basePath + '/conversion/ids-connect/ava';
5708
+ let localVarQueryParameters = {};
5709
+ let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
5710
+ let localVarFormParams = {};
5711
+ if (removePlainTextLongTexts !== undefined) {
5712
+ localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
5713
+ }
5714
+ if (removeHtmlLongTexts !== undefined) {
5715
+ localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
5716
+ }
5717
+ Object.assign(localVarHeaderParams, options.headers);
5718
+ let localVarUseFormData = false;
5719
+ if (idsConnectFile !== undefined) {
5720
+ localVarFormParams['idsConnectFile'] = idsConnectFile;
5721
+ }
5722
+ localVarUseFormData = true;
5723
+ let localVarRequestOptions = {
5724
+ method: 'POST',
5725
+ qs: localVarQueryParameters,
5726
+ headers: localVarHeaderParams,
5727
+ uri: localVarPath,
5728
+ useQuerystring: this._useQuerystring,
5729
+ json: true,
5730
+ };
5731
+ this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
5732
+ this.authentications.default.applyToRequest(localVarRequestOptions);
5733
+ if (Object.keys(localVarFormParams).length) {
5734
+ if (localVarUseFormData) {
5735
+ localVarRequestOptions.formData = localVarFormParams;
5736
+ }
5737
+ else {
5738
+ localVarRequestOptions.form = localVarFormParams;
5739
+ }
5740
+ }
5741
+ return new Promise((resolve, reject) => {
5742
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
5743
+ if (error) {
5744
+ reject(error);
5745
+ }
5746
+ else {
5747
+ body = ObjectSerializer.deserialize(body, "ProjectDto");
5748
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
5749
+ resolve({ response: response, body: body });
5750
+ }
5751
+ else {
5752
+ reject({ response: response, body: body });
5753
+ }
5754
+ }
5755
+ });
5756
+ });
5757
+ }
5758
+ }
5759
+ exports.IdsConnectConversionApi = IdsConnectConversionApi;
5561
5760
  var OenormConversionApiApiKeys;
5562
5761
  (function (OenormConversionApiApiKeys) {
5563
5762
  })(OenormConversionApiApiKeys = exports.OenormConversionApiApiKeys || (exports.OenormConversionApiApiKeys = {}));