@posiwise/smart-crm 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.mjs +2 -3
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.mjs +4 -1
- 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 +4 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.mjs +4 -1
- 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 +1 -1
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.mjs +1 -2
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.mjs +1 -2
- package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.mjs +4 -6
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.mjs +2 -2
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.mjs +1 -2
- package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.mjs +2 -2
- 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 +1 -1
- package/esm2022/lib/shared/interface/crm-account.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/crm-contact.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/crm-lead.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/crm-newsletter.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/crm-opportunity.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/crm-stages.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/smart-crm-module.interface.mjs +2 -0
- package/fesm2022/posiwise-smart-crm.mjs +15 -12
- package/fesm2022/posiwise-smart-crm.mjs.map +1 -1
- package/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.d.ts +8 -7
- package/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.d.ts +1 -1
- package/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.d.ts +28 -17
- package/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.d.ts +6 -5
- package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.d.ts +1 -1
- package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.d.ts +2 -1
- package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.d.ts +1 -1
- package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.d.ts +2 -1
- package/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.d.ts +2 -2
- package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.d.ts +1 -1
- package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.d.ts +3 -2
- package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.d.ts +2 -2
- package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.d.ts +2 -1
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.d.ts +3 -3
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.d.ts +7 -4
- package/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.d.ts +4 -2
- package/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.d.ts +2 -2
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.d.ts +0 -1
- package/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.d.ts +2 -2
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.d.ts +6 -4
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.d.ts +5 -4
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.d.ts +5 -5
- package/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.d.ts +1 -1
- package/lib/shared/interface/crm-account.interface.d.ts +24 -6
- package/lib/shared/interface/crm-contact.interface.d.ts +3 -3
- package/lib/shared/interface/crm-lead.interface.d.ts +4 -4
- package/lib/shared/interface/crm-newsletter.interface.d.ts +14 -14
- package/lib/shared/interface/crm-opportunity.interface.d.ts +9 -9
- package/lib/shared/interface/crm-stages.interface.d.ts +1 -1
- package/lib/shared/interface/smart-crm-module.interface.d.ts +180 -0
- package/package.json +1 -1
|
@@ -2,10 +2,11 @@ import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { User, Subscription } from '@posiwise/common-utilities';
|
|
5
|
+
import { User, Subscription, Country } from '@posiwise/common-utilities';
|
|
6
6
|
import { CrmAccount } from '../../../../shared/interface/crm-account.interface';
|
|
7
7
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
8
8
|
import { CommonService, GeoService, SubscriptionService } from '@posiwise/common-services';
|
|
9
|
+
import { OrganizationIndustry, OrganizationSize, OrganizationType, SubscriptionMember } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class SmartCrmCompanyDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
11
12
|
private subscriptionService;
|
|
@@ -19,20 +20,20 @@ export declare class SmartCrmCompanyDetailsComponent extends AppBaseComponent im
|
|
|
19
20
|
data: CrmAccount;
|
|
20
21
|
onEdit: boolean;
|
|
21
22
|
subscriptionMembers: [];
|
|
22
|
-
organizationSizes$: Observable<
|
|
23
|
-
organizationTypes$: Observable<
|
|
24
|
-
organizationIndustries$: Observable<
|
|
23
|
+
organizationSizes$: Observable<OrganizationSize[]>;
|
|
24
|
+
organizationTypes$: Observable<OrganizationType[]>;
|
|
25
|
+
organizationIndustries$: Observable<OrganizationIndustry[]>;
|
|
25
26
|
private countries$;
|
|
26
|
-
allSubscriptionMembers:
|
|
27
|
+
allSubscriptionMembers: SubscriptionMember[];
|
|
27
28
|
subscriptionId: number;
|
|
28
29
|
hasAccess: boolean;
|
|
29
|
-
filteredOwners:
|
|
30
|
+
filteredOwners: SubscriptionMember[];
|
|
30
31
|
subscription: Subscription;
|
|
31
32
|
status: any[];
|
|
32
33
|
priority: any[];
|
|
33
34
|
source: any[];
|
|
34
35
|
private countryNames;
|
|
35
|
-
filteredCountries:
|
|
36
|
+
filteredCountries: Country[];
|
|
36
37
|
constructor(injector: Injector, subscriptionService: SubscriptionService, crmService: CrmService, commonService: CommonService, geoService: GeoService);
|
|
37
38
|
onSearchOwner(event: any): void;
|
|
38
39
|
ngOnInit(): void;
|
|
@@ -16,7 +16,7 @@ export declare class SmartCrmCompanyFilesComponent extends AppBaseComponent impl
|
|
|
16
16
|
contactId: number;
|
|
17
17
|
opportunityId: number;
|
|
18
18
|
isLoaded: boolean;
|
|
19
|
-
allFiles:
|
|
19
|
+
allFiles: string[];
|
|
20
20
|
searchText: string;
|
|
21
21
|
totalRecordsUnFiltered: number;
|
|
22
22
|
totalRecords: number;
|
|
@@ -6,10 +6,18 @@ import { LogoCacheService } from '@posiwise/common-services';
|
|
|
6
6
|
import { UploadFile, UploadInput, UploadOutput, UploaderOptions } from 'ngx-uploader';
|
|
7
7
|
import { LazyLoadEvent } from 'primeng/api';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
9
|
-
import { Subscription, User } from '@posiwise/common-utilities';
|
|
9
|
+
import { Subscription, User, Country } from '@posiwise/common-utilities';
|
|
10
10
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
11
11
|
import { AuthService, CommonService, GeoService, SubscriptionService } from '@posiwise/common-services';
|
|
12
|
+
import { CrmOwner, CrmopportunityContact, FilteredCrmComment, FilteredData, OrganizationIndustry, OrganizationSize, OrganizationType, SmartCrmAction } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
13
|
+
import { CrmAccount } from 'libs/smart-crm/src/lib/shared/interface/crm-account.interface';
|
|
12
14
|
import * as i0 from "@angular/core";
|
|
15
|
+
interface SubscriptionMember {
|
|
16
|
+
id: number;
|
|
17
|
+
first_name: string;
|
|
18
|
+
last_name: string;
|
|
19
|
+
email: string;
|
|
20
|
+
}
|
|
13
21
|
export declare class SmartCrmCompanyInfoComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
14
22
|
private crmService;
|
|
15
23
|
private subscriptionService;
|
|
@@ -27,17 +35,19 @@ export declare class SmartCrmCompanyInfoComponent extends AppBaseComponent imple
|
|
|
27
35
|
userId: number;
|
|
28
36
|
isFormEdit: boolean;
|
|
29
37
|
user: User;
|
|
30
|
-
allSubscriptionMembers:
|
|
31
|
-
filteredOwner:
|
|
32
|
-
data:
|
|
38
|
+
allSubscriptionMembers: SubscriptionMember[];
|
|
39
|
+
filteredOwner: SubscriptionMember[];
|
|
40
|
+
data: CrmAccount;
|
|
33
41
|
submitted: boolean;
|
|
34
42
|
accountComments: any[];
|
|
35
43
|
hasAccess: boolean;
|
|
36
44
|
body: string;
|
|
37
45
|
editComment: boolean;
|
|
38
|
-
filteredContact:
|
|
46
|
+
filteredContact: {
|
|
47
|
+
displayName: string;
|
|
48
|
+
}[];
|
|
39
49
|
private isContactValid;
|
|
40
|
-
filteredContactComment:
|
|
50
|
+
filteredContactComment: FilteredCrmComment[];
|
|
41
51
|
contactId: number;
|
|
42
52
|
isLoaded: boolean;
|
|
43
53
|
totalRecords: number;
|
|
@@ -48,22 +58,22 @@ export declare class SmartCrmCompanyInfoComponent extends AppBaseComponent imple
|
|
|
48
58
|
filterByPotentials: string;
|
|
49
59
|
showFullComment: boolean;
|
|
50
60
|
commentId: number;
|
|
51
|
-
status:
|
|
52
|
-
priority:
|
|
53
|
-
source:
|
|
54
|
-
organizationSizes$: Observable<
|
|
55
|
-
organizationIndustries$: Observable<
|
|
56
|
-
countries$: Observable<
|
|
57
|
-
organizationTypes$: Observable<
|
|
58
|
-
owner:
|
|
59
|
-
actions:
|
|
61
|
+
status: string[];
|
|
62
|
+
priority: FilteredData[];
|
|
63
|
+
source: FilteredData[];
|
|
64
|
+
organizationSizes$: Observable<OrganizationSize[]>;
|
|
65
|
+
organizationIndustries$: Observable<OrganizationIndustry[]>;
|
|
66
|
+
countries$: Observable<Country[]>;
|
|
67
|
+
organizationTypes$: Observable<OrganizationType[]>;
|
|
68
|
+
owner: CrmOwner;
|
|
69
|
+
actions: SmartCrmAction[];
|
|
60
70
|
buttonDisable: boolean;
|
|
61
71
|
isDisabled: boolean;
|
|
62
72
|
dangerColor: boolean;
|
|
63
73
|
updating: boolean;
|
|
64
74
|
actionId: number;
|
|
65
|
-
accountVersioning:
|
|
66
|
-
contacts:
|
|
75
|
+
accountVersioning: string[];
|
|
76
|
+
contacts: CrmopportunityContact[];
|
|
67
77
|
options: UploaderOptions;
|
|
68
78
|
uploadInput: EventEmitter<UploadInput>;
|
|
69
79
|
files: UploadFile[];
|
|
@@ -158,3 +168,4 @@ export declare class SmartCrmCompanyInfoComponent extends AppBaseComponent imple
|
|
|
158
168
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmCompanyInfoComponent, never>;
|
|
159
169
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmCompanyInfoComponent, "pw-smart-crm-company-info", never, {}, {}, never, never, false, never>;
|
|
160
170
|
}
|
|
171
|
+
export {};
|
|
@@ -5,6 +5,7 @@ import { Plotly, Subscription } from '@posiwise/common-utilities';
|
|
|
5
5
|
import { CrmAccountResponse } from '../../../shared/interface/crm-account.interface';
|
|
6
6
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
7
|
import { CommonService, LogoCacheService } from '@posiwise/common-services';
|
|
8
|
+
import { OpportunityCategory, UserAccount } from '../../../shared/interface/smart-crm-module.interface';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class SmartCrmCompaniesComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
10
11
|
private crmService;
|
|
@@ -20,7 +21,7 @@ export declare class SmartCrmCompaniesComponent extends AppBaseComponent impleme
|
|
|
20
21
|
hasAccess: boolean;
|
|
21
22
|
isLoaded: boolean;
|
|
22
23
|
private allIndustries;
|
|
23
|
-
searchOptions:
|
|
24
|
+
searchOptions: OpportunityCategory[];
|
|
24
25
|
filterByIndustries: any[];
|
|
25
26
|
status: any[];
|
|
26
27
|
priority: any[];
|
|
@@ -32,9 +33,9 @@ export declare class SmartCrmCompaniesComponent extends AppBaseComponent impleme
|
|
|
32
33
|
searchLocationText: string;
|
|
33
34
|
private filterByLocation;
|
|
34
35
|
accountGeography: Plotly.Figure;
|
|
35
|
-
accountActivities:
|
|
36
|
-
accountLastInvoices:
|
|
37
|
-
accountInsight:
|
|
36
|
+
accountActivities: string[];
|
|
37
|
+
accountLastInvoices: string[];
|
|
38
|
+
accountInsight: string[];
|
|
38
39
|
private page;
|
|
39
40
|
subscription: Subscription;
|
|
40
41
|
routers: {
|
|
@@ -84,7 +85,7 @@ export declare class SmartCrmCompaniesComponent extends AppBaseComponent impleme
|
|
|
84
85
|
clearFilters(): void;
|
|
85
86
|
/** Function to call account geography */
|
|
86
87
|
private getAccountGeography;
|
|
87
|
-
getUserAccountInfo(account:
|
|
88
|
+
getUserAccountInfo(account: UserAccount): {
|
|
88
89
|
message: string;
|
|
89
90
|
iconClass: string;
|
|
90
91
|
};
|
|
@@ -16,7 +16,7 @@ export declare class SmartCrmSettingsDetailsComponent extends AppBaseComponent i
|
|
|
16
16
|
targetWeek: any[];
|
|
17
17
|
targetWeekMin: any[];
|
|
18
18
|
subscriptionId: number;
|
|
19
|
-
actions$: Observable<
|
|
19
|
+
actions$: Observable<string>;
|
|
20
20
|
subscription: Subscription;
|
|
21
21
|
constructor(crmService: CrmService, injector: Injector);
|
|
22
22
|
ngOnInit(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
3
3
|
import { LazyLoadEvent } from 'primeng/api';
|
|
4
|
-
import { Subscription } from '@posiwise/common-utilities';
|
|
4
|
+
import { Paging, Subscription } from '@posiwise/common-utilities';
|
|
5
5
|
import { CrmActionResponse } from '../../../../shared/interface/crm-action.interface';
|
|
6
6
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -45,6 +45,7 @@ export declare class SmartCrmActionsComponent extends AppBaseComponent implement
|
|
|
45
45
|
shouldShowTableContent(): boolean;
|
|
46
46
|
/** Function to get and show all the actions */
|
|
47
47
|
private getActions;
|
|
48
|
+
invokeGetActions(paging: Paging): void;
|
|
48
49
|
buildDefaultActions(): void;
|
|
49
50
|
/** Function to delete existing setting */
|
|
50
51
|
onDelete(id: number): void;
|
|
@@ -12,7 +12,7 @@ export declare class SmartCrmOpportunityCategoriesDetailsComponent extends AppBa
|
|
|
12
12
|
subscriptionId: number;
|
|
13
13
|
submitted: boolean;
|
|
14
14
|
id: number;
|
|
15
|
-
categories$: Observable<
|
|
15
|
+
categories$: Observable<string>;
|
|
16
16
|
constructor(injector: Injector, crmService: CrmService);
|
|
17
17
|
ngOnInit(): void;
|
|
18
18
|
/** Function to get opportunity Details */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
3
3
|
import { LazyLoadEvent } from 'primeng/api';
|
|
4
|
-
import { Subscription } from '@posiwise/common-utilities';
|
|
4
|
+
import { Paging, Subscription } from '@posiwise/common-utilities';
|
|
5
5
|
import { CrmOpportunityCategoryResponse } from '../../../../shared/interface/crm-opportunity.interface';
|
|
6
6
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
7
|
import { User } from '@posiwise/common-utilities';
|
|
@@ -46,6 +46,7 @@ export declare class SmartCrmOpportunityCategoriesComponent extends AppBaseCompo
|
|
|
46
46
|
onLazyLoad(event: LazyLoadEvent): void;
|
|
47
47
|
/** Function to get all categories */
|
|
48
48
|
private getAllOpportunityCategories;
|
|
49
|
+
invokeGetAllOpportunityCategories(paging: Paging): void;
|
|
49
50
|
/** Function to delete categories */
|
|
50
51
|
onDelete(id: number): void;
|
|
51
52
|
buildCategories(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
3
3
|
import { LazyLoadEvent } from 'primeng/api';
|
|
4
|
-
import { Subscription } from '@posiwise/common-utilities';
|
|
4
|
+
import { Paging, Subscription } from '@posiwise/common-utilities';
|
|
5
5
|
import { CrmSourceResponse } from '../../../../shared/interface/crm-source.interface';
|
|
6
6
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -42,7 +42,7 @@ export declare class SmartCrmCompanySourceComponent extends AppBaseComponent imp
|
|
|
42
42
|
ngAfterViewChecked(): void;
|
|
43
43
|
onLazyLoad(event: LazyLoadEvent): void;
|
|
44
44
|
/** Function to all account source */
|
|
45
|
-
|
|
45
|
+
getAllSource(paging: Paging): void;
|
|
46
46
|
buildAccountSource(): void;
|
|
47
47
|
/** Function to delete account source */
|
|
48
48
|
onDelete(id: any): void;
|
|
@@ -13,7 +13,7 @@ export declare class SmartCrmStageDetailsComponent extends AppBaseComponent impl
|
|
|
13
13
|
hasAccess: boolean;
|
|
14
14
|
submitted: boolean;
|
|
15
15
|
id: number;
|
|
16
|
-
stages$: Observable<
|
|
16
|
+
stages$: Observable<string>;
|
|
17
17
|
categories: any[];
|
|
18
18
|
constructor(injector: Injector, crmService: CrmService);
|
|
19
19
|
ngOnInit(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
3
3
|
import { LazyLoadEvent } from 'primeng/api';
|
|
4
|
-
import { Subscription } from '@posiwise/common-utilities';
|
|
4
|
+
import { Paging, Subscription } from '@posiwise/common-utilities';
|
|
5
5
|
import { CrmStageResponse } from '../../../../shared/interface/crm-stages.interface';
|
|
6
6
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -44,7 +44,8 @@ export declare class SmartCrmStagesComponent extends AppBaseComponent implements
|
|
|
44
44
|
ngAfterViewChecked(): void;
|
|
45
45
|
onLazyLoad(event: LazyLoadEvent): void;
|
|
46
46
|
/** Function to get all stages */
|
|
47
|
-
|
|
47
|
+
getAllStages(paging: Paging): void;
|
|
48
|
+
getMappedAllStages(paging: Paging): void;
|
|
48
49
|
private sortByPreviousStageId;
|
|
49
50
|
buildDefaultStages(): void;
|
|
50
51
|
/** Function to delete stage */
|
|
@@ -14,8 +14,8 @@ export declare class SmartCrmWidgetsDetailsComponent extends AppBaseComponent im
|
|
|
14
14
|
hasAccess: boolean;
|
|
15
15
|
user: User;
|
|
16
16
|
submitted: boolean;
|
|
17
|
-
positions$: Observable<
|
|
18
|
-
allWidgets$: Observable<
|
|
17
|
+
positions$: Observable<string>;
|
|
18
|
+
allWidgets$: Observable<string>;
|
|
19
19
|
private widgetId;
|
|
20
20
|
constructor(injector: Injector, crmService: CrmService);
|
|
21
21
|
ngOnInit(): void;
|
|
@@ -4,6 +4,7 @@ import { LazyLoadEvent } from 'primeng/api';
|
|
|
4
4
|
import { Subscription } from '@posiwise/common-utilities';
|
|
5
5
|
import { CrmWidgetResponse } from '../../../../shared/interface/crm-widget.interface';
|
|
6
6
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
|
+
import { FilteredData } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class SmartCrmWidgetsComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
9
10
|
private crmService;
|
|
@@ -14,7 +15,7 @@ export declare class SmartCrmWidgetsComponent extends AppBaseComponent implement
|
|
|
14
15
|
hasAccess: boolean;
|
|
15
16
|
isLoaded: boolean;
|
|
16
17
|
subscriptionId: number;
|
|
17
|
-
allWidgets:
|
|
18
|
+
allWidgets: FilteredData[];
|
|
18
19
|
positions: any[];
|
|
19
20
|
private page;
|
|
20
21
|
subscription: Subscription;
|
|
@@ -16,14 +16,14 @@ export declare class SmartCrmContactDetailsComponent extends AppBaseComponent im
|
|
|
16
16
|
id: number;
|
|
17
17
|
user: User;
|
|
18
18
|
submitted: boolean;
|
|
19
|
-
departments$: Observable<
|
|
19
|
+
departments$: Observable<string>;
|
|
20
20
|
accounts: CrmAccount[];
|
|
21
21
|
subscriptionId: number;
|
|
22
22
|
accountId: number;
|
|
23
|
-
filteredAccounts:
|
|
23
|
+
filteredAccounts: CrmAccount[];
|
|
24
24
|
potentials: any[];
|
|
25
25
|
labels: any[];
|
|
26
|
-
crmSources$: Observable<
|
|
26
|
+
crmSources$: Observable<string>;
|
|
27
27
|
/** Function to get form controls */
|
|
28
28
|
get f(): {
|
|
29
29
|
[key: string]: import("@angular/forms").AbstractControl<any, any>;
|
|
@@ -6,6 +6,9 @@ import { UploadFile, UploadInput, UploadOutput, UploaderOptions } from 'ngx-uplo
|
|
|
6
6
|
import { Subscription } from '@posiwise/common-utilities';
|
|
7
7
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
8
8
|
import { AuthService } from '@posiwise/common-services';
|
|
9
|
+
import { SmartCrmAction } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
10
|
+
import { CrmAccount } from 'libs/smart-crm/src/lib/shared/interface/crm-account.interface';
|
|
11
|
+
import { CrmContact } from 'libs/smart-crm/src/lib/shared/interface/crm-contact.interface';
|
|
9
12
|
import * as i0 from "@angular/core";
|
|
10
13
|
export declare class SmartCrmContactInfoComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
11
14
|
private crmService;
|
|
@@ -16,9 +19,9 @@ export declare class SmartCrmContactInfoComponent extends AppBaseComponent imple
|
|
|
16
19
|
actionControls: UntypedFormGroup;
|
|
17
20
|
aboutControls: UntypedFormGroup;
|
|
18
21
|
contactId: number;
|
|
19
|
-
data:
|
|
22
|
+
data: CrmContact;
|
|
20
23
|
isDisabled: boolean;
|
|
21
|
-
actions:
|
|
24
|
+
actions: SmartCrmAction[];
|
|
22
25
|
model: NgbDateStruct;
|
|
23
26
|
date: {
|
|
24
27
|
year: number;
|
|
@@ -31,14 +34,14 @@ export declare class SmartCrmContactInfoComponent extends AppBaseComponent imple
|
|
|
31
34
|
contactComments: any[];
|
|
32
35
|
userId: number;
|
|
33
36
|
hasAccess: boolean;
|
|
34
|
-
contactVersioning: any;
|
|
37
|
+
contactVersioning: any[];
|
|
35
38
|
updating: boolean;
|
|
36
39
|
actionId: number;
|
|
37
40
|
dangerColor: boolean;
|
|
38
41
|
potentials: string[];
|
|
39
42
|
labels: any[];
|
|
40
43
|
buttonDisable: boolean;
|
|
41
|
-
filteredAccounts:
|
|
44
|
+
filteredAccounts: CrmAccount[];
|
|
42
45
|
showFullComment: boolean;
|
|
43
46
|
commentId: number;
|
|
44
47
|
accountId: number;
|
|
@@ -4,6 +4,8 @@ import { LazyLoadEvent } from 'primeng/api';
|
|
|
4
4
|
import { Plotly, User, Subscription } from '@posiwise/common-utilities';
|
|
5
5
|
import { CrmContactResponse } from '../../../shared/interface/crm-contact.interface';
|
|
6
6
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
|
+
import { OpportunityInsight } from '../../../shared/interface/smart-crm-module.interface';
|
|
8
|
+
import { CrmAccount } from '../../../shared/interface/crm-account.interface';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
export declare class SmartCrmContactComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
9
11
|
private crmService;
|
|
@@ -12,7 +14,7 @@ export declare class SmartCrmContactComponent extends AppBaseComponent implement
|
|
|
12
14
|
searchText: string;
|
|
13
15
|
loading: boolean;
|
|
14
16
|
contactId: number;
|
|
15
|
-
accountData:
|
|
17
|
+
accountData: CrmAccount;
|
|
16
18
|
accountId: number;
|
|
17
19
|
subscriptionId: number;
|
|
18
20
|
hasAccess: boolean;
|
|
@@ -23,7 +25,7 @@ export declare class SmartCrmContactComponent extends AppBaseComponent implement
|
|
|
23
25
|
labels: any[];
|
|
24
26
|
filterByStatus: string;
|
|
25
27
|
user: User;
|
|
26
|
-
contactInsight:
|
|
28
|
+
contactInsight: OpportunityInsight[];
|
|
27
29
|
contactGeography: Plotly.Figure;
|
|
28
30
|
private page;
|
|
29
31
|
subscription: Subscription;
|
|
@@ -14,8 +14,8 @@ export declare class SmartCrmLeadsDetailsComponent extends AppBaseComponent impl
|
|
|
14
14
|
id: number;
|
|
15
15
|
subscriptionId: number;
|
|
16
16
|
accounts: CrmAccount[];
|
|
17
|
-
filteredAccounts:
|
|
18
|
-
source$: Observable<
|
|
17
|
+
filteredAccounts: string[];
|
|
18
|
+
source$: Observable<string>;
|
|
19
19
|
potentials: any[];
|
|
20
20
|
labels: any[];
|
|
21
21
|
constructor(injector: Injector, crmService: CrmService);
|
|
@@ -52,8 +52,8 @@ export declare class SmartCrmBoardComponent extends AppBaseComponent implements
|
|
|
52
52
|
private opportunitiesGroups;
|
|
53
53
|
onChangeCategory(event: any): void;
|
|
54
54
|
onColumnScroll(columnIndex: number): void;
|
|
55
|
-
dropItem(event: CdkDragDrop<
|
|
56
|
-
getConnectedList():
|
|
55
|
+
dropItem(event: CdkDragDrop<object[]>): void;
|
|
56
|
+
getConnectedList(): string[];
|
|
57
57
|
dropGroup(event: CdkDragDrop<string[]>): void;
|
|
58
58
|
toggleColumn(event: any, group: any): void;
|
|
59
59
|
hasOpportunities(): boolean;
|
|
@@ -3,6 +3,8 @@ 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 { CrmopportunityContact } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
7
|
+
import { CrmAccount } from 'libs/smart-crm/src/lib/shared/interface/crm-account.interface';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
export declare class SmartCrmOpportunitiesDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
8
10
|
private crmService;
|
|
@@ -14,18 +16,18 @@ export declare class SmartCrmOpportunitiesDetailsComponent extends AppBaseCompon
|
|
|
14
16
|
submitted: boolean;
|
|
15
17
|
searchText: string;
|
|
16
18
|
subscriptionId: number;
|
|
17
|
-
allContacts:
|
|
19
|
+
allContacts: CrmopportunityContact[];
|
|
18
20
|
contactId: number;
|
|
19
21
|
private opportunityData;
|
|
20
|
-
filteredUsers:
|
|
21
|
-
cancelledTrue:
|
|
22
|
+
filteredUsers: CrmopportunityContact[];
|
|
23
|
+
cancelledTrue: boolean;
|
|
22
24
|
winChance: number[];
|
|
23
25
|
opportunities: any[];
|
|
24
26
|
WonField: boolean;
|
|
25
27
|
LostField: boolean;
|
|
26
28
|
TrialStartField: boolean;
|
|
27
29
|
accounts: any[];
|
|
28
|
-
filteredAccounts:
|
|
30
|
+
filteredAccounts: CrmAccount[];
|
|
29
31
|
account_id: number;
|
|
30
32
|
masterStages: any[];
|
|
31
33
|
stages: any[];
|
|
@@ -9,6 +9,7 @@ import { CrmVersion } from '../../../../../shared/interface/crm-opportunity.inte
|
|
|
9
9
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
10
10
|
import { Subscription } from '@posiwise/common-utilities';
|
|
11
11
|
import { AuthService } from '@posiwise/common-services';
|
|
12
|
+
import { OpportunityComment, OpportunityContact, OpportunityData } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare class SmartCrmOpportunitiesInfoComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
14
15
|
private crmService;
|
|
@@ -18,7 +19,7 @@ export declare class SmartCrmOpportunitiesInfoComponent extends AppBaseComponent
|
|
|
18
19
|
isLoaded: boolean;
|
|
19
20
|
isFormEdit: boolean;
|
|
20
21
|
opportunitiesId: number;
|
|
21
|
-
data:
|
|
22
|
+
data: OpportunityData;
|
|
22
23
|
aboutControls: UntypedFormGroup;
|
|
23
24
|
submitted: boolean;
|
|
24
25
|
accounts: CrmAccount[];
|
|
@@ -41,10 +42,10 @@ export declare class SmartCrmOpportunitiesInfoComponent extends AppBaseComponent
|
|
|
41
42
|
actionId: number;
|
|
42
43
|
showFullComment: boolean;
|
|
43
44
|
commentId: number;
|
|
44
|
-
opportunitiesComments:
|
|
45
|
+
opportunitiesComments: OpportunityComment[];
|
|
45
46
|
dangerColor: boolean;
|
|
46
|
-
allContacts:
|
|
47
|
-
filteredContacts:
|
|
47
|
+
allContacts: OpportunityContact[];
|
|
48
|
+
filteredContacts: OpportunityContact[];
|
|
48
49
|
opportunitiesVersioning: CrmVersion[];
|
|
49
50
|
submitAction: boolean;
|
|
50
51
|
subscription: Subscription;
|
|
@@ -5,6 +5,7 @@ import { CrmOpportunityResponse } from '../../../../shared/interface/crm-opportu
|
|
|
5
5
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
6
6
|
import { Plotly, Subscription, User } from '@posiwise/common-utilities';
|
|
7
7
|
import { ProductService } from '@posiwise/common-services';
|
|
8
|
+
import { OpportunityInsight } 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 SmartCrmOpportunitiesListComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
10
11
|
private crmService;
|
|
@@ -18,15 +19,14 @@ export declare class SmartCrmOpportunitiesListComponent extends AppBaseComponent
|
|
|
18
19
|
id: string;
|
|
19
20
|
isLoaded: boolean;
|
|
20
21
|
loading: boolean;
|
|
21
|
-
opportunitiesInsight:
|
|
22
|
+
opportunitiesInsight: OpportunityInsight[];
|
|
22
23
|
opportunitiesGeography: Plotly.Figure;
|
|
23
24
|
user: User;
|
|
24
25
|
userId: number;
|
|
25
|
-
searchStages:
|
|
26
|
-
|
|
27
|
-
filterByStages: any;
|
|
26
|
+
searchStages: object[];
|
|
27
|
+
filterByStages: string[];
|
|
28
28
|
filterByCategories: any[];
|
|
29
|
-
searchCategories:
|
|
29
|
+
searchCategories: object[];
|
|
30
30
|
page: number;
|
|
31
31
|
stages: any[];
|
|
32
32
|
categories: any[];
|
|
@@ -19,7 +19,7 @@ export declare class SmartCrmSummaryActionsComponent extends AppBaseComponent im
|
|
|
19
19
|
userId: number;
|
|
20
20
|
showFullComment: boolean;
|
|
21
21
|
commentId: number;
|
|
22
|
-
allSubscriptionMembers:
|
|
22
|
+
allSubscriptionMembers: string[];
|
|
23
23
|
contactActionsAll: any[];
|
|
24
24
|
showFilter: boolean;
|
|
25
25
|
subscription: Subscription;
|
|
@@ -4,8 +4,8 @@ export interface CrmAccount {
|
|
|
4
4
|
description: string;
|
|
5
5
|
subscription_id: number;
|
|
6
6
|
location: string;
|
|
7
|
-
latitude:
|
|
8
|
-
longitude:
|
|
7
|
+
latitude: number;
|
|
8
|
+
longitude: number;
|
|
9
9
|
comment: string;
|
|
10
10
|
tel: string;
|
|
11
11
|
country: string;
|
|
@@ -17,13 +17,31 @@ export interface CrmAccount {
|
|
|
17
17
|
status: string;
|
|
18
18
|
priority: string;
|
|
19
19
|
crm_source_id: number;
|
|
20
|
-
owner:
|
|
21
|
-
organisation_size:
|
|
22
|
-
organisation_type:
|
|
23
|
-
organisation_industry:
|
|
20
|
+
owner: Owner;
|
|
21
|
+
organisation_size: OrganisationSize;
|
|
22
|
+
organisation_type: OrganisationType;
|
|
23
|
+
organisation_industry: OrganisationIndustry;
|
|
24
|
+
}
|
|
25
|
+
interface OrganisationSize {
|
|
26
|
+
id: number;
|
|
27
|
+
size: string;
|
|
28
|
+
}
|
|
29
|
+
interface OrganisationType {
|
|
30
|
+
id: number;
|
|
31
|
+
type: string;
|
|
32
|
+
}
|
|
33
|
+
interface OrganisationIndustry {
|
|
34
|
+
id: number;
|
|
35
|
+
industry: string;
|
|
36
|
+
}
|
|
37
|
+
interface Owner {
|
|
38
|
+
id: number;
|
|
39
|
+
name: string;
|
|
40
|
+
email: string;
|
|
24
41
|
}
|
|
25
42
|
export interface CrmAccountResponse {
|
|
26
43
|
accounts: CrmAccount[];
|
|
27
44
|
object_count: number;
|
|
28
45
|
unfiltered_count: number;
|
|
29
46
|
}
|
|
47
|
+
export {};
|
|
@@ -9,17 +9,17 @@ export interface CrmContact {
|
|
|
9
9
|
created_at: string;
|
|
10
10
|
headline: string;
|
|
11
11
|
department_id: number;
|
|
12
|
-
dob:
|
|
12
|
+
dob: string;
|
|
13
13
|
owner_id: number;
|
|
14
14
|
linkedin_url: string;
|
|
15
15
|
potential: string;
|
|
16
16
|
crm_source_id: number;
|
|
17
17
|
subscription_id: number;
|
|
18
18
|
labels: string[];
|
|
19
|
-
enquiry:
|
|
19
|
+
enquiry: string;
|
|
20
20
|
email_verified: boolean;
|
|
21
21
|
newsletter_subscribed: boolean;
|
|
22
|
-
owner:
|
|
22
|
+
owner: string;
|
|
23
23
|
crm_account: CrmAccount;
|
|
24
24
|
}
|
|
25
25
|
export interface CrmContactResponse {
|
|
@@ -11,14 +11,14 @@ export interface CrmLead {
|
|
|
11
11
|
dob: string;
|
|
12
12
|
owner_id: number;
|
|
13
13
|
linkedin_url: string;
|
|
14
|
-
potential:
|
|
14
|
+
potential: string;
|
|
15
15
|
crm_source_id: number;
|
|
16
16
|
subscription_id: number;
|
|
17
|
-
labels:
|
|
18
|
-
enquiry:
|
|
17
|
+
labels: string[];
|
|
18
|
+
enquiry: string;
|
|
19
19
|
email_verified: boolean;
|
|
20
20
|
newsletter_subscribed: boolean;
|
|
21
|
-
crm_source:
|
|
21
|
+
crm_source: object;
|
|
22
22
|
}
|
|
23
23
|
export interface CrmLeadResponse {
|
|
24
24
|
crm_leads: CrmLead[];
|