monkey-front-core 0.0.294 → 0.0.296
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/interfaces/index.mjs +10 -9
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-storage.mjs +2 -0
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +9 -10
- package/esm2020/lib/core/services/config/monkeyecx-gtm-config.service.mjs +51 -0
- package/esm2020/lib/store/actions/index.mjs +2 -0
- package/esm2020/lib/store/actions/monkeyecx-storage.actions.mjs +8 -0
- package/esm2020/lib/store/index.mjs +3 -0
- package/esm2020/lib/store/reducers/index.mjs +3 -0
- package/esm2020/lib/store/reducers/monkeyecx-seeder.reducer.mjs +18 -0
- package/esm2020/lib/store/reducers/monkeyecx-storage.reducer.mjs +40 -0
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/monkey-front-core.mjs +148 -62
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +158 -62
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/index.d.ts +9 -8
- package/lib/core/interfaces/monkeyecx-config.d.ts +2 -2
- package/lib/core/interfaces/monkeyecx-storage.d.ts +38 -0
- package/lib/core/services/config/monkeyecx-config.service.d.ts +10 -10
- package/lib/core/services/config/monkeyecx-gtm-config.service.d.ts +9 -0
- package/lib/store/actions/index.d.ts +1 -0
- package/lib/store/actions/monkeyecx-storage.actions.d.ts +23 -0
- package/lib/store/index.d.ts +2 -0
- package/lib/store/reducers/index.d.ts +2 -0
- package/lib/store/reducers/monkeyecx-seeder.reducer.d.ts +2 -0
- package/lib/store/reducers/monkeyecx-storage.reducer.d.ts +13 -0
- package/monkey-front-core-0.0.296.tgz +0 -0
- package/package.json +7 -3
- package/public-api.d.ts +1 -0
- package/esm2020/lib/core/services/config/monkeyecx-ga-config.service.mjs +0 -57
- package/lib/core/services/config/monkeyecx-ga-config.service.d.ts +0 -10
- package/monkey-front-core-0.0.294.tgz +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
export * from './request-download';
|
|
2
|
-
export * from './request-queue';
|
|
3
|
-
export * from './request-upload';
|
|
4
|
-
export * from './schedules';
|
|
5
1
|
export * from './monkeyecx-auth-credentials';
|
|
6
2
|
export * from './monkeyecx-company';
|
|
7
|
-
export * from './monkeyecx-
|
|
3
|
+
export * from './monkeyecx-company-pendencies';
|
|
8
4
|
export * from './monkeyecx-config';
|
|
5
|
+
export * from './monkeyecx-config-bootstrap';
|
|
6
|
+
export * from './monkeyecx-country-security';
|
|
9
7
|
export * from './monkeyecx-error-response';
|
|
8
|
+
export * from './monkeyecx-filter';
|
|
10
9
|
export * from './monkeyecx-handled-error-response';
|
|
11
10
|
export * from './monkeyecx-header-credentials';
|
|
12
11
|
export * from './monkeyecx-intercom-options';
|
|
@@ -21,9 +20,11 @@ export * from './monkeyecx-response-paged';
|
|
|
21
20
|
export * from './monkeyecx-saved-state';
|
|
22
21
|
export * from './monkeyecx-scroll-options';
|
|
23
22
|
export * from './monkeyecx-service-credentials';
|
|
23
|
+
export * from './monkeyecx-storage';
|
|
24
24
|
export * from './monkeyecx-support-options';
|
|
25
25
|
export * from './monkeyecx-token-credentials';
|
|
26
26
|
export * from './monkeyecx-translate-options';
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
27
|
+
export * from './request-download';
|
|
28
|
+
export * from './request-queue';
|
|
29
|
+
export * from './request-upload';
|
|
30
|
+
export * from './schedules';
|
|
@@ -100,7 +100,7 @@ export interface MonkeyEcxConfigExternalSettings {
|
|
|
100
100
|
export interface MonkeyEcxConfigExternali18n {
|
|
101
101
|
[s: string]: any;
|
|
102
102
|
}
|
|
103
|
-
export interface
|
|
103
|
+
export interface MonkeyEcxConfigGTM {
|
|
104
104
|
enabled: boolean;
|
|
105
105
|
key: string;
|
|
106
106
|
}
|
|
@@ -121,7 +121,7 @@ export interface MonkeyEcxConfig {
|
|
|
121
121
|
externali18n?: MonkeyEcxConfigExternali18n;
|
|
122
122
|
messages?: MonkeyEcxConfigMessages;
|
|
123
123
|
externalSettings?: MonkeyEcxConfigExternalSettings;
|
|
124
|
-
|
|
124
|
+
gtm?: MonkeyEcxConfigGTM;
|
|
125
125
|
alert?: MonkeyEcxConfigAlert;
|
|
126
126
|
}
|
|
127
127
|
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MonkeyEcxCompany } from './monkeyecx-company';
|
|
2
|
+
import { MonkeyEcxProgram } from './monkeyecx-program';
|
|
3
|
+
export interface MonkeyEcxStorage {
|
|
4
|
+
username: string;
|
|
5
|
+
program?: string;
|
|
6
|
+
accessToken?: string;
|
|
7
|
+
refreshToken?: string;
|
|
8
|
+
companyId?: string;
|
|
9
|
+
governmentId?: string;
|
|
10
|
+
companyTypeUrl?: string;
|
|
11
|
+
companyType?: string;
|
|
12
|
+
role?: string;
|
|
13
|
+
programAdmin?: boolean | string;
|
|
14
|
+
programType?: string;
|
|
15
|
+
accessType?: string;
|
|
16
|
+
ownerGovernmentId?: string;
|
|
17
|
+
me?: {
|
|
18
|
+
name?: string;
|
|
19
|
+
email?: string;
|
|
20
|
+
username?: string;
|
|
21
|
+
status?: string;
|
|
22
|
+
pictureURL?: string;
|
|
23
|
+
selectedLanguage?: string;
|
|
24
|
+
companies?: MonkeyEcxCompany[];
|
|
25
|
+
programs?: MonkeyEcxProgram[];
|
|
26
|
+
nickname?: string;
|
|
27
|
+
cellPhone?: string;
|
|
28
|
+
smsNotification?: boolean;
|
|
29
|
+
privacyPolicy?: boolean;
|
|
30
|
+
useTerms?: boolean;
|
|
31
|
+
locale?: string;
|
|
32
|
+
newsletter?: boolean;
|
|
33
|
+
passNumber1?: string;
|
|
34
|
+
passNumber2?: string;
|
|
35
|
+
passNumber3?: string;
|
|
36
|
+
passNumber4?: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
1
|
import { MonkeyStyleGuideSettingsService } from 'monkey-style-guide';
|
|
3
|
-
import {
|
|
4
|
-
import { MonkeyEcxLogsConfigService } from './monkeyecx-logs-config.service';
|
|
5
|
-
import { MonkeyEcxServiceWorkerConfigService } from './monkeyecx-service-worker-config.service';
|
|
6
|
-
import { MonkeyEcxSecurityConsoleConfigService } from './monkeyecx-security-console-config.service';
|
|
7
|
-
import { MonkeyEcxMaintenanceConfigService } from './monkeyecx-maintenance-config.service';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
8
3
|
import { MonkeyEcxCommonsService } from '../commons/monkeyecx-commons.service';
|
|
9
4
|
import { MonkeyEcxService } from '../monkeyecx-service.service';
|
|
5
|
+
import { MonkeyEcxAlertsConfigService } from './monkeyecx-alerts-config.service';
|
|
10
6
|
import { MonkeyEcxErrorConfigService } from './monkeyecx-error-config.service';
|
|
11
7
|
import { MonkeyEcxFeatureToggleService } from './monkeyecx-feature-toggle.service';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
8
|
+
import { MonkeyEcxGTMConfigService } from './monkeyecx-gtm-config.service';
|
|
9
|
+
import { MonkeyEcxi18nConfigService } from './monkeyecx-i18n-config.service';
|
|
10
|
+
import { MonkeyEcxLogsConfigService } from './monkeyecx-logs-config.service';
|
|
11
|
+
import { MonkeyEcxMaintenanceConfigService } from './monkeyecx-maintenance-config.service';
|
|
12
|
+
import { MonkeyEcxSecurityConsoleConfigService } from './monkeyecx-security-console-config.service';
|
|
13
|
+
import { MonkeyEcxServiceWorkerConfigService } from './monkeyecx-service-worker-config.service';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
export declare class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
16
16
|
private monkeyecxi18nConfigService;
|
|
@@ -21,11 +21,11 @@ export declare class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
|
|
|
21
21
|
private monkeyecxMaintenanceConfigService;
|
|
22
22
|
private monkeyecxErrorConfigService;
|
|
23
23
|
private monkeyEcxFeatureToggleService;
|
|
24
|
-
private
|
|
24
|
+
private monkeyGTMConfigService;
|
|
25
25
|
private monkeyEcxAlertsConfigService;
|
|
26
26
|
private readonly configSubject$;
|
|
27
27
|
private readonly configBootstrapSubject$;
|
|
28
|
-
constructor(monkeyecxService: MonkeyEcxService, monkeyecxi18nConfigService: MonkeyEcxi18nConfigService, monkeyecxLogsConfigService: MonkeyEcxLogsConfigService, monkeyStyleGuideSettingsService: MonkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService: MonkeyEcxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService: MonkeyEcxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService: MonkeyEcxMaintenanceConfigService, monkeyecxErrorConfigService: MonkeyEcxErrorConfigService, monkeyEcxFeatureToggleService: MonkeyEcxFeatureToggleService,
|
|
28
|
+
constructor(monkeyecxService: MonkeyEcxService, monkeyecxi18nConfigService: MonkeyEcxi18nConfigService, monkeyecxLogsConfigService: MonkeyEcxLogsConfigService, monkeyStyleGuideSettingsService: MonkeyStyleGuideSettingsService, monkeyecxServiceWorkerConfigService: MonkeyEcxServiceWorkerConfigService, monkeyecxSecurityConsoleConfigService: MonkeyEcxSecurityConsoleConfigService, monkeyecxMaintenanceConfigService: MonkeyEcxMaintenanceConfigService, monkeyecxErrorConfigService: MonkeyEcxErrorConfigService, monkeyEcxFeatureToggleService: MonkeyEcxFeatureToggleService, monkeyGTMConfigService: MonkeyEcxGTMConfigService, monkeyEcxAlertsConfigService: MonkeyEcxAlertsConfigService);
|
|
29
29
|
private internalValidations;
|
|
30
30
|
private getWhiteLabelSettings;
|
|
31
31
|
init(callback: Function, environment: any, identifyCode: string, monkeyecxCode?: string): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MonkeyEcxConfig } from '../../interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MonkeyEcxGTMConfigService {
|
|
4
|
+
constructor();
|
|
5
|
+
private handleCode;
|
|
6
|
+
apply(params: MonkeyEcxConfig, environment: any): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxGTMConfigService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxGTMConfigService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as monkeyecxStorage from './monkeyecx-storage.actions';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MonkeyEcxStorage } from '../../core/interfaces';
|
|
2
|
+
declare const clear: import("@ngrx/store").ActionCreator<"[MECX Core Storage] Clear All", () => import("@ngrx/store/src/models").TypedAction<"[MECX Core Storage] Clear All">>;
|
|
3
|
+
declare const create: import("@ngrx/store").ActionCreator<"[MECX Core Storage] Create", (props: {
|
|
4
|
+
data: MonkeyEcxStorage[];
|
|
5
|
+
}) => {
|
|
6
|
+
data: MonkeyEcxStorage[];
|
|
7
|
+
} & import("@ngrx/store/src/models").TypedAction<"[MECX Core Storage] Create">>;
|
|
8
|
+
declare const updateControl: import("@ngrx/store").ActionCreator<"[MECX Core Storage] Update Control", (props: {
|
|
9
|
+
data: any;
|
|
10
|
+
}) => {
|
|
11
|
+
data: any;
|
|
12
|
+
} & import("@ngrx/store/src/models").TypedAction<"[MECX Core Storage] Update Control">>;
|
|
13
|
+
declare const updateOne: import("@ngrx/store").ActionCreator<"[MECX Core Storage] Update One", (props: {
|
|
14
|
+
data: MonkeyEcxStorage;
|
|
15
|
+
}) => {
|
|
16
|
+
data: MonkeyEcxStorage;
|
|
17
|
+
} & import("@ngrx/store/src/models").TypedAction<"[MECX Core Storage] Update One">>;
|
|
18
|
+
declare const deleteOne: import("@ngrx/store").ActionCreator<"[MECX Core Storage] Delete One", (props: {
|
|
19
|
+
data: MonkeyEcxStorage;
|
|
20
|
+
}) => {
|
|
21
|
+
data: MonkeyEcxStorage;
|
|
22
|
+
} & import("@ngrx/store/src/models").TypedAction<"[MECX Core Storage] Delete One">>;
|
|
23
|
+
export { clear, create, updateControl, updateOne, deleteOne };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EntityAdapter, EntityState } from '@ngrx/entity';
|
|
2
|
+
import { MonkeyEcxStorage } from '../../core';
|
|
3
|
+
export declare const featureKey = "mecx-core-storage";
|
|
4
|
+
export interface State extends EntityState<MonkeyEcxStorage> {
|
|
5
|
+
control: {
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
};
|
|
8
|
+
error: any;
|
|
9
|
+
}
|
|
10
|
+
export declare const adapter: EntityAdapter<MonkeyEcxStorage>;
|
|
11
|
+
export declare const initialState: State;
|
|
12
|
+
export declare const reducer: import("@ngrx/store").ActionReducer<State, import("@ngrx/store").Action>;
|
|
13
|
+
export declare const selectAll: (state: EntityState<MonkeyEcxStorage>) => MonkeyEcxStorage[], selectEntities: (state: EntityState<MonkeyEcxStorage>) => import("@ngrx/entity").Dictionary<MonkeyEcxStorage>, selectIds: (state: EntityState<MonkeyEcxStorage>) => string[] | number[], selectTotal: (state: EntityState<MonkeyEcxStorage>) => number;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monkey-front-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.296",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "^13.1.1",
|
|
6
6
|
"@angular/common": "^13.1.1",
|
|
7
7
|
"@angular/core": "^13.1.1",
|
|
8
|
-
"@angular/router": "^13.1.1",
|
|
9
|
-
"@angular/platform-browser": "13.1.1",
|
|
10
8
|
"@angular/platform-browser-dynamic": "13.1.1",
|
|
9
|
+
"@angular/platform-browser": "13.1.1",
|
|
10
|
+
"@angular/router": "^13.1.1",
|
|
11
11
|
"@angular/service-worker": "^13.1.1",
|
|
12
12
|
"@datadog/browser-rum": "^3.6.12",
|
|
13
|
+
"@ngrx/data": "^13.0.2",
|
|
14
|
+
"@ngrx/effects": "^13.0.2",
|
|
15
|
+
"@ngrx/entity": "^13.0.2",
|
|
16
|
+
"@ngrx/store": "^13.0.2",
|
|
13
17
|
"@ngx-translate/core": "^13.0.0",
|
|
14
18
|
"@ngx-translate/http-loader": "^6.0.0",
|
|
15
19
|
"launchdarkly-js-client-sdk": "3.0.0",
|
package/public-api.d.ts
CHANGED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/* eslint-disable prefer-rest-params */
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { NavigationEnd } from '@angular/router';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/router";
|
|
6
|
-
export class MonkeyEcxGAConfigService {
|
|
7
|
-
constructor(rt) {
|
|
8
|
-
this.rt = rt;
|
|
9
|
-
// not to do
|
|
10
|
-
}
|
|
11
|
-
apply(params, environment) {
|
|
12
|
-
const { ga } = params;
|
|
13
|
-
const { enabled, key } = ga || { enabled: false, key: '' };
|
|
14
|
-
if (enabled && environment.environment !== 'dev') {
|
|
15
|
-
const action = () => {
|
|
16
|
-
window.dataLayer = window.dataLayer || [];
|
|
17
|
-
window.gtag =
|
|
18
|
-
window.gtag ||
|
|
19
|
-
function gtag() {
|
|
20
|
-
window.dataLayer.push(arguments);
|
|
21
|
-
};
|
|
22
|
-
window.gtag('js', new Date());
|
|
23
|
-
window.gtag('config', key);
|
|
24
|
-
};
|
|
25
|
-
const pageChangeAction = () => {
|
|
26
|
-
this.rt.events.subscribe((event) => {
|
|
27
|
-
if (event instanceof NavigationEnd) {
|
|
28
|
-
window.gtag('set', 'page_path', event.url);
|
|
29
|
-
window.gtag('event', 'page_view');
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
const head = document.querySelector('head');
|
|
34
|
-
const script = document.createElement('script');
|
|
35
|
-
script.async = true;
|
|
36
|
-
script.id = 'ga-settings';
|
|
37
|
-
script.src = `//www.googletagmanager.com/gtag/js?id=${key}`;
|
|
38
|
-
script.onload = () => {
|
|
39
|
-
action();
|
|
40
|
-
pageChangeAction();
|
|
41
|
-
};
|
|
42
|
-
script.onerror = () => {
|
|
43
|
-
head?.removeChild(script);
|
|
44
|
-
};
|
|
45
|
-
head?.appendChild(script);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
MonkeyEcxGAConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGAConfigService, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
50
|
-
MonkeyEcxGAConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGAConfigService, providedIn: 'root' });
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGAConfigService, decorators: [{
|
|
52
|
-
type: Injectable,
|
|
53
|
-
args: [{
|
|
54
|
-
providedIn: 'root'
|
|
55
|
-
}]
|
|
56
|
-
}], ctorParameters: function () { return [{ type: i1.Router }]; } });
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWdhLWNvbmZpZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvcmUvc3JjL2xpYi9jb3JlL3NlcnZpY2VzL2NvbmZpZy9tb25rZXllY3gtZ2EtY29uZmlnLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsdUNBQXVDO0FBQ3ZDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlL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C5vbmVycm9yID0gKCkgPT4ge1xyXG4gICAgICAgIGhlYWQ/LnJlbW92ZUNoaWxkKHNjcmlwdCk7XHJcbiAgICAgIH07XHJcbiAgICAgIGhlYWQ/LmFwcGVuZENoaWxkKHNjcmlwdCk7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Router } from '@angular/router';
|
|
2
|
-
import { MonkeyEcxConfig } from '../../interfaces';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MonkeyEcxGAConfigService {
|
|
5
|
-
private rt;
|
|
6
|
-
constructor(rt: Router);
|
|
7
|
-
apply(params: MonkeyEcxConfig, environment: any): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxGAConfigService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxGAConfigService>;
|
|
10
|
-
}
|
|
Binary file
|