@posiwise/smart-crm 0.0.51 → 0.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.mjs +2 -2
  2. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.mjs +44 -13
  3. package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.mjs +9 -5
  4. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-account-insight/smart-crm-account-insight.component.mjs +121 -33
  5. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-analysis-insight/smart-crm-analysis.component.mjs +5 -3
  6. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-contact-insight/smart-crm-contact-insight.component.mjs +11 -6
  7. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-marketing-insight/smart-crm-marketing-insight.component.mjs +5 -3
  8. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-opportunities-insight/smart-crm-opportunities-insight.component.mjs +15 -8
  9. package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.mjs +5 -3
  10. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.mjs +45 -8
  11. package/esm2022/lib/shared/interface/crm-account.interface.mjs +1 -1
  12. package/esm2022/lib/shared/interface/crm-opportunity.interface.mjs +1 -1
  13. package/fesm2022/posiwise-smart-crm.mjs +250 -73
  14. package/fesm2022/posiwise-smart-crm.mjs.map +1 -1
  15. package/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.d.ts +6 -0
  16. package/lib/private/components/smart-crm-insight/smart-crm-account-insight/smart-crm-account-insight.component.d.ts +29 -7
  17. package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.d.ts +4 -0
  18. package/lib/shared/interface/crm-account.interface.d.ts +6 -0
  19. package/lib/shared/interface/crm-opportunity.interface.d.ts +7 -0
  20. package/package.json +1 -1
@@ -16,6 +16,11 @@ export declare class SmartCrmCompaniesComponent extends AppBaseComponent impleme
16
16
  private allIndustries;
17
17
  private filterByLocation;
18
18
  data: CrmAccountResponse;
19
+ totals: {
20
+ total_mrr: number;
21
+ sessions_last_month: number;
22
+ sessions_last_quarter: number;
23
+ };
19
24
  subscription: Subscription;
20
25
  subscriptionId: number;
21
26
  userId: number;
@@ -94,6 +99,7 @@ export declare class SmartCrmCompaniesComponent extends AppBaseComponent impleme
94
99
  private getAccountActivities;
95
100
  getCountryFromLocation(location: string): string;
96
101
  getAccountLogo(url: string): string;
102
+ getMainCurrency(): string;
97
103
  ngOnDestroy(): void;
98
104
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmCompaniesComponent, never>;
99
105
  static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmCompaniesComponent, "pw-smart-crm-companies", never, {}, {}, never, never, false, never>;
@@ -11,17 +11,17 @@ export declare class SmartCrmAccountInsightComponent extends AppBaseComponent im
11
11
  hasAccess: boolean;
12
12
  signedUpLastThirtyDays: signedUpLastThirtyDays[];
13
13
  activeOpportunities: activeOpportunities[];
14
- accountAtRisk: [];
15
- ContractRenewal: [];
16
- accountInsight: [];
14
+ accountAtRisk: any;
15
+ ContractRenewal: any;
16
+ accountInsight: any;
17
17
  accountGeography: {
18
18
  data: [];
19
19
  layout: object;
20
20
  };
21
- churnedAccounts: [];
22
- accountLastActivities: [];
23
- creditCardExpiring: [];
24
- magicMoment: [];
21
+ churnedAccounts: any;
22
+ accountLastActivities: any;
23
+ creditCardExpiring: any;
24
+ magicMoment: any;
25
25
  signUpLastNinetyDaysLoaded: boolean;
26
26
  accountLastActivitiesLoaded: boolean;
27
27
  churnedAccountLoaded: boolean;
@@ -33,6 +33,27 @@ export declare class SmartCrmAccountInsightComponent extends AppBaseComponent im
33
33
  accountInsightLoaded: boolean;
34
34
  magicMomentLoaded: boolean;
35
35
  actionNames: any;
36
+ activeOpportunitiesTotal: {
37
+ total_mrr: number;
38
+ };
39
+ accountAtRiskTotal: {
40
+ total_mrr: number;
41
+ };
42
+ contractRenewalTotal: {
43
+ total_mrr: number;
44
+ };
45
+ creditCardExpiringTotal: {
46
+ total_mrr: number;
47
+ };
48
+ magicMomentTotal: {
49
+ total_mrr: number;
50
+ };
51
+ signedUpLastNinetyDaysTotal: {
52
+ total_mrr: number;
53
+ };
54
+ churnedAccountsTotal: {
55
+ total_mrr: number;
56
+ };
36
57
  routers: {
37
58
  accounts: string;
38
59
  contacts: string;
@@ -73,6 +94,7 @@ export declare class SmartCrmAccountInsightComponent extends AppBaseComponent im
73
94
  private getAccountInsights;
74
95
  private getAccountGeography;
75
96
  checkPermission(permission: string): boolean;
97
+ getMainCurrencyForTable(items: unknown[]): string;
76
98
  ngOnDestroy(): void;
77
99
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmAccountInsightComponent, never>;
78
100
  static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmAccountInsightComponent, "pw-smart-crm-account-insight", never, {}, {}, never, never, false, never>;
@@ -16,6 +16,9 @@ export declare class SmartCrmOpportunitiesListComponent extends AppBaseComponent
16
16
  user: User;
17
17
  userId: number;
18
18
  data: CrmOpportunityResponse;
19
+ totals: {
20
+ total_mrr: number;
21
+ };
19
22
  opportunitiesInsight: OpportunityInsight[];
20
23
  opportunitiesGeography: Plotly.Figure;
21
24
  id: string;
@@ -73,6 +76,7 @@ export declare class SmartCrmOpportunitiesListComponent extends AppBaseComponent
73
76
  /** Function to call contact geography */
74
77
  private getContactGeography;
75
78
  checkPermission(permission: string): boolean;
79
+ getMainCurrency(): string;
76
80
  ngOnDestroy(): void;
77
81
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmOpportunitiesListComponent, never>;
78
82
  static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmOpportunitiesListComponent, "pw-smart-crm-opportunities-list", never, {}, {}, never, never, false, never>;
@@ -1,4 +1,5 @@
1
1
  export interface CrmAccount {
2
+ main_currency?: string;
2
3
  id: number;
3
4
  name: string;
4
5
  description: string;
@@ -43,5 +44,10 @@ export interface CrmAccountResponse {
43
44
  accounts: CrmAccount[];
44
45
  object_count: number;
45
46
  unfiltered_count: number;
47
+ totals?: {
48
+ expected_mrr_usd?: number;
49
+ sessions_last_month?: number;
50
+ sessions_last_quarter?: number;
51
+ };
46
52
  }
47
53
  export {};
@@ -15,6 +15,7 @@ export interface CrmOpportunityCategoryResponse {
15
15
  unfiltered_count: number;
16
16
  }
17
17
  export interface CrmOpportunity {
18
+ currency: string;
18
19
  id: number;
19
20
  title: string;
20
21
  crm_contact_id: number;
@@ -43,6 +44,12 @@ export interface CrmOpportunityResponse {
43
44
  crm_opportunities: CrmOpportunity[];
44
45
  object_count: number;
45
46
  unfiltered_count: number;
47
+ totals?: {
48
+ expected_mrr_usd?: number;
49
+ total_mrr?: number;
50
+ total_one_time_amount?: number;
51
+ total_count?: number;
52
+ };
46
53
  }
47
54
  export interface CrmVersion {
48
55
  item_id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/smart-crm",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "17.3.11",
6
6
  "@angular/core": "17.3.11"