@dangl/avacloud-client-node 1.45.0-beta0010-avacloud-preview → 1.46.0-avacloud-preview
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.swagger-codegen/VERSION +1 -1
- package/api.d.ts +515 -2
- package/api.js +1584 -75
- package/api.js.map +1 -1
- package/api.ts +1796 -117
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* AVACloud API 1.
|
|
2
|
+
* AVACloud API 1.46.0
|
|
3
3
|
* AVACloud API specification
|
|
4
4
|
*
|
|
5
|
-
* OpenAPI spec version: 1.
|
|
5
|
+
* OpenAPI spec version: 1.46.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
@@ -588,6 +588,35 @@ export class CatalogueTypeDto {
|
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
+
export class ClaimGet {
|
|
592
|
+
'issuer'?: string;
|
|
593
|
+
'type'?: string;
|
|
594
|
+
'value'?: string;
|
|
595
|
+
|
|
596
|
+
static discriminator: string | undefined = undefined;
|
|
597
|
+
|
|
598
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
599
|
+
{
|
|
600
|
+
"name": "issuer",
|
|
601
|
+
"baseName": "issuer",
|
|
602
|
+
"type": "string"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"name": "type",
|
|
606
|
+
"baseName": "type",
|
|
607
|
+
"type": "string"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "value",
|
|
611
|
+
"baseName": "value",
|
|
612
|
+
"type": "string"
|
|
613
|
+
} ];
|
|
614
|
+
|
|
615
|
+
static getAttributeTypeMap() {
|
|
616
|
+
return ClaimGet.attributeTypeMap;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
591
620
|
/**
|
|
592
621
|
* Indicates if this service specification item is commissioned (and therefore should be executed), postponed for later or undefined.
|
|
593
622
|
*/
|
|
@@ -959,6 +988,79 @@ export class FileValidationSourceType {
|
|
|
959
988
|
}
|
|
960
989
|
}
|
|
961
990
|
|
|
991
|
+
/**
|
|
992
|
+
* This model contains a flattened represention of an AVA project, which makes it easy to use in systems that expect elements in a list form.
|
|
993
|
+
*/
|
|
994
|
+
export class FlatAvaProject {
|
|
995
|
+
/**
|
|
996
|
+
* The original project, including the service specification, but no elements.
|
|
997
|
+
*/
|
|
998
|
+
'project'?: ProjectDto;
|
|
999
|
+
/**
|
|
1000
|
+
* The flattened elements of the project.
|
|
1001
|
+
*/
|
|
1002
|
+
'elements'?: Array<FlatElementDto>;
|
|
1003
|
+
|
|
1004
|
+
static discriminator: string | undefined = undefined;
|
|
1005
|
+
|
|
1006
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
1007
|
+
{
|
|
1008
|
+
"name": "project",
|
|
1009
|
+
"baseName": "project",
|
|
1010
|
+
"type": "ProjectDto"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"name": "elements",
|
|
1014
|
+
"baseName": "elements",
|
|
1015
|
+
"type": "Array<FlatElementDto>"
|
|
1016
|
+
} ];
|
|
1017
|
+
|
|
1018
|
+
static getAttributeTypeMap() {
|
|
1019
|
+
return FlatAvaProject.attributeTypeMap;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* This model contains a flattened represention of an AVA project, which
|
|
1025
|
+
*/
|
|
1026
|
+
export class FlatElementDto {
|
|
1027
|
+
/**
|
|
1028
|
+
* If this is not null, then this contains the id of the previous element in the hierarchy on the same level.
|
|
1029
|
+
*/
|
|
1030
|
+
'previousElementId'?: string;
|
|
1031
|
+
/**
|
|
1032
|
+
* If this is not null, then this contains the id of the parent element.
|
|
1033
|
+
*/
|
|
1034
|
+
'parentElementId'?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* The element itself.
|
|
1037
|
+
*/
|
|
1038
|
+
'element'?: IElementDto;
|
|
1039
|
+
|
|
1040
|
+
static discriminator: string | undefined = undefined;
|
|
1041
|
+
|
|
1042
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
1043
|
+
{
|
|
1044
|
+
"name": "previousElementId",
|
|
1045
|
+
"baseName": "previousElementId",
|
|
1046
|
+
"type": "string"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"name": "parentElementId",
|
|
1050
|
+
"baseName": "parentElementId",
|
|
1051
|
+
"type": "string"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"name": "element",
|
|
1055
|
+
"baseName": "element",
|
|
1056
|
+
"type": "IElementDto"
|
|
1057
|
+
} ];
|
|
1058
|
+
|
|
1059
|
+
static getAttributeTypeMap() {
|
|
1060
|
+
return FlatElementDto.attributeTypeMap;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
|
|
962
1064
|
export class ForgotPasswordPost {
|
|
963
1065
|
'identifier': string;
|
|
964
1066
|
'preferredLanguages'?: Array<string>;
|
|
@@ -4981,6 +5083,71 @@ export class UglDestinationVersion {
|
|
|
4981
5083
|
}
|
|
4982
5084
|
}
|
|
4983
5085
|
|
|
5086
|
+
export class UserInfoGet {
|
|
5087
|
+
'userIsAuthenticated': boolean;
|
|
5088
|
+
'clientIsAuthenticated': boolean;
|
|
5089
|
+
'currentUserId'?: string;
|
|
5090
|
+
'currentUserIdenticonId'?: string;
|
|
5091
|
+
'currentUserName'?: string;
|
|
5092
|
+
'currentUserEmail'?: string;
|
|
5093
|
+
'currentClientId'?: string;
|
|
5094
|
+
'userClaims'?: Array<ClaimGet>;
|
|
5095
|
+
'clientClaims'?: Array<ClaimGet>;
|
|
5096
|
+
|
|
5097
|
+
static discriminator: string | undefined = undefined;
|
|
5098
|
+
|
|
5099
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
5100
|
+
{
|
|
5101
|
+
"name": "userIsAuthenticated",
|
|
5102
|
+
"baseName": "userIsAuthenticated",
|
|
5103
|
+
"type": "boolean"
|
|
5104
|
+
},
|
|
5105
|
+
{
|
|
5106
|
+
"name": "clientIsAuthenticated",
|
|
5107
|
+
"baseName": "clientIsAuthenticated",
|
|
5108
|
+
"type": "boolean"
|
|
5109
|
+
},
|
|
5110
|
+
{
|
|
5111
|
+
"name": "currentUserId",
|
|
5112
|
+
"baseName": "currentUserId",
|
|
5113
|
+
"type": "string"
|
|
5114
|
+
},
|
|
5115
|
+
{
|
|
5116
|
+
"name": "currentUserIdenticonId",
|
|
5117
|
+
"baseName": "currentUserIdenticonId",
|
|
5118
|
+
"type": "string"
|
|
5119
|
+
},
|
|
5120
|
+
{
|
|
5121
|
+
"name": "currentUserName",
|
|
5122
|
+
"baseName": "currentUserName",
|
|
5123
|
+
"type": "string"
|
|
5124
|
+
},
|
|
5125
|
+
{
|
|
5126
|
+
"name": "currentUserEmail",
|
|
5127
|
+
"baseName": "currentUserEmail",
|
|
5128
|
+
"type": "string"
|
|
5129
|
+
},
|
|
5130
|
+
{
|
|
5131
|
+
"name": "currentClientId",
|
|
5132
|
+
"baseName": "currentClientId",
|
|
5133
|
+
"type": "string"
|
|
5134
|
+
},
|
|
5135
|
+
{
|
|
5136
|
+
"name": "userClaims",
|
|
5137
|
+
"baseName": "userClaims",
|
|
5138
|
+
"type": "Array<ClaimGet>"
|
|
5139
|
+
},
|
|
5140
|
+
{
|
|
5141
|
+
"name": "clientClaims",
|
|
5142
|
+
"baseName": "clientClaims",
|
|
5143
|
+
"type": "Array<ClaimGet>"
|
|
5144
|
+
} ];
|
|
5145
|
+
|
|
5146
|
+
static getAttributeTypeMap() {
|
|
5147
|
+
return UserInfoGet.attributeTypeMap;
|
|
5148
|
+
}
|
|
5149
|
+
}
|
|
5150
|
+
|
|
4984
5151
|
/**
|
|
4985
5152
|
* This class models the results of a single check performed during a validation action
|
|
4986
5153
|
*/
|
|
@@ -5223,6 +5390,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
5223
5390
|
"CatalogueDto": CatalogueDto,
|
|
5224
5391
|
"CatalogueReferenceDto": CatalogueReferenceDto,
|
|
5225
5392
|
"CatalogueTypeDto": CatalogueTypeDto,
|
|
5393
|
+
"ClaimGet": ClaimGet,
|
|
5226
5394
|
"ComissionStatusDto": ComissionStatusDto,
|
|
5227
5395
|
"CommerceInquiryTypeDto": CommerceInquiryTypeDto,
|
|
5228
5396
|
"CommercePropertiesDto": CommercePropertiesDto,
|
|
@@ -5236,6 +5404,8 @@ let typeMap: {[index: string]: any} = {
|
|
|
5236
5404
|
"ExchangePhaseDto": ExchangePhaseDto,
|
|
5237
5405
|
"ExecutionDescriptionDto": ExecutionDescriptionDto,
|
|
5238
5406
|
"FileValidationSourceType": FileValidationSourceType,
|
|
5407
|
+
"FlatAvaProject": FlatAvaProject,
|
|
5408
|
+
"FlatElementDto": FlatElementDto,
|
|
5239
5409
|
"ForgotPasswordPost": ForgotPasswordPost,
|
|
5240
5410
|
"GetStatus": GetStatus,
|
|
5241
5411
|
"GrossPriceComponentDto": GrossPriceComponentDto,
|
|
@@ -5296,6 +5466,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
5296
5466
|
"TokenResponseGet": TokenResponseGet,
|
|
5297
5467
|
"TradeDiscountDto": TradeDiscountDto,
|
|
5298
5468
|
"UglDestinationVersion": UglDestinationVersion,
|
|
5469
|
+
"UserInfoGet": UserInfoGet,
|
|
5299
5470
|
"ValidationCheckResult": ValidationCheckResult,
|
|
5300
5471
|
"ValidationCheckType": ValidationCheckType,
|
|
5301
5472
|
"ValidationResult": ValidationResult,
|
|
@@ -5560,6 +5731,62 @@ export class AslvConversionApi {
|
|
|
5560
5731
|
});
|
|
5561
5732
|
});
|
|
5562
5733
|
}
|
|
5734
|
+
/**
|
|
5735
|
+
*
|
|
5736
|
+
* @summary Converts Aslv files to Dangl.AVA projects
|
|
5737
|
+
* @param aslvFile The input file
|
|
5738
|
+
* @param {*} [options] Override http request options.
|
|
5739
|
+
*/
|
|
5740
|
+
public aslvConversionConvertToFlatAva (aslvFile: FileParameter, options: any = {}) : Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> {
|
|
5741
|
+
const localVarPath = this.basePath + '/conversion/aslv/flat-ava';
|
|
5742
|
+
let localVarQueryParameters: any = {};
|
|
5743
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
5744
|
+
let localVarFormParams: any = {};
|
|
5745
|
+
|
|
5746
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
5747
|
+
|
|
5748
|
+
let localVarUseFormData = false;
|
|
5749
|
+
|
|
5750
|
+
if (aslvFile !== undefined) {
|
|
5751
|
+
localVarFormParams['aslvFile'] = aslvFile;
|
|
5752
|
+
}
|
|
5753
|
+
localVarUseFormData = true;
|
|
5754
|
+
|
|
5755
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
5756
|
+
method: 'POST',
|
|
5757
|
+
qs: localVarQueryParameters,
|
|
5758
|
+
headers: localVarHeaderParams,
|
|
5759
|
+
uri: localVarPath,
|
|
5760
|
+
useQuerystring: this._useQuerystring,
|
|
5761
|
+
json: true,
|
|
5762
|
+
};
|
|
5763
|
+
|
|
5764
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
5765
|
+
|
|
5766
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
5767
|
+
|
|
5768
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5769
|
+
if (localVarUseFormData) {
|
|
5770
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
5771
|
+
} else {
|
|
5772
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5773
|
+
}
|
|
5774
|
+
}
|
|
5775
|
+
return new Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }>((resolve, reject) => {
|
|
5776
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5777
|
+
if (error) {
|
|
5778
|
+
reject(error);
|
|
5779
|
+
} else {
|
|
5780
|
+
body = ObjectSerializer.deserialize(body, "FlatAvaProject");
|
|
5781
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5782
|
+
resolve({ response: response, body: body });
|
|
5783
|
+
} else {
|
|
5784
|
+
reject({ response: response, body: body });
|
|
5785
|
+
}
|
|
5786
|
+
}
|
|
5787
|
+
});
|
|
5788
|
+
});
|
|
5789
|
+
}
|
|
5563
5790
|
/**
|
|
5564
5791
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
5565
5792
|
*/
|
|
@@ -6033,6 +6260,74 @@ export class AvaConversionApi {
|
|
|
6033
6260
|
/**
|
|
6034
6261
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6035
6262
|
*/
|
|
6263
|
+
public avaConversionConvertToFlatAvaWithRequestObject(avaProject: ProjectDto, options?: { tryAutoGenerateItemNumbersAndSchema?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> {
|
|
6264
|
+
return this.avaConversionConvertToFlatAva(avaProject, options?.tryAutoGenerateItemNumbersAndSchema, options?.options || {});
|
|
6265
|
+
}
|
|
6266
|
+
|
|
6267
|
+
/**
|
|
6268
|
+
*
|
|
6269
|
+
* @summary Converts Dangl.AVA projects to Dangl.AVA. This is useful when you want to generate the calculated properties.
|
|
6270
|
+
* @param avaProject The Dangl.AVA project
|
|
6271
|
+
* @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.
|
|
6272
|
+
* @param {*} [options] Override http request options.
|
|
6273
|
+
*/
|
|
6274
|
+
public avaConversionConvertToFlatAva (avaProject: ProjectDto, tryAutoGenerateItemNumbersAndSchema?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> { const localVarPath = this.basePath + '/conversion/ava/flat-ava';
|
|
6275
|
+
let localVarQueryParameters: any = {};
|
|
6276
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6277
|
+
let localVarFormParams: any = {};
|
|
6278
|
+
|
|
6279
|
+
// verify required parameter 'avaProject' is not null or undefined
|
|
6280
|
+
if (avaProject === null || avaProject === undefined) {
|
|
6281
|
+
throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToFlatAva.');
|
|
6282
|
+
}
|
|
6283
|
+
|
|
6284
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
6285
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
6286
|
+
}
|
|
6287
|
+
|
|
6288
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
6289
|
+
|
|
6290
|
+
let localVarUseFormData = false;
|
|
6291
|
+
|
|
6292
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
6293
|
+
method: 'POST',
|
|
6294
|
+
qs: localVarQueryParameters,
|
|
6295
|
+
headers: localVarHeaderParams,
|
|
6296
|
+
uri: localVarPath,
|
|
6297
|
+
useQuerystring: this._useQuerystring,
|
|
6298
|
+
json: true,
|
|
6299
|
+
body: avaProject
|
|
6300
|
+
};
|
|
6301
|
+
|
|
6302
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
6303
|
+
|
|
6304
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
6305
|
+
|
|
6306
|
+
if (Object.keys(localVarFormParams).length) {
|
|
6307
|
+
if (localVarUseFormData) {
|
|
6308
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
6309
|
+
} else {
|
|
6310
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
6311
|
+
}
|
|
6312
|
+
}
|
|
6313
|
+
return new Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }>((resolve, reject) => {
|
|
6314
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6315
|
+
if (error) {
|
|
6316
|
+
reject(error);
|
|
6317
|
+
} else {
|
|
6318
|
+
body = ObjectSerializer.deserialize(body, "FlatAvaProject");
|
|
6319
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6320
|
+
resolve({ response: response, body: body });
|
|
6321
|
+
} else {
|
|
6322
|
+
reject({ response: response, body: body });
|
|
6323
|
+
}
|
|
6324
|
+
}
|
|
6325
|
+
});
|
|
6326
|
+
});
|
|
6327
|
+
}
|
|
6328
|
+
/**
|
|
6329
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6330
|
+
*/
|
|
6036
6331
|
public avaConversionConvertToGaebWithRequestObject(avaProject: ProjectDto, options?: { tryAutoGenerateItemNumbersAndSchema?: boolean, destinationGaebType?: 'Gaeb90' | 'Gaeb2000' | 'Gaeb2000Commerce' | 'GaebXml_V3_1' | 'GaebXml_V3_2' | 'GaebXml_V3_2_Commerce' | 'GaebXml_V3_3' | 'GaebXml_V3_3_Commerce' | 'GaebXml_V3_3_2019' | 'GaebXml_V3_3_2019_Commerce', targetExchangePhaseTransform?: 'None' | 'Base' | 'OfferRequest' | 'Offer' | 'Grant' | 'CostEstimate' | 'SideOffer', enforceStrictOfferPhaseLongTextOutput?: boolean, exportQuantityDetermination?: boolean, removeUnprintableCharactersFromTexts?: boolean, forceIncludeDescriptions?: boolean, treatNullItemNumberSchemaAsInvalid?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
6037
6332
|
return this.avaConversionConvertToGaeb(avaProject, options?.tryAutoGenerateItemNumbersAndSchema, options?.destinationGaebType, options?.targetExchangePhaseTransform, options?.enforceStrictOfferPhaseLongTextOutput, options?.exportQuantityDetermination, options?.removeUnprintableCharactersFromTexts, options?.forceIncludeDescriptions, options?.treatNullItemNumberSchemaAsInvalid, options?.options || {});
|
|
6038
6333
|
}
|
|
@@ -6571,32 +6866,25 @@ export class DanglIdentityApi {
|
|
|
6571
6866
|
}
|
|
6572
6867
|
/**
|
|
6573
6868
|
*
|
|
6574
|
-
* @param model
|
|
6575
6869
|
* @param {*} [options] Override http request options.
|
|
6576
6870
|
*/
|
|
6577
|
-
public
|
|
6578
|
-
const localVarPath = this.basePath + '/identity/
|
|
6871
|
+
public danglIdentityGetUserInfo (options: any = {}) : Promise<{ response: http.IncomingMessage; body: UserInfoGet; }> {
|
|
6872
|
+
const localVarPath = this.basePath + '/identity/user-info';
|
|
6579
6873
|
let localVarQueryParameters: any = {};
|
|
6580
6874
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6581
6875
|
let localVarFormParams: any = {};
|
|
6582
6876
|
|
|
6583
|
-
// verify required parameter 'model' is not null or undefined
|
|
6584
|
-
if (model === null || model === undefined) {
|
|
6585
|
-
throw new Error('Required parameter model was null or undefined when calling danglIdentityLoginAndReturnToken.');
|
|
6586
|
-
}
|
|
6587
|
-
|
|
6588
6877
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
6589
6878
|
|
|
6590
6879
|
let localVarUseFormData = false;
|
|
6591
6880
|
|
|
6592
6881
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
6593
|
-
method: '
|
|
6882
|
+
method: 'GET',
|
|
6594
6883
|
qs: localVarQueryParameters,
|
|
6595
6884
|
headers: localVarHeaderParams,
|
|
6596
6885
|
uri: localVarPath,
|
|
6597
6886
|
useQuerystring: this._useQuerystring,
|
|
6598
6887
|
json: true,
|
|
6599
|
-
body: ObjectSerializer.serialize(model, "TokenLoginPost")
|
|
6600
6888
|
};
|
|
6601
6889
|
|
|
6602
6890
|
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
@@ -6610,12 +6898,12 @@ export class DanglIdentityApi {
|
|
|
6610
6898
|
localVarRequestOptions.form = localVarFormParams;
|
|
6611
6899
|
}
|
|
6612
6900
|
}
|
|
6613
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
6901
|
+
return new Promise<{ response: http.IncomingMessage; body: UserInfoGet; }>((resolve, reject) => {
|
|
6614
6902
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6615
6903
|
if (error) {
|
|
6616
6904
|
reject(error);
|
|
6617
6905
|
} else {
|
|
6618
|
-
body = ObjectSerializer.deserialize(body, "
|
|
6906
|
+
body = ObjectSerializer.deserialize(body, "UserInfoGet");
|
|
6619
6907
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6620
6908
|
resolve({ response: response, body: body });
|
|
6621
6909
|
} else {
|
|
@@ -6625,31 +6913,20 @@ export class DanglIdentityApi {
|
|
|
6625
6913
|
});
|
|
6626
6914
|
});
|
|
6627
6915
|
}
|
|
6628
|
-
/**
|
|
6629
|
-
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6630
|
-
*/
|
|
6631
|
-
public danglIdentityLoginWithCookieWithRequestObject(model: LoginPost, options?: { redirectUrl?: string, options?: any }): Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
6632
|
-
return this.danglIdentityLoginWithCookie(model, options?.redirectUrl, options?.options || {});
|
|
6633
|
-
}
|
|
6634
|
-
|
|
6635
6916
|
/**
|
|
6636
6917
|
*
|
|
6637
6918
|
* @param model
|
|
6638
|
-
* @param redirectUrl
|
|
6639
6919
|
* @param {*} [options] Override http request options.
|
|
6640
6920
|
*/
|
|
6641
|
-
public
|
|
6921
|
+
public danglIdentityLoginAndReturnToken (model: TokenLoginPost, options: any = {}) : Promise<{ response: http.IncomingMessage; body: TokenResponseGet; }> {
|
|
6922
|
+
const localVarPath = this.basePath + '/identity/token-login';
|
|
6642
6923
|
let localVarQueryParameters: any = {};
|
|
6643
6924
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6644
6925
|
let localVarFormParams: any = {};
|
|
6645
6926
|
|
|
6646
6927
|
// verify required parameter 'model' is not null or undefined
|
|
6647
6928
|
if (model === null || model === undefined) {
|
|
6648
|
-
throw new Error('Required parameter model was null or undefined when calling
|
|
6649
|
-
}
|
|
6650
|
-
|
|
6651
|
-
if (redirectUrl !== undefined) {
|
|
6652
|
-
localVarQueryParameters['redirectUrl'] = ObjectSerializer.serialize(redirectUrl, "string");
|
|
6929
|
+
throw new Error('Required parameter model was null or undefined when calling danglIdentityLoginAndReturnToken.');
|
|
6653
6930
|
}
|
|
6654
6931
|
|
|
6655
6932
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -6663,7 +6940,7 @@ export class DanglIdentityApi {
|
|
|
6663
6940
|
uri: localVarPath,
|
|
6664
6941
|
useQuerystring: this._useQuerystring,
|
|
6665
6942
|
json: true,
|
|
6666
|
-
body: ObjectSerializer.serialize(model, "
|
|
6943
|
+
body: ObjectSerializer.serialize(model, "TokenLoginPost")
|
|
6667
6944
|
};
|
|
6668
6945
|
|
|
6669
6946
|
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
@@ -6677,11 +6954,12 @@ export class DanglIdentityApi {
|
|
|
6677
6954
|
localVarRequestOptions.form = localVarFormParams;
|
|
6678
6955
|
}
|
|
6679
6956
|
}
|
|
6680
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
6957
|
+
return new Promise<{ response: http.IncomingMessage; body: TokenResponseGet; }>((resolve, reject) => {
|
|
6681
6958
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6682
6959
|
if (error) {
|
|
6683
6960
|
reject(error);
|
|
6684
6961
|
} else {
|
|
6962
|
+
body = ObjectSerializer.deserialize(body, "TokenResponseGet");
|
|
6685
6963
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6686
6964
|
resolve({ response: response, body: body });
|
|
6687
6965
|
} else {
|
|
@@ -6692,12 +6970,78 @@ export class DanglIdentityApi {
|
|
|
6692
6970
|
});
|
|
6693
6971
|
}
|
|
6694
6972
|
/**
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6973
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6974
|
+
*/
|
|
6975
|
+
public danglIdentityLoginWithCookieWithRequestObject(model: LoginPost, options?: { redirectUrl?: string, options?: any }): Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
6976
|
+
return this.danglIdentityLoginWithCookie(model, options?.redirectUrl, options?.options || {});
|
|
6977
|
+
}
|
|
6978
|
+
|
|
6979
|
+
/**
|
|
6980
|
+
*
|
|
6981
|
+
* @param model
|
|
6982
|
+
* @param redirectUrl
|
|
6983
|
+
* @param {*} [options] Override http request options.
|
|
6984
|
+
*/
|
|
6985
|
+
public danglIdentityLoginWithCookie (model: LoginPost, redirectUrl?: string, options: any = {}) : Promise<{ response: http.IncomingMessage; body?: any; }> { const localVarPath = this.basePath + '/identity/login';
|
|
6986
|
+
let localVarQueryParameters: any = {};
|
|
6987
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6988
|
+
let localVarFormParams: any = {};
|
|
6989
|
+
|
|
6990
|
+
// verify required parameter 'model' is not null or undefined
|
|
6991
|
+
if (model === null || model === undefined) {
|
|
6992
|
+
throw new Error('Required parameter model was null or undefined when calling danglIdentityLoginWithCookie.');
|
|
6993
|
+
}
|
|
6994
|
+
|
|
6995
|
+
if (redirectUrl !== undefined) {
|
|
6996
|
+
localVarQueryParameters['redirectUrl'] = ObjectSerializer.serialize(redirectUrl, "string");
|
|
6997
|
+
}
|
|
6998
|
+
|
|
6999
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
7000
|
+
|
|
7001
|
+
let localVarUseFormData = false;
|
|
7002
|
+
|
|
7003
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
7004
|
+
method: 'POST',
|
|
7005
|
+
qs: localVarQueryParameters,
|
|
7006
|
+
headers: localVarHeaderParams,
|
|
7007
|
+
uri: localVarPath,
|
|
7008
|
+
useQuerystring: this._useQuerystring,
|
|
7009
|
+
json: true,
|
|
7010
|
+
body: ObjectSerializer.serialize(model, "LoginPost")
|
|
7011
|
+
};
|
|
7012
|
+
|
|
7013
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
7014
|
+
|
|
7015
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
7016
|
+
|
|
7017
|
+
if (Object.keys(localVarFormParams).length) {
|
|
7018
|
+
if (localVarUseFormData) {
|
|
7019
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
7020
|
+
} else {
|
|
7021
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
7022
|
+
}
|
|
7023
|
+
}
|
|
7024
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
7025
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
7026
|
+
if (error) {
|
|
7027
|
+
reject(error);
|
|
7028
|
+
} else {
|
|
7029
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
7030
|
+
resolve({ response: response, body: body });
|
|
7031
|
+
} else {
|
|
7032
|
+
reject({ response: response, body: body });
|
|
7033
|
+
}
|
|
7034
|
+
}
|
|
7035
|
+
});
|
|
7036
|
+
});
|
|
7037
|
+
}
|
|
7038
|
+
/**
|
|
7039
|
+
*
|
|
7040
|
+
* @param model
|
|
7041
|
+
* @param {*} [options] Override http request options.
|
|
7042
|
+
*/
|
|
7043
|
+
public danglIdentityRefreshToken (model: TokenRefreshPost, options: any = {}) : Promise<{ response: http.IncomingMessage; body: TokenResponseGet; }> {
|
|
7044
|
+
const localVarPath = this.basePath + '/identity/token-refresh';
|
|
6701
7045
|
let localVarQueryParameters: any = {};
|
|
6702
7046
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6703
7047
|
let localVarFormParams: any = {};
|
|
@@ -7027,6 +7371,62 @@ export class DatanormConversionApi {
|
|
|
7027
7371
|
});
|
|
7028
7372
|
});
|
|
7029
7373
|
}
|
|
7374
|
+
/**
|
|
7375
|
+
*
|
|
7376
|
+
* @summary Converts Datanorm files to Dangl.AVA projects
|
|
7377
|
+
* @param datanormFile The input file
|
|
7378
|
+
* @param {*} [options] Override http request options.
|
|
7379
|
+
*/
|
|
7380
|
+
public datanormConversionConvertToFlatAva (datanormFile: FileParameter, options: any = {}) : Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> {
|
|
7381
|
+
const localVarPath = this.basePath + '/conversion/datanorm/flat-ava';
|
|
7382
|
+
let localVarQueryParameters: any = {};
|
|
7383
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
7384
|
+
let localVarFormParams: any = {};
|
|
7385
|
+
|
|
7386
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
7387
|
+
|
|
7388
|
+
let localVarUseFormData = false;
|
|
7389
|
+
|
|
7390
|
+
if (datanormFile !== undefined) {
|
|
7391
|
+
localVarFormParams['datanormFile'] = datanormFile;
|
|
7392
|
+
}
|
|
7393
|
+
localVarUseFormData = true;
|
|
7394
|
+
|
|
7395
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
7396
|
+
method: 'POST',
|
|
7397
|
+
qs: localVarQueryParameters,
|
|
7398
|
+
headers: localVarHeaderParams,
|
|
7399
|
+
uri: localVarPath,
|
|
7400
|
+
useQuerystring: this._useQuerystring,
|
|
7401
|
+
json: true,
|
|
7402
|
+
};
|
|
7403
|
+
|
|
7404
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
7405
|
+
|
|
7406
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
7407
|
+
|
|
7408
|
+
if (Object.keys(localVarFormParams).length) {
|
|
7409
|
+
if (localVarUseFormData) {
|
|
7410
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
7411
|
+
} else {
|
|
7412
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
7413
|
+
}
|
|
7414
|
+
}
|
|
7415
|
+
return new Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }>((resolve, reject) => {
|
|
7416
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
7417
|
+
if (error) {
|
|
7418
|
+
reject(error);
|
|
7419
|
+
} else {
|
|
7420
|
+
body = ObjectSerializer.deserialize(body, "FlatAvaProject");
|
|
7421
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
7422
|
+
resolve({ response: response, body: body });
|
|
7423
|
+
} else {
|
|
7424
|
+
reject({ response: response, body: body });
|
|
7425
|
+
}
|
|
7426
|
+
}
|
|
7427
|
+
});
|
|
7428
|
+
});
|
|
7429
|
+
}
|
|
7030
7430
|
}
|
|
7031
7431
|
export enum ExcelConversionApiApiKeys {
|
|
7032
7432
|
}
|
|
@@ -7254,6 +7654,78 @@ export class ExcelConversionApi {
|
|
|
7254
7654
|
/**
|
|
7255
7655
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
7256
7656
|
*/
|
|
7657
|
+
public excelConversionConvertToFlatAvaWithRequestObject(excelFile: FileParameter, options?: { readNewElements?: boolean, rebuildItemNumberSchema?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> {
|
|
7658
|
+
return this.excelConversionConvertToFlatAva(excelFile, options?.readNewElements, options?.rebuildItemNumberSchema, options?.options || {});
|
|
7659
|
+
}
|
|
7660
|
+
|
|
7661
|
+
/**
|
|
7662
|
+
*
|
|
7663
|
+
* @summary Converts Excel files to Dangl.AVA projects.
|
|
7664
|
+
* @param excelFile The input file
|
|
7665
|
+
* @param readNewElements Defaults to false
|
|
7666
|
+
* @param rebuildItemNumberSchema When importing new elements from Excel, sometimes the ItemNumberSchema in the file is not in compliance with the GAEB requirements. Enabling this option tries to repair the ItemNumberSchema. Defaults to false.
|
|
7667
|
+
* @param {*} [options] Override http request options.
|
|
7668
|
+
*/
|
|
7669
|
+
public excelConversionConvertToFlatAva (excelFile: FileParameter, readNewElements?: boolean, rebuildItemNumberSchema?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> { const localVarPath = this.basePath + '/conversion/excel/flat-ava';
|
|
7670
|
+
let localVarQueryParameters: any = {};
|
|
7671
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
7672
|
+
let localVarFormParams: any = {};
|
|
7673
|
+
|
|
7674
|
+
if (readNewElements !== undefined) {
|
|
7675
|
+
localVarQueryParameters['ReadNewElements'] = ObjectSerializer.serialize(readNewElements, "boolean");
|
|
7676
|
+
}
|
|
7677
|
+
|
|
7678
|
+
if (rebuildItemNumberSchema !== undefined) {
|
|
7679
|
+
localVarQueryParameters['RebuildItemNumberSchema'] = ObjectSerializer.serialize(rebuildItemNumberSchema, "boolean");
|
|
7680
|
+
}
|
|
7681
|
+
|
|
7682
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
7683
|
+
|
|
7684
|
+
let localVarUseFormData = false;
|
|
7685
|
+
|
|
7686
|
+
if (excelFile !== undefined) {
|
|
7687
|
+
localVarFormParams['excelFile'] = excelFile;
|
|
7688
|
+
}
|
|
7689
|
+
localVarUseFormData = true;
|
|
7690
|
+
|
|
7691
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
7692
|
+
method: 'POST',
|
|
7693
|
+
qs: localVarQueryParameters,
|
|
7694
|
+
headers: localVarHeaderParams,
|
|
7695
|
+
uri: localVarPath,
|
|
7696
|
+
useQuerystring: this._useQuerystring,
|
|
7697
|
+
json: true,
|
|
7698
|
+
};
|
|
7699
|
+
|
|
7700
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
7701
|
+
|
|
7702
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
7703
|
+
|
|
7704
|
+
if (Object.keys(localVarFormParams).length) {
|
|
7705
|
+
if (localVarUseFormData) {
|
|
7706
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
7707
|
+
} else {
|
|
7708
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
7709
|
+
}
|
|
7710
|
+
}
|
|
7711
|
+
return new Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }>((resolve, reject) => {
|
|
7712
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
7713
|
+
if (error) {
|
|
7714
|
+
reject(error);
|
|
7715
|
+
} else {
|
|
7716
|
+
body = ObjectSerializer.deserialize(body, "FlatAvaProject");
|
|
7717
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
7718
|
+
resolve({ response: response, body: body });
|
|
7719
|
+
} else {
|
|
7720
|
+
reject({ response: response, body: body });
|
|
7721
|
+
}
|
|
7722
|
+
}
|
|
7723
|
+
});
|
|
7724
|
+
});
|
|
7725
|
+
}
|
|
7726
|
+
/**
|
|
7727
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
7728
|
+
*/
|
|
7257
7729
|
public excelConversionConvertToGaebWithRequestObject(excelFile: FileParameter, options?: { readNewElements?: boolean, rebuildItemNumberSchema?: boolean, destinationGaebType?: 'Gaeb90' | 'Gaeb2000' | 'Gaeb2000Commerce' | 'GaebXml_V3_1' | 'GaebXml_V3_2' | 'GaebXml_V3_2_Commerce' | 'GaebXml_V3_3' | 'GaebXml_V3_3_Commerce' | 'GaebXml_V3_3_2019' | 'GaebXml_V3_3_2019_Commerce', targetExchangePhaseTransform?: 'None' | 'Base' | 'OfferRequest' | 'Offer' | 'Grant' | 'CostEstimate' | 'SideOffer', enforceStrictOfferPhaseLongTextOutput?: boolean, exportQuantityDetermination?: boolean, removeUnprintableCharactersFromTexts?: boolean, forceIncludeDescriptions?: boolean, treatNullItemNumberSchemaAsInvalid?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
7258
7730
|
return this.excelConversionConvertToGaeb(excelFile, options?.readNewElements, options?.rebuildItemNumberSchema, options?.destinationGaebType, options?.targetExchangePhaseTransform, options?.enforceStrictOfferPhaseLongTextOutput, options?.exportQuantityDetermination, options?.removeUnprintableCharactersFromTexts, options?.forceIncludeDescriptions, options?.treatNullItemNumberSchemaAsInvalid, options?.options || {});
|
|
7259
7731
|
}
|
|
@@ -7451,10 +7923,10 @@ export class ExcelConversionApi {
|
|
|
7451
7923
|
});
|
|
7452
7924
|
}
|
|
7453
7925
|
}
|
|
7454
|
-
export enum
|
|
7926
|
+
export enum FlatAvaConversionApiApiKeys {
|
|
7455
7927
|
}
|
|
7456
7928
|
|
|
7457
|
-
export class
|
|
7929
|
+
export class FlatAvaConversionApi {
|
|
7458
7930
|
protected _basePath = defaultBasePath;
|
|
7459
7931
|
protected defaultHeaders : any = {};
|
|
7460
7932
|
protected _useQuerystring : boolean = false;
|
|
@@ -7493,8 +7965,8 @@ export class GaebConversionApi {
|
|
|
7493
7965
|
this.authentications.default = auth;
|
|
7494
7966
|
}
|
|
7495
7967
|
|
|
7496
|
-
public setApiKey(key:
|
|
7497
|
-
(this.authentications as any)[
|
|
7968
|
+
public setApiKey(key: FlatAvaConversionApiApiKeys, value: string) {
|
|
7969
|
+
(this.authentications as any)[FlatAvaConversionApiApiKeys[key]].apiKey = value;
|
|
7498
7970
|
}
|
|
7499
7971
|
|
|
7500
7972
|
set accessToken(token: string) {
|
|
@@ -7503,30 +7975,31 @@ export class GaebConversionApi {
|
|
|
7503
7975
|
/**
|
|
7504
7976
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
7505
7977
|
*/
|
|
7506
|
-
public
|
|
7507
|
-
return this.
|
|
7978
|
+
public flatAvaConversionConvertToAvaWithRequestObject(flatAvaProject: FlatAvaProject, options?: { tryAutoGenerateItemNumbersAndSchema?: boolean, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: ProjectDto; }> {
|
|
7979
|
+
return this.flatAvaConversionConvertToAva(flatAvaProject, options?.tryAutoGenerateItemNumbersAndSchema, options?.removePlainTextLongTexts, options?.removeHtmlLongTexts, options?.options || {});
|
|
7508
7980
|
}
|
|
7509
7981
|
|
|
7510
7982
|
/**
|
|
7511
7983
|
*
|
|
7512
|
-
* @summary Converts
|
|
7513
|
-
* @param
|
|
7514
|
-
* @param
|
|
7984
|
+
* @summary Converts flat Dangl.AVA projects to Dangl.AVA. This is useful when you want to generate the calculated properties.
|
|
7985
|
+
* @param flatAvaProject The flat Dangl.AVA project
|
|
7986
|
+
* @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.
|
|
7515
7987
|
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
7516
7988
|
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
7517
|
-
* @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>'.
|
|
7518
|
-
* @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.
|
|
7519
|
-
* @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.
|
|
7520
|
-
* @param allowLumpSumItemsWithDifferingQuantities Defaults to 'false'. By default, the GAEB standard requires lump sum items ('Pauschalpositionen' in German) to have a quantity of exactly 1. AVACloud does enforce this convention, but if you set this property to 'true', then differing quantities will be kept during the import.
|
|
7521
7989
|
* @param {*} [options] Override http request options.
|
|
7522
7990
|
*/
|
|
7523
|
-
public
|
|
7991
|
+
public flatAvaConversionConvertToAva (flatAvaProject: FlatAvaProject, tryAutoGenerateItemNumbersAndSchema?: boolean, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: ProjectDto; }> { const localVarPath = this.basePath + '/conversion/flat-ava/ava';
|
|
7524
7992
|
let localVarQueryParameters: any = {};
|
|
7525
7993
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
7526
7994
|
let localVarFormParams: any = {};
|
|
7527
7995
|
|
|
7528
|
-
|
|
7529
|
-
|
|
7996
|
+
// verify required parameter 'flatAvaProject' is not null or undefined
|
|
7997
|
+
if (flatAvaProject === null || flatAvaProject === undefined) {
|
|
7998
|
+
throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToAva.');
|
|
7999
|
+
}
|
|
8000
|
+
|
|
8001
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
8002
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
7530
8003
|
}
|
|
7531
8004
|
|
|
7532
8005
|
if (removePlainTextLongTexts !== undefined) {
|
|
@@ -7537,31 +8010,10 @@ export class GaebConversionApi {
|
|
|
7537
8010
|
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
7538
8011
|
}
|
|
7539
8012
|
|
|
7540
|
-
if (outputHtmlAsXml !== undefined) {
|
|
7541
|
-
localVarQueryParameters['OutputHtmlAsXml'] = ObjectSerializer.serialize(outputHtmlAsXml, "boolean");
|
|
7542
|
-
}
|
|
7543
|
-
|
|
7544
|
-
if (keepEmptyHtmlText !== undefined) {
|
|
7545
|
-
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
7546
|
-
}
|
|
7547
|
-
|
|
7548
|
-
if (allowUpperCaseItemNumbers !== undefined) {
|
|
7549
|
-
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
7550
|
-
}
|
|
7551
|
-
|
|
7552
|
-
if (allowLumpSumItemsWithDifferingQuantities !== undefined) {
|
|
7553
|
-
localVarQueryParameters['AllowLumpSumItemsWithDifferingQuantities'] = ObjectSerializer.serialize(allowLumpSumItemsWithDifferingQuantities, "boolean");
|
|
7554
|
-
}
|
|
7555
|
-
|
|
7556
8013
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
7557
8014
|
|
|
7558
8015
|
let localVarUseFormData = false;
|
|
7559
8016
|
|
|
7560
|
-
if (gaebFile !== undefined) {
|
|
7561
|
-
localVarFormParams['gaebFile'] = gaebFile;
|
|
7562
|
-
}
|
|
7563
|
-
localVarUseFormData = true;
|
|
7564
|
-
|
|
7565
8017
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
7566
8018
|
method: 'POST',
|
|
7567
8019
|
qs: localVarQueryParameters,
|
|
@@ -7569,6 +8021,7 @@ export class GaebConversionApi {
|
|
|
7569
8021
|
uri: localVarPath,
|
|
7570
8022
|
useQuerystring: this._useQuerystring,
|
|
7571
8023
|
json: true,
|
|
8024
|
+
body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
|
|
7572
8025
|
};
|
|
7573
8026
|
|
|
7574
8027
|
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
@@ -7600,39 +8053,898 @@ export class GaebConversionApi {
|
|
|
7600
8053
|
/**
|
|
7601
8054
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
7602
8055
|
*/
|
|
7603
|
-
public
|
|
7604
|
-
return this.
|
|
8056
|
+
public flatAvaConversionConvertToDatanormWithRequestObject(flatAvaProject: FlatAvaProject, options?: { tryAutoGenerateItemNumbersAndSchema?: boolean, datanormDestinationVersion?: 'V4' | 'V5', options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
8057
|
+
return this.flatAvaConversionConvertToDatanorm(flatAvaProject, options?.tryAutoGenerateItemNumbersAndSchema, options?.datanormDestinationVersion, options?.options || {});
|
|
7605
8058
|
}
|
|
7606
8059
|
|
|
7607
8060
|
/**
|
|
7608
8061
|
*
|
|
7609
|
-
* @summary Converts
|
|
7610
|
-
* @param
|
|
7611
|
-
* @param
|
|
7612
|
-
* @param
|
|
7613
|
-
* @param writeLongTexts Defaults to true
|
|
7614
|
-
* @param conversionCulture The culture that should be used for the conversion process, to have localized Excel files
|
|
7615
|
-
* @param includeArticleNumbers If this is enabled, then a new column will be created in the overview worksheet that contains the article numbers for positions. Article numbers will be read from 'position.commerceProperties.articleNumber'
|
|
7616
|
-
* @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>'.
|
|
7617
|
-
* @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.
|
|
7618
|
-
* @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.
|
|
7619
|
-
* @param allowLumpSumItemsWithDifferingQuantities Defaults to 'false'. By default, the GAEB standard requires lump sum items ('Pauschalpositionen' in German) to have a quantity of exactly 1. AVACloud does enforce this convention, but if you set this property to 'true', then differing quantities will be kept during the import.
|
|
8062
|
+
* @summary Converts flat Dangl.AVA projects to Datanorm
|
|
8063
|
+
* @param flatAvaProject The flat Dangl.AVA project
|
|
8064
|
+
* @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.
|
|
8065
|
+
* @param datanormDestinationVersion The Datanorm version to convert to. Defaults to V4.
|
|
7620
8066
|
* @param {*} [options] Override http request options.
|
|
7621
8067
|
*/
|
|
7622
|
-
public
|
|
8068
|
+
public flatAvaConversionConvertToDatanorm (flatAvaProject: FlatAvaProject, tryAutoGenerateItemNumbersAndSchema?: boolean, datanormDestinationVersion?: 'V4' | 'V5', options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/flat-ava/datanorm';
|
|
7623
8069
|
let localVarQueryParameters: any = {};
|
|
7624
8070
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
7625
8071
|
let localVarFormParams: any = {};
|
|
7626
8072
|
|
|
7627
|
-
|
|
7628
|
-
|
|
8073
|
+
// verify required parameter 'flatAvaProject' is not null or undefined
|
|
8074
|
+
if (flatAvaProject === null || flatAvaProject === undefined) {
|
|
8075
|
+
throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToDatanorm.');
|
|
7629
8076
|
}
|
|
7630
8077
|
|
|
7631
|
-
if (
|
|
7632
|
-
localVarQueryParameters['
|
|
8078
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
8079
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
7633
8080
|
}
|
|
7634
8081
|
|
|
7635
|
-
if (
|
|
8082
|
+
if (datanormDestinationVersion !== undefined) {
|
|
8083
|
+
localVarQueryParameters['DatanormDestinationVersion'] = ObjectSerializer.serialize(datanormDestinationVersion, "'V4' | 'V5'");
|
|
8084
|
+
}
|
|
8085
|
+
|
|
8086
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8087
|
+
|
|
8088
|
+
let localVarUseFormData = false;
|
|
8089
|
+
|
|
8090
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
8091
|
+
method: 'POST',
|
|
8092
|
+
qs: localVarQueryParameters,
|
|
8093
|
+
headers: localVarHeaderParams,
|
|
8094
|
+
uri: localVarPath,
|
|
8095
|
+
useQuerystring: this._useQuerystring,
|
|
8096
|
+
encoding: null,
|
|
8097
|
+
body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
|
|
8098
|
+
};
|
|
8099
|
+
|
|
8100
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
8101
|
+
|
|
8102
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
8103
|
+
|
|
8104
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8105
|
+
if (localVarUseFormData) {
|
|
8106
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
8107
|
+
} else {
|
|
8108
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8109
|
+
}
|
|
8110
|
+
}
|
|
8111
|
+
return new Promise<{ response: http.IncomingMessage; body: Buffer; }>((resolve, reject) => {
|
|
8112
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8113
|
+
if (error) {
|
|
8114
|
+
reject(error);
|
|
8115
|
+
} else {
|
|
8116
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
8117
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8118
|
+
resolve({ response: response, body: body });
|
|
8119
|
+
} else {
|
|
8120
|
+
reject({ response: response, body: body });
|
|
8121
|
+
}
|
|
8122
|
+
}
|
|
8123
|
+
});
|
|
8124
|
+
});
|
|
8125
|
+
}
|
|
8126
|
+
/**
|
|
8127
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8128
|
+
*/
|
|
8129
|
+
public flatAvaConversionConvertToExcelWithRequestObject(flatAvaProject: FlatAvaProject, options?: { tryAutoGenerateItemNumbersAndSchema?: boolean, writePrices?: boolean, writeLongTexts?: boolean, conversionCulture?: string, includeArticleNumbers?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
8130
|
+
return this.flatAvaConversionConvertToExcel(flatAvaProject, options?.tryAutoGenerateItemNumbersAndSchema, options?.writePrices, options?.writeLongTexts, options?.conversionCulture, options?.includeArticleNumbers, options?.options || {});
|
|
8131
|
+
}
|
|
8132
|
+
|
|
8133
|
+
/**
|
|
8134
|
+
*
|
|
8135
|
+
* @summary Converts flat Dangl.AVA projects to Excel
|
|
8136
|
+
* @param flatAvaProject The flat Dangl.AVA project
|
|
8137
|
+
* @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.
|
|
8138
|
+
* @param writePrices Defaults to true
|
|
8139
|
+
* @param writeLongTexts Defaults to true
|
|
8140
|
+
* @param conversionCulture The culture that should be used for the conversion process, to have localized Excel files
|
|
8141
|
+
* @param includeArticleNumbers If this is enabled, then a new column will be created in the overview worksheet that contains the article numbers for positions. Article numbers will be read from 'position.commerceProperties.articleNumber'
|
|
8142
|
+
* @param {*} [options] Override http request options.
|
|
8143
|
+
*/
|
|
8144
|
+
public flatAvaConversionConvertToExcel (flatAvaProject: FlatAvaProject, tryAutoGenerateItemNumbersAndSchema?: boolean, writePrices?: boolean, writeLongTexts?: boolean, conversionCulture?: string, includeArticleNumbers?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/flat-ava/excel';
|
|
8145
|
+
let localVarQueryParameters: any = {};
|
|
8146
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8147
|
+
let localVarFormParams: any = {};
|
|
8148
|
+
|
|
8149
|
+
// verify required parameter 'flatAvaProject' is not null or undefined
|
|
8150
|
+
if (flatAvaProject === null || flatAvaProject === undefined) {
|
|
8151
|
+
throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToExcel.');
|
|
8152
|
+
}
|
|
8153
|
+
|
|
8154
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
8155
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
8156
|
+
}
|
|
8157
|
+
|
|
8158
|
+
if (writePrices !== undefined) {
|
|
8159
|
+
localVarQueryParameters['WritePrices'] = ObjectSerializer.serialize(writePrices, "boolean");
|
|
8160
|
+
}
|
|
8161
|
+
|
|
8162
|
+
if (writeLongTexts !== undefined) {
|
|
8163
|
+
localVarQueryParameters['WriteLongTexts'] = ObjectSerializer.serialize(writeLongTexts, "boolean");
|
|
8164
|
+
}
|
|
8165
|
+
|
|
8166
|
+
if (conversionCulture !== undefined) {
|
|
8167
|
+
localVarQueryParameters['ConversionCulture'] = ObjectSerializer.serialize(conversionCulture, "string");
|
|
8168
|
+
}
|
|
8169
|
+
|
|
8170
|
+
if (includeArticleNumbers !== undefined) {
|
|
8171
|
+
localVarQueryParameters['IncludeArticleNumbers'] = ObjectSerializer.serialize(includeArticleNumbers, "boolean");
|
|
8172
|
+
}
|
|
8173
|
+
|
|
8174
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8175
|
+
|
|
8176
|
+
let localVarUseFormData = false;
|
|
8177
|
+
|
|
8178
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
8179
|
+
method: 'POST',
|
|
8180
|
+
qs: localVarQueryParameters,
|
|
8181
|
+
headers: localVarHeaderParams,
|
|
8182
|
+
uri: localVarPath,
|
|
8183
|
+
useQuerystring: this._useQuerystring,
|
|
8184
|
+
encoding: null,
|
|
8185
|
+
body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
|
|
8186
|
+
};
|
|
8187
|
+
|
|
8188
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
8189
|
+
|
|
8190
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
8191
|
+
|
|
8192
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8193
|
+
if (localVarUseFormData) {
|
|
8194
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
8195
|
+
} else {
|
|
8196
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8197
|
+
}
|
|
8198
|
+
}
|
|
8199
|
+
return new Promise<{ response: http.IncomingMessage; body: Buffer; }>((resolve, reject) => {
|
|
8200
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8201
|
+
if (error) {
|
|
8202
|
+
reject(error);
|
|
8203
|
+
} else {
|
|
8204
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
8205
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8206
|
+
resolve({ response: response, body: body });
|
|
8207
|
+
} else {
|
|
8208
|
+
reject({ response: response, body: body });
|
|
8209
|
+
}
|
|
8210
|
+
}
|
|
8211
|
+
});
|
|
8212
|
+
});
|
|
8213
|
+
}
|
|
8214
|
+
/**
|
|
8215
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8216
|
+
*/
|
|
8217
|
+
public flatAvaConversionConvertToFlatAvaWithRequestObject(flatAvaProject: FlatAvaProject, options?: { tryAutoGenerateItemNumbersAndSchema?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> {
|
|
8218
|
+
return this.flatAvaConversionConvertToFlatAva(flatAvaProject, options?.tryAutoGenerateItemNumbersAndSchema, options?.options || {});
|
|
8219
|
+
}
|
|
8220
|
+
|
|
8221
|
+
/**
|
|
8222
|
+
*
|
|
8223
|
+
* @summary Converts flat Dangl.AVA projects to Dangl.AVA. This is useful when you want to generate the calculated properties.
|
|
8224
|
+
* @param flatAvaProject The flat Dangl.AVA project
|
|
8225
|
+
* @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.
|
|
8226
|
+
* @param {*} [options] Override http request options.
|
|
8227
|
+
*/
|
|
8228
|
+
public flatAvaConversionConvertToFlatAva (flatAvaProject: FlatAvaProject, tryAutoGenerateItemNumbersAndSchema?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> { const localVarPath = this.basePath + '/conversion/flat-ava/flat-ava';
|
|
8229
|
+
let localVarQueryParameters: any = {};
|
|
8230
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8231
|
+
let localVarFormParams: any = {};
|
|
8232
|
+
|
|
8233
|
+
// verify required parameter 'flatAvaProject' is not null or undefined
|
|
8234
|
+
if (flatAvaProject === null || flatAvaProject === undefined) {
|
|
8235
|
+
throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToFlatAva.');
|
|
8236
|
+
}
|
|
8237
|
+
|
|
8238
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
8239
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
8240
|
+
}
|
|
8241
|
+
|
|
8242
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8243
|
+
|
|
8244
|
+
let localVarUseFormData = false;
|
|
8245
|
+
|
|
8246
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
8247
|
+
method: 'POST',
|
|
8248
|
+
qs: localVarQueryParameters,
|
|
8249
|
+
headers: localVarHeaderParams,
|
|
8250
|
+
uri: localVarPath,
|
|
8251
|
+
useQuerystring: this._useQuerystring,
|
|
8252
|
+
json: true,
|
|
8253
|
+
body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
|
|
8254
|
+
};
|
|
8255
|
+
|
|
8256
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
8257
|
+
|
|
8258
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
8259
|
+
|
|
8260
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8261
|
+
if (localVarUseFormData) {
|
|
8262
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
8263
|
+
} else {
|
|
8264
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8265
|
+
}
|
|
8266
|
+
}
|
|
8267
|
+
return new Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }>((resolve, reject) => {
|
|
8268
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8269
|
+
if (error) {
|
|
8270
|
+
reject(error);
|
|
8271
|
+
} else {
|
|
8272
|
+
body = ObjectSerializer.deserialize(body, "FlatAvaProject");
|
|
8273
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8274
|
+
resolve({ response: response, body: body });
|
|
8275
|
+
} else {
|
|
8276
|
+
reject({ response: response, body: body });
|
|
8277
|
+
}
|
|
8278
|
+
}
|
|
8279
|
+
});
|
|
8280
|
+
});
|
|
8281
|
+
}
|
|
8282
|
+
/**
|
|
8283
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8284
|
+
*/
|
|
8285
|
+
public flatAvaConversionConvertToGaebWithRequestObject(flatAvaProject: FlatAvaProject, options?: { tryAutoGenerateItemNumbersAndSchema?: boolean, destinationGaebType?: 'Gaeb90' | 'Gaeb2000' | 'Gaeb2000Commerce' | 'GaebXml_V3_1' | 'GaebXml_V3_2' | 'GaebXml_V3_2_Commerce' | 'GaebXml_V3_3' | 'GaebXml_V3_3_Commerce' | 'GaebXml_V3_3_2019' | 'GaebXml_V3_3_2019_Commerce', targetExchangePhaseTransform?: 'None' | 'Base' | 'OfferRequest' | 'Offer' | 'Grant' | 'CostEstimate' | 'SideOffer', enforceStrictOfferPhaseLongTextOutput?: boolean, exportQuantityDetermination?: boolean, removeUnprintableCharactersFromTexts?: boolean, forceIncludeDescriptions?: boolean, treatNullItemNumberSchemaAsInvalid?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
8286
|
+
return this.flatAvaConversionConvertToGaeb(flatAvaProject, options?.tryAutoGenerateItemNumbersAndSchema, options?.destinationGaebType, options?.targetExchangePhaseTransform, options?.enforceStrictOfferPhaseLongTextOutput, options?.exportQuantityDetermination, options?.removeUnprintableCharactersFromTexts, options?.forceIncludeDescriptions, options?.treatNullItemNumberSchemaAsInvalid, options?.options || {});
|
|
8287
|
+
}
|
|
8288
|
+
|
|
8289
|
+
/**
|
|
8290
|
+
*
|
|
8291
|
+
* @summary Converts flat Dangl.AVA projects to GAEB
|
|
8292
|
+
* @param flatAvaProject The flat Dangl.AVA project
|
|
8293
|
+
* @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.
|
|
8294
|
+
* @param destinationGaebType Defaults to GAEB XML V3.2
|
|
8295
|
+
* @param targetExchangePhaseTransform Defaults to none, meaning no transformation will be done. The phases are: Base = 81 CostEstimate = 82 OfferRequest = 83 Offer = 84 SideOffer = 85 Grant = 86
|
|
8296
|
+
* @param enforceStrictOfferPhaseLongTextOutput Defaults to false. If this is enabled, exported long texts to GAEB XML that use text additions will be strictly schema compliant. If this is not enabled, any text that is marked to contain a text addition is exported in full to ensure that incorrectly used text additions are still preserved in the export.
|
|
8297
|
+
* @param exportQuantityDetermination Defaults to false. If this is enabled, quantities are exported in detail in GAEB XML targets via the 'QtyDeterm' (Quantity Determination, or Quantity Take Off) fields. To control this, you can set custom quantity calculations in the 'QuantityComponents' property of positions. Please see the entry for 'Quantity Determination' in the Dangl.AVA HowTo documentation section. Please be advised that enabling this might export data that was not intended to be exported, like internal quantity calculation details, depending on what data you put in the 'QuantityComponents' property.
|
|
8298
|
+
* @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.
|
|
8299
|
+
* @param forceIncludeDescriptions If this is enabled, all description elements like texts and execution descriptions will be output to the result. This is mostly only applicable to GAEB exports to phase 84 - Offer, which does typically not include descriptions.
|
|
8300
|
+
* @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.
|
|
8301
|
+
* @param {*} [options] Override http request options.
|
|
8302
|
+
*/
|
|
8303
|
+
public flatAvaConversionConvertToGaeb (flatAvaProject: FlatAvaProject, tryAutoGenerateItemNumbersAndSchema?: boolean, destinationGaebType?: 'Gaeb90' | 'Gaeb2000' | 'Gaeb2000Commerce' | 'GaebXml_V3_1' | 'GaebXml_V3_2' | 'GaebXml_V3_2_Commerce' | 'GaebXml_V3_3' | 'GaebXml_V3_3_Commerce' | 'GaebXml_V3_3_2019' | 'GaebXml_V3_3_2019_Commerce', targetExchangePhaseTransform?: 'None' | 'Base' | 'OfferRequest' | 'Offer' | 'Grant' | 'CostEstimate' | 'SideOffer', enforceStrictOfferPhaseLongTextOutput?: boolean, exportQuantityDetermination?: boolean, removeUnprintableCharactersFromTexts?: boolean, forceIncludeDescriptions?: boolean, treatNullItemNumberSchemaAsInvalid?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/flat-ava/gaeb';
|
|
8304
|
+
let localVarQueryParameters: any = {};
|
|
8305
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8306
|
+
let localVarFormParams: any = {};
|
|
8307
|
+
|
|
8308
|
+
// verify required parameter 'flatAvaProject' is not null or undefined
|
|
8309
|
+
if (flatAvaProject === null || flatAvaProject === undefined) {
|
|
8310
|
+
throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToGaeb.');
|
|
8311
|
+
}
|
|
8312
|
+
|
|
8313
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
8314
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
8315
|
+
}
|
|
8316
|
+
|
|
8317
|
+
if (destinationGaebType !== undefined) {
|
|
8318
|
+
localVarQueryParameters['DestinationGaebType'] = ObjectSerializer.serialize(destinationGaebType, "'Gaeb90' | 'Gaeb2000' | 'Gaeb2000Commerce' | 'GaebXml_V3_1' | 'GaebXml_V3_2' | 'GaebXml_V3_2_Commerce' | 'GaebXml_V3_3' | 'GaebXml_V3_3_Commerce' | 'GaebXml_V3_3_2019' | 'GaebXml_V3_3_2019_Commerce'");
|
|
8319
|
+
}
|
|
8320
|
+
|
|
8321
|
+
if (targetExchangePhaseTransform !== undefined) {
|
|
8322
|
+
localVarQueryParameters['TargetExchangePhaseTransform'] = ObjectSerializer.serialize(targetExchangePhaseTransform, "'None' | 'Base' | 'OfferRequest' | 'Offer' | 'Grant' | 'CostEstimate' | 'SideOffer'");
|
|
8323
|
+
}
|
|
8324
|
+
|
|
8325
|
+
if (enforceStrictOfferPhaseLongTextOutput !== undefined) {
|
|
8326
|
+
localVarQueryParameters['EnforceStrictOfferPhaseLongTextOutput'] = ObjectSerializer.serialize(enforceStrictOfferPhaseLongTextOutput, "boolean");
|
|
8327
|
+
}
|
|
8328
|
+
|
|
8329
|
+
if (exportQuantityDetermination !== undefined) {
|
|
8330
|
+
localVarQueryParameters['ExportQuantityDetermination'] = ObjectSerializer.serialize(exportQuantityDetermination, "boolean");
|
|
8331
|
+
}
|
|
8332
|
+
|
|
8333
|
+
if (removeUnprintableCharactersFromTexts !== undefined) {
|
|
8334
|
+
localVarQueryParameters['RemoveUnprintableCharactersFromTexts'] = ObjectSerializer.serialize(removeUnprintableCharactersFromTexts, "boolean");
|
|
8335
|
+
}
|
|
8336
|
+
|
|
8337
|
+
if (forceIncludeDescriptions !== undefined) {
|
|
8338
|
+
localVarQueryParameters['ForceIncludeDescriptions'] = ObjectSerializer.serialize(forceIncludeDescriptions, "boolean");
|
|
8339
|
+
}
|
|
8340
|
+
|
|
8341
|
+
if (treatNullItemNumberSchemaAsInvalid !== undefined) {
|
|
8342
|
+
localVarQueryParameters['TreatNullItemNumberSchemaAsInvalid'] = ObjectSerializer.serialize(treatNullItemNumberSchemaAsInvalid, "boolean");
|
|
8343
|
+
}
|
|
8344
|
+
|
|
8345
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8346
|
+
|
|
8347
|
+
let localVarUseFormData = false;
|
|
8348
|
+
|
|
8349
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
8350
|
+
method: 'POST',
|
|
8351
|
+
qs: localVarQueryParameters,
|
|
8352
|
+
headers: localVarHeaderParams,
|
|
8353
|
+
uri: localVarPath,
|
|
8354
|
+
useQuerystring: this._useQuerystring,
|
|
8355
|
+
encoding: null,
|
|
8356
|
+
body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
|
|
8357
|
+
};
|
|
8358
|
+
|
|
8359
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
8360
|
+
|
|
8361
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
8362
|
+
|
|
8363
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8364
|
+
if (localVarUseFormData) {
|
|
8365
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
8366
|
+
} else {
|
|
8367
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8368
|
+
}
|
|
8369
|
+
}
|
|
8370
|
+
return new Promise<{ response: http.IncomingMessage; body: Buffer; }>((resolve, reject) => {
|
|
8371
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8372
|
+
if (error) {
|
|
8373
|
+
reject(error);
|
|
8374
|
+
} else {
|
|
8375
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
8376
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8377
|
+
resolve({ response: response, body: body });
|
|
8378
|
+
} else {
|
|
8379
|
+
reject({ response: response, body: body });
|
|
8380
|
+
}
|
|
8381
|
+
}
|
|
8382
|
+
});
|
|
8383
|
+
});
|
|
8384
|
+
}
|
|
8385
|
+
/**
|
|
8386
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8387
|
+
*/
|
|
8388
|
+
public flatAvaConversionConvertToIdsConnectWithRequestObject(flatAvaProject: FlatAvaProject, options?: { tryAutoGenerateItemNumbersAndSchema?: boolean, version?: 'V2_5', options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
8389
|
+
return this.flatAvaConversionConvertToIdsConnect(flatAvaProject, options?.tryAutoGenerateItemNumbersAndSchema, options?.version, options?.options || {});
|
|
8390
|
+
}
|
|
8391
|
+
|
|
8392
|
+
/**
|
|
8393
|
+
*
|
|
8394
|
+
* @summary Converts flat Dangl.AVA projects to IDS Connect files
|
|
8395
|
+
* @param flatAvaProject The flat Dangl.AVA project
|
|
8396
|
+
* @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.
|
|
8397
|
+
* @param version The IDS Connect version to convert to. Defaults to V2_5.
|
|
8398
|
+
* @param {*} [options] Override http request options.
|
|
8399
|
+
*/
|
|
8400
|
+
public flatAvaConversionConvertToIdsConnect (flatAvaProject: FlatAvaProject, tryAutoGenerateItemNumbersAndSchema?: boolean, version?: 'V2_5', options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/flat-ava/ids-connect';
|
|
8401
|
+
let localVarQueryParameters: any = {};
|
|
8402
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8403
|
+
let localVarFormParams: any = {};
|
|
8404
|
+
|
|
8405
|
+
// verify required parameter 'flatAvaProject' is not null or undefined
|
|
8406
|
+
if (flatAvaProject === null || flatAvaProject === undefined) {
|
|
8407
|
+
throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToIdsConnect.');
|
|
8408
|
+
}
|
|
8409
|
+
|
|
8410
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
8411
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
8412
|
+
}
|
|
8413
|
+
|
|
8414
|
+
if (version !== undefined) {
|
|
8415
|
+
localVarQueryParameters['Version'] = ObjectSerializer.serialize(version, "'V2_5'");
|
|
8416
|
+
}
|
|
8417
|
+
|
|
8418
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8419
|
+
|
|
8420
|
+
let localVarUseFormData = false;
|
|
8421
|
+
|
|
8422
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
8423
|
+
method: 'POST',
|
|
8424
|
+
qs: localVarQueryParameters,
|
|
8425
|
+
headers: localVarHeaderParams,
|
|
8426
|
+
uri: localVarPath,
|
|
8427
|
+
useQuerystring: this._useQuerystring,
|
|
8428
|
+
encoding: null,
|
|
8429
|
+
body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
|
|
8430
|
+
};
|
|
8431
|
+
|
|
8432
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
8433
|
+
|
|
8434
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
8435
|
+
|
|
8436
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8437
|
+
if (localVarUseFormData) {
|
|
8438
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
8439
|
+
} else {
|
|
8440
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8441
|
+
}
|
|
8442
|
+
}
|
|
8443
|
+
return new Promise<{ response: http.IncomingMessage; body: Buffer; }>((resolve, reject) => {
|
|
8444
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8445
|
+
if (error) {
|
|
8446
|
+
reject(error);
|
|
8447
|
+
} else {
|
|
8448
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
8449
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8450
|
+
resolve({ response: response, body: body });
|
|
8451
|
+
} else {
|
|
8452
|
+
reject({ response: response, body: body });
|
|
8453
|
+
}
|
|
8454
|
+
}
|
|
8455
|
+
});
|
|
8456
|
+
});
|
|
8457
|
+
}
|
|
8458
|
+
/**
|
|
8459
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8460
|
+
*/
|
|
8461
|
+
public flatAvaConversionConvertToOenormWithRequestObject(flatAvaProject: FlatAvaProject, options?: { tryAutoGenerateItemNumbersAndSchema?: boolean, destinationOenormType?: 'Lv2015' | 'Lb2015' | 'B2063' | 'Lv2009' | 'Lb2009' | 'Lv2021' | 'Lb2021', tryRepairProjectStructure?: boolean, skipTryEnforceSchemaCompliantXmlOutput?: boolean, removeUnprintableCharactersFromTexts?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
8462
|
+
return this.flatAvaConversionConvertToOenorm(flatAvaProject, options?.tryAutoGenerateItemNumbersAndSchema, options?.destinationOenormType, options?.tryRepairProjectStructure, options?.skipTryEnforceSchemaCompliantXmlOutput, options?.removeUnprintableCharactersFromTexts, options?.options || {});
|
|
8463
|
+
}
|
|
8464
|
+
|
|
8465
|
+
/**
|
|
8466
|
+
*
|
|
8467
|
+
* @summary Converts flat Dangl.AVA projects to Oenorm
|
|
8468
|
+
* @param flatAvaProject The flat Dangl.AVA project
|
|
8469
|
+
* @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.
|
|
8470
|
+
* @param destinationOenormType Defaults to Lv2015
|
|
8471
|
+
* @param tryRepairProjectStructure Defaults to false. If this is enabled, the converter will try to ensure that the project structure can be mapped to Oenorm. It might introduce additional group levels to ensure a compatible target
|
|
8472
|
+
* @param skipTryEnforceSchemaCompliantXmlOutput If this option is enabled, AVACloud will not attempt to force a schema-compliant Xml output for ÖNorm targets that are Xml based. By default, AVACloud will try to add required fields, even if no data is present, with sensible defaults. This behavior can be disabled with this option.
|
|
8473
|
+
* @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.
|
|
8474
|
+
* @param {*} [options] Override http request options.
|
|
8475
|
+
*/
|
|
8476
|
+
public flatAvaConversionConvertToOenorm (flatAvaProject: FlatAvaProject, tryAutoGenerateItemNumbersAndSchema?: boolean, destinationOenormType?: 'Lv2015' | 'Lb2015' | 'B2063' | 'Lv2009' | 'Lb2009' | 'Lv2021' | 'Lb2021', tryRepairProjectStructure?: boolean, skipTryEnforceSchemaCompliantXmlOutput?: boolean, removeUnprintableCharactersFromTexts?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/flat-ava/oenorm';
|
|
8477
|
+
let localVarQueryParameters: any = {};
|
|
8478
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8479
|
+
let localVarFormParams: any = {};
|
|
8480
|
+
|
|
8481
|
+
// verify required parameter 'flatAvaProject' is not null or undefined
|
|
8482
|
+
if (flatAvaProject === null || flatAvaProject === undefined) {
|
|
8483
|
+
throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToOenorm.');
|
|
8484
|
+
}
|
|
8485
|
+
|
|
8486
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
8487
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
8488
|
+
}
|
|
8489
|
+
|
|
8490
|
+
if (destinationOenormType !== undefined) {
|
|
8491
|
+
localVarQueryParameters['DestinationOenormType'] = ObjectSerializer.serialize(destinationOenormType, "'Lv2015' | 'Lb2015' | 'B2063' | 'Lv2009' | 'Lb2009' | 'Lv2021' | 'Lb2021'");
|
|
8492
|
+
}
|
|
8493
|
+
|
|
8494
|
+
if (tryRepairProjectStructure !== undefined) {
|
|
8495
|
+
localVarQueryParameters['TryRepairProjectStructure'] = ObjectSerializer.serialize(tryRepairProjectStructure, "boolean");
|
|
8496
|
+
}
|
|
8497
|
+
|
|
8498
|
+
if (skipTryEnforceSchemaCompliantXmlOutput !== undefined) {
|
|
8499
|
+
localVarQueryParameters['SkipTryEnforceSchemaCompliantXmlOutput'] = ObjectSerializer.serialize(skipTryEnforceSchemaCompliantXmlOutput, "boolean");
|
|
8500
|
+
}
|
|
8501
|
+
|
|
8502
|
+
if (removeUnprintableCharactersFromTexts !== undefined) {
|
|
8503
|
+
localVarQueryParameters['RemoveUnprintableCharactersFromTexts'] = ObjectSerializer.serialize(removeUnprintableCharactersFromTexts, "boolean");
|
|
8504
|
+
}
|
|
8505
|
+
|
|
8506
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8507
|
+
|
|
8508
|
+
let localVarUseFormData = false;
|
|
8509
|
+
|
|
8510
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
8511
|
+
method: 'POST',
|
|
8512
|
+
qs: localVarQueryParameters,
|
|
8513
|
+
headers: localVarHeaderParams,
|
|
8514
|
+
uri: localVarPath,
|
|
8515
|
+
useQuerystring: this._useQuerystring,
|
|
8516
|
+
encoding: null,
|
|
8517
|
+
body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
|
|
8518
|
+
};
|
|
8519
|
+
|
|
8520
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
8521
|
+
|
|
8522
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
8523
|
+
|
|
8524
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8525
|
+
if (localVarUseFormData) {
|
|
8526
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
8527
|
+
} else {
|
|
8528
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8529
|
+
}
|
|
8530
|
+
}
|
|
8531
|
+
return new Promise<{ response: http.IncomingMessage; body: Buffer; }>((resolve, reject) => {
|
|
8532
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8533
|
+
if (error) {
|
|
8534
|
+
reject(error);
|
|
8535
|
+
} else {
|
|
8536
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
8537
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8538
|
+
resolve({ response: response, body: body });
|
|
8539
|
+
} else {
|
|
8540
|
+
reject({ response: response, body: body });
|
|
8541
|
+
}
|
|
8542
|
+
}
|
|
8543
|
+
});
|
|
8544
|
+
});
|
|
8545
|
+
}
|
|
8546
|
+
/**
|
|
8547
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8548
|
+
*/
|
|
8549
|
+
public flatAvaConversionConvertToRebWithRequestObject(flatAvaProject: FlatAvaProject, options?: { tryAutoGenerateItemNumbersAndSchema?: boolean, destinationRebType?: 'D11' | 'X31GaebXmlV32' | 'X31GaebXmlV33', options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
8550
|
+
return this.flatAvaConversionConvertToReb(flatAvaProject, options?.tryAutoGenerateItemNumbersAndSchema, options?.destinationRebType, options?.options || {});
|
|
8551
|
+
}
|
|
8552
|
+
|
|
8553
|
+
/**
|
|
8554
|
+
*
|
|
8555
|
+
* @summary Converts flat Dangl.AVA projects to REB
|
|
8556
|
+
* @param flatAvaProject The flat Dangl.AVA project
|
|
8557
|
+
* @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.
|
|
8558
|
+
* @param destinationRebType Defaults to D11
|
|
8559
|
+
* @param {*} [options] Override http request options.
|
|
8560
|
+
*/
|
|
8561
|
+
public flatAvaConversionConvertToReb (flatAvaProject: FlatAvaProject, tryAutoGenerateItemNumbersAndSchema?: boolean, destinationRebType?: 'D11' | 'X31GaebXmlV32' | 'X31GaebXmlV33', options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/flat-ava/reb';
|
|
8562
|
+
let localVarQueryParameters: any = {};
|
|
8563
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8564
|
+
let localVarFormParams: any = {};
|
|
8565
|
+
|
|
8566
|
+
// verify required parameter 'flatAvaProject' is not null or undefined
|
|
8567
|
+
if (flatAvaProject === null || flatAvaProject === undefined) {
|
|
8568
|
+
throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToReb.');
|
|
8569
|
+
}
|
|
8570
|
+
|
|
8571
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
8572
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
8573
|
+
}
|
|
8574
|
+
|
|
8575
|
+
if (destinationRebType !== undefined) {
|
|
8576
|
+
localVarQueryParameters['DestinationRebType'] = ObjectSerializer.serialize(destinationRebType, "'D11' | 'X31GaebXmlV32' | 'X31GaebXmlV33'");
|
|
8577
|
+
}
|
|
8578
|
+
|
|
8579
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8580
|
+
|
|
8581
|
+
let localVarUseFormData = false;
|
|
8582
|
+
|
|
8583
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
8584
|
+
method: 'POST',
|
|
8585
|
+
qs: localVarQueryParameters,
|
|
8586
|
+
headers: localVarHeaderParams,
|
|
8587
|
+
uri: localVarPath,
|
|
8588
|
+
useQuerystring: this._useQuerystring,
|
|
8589
|
+
encoding: null,
|
|
8590
|
+
body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
|
|
8591
|
+
};
|
|
8592
|
+
|
|
8593
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
8594
|
+
|
|
8595
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
8596
|
+
|
|
8597
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8598
|
+
if (localVarUseFormData) {
|
|
8599
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
8600
|
+
} else {
|
|
8601
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8602
|
+
}
|
|
8603
|
+
}
|
|
8604
|
+
return new Promise<{ response: http.IncomingMessage; body: Buffer; }>((resolve, reject) => {
|
|
8605
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8606
|
+
if (error) {
|
|
8607
|
+
reject(error);
|
|
8608
|
+
} else {
|
|
8609
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
8610
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8611
|
+
resolve({ response: response, body: body });
|
|
8612
|
+
} else {
|
|
8613
|
+
reject({ response: response, body: body });
|
|
8614
|
+
}
|
|
8615
|
+
}
|
|
8616
|
+
});
|
|
8617
|
+
});
|
|
8618
|
+
}
|
|
8619
|
+
/**
|
|
8620
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8621
|
+
*/
|
|
8622
|
+
public flatAvaConversionConvertToSiaWithRequestObject(flatAvaProject: FlatAvaProject, options?: { tryAutoGenerateItemNumbersAndSchema?: boolean, siaDestinationType?: 'Sia451' | 'Ifa18', options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
8623
|
+
return this.flatAvaConversionConvertToSia(flatAvaProject, options?.tryAutoGenerateItemNumbersAndSchema, options?.siaDestinationType, options?.options || {});
|
|
8624
|
+
}
|
|
8625
|
+
|
|
8626
|
+
/**
|
|
8627
|
+
*
|
|
8628
|
+
* @summary Converts flat Dangl.AVA projects to SIA 451
|
|
8629
|
+
* @param flatAvaProject The flat Dangl.AVA project
|
|
8630
|
+
* @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.
|
|
8631
|
+
* @param siaDestinationType Defaults to Sia451
|
|
8632
|
+
* @param {*} [options] Override http request options.
|
|
8633
|
+
*/
|
|
8634
|
+
public flatAvaConversionConvertToSia (flatAvaProject: FlatAvaProject, tryAutoGenerateItemNumbersAndSchema?: boolean, siaDestinationType?: 'Sia451' | 'Ifa18', options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/flat-ava/sia';
|
|
8635
|
+
let localVarQueryParameters: any = {};
|
|
8636
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8637
|
+
let localVarFormParams: any = {};
|
|
8638
|
+
|
|
8639
|
+
// verify required parameter 'flatAvaProject' is not null or undefined
|
|
8640
|
+
if (flatAvaProject === null || flatAvaProject === undefined) {
|
|
8641
|
+
throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToSia.');
|
|
8642
|
+
}
|
|
8643
|
+
|
|
8644
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
8645
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
8646
|
+
}
|
|
8647
|
+
|
|
8648
|
+
if (siaDestinationType !== undefined) {
|
|
8649
|
+
localVarQueryParameters['SiaDestinationType'] = ObjectSerializer.serialize(siaDestinationType, "'Sia451' | 'Ifa18'");
|
|
8650
|
+
}
|
|
8651
|
+
|
|
8652
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8653
|
+
|
|
8654
|
+
let localVarUseFormData = false;
|
|
8655
|
+
|
|
8656
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
8657
|
+
method: 'POST',
|
|
8658
|
+
qs: localVarQueryParameters,
|
|
8659
|
+
headers: localVarHeaderParams,
|
|
8660
|
+
uri: localVarPath,
|
|
8661
|
+
useQuerystring: this._useQuerystring,
|
|
8662
|
+
encoding: null,
|
|
8663
|
+
body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
|
|
8664
|
+
};
|
|
8665
|
+
|
|
8666
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
8667
|
+
|
|
8668
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
8669
|
+
|
|
8670
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8671
|
+
if (localVarUseFormData) {
|
|
8672
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
8673
|
+
} else {
|
|
8674
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8675
|
+
}
|
|
8676
|
+
}
|
|
8677
|
+
return new Promise<{ response: http.IncomingMessage; body: Buffer; }>((resolve, reject) => {
|
|
8678
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8679
|
+
if (error) {
|
|
8680
|
+
reject(error);
|
|
8681
|
+
} else {
|
|
8682
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
8683
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8684
|
+
resolve({ response: response, body: body });
|
|
8685
|
+
} else {
|
|
8686
|
+
reject({ response: response, body: body });
|
|
8687
|
+
}
|
|
8688
|
+
}
|
|
8689
|
+
});
|
|
8690
|
+
});
|
|
8691
|
+
}
|
|
8692
|
+
/**
|
|
8693
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8694
|
+
*/
|
|
8695
|
+
public flatAvaConversionConvertToUglWithRequestObject(flatAvaProject: FlatAvaProject, options?: { tryAutoGenerateItemNumbersAndSchema?: boolean, uglDestinationVersion?: 'V4' | 'V5', options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
8696
|
+
return this.flatAvaConversionConvertToUgl(flatAvaProject, options?.tryAutoGenerateItemNumbersAndSchema, options?.uglDestinationVersion, options?.options || {});
|
|
8697
|
+
}
|
|
8698
|
+
|
|
8699
|
+
/**
|
|
8700
|
+
*
|
|
8701
|
+
* @summary Converts flat Dangl.AVA projects to UGL
|
|
8702
|
+
* @param flatAvaProject The flat Dangl.AVA project
|
|
8703
|
+
* @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.
|
|
8704
|
+
* @param uglDestinationVersion The UGL version to convert to. Defaults to V1.
|
|
8705
|
+
* @param {*} [options] Override http request options.
|
|
8706
|
+
*/
|
|
8707
|
+
public flatAvaConversionConvertToUgl (flatAvaProject: FlatAvaProject, tryAutoGenerateItemNumbersAndSchema?: boolean, uglDestinationVersion?: 'V4' | 'V5', options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/flat-ava/ugl';
|
|
8708
|
+
let localVarQueryParameters: any = {};
|
|
8709
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8710
|
+
let localVarFormParams: any = {};
|
|
8711
|
+
|
|
8712
|
+
// verify required parameter 'flatAvaProject' is not null or undefined
|
|
8713
|
+
if (flatAvaProject === null || flatAvaProject === undefined) {
|
|
8714
|
+
throw new Error('Required parameter flatAvaProject was null or undefined when calling flatAvaConversionConvertToUgl.');
|
|
8715
|
+
}
|
|
8716
|
+
|
|
8717
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
8718
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
8719
|
+
}
|
|
8720
|
+
|
|
8721
|
+
if (uglDestinationVersion !== undefined) {
|
|
8722
|
+
localVarQueryParameters['UglDestinationVersion'] = ObjectSerializer.serialize(uglDestinationVersion, "'V4' | 'V5'");
|
|
8723
|
+
}
|
|
8724
|
+
|
|
8725
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8726
|
+
|
|
8727
|
+
let localVarUseFormData = false;
|
|
8728
|
+
|
|
8729
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
8730
|
+
method: 'POST',
|
|
8731
|
+
qs: localVarQueryParameters,
|
|
8732
|
+
headers: localVarHeaderParams,
|
|
8733
|
+
uri: localVarPath,
|
|
8734
|
+
useQuerystring: this._useQuerystring,
|
|
8735
|
+
encoding: null,
|
|
8736
|
+
body: ObjectSerializer.serialize(flatAvaProject, "FlatAvaProject")
|
|
8737
|
+
};
|
|
8738
|
+
|
|
8739
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
8740
|
+
|
|
8741
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
8742
|
+
|
|
8743
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8744
|
+
if (localVarUseFormData) {
|
|
8745
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
8746
|
+
} else {
|
|
8747
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8748
|
+
}
|
|
8749
|
+
}
|
|
8750
|
+
return new Promise<{ response: http.IncomingMessage; body: Buffer; }>((resolve, reject) => {
|
|
8751
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8752
|
+
if (error) {
|
|
8753
|
+
reject(error);
|
|
8754
|
+
} else {
|
|
8755
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
8756
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8757
|
+
resolve({ response: response, body: body });
|
|
8758
|
+
} else {
|
|
8759
|
+
reject({ response: response, body: body });
|
|
8760
|
+
}
|
|
8761
|
+
}
|
|
8762
|
+
});
|
|
8763
|
+
});
|
|
8764
|
+
}
|
|
8765
|
+
}
|
|
8766
|
+
export enum GaebConversionApiApiKeys {
|
|
8767
|
+
}
|
|
8768
|
+
|
|
8769
|
+
export class GaebConversionApi {
|
|
8770
|
+
protected _basePath = defaultBasePath;
|
|
8771
|
+
protected defaultHeaders : any = {};
|
|
8772
|
+
protected _useQuerystring : boolean = false;
|
|
8773
|
+
|
|
8774
|
+
protected authentications = {
|
|
8775
|
+
'default': <Authentication>new VoidAuth(),
|
|
8776
|
+
'Dangl.Identity': new OAuth(),
|
|
8777
|
+
}
|
|
8778
|
+
|
|
8779
|
+
constructor(basePath?: string);
|
|
8780
|
+
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
8781
|
+
if (password) {
|
|
8782
|
+
if (basePath) {
|
|
8783
|
+
this.basePath = basePath;
|
|
8784
|
+
}
|
|
8785
|
+
} else {
|
|
8786
|
+
if (basePathOrUsername) {
|
|
8787
|
+
this.basePath = basePathOrUsername
|
|
8788
|
+
}
|
|
8789
|
+
}
|
|
8790
|
+
}
|
|
8791
|
+
|
|
8792
|
+
set useQuerystring(value: boolean) {
|
|
8793
|
+
this._useQuerystring = value;
|
|
8794
|
+
}
|
|
8795
|
+
|
|
8796
|
+
set basePath(basePath: string) {
|
|
8797
|
+
this._basePath = basePath;
|
|
8798
|
+
}
|
|
8799
|
+
|
|
8800
|
+
get basePath() {
|
|
8801
|
+
return this._basePath;
|
|
8802
|
+
}
|
|
8803
|
+
|
|
8804
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
8805
|
+
this.authentications.default = auth;
|
|
8806
|
+
}
|
|
8807
|
+
|
|
8808
|
+
public setApiKey(key: GaebConversionApiApiKeys, value: string) {
|
|
8809
|
+
(this.authentications as any)[GaebConversionApiApiKeys[key]].apiKey = value;
|
|
8810
|
+
}
|
|
8811
|
+
|
|
8812
|
+
set accessToken(token: string) {
|
|
8813
|
+
this.authentications['Dangl.Identity'].accessToken = token;
|
|
8814
|
+
}
|
|
8815
|
+
/**
|
|
8816
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8817
|
+
*/
|
|
8818
|
+
public gaebConversionConvertToAvaWithRequestObject(gaebFile: FileParameter, options?: { supportSkippedItemNumberLevelsInPositions?: boolean, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, allowLumpSumItemsWithDifferingQuantities?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: ProjectDto; }> {
|
|
8819
|
+
return this.gaebConversionConvertToAva(gaebFile, options?.supportSkippedItemNumberLevelsInPositions, options?.removePlainTextLongTexts, options?.removeHtmlLongTexts, options?.outputHtmlAsXml, options?.keepEmptyHtmlText, options?.allowUpperCaseItemNumbers, options?.allowLumpSumItemsWithDifferingQuantities, options?.options || {});
|
|
8820
|
+
}
|
|
8821
|
+
|
|
8822
|
+
/**
|
|
8823
|
+
*
|
|
8824
|
+
* @summary Converts GAEB files to Dangl.AVA projects
|
|
8825
|
+
* @param gaebFile The input file
|
|
8826
|
+
* @param supportSkippedItemNumberLevelsInPositions Defaults to 'false'. This controls if, when deserializing GAEB files, skipped levels in position item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group levels and one position level - but the ItemNumber of the position is just '01.02', then it will be displayed as '01.__.02' if this is set to true.
|
|
8827
|
+
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
8828
|
+
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
8829
|
+
* @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>'.
|
|
8830
|
+
* @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.
|
|
8831
|
+
* @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.
|
|
8832
|
+
* @param allowLumpSumItemsWithDifferingQuantities Defaults to 'false'. By default, the GAEB standard requires lump sum items ('Pauschalpositionen' in German) to have a quantity of exactly 1. AVACloud does enforce this convention, but if you set this property to 'true', then differing quantities will be kept during the import.
|
|
8833
|
+
* @param {*} [options] Override http request options.
|
|
8834
|
+
*/
|
|
8835
|
+
public gaebConversionConvertToAva (gaebFile: FileParameter, supportSkippedItemNumberLevelsInPositions?: boolean, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, allowLumpSumItemsWithDifferingQuantities?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: ProjectDto; }> { const localVarPath = this.basePath + '/conversion/gaeb/ava';
|
|
8836
|
+
let localVarQueryParameters: any = {};
|
|
8837
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8838
|
+
let localVarFormParams: any = {};
|
|
8839
|
+
|
|
8840
|
+
if (supportSkippedItemNumberLevelsInPositions !== undefined) {
|
|
8841
|
+
localVarQueryParameters['SupportSkippedItemNumberLevelsInPositions'] = ObjectSerializer.serialize(supportSkippedItemNumberLevelsInPositions, "boolean");
|
|
8842
|
+
}
|
|
8843
|
+
|
|
8844
|
+
if (removePlainTextLongTexts !== undefined) {
|
|
8845
|
+
localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
|
|
8846
|
+
}
|
|
8847
|
+
|
|
8848
|
+
if (removeHtmlLongTexts !== undefined) {
|
|
8849
|
+
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
8850
|
+
}
|
|
8851
|
+
|
|
8852
|
+
if (outputHtmlAsXml !== undefined) {
|
|
8853
|
+
localVarQueryParameters['OutputHtmlAsXml'] = ObjectSerializer.serialize(outputHtmlAsXml, "boolean");
|
|
8854
|
+
}
|
|
8855
|
+
|
|
8856
|
+
if (keepEmptyHtmlText !== undefined) {
|
|
8857
|
+
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
8858
|
+
}
|
|
8859
|
+
|
|
8860
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
8861
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
8862
|
+
}
|
|
8863
|
+
|
|
8864
|
+
if (allowLumpSumItemsWithDifferingQuantities !== undefined) {
|
|
8865
|
+
localVarQueryParameters['AllowLumpSumItemsWithDifferingQuantities'] = ObjectSerializer.serialize(allowLumpSumItemsWithDifferingQuantities, "boolean");
|
|
8866
|
+
}
|
|
8867
|
+
|
|
8868
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8869
|
+
|
|
8870
|
+
let localVarUseFormData = false;
|
|
8871
|
+
|
|
8872
|
+
if (gaebFile !== undefined) {
|
|
8873
|
+
localVarFormParams['gaebFile'] = gaebFile;
|
|
8874
|
+
}
|
|
8875
|
+
localVarUseFormData = true;
|
|
8876
|
+
|
|
8877
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
8878
|
+
method: 'POST',
|
|
8879
|
+
qs: localVarQueryParameters,
|
|
8880
|
+
headers: localVarHeaderParams,
|
|
8881
|
+
uri: localVarPath,
|
|
8882
|
+
useQuerystring: this._useQuerystring,
|
|
8883
|
+
json: true,
|
|
8884
|
+
};
|
|
8885
|
+
|
|
8886
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
8887
|
+
|
|
8888
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
8889
|
+
|
|
8890
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8891
|
+
if (localVarUseFormData) {
|
|
8892
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
8893
|
+
} else {
|
|
8894
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8895
|
+
}
|
|
8896
|
+
}
|
|
8897
|
+
return new Promise<{ response: http.IncomingMessage; body: ProjectDto; }>((resolve, reject) => {
|
|
8898
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8899
|
+
if (error) {
|
|
8900
|
+
reject(error);
|
|
8901
|
+
} else {
|
|
8902
|
+
body = ObjectSerializer.deserialize(body, "ProjectDto");
|
|
8903
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8904
|
+
resolve({ response: response, body: body });
|
|
8905
|
+
} else {
|
|
8906
|
+
reject({ response: response, body: body });
|
|
8907
|
+
}
|
|
8908
|
+
}
|
|
8909
|
+
});
|
|
8910
|
+
});
|
|
8911
|
+
}
|
|
8912
|
+
/**
|
|
8913
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8914
|
+
*/
|
|
8915
|
+
public gaebConversionConvertToExcelWithRequestObject(gaebFile: FileParameter, options?: { supportSkippedItemNumberLevelsInPositions?: boolean, writePrices?: boolean, writeLongTexts?: boolean, conversionCulture?: string, includeArticleNumbers?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, allowLumpSumItemsWithDifferingQuantities?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
8916
|
+
return this.gaebConversionConvertToExcel(gaebFile, options?.supportSkippedItemNumberLevelsInPositions, options?.writePrices, options?.writeLongTexts, options?.conversionCulture, options?.includeArticleNumbers, options?.outputHtmlAsXml, options?.keepEmptyHtmlText, options?.allowUpperCaseItemNumbers, options?.allowLumpSumItemsWithDifferingQuantities, options?.options || {});
|
|
8917
|
+
}
|
|
8918
|
+
|
|
8919
|
+
/**
|
|
8920
|
+
*
|
|
8921
|
+
* @summary Converts GAEB files to Excel
|
|
8922
|
+
* @param gaebFile The input file
|
|
8923
|
+
* @param supportSkippedItemNumberLevelsInPositions Defaults to 'false'. This controls if, when deserializing GAEB files, skipped levels in position item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group levels and one position level - but the ItemNumber of the position is just '01.02', then it will be displayed as '01.__.02' if this is set to true.
|
|
8924
|
+
* @param writePrices Defaults to true
|
|
8925
|
+
* @param writeLongTexts Defaults to true
|
|
8926
|
+
* @param conversionCulture The culture that should be used for the conversion process, to have localized Excel files
|
|
8927
|
+
* @param includeArticleNumbers If this is enabled, then a new column will be created in the overview worksheet that contains the article numbers for positions. Article numbers will be read from 'position.commerceProperties.articleNumber'
|
|
8928
|
+
* @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>'.
|
|
8929
|
+
* @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.
|
|
8930
|
+
* @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.
|
|
8931
|
+
* @param allowLumpSumItemsWithDifferingQuantities Defaults to 'false'. By default, the GAEB standard requires lump sum items ('Pauschalpositionen' in German) to have a quantity of exactly 1. AVACloud does enforce this convention, but if you set this property to 'true', then differing quantities will be kept during the import.
|
|
8932
|
+
* @param {*} [options] Override http request options.
|
|
8933
|
+
*/
|
|
8934
|
+
public gaebConversionConvertToExcel (gaebFile: FileParameter, supportSkippedItemNumberLevelsInPositions?: boolean, writePrices?: boolean, writeLongTexts?: boolean, conversionCulture?: string, includeArticleNumbers?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, allowLumpSumItemsWithDifferingQuantities?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/gaeb/excel';
|
|
8935
|
+
let localVarQueryParameters: any = {};
|
|
8936
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8937
|
+
let localVarFormParams: any = {};
|
|
8938
|
+
|
|
8939
|
+
if (supportSkippedItemNumberLevelsInPositions !== undefined) {
|
|
8940
|
+
localVarQueryParameters['SupportSkippedItemNumberLevelsInPositions'] = ObjectSerializer.serialize(supportSkippedItemNumberLevelsInPositions, "boolean");
|
|
8941
|
+
}
|
|
8942
|
+
|
|
8943
|
+
if (writePrices !== undefined) {
|
|
8944
|
+
localVarQueryParameters['WritePrices'] = ObjectSerializer.serialize(writePrices, "boolean");
|
|
8945
|
+
}
|
|
8946
|
+
|
|
8947
|
+
if (writeLongTexts !== undefined) {
|
|
7636
8948
|
localVarQueryParameters['WriteLongTexts'] = ObjectSerializer.serialize(writeLongTexts, "boolean");
|
|
7637
8949
|
}
|
|
7638
8950
|
|
|
@@ -7707,6 +9019,93 @@ export class GaebConversionApi {
|
|
|
7707
9019
|
/**
|
|
7708
9020
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
7709
9021
|
*/
|
|
9022
|
+
public gaebConversionConvertToFlatAvaWithRequestObject(gaebFile: FileParameter, options?: { supportSkippedItemNumberLevelsInPositions?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, allowLumpSumItemsWithDifferingQuantities?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> {
|
|
9023
|
+
return this.gaebConversionConvertToFlatAva(gaebFile, options?.supportSkippedItemNumberLevelsInPositions, options?.outputHtmlAsXml, options?.keepEmptyHtmlText, options?.allowUpperCaseItemNumbers, options?.allowLumpSumItemsWithDifferingQuantities, options?.options || {});
|
|
9024
|
+
}
|
|
9025
|
+
|
|
9026
|
+
/**
|
|
9027
|
+
*
|
|
9028
|
+
* @summary Converts GAEB files to Dangl.AVA projects
|
|
9029
|
+
* @param gaebFile The input file
|
|
9030
|
+
* @param supportSkippedItemNumberLevelsInPositions Defaults to 'false'. This controls if, when deserializing GAEB files, skipped levels in position item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group levels and one position level - but the ItemNumber of the position is just '01.02', then it will be displayed as '01.__.02' if this is set to true.
|
|
9031
|
+
* @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>'.
|
|
9032
|
+
* @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.
|
|
9033
|
+
* @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.
|
|
9034
|
+
* @param allowLumpSumItemsWithDifferingQuantities Defaults to 'false'. By default, the GAEB standard requires lump sum items ('Pauschalpositionen' in German) to have a quantity of exactly 1. AVACloud does enforce this convention, but if you set this property to 'true', then differing quantities will be kept during the import.
|
|
9035
|
+
* @param {*} [options] Override http request options.
|
|
9036
|
+
*/
|
|
9037
|
+
public gaebConversionConvertToFlatAva (gaebFile: FileParameter, supportSkippedItemNumberLevelsInPositions?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, allowLumpSumItemsWithDifferingQuantities?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> { const localVarPath = this.basePath + '/conversion/gaeb/flat-ava';
|
|
9038
|
+
let localVarQueryParameters: any = {};
|
|
9039
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
9040
|
+
let localVarFormParams: any = {};
|
|
9041
|
+
|
|
9042
|
+
if (supportSkippedItemNumberLevelsInPositions !== undefined) {
|
|
9043
|
+
localVarQueryParameters['SupportSkippedItemNumberLevelsInPositions'] = ObjectSerializer.serialize(supportSkippedItemNumberLevelsInPositions, "boolean");
|
|
9044
|
+
}
|
|
9045
|
+
|
|
9046
|
+
if (outputHtmlAsXml !== undefined) {
|
|
9047
|
+
localVarQueryParameters['OutputHtmlAsXml'] = ObjectSerializer.serialize(outputHtmlAsXml, "boolean");
|
|
9048
|
+
}
|
|
9049
|
+
|
|
9050
|
+
if (keepEmptyHtmlText !== undefined) {
|
|
9051
|
+
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
9052
|
+
}
|
|
9053
|
+
|
|
9054
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
9055
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
9056
|
+
}
|
|
9057
|
+
|
|
9058
|
+
if (allowLumpSumItemsWithDifferingQuantities !== undefined) {
|
|
9059
|
+
localVarQueryParameters['AllowLumpSumItemsWithDifferingQuantities'] = ObjectSerializer.serialize(allowLumpSumItemsWithDifferingQuantities, "boolean");
|
|
9060
|
+
}
|
|
9061
|
+
|
|
9062
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
9063
|
+
|
|
9064
|
+
let localVarUseFormData = false;
|
|
9065
|
+
|
|
9066
|
+
if (gaebFile !== undefined) {
|
|
9067
|
+
localVarFormParams['gaebFile'] = gaebFile;
|
|
9068
|
+
}
|
|
9069
|
+
localVarUseFormData = true;
|
|
9070
|
+
|
|
9071
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
9072
|
+
method: 'POST',
|
|
9073
|
+
qs: localVarQueryParameters,
|
|
9074
|
+
headers: localVarHeaderParams,
|
|
9075
|
+
uri: localVarPath,
|
|
9076
|
+
useQuerystring: this._useQuerystring,
|
|
9077
|
+
json: true,
|
|
9078
|
+
};
|
|
9079
|
+
|
|
9080
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
9081
|
+
|
|
9082
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
9083
|
+
|
|
9084
|
+
if (Object.keys(localVarFormParams).length) {
|
|
9085
|
+
if (localVarUseFormData) {
|
|
9086
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
9087
|
+
} else {
|
|
9088
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
9089
|
+
}
|
|
9090
|
+
}
|
|
9091
|
+
return new Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }>((resolve, reject) => {
|
|
9092
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
9093
|
+
if (error) {
|
|
9094
|
+
reject(error);
|
|
9095
|
+
} else {
|
|
9096
|
+
body = ObjectSerializer.deserialize(body, "FlatAvaProject");
|
|
9097
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
9098
|
+
resolve({ response: response, body: body });
|
|
9099
|
+
} else {
|
|
9100
|
+
reject({ response: response, body: body });
|
|
9101
|
+
}
|
|
9102
|
+
}
|
|
9103
|
+
});
|
|
9104
|
+
});
|
|
9105
|
+
}
|
|
9106
|
+
/**
|
|
9107
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
9108
|
+
*/
|
|
7710
9109
|
public gaebConversionConvertToGaebWithRequestObject(gaebFile: FileParameter, options?: { supportSkippedItemNumberLevelsInPositions?: boolean, destinationGaebType?: 'Gaeb90' | 'Gaeb2000' | 'Gaeb2000Commerce' | 'GaebXml_V3_1' | 'GaebXml_V3_2' | 'GaebXml_V3_2_Commerce' | 'GaebXml_V3_3' | 'GaebXml_V3_3_Commerce' | 'GaebXml_V3_3_2019' | 'GaebXml_V3_3_2019_Commerce', targetExchangePhaseTransform?: 'None' | 'Base' | 'OfferRequest' | 'Offer' | 'Grant' | 'CostEstimate' | 'SideOffer', enforceStrictOfferPhaseLongTextOutput?: boolean, exportQuantityDetermination?: boolean, removeUnprintableCharactersFromTexts?: boolean, forceIncludeDescriptions?: boolean, treatNullItemNumberSchemaAsInvalid?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, allowLumpSumItemsWithDifferingQuantities?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
7711
9110
|
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?.allowLumpSumItemsWithDifferingQuantities, options?.options || {});
|
|
7712
9111
|
}
|
|
@@ -7976,41 +9375,97 @@ export class IdsConnectConversionApi {
|
|
|
7976
9375
|
this.authentications.default = auth;
|
|
7977
9376
|
}
|
|
7978
9377
|
|
|
7979
|
-
public setApiKey(key: IdsConnectConversionApiApiKeys, value: string) {
|
|
7980
|
-
(this.authentications as any)[IdsConnectConversionApiApiKeys[key]].apiKey = value;
|
|
7981
|
-
}
|
|
9378
|
+
public setApiKey(key: IdsConnectConversionApiApiKeys, value: string) {
|
|
9379
|
+
(this.authentications as any)[IdsConnectConversionApiApiKeys[key]].apiKey = value;
|
|
9380
|
+
}
|
|
9381
|
+
|
|
9382
|
+
set accessToken(token: string) {
|
|
9383
|
+
this.authentications['Dangl.Identity'].accessToken = token;
|
|
9384
|
+
}
|
|
9385
|
+
/**
|
|
9386
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
9387
|
+
*/
|
|
9388
|
+
public idsConnectConversionConvertToAvaWithRequestObject(idsConnectFile: FileParameter, options?: { removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: ProjectDto; }> {
|
|
9389
|
+
return this.idsConnectConversionConvertToAva(idsConnectFile, options?.removePlainTextLongTexts, options?.removeHtmlLongTexts, options?.options || {});
|
|
9390
|
+
}
|
|
9391
|
+
|
|
9392
|
+
/**
|
|
9393
|
+
*
|
|
9394
|
+
* @summary Converts IDS Connect files to Dangl.AVA projects
|
|
9395
|
+
* @param idsConnectFile The input file
|
|
9396
|
+
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
9397
|
+
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
9398
|
+
* @param {*} [options] Override http request options.
|
|
9399
|
+
*/
|
|
9400
|
+
public idsConnectConversionConvertToAva (idsConnectFile: FileParameter, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: ProjectDto; }> { const localVarPath = this.basePath + '/conversion/ids-connect/ava';
|
|
9401
|
+
let localVarQueryParameters: any = {};
|
|
9402
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
9403
|
+
let localVarFormParams: any = {};
|
|
9404
|
+
|
|
9405
|
+
if (removePlainTextLongTexts !== undefined) {
|
|
9406
|
+
localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
|
|
9407
|
+
}
|
|
9408
|
+
|
|
9409
|
+
if (removeHtmlLongTexts !== undefined) {
|
|
9410
|
+
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
9411
|
+
}
|
|
9412
|
+
|
|
9413
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
9414
|
+
|
|
9415
|
+
let localVarUseFormData = false;
|
|
9416
|
+
|
|
9417
|
+
if (idsConnectFile !== undefined) {
|
|
9418
|
+
localVarFormParams['idsConnectFile'] = idsConnectFile;
|
|
9419
|
+
}
|
|
9420
|
+
localVarUseFormData = true;
|
|
9421
|
+
|
|
9422
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
9423
|
+
method: 'POST',
|
|
9424
|
+
qs: localVarQueryParameters,
|
|
9425
|
+
headers: localVarHeaderParams,
|
|
9426
|
+
uri: localVarPath,
|
|
9427
|
+
useQuerystring: this._useQuerystring,
|
|
9428
|
+
json: true,
|
|
9429
|
+
};
|
|
9430
|
+
|
|
9431
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
9432
|
+
|
|
9433
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
7982
9434
|
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
9435
|
+
if (Object.keys(localVarFormParams).length) {
|
|
9436
|
+
if (localVarUseFormData) {
|
|
9437
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
9438
|
+
} else {
|
|
9439
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
9440
|
+
}
|
|
9441
|
+
}
|
|
9442
|
+
return new Promise<{ response: http.IncomingMessage; body: ProjectDto; }>((resolve, reject) => {
|
|
9443
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
9444
|
+
if (error) {
|
|
9445
|
+
reject(error);
|
|
9446
|
+
} else {
|
|
9447
|
+
body = ObjectSerializer.deserialize(body, "ProjectDto");
|
|
9448
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
9449
|
+
resolve({ response: response, body: body });
|
|
9450
|
+
} else {
|
|
9451
|
+
reject({ response: response, body: body });
|
|
9452
|
+
}
|
|
9453
|
+
}
|
|
9454
|
+
});
|
|
9455
|
+
});
|
|
7991
9456
|
}
|
|
7992
|
-
|
|
7993
9457
|
/**
|
|
7994
9458
|
*
|
|
7995
9459
|
* @summary Converts IDS Connect files to Dangl.AVA projects
|
|
7996
9460
|
* @param idsConnectFile The input file
|
|
7997
|
-
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
7998
|
-
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
7999
9461
|
* @param {*} [options] Override http request options.
|
|
8000
9462
|
*/
|
|
8001
|
-
public
|
|
9463
|
+
public idsConnectConversionConvertToFlatAva (idsConnectFile: FileParameter, options: any = {}) : Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> {
|
|
9464
|
+
const localVarPath = this.basePath + '/conversion/ids-connect/flat-ava';
|
|
8002
9465
|
let localVarQueryParameters: any = {};
|
|
8003
9466
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8004
9467
|
let localVarFormParams: any = {};
|
|
8005
9468
|
|
|
8006
|
-
if (removePlainTextLongTexts !== undefined) {
|
|
8007
|
-
localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
|
|
8008
|
-
}
|
|
8009
|
-
|
|
8010
|
-
if (removeHtmlLongTexts !== undefined) {
|
|
8011
|
-
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
8012
|
-
}
|
|
8013
|
-
|
|
8014
9469
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8015
9470
|
|
|
8016
9471
|
let localVarUseFormData = false;
|
|
@@ -8040,12 +9495,12 @@ export class IdsConnectConversionApi {
|
|
|
8040
9495
|
localVarRequestOptions.form = localVarFormParams;
|
|
8041
9496
|
}
|
|
8042
9497
|
}
|
|
8043
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
9498
|
+
return new Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }>((resolve, reject) => {
|
|
8044
9499
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8045
9500
|
if (error) {
|
|
8046
9501
|
reject(error);
|
|
8047
9502
|
} else {
|
|
8048
|
-
body = ObjectSerializer.deserialize(body, "
|
|
9503
|
+
body = ObjectSerializer.deserialize(body, "FlatAvaProject");
|
|
8049
9504
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8050
9505
|
resolve({ response: response, body: body });
|
|
8051
9506
|
} else {
|
|
@@ -8259,6 +9714,62 @@ export class OenormConversionApi {
|
|
|
8259
9714
|
});
|
|
8260
9715
|
});
|
|
8261
9716
|
}
|
|
9717
|
+
/**
|
|
9718
|
+
*
|
|
9719
|
+
* @summary Converts ÖNorm files to Dangl.AVA projects
|
|
9720
|
+
* @param oenormFile The input file
|
|
9721
|
+
* @param {*} [options] Override http request options.
|
|
9722
|
+
*/
|
|
9723
|
+
public oenormConversionConvertToFlatAva (oenormFile: FileParameter, options: any = {}) : Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> {
|
|
9724
|
+
const localVarPath = this.basePath + '/conversion/oenorm/flat-ava';
|
|
9725
|
+
let localVarQueryParameters: any = {};
|
|
9726
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
9727
|
+
let localVarFormParams: any = {};
|
|
9728
|
+
|
|
9729
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
9730
|
+
|
|
9731
|
+
let localVarUseFormData = false;
|
|
9732
|
+
|
|
9733
|
+
if (oenormFile !== undefined) {
|
|
9734
|
+
localVarFormParams['oenormFile'] = oenormFile;
|
|
9735
|
+
}
|
|
9736
|
+
localVarUseFormData = true;
|
|
9737
|
+
|
|
9738
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
9739
|
+
method: 'POST',
|
|
9740
|
+
qs: localVarQueryParameters,
|
|
9741
|
+
headers: localVarHeaderParams,
|
|
9742
|
+
uri: localVarPath,
|
|
9743
|
+
useQuerystring: this._useQuerystring,
|
|
9744
|
+
json: true,
|
|
9745
|
+
};
|
|
9746
|
+
|
|
9747
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
9748
|
+
|
|
9749
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
9750
|
+
|
|
9751
|
+
if (Object.keys(localVarFormParams).length) {
|
|
9752
|
+
if (localVarUseFormData) {
|
|
9753
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
9754
|
+
} else {
|
|
9755
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
9756
|
+
}
|
|
9757
|
+
}
|
|
9758
|
+
return new Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }>((resolve, reject) => {
|
|
9759
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
9760
|
+
if (error) {
|
|
9761
|
+
reject(error);
|
|
9762
|
+
} else {
|
|
9763
|
+
body = ObjectSerializer.deserialize(body, "FlatAvaProject");
|
|
9764
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
9765
|
+
resolve({ response: response, body: body });
|
|
9766
|
+
} else {
|
|
9767
|
+
reject({ response: response, body: body });
|
|
9768
|
+
}
|
|
9769
|
+
}
|
|
9770
|
+
});
|
|
9771
|
+
});
|
|
9772
|
+
}
|
|
8262
9773
|
/**
|
|
8263
9774
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8264
9775
|
*/
|
|
@@ -8642,6 +10153,62 @@ export class RebConversionApi {
|
|
|
8642
10153
|
});
|
|
8643
10154
|
});
|
|
8644
10155
|
}
|
|
10156
|
+
/**
|
|
10157
|
+
*
|
|
10158
|
+
* @summary Converts REB files to Dangl.AVA projects
|
|
10159
|
+
* @param rebFile The input file
|
|
10160
|
+
* @param {*} [options] Override http request options.
|
|
10161
|
+
*/
|
|
10162
|
+
public rebConversionConvertToFlatAva (rebFile: FileParameter, options: any = {}) : Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> {
|
|
10163
|
+
const localVarPath = this.basePath + '/conversion/reb/flat-ava';
|
|
10164
|
+
let localVarQueryParameters: any = {};
|
|
10165
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
10166
|
+
let localVarFormParams: any = {};
|
|
10167
|
+
|
|
10168
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
10169
|
+
|
|
10170
|
+
let localVarUseFormData = false;
|
|
10171
|
+
|
|
10172
|
+
if (rebFile !== undefined) {
|
|
10173
|
+
localVarFormParams['rebFile'] = rebFile;
|
|
10174
|
+
}
|
|
10175
|
+
localVarUseFormData = true;
|
|
10176
|
+
|
|
10177
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
10178
|
+
method: 'POST',
|
|
10179
|
+
qs: localVarQueryParameters,
|
|
10180
|
+
headers: localVarHeaderParams,
|
|
10181
|
+
uri: localVarPath,
|
|
10182
|
+
useQuerystring: this._useQuerystring,
|
|
10183
|
+
json: true,
|
|
10184
|
+
};
|
|
10185
|
+
|
|
10186
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
10187
|
+
|
|
10188
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
10189
|
+
|
|
10190
|
+
if (Object.keys(localVarFormParams).length) {
|
|
10191
|
+
if (localVarUseFormData) {
|
|
10192
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
10193
|
+
} else {
|
|
10194
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
10195
|
+
}
|
|
10196
|
+
}
|
|
10197
|
+
return new Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }>((resolve, reject) => {
|
|
10198
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
10199
|
+
if (error) {
|
|
10200
|
+
reject(error);
|
|
10201
|
+
} else {
|
|
10202
|
+
body = ObjectSerializer.deserialize(body, "FlatAvaProject");
|
|
10203
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
10204
|
+
resolve({ response: response, body: body });
|
|
10205
|
+
} else {
|
|
10206
|
+
reject({ response: response, body: body });
|
|
10207
|
+
}
|
|
10208
|
+
}
|
|
10209
|
+
});
|
|
10210
|
+
});
|
|
10211
|
+
}
|
|
8645
10212
|
/**
|
|
8646
10213
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8647
10214
|
*/
|
|
@@ -9025,6 +10592,62 @@ export class SiaConversionApi {
|
|
|
9025
10592
|
});
|
|
9026
10593
|
});
|
|
9027
10594
|
}
|
|
10595
|
+
/**
|
|
10596
|
+
*
|
|
10597
|
+
* @summary Converts SIA 451 files to Dangl.AVA projects
|
|
10598
|
+
* @param siaFile The input file
|
|
10599
|
+
* @param {*} [options] Override http request options.
|
|
10600
|
+
*/
|
|
10601
|
+
public siaConversionConvertToFlatAva (siaFile: FileParameter, options: any = {}) : Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> {
|
|
10602
|
+
const localVarPath = this.basePath + '/conversion/sia/flat-ava';
|
|
10603
|
+
let localVarQueryParameters: any = {};
|
|
10604
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
10605
|
+
let localVarFormParams: any = {};
|
|
10606
|
+
|
|
10607
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
10608
|
+
|
|
10609
|
+
let localVarUseFormData = false;
|
|
10610
|
+
|
|
10611
|
+
if (siaFile !== undefined) {
|
|
10612
|
+
localVarFormParams['siaFile'] = siaFile;
|
|
10613
|
+
}
|
|
10614
|
+
localVarUseFormData = true;
|
|
10615
|
+
|
|
10616
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
10617
|
+
method: 'POST',
|
|
10618
|
+
qs: localVarQueryParameters,
|
|
10619
|
+
headers: localVarHeaderParams,
|
|
10620
|
+
uri: localVarPath,
|
|
10621
|
+
useQuerystring: this._useQuerystring,
|
|
10622
|
+
json: true,
|
|
10623
|
+
};
|
|
10624
|
+
|
|
10625
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
10626
|
+
|
|
10627
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
10628
|
+
|
|
10629
|
+
if (Object.keys(localVarFormParams).length) {
|
|
10630
|
+
if (localVarUseFormData) {
|
|
10631
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
10632
|
+
} else {
|
|
10633
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
10634
|
+
}
|
|
10635
|
+
}
|
|
10636
|
+
return new Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }>((resolve, reject) => {
|
|
10637
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
10638
|
+
if (error) {
|
|
10639
|
+
reject(error);
|
|
10640
|
+
} else {
|
|
10641
|
+
body = ObjectSerializer.deserialize(body, "FlatAvaProject");
|
|
10642
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
10643
|
+
resolve({ response: response, body: body });
|
|
10644
|
+
} else {
|
|
10645
|
+
reject({ response: response, body: body });
|
|
10646
|
+
}
|
|
10647
|
+
}
|
|
10648
|
+
});
|
|
10649
|
+
});
|
|
10650
|
+
}
|
|
9028
10651
|
/**
|
|
9029
10652
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
9030
10653
|
*/
|
|
@@ -9426,6 +11049,62 @@ export class UglConversionApi {
|
|
|
9426
11049
|
});
|
|
9427
11050
|
});
|
|
9428
11051
|
}
|
|
11052
|
+
/**
|
|
11053
|
+
*
|
|
11054
|
+
* @summary Converts Ugl files to Dangl.AVA projects
|
|
11055
|
+
* @param uglFile The input file
|
|
11056
|
+
* @param {*} [options] Override http request options.
|
|
11057
|
+
*/
|
|
11058
|
+
public uglConversionConvertToFlatAva (uglFile: FileParameter, options: any = {}) : Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }> {
|
|
11059
|
+
const localVarPath = this.basePath + '/conversion/ugl/flat-ava';
|
|
11060
|
+
let localVarQueryParameters: any = {};
|
|
11061
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
11062
|
+
let localVarFormParams: any = {};
|
|
11063
|
+
|
|
11064
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
11065
|
+
|
|
11066
|
+
let localVarUseFormData = false;
|
|
11067
|
+
|
|
11068
|
+
if (uglFile !== undefined) {
|
|
11069
|
+
localVarFormParams['uglFile'] = uglFile;
|
|
11070
|
+
}
|
|
11071
|
+
localVarUseFormData = true;
|
|
11072
|
+
|
|
11073
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
11074
|
+
method: 'POST',
|
|
11075
|
+
qs: localVarQueryParameters,
|
|
11076
|
+
headers: localVarHeaderParams,
|
|
11077
|
+
uri: localVarPath,
|
|
11078
|
+
useQuerystring: this._useQuerystring,
|
|
11079
|
+
json: true,
|
|
11080
|
+
};
|
|
11081
|
+
|
|
11082
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
11083
|
+
|
|
11084
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
11085
|
+
|
|
11086
|
+
if (Object.keys(localVarFormParams).length) {
|
|
11087
|
+
if (localVarUseFormData) {
|
|
11088
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
11089
|
+
} else {
|
|
11090
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
11091
|
+
}
|
|
11092
|
+
}
|
|
11093
|
+
return new Promise<{ response: http.IncomingMessage; body: FlatAvaProject; }>((resolve, reject) => {
|
|
11094
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
11095
|
+
if (error) {
|
|
11096
|
+
reject(error);
|
|
11097
|
+
} else {
|
|
11098
|
+
body = ObjectSerializer.deserialize(body, "FlatAvaProject");
|
|
11099
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
11100
|
+
resolve({ response: response, body: body });
|
|
11101
|
+
} else {
|
|
11102
|
+
reject({ response: response, body: body });
|
|
11103
|
+
}
|
|
11104
|
+
}
|
|
11105
|
+
});
|
|
11106
|
+
});
|
|
11107
|
+
}
|
|
9429
11108
|
}
|
|
9430
11109
|
export enum ValidationApiApiKeys {
|
|
9431
11110
|
}
|