@posiwise/common-services 0.1.71 → 0.1.73
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/esm2022/lib/ab-test.service.mjs +16 -4
- package/esm2022/lib/brain-api-http.service.mjs +2 -2
- package/esm2022/lib/brain.service.mjs +3 -3
- package/esm2022/lib/google-analytics.service.mjs +18 -19
- package/esm2022/lib/permission.service.mjs +13 -22
- package/esm2022/lib/sentry.service.mjs +26 -12
- package/fesm2022/posiwise-common-services.mjs +70 -57
- package/fesm2022/posiwise-common-services.mjs.map +1 -1
- package/lib/ab-test.service.d.ts +4 -1
- package/lib/permission.service.d.ts +1 -0
- package/lib/sentry.service.d.ts +1 -0
- package/package.json +1 -1
package/lib/ab-test.service.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
1
2
|
import { Injector } from '@angular/core';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class AbTestService {
|
|
4
5
|
private readonly injector;
|
|
5
|
-
|
|
6
|
+
private readonly http;
|
|
7
|
+
constructor(injector: Injector, http: HttpClient);
|
|
6
8
|
/**
|
|
7
9
|
* POST: start or stop observable
|
|
8
10
|
* payload: {
|
|
@@ -15,6 +17,7 @@ export declare class AbTestService {
|
|
|
15
17
|
* Finish the experiment and remove from the cookie app-store
|
|
16
18
|
*/
|
|
17
19
|
finishExperiment(test_name: string, service: unknown): any;
|
|
20
|
+
finishABExperiment(test_name: string, shard_name: unknown): import("rxjs").Observable<Object>;
|
|
18
21
|
/**
|
|
19
22
|
* dynamically loads the microservice
|
|
20
23
|
*/
|
|
@@ -9,6 +9,7 @@ export declare class PermissionService {
|
|
|
9
9
|
constructor(api: MainApiHttpService);
|
|
10
10
|
setCurrentSubscription(subscription: any): void;
|
|
11
11
|
isGranted(permissionName: string, productKey?: any, permission_key?: any, productSlug?: any): boolean;
|
|
12
|
+
private hasAnyGrantedPermission;
|
|
12
13
|
handleProductKey(productKey: any, user: any, permission_key: any, permissionName: any): any;
|
|
13
14
|
private getFormattedPermissionName;
|
|
14
15
|
getPermissionTreeDataByRole(data: any): {
|
package/lib/sentry.service.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare class SentryErrorHandler implements ErrorHandler {
|
|
|
15
15
|
handleError(incomingError: HttpErrorResponse | Error): void;
|
|
16
16
|
handleExceptionError(incomingError: any): void;
|
|
17
17
|
extractOriginalError(error: any, incomingError: any): void;
|
|
18
|
+
getErrorMessage(error: any): string;
|
|
18
19
|
handleNonHttpErrorResponse(error: any): void;
|
|
19
20
|
errorMessageFormatter(error: any): void;
|
|
20
21
|
sentryInitialization(error: any, incomingError: any): void;
|