@veloceapps/sdk 11.0.0-3 → 11.0.0-5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1354,9 +1354,11 @@ class ProductComponent {
1354
1354
  quoteDraft$ = of(undefined);
1355
1355
  }
1356
1356
  return quoteDraft$.pipe(first(), switchMap(quote => {
1357
- var _a, _b;
1357
+ var _a, _b, _c, _d;
1358
1358
  const contextProperties = this.contextService.resolve().properties;
1359
1359
  const productId = (_a = contextProperties.productId) !== null && _a !== void 0 ? _a : (_b = this.flowInfoService.flow) === null || _b === void 0 ? void 0 : _b.properties.queryParams['productId'];
1360
+ const defaultUIDefinitionId = (_c = this.flowInfoService.flow) === null || _c === void 0 ? void 0 : _c.properties.queryParams['defaultUIDefinitionId'];
1361
+ const requiredUIDefinitionId = (_d = this.flowInfoService.flow) === null || _d === void 0 ? void 0 : _d.properties.queryParams['requiredUIDefinitionId'];
1360
1362
  if (!productId) {
1361
1363
  throw new Error(`Unable to start configuration for 'productId == null'`);
1362
1364
  }
@@ -1369,7 +1371,12 @@ class ProductComponent {
1369
1371
  this.configurationService.setConfigurableRamp(lineItem);
1370
1372
  }
1371
1373
  const { offeringId } = lineItem !== null && lineItem !== void 0 ? lineItem : {};
1372
- return this.configurationRuntimeService.init({ productId, offeringId });
1374
+ return this.configurationRuntimeService.init({
1375
+ productId,
1376
+ offeringId,
1377
+ defaultUIDefinitionId,
1378
+ requiredUIDefinitionId,
1379
+ });
1373
1380
  }), switchMap(() => this.customizeUI$()), tap(() => {
1374
1381
  var _a, _b;
1375
1382
  const uiDefinition = (_b = (_a = this.configurationRuntimeService.runtimeContext) === null || _a === void 0 ? void 0 : _a.uiDefinitionContainer) === null || _b === void 0 ? void 0 : _b.source;