Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typedefs for organizations namespace missing #637

Closed
jchoi2x opened this issue Jul 24, 2021 · 1 comment
Closed

typedefs for organizations namespace missing #637

jchoi2x opened this issue Jul 24, 2021 · 1 comment

Comments

@jchoi2x
Copy link

jchoi2x commented Jul 24, 2021

Describe the problem

The npm package auth0's ManagementClient instance has client.organizations namespace with several methods already implemented but are not documented and typescript typedefs are not defined in @types/auth0 package.

What was the expected behavior?

Installing @types/auth0 would have definitions for ManagementClient.organizations such as

  • client.organizations.getAll({ include_totals: boolean, page: number, take: number, from: string, per_page: number })
  • client.organizations.getByID({ id: string })
  • client.organizations.delete({ id: string })
  • client.organizations.getByName({ name: string })
  • etc.

Reproduction

Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.
Note: If clear, reproducable steps or the smallest sample app demonstrating misbehavior cannot be provided, we may not be able to follow up on this bug report.

Where possible, please include:

  • The smallest possible sample app that reproduces the undesirable behavior
  • Log files (redact/remove sensitive information)
  • Application settings (redact/remove sensitive information)
  • Screenshots
    -->
  • Step 1
    • Install latest auth0 from npm via npm install auth0 --save
  • Step 2
    • Install latest @types/auth0 package from npm via npm install @types/auth0 --save-dev
  • Step 3
    • Create an instance of ManagementClient
  • Step 4
    • Check for completions on organizations namespace on ManagementClient instance.

Environment

  • Version of this library used:: auth0 - 2.35.1, @types/auth0 - 2.33.4
  • Which framework are you using, if applicable: nestjs
  • Other modules/plugins/libraries that might be involved: @types/auth0
  • Any other relevant information you think would be useful:
@davidpatrick
Copy link
Contributor

Currently types are not maintained in this library. They are maintained over in DefinitelyTyped. We are tracking the overall issue of type inconsistencies at #572

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants