Open MMChrisHinshaw opened 12 months ago
I will note that the file installed by npm install crowdstrike-falcon
is not the same as:
https://github.com/CrowdStrike/falconjs/blob/v0.2.4/src/models/MsaQueryResponse.ts
I assume there to be a typescript to javascript conversion that occurs.
Hi @MMChrisHinshaw 0.3.1 was released last week and contains the latest Alerts API (along with many other API's added since the the 0.2.4 release), the basePath fix (also in 0.2.5), and the error mapping fix.
If you are still working with this library please give it a try and let us know if you run into additional issues. Please note that in this version, the Request objects are prefixed with the API name to avoid conflicts with new API's, but this could be a breaking change if you were referencing using the Raw type API request methods. For example:
-export interface CreateRuleRequest {
+export interface CustomIoaApiCreateRuleRequest {
body: ApiRuleCreateV1;
}
A few things, really....
basePath
in the oauth2 and this.config objects (see issue 191)Results in this error:
This is because the API call doesn't actually have an
errors
field, per the swagger UI, this is the response:The npm module either needs to add some defensive code to
./dist/models/MsaQueryResponse.js
to check for the existence of the 'errors' field, or the API needs to be updated to ensure there is an errors field (similar to other API routes).