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

    Type Alias MaybeOnboardedCustomer

    MaybeOnboardedCustomer: ProvisioningCustomer & Partial<
        Pick<Customer, "organizationId" | "legalEntityName">,
    >

    What search({ includeWithoutMainOrg: true }) returns: a customer that may or may not have finished onboarding, so the two fields the primary-org join resolves are optional. Every Customer is assignable to it.