@dangl/avacloud-client-node 1.65.0-avacloud-preview → 1.65.1-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.
Files changed (5) hide show
  1. package/api.d.ts +42 -6
  2. package/api.js +62 -10
  3. package/api.js.map +1 -1
  4. package/api.ts +67 -14
  5. package/package.json +1 -1
package/api.ts CHANGED
@@ -4346,8 +4346,8 @@ export class RebConversionApi {
4346
4346
  /**
4347
4347
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4348
4348
  */
4349
- rebConversionConvertToAvaWithRequestObject(rebFile: FileParameter | null | undefined, options?: { removePlainTextLongTexts?: boolean | undefined, removeHtmlLongTexts?: boolean | undefined }): Promise<SwaggerResponse<ProjectDto>> {
4350
- return this.rebConversionConvertToAva(rebFile, options?.removePlainTextLongTexts, options?.removeHtmlLongTexts);
4349
+ rebConversionConvertToAvaWithRequestObject(rebFile: FileParameter | null | undefined, options?: { removePlainTextLongTexts?: boolean | undefined, removeHtmlLongTexts?: boolean | undefined, supportSkippedItemNumberLevelsInPositions?: boolean | undefined }): Promise<SwaggerResponse<ProjectDto>> {
4350
+ return this.rebConversionConvertToAva(rebFile, options?.removePlainTextLongTexts, options?.removeHtmlLongTexts, options?.supportSkippedItemNumberLevelsInPositions);
4351
4351
  }
4352
4352
 
4353
4353
  /**
@@ -4355,8 +4355,13 @@ export class RebConversionApi {
4355
4355
  * @param rebFile (optional) The input file
4356
4356
  * @param removePlainTextLongTexts (optional) If set to true, plain text long texts will be removed from the output to reduce response sizes
4357
4357
  * @param removeHtmlLongTexts (optional) If set to true, html long texts will be removed from the output to reduce response sizes
4358
+ * @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
4359
+ item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
4360
+ levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
4361
+ displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
4362
+ effect on D11 files.
4358
4363
  */
4359
- rebConversionConvertToAva(rebFile: FileParameter | null | undefined, removePlainTextLongTexts?: boolean | undefined, removeHtmlLongTexts?: boolean | undefined): Promise<SwaggerResponse<ProjectDto>> {
4364
+ rebConversionConvertToAva(rebFile: FileParameter | null | undefined, removePlainTextLongTexts?: boolean | undefined, removeHtmlLongTexts?: boolean | undefined, supportSkippedItemNumberLevelsInPositions?: boolean | undefined): Promise<SwaggerResponse<ProjectDto>> {
4360
4365
  let url_ = this.baseUrl + "/conversion/reb/ava?";
4361
4366
  if (removePlainTextLongTexts === null)
4362
4367
  throw new globalThis.Error("The parameter 'removePlainTextLongTexts' cannot be null.");
@@ -4366,6 +4371,10 @@ export class RebConversionApi {
4366
4371
  throw new globalThis.Error("The parameter 'removeHtmlLongTexts' cannot be null.");
4367
4372
  else if (removeHtmlLongTexts !== undefined)
4368
4373
  url_ += "RemoveHtmlLongTexts=" + encodeURIComponent("" + removeHtmlLongTexts) + "&";
4374
+ if (supportSkippedItemNumberLevelsInPositions === null)
4375
+ throw new globalThis.Error("The parameter 'supportSkippedItemNumberLevelsInPositions' cannot be null.");
4376
+ else if (supportSkippedItemNumberLevelsInPositions !== undefined)
4377
+ url_ += "SupportSkippedItemNumberLevelsInPositions=" + encodeURIComponent("" + supportSkippedItemNumberLevelsInPositions) + "&";
4369
4378
  url_ = url_.replace(/[?&]$/, "");
4370
4379
 
4371
4380
  const content_ = new FormData();
@@ -4415,12 +4424,28 @@ export class RebConversionApi {
4415
4424
  return Promise.resolve<SwaggerResponse<ProjectDto>>(new SwaggerResponse(status, _headers, null as any));
4416
4425
  }
4417
4426
 
4427
+ /**
4428
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4429
+ */
4430
+ rebConversionConvertToFlatAvaWithRequestObject(rebFile: FileParameter | null | undefined, options?: { supportSkippedItemNumberLevelsInPositions?: boolean | undefined }): Promise<SwaggerResponse<FlatAvaProject>> {
4431
+ return this.rebConversionConvertToFlatAva(rebFile, options?.supportSkippedItemNumberLevelsInPositions);
4432
+ }
4433
+
4418
4434
  /**
4419
4435
  * Converts REB files to Dangl.AVA projects
4420
4436
  * @param rebFile (optional) The input file
4437
+ * @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
4438
+ item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
4439
+ levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
4440
+ displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
4441
+ effect on D11 files.
4421
4442
  */
4422
- rebConversionConvertToFlatAva(rebFile: FileParameter | null | undefined): Promise<SwaggerResponse<FlatAvaProject>> {
4423
- let url_ = this.baseUrl + "/conversion/reb/flat-ava";
4443
+ rebConversionConvertToFlatAva(rebFile: FileParameter | null | undefined, supportSkippedItemNumberLevelsInPositions?: boolean | undefined): Promise<SwaggerResponse<FlatAvaProject>> {
4444
+ let url_ = this.baseUrl + "/conversion/reb/flat-ava?";
4445
+ if (supportSkippedItemNumberLevelsInPositions === null)
4446
+ throw new globalThis.Error("The parameter 'supportSkippedItemNumberLevelsInPositions' cannot be null.");
4447
+ else if (supportSkippedItemNumberLevelsInPositions !== undefined)
4448
+ url_ += "SupportSkippedItemNumberLevelsInPositions=" + encodeURIComponent("" + supportSkippedItemNumberLevelsInPositions) + "&";
4424
4449
  url_ = url_.replace(/[?&]$/, "");
4425
4450
 
4426
4451
  const content_ = new FormData();
@@ -4473,8 +4498,8 @@ export class RebConversionApi {
4473
4498
  /**
4474
4499
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4475
4500
  */
4476
- rebConversionConvertToGaebWithRequestObject(rebFile: FileParameter | null | undefined, options?: { destinationGaebType?: DestinationGaebType | undefined, targetExchangePhaseTransform?: DestinationGaebExchangePhase | undefined, enforceStrictOfferPhaseLongTextOutput?: boolean | undefined, exportQuantityDetermination?: boolean | undefined, removeUnprintableCharactersFromTexts?: boolean | undefined, forceIncludeDescriptions?: boolean | undefined, treatNullItemNumberSchemaAsInvalid?: boolean | undefined }): Promise<SwaggerResponse<FileResponse>> {
4477
- return this.rebConversionConvertToGaeb(rebFile, options?.destinationGaebType, options?.targetExchangePhaseTransform, options?.enforceStrictOfferPhaseLongTextOutput, options?.exportQuantityDetermination, options?.removeUnprintableCharactersFromTexts, options?.forceIncludeDescriptions, options?.treatNullItemNumberSchemaAsInvalid);
4501
+ rebConversionConvertToGaebWithRequestObject(rebFile: FileParameter | null | undefined, options?: { 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>> {
4502
+ return this.rebConversionConvertToGaeb(rebFile, options?.destinationGaebType, options?.targetExchangePhaseTransform, options?.enforceStrictOfferPhaseLongTextOutput, options?.exportQuantityDetermination, options?.removeUnprintableCharactersFromTexts, options?.forceIncludeDescriptions, options?.treatNullItemNumberSchemaAsInvalid, options?.supportSkippedItemNumberLevelsInPositions);
4478
4503
  }
4479
4504
 
4480
4505
  /**
@@ -4507,8 +4532,13 @@ export class RebConversionApi {
4507
4532
  With this setting, you can also tell AVACloud to treat a null value as invalid. Otherwise, null schemas will simply be ignored
4508
4533
  and not lead to any schema being generated. It is recommended to enable this option, but it is disabled by default for compatibility
4509
4534
  reasons.
4535
+ * @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
4536
+ item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
4537
+ levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
4538
+ displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
4539
+ effect on D11 files.
4510
4540
  */
4511
- 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>> {
4541
+ 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>> {
4512
4542
  let url_ = this.baseUrl + "/conversion/reb/gaeb?";
4513
4543
  if (destinationGaebType === null)
4514
4544
  throw new globalThis.Error("The parameter 'destinationGaebType' cannot be null.");
@@ -4538,6 +4568,10 @@ export class RebConversionApi {
4538
4568
  throw new globalThis.Error("The parameter 'treatNullItemNumberSchemaAsInvalid' cannot be null.");
4539
4569
  else if (treatNullItemNumberSchemaAsInvalid !== undefined)
4540
4570
  url_ += "TreatNullItemNumberSchemaAsInvalid=" + encodeURIComponent("" + treatNullItemNumberSchemaAsInvalid) + "&";
4571
+ if (supportSkippedItemNumberLevelsInPositions === null)
4572
+ throw new globalThis.Error("The parameter 'supportSkippedItemNumberLevelsInPositions' cannot be null.");
4573
+ else if (supportSkippedItemNumberLevelsInPositions !== undefined)
4574
+ url_ += "SupportSkippedItemNumberLevelsInPositions=" + encodeURIComponent("" + supportSkippedItemNumberLevelsInPositions) + "&";
4541
4575
  url_ = url_.replace(/[?&]$/, "");
4542
4576
 
4543
4577
  const content_ = new FormData();
@@ -4594,8 +4628,8 @@ export class RebConversionApi {
4594
4628
  /**
4595
4629
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4596
4630
  */
4597
- rebConversionConvertToExcelWithRequestObject(rebFile: FileParameter | null | undefined, options?: { writePrices?: boolean | undefined, writeLongTexts?: boolean | undefined, conversionCulture?: string | null | undefined, includeArticleNumbers?: boolean | undefined, lockAllCellsButPrices?: boolean | undefined }): Promise<SwaggerResponse<FileResponse>> {
4598
- return this.rebConversionConvertToExcel(rebFile, options?.writePrices, options?.writeLongTexts, options?.conversionCulture, options?.includeArticleNumbers, options?.lockAllCellsButPrices);
4631
+ rebConversionConvertToExcelWithRequestObject(rebFile: FileParameter | null | undefined, options?: { writePrices?: boolean | undefined, writeLongTexts?: boolean | undefined, conversionCulture?: string | null | undefined, includeArticleNumbers?: boolean | undefined, lockAllCellsButPrices?: boolean | undefined, supportSkippedItemNumberLevelsInPositions?: boolean | undefined }): Promise<SwaggerResponse<FileResponse>> {
4632
+ return this.rebConversionConvertToExcel(rebFile, options?.writePrices, options?.writeLongTexts, options?.conversionCulture, options?.includeArticleNumbers, options?.lockAllCellsButPrices, options?.supportSkippedItemNumberLevelsInPositions);
4599
4633
  }
4600
4634
 
4601
4635
  /**
@@ -4610,8 +4644,13 @@ export class RebConversionApi {
4610
4644
  'position.commerceProperties.articleNumber'
4611
4645
  * @param lockAllCellsButPrices (optional) If this is enabled, then all cells except the unit price cells will
4612
4646
  be locked, so users can not accidentally modify other fields.
4647
+ * @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
4648
+ item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
4649
+ levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
4650
+ displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
4651
+ effect on D11 files.
4613
4652
  */
4614
- rebConversionConvertToExcel(rebFile: FileParameter | null | undefined, writePrices?: boolean | undefined, writeLongTexts?: boolean | undefined, conversionCulture?: string | null | undefined, includeArticleNumbers?: boolean | undefined, lockAllCellsButPrices?: boolean | undefined): Promise<SwaggerResponse<FileResponse>> {
4653
+ 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>> {
4615
4654
  let url_ = this.baseUrl + "/conversion/reb/excel?";
4616
4655
  if (writePrices === null)
4617
4656
  throw new globalThis.Error("The parameter 'writePrices' cannot be null.");
@@ -4631,6 +4670,10 @@ export class RebConversionApi {
4631
4670
  throw new globalThis.Error("The parameter 'lockAllCellsButPrices' cannot be null.");
4632
4671
  else if (lockAllCellsButPrices !== undefined)
4633
4672
  url_ += "LockAllCellsButPrices=" + encodeURIComponent("" + lockAllCellsButPrices) + "&";
4673
+ if (supportSkippedItemNumberLevelsInPositions === null)
4674
+ throw new globalThis.Error("The parameter 'supportSkippedItemNumberLevelsInPositions' cannot be null.");
4675
+ else if (supportSkippedItemNumberLevelsInPositions !== undefined)
4676
+ url_ += "SupportSkippedItemNumberLevelsInPositions=" + encodeURIComponent("" + supportSkippedItemNumberLevelsInPositions) + "&";
4634
4677
  url_ = url_.replace(/[?&]$/, "");
4635
4678
 
4636
4679
  const content_ = new FormData();
@@ -4687,8 +4730,8 @@ export class RebConversionApi {
4687
4730
  /**
4688
4731
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
4689
4732
  */
4690
- rebConversionConvertToOenormWithRequestObject(rebFile: FileParameter | null | undefined, options?: { destinationOenormType?: DestinationOenormType | undefined, tryRepairProjectStructure?: boolean | undefined, skipTryEnforceSchemaCompliantXmlOutput?: boolean | undefined, removeUnprintableCharactersFromTexts?: boolean | undefined }): Promise<SwaggerResponse<FileResponse>> {
4691
- return this.rebConversionConvertToOenorm(rebFile, options?.destinationOenormType, options?.tryRepairProjectStructure, options?.skipTryEnforceSchemaCompliantXmlOutput, options?.removeUnprintableCharactersFromTexts);
4733
+ rebConversionConvertToOenormWithRequestObject(rebFile: FileParameter | null | undefined, options?: { destinationOenormType?: DestinationOenormType | undefined, tryRepairProjectStructure?: boolean | undefined, skipTryEnforceSchemaCompliantXmlOutput?: boolean | undefined, removeUnprintableCharactersFromTexts?: boolean | undefined, supportSkippedItemNumberLevelsInPositions?: boolean | undefined }): Promise<SwaggerResponse<FileResponse>> {
4734
+ return this.rebConversionConvertToOenorm(rebFile, options?.destinationOenormType, options?.tryRepairProjectStructure, options?.skipTryEnforceSchemaCompliantXmlOutput, options?.removeUnprintableCharactersFromTexts, options?.supportSkippedItemNumberLevelsInPositions);
4692
4735
  }
4693
4736
 
4694
4737
  /**
@@ -4703,8 +4746,13 @@ export class RebConversionApi {
4703
4746
  * @param removeUnprintableCharactersFromTexts (optional) If this is enabled, unprintable characters are removed from text elements. Otherwise, the conversion
4704
4747
  might fail in case some text content contains characters that are not allowed in XML output formats.
4705
4748
  Defaults to true.
4749
+ * @param supportSkippedItemNumberLevelsInPositions (optional) Defaults to 'false'. This controls if, when deserializing REB files, skipped levels in position
4750
+ item numbers should be supported. For example, if an ItemNumberSchema defines three levels - two group
4751
+ levels and one position level - but the ItemNumber of the position is just '01.02', then it will be
4752
+ displayed as '01.__.02' if this is set to true. This is only applicable for X31 files and has no
4753
+ effect on D11 files.
4706
4754
  */
4707
- rebConversionConvertToOenorm(rebFile: FileParameter | null | undefined, destinationOenormType?: DestinationOenormType | undefined, tryRepairProjectStructure?: boolean | undefined, skipTryEnforceSchemaCompliantXmlOutput?: boolean | undefined, removeUnprintableCharactersFromTexts?: boolean | undefined): Promise<SwaggerResponse<FileResponse>> {
4755
+ rebConversionConvertToOenorm(rebFile: FileParameter | null | undefined, destinationOenormType?: DestinationOenormType | undefined, tryRepairProjectStructure?: boolean | undefined, skipTryEnforceSchemaCompliantXmlOutput?: boolean | undefined, removeUnprintableCharactersFromTexts?: boolean | undefined, supportSkippedItemNumberLevelsInPositions?: boolean | undefined): Promise<SwaggerResponse<FileResponse>> {
4708
4756
  let url_ = this.baseUrl + "/conversion/reb/oenorm?";
4709
4757
  if (destinationOenormType === null)
4710
4758
  throw new globalThis.Error("The parameter 'destinationOenormType' cannot be null.");
@@ -4722,6 +4770,10 @@ export class RebConversionApi {
4722
4770
  throw new globalThis.Error("The parameter 'removeUnprintableCharactersFromTexts' cannot be null.");
4723
4771
  else if (removeUnprintableCharactersFromTexts !== undefined)
4724
4772
  url_ += "RemoveUnprintableCharactersFromTexts=" + encodeURIComponent("" + removeUnprintableCharactersFromTexts) + "&";
4773
+ if (supportSkippedItemNumberLevelsInPositions === null)
4774
+ throw new globalThis.Error("The parameter 'supportSkippedItemNumberLevelsInPositions' cannot be null.");
4775
+ else if (supportSkippedItemNumberLevelsInPositions !== undefined)
4776
+ url_ += "SupportSkippedItemNumberLevelsInPositions=" + encodeURIComponent("" + supportSkippedItemNumberLevelsInPositions) + "&";
4725
4777
  url_ = url_.replace(/[?&]$/, "");
4726
4778
 
4727
4779
  const content_ = new FormData();
@@ -11253,6 +11305,7 @@ export enum DestinationRebType {
11253
11305
  D11 = "D11",
11254
11306
  X31GaebXmlV32 = "X31GaebXmlV32",
11255
11307
  X31GaebXmlV33 = "X31GaebXmlV33",
11308
+ X31GaebXmlV34 = "X31GaebXmlV34",
11256
11309
  }
11257
11310
 
11258
11311
  /** Represents valid SIA destination types */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dangl/avacloud-client-node",
3
- "version": "1.65.0-avacloud-preview",
3
+ "version": "1.65.1-avacloud-preview",
4
4
  "description": "AVACloud client",
5
5
  "author": "Dangl IT GmbH",
6
6
  "main": "api.js",