Socket
Socket
Sign inDemoInstall

m365-wrapper

Package Overview
Dependencies
42
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.15 to 0.0.17

4

lib-esm/index.d.ts

@@ -30,4 +30,7 @@ import "isomorphic-fetch";

CreateOutlookCalendarEvent(userEvent: MicrosoftGraph.Event): Promise<[MicrosoftGraph.Event]>;
UpdateOutlookCalendarEventAttendees(eventId: string, newAtteendees: string): Promise<MicrosoftGraph.Event>;
GetMyDrives(): Promise<[MicrosoftGraph.Drive]>;
GetMyDriveItemsByQuery(queryText: string): Promise<[MicrosoftGraph.DriveItem]>;
GetMyDriveAndSharedItemsByQuery(queryText: string): Promise<[MicrosoftGraph.DriveItem]>;
GetMySharedItems(): Promise<[MicrosoftGraph.DriveItem]>;
GetTeamDrives(teamGroupId: string): Promise<[MicrosoftGraph.Drive]>;

@@ -39,2 +42,3 @@ GetSiteDrives(siteIdOrName: string): Promise<[MicrosoftGraph.Drive]>;

GetDriveFolderItems(driveId: string, folderId: string): Promise<[MicrosoftGraph.DriveItem]>;
GetDriveItem(driveId: string, itemId: string): Promise<MicrosoftGraph.DriveItem>;
GetTeamDefaultDriveItems(teamGroupId: string, relativePath: string): Promise<[MicrosoftGraph.DriveItem]>;

@@ -41,0 +45,0 @@ GetTeamDriveItemsByQuery(teamGroupId: string, queryText: string): Promise<[MicrosoftGraph.DriveItem]>;

174

lib-esm/index.js

