@posiwise/common-services 0.1.77 → 0.1.79
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/auth.service.mjs +7 -1
- package/esm2022/lib/permission.service.mjs +3 -158
- package/fesm2022/posiwise-common-services.mjs +8 -157
- package/fesm2022/posiwise-common-services.mjs.map +1 -1
- package/lib/auth.service.d.ts +4 -0
- package/lib/permission.service.d.ts +0 -27
- package/package.json +1 -1
package/lib/auth.service.d.ts
CHANGED
|
@@ -47,6 +47,10 @@ export declare class AuthService {
|
|
|
47
47
|
* Clear all authentication tokens
|
|
48
48
|
*/
|
|
49
49
|
clearTokens(): import("rxjs").Observable<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* Remove only impersonation tokens (not all tokens)
|
|
52
|
+
*/
|
|
53
|
+
removeImpersonationTokens(): import("rxjs").Observable<boolean>;
|
|
50
54
|
getToken$(): import("rxjs").Observable<string>;
|
|
51
55
|
getNewsletterSubscription(token: string): import("rxjs").Observable<any>;
|
|
52
56
|
unsubscribeNewsletter(token: string): import("rxjs").Observable<any>;
|
|
@@ -45,33 +45,6 @@ export declare class PermissionService {
|
|
|
45
45
|
isUserSubscriptionSuperOwner(product?: any): boolean;
|
|
46
46
|
setCurrentProduct(product: any): void;
|
|
47
47
|
getCurrentProduct(): any;
|
|
48
|
-
/**
|
|
49
|
-
* Safely evaluates boolean expressions without using eval()
|
|
50
|
-
* Supports: true, false, &&, ||, (, )
|
|
51
|
-
* @param expr - Boolean expression string like "true && false || (true && false)"
|
|
52
|
-
* @returns boolean result
|
|
53
|
-
*/
|
|
54
|
-
private evaluateBooleanExpression;
|
|
55
|
-
/**
|
|
56
|
-
* Tokenizes a boolean expression string
|
|
57
|
-
*/
|
|
58
|
-
private tokenizeBooleanExpression;
|
|
59
|
-
private isWhitespace;
|
|
60
|
-
private isParenthesis;
|
|
61
|
-
private isDoubleOperator;
|
|
62
|
-
private collectToken;
|
|
63
|
-
/**
|
|
64
|
-
* Parses and evaluates boolean expression tokens
|
|
65
|
-
*/
|
|
66
|
-
private parseBooleanExpression;
|
|
67
|
-
/**
|
|
68
|
-
* Converts infix notation to postfix (Reverse Polish Notation)
|
|
69
|
-
*/
|
|
70
|
-
private infixToPostfix;
|
|
71
|
-
/**
|
|
72
|
-
* Evaluates postfix boolean expression
|
|
73
|
-
*/
|
|
74
|
-
private evaluatePostfix;
|
|
75
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionService, never>;
|
|
76
49
|
static ɵprov: i0.ɵɵInjectableDeclaration<PermissionService>;
|
|
77
50
|
}
|