@posiwise/shared-components 0.0.22 → 0.0.23

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.
@@ -15,10 +15,9 @@ import { DirectivesModule } from '@posiwise/directives';
15
15
  import { CoreTranslocoModule } from '@posiwise/core-transloco';
16
16
  import * as i3 from '@posiwise/shared-public-components';
17
17
  import { SharedPublicComponentsModule } from '@posiwise/shared-public-components';
18
- import { MICRO_SERVICE, AB_TEST_ACTIONS, MAX_TIMEOUT_FOR_AUTO_CLOSE_LOADER } from '@posiwise/common-utilities';
18
+ import { AB_TEST_ACTIONS, MAX_TIMEOUT_FOR_AUTO_CLOSE_LOADER } from '@posiwise/common-utilities';
19
19
  import * as i1 from '@posiwise/common-services';
20
- import { MainApiHttpService, PermissionService } from '@posiwise/common-services';
21
- import { ProductsHttpService } from '@posiwise/shared-product-services';
20
+ import { PermissionService } from '@posiwise/common-services';
22
21
  import { StatusCodes } from 'http-status-codes';
23
22
  import { AppBaseComponent } from '@posiwise/app-base-component';
24
23
  import * as i5 from '@ngneat/transloco';
@@ -30,11 +29,6 @@ import * as i2$3 from 'primeng/tooltip';
30
29
  import * as i1$4 from '@posiwise/admin-module-utils';
31
30
  import * as i1$5 from '@posiwise/app-config-service';
32
31
 
33
- const MICRO_SERVICE_MAPPING = {
34
- [MICRO_SERVICE.CORE]: MainApiHttpService,
35
- [MICRO_SERVICE.PRODUCT]: ProductsHttpService
36
- };
37
-
38
32
  class AbTestContainerComponent {
39
33
  constructor(service) {
40
34
  this.service = service;
@@ -48,7 +42,7 @@ class AbTestContainerComponent {
48
42
  }
49
43
  getExperiment() {
50
44
  this.service
51
- .getExperiment(this.experimentName, AB_TEST_ACTIONS.START, this.serviceName, MICRO_SERVICE_MAPPING)
45
+ .getExperiment(this.experimentName, AB_TEST_ACTIONS.START, this.serviceInput)
52
46
  .subscribe({
53
47
  next: (response) => {
54
48
  this.showDefaultExperiment = false;
@@ -62,7 +56,7 @@ class AbTestContainerComponent {
62
56
  }
63
57
  }
64
58
  AbTestContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: AbTestContainerComponent, deps: [{ token: i1.AbTestService }], target: i0.ɵɵFactoryTarget.Component });
65
- AbTestContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: AbTestContainerComponent, selector: "pw-ab-test-container", inputs: { experimentName: "experimentName", serviceName: "serviceName" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
59
+ AbTestContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: AbTestContainerComponent, selector: "pw-ab-test-container", inputs: { experimentName: "experimentName", serviceInput: "serviceInput" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
66
60
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: AbTestContainerComponent, decorators: [{
67
61
  type: Component,
68
62
  args: [{
@@ -72,7 +66,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImpor
72
66
  }]
73
67
  }], ctorParameters: function () { return [{ type: i1.AbTestService }]; }, propDecorators: { experimentName: [{
74
68
  type: Input
75
- }], serviceName: [{
69
+ }], serviceInput: [{
76
70
  type: Input
77
71
  }] } });
78
72