@@ -310,5 +310,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
M365Wrapper.prototype.GetMyDrives = function () {
M365Wrapper.prototype.UpdateOutlookCalendarEventAttendees = function (eventId, newAtteendees) {
return __awaiter(this, void 0, void 0, function () {
var items, error_4;
var res, error_4;
return __generator(this, function (_a) {

@@ -318,7 +318,7 @@ switch (_a.label) {

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/me/drives")
.get()];
return [4 /*yield*/, this.client.api("/me/events/" + eventId)
.patch(newAtteendees)];
case 1:
items = _a.sent();
return [2 /*return*/, items];
res = _a.sent();
return [2 /*return*/, res];
case 2:

@@ -332,3 +332,3 @@ error_4 = _a.sent();

};
M365Wrapper.prototype.GetMyDriveItemsByQuery = function (queryText) {
M365Wrapper.prototype.GetMyDrives = function () {
return __awaiter(this, void 0, void 0, function () {

@@ -340,3 +340,3 @@ var items, error_5;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/me/drive/root/search(q='" + queryText + "')")
return [4 /*yield*/, this.client.api("/me/drives")
.get()];

@@ -354,3 +354,3 @@ case 1:

};
M365Wrapper.prototype.GetTeamDrives = function (teamGroupId) {
M365Wrapper.prototype.GetMyDriveItemsByQuery = function (queryText) {
return __awaiter(this, void 0, void 0, function () {

@@ -362,3 +362,3 @@ var items, error_6;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/groups/" + teamGroupId + "/drives")
return [4 /*yield*/, this.client.api("/me/drive/root/search(q='" + queryText + "')")
.get()];

@@ -376,3 +376,3 @@ case 1:

};
M365Wrapper.prototype.GetSiteDrives = function (siteIdOrName) {
M365Wrapper.prototype.GetMyDriveAndSharedItemsByQuery = function (queryText) {
return __awaiter(this, void 0, void 0, function () {

@@ -384,3 +384,3 @@ var items, error_7;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/sites/" + siteIdOrName + "/drives")
return [4 /*yield*/, this.client.api("/me/drive/search(q='" + queryText + "')")
.get()];

@@ -398,3 +398,3 @@ case 1:

};
M365Wrapper.prototype.GetSiteDriveItemsByQuery = function (siteIdOrName, queryText) {
M365Wrapper.prototype.GetMySharedItems = function () {
return __awaiter(this, void 0, void 0, function () {

@@ -406,3 +406,3 @@ var items, error_8;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/sites/" + siteIdOrName + "/drive/root/search(q='" + queryText + "')")
return [4 /*yield*/, this.client.api("/me/drive/sharedWithMe")
.get()];

@@ -420,3 +420,3 @@ case 1:

};
M365Wrapper.prototype.GetDriveItems = function (driveId) {
M365Wrapper.prototype.GetTeamDrives = function (teamGroupId) {
return __awaiter(this, void 0, void 0, function () {

@@ -428,3 +428,3 @@ var items, error_9;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/root/children")
return [4 /*yield*/, this.client.api("/groups/" + teamGroupId + "/drives")
.get()];

@@ -442,3 +442,3 @@ case 1:

};
M365Wrapper.prototype.GetDriveItemsByQuery = function (driveId, queryText) {
M365Wrapper.prototype.GetSiteDrives = function (siteIdOrName) {
return __awaiter(this, void 0, void 0, function () {

@@ -450,3 +450,3 @@ var items, error_10;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/root/search(q='" + queryText + "')")
return [4 /*yield*/, this.client.api("/sites/" + siteIdOrName + "/drives")
.get()];

@@ -464,3 +464,3 @@ case 1:

};
M365Wrapper.prototype.GetDriveFolderItems = function (driveId, folderId) {
M365Wrapper.prototype.GetSiteDriveItemsByQuery = function (siteIdOrName, queryText) {
return __awaiter(this, void 0, void 0, function () {

@@ -472,3 +472,3 @@ var items, error_11;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/items/" + folderId + "/children")
return [4 /*yield*/, this.client.api("/sites/" + siteIdOrName + "/drive/root/search(q='" + queryText + "')")
.get()];

@@ -486,3 +486,3 @@ case 1:

};
M365Wrapper.prototype.GetTeamDefaultDriveItems = function (teamGroupId, relativePath) {
M365Wrapper.prototype.GetDriveItems = function (driveId) {
return __awaiter(this, void 0, void 0, function () {

@@ -493,2 +493,82 @@ var items, error_12;

case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/root/children")
.get()];
case 1:
items = _a.sent();
return [2 /*return*/, items];
case 2:
error_12 = _a.sent();
throw error_12;
case 3: return [2 /*return*/];
}
});
});
};
M365Wrapper.prototype.GetDriveItemsByQuery = function (driveId, queryText) {
return __awaiter(this, void 0, void 0, function () {
var items, error_13;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/root/search(q='" + queryText + "')")
.get()];
case 1:
items = _a.sent();
return [2 /*return*/, items];
case 2:
error_13 = _a.sent();
throw error_13;
case 3: return [2 /*return*/];
}
});
});
};
M365Wrapper.prototype.GetDriveFolderItems = function (driveId, folderId) {
return __awaiter(this, void 0, void 0, function () {
var items, error_14;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/items/" + folderId + "/children")
.get()];
case 1:
items = _a.sent();
return [2 /*return*/, items];
case 2:
error_14 = _a.sent();
throw error_14;
case 3: return [2 /*return*/];
}
});
});
};
M365Wrapper.prototype.GetDriveItem = function (driveId, itemId) {
return __awaiter(this, void 0, void 0, function () {
var items, error_15;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/items/" + itemId)
.get()];
case 1:
items = _a.sent();
return [2 /*return*/, items];
case 2:
error_15 = _a.sent();
throw error_15;
case 3: return [2 /*return*/];
}
});
});
};
M365Wrapper.prototype.GetTeamDefaultDriveItems = function (teamGroupId, relativePath) {
return __awaiter(this, void 0, void 0, function () {
var items, error_16;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 5, , 6]);

@@ -515,4 +595,4 @@ items = null;

case 5:
error_12 = _a.sent();
throw error_12;
error_16 = _a.sent();
throw error_16;
case 6: return [2 /*return*/];

@@ -525,3 +605,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var items, error_13;
var items, error_17;
return __generator(this, function (_a) {

@@ -537,4 +617,4 @@ switch (_a.label) {

case 2:
error_13 = _a.sent();
throw error_13;
error_17 = _a.sent();
throw error_17;
case 3: return [2 /*return*/];

@@ -547,3 +627,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retTeam, error_14;
var retTeam, error_18;
return __generator(this, function (_a) {

@@ -559,4 +639,4 @@ switch (_a.label) {

case 2:
error_14 = _a.sent();
throw error_14;
error_18 = _a.sent();
throw error_18;
case 3: return [2 /*return*/];

@@ -569,3 +649,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retChannels, error_15;
var retChannels, error_19;
return __generator(this, function (_a) {

@@ -581,4 +661,4 @@ switch (_a.label) {

case 2:
error_15 = _a.sent();
throw error_15;
error_19 = _a.sent();
throw error_19;
case 3: return [2 /*return*/];

@@ -591,3 +671,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retChannel, error_16;
var retChannel, error_20;
return __generator(this, function (_a) {

@@ -603,4 +683,4 @@ switch (_a.label) {

case 2:
error_16 = _a.sent();
throw error_16;
error_20 = _a.sent();
throw error_20;
case 3: return [2 /*return*/];

@@ -613,3 +693,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retMembers, error_17;
var retMembers, error_21;
return __generator(this, function (_a) {

@@ -625,4 +705,4 @@ switch (_a.label) {

case 2:
error_17 = _a.sent();
throw error_17;
error_21 = _a.sent();
throw error_21;
case 3: return [2 /*return*/];

@@ -635,3 +715,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retEvents, error_18;
var retEvents, error_22;
return __generator(this, function (_a) {

@@ -647,4 +727,4 @@ switch (_a.label) {

case 2:
error_18 = _a.sent();
throw error_18;
error_22 = _a.sent();
throw error_22;
case 3: return [2 /*return*/];

@@ -657,3 +737,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retUser, error_19;
var retUser, error_23;
return __generator(this, function (_a) {

@@ -669,4 +749,4 @@ switch (_a.label) {

case 2:
error_19 = _a.sent();
throw error_19;
error_23 = _a.sent();
throw error_23;
case 3: return [2 /*return*/];

@@ -680,3 +760,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retReport, error_20;
var retReport, error_24;
return __generator(this, function (_a) {

@@ -692,4 +772,4 @@ switch (_a.label) {

case 2:
error_20 = _a.sent();
throw error_20;
error_24 = _a.sent();
throw error_24;
case 3: return [2 /*return*/];

@@ -696,0 +776,0 @@ }

@@ -30,4 +30,7 @@ import "isomorphic-fetch";

CreateOutlookCalendarEvent(userEvent: MicrosoftGraph.Event): Promise<[MicrosoftGraph.Event]>;
UpdateOutlookCalendarEventAttendees(eventId: string, newAtteendees: string): Promise<MicrosoftGraph.Event>;
GetMyDrives(): Promise<[MicrosoftGraph.Drive]>;
GetMyDriveItemsByQuery(queryText: string): Promise<[MicrosoftGraph.DriveItem]>;
GetMyDriveAndSharedItemsByQuery(queryText: string): Promise<[MicrosoftGraph.DriveItem]>;
GetMySharedItems(): Promise<[MicrosoftGraph.DriveItem]>;
GetTeamDrives(teamGroupId: string): Promise<[MicrosoftGraph.Drive]>;

@@ -39,2 +42,3 @@ GetSiteDrives(siteIdOrName: string): Promise<[MicrosoftGraph.Drive]>;

GetDriveFolderItems(driveId: string, folderId: string): Promise<[MicrosoftGraph.DriveItem]>;
GetDriveItem(driveId: string, itemId: string): Promise<MicrosoftGraph.DriveItem>;
GetTeamDefaultDriveItems(teamGroupId: string, relativePath: string): Promise<[MicrosoftGraph.DriveItem]>;

@@ -41,0 +45,0 @@ GetTeamDriveItemsByQuery(teamGroupId: string, queryText: string): Promise<[MicrosoftGraph.DriveItem]>;

@@ -311,5 +311,5 @@ "use strict";

};
M365Wrapper.prototype.GetMyDrives = function () {
M365Wrapper.prototype.UpdateOutlookCalendarEventAttendees = function (eventId, newAtteendees) {
return __awaiter(this, void 0, void 0, function () {
var items, error_4;
var res, error_4;
return __generator(this, function (_a) {

@@ -319,7 +319,7 @@ switch (_a.label) {

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/me/drives")
.get()];
return [4 /*yield*/, this.client.api("/me/events/" + eventId)
.patch(newAtteendees)];
case 1:
items = _a.sent();
return [2 /*return*/, items];
res = _a.sent();
return [2 /*return*/, res];
case 2:

@@ -333,3 +333,3 @@ error_4 = _a.sent();

};
M365Wrapper.prototype.GetMyDriveItemsByQuery = function (queryText) {
M365Wrapper.prototype.GetMyDrives = function () {
return __awaiter(this, void 0, void 0, function () {

@@ -341,3 +341,3 @@ var items, error_5;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/me/drive/root/search(q='" + queryText + "')")
return [4 /*yield*/, this.client.api("/me/drives")
.get()];

@@ -355,3 +355,3 @@ case 1:

};
M365Wrapper.prototype.GetTeamDrives = function (teamGroupId) {
M365Wrapper.prototype.GetMyDriveItemsByQuery = function (queryText) {
return __awaiter(this, void 0, void 0, function () {

@@ -363,3 +363,3 @@ var items, error_6;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/groups/" + teamGroupId + "/drives")
return [4 /*yield*/, this.client.api("/me/drive/root/search(q='" + queryText + "')")
.get()];

@@ -377,3 +377,3 @@ case 1:

};
M365Wrapper.prototype.GetSiteDrives = function (siteIdOrName) {
M365Wrapper.prototype.GetMyDriveAndSharedItemsByQuery = function (queryText) {
return __awaiter(this, void 0, void 0, function () {

@@ -385,3 +385,3 @@ var items, error_7;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/sites/" + siteIdOrName + "/drives")
return [4 /*yield*/, this.client.api("/me/drive/search(q='" + queryText + "')")
.get()];

@@ -399,3 +399,3 @@ case 1:

};
M365Wrapper.prototype.GetSiteDriveItemsByQuery = function (siteIdOrName, queryText) {
M365Wrapper.prototype.GetMySharedItems = function () {
return __awaiter(this, void 0, void 0, function () {

@@ -407,3 +407,3 @@ var items, error_8;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/sites/" + siteIdOrName + "/drive/root/search(q='" + queryText + "')")
return [4 /*yield*/, this.client.api("/me/drive/sharedWithMe")
.get()];

@@ -421,3 +421,3 @@ case 1:

};
M365Wrapper.prototype.GetDriveItems = function (driveId) {
M365Wrapper.prototype.GetTeamDrives = function (teamGroupId) {
return __awaiter(this, void 0, void 0, function () {

@@ -429,3 +429,3 @@ var items, error_9;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/root/children")
return [4 /*yield*/, this.client.api("/groups/" + teamGroupId + "/drives")
.get()];

@@ -443,3 +443,3 @@ case 1:

};
M365Wrapper.prototype.GetDriveItemsByQuery = function (driveId, queryText) {
M365Wrapper.prototype.GetSiteDrives = function (siteIdOrName) {
return __awaiter(this, void 0, void 0, function () {

@@ -451,3 +451,3 @@ var items, error_10;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/root/search(q='" + queryText + "')")
return [4 /*yield*/, this.client.api("/sites/" + siteIdOrName + "/drives")
.get()];

@@ -465,3 +465,3 @@ case 1:

};
M365Wrapper.prototype.GetDriveFolderItems = function (driveId, folderId) {
M365Wrapper.prototype.GetSiteDriveItemsByQuery = function (siteIdOrName, queryText) {
return __awaiter(this, void 0, void 0, function () {

@@ -473,3 +473,3 @@ var items, error_11;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/items/" + folderId + "/children")
return [4 /*yield*/, this.client.api("/sites/" + siteIdOrName + "/drive/root/search(q='" + queryText + "')")
.get()];

@@ -487,3 +487,3 @@ case 1:

};
M365Wrapper.prototype.GetTeamDefaultDriveItems = function (teamGroupId, relativePath) {
M365Wrapper.prototype.GetDriveItems = function (driveId) {
return __awaiter(this, void 0, void 0, function () {

@@ -494,2 +494,82 @@ var items, error_12;

case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/root/children")
.get()];
case 1:
items = _a.sent();
return [2 /*return*/, items];
case 2:
error_12 = _a.sent();
throw error_12;
case 3: return [2 /*return*/];
}
});
});
};
M365Wrapper.prototype.GetDriveItemsByQuery = function (driveId, queryText) {
return __awaiter(this, void 0, void 0, function () {
var items, error_13;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/root/search(q='" + queryText + "')")
.get()];
case 1:
items = _a.sent();
return [2 /*return*/, items];
case 2:
error_13 = _a.sent();
throw error_13;
case 3: return [2 /*return*/];
}
});
});
};
M365Wrapper.prototype.GetDriveFolderItems = function (driveId, folderId) {
return __awaiter(this, void 0, void 0, function () {
var items, error_14;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/items/" + folderId + "/children")
.get()];
case 1:
items = _a.sent();
return [2 /*return*/, items];
case 2:
error_14 = _a.sent();
throw error_14;
case 3: return [2 /*return*/];
}
});
});
};
M365Wrapper.prototype.GetDriveItem = function (driveId, itemId) {
return __awaiter(this, void 0, void 0, function () {
var items, error_15;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/items/" + itemId)
.get()];
case 1:
items = _a.sent();
return [2 /*return*/, items];
case 2:
error_15 = _a.sent();
throw error_15;
case 3: return [2 /*return*/];
}
});
});
};
M365Wrapper.prototype.GetTeamDefaultDriveItems = function (teamGroupId, relativePath) {
return __awaiter(this, void 0, void 0, function () {
var items, error_16;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 5, , 6]);

@@ -516,4 +596,4 @@ items = null;

case 5:
error_12 = _a.sent();
throw error_12;
error_16 = _a.sent();
throw error_16;
case 6: return [2 /*return*/];

@@ -526,3 +606,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var items, error_13;
var items, error_17;
return __generator(this, function (_a) {

@@ -538,4 +618,4 @@ switch (_a.label) {

case 2:
error_13 = _a.sent();
throw error_13;
error_17 = _a.sent();
throw error_17;
case 3: return [2 /*return*/];

@@ -548,3 +628,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retTeam, error_14;
var retTeam, error_18;
return __generator(this, function (_a) {

@@ -560,4 +640,4 @@ switch (_a.label) {

case 2:
error_14 = _a.sent();
throw error_14;
error_18 = _a.sent();
throw error_18;
case 3: return [2 /*return*/];

@@ -570,3 +650,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retChannels, error_15;
var retChannels, error_19;
return __generator(this, function (_a) {

@@ -582,4 +662,4 @@ switch (_a.label) {

case 2:
error_15 = _a.sent();
throw error_15;
error_19 = _a.sent();
throw error_19;
case 3: return [2 /*return*/];

@@ -592,3 +672,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retChannel, error_16;
var retChannel, error_20;
return __generator(this, function (_a) {

@@ -604,4 +684,4 @@ switch (_a.label) {

case 2:
error_16 = _a.sent();
throw error_16;
error_20 = _a.sent();
throw error_20;
case 3: return [2 /*return*/];

@@ -614,3 +694,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retMembers, error_17;
var retMembers, error_21;
return __generator(this, function (_a) {

@@ -626,4 +706,4 @@ switch (_a.label) {

case 2:
error_17 = _a.sent();
throw error_17;
error_21 = _a.sent();
throw error_21;
case 3: return [2 /*return*/];

@@ -636,3 +716,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retEvents, error_18;
var retEvents, error_22;
return __generator(this, function (_a) {

@@ -648,4 +728,4 @@ switch (_a.label) {

case 2:
error_18 = _a.sent();
throw error_18;
error_22 = _a.sent();
throw error_22;
case 3: return [2 /*return*/];

@@ -658,3 +738,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retUser, error_19;
var retUser, error_23;
return __generator(this, function (_a) {

@@ -670,4 +750,4 @@ switch (_a.label) {

case 2:
error_19 = _a.sent();
throw error_19;
error_23 = _a.sent();
throw error_23;
case 3: return [2 /*return*/];

@@ -681,3 +761,3 @@ }

return __awaiter(this, void 0, void 0, function () {
var retReport, error_20;
var retReport, error_24;
return __generator(this, function (_a) {

@@ -693,4 +773,4 @@ switch (_a.label) {

case 2:
error_20 = _a.sent();
throw error_20;
error_24 = _a.sent();
throw error_24;
case 3: return [2 /*return*/];

@@ -697,0 +777,0 @@ }

{
"name": "m365-wrapper",
"version": "0.0.15",
"version": "0.0.17",
"description": "Microsoft Graph API wrapper for Microsoft Office 365 functionality: support authentication, teams and much much more",

@@ -34,14 +34,14 @@ "main": "dist/index.js",

"devDependencies": {
"@types/jest": "^25.2.1",
"jest": "^26.0.1",
"@types/jest": "^25.2.3",
"awesome-typescript-loader": "5.2.1",
"jest": "^26.1.0",
"path": "^0.12.7",
"requirejs": "2.3.6",
"shx": "^0.3.2",
"terser-webpack-plugin": "^3.0.1",
"terser-webpack-plugin": "^3.0.7",
"ts-jest": "^25.5.1",
"typescript": "^3.8.3",
"tsify": "^4.0.2",
"typescript": "^3.9.7",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11",
"tsify": "^4.0.1",
"awesome-typescript-loader": "5.2.1"
"webpack-cli": "^3.3.12"
},

@@ -52,4 +52,4 @@ "dependencies": {

"isomorphic-fetch": "^2.2.1",
"msal": "^1.3.1"
"msal": "^1.3.3"
}
}

@@ -183,6 +183,30 @@

// and end time must be set to midnight (period must be at least 24 hours long) and be in the same time zone. Default is false.
}
};
const outCalEvent = await organizationsClient.CreateOutlookCalendarEvent(outlCalEvent);
```
Update outlook calendar event attendees (output type: MicrosoftGraph.Event)
```
var eventId = "<eventId>"; // A valid outlook calendar event id (required).
var newAtteendees = {
attendees: [ // Fill with all attendees needed for the event, followed by a comma exept the last one
{
emailAddress: {
address: "name1@mydomain.com",
name: "Name Surmane"
},
type: "required" // Possible admitted values are required, optional, resource.
},
{
emailAddress: {
address: "name2@mydomain.com",
name: "Name Surname"
},
type: "optional" // Possible admitted values are required, optional, resource.
}
]
};
const outCalEvent = await organizationsClient.UpdateOutlookCalendarEventAttendees(eventId, newAtteendees);
```
### One drive

@@ -202,2 +226,22 @@

Get DriveItems searching for items within both logged user drive and items shared with him (output type: collection of MicrosoftGraph.DriveItem)
```
var searchText = "<Text to search>"; // Optional. The query text used to search for items. Values may be matched
// across several fields including filename, metadata, and file content.
const driveItems = await organizationsClient.GetMyDriveAndSharedItemsByQuery(searchText);
```
Retrieve a collection of DriveItem resources that have been shared with the logged user (output type: collection of MicrosoftGraph.DriveItem)
```
const driveItems = await organizationsClient.GetMySharedItems();
```
Get a DriveItem resource (also a shared one). To access a shared DriveItem resource, the request can be made using the
parameters provided in 'remoteItem' facet returned by the GetMySharedItems() method (output type: MicrosoftGraph.DriveItem)
```
var driveId = "<driveId>"; // A valid drive unique id (required).
var itemId = "<itemId>"; // A valid DriveItem id (required).
const item = await organizationsClient.GetDriveItem(driveId, itemId);
```
Enumerate OneDrive resources available to the team group (output type: collection of MicrosoftGraph.Drive)

@@ -204,0 +248,0 @@ ```

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc