dropbox / dropbox-sdk-js

The Official Dropbox API V2 SDK for Javascript
https://www.dropbox.com/developers
MIT License
942 stars 354 forks source link

Typescript types missing "team_member_root" from NamespaceType definition #1140

Open ganicus opened 7 months ago

ganicus commented 7 months ago

Describe the bug When listing namespaces using SDK a namespace type "team_member_root" is another possible string values not included in the NamespaceType definition

To Reproduce Write any typescript that uses the returned value of a NamespaceMetadata

Expected Behavior NamespaceMetadata should have an exhaustive list of all documented return types from the current Dropbox spec.

Actual Behavior An error when writing a tag type that checks for the "team_member_root" This comparison appears to be unintentional because the types '"app_folder" | "shared_folder" | "team_folder" | "team_member_folder" | "other"' and '"team_member_root"' have no overlap

Version 10.35.0 current

greg-db commented 7 months ago

Thanks! I'll ask the team to get this updated.