@dangl/avacloud-client-node 1.22.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.d.ts +187 -7
- package/api.js +422 -13
- package/api.js.map +1 -1
- package/api.ts +486 -15
- package/package.json +1 -1
package/api.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* AVACloud API 1.
|
|
3
|
+
* AVACloud API 1.41.0
|
|
4
4
|
* AVACloud API specification
|
|
5
5
|
*
|
|
6
|
-
* OpenAPI spec version: 1.
|
|
6
|
+
* OpenAPI spec version: 1.41.0
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.ValidationApi = exports.ValidationApiApiKeys = exports.StatusApi = exports.StatusApiApiKeys = exports.SiaConversionApi = exports.SiaConversionApiApiKeys = 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
|
/**
|
|
@@ -2736,6 +2752,16 @@ ServiceSpecificationGroupDto.attributeTypeMap = [
|
|
|
2736
2752
|
"name": "addendumStatus",
|
|
2737
2753
|
"baseName": "addendumStatus",
|
|
2738
2754
|
"type": "AddendumStatusDto"
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
"name": "alternativeIdentifier",
|
|
2758
|
+
"baseName": "alternativeIdentifier",
|
|
2759
|
+
"type": "number"
|
|
2760
|
+
},
|
|
2761
|
+
{
|
|
2762
|
+
"name": "alternativeGroupIdentifier",
|
|
2763
|
+
"baseName": "alternativeGroupIdentifier",
|
|
2764
|
+
"type": "number"
|
|
2739
2765
|
}
|
|
2740
2766
|
];
|
|
2741
2767
|
/**
|
|
@@ -3025,6 +3051,17 @@ TradeDiscountDto.attributeTypeMap = [
|
|
|
3025
3051
|
}
|
|
3026
3052
|
];
|
|
3027
3053
|
/**
|
|
3054
|
+
* Represents valid UGL versions for export
|
|
3055
|
+
*/
|
|
3056
|
+
class UglDestinationVersion {
|
|
3057
|
+
static getAttributeTypeMap() {
|
|
3058
|
+
return UglDestinationVersion.attributeTypeMap;
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
exports.UglDestinationVersion = UglDestinationVersion;
|
|
3062
|
+
UglDestinationVersion.discriminator = undefined;
|
|
3063
|
+
UglDestinationVersion.attributeTypeMap = [];
|
|
3064
|
+
/**
|
|
3028
3065
|
* This class models the results of a single check performed during a validation action
|
|
3029
3066
|
*/
|
|
3030
3067
|
class ValidationCheckResult {
|
|
@@ -3191,6 +3228,7 @@ let typeMap = {
|
|
|
3191
3228
|
"CommerceInquiryTypeDto": CommerceInquiryTypeDto,
|
|
3192
3229
|
"CommercePropertiesDto": CommercePropertiesDto,
|
|
3193
3230
|
"ComplementedByQuantityDto": ComplementedByQuantityDto,
|
|
3231
|
+
"DatanormDestinationVersion": DatanormDestinationVersion,
|
|
3194
3232
|
"DestinationGaebExchangePhase": DestinationGaebExchangePhase,
|
|
3195
3233
|
"DestinationGaebType": DestinationGaebType,
|
|
3196
3234
|
"DestinationOenormType": DestinationOenormType,
|
|
@@ -3255,6 +3293,7 @@ let typeMap = {
|
|
|
3255
3293
|
"TokenRefreshPost": TokenRefreshPost,
|
|
3256
3294
|
"TokenResponseGet": TokenResponseGet,
|
|
3257
3295
|
"TradeDiscountDto": TradeDiscountDto,
|
|
3296
|
+
"UglDestinationVersion": UglDestinationVersion,
|
|
3258
3297
|
"ValidationCheckResult": ValidationCheckResult,
|
|
3259
3298
|
"ValidationCheckType": ValidationCheckType,
|
|
3260
3299
|
"ValidationResult": ValidationResult,
|
|
@@ -3766,6 +3805,74 @@ class AvaConversionApi {
|
|
|
3766
3805
|
/**
|
|
3767
3806
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
3768
3807
|
*/
|
|
3808
|
+
avaConversionConvertToDatanormWithRequestObject(avaProject, options) {
|
|
3809
|
+
return this.avaConversionConvertToDatanorm(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.datanormDestinationVersion, options.options || {});
|
|
3810
|
+
}
|
|
3811
|
+
/**
|
|
3812
|
+
*
|
|
3813
|
+
* @summary Converts Dangl.AVA projects to Datanorm
|
|
3814
|
+
* @param avaProject The Dangl.AVA project
|
|
3815
|
+
* @param tryAutoGenerateItemNumbersAndSchema If this is set to true, AVACloud will try to generate item numbers and an item number schema automatically for the input project. The operation will not have any effect if either an item number schema is already present, or if any of the elements already has an item number.
|
|
3816
|
+
* @param datanormDestinationVersion The Datanorm version to convert to. Defaults to V4.
|
|
3817
|
+
* @param {*} [options] Override http request options.
|
|
3818
|
+
*/
|
|
3819
|
+
avaConversionConvertToDatanorm(avaProject, tryAutoGenerateItemNumbersAndSchema, datanormDestinationVersion, options = {}) {
|
|
3820
|
+
const localVarPath = this.basePath + '/conversion/ava/datanorm';
|
|
3821
|
+
let localVarQueryParameters = {};
|
|
3822
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
3823
|
+
let localVarFormParams = {};
|
|
3824
|
+
// verify required parameter 'avaProject' is not null or undefined
|
|
3825
|
+
if (avaProject === null || avaProject === undefined) {
|
|
3826
|
+
throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToDatanorm.');
|
|
3827
|
+
}
|
|
3828
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
3829
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
3830
|
+
}
|
|
3831
|
+
if (datanormDestinationVersion !== undefined) {
|
|
3832
|
+
localVarQueryParameters['DatanormDestinationVersion'] = ObjectSerializer.serialize(datanormDestinationVersion, "'V4' | 'V5'");
|
|
3833
|
+
}
|
|
3834
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3835
|
+
let localVarUseFormData = false;
|
|
3836
|
+
let localVarRequestOptions = {
|
|
3837
|
+
method: 'POST',
|
|
3838
|
+
qs: localVarQueryParameters,
|
|
3839
|
+
headers: localVarHeaderParams,
|
|
3840
|
+
uri: localVarPath,
|
|
3841
|
+
useQuerystring: this._useQuerystring,
|
|
3842
|
+
encoding: null,
|
|
3843
|
+
body: avaProject,
|
|
3844
|
+
json: true
|
|
3845
|
+
};
|
|
3846
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
3847
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
3848
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3849
|
+
if (localVarUseFormData) {
|
|
3850
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3851
|
+
}
|
|
3852
|
+
else {
|
|
3853
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3854
|
+
}
|
|
3855
|
+
}
|
|
3856
|
+
return new Promise((resolve, reject) => {
|
|
3857
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3858
|
+
if (error) {
|
|
3859
|
+
reject(error);
|
|
3860
|
+
}
|
|
3861
|
+
else {
|
|
3862
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
3863
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3864
|
+
resolve({ response: response, body: body });
|
|
3865
|
+
}
|
|
3866
|
+
else {
|
|
3867
|
+
reject({ response: response, body: body });
|
|
3868
|
+
}
|
|
3869
|
+
}
|
|
3870
|
+
});
|
|
3871
|
+
});
|
|
3872
|
+
}
|
|
3873
|
+
/**
|
|
3874
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
3875
|
+
*/
|
|
3769
3876
|
avaConversionConvertToExcelWithRequestObject(avaProject, options) {
|
|
3770
3877
|
return this.avaConversionConvertToExcel(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.writePrices, options.writeLongTexts, options.conversionCulture, options.options || {});
|
|
3771
3878
|
}
|
|
@@ -4143,6 +4250,74 @@ class AvaConversionApi {
|
|
|
4143
4250
|
});
|
|
4144
4251
|
});
|
|
4145
4252
|
}
|
|
4253
|
+
/**
|
|
4254
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4255
|
+
*/
|
|
4256
|
+
avaConversionConvertToUglWithRequestObject(avaProject, options) {
|
|
4257
|
+
return this.avaConversionConvertToUgl(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.uglDestinationVersion, options.options || {});
|
|
4258
|
+
}
|
|
4259
|
+
/**
|
|
4260
|
+
*
|
|
4261
|
+
* @summary Converts Dangl.AVA projects to UGL
|
|
4262
|
+
* @param avaProject The Dangl.AVA project
|
|
4263
|
+
* @param tryAutoGenerateItemNumbersAndSchema If this is set to true, AVACloud will try to generate item numbers and an item number schema automatically for the input project. The operation will not have any effect if either an item number schema is already present, or if any of the elements already has an item number.
|
|
4264
|
+
* @param uglDestinationVersion The UGL version to convert to. Defaults to V1.
|
|
4265
|
+
* @param {*} [options] Override http request options.
|
|
4266
|
+
*/
|
|
4267
|
+
avaConversionConvertToUgl(avaProject, tryAutoGenerateItemNumbersAndSchema, uglDestinationVersion, options = {}) {
|
|
4268
|
+
const localVarPath = this.basePath + '/conversion/ava/ugl';
|
|
4269
|
+
let localVarQueryParameters = {};
|
|
4270
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
4271
|
+
let localVarFormParams = {};
|
|
4272
|
+
// verify required parameter 'avaProject' is not null or undefined
|
|
4273
|
+
if (avaProject === null || avaProject === undefined) {
|
|
4274
|
+
throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToUgl.');
|
|
4275
|
+
}
|
|
4276
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
4277
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
4278
|
+
}
|
|
4279
|
+
if (uglDestinationVersion !== undefined) {
|
|
4280
|
+
localVarQueryParameters['UglDestinationVersion'] = ObjectSerializer.serialize(uglDestinationVersion, "'V4' | 'V5'");
|
|
4281
|
+
}
|
|
4282
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4283
|
+
let localVarUseFormData = false;
|
|
4284
|
+
let localVarRequestOptions = {
|
|
4285
|
+
method: 'POST',
|
|
4286
|
+
qs: localVarQueryParameters,
|
|
4287
|
+
headers: localVarHeaderParams,
|
|
4288
|
+
uri: localVarPath,
|
|
4289
|
+
useQuerystring: this._useQuerystring,
|
|
4290
|
+
encoding: null,
|
|
4291
|
+
body: avaProject,
|
|
4292
|
+
json: true
|
|
4293
|
+
};
|
|
4294
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
4295
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
4296
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4297
|
+
if (localVarUseFormData) {
|
|
4298
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4299
|
+
}
|
|
4300
|
+
else {
|
|
4301
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
4304
|
+
return new Promise((resolve, reject) => {
|
|
4305
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4306
|
+
if (error) {
|
|
4307
|
+
reject(error);
|
|
4308
|
+
}
|
|
4309
|
+
else {
|
|
4310
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
4311
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4312
|
+
resolve({ response: response, body: body });
|
|
4313
|
+
}
|
|
4314
|
+
else {
|
|
4315
|
+
reject({ response: response, body: body });
|
|
4316
|
+
}
|
|
4317
|
+
}
|
|
4318
|
+
});
|
|
4319
|
+
});
|
|
4320
|
+
}
|
|
4146
4321
|
}
|
|
4147
4322
|
exports.AvaConversionApi = AvaConversionApi;
|
|
4148
4323
|
var DanglIdentityApiApiKeys;
|
|
@@ -4500,6 +4675,115 @@ class DanglIdentityApi {
|
|
|
4500
4675
|
}
|
|
4501
4676
|
}
|
|
4502
4677
|
exports.DanglIdentityApi = DanglIdentityApi;
|
|
4678
|
+
var DatanormConversionApiApiKeys;
|
|
4679
|
+
(function (DatanormConversionApiApiKeys) {
|
|
4680
|
+
})(DatanormConversionApiApiKeys = exports.DatanormConversionApiApiKeys || (exports.DatanormConversionApiApiKeys = {}));
|
|
4681
|
+
class DatanormConversionApi {
|
|
4682
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
4683
|
+
this._basePath = defaultBasePath;
|
|
4684
|
+
this.defaultHeaders = {};
|
|
4685
|
+
this._useQuerystring = false;
|
|
4686
|
+
this.authentications = {
|
|
4687
|
+
'default': new VoidAuth(),
|
|
4688
|
+
'Dangl.Identity': new OAuth(),
|
|
4689
|
+
};
|
|
4690
|
+
if (password) {
|
|
4691
|
+
if (basePath) {
|
|
4692
|
+
this.basePath = basePath;
|
|
4693
|
+
}
|
|
4694
|
+
}
|
|
4695
|
+
else {
|
|
4696
|
+
if (basePathOrUsername) {
|
|
4697
|
+
this.basePath = basePathOrUsername;
|
|
4698
|
+
}
|
|
4699
|
+
}
|
|
4700
|
+
}
|
|
4701
|
+
set useQuerystring(value) {
|
|
4702
|
+
this._useQuerystring = value;
|
|
4703
|
+
}
|
|
4704
|
+
set basePath(basePath) {
|
|
4705
|
+
this._basePath = basePath;
|
|
4706
|
+
}
|
|
4707
|
+
get basePath() {
|
|
4708
|
+
return this._basePath;
|
|
4709
|
+
}
|
|
4710
|
+
setDefaultAuthentication(auth) {
|
|
4711
|
+
this.authentications.default = auth;
|
|
4712
|
+
}
|
|
4713
|
+
setApiKey(key, value) {
|
|
4714
|
+
this.authentications[DatanormConversionApiApiKeys[key]].apiKey = value;
|
|
4715
|
+
}
|
|
4716
|
+
set accessToken(token) {
|
|
4717
|
+
this.authentications['Dangl.Identity'].accessToken = token;
|
|
4718
|
+
}
|
|
4719
|
+
/**
|
|
4720
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4721
|
+
*/
|
|
4722
|
+
datanormConversionConvertToAvaWithRequestObject(datanormFile, options) {
|
|
4723
|
+
return this.datanormConversionConvertToAva(datanormFile, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
|
|
4724
|
+
}
|
|
4725
|
+
/**
|
|
4726
|
+
*
|
|
4727
|
+
* @summary Converts Datanorm files to Dangl.AVA projects
|
|
4728
|
+
* @param datanormFile The input file
|
|
4729
|
+
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
4730
|
+
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
4731
|
+
* @param {*} [options] Override http request options.
|
|
4732
|
+
*/
|
|
4733
|
+
datanormConversionConvertToAva(datanormFile, removePlainTextLongTexts, removeHtmlLongTexts, options = {}) {
|
|
4734
|
+
const localVarPath = this.basePath + '/conversion/datanorm/ava';
|
|
4735
|
+
let localVarQueryParameters = {};
|
|
4736
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
4737
|
+
let localVarFormParams = {};
|
|
4738
|
+
if (removePlainTextLongTexts !== undefined) {
|
|
4739
|
+
localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
|
|
4740
|
+
}
|
|
4741
|
+
if (removeHtmlLongTexts !== undefined) {
|
|
4742
|
+
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
4743
|
+
}
|
|
4744
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4745
|
+
let localVarUseFormData = false;
|
|
4746
|
+
if (datanormFile !== undefined) {
|
|
4747
|
+
localVarFormParams['datanormFile'] = datanormFile;
|
|
4748
|
+
}
|
|
4749
|
+
localVarUseFormData = true;
|
|
4750
|
+
let localVarRequestOptions = {
|
|
4751
|
+
method: 'POST',
|
|
4752
|
+
qs: localVarQueryParameters,
|
|
4753
|
+
headers: localVarHeaderParams,
|
|
4754
|
+
uri: localVarPath,
|
|
4755
|
+
useQuerystring: this._useQuerystring,
|
|
4756
|
+
json: true,
|
|
4757
|
+
};
|
|
4758
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
4759
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
4760
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4761
|
+
if (localVarUseFormData) {
|
|
4762
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4763
|
+
}
|
|
4764
|
+
else {
|
|
4765
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4766
|
+
}
|
|
4767
|
+
}
|
|
4768
|
+
return new Promise((resolve, reject) => {
|
|
4769
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4770
|
+
if (error) {
|
|
4771
|
+
reject(error);
|
|
4772
|
+
}
|
|
4773
|
+
else {
|
|
4774
|
+
body = ObjectSerializer.deserialize(body, "ProjectDto");
|
|
4775
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4776
|
+
resolve({ response: response, body: body });
|
|
4777
|
+
}
|
|
4778
|
+
else {
|
|
4779
|
+
reject({ response: response, body: body });
|
|
4780
|
+
}
|
|
4781
|
+
}
|
|
4782
|
+
});
|
|
4783
|
+
});
|
|
4784
|
+
}
|
|
4785
|
+
}
|
|
4786
|
+
exports.DatanormConversionApi = DatanormConversionApi;
|
|
4503
4787
|
var ExcelConversionApiApiKeys;
|
|
4504
4788
|
(function (ExcelConversionApiApiKeys) {
|
|
4505
4789
|
})(ExcelConversionApiApiKeys = exports.ExcelConversionApiApiKeys || (exports.ExcelConversionApiApiKeys = {}));
|
|
@@ -4916,7 +5200,7 @@ class GaebConversionApi {
|
|
|
4916
5200
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4917
5201
|
*/
|
|
4918
5202
|
gaebConversionConvertToAvaWithRequestObject(gaebFile, options) {
|
|
4919
|
-
return this.gaebConversionConvertToAva(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.options || {});
|
|
5203
|
+
return this.gaebConversionConvertToAva(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
4920
5204
|
}
|
|
4921
5205
|
/**
|
|
4922
5206
|
*
|
|
@@ -4927,9 +5211,10 @@ class GaebConversionApi {
|
|
|
4927
5211
|
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
4928
5212
|
* @param outputHtmlAsXml Defaults to 'false'. If this is enabled, then Html text will be output as XML in the output. This means that e.g. void Html tags will always be output with their closing tag, e.g. it will produce '<br />' instead of '<br>'.
|
|
4929
5213
|
* @param keepEmptyHtmlText Defaults to 'false'. If this is enabled, then Html text that is empty will be kept in the output. Otherwise, Html text without any plain text will be removed. This is useful for example if you want to keep texts that only consist of empty paragraphs in the output.
|
|
5214
|
+
* @param allowUpperCaseItemNumbers Defaults to 'false'. If this is enabled, then the ItemNumber of positions will be in uppercase format if the source file has them. By default, all item numbers will be converted to lowercase, but this option will enable the option to support uppercase item numbers as well.
|
|
4930
5215
|
* @param {*} [options] Override http request options.
|
|
4931
5216
|
*/
|
|
4932
|
-
gaebConversionConvertToAva(gaebFile, supportSkippedItemNumberLevelsInPositions, removePlainTextLongTexts, removeHtmlLongTexts, outputHtmlAsXml, keepEmptyHtmlText, options = {}) {
|
|
5217
|
+
gaebConversionConvertToAva(gaebFile, supportSkippedItemNumberLevelsInPositions, removePlainTextLongTexts, removeHtmlLongTexts, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, options = {}) {
|
|
4933
5218
|
const localVarPath = this.basePath + '/conversion/gaeb/ava';
|
|
4934
5219
|
let localVarQueryParameters = {};
|
|
4935
5220
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -4949,6 +5234,9 @@ class GaebConversionApi {
|
|
|
4949
5234
|
if (keepEmptyHtmlText !== undefined) {
|
|
4950
5235
|
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
4951
5236
|
}
|
|
5237
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
5238
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
5239
|
+
}
|
|
4952
5240
|
Object.assign(localVarHeaderParams, options.headers);
|
|
4953
5241
|
let localVarUseFormData = false;
|
|
4954
5242
|
if (gaebFile !== undefined) {
|
|
@@ -4994,7 +5282,7 @@ class GaebConversionApi {
|
|
|
4994
5282
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4995
5283
|
*/
|
|
4996
5284
|
gaebConversionConvertToExcelWithRequestObject(gaebFile, options) {
|
|
4997
|
-
return this.gaebConversionConvertToExcel(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.writePrices, options.writeLongTexts, options.conversionCulture, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.options || {});
|
|
5285
|
+
return this.gaebConversionConvertToExcel(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.writePrices, options.writeLongTexts, options.conversionCulture, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
4998
5286
|
}
|
|
4999
5287
|
/**
|
|
5000
5288
|
*
|
|
@@ -5006,9 +5294,10 @@ class GaebConversionApi {
|
|
|
5006
5294
|
* @param conversionCulture The culture that should be used for the conversion process, to have localized Excel files
|
|
5007
5295
|
* @param outputHtmlAsXml Defaults to 'false'. If this is enabled, then Html text will be output as XML in the output. This means that e.g. void Html tags will always be output with their closing tag, e.g. it will produce '<br />' instead of '<br>'.
|
|
5008
5296
|
* @param keepEmptyHtmlText Defaults to 'false'. If this is enabled, then Html text that is empty will be kept in the output. Otherwise, Html text without any plain text will be removed. This is useful for example if you want to keep texts that only consist of empty paragraphs in the output.
|
|
5297
|
+
* @param allowUpperCaseItemNumbers Defaults to 'false'. If this is enabled, then the ItemNumber of positions will be in uppercase format if the source file has them. By default, all item numbers will be converted to lowercase, but this option will enable the option to support uppercase item numbers as well.
|
|
5009
5298
|
* @param {*} [options] Override http request options.
|
|
5010
5299
|
*/
|
|
5011
|
-
gaebConversionConvertToExcel(gaebFile, supportSkippedItemNumberLevelsInPositions, writePrices, writeLongTexts, conversionCulture, outputHtmlAsXml, keepEmptyHtmlText, options = {}) {
|
|
5300
|
+
gaebConversionConvertToExcel(gaebFile, supportSkippedItemNumberLevelsInPositions, writePrices, writeLongTexts, conversionCulture, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, options = {}) {
|
|
5012
5301
|
const localVarPath = this.basePath + '/conversion/gaeb/excel';
|
|
5013
5302
|
let localVarQueryParameters = {};
|
|
5014
5303
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -5031,6 +5320,9 @@ class GaebConversionApi {
|
|
|
5031
5320
|
if (keepEmptyHtmlText !== undefined) {
|
|
5032
5321
|
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
5033
5322
|
}
|
|
5323
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
5324
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
5325
|
+
}
|
|
5034
5326
|
Object.assign(localVarHeaderParams, options.headers);
|
|
5035
5327
|
let localVarUseFormData = false;
|
|
5036
5328
|
if (gaebFile !== undefined) {
|
|
@@ -5076,7 +5368,7 @@ class GaebConversionApi {
|
|
|
5076
5368
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
5077
5369
|
*/
|
|
5078
5370
|
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 || {});
|
|
5371
|
+
return this.gaebConversionConvertToGaeb(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationGaebType, options.targetExchangePhaseTransform, options.enforceStrictOfferPhaseLongTextOutput, options.exportQuantityDetermination, options.removeUnprintableCharactersFromTexts, options.forceIncludeDescriptions, options.treatNullItemNumberSchemaAsInvalid, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
5080
5372
|
}
|
|
5081
5373
|
/**
|
|
5082
5374
|
*
|
|
@@ -5092,9 +5384,10 @@ class GaebConversionApi {
|
|
|
5092
5384
|
* @param treatNullItemNumberSchemaAsInvalid When exporting to GAEB, an item number schema is usually required. AVACloud will try to fix invalid item number schemas. With this setting, you can also tell AVACloud to treat a null value as invalid. Otherwise, null schemas will simply be ignored and not lead to any schema being generated. It is recommended to enable this option, but it is disabled by default for compatibility reasons.
|
|
5093
5385
|
* @param outputHtmlAsXml Defaults to 'false'. If this is enabled, then Html text will be output as XML in the output. This means that e.g. void Html tags will always be output with their closing tag, e.g. it will produce '<br />' instead of '<br>'.
|
|
5094
5386
|
* @param keepEmptyHtmlText Defaults to 'false'. If this is enabled, then Html text that is empty will be kept in the output. Otherwise, Html text without any plain text will be removed. This is useful for example if you want to keep texts that only consist of empty paragraphs in the output.
|
|
5387
|
+
* @param allowUpperCaseItemNumbers Defaults to 'false'. If this is enabled, then the ItemNumber of positions will be in uppercase format if the source file has them. By default, all item numbers will be converted to lowercase, but this option will enable the option to support uppercase item numbers as well.
|
|
5095
5388
|
* @param {*} [options] Override http request options.
|
|
5096
5389
|
*/
|
|
5097
|
-
gaebConversionConvertToGaeb(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, treatNullItemNumberSchemaAsInvalid, outputHtmlAsXml, keepEmptyHtmlText, options = {}) {
|
|
5390
|
+
gaebConversionConvertToGaeb(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, treatNullItemNumberSchemaAsInvalid, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, options = {}) {
|
|
5098
5391
|
const localVarPath = this.basePath + '/conversion/gaeb/gaeb';
|
|
5099
5392
|
let localVarQueryParameters = {};
|
|
5100
5393
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -5129,6 +5422,9 @@ class GaebConversionApi {
|
|
|
5129
5422
|
if (keepEmptyHtmlText !== undefined) {
|
|
5130
5423
|
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
5131
5424
|
}
|
|
5425
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
5426
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
5427
|
+
}
|
|
5132
5428
|
Object.assign(localVarHeaderParams, options.headers);
|
|
5133
5429
|
let localVarUseFormData = false;
|
|
5134
5430
|
if (gaebFile !== undefined) {
|
|
@@ -5174,7 +5470,7 @@ class GaebConversionApi {
|
|
|
5174
5470
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
5175
5471
|
*/
|
|
5176
5472
|
gaebConversionConvertToOenormWithRequestObject(gaebFile, options) {
|
|
5177
|
-
return this.gaebConversionConvertToOenorm(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationOenormType, options.tryRepairProjectStructure, options.skipTryEnforceSchemaCompliantXmlOutput, options.removeUnprintableCharactersFromTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.options || {});
|
|
5473
|
+
return this.gaebConversionConvertToOenorm(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationOenormType, options.tryRepairProjectStructure, options.skipTryEnforceSchemaCompliantXmlOutput, options.removeUnprintableCharactersFromTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
5178
5474
|
}
|
|
5179
5475
|
/**
|
|
5180
5476
|
*
|
|
@@ -5187,9 +5483,10 @@ class GaebConversionApi {
|
|
|
5187
5483
|
* @param removeUnprintableCharactersFromTexts If this is enabled, unprintable characters are removed from text elements. Otherwise, the conversion might fail in case some text content contains characters that are not allowed in XML output formats. Defaults to true.
|
|
5188
5484
|
* @param outputHtmlAsXml Defaults to 'false'. If this is enabled, then Html text will be output as XML in the output. This means that e.g. void Html tags will always be output with their closing tag, e.g. it will produce '<br />' instead of '<br>'.
|
|
5189
5485
|
* @param keepEmptyHtmlText Defaults to 'false'. If this is enabled, then Html text that is empty will be kept in the output. Otherwise, Html text without any plain text will be removed. This is useful for example if you want to keep texts that only consist of empty paragraphs in the output.
|
|
5486
|
+
* @param allowUpperCaseItemNumbers Defaults to 'false'. If this is enabled, then the ItemNumber of positions will be in uppercase format if the source file has them. By default, all item numbers will be converted to lowercase, but this option will enable the option to support uppercase item numbers as well.
|
|
5190
5487
|
* @param {*} [options] Override http request options.
|
|
5191
5488
|
*/
|
|
5192
|
-
gaebConversionConvertToOenorm(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, outputHtmlAsXml, keepEmptyHtmlText, options = {}) {
|
|
5489
|
+
gaebConversionConvertToOenorm(gaebFile, supportSkippedItemNumberLevelsInPositions, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, outputHtmlAsXml, keepEmptyHtmlText, allowUpperCaseItemNumbers, options = {}) {
|
|
5193
5490
|
const localVarPath = this.basePath + '/conversion/gaeb/oenorm';
|
|
5194
5491
|
let localVarQueryParameters = {};
|
|
5195
5492
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -5215,6 +5512,9 @@ class GaebConversionApi {
|
|
|
5215
5512
|
if (keepEmptyHtmlText !== undefined) {
|
|
5216
5513
|
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
5217
5514
|
}
|
|
5515
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
5516
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
5517
|
+
}
|
|
5218
5518
|
Object.assign(localVarHeaderParams, options.headers);
|
|
5219
5519
|
let localVarUseFormData = false;
|
|
5220
5520
|
if (gaebFile !== undefined) {
|
|
@@ -6365,6 +6665,115 @@ class StatusApi {
|
|
|
6365
6665
|
}
|
|
6366
6666
|
}
|
|
6367
6667
|
exports.StatusApi = StatusApi;
|
|
6668
|
+
var UglConversionApiApiKeys;
|
|
6669
|
+
(function (UglConversionApiApiKeys) {
|
|
6670
|
+
})(UglConversionApiApiKeys = exports.UglConversionApiApiKeys || (exports.UglConversionApiApiKeys = {}));
|
|
6671
|
+
class UglConversionApi {
|
|
6672
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
6673
|
+
this._basePath = defaultBasePath;
|
|
6674
|
+
this.defaultHeaders = {};
|
|
6675
|
+
this._useQuerystring = false;
|
|
6676
|
+
this.authentications = {
|
|
6677
|
+
'default': new VoidAuth(),
|
|
6678
|
+
'Dangl.Identity': new OAuth(),
|
|
6679
|
+
};
|
|
6680
|
+
if (password) {
|
|
6681
|
+
if (basePath) {
|
|
6682
|
+
this.basePath = basePath;
|
|
6683
|
+
}
|
|
6684
|
+
}
|
|
6685
|
+
else {
|
|
6686
|
+
if (basePathOrUsername) {
|
|
6687
|
+
this.basePath = basePathOrUsername;
|
|
6688
|
+
}
|
|
6689
|
+
}
|
|
6690
|
+
}
|
|
6691
|
+
set useQuerystring(value) {
|
|
6692
|
+
this._useQuerystring = value;
|
|
6693
|
+
}
|
|
6694
|
+
set basePath(basePath) {
|
|
6695
|
+
this._basePath = basePath;
|
|
6696
|
+
}
|
|
6697
|
+
get basePath() {
|
|
6698
|
+
return this._basePath;
|
|
6699
|
+
}
|
|
6700
|
+
setDefaultAuthentication(auth) {
|
|
6701
|
+
this.authentications.default = auth;
|
|
6702
|
+
}
|
|
6703
|
+
setApiKey(key, value) {
|
|
6704
|
+
this.authentications[UglConversionApiApiKeys[key]].apiKey = value;
|
|
6705
|
+
}
|
|
6706
|
+
set accessToken(token) {
|
|
6707
|
+
this.authentications['Dangl.Identity'].accessToken = token;
|
|
6708
|
+
}
|
|
6709
|
+
/**
|
|
6710
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6711
|
+
*/
|
|
6712
|
+
uglConversionConvertToAvaWithRequestObject(uglFile, options) {
|
|
6713
|
+
return this.uglConversionConvertToAva(uglFile, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
|
|
6714
|
+
}
|
|
6715
|
+
/**
|
|
6716
|
+
*
|
|
6717
|
+
* @summary Converts Ugl files to Dangl.AVA projects
|
|
6718
|
+
* @param uglFile The input file
|
|
6719
|
+
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
6720
|
+
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
6721
|
+
* @param {*} [options] Override http request options.
|
|
6722
|
+
*/
|
|
6723
|
+
uglConversionConvertToAva(uglFile, removePlainTextLongTexts, removeHtmlLongTexts, options = {}) {
|
|
6724
|
+
const localVarPath = this.basePath + '/conversion/ugl/ava';
|
|
6725
|
+
let localVarQueryParameters = {};
|
|
6726
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
6727
|
+
let localVarFormParams = {};
|
|
6728
|
+
if (removePlainTextLongTexts !== undefined) {
|
|
6729
|
+
localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
|
|
6730
|
+
}
|
|
6731
|
+
if (removeHtmlLongTexts !== undefined) {
|
|
6732
|
+
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
6733
|
+
}
|
|
6734
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
6735
|
+
let localVarUseFormData = false;
|
|
6736
|
+
if (uglFile !== undefined) {
|
|
6737
|
+
localVarFormParams['uglFile'] = uglFile;
|
|
6738
|
+
}
|
|
6739
|
+
localVarUseFormData = true;
|
|
6740
|
+
let localVarRequestOptions = {
|
|
6741
|
+
method: 'POST',
|
|
6742
|
+
qs: localVarQueryParameters,
|
|
6743
|
+
headers: localVarHeaderParams,
|
|
6744
|
+
uri: localVarPath,
|
|
6745
|
+
useQuerystring: this._useQuerystring,
|
|
6746
|
+
json: true,
|
|
6747
|
+
};
|
|
6748
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
6749
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
6750
|
+
if (Object.keys(localVarFormParams).length) {
|
|
6751
|
+
if (localVarUseFormData) {
|
|
6752
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
6753
|
+
}
|
|
6754
|
+
else {
|
|
6755
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
6756
|
+
}
|
|
6757
|
+
}
|
|
6758
|
+
return new Promise((resolve, reject) => {
|
|
6759
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6760
|
+
if (error) {
|
|
6761
|
+
reject(error);
|
|
6762
|
+
}
|
|
6763
|
+
else {
|
|
6764
|
+
body = ObjectSerializer.deserialize(body, "ProjectDto");
|
|
6765
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6766
|
+
resolve({ response: response, body: body });
|
|
6767
|
+
}
|
|
6768
|
+
else {
|
|
6769
|
+
reject({ response: response, body: body });
|
|
6770
|
+
}
|
|
6771
|
+
}
|
|
6772
|
+
});
|
|
6773
|
+
});
|
|
6774
|
+
}
|
|
6775
|
+
}
|
|
6776
|
+
exports.UglConversionApi = UglConversionApi;
|
|
6368
6777
|
var ValidationApiApiKeys;
|
|
6369
6778
|
(function (ValidationApiApiKeys) {
|
|
6370
6779
|
})(ValidationApiApiKeys = exports.ValidationApiApiKeys || (exports.ValidationApiApiKeys = {}));
|