@dangl/avacloud-client-node 1.22.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.d.ts +196 -8
- package/api.js +432 -13
- package/api.js.map +1 -1
- package/api.ts +505 -16
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* AVACloud API 1.
|
|
2
|
+
* AVACloud API 1.41.5
|
|
3
3
|
* AVACloud API specification
|
|
4
4
|
*
|
|
5
|
-
* OpenAPI spec version: 1.
|
|
5
|
+
* OpenAPI spec version: 1.41.5
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
@@ -718,6 +718,21 @@ export class ComplementedByQuantityDto {
|
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
|
|
721
|
+
/**
|
|
722
|
+
* Represents valid Datanorm versions for export
|
|
723
|
+
*/
|
|
724
|
+
export class DatanormDestinationVersion {
|
|
725
|
+
|
|
726
|
+
static discriminator: string | undefined = undefined;
|
|
727
|
+
|
|
728
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
729
|
+
];
|
|
730
|
+
|
|
731
|
+
static getAttributeTypeMap() {
|
|
732
|
+
return DatanormDestinationVersion.attributeTypeMap;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
721
736
|
/**
|
|
722
737
|
* The GAEB exchange phase to transform to
|
|
723
738
|
*/
|
|
@@ -1130,7 +1145,7 @@ export class ItemNumberDto {
|
|
|
1130
1145
|
*/
|
|
1131
1146
|
'id': string;
|
|
1132
1147
|
/**
|
|
1133
|
-
* Will return this ItemNumber as point delimited string. Will not distinguish between upper- and lowercase and return an all-lowercase representation. Will consider first numbers, then characters, e.g. 1a is considered preceding aa.
|
|
1148
|
+
* Will return this ItemNumber as point delimited string. Will not distinguish between upper- and lowercase and return an all-lowercase representation. Will consider first numbers, then characters, e.g. 1a is considered preceding aa. Transformation to all lowercase can be configured in the ItemNumberSchema property.
|
|
1134
1149
|
*/
|
|
1135
1150
|
'stringRepresentation'?: string;
|
|
1136
1151
|
/**
|
|
@@ -1243,6 +1258,10 @@ export class ItemNumberSchemaDto {
|
|
|
1243
1258
|
* This is a read-only property that indicates if this schema has a valid structure. It internally just returns the result from IsCorrectlyDefined. This will return if the ItemNumberSchema is correctly defined. For it to be correctly defined, the following conditions must be true: There may only be one lot group, if there is one, it must be at the top. Following lot levels, there may be at least one group level. After the group levels, there must be one position level. After the position level, there may be one index level. If no tiers are defined at all, this will also return false.
|
|
1244
1259
|
*/
|
|
1245
1260
|
'schemaIsCorrectlyDefined': boolean;
|
|
1261
|
+
/**
|
|
1262
|
+
* Defaults to false. If this is disabled, all letters in the ItemNumber string representations will be transformed to their lowercase representation.
|
|
1263
|
+
*/
|
|
1264
|
+
'allowUpperCaseLettering': boolean;
|
|
1246
1265
|
|
|
1247
1266
|
static discriminator: string | undefined = undefined;
|
|
1248
1267
|
|
|
@@ -1286,6 +1305,11 @@ export class ItemNumberSchemaDto {
|
|
|
1286
1305
|
"name": "schemaIsCorrectlyDefined",
|
|
1287
1306
|
"baseName": "schemaIsCorrectlyDefined",
|
|
1288
1307
|
"type": "boolean"
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"name": "allowUpperCaseLettering",
|
|
1311
|
+
"baseName": "allowUpperCaseLettering",
|
|
1312
|
+
"type": "boolean"
|
|
1289
1313
|
} ];
|
|
1290
1314
|
|
|
1291
1315
|
static getAttributeTypeMap() {
|
|
@@ -2193,6 +2217,10 @@ export class PositionDto extends IElementDto {
|
|
|
2193
2217
|
* HoldOut properties describe services that are to be provided and maintained for a specific time, e.g. fences on a construction site.
|
|
2194
2218
|
*/
|
|
2195
2219
|
'holdOutProperties'?: PositionHoldOutPropertiesDto;
|
|
2220
|
+
/**
|
|
2221
|
+
* This is an informational property, which directly holds a numerical value for an estimated quantity. It is not used for any price calculations.
|
|
2222
|
+
*/
|
|
2223
|
+
'estimatedQuantity'?: number;
|
|
2196
2224
|
|
|
2197
2225
|
static discriminator: string | undefined = undefined;
|
|
2198
2226
|
|
|
@@ -2461,6 +2489,11 @@ export class PositionDto extends IElementDto {
|
|
|
2461
2489
|
"name": "holdOutProperties",
|
|
2462
2490
|
"baseName": "holdOutProperties",
|
|
2463
2491
|
"type": "PositionHoldOutPropertiesDto"
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
"name": "estimatedQuantity",
|
|
2495
|
+
"baseName": "estimatedQuantity",
|
|
2496
|
+
"type": "number"
|
|
2464
2497
|
} ];
|
|
2465
2498
|
|
|
2466
2499
|
static getAttributeTypeMap() {
|
|
@@ -3009,10 +3042,14 @@ export class ProjectDto {
|
|
|
3009
3042
|
*/
|
|
3010
3043
|
'id': string;
|
|
3011
3044
|
/**
|
|
3012
|
-
* This property controls the accuracy of all price properties, meaning how many decimal places are preserved in calculations. It defaults to DEFAULT_PRICE_ACCURACY. Please see the Dangl.AVA documentation for further information about decimal precision.
|
|
3045
|
+
* This property controls the accuracy of all price properties, meaning how many decimal places are preserved in calculations. It defaults to DEFAULT_PRICE_ACCURACY. Please see the Dangl.AVA documentation for further information about decimal precision. If UnitPriceAccuracy is set, then this property is ignored for unit prices.
|
|
3013
3046
|
*/
|
|
3014
3047
|
'priceAccuracy': number;
|
|
3015
3048
|
/**
|
|
3049
|
+
* This property controls the accuracy of position unit price properties, meaning how many decimal places are preserved in calculations. Please see the Dangl.AVA documentation for further information about decimal precision. This can be separately set from PriceAccuracy, and it only controls the accuracy of the unit price of positions, not the total price. It defaults to null, which means the standard PriceAccuracy is used for unit prices.
|
|
3050
|
+
*/
|
|
3051
|
+
'unitPriceAccuracy'?: number;
|
|
3052
|
+
/**
|
|
3016
3053
|
* This forces total prices to be the strict product of quantities times unit price in positions. It is enabled by default. If this is disabled, both the unit price and the total price of positions is calculated from the non-rounded values. Please see the documentation for a more detailed explanation of this setting.
|
|
3017
3054
|
*/
|
|
3018
3055
|
'forceStrictTotals': boolean;
|
|
@@ -3046,6 +3083,11 @@ export class ProjectDto {
|
|
|
3046
3083
|
"baseName": "priceAccuracy",
|
|
3047
3084
|
"type": "number"
|
|
3048
3085
|
},
|
|
3086
|
+
{
|
|
3087
|
+
"name": "unitPriceAccuracy",
|
|
3088
|
+
"baseName": "unitPriceAccuracy",
|
|
3089
|
+
"type": "number"
|
|
3090
|
+
},
|
|
3049
3091
|
{
|
|
3050
3092
|
"name": "forceStrictTotals",
|
|
3051
3093
|
"baseName": "forceStrictTotals",
|
|
@@ -4172,6 +4214,14 @@ export class ServiceSpecificationGroupDto extends IElementDto {
|
|
|
4172
4214
|
* This indicates, if this element is part of an addendum an, if yes, with what status.
|
|
4173
4215
|
*/
|
|
4174
4216
|
'addendumStatus'?: AddendumStatusDto;
|
|
4217
|
+
/**
|
|
4218
|
+
* This is an optional property that can be used together with AlternativeTo. If this is set, you can indicate which alternative group a specific group is assigned to. That way, if you specifiy multiple alternative ServiceSpecificationGroups with the same AlternativeIdentifier, you can indicate that to replace a single base ServiceSpecificationGroup, multiple alternative ServiceSpecificationGroups should be used. This property is not checked or managed automatically, so it is possible for this property to become invalid, by for example setting this property but not setting a base group via AlternativeTo.
|
|
4219
|
+
*/
|
|
4220
|
+
'alternativeIdentifier'?: number;
|
|
4221
|
+
/**
|
|
4222
|
+
* This is an optional property that can be used together with AlternativeTo and AlternativeGroupIdentifier. If this is set, you can indicate which alternative group a specific group is assigned to. That way, you can specify the id (in integer format) for the alternative group this group belongs to. It's different to AlternativeIdentifier in that the other property describes the id of the group, while this property here describes the group itself. If a group only has set AlternativeGroupIdentifier but not AlternativeIdentifier, then it likely is a base group for a specific group. This property is not checked or managed automatically, so it is possible for this property to become invalid, by for example setting this property but not setting a base group via AlternativeTo.
|
|
4223
|
+
*/
|
|
4224
|
+
'alternativeGroupIdentifier'?: number;
|
|
4175
4225
|
|
|
4176
4226
|
static discriminator: string | undefined = undefined;
|
|
4177
4227
|
|
|
@@ -4315,6 +4365,16 @@ export class ServiceSpecificationGroupDto extends IElementDto {
|
|
|
4315
4365
|
"name": "addendumStatus",
|
|
4316
4366
|
"baseName": "addendumStatus",
|
|
4317
4367
|
"type": "AddendumStatusDto"
|
|
4368
|
+
},
|
|
4369
|
+
{
|
|
4370
|
+
"name": "alternativeIdentifier",
|
|
4371
|
+
"baseName": "alternativeIdentifier",
|
|
4372
|
+
"type": "number"
|
|
4373
|
+
},
|
|
4374
|
+
{
|
|
4375
|
+
"name": "alternativeGroupIdentifier",
|
|
4376
|
+
"baseName": "alternativeGroupIdentifier",
|
|
4377
|
+
"type": "number"
|
|
4318
4378
|
} ];
|
|
4319
4379
|
|
|
4320
4380
|
static getAttributeTypeMap() {
|
|
@@ -4733,6 +4793,21 @@ export class TradeDiscountDto {
|
|
|
4733
4793
|
}
|
|
4734
4794
|
}
|
|
4735
4795
|
|
|
4796
|
+
/**
|
|
4797
|
+
* Represents valid UGL versions for export
|
|
4798
|
+
*/
|
|
4799
|
+
export class UglDestinationVersion {
|
|
4800
|
+
|
|
4801
|
+
static discriminator: string | undefined = undefined;
|
|
4802
|
+
|
|
4803
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
4804
|
+
];
|
|
4805
|
+
|
|
4806
|
+
static getAttributeTypeMap() {
|
|
4807
|
+
return UglDestinationVersion.attributeTypeMap;
|
|
4808
|
+
}
|
|
4809
|
+
}
|
|
4810
|
+
|
|
4736
4811
|
/**
|
|
4737
4812
|
* This class models the results of a single check performed during a validation action
|
|
4738
4813
|
*/
|
|
@@ -4979,6 +5054,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
4979
5054
|
"CommerceInquiryTypeDto": CommerceInquiryTypeDto,
|
|
4980
5055
|
"CommercePropertiesDto": CommercePropertiesDto,
|
|
4981
5056
|
"ComplementedByQuantityDto": ComplementedByQuantityDto,
|
|
5057
|
+
"DatanormDestinationVersion": DatanormDestinationVersion,
|
|
4982
5058
|
"DestinationGaebExchangePhase": DestinationGaebExchangePhase,
|
|
4983
5059
|
"DestinationGaebType": DestinationGaebType,
|
|
4984
5060
|
"DestinationOenormType": DestinationOenormType,
|
|
@@ -5043,6 +5119,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
5043
5119
|
"TokenRefreshPost": TokenRefreshPost,
|
|
5044
5120
|
"TokenResponseGet": TokenResponseGet,
|
|
5045
5121
|
"TradeDiscountDto": TradeDiscountDto,
|
|
5122
|
+
"UglDestinationVersion": UglDestinationVersion,
|
|
5046
5123
|
"ValidationCheckResult": ValidationCheckResult,
|
|
5047
5124
|
"ValidationCheckType": ValidationCheckType,
|
|
5048
5125
|
"ValidationResult": ValidationResult,
|
|
@@ -5612,6 +5689,80 @@ export class AvaConversionApi {
|
|
|
5612
5689
|
/**
|
|
5613
5690
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
5614
5691
|
*/
|
|
5692
|
+
public avaConversionConvertToDatanormWithRequestObject(avaProject: ProjectDto, options: { tryAutoGenerateItemNumbersAndSchema?: boolean, datanormDestinationVersion?: 'V4' | 'V5', options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
5693
|
+
return this.avaConversionConvertToDatanorm(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.datanormDestinationVersion, options.options || {});
|
|
5694
|
+
}
|
|
5695
|
+
|
|
5696
|
+
/**
|
|
5697
|
+
*
|
|
5698
|
+
* @summary Converts Dangl.AVA projects to Datanorm
|
|
5699
|
+
* @param avaProject The Dangl.AVA project
|
|
5700
|
+
* @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.
|
|
5701
|
+
* @param datanormDestinationVersion The Datanorm version to convert to. Defaults to V4.
|
|
5702
|
+
* @param {*} [options] Override http request options.
|
|
5703
|
+
*/
|
|
5704
|
+
public avaConversionConvertToDatanorm (avaProject: ProjectDto, tryAutoGenerateItemNumbersAndSchema?: boolean, datanormDestinationVersion?: 'V4' | 'V5', options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/ava/datanorm';
|
|
5705
|
+
let localVarQueryParameters: any = {};
|
|
5706
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
5707
|
+
let localVarFormParams: any = {};
|
|
5708
|
+
|
|
5709
|
+
// verify required parameter 'avaProject' is not null or undefined
|
|
5710
|
+
if (avaProject === null || avaProject === undefined) {
|
|
5711
|
+
throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToDatanorm.');
|
|
5712
|
+
}
|
|
5713
|
+
|
|
5714
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
5715
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
5716
|
+
}
|
|
5717
|
+
|
|
5718
|
+
if (datanormDestinationVersion !== undefined) {
|
|
5719
|
+
localVarQueryParameters['DatanormDestinationVersion'] = ObjectSerializer.serialize(datanormDestinationVersion, "'V4' | 'V5'");
|
|
5720
|
+
}
|
|
5721
|
+
|
|
5722
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
5723
|
+
|
|
5724
|
+
let localVarUseFormData = false;
|
|
5725
|
+
|
|
5726
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
5727
|
+
method: 'POST',
|
|
5728
|
+
qs: localVarQueryParameters,
|
|
5729
|
+
headers: localVarHeaderParams,
|
|
5730
|
+
uri: localVarPath,
|
|
5731
|
+
useQuerystring: this._useQuerystring,
|
|
5732
|
+
encoding: null,
|
|
5733
|
+
body: avaProject,
|
|
5734
|
+
json: true
|
|
5735
|
+
};
|
|
5736
|
+
|
|
5737
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
5738
|
+
|
|
5739
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
5740
|
+
|
|
5741
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5742
|
+
if (localVarUseFormData) {
|
|
5743
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
5744
|
+
} else {
|
|
5745
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5746
|
+
}
|
|
5747
|
+
}
|
|
5748
|
+
return new Promise<{ response: http.IncomingMessage; body: Buffer; }>((resolve, reject) => {
|
|
5749
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5750
|
+
if (error) {
|
|
5751
|
+
reject(error);
|
|
5752
|
+
} else {
|
|
5753
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
5754
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5755
|
+
resolve({ response: response, body: body });
|
|
5756
|
+
} else {
|
|
5757
|
+
reject({ response: response, body: body });
|
|
5758
|
+
}
|
|
5759
|
+
}
|
|
5760
|
+
});
|
|
5761
|
+
});
|
|
5762
|
+
}
|
|
5763
|
+
/**
|
|
5764
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
5765
|
+
*/
|
|
5615
5766
|
public avaConversionConvertToExcelWithRequestObject(avaProject: ProjectDto, options: { tryAutoGenerateItemNumbersAndSchema?: boolean, writePrices?: boolean, writeLongTexts?: boolean, conversionCulture?: string, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
5616
5767
|
return this.avaConversionConvertToExcel(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.writePrices, options.writeLongTexts, options.conversionCulture, options.options || {});
|
|
5617
5768
|
}
|
|
@@ -6007,6 +6158,80 @@ export class AvaConversionApi {
|
|
|
6007
6158
|
|
|
6008
6159
|
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
6009
6160
|
|
|
6161
|
+
if (Object.keys(localVarFormParams).length) {
|
|
6162
|
+
if (localVarUseFormData) {
|
|
6163
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
6164
|
+
} else {
|
|
6165
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
6166
|
+
}
|
|
6167
|
+
}
|
|
6168
|
+
return new Promise<{ response: http.IncomingMessage; body: Buffer; }>((resolve, reject) => {
|
|
6169
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6170
|
+
if (error) {
|
|
6171
|
+
reject(error);
|
|
6172
|
+
} else {
|
|
6173
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
6174
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6175
|
+
resolve({ response: response, body: body });
|
|
6176
|
+
} else {
|
|
6177
|
+
reject({ response: response, body: body });
|
|
6178
|
+
}
|
|
6179
|
+
}
|
|
6180
|
+
});
|
|
6181
|
+
});
|
|
6182
|
+
}
|
|
6183
|
+
/**
|
|
6184
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6185
|
+
*/
|
|
6186
|
+
public avaConversionConvertToUglWithRequestObject(avaProject: ProjectDto, options: { tryAutoGenerateItemNumbersAndSchema?: boolean, uglDestinationVersion?: 'V4' | 'V5', options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
6187
|
+
return this.avaConversionConvertToUgl(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.uglDestinationVersion, options.options || {});
|
|
6188
|
+
}
|
|
6189
|
+
|
|
6190
|
+
/**
|
|
6191
|
+
*
|
|
6192
|
+
* @summary Converts Dangl.AVA projects to UGL
|
|
6193
|
+
* @param avaProject The Dangl.AVA project
|
|
6194
|
+
* @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.
|
|
6195
|
+
* @param uglDestinationVersion The UGL version to convert to. Defaults to V1.
|
|
6196
|
+
* @param {*} [options] Override http request options.
|
|
6197
|
+
*/
|
|
6198
|
+
public avaConversionConvertToUgl (avaProject: ProjectDto, tryAutoGenerateItemNumbersAndSchema?: boolean, uglDestinationVersion?: 'V4' | 'V5', options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/ava/ugl';
|
|
6199
|
+
let localVarQueryParameters: any = {};
|
|
6200
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6201
|
+
let localVarFormParams: any = {};
|
|
6202
|
+
|
|
6203
|
+
// verify required parameter 'avaProject' is not null or undefined
|
|
6204
|
+
if (avaProject === null || avaProject === undefined) {
|
|
6205
|
+
throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToUgl.');
|
|
6206
|
+
}
|
|
6207
|
+
|
|
6208
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
6209
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
6210
|
+
}
|
|
6211
|
+
|
|
6212
|
+
if (uglDestinationVersion !== undefined) {
|
|
6213
|
+
localVarQueryParameters['UglDestinationVersion'] = ObjectSerializer.serialize(uglDestinationVersion, "'V4' | 'V5'");
|
|
6214
|
+
}
|
|
6215
|
+
|
|
6216
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
6217
|
+
|
|
6218
|
+
let localVarUseFormData = false;
|
|
6219
|
+
|
|
6220
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
6221
|
+
method: 'POST',
|
|
6222
|
+
qs: localVarQueryParameters,
|
|
6223
|
+
headers: localVarHeaderParams,
|
|
6224
|
+
uri: localVarPath,
|
|
6225
|
+
useQuerystring: this._useQuerystring,
|
|
6226
|
+
encoding: null,
|
|
6227
|
+
body: avaProject,
|
|
6228
|
+
json: true
|
|
6229
|
+
};
|
|
6230
|
+
|
|
6231
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
6232
|
+
|
|
6233
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
6234
|
+
|
|
6010
6235
|
if (Object.keys(localVarFormParams).length) {
|
|
6011
6236
|
if (localVarUseFormData) {
|
|
6012
6237
|
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
@@ -6416,6 +6641,128 @@ export class DanglIdentityApi {
|
|
|
6416
6641
|
});
|
|
6417
6642
|
}
|
|
6418
6643
|
}
|
|
6644
|
+
export enum DatanormConversionApiApiKeys {
|
|
6645
|
+
}
|
|
6646
|
+
|
|
6647
|
+
export class DatanormConversionApi {
|
|
6648
|
+
protected _basePath = defaultBasePath;
|
|
6649
|
+
protected defaultHeaders : any = {};
|
|
6650
|
+
protected _useQuerystring : boolean = false;
|
|
6651
|
+
|
|
6652
|
+
protected authentications = {
|
|
6653
|
+
'default': <Authentication>new VoidAuth(),
|
|
6654
|
+
'Dangl.Identity': new OAuth(),
|
|
6655
|
+
}
|
|
6656
|
+
|
|
6657
|
+
constructor(basePath?: string);
|
|
6658
|
+
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
6659
|
+
if (password) {
|
|
6660
|
+
if (basePath) {
|
|
6661
|
+
this.basePath = basePath;
|
|
6662
|
+
}
|
|
6663
|
+
} else {
|
|
6664
|
+
if (basePathOrUsername) {
|
|
6665
|
+
this.basePath = basePathOrUsername
|
|
6666
|
+
}
|
|
6667
|
+
}
|
|
6668
|
+
}
|
|
6669
|
+
|
|
6670
|
+
set useQuerystring(value: boolean) {
|
|
6671
|
+
this._useQuerystring = value;
|
|
6672
|
+
}
|
|
6673
|
+
|
|
6674
|
+
set basePath(basePath: string) {
|
|
6675
|
+
this._basePath = basePath;
|
|
6676
|
+
}
|
|
6677
|
+
|
|
6678
|
+
get basePath() {
|
|
6679
|
+
return this._basePath;
|
|
6680
|
+
}
|
|
6681
|
+
|
|
6682
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
6683
|
+
this.authentications.default = auth;
|
|
6684
|
+
}
|
|
6685
|
+
|
|
6686
|
+
public setApiKey(key: DatanormConversionApiApiKeys, value: string) {
|
|
6687
|
+
(this.authentications as any)[DatanormConversionApiApiKeys[key]].apiKey = value;
|
|
6688
|
+
}
|
|
6689
|
+
|
|
6690
|
+
set accessToken(token: string) {
|
|
6691
|
+
this.authentications['Dangl.Identity'].accessToken = token;
|
|
6692
|
+
}
|
|
6693
|
+
/**
|
|
6694
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6695
|
+
*/
|
|
6696
|
+
public datanormConversionConvertToAvaWithRequestObject(datanormFile: FileParameter, options: { removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: ProjectDto; }> {
|
|
6697
|
+
return this.datanormConversionConvertToAva(datanormFile, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
|
|
6698
|
+
}
|
|
6699
|
+
|
|
6700
|
+
/**
|
|
6701
|
+
*
|
|
6702
|
+
* @summary Converts Datanorm files to Dangl.AVA projects
|
|
6703
|
+
* @param datanormFile The input file
|
|
6704
|
+
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
6705
|
+
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
6706
|
+
* @param {*} [options] Override http request options.
|
|
6707
|
+
*/
|
|
6708
|
+
public datanormConversionConvertToAva (datanormFile: FileParameter, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: ProjectDto; }> { const localVarPath = this.basePath + '/conversion/datanorm/ava';
|
|
6709
|
+
let localVarQueryParameters: any = {};
|
|
6710
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6711
|
+
let localVarFormParams: any = {};
|
|
6712
|
+
|
|
6713
|
+
if (removePlainTextLongTexts !== undefined) {
|
|
6714
|
+
localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
|
|
6715
|
+
}
|
|
6716
|
+
|
|
6717
|
+
if (removeHtmlLongTexts !== undefined) {
|
|
6718
|
+
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
6719
|
+
}
|
|
6720
|
+
|
|
6721
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
6722
|
+
|
|
6723
|
+
let localVarUseFormData = false;
|
|
6724
|
+
|
|
6725
|
+
if (datanormFile !== undefined) {
|
|
6726
|
+
localVarFormParams['datanormFile'] = datanormFile;
|
|
6727
|
+
}
|
|
6728
|
+
localVarUseFormData = true;
|
|
6729
|
+
|
|
6730
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
6731
|
+
method: 'POST',
|
|
6732
|
+
qs: localVarQueryParameters,
|
|
6733
|
+
headers: localVarHeaderParams,
|
|
6734
|
+
uri: localVarPath,
|
|
6735
|
+
useQuerystring: this._useQuerystring,
|
|
6736
|
+
json: true,
|
|
6737
|
+
};
|
|
6738
|
+
|
|
6739
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
6740
|
+
|
|
6741
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
6742
|
+
|
|
6743
|
+
if (Object.keys(localVarFormParams).length) {
|
|
6744
|
+
if (localVarUseFormData) {
|
|
6745
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
6746
|
+
} else {
|
|
6747
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
6748
|
+
}
|
|
6749
|
+
}
|
|
6750
|
+
return new Promise<{ response: http.IncomingMessage; body: ProjectDto; }>((resolve, reject) => {
|
|
6751
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6752
|
+
if (error) {
|
|
6753
|
+
reject(error);
|
|
6754
|
+
} else {
|
|
6755
|
+
body = ObjectSerializer.deserialize(body, "ProjectDto");
|
|
6756
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6757
|
+
resolve({ response: response, body: body });
|
|
6758
|
+
} else {
|
|
6759
|
+
reject({ response: response, body: body });
|
|
6760
|
+
}
|
|
6761
|
+
}
|
|
6762
|
+
});
|
|
6763
|
+
});
|
|
6764
|
+
}
|
|
6765
|
+
}
|
|
6419
6766
|
export enum ExcelConversionApiApiKeys {
|
|
6420
6767
|
}
|
|
6421
6768
|
|
|
@@ -6886,8 +7233,8 @@ export class GaebConversionApi {
|
|
|
6886
7233
|
/**
|
|
6887
7234
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6888
7235
|
*/
|
|
6889
|
-
public gaebConversionConvertToAvaWithRequestObject(gaebFile: FileParameter, options: { supportSkippedItemNumberLevelsInPositions?: boolean, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: ProjectDto; }> {
|
|
6890
|
-
return this.gaebConversionConvertToAva(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.options || {});
|
|
7236
|
+
public gaebConversionConvertToAvaWithRequestObject(gaebFile: FileParameter, options: { supportSkippedItemNumberLevelsInPositions?: boolean, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: ProjectDto; }> {
|
|
7237
|
+
return this.gaebConversionConvertToAva(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
6891
7238
|
}
|
|
6892
7239
|
|
|
6893
7240
|
/**
|
|
@@ -6899,9 +7246,10 @@ export class GaebConversionApi {
|
|
|
6899
7246
|
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
6900
7247
|
* @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>'.
|
|
6901
7248
|
* @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.
|
|
7249
|
+
* @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.
|
|
6902
7250
|
* @param {*} [options] Override http request options.
|
|
6903
7251
|
*/
|
|
6904
|
-
public gaebConversionConvertToAva (gaebFile: FileParameter, supportSkippedItemNumberLevelsInPositions?: boolean, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: ProjectDto; }> { const localVarPath = this.basePath + '/conversion/gaeb/ava';
|
|
7252
|
+
public gaebConversionConvertToAva (gaebFile: FileParameter, supportSkippedItemNumberLevelsInPositions?: boolean, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: ProjectDto; }> { const localVarPath = this.basePath + '/conversion/gaeb/ava';
|
|
6905
7253
|
let localVarQueryParameters: any = {};
|
|
6906
7254
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6907
7255
|
let localVarFormParams: any = {};
|
|
@@ -6926,6 +7274,10 @@ export class GaebConversionApi {
|
|
|
6926
7274
|
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
6927
7275
|
}
|
|
6928
7276
|
|
|
7277
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
7278
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
7279
|
+
}
|
|
7280
|
+
|
|
6929
7281
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
6930
7282
|
|
|
6931
7283
|
let localVarUseFormData = false;
|
|
@@ -6973,8 +7325,8 @@ export class GaebConversionApi {
|
|
|
6973
7325
|
/**
|
|
6974
7326
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6975
7327
|
*/
|
|
6976
|
-
public gaebConversionConvertToExcelWithRequestObject(gaebFile: FileParameter, options: { supportSkippedItemNumberLevelsInPositions?: boolean, writePrices?: boolean, writeLongTexts?: boolean, conversionCulture?: string, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
6977
|
-
return this.gaebConversionConvertToExcel(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.writePrices, options.writeLongTexts, options.conversionCulture, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.options || {});
|
|
7328
|
+
public gaebConversionConvertToExcelWithRequestObject(gaebFile: FileParameter, options: { supportSkippedItemNumberLevelsInPositions?: boolean, writePrices?: boolean, writeLongTexts?: boolean, conversionCulture?: string, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
7329
|
+
return this.gaebConversionConvertToExcel(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.writePrices, options.writeLongTexts, options.conversionCulture, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
6978
7330
|
}
|
|
6979
7331
|
|
|
6980
7332
|
/**
|
|
@@ -6987,9 +7339,10 @@ export class GaebConversionApi {
|
|
|
6987
7339
|
* @param conversionCulture The culture that should be used for the conversion process, to have localized Excel files
|
|
6988
7340
|
* @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>'.
|
|
6989
7341
|
* @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.
|
|
7342
|
+
* @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.
|
|
6990
7343
|
* @param {*} [options] Override http request options.
|
|
6991
7344
|
*/
|
|
6992
|
-
public gaebConversionConvertToExcel (gaebFile: FileParameter, supportSkippedItemNumberLevelsInPositions?: boolean, writePrices?: boolean, writeLongTexts?: boolean, conversionCulture?: string, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/gaeb/excel';
|
|
7345
|
+
public gaebConversionConvertToExcel (gaebFile: FileParameter, supportSkippedItemNumberLevelsInPositions?: boolean, writePrices?: boolean, writeLongTexts?: boolean, conversionCulture?: string, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/gaeb/excel';
|
|
6993
7346
|
let localVarQueryParameters: any = {};
|
|
6994
7347
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6995
7348
|
let localVarFormParams: any = {};
|
|
@@ -7018,6 +7371,10 @@ export class GaebConversionApi {
|
|
|
7018
7371
|
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
7019
7372
|
}
|
|
7020
7373
|
|
|
7374
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
7375
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
7376
|
+
}
|
|
7377
|
+
|
|
7021
7378
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
7022
7379
|
|
|
7023
7380
|
let localVarUseFormData = false;
|
|
@@ -7065,8 +7422,8 @@ export class GaebConversionApi {
|
|
|
7065
7422
|
/**
|
|
7066
7423
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
7067
7424
|
*/
|
|
7068
|
-
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, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
7069
|
-
return this.gaebConversionConvertToGaeb(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationGaebType, options.targetExchangePhaseTransform, options.enforceStrictOfferPhaseLongTextOutput, options.exportQuantityDetermination, options.removeUnprintableCharactersFromTexts, options.forceIncludeDescriptions, options.treatNullItemNumberSchemaAsInvalid, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.options || {});
|
|
7425
|
+
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, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
7426
|
+
return this.gaebConversionConvertToGaeb(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationGaebType, options.targetExchangePhaseTransform, options.enforceStrictOfferPhaseLongTextOutput, options.exportQuantityDetermination, options.removeUnprintableCharactersFromTexts, options.forceIncludeDescriptions, options.treatNullItemNumberSchemaAsInvalid, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
7070
7427
|
}
|
|
7071
7428
|
|
|
7072
7429
|
/**
|
|
@@ -7083,9 +7440,10 @@ export class GaebConversionApi {
|
|
|
7083
7440
|
* @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.
|
|
7084
7441
|
* @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>'.
|
|
7085
7442
|
* @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.
|
|
7443
|
+
* @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.
|
|
7086
7444
|
* @param {*} [options] Override http request options.
|
|
7087
7445
|
*/
|
|
7088
|
-
public gaebConversionConvertToGaeb (gaebFile: FileParameter, 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, options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/gaeb/gaeb';
|
|
7446
|
+
public gaebConversionConvertToGaeb (gaebFile: FileParameter, 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, options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/gaeb/gaeb';
|
|
7089
7447
|
let localVarQueryParameters: any = {};
|
|
7090
7448
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
7091
7449
|
let localVarFormParams: any = {};
|
|
@@ -7130,6 +7488,10 @@ export class GaebConversionApi {
|
|
|
7130
7488
|
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
7131
7489
|
}
|
|
7132
7490
|
|
|
7491
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
7492
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
7493
|
+
}
|
|
7494
|
+
|
|
7133
7495
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
7134
7496
|
|
|
7135
7497
|
let localVarUseFormData = false;
|
|
@@ -7177,8 +7539,8 @@ export class GaebConversionApi {
|
|
|
7177
7539
|
/**
|
|
7178
7540
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
7179
7541
|
*/
|
|
7180
|
-
public gaebConversionConvertToOenormWithRequestObject(gaebFile: FileParameter, options: { supportSkippedItemNumberLevelsInPositions?: boolean, destinationOenormType?: 'Lv2015' | 'Lb2015' | 'B2063' | 'Lv2009' | 'Lb2009' | 'Lv2021' | 'Lb2021', tryRepairProjectStructure?: boolean, skipTryEnforceSchemaCompliantXmlOutput?: boolean, removeUnprintableCharactersFromTexts?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
7181
|
-
return this.gaebConversionConvertToOenorm(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationOenormType, options.tryRepairProjectStructure, options.skipTryEnforceSchemaCompliantXmlOutput, options.removeUnprintableCharactersFromTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.options || {});
|
|
7542
|
+
public gaebConversionConvertToOenormWithRequestObject(gaebFile: FileParameter, options: { supportSkippedItemNumberLevelsInPositions?: boolean, destinationOenormType?: 'Lv2015' | 'Lb2015' | 'B2063' | 'Lv2009' | 'Lb2009' | 'Lv2021' | 'Lb2021', tryRepairProjectStructure?: boolean, skipTryEnforceSchemaCompliantXmlOutput?: boolean, removeUnprintableCharactersFromTexts?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
7543
|
+
return this.gaebConversionConvertToOenorm(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationOenormType, options.tryRepairProjectStructure, options.skipTryEnforceSchemaCompliantXmlOutput, options.removeUnprintableCharactersFromTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
7182
7544
|
}
|
|
7183
7545
|
|
|
7184
7546
|
/**
|
|
@@ -7192,9 +7554,10 @@ export class GaebConversionApi {
|
|
|
7192
7554
|
* @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.
|
|
7193
7555
|
* @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>'.
|
|
7194
7556
|
* @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.
|
|
7557
|
+
* @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.
|
|
7195
7558
|
* @param {*} [options] Override http request options.
|
|
7196
7559
|
*/
|
|
7197
|
-
public gaebConversionConvertToOenorm (gaebFile: FileParameter, supportSkippedItemNumberLevelsInPositions?: boolean, destinationOenormType?: 'Lv2015' | 'Lb2015' | 'B2063' | 'Lv2009' | 'Lb2009' | 'Lv2021' | 'Lb2021', tryRepairProjectStructure?: boolean, skipTryEnforceSchemaCompliantXmlOutput?: boolean, removeUnprintableCharactersFromTexts?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/gaeb/oenorm';
|
|
7560
|
+
public gaebConversionConvertToOenorm (gaebFile: FileParameter, supportSkippedItemNumberLevelsInPositions?: boolean, destinationOenormType?: 'Lv2015' | 'Lb2015' | 'B2063' | 'Lv2009' | 'Lb2009' | 'Lv2021' | 'Lb2021', tryRepairProjectStructure?: boolean, skipTryEnforceSchemaCompliantXmlOutput?: boolean, removeUnprintableCharactersFromTexts?: boolean, outputHtmlAsXml?: boolean, keepEmptyHtmlText?: boolean, allowUpperCaseItemNumbers?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/gaeb/oenorm';
|
|
7198
7561
|
let localVarQueryParameters: any = {};
|
|
7199
7562
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
7200
7563
|
let localVarFormParams: any = {};
|
|
@@ -7227,6 +7590,10 @@ export class GaebConversionApi {
|
|
|
7227
7590
|
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
7228
7591
|
}
|
|
7229
7592
|
|
|
7593
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
7594
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
7595
|
+
}
|
|
7596
|
+
|
|
7230
7597
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
7231
7598
|
|
|
7232
7599
|
let localVarUseFormData = false;
|
|
@@ -8506,6 +8873,128 @@ export class StatusApi {
|
|
|
8506
8873
|
});
|
|
8507
8874
|
}
|
|
8508
8875
|
}
|
|
8876
|
+
export enum UglConversionApiApiKeys {
|
|
8877
|
+
}
|
|
8878
|
+
|
|
8879
|
+
export class UglConversionApi {
|
|
8880
|
+
protected _basePath = defaultBasePath;
|
|
8881
|
+
protected defaultHeaders : any = {};
|
|
8882
|
+
protected _useQuerystring : boolean = false;
|
|
8883
|
+
|
|
8884
|
+
protected authentications = {
|
|
8885
|
+
'default': <Authentication>new VoidAuth(),
|
|
8886
|
+
'Dangl.Identity': new OAuth(),
|
|
8887
|
+
}
|
|
8888
|
+
|
|
8889
|
+
constructor(basePath?: string);
|
|
8890
|
+
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
8891
|
+
if (password) {
|
|
8892
|
+
if (basePath) {
|
|
8893
|
+
this.basePath = basePath;
|
|
8894
|
+
}
|
|
8895
|
+
} else {
|
|
8896
|
+
if (basePathOrUsername) {
|
|
8897
|
+
this.basePath = basePathOrUsername
|
|
8898
|
+
}
|
|
8899
|
+
}
|
|
8900
|
+
}
|
|
8901
|
+
|
|
8902
|
+
set useQuerystring(value: boolean) {
|
|
8903
|
+
this._useQuerystring = value;
|
|
8904
|
+
}
|
|
8905
|
+
|
|
8906
|
+
set basePath(basePath: string) {
|
|
8907
|
+
this._basePath = basePath;
|
|
8908
|
+
}
|
|
8909
|
+
|
|
8910
|
+
get basePath() {
|
|
8911
|
+
return this._basePath;
|
|
8912
|
+
}
|
|
8913
|
+
|
|
8914
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
8915
|
+
this.authentications.default = auth;
|
|
8916
|
+
}
|
|
8917
|
+
|
|
8918
|
+
public setApiKey(key: UglConversionApiApiKeys, value: string) {
|
|
8919
|
+
(this.authentications as any)[UglConversionApiApiKeys[key]].apiKey = value;
|
|
8920
|
+
}
|
|
8921
|
+
|
|
8922
|
+
set accessToken(token: string) {
|
|
8923
|
+
this.authentications['Dangl.Identity'].accessToken = token;
|
|
8924
|
+
}
|
|
8925
|
+
/**
|
|
8926
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8927
|
+
*/
|
|
8928
|
+
public uglConversionConvertToAvaWithRequestObject(uglFile: FileParameter, options: { removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: ProjectDto; }> {
|
|
8929
|
+
return this.uglConversionConvertToAva(uglFile, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
|
|
8930
|
+
}
|
|
8931
|
+
|
|
8932
|
+
/**
|
|
8933
|
+
*
|
|
8934
|
+
* @summary Converts Ugl files to Dangl.AVA projects
|
|
8935
|
+
* @param uglFile The input file
|
|
8936
|
+
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
8937
|
+
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
8938
|
+
* @param {*} [options] Override http request options.
|
|
8939
|
+
*/
|
|
8940
|
+
public uglConversionConvertToAva (uglFile: FileParameter, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: ProjectDto; }> { const localVarPath = this.basePath + '/conversion/ugl/ava';
|
|
8941
|
+
let localVarQueryParameters: any = {};
|
|
8942
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8943
|
+
let localVarFormParams: any = {};
|
|
8944
|
+
|
|
8945
|
+
if (removePlainTextLongTexts !== undefined) {
|
|
8946
|
+
localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
|
|
8947
|
+
}
|
|
8948
|
+
|
|
8949
|
+
if (removeHtmlLongTexts !== undefined) {
|
|
8950
|
+
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
8951
|
+
}
|
|
8952
|
+
|
|
8953
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8954
|
+
|
|
8955
|
+
let localVarUseFormData = false;
|
|
8956
|
+
|
|
8957
|
+
if (uglFile !== undefined) {
|
|
8958
|
+
localVarFormParams['uglFile'] = uglFile;
|
|
8959
|
+
}
|
|
8960
|
+
localVarUseFormData = true;
|
|
8961
|
+
|
|
8962
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
8963
|
+
method: 'POST',
|
|
8964
|
+
qs: localVarQueryParameters,
|
|
8965
|
+
headers: localVarHeaderParams,
|
|
8966
|
+
uri: localVarPath,
|
|
8967
|
+
useQuerystring: this._useQuerystring,
|
|
8968
|
+
json: true,
|
|
8969
|
+
};
|
|
8970
|
+
|
|
8971
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
8972
|
+
|
|
8973
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
8974
|
+
|
|
8975
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8976
|
+
if (localVarUseFormData) {
|
|
8977
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
8978
|
+
} else {
|
|
8979
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8980
|
+
}
|
|
8981
|
+
}
|
|
8982
|
+
return new Promise<{ response: http.IncomingMessage; body: ProjectDto; }>((resolve, reject) => {
|
|
8983
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8984
|
+
if (error) {
|
|
8985
|
+
reject(error);
|
|
8986
|
+
} else {
|
|
8987
|
+
body = ObjectSerializer.deserialize(body, "ProjectDto");
|
|
8988
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8989
|
+
resolve({ response: response, body: body });
|
|
8990
|
+
} else {
|
|
8991
|
+
reject({ response: response, body: body });
|
|
8992
|
+
}
|
|
8993
|
+
}
|
|
8994
|
+
});
|
|
8995
|
+
});
|
|
8996
|
+
}
|
|
8997
|
+
}
|
|
8509
8998
|
export enum ValidationApiApiKeys {
|
|
8510
8999
|
}
|
|
8511
9000
|
|