The service-rated transfer switch should only ever go downstream from the meter, not upstream of it.

If you want both services to be on generator, you would need to get two transfer switches. One generator can feed multiple transfer switches, you just have to be careful about what you do with the neutrals when you're dealing with multiple services like that.