Generating functions of (partially-)massless higher-spin cubic interactions