@dangl/avacloud-client-node 1.65.0-beta0004-avacloud-preview → 1.65.1-beta0003-avacloud-preview
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.d.ts +42 -6
- package/api.js +62 -10
- package/api.js.map +1 -1
- package/api.ts +67 -14
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1321,20 +1321,37 @@ export declare class RebConversionApi {
|
|
|
1321
1321
|
rebConversionConvertToAvaWithRequestObject(rebFile: FileParameter | null | undefined, options?: {
|
|
1322
1322
|
removePlainTextLongTexts?: boolean | undefined;
|
|
1323
1323
|
removeHtmlLongTexts?: boolean | undefined;
|
|
1324
|
+
supportSkippedItemNumberLevelsInPositions?: boolean | undefined;
|
|
1324
1325
|
}): Promise<SwaggerResponse<ProjectDto>>;
|
|
1325
1326
|
/**
|
|
1326
1327
|
* Converts REB files to Dangl.AVA projects
|
|
1327
1328
|
* @param rebFile (optional) The input file
|
|
1328
1329
|
* @param removePlainTextLongTexts (optional) If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
1329
1330
|
* @param removeHtmlLongTexts (optional) If set to true, html long texts will be removed from the output to reduce response sizes
|
|
1331
|
+
* @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
|
|
1332
|
+
item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
|
|
1333
|
+
levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
|
|
1334
|
+
displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
|
|
1335
|
+
effect on D11 files.
|
|
1330
1336
|
*/
|
|
1331
|
-
rebConversionConvertToAva(rebFile: FileParameter | null | undefined, removePlainTextLongTexts?: boolean | undefined, removeHtmlLongTexts?: boolean | undefined): Promise<SwaggerResponse<ProjectDto>>;
|
|
1337
|
+
rebConversionConvertToAva(rebFile: FileParameter | null | undefined, removePlainTextLongTexts?: boolean | undefined, removeHtmlLongTexts?: boolean | undefined, supportSkippedItemNumberLevelsInPositions?: boolean | undefined): Promise<SwaggerResponse<ProjectDto>>;
|
|
1332
1338
|
protected processRebConversionConvertToAva(response: Response): Promise<SwaggerResponse<ProjectDto>>;
|
|
1339
|
+
/**
|
|
1340
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
1341
|
+
*/
|
|
1342
|
+
rebConversionConvertToFlatAvaWithRequestObject(rebFile: FileParameter | null | undefined, options?: {
|
|
1343
|
+
supportSkippedItemNumberLevelsInPositions?: boolean | undefined;
|
|
1344
|
+
}): Promise<SwaggerResponse<FlatAvaProject>>;
|
|
1333
1345
|
/**
|
|
1334
1346
|
* Converts REB files to Dangl.AVA projects
|
|
1335
1347
|
* @param rebFile (optional) The input file
|
|
1348
|
+
* @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
|
|
1349
|
+
item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
|
|
1350
|
+
levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
|
|
1351
|
+
displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
|
|
1352
|
+
effect on D11 files.
|
|
1336
1353
|
*/
|
|
1337
|
-
rebConversionConvertToFlatAva(rebFile: FileParameter | null | undefined): Promise<SwaggerResponse<FlatAvaProject>>;
|
|
1354
|
+
rebConversionConvertToFlatAva(rebFile: FileParameter | null | undefined, supportSkippedItemNumberLevelsInPositions?: boolean | undefined): Promise<SwaggerResponse<FlatAvaProject>>;
|
|
1338
1355
|
protected processRebConversionConvertToFlatAva(response: Response): Promise<SwaggerResponse<FlatAvaProject>>;
|
|
1339
1356
|
/**
|
|
1340
1357
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
@@ -1347,6 +1364,7 @@ export declare class RebConversionApi {
|
|
|
1347
1364
|
removeUnprintableCharactersFromTexts?: boolean | undefined;
|
|
1348
1365
|
forceIncludeDescriptions?: boolean | undefined;
|
|
1349
1366
|
treatNullItemNumberSchemaAsInvalid?: boolean | undefined;
|
|
1367
|
+
supportSkippedItemNumberLevelsInPositions?: boolean | undefined;
|
|
1350
1368
|
}): Promise<SwaggerResponse<FileResponse>>;
|
|
1351
1369
|
/**
|
|
1352
1370
|
* Converts REB files to GAEB files
|
|
@@ -1378,8 +1396,13 @@ export declare class RebConversionApi {
|
|
|
1378
1396
|
With this setting, you can also tell AVACloud to treat a null value as invalid. Otherwise, null schemas will simply be ignored
|
|
1379
1397
|
and not lead to any schema being generated. It is recommended to enable this option, but it is disabled by default for compatibility
|
|
1380
1398
|
reasons.
|
|
1399
|
+
* @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
|
|
1400
|
+
item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
|
|
1401
|
+
levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
|
|
1402
|
+
displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
|
|
1403
|
+
effect on D11 files.
|
|
1381
1404
|
*/
|
|
1382
|
-
rebConversionConvertToGaeb(rebFile: FileParameter | null | undefined, destinationGaebType?: DestinationGaebType | undefined, targetExchangePhaseTransform?: DestinationGaebExchangePhase | undefined, enforceStrictOfferPhaseLongTextOutput?: boolean | undefined, exportQuantityDetermination?: boolean | undefined, removeUnprintableCharactersFromTexts?: boolean | undefined, forceIncludeDescriptions?: boolean | undefined, treatNullItemNumberSchemaAsInvalid?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
|
|
1405
|
+
rebConversionConvertToGaeb(rebFile: FileParameter | null | undefined, destinationGaebType?: DestinationGaebType | undefined, targetExchangePhaseTransform?: DestinationGaebExchangePhase | undefined, enforceStrictOfferPhaseLongTextOutput?: boolean | undefined, exportQuantityDetermination?: boolean | undefined, removeUnprintableCharactersFromTexts?: boolean | undefined, forceIncludeDescriptions?: boolean | undefined, treatNullItemNumberSchemaAsInvalid?: boolean | undefined, supportSkippedItemNumberLevelsInPositions?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
|
|
1383
1406
|
protected processRebConversionConvertToGaeb(response: Response): Promise<SwaggerResponse<FileResponse>>;
|
|
1384
1407
|
/**
|
|
1385
1408
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
@@ -1390,6 +1413,7 @@ export declare class RebConversionApi {
|
|
|
1390
1413
|
conversionCulture?: string | null | undefined;
|
|
1391
1414
|
includeArticleNumbers?: boolean | undefined;
|
|
1392
1415
|
lockAllCellsButPrices?: boolean | undefined;
|
|
1416
|
+
supportSkippedItemNumberLevelsInPositions?: boolean | undefined;
|
|
1393
1417
|
}): Promise<SwaggerResponse<FileResponse>>;
|
|
1394
1418
|
/**
|
|
1395
1419
|
* Converts REB files to Excel
|
|
@@ -1403,8 +1427,13 @@ export declare class RebConversionApi {
|
|
|
1403
1427
|
'position.commerceProperties.articleNumber'
|
|
1404
1428
|
* @param lockAllCellsButPrices (optional) If this is enabled, then all cells except the unit price cells will
|
|
1405
1429
|
be locked, so users can not accidentally modify other fields.
|
|
1430
|
+
* @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
|
|
1431
|
+
item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
|
|
1432
|
+
levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
|
|
1433
|
+
displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
|
|
1434
|
+
effect on D11 files.
|
|
1406
1435
|
*/
|
|
1407
|
-
rebConversionConvertToExcel(rebFile: FileParameter | null | undefined, writePrices?: boolean | undefined, writeLongTexts?: boolean | undefined, conversionCulture?: string | null | undefined, includeArticleNumbers?: boolean | undefined, lockAllCellsButPrices?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
|
|
1436
|
+
rebConversionConvertToExcel(rebFile: FileParameter | null | undefined, writePrices?: boolean | undefined, writeLongTexts?: boolean | undefined, conversionCulture?: string | null | undefined, includeArticleNumbers?: boolean | undefined, lockAllCellsButPrices?: boolean | undefined, supportSkippedItemNumberLevelsInPositions?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
|
|
1408
1437
|
protected processRebConversionConvertToExcel(response: Response): Promise<SwaggerResponse<FileResponse>>;
|
|
1409
1438
|
/**
|
|
1410
1439
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
@@ -1414,6 +1443,7 @@ export declare class RebConversionApi {
|
|
|
1414
1443
|
tryRepairProjectStructure?: boolean | undefined;
|
|
1415
1444
|
skipTryEnforceSchemaCompliantXmlOutput?: boolean | undefined;
|
|
1416
1445
|
removeUnprintableCharactersFromTexts?: boolean | undefined;
|
|
1446
|
+
supportSkippedItemNumberLevelsInPositions?: boolean | undefined;
|
|
1417
1447
|
}): Promise<SwaggerResponse<FileResponse>>;
|
|
1418
1448
|
/**
|
|
1419
1449
|
* Converts REB files to Oenorm
|
|
@@ -1427,8 +1457,13 @@ export declare class RebConversionApi {
|
|
|
1427
1457
|
* @param removeUnprintableCharactersFromTexts (optional) If this is enabled, unprintable characters are removed from text elements. Otherwise, the conversion
|
|
1428
1458
|
might fail in case some text content contains characters that are not allowed in XML output formats.
|
|
1429
1459
|
Defaults to true.
|
|
1460
|
+
* @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
|
|
1461
|
+
item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
|
|
1462
|
+
levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
|
|
1463
|
+
displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
|
|
1464
|
+
effect on D11 files.
|
|
1430
1465
|
*/
|
|
1431
|
-
rebConversionConvertToOenorm(rebFile: FileParameter | null | undefined, destinationOenormType?: DestinationOenormType | undefined, tryRepairProjectStructure?: boolean | undefined, skipTryEnforceSchemaCompliantXmlOutput?: boolean | undefined, removeUnprintableCharactersFromTexts?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
|
|
1466
|
+
rebConversionConvertToOenorm(rebFile: FileParameter | null | undefined, destinationOenormType?: DestinationOenormType | undefined, tryRepairProjectStructure?: boolean | undefined, skipTryEnforceSchemaCompliantXmlOutput?: boolean | undefined, removeUnprintableCharactersFromTexts?: boolean | undefined, supportSkippedItemNumberLevelsInPositions?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
|
|
1432
1467
|
protected processRebConversionConvertToOenorm(response: Response): Promise<SwaggerResponse<FileResponse>>;
|
|
1433
1468
|
}
|
|
1434
1469
|
export declare class SiaConversionApi {
|
|
@@ -4043,7 +4078,8 @@ export declare enum DestinationOenormType {
|
|
|
4043
4078
|
export declare enum DestinationRebType {
|
|
4044
4079
|
D11 = "D11",
|
|
4045
4080
|
X31GaebXmlV32 = "X31GaebXmlV32",
|
|
4046
|
-
X31GaebXmlV33 = "X31GaebXmlV33"
|
|
4081
|
+
X31GaebXmlV33 = "X31GaebXmlV33",
|
|
4082
|
+
X31GaebXmlV34 = "X31GaebXmlV34"
|
|
4047
4083
|
}
|
|
4048
4084
|
/** Represents valid SIA destination types */
|
|
4049
4085
|
export declare enum SiaDestinationType {
|
package/api.js
CHANGED
|
@@ -4307,15 +4307,20 @@ class RebConversionApi {
|
|
|
4307
4307
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4308
4308
|
*/
|
|
4309
4309
|
rebConversionConvertToAvaWithRequestObject(rebFile, options) {
|
|
4310
|
-
return this.rebConversionConvertToAva(rebFile, options === null || options === void 0 ? void 0 : options.removePlainTextLongTexts, options === null || options === void 0 ? void 0 : options.removeHtmlLongTexts);
|
|
4310
|
+
return this.rebConversionConvertToAva(rebFile, options === null || options === void 0 ? void 0 : options.removePlainTextLongTexts, options === null || options === void 0 ? void 0 : options.removeHtmlLongTexts, options === null || options === void 0 ? void 0 : options.supportSkippedItemNumberLevelsInPositions);
|
|
4311
4311
|
}
|
|
4312
4312
|
/**
|
|
4313
4313
|
* Converts REB files to Dangl.AVA projects
|
|
4314
4314
|
* @param rebFile (optional) The input file
|
|
4315
4315
|
* @param removePlainTextLongTexts (optional) If set to true, plain text long texts will be removed from the output to reduce response sizes
|
|
4316
4316
|
* @param removeHtmlLongTexts (optional) If set to true, html long texts will be removed from the output to reduce response sizes
|
|
4317
|
+
* @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
|
|
4318
|
+
item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
|
|
4319
|
+
levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
|
|
4320
|
+
displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
|
|
4321
|
+
effect on D11 files.
|
|
4317
4322
|
*/
|
|
4318
|
-
rebConversionConvertToAva(rebFile, removePlainTextLongTexts, removeHtmlLongTexts) {
|
|
4323
|
+
rebConversionConvertToAva(rebFile, removePlainTextLongTexts, removeHtmlLongTexts, supportSkippedItemNumberLevelsInPositions) {
|
|
4319
4324
|
let url_ = this.baseUrl + "/conversion/reb/ava?";
|
|
4320
4325
|
if (removePlainTextLongTexts === null)
|
|
4321
4326
|
throw new globalThis.Error("The parameter 'removePlainTextLongTexts' cannot be null.");
|
|
@@ -4325,6 +4330,10 @@ class RebConversionApi {
|
|
|
4325
4330
|
throw new globalThis.Error("The parameter 'removeHtmlLongTexts' cannot be null.");
|
|
4326
4331
|
else if (removeHtmlLongTexts !== undefined)
|
|
4327
4332
|
url_ += "RemoveHtmlLongTexts=" + encodeURIComponent("" + removeHtmlLongTexts) + "&";
|
|
4333
|
+
if (supportSkippedItemNumberLevelsInPositions === null)
|
|
4334
|
+
throw new globalThis.Error("The parameter 'supportSkippedItemNumberLevelsInPositions' cannot be null.");
|
|
4335
|
+
else if (supportSkippedItemNumberLevelsInPositions !== undefined)
|
|
4336
|
+
url_ += "SupportSkippedItemNumberLevelsInPositions=" + encodeURIComponent("" + supportSkippedItemNumberLevelsInPositions) + "&";
|
|
4328
4337
|
url_ = url_.replace(/[?&]$/, "");
|
|
4329
4338
|
const content_ = new FormData();
|
|
4330
4339
|
if (rebFile !== null && rebFile !== undefined)
|
|
@@ -4374,12 +4383,27 @@ class RebConversionApi {
|
|
|
4374
4383
|
}
|
|
4375
4384
|
return Promise.resolve(new SwaggerResponse(status, _headers, null));
|
|
4376
4385
|
}
|
|
4386
|
+
/**
|
|
4387
|
+
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4388
|
+
*/
|
|
4389
|
+
rebConversionConvertToFlatAvaWithRequestObject(rebFile, options) {
|
|
4390
|
+
return this.rebConversionConvertToFlatAva(rebFile, options === null || options === void 0 ? void 0 : options.supportSkippedItemNumberLevelsInPositions);
|
|
4391
|
+
}
|
|
4377
4392
|
/**
|
|
4378
4393
|
* Converts REB files to Dangl.AVA projects
|
|
4379
4394
|
* @param rebFile (optional) The input file
|
|
4395
|
+
* @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
|
|
4396
|
+
item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
|
|
4397
|
+
levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
|
|
4398
|
+
displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
|
|
4399
|
+
effect on D11 files.
|
|
4380
4400
|
*/
|
|
4381
|
-
rebConversionConvertToFlatAva(rebFile) {
|
|
4382
|
-
let url_ = this.baseUrl + "/conversion/reb/flat-ava";
|
|
4401
|
+
rebConversionConvertToFlatAva(rebFile, supportSkippedItemNumberLevelsInPositions) {
|
|
4402
|
+
let url_ = this.baseUrl + "/conversion/reb/flat-ava?";
|
|
4403
|
+
if (supportSkippedItemNumberLevelsInPositions === null)
|
|
4404
|
+
throw new globalThis.Error("The parameter 'supportSkippedItemNumberLevelsInPositions' cannot be null.");
|
|
4405
|
+
else if (supportSkippedItemNumberLevelsInPositions !== undefined)
|
|
4406
|
+
url_ += "SupportSkippedItemNumberLevelsInPositions=" + encodeURIComponent("" + supportSkippedItemNumberLevelsInPositions) + "&";
|
|
4383
4407
|
url_ = url_.replace(/[?&]$/, "");
|
|
4384
4408
|
const content_ = new FormData();
|
|
4385
4409
|
if (rebFile !== null && rebFile !== undefined)
|
|
@@ -4433,7 +4457,7 @@ class RebConversionApi {
|
|
|
4433
4457
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4434
4458
|
*/
|
|
4435
4459
|
rebConversionConvertToGaebWithRequestObject(rebFile, options) {
|
|
4436
|
-
return this.rebConversionConvertToGaeb(rebFile, options === null || options === void 0 ? void 0 : options.destinationGaebType, options === null || options === void 0 ? void 0 : options.targetExchangePhaseTransform, options === null || options === void 0 ? void 0 : options.enforceStrictOfferPhaseLongTextOutput, options === null || options === void 0 ? void 0 : options.exportQuantityDetermination, options === null || options === void 0 ? void 0 : options.removeUnprintableCharactersFromTexts, options === null || options === void 0 ? void 0 : options.forceIncludeDescriptions, options === null || options === void 0 ? void 0 : options.treatNullItemNumberSchemaAsInvalid);
|
|
4460
|
+
return this.rebConversionConvertToGaeb(rebFile, options === null || options === void 0 ? void 0 : options.destinationGaebType, options === null || options === void 0 ? void 0 : options.targetExchangePhaseTransform, options === null || options === void 0 ? void 0 : options.enforceStrictOfferPhaseLongTextOutput, options === null || options === void 0 ? void 0 : options.exportQuantityDetermination, options === null || options === void 0 ? void 0 : options.removeUnprintableCharactersFromTexts, options === null || options === void 0 ? void 0 : options.forceIncludeDescriptions, options === null || options === void 0 ? void 0 : options.treatNullItemNumberSchemaAsInvalid, options === null || options === void 0 ? void 0 : options.supportSkippedItemNumberLevelsInPositions);
|
|
4437
4461
|
}
|
|
4438
4462
|
/**
|
|
4439
4463
|
* Converts REB files to GAEB files
|
|
@@ -4465,8 +4489,13 @@ class RebConversionApi {
|
|
|
4465
4489
|
With this setting, you can also tell AVACloud to treat a null value as invalid. Otherwise, null schemas will simply be ignored
|
|
4466
4490
|
and not lead to any schema being generated. It is recommended to enable this option, but it is disabled by default for compatibility
|
|
4467
4491
|
reasons.
|
|
4492
|
+
* @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
|
|
4493
|
+
item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
|
|
4494
|
+
levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
|
|
4495
|
+
displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
|
|
4496
|
+
effect on D11 files.
|
|
4468
4497
|
*/
|
|
4469
|
-
rebConversionConvertToGaeb(rebFile, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, treatNullItemNumberSchemaAsInvalid) {
|
|
4498
|
+
rebConversionConvertToGaeb(rebFile, destinationGaebType, targetExchangePhaseTransform, enforceStrictOfferPhaseLongTextOutput, exportQuantityDetermination, removeUnprintableCharactersFromTexts, forceIncludeDescriptions, treatNullItemNumberSchemaAsInvalid, supportSkippedItemNumberLevelsInPositions) {
|
|
4470
4499
|
let url_ = this.baseUrl + "/conversion/reb/gaeb?";
|
|
4471
4500
|
if (destinationGaebType === null)
|
|
4472
4501
|
throw new globalThis.Error("The parameter 'destinationGaebType' cannot be null.");
|
|
@@ -4496,6 +4525,10 @@ class RebConversionApi {
|
|
|
4496
4525
|
throw new globalThis.Error("The parameter 'treatNullItemNumberSchemaAsInvalid' cannot be null.");
|
|
4497
4526
|
else if (treatNullItemNumberSchemaAsInvalid !== undefined)
|
|
4498
4527
|
url_ += "TreatNullItemNumberSchemaAsInvalid=" + encodeURIComponent("" + treatNullItemNumberSchemaAsInvalid) + "&";
|
|
4528
|
+
if (supportSkippedItemNumberLevelsInPositions === null)
|
|
4529
|
+
throw new globalThis.Error("The parameter 'supportSkippedItemNumberLevelsInPositions' cannot be null.");
|
|
4530
|
+
else if (supportSkippedItemNumberLevelsInPositions !== undefined)
|
|
4531
|
+
url_ += "SupportSkippedItemNumberLevelsInPositions=" + encodeURIComponent("" + supportSkippedItemNumberLevelsInPositions) + "&";
|
|
4499
4532
|
url_ = url_.replace(/[?&]$/, "");
|
|
4500
4533
|
const content_ = new FormData();
|
|
4501
4534
|
if (rebFile !== null && rebFile !== undefined)
|
|
@@ -4554,7 +4587,7 @@ class RebConversionApi {
|
|
|
4554
4587
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4555
4588
|
*/
|
|
4556
4589
|
rebConversionConvertToExcelWithRequestObject(rebFile, options) {
|
|
4557
|
-
return this.rebConversionConvertToExcel(rebFile, options === null || options === void 0 ? void 0 : options.writePrices, options === null || options === void 0 ? void 0 : options.writeLongTexts, options === null || options === void 0 ? void 0 : options.conversionCulture, options === null || options === void 0 ? void 0 : options.includeArticleNumbers, options === null || options === void 0 ? void 0 : options.lockAllCellsButPrices);
|
|
4590
|
+
return this.rebConversionConvertToExcel(rebFile, options === null || options === void 0 ? void 0 : options.writePrices, options === null || options === void 0 ? void 0 : options.writeLongTexts, options === null || options === void 0 ? void 0 : options.conversionCulture, options === null || options === void 0 ? void 0 : options.includeArticleNumbers, options === null || options === void 0 ? void 0 : options.lockAllCellsButPrices, options === null || options === void 0 ? void 0 : options.supportSkippedItemNumberLevelsInPositions);
|
|
4558
4591
|
}
|
|
4559
4592
|
/**
|
|
4560
4593
|
* Converts REB files to Excel
|
|
@@ -4568,8 +4601,13 @@ class RebConversionApi {
|
|
|
4568
4601
|
'position.commerceProperties.articleNumber'
|
|
4569
4602
|
* @param lockAllCellsButPrices (optional) If this is enabled, then all cells except the unit price cells will
|
|
4570
4603
|
be locked, so users can not accidentally modify other fields.
|
|
4604
|
+
* @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
|
|
4605
|
+
item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
|
|
4606
|
+
levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
|
|
4607
|
+
displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
|
|
4608
|
+
effect on D11 files.
|
|
4571
4609
|
*/
|
|
4572
|
-
rebConversionConvertToExcel(rebFile, writePrices, writeLongTexts, conversionCulture, includeArticleNumbers, lockAllCellsButPrices) {
|
|
4610
|
+
rebConversionConvertToExcel(rebFile, writePrices, writeLongTexts, conversionCulture, includeArticleNumbers, lockAllCellsButPrices, supportSkippedItemNumberLevelsInPositions) {
|
|
4573
4611
|
let url_ = this.baseUrl + "/conversion/reb/excel?";
|
|
4574
4612
|
if (writePrices === null)
|
|
4575
4613
|
throw new globalThis.Error("The parameter 'writePrices' cannot be null.");
|
|
@@ -4589,6 +4627,10 @@ class RebConversionApi {
|
|
|
4589
4627
|
throw new globalThis.Error("The parameter 'lockAllCellsButPrices' cannot be null.");
|
|
4590
4628
|
else if (lockAllCellsButPrices !== undefined)
|
|
4591
4629
|
url_ += "LockAllCellsButPrices=" + encodeURIComponent("" + lockAllCellsButPrices) + "&";
|
|
4630
|
+
if (supportSkippedItemNumberLevelsInPositions === null)
|
|
4631
|
+
throw new globalThis.Error("The parameter 'supportSkippedItemNumberLevelsInPositions' cannot be null.");
|
|
4632
|
+
else if (supportSkippedItemNumberLevelsInPositions !== undefined)
|
|
4633
|
+
url_ += "SupportSkippedItemNumberLevelsInPositions=" + encodeURIComponent("" + supportSkippedItemNumberLevelsInPositions) + "&";
|
|
4592
4634
|
url_ = url_.replace(/[?&]$/, "");
|
|
4593
4635
|
const content_ = new FormData();
|
|
4594
4636
|
if (rebFile !== null && rebFile !== undefined)
|
|
@@ -4647,7 +4689,7 @@ class RebConversionApi {
|
|
|
4647
4689
|
* This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
|
|
4648
4690
|
*/
|
|
4649
4691
|
rebConversionConvertToOenormWithRequestObject(rebFile, options) {
|
|
4650
|
-
return this.rebConversionConvertToOenorm(rebFile, options === null || options === void 0 ? void 0 : options.destinationOenormType, options === null || options === void 0 ? void 0 : options.tryRepairProjectStructure, options === null || options === void 0 ? void 0 : options.skipTryEnforceSchemaCompliantXmlOutput, options === null || options === void 0 ? void 0 : options.removeUnprintableCharactersFromTexts);
|
|
4692
|
+
return this.rebConversionConvertToOenorm(rebFile, options === null || options === void 0 ? void 0 : options.destinationOenormType, options === null || options === void 0 ? void 0 : options.tryRepairProjectStructure, options === null || options === void 0 ? void 0 : options.skipTryEnforceSchemaCompliantXmlOutput, options === null || options === void 0 ? void 0 : options.removeUnprintableCharactersFromTexts, options === null || options === void 0 ? void 0 : options.supportSkippedItemNumberLevelsInPositions);
|
|
4651
4693
|
}
|
|
4652
4694
|
/**
|
|
4653
4695
|
* Converts REB files to Oenorm
|
|
@@ -4661,8 +4703,13 @@ class RebConversionApi {
|
|
|
4661
4703
|
* @param removeUnprintableCharactersFromTexts (optional) If this is enabled, unprintable characters are removed from text elements. Otherwise, the conversion
|
|
4662
4704
|
might fail in case some text content contains characters that are not allowed in XML output formats.
|
|
4663
4705
|
Defaults to true.
|
|
4706
|
+
* @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
|
|
4707
|
+
item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
|
|
4708
|
+
levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
|
|
4709
|
+
displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
|
|
4710
|
+
effect on D11 files.
|
|
4664
4711
|
*/
|
|
4665
|
-
rebConversionConvertToOenorm(rebFile, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts) {
|
|
4712
|
+
rebConversionConvertToOenorm(rebFile, destinationOenormType, tryRepairProjectStructure, skipTryEnforceSchemaCompliantXmlOutput, removeUnprintableCharactersFromTexts, supportSkippedItemNumberLevelsInPositions) {
|
|
4666
4713
|
let url_ = this.baseUrl + "/conversion/reb/oenorm?";
|
|
4667
4714
|
if (destinationOenormType === null)
|
|
4668
4715
|
throw new globalThis.Error("The parameter 'destinationOenormType' cannot be null.");
|
|
@@ -4680,6 +4727,10 @@ class RebConversionApi {
|
|
|
4680
4727
|
throw new globalThis.Error("The parameter 'removeUnprintableCharactersFromTexts' cannot be null.");
|
|
4681
4728
|
else if (removeUnprintableCharactersFromTexts !== undefined)
|
|
4682
4729
|
url_ += "RemoveUnprintableCharactersFromTexts=" + encodeURIComponent("" + removeUnprintableCharactersFromTexts) + "&";
|
|
4730
|
+
if (supportSkippedItemNumberLevelsInPositions === null)
|
|
4731
|
+
throw new globalThis.Error("The parameter 'supportSkippedItemNumberLevelsInPositions' cannot be null.");
|
|
4732
|
+
else if (supportSkippedItemNumberLevelsInPositions !== undefined)
|
|
4733
|
+
url_ += "SupportSkippedItemNumberLevelsInPositions=" + encodeURIComponent("" + supportSkippedItemNumberLevelsInPositions) + "&";
|
|
4683
4734
|
url_ = url_.replace(/[?&]$/, "");
|
|
4684
4735
|
const content_ = new FormData();
|
|
4685
4736
|
if (rebFile !== null && rebFile !== undefined)
|
|
@@ -9228,6 +9279,7 @@ var DestinationRebType;
|
|
|
9228
9279
|
DestinationRebType["D11"] = "D11";
|
|
9229
9280
|
DestinationRebType["X31GaebXmlV32"] = "X31GaebXmlV32";
|
|
9230
9281
|
DestinationRebType["X31GaebXmlV33"] = "X31GaebXmlV33";
|
|
9282
|
+
DestinationRebType["X31GaebXmlV34"] = "X31GaebXmlV34";
|
|
9231
9283
|
})(DestinationRebType = exports.DestinationRebType || (exports.DestinationRebType = {}));
|
|
9232
9284
|
/** Represents valid SIA destination types */
|
|
9233
9285
|
var SiaDestinationType;
|