@burdenoff/microfe-admin 2026.801.1 → 2026.802.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenantEvents.js","names":[],"sources":["../../../src/admin/utils/tenantEvents.ts"],"sourcesContent":["/**\n * Tenant lifecycle event helper.\n *\n * The `tenant.tenant.{created,updated,deleted,suspended,activated}` event\n * names live in `@burdenoff/fe-libs/shared/events` (BOFF-2483 / fe-libs PR\n * #47). Until that fe-libs version is published to
|
|
1
|
+
{"version":3,"file":"tenantEvents.js","names":[],"sources":["../../../src/admin/utils/tenantEvents.ts"],"sourcesContent":["/**\n * Tenant lifecycle event helper.\n *\n * The `tenant.tenant.{created,updated,deleted,suspended,activated}` event\n * names live in `@burdenoff/fe-libs/shared/events` (BOFF-2483 / fe-libs PR\n * #47). Until that fe-libs version is published to npmjs, this MFE\n * still installs the older fe-libs in CI whose `BurdenoffEventName` union\n * does not yet include those names. The helper accepts a literal string\n * and casts at the boundary so emit call-sites stay readable. Once the\n * new fe-libs version is published and bumped here, change the parameter\n * type from `string` back to the canonical `BurdenoffEventName` and drop\n * the inner cast — TypeScript will start enforcing the registry again.\n */\nimport type { EventBus } from '@burdenoff/fe-libs/shared/events';\n\nexport type TenantLifecycleEventName =\n | 'tenant.tenant.created'\n | 'tenant.tenant.updated'\n | 'tenant.tenant.deleted'\n | 'tenant.tenant.suspended'\n | 'tenant.tenant.activated';\n\nexport interface TenantLifecycleEventPayload {\n tenantId: string;\n tenantSlug?: string;\n status?: string;\n metadata?: Record<string, unknown>;\n}\n\nexport function emitTenantLifecycle(\n bus: EventBus,\n name: TenantLifecycleEventName,\n payload: TenantLifecycleEventPayload\n): void {\n // Cast: the registry on npmjs-published fe-libs does not yet\n // include these names. See file header.\n (bus.emit as (n: string, p: TenantLifecycleEventPayload) => void)(name, payload);\n}\n"],"mappings":";AA6BA,SAAgB,EACd,GACA,GACA,GACM;AAGL,GAAI,KAA6D,GAAM,EAAQ"}
|