@colijnit/product 262.1.9 → 262.1.10

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/index.d.ts CHANGED
@@ -22,7 +22,7 @@ import * as i17 from '@colijnit/configurator';
22
22
  import { ConfiguratorConnectorService, ConfiguratorEventService, ConfiguringService, ConfigurationResultObject } from '@colijnit/configurator';
23
23
  import * as i2 from '@angular/common';
24
24
  import { SafeHtml, DomSanitizer, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
25
- import { ExternalSource } from '@colijnit/articleapi/build/model/external-source.bo';
25
+ import { ExternalSourceInfo } from '@colijnit/articleapi/build/model/external-source-info.bo';
26
26
  import * as i3 from '@colijnit/corecomponents_v12';
27
27
  import * as i4 from '@angular/cdk/overlay';
28
28
  import * as i5 from '@colijnit/sharedcomponents';
@@ -40,7 +40,7 @@ declare class Version {
40
40
 
41
41
  declare class ProductEventService {
42
42
  onAddToCart: Subject<{
43
- article: string | ArticleListObjectExtended;
43
+ article: string | ArticleFullObject;
44
44
  quantity: number;
45
45
  }>;
46
46
  onAlternativeClick: Subject<ArticleListObject>;
@@ -90,7 +90,6 @@ declare class ProductConnectorAdapterService implements OnDestroy {
90
90
  getDocumentContent(docId: number, thumbnail?: boolean): Promise<DocumentContent>;
91
91
  addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
92
92
  getImageForCoDocument(document: CoDocument, thumb: boolean): Promise<ImageContent>;
93
- savePreset(): Promise<boolean>;
94
93
  getDefaultLanguage(upId: number): Promise<string>;
95
94
  storeConfiguratorPreset(): Promise<DataServiceResponseData>;
96
95
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConnectorAdapterService, never>;
@@ -208,13 +207,15 @@ declare class ProductConnectorService implements OnDestroy {
208
207
  getArtStockStatus(goodId: number): Promise<number>;
209
208
  getDeliveryDate2(goodId: number): Promise<DeliveryPrognosis>;
210
209
  getSuperArticle(id: string): Promise<SuperArticle>;
210
+ prepareArticleForCart(article: ArticleFullObject, quantity: number, externalSource: boolean, createFrozenArticle?: boolean): Promise<ArticleFullObject | string>;
211
211
  getJsonArticleFlatTree(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
212
212
  getGeneratedArtDirectly(goodId: number, showLoader?: boolean): Promise<number>;
213
213
  addWebSessionTransactionLine(transactionUuid: string, sku: string, quantity: number): Promise<string>;
214
214
  getImageForCoDocument(document: CoDocument, thumb?: boolean): Promise<ImageContent>;
215
- savePreset(): Promise<boolean>;
216
215
  getDefaultLanguage(upId: number): Promise<string>;
217
216
  onShowLoaderChange(showLoader: boolean): void;
217
+ getJSONFromArticleObject(goodId: number, goodType: string, quantity: number, externalSource: boolean): Promise<string>;
218
+ private _handleGeneratedArticleDirectly;
218
219
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductConnectorService, never>;
219
220
  static ɵprov: i0.ɵɵInjectableDeclaration<ProductConnectorService>;
220
221
  }
@@ -347,7 +348,7 @@ declare class ProductPageComponent implements OnInit, OnDestroy {
347
348
  set sku(value: string);
348
349
  get sku(): string;
349
350
  set settings(value: any);
350
- externalSource: ExternalSource;
351
+ externalSource: ExternalSourceInfo;
351
352
  createFrozenArticle: boolean;
352
353
  isReturn: boolean;
353
354
  enableRenderCarousel: boolean;
@@ -571,7 +572,7 @@ declare class ProductAddtocartComponent implements OnInit, OnDestroy {
571
572
  readonly icon: typeof IconEnum;
572
573
  addToCartButton: ElementRef;
573
574
  article: ArticleFullObject;
574
- externalSource: ExternalSource;
575
+ externalSource: ExternalSourceInfo;
575
576
  createFrozenArticle: boolean;
576
577
  configurable: boolean;
577
578
  configuring: boolean;
@@ -591,9 +592,6 @@ declare class ProductAddtocartComponent implements OnInit, OnDestroy {
591
592
  ngOnDestroy(): void;
592
593
  handleAddToCartClick(quantity: number): Promise<void>;
593
594
  handleAddToQuoteClick(quantity: number): Promise<void>;
594
- private _getJSONFromArticleObject;
595
- private _handleGeneratedArticleDirectly;
596
- private _getGeneratedArtDirectly;
597
595
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductAddtocartComponent, never>;
598
596
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductAddtocartComponent, "app-product-addtocart", never, { "article": { "alias": "article"; "required": false; }; "externalSource": { "alias": "externalSource"; "required": false; }; "createFrozenArticle": { "alias": "createFrozenArticle"; "required": false; }; "configurable": { "alias": "configurable"; "required": false; }; "configuring": { "alias": "configuring"; "required": false; }; "showAddToCart": { "alias": "showAddToCart"; "required": false; }; "isReturn": { "alias": "isReturn"; "required": false; }; "fullscreen": { "alias": "fullscreen"; "required": false; }; "quantity": { "alias": "quantity"; "required": false; }; }, { "startConfiguration": "startConfiguration"; "addToCartClick": "addToCartClick"; "addToQuoteClick": "addToQuoteClick"; "showRelatedPopup": "showRelatedPopup"; }, never, never, false, never>;
599
597
  }
@@ -610,22 +608,22 @@ declare class ArticleViewModel {
610
608
  constructor(article: ArticleListObject, imageData?: string);
611
609
  }
612
610
  declare class ProductRelatedComponent {
613
- private _iOne;
611
+ private _productConnectorService;
614
612
  private _appEventService;
615
613
  private _productConnectorAdapterService;
616
614
  private _settingsService;
617
615
  refType: number;
618
616
  label: string;
619
- externalSource: ExternalSource;
617
+ externalSource: ExternalSourceInfo;
620
618
  isSmallModus: boolean;
621
619
  createFrozenArticle: boolean;
622
620
  set articles(value: ArticleListObject[]);
623
621
  get articles(): ArticleListObject[];
624
622
  articleViewModels: ArticleViewModel[];
625
623
  private _articles;
626
- constructor(_iOne: ProductConnectorService, _appEventService: ProductEventService, _productConnectorAdapterService: ProductConnectorAdapterService, _settingsService: ProductSettingsService);
624
+ constructor(_productConnectorService: ProductConnectorService, _appEventService: ProductEventService, _productConnectorAdapterService: ProductConnectorAdapterService, _settingsService: ProductSettingsService);
627
625
  handleContentClick(article: ArticleListObject): void;
628
- handleAddToCartClick(article: ArticleListObject): Promise<void>;
626
+ handleAddToCartClick(articleListObject: ArticleListObject): Promise<void>;
629
627
  handleConfigureButtonClick(article: ArticleListObject): void;
630
628
  handleThreeDButtonClick(article: ArticleListObject): void;
631
629
  private _getJSONFromArticleObject;
@@ -924,8 +922,8 @@ declare class ProductExternalSourceComponent implements OnInit, OnDestroy {
924
922
  sku: string;
925
923
  catalogDefinition: CatalogDefinition;
926
924
  ownSettings: any;
927
- set externalSource(value: ExternalSource);
928
- get externalSource(): ExternalSource;
925
+ set externalSource(value: ExternalSourceInfo);
926
+ get externalSource(): ExternalSourceInfo;
929
927
  set externalCatalogStartupInfo(value: ExternalCatalogStartupInfo);
930
928
  get externalCatalogStartupInfo(): ExternalCatalogStartupInfo;
931
929
  options: {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/product",
3
- "version": "262.1.9",
3
+ "version": "262.1.10",
4
4
  "description": "Product detail page project for iOne",
5
5
  "private": false,
6
6
  "peerDependencies": {