monkey-front-core 0.0.43 → 0.0.47

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.
@@ -1401,8 +1401,6 @@ function MonkeyEcxCoreService(params) {
1401
1401
  const method = propertyDescriptor.value;
1402
1402
  propertyDescriptor.value = function (...args) {
1403
1403
  const context = this;
1404
- console.log('context');
1405
- console.log(context);
1406
1404
  if (hasMonkeyEcxServiceAndHandlingProperties(context)) {
1407
1405
  context?.monkeyecxService?.monkeyecxHandlingService?.clearAll();
1408
1406
  context?.monkeyecxService?.monkeyecxHandlingService?.setMonkeyEcxServiceCredentials(params);
@@ -1427,7 +1425,7 @@ function MonkeyEcxCoreServicePaged(params) {
1427
1425
  context?.monkeyecxService?.monkeyecxHandlingService?.clearAll();
1428
1426
  context?.monkeyecxService?.monkeyecxHandlingService?.setMonkeyEcxServiceCredentials({
1429
1427
  ...params,
1430
- ...(requestPaged || null)
1428
+ ...(requestPaged || null),
1431
1429
  });
1432
1430
  }
1433
1431
  const result = method.apply(context, args);
@@ -1448,7 +1446,7 @@ function MonkeyEcxCoreServiceQueue(name, description, params) {
1448
1446
  }
1449
1447
  context?.monkeyecxService.monkeyecxHandlingService.setMonkeyEcxRequestQueue(buildQueuePropertys({
1450
1448
  name,
1451
- description
1449
+ description,
1452
1450
  }));
1453
1451
  }
1454
1452
  const result = method.apply(context, args);
@@ -2504,18 +2502,16 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2504
2502
  this.configBoostrapSubject$ = new BehaviorSubject({});
2505
2503
  }
2506
2504
  internalValidations(...args) {
2507
- const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService } = this;
2505
+ const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, } = this;
2508
2506
  const configBoostrap = args[0];
2509
2507
  const callback = args[1];
2510
2508
  monkeyecxSecurityConsoleConfigService.apply();
2511
2509
  monkeyecxServiceWorkerConfigService.apply(configBoostrap);
2512
2510
  monkeyecxMaintenanceConfigService.apply(configBoostrap);
2513
- console.log('configBoostrap');
2514
- console.log(configBoostrap);
2515
2511
  callback(configBoostrap);
2516
2512
  }
2517
2513
  getWhiteLabelSettings(monkeyecxCode, configBoostrap, callback, environment, identifyCode) {
2518
- const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, internalValidations } = this;
2514
+ const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, internalValidations, } = this;
2519
2515
  const url = `${environment.urlAssets}`;
2520
2516
  monkeyecxService?.get(`${url}/${monkeyecxCode.toLowerCase()}/white-label.json`)?.subscribe((config) => {
2521
2517
  monkeyecxi18nConfigService.apply(config, environment);
@@ -2531,9 +2527,11 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
2531
2527
  }
2532
2528
  init(callback, environment, identifyCode, monkeyecxCode) {
2533
2529
  const { monkeyecxService, configBoostrapSubject$, monkeyecxErrorConfigService } = this;
2534
- monkeyecxService?.get(`${environment.boostrapAssets}?t=${MonkeyUtils.getRandomString(30)}`, {
2535
- observe: 'response'
2536
- })?.subscribe((resp) => {
2530
+ monkeyecxService
2531
+ ?.get(`${environment.boostrapAssets}?t=${MonkeyUtils.getRandomString(30)}`, {
2532
+ observe: 'response',
2533
+ })
2534
+ ?.subscribe((resp) => {
2537
2535
  const { headers, body } = resp;
2538
2536
  const monkeyCode = headers.get('monkey-code') || monkeyecxCode;
2539
2537
  if (monkeyCode) {
@@ -2562,17 +2560,17 @@ MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0
2562
2560
  __decorate([
2563
2561
  MonkeyEcxCoreService({
2564
2562
  httpResponse: {
2565
- httpCodeIgnore: [404]
2563
+ httpCodeIgnore: [404],
2566
2564
  },
2567
2565
  requestInProgress: {
2568
- showProgress: false
2569
- }
2566
+ showProgress: false,
2567
+ },
2570
2568
  })
2571
2569
  ], MonkeyEcxConfigService.prototype, "init", null);
2572
2570
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, decorators: [{
2573
2571
  type: Injectable,
2574
2572
  args: [{
2575
- providedIn: 'root'
2573
+ providedIn: 'root',
2576
2574
  }]
2577
2575
  }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxi18nConfigService }, { type: MonkeyEcxLogsConfigService }, { type: i1.MonkeyStyleGuideSettingsService }, { type: MonkeyEcxServiceWorkerConfigService }, { type: MonkeyEcxSecurityConsoleConfigService }, { type: MonkeyEcxMaintenanceConfigService }, { type: MonkeyEcxErrorConfigService }, { type: MonkeyEcxFeatureToggleService }]; }, propDecorators: { init: [] } });
2578
2576
 
@@ -2593,8 +2591,8 @@ class MonkeyEcxTokenStorageService {
2593
2591
  programType: '',
2594
2592
  role: '',
2595
2593
  _clearIgnore: {
2596
- ignore: ['username', 'program']
2597
- }
2594
+ ignore: ['username', 'program'],
2595
+ },
2598
2596
  };
2599
2597
  this.token$ = new BehaviorSubject(null);
2600
2598
  this.me$ = new BehaviorSubject(null);
@@ -2614,7 +2612,7 @@ class MonkeyEcxTokenStorageService {
2614
2612
  getAllTokens() {
2615
2613
  const { token, config } = this;
2616
2614
  const handledToken = {
2617
- ...token
2615
+ ...token,
2618
2616
  };
2619
2617
  Object.entries(token || {}).forEach(([key, value]) => {
2620
2618
  handledToken[key] = localStorage.getItem(key);
@@ -2626,12 +2624,12 @@ class MonkeyEcxTokenStorageService {
2626
2624
  }
2627
2625
  setAllMe(me) {
2628
2626
  const { me$ } = this;
2629
- let previousMe = JSON.parse(localStorage?.getItem('me') || '');
2627
+ let previousMe = JSON.parse(localStorage?.getItem('me') || '{}');
2630
2628
  Object.entries(me).forEach(([key, value]) => {
2631
2629
  if (MonkeyEcxUtils.persistNullEmptyUndefined(value)) {
2632
2630
  previousMe = {
2633
2631
  ...previousMe,
2634
- [key]: value
2632
+ [key]: value,
2635
2633
  };
2636
2634
  }
2637
2635
  });
@@ -2640,7 +2638,7 @@ class MonkeyEcxTokenStorageService {
2640
2638
  }
2641
2639
  getAllMe() {
2642
2640
  const me = localStorage.getItem('me');
2643
- return JSON.parse(me || '');
2641
+ return JSON.parse(me || '{}');
2644
2642
  }
2645
2643
  tokenHasChanged() {
2646
2644
  return this.token$.asObservable();
@@ -2692,7 +2690,7 @@ MonkeyEcxTokenStorageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "
2692
2690
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxTokenStorageService, decorators: [{
2693
2691
  type: Injectable,
2694
2692
  args: [{
2695
- providedIn: 'root'
2693
+ providedIn: 'root',
2696
2694
  }]
2697
2695
  }], ctorParameters: function () { return [{ type: MonkeyEcxConfigService }]; } });
2698
2696