Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/microsoft-graph-types

Package Overview
Dependencies
Maintainers
3
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/microsoft-graph-types

Types for Microsoft Graph objects

  • 2.40.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
224K
decreased by-0.34%
Maintainers
3
Weekly downloads
 
Created

What is @microsoft/microsoft-graph-types?

@microsoft/microsoft-graph-types is an npm package that provides TypeScript type definitions for the Microsoft Graph API. This package helps developers to interact with Microsoft Graph API in a type-safe manner, ensuring that the data structures and API calls are correctly used.

What are @microsoft/microsoft-graph-types's main functionalities?

User Management

This feature allows you to define and manage user objects in a type-safe manner. The code sample demonstrates how to create a user object with specific properties.

const user: MicrosoftGraph.User = {
  id: 'user-id',
  displayName: 'John Doe',
  mail: 'john.doe@example.com'
};

Calendar Events

This feature allows you to define and manage calendar events. The code sample demonstrates how to create an event object with specific properties such as subject, start time, and end time.

const event: MicrosoftGraph.Event = {
  subject: 'Meeting',
  start: {
    dateTime: '2023-10-01T10:00:00',
    timeZone: 'Pacific Standard Time'
  },
  end: {
    dateTime: '2023-10-01T11:00:00',
    timeZone: 'Pacific Standard Time'
  }
};

Mail Management

This feature allows you to define and manage email messages. The code sample demonstrates how to create a message object with specific properties such as subject, body, and recipients.

const message: MicrosoftGraph.Message = {
  subject: 'Hello World',
  body: {
    contentType: 'Text',
    content: 'This is a test email.'
  },
  toRecipients: [
    {
      emailAddress: {
        address: 'recipient@example.com'
      }
    }
  ]
};

Other packages similar to @microsoft/microsoft-graph-types

FAQs

Package last updated on 22 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc