m365-wrapper
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -31,7 +31,11 @@ import "isomorphic-fetch"; | ||
GetMyDrives(): Promise<[MicrosoftGraph.Drive]>; | ||
GetMyDriveItemsByQuery(queryText: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetTeamDrives(teamGroupId: string): Promise<[MicrosoftGraph.Drive]>; | ||
GetSiteDrives(siteIdOrName: string): Promise<[MicrosoftGraph.Drive]>; | ||
GetSiteDriveItemsByQuery(siteIdOrName: string, queryText: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetDriveItems(driveId: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetDriveItemsByQuery(driveId: string, queryText: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetDriveFolderItems(driveId: string, folderId: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetTeamDefaultDriveItems(teamGroupId: string, relativePath: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetTeamDriveItemsByQuery(teamGroupId: string, queryText: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetTeam(teamId: string): Promise<MicrosoftGraph.Team>; | ||
@@ -38,0 +42,0 @@ GetTeamChannels(teamId: string): Promise<[MicrosoftGraph.Channel]>; |
@@ -330,3 +330,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
M365Wrapper.prototype.GetTeamDrives = function (teamGroupId) { | ||
M365Wrapper.prototype.GetMyDriveItemsByQuery = function (queryText) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -338,3 +338,3 @@ var items, error_5; | ||
_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()]; | ||
@@ -352,3 +352,3 @@ case 1: | ||
}; | ||
M365Wrapper.prototype.GetSiteDrives = function (siteIdOrName) { | ||
M365Wrapper.prototype.GetTeamDrives = function (teamGroupId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -360,3 +360,3 @@ var items, error_6; | ||
_a.trys.push([0, 2, , 3]); | ||
return [4 /*yield*/, this.client.api("/sites/" + siteIdOrName + "/drives") | ||
return [4 /*yield*/, this.client.api("/groups/" + teamGroupId + "/drives") | ||
.get()]; | ||
@@ -374,3 +374,3 @@ case 1: | ||
}; | ||
M365Wrapper.prototype.GetDriveItems = function (driveId) { | ||
M365Wrapper.prototype.GetSiteDrives = function (siteIdOrName) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -382,3 +382,3 @@ var items, error_7; | ||
_a.trys.push([0, 2, , 3]); | ||
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/root/children") | ||
return [4 /*yield*/, this.client.api("/sites/" + siteIdOrName + "/drives") | ||
.get()]; | ||
@@ -396,3 +396,3 @@ case 1: | ||
}; | ||
M365Wrapper.prototype.GetDriveFolderItems = function (driveId, folderId) { | ||
M365Wrapper.prototype.GetSiteDriveItemsByQuery = function (siteIdOrName, queryText) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -404,3 +404,3 @@ var items, error_8; | ||
_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()]; | ||
@@ -418,3 +418,3 @@ case 1: | ||
}; | ||
M365Wrapper.prototype.GetTeamDefaultDriveItems = function (teamGroupId, relativePath) { | ||
M365Wrapper.prototype.GetDriveItems = function (driveId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -425,2 +425,62 @@ var items, error_9; | ||
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_9 = _a.sent(); | ||
throw error_9; | ||
case 3: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
M365Wrapper.prototype.GetDriveItemsByQuery = function (driveId, queryText) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var items, error_10; | ||
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_10 = _a.sent(); | ||
throw error_10; | ||
case 3: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
M365Wrapper.prototype.GetDriveFolderItems = function (driveId, folderId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var items, error_11; | ||
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_11 = _a.sent(); | ||
throw error_11; | ||
case 3: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
M365Wrapper.prototype.GetTeamDefaultDriveItems = function (teamGroupId, relativePath) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var items, error_12; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_a.trys.push([0, 5, , 6]); | ||
@@ -447,4 +507,4 @@ items = null; | ||
case 5: | ||
error_9 = _a.sent(); | ||
throw error_9; | ||
error_12 = _a.sent(); | ||
throw error_12; | ||
case 6: return [2 /*return*/]; | ||
@@ -455,5 +515,25 @@ } | ||
}; | ||
M365Wrapper.prototype.GetTeamDriveItemsByQuery = function (teamGroupId, 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("/groups/" + teamGroupId + "/drive/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.GetTeam = function (teamId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retTeam, error_10; | ||
var retTeam, error_14; | ||
return __generator(this, function (_a) { | ||
@@ -469,4 +549,4 @@ switch (_a.label) { | ||
case 2: | ||
error_10 = _a.sent(); | ||
throw error_10; | ||
error_14 = _a.sent(); | ||
throw error_14; | ||
case 3: return [2 /*return*/]; | ||
@@ -479,3 +559,3 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retChannels, error_11; | ||
var retChannels, error_15; | ||
return __generator(this, function (_a) { | ||
@@ -491,4 +571,4 @@ switch (_a.label) { | ||
case 2: | ||
error_11 = _a.sent(); | ||
throw error_11; | ||
error_15 = _a.sent(); | ||
throw error_15; | ||
case 3: return [2 /*return*/]; | ||
@@ -501,3 +581,3 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retChannel, error_12; | ||
var retChannel, error_16; | ||
return __generator(this, function (_a) { | ||
@@ -513,4 +593,4 @@ switch (_a.label) { | ||
case 2: | ||
error_12 = _a.sent(); | ||
throw error_12; | ||
error_16 = _a.sent(); | ||
throw error_16; | ||
case 3: return [2 /*return*/]; | ||
@@ -523,3 +603,3 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retMembers, error_13; | ||
var retMembers, error_17; | ||
return __generator(this, function (_a) { | ||
@@ -535,4 +615,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*/]; | ||
@@ -545,3 +625,3 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retEvents, error_14; | ||
var retEvents, error_18; | ||
return __generator(this, function (_a) { | ||
@@ -557,4 +637,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*/]; | ||
@@ -567,3 +647,3 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retUser, error_15; | ||
var retUser, error_19; | ||
return __generator(this, function (_a) { | ||
@@ -579,4 +659,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*/]; | ||
@@ -590,3 +670,3 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retReport, error_16; | ||
var retReport, error_20; | ||
return __generator(this, function (_a) { | ||
@@ -602,4 +682,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*/]; | ||
@@ -606,0 +686,0 @@ } |
@@ -31,7 +31,11 @@ import "isomorphic-fetch"; | ||
GetMyDrives(): Promise<[MicrosoftGraph.Drive]>; | ||
GetMyDriveItemsByQuery(queryText: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetTeamDrives(teamGroupId: string): Promise<[MicrosoftGraph.Drive]>; | ||
GetSiteDrives(siteIdOrName: string): Promise<[MicrosoftGraph.Drive]>; | ||
GetSiteDriveItemsByQuery(siteIdOrName: string, queryText: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetDriveItems(driveId: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetDriveItemsByQuery(driveId: string, queryText: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetDriveFolderItems(driveId: string, folderId: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetTeamDefaultDriveItems(teamGroupId: string, relativePath: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetTeamDriveItemsByQuery(teamGroupId: string, queryText: string): Promise<[MicrosoftGraph.DriveItem]>; | ||
GetTeam(teamId: string): Promise<MicrosoftGraph.Team>; | ||
@@ -38,0 +42,0 @@ GetTeamChannels(teamId: string): Promise<[MicrosoftGraph.Channel]>; |
144
lib/index.js
@@ -331,3 +331,3 @@ "use strict"; | ||
}; | ||
M365Wrapper.prototype.GetTeamDrives = function (teamGroupId) { | ||
M365Wrapper.prototype.GetMyDriveItemsByQuery = function (queryText) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -339,3 +339,3 @@ var items, error_5; | ||
_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()]; | ||
@@ -353,3 +353,3 @@ case 1: | ||
}; | ||
M365Wrapper.prototype.GetSiteDrives = function (siteIdOrName) { | ||
M365Wrapper.prototype.GetTeamDrives = function (teamGroupId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -361,3 +361,3 @@ var items, error_6; | ||
_a.trys.push([0, 2, , 3]); | ||
return [4 /*yield*/, this.client.api("/sites/" + siteIdOrName + "/drives") | ||
return [4 /*yield*/, this.client.api("/groups/" + teamGroupId + "/drives") | ||
.get()]; | ||
@@ -375,3 +375,3 @@ case 1: | ||
}; | ||
M365Wrapper.prototype.GetDriveItems = function (driveId) { | ||
M365Wrapper.prototype.GetSiteDrives = function (siteIdOrName) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -383,3 +383,3 @@ var items, error_7; | ||
_a.trys.push([0, 2, , 3]); | ||
return [4 /*yield*/, this.client.api("/drives/" + driveId + "/root/children") | ||
return [4 /*yield*/, this.client.api("/sites/" + siteIdOrName + "/drives") | ||
.get()]; | ||
@@ -397,3 +397,3 @@ case 1: | ||
}; | ||
M365Wrapper.prototype.GetDriveFolderItems = function (driveId, folderId) { | ||
M365Wrapper.prototype.GetSiteDriveItemsByQuery = function (siteIdOrName, queryText) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -405,3 +405,3 @@ var items, error_8; | ||
_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()]; | ||
@@ -419,3 +419,3 @@ case 1: | ||
}; | ||
M365Wrapper.prototype.GetTeamDefaultDriveItems = function (teamGroupId, relativePath) { | ||
M365Wrapper.prototype.GetDriveItems = function (driveId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -426,2 +426,62 @@ var items, error_9; | ||
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_9 = _a.sent(); | ||
throw error_9; | ||
case 3: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
M365Wrapper.prototype.GetDriveItemsByQuery = function (driveId, queryText) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var items, error_10; | ||
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_10 = _a.sent(); | ||
throw error_10; | ||
case 3: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
M365Wrapper.prototype.GetDriveFolderItems = function (driveId, folderId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var items, error_11; | ||
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_11 = _a.sent(); | ||
throw error_11; | ||
case 3: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
M365Wrapper.prototype.GetTeamDefaultDriveItems = function (teamGroupId, relativePath) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var items, error_12; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_a.trys.push([0, 5, , 6]); | ||
@@ -448,4 +508,4 @@ items = null; | ||
case 5: | ||
error_9 = _a.sent(); | ||
throw error_9; | ||
error_12 = _a.sent(); | ||
throw error_12; | ||
case 6: return [2 /*return*/]; | ||
@@ -456,5 +516,25 @@ } | ||
}; | ||
M365Wrapper.prototype.GetTeamDriveItemsByQuery = function (teamGroupId, 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("/groups/" + teamGroupId + "/drive/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.GetTeam = function (teamId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retTeam, error_10; | ||
var retTeam, error_14; | ||
return __generator(this, function (_a) { | ||
@@ -470,4 +550,4 @@ switch (_a.label) { | ||
case 2: | ||
error_10 = _a.sent(); | ||
throw error_10; | ||
error_14 = _a.sent(); | ||
throw error_14; | ||
case 3: return [2 /*return*/]; | ||
@@ -480,3 +560,3 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retChannels, error_11; | ||
var retChannels, error_15; | ||
return __generator(this, function (_a) { | ||
@@ -492,4 +572,4 @@ switch (_a.label) { | ||
case 2: | ||
error_11 = _a.sent(); | ||
throw error_11; | ||
error_15 = _a.sent(); | ||
throw error_15; | ||
case 3: return [2 /*return*/]; | ||
@@ -502,3 +582,3 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retChannel, error_12; | ||
var retChannel, error_16; | ||
return __generator(this, function (_a) { | ||
@@ -514,4 +594,4 @@ switch (_a.label) { | ||
case 2: | ||
error_12 = _a.sent(); | ||
throw error_12; | ||
error_16 = _a.sent(); | ||
throw error_16; | ||
case 3: return [2 /*return*/]; | ||
@@ -524,3 +604,3 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retMembers, error_13; | ||
var retMembers, error_17; | ||
return __generator(this, function (_a) { | ||
@@ -536,4 +616,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*/]; | ||
@@ -546,3 +626,3 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retEvents, error_14; | ||
var retEvents, error_18; | ||
return __generator(this, function (_a) { | ||
@@ -558,4 +638,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*/]; | ||
@@ -568,3 +648,3 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var retUser, error_15; | ||
var retUser, error_19; | ||
return __generator(this, function (_a) { | ||
@@ -580,4 +660,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 retReport, error_16; | ||
var retReport, 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*/]; | ||
@@ -607,0 +687,0 @@ } |
{ | ||
"name": "m365-wrapper", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Microsoft Graph API wrapper for Microsoft Office 365 functionality: support authentication, teams and much much more", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -45,3 +45,3 @@ | ||
``` | ||
await z.StatLoginPopupProcess(); | ||
await organizationsClient.StatLoginPopupProcess(); | ||
``` | ||
@@ -195,2 +195,9 @@ | ||
Search, within the drive of the logged user, the hierarchy of items for items matching a query (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.GetMyDriveItemsByQuery(searchText); | ||
``` | ||
Enumerate OneDrive resources available to the team group (output type: collection of MicrosoftGraph.Drive) | ||
@@ -208,2 +215,10 @@ ``` | ||
Search, within the drive of the given SharePoint site, the hierarchy of items for items matching a query (output type: collection of MicrosoftGraph.DriveItem) | ||
``` | ||
var siteIdOrName = "<siteIdOrName>"; // A valid sharepoint site name or id (required; site name example: contoso.sharepoint.com). | ||
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.GetSiteDriveItemsByQuery(siteIdOrName, searchText); | ||
``` | ||
Enumerate the DriveItem resources in the root of a specific OneDrive resource (output type: collection of MicrosoftGraph.DriveItem) | ||
@@ -215,2 +230,10 @@ ``` | ||
Search, within the given OneDrive resource, the hierarchy of items for items matching a query (output type: collection of MicrosoftGraph.DriveItem) | ||
``` | ||
var driveId = "<driveId>"; // A valid drive unique id (required). | ||
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.GetDriveItemsByQuery(driveId, searchText); | ||
``` | ||
Enumerate the DriveItems resources in the folder of a specific OneDrive resource (output type: collection of MicrosoftGraph.DriveItem) | ||
@@ -229,1 +252,9 @@ ``` | ||
``` | ||
Search, within the given Teams group, the hierarchy of items for items matching a query (output type: collection of MicrosoftGraph.DriveItem) | ||
``` | ||
var teamGroupId = "<xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx>"; // A valid Teams group unique id (required). | ||
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.GetTeamDriveItemsByQuery(teamGroupId, searchText); | ||
``` |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5192291
71595
256