@maxnate/plugin-crm
v0.1.1
Published
CRM plugin for @system-core — admin UI + backend module wiring an @maxnate/crm-core registry into a host application.
Maintainers
Readme
@maxnate/plugin-crm
Admin capability + plugin install for @maxnate/crm-core. Owns the
crmModule extension that other plugins consume via ctx.get('crmModule')
to sync contacts, capture leads, and push events to a configured CRM.
npm install @maxnate/plugin-crm @maxnate/crm-coreWhat it provides
| Surface | Value |
|---|---|
| Extension key | crmModule |
| Admin pages | /admin/crm, /admin/crm/:provider |
| Admin API | /admin/crm/providers, /admin/crm/providers/:id, /admin/crm/providers/:id/test |
| Install order | 130 |
Install
import { crmPlugin } from '@maxnate/plugin-crm'
import { HubSpotProvider, hubspotSchema } from '@maxnate/crm-provider-hubspot'
system.use(crmPlugin({
providers: [{ id: 'hubspot', adapter: new HubSpotProvider(), schema: hubspotSchema }],
secretsCodec: mySecretsCodec
}))Peer dependencies
| Peer | Required | Notes |
|---|---|---|
| @maxnate/crm-core | yes (^0.1.0) | Registry, types |
| @system-core/core | optional (^0.12.0) | Required when used as a system-core plugin |
