While NY state (same-sex) domestic partnership isn't recognised under Schedule 20 of Civil Partnership Act 2004, and isn't included in subsequent revision of the list, it may still be accepted as equivalent to UK civil partnership for immigration and EEA Family Permit purposes.
For heterosexual, unmarried partnership, you'll need to meet the same requirement as under UK immigration law, which is documented 2 years' cohabitation.