@colijnit/homedecorator 262.1.4 → 262.1.5

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
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnDestroy, OnInit, TemplateRef, ChangeDetectorRef, PipeTransform, ElementRef, AfterViewInit, EventEmitter, OnChanges, SimpleChanges, Injector } from '@angular/core';
2
+ import { OnDestroy, OnInit, TemplateRef, ChangeDetectorRef, Injector, PipeTransform, ElementRef, AfterViewInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import * as i7 from '@angular/material/icon';
4
4
  import { MatIconRegistry } from '@angular/material/icon';
5
5
  import { SafeHtml, EventManager, DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
@@ -31,10 +31,10 @@ import { ExternalSource } from '@colijnit/articleapi/build/model/external-source
31
31
  import { ArticleFullObject } from '@colijnit/articleapi/build/model/article-full-object';
32
32
  import { ArticleCategory } from '@colijnit/configuratorapi/build/model/article-category';
33
33
  import { ArticleFlat } from '@colijnit/articleapi/build/model/article-flat.bo';
34
- import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
35
34
  import { ExternalSourceArticleAddInterface } from '@colijnit/articleapi/build/interface/external-source-article-add.interface';
36
35
  import { CoDomainValue } from '@colijnit/mainapi/build/model/co-domain-value.bo';
37
36
  import { ObjectConfiguration } from '@colijnit/ioneconnector/build/model/object-configuration';
37
+ import { ArticleExtended } from '@colijnit/articleapi/build/model/article-extended.bo';
38
38
  import { SelectorStructure } from '@colijnit/configuratorapi/build/model/selector-structure.bo';
39
39
  import * as i7$2 from '@colijnit/catalog';
40
40
  import { CatalogExternalSourcesService, FilterOrder, CatalogService, ExternalSourceViewmodel } from '@colijnit/catalog';
@@ -704,7 +704,7 @@ declare class HomedecoratorAppEventService {
704
704
  hideOutline: Subject<void>;
705
705
  objectMovingOrRotating: Subject<void>;
706
706
  addToCart: Subject<{
707
- article: string | ArticleExtended;
707
+ article: string | ArticleFullObject;
708
708
  quantity: number;
709
709
  }>;
710
710
  addExternalSourceToCart: Subject<ExternalSourceArticleAddInterface>;
@@ -773,6 +773,7 @@ declare class HomedecoratorConnectorAdapterService implements OnDestroy {
773
773
  getDecosAsync(): Promise<DecoNode[]>;
774
774
  getAnswerPrices(): Promise<AnswerPrice[]>;
775
775
  getJsonConfiguredArticles(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<string>;
776
+ prepareArticleForCart(goodId: number, quantity?: number, shouldGetArticleTree?: boolean, showLoader?: boolean, instanceId?: string): Promise<ArticleFullObject | string>;
776
777
  setInstanceToConfigure(id: string): Promise<DataServiceResponseData>;
777
778
  selectAnswer(answer: Answer, userInput?: string): Promise<DataServiceResponseData>;
778
779
  cancelAnswer(getAnswersAndQuestion?: boolean): Promise<DataServiceResponseData>;
@@ -1229,7 +1230,7 @@ declare class HomedecoratorConnectorService implements OnDestroy {
1229
1230
  getInternalParameter(param: InternalParam): Promise<string>;
1230
1231
  getDefaultLanguage(upId: number): Promise<string>;
1231
1232
  googleTranslateEnabled(): Promise<boolean>;
1232
- getJsonConfiguredArticles(goodId: number, goodType: string, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string, configuratorStatistics?: ConfiguratorStatisticsEnvironment): Promise<any>;
1233
+ prepareArticleForCart(goodId: number, quantity: number, externalSource?: boolean, showLoader?: boolean, instanceId?: string): Promise<ArticleFullObject | string>;
1233
1234
  setInstance(id: string): Promise<DataServiceResponseData>;
1234
1235
  copyInstanceAndSaveOriginalConfiguration(instanceId: string, result: CustomFloorGroupResult): Promise<string>;
1235
1236
  copyInstanceAndLoseOriginalConfiguration(instanceId: string, result: CustomFloorGroupResult): Promise<string>;
@@ -1261,7 +1262,7 @@ declare class HomedecoratorConnectorService implements OnDestroy {
1261
1262
  private _isAllSelectionPublished;
1262
1263
  private _isAnswerPublished;
1263
1264
  private _preloadCachedImages;
1264
- addToCart(goodId: number, goodType: string, quantity: number, instanceId: string, externalSource: boolean): Promise<string>;
1265
+ addToCart(goodId: number, goodType: string, quantity: number, instanceId: string, externalSource: boolean): Promise<ArticleFullObject | string>;
1265
1266
  handleAnswersReceived(): void;
1266
1267
  getGoogleTranslation(sourceLang: string, targetLang: string, list: string[]): Promise<string>;
1267
1268
  getExternalSourceFromId(externalSourceId: number): ExternalSource;
@@ -2960,6 +2961,7 @@ declare class HomedecoratorComponent implements OnInit, OnDestroy {
2960
2961
  private _sceneService;
2961
2962
  private _webWorkerService;
2962
2963
  private _configurationPresetLoadService;
2964
+ private _injector;
2963
2965
  generalFilterOrders: FilterOrder[];
2964
2966
  purchaseFilterOrders: FilterOrder[];
2965
2967
  logisticsFilterOrders: FilterOrder[];
@@ -2982,7 +2984,7 @@ declare class HomedecoratorComponent implements OnInit, OnDestroy {
2982
2984
  private _settings;
2983
2985
  private _eventService;
2984
2986
  constructor(appService: HomedecoratorAppService, // don't remove this, needs to be created on a high level
2985
- controllerService: HomedecoratorConnectorService, appState: AppStateService, presetsService: PresetsService, screenAnalysis: ScreenSizeAnalysisService, _iconRegistry: MatIconRegistry, _domSanitizer: DomSanitizer, _messageService: MessageBusService, _homedecoratorService: HomedecoratorService, _parentEventService: HomedecoratorAppEventService, _ownEventService: HomedecoratorAppEventService, _integrationService: IntegrationService, _sceneService: SceneService, _webWorkerService: WebWorkerService, _configurationPresetLoadService: ConfigurationPresetLoadService);
2987
+ controllerService: HomedecoratorConnectorService, appState: AppStateService, presetsService: PresetsService, screenAnalysis: ScreenSizeAnalysisService, _iconRegistry: MatIconRegistry, _domSanitizer: DomSanitizer, _messageService: MessageBusService, _homedecoratorService: HomedecoratorService, _parentEventService: HomedecoratorAppEventService, _ownEventService: HomedecoratorAppEventService, _integrationService: IntegrationService, _sceneService: SceneService, _webWorkerService: WebWorkerService, _configurationPresetLoadService: ConfigurationPresetLoadService, _injector: Injector);
2986
2988
  ngOnInit(): Promise<void>;
2987
2989
  ngOnDestroy(): void;
2988
2990
  registerCustomIcons(): void;
@@ -2994,7 +2996,7 @@ declare class HomedecoratorComponent implements OnInit, OnDestroy {
2994
2996
  private _startWithPreset;
2995
2997
  private _setCommunication;
2996
2998
  private _initConnection;
2997
- static ɵfac: i0.ɵɵFactoryDeclaration<HomedecoratorComponent, [null, null, null, null, null, null, null, null, null, { optional: true; skipSelf: true; }, { optional: true; self: true; }, null, null, null, null]>;
2999
+ static ɵfac: i0.ɵɵFactoryDeclaration<HomedecoratorComponent, [null, null, null, null, null, null, null, null, null, { optional: true; skipSelf: true; }, { optional: true; self: true; }, null, null, null, null, null]>;
2998
3000
  static ɵcmp: i0.ɵɵComponentDeclaration<HomedecoratorComponent, "co-homedecorator", never, { "generalFilterOrders": { "alias": "generalFilterOrders"; "required": false; }; "purchaseFilterOrders": { "alias": "purchaseFilterOrders"; "required": false; }; "logisticsFilterOrders": { "alias": "logisticsFilterOrders"; "required": false; }; "initCommunication": { "alias": "initCommunication"; "required": false; }; "projectToLoad": { "alias": "projectToLoad"; "required": false; }; "shareButton": { "alias": "shareButton"; "required": false; }; "loadWithConfigurationPreset": { "alias": "loadWithConfigurationPreset"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, false, never>;
2999
3001
  }
3000
3002
 
@@ -6213,7 +6215,7 @@ declare class RenderService implements OnDestroy {
6213
6215
  private _appEventService;
6214
6216
  private _dictionaryService;
6215
6217
  renderImageChanged: BehaviorSubject<string>;
6216
- renderImageError: BehaviorSubject<string>;
6218
+ renderImageError: Subject<string>;
6217
6219
  blenderRenderStarted: Subject<boolean>;
6218
6220
  renderUpdateImageChanged: BehaviorSubject<{
6219
6221
  image: string;
@@ -9402,8 +9404,6 @@ declare class DialogModule {
9402
9404
  }
9403
9405
 
9404
9406
  declare class HomedecoratorModule {
9405
- private _injector;
9406
- constructor(_injector: Injector);
9407
9407
  static ɵfac: i0.ɵɵFactoryDeclaration<HomedecoratorModule, never>;
9408
9408
  static ɵmod: i0.ɵɵNgModuleDeclaration<HomedecoratorModule, [typeof HomedecoratorComponent], [typeof i3.CommonModule, typeof ProgressBarModule, typeof LoadingOverlayModule, typeof HdLoaderModule, typeof ExportDialogModule, typeof InfoDialogModule, typeof PluginsModule, typeof DialogModule, typeof i10$2.A11yModule, typeof i25.ProductConfiguratorModule, typeof i6.CoreComponentsTranslationModule, typeof i25.LiteSelectorModule], [typeof HomedecoratorComponent]>;
9409
9409
  static ɵinj: i0.ɵɵInjectorDeclaration<HomedecoratorModule>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/homedecorator",
3
- "version": "262.1.4",
3
+ "version": "262.1.5",
4
4
  "description": "Homedecorator application based on 262 version of iOne backend",
5
5
  "repository": "npm/npm",
6
6
  "author": "Colijn IT",
@@ -10,7 +10,7 @@
10
10
  "@angular/common": ">=20.0.0",
11
11
  "@angular/core": ">=20.0.0",
12
12
  "@colijnit/catalog": ">=262.1.0",
13
- "@colijnit/articleapi": ">=262.1.0",
13
+ "@colijnit/articleapi": ">=262.1.4",
14
14
  "@colijnit/configurator": ">=262.1.0",
15
15
  "@colijnit/configuratorapi": ">=262.1.0",
16
16
  "@colijnit/corecomponents_v12": ">=262.1.0",