@posiwise/smart-crm 0.0.35 → 0.0.37
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 +26 -11
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.mjs +18 -9
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-invoices/smart-crm-account-invoices.component.mjs +14 -16
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.mjs +4 -4
- 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 +20 -15
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.mjs +26 -9
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-account-insight/smart-crm-account-insight.component.mjs +40 -9
- 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 +22 -16
- 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 +3 -3
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-opportunities-insight/smart-crm-opportunities-insight.component.mjs +30 -22
- package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.mjs +8 -5
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.mjs +49 -17
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.mjs +6 -3
- 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 +5 -5
- package/esm2022/lib/private/smart-crm-private.module.mjs +6 -11
- package/esm2022/lib/private/smart-crm-private.routing.module.mjs +18 -18
- 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 +327 -232
- 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-files/smart-crm-account-files.component.d.ts +1 -0
- package/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.d.ts +3 -2
- package/lib/private/components/smart-crm-accounts/smart-crm-account-invoices/smart-crm-account-invoices.component.d.ts +1 -3
- package/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.d.ts +1 -0
- 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} +6 -4
- package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.d.ts +1 -0
- package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.d.ts +1 -0
- package/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.d.ts +1 -0
- package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.d.ts +4 -0
- package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.d.ts +1 -0
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.d.ts +1 -0
- package/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.d.ts +1 -0
- package/lib/private/components/smart-crm-insight/smart-crm-account-insight/smart-crm-account-insight.component.d.ts +7 -1
- package/lib/private/components/smart-crm-insight/smart-crm-analysis-insight/smart-crm-analysis.component.d.ts +8 -8
- package/lib/private/components/smart-crm-insight/smart-crm-contact-insight/smart-crm-contact-insight.component.d.ts +7 -4
- package/lib/private/components/smart-crm-insight/smart-crm-marketing-insight/smart-crm-marketing-insight.component.d.ts +1 -0
- package/lib/private/components/smart-crm-insight/smart-crm-opportunities-insight/smart-crm-opportunities-insight.component.d.ts +7 -4
- package/lib/private/components/smart-crm-leads/smart-crm-leads.component.d.ts +1 -0
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.d.ts +1 -0
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.d.ts +1 -0
- package/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.d.ts +3 -1
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.d.ts +11 -4
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.d.ts +1 -0
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.d.ts +2 -0
- package/lib/private/smart-crm-private.module.d.ts +60 -61
- 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
package/index.d.ts
CHANGED
|
@@ -38,8 +38,7 @@ export * from './lib/private/components/smart-crm-opportunities/smart-crm-opport
|
|
|
38
38
|
export * from './lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component';
|
|
39
39
|
export * from './lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component';
|
|
40
40
|
export * from './lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component';
|
|
41
|
-
export * from './lib/private/components/smart-crm-
|
|
42
|
-
export * from './lib/private/components/smart-crm-summary/smart-crm-summary.component';
|
|
41
|
+
export * from './lib/private/components/smart-crm-actions/smart-crm-actions.component';
|
|
43
42
|
export * from './lib/private/components/smart-crm-tabs/smart-crm-tabs.component';
|
|
44
43
|
export * from './lib/private/smart-crm-private.routing.module';
|
|
45
44
|
export * from './lib/private/smart-crm-private.module';
|
|
@@ -8,7 +8,7 @@ import { Observable } from 'rxjs';
|
|
|
8
8
|
import { Subscription, User, Country } from '@posiwise/common-utilities';
|
|
9
9
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
10
10
|
import { AuthService, CommonService, GeoService, SubscriptionService, LogoCacheService } from '@posiwise/common-services';
|
|
11
|
-
import {
|
|
11
|
+
import { CrmOpportunityContact, CrmOwner, FilteredCrmComment, FilteredData, OrganizationIndustry, OrganizationSize, OrganizationType, SmartCrmAction } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
12
12
|
import { CrmAccount } from 'libs/smart-crm/src/lib/shared/interface/crm-account.interface';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
interface SubscriptionMember {
|
|
@@ -73,7 +73,7 @@ export declare class SmartCrmCompanyInfoComponent extends AppBaseComponent imple
|
|
|
73
73
|
updating: boolean;
|
|
74
74
|
actionId: number;
|
|
75
75
|
accountVersioning: string[];
|
|
76
|
-
contacts:
|
|
76
|
+
contacts: CrmOpportunityContact[];
|
|
77
77
|
options: UploaderOptions;
|
|
78
78
|
uploadInput: EventEmitter<UploadInput>;
|
|
79
79
|
files: UploadFile[];
|
|
@@ -90,6 +90,7 @@ export declare class SmartCrmCompanyInfoComponent extends AppBaseComponent imple
|
|
|
90
90
|
routers: {
|
|
91
91
|
accounts: string;
|
|
92
92
|
contacts: string;
|
|
93
|
+
accountContacts: string;
|
|
93
94
|
accountInfo: string;
|
|
94
95
|
addAccount: string;
|
|
95
96
|
contactInfo: string;
|
|
@@ -2,12 +2,10 @@ import { Injector, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { LazyLoadEvent } from 'primeng/api';
|
|
3
3
|
import { Paging } from '@posiwise/common-utilities';
|
|
4
4
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
|
-
import { PermissionService } from '@posiwise/common-services';
|
|
6
5
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class SmartCrmCompanyAccountInvoiceComponent extends AppBaseComponent implements OnDestroy {
|
|
9
8
|
private readonly crmService;
|
|
10
|
-
private readonly permissionSrvice;
|
|
11
9
|
accountId: number;
|
|
12
10
|
invoices: any[];
|
|
13
11
|
buttonBusy: boolean;
|
|
@@ -21,7 +19,7 @@ export declare class SmartCrmCompanyAccountInvoiceComponent extends AppBaseCompo
|
|
|
21
19
|
page: number;
|
|
22
20
|
totalRecords: number;
|
|
23
21
|
invoiceFrequency: string[];
|
|
24
|
-
constructor(injector: Injector, crmService: CrmService
|
|
22
|
+
constructor(injector: Injector, crmService: CrmService);
|
|
25
23
|
onLazyLoad(event: LazyLoadEvent): void;
|
|
26
24
|
fetchInvoices(paging: Paging): void;
|
|
27
25
|
ngOnDestroy(): void;
|
|
@@ -3,7 +3,7 @@ import { CrmService } from '@posiwise/smart-crm-shared';
|
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
4
|
import { Subscription } from '@posiwise/common-utilities';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class CrmActionsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
7
7
|
private readonly crmService;
|
|
8
8
|
private readonly document;
|
|
9
9
|
contactActions: any[];
|
|
@@ -24,12 +24,13 @@ export declare class SmartCrmSummaryActionsComponent extends AppBaseComponent im
|
|
|
24
24
|
showFilter: boolean;
|
|
25
25
|
subscription: Subscription;
|
|
26
26
|
selector: string;
|
|
27
|
-
|
|
27
|
+
suggestedActionsSelector: string;
|
|
28
28
|
private totalPendingActions;
|
|
29
29
|
currentPage: number;
|
|
30
30
|
routers: {
|
|
31
31
|
accounts: string;
|
|
32
32
|
contacts: string;
|
|
33
|
+
accountContacts: string;
|
|
33
34
|
accountInfo: string;
|
|
34
35
|
addAccount: string;
|
|
35
36
|
contactInfo: string;
|
|
@@ -53,6 +54,7 @@ export declare class SmartCrmSummaryActionsComponent extends AppBaseComponent im
|
|
|
53
54
|
onScrollPendingActions(): void;
|
|
54
55
|
/** Function to get all actions */
|
|
55
56
|
private getAccountActions;
|
|
57
|
+
handleImageError(event: Event, fallbackPath: any): void;
|
|
56
58
|
/** Function to get account action suggested */
|
|
57
59
|
private getAccountActionSuggested;
|
|
58
60
|
editComment(event: any): void;
|
|
@@ -68,6 +70,6 @@ export declare class SmartCrmSummaryActionsComponent extends AppBaseComponent im
|
|
|
68
70
|
/** Function to filter the data by user */
|
|
69
71
|
filterByUser(event: any): void;
|
|
70
72
|
ngOnDestroy(): void;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrmActionsComponent, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CrmActionsComponent, "pw-crm-actions", never, {}, {}, never, never, false, never>;
|
|
73
75
|
}
|
|
@@ -15,12 +15,15 @@ export declare class SmartCrmStagesComponent extends AppBaseComponent implements
|
|
|
15
15
|
isLoaded: boolean;
|
|
16
16
|
subscriptionId: number;
|
|
17
17
|
private page;
|
|
18
|
+
filterByCategory: any[];
|
|
18
19
|
subscription: Subscription;
|
|
19
20
|
stageNames: any[];
|
|
20
21
|
categories: any[];
|
|
22
|
+
availableCategories: 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;
|
|
@@ -52,6 +55,7 @@ export declare class SmartCrmStagesComponent extends AppBaseComponent implements
|
|
|
52
55
|
onDelete(id: number): void;
|
|
53
56
|
/** Function to get all categories */
|
|
54
57
|
private getAllOpportunityCategories;
|
|
58
|
+
onSearchOptionChange(event: any): void;
|
|
55
59
|
ngOnDestroy(): void;
|
|
56
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmStagesComponent, never>;
|
|
57
61
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmStagesComponent, "pw-smart-crm-stages", never, {}, {}, never, never, false, never>;
|
|
@@ -10,12 +10,16 @@ export declare class SmartCrmAccountInsightComponent extends AppBaseComponent im
|
|
|
10
10
|
accountAtRisk: [];
|
|
11
11
|
ContractRenewal: [];
|
|
12
12
|
accountInsight: [];
|
|
13
|
-
accountGeography:
|
|
13
|
+
accountGeography: {
|
|
14
|
+
data: [];
|
|
15
|
+
layout: object;
|
|
16
|
+
};
|
|
14
17
|
churnedAccounts: [];
|
|
15
18
|
accountLastActivities: [];
|
|
16
19
|
routers: {
|
|
17
20
|
accounts: string;
|
|
18
21
|
contacts: string;
|
|
22
|
+
accountContacts: string;
|
|
19
23
|
accountInfo: string;
|
|
20
24
|
addAccount: string;
|
|
21
25
|
contactInfo: string;
|
|
@@ -60,6 +64,8 @@ export declare class SmartCrmAccountInsightComponent extends AppBaseComponent im
|
|
|
60
64
|
private getChurnedAccounts;
|
|
61
65
|
/** Function to call Active Opportunities details */
|
|
62
66
|
private getActiveOpportunities;
|
|
67
|
+
private getMagicMoment;
|
|
68
|
+
private getCreditCardExpiringDetails;
|
|
63
69
|
/** Function to call Account At Risk details */
|
|
64
70
|
private getAccountAtRiskDetails;
|
|
65
71
|
/** Function to call Contract renewal details */
|
|
@@ -7,9 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class SmartCrmAnalysisComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
8
8
|
private readonly crmService;
|
|
9
9
|
graph: Plotly.Figure;
|
|
10
|
-
|
|
11
|
-
creditCardExpiring: [];
|
|
12
|
-
magicMoment: [];
|
|
10
|
+
revenueGraph: Plotly.Figure;
|
|
13
11
|
subscriptionId: number;
|
|
14
12
|
hasAccess: boolean;
|
|
15
13
|
startDate: NgbDateStruct;
|
|
@@ -20,6 +18,7 @@ export declare class SmartCrmAnalysisComponent extends AppBaseComponent implemen
|
|
|
20
18
|
routers: {
|
|
21
19
|
accounts: string;
|
|
22
20
|
contacts: string;
|
|
21
|
+
accountContacts: string;
|
|
23
22
|
accountInfo: string;
|
|
24
23
|
addAccount: string;
|
|
25
24
|
contactInfo: string;
|
|
@@ -38,18 +37,19 @@ export declare class SmartCrmAnalysisComponent extends AppBaseComponent implemen
|
|
|
38
37
|
stageDetails: string;
|
|
39
38
|
widgetsDetails: string;
|
|
40
39
|
};
|
|
41
|
-
magicMomentLoaded: boolean;
|
|
42
40
|
subscription: Subscription;
|
|
43
|
-
|
|
41
|
+
selectedDateRange: any;
|
|
42
|
+
dateRanges: any;
|
|
44
43
|
constructor(crmService: CrmService, injector: Injector);
|
|
45
44
|
ngOnInit(): void;
|
|
46
45
|
private getUserInfo;
|
|
47
46
|
/** Function to get the data for the graph */
|
|
48
47
|
private getChartData;
|
|
49
48
|
private getRevenueGraph;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
onDateRangeSelect(event: {
|
|
50
|
+
startDate: moment.Moment;
|
|
51
|
+
endDate: moment.Moment;
|
|
52
|
+
}): void;
|
|
53
53
|
ngOnDestroy(): void;
|
|
54
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmAnalysisComponent, never>;
|
|
55
55
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmAnalysisComponent, "pw-smart-crm-analysis", never, {}, {}, never, never, false, never>;
|
|
@@ -4,15 +4,12 @@ import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
|
4
4
|
import { Plotly, Subscription, User } from '@posiwise/common-utilities';
|
|
5
5
|
import { OpportunityInsight } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
6
6
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
7
|
-
import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class SmartCrmContactInsightComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
10
9
|
private readonly crmService;
|
|
11
10
|
private readonly cdr;
|
|
12
11
|
private readonly adminService;
|
|
13
12
|
loading: boolean;
|
|
14
|
-
startDate: NgbDateStruct;
|
|
15
|
-
endDate: NgbDateStruct;
|
|
16
13
|
contactId: number;
|
|
17
14
|
accountId: number;
|
|
18
15
|
subscriptionId: number;
|
|
@@ -25,6 +22,7 @@ export declare class SmartCrmContactInsightComponent extends AppBaseComponent im
|
|
|
25
22
|
routers: {
|
|
26
23
|
accounts: string;
|
|
27
24
|
contacts: string;
|
|
25
|
+
accountContacts: string;
|
|
28
26
|
accountInfo: string;
|
|
29
27
|
addAccount: string;
|
|
30
28
|
contactInfo: string;
|
|
@@ -46,6 +44,8 @@ export declare class SmartCrmContactInsightComponent extends AppBaseComponent im
|
|
|
46
44
|
contactInsightLoaded: boolean;
|
|
47
45
|
geographyLoaded: boolean;
|
|
48
46
|
userBaseLoaded: boolean;
|
|
47
|
+
selectedDateRange: any;
|
|
48
|
+
dateRanges: any;
|
|
49
49
|
crmAccountIds: string;
|
|
50
50
|
constructor(crmService: CrmService, injector: Injector, cdr: ChangeDetectorRef, adminService: AdminService);
|
|
51
51
|
ngOnInit(): void;
|
|
@@ -54,7 +54,10 @@ export declare class SmartCrmContactInsightComponent extends AppBaseComponent im
|
|
|
54
54
|
/** Function to call contact geography */
|
|
55
55
|
getContactGeography(): void;
|
|
56
56
|
getUserBaseData(): void;
|
|
57
|
-
|
|
57
|
+
onDateRangeSelect(event: {
|
|
58
|
+
startDate: moment.Moment;
|
|
59
|
+
endDate: moment.Moment;
|
|
60
|
+
}): void;
|
|
58
61
|
ngOnDestroy(): void;
|
|
59
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmContactInsightComponent, never>;
|
|
60
63
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmContactInsightComponent, "pw-smart-crm-contact-insight", never, {}, {}, never, never, false, never>;
|
|
@@ -5,7 +5,6 @@ import { CrmOpportunityResponse } from '../../../../shared/interface/crm-opportu
|
|
|
5
5
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
6
6
|
import { ProductService } from '@posiwise/common-services';
|
|
7
7
|
import { OpportunityInsight } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
8
|
-
import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class SmartCrmOpportunitiesInsightComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
11
10
|
private readonly crmService;
|
|
@@ -15,8 +14,8 @@ export declare class SmartCrmOpportunitiesInsightComponent extends AppBaseCompon
|
|
|
15
14
|
subscriptionId: number;
|
|
16
15
|
hasAccess: boolean;
|
|
17
16
|
searchText: string;
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
selectedDateRange: any;
|
|
18
|
+
dateRanges: any;
|
|
20
19
|
data: CrmOpportunityResponse;
|
|
21
20
|
id: string;
|
|
22
21
|
isLoaded: boolean;
|
|
@@ -38,6 +37,7 @@ export declare class SmartCrmOpportunitiesInsightComponent extends AppBaseCompon
|
|
|
38
37
|
routers: {
|
|
39
38
|
accounts: string;
|
|
40
39
|
contacts: string;
|
|
40
|
+
accountContacts: string;
|
|
41
41
|
accountInfo: string;
|
|
42
42
|
addAccount: string;
|
|
43
43
|
contactInfo: string;
|
|
@@ -71,7 +71,10 @@ export declare class SmartCrmOpportunitiesInsightComponent extends AppBaseCompon
|
|
|
71
71
|
private getOpportunityCategory;
|
|
72
72
|
private getOpportunityStage;
|
|
73
73
|
private getOpportunityGraph;
|
|
74
|
-
|
|
74
|
+
onDateRangeSelect(event: {
|
|
75
|
+
startDate: moment.Moment;
|
|
76
|
+
endDate: moment.Moment;
|
|
77
|
+
}): void;
|
|
75
78
|
checkPermission(permission: string): boolean;
|
|
76
79
|
ngOnDestroy(): void;
|
|
77
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmOpportunitiesInsightComponent, never>;
|
|
@@ -21,6 +21,7 @@ export declare class SmartCrmBoardComponent extends AppBaseComponent implements
|
|
|
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;
|
|
@@ -47,12 +48,13 @@ export declare class SmartCrmBoardComponent extends AppBaseComponent implements
|
|
|
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;
|
|
@@ -3,11 +3,13 @@ import { UntypedFormGroup } from '@angular/forms';
|
|
|
3
3
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
4
4
|
import { User } from '@posiwise/common-utilities';
|
|
5
5
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
6
|
-
import {
|
|
6
|
+
import { CrmOpportunityContact } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
7
7
|
import { CrmAccount } from 'libs/smart-crm/src/lib/shared/interface/crm-account.interface';
|
|
8
|
+
import { ProductService } from '@posiwise/common-services';
|
|
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
14
|
user: User;
|
|
13
15
|
id: number;
|
|
@@ -18,13 +20,14 @@ export declare class SmartCrmOpportunitiesDetailsComponent extends AppBaseCompon
|
|
|
18
20
|
isLoading: boolean;
|
|
19
21
|
searchText: string;
|
|
20
22
|
subscriptionId: number;
|
|
21
|
-
allContacts:
|
|
23
|
+
allContacts: CrmOpportunityContact[];
|
|
22
24
|
contactId: number;
|
|
23
25
|
private opportunityData;
|
|
24
|
-
filteredUsers:
|
|
26
|
+
filteredUsers: CrmOpportunityContact[];
|
|
25
27
|
cancelledTrue: boolean;
|
|
26
28
|
winChance: number[];
|
|
27
29
|
opportunities: any[];
|
|
30
|
+
masterProductId: number;
|
|
28
31
|
WonField: boolean;
|
|
29
32
|
LostField: boolean;
|
|
30
33
|
isContactChange: boolean;
|
|
@@ -33,25 +36,29 @@ export declare class SmartCrmOpportunitiesDetailsComponent extends AppBaseCompon
|
|
|
33
36
|
filteredAccounts: CrmAccount[];
|
|
34
37
|
account_id: number;
|
|
35
38
|
masterStages: any[];
|
|
39
|
+
isUserSubscriptionSuperAdmin: boolean;
|
|
36
40
|
stages: any[];
|
|
37
41
|
categories: any[];
|
|
38
42
|
accountValueCount: number;
|
|
39
43
|
currentAccountId: any;
|
|
40
44
|
featureKeys: any[];
|
|
45
|
+
currencies: any[];
|
|
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 */
|
|
@@ -33,6 +33,7 @@ export declare class SmartCrmOpportunitiesListComponent extends AppBaseComponent
|
|
|
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;
|