@posiwise/common-services 0.2.14 → 0.2.16
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/fesm2022/posiwise-common-services.mjs +271 -135
- package/fesm2022/posiwise-common-services.mjs.map +1 -1
- package/package.json +8 -8
- package/types/posiwise-common-services.d.ts +1187 -0
- package/index.d.ts +0 -43
- package/lib/ab-test.service.d.ts +0 -27
- package/lib/ahoy.service.d.ts +0 -21
- package/lib/auth.service.d.ts +0 -83
- package/lib/base-http.service.d.ts +0 -23
- package/lib/brain-api-http.service.d.ts +0 -10
- package/lib/brain.service.d.ts +0 -15
- package/lib/common-services.interface.d.ts +0 -161
- package/lib/common-services.module.d.ts +0 -9
- package/lib/common.service.d.ts +0 -39
- package/lib/custom-preloading.service.d.ts +0 -13
- package/lib/dashboard.service.d.ts +0 -9
- package/lib/data.service.d.ts +0 -8
- package/lib/date-formatter.service.d.ts +0 -10
- package/lib/effects/user.effects.d.ts +0 -12
- package/lib/form-helper.service.d.ts +0 -6
- package/lib/geo.service.d.ts +0 -14
- package/lib/google-analytics.service.d.ts +0 -40
- package/lib/group.service.d.ts +0 -37
- package/lib/hopscotch.service.d.ts +0 -25
- package/lib/integrations-api-http.service.d.ts +0 -10
- package/lib/link-loader.service.d.ts +0 -28
- package/lib/local-storage.service.d.ts +0 -11
- package/lib/logo-caching.service.d.ts +0 -11
- package/lib/mailbox.service.d.ts +0 -19
- package/lib/main-api-http.service.d.ts +0 -10
- package/lib/notification.service.d.ts +0 -23
- package/lib/number-picker.service.d.ts +0 -33
- package/lib/permission.service.d.ts +0 -52
- package/lib/primeNgHelper.d.ts +0 -4
- package/lib/product.service.d.ts +0 -24
- package/lib/profile.service.d.ts +0 -28
- package/lib/qualification.service.d.ts +0 -12
- package/lib/script-loader.service.d.ts +0 -13
- package/lib/secure-token-storage.service.d.ts +0 -94
- package/lib/sentry.service.d.ts +0 -61
- package/lib/seo.service.d.ts +0 -16
- package/lib/socket.service.d.ts +0 -13
- package/lib/subscription.service.d.ts +0 -40
- package/lib/tag.service.d.ts +0 -25
- package/lib/tips.service.d.ts +0 -15
- package/lib/toast.service.d.ts +0 -15
- package/lib/user.service.d.ts +0 -64
- package/lib/validation.service.d.ts +0 -15
- package/lib/window.service.d.ts +0 -10
package/index.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export * from './lib/google-analytics.service';
|
|
2
|
-
export * from './lib/script-loader.service';
|
|
3
|
-
export * from './lib/base-http.service';
|
|
4
|
-
export * from './lib/common-services.module';
|
|
5
|
-
export * from './lib/seo.service';
|
|
6
|
-
export * from './lib/main-api-http.service';
|
|
7
|
-
export * from './lib/permission.service';
|
|
8
|
-
export * from './lib/toast.service';
|
|
9
|
-
export * from './lib/auth.service';
|
|
10
|
-
export * from './lib/local-storage.service';
|
|
11
|
-
export * from './lib/secure-token-storage.service';
|
|
12
|
-
export * from './lib/integrations-api-http.service';
|
|
13
|
-
export * from './lib/link-loader.service';
|
|
14
|
-
export * from './lib/user.service';
|
|
15
|
-
export * from './lib/custom-preloading.service';
|
|
16
|
-
export * from './lib/ab-test.service';
|
|
17
|
-
export * from './lib/geo.service';
|
|
18
|
-
export * from './lib/profile.service';
|
|
19
|
-
export * from './lib/subscription.service';
|
|
20
|
-
export * from './lib/product.service';
|
|
21
|
-
export * from './lib/validation.service';
|
|
22
|
-
export * from './lib/form-helper.service';
|
|
23
|
-
export * from './lib/ahoy.service';
|
|
24
|
-
export * from './lib/common.service';
|
|
25
|
-
export * from './lib/date-formatter.service';
|
|
26
|
-
export * from './lib/primeNgHelper';
|
|
27
|
-
export * from './lib/tag.service';
|
|
28
|
-
export * from './lib/tips.service';
|
|
29
|
-
export * from './lib/window.service';
|
|
30
|
-
export * from './lib/group.service';
|
|
31
|
-
export * from './lib/qualification.service';
|
|
32
|
-
export * from './lib/dashboard.service';
|
|
33
|
-
export * from './lib/mailbox.service';
|
|
34
|
-
export * from './lib/notification.service';
|
|
35
|
-
export * from './lib/socket.service';
|
|
36
|
-
export * from './lib/effects/user.effects';
|
|
37
|
-
export * from './lib/data.service';
|
|
38
|
-
export * from './lib/number-picker.service';
|
|
39
|
-
export * from './lib/sentry.service';
|
|
40
|
-
export * from './lib/logo-caching.service';
|
|
41
|
-
export * from './lib/hopscotch.service';
|
|
42
|
-
export * from './lib/brain.service';
|
|
43
|
-
export * from './lib/brain-api-http.service';
|
package/lib/ab-test.service.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Injector } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AbTestService {
|
|
5
|
-
private readonly injector;
|
|
6
|
-
private readonly http;
|
|
7
|
-
constructor(injector: Injector, http: HttpClient);
|
|
8
|
-
/**
|
|
9
|
-
* POST: start or stop observable
|
|
10
|
-
* payload: {
|
|
11
|
-
"test_name": "my_first_experiment",
|
|
12
|
-
"action_type": "ab_test"
|
|
13
|
-
}
|
|
14
|
-
*/
|
|
15
|
-
getExperiment(test_name: string, action_type: string, service: unknown): any;
|
|
16
|
-
/**
|
|
17
|
-
* Finish the experiment and remove from the cookie app-store
|
|
18
|
-
*/
|
|
19
|
-
finishExperiment(test_name: string, service: unknown): any;
|
|
20
|
-
finishABExperiment(test_name: string, shard_name: unknown): import("rxjs").Observable<Object>;
|
|
21
|
-
/**
|
|
22
|
-
* dynamically loads the microservice
|
|
23
|
-
*/
|
|
24
|
-
private getServiceInstance;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbTestService, never>;
|
|
26
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AbTestService>;
|
|
27
|
-
}
|
package/lib/ahoy.service.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import { Injector } from '@angular/core';
|
|
3
|
-
import { Paging } from '@posiwise/common-utilities';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { AhoyEventResponse, AhoyMessageResponse, AhoyVersionResponse, AhoyVisitResponse, RequestParams, TrackEventResponse } from './common-services.interface';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class AhoyService {
|
|
8
|
-
private readonly http;
|
|
9
|
-
injector: Injector;
|
|
10
|
-
private readonly ahoy;
|
|
11
|
-
private readonly toast;
|
|
12
|
-
constructor(http: HttpClient, injector: Injector);
|
|
13
|
-
getAhoyEvents(params: RequestParams, service: any, paging: Paging): Observable<AhoyEventResponse>;
|
|
14
|
-
getAhoyMessages(params: RequestParams, service: any, paging: Paging): Observable<AhoyMessageResponse>;
|
|
15
|
-
getAhoyVisits(params: RequestParams, service: any, paging: Paging): Observable<AhoyVisitResponse>;
|
|
16
|
-
getVersions(params: RequestParams, service: any, paging: Paging): Observable<AhoyVersionResponse>;
|
|
17
|
-
getEvents(params: RequestParams, service: any, paging: Paging): Observable<TrackEventResponse>;
|
|
18
|
-
handleError(error: HttpErrorResponse): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AhoyService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AhoyService>;
|
|
21
|
-
}
|
package/lib/auth.service.d.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { AppConfigService } from '@posiwise/app-config-service';
|
|
4
|
-
import { SignUpValues } from './common-services.interface';
|
|
5
|
-
import { IntegrationsApiHttpService } from './integrations-api-http.service';
|
|
6
|
-
import { LocalStorage } from './local-storage.service';
|
|
7
|
-
import { MainApiHttpService } from './main-api-http.service';
|
|
8
|
-
import { SecureTokenStorageService } from './secure-token-storage.service';
|
|
9
|
-
import { CustomToastService } from './toast.service';
|
|
10
|
-
import { UserService } from './user.service';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class AuthService {
|
|
13
|
-
private readonly localStorage;
|
|
14
|
-
private readonly secureTokenStorage;
|
|
15
|
-
private readonly router;
|
|
16
|
-
private readonly http;
|
|
17
|
-
private readonly userService;
|
|
18
|
-
private readonly toastr;
|
|
19
|
-
private readonly appConfigService;
|
|
20
|
-
private readonly integrationsApi;
|
|
21
|
-
private readonly document;
|
|
22
|
-
private readonly platformSubject;
|
|
23
|
-
private readonly twitterEndpoint;
|
|
24
|
-
auth_token: string;
|
|
25
|
-
header_key: string;
|
|
26
|
-
platform: string;
|
|
27
|
-
platform$: import("rxjs").Observable<string>;
|
|
28
|
-
isUserPersonated: boolean;
|
|
29
|
-
constructor(localStorage: LocalStorage, secureTokenStorage: SecureTokenStorageService, router: Router, http: MainApiHttpService, userService: UserService, toastr: CustomToastService, appConfigService: AppConfigService, integrationsApi: IntegrationsApiHttpService, document: Document);
|
|
30
|
-
getToken(): string;
|
|
31
|
-
getImpersonatedToken(): string;
|
|
32
|
-
setHeaderKey(): void;
|
|
33
|
-
signUpUser(values: SignUpValues): import("rxjs").Observable<any>;
|
|
34
|
-
trialSignUp(data: object): import("rxjs").Observable<any>;
|
|
35
|
-
validateEmail(email: string): import("rxjs").Observable<any>;
|
|
36
|
-
forgotPassword(email: string, reset_path: string): import("rxjs").Observable<any>;
|
|
37
|
-
resetPassword(password: string, confirm_password: string, password_reset_token: string): import("rxjs").Observable<any>;
|
|
38
|
-
header(): HttpHeaders;
|
|
39
|
-
private getHeaderKey;
|
|
40
|
-
private getPlatform;
|
|
41
|
-
signInUser(email: string, password: string): import("rxjs").Observable<any>;
|
|
42
|
-
signInUserWith2Fa(email: string, password: string, google_code: any): import("rxjs").Observable<any>;
|
|
43
|
-
storeToken(token: string): import("rxjs").Observable<boolean>;
|
|
44
|
-
storePlatform(plat: string): import("rxjs").Observable<void>;
|
|
45
|
-
logout(): import("rxjs").Observable<any>;
|
|
46
|
-
/**
|
|
47
|
-
* Clear all authentication tokens
|
|
48
|
-
*/
|
|
49
|
-
clearTokens(): import("rxjs").Observable<boolean>;
|
|
50
|
-
/**
|
|
51
|
-
* Remove only impersonation tokens (not all tokens)
|
|
52
|
-
*/
|
|
53
|
-
removeImpersonationTokens(): import("rxjs").Observable<boolean>;
|
|
54
|
-
getToken$(): import("rxjs").Observable<string>;
|
|
55
|
-
getNewsletterSubscription(token: string): import("rxjs").Observable<any>;
|
|
56
|
-
unsubscribeNewsletter(token: string): import("rxjs").Observable<any>;
|
|
57
|
-
validateReCaptcha(token: string): import("rxjs").Observable<any>;
|
|
58
|
-
socialLogin(data: any): import("rxjs").Observable<any>;
|
|
59
|
-
twitterLogin(): import("rxjs").Observable<any>;
|
|
60
|
-
twitterAuthCallback(data: any): import("rxjs").Observable<any>;
|
|
61
|
-
microsoftLogin(): import("rxjs").Observable<any>;
|
|
62
|
-
cognitoLogin(): import("rxjs").Observable<any>;
|
|
63
|
-
microsoftAuthCallback(data: any): import("rxjs").Observable<any>;
|
|
64
|
-
googleLogin(): import("rxjs").Observable<any>;
|
|
65
|
-
googleAuthCallback(data: any): import("rxjs").Observable<any>;
|
|
66
|
-
facebookLogin(): import("rxjs").Observable<any>;
|
|
67
|
-
facebookAuthCallback(data: any): import("rxjs").Observable<any>;
|
|
68
|
-
appleLogin(): import("rxjs").Observable<any>;
|
|
69
|
-
appleAuthCallback(data: any): import("rxjs").Observable<any>;
|
|
70
|
-
cognitoAuthCallback(data: any): import("rxjs").Observable<any>;
|
|
71
|
-
linkedinLogin(): import("rxjs").Observable<any>;
|
|
72
|
-
linkedInAuthCallback(data: any): import("rxjs").Observable<any>;
|
|
73
|
-
postLogin(response: any): void;
|
|
74
|
-
impersonateUser(data: {
|
|
75
|
-
email: string;
|
|
76
|
-
subscription_id: number;
|
|
77
|
-
phonegap?: boolean;
|
|
78
|
-
}): import("rxjs").Observable<any>;
|
|
79
|
-
postSocialLogin(response: any): void;
|
|
80
|
-
registerTokenListener(): void;
|
|
81
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
82
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
83
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import { Injector } from '@angular/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare abstract class BaseHttpService {
|
|
6
|
-
http: HttpClient;
|
|
7
|
-
injector: Injector;
|
|
8
|
-
protected baseUrl: string;
|
|
9
|
-
private readonly toast;
|
|
10
|
-
abstract getConfig(): void;
|
|
11
|
-
constructor(http: HttpClient, injector: Injector);
|
|
12
|
-
get<T>(url: any): Observable<any>;
|
|
13
|
-
getWithParams<T>(url: any, params: any): Observable<any>;
|
|
14
|
-
post<T>(url: any, params?: {}): Observable<any>;
|
|
15
|
-
put<T>(url: any, params?: {}): Observable<any>;
|
|
16
|
-
patch<T>(url: any, params?: {}): Observable<any>;
|
|
17
|
-
delete<T>(url: any, option?: {}): Observable<any>;
|
|
18
|
-
upload(url: any, file: File, param: any): Observable<any>;
|
|
19
|
-
uploadWithData(url: string, data: any): Observable<any>;
|
|
20
|
-
handleError(error: HttpErrorResponse): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseHttpService, never>;
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BaseHttpService>;
|
|
23
|
-
}
|
|
@@ -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 BrainApiHttpService extends BaseHttpService {
|
|
6
|
-
constructor(http: HttpClient, injector: Injector);
|
|
7
|
-
getConfig(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrainApiHttpService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BrainApiHttpService>;
|
|
10
|
-
}
|
package/lib/brain.service.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BrainApiHttpService } from './brain-api-http.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrainApiService {
|
|
4
|
-
private readonly api;
|
|
5
|
-
constructor(api: BrainApiHttpService);
|
|
6
|
-
invokeModel(payload: {
|
|
7
|
-
model_name: 'claude' | 'deepseek';
|
|
8
|
-
prompt: string;
|
|
9
|
-
session_id?: string;
|
|
10
|
-
max_tokens?: number;
|
|
11
|
-
temperature?: number;
|
|
12
|
-
}): import("rxjs").Observable<any>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrainApiService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BrainApiService>;
|
|
15
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { Paging, User } from '@posiwise/common-utilities';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export interface ProfileData {
|
|
4
|
-
id?: number;
|
|
5
|
-
send_marketing_emails?: string[];
|
|
6
|
-
avatar?: string;
|
|
7
|
-
/**
|
|
8
|
-
* UTC datetime when the user accepted the latest Terms of Service.
|
|
9
|
-
* This is written via the generic `/user` profile update endpoint.
|
|
10
|
-
*/
|
|
11
|
-
tos_accepted_at?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface WindowData {
|
|
14
|
-
ga: (command: string, fieldName: string, fieldValue: string) => void;
|
|
15
|
-
}
|
|
16
|
-
export interface ApiService {
|
|
17
|
-
post(url: string, body: object): Observable<object>;
|
|
18
|
-
}
|
|
19
|
-
type ActionType = 'ab_test' | 'another_action_type';
|
|
20
|
-
export interface ExperimentPayload {
|
|
21
|
-
test_name: string;
|
|
22
|
-
action_type: ActionType;
|
|
23
|
-
}
|
|
24
|
-
export interface RequestParams {
|
|
25
|
-
[key: string]: string | number | boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface SignUpValues {
|
|
28
|
-
confirmation_path: string;
|
|
29
|
-
contact_name?: string;
|
|
30
|
-
email?: string;
|
|
31
|
-
user_signup_url: string;
|
|
32
|
-
organisation?: string;
|
|
33
|
-
product_id: number;
|
|
34
|
-
units: number;
|
|
35
|
-
stripe_token: string;
|
|
36
|
-
master_subscription_id: number;
|
|
37
|
-
}
|
|
38
|
-
export interface GetFaqParams {
|
|
39
|
-
subscription_id?: number;
|
|
40
|
-
feature_key?: string;
|
|
41
|
-
page?: number;
|
|
42
|
-
pageSize?: number;
|
|
43
|
-
}
|
|
44
|
-
export interface AddProjectPicturesData {
|
|
45
|
-
project_id: number;
|
|
46
|
-
image: File;
|
|
47
|
-
}
|
|
48
|
-
export interface AhoyEvent {
|
|
49
|
-
id: number;
|
|
50
|
-
user_id: number;
|
|
51
|
-
name: string;
|
|
52
|
-
properties: Paging;
|
|
53
|
-
time: string;
|
|
54
|
-
visit_id: number;
|
|
55
|
-
user: User;
|
|
56
|
-
}
|
|
57
|
-
export interface AhoyEventResponse {
|
|
58
|
-
events: AhoyEvent[];
|
|
59
|
-
object_count: number;
|
|
60
|
-
unfiltered_count: number;
|
|
61
|
-
}
|
|
62
|
-
interface AhoyMessage {
|
|
63
|
-
id: number;
|
|
64
|
-
token: string;
|
|
65
|
-
to: string;
|
|
66
|
-
user_id: number;
|
|
67
|
-
user_type: string;
|
|
68
|
-
mailer: string;
|
|
69
|
-
subject: string;
|
|
70
|
-
utm_source: string;
|
|
71
|
-
utm_medium: string;
|
|
72
|
-
utm_term: string;
|
|
73
|
-
utm_content: string;
|
|
74
|
-
utm_campaign: string;
|
|
75
|
-
sent_at: string;
|
|
76
|
-
opened_at: string;
|
|
77
|
-
clicked_at: string;
|
|
78
|
-
open_count: number;
|
|
79
|
-
click_count: number;
|
|
80
|
-
user: User;
|
|
81
|
-
}
|
|
82
|
-
export interface AhoyMessageResponse {
|
|
83
|
-
messages: AhoyMessage[];
|
|
84
|
-
object_count: number;
|
|
85
|
-
unfiltered_count: number;
|
|
86
|
-
}
|
|
87
|
-
interface AhoyVisit {
|
|
88
|
-
id: number;
|
|
89
|
-
visit_token: string;
|
|
90
|
-
visitor_token: string;
|
|
91
|
-
user_id: number;
|
|
92
|
-
ip: string;
|
|
93
|
-
user_agent: string;
|
|
94
|
-
referrer: string;
|
|
95
|
-
referring_domain: string;
|
|
96
|
-
landing_page: string;
|
|
97
|
-
browser: string;
|
|
98
|
-
os: string;
|
|
99
|
-
device_type: string;
|
|
100
|
-
country: string;
|
|
101
|
-
region: string;
|
|
102
|
-
city: string;
|
|
103
|
-
postal_code: string;
|
|
104
|
-
latitude: string;
|
|
105
|
-
longitude: string;
|
|
106
|
-
utm_source: string;
|
|
107
|
-
utm_medium: string;
|
|
108
|
-
utm_term: string;
|
|
109
|
-
utm_content: string;
|
|
110
|
-
utm_campaign: string;
|
|
111
|
-
started_at: string;
|
|
112
|
-
platform: string;
|
|
113
|
-
user: User;
|
|
114
|
-
}
|
|
115
|
-
export interface AhoyVisitResponse {
|
|
116
|
-
visits: AhoyVisit[];
|
|
117
|
-
object_count: number;
|
|
118
|
-
unfiltered_count: number;
|
|
119
|
-
}
|
|
120
|
-
interface TrackEvent {
|
|
121
|
-
id: number;
|
|
122
|
-
user_id: number;
|
|
123
|
-
related_entity_id: number;
|
|
124
|
-
related_entity_type: string;
|
|
125
|
-
event_type: string;
|
|
126
|
-
created_at: string;
|
|
127
|
-
updated_at: string;
|
|
128
|
-
user: User;
|
|
129
|
-
}
|
|
130
|
-
export interface TrackEventResponse {
|
|
131
|
-
events: TrackEvent[];
|
|
132
|
-
object_count: number;
|
|
133
|
-
unfiltered_count: number;
|
|
134
|
-
}
|
|
135
|
-
interface Author {
|
|
136
|
-
id: number;
|
|
137
|
-
name: string;
|
|
138
|
-
email: string;
|
|
139
|
-
}
|
|
140
|
-
interface ObjectDetails {
|
|
141
|
-
id: number;
|
|
142
|
-
name: string;
|
|
143
|
-
description?: string;
|
|
144
|
-
current_sign_in_at: string;
|
|
145
|
-
}
|
|
146
|
-
interface AhoyVersion {
|
|
147
|
-
item_id: number;
|
|
148
|
-
item_type: string;
|
|
149
|
-
event: string;
|
|
150
|
-
object: ObjectDetails;
|
|
151
|
-
created_at: string;
|
|
152
|
-
updated_at: string;
|
|
153
|
-
whoDoneIt: number;
|
|
154
|
-
author: Author;
|
|
155
|
-
}
|
|
156
|
-
export interface AhoyVersionResponse {
|
|
157
|
-
versions: AhoyVersion[];
|
|
158
|
-
object_count: number;
|
|
159
|
-
unfiltered_count: number;
|
|
160
|
-
}
|
|
161
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
import * as i2 from "@ngrx/effects";
|
|
4
|
-
import * as i3 from "@ngrx/store";
|
|
5
|
-
export declare class CommonServicesModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommonServicesModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CommonServicesModule, never, [typeof i1.CommonModule, typeof i2.EffectsRootModule, typeof i3.StoreRootModule], never>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CommonServicesModule>;
|
|
9
|
-
}
|
package/lib/common.service.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Paging } from '@posiwise/common-utilities';
|
|
2
|
-
import { GetFaqParams } from './common-services.interface';
|
|
3
|
-
import { MainApiHttpService } from './main-api-http.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CommonService {
|
|
6
|
-
private readonly api;
|
|
7
|
-
constructor(api: MainApiHttpService);
|
|
8
|
-
addContactUsMessage(data: any): import("rxjs").Observable<any>;
|
|
9
|
-
getIncidents(paging?: Paging): import("rxjs").Observable<any>;
|
|
10
|
-
getIncidentsAdmin(paging?: Paging, subscriptionId?: number): import("rxjs").Observable<any>;
|
|
11
|
-
addIncident(data: any): import("rxjs").Observable<any>;
|
|
12
|
-
editIncident(id: any, data: any): import("rxjs").Observable<any>;
|
|
13
|
-
getIncidentById(id: number, subscription_id: any): import("rxjs").Observable<any>;
|
|
14
|
-
deleteIncidentAdmin(id: number, subscription_id: number): import("rxjs").Observable<any>;
|
|
15
|
-
getAllNewsletter(paging?: Paging): import("rxjs").Observable<any>;
|
|
16
|
-
toggleNewsletter(newsletterId: number, param: any): import("rxjs").Observable<any>;
|
|
17
|
-
unsubscribeNewsletter(token: string): import("rxjs").Observable<any>;
|
|
18
|
-
getFaq(params: GetFaqParams): import("rxjs").Observable<any>;
|
|
19
|
-
getFaqById(id: number, subscription_id: any): import("rxjs").Observable<any>;
|
|
20
|
-
getFaqCategories(subscription_id: number): import("rxjs").Observable<any>;
|
|
21
|
-
getPublicFaq(subscription_id: number, search_term?: string): import("rxjs").Observable<any>;
|
|
22
|
-
getPublicFaqById(id: number): import("rxjs").Observable<any>;
|
|
23
|
-
getOrganizationSizes(paging?: Paging): import("rxjs").Observable<any>;
|
|
24
|
-
getOrganizationTypes(paging?: Paging): import("rxjs").Observable<any>;
|
|
25
|
-
getOrganizationIndustries(paging?: Paging): import("rxjs").Observable<any>;
|
|
26
|
-
getOrganizationDepartments(paging?: Paging): import("rxjs").Observable<any>;
|
|
27
|
-
getAllGlobalSubscriptionConfigs(paging?: Paging): import("rxjs").Observable<any>;
|
|
28
|
-
postGlobalSubscriptionConfig(data: any): import("rxjs").Observable<any>;
|
|
29
|
-
editGlobalSubscriptionConfig(id: number, data: any): import("rxjs").Observable<any>;
|
|
30
|
-
getAllGlobalConfigs(paging?: Paging): import("rxjs").Observable<any>;
|
|
31
|
-
userLoginNotification(data: any): import("rxjs").Observable<any>;
|
|
32
|
-
feedbackQuestions(subscription_id: number): import("rxjs").Observable<any>;
|
|
33
|
-
userFeedbacks(data: any): import("rxjs").Observable<any>;
|
|
34
|
-
getAllUserFeedbacks(subscription_id: number, paging?: Paging): import("rxjs").Observable<any>;
|
|
35
|
-
getAllCustomerSupport(subscription_id: number, paging?: Paging): import("rxjs").Observable<any>;
|
|
36
|
-
postCustomerSupport(data: any): import("rxjs").Observable<any>;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommonService, never>;
|
|
38
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CommonService>;
|
|
39
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PreloadingStrategy, Route, Router } from '@angular/router';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { PermissionService } from './permission.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CustomPreloadingStrategy implements PreloadingStrategy {
|
|
6
|
-
private readonly permission;
|
|
7
|
-
private readonly router;
|
|
8
|
-
constructor(permission: PermissionService, router: Router);
|
|
9
|
-
preload(route: Route, load: () => Observable<string>): Observable<string>;
|
|
10
|
-
private checkModulePermission;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomPreloadingStrategy, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CustomPreloadingStrategy>;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MainApiHttpService } from './main-api-http.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DashboardService {
|
|
4
|
-
private readonly api;
|
|
5
|
-
constructor(api: MainApiHttpService);
|
|
6
|
-
search(keyword: string, subscriptionId: number): import("rxjs").Observable<any>;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardService, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DashboardService>;
|
|
9
|
-
}
|
package/lib/data.service.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class DataService {
|
|
3
|
-
private readonly messageSource;
|
|
4
|
-
currentMessage: import("rxjs").Observable<number>;
|
|
5
|
-
changeMessage(message: number): void;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DataService, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DataService>;
|
|
8
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NgbDateParserFormatter, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class NgbDateCustomParserFormatter extends NgbDateParserFormatter {
|
|
4
|
-
private readonly DELIMITER;
|
|
5
|
-
parse(value: string): NgbDateStruct | null;
|
|
6
|
-
format(date: NgbDateStruct): string;
|
|
7
|
-
dateFormatForPicker(date: string): NgbDateStruct;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgbDateCustomParserFormatter, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NgbDateCustomParserFormatter>;
|
|
10
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Action } from '@ngrx/store';
|
|
3
|
-
import { UserService } from '../user.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class UserEffects {
|
|
6
|
-
private readonly userService;
|
|
7
|
-
private readonly actions$;
|
|
8
|
-
constructor(userService: UserService);
|
|
9
|
-
loadUser$: Observable<Action>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserEffects, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserEffects>;
|
|
12
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
|
|
2
|
-
export declare class FormHelperService {
|
|
3
|
-
static markFormAsPristine(form: UntypedFormGroup | UntypedFormControl | AbstractControl): void;
|
|
4
|
-
static markAsTouched(form: any): void;
|
|
5
|
-
static validateAllFormFields(form: any): void;
|
|
6
|
-
}
|
package/lib/geo.service.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CookieService } from 'ngx-cookie';
|
|
2
|
-
import { MainApiHttpService } from './main-api-http.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class GeoService {
|
|
5
|
-
private readonly api;
|
|
6
|
-
private readonly cookieService;
|
|
7
|
-
private readonly url;
|
|
8
|
-
constructor(api: MainApiHttpService, cookieService: CookieService);
|
|
9
|
-
getCountries(): import("rxjs").Observable<any>;
|
|
10
|
-
getRegions(countryId: any): import("rxjs").Observable<any>;
|
|
11
|
-
getCountryFromIP(): import("rxjs").Observable<any>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GeoService, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GeoService>;
|
|
14
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Router } from '@angular/router';
|
|
2
|
-
import { AppConfigService } from '@posiwise/app-config-service';
|
|
3
|
-
import { ScriptLoaderService } from './script-loader.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
declare global {
|
|
6
|
-
interface Window {
|
|
7
|
-
ga: any;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare class GoogleAnalyticsService {
|
|
11
|
-
private readonly router;
|
|
12
|
-
private readonly scriptLoader;
|
|
13
|
-
private readonly appConfigService;
|
|
14
|
-
private static trackingId;
|
|
15
|
-
private subscription;
|
|
16
|
-
constructor(router: Router, scriptLoader: ScriptLoaderService, appConfigService: AppConfigService);
|
|
17
|
-
private isGaAvailable;
|
|
18
|
-
loadGScript(): Promise<void>;
|
|
19
|
-
pushArgumentsGA(): void;
|
|
20
|
-
private addOneTimeTrackingListeners;
|
|
21
|
-
subscribe(): void;
|
|
22
|
-
/**
|
|
23
|
-
* Emit google analytics event
|
|
24
|
-
* Fire event example:
|
|
25
|
-
* this.sendEvent("testCategory", "testAction", "testLabel", 10);
|
|
26
|
-
* @param {string} eventCategory
|
|
27
|
-
* @param {string} eventAction
|
|
28
|
-
* @param {string} eventLabel
|
|
29
|
-
* @param {number} eventValue
|
|
30
|
-
*/
|
|
31
|
-
sendEvent(eventCategory: string, eventAction: string, eventLabel?: string, eventValue?: number): void;
|
|
32
|
-
/**
|
|
33
|
-
* Enable UserId Tracking for Google Analytics
|
|
34
|
-
* @param user
|
|
35
|
-
*/
|
|
36
|
-
setUserContext(user: any): void;
|
|
37
|
-
unsubscribe(): void;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GoogleAnalyticsService, never>;
|
|
39
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GoogleAnalyticsService>;
|
|
40
|
-
}
|
package/lib/group.service.d.ts
DELETED
|
@@ -1,37 +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 GroupService {
|
|
5
|
-
private readonly api;
|
|
6
|
-
private readonly subscription_endpoint;
|
|
7
|
-
private readonly group_communications_endpoint;
|
|
8
|
-
private readonly group_definitions_endpoint;
|
|
9
|
-
private readonly groups_endpoint;
|
|
10
|
-
ADMIN_PATH: string;
|
|
11
|
-
constructor(api: MainApiHttpService);
|
|
12
|
-
getById(id: any): import("rxjs").Observable<any>;
|
|
13
|
-
updateAgent(id: number, agent_id: number, data: any): import("rxjs").Observable<any>;
|
|
14
|
-
getSubscriptionMembers(id: number, paging?: Paging): import("rxjs").Observable<any>;
|
|
15
|
-
getGroupDefinitionById(id: number): import("rxjs").Observable<any>;
|
|
16
|
-
groupDefinitionGetAll(related_entity_id: number, related_entity_type: string, paging?: Paging): import("rxjs").Observable<any>;
|
|
17
|
-
groupDefinitions(data: any): import("rxjs").Observable<any>;
|
|
18
|
-
groupDefinitionsDelete(id: number): import("rxjs").Observable<any>;
|
|
19
|
-
groupDefinitionsUpdate(id: number, data: any): import("rxjs").Observable<any>;
|
|
20
|
-
postGroup(data: any): import("rxjs").Observable<any>;
|
|
21
|
-
getGroup(id: number): import("rxjs").Observable<any>;
|
|
22
|
-
updateGroup(id: number, data: any): import("rxjs").Observable<any>;
|
|
23
|
-
deleteGroup(id: number): import("rxjs").Observable<any>;
|
|
24
|
-
addEntityGroup(id: number, data: any): import("rxjs").Observable<any>;
|
|
25
|
-
deleteEntityGroup(entityId: number, related_entity_ids: any, related_entity_type: string): import("rxjs").Observable<any>;
|
|
26
|
-
getEntityGroup(id: number): import("rxjs").Observable<any>;
|
|
27
|
-
postCommunications(data: any): import("rxjs").Observable<any>;
|
|
28
|
-
editCommunications(id: number, data: any): import("rxjs").Observable<any>;
|
|
29
|
-
getCommunicationDetails(id: number): import("rxjs").Observable<any>;
|
|
30
|
-
deleteCommunications(id: number): import("rxjs").Observable<any>;
|
|
31
|
-
getAllCommunications(subscription_id: number, communication_type: string, group_id: number | string, paging?: Paging): import("rxjs").Observable<any>;
|
|
32
|
-
getAllCommunicationsWithOutGroupId(subscription_id: number, communication_type: string, paging?: Paging): import("rxjs").Observable<any>;
|
|
33
|
-
postCommunicationFiles(data: any): import("rxjs").Observable<any>;
|
|
34
|
-
deleteCommunicationFiles(id: number): import("rxjs").Observable<any>;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GroupService, never>;
|
|
36
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GroupService>;
|
|
37
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ScriptLoaderService } from './script-loader.service';
|
|
2
|
-
import { TipsService } from './tips.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
interface TourStep {
|
|
5
|
-
target: string;
|
|
6
|
-
title: string;
|
|
7
|
-
content: string;
|
|
8
|
-
placement: string;
|
|
9
|
-
arrowOffset?: number;
|
|
10
|
-
xOffset?: number;
|
|
11
|
-
yOffset?: number;
|
|
12
|
-
isHTML?: boolean;
|
|
13
|
-
showPrevButton?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare class HopscotchService {
|
|
16
|
-
private readonly scriptLoader;
|
|
17
|
-
private readonly tipService;
|
|
18
|
-
private readonly tour;
|
|
19
|
-
constructor(scriptLoader: ScriptLoaderService, tipService: TipsService);
|
|
20
|
-
initializeTour(tourId: string, steps: TourStep[], tip_data: any, subscription_id?: number): void;
|
|
21
|
-
endTour(): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HopscotchService, never>;
|
|
23
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HopscotchService>;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -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
|
-
}
|