@cfxlabsinc/b2b-services
    Preparing search index...

    Builds the ORGANIZATION email payload for an organization status change and hands it to the CustomerNotificationService core. Lives in entity-services (next to the writer) so it can use the Organization domain type; the writer calls notify right where it publishes the organization.organization.created / .statusUpdated event.

    Relocated from the customer-dashboard handleOrganizationEvent handler.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Notify the relevant recipients of an organization create / status change. Best-effort.

      Parameters

      • __namedParameters: {
            customerId: string;
            event:
                | "organization.organization.created"
                | "organization.organization.statusUpdated";
            organization: Pick<Organization, "id" | "name">;
            status: "ACTIVE" | "DISABLED" | "DELETED" | "PENDING_VERIFICATION";
        }

      Returns Promise<void>