Skip to content

Node SDK is wrong #136

Open
Open
@danielo515

Description

@danielo515

Hello,

I really want to use tree-gateway, it seems super promising. However, the documentation (at least about the sdk) is wrong.

First, the requires are wrong:

const SDK = require('tree-gateway/admin/config/sdk')
const utils = require('tree-gateway/utils/config');

They should be:

const SDK = require('tree-gateway/dist/admin/config/sdk')
const utils = require('tree-gateway/dist/utils/config');

Second, what it is available on admin/config/sdk is a constructor, not an SDK with an initialize function, and it requires a swagger client that I don't know how to provide.

Could you please update the documentation or tell me the correct way of using the SDK so I can make a PR updating them ?

I would love to use this on production, but if the SDK does not work I'm afraid it will not be an option.

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions