nylas-nodejs icon indicating copy to clipboard operation
nylas-nodejs copied to clipboard

Add support for the detect provider endpoint

Open mrashed-dev opened this issue 11 months ago • 1 comments

Description

This PR adds support for the /connect/detect_provider endpint.

Usage

To get the provider:

const Nylas = require('nylas');

// Initialize an instance of the Nylas SDK using the client credentials
Nylas.config({
  clientId: "CLIENT_ID",
  clientSecret: "CLIENT_SECRET",
});

// Pass the email to the detect provider function
const detectProviderRes = await Nylas.detectProvider("[email protected]");

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

mrashed-dev avatar Mar 07 '24 00:03 mrashed-dev

Codecov Report

Attention: Patch coverage is 38.88889% with 11 lines in your changes are missing coverage. Please review.

Project coverage is 91.44%. Comparing base (605d691) to head (4fec930).

Files Patch % Lines
src/models/detect-provider-response.ts 45.45% 6 Missing :warning:
src/nylas.ts 28.57% 5 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##               v6     #548      +/-   ##
==========================================
- Coverage   91.79%   91.44%   -0.36%     
==========================================
  Files          62       63       +1     
  Lines        2670     2688      +18     
  Branches      490      491       +1     
==========================================
+ Hits         2451     2458       +7     
- Misses        218      229      +11     
  Partials        1        1              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Mar 07 '24 00:03 codecov[bot]