nylas
Version:
A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.
96 lines (95 loc) • 2.41 kB
TypeScript
export * from './models/index.js';
import APIClient from './apiClient.js';
import { NylasConfig } from './config.js';
import { Calendars } from './resources/calendars.js';
import { Events } from './resources/events.js';
import { Auth } from './resources/auth.js';
import { Webhooks } from './resources/webhooks.js';
import { Applications } from './resources/applications.js';
import { Messages } from './resources/messages.js';
import { Drafts } from './resources/drafts.js';
import { Threads } from './resources/threads.js';
import { Connectors } from './resources/connectors.js';
import { Folders } from './resources/folders.js';
import { Grants } from './resources/grants.js';
import { Contacts } from './resources/contacts.js';
import { Attachments } from './resources/attachments.js';
import { Scheduler } from './resources/scheduler.js';
import { Notetakers } from './resources/notetakers.js';
/**
* The entry point to the Node SDK
*
* A Nylas instance holds a configured http client pointing to a base URL and is intended to be reused and shared
* across threads and time.
*/
export default class Nylas {
/**
* Access the Applications API
*/
applications: Applications;
/**
* Access the Attachments API
*/
attachments: Attachments;
/**
* Access the Auth API
*/
auth: Auth;
/**
* Access the Calendars API
*/
calendars: Calendars;
/**
* Access the Connectors API
*/
connectors: Connectors;
/**
* Access the Contacts API
*/
contacts: Contacts;
/**
* Access the Drafts API
*/
drafts: Drafts;
/**
* Access the Events API
*/
events: Events;
/**
* Access the Grants API
*/
grants: Grants;
/**
* Access the Messages API
*/
messages: Messages;
/**
* Access the Notetakers API
*/
notetakers: Notetakers;
/**
* Access the Threads API
*/
threads: Threads;
/**
* Access the Webhooks API
*/
webhooks: Webhooks;
/**
* Access the Folders API
*/
folders: Folders;
/**
* Access the scheduler API
*/
scheduler: Scheduler;
/**
* The configured API client
* @ignore Not for public use
*/
apiClient: APIClient;
/**
* @param config Configuration options for the Nylas SDK
*/
constructor(config: NylasConfig);
}