Skip to content

Commit

Permalink
final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev committed Oct 16, 2023
1 parent aebf90e commit 60175b9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/nylas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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';

/**
* The entry point to the Node SDK
Expand Down Expand Up @@ -39,6 +40,10 @@ export default class Nylas {
* Access the Messages API
*/
public messages: Messages;
/**
* Access the Threads API
*/
public threads: Threads;
/**
* Access the Webhooks API
*/
Expand Down Expand Up @@ -66,6 +71,7 @@ export default class Nylas {
this.drafts = new Drafts(this.apiClient);
this.events = new Events(this.apiClient);
this.messages = new Messages(this.apiClient);
this.threads = new Threads(this.apiClient);
this.webhooks = new Webhooks(this.apiClient);

return this;
Expand Down
5 changes: 5 additions & 0 deletions src/resources/drafts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ export type DestroyDraftParams = FindDraftParams;
*/
export type SendDraftParams = FindDraftParams;

/**
* Nylas Drafts API
*
* The Nylas Drafts API allows you to list, find, update, delete, and send drafts on user accounts.
*/
export class Drafts extends Resource {
/**
* Return all Drafts
Expand Down
5 changes: 5 additions & 0 deletions src/resources/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ export interface FindScheduledMessageParams {
*/
export type StopScheduledMessageParams = FindScheduledMessageParams;

/**
* Nylas Messages API
*
* The Nylas Messages API allows you to list, find, update, delete, schedule, and send messages on user accounts.
*/
export class Messages extends Resource {
public smartCompose: SmartCompose;

Expand Down
5 changes: 5 additions & 0 deletions src/resources/smartCompose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ export interface ComposeMessageReplyParams {
requestBody: ComposeMessageReplyParams;
}

/**
* A collection of Smart Compose related API endpoints.
*
* These endpoints allow for the generation of message suggestions.
*/
export class SmartCompose extends Resource {
/**
* Compose a message
Expand Down

0 comments on commit 60175b9

Please sign in to comment.