monkey-front-core 0.0.42 → 0.0.46
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/esm2020/lib/core/decorators/monkeyecx-decorators.mjs +3 -5
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +1 -1
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +1 -4
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +12 -12
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +2 -4
- package/fesm2015/monkey-front-core.mjs +9 -18
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +14 -21
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/monkeyecx-config.d.ts +14 -0
- package/monkey-front-core-0.0.46.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.42.tgz +0 -0
|
@@ -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);
|
|
@@ -1865,10 +1863,7 @@ class MonkeyEcxCommonsService {
|
|
|
1865
1863
|
return new MonkeyEcxRequestPagedHandling(url, __requestPaged || {}).getRequestWithPagedParams();
|
|
1866
1864
|
}
|
|
1867
1865
|
clear(clearData) {
|
|
1868
|
-
console.log('----> clear');
|
|
1869
1866
|
if (clearData) {
|
|
1870
|
-
console.log('veio clear data');
|
|
1871
|
-
console.log(this.__data);
|
|
1872
1867
|
this.__data = null;
|
|
1873
1868
|
this.__requestPaged = null;
|
|
1874
1869
|
this.__params = null;
|
|
@@ -2507,18 +2502,16 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
2507
2502
|
this.configBoostrapSubject$ = new BehaviorSubject({});
|
|
2508
2503
|
}
|
|
2509
2504
|
internalValidations(...args) {
|
|
2510
|
-
const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService } = this;
|
|
2505
|
+
const { monkeyecxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService, } = this;
|
|
2511
2506
|
const configBoostrap = args[0];
|
|
2512
2507
|
const callback = args[1];
|
|
2513
2508
|
monkeyecxSecurityConsoleConfigService.apply();
|
|
2514
2509
|
monkeyecxServiceWorkerConfigService.apply(configBoostrap);
|
|
2515
2510
|
monkeyecxMaintenanceConfigService.apply(configBoostrap);
|
|
2516
|
-
console.log('configBoostrap');
|
|
2517
|
-
console.log(configBoostrap);
|
|
2518
2511
|
callback(configBoostrap);
|
|
2519
2512
|
}
|
|
2520
2513
|
getWhiteLabelSettings(monkeyecxCode, configBoostrap, callback, environment, identifyCode) {
|
|
2521
|
-
const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, internalValidations } = this;
|
|
2514
|
+
const { monkeyecxService, monkeyecxi18nConfigService, configSubject$, monkeyStyleGuideSettingsService, monkeyecxLogsConfigService, monkeyecxErrorConfigService, monkeyEcxFeatureToggleService, internalValidations, } = this;
|
|
2522
2515
|
const url = `${environment.urlAssets}`;
|
|
2523
2516
|
monkeyecxService?.get(`${url}/${monkeyecxCode.toLowerCase()}/white-label.json`)?.subscribe((config) => {
|
|
2524
2517
|
monkeyecxi18nConfigService.apply(config, environment);
|
|
@@ -2534,9 +2527,11 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
2534
2527
|
}
|
|
2535
2528
|
init(callback, environment, identifyCode, monkeyecxCode) {
|
|
2536
2529
|
const { monkeyecxService, configBoostrapSubject$, monkeyecxErrorConfigService } = this;
|
|
2537
|
-
monkeyecxService
|
|
2538
|
-
|
|
2539
|
-
|
|
2530
|
+
monkeyecxService
|
|
2531
|
+
?.get(`${environment.boostrapAssets}?t=${MonkeyUtils.getRandomString(30)}`, {
|
|
2532
|
+
observe: 'response',
|
|
2533
|
+
})
|
|
2534
|
+
?.subscribe((resp) => {
|
|
2540
2535
|
const { headers, body } = resp;
|
|
2541
2536
|
const monkeyCode = headers.get('monkey-code') || monkeyecxCode;
|
|
2542
2537
|
if (monkeyCode) {
|
|
@@ -2565,17 +2560,17 @@ MonkeyEcxConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0
|
|
|
2565
2560
|
__decorate([
|
|
2566
2561
|
MonkeyEcxCoreService({
|
|
2567
2562
|
httpResponse: {
|
|
2568
|
-
httpCodeIgnore: [404]
|
|
2563
|
+
httpCodeIgnore: [404],
|
|
2569
2564
|
},
|
|
2570
2565
|
requestInProgress: {
|
|
2571
|
-
showProgress: false
|
|
2572
|
-
}
|
|
2566
|
+
showProgress: false,
|
|
2567
|
+
},
|
|
2573
2568
|
})
|
|
2574
2569
|
], MonkeyEcxConfigService.prototype, "init", null);
|
|
2575
2570
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxConfigService, decorators: [{
|
|
2576
2571
|
type: Injectable,
|
|
2577
2572
|
args: [{
|
|
2578
|
-
providedIn: 'root'
|
|
2573
|
+
providedIn: 'root',
|
|
2579
2574
|
}]
|
|
2580
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: [] } });
|
|
2581
2576
|
|
|
@@ -3257,8 +3252,6 @@ class MonkeyEcxErrorHandlingService {
|
|
|
3257
3252
|
console.log(error);
|
|
3258
3253
|
if (error instanceof HttpErrorResponse) {
|
|
3259
3254
|
const sCredentials = handlingService?.getMonkeyEcxServiceCredentials() || {};
|
|
3260
|
-
console.log('sCredentials');
|
|
3261
|
-
console.log(sCredentials);
|
|
3262
3255
|
if (MonkeyEcxUtils.persistNullEmptyUndefined(type) && type === 'refresh_token') {
|
|
3263
3256
|
httpErrorHandlingService.handleErrorRefreshToken(error, sCredentials);
|
|
3264
3257
|
}
|
|
@@ -3275,7 +3268,7 @@ MonkeyEcxErrorHandlingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion:
|
|
|
3275
3268
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorHandlingService, decorators: [{
|
|
3276
3269
|
type: Injectable,
|
|
3277
3270
|
args: [{
|
|
3278
|
-
providedIn: 'root'
|
|
3271
|
+
providedIn: 'root',
|
|
3279
3272
|
}]
|
|
3280
3273
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
3281
3274
|
|