@posiwise/common-services 0.2.15 → 0.2.18

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.
Files changed (49) hide show
  1. package/fesm2022/posiwise-common-services.mjs +231 -135
  2. package/fesm2022/posiwise-common-services.mjs.map +1 -1
  3. package/package.json +11 -11
  4. package/types/posiwise-common-services.d.ts +1187 -0
  5. package/index.d.ts +0 -43
  6. package/lib/ab-test.service.d.ts +0 -27
  7. package/lib/ahoy.service.d.ts +0 -21
  8. package/lib/auth.service.d.ts +0 -105
  9. package/lib/base-http.service.d.ts +0 -23
  10. package/lib/brain-api-http.service.d.ts +0 -10
  11. package/lib/brain.service.d.ts +0 -15
  12. package/lib/common-services.interface.d.ts +0 -161
  13. package/lib/common-services.module.d.ts +0 -9
  14. package/lib/common.service.d.ts +0 -39
  15. package/lib/custom-preloading.service.d.ts +0 -13
  16. package/lib/dashboard.service.d.ts +0 -9
  17. package/lib/data.service.d.ts +0 -8
  18. package/lib/date-formatter.service.d.ts +0 -10
  19. package/lib/effects/user.effects.d.ts +0 -12
  20. package/lib/form-helper.service.d.ts +0 -6
  21. package/lib/geo.service.d.ts +0 -14
  22. package/lib/google-analytics.service.d.ts +0 -40
  23. package/lib/group.service.d.ts +0 -37
  24. package/lib/hopscotch.service.d.ts +0 -25
  25. package/lib/integrations-api-http.service.d.ts +0 -10
  26. package/lib/link-loader.service.d.ts +0 -28
  27. package/lib/local-storage.service.d.ts +0 -11
  28. package/lib/logo-caching.service.d.ts +0 -11
  29. package/lib/mailbox.service.d.ts +0 -19
  30. package/lib/main-api-http.service.d.ts +0 -10
  31. package/lib/notification.service.d.ts +0 -23
  32. package/lib/number-picker.service.d.ts +0 -33
  33. package/lib/permission.service.d.ts +0 -52
  34. package/lib/primeNgHelper.d.ts +0 -4
  35. package/lib/product.service.d.ts +0 -24
  36. package/lib/profile.service.d.ts +0 -28
  37. package/lib/qualification.service.d.ts +0 -12
  38. package/lib/script-loader.service.d.ts +0 -13
  39. package/lib/secure-token-storage.service.d.ts +0 -94
  40. package/lib/sentry.service.d.ts +0 -61
  41. package/lib/seo.service.d.ts +0 -16
  42. package/lib/socket.service.d.ts +0 -13
  43. package/lib/subscription.service.d.ts +0 -40
  44. package/lib/tag.service.d.ts +0 -25
  45. package/lib/tips.service.d.ts +0 -15
  46. package/lib/toast.service.d.ts +0 -15
  47. package/lib/user.service.d.ts +0 -64
  48. package/lib/validation.service.d.ts +0 -15
  49. package/lib/window.service.d.ts +0 -10
@@ -1,10 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Injector } from '@angular/core';
3
- import { BaseHttpService } from './base-http.service';
4
- import * as i0 from "@angular/core";
5
- export declare class IntegrationsApiHttpService extends BaseHttpService {
6
- constructor(http: HttpClient, injector: Injector);
7
- getConfig(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<IntegrationsApiHttpService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<IntegrationsApiHttpService>;
10
- }
@@ -1,28 +0,0 @@
1
- import { RendererFactory2 } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class LinkService {
4
- private readonly rendererFactory;
5
- private readonly document;
6
- constructor(rendererFactory: RendererFactory2, document: any);
7
- /**
8
- * Inject the State into the bottom of the <head>
9
- */
10
- addTag(tag: LinkDefinition, _forceCreation?: boolean): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<LinkService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<LinkService>;
13
- }
14
- declare type LinkDefinition = {
15
- charset?: string;
16
- crossorigin?: string;
17
- href?: string;
18
- hreflang?: string;
19
- media?: string;
20
- rel?: string;
21
- rev?: string;
22
- sizes?: string;
23
- target?: string;
24
- type?: string;
25
- } & {
26
- [prop: string]: string;
27
- };
28
- export {};
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class LocalStorage {
3
- getItem$(key: string): import("rxjs").Observable<string>;
4
- setItem$(key: string, value: string): import("rxjs").Observable<void>;
5
- removeItem$(key: string): import("rxjs").Observable<void>;
6
- clear$(): import("rxjs").Observable<void>;
7
- clearAll(): void;
8
- getItem(key: string): string;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorage, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorage>;
11
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class LogoCacheService {
3
- private cache;
4
- private loadingUrls;
5
- constructor();
6
- getLogo(url: string): string;
7
- private saveCache;
8
- private loadCache;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<LogoCacheService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<LogoCacheService>;
11
- }
@@ -1,19 +0,0 @@
1
- import { MainApiHttpService } from './main-api-http.service';
2
- import * as i0 from "@angular/core";
3
- export declare class MailBoxService {
4
- private readonly http;
5
- private readonly endpoint;
6
- private readonly checkUnreadCountSubject;
7
- totalUnreadCount$: import("rxjs").Observable<number>;
8
- constructor(http: MainApiHttpService);
9
- getMessages(conversation_id: any, page_number?: number, page_size?: number): import("rxjs").Observable<any>;
10
- getConversations(): import("rxjs").Observable<any>;
11
- postMessage(data: any): import("rxjs").Observable<any>;
12
- markAsRead(conversation_id: any): import("rxjs").Observable<any>;
13
- decrementUnreadCount(count: number): void;
14
- incrementUnreadCount(count: number): void;
15
- deleteMessage(conversationId: any, messageId: any): import("rxjs").Observable<any>;
16
- getRecipient(params?: {}): import("rxjs").Observable<any>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<MailBoxService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<MailBoxService>;
19
- }
@@ -1,10 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Injector } from '@angular/core';
3
- import { BaseHttpService } from './base-http.service';
4
- import * as i0 from "@angular/core";
5
- export declare class MainApiHttpService extends BaseHttpService {
6
- constructor(http: HttpClient, injector: Injector);
7
- getConfig(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<MainApiHttpService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<MainApiHttpService>;
10
- }
@@ -1,23 +0,0 @@
1
- import { Paging } from '@posiwise/common-utilities';
2
- import { MainApiHttpService } from './main-api-http.service';
3
- import { WebsocketService } from './socket.service';
4
- import { CustomToastService } from './toast.service';
5
- import * as i0 from "@angular/core";
6
- export declare class NotificationService {
7
- private readonly api;
8
- private readonly toastrService;
9
- private readonly socketService;
10
- private readonly notificationSubject$;
11
- endpoint: string;
12
- constructor(api: MainApiHttpService, toastrService: CustomToastService, socketService: WebsocketService);
13
- getNotifications(paging?: Paging): import("rxjs").Observable<any>;
14
- getDismissedNotifications(paging?: Paging): import("rxjs").Observable<any>;
15
- showNotifications(data: any): void;
16
- readNotifications(): import("rxjs").Observable<any>;
17
- dismissNotification(id: number): import("rxjs").Observable<string>;
18
- deleteNotifications(id: number): import("rxjs").Observable<any>;
19
- reinstateNotification(id: number): import("rxjs").Observable<any>;
20
- notiWebSocket(): import("rxjs").Observable<any>;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
23
- }
@@ -1,33 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class NumberPickerService {
3
- /**
4
- * Min picker value
5
- */
6
- min: number;
7
- /**
8
- * Max picker value
9
- */
10
- max: number;
11
- /**
12
- * Pick step value
13
- */
14
- step: number;
15
- /**
16
- * Delay for start picking values
17
- */
18
- pickStartAfter: number;
19
- /**
20
- * Delay between each pick
21
- */
22
- pickTimer: number;
23
- /**
24
- * value precision
25
- */
26
- precision: number;
27
- /**
28
- * Initial picker value
29
- */
30
- value: any;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<NumberPickerService, never>;
32
- static ɵprov: i0.ɵɵInjectableDeclaration<NumberPickerService>;
33
- }
@@ -1,52 +0,0 @@
1
- import { User } from '@posiwise/common-utilities';
2
- import { MainApiHttpService } from './main-api-http.service';
3
- import * as i0 from "@angular/core";
4
- export declare class PermissionService {
5
- private readonly api;
6
- static selectedProduct: any;
7
- static selectedSubscription: any;
8
- user: User;
9
- constructor(api: MainApiHttpService);
10
- setCurrentSubscription(subscription: any): void;
11
- isGranted(permissionName: string, productKey?: any, permission_key?: any, productSlug?: any): boolean;
12
- private hasAnyGrantedPermission;
13
- handleProductKey(productKey: any, user: any, permission_key: any, permissionName: any): any;
14
- private getFormattedPermissionName;
15
- getPermissionTreeDataByRole(data: any): {
16
- permissions: any[];
17
- grantedPermissionNames: string[];
18
- };
19
- evaluatePermissions(permission: string, productKey?: string, permission_key?: string, productSlug?: string): boolean;
20
- /** Safe boolean expression parser - replaces eval() for CSP compliance. */
21
- private evaluateBooleanExpression;
22
- handleNonBooleanPermissions(permission: any, expr: any, productKey: any, permission_key: any, productSlug: any): any;
23
- getPermissionByRole(roleId: number): import("rxjs").Observable<any>;
24
- saveUserPermission(payload: any): import("rxjs").Observable<any>;
25
- /**
26
- * determine user is super_admin using user.auth.granted['Pages.SuperAdmin']
27
- */
28
- isSuperAdmin(): boolean;
29
- /**
30
- * Any Product Admin regardless of the product being master product or not.
31
- */
32
- isUserSubscriptionOwner(product?: any): boolean;
33
- /**
34
- * Any Product Admin regardless of the product being master product or not.
35
- * *rbacAllow="SubscriptionAdmin"
36
- * @returns
37
- */
38
- isUserSubscriptionAdmin(product?: any): boolean;
39
- /**
40
- * Any Product Admin of the product being the master product
41
- */
42
- isUserSubscriptionSuperAdmin(product?: any): boolean;
43
- isUserMasterSubscriptionSuperAdmin(product?: any): boolean;
44
- /**
45
- * Any Product Admin of the product being the master product
46
- */
47
- isUserSubscriptionSuperOwner(product?: any): boolean;
48
- setCurrentProduct(product: any): void;
49
- getCurrentProduct(): any;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<PermissionService, never>;
51
- static ɵprov: i0.ɵɵInjectableDeclaration<PermissionService>;
52
- }
@@ -1,4 +0,0 @@
1
- export declare class PrimeNgHelper {
2
- isLoading: boolean;
3
- static dropdownDataSource(dataSource: any, label: any, value: any): any[];
4
- }
@@ -1,24 +0,0 @@
1
- import { Paging } from '@posiwise/common-utilities';
2
- import { MainApiHttpService } from './main-api-http.service';
3
- import * as i0 from "@angular/core";
4
- export declare class ProductService {
5
- private readonly api;
6
- private readonly endpoint;
7
- constructor(api: MainApiHttpService);
8
- deleteProduct(id: number, subscription_id: number): import("rxjs").Observable<any>;
9
- updateProduct(data: any, id: number): import("rxjs").Observable<any>;
10
- addProduct(data: any): import("rxjs").Observable<any>;
11
- inviteForTrial(id: number, body: any, subscription_id: number): import("rxjs").Observable<any>;
12
- getProductList(paging?: Paging, subscription_id?: number, params?: any): import("rxjs").Observable<any>;
13
- getSupportedCurrency(): import("rxjs").Observable<any>;
14
- getSupportedRegions(): import("rxjs").Observable<any>;
15
- getProducts(params: any): import("rxjs").Observable<any>;
16
- getProductById(id: number): import("rxjs").Observable<any>;
17
- getProductCategories(): import("rxjs").Observable<any>;
18
- getProductInsight(subscriptionId: number, starting_at?: string, ending_at?: string): import("rxjs").Observable<any>;
19
- getUsersForProduct(id: number, subscription_id: number): import("rxjs").Observable<any>;
20
- getAvailableStripeUnsubscribeBehaviors(subscription_id?: number): import("rxjs").Observable<any>;
21
- getAvailableStripeProrationBehaviors(subscription_id?: number): import("rxjs").Observable<any>;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<ProductService, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<ProductService>;
24
- }
@@ -1,28 +0,0 @@
1
- import { AddProjectPicturesData, ProfileData } from './common-services.interface';
2
- import { MainApiHttpService } from './main-api-http.service';
3
- import * as i0 from "@angular/core";
4
- export declare class ProfileService {
5
- private readonly api;
6
- private readonly endpoint;
7
- constructor(api: MainApiHttpService);
8
- updateUserProfile(user: ProfileData): import("rxjs").Observable<any>;
9
- getUserProfile(slug: string): import("rxjs").Observable<any>;
10
- getUserObject(objectType: string, slug: string): import("rxjs").Observable<any>;
11
- getProjects(slug: string): import("rxjs").Observable<any>;
12
- addProjects(data: {
13
- [key: string]: string;
14
- }): import("rxjs").Observable<any>;
15
- updateProjects(id: number, data: {
16
- [key: string]: string;
17
- }): import("rxjs").Observable<any>;
18
- deleteProject(id: number): import("rxjs").Observable<any>;
19
- addProjectPictures(data: AddProjectPicturesData): import("rxjs").Observable<any>;
20
- getProjectPictures(slug: string): import("rxjs").Observable<any>;
21
- deletePicture(projectId: number): import("rxjs").Observable<any>;
22
- postProjectRecommendation(data: object): import("rxjs").Observable<any>;
23
- postLinks(data: {
24
- [key: string]: string;
25
- }): import("rxjs").Observable<any>;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
27
- static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
28
- }
@@ -1,12 +0,0 @@
1
- import { MainApiHttpService } from './main-api-http.service';
2
- import * as i0 from "@angular/core";
3
- export declare class QualificationService {
4
- private readonly api;
5
- private readonly endPoint;
6
- constructor(api: MainApiHttpService);
7
- addQualifications(data: any): import("rxjs").Observable<any>;
8
- updateQualifications(id: number, data: any): import("rxjs").Observable<any>;
9
- deleteQualifications(id: number): import("rxjs").Observable<any>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<QualificationService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<QualificationService>;
12
- }
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ScriptLoaderService {
3
- private readonly document;
4
- private _scripts;
5
- constructor(document: Document);
6
- private getCspNonce;
7
- load(tag: any, ...scripts: string[]): Promise<object[]>;
8
- loadScripts(tag: any, scripts: any, loadOnce?: boolean): Promise<object[]>;
9
- loadScript(tag: any, src: string, loadOnce?: boolean): Promise<unknown>;
10
- loadStyle(styleUrl: string): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ScriptLoaderService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<ScriptLoaderService>;
13
- }
@@ -1,94 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Secure Token Storage Service
5
- *
6
- * This service provides secure token storage using memory + secure cookies.
7
- * NO localStorage usage - tokens are stored only in memory and secure cookies.
8
- *
9
- * Security Features:
10
- * - Memory storage (primary) - not persistent across refreshes
11
- * - Secure cookies (backup) - with SameSite=Strict protection
12
- * - No localStorage - prevents XSS token theft
13
- * - Secure flag for HTTPS
14
- * - CSRF protection via SameSite cookies
15
- */
16
- export declare class SecureTokenStorageService {
17
- private readonly document;
18
- private readonly TOKEN_COOKIE_NAME;
19
- private readonly IMPERSONATED_TOKEN_COOKIE_NAME;
20
- private readonly PHONEGAP_TOKEN_COOKIE_NAME;
21
- private readonly memoryStorage;
22
- private readonly tokenSubject;
23
- private readonly impersonatedTokenSubject;
24
- private readonly phonegapTokenSubject;
25
- constructor(document: Document);
26
- /**
27
- * Store authentication token securely
28
- */
29
- storeToken(token: string): Observable<boolean>;
30
- /**
31
- * Store impersonated user token
32
- */
33
- storeImpersonatedToken(token: string): Observable<boolean>;
34
- /**
35
- * Store phonegap impersonated token
36
- */
37
- storePhonegapToken(token: string): Observable<boolean>;
38
- /**
39
- * Get authentication token
40
- */
41
- getToken(): string | null;
42
- /**
43
- * Get impersonated token
44
- */
45
- getImpersonatedToken(): string | null;
46
- /**
47
- * Get phonegap token
48
- */
49
- getPhonegapToken(): string | null;
50
- /**
51
- * Get token as Observable
52
- */
53
- getToken$(): Observable<string | null>;
54
- /**
55
- * Get impersonated token as Observable
56
- */
57
- getImpersonatedToken$(): Observable<string | null>;
58
- /**
59
- * Get phonegap token as Observable
60
- */
61
- getPhonegapToken$(): Observable<string | null>;
62
- /**
63
- * Remove all tokens
64
- */
65
- clearTokens(): Observable<boolean>;
66
- /**
67
- * Remove specific token
68
- */
69
- removeToken(): Observable<boolean>;
70
- /**
71
- * Remove impersonated tokens
72
- */
73
- removeImpersonatedTokens(): Observable<boolean>;
74
- /**
75
- * Set secure cookie
76
- * Note: HttpOnly cannot be set from client-side JavaScript
77
- * For maximum security, backend should set httpOnly cookies
78
- */
79
- private setSecureCookie;
80
- /**
81
- * Get cookie value
82
- */
83
- private getCookieValue;
84
- /**
85
- * Delete cookie
86
- */
87
- private deleteCookie;
88
- /**
89
- * Initialize tokens from storage on service startup
90
- */
91
- private initializeTokens;
92
- static ɵfac: i0.ɵɵFactoryDeclaration<SecureTokenStorageService, never>;
93
- static ɵprov: i0.ɵɵInjectableDeclaration<SecureTokenStorageService>;
94
- }
@@ -1,61 +0,0 @@
1
- import { HttpErrorResponse } from '@angular/common/http';
2
- import { ErrorHandler } from '@angular/core';
3
- import { AppConfigService } from '@posiwise/app-config-service';
4
- import { User } from '@posiwise/common-utilities';
5
- import * as i0 from "@angular/core";
6
- export declare class SentryErrorHandler implements ErrorHandler {
7
- private readonly appConfigService;
8
- private static user;
9
- private static sentryInitialized;
10
- private static unhandledRejectionListenerAttached;
11
- constructor(appConfigService: AppConfigService);
12
- private initializeSentryAsync;
13
- private getSentryConfigAsync;
14
- initializeUser(user: Partial<User>): void;
15
- private handlePromiseRejection;
16
- handleError(incomingError: HttpErrorResponse | Error): void;
17
- handleExceptionError(incomingError: any): void;
18
- extractOriginalError(error: any, incomingError: any): void;
19
- getErrorMessage(error: any): string;
20
- handleNonHttpErrorResponse(error: any): void;
21
- errorMessageFormatter(error: any): void;
22
- sentryInitialization(error: any, incomingError: any): void;
23
- private logToSentry;
24
- private scopeWithSentry;
25
- /**
26
- * Classifies the error type for proper Sentry tagging
27
- * This prevents "unlabeled events" by ensuring all events have a classification
28
- */
29
- private classifyError;
30
- /**
31
- * Classifies object-type errors
32
- */
33
- private classifyObjectError;
34
- /**
35
- * Determines error type classification based on the 'type' property
36
- */
37
- private classifyErrorByType;
38
- private isEdgeSyntheticEvent;
39
- private handleNonStandardError;
40
- private handleUnlabeledEvent;
41
- /**
42
- * Filters Sentry events before sending — extracted from beforeSend config
43
- * to reduce cognitive complexity (S3776).
44
- *
45
- * Drops or filters exception values for known noisy/irrelevant error types:
46
- * CloseEvent, ResizeObserver, JSON parsing, ChunkLoadError, script loading,
47
- * plotly timeout, cross-origin frame, non-error exceptions, and Edge synthetic events.
48
- */
49
- private static beforeSendFilter;
50
- /**
51
- * Filters out known noisy exception values in a single pass.
52
- */
53
- private static filterExceptionValues;
54
- /**
55
- * Determines whether the entire event should be dropped (return truthy to drop).
56
- */
57
- private static shouldDropEvent;
58
- private logToConsole;
59
- static ɵfac: i0.ɵɵFactoryDeclaration<SentryErrorHandler, never>;
60
- static ɵprov: i0.ɵɵInjectableDeclaration<SentryErrorHandler>;
61
- }
@@ -1,16 +0,0 @@
1
- import { Meta, Title } from '@angular/platform-browser';
2
- import * as i0 from "@angular/core";
3
- export declare class SeoService {
4
- private readonly meta;
5
- private readonly titleService;
6
- constructor(meta: Meta, titleService: Title);
7
- /**
8
- * Set SEO metadata for a page
9
- * @param title - Page title
10
- * @param description - Meta description
11
- * @param keywords - Meta keywords (optional)
12
- */
13
- setSEO(title: string, description: string, keywords?: string): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<SeoService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<SeoService>;
16
- }
@@ -1,13 +0,0 @@
1
- import { AppConfigService } from '@posiwise/app-config-service';
2
- import { Observable } from 'rxjs';
3
- import { AuthService } from './auth.service';
4
- import * as i0 from "@angular/core";
5
- export declare class WebsocketService {
6
- private readonly appConfigService;
7
- private readonly authService;
8
- private webSocketSubject;
9
- webSocket$: Observable<any>;
10
- constructor(appConfigService: AppConfigService, authService: AuthService);
11
- static ɵfac: i0.ɵɵFactoryDeclaration<WebsocketService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<WebsocketService>;
13
- }
@@ -1,40 +0,0 @@
1
- import { Paging, Subscription } from '@posiwise/common-utilities';
2
- import { MainApiHttpService } from './main-api-http.service';
3
- import * as i0 from "@angular/core";
4
- export declare class SubscriptionService {
5
- private readonly api;
6
- endpoint: string;
7
- constructor(api: MainApiHttpService);
8
- getById(id: number): import("rxjs").Observable<any>;
9
- deleteSubscription(id: number, reqJson: object): import("rxjs").Observable<any>;
10
- getSubscriptions(id: number): import("rxjs").Observable<any>;
11
- postSubscription(data: Partial<Subscription>): import("rxjs").Observable<any>;
12
- updateSubscription(id: number, data: Partial<Subscription>): import("rxjs").Observable<any>;
13
- updateSubscriptionUnit(id: number, units: any): import("rxjs").Observable<any>;
14
- addPartnersToSubscription(id: number, data: any): import("rxjs").Observable<any>;
15
- getProductList(paging?: Paging, subscription_id?: number, _params?: any): import("rxjs").Observable<any>;
16
- removePartner(id: number, partner_id: number): import("rxjs").Observable<any>;
17
- deactivatePartner(id: number, data: any): import("rxjs").Observable<any>;
18
- addMembersToSubscription(id: number, data: any): import("rxjs").Observable<any>;
19
- signUpMemberUrl(id: number): string;
20
- getEnrolledSubscription(id: number, paging?: Paging): import("rxjs").Observable<any>;
21
- removeEnrolledSubscription(id: number, user_id: number): import("rxjs").Observable<any>;
22
- toggleAdmin(id: number, data: any): import("rxjs").Observable<any>;
23
- updateSubscriptionAPIKey(id: number): import("rxjs").Observable<any>;
24
- refreshApiTokens(id: number): import("rxjs").Observable<any>;
25
- addFullLogo(id: number, data: any): import("rxjs").Observable<any>;
26
- addSquaredLogo(id: number, data: any): import("rxjs").Observable<any>;
27
- getCardDetails(subscriptionId: number): import("rxjs").Observable<any>;
28
- updateCardDetails(data: {
29
- [key: string]: string;
30
- }, subscription_id: number): import("rxjs").Observable<any>;
31
- getEnterpriseInsight(subscriptionId: number, starting_at?: string, ending_at?: string): import("rxjs").Observable<any>;
32
- postSubscriptionCredential(data: any): import("rxjs").Observable<any>;
33
- editSubscriptionCredential(id: number, data: any): import("rxjs").Observable<any>;
34
- getAllSubscriptionCredentials(subscription_id: number, paging?: Paging): import("rxjs").Observable<any>;
35
- getAllSubscriptionPartners(subscription_id: number, paging?: Paging): import("rxjs").Observable<any>;
36
- deleteSubscriptionCredential(id: number, subscriptionId: number): import("rxjs").Observable<any>;
37
- getAllCredentials(paging?: Paging): import("rxjs").Observable<any>;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionService, never>;
39
- static ɵprov: i0.ɵɵInjectableDeclaration<SubscriptionService>;
40
- }
@@ -1,25 +0,0 @@
1
- import { Paging } from '@posiwise/common-utilities';
2
- import { MainApiHttpService } from './main-api-http.service';
3
- import * as i0 from "@angular/core";
4
- export declare class TagService {
5
- private readonly api;
6
- ADMIN_TAG_PATH: string;
7
- ADMIN_TAG_CATEGORIES_PATH: string;
8
- ADMIN_PATH: string;
9
- constructor(api: MainApiHttpService);
10
- deleteTagById(id: number, subscription_id: number): import("rxjs").Observable<any>;
11
- updateTagById(id: number, data: any): import("rxjs").Observable<any>;
12
- addAdminTag(data: any): import("rxjs").Observable<any>;
13
- getTagsByType(tag_type: string, paging: Paging, subscription_id?: number): import("rxjs").Observable<any>;
14
- getAvailableTagType(subscription_id: number): import("rxjs").Observable<any>;
15
- addTags(data: any, subscription_id?: number): import("rxjs").Observable<any>;
16
- getTagsByEntity(slug: string, tag_entity: string, tag_type: string, subscription_id?: number): import("rxjs").Observable<any>;
17
- getGroupedSkills(slug: string, tagEntity: string, tagType: string): import("rxjs").Observable<any>;
18
- getTagCategories(params: Paging, subscription_id: number): import("rxjs").Observable<any>;
19
- getAllTagCategories(params: Paging, subscription_id: number): import("rxjs").Observable<any>;
20
- deleteTagCategoryById(id: number, subscription_id: number): import("rxjs").Observable<any>;
21
- updateTagCategoryById(id: number, data: any, subscription_id: number): import("rxjs").Observable<any>;
22
- addTagCategoryById(data: any, subscription_id: number): import("rxjs").Observable<any>;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<TagService, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<TagService>;
25
- }
@@ -1,15 +0,0 @@
1
- import { Paging } from '@posiwise/common-utilities';
2
- import { MainApiHttpService } from './main-api-http.service';
3
- import * as i0 from "@angular/core";
4
- export declare class TipsService {
5
- private readonly api;
6
- endpoint: string;
7
- constructor(api: MainApiHttpService);
8
- getAll(subscription_id: number, paging?: Paging): import("rxjs").Observable<any>;
9
- getById(id: number, subscription_id: number): import("rxjs").Observable<any>;
10
- saveTips(id: number, data: any, subscription_id: number): import("rxjs").Observable<any>;
11
- addTips(data: any, subscription_id: number): import("rxjs").Observable<any>;
12
- addUserTips(data: any, subscription_id?: number): import("rxjs").Observable<any>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<TipsService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<TipsService>;
15
- }
@@ -1,15 +0,0 @@
1
- import { IndividualConfig, ToastrService } from 'ngx-toastr';
2
- import * as i0 from "@angular/core";
3
- export declare class CustomToastService {
4
- private readonly toastr;
5
- constructor(toastr: ToastrService);
6
- success(message: string, title?: string, options?: Partial<IndividualConfig>): void;
7
- error(message: string, title?: string, options?: Partial<IndividualConfig>): void;
8
- info(message: string, title?: string, options?: Partial<IndividualConfig>): void;
9
- warning(message: string, title?: string, options?: Partial<IndividualConfig>): void;
10
- showToast(errorResponse: any): void;
11
- clear(): void;
12
- showToastrOnType(type: string, message: string): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomToastService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<CustomToastService>;
15
- }
@@ -1,64 +0,0 @@
1
- import { Router } from '@angular/router';
2
- import { AppConfigService } from '@posiwise/app-config-service';
3
- import { AppState, UserState } from '@posiwise/app-store';
4
- import { Paging, User } from '@posiwise/common-utilities';
5
- import { Observable } from 'rxjs';
6
- import { Store } from '@ngrx/store';
7
- import { MainApiHttpService } from './main-api-http.service';
8
- import { ProfileService } from './profile.service';
9
- import { CustomToastService } from './toast.service';
10
- import * as i0 from "@angular/core";
11
- export declare class UserService {
12
- private readonly api;
13
- private readonly store;
14
- private readonly router;
15
- private readonly appConfigService;
16
- private readonly profileService;
17
- private readonly toast;
18
- private readonly endpoint;
19
- private isTosModalOpen;
20
- constructor(api: MainApiHttpService, store: Store<AppState>, router: Router, appConfigService: AppConfigService, profileService: ProfileService, toast: CustomToastService);
21
- getUserState(): Observable<UserState>;
22
- getUserInfo(): Observable<User>;
23
- /**
24
- * Ensure the current user has accepted the latest Terms of Service for this domain.
25
- * If the domain has a newer TOS version than the user's accepted timestamp, a blocking
26
- * SweetAlert2 modal is shown that forces the user to accept before continuing.
27
- */
28
- private checkAndHandleTosAcceptance;
29
- private handleTosAcceptanceError;
30
- followUser(id: number): Observable<any>;
31
- sendSSOActivationEmail(): Observable<any>;
32
- updateSlug(slug: string): Observable<any>;
33
- getCurrentUserObject(object_type: string): Observable<any>;
34
- updateEmail(data: {
35
- [key: string]: string;
36
- }): Observable<any>;
37
- checkPassword(data: {
38
- password: string;
39
- }): Observable<any>;
40
- confirmUser(confirmation_token: string, email: string, password: string, password_confirmation: string): Observable<any>;
41
- checkTokenValidity(type: string, token: string, email: string): Observable<any>;
42
- getUserNotifications(): Observable<any>;
43
- addAvatar(file: File): Observable<any>;
44
- createTwoFactorAuthenticator(): Observable<any>;
45
- verifyTwoFactorAuthenticator(google_code: string): Observable<any>;
46
- enableTwoFactorAuthenticator(google_code: string): Observable<any>;
47
- disableTwoFactorAuthenticator(): Observable<any>;
48
- validateNewEmail(confirmationToken: string): Observable<any>;
49
- getUserSubscriptions(id: number): Observable<any>;
50
- addNewSubscriptionUsingStripe(data: any): Observable<any>;
51
- updatePassword(data: {
52
- password: string;
53
- password_confirmation: string;
54
- old_password: string;
55
- }): Observable<any>;
56
- getUserInvoices(paging: Paging, id: number): Observable<any>;
57
- postTipsDisregarded(data: {
58
- tip_id: number;
59
- disregarded: boolean;
60
- }): Observable<any>;
61
- refreshUserApiTokens(): Observable<any>;
62
- static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
63
- static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
64
- }