@posiwise/smart-crm 0.0.19 → 0.0.21
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/.eslintrc.json +22 -0
- package/ng-package.json +15 -0
- package/package.json +10 -23
- package/project.json +72 -0
- package/{index.d.ts → src/index.ts} +3 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.html +200 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.spec.ts +185 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.ts +238 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.html +200 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.spec.ts +109 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.ts +249 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.html +785 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.scss +123 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.spec.ts +388 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.ts +792 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.html +292 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.scss +63 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.spec.ts +145 -0
- package/src/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.ts +417 -0
- package/src/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.html +1 -0
- package/src/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.spec.ts +17 -0
- package/src/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.ts +7 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.html +75 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.scss +3 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.spec.ts +123 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.ts +117 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.html +125 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.scss +5 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.spec.ts +136 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.ts +143 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.html +60 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.scss +1 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.spec.ts +55 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.ts +29 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.html +95 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.spec.ts +105 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.ts +95 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.html +125 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.scss +3 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.spec.ts +132 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.ts +145 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.html +61 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.spec.ts +81 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.ts +88 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.html +96 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.scss +3 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.spec.ts +109 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.ts +129 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.html +108 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.scss +3 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.spec.ts +124 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.ts +111 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.html +134 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.scss +3 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.spec.ts +103 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.ts +166 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.html +90 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.scss +6 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.spec.ts +105 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.ts +118 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.html +115 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.spec.ts +93 -0
- package/src/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.ts +150 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.html +205 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.spec.ts +149 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.ts +184 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.html +530 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.scss +112 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.spec.ts +284 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.ts +553 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.html +281 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.scss +19 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.spec.ts +138 -0
- package/src/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.ts +344 -0
- package/src/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.html +1 -0
- package/src/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.spec.ts +18 -0
- package/src/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.ts +7 -0
- package/src/lib/private/components/smart-crm-insight/smart-crm-insight.component.html +27 -0
- package/src/lib/private/components/smart-crm-insight/smart-crm-insight.component.spec.ts +19 -0
- package/src/lib/private/components/smart-crm-insight/smart-crm-insight.component.ts +7 -0
- package/src/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.html +46 -0
- package/src/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.spec.ts +50 -0
- package/src/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.ts +60 -0
- package/src/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.html +142 -0
- package/src/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.spec.ts +125 -0
- package/src/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.ts +192 -0
- package/src/lib/private/components/smart-crm-leads/smart-crm-leads.component.html +176 -0
- package/src/lib/private/components/smart-crm-leads/smart-crm-leads.component.spec.ts +98 -0
- package/src/lib/private/components/smart-crm-leads/smart-crm-leads.component.ts +160 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.html +90 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.spec.ts +68 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.ts +98 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.html +322 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.spec.ts +156 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.ts +296 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.html +215 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.scss +3 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.spec.ts +117 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.ts +187 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.html +33 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.scss +82 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.spec.ts +63 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.ts +62 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.html +27 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.scss +3 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.spec.ts +28 -0
- package/src/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.ts +13 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.html +75 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.scss +223 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.spec.ts +184 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.ts +268 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.html +273 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.scss +11 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.spec.ts +196 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.ts +391 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.html +489 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.scss +104 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.spec.ts +319 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.ts +568 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.html +204 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.scss +11 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.spec.ts +123 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.ts +260 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.html +25 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.scss +7 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.spec.ts +38 -0
- package/src/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.ts +8 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.html +213 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.scss +73 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.spec.ts +147 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.ts +292 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.html +309 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.spec.ts +75 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.ts +161 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary.component.html +25 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary.component.scss +68 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary.component.spec.ts +32 -0
- package/src/lib/private/components/smart-crm-summary/smart-crm-summary.component.ts +8 -0
- package/src/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.spec.ts +43 -0
- package/src/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.ts +97 -0
- package/src/lib/private/smart-crm-private.module.ts +188 -0
- package/src/lib/private/smart-crm-private.routing.module.ts +303 -0
- package/src/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.html +27 -0
- package/src/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.scss +4 -0
- package/src/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.spec.ts +40 -0
- package/src/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.ts +57 -0
- package/src/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.html +36 -0
- package/src/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.spec.ts +42 -0
- package/src/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.ts +57 -0
- package/src/lib/public/components/smart-crm-signup/smart-crm-signup.component.html +133 -0
- package/src/lib/public/components/smart-crm-signup/smart-crm-signup.component.scss +1 -0
- package/src/lib/public/components/smart-crm-signup/smart-crm-signup.component.spec.ts +37 -0
- package/src/lib/public/components/smart-crm-signup/smart-crm-signup.component.ts +41 -0
- package/src/lib/public/smart-crm-public.module.ts +30 -0
- package/src/lib/public/smart-crm-public.routing.module.ts +36 -0
- package/{lib/shared/interface/crm-account.interface.d.ts → src/lib/shared/interface/crm-account.interface.ts} +10 -3
- package/{lib/shared/interface/crm-action.interface.d.ts → src/lib/shared/interface/crm-action.interface.ts} +1 -0
- package/{lib/shared/interface/crm-contact.interface.d.ts → src/lib/shared/interface/crm-contact.interface.ts} +2 -0
- package/{lib/shared/interface/crm-lead.interface.d.ts → src/lib/shared/interface/crm-lead.interface.ts} +1 -0
- package/{lib/shared/interface/crm-newsletter.interface.d.ts → src/lib/shared/interface/crm-newsletter.interface.ts} +3 -1
- package/{lib/shared/interface/crm-opportunity.interface.d.ts → src/lib/shared/interface/crm-opportunity.interface.ts} +5 -0
- package/{lib/shared/interface/crm-source.interface.d.ts → src/lib/shared/interface/crm-source.interface.ts} +1 -0
- package/{lib/shared/interface/crm-stages.interface.d.ts → src/lib/shared/interface/crm-stages.interface.ts} +1 -0
- package/{lib/shared/interface/crm-widget.interface.d.ts → src/lib/shared/interface/crm-widget.interface.ts} +1 -0
- package/{lib/shared/interface/smart-crm-module.interface.d.ts → src/lib/shared/interface/smart-crm-module.interface.ts} +42 -1
- package/src/lib/shared/models/smart-crm.model.ts +199 -0
- package/src/lib/shared/routers/routers.ts +23 -0
- package/tsconfig.json +29 -0
- package/tsconfig.lib.json +25 -0
- package/tsconfig.lib.prod.json +9 -0
- package/tsconfig.spec.json +11 -0
- package/esm2022/index.mjs +0 -48
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.mjs +0 -194
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.mjs +0 -192
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.mjs +0 -589
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.mjs +0 -348
- package/esm2022/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.mjs +0 -12
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.mjs +0 -97
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.mjs +0 -118
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.mjs +0 -35
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.mjs +0 -87
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.mjs +0 -119
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.mjs +0 -79
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.mjs +0 -107
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.mjs +0 -96
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.mjs +0 -139
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.mjs +0 -98
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.mjs +0 -125
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.mjs +0 -159
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.mjs +0 -465
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.mjs +0 -281
- package/esm2022/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.mjs +0 -12
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-insight.component.mjs +0 -14
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.mjs +0 -55
- package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.mjs +0 -173
- package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads.component.mjs +0 -136
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.mjs +0 -79
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.mjs +0 -266
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.mjs +0 -151
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.mjs +0 -51
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.mjs +0 -18
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.mjs +0 -230
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.mjs +0 -317
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.mjs +0 -477
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.mjs +0 -218
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.mjs +0 -14
- package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.mjs +0 -255
- package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.mjs +0 -148
- package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary.component.mjs +0 -16
- package/esm2022/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.mjs +0 -92
- package/esm2022/lib/private/smart-crm-private.module.mjs +0 -327
- package/esm2022/lib/private/smart-crm-private.routing.module.mjs +0 -310
- package/esm2022/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.mjs +0 -56
- package/esm2022/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.mjs +0 -57
- package/esm2022/lib/public/components/smart-crm-signup/smart-crm-signup.component.mjs +0 -35
- package/esm2022/lib/public/smart-crm-public.module.mjs +0 -46
- package/esm2022/lib/public/smart-crm-public.routing.module.mjs +0 -44
- package/esm2022/lib/shared/interface/crm-account.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-action.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-contact.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-lead.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-newsletter.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-opportunity.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-source.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-stages.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/crm-widget.interface.mjs +0 -2
- package/esm2022/lib/shared/interface/smart-crm-module.interface.mjs +0 -2
- package/esm2022/lib/shared/models/smart-crm.model.mjs +0 -186
- package/esm2022/lib/shared/routers/routers.mjs +0 -23
- package/esm2022/posiwise-smart-crm.mjs +0 -5
- package/fesm2022/posiwise-smart-crm.mjs +0 -6449
- package/fesm2022/posiwise-smart-crm.mjs.map +0 -1
- package/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.d.ts +0 -61
- package/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.d.ts +0 -72
- package/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.d.ts +0 -172
- package/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.d.ts +0 -105
- package/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.d.ts +0 -5
- package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.d.ts +0 -37
- package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.d.ts +0 -55
- package/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.d.ts +0 -11
- package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.d.ts +0 -31
- package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.d.ts +0 -56
- package/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.d.ts +0 -28
- package/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.d.ts +0 -52
- package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.d.ts +0 -34
- package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.d.ts +0 -58
- package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.d.ts +0 -36
- package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.d.ts +0 -58
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.d.ts +0 -48
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.d.ts +0 -121
- package/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.d.ts +0 -89
- package/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.d.ts +0 -5
- package/lib/private/components/smart-crm-insight/smart-crm-insight.component.d.ts +0 -5
- package/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.d.ts +0 -20
- package/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.d.ts +0 -45
- package/lib/private/components/smart-crm-leads/smart-crm-leads.component.d.ts +0 -58
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.d.ts +0 -49
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.d.ts +0 -63
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.d.ts +0 -62
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.d.ts +0 -21
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.d.ts +0 -8
- package/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.d.ts +0 -63
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.d.ts +0 -66
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.d.ts +0 -122
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.d.ts +0 -77
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.d.ts +0 -5
- package/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.d.ts +0 -72
- package/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.d.ts +0 -40
- package/lib/private/components/smart-crm-summary/smart-crm-summary.component.d.ts +0 -5
- package/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.d.ts +0 -10
- package/lib/private/smart-crm-private.module.d.ts +0 -62
- package/lib/private/smart-crm-private.routing.module.d.ts +0 -7
- package/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.d.ts +0 -18
- package/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.d.ts +0 -17
- package/lib/public/components/smart-crm-signup/smart-crm-signup.component.d.ts +0 -15
- package/lib/public/smart-crm-public.module.d.ts +0 -14
- package/lib/public/smart-crm-public.routing.module.d.ts +0 -7
- package/lib/shared/models/smart-crm.model.d.ts +0 -16
- package/lib/shared/routers/routers.d.ts +0 -21
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
+
import { SmartCrmCompanyDetailsComponent } from './components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component';
|
|
4
|
+
import { SmartCrmCompanyInfoComponent } from './components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component';
|
|
5
|
+
import { SmartCrmCompaniesComponent } from './components/smart-crm-accounts/smart-crm-accounts.component';
|
|
6
|
+
import { SmartCrmCompetitionComponent } from './components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component';
|
|
7
|
+
import { SmartCrmSettingsDetailsComponent } from './components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component';
|
|
8
|
+
import { SmartCrmConfigurationComponent } from './components/smart-crm-configuration/smart-crm-configuration.component';
|
|
9
|
+
import { SmartCrmOpportunityCategoriesDetailsComponent } from './components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component';
|
|
10
|
+
import { SmartCrmSourceDetailsComponent } from './components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component';
|
|
11
|
+
import { SmartCrmStageDetailsComponent } from './components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component';
|
|
12
|
+
import { SmartCrmWidgetsDetailsComponent } from './components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component';
|
|
13
|
+
import { SmartCrmContactDetailsComponent } from './components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component';
|
|
14
|
+
import { SmartCrmContactInfoComponent } from './components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component';
|
|
15
|
+
import { SmartCrmContactComponent } from './components/smart-crm-contacts/smart-crm-contacts.component';
|
|
16
|
+
import { SmartCrmCustomerSuccessComponent } from './components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component';
|
|
17
|
+
import { SmartCrmInsightComponent } from './components/smart-crm-insight/smart-crm-insight.component';
|
|
18
|
+
import { SmartCrmLeadsDetailsComponent } from './components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component';
|
|
19
|
+
import { SmartCrmLeadsComponent } from './components/smart-crm-leads/smart-crm-leads.component';
|
|
20
|
+
import { SmartCrmCommunicationsDetailsComponent } from './components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component';
|
|
21
|
+
import { SmartCrmCommunicationsComponent } from './components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component';
|
|
22
|
+
import { SmartCrmMarketingViewComponent } from './components/smart-crm-marketing/smart-crm-marketing.component';
|
|
23
|
+
import { SmartCrmOpportunitiesDetailsComponent } from './components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component';
|
|
24
|
+
import { SmartCrmOpportunitiesInfoComponent } from './components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component';
|
|
25
|
+
import { SmartCrmOpportunitiesComponent } from './components/smart-crm-opportunities/smart-crm-opportunities.component';
|
|
26
|
+
import { SmartCrmSummaryComponent } from './components/smart-crm-summary/smart-crm-summary.component';
|
|
27
|
+
import { SmartCrmTabsComponent } from './components/smart-crm-tabs/smart-crm-tabs.component';
|
|
28
|
+
|
|
29
|
+
import { PageAccessGuard } from '@posiwise/core-guards';
|
|
30
|
+
import { CRM_PERMISSIONS } from '@posiwise/smart-crm-shared';
|
|
31
|
+
|
|
32
|
+
// These are the private routes. The public routes and modules needs to be defined in public.routes.ts
|
|
33
|
+
const routes: Routes = [
|
|
34
|
+
{
|
|
35
|
+
path: '',
|
|
36
|
+
component: SmartCrmTabsComponent,
|
|
37
|
+
data: {
|
|
38
|
+
title: 'Smart CRM Modules',
|
|
39
|
+
permission: `${CRM_PERMISSIONS.SmartCrmModules}`
|
|
40
|
+
},
|
|
41
|
+
canActivate: [PageAccessGuard], // Gets called for the current route
|
|
42
|
+
canActivateChild: [PageAccessGuard], // Gets called for the children route
|
|
43
|
+
children: [
|
|
44
|
+
{
|
|
45
|
+
path: '',
|
|
46
|
+
redirectTo: '/home',
|
|
47
|
+
pathMatch: 'full'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
path: 'summary',
|
|
51
|
+
component: SmartCrmSummaryComponent
|
|
52
|
+
},
|
|
53
|
+
//////////////////////
|
|
54
|
+
// Accounts view
|
|
55
|
+
//////////////////////
|
|
56
|
+
{
|
|
57
|
+
path: 'accounts',
|
|
58
|
+
component: SmartCrmCompaniesComponent
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
path: 'accounts/:id',
|
|
62
|
+
component: SmartCrmCompanyDetailsComponent
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
path: 'accounts/add',
|
|
66
|
+
component: SmartCrmCompanyDetailsComponent
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
path: 'accounts/info/:id',
|
|
70
|
+
component: SmartCrmCompanyInfoComponent
|
|
71
|
+
},
|
|
72
|
+
//////////////////////
|
|
73
|
+
// Contacts view
|
|
74
|
+
//////////////////////
|
|
75
|
+
{
|
|
76
|
+
path: 'contacts',
|
|
77
|
+
component: SmartCrmContactComponent
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
path: 'contacts/:accountId',
|
|
81
|
+
component: SmartCrmContactComponent
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
path: 'contacts/detail/:id',
|
|
85
|
+
component: SmartCrmContactDetailsComponent
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
path: 'contacts/add/:accountId',
|
|
89
|
+
component: SmartCrmContactDetailsComponent
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
path: 'contacts/add',
|
|
93
|
+
component: SmartCrmContactDetailsComponent
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
path: 'contacts/info/:id',
|
|
97
|
+
component: SmartCrmContactInfoComponent
|
|
98
|
+
},
|
|
99
|
+
//////////////////////
|
|
100
|
+
// Opportunities view
|
|
101
|
+
//////////////////////
|
|
102
|
+
{
|
|
103
|
+
path: 'opportunities',
|
|
104
|
+
component: SmartCrmOpportunitiesComponent
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
path: 'opportunities/:id',
|
|
108
|
+
component: SmartCrmOpportunitiesDetailsComponent
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
path: 'opportunities/add',
|
|
112
|
+
component: SmartCrmOpportunitiesDetailsComponent
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
path: 'opportunities/info/:id',
|
|
116
|
+
component: SmartCrmOpportunitiesInfoComponent
|
|
117
|
+
},
|
|
118
|
+
//////////////////////
|
|
119
|
+
// Leads view
|
|
120
|
+
//////////////////////
|
|
121
|
+
{
|
|
122
|
+
path: 'leads',
|
|
123
|
+
component: SmartCrmLeadsComponent
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
path: 'leads/details/add',
|
|
127
|
+
component: SmartCrmLeadsDetailsComponent
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
path: 'leads/details/:Id',
|
|
131
|
+
component: SmartCrmLeadsDetailsComponent
|
|
132
|
+
},
|
|
133
|
+
//////////////////////
|
|
134
|
+
// Marketing view
|
|
135
|
+
//////////////////////
|
|
136
|
+
{
|
|
137
|
+
path: 'marketing/emails',
|
|
138
|
+
component: SmartCrmCommunicationsComponent,
|
|
139
|
+
data: {
|
|
140
|
+
permission: `${CRM_PERMISSIONS.Marketing}`
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
path: 'marketing/emails/add',
|
|
145
|
+
component: SmartCrmCommunicationsDetailsComponent,
|
|
146
|
+
data: {
|
|
147
|
+
permission: `${CRM_PERMISSIONS.Marketing}`
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
path: 'marketing/emails/:Id',
|
|
152
|
+
component: SmartCrmCommunicationsDetailsComponent,
|
|
153
|
+
data: {
|
|
154
|
+
permission: `${CRM_PERMISSIONS.Marketing}`
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
path: 'marketing/emails/info/:Id',
|
|
159
|
+
component: SmartCrmMarketingViewComponent,
|
|
160
|
+
data: {
|
|
161
|
+
permission: `${CRM_PERMISSIONS.Marketing}`
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
//////////////////////
|
|
165
|
+
// Customer Success view
|
|
166
|
+
//////////////////////
|
|
167
|
+
{
|
|
168
|
+
path: 'customer-success',
|
|
169
|
+
component: SmartCrmCustomerSuccessComponent,
|
|
170
|
+
data: {
|
|
171
|
+
permission: `${CRM_PERMISSIONS.CustomerSuccess}`
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
//////////////////////
|
|
175
|
+
// Competition view
|
|
176
|
+
//////////////////////
|
|
177
|
+
{
|
|
178
|
+
path: 'competition',
|
|
179
|
+
component: SmartCrmCompetitionComponent,
|
|
180
|
+
data: {
|
|
181
|
+
permission: `${CRM_PERMISSIONS.Competition}`
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
//////////////////////
|
|
185
|
+
// Insight view
|
|
186
|
+
//////////////////////
|
|
187
|
+
{
|
|
188
|
+
path: 'insight',
|
|
189
|
+
component: SmartCrmInsightComponent,
|
|
190
|
+
data: {
|
|
191
|
+
permission: `${CRM_PERMISSIONS.Insight}`
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
//////////////////////
|
|
195
|
+
// Configuration view
|
|
196
|
+
//////////////////////
|
|
197
|
+
{
|
|
198
|
+
path: 'configuration',
|
|
199
|
+
component: SmartCrmConfigurationComponent,
|
|
200
|
+
data: {
|
|
201
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
path: 'configuration/:tabId',
|
|
206
|
+
component: SmartCrmConfigurationComponent,
|
|
207
|
+
data: {
|
|
208
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
path: 'configuration/detail/add',
|
|
213
|
+
component: SmartCrmSettingsDetailsComponent,
|
|
214
|
+
data: {
|
|
215
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
path: 'configuration/detail/:id',
|
|
220
|
+
component: SmartCrmSettingsDetailsComponent,
|
|
221
|
+
data: {
|
|
222
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
path: 'configuration/source-details/:id',
|
|
227
|
+
component: SmartCrmSourceDetailsComponent,
|
|
228
|
+
data: {
|
|
229
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
path: 'configuration/source-details/add',
|
|
234
|
+
component: SmartCrmSourceDetailsComponent,
|
|
235
|
+
data: {
|
|
236
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
path: 'configuration/stage-details/:id',
|
|
241
|
+
component: SmartCrmStageDetailsComponent,
|
|
242
|
+
data: {
|
|
243
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
path: 'configuration/stage-details/add',
|
|
248
|
+
component: SmartCrmStageDetailsComponent,
|
|
249
|
+
data: {
|
|
250
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
path: 'configuration/category-details/:id',
|
|
255
|
+
component: SmartCrmOpportunityCategoriesDetailsComponent,
|
|
256
|
+
data: {
|
|
257
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
path: 'configuration/category-details/add',
|
|
262
|
+
component: SmartCrmOpportunityCategoriesDetailsComponent,
|
|
263
|
+
data: {
|
|
264
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
path: 'configuration/widget',
|
|
269
|
+
component: SmartCrmWidgetsDetailsComponent,
|
|
270
|
+
data: {
|
|
271
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
path: 'configuration/widget-details/:id',
|
|
276
|
+
component: SmartCrmWidgetsDetailsComponent,
|
|
277
|
+
data: {
|
|
278
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
path: 'configuration/widget-details/add',
|
|
283
|
+
component: SmartCrmWidgetsDetailsComponent,
|
|
284
|
+
data: {
|
|
285
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
path: 'configuration/admin',
|
|
290
|
+
component: SmartCrmWidgetsDetailsComponent,
|
|
291
|
+
data: {
|
|
292
|
+
permission: `${CRM_PERMISSIONS.Configuration}`
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
];
|
|
298
|
+
|
|
299
|
+
@NgModule({
|
|
300
|
+
imports: [RouterModule.forChild(routes)],
|
|
301
|
+
exports: [RouterModule]
|
|
302
|
+
})
|
|
303
|
+
export class SmartCrmPrivateRoutingModule {}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<pw-public-layout title="Newsletter Confirmation">
|
|
2
|
+
<div class="login-inner">
|
|
3
|
+
<div class="card-block public-inner">
|
|
4
|
+
<div class="message">
|
|
5
|
+
{{ message }}
|
|
6
|
+
</div>
|
|
7
|
+
<ng-container *ngIf="!message">
|
|
8
|
+
<div class="page-loading">
|
|
9
|
+
<img src="/assets/img/logos/oval.svg"
|
|
10
|
+
alt=""
|
|
11
|
+
class="loading-icon" />
|
|
12
|
+
</div>
|
|
13
|
+
</ng-container>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="mb-2">
|
|
17
|
+
<br /><br />
|
|
18
|
+
<strong>
|
|
19
|
+
<a class="footer-links me-4"
|
|
20
|
+
routerLink="/">{{ 'Button.Home' | transloco }}</a>
|
|
21
|
+
<a class="footer-links"
|
|
22
|
+
routerLink="/register">{{
|
|
23
|
+
'User.Account.CreateAccount' | transloco
|
|
24
|
+
}}</a>
|
|
25
|
+
</strong>
|
|
26
|
+
</div>
|
|
27
|
+
</pw-public-layout>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CommonServicesModule } from '@posiwise/common-services';
|
|
2
|
+
import { SharedModule } from '@posiwise/shared-module';
|
|
3
|
+
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
4
|
+
import { TestHelper } from '@posiwise/test-helpers';
|
|
5
|
+
import { StatusCodes } from 'http-status-codes';
|
|
6
|
+
import { MockProvider } from 'ng-mocks';
|
|
7
|
+
import { of } from 'rxjs';
|
|
8
|
+
import { CrmNewsletterConfirmationComponent } from './smart-crm-newsletter-confirmation.component';
|
|
9
|
+
import { CRMPublicModule } from '../../smart-crm-public.module';
|
|
10
|
+
|
|
11
|
+
describe('CrmNewsletterConfirmationComponent', () => {
|
|
12
|
+
const createComponent = TestHelper.createComponentFactory({
|
|
13
|
+
component: CrmNewsletterConfirmationComponent,
|
|
14
|
+
imports: [CommonServicesModule, SharedModule, CRMPublicModule],
|
|
15
|
+
providers: [
|
|
16
|
+
...TestHelper.TEST_PROVIDERS,
|
|
17
|
+
MockProvider(CrmService, {
|
|
18
|
+
crmLeadsConfirmEmail: () => of({ status: StatusCodes.OK, message: 'test message' })
|
|
19
|
+
})
|
|
20
|
+
]
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('should create', async () => {
|
|
24
|
+
TestHelper.setActivatedRoute({
|
|
25
|
+
queryParams: {}
|
|
26
|
+
});
|
|
27
|
+
const spectator = await createComponent();
|
|
28
|
+
expect(spectator.component).toBeTruthy();
|
|
29
|
+
expect(spectator.query('h2')).toContainText('Newsletter Confirmation');
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it('should get message', async () => {
|
|
33
|
+
TestHelper.setActivatedRoute({
|
|
34
|
+
queryParams: { verification_token: 'testtoken', email: 'test@gmail.com' }
|
|
35
|
+
});
|
|
36
|
+
const spectator = await createComponent();
|
|
37
|
+
expect(spectator.component).toBeTruthy();
|
|
38
|
+
expect(spectator.query('.message')).toContainText('test message');
|
|
39
|
+
});
|
|
40
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
+
import { Component, OnInit } from '@angular/core';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
5
|
+
import { StatusCodes } from 'http-status-codes';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'pw-crm-newsletter-confirmation',
|
|
9
|
+
templateUrl: './smart-crm-newsletter-confirmation.component.html',
|
|
10
|
+
styleUrls: ['./smart-crm-newsletter-confirmation.component.scss']
|
|
11
|
+
})
|
|
12
|
+
export class CrmNewsletterConfirmationComponent implements OnInit {
|
|
13
|
+
token = '';
|
|
14
|
+
|
|
15
|
+
email = '';
|
|
16
|
+
|
|
17
|
+
message = '';
|
|
18
|
+
|
|
19
|
+
errorMsg = '';
|
|
20
|
+
|
|
21
|
+
error = false;
|
|
22
|
+
|
|
23
|
+
// TODO: Move to en.json
|
|
24
|
+
// success = 'Congratulations. You are successfully subscribed to our newsletter.';
|
|
25
|
+
// failure =
|
|
26
|
+
// "We couldn't verify your subscription to our newsletter. If the problem persists, please contact our support team. ";
|
|
27
|
+
|
|
28
|
+
constructor(
|
|
29
|
+
private route: ActivatedRoute,
|
|
30
|
+
private crmService: CrmService
|
|
31
|
+
) {}
|
|
32
|
+
|
|
33
|
+
ngOnInit() {
|
|
34
|
+
this.route.queryParams.subscribe(params => {
|
|
35
|
+
this.token = params['verification_token'] || '';
|
|
36
|
+
this.email = params['email'] || '';
|
|
37
|
+
if (this.token && this.email) {
|
|
38
|
+
this.getNewsletterConfirmation();
|
|
39
|
+
} else {
|
|
40
|
+
this.message = 'You need to pass a valid token to be able to subscribe';
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
getNewsletterConfirmation() {
|
|
46
|
+
this.crmService.crmLeadsConfirmEmail(this.email, this.token).subscribe({
|
|
47
|
+
next: (response: { status: number; message: string }) => {
|
|
48
|
+
if (response.status === StatusCodes.OK) {
|
|
49
|
+
this.message = response.message;
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
error: (err: HttpErrorResponse) => {
|
|
53
|
+
this.message = err.error.message.error;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<pw-public-layout title="Newsletter Unsubscribe">
|
|
2
|
+
<div class="login-inner">
|
|
3
|
+
<div class="card-block public-inner">
|
|
4
|
+
<div class="alert alert-danger"
|
|
5
|
+
*ngIf="error">
|
|
6
|
+
<ng-container *ngIf="error">
|
|
7
|
+
{{ errorMsg }}
|
|
8
|
+
</ng-container>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<div class="message">
|
|
12
|
+
{{ message }}
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<ng-container *ngIf="!message && !error">
|
|
16
|
+
<div class="page-loading">
|
|
17
|
+
<img src="/assets/img/logos/oval.svg"
|
|
18
|
+
alt=""
|
|
19
|
+
class="loading-icon" />
|
|
20
|
+
</div>
|
|
21
|
+
</ng-container>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<div class="mb-2">
|
|
26
|
+
<br /><br /><br />
|
|
27
|
+
<strong>
|
|
28
|
+
<a class="footer-links me-4"
|
|
29
|
+
routerLink="/">{{ 'Button.Home' | transloco }}</a>
|
|
30
|
+
<a class="footer-links"
|
|
31
|
+
routerLink="/register">{{
|
|
32
|
+
'User.Account.CreateAccount' | transloco
|
|
33
|
+
}}</a>
|
|
34
|
+
</strong>
|
|
35
|
+
</div>
|
|
36
|
+
</pw-public-layout>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CommonServicesModule } from '@posiwise/common-services';
|
|
2
|
+
import { SharedModule } from '@posiwise/shared-module';
|
|
3
|
+
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
4
|
+
import { TestHelper } from '@posiwise/test-helpers';
|
|
5
|
+
import { StatusCodes } from 'http-status-codes';
|
|
6
|
+
import { MockProvider } from 'ng-mocks';
|
|
7
|
+
import { of } from 'rxjs';
|
|
8
|
+
import { CRMPublicModule } from '../../smart-crm-public.module';
|
|
9
|
+
import { CrmNewsletterUnsubscribeComponent } from './smart-crm-newsletter-unsubscribe.component';
|
|
10
|
+
|
|
11
|
+
describe('CrmNewsletterUnsubscribeComponent', () => {
|
|
12
|
+
const createComponent = TestHelper.createComponentFactory({
|
|
13
|
+
component: CrmNewsletterUnsubscribeComponent,
|
|
14
|
+
imports: [CommonServicesModule, SharedModule, CRMPublicModule],
|
|
15
|
+
providers: [
|
|
16
|
+
...TestHelper.TEST_PROVIDERS,
|
|
17
|
+
MockProvider(CrmService, {
|
|
18
|
+
unsubscribeCrmContact: () => of({ status: StatusCodes.OK })
|
|
19
|
+
})
|
|
20
|
+
]
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('should create', async () => {
|
|
24
|
+
TestHelper.setActivatedRoute({
|
|
25
|
+
queryParams: {}
|
|
26
|
+
});
|
|
27
|
+
const spectator = await createComponent();
|
|
28
|
+
expect(spectator.component).toBeTruthy();
|
|
29
|
+
expect(spectator.query('h2')).toContainText('Newsletter Unsubscribe');
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it('should get message', async () => {
|
|
33
|
+
TestHelper.setActivatedRoute({
|
|
34
|
+
queryParams: { crm_newsletter_token: 'testtoken' }
|
|
35
|
+
});
|
|
36
|
+
const spectator = await createComponent();
|
|
37
|
+
expect(spectator.component).toBeTruthy();
|
|
38
|
+
expect(spectator.query('.message')).toContainText(
|
|
39
|
+
`You've successfully been removed from our newsletter.`
|
|
40
|
+
);
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
|
+
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
4
|
+
import { StatusCodes } from 'http-status-codes';
|
|
5
|
+
|
|
6
|
+
import { HelperService } from '@posiwise/helper-service';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'pw-crm-newsletter-unsubscribe',
|
|
10
|
+
templateUrl: './smart-crm-newsletter-unsubscribe.component.html'
|
|
11
|
+
})
|
|
12
|
+
export class CrmNewsletterUnsubscribeComponent {
|
|
13
|
+
token = '';
|
|
14
|
+
|
|
15
|
+
message = '';
|
|
16
|
+
|
|
17
|
+
errorMsg = '';
|
|
18
|
+
|
|
19
|
+
error = false;
|
|
20
|
+
|
|
21
|
+
success = "You've successfully been removed from our newsletter.";
|
|
22
|
+
|
|
23
|
+
failure =
|
|
24
|
+
'Something went wrong and we were not able to unsubscribe you. If the problem persists, please contact us.';
|
|
25
|
+
|
|
26
|
+
constructor(
|
|
27
|
+
private route: ActivatedRoute,
|
|
28
|
+
private crmService: CrmService
|
|
29
|
+
) {
|
|
30
|
+
this.route.queryParams.subscribe(params => {
|
|
31
|
+
this.token = params['crm_newsletter_token'] || '';
|
|
32
|
+
if (this.token) {
|
|
33
|
+
this.getNewsletterConfirmation();
|
|
34
|
+
} else {
|
|
35
|
+
this.error = true;
|
|
36
|
+
this.errorMsg = this.failure;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
getNewsletterConfirmation() {
|
|
42
|
+
this.crmService.unsubscribeCrmContact(this.token).subscribe({
|
|
43
|
+
next: (response: { status: number }) => {
|
|
44
|
+
if (response.status === StatusCodes.OK) {
|
|
45
|
+
this.message = this.success;
|
|
46
|
+
} else {
|
|
47
|
+
this.error = true;
|
|
48
|
+
this.errorMsg = this.failure;
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
error: error => {
|
|
52
|
+
this.errorMsg = HelperService.getErrorMessage(error);
|
|
53
|
+
this.error = true;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|