@posiwise/smart-crm 0.0.36 → 0.0.38
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/index.mjs +2 -3
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.mjs +35 -20
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.mjs +8 -8
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.mjs +40 -31
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-invoices/smart-crm-account-invoices.component.mjs +23 -25
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.mjs +12 -12
- package/esm2022/lib/private/components/smart-crm-actions/smart-crm-actions.component.mjs +260 -0
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.mjs +24 -19
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.mjs +7 -7
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.mjs +4 -4
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.mjs +4 -4
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.mjs +8 -8
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.mjs +4 -4
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.mjs +11 -11
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.mjs +6 -6
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.mjs +34 -17
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.mjs +4 -4
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.mjs +10 -10
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.mjs +10 -10
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.mjs +17 -17
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.mjs +13 -13
- package/esm2022/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-account-insight/smart-crm-account-insight.component.mjs +42 -11
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-analysis-insight/smart-crm-analysis.component.mjs +28 -54
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-contact-insight/smart-crm-contact-insight.component.mjs +24 -18
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-insight.component.mjs +4 -4
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-marketing-insight/smart-crm-marketing-insight.component.mjs +7 -7
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-opportunities-insight/smart-crm-opportunities-insight.component.mjs +39 -31
- package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.mjs +8 -8
- package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads.component.mjs +9 -9
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.mjs +7 -7
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.mjs +8 -8
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.mjs +10 -10
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.mjs +16 -13
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.mjs +63 -31
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.mjs +13 -11
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.mjs +15 -12
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.mjs +7 -7
- package/esm2022/lib/private/smart-crm-private.module.mjs +37 -42
- package/esm2022/lib/private/smart-crm-private.routing.module.mjs +24 -24
- package/esm2022/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.mjs +1 -1
- package/esm2022/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.mjs +3 -3
- package/esm2022/lib/public/components/smart-crm-signup/smart-crm-signup.component.mjs +2 -2
- package/esm2022/lib/public/smart-crm-public.module.mjs +4 -4
- package/esm2022/lib/public/smart-crm-public.routing.module.mjs +1 -1
- package/esm2022/lib/shared/interface/smart-crm-module.interface.mjs +1 -1
- package/esm2022/lib/shared/models/smart-crm.model.mjs +3 -2
- package/esm2022/lib/shared/routers/routers.mjs +9 -8
- package/fesm2022/posiwise-smart-crm.mjs +471 -373
- package/fesm2022/posiwise-smart-crm.mjs.map +1 -1
- package/index.d.ts +1 -2
- package/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.d.ts +16 -16
- package/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.d.ts +13 -12
- package/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.d.ts +47 -47
- package/lib/private/components/smart-crm-accounts/smart-crm-account-invoices/smart-crm-account-invoices.component.d.ts +11 -13
- package/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.d.ts +13 -12
- package/lib/private/components/{smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.d.ts → smart-crm-actions/smart-crm-actions.component.d.ts} +20 -18
- package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.d.ts +8 -8
- package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.d.ts +6 -5
- package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.d.ts +4 -4
- package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.d.ts +8 -7
- package/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.d.ts +1 -1
- package/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.d.ts +7 -6
- package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.d.ts +5 -5
- package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.d.ts +12 -8
- package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.d.ts +7 -7
- package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.d.ts +10 -9
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.d.ts +11 -11
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.d.ts +28 -27
- package/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.d.ts +20 -19
- package/lib/private/components/smart-crm-insight/smart-crm-account-insight/smart-crm-account-insight.component.d.ts +26 -20
- package/lib/private/components/smart-crm-insight/smart-crm-analysis-insight/smart-crm-analysis.component.d.ts +12 -12
- package/lib/private/components/smart-crm-insight/smart-crm-contact-insight/smart-crm-contact-insight.component.d.ts +18 -15
- package/lib/private/components/smart-crm-insight/smart-crm-marketing-insight/smart-crm-marketing-insight.component.d.ts +9 -8
- package/lib/private/components/smart-crm-insight/smart-crm-opportunities-insight/smart-crm-opportunities-insight.component.d.ts +23 -20
- package/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.d.ts +6 -6
- package/lib/private/components/smart-crm-leads/smart-crm-leads.component.d.ts +10 -9
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.d.ts +8 -7
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.d.ts +10 -10
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.d.ts +9 -8
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.d.ts +3 -3
- package/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.d.ts +13 -11
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.d.ts +29 -22
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.d.ts +28 -27
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.d.ts +14 -12
- package/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.d.ts +1 -1
- package/lib/private/smart-crm-private.module.d.ts +60 -61
- package/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.d.ts +1 -1
- package/lib/shared/interface/smart-crm-module.interface.d.ts +3 -1
- package/lib/shared/routers/routers.d.ts +1 -0
- package/package.json +1 -1
- package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.mjs +0 -256
- package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary.component.mjs +0 -14
- package/lib/private/components/smart-crm-summary/smart-crm-summary.component.d.ts +0 -5
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
3
4
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
4
5
|
import { Observable } from 'rxjs';
|
|
5
6
|
import { CrmAccount } from '../../../../shared/interface/crm-account.interface';
|
|
6
7
|
import { CrmLead } from '../../../../shared/interface/crm-lead.interface';
|
|
7
|
-
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class SmartCrmLeadsDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
10
10
|
private readonly crmService;
|
|
11
11
|
form: UntypedFormGroup;
|
|
12
|
-
data: CrmLead;
|
|
13
|
-
submitted: boolean;
|
|
14
|
-
buttonBusy: boolean;
|
|
15
|
-
isLoading: boolean;
|
|
16
12
|
id: number;
|
|
17
13
|
subscriptionId: number;
|
|
14
|
+
data: CrmLead;
|
|
15
|
+
source$: Observable<string>;
|
|
18
16
|
accounts: CrmAccount[];
|
|
19
17
|
filteredAccounts: string[];
|
|
20
|
-
source$: Observable<string>;
|
|
21
18
|
potentials: any[];
|
|
22
19
|
labels: any[];
|
|
20
|
+
submitted: boolean;
|
|
21
|
+
buttonBusy: boolean;
|
|
22
|
+
isLoading: boolean;
|
|
23
23
|
constructor(injector: Injector, crmService: CrmService);
|
|
24
24
|
ngOnInit(): void;
|
|
25
25
|
/** Function to get the specific contact details on edit form */
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
3
|
+
import { Subscription } from '@posiwise/common-utilities';
|
|
2
4
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
3
5
|
import { LazyLoadEvent } from 'primeng/api';
|
|
4
|
-
import { Subscription } from '@posiwise/common-utilities';
|
|
5
6
|
import { CrmLeadResponse } from '../../../shared/interface/crm-lead.interface';
|
|
6
|
-
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class SmartCrmLeadsComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
9
9
|
private readonly crmService;
|
|
10
10
|
private readonly cdr;
|
|
11
|
+
subscription: Subscription;
|
|
11
12
|
subscriptionId: number;
|
|
12
|
-
|
|
13
|
+
userId: number;
|
|
13
14
|
data: CrmLeadResponse;
|
|
15
|
+
allSource: any[];
|
|
16
|
+
crmSources: any[];
|
|
17
|
+
filterBySource: string;
|
|
14
18
|
searchText: string;
|
|
15
|
-
isLoaded: boolean;
|
|
16
19
|
loading: boolean;
|
|
17
|
-
|
|
20
|
+
isLoaded: boolean;
|
|
21
|
+
hasAccess: boolean;
|
|
18
22
|
page: number;
|
|
19
|
-
subscription: Subscription;
|
|
20
|
-
allSource: any[];
|
|
21
23
|
routers: {
|
|
22
24
|
accounts: string;
|
|
23
25
|
contacts: string;
|
|
26
|
+
accountContacts: string;
|
|
24
27
|
accountInfo: string;
|
|
25
28
|
addAccount: string;
|
|
26
29
|
contactInfo: string;
|
|
@@ -39,8 +42,6 @@ export declare class SmartCrmLeadsComponent extends AppBaseComponent implements
|
|
|
39
42
|
stageDetails: string;
|
|
40
43
|
widgetsDetails: string;
|
|
41
44
|
};
|
|
42
|
-
filterBySource: string;
|
|
43
|
-
crmSources: any[];
|
|
44
45
|
constructor(crmService: CrmService, injector: Injector, cdr: ChangeDetectorRef);
|
|
45
46
|
ngOnInit(): void;
|
|
46
47
|
ngAfterViewChecked(): void;
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
3
|
+
import { Subscription } from '@posiwise/common-utilities';
|
|
2
4
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
3
5
|
import { LazyLoadEvent } from 'primeng/api';
|
|
4
|
-
import { Subscription } from '@posiwise/common-utilities';
|
|
5
6
|
import { NewsLetterContactResponse } from '../../../../../shared/interface/crm-newsletter.interface';
|
|
6
|
-
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class SmartCrmMarketingUsersListComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
9
9
|
private readonly crmService;
|
|
10
10
|
private readonly cdr;
|
|
11
|
+
private page;
|
|
12
|
+
subscription: Subscription;
|
|
11
13
|
subscriptionId: number;
|
|
12
|
-
searchText: string;
|
|
13
14
|
data: NewsLetterContactResponse;
|
|
14
|
-
isLoaded: boolean;
|
|
15
|
-
loading: boolean;
|
|
16
15
|
id: number;
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
searchText: string;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
isLoaded: boolean;
|
|
19
19
|
routers: {
|
|
20
20
|
accounts: string;
|
|
21
21
|
contacts: string;
|
|
22
|
+
accountContacts: string;
|
|
22
23
|
accountInfo: string;
|
|
23
24
|
addAccount: string;
|
|
24
25
|
contactInfo: string;
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { AfterViewInit, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
4
|
-
import { CrmNewsLetter } from '../../../../../shared/interface/crm-newsletter.interface';
|
|
5
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
6
|
-
import { User, Product } from '@posiwise/common-utilities';
|
|
7
4
|
import { CommonService } from '@posiwise/common-services';
|
|
5
|
+
import { Product, User } from '@posiwise/common-utilities';
|
|
6
|
+
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
7
|
+
import { CrmNewsLetter } from '../../../../../shared/interface/crm-newsletter.interface';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class SmartCrmCommunicationsDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
10
10
|
private readonly crmService;
|
|
11
11
|
private readonly commonService;
|
|
12
|
-
subscriptionId: number;
|
|
13
|
-
hasAccess: boolean;
|
|
14
12
|
form: UntypedFormGroup;
|
|
13
|
+
subscriptionId: number;
|
|
15
14
|
user: User;
|
|
15
|
+
id: number;
|
|
16
16
|
data: CrmNewsLetter;
|
|
17
|
-
submitted: boolean;
|
|
18
|
-
buttonBusy: boolean;
|
|
19
17
|
crmProduct: Product;
|
|
20
18
|
status: any[];
|
|
21
19
|
priority: any[];
|
|
@@ -29,11 +27,13 @@ export declare class SmartCrmCommunicationsDetailsComponent extends AppBaseCompo
|
|
|
29
27
|
value: string;
|
|
30
28
|
}[];
|
|
31
29
|
allCommunications: any[];
|
|
32
|
-
id: number;
|
|
33
|
-
isLoading: boolean;
|
|
34
30
|
editorConfig: any;
|
|
35
|
-
daysToNewsletterField: boolean;
|
|
36
31
|
userNameSyntax: string;
|
|
32
|
+
submitted: boolean;
|
|
33
|
+
buttonBusy: boolean;
|
|
34
|
+
isLoading: boolean;
|
|
35
|
+
daysToNewsletterField: boolean;
|
|
36
|
+
hasAccess: boolean;
|
|
37
37
|
constructor(injector: Injector, crmService: CrmService, commonService: CommonService);
|
|
38
38
|
ngAfterViewInit(): void;
|
|
39
39
|
ngOnInit(): void;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
3
|
+
import { Plotly, Subscription, User } from '@posiwise/common-utilities';
|
|
2
4
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
3
5
|
import { LazyLoadEvent } from 'primeng/api';
|
|
4
|
-
import { Plotly, Subscription, User } from '@posiwise/common-utilities';
|
|
5
6
|
import { CrmNewsLetter, CrmNewsLetterResponse } from '../../../../shared/interface/crm-newsletter.interface';
|
|
6
|
-
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class SmartCrmCommunicationsComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
9
9
|
private readonly crmService;
|
|
10
10
|
private readonly cdr;
|
|
11
|
+
private page;
|
|
12
|
+
subscription: Subscription;
|
|
11
13
|
subscriptionId: number;
|
|
12
|
-
searchText: string;
|
|
13
|
-
data: CrmNewsLetterResponse;
|
|
14
|
-
isLoaded: boolean;
|
|
15
|
-
loading: boolean;
|
|
16
14
|
user: User;
|
|
15
|
+
data: CrmNewsLetterResponse;
|
|
17
16
|
communicationsInsight: any;
|
|
18
17
|
communicationEngagement: Plotly.Figure;
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
searchText: string;
|
|
19
|
+
loading: boolean;
|
|
20
|
+
isLoaded: boolean;
|
|
21
21
|
routers: {
|
|
22
22
|
accounts: string;
|
|
23
23
|
contacts: string;
|
|
24
|
+
accountContacts: string;
|
|
24
25
|
accountInfo: string;
|
|
25
26
|
addAccount: string;
|
|
26
27
|
contactInfo: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
2
4
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
3
5
|
import { CrmNewsLetter } from '../../../../../shared/interface/crm-newsletter.interface';
|
|
4
|
-
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SmartCrmCommunicationViewDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
8
8
|
private readonly crmService;
|
|
9
9
|
private readonly sanitizer;
|
|
10
10
|
id: number;
|
|
11
|
+
subscriptionId: number;
|
|
11
12
|
isLoaded: boolean;
|
|
12
13
|
communicationDetails: CrmNewsLetter;
|
|
13
|
-
subscriptionId: number;
|
|
14
14
|
constructor(injector: Injector, crmService: CrmService, sanitizer: DomSanitizer);
|
|
15
15
|
ngOnInit(): void;
|
|
16
16
|
/**subscriptionId */
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
1
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
+
import { Subscription } from '@posiwise/common-utilities';
|
|
3
5
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
4
6
|
import { CrmOpportunity } from '../../../../shared/interface/crm-opportunity.interface';
|
|
5
7
|
import { CrmStage } from '../../../../shared/interface/crm-stages.interface';
|
|
6
|
-
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
|
-
import { Subscription } from '@posiwise/common-utilities';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class SmartCrmBoardComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
10
10
|
private readonly crmService;
|
|
11
11
|
private draggedOpportunity;
|
|
12
|
+
private changedStage;
|
|
13
|
+
private availableOpportunities;
|
|
14
|
+
private readonly pageSize;
|
|
15
|
+
subscription: Subscription;
|
|
12
16
|
stages: CrmStage[];
|
|
17
|
+
masterStages: CrmStage[];
|
|
13
18
|
allOpportunities: CrmOpportunity[];
|
|
14
19
|
opportunitiesGroup: any[];
|
|
15
|
-
private changedStage;
|
|
16
|
-
isLoaded: boolean;
|
|
17
20
|
categories: any[];
|
|
18
|
-
|
|
19
|
-
subscription: Subscription;
|
|
21
|
+
selectedCategoryId: number;
|
|
20
22
|
totalCount: number;
|
|
23
|
+
isLoaded: boolean;
|
|
21
24
|
routers: {
|
|
22
25
|
accounts: string;
|
|
23
26
|
contacts: string;
|
|
27
|
+
accountContacts: string;
|
|
24
28
|
accountInfo: string;
|
|
25
29
|
addAccount: string;
|
|
26
30
|
contactInfo: string;
|
|
@@ -39,20 +43,18 @@ export declare class SmartCrmBoardComponent extends AppBaseComponent implements
|
|
|
39
43
|
stageDetails: string;
|
|
40
44
|
widgetsDetails: string;
|
|
41
45
|
};
|
|
42
|
-
masterStages: CrmStage[];
|
|
43
|
-
selectedCategoryId: number;
|
|
44
|
-
private readonly pageSize;
|
|
45
46
|
constructor(crmService: CrmService, injector: Injector);
|
|
46
47
|
ngOnInit(): void;
|
|
47
48
|
private getAllOpportunityCategories;
|
|
48
49
|
private getStages;
|
|
49
50
|
private getAllOpportunities;
|
|
50
|
-
private
|
|
51
|
+
private buildStageTree;
|
|
51
52
|
private flatten;
|
|
52
53
|
private opportunitiesGroups;
|
|
53
54
|
handleImageError(event: Event, fallbackPath: any): void;
|
|
54
55
|
onChangeCategory(event: any): void;
|
|
55
56
|
onColumnScroll(columnIndex: number): void;
|
|
57
|
+
getFirstCurrency(opportunities: any): string;
|
|
56
58
|
dropItem(event: CdkDragDrop<object[]>): void;
|
|
57
59
|
getConnectedList(): string[];
|
|
58
60
|
dropGroup(event: CdkDragDrop<string[]>): void;
|
|
@@ -1,57 +1,64 @@
|
|
|
1
1
|
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
4
|
-
import { User } from '@posiwise/common-utilities';
|
|
5
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
6
|
-
import {
|
|
4
|
+
import { ProductService } from '@posiwise/common-services';
|
|
5
|
+
import { User } from '@posiwise/common-utilities';
|
|
6
|
+
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
7
7
|
import { CrmAccount } from 'libs/smart-crm/src/lib/shared/interface/crm-account.interface';
|
|
8
|
+
import { CrmOpportunityContact } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class SmartCrmOpportunitiesDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
10
11
|
private readonly crmService;
|
|
12
|
+
private readonly productService;
|
|
11
13
|
form: UntypedFormGroup;
|
|
12
|
-
user: User;
|
|
13
14
|
id: number;
|
|
14
|
-
onEdit: boolean;
|
|
15
|
-
data: any;
|
|
16
|
-
submitted: boolean;
|
|
17
|
-
buttonBusy: boolean;
|
|
18
|
-
isLoading: boolean;
|
|
19
|
-
searchText: string;
|
|
20
15
|
subscriptionId: number;
|
|
21
|
-
allContacts: CrmopportunityContact[];
|
|
22
16
|
contactId: number;
|
|
17
|
+
account_id: number;
|
|
18
|
+
user: User;
|
|
19
|
+
isUserSubscriptionSuperAdmin: boolean;
|
|
20
|
+
data: any;
|
|
23
21
|
private opportunityData;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
winChance: number[];
|
|
22
|
+
allContacts: CrmOpportunityContact[];
|
|
23
|
+
filteredUsers: CrmOpportunityContact[];
|
|
27
24
|
opportunities: any[];
|
|
28
|
-
|
|
29
|
-
LostField: boolean;
|
|
30
|
-
isContactChange: boolean;
|
|
31
|
-
TrialStartField: boolean;
|
|
25
|
+
masterProductId: number;
|
|
32
26
|
accounts: any[];
|
|
33
27
|
filteredAccounts: CrmAccount[];
|
|
34
|
-
account_id: number;
|
|
35
|
-
masterStages: any[];
|
|
36
28
|
stages: any[];
|
|
29
|
+
masterStages: any[];
|
|
37
30
|
categories: any[];
|
|
31
|
+
featureKeys: any[];
|
|
32
|
+
currencies: any[];
|
|
33
|
+
winChance: number[];
|
|
38
34
|
accountValueCount: number;
|
|
39
35
|
currentAccountId: any;
|
|
40
|
-
|
|
36
|
+
searchText: string;
|
|
37
|
+
onEdit: boolean;
|
|
38
|
+
isContactChange: boolean;
|
|
39
|
+
TrialStartField: boolean;
|
|
40
|
+
WonField: boolean;
|
|
41
|
+
LostField: boolean;
|
|
42
|
+
cancelledTrue: boolean;
|
|
43
|
+
submitted: boolean;
|
|
44
|
+
buttonBusy: boolean;
|
|
45
|
+
isLoading: boolean;
|
|
41
46
|
/** Function to get form controls */
|
|
42
47
|
get f(): {
|
|
43
48
|
[key: string]: import("@angular/forms").AbstractControl<any, any>;
|
|
44
49
|
};
|
|
45
|
-
constructor(injector: Injector, crmService: CrmService);
|
|
50
|
+
constructor(injector: Injector, crmService: CrmService, productService: ProductService);
|
|
46
51
|
ngOnInit(): void;
|
|
47
52
|
private getAvailableOpportunityStages;
|
|
48
53
|
private getUserInfo;
|
|
49
54
|
/** Function to call accounts */
|
|
50
55
|
private getAllAccounts;
|
|
56
|
+
private getFeatureKeys;
|
|
51
57
|
/** Function to call contacts */
|
|
52
58
|
private getAccountContacts;
|
|
53
59
|
/** Function to get opportunities data */
|
|
54
60
|
private getOpportunityDetails;
|
|
61
|
+
private accountDefaultValues;
|
|
55
62
|
/** Function to execute on submit opportunities form */
|
|
56
63
|
onSave(): void;
|
|
57
64
|
/** Function to get all categories */
|
|
@@ -1,58 +1,59 @@
|
|
|
1
1
|
import { EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { UploadFile, UploadInput, UploadOutput, UploaderOptions } from 'ngx-uploader';
|
|
3
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
+
import { AuthService } from '@posiwise/common-services';
|
|
6
5
|
import { Subscription } from '@posiwise/common-utilities';
|
|
6
|
+
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
7
|
+
import { OpportunityComment, OpportunityContact, OpportunityData } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
8
|
+
import { UploaderOptions, UploadFile, UploadInput, UploadOutput } from 'ngx-uploader';
|
|
9
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
7
10
|
import { CrmAccount } from '../../../../../shared/interface/crm-account.interface';
|
|
8
11
|
import { CrmAction } from '../../../../../shared/interface/crm-action.interface';
|
|
9
12
|
import { CrmVersion } from '../../../../../shared/interface/crm-opportunity.interface';
|
|
10
|
-
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
11
|
-
import { AuthService } from '@posiwise/common-services';
|
|
12
|
-
import { OpportunityComment, OpportunityContact, OpportunityData } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
export declare class SmartCrmOpportunitiesInfoComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
15
15
|
private readonly crmService;
|
|
16
16
|
private readonly modalService;
|
|
17
17
|
private readonly authService;
|
|
18
18
|
private readonly document;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
subscription: Subscription;
|
|
20
|
+
subscriptionId: number;
|
|
21
|
+
userId: number;
|
|
21
22
|
opportunitiesId: number;
|
|
22
23
|
data: OpportunityData;
|
|
23
|
-
aboutControls: UntypedFormGroup;
|
|
24
|
-
submitted: boolean;
|
|
25
|
-
buttonBusy: boolean;
|
|
26
24
|
accounts: CrmAccount[];
|
|
27
25
|
filteredAccounts: CrmAccount[];
|
|
28
|
-
subscriptionId: number;
|
|
29
26
|
actions: CrmAction[];
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
actionId: number;
|
|
28
|
+
allContacts: OpportunityContact[];
|
|
29
|
+
filteredContacts: OpportunityContact[];
|
|
30
|
+
opportunitiesComments: OpportunityComment[];
|
|
31
|
+
opportunitiesVersioning: CrmVersion[];
|
|
32
|
+
contactId: number;
|
|
33
|
+
accountId: number;
|
|
34
|
+
aboutControls: UntypedFormGroup;
|
|
35
|
+
actionControls: UntypedFormGroup;
|
|
32
36
|
options: UploaderOptions;
|
|
33
37
|
uploadInput: EventEmitter<UploadInput>;
|
|
34
38
|
files: UploadFile[];
|
|
35
39
|
token: string;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
userId: number;
|
|
40
|
-
actionControls: UntypedFormGroup;
|
|
40
|
+
isLoaded: boolean;
|
|
41
|
+
isFormEdit: boolean;
|
|
42
|
+
hasAccess: boolean;
|
|
41
43
|
isDisabled: boolean;
|
|
42
44
|
updating: boolean;
|
|
43
|
-
actionId: number;
|
|
44
45
|
showFullComment: boolean;
|
|
45
|
-
commentId: number;
|
|
46
|
-
opportunitiesComments: OpportunityComment[];
|
|
47
|
-
dangerColor: boolean;
|
|
48
|
-
allContacts: OpportunityContact[];
|
|
49
|
-
filteredContacts: OpportunityContact[];
|
|
50
|
-
opportunitiesVersioning: CrmVersion[];
|
|
51
46
|
submitAction: boolean;
|
|
52
|
-
|
|
47
|
+
buttonDisable: boolean;
|
|
48
|
+
buttonBusy: boolean;
|
|
49
|
+
submitted: boolean;
|
|
50
|
+
dangerColor: boolean;
|
|
51
|
+
dragOver: boolean;
|
|
52
|
+
commentId: number;
|
|
53
53
|
routers: {
|
|
54
54
|
accounts: string;
|
|
55
55
|
contacts: string;
|
|
56
|
+
accountContacts: string;
|
|
56
57
|
accountInfo: string;
|
|
57
58
|
addAccount: string;
|
|
58
59
|
contactInfo: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
3
|
-
import { LazyLoadEvent } from 'primeng/api';
|
|
4
|
-
import { Plotly, Subscription, User } from '@posiwise/common-utilities';
|
|
5
|
-
import { CrmOpportunityResponse } from '../../../../shared/interface/crm-opportunity.interface';
|
|
6
2
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
3
|
import { ProductService } from '@posiwise/common-services';
|
|
4
|
+
import { Plotly, Subscription, User } from '@posiwise/common-utilities';
|
|
5
|
+
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
8
6
|
import { OpportunityInsight } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
7
|
+
import { LazyLoadEvent } from 'primeng/api';
|
|
8
|
+
import { CrmOpportunityResponse } from '../../../../shared/interface/crm-opportunity.interface';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class SmartCrmOpportunitiesListComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
11
11
|
private readonly crmService;
|
|
@@ -13,26 +13,27 @@ export declare class SmartCrmOpportunitiesListComponent extends AppBaseComponent
|
|
|
13
13
|
private readonly productService;
|
|
14
14
|
subscription: Subscription;
|
|
15
15
|
subscriptionId: number;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
user: User;
|
|
17
|
+
userId: number;
|
|
18
18
|
data: CrmOpportunityResponse;
|
|
19
|
-
id: string;
|
|
20
|
-
isLoaded: boolean;
|
|
21
|
-
loading: boolean;
|
|
22
19
|
opportunitiesInsight: OpportunityInsight[];
|
|
23
20
|
opportunitiesGeography: Plotly.Figure;
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
id: string;
|
|
22
|
+
searchText: string;
|
|
26
23
|
searchStages: object[];
|
|
24
|
+
searchCategories: object[];
|
|
27
25
|
filterByStages: string[];
|
|
28
26
|
filterByCategories: any[];
|
|
29
|
-
searchCategories: object[];
|
|
30
27
|
page: number;
|
|
31
28
|
stages: any[];
|
|
32
29
|
categories: any[];
|
|
30
|
+
loading: boolean;
|
|
31
|
+
isLoaded: boolean;
|
|
32
|
+
hasAccess: boolean;
|
|
33
33
|
routers: {
|
|
34
34
|
accounts: string;
|
|
35
35
|
contacts: string;
|
|
36
|
+
accountContacts: string;
|
|
36
37
|
accountInfo: string;
|
|
37
38
|
addAccount: string;
|
|
38
39
|
contactInfo: string;
|
|
@@ -61,6 +62,7 @@ export declare class SmartCrmOpportunitiesListComponent extends AppBaseComponent
|
|
|
61
62
|
onSearchOptionChange(event: any, filterBy: string): void;
|
|
62
63
|
clearFilters(): void;
|
|
63
64
|
private getAllOpportunities;
|
|
65
|
+
isPastDate(date: string | Date): boolean;
|
|
64
66
|
onDelete(id: number): void;
|
|
65
67
|
/** Function to get available opportunities */
|
|
66
68
|
private getAvailableOpportunityStages;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import { MenuItem } from 'primeng/api';
|
|
3
2
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
3
|
+
import { MenuItem } from 'primeng/api';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SmartCrmTabsComponent extends AppBaseComponent {
|
|
6
6
|
items: MenuItem[];
|