@posiwise/common-services 0.1.48 → 0.1.50
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/common.service.mjs +3 -3
- package/esm2022/lib/permission.service.mjs +23 -14
- package/esm2022/lib/sentry.service.mjs +6 -3
- package/esm2022/lib/subscription.service.mjs +3 -3
- package/fesm2022/posiwise-common-services.mjs +31 -19
- package/fesm2022/posiwise-common-services.mjs.map +1 -1
- package/lib/common.service.d.ts +1 -1
- package/lib/permission.service.d.ts +2 -0
- package/lib/sentry.service.d.ts +1 -1
- package/lib/subscription.service.d.ts +1 -1
- package/package.json +1 -1
package/lib/common.service.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare class CommonService {
|
|
|
7
7
|
constructor(api: MainApiHttpService);
|
|
8
8
|
addContactUsMessage(data: any): import("rxjs").Observable<any>;
|
|
9
9
|
getIncidents(paging?: Paging): import("rxjs").Observable<any>;
|
|
10
|
-
getIncidentsAdmin(paging?: Paging,
|
|
10
|
+
getIncidentsAdmin(paging?: Paging, subscriptionId?: number): import("rxjs").Observable<any>;
|
|
11
11
|
addIncident(data: any): import("rxjs").Observable<any>;
|
|
12
12
|
editIncident(id: any, data: any): import("rxjs").Observable<any>;
|
|
13
13
|
getIncidentById(id: number, subscription_id: any): import("rxjs").Observable<any>;
|
|
@@ -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 getFormattedPermissionName;
|
|
12
13
|
getPermissionTreeDataByRole(data: any): {
|
|
13
14
|
permissions: any[];
|
|
14
15
|
grantedPermissionNames: string[];
|
|
@@ -34,6 +35,7 @@ export declare class PermissionService {
|
|
|
34
35
|
* Any Product Admin of the product being the master product
|
|
35
36
|
*/
|
|
36
37
|
isUserSubscriptionSuperAdmin(product?: any): boolean;
|
|
38
|
+
isUserMasterSubscriptionSuperAdmin(product?: any): boolean;
|
|
37
39
|
/**
|
|
38
40
|
* Any Product Admin of the product being the master product
|
|
39
41
|
*/
|
package/lib/sentry.service.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare class SentryErrorHandler implements ErrorHandler {
|
|
|
17
17
|
extractOriginalError(error: any, incomingError: any): void;
|
|
18
18
|
handleNonHttpErrorResponse(error: any): void;
|
|
19
19
|
errorMessageFormatter(error: any): void;
|
|
20
|
-
|
|
20
|
+
sentryInitialization(error: any, incomingError: any): void;
|
|
21
21
|
private logToSentry;
|
|
22
22
|
private scopeWithSentry;
|
|
23
23
|
private handleNonStandardError;
|
|
@@ -27,7 +27,7 @@ export declare class SubscriptionService {
|
|
|
27
27
|
updateCardDetails(data: {
|
|
28
28
|
[key: string]: string;
|
|
29
29
|
}, subscription_id: number): import("rxjs").Observable<any>;
|
|
30
|
-
getEnterpriseInsight(subscriptionId: number): import("rxjs").Observable<any>;
|
|
30
|
+
getEnterpriseInsight(subscriptionId: number, starting_at?: string, ending_at?: string): import("rxjs").Observable<any>;
|
|
31
31
|
postSubscriptionCredential(data: any): import("rxjs").Observable<any>;
|
|
32
32
|
editSubscriptionCredential(id: number, data: any): import("rxjs").Observable<any>;
|
|
33
33
|
getAllSubscriptionCredentials(subscription_id: number, paging?: Paging): import("rxjs").Observable<any>;
|