Jules
Final deployment with all fixes and verified content
c09f67c
import { GoCardLessProvider } from "@engine/providers/gocardless/gocardless-provider";
import { PlaidProvider } from "@engine/providers/plaid/plaid-provider";
import { TellerProvider } from "@engine/providers/teller/teller-provider";
import type { ProviderParams } from "@engine/providers/types";
export const excludedInstitutions = [
"ins_56", // Chase - Plaid
];
export async function getInstitutions(
params: Omit<
ProviderParams & { countryCode: string; storage: R2Bucket },
"provider"
>,
) {
const { countryCode } = params;
const gocardless = new GoCardLessProvider(params);
const teller = new TellerProvider(params);
const plaid = new PlaidProvider(params);
const result = await Promise.all([
teller.getInstitutions(),
gocardless.getInstitutions({ countryCode }),
plaid.getInstitutions({ countryCode }),
]);
return result.flat();
}