plaid / plaid-node

Node bindings for Plaid
https://plaid.com/docs
MIT License
519 stars 173 forks source link

No support for days_requested on plaid create token #640

Closed mschunke closed 2 months ago

mschunke commented 2 months ago

Hello, I'm using the Plaid-node SDK with Typescript and when trying to supply the transactions/days_requested value to the .linkTokenCreate function I can't find the types for the transactions property.

Sample code:

    const { data } = await plaid.linkTokenCreate({
      client_name: "Some client",
      country_codes: [CountryCode.Us],
      products: [Products.Transactions],
      language: "en",
      user: { client_user_id: request.auth.uid },
      // Using TS ignore as Plaid's SDK doesn't have types for this field
      // @ts-ignore
      transactions: {
        days_requested: 730,
      },
    });

Source documentation: here

phoenixy1 commented 2 months ago

You're probably using an old version of the library. Upgrading to the latest version should fix it.