Hi!
For the function call getDealsProducts, when you actually pass a number[], you get the following error from the endpoint:
querystring/deal_ids must be string
If you just add a .toString(), it solves the problem
const response = await client.getDealsProducts({
deal_ids: batch.toString(),
});