cloudinary / cloudinary_npm

Cloudinary NPM for node.js integration
624 stars 317 forks source link

Missing download_folder method in typescript types #675

Closed vin-krish closed 1 month ago

vin-krish commented 1 month ago

Bug report for Cloudinary NPM SDK

Describe the bug in a sentence or two.

documentation here shows download_folder method available in nodejs https://cloudinary.com/documentation/image_upload_api_reference#download_folder_syntax

After installing multiple version in 1.x.x and 2.x.x, couldn't find this download_folder method at all.

version: "cloudinary": "^2.3.0"

Issue Type (Can be multiple)

[x] Behaviour - Functions aren’t working as expected (Such as generate URL) [x] Documentation - Inconsistency between the docs and behaviour

Steps to reproduce

install the version and try to find the method.

Browsers (if issue relates to UI, else ignore)

[ ] Chrome [ ] Firefox [ ] Safari [ ] Other (Specify) [ ] All

Versions and Libraries (fill in the version numbers)

Cloudinary_NPM SDK version Node - v18.12.1 NPM - 8.19.2

Config Files (Please paste the following files if possible)

Package.json

Repository

If possible, please provide a link to a reproducible repository that showcases the problem

tamaracloudinary commented 1 month ago

@vin-krish here you go :) https://github.com/cloudinary/cloudinary_npm/blob/master/lib/utils/index.js#L1323

vin-krish commented 1 month ago

@tamaracloudinary found the issue, this method is not exposed in typescript types: https://github.com/cloudinary/cloudinary_npm/blob/master/types/index.d.ts#L925

hence wasn't able to call from my TS code.