@dangl/avacloud-client-node 1.22.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.d.ts +187 -7
- package/api.js +422 -13
- package/api.js.map +1 -1
- package/api.ts +486 -15
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* AVACloud API 1.
|
|
2
|
+
* AVACloud API 1.41.0
|
|
3
3
|
* AVACloud API specification
|
|
4
4
|
*
|
|
5
|
-
* OpenAPI spec version: 1.
|
|
5
|
+
* OpenAPI spec version: 1.41.0
|
|
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() {
|
|
@@ -4172,6 +4196,14 @@ export class ServiceSpecificationGroupDto extends IElementDto {
|
|
|
4172
4196
|
* This indicates, if this element is part of an addendum an, if yes, with what status.
|
|
4173
4197
|
*/
|
|
4174
4198
|
'addendumStatus'?: AddendumStatusDto;
|
|
4199
|
+
/**
|
|
4200
|
+
* 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.
|
|
4201
|
+
*/
|
|
4202
|
+
'alternativeIdentifier'?: number;
|
|
4203
|
+
/**
|
|
4204
|
+
* 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.
|
|
4205
|
+
*/
|
|
4206
|
+
'alternativeGroupIdentifier'?: number;
|
|
4175
4207
|
|
|
4176
4208
|
static discriminator: string | undefined = undefined;
|
|
4177
4209
|
|
|
@@ -4315,6 +4347,16 @@ export class ServiceSpecificationGroupDto extends IElementDto {
|
|
|
4315
4347
|
"name": "addendumStatus",
|
|
4316
4348
|
"baseName": "addendumStatus",
|
|
4317
4349
|
"type": "AddendumStatusDto"
|
|
4350
|
+
},
|
|
4351
|
+
{
|
|
4352
|
+
"name": "alternativeIdentifier",
|
|
4353
|
+
"baseName": "alternativeIdentifier",
|
|
4354
|
+
"type": "number"
|
|
4355
|
+
},
|
|
4356
|
+
{
|
|
4357
|
+
"name": "alternativeGroupIdentifier",
|
|
4358
|
+
"baseName": "alternativeGroupIdentifier",
|
|
4359
|
+
"type": "number"
|
|
4318
4360
|
} ];
|
|
4319
4361
|
|
|
4320
4362
|
static getAttributeTypeMap() {
|
|
@@ -4733,6 +4775,21 @@ export class TradeDiscountDto {
|
|
|
4733
4775
|
}
|
|
4734
4776
|
}
|
|
4735
4777
|
|
|
4778
|
+
/**
|
|
4779
|
+
* Represents valid UGL versions for export
|
|
4780
|
+
*/
|
|
4781
|
+
export class UglDestinationVersion {
|
|
4782
|
+
|
|
4783
|
+
static discriminator: string | undefined = undefined;
|
|
4784
|
+
|
|
4785
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
4786
|
+
];
|
|
4787
|
+
|
|
4788
|
+
static getAttributeTypeMap() {
|
|
4789
|
+
return UglDestinationVersion.attributeTypeMap;
|
|
4790
|
+
}
|
|
4791
|
+
}
|
|
4792
|
+
|
|
4736
4793
|
/**
|
|
4737
4794
|
* This class models the results of a single check performed during a validation action
|
|
4738
4795
|
*/
|
|
@@ -4979,6 +5036,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
4979
5036
|
"CommerceInquiryTypeDto": CommerceInquiryTypeDto,
|
|
4980
5037
|
"CommercePropertiesDto": CommercePropertiesDto,
|
|
4981
5038
|
"ComplementedByQuantityDto": ComplementedByQuantityDto,
|
|
5039
|
+
"DatanormDestinationVersion": DatanormDestinationVersion,
|
|
4982
5040
|
"DestinationGaebExchangePhase": DestinationGaebExchangePhase,
|
|
4983
5041
|
"DestinationGaebType": DestinationGaebType,
|
|
4984
5042
|
"DestinationOenormType": DestinationOenormType,
|
|
@@ -5043,6 +5101,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
5043
5101
|
"TokenRefreshPost": TokenRefreshPost,
|
|
5044
5102
|
"TokenResponseGet": TokenResponseGet,
|
|
5045
5103
|
"TradeDiscountDto": TradeDiscountDto,
|
|
5104
|
+
"UglDestinationVersion": UglDestinationVersion,
|
|
5046
5105
|
"ValidationCheckResult": ValidationCheckResult,
|
|
5047
5106
|
"ValidationCheckType": ValidationCheckType,
|
|
5048
5107
|
"ValidationResult": ValidationResult,
|
|
@@ -5612,6 +5671,80 @@ export class AvaConversionApi {
|
|
|
5612
5671
|
/**
|
|
5613
5672
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
5614
5673
|
*/
|
|
5674
|
+
public avaConversionConvertToDatanormWithRequestObject(avaProject: ProjectDto, options: { tryAutoGenerateItemNumbersAndSchema?: boolean, datanormDestinationVersion?: 'V4' | 'V5', options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
5675
|
+
return this.avaConversionConvertToDatanorm(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.datanormDestinationVersion, options.options || {});
|
|
5676
|
+
}
|
|
5677
|
+
|
|
5678
|
+
/**
|
|
5679
|
+
*
|
|
5680
|
+
* @summary Converts Dangl.AVA projects to Datanorm
|
|
5681
|
+
* @param avaProject The Dangl.AVA project
|
|
5682
|
+
* @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.
|
|
5683
|
+
* @param datanormDestinationVersion The Datanorm version to convert to. Defaults to V4.
|
|
5684
|
+
* @param {*} [options] Override http request options.
|
|
5685
|
+
*/
|
|
5686
|
+
public avaConversionConvertToDatanorm (avaProject: ProjectDto, tryAutoGenerateItemNumbersAndSchema?: boolean, datanormDestinationVersion?: 'V4' | 'V5', options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/ava/datanorm';
|
|
5687
|
+
let localVarQueryParameters: any = {};
|
|
5688
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
5689
|
+
let localVarFormParams: any = {};
|
|
5690
|
+
|
|
5691
|
+
// verify required parameter 'avaProject' is not null or undefined
|
|
5692
|
+
if (avaProject === null || avaProject === undefined) {
|
|
5693
|
+
throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToDatanorm.');
|
|
5694
|
+
}
|
|
5695
|
+
|
|
5696
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
5697
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
5698
|
+
}
|
|
5699
|
+
|
|
5700
|
+
if (datanormDestinationVersion !== undefined) {
|
|
5701
|
+
localVarQueryParameters['DatanormDestinationVersion'] = ObjectSerializer.serialize(datanormDestinationVersion, "'V4' | 'V5'");
|
|
5702
|
+
}
|
|
5703
|
+
|
|
5704
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
5705
|
+
|
|
5706
|
+
let localVarUseFormData = false;
|
|
5707
|
+
|
|
5708
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
5709
|
+
method: 'POST',
|
|
5710
|
+
qs: localVarQueryParameters,
|
|
5711
|
+
headers: localVarHeaderParams,
|
|
5712
|
+
uri: localVarPath,
|
|
5713
|
+
useQuerystring: this._useQuerystring,
|
|
5714
|
+
encoding: null,
|
|
5715
|
+
body: avaProject,
|
|
5716
|
+
json: true
|
|
5717
|
+
};
|
|
5718
|
+
|
|
5719
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
5720
|
+
|
|
5721
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
5722
|
+
|
|
5723
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5724
|
+
if (localVarUseFormData) {
|
|
5725
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
5726
|
+
} else {
|
|
5727
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5728
|
+
}
|
|
5729
|
+
}
|
|
5730
|
+
return new Promise<{ response: http.IncomingMessage; body: Buffer; }>((resolve, reject) => {
|
|
5731
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5732
|
+
if (error) {
|
|
5733
|
+
reject(error);
|
|
5734
|
+
} else {
|
|
5735
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
5736
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5737
|
+
resolve({ response: response, body: body });
|
|
5738
|
+
} else {
|
|
5739
|
+
reject({ response: response, body: body });
|
|
5740
|
+
}
|
|
5741
|
+
}
|
|
5742
|
+
});
|
|
5743
|
+
});
|
|
5744
|
+
}
|
|
5745
|
+
/**
|
|
5746
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
5747
|
+
*/
|
|
5615
5748
|
public avaConversionConvertToExcelWithRequestObject(avaProject: ProjectDto, options: { tryAutoGenerateItemNumbersAndSchema?: boolean, writePrices?: boolean, writeLongTexts?: boolean, conversionCulture?: string, options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
5616
5749
|
return this.avaConversionConvertToExcel(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.writePrices, options.writeLongTexts, options.conversionCulture, options.options || {});
|
|
5617
5750
|
}
|
|
@@ -6007,6 +6140,80 @@ export class AvaConversionApi {
|
|
|
6007
6140
|
|
|
6008
6141
|
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
6009
6142
|
|
|
6143
|
+
if (Object.keys(localVarFormParams).length) {
|
|
6144
|
+
if (localVarUseFormData) {
|
|
6145
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
6146
|
+
} else {
|
|
6147
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
6148
|
+
}
|
|
6149
|
+
}
|
|
6150
|
+
return new Promise<{ response: http.IncomingMessage; body: Buffer; }>((resolve, reject) => {
|
|
6151
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6152
|
+
if (error) {
|
|
6153
|
+
reject(error);
|
|
6154
|
+
} else {
|
|
6155
|
+
body = ObjectSerializer.deserialize(body, "Buffer");
|
|
6156
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6157
|
+
resolve({ response: response, body: body });
|
|
6158
|
+
} else {
|
|
6159
|
+
reject({ response: response, body: body });
|
|
6160
|
+
}
|
|
6161
|
+
}
|
|
6162
|
+
});
|
|
6163
|
+
});
|
|
6164
|
+
}
|
|
6165
|
+
/**
|
|
6166
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6167
|
+
*/
|
|
6168
|
+
public avaConversionConvertToUglWithRequestObject(avaProject: ProjectDto, options: { tryAutoGenerateItemNumbersAndSchema?: boolean, uglDestinationVersion?: 'V4' | 'V5', options?: any }): Promise<{ response: http.IncomingMessage; body: Buffer; }> {
|
|
6169
|
+
return this.avaConversionConvertToUgl(avaProject, options.tryAutoGenerateItemNumbersAndSchema, options.uglDestinationVersion, options.options || {});
|
|
6170
|
+
}
|
|
6171
|
+
|
|
6172
|
+
/**
|
|
6173
|
+
*
|
|
6174
|
+
* @summary Converts Dangl.AVA projects to UGL
|
|
6175
|
+
* @param avaProject The Dangl.AVA project
|
|
6176
|
+
* @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.
|
|
6177
|
+
* @param uglDestinationVersion The UGL version to convert to. Defaults to V1.
|
|
6178
|
+
* @param {*} [options] Override http request options.
|
|
6179
|
+
*/
|
|
6180
|
+
public avaConversionConvertToUgl (avaProject: ProjectDto, tryAutoGenerateItemNumbersAndSchema?: boolean, uglDestinationVersion?: 'V4' | 'V5', options: any = {}) : Promise<{ response: http.IncomingMessage; body: Buffer; }> { const localVarPath = this.basePath + '/conversion/ava/ugl';
|
|
6181
|
+
let localVarQueryParameters: any = {};
|
|
6182
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6183
|
+
let localVarFormParams: any = {};
|
|
6184
|
+
|
|
6185
|
+
// verify required parameter 'avaProject' is not null or undefined
|
|
6186
|
+
if (avaProject === null || avaProject === undefined) {
|
|
6187
|
+
throw new Error('Required parameter avaProject was null or undefined when calling avaConversionConvertToUgl.');
|
|
6188
|
+
}
|
|
6189
|
+
|
|
6190
|
+
if (tryAutoGenerateItemNumbersAndSchema !== undefined) {
|
|
6191
|
+
localVarQueryParameters['TryAutoGenerateItemNumbersAndSchema'] = ObjectSerializer.serialize(tryAutoGenerateItemNumbersAndSchema, "boolean");
|
|
6192
|
+
}
|
|
6193
|
+
|
|
6194
|
+
if (uglDestinationVersion !== undefined) {
|
|
6195
|
+
localVarQueryParameters['UglDestinationVersion'] = ObjectSerializer.serialize(uglDestinationVersion, "'V4' | 'V5'");
|
|
6196
|
+
}
|
|
6197
|
+
|
|
6198
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
6199
|
+
|
|
6200
|
+
let localVarUseFormData = false;
|
|
6201
|
+
|
|
6202
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
6203
|
+
method: 'POST',
|
|
6204
|
+
qs: localVarQueryParameters,
|
|
6205
|
+
headers: localVarHeaderParams,
|
|
6206
|
+
uri: localVarPath,
|
|
6207
|
+
useQuerystring: this._useQuerystring,
|
|
6208
|
+
encoding: null,
|
|
6209
|
+
body: avaProject,
|
|
6210
|
+
json: true
|
|
6211
|
+
};
|
|
6212
|
+
|
|
6213
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
6214
|
+
|
|
6215
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
6216
|
+
|
|
6010
6217
|
if (Object.keys(localVarFormParams).length) {
|
|
6011
6218
|
if (localVarUseFormData) {
|
|
6012
6219
|
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
@@ -6416,6 +6623,128 @@ export class DanglIdentityApi {
|
|
|
6416
6623
|
});
|
|
6417
6624
|
}
|
|
6418
6625
|
}
|
|
6626
|
+
export enum DatanormConversionApiApiKeys {
|
|
6627
|
+
}
|
|
6628
|
+
|
|
6629
|
+
export class DatanormConversionApi {
|
|
6630
|
+
protected _basePath = defaultBasePath;
|
|
6631
|
+
protected defaultHeaders : any = {};
|
|
6632
|
+
protected _useQuerystring : boolean = false;
|
|
6633
|
+
|
|
6634
|
+
protected authentications = {
|
|
6635
|
+
'default': <Authentication>new VoidAuth(),
|
|
6636
|
+
'Dangl.Identity': new OAuth(),
|
|
6637
|
+
}
|
|
6638
|
+
|
|
6639
|
+
constructor(basePath?: string);
|
|
6640
|
+
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
6641
|
+
if (password) {
|
|
6642
|
+
if (basePath) {
|
|
6643
|
+
this.basePath = basePath;
|
|
6644
|
+
}
|
|
6645
|
+
} else {
|
|
6646
|
+
if (basePathOrUsername) {
|
|
6647
|
+
this.basePath = basePathOrUsername
|
|
6648
|
+
}
|
|
6649
|
+
}
|
|
6650
|
+
}
|
|
6651
|
+
|
|
6652
|
+
set useQuerystring(value: boolean) {
|
|
6653
|
+
this._useQuerystring = value;
|
|
6654
|
+
}
|
|
6655
|
+
|
|
6656
|
+
set basePath(basePath: string) {
|
|
6657
|
+
this._basePath = basePath;
|
|
6658
|
+
}
|
|
6659
|
+
|
|
6660
|
+
get basePath() {
|
|
6661
|
+
return this._basePath;
|
|
6662
|
+
}
|
|
6663
|
+
|
|
6664
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
6665
|
+
this.authentications.default = auth;
|
|
6666
|
+
}
|
|
6667
|
+
|
|
6668
|
+
public setApiKey(key: DatanormConversionApiApiKeys, value: string) {
|
|
6669
|
+
(this.authentications as any)[DatanormConversionApiApiKeys[key]].apiKey = value;
|
|
6670
|
+
}
|
|
6671
|
+
|
|
6672
|
+
set accessToken(token: string) {
|
|
6673
|
+
this.authentications['Dangl.Identity'].accessToken = token;
|
|
6674
|
+
}
|
|
6675
|
+
/**
|
|
6676
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6677
|
+
*/
|
|
6678
|
+
public datanormConversionConvertToAvaWithRequestObject(datanormFile: FileParameter, options: { removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: ProjectDto; }> {
|
|
6679
|
+
return this.datanormConversionConvertToAva(datanormFile, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
|
|
6680
|
+
}
|
|
6681
|
+
|
|
6682
|
+
/**
|
|
6683
|
+
*
|
|
6684
|
+
* @summary Converts Datanorm files to Dangl.AVA projects
|
|
6685
|
+
* @param datanormFile The input file
|
|
6686
|
+
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
6687
|
+
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
6688
|
+
* @param {*} [options] Override http request options.
|
|
6689
|
+
*/
|
|
6690
|
+
public datanormConversionConvertToAva (datanormFile: FileParameter, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: ProjectDto; }> { const localVarPath = this.basePath + '/conversion/datanorm/ava';
|
|
6691
|
+
let localVarQueryParameters: any = {};
|
|
6692
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6693
|
+
let localVarFormParams: any = {};
|
|
6694
|
+
|
|
6695
|
+
if (removePlainTextLongTexts !== undefined) {
|
|
6696
|
+
localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
|
|
6697
|
+
}
|
|
6698
|
+
|
|
6699
|
+
if (removeHtmlLongTexts !== undefined) {
|
|
6700
|
+
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
6701
|
+
}
|
|
6702
|
+
|
|
6703
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
6704
|
+
|
|
6705
|
+
let localVarUseFormData = false;
|
|
6706
|
+
|
|
6707
|
+
if (datanormFile !== undefined) {
|
|
6708
|
+
localVarFormParams['datanormFile'] = datanormFile;
|
|
6709
|
+
}
|
|
6710
|
+
localVarUseFormData = true;
|
|
6711
|
+
|
|
6712
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
6713
|
+
method: 'POST',
|
|
6714
|
+
qs: localVarQueryParameters,
|
|
6715
|
+
headers: localVarHeaderParams,
|
|
6716
|
+
uri: localVarPath,
|
|
6717
|
+
useQuerystring: this._useQuerystring,
|
|
6718
|
+
json: true,
|
|
6719
|
+
};
|
|
6720
|
+
|
|
6721
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
6722
|
+
|
|
6723
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
6724
|
+
|
|
6725
|
+
if (Object.keys(localVarFormParams).length) {
|
|
6726
|
+
if (localVarUseFormData) {
|
|
6727
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
6728
|
+
} else {
|
|
6729
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
6730
|
+
}
|
|
6731
|
+
}
|
|
6732
|
+
return new Promise<{ response: http.IncomingMessage; body: ProjectDto; }>((resolve, reject) => {
|
|
6733
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
6734
|
+
if (error) {
|
|
6735
|
+
reject(error);
|
|
6736
|
+
} else {
|
|
6737
|
+
body = ObjectSerializer.deserialize(body, "ProjectDto");
|
|
6738
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
6739
|
+
resolve({ response: response, body: body });
|
|
6740
|
+
} else {
|
|
6741
|
+
reject({ response: response, body: body });
|
|
6742
|
+
}
|
|
6743
|
+
}
|
|
6744
|
+
});
|
|
6745
|
+
});
|
|
6746
|
+
}
|
|
6747
|
+
}
|
|
6419
6748
|
export enum ExcelConversionApiApiKeys {
|
|
6420
6749
|
}
|
|
6421
6750
|
|
|
@@ -6886,8 +7215,8 @@ export class GaebConversionApi {
|
|
|
6886
7215
|
/**
|
|
6887
7216
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6888
7217
|
*/
|
|
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 || {});
|
|
7218
|
+
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; }> {
|
|
7219
|
+
return this.gaebConversionConvertToAva(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
6891
7220
|
}
|
|
6892
7221
|
|
|
6893
7222
|
/**
|
|
@@ -6899,9 +7228,10 @@ export class GaebConversionApi {
|
|
|
6899
7228
|
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
6900
7229
|
* @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
7230
|
* @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.
|
|
7231
|
+
* @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
7232
|
* @param {*} [options] Override http request options.
|
|
6903
7233
|
*/
|
|
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';
|
|
7234
|
+
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
7235
|
let localVarQueryParameters: any = {};
|
|
6906
7236
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6907
7237
|
let localVarFormParams: any = {};
|
|
@@ -6926,6 +7256,10 @@ export class GaebConversionApi {
|
|
|
6926
7256
|
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
6927
7257
|
}
|
|
6928
7258
|
|
|
7259
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
7260
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
7261
|
+
}
|
|
7262
|
+
|
|
6929
7263
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
6930
7264
|
|
|
6931
7265
|
let localVarUseFormData = false;
|
|
@@ -6973,8 +7307,8 @@ export class GaebConversionApi {
|
|
|
6973
7307
|
/**
|
|
6974
7308
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
6975
7309
|
*/
|
|
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 || {});
|
|
7310
|
+
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; }> {
|
|
7311
|
+
return this.gaebConversionConvertToExcel(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.writePrices, options.writeLongTexts, options.conversionCulture, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
6978
7312
|
}
|
|
6979
7313
|
|
|
6980
7314
|
/**
|
|
@@ -6987,9 +7321,10 @@ export class GaebConversionApi {
|
|
|
6987
7321
|
* @param conversionCulture The culture that should be used for the conversion process, to have localized Excel files
|
|
6988
7322
|
* @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
7323
|
* @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.
|
|
7324
|
+
* @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
7325
|
* @param {*} [options] Override http request options.
|
|
6991
7326
|
*/
|
|
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';
|
|
7327
|
+
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
7328
|
let localVarQueryParameters: any = {};
|
|
6994
7329
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
6995
7330
|
let localVarFormParams: any = {};
|
|
@@ -7018,6 +7353,10 @@ export class GaebConversionApi {
|
|
|
7018
7353
|
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
7019
7354
|
}
|
|
7020
7355
|
|
|
7356
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
7357
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
7358
|
+
}
|
|
7359
|
+
|
|
7021
7360
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
7022
7361
|
|
|
7023
7362
|
let localVarUseFormData = false;
|
|
@@ -7065,8 +7404,8 @@ export class GaebConversionApi {
|
|
|
7065
7404
|
/**
|
|
7066
7405
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
7067
7406
|
*/
|
|
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 || {});
|
|
7407
|
+
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; }> {
|
|
7408
|
+
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
7409
|
}
|
|
7071
7410
|
|
|
7072
7411
|
/**
|
|
@@ -7083,9 +7422,10 @@ export class GaebConversionApi {
|
|
|
7083
7422
|
* @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
7423
|
* @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
7424
|
* @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.
|
|
7425
|
+
* @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
7426
|
* @param {*} [options] Override http request options.
|
|
7087
7427
|
*/
|
|
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';
|
|
7428
|
+
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
7429
|
let localVarQueryParameters: any = {};
|
|
7090
7430
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
7091
7431
|
let localVarFormParams: any = {};
|
|
@@ -7130,6 +7470,10 @@ export class GaebConversionApi {
|
|
|
7130
7470
|
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
7131
7471
|
}
|
|
7132
7472
|
|
|
7473
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
7474
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
7475
|
+
}
|
|
7476
|
+
|
|
7133
7477
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
7134
7478
|
|
|
7135
7479
|
let localVarUseFormData = false;
|
|
@@ -7177,8 +7521,8 @@ export class GaebConversionApi {
|
|
|
7177
7521
|
/**
|
|
7178
7522
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
7179
7523
|
*/
|
|
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 || {});
|
|
7524
|
+
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; }> {
|
|
7525
|
+
return this.gaebConversionConvertToOenorm(gaebFile, options.supportSkippedItemNumberLevelsInPositions, options.destinationOenormType, options.tryRepairProjectStructure, options.skipTryEnforceSchemaCompliantXmlOutput, options.removeUnprintableCharactersFromTexts, options.outputHtmlAsXml, options.keepEmptyHtmlText, options.allowUpperCaseItemNumbers, options.options || {});
|
|
7182
7526
|
}
|
|
7183
7527
|
|
|
7184
7528
|
/**
|
|
@@ -7192,9 +7536,10 @@ export class GaebConversionApi {
|
|
|
7192
7536
|
* @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
7537
|
* @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
7538
|
* @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.
|
|
7539
|
+
* @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
7540
|
* @param {*} [options] Override http request options.
|
|
7196
7541
|
*/
|
|
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';
|
|
7542
|
+
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
7543
|
let localVarQueryParameters: any = {};
|
|
7199
7544
|
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
7200
7545
|
let localVarFormParams: any = {};
|
|
@@ -7227,6 +7572,10 @@ export class GaebConversionApi {
|
|
|
7227
7572
|
localVarQueryParameters['KeepEmptyHtmlText'] = ObjectSerializer.serialize(keepEmptyHtmlText, "boolean");
|
|
7228
7573
|
}
|
|
7229
7574
|
|
|
7575
|
+
if (allowUpperCaseItemNumbers !== undefined) {
|
|
7576
|
+
localVarQueryParameters['AllowUpperCaseItemNumbers'] = ObjectSerializer.serialize(allowUpperCaseItemNumbers, "boolean");
|
|
7577
|
+
}
|
|
7578
|
+
|
|
7230
7579
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
7231
7580
|
|
|
7232
7581
|
let localVarUseFormData = false;
|
|
@@ -8506,6 +8855,128 @@ export class StatusApi {
|
|
|
8506
8855
|
});
|
|
8507
8856
|
}
|
|
8508
8857
|
}
|
|
8858
|
+
export enum UglConversionApiApiKeys {
|
|
8859
|
+
}
|
|
8860
|
+
|
|
8861
|
+
export class UglConversionApi {
|
|
8862
|
+
protected _basePath = defaultBasePath;
|
|
8863
|
+
protected defaultHeaders : any = {};
|
|
8864
|
+
protected _useQuerystring : boolean = false;
|
|
8865
|
+
|
|
8866
|
+
protected authentications = {
|
|
8867
|
+
'default': <Authentication>new VoidAuth(),
|
|
8868
|
+
'Dangl.Identity': new OAuth(),
|
|
8869
|
+
}
|
|
8870
|
+
|
|
8871
|
+
constructor(basePath?: string);
|
|
8872
|
+
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
8873
|
+
if (password) {
|
|
8874
|
+
if (basePath) {
|
|
8875
|
+
this.basePath = basePath;
|
|
8876
|
+
}
|
|
8877
|
+
} else {
|
|
8878
|
+
if (basePathOrUsername) {
|
|
8879
|
+
this.basePath = basePathOrUsername
|
|
8880
|
+
}
|
|
8881
|
+
}
|
|
8882
|
+
}
|
|
8883
|
+
|
|
8884
|
+
set useQuerystring(value: boolean) {
|
|
8885
|
+
this._useQuerystring = value;
|
|
8886
|
+
}
|
|
8887
|
+
|
|
8888
|
+
set basePath(basePath: string) {
|
|
8889
|
+
this._basePath = basePath;
|
|
8890
|
+
}
|
|
8891
|
+
|
|
8892
|
+
get basePath() {
|
|
8893
|
+
return this._basePath;
|
|
8894
|
+
}
|
|
8895
|
+
|
|
8896
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
8897
|
+
this.authentications.default = auth;
|
|
8898
|
+
}
|
|
8899
|
+
|
|
8900
|
+
public setApiKey(key: UglConversionApiApiKeys, value: string) {
|
|
8901
|
+
(this.authentications as any)[UglConversionApiApiKeys[key]].apiKey = value;
|
|
8902
|
+
}
|
|
8903
|
+
|
|
8904
|
+
set accessToken(token: string) {
|
|
8905
|
+
this.authentications['Dangl.Identity'].accessToken = token;
|
|
8906
|
+
}
|
|
8907
|
+
/**
|
|
8908
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
8909
|
+
*/
|
|
8910
|
+
public uglConversionConvertToAvaWithRequestObject(uglFile: FileParameter, options: { removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options?: any }): Promise<{ response: http.IncomingMessage; body: ProjectDto; }> {
|
|
8911
|
+
return this.uglConversionConvertToAva(uglFile, options.removePlainTextLongTexts, options.removeHtmlLongTexts, options.options || {});
|
|
8912
|
+
}
|
|
8913
|
+
|
|
8914
|
+
/**
|
|
8915
|
+
*
|
|
8916
|
+
* @summary Converts Ugl files to Dangl.AVA projects
|
|
8917
|
+
* @param uglFile The input file
|
|
8918
|
+
* @param removePlainTextLongTexts If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
8919
|
+
* @param removeHtmlLongTexts If set to true, html long texts will be removed from the output to reduce response sizes
|
|
8920
|
+
* @param {*} [options] Override http request options.
|
|
8921
|
+
*/
|
|
8922
|
+
public uglConversionConvertToAva (uglFile: FileParameter, removePlainTextLongTexts?: boolean, removeHtmlLongTexts?: boolean, options: any = {}) : Promise<{ response: http.IncomingMessage; body: ProjectDto; }> { const localVarPath = this.basePath + '/conversion/ugl/ava';
|
|
8923
|
+
let localVarQueryParameters: any = {};
|
|
8924
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this.defaultHeaders);
|
|
8925
|
+
let localVarFormParams: any = {};
|
|
8926
|
+
|
|
8927
|
+
if (removePlainTextLongTexts !== undefined) {
|
|
8928
|
+
localVarQueryParameters['RemovePlainTextLongTexts'] = ObjectSerializer.serialize(removePlainTextLongTexts, "boolean");
|
|
8929
|
+
}
|
|
8930
|
+
|
|
8931
|
+
if (removeHtmlLongTexts !== undefined) {
|
|
8932
|
+
localVarQueryParameters['RemoveHtmlLongTexts'] = ObjectSerializer.serialize(removeHtmlLongTexts, "boolean");
|
|
8933
|
+
}
|
|
8934
|
+
|
|
8935
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
8936
|
+
|
|
8937
|
+
let localVarUseFormData = false;
|
|
8938
|
+
|
|
8939
|
+
if (uglFile !== undefined) {
|
|
8940
|
+
localVarFormParams['uglFile'] = uglFile;
|
|
8941
|
+
}
|
|
8942
|
+
localVarUseFormData = true;
|
|
8943
|
+
|
|
8944
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
8945
|
+
method: 'POST',
|
|
8946
|
+
qs: localVarQueryParameters,
|
|
8947
|
+
headers: localVarHeaderParams,
|
|
8948
|
+
uri: localVarPath,
|
|
8949
|
+
useQuerystring: this._useQuerystring,
|
|
8950
|
+
json: true,
|
|
8951
|
+
};
|
|
8952
|
+
|
|
8953
|
+
this.authentications['Dangl.Identity'].applyToRequest(localVarRequestOptions);
|
|
8954
|
+
|
|
8955
|
+
this.authentications.default.applyToRequest(localVarRequestOptions);
|
|
8956
|
+
|
|
8957
|
+
if (Object.keys(localVarFormParams).length) {
|
|
8958
|
+
if (localVarUseFormData) {
|
|
8959
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
8960
|
+
} else {
|
|
8961
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
8962
|
+
}
|
|
8963
|
+
}
|
|
8964
|
+
return new Promise<{ response: http.IncomingMessage; body: ProjectDto; }>((resolve, reject) => {
|
|
8965
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
8966
|
+
if (error) {
|
|
8967
|
+
reject(error);
|
|
8968
|
+
} else {
|
|
8969
|
+
body = ObjectSerializer.deserialize(body, "ProjectDto");
|
|
8970
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
8971
|
+
resolve({ response: response, body: body });
|
|
8972
|
+
} else {
|
|
8973
|
+
reject({ response: response, body: body });
|
|
8974
|
+
}
|
|
8975
|
+
}
|
|
8976
|
+
});
|
|
8977
|
+
});
|
|
8978
|
+
}
|
|
8979
|
+
}
|
|
8509
8980
|
export enum ValidationApiApiKeys {
|
|
8510
8981
|
}
|
|
8511
8982
|
|