CyberSource / cybersource-rest-client-node

NodeJS client library for the CyberSource REST API
Other
41 stars 45 forks source link

Typescript support #39

Open andrewwongyedpay opened 4 years ago

andrewwongyedpay commented 4 years ago

Does it support typescript?

There are number of backend frameworks using typescript. It would be great if it can support typescript.

reinoute commented 3 years ago

2nd this

jerryeechan commented 3 years ago

3rd

Robula commented 3 years ago

They could easily do this. All their SDKs appear to be generated by https://github.com/swagger-api/swagger-codegen

SelvinM commented 3 years ago

Yes, we need this!

sgronblo commented 1 year ago

The stewardship of this repository leaves a lot to be desired. There is obviously new versions being released but there seems to be zero interaction with users on pull requests. It's not very confidence inducing for your clients trying to build their business using Cybersource's services.

elhe26 commented 1 year ago

Any updates? It has been +2 years since this request was made.

It seems @sgronblo hit the nail on the head.

JoseAGarache commented 1 year ago

Yes, we need any typescript support.

titandino commented 9 months ago

I would greatly appreciate typescript support.

max-nicholson commented 9 months ago

Echo the above that ideally Typescript support is built-in.

As a workaround I ended up cloning this repository, creating a separate swagger-codegen template mashing together the Cybersource template and the "typescript-fetch" template in the swagger-codegen core library, and using the output to create a .d.ts file.

If anyone else is interested I could put this up in a gist? NB: Looks to work OK with our usecase, but we only use a subset of the API so I can't guarantee it works across the board. So you may prefer no types over potentially incorrect ones

roacfe commented 5 months ago

Echo the above that ideally Typescript support is built-in.

As a workaround I ended up cloning this repository, creating a separate swagger-codegen template mashing together the Cybersource template and the "typescript-fetch" template in the swagger-codegen core library, and using the output to create a .d.ts file.

If anyone else is interested I could put this up in a gist? NB: Looks to work OK with our usecase, but we only use a subset of the API so I can't guarantee it works across the board. So you may prefer no types over potentially incorrect ones

I am interested in this, if you have a gist to share I would greatly appreciate it!

dudeofawesome commented 2 months ago

I've created a version of the SDK with swagger-codegen's Typescript with Axios template here: https://github.com/Paciolan/cybersource-sdk. It uses the authentication code from this repository as swagger-codegen doesn't handle that.

8enSmith commented 1 month ago

I've created a version of the SDK with swagger-codegen's Typescript with Axios template here: https://github.com/Paciolan/cybersource-sdk. It uses the authentication code from this repository as swagger-codegen doesn't handle that.

Awesome work @dudeofawesome!