@colijnit/inphoto 300.1.6 → 300.1.7

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.
@@ -3,7 +3,7 @@ import { Injectable, Pipe, NgModule, signal, EventEmitter, HostBinding, ViewEnca
3
3
  import * as i2 from '@colijnit/corecomponents_v12';
4
4
  import { ButtonModule, IconModule, AppendPipeModule, InputTextModule, CoreComponentsTranslationModule, InputTextareaModule, ListOfValuesModule, InputCheckboxModule, LoaderModule } from '@colijnit/corecomponents_v12';
5
5
  import * as i6 from '@colijnit/catalog';
6
- import { CatalogService, CatalogSearchModule, CatalogExternalSourcesModule, CatalogExternalSourceModule } from '@colijnit/catalog';
6
+ import { CatalogSearchModule, CatalogExternalSourcesModule, CatalogExternalSourceModule } from '@colijnit/catalog';
7
7
  import { StringUtils } from '@colijnit/ioneconnector/build/utils/string-utils';
8
8
  import { LanguageCode } from '@colijnit/ioneconnector/build/enum/language-code.enum';
9
9
  import { ExternalCatalogStartupInfo } from '@colijnit/articleapi/build/model/external-catalog-startup-info';
@@ -207,8 +207,6 @@ class ArticleConfiguration {
207
207
  sku;
208
208
  instanceId; // when reconfiguring
209
209
  externalSourceId; // undefined when own catalog
210
- externalSourceUserName; // undefined when own catalog
211
- externalSourcePassword; // undefined when own catalog
212
210
  externalSourceSchema; // undefined when own catalog
213
211
  externalSourceUrl; // undefined when own catalog
214
212
  configurationResult;
@@ -334,6 +332,9 @@ class Settings extends Options {
334
332
  options = new SettingOptions();
335
333
  catalogParameters;
336
334
  infoPublicationCode = 64;
335
+ mainUrl;
336
+ mainSchema;
337
+ mainVersion;
337
338
  }
338
339
 
339
340
  // TODO this is just for creating MOCK DATA and made Chad Geepeethee
@@ -595,8 +596,6 @@ class InPhotoConnectorAdapterService {
595
596
  loginResponse;
596
597
  _catalogDefinitions;
597
598
  _externalSources = [];
598
- _catalogDefinitionsOriginal;
599
- _externalSourcesOriginal = [];
600
599
  _connector;
601
600
  _articleApi;
602
601
  _mainApi;
@@ -648,17 +647,6 @@ class InPhotoConnectorAdapterService {
648
647
  if (externalSourceId !== null) {
649
648
  // make sure to set this.externalSource = undefined to get the data of the HOST and not the previous external source
650
649
  this.externalSource = undefined;
651
- const externalSourceData = this.getExternalSourceFromId(externalSourceId);
652
- if (externalSourceData) {
653
- if (externalSourceData.password !== undefined && externalSourceData.username !== undefined) {
654
- options.password = externalSourceData.password;
655
- options.username = externalSourceData.username;
656
- options.useLoginEncryption = true;
657
- }
658
- }
659
- else {
660
- console.error(`External source with id ${externalSourceId} not found!`);
661
- }
662
650
  }
663
651
  const externalMainApi = new MainApi(options);
664
652
  const loginResponse = await externalMainApi.connect(this.mainUrl, this.mainSchema, this.mainVersion).catch(e => {
@@ -736,7 +724,7 @@ class InPhotoConnectorAdapterService {
736
724
  if (!externalSourceId) {
737
725
  return null;
738
726
  }
739
- const response = await this.articleApi.getExternalSource(externalSourceId);
727
+ const response = await this.articleApi.getExternalSourceInfo(externalSourceId);
740
728
  if (response && response.validationResult && response.validationResult.success) {
741
729
  if (response.resultObject) {
742
730
  return this._boFactory.makeWithRawBackendData(ExternalSource, response.resultObject);
@@ -813,7 +801,8 @@ class InPhotoConnectorAdapterService {
813
801
  }
814
802
  async processEmptyRoom(canvasImage) {
815
803
  const data = {
816
- image: canvasImage
804
+ image: canvasImage,
805
+ skip_inpainting: true
817
806
  };
818
807
  const response = await this.connector.emptyRoom(data, true);
819
808
  if (response.resultObject && response.resultObject.response && response.resultObject.response.image) {
@@ -2430,7 +2419,6 @@ class InphotoCatalogComponent {
2430
2419
  articleConfiguration.externalSourceId = catalogInfo.externalSource.sourceId;
2431
2420
  articleConfiguration.externalSourceSchema = catalogInfo.externalSource.schema;
2432
2421
  articleConfiguration.externalSourceUrl = catalogInfo.externalSource.url;
2433
- articleConfiguration.externalSourceSchema = catalogInfo.externalSource.schema;
2434
2422
  this.appEventService.addArticleToScene.next(articleConfiguration);
2435
2423
  }
2436
2424
  }
@@ -2482,9 +2470,7 @@ class InphotoCatalogComponent {
2482
2470
  return request;
2483
2471
  }
2484
2472
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InphotoCatalogComponent, deps: [{ token: InphotoIconCacheService }, { token: InphotoSettingsService }, { token: InphotoEventService }, { token: InPhotoConnectorService }, { token: ModelConfigurationService }, { token: i6.CatalogService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
2485
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InphotoCatalogComponent, isStandalone: false, selector: "co-inphoto-catalog", host: { properties: { "class.co-catalog": "this.showClass" } }, providers: [
2486
- CatalogService
2487
- ], ngImport: i0, template: `
2473
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InphotoCatalogComponent, isStandalone: false, selector: "co-inphoto-catalog", host: { properties: { "class.co-catalog": "this.showClass" } }, ngImport: i0, template: `
2488
2474
  @if (showCatalogDialog) {
2489
2475
  <div class="catalog-dialog">
2490
2476
  <div class="catalog-container">
@@ -2640,10 +2626,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
2640
2626
  }
2641
2627
  `,
2642
2628
  encapsulation: ViewEncapsulation.None,
2643
- standalone: false,
2644
- providers: [
2645
- CatalogService
2646
- ]
2629
+ standalone: false
2647
2630
  }]
2648
2631
  }], ctorParameters: () => [{ type: InphotoIconCacheService }, { type: InphotoSettingsService }, { type: InphotoEventService }, { type: InPhotoConnectorService }, { type: ModelConfigurationService }, { type: i6.CatalogService }, { type: i0.ChangeDetectorRef }], propDecorators: { showClass: [{
2649
2632
  type: HostBinding,
@@ -7492,12 +7475,21 @@ class InphotoThreedSceneComponent {
7492
7475
  _prepareSettings(item) {
7493
7476
  const configuratorSettings = this._settingsService.settings;
7494
7477
  const configuratorSettingsClone = Object.assign({}, configuratorSettings);
7478
+ configuratorSettingsClone.schema = configuratorSettings.schema;
7479
+ configuratorSettingsClone.url = configuratorSettings.url;
7480
+ configuratorSettingsClone.mainUrl = configuratorSettings.url;
7481
+ configuratorSettingsClone.mainSchema = configuratorSettings.schema;
7482
+ configuratorSettingsClone.mainVersion = configuratorSettings.version;
7483
+ configuratorSettingsClone.externalSourceId = undefined;
7495
7484
  if (item.externalSourceId) {
7496
7485
  configuratorSettingsClone.externalSourceId = item.externalSourceId;
7497
- configuratorSettingsClone.username = item.externalSourceUserName;
7498
- configuratorSettingsClone.password = item.externalSourcePassword;
7499
7486
  configuratorSettingsClone.schema = item.externalSourceSchema;
7500
7487
  configuratorSettingsClone.url = item.externalSourceUrl;
7488
+ configuratorSettingsClone.username = undefined;
7489
+ configuratorSettingsClone.password = undefined;
7490
+ configuratorSettingsClone.dataSessionId = undefined;
7491
+ configuratorSettingsClone.sessionId = undefined;
7492
+ configuratorSettingsClone.getAccessTokenFunction = undefined;
7501
7493
  }
7502
7494
  return configuratorSettingsClone;
7503
7495
  }
@@ -7562,11 +7554,11 @@ class InphotoThreedSceneComponent {
7562
7554
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InphotoThreedSceneComponent, deps: [{ token: InphotoIconCacheService }, { token: InphotoInteractionService }, { token: InphotoSceneService }, { token: InphotoItemService }, { token: InphotoEventService }, { token: InphotoSettingsService }, { token: i7.ConfiguringService }, { token: i7.ConfiguratorEventService }, { token: InphotoHudService }], target: i0.ɵɵFactoryTarget.Component });
7563
7555
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InphotoThreedSceneComponent, isStandalone: false, selector: "co-inphoto-threed-scene", inputs: { room: "room" }, outputs: { startAiDecoration: "startAiDecoration", openCatalog: "openCatalog", closeClick: "closeClick" }, host: { properties: { "class.co-inphoto-threed-scene": "this.showClass" } }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, static: true }], ngImport: i0, template: `
7564
7556
  <div class="threed-container">
7565
-
7557
+
7566
7558
  <div class="scene-container">
7567
7559
  <div #container class="three-container"></div>
7568
7560
  </div>
7569
-
7561
+
7570
7562
  <div class="threed-sidepanel">
7571
7563
  <co-side-panel
7572
7564
  [headerClass]="'image-process-complete-dialog-header'"
@@ -7592,7 +7584,7 @@ class InphotoThreedSceneComponent {
7592
7584
  ></co-step-tile>
7593
7585
  </co-side-panel>
7594
7586
  </div>
7595
-
7587
+
7596
7588
  </div>
7597
7589
  <co-configurator
7598
7590
  class="floating"
@@ -7627,11 +7619,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7627
7619
  selector: 'co-inphoto-threed-scene',
7628
7620
  template: `
7629
7621
  <div class="threed-container">
7630
-
7622
+
7631
7623
  <div class="scene-container">
7632
7624
  <div #container class="three-container"></div>
7633
7625
  </div>
7634
-
7626
+
7635
7627
  <div class="threed-sidepanel">
7636
7628
  <co-side-panel
7637
7629
  [headerClass]="'image-process-complete-dialog-header'"
@@ -7657,7 +7649,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7657
7649
  ></co-step-tile>
7658
7650
  </co-side-panel>
7659
7651
  </div>
7660
-
7652
+
7661
7653
  </div>
7662
7654
  <co-configurator
7663
7655
  class="floating"