@posiwise/common-services 0.1.53 → 0.1.55
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 +1 -1
- package/esm2022/lib/ahoy.service.mjs +2 -2
- package/esm2022/lib/auth.service.mjs +5 -5
- package/esm2022/lib/base-http.service.mjs +1 -1
- package/esm2022/lib/common-services.interface.mjs +1 -1
- package/esm2022/lib/common-services.module.mjs +5 -5
- package/esm2022/lib/common.service.mjs +2 -2
- package/esm2022/lib/custom-preloading.service.mjs +1 -1
- package/esm2022/lib/data.service.mjs +1 -1
- package/esm2022/lib/date-formatter.service.mjs +2 -2
- package/esm2022/lib/effects/user.effects.mjs +2 -2
- package/esm2022/lib/geo.service.mjs +2 -2
- package/esm2022/lib/google-analytics.service.mjs +1 -1
- package/esm2022/lib/group.service.mjs +2 -2
- package/esm2022/lib/hopscotch.service.mjs +1 -1
- package/esm2022/lib/integrations-api-http.service.mjs +3 -3
- package/esm2022/lib/local-storage.service.mjs +1 -1
- package/esm2022/lib/mailbox.service.mjs +1 -1
- package/esm2022/lib/main-api-http.service.mjs +3 -3
- package/esm2022/lib/notification.service.mjs +3 -3
- package/esm2022/lib/permission.service.mjs +54 -41
- package/esm2022/lib/product.service.mjs +1 -1
- package/esm2022/lib/profile.service.mjs +1 -1
- package/esm2022/lib/qualification.service.mjs +1 -1
- package/esm2022/lib/sentry.service.mjs +3 -3
- package/esm2022/lib/socket.service.mjs +2 -2
- package/esm2022/lib/subscription.service.mjs +1 -1
- package/esm2022/lib/tag.service.mjs +1 -1
- package/esm2022/lib/tips.service.mjs +1 -1
- package/esm2022/lib/toast.service.mjs +2 -2
- package/esm2022/lib/user.service.mjs +4 -4
- package/fesm2022/posiwise-common-services.mjs +132 -119
- package/fesm2022/posiwise-common-services.mjs.map +1 -1
- package/lib/ahoy.service.d.ts +1 -1
- package/lib/auth.service.d.ts +3 -3
- package/lib/common.service.d.ts +1 -1
- package/lib/effects/user.effects.d.ts +1 -1
- package/lib/group.service.d.ts +1 -1
- package/lib/integrations-api-http.service.d.ts +1 -1
- package/lib/main-api-http.service.d.ts +1 -1
- package/lib/notification.service.d.ts +1 -1
- package/lib/permission.service.d.ts +1 -0
- package/lib/profile.service.d.ts +1 -1
- package/lib/sentry.service.d.ts +1 -1
- package/lib/socket.service.d.ts +1 -1
- package/lib/user.service.d.ts +2 -2
- package/package.json +1 -1
package/lib/ahoy.service.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
|
|
2
2
|
import { Injector } from '@angular/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
3
|
import { Paging } from '@posiwise/common-utilities';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
5
|
import { AhoyEventResponse, AhoyMessageResponse, AhoyVersionResponse, AhoyVisitResponse, RequestParams, TrackEventResponse } from './common-services.interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class AhoyService {
|
package/lib/auth.service.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HttpHeaders } from '@angular/common/http';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { AppConfigService } from '@posiwise/app-config-service';
|
|
4
|
+
import { SignUpValues } from './common-services.interface';
|
|
5
|
+
import { IntegrationsApiHttpService } from './integrations-api-http.service';
|
|
4
6
|
import { LocalStorage } from './local-storage.service';
|
|
5
7
|
import { MainApiHttpService } from './main-api-http.service';
|
|
6
8
|
import { CustomToastService } from './toast.service';
|
|
7
9
|
import { UserService } from './user.service';
|
|
8
|
-
import { IntegrationsApiHttpService } from './integrations-api-http.service';
|
|
9
|
-
import { SignUpValues } from './common-services.interface';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class AuthService {
|
|
12
12
|
private readonly localStorage;
|
|
@@ -18,11 +18,11 @@ export declare class AuthService {
|
|
|
18
18
|
private readonly integrationsApi;
|
|
19
19
|
private readonly document;
|
|
20
20
|
private readonly platformSubject;
|
|
21
|
-
platform$: import("rxjs").Observable<string>;
|
|
22
21
|
private readonly twitterEndpoint;
|
|
23
22
|
auth_token: string;
|
|
24
23
|
header_key: string;
|
|
25
24
|
platform: string;
|
|
25
|
+
platform$: import("rxjs").Observable<string>;
|
|
26
26
|
isUserPersonated: boolean;
|
|
27
27
|
constructor(localStorage: LocalStorage, router: Router, http: MainApiHttpService, userService: UserService, toastr: CustomToastService, appConfigService: AppConfigService, integrationsApi: IntegrationsApiHttpService, document: Document);
|
|
28
28
|
getToken(): string;
|
package/lib/common.service.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Paging } from '@posiwise/common-utilities';
|
|
2
|
-
import { MainApiHttpService } from './main-api-http.service';
|
|
3
2
|
import { GetFaqParams } from './common-services.interface';
|
|
3
|
+
import { MainApiHttpService } from './main-api-http.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CommonService {
|
|
6
6
|
private readonly api;
|
package/lib/group.service.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { MainApiHttpService } from './main-api-http.service';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class GroupService {
|
|
5
5
|
private readonly api;
|
|
6
|
-
ADMIN_PATH: string;
|
|
7
6
|
private readonly subscription_endpoint;
|
|
8
7
|
private readonly group_communications_endpoint;
|
|
9
8
|
private readonly group_definitions_endpoint;
|
|
10
9
|
private readonly groups_endpoint;
|
|
10
|
+
ADMIN_PATH: string;
|
|
11
11
|
constructor(api: MainApiHttpService);
|
|
12
12
|
getById(id: any): import("rxjs").Observable<any>;
|
|
13
13
|
updateAgent(id: number, agent_id: number, data: any): import("rxjs").Observable<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
1
2
|
import { Injector } from '@angular/core';
|
|
2
3
|
import { BaseHttpService } from './base-http.service';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class IntegrationsApiHttpService extends BaseHttpService {
|
|
6
6
|
constructor(http: HttpClient, injector: Injector);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
1
2
|
import { Injector } from '@angular/core';
|
|
2
3
|
import { BaseHttpService } from './base-http.service';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class MainApiHttpService extends BaseHttpService {
|
|
6
6
|
constructor(http: HttpClient, injector: Injector);
|
|
@@ -7,9 +7,9 @@ export declare class NotificationService {
|
|
|
7
7
|
private readonly api;
|
|
8
8
|
private readonly toastrService;
|
|
9
9
|
private readonly socketService;
|
|
10
|
+
private readonly notificationSubject$;
|
|
10
11
|
endpoint: string;
|
|
11
12
|
constructor(api: MainApiHttpService, toastrService: CustomToastService, socketService: WebsocketService);
|
|
12
|
-
private readonly notificationSubject$;
|
|
13
13
|
getNotifications(paging?: Paging): import("rxjs").Observable<any>;
|
|
14
14
|
getDismissedNotifications(paging?: Paging): import("rxjs").Observable<any>;
|
|
15
15
|
showNotifications(data: any): void;
|
|
@@ -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 hasProductPermission;
|
|
12
13
|
private getFormattedPermissionName;
|
|
13
14
|
getPermissionTreeDataByRole(data: any): {
|
|
14
15
|
permissions: any[];
|
package/lib/profile.service.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MainApiHttpService } from './main-api-http.service';
|
|
2
1
|
import { AddProjectPicturesData, ProfileData } from './common-services.interface';
|
|
2
|
+
import { MainApiHttpService } from './main-api-http.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ProfileService {
|
|
5
5
|
private readonly api;
|
package/lib/sentry.service.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
2
|
import { ErrorHandler } from '@angular/core';
|
|
3
|
-
import { User } from '@posiwise/common-utilities';
|
|
4
3
|
import { AppConfigService } from '@posiwise/app-config-service';
|
|
4
|
+
import { User } from '@posiwise/common-utilities';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class SentryErrorHandler implements ErrorHandler {
|
|
7
7
|
private readonly appConfigService;
|
package/lib/socket.service.d.ts
CHANGED
package/lib/user.service.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Router } from '@angular/router';
|
|
2
|
-
import { Store } from '@ngrx/store';
|
|
3
2
|
import { AppState, UserState } from '@posiwise/app-store';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
3
|
import { Paging, User } from '@posiwise/common-utilities';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { Store } from '@ngrx/store';
|
|
6
6
|
import { MainApiHttpService } from './main-api-http.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class UserService {
|