smartive / zitadel-node

ZITADEL SDK for Node.js
https://www.npmjs.com/package/@zitadel/node
Apache License 2.0
17 stars 8 forks source link

Difficult/impossible to use much/most of the types #393

Closed wlinna closed 2 weeks ago

wlinna commented 7 months ago

I am trying to use addHumanUser by creating a client with createManagementClient. However,

import { createAccessTokenInterceptor, createManagementClient, } from '@zitadel/node/api';

const client = createManagementClient(zitadelUrl, createAccessTokenInterceptor(...));

However, assigning gender seems difficult, because it appears I cannot import Gender etc. I can't import AddHumanUserRequest, so I can't just use AddHumanUserRequest.fromJson and the string values specified in Zitadel documentation either

I noticed an issue that seemed related, but it was marked as solved.

I use version 2.0.8 of zitadel-node with TypeScript

buehler commented 6 months ago

hey @wlinna I'll have a look at the types again :)

hisabimbola commented 2 months ago

Yeah, I'm having same issue. not possible to use in internal imports

Nactik commented 2 weeks ago

Hey ! I'm having the same issue here. This package is hard to use when using a bundler as moduleResolution since the types are not exported :(

github-actions[bot] commented 2 weeks ago

:tada: This issue has been resolved in version 3.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: