Framework
A carrier returning tracking updates needs a different connection from a mailbox delivering inbound messages. Choose the platform contract that owns the external operation, then keep provider-specific authentication and payload translation in the adapter.
registerPaymentProvider and registerShippingProvider.Start with: Shipping & payment providers
message-types.ts to define workflow-specific messages.message-objects.ts to attach domain records (customers, orders, staff, etc.).Start with: Messages system
notifications.ts.notifications.client.ts.Start with: Notifications, Events overview
Start with: Hybrid search
Start with: Workflows extending, Scheduler, Progress
api/interceptors.tsdata/enrichers.tsdata/guards.ts – register guards with priority ordering, payload modification, and afterSuccess callbackscommands/interceptors.ts – beforeExecute/afterExecute hooks for execute and undo flowssubscribers/*.ts (supports sync: true metadata for in-pipeline lifecycle events – UMES M)workers/*.tsStart with: API extension guide, Queue workers
For the integrations marketplace specifically:
GET /api/integrations and GET /api/integrations/:id now support response enrichers targeting integrations.integrationGET /api/integrations/logs supports response enrichers targeting integrations.logafter interceptorsPhase L adds first-class UI widgets and data primitives for building integration modules.
Multi-step wizard widget for integration onboarding (OAuth flows, API credential entry, scope configuration). Renders a numbered step indicator with navigation and per-step validation.
InjectionWizardStep[] with id, label, optional fields, optional validate, and optional customComponent{ ok, message?, fieldErrors? } to block progressiononComplete callback receives accumulated data from all stepsEscape to cancelImport: import { InjectionWizard } from '@open-mercato/ui/backend/injection/InjectionWizard'
Status badge widget with pollable status loaders. Displays a color-coded dot, label, optional count badge, and optional tooltip.
healthy (green), warning (yellow), error (red), unknown (gray)statusLoader is called on mount and at pollInterval (default 60 s)href makes the badge a linkImport: import { StatusBadgeRenderer } from '@open-mercato/ui/backend/injection/StatusBadgeRenderer'
Injection widget for displaying external system ID mappings. Reads the _integrations namespace from enriched API responses and renders a row per integration with provider name, external ID code badge, sync status dot, and optional external link.
synced, pending, error, not_syncedgetIntegrationTitle() from the integration registryWidget: packages/core/src/modules/integrations/widgets/injection/external-ids/widget.client.tsx
Register integration definitions at module bootstrap so the platform can discover metadata and build deep links.
import {
buildIntegrationDetailWidgetSpotId,
registerIntegration,
getAllIntegrations,
getIntegrationTitle,
} from '@open-mercato/shared/modules/integrations/types'
registerIntegration({
id: 'sync_shopify',
title: 'Shopify',
icon: 'shopify',
detailPage: {
widgetSpotId: buildIntegrationDetailWidgetSpotId('sync_shopify'),
},
buildExternalUrl: (externalId) => `https://admin.shopify.com/store/demo/products/${externalId}`,
})
getAllIntegrations() // returns all registered IntegrationDefinition[]
getIntegrationTitle('sync_shopify') // 'Shopify'
getIntegrationTitle('unknown') // 'unknown' (falls back to ID)
Integration providers can now extend their own marketplace detail pages directly from integration.ts.
detailPage.widgetSpotId in the IntegrationDefinitionwidgets/injection-table.tsplacement.kind: 'tab' for extra tabs, placement.kind: 'group' for card sections, and placement.kind: 'stack' for inline sections above the built-in tabsuseGuardedMutation bound to the same spot, so widget onBeforeSave and onAfterSave hooks can participate in those flowsimport { buildIntegrationDetailWidgetSpotId } from '@open-mercato/shared/modules/integrations/types'
export const integration = {
id: 'gateway_example',
title: 'Example Gateway',
detailPage: {
widgetSpotId: buildIntegrationDetailWidgetSpotId('gateway_example'),
},
}
export const injectionTable = {
[buildIntegrationDetailWidgetSpotId('gateway_example')]: [
{
widgetId: 'gateway_example.injection.tools',
kind: 'tab',
groupLabel: 'gateway_example.tabs.tools',
priority: 100,
},
],
}
Backward compatibility:
detailPage.widgetSpotId is omitted, the integrations page falls back to the legacy integrations.detail:tabs spotintegrations.detail:tabs keep working, but new providers should prefer the provider-scoped spot to avoid collisions between unrelated integrationsStart with: Widget injection, Data extensibility
Currently available:
Now available (UMES Phase N):
Previous: Extensibility Directory · Next: Query Engine Extensibility