mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
* Adding updates for version 1.20 * microsoftgraph updating for v 1.21 * Updating microsoft-graph version 1.22 * Version 1.23 * Upgrade to 1.24 * upgrade to version 1.25 * Upgrade to version 1.26 * Updating to version 1.27 * Update to 1.28 * Updating to version 1.29 * updating version 3.0.0 * Update to 1.30 * Update to version 1.31 * Update to 1.32 * Upgrade to version 1.33 * Update to version 1.34 * Update to version 1.35 * update to 1.36 version * update to 1.37 * Updating to 1.38 * Update to version 1.39
166 lines
4.3 KiB
TypeScript
166 lines
4.3 KiB
TypeScript
// Microsoft Graph tests
|
|
// Project: https://github.com/microsoftgraph/msgraph-typescript-typings
|
|
|
|
import * as MicrosoftGraph from "microsoft-graph";
|
|
|
|
const user: MicrosoftGraph.User = {
|
|
officeLocation: "Bengaluru",
|
|
companyName: "Microsoft",
|
|
country: "India",
|
|
displayName: "Muthu"
|
|
};
|
|
|
|
const startTime: MicrosoftGraph.DateTimeTimeZone = {
|
|
dateTime: "2019-05-29T04:00:00.0000000"
|
|
};
|
|
|
|
const endTime: MicrosoftGraph.DateTimeTimeZone = {
|
|
dateTime: "2019-05-29T05:00:00.0000000",
|
|
};
|
|
|
|
const bodyText: MicrosoftGraph.ItemBody = {
|
|
contentType: "text",
|
|
content: "Hi, Shall we meet for a cup of coffee"
|
|
};
|
|
|
|
const event: MicrosoftGraph.Event = {
|
|
subject: "Meet for a coffee",
|
|
body: bodyText,
|
|
start: startTime,
|
|
end: endTime
|
|
};
|
|
|
|
const servicePrincipal: MicrosoftGraph.ServicePrincipal = {
|
|
accountEnabled: true,
|
|
appDisplayName: "MyNewAppName",
|
|
appDescription: null,
|
|
description: "Test-Description"
|
|
};
|
|
|
|
const servicePrincipalWithAppDescription: MicrosoftGraph.ServicePrincipal = {
|
|
appDescription: "Test-App-Description",
|
|
accountEnabled: null,
|
|
description: null
|
|
};
|
|
|
|
const invitation: MicrosoftGraph.Invitation = {
|
|
invitedUserDisplayName: null,
|
|
invitedUserType: undefined,
|
|
inviteRedeemUrl: "url"
|
|
};
|
|
|
|
const application: MicrosoftGraph.Application = {
|
|
description: null,
|
|
displayName: "Test-Application-Name",
|
|
appRoles: undefined,
|
|
notes: ""
|
|
};
|
|
|
|
const callTranscriptInfo: MicrosoftGraph.CallTranscriptionInfo = {
|
|
state: "active",
|
|
lastModifiedDateTime: null
|
|
};
|
|
|
|
const resultInfo: MicrosoftGraph.ResultInfo = {
|
|
code: 3,
|
|
subcode: 4
|
|
};
|
|
|
|
const cancelMediaProcessingOperation: MicrosoftGraph.CancelMediaProcessingOperation = {
|
|
id: "testId",
|
|
resultInfo
|
|
};
|
|
|
|
const callType: MicrosoftGraph.CallRecords.CallType = "unknown";
|
|
|
|
const callRecord: MicrosoftGraph.CallRecords.CallRecord = {
|
|
type: callType,
|
|
};
|
|
|
|
// Testing cross namespace inheritance
|
|
// id comes from Entity which is defined in parent namespace
|
|
const session: MicrosoftGraph.CallRecords.Session = {
|
|
id: "TestId"
|
|
};
|
|
|
|
const deviceIdentity: MicrosoftGraph.Identity = {
|
|
displayName: "TestDisplayName"
|
|
};
|
|
|
|
const identitySet: MicrosoftGraph.IdentitySet = {
|
|
device: deviceIdentity
|
|
};
|
|
|
|
// Testing cross namespace property reference
|
|
const info: MicrosoftGraph.CallRecords.ParticipantEndpoint = {
|
|
identity: identitySet
|
|
};
|
|
|
|
const riskLevel: MicrosoftGraph.RiskLevel = "hidden";
|
|
|
|
const eventMessageResponse: MicrosoftGraph.EventMessageResponse = {
|
|
type: null
|
|
};
|
|
|
|
const permissionClassificationType: MicrosoftGraph.PermissionClassificationType = "medium";
|
|
|
|
const delegatedPermissionClassification: MicrosoftGraph.DelegatedPermissionClassification = {
|
|
classification: permissionClassificationType
|
|
};
|
|
|
|
const permission: MicrosoftGraph.Permission = {
|
|
link: null,
|
|
id: "string"
|
|
};
|
|
|
|
const userFeedback: MicrosoftGraph.CallRecords.UserFeedback = {
|
|
rating: "notRated",
|
|
text: null
|
|
};
|
|
|
|
const group: MicrosoftGraph.Group = {
|
|
mailEnabled: true,
|
|
classification: null,
|
|
onPremisesDomainName: "test"
|
|
};
|
|
|
|
const todoTask: MicrosoftGraph.TodoTask = {
|
|
status: "notStarted",
|
|
importance: "low"
|
|
};
|
|
|
|
const lobbyBypassScope: MicrosoftGraph.LobbyBypassScope = "organizer";
|
|
|
|
const oneNoteUserRole: MicrosoftGraph.OnenoteUserRole = "Owner";
|
|
|
|
const conditionalAccessGrantControl: MicrosoftGraph.ConditionalAccessGrantControl = "passwordChange";
|
|
|
|
const authenticationMethodState: MicrosoftGraph.AuthenticationMethodState = "disabled";
|
|
|
|
const applicationTemplate: MicrosoftGraph.ApplicationTemplate = {
|
|
categories: [],
|
|
logoUrl: "test"
|
|
};
|
|
|
|
const chatType: MicrosoftGraph.ChatType = "group";
|
|
|
|
const featureRolloutPolicy: MicrosoftGraph.FeatureRolloutPolicy = {
|
|
description: "TEST_DESC",
|
|
displayName: "TEST_NAME"
|
|
};
|
|
|
|
const consentRequestFilterByCurrentUserOptions: MicrosoftGraph.ConsentRequestFilterByCurrentUserOptions = "reviewer";
|
|
|
|
const initiatorType: MicrosoftGraph.InitiatorType = "user";
|
|
|
|
const identityUserFlowAttributeDataType: MicrosoftGraph.IdentityUserFlowAttributeDataType = "string";
|
|
|
|
const enrollmentState: MicrosoftGraph.EnrollmentState = "enrolled";
|
|
|
|
const authorizationPolicy: MicrosoftGraph.AuthorizationPolicy = {
|
|
guestUserRoleId: "TEST_ID",
|
|
displayName: "TEST_NAME"
|
|
};
|
|
|
|
const deviceEnrollmentType: MicrosoftGraph.DeviceEnrollmentType = "windowsCoManagement";
|