Autodesk-Forge / forge-api-nodejs-client

Forge Node.js SDK: Provides Node.js SDK to help you easily integrate Forge REST APIs into the application
Apache License 2.0
124 stars 86 forks source link

ApiClient.convertToType is not a function #9

Closed alekperos closed 7 years ago

alekperos commented 7 years ago

Hi,

Updated the SDK to the latest revision, now no longer able to submit a job for translation. it gives an error when building a job object for translation function call:

    job = new ForgeAPI.JobPayload { 
        input: {
            urn: urn
       },
        output: {
            formats: [ {type: "svf", views: ["2d","3d"]} ]
        }
   }

JobPayload is using JobPayloadInput and JobPayloadOutput which use a method called ApiClient.convertToType that no longer exists.

Can you please advice what to do?

gregra81 commented 7 years ago

@alekperos - Sorry for the late response, I'll take a look at it and post a fix ASAP

gregra81 commented 7 years ago

@alekperos - Check out version 0.2.7 where this is fixed. Thanks again for the heads up!

alekperos commented 7 years ago

Can you please update NPM accordingly? version is still 0.2.6 there.

gregra81 commented 7 years ago

@alekperos - It's published now