microsoft-graph 3.0.1 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/operations/site/listSites.js +1 -1
- package/dist/cjs/operations/site/searchSites.d.ts +10 -2
- package/dist/cjs/operations/site/searchSites.d.ts.map +1 -1
- package/dist/cjs/operations/site/searchSites.js +14 -12
- package/dist/cjs/tasks/iterateDrives.d.ts.map +1 -1
- package/dist/cjs/tasks/iterateDrives.js +5 -2
- package/dist/cjs/tasks/iterateSiteSearch.d.ts +16 -0
- package/dist/cjs/tasks/iterateSiteSearch.d.ts.map +1 -0
- package/dist/cjs/tasks/iterateSiteSearch.js +41 -0
- package/dist/cjs/tasks/iterateSites.d.ts.map +1 -1
- package/dist/cjs/tasks/iterateSites.js +5 -2
- package/dist/esm/operations/site/listSites.js +1 -1
- package/dist/esm/operations/site/searchSites.d.ts +10 -2
- package/dist/esm/operations/site/searchSites.d.ts.map +1 -1
- package/dist/esm/operations/site/searchSites.js +14 -12
- package/dist/esm/tasks/iterateDrives.d.ts.map +1 -1
- package/dist/esm/tasks/iterateDrives.js +5 -2
- package/dist/esm/tasks/iterateSiteSearch.d.ts +16 -0
- package/dist/esm/tasks/iterateSiteSearch.d.ts.map +1 -0
- package/dist/esm/tasks/iterateSiteSearch.js +35 -0
- package/dist/esm/tasks/iterateSites.d.ts.map +1 -1
- package/dist/esm/tasks/iterateSites.js +5 -2
- package/docs/api/README.md +1 -0
- package/docs/api/getWorkbookRangeAlignment.md +1 -1
- package/docs/api/iterateDriveItems.md +1 -1
- package/docs/api/iterateDrives.md +1 -1
- package/docs/api/iterateSiteSearch.md +28 -0
- package/docs/api/iterateSites.md +1 -1
- package/docs/api/listDriveItems.md +7 -7
- package/docs/api/searchSites.md +34 -4
- package/package.json +11 -1
|
@@ -20,7 +20,7 @@ function listSites(contextRef, take = 1000) {
|
|
|
20
20
|
return (0, operationInvoker_ts_1.operation)({
|
|
21
21
|
context: contextRef.context,
|
|
22
22
|
method: "GET",
|
|
23
|
-
path: (0, templatedPaths_ts_1.generatePath)(`/sites
|
|
23
|
+
path: (0, templatedPaths_ts_1.generatePath)(`/sites?$top=${take}`, {}), // TODO: Implement search parameter properly. Without this not all are shown.
|
|
24
24
|
headers: {},
|
|
25
25
|
body: null,
|
|
26
26
|
responseTransform: (response) => {
|
|
@@ -7,12 +7,20 @@ import type { Site } from "@microsoft/microsoft-graph-types";
|
|
|
7
7
|
import type { ContextRef } from "../../models/Context.ts";
|
|
8
8
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
9
9
|
import type { SiteRef } from "../../models/Site.ts";
|
|
10
|
+
export type SearchSitesResponse = {
|
|
11
|
+
value: Site[];
|
|
12
|
+
"@odata.nextLink"?: string;
|
|
13
|
+
};
|
|
14
|
+
export type SiteList = {
|
|
15
|
+
sites: (Site & SiteRef)[];
|
|
16
|
+
nextLink: URL | null;
|
|
17
|
+
};
|
|
10
18
|
/**
|
|
11
19
|
* Find accessible sites that match the provided keywords.
|
|
12
20
|
* @param contextRef Reference to the context.
|
|
13
21
|
* @param search Search keywords to find matching sites.
|
|
14
|
-
* @returns
|
|
22
|
+
* @returns Object containing array of sites and nextLink, each including its metadata and reference information.
|
|
15
23
|
* @see https://learn.microsoft.com/en-us/graph/api/site-search
|
|
16
24
|
*/
|
|
17
|
-
export default function searchSites(contextRef: ContextRef, search: string): GraphOperation<
|
|
25
|
+
export default function searchSites(contextRef: ContextRef, search: string): GraphOperation<SiteList>;
|
|
18
26
|
//# sourceMappingURL=searchSites.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchSites.d.ts","sourceRoot":"","sources":["../../../../src/operations/site/searchSites.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK5D;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"searchSites.d.ts","sourceRoot":"","sources":["../../../../src/operations/site/searchSites.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK5D,MAAM,MAAM,mBAAmB,GAAG;IACjC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC;IAC1B,QAAQ,EAAE,GAAG,GAAG,IAAI,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,CAsBpG"}
|
|
@@ -13,27 +13,29 @@ const templatedPaths_ts_1 = require("../../services/templatedPaths.js");
|
|
|
13
13
|
* Find accessible sites that match the provided keywords.
|
|
14
14
|
* @param contextRef Reference to the context.
|
|
15
15
|
* @param search Search keywords to find matching sites.
|
|
16
|
-
* @returns
|
|
16
|
+
* @returns Object containing array of sites and nextLink, each including its metadata and reference information.
|
|
17
17
|
* @see https://learn.microsoft.com/en-us/graph/api/site-search
|
|
18
18
|
*/
|
|
19
19
|
function searchSites(contextRef, search) {
|
|
20
20
|
return (0, operationInvoker_ts_1.operation)({
|
|
21
21
|
context: contextRef.context,
|
|
22
22
|
method: "GET",
|
|
23
|
-
path: (0, templatedPaths_ts_1.generatePath)("/sites?search={search}", { search }),
|
|
23
|
+
path: (0, templatedPaths_ts_1.generatePath)("/sites?search={search}&$top=1000", { search }),
|
|
24
24
|
headers: {},
|
|
25
25
|
body: null,
|
|
26
26
|
responseTransform: (response) => {
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
const result = response;
|
|
28
|
+
return {
|
|
29
|
+
sites: result.value.map((site) => {
|
|
30
|
+
const siteId = site.id;
|
|
31
|
+
const siteRef = (0, site_ts_1.createSiteRef)(contextRef, siteId);
|
|
32
|
+
return {
|
|
33
|
+
...site,
|
|
34
|
+
...siteRef,
|
|
35
|
+
};
|
|
36
|
+
}),
|
|
37
|
+
nextLink: result["@odata.nextLink"] ? new URL(result["@odata.nextLink"]) : null,
|
|
38
|
+
};
|
|
37
39
|
},
|
|
38
40
|
});
|
|
39
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iterateDrives.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateDrives.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"iterateDrives.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateDrives.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIjD;;;;;;GAMG;AACH,wBAA+B,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,SAAO,GAAG,cAAc,CAAC,SAAS,GAAG,QAAQ,CAAC,CAyBvH"}
|
|
@@ -10,6 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.default = iterateDrives;
|
|
12
12
|
const listDrives_ts_1 = __importDefault(require("../operations/drive/listDrives.js"));
|
|
13
|
+
const http_ts_1 = require("../services/http.js");
|
|
13
14
|
/**
|
|
14
15
|
* List drives in a site as an async iterable.
|
|
15
16
|
* @param siteRef Reference to the site.
|
|
@@ -24,12 +25,14 @@ async function* iterateDrives(siteRef, maxPerChunk = 1000) {
|
|
|
24
25
|
}
|
|
25
26
|
while (nextLink) {
|
|
26
27
|
const accessToken = await siteRef.context.generateAccessToken();
|
|
27
|
-
const response = await
|
|
28
|
+
const response = await (0, http_ts_1.executeHttpRequest)({
|
|
29
|
+
url: nextLink.toString(),
|
|
30
|
+
method: "GET",
|
|
28
31
|
headers: {
|
|
29
32
|
authorization: `Bearer ${accessToken}`,
|
|
30
33
|
},
|
|
31
34
|
});
|
|
32
|
-
const result =
|
|
35
|
+
const result = response.data;
|
|
33
36
|
drives = result.value;
|
|
34
37
|
nextLink = result["@odata.nextLink"] ? new URL(result["@odata.nextLink"]) : null;
|
|
35
38
|
for (const drive of drives) {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
3
|
+
* @module iterateSiteSearch
|
|
4
|
+
* @category Tasks
|
|
5
|
+
*/
|
|
6
|
+
import type { Site } from "@microsoft/microsoft-graph-types";
|
|
7
|
+
import type { ContextRef } from "../models/Context.ts";
|
|
8
|
+
import type { SiteRef } from "../models/Site.ts";
|
|
9
|
+
/**
|
|
10
|
+
* Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
11
|
+
* @param contextRef Reference to the context.
|
|
12
|
+
* @param search Search keywords to find matching sites.
|
|
13
|
+
* @returns Async iterable of sites.
|
|
14
|
+
*/
|
|
15
|
+
export default function iterateSiteSearch(contextRef: ContextRef, search: string): AsyncGenerator<Site & SiteRef>;
|
|
16
|
+
//# sourceMappingURL=iterateSiteSearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iterateSiteSearch.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateSiteSearch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIjD;;;;;GAKG;AACH,wBAA+B,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,IAAI,GAAG,OAAO,CAAC,CAyBvH"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
4
|
+
* @module iterateSiteSearch
|
|
5
|
+
* @category Tasks
|
|
6
|
+
*/
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.default = iterateSiteSearch;
|
|
12
|
+
const searchSites_ts_1 = __importDefault(require("../operations/site/searchSites.js"));
|
|
13
|
+
const http_ts_1 = require("../services/http.js");
|
|
14
|
+
/**
|
|
15
|
+
* Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
16
|
+
* @param contextRef Reference to the context.
|
|
17
|
+
* @param search Search keywords to find matching sites.
|
|
18
|
+
* @returns Async iterable of sites.
|
|
19
|
+
*/
|
|
20
|
+
async function* iterateSiteSearch(contextRef, search) {
|
|
21
|
+
let { sites, nextLink } = await (0, searchSites_ts_1.default)(contextRef, search);
|
|
22
|
+
for (const site of sites) {
|
|
23
|
+
yield site;
|
|
24
|
+
}
|
|
25
|
+
while (nextLink) {
|
|
26
|
+
const accessToken = await contextRef.context.generateAccessToken();
|
|
27
|
+
const response = await (0, http_ts_1.executeHttpRequest)({
|
|
28
|
+
url: nextLink.toString(),
|
|
29
|
+
method: "GET",
|
|
30
|
+
headers: {
|
|
31
|
+
authorization: `Bearer ${accessToken}`,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
const result = response.data;
|
|
35
|
+
sites = result.value;
|
|
36
|
+
nextLink = result["@odata.nextLink"] ? new URL(result["@odata.nextLink"]) : null;
|
|
37
|
+
for (const site of sites) {
|
|
38
|
+
yield site;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iterateSites.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateSites.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"iterateSites.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateSites.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIjD;;;;;;GAMG;AACH,wBAA+B,YAAY,CAAC,UAAU,EAAE,UAAU,EAAE,WAAW,SAAO,GAAG,cAAc,CAAC,IAAI,GAAG,OAAO,CAAC,CAyBtH"}
|
|
@@ -10,6 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.default = iterateSites;
|
|
12
12
|
const listSites_ts_1 = __importDefault(require("../operations/site/listSites.js"));
|
|
13
|
+
const http_ts_1 = require("../services/http.js");
|
|
13
14
|
/**
|
|
14
15
|
* List sites in your company geography as an async iterable.
|
|
15
16
|
* @param contextRef Reference to the context.
|
|
@@ -24,12 +25,14 @@ async function* iterateSites(contextRef, maxPerChunk = 1000) {
|
|
|
24
25
|
}
|
|
25
26
|
while (nextLink) {
|
|
26
27
|
const accessToken = await contextRef.context.generateAccessToken();
|
|
27
|
-
const response = await
|
|
28
|
+
const response = await (0, http_ts_1.executeHttpRequest)({
|
|
29
|
+
url: nextLink.toString(),
|
|
30
|
+
method: "GET",
|
|
28
31
|
headers: {
|
|
29
32
|
authorization: `Bearer ${accessToken}`,
|
|
30
33
|
},
|
|
31
34
|
});
|
|
32
|
-
const result =
|
|
35
|
+
const result = response.data;
|
|
33
36
|
sites = result.value;
|
|
34
37
|
nextLink = result["@odata.nextLink"] ? new URL(result["@odata.nextLink"]) : null;
|
|
35
38
|
for (const site of sites) {
|
|
@@ -17,7 +17,7 @@ export default function listSites(contextRef, take = 1000) {
|
|
|
17
17
|
return operation({
|
|
18
18
|
context: contextRef.context,
|
|
19
19
|
method: "GET",
|
|
20
|
-
path: generatePath(`/sites
|
|
20
|
+
path: generatePath(`/sites?$top=${take}`, {}), // TODO: Implement search parameter properly. Without this not all are shown.
|
|
21
21
|
headers: {},
|
|
22
22
|
body: null,
|
|
23
23
|
responseTransform: (response) => {
|
|
@@ -7,12 +7,20 @@ import type { Site } from "@microsoft/microsoft-graph-types";
|
|
|
7
7
|
import type { ContextRef } from "../../models/Context.ts";
|
|
8
8
|
import type { GraphOperation } from "../../models/GraphOperation.ts";
|
|
9
9
|
import type { SiteRef } from "../../models/Site.ts";
|
|
10
|
+
export type SearchSitesResponse = {
|
|
11
|
+
value: Site[];
|
|
12
|
+
"@odata.nextLink"?: string;
|
|
13
|
+
};
|
|
14
|
+
export type SiteList = {
|
|
15
|
+
sites: (Site & SiteRef)[];
|
|
16
|
+
nextLink: URL | null;
|
|
17
|
+
};
|
|
10
18
|
/**
|
|
11
19
|
* Find accessible sites that match the provided keywords.
|
|
12
20
|
* @param contextRef Reference to the context.
|
|
13
21
|
* @param search Search keywords to find matching sites.
|
|
14
|
-
* @returns
|
|
22
|
+
* @returns Object containing array of sites and nextLink, each including its metadata and reference information.
|
|
15
23
|
* @see https://learn.microsoft.com/en-us/graph/api/site-search
|
|
16
24
|
*/
|
|
17
|
-
export default function searchSites(contextRef: ContextRef, search: string): GraphOperation<
|
|
25
|
+
export default function searchSites(contextRef: ContextRef, search: string): GraphOperation<SiteList>;
|
|
18
26
|
//# sourceMappingURL=searchSites.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchSites.d.ts","sourceRoot":"","sources":["../../../../src/operations/site/searchSites.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK5D;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"searchSites.d.ts","sourceRoot":"","sources":["../../../../src/operations/site/searchSites.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAK5D,MAAM,MAAM,mBAAmB,GAAG;IACjC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC;IAC1B,QAAQ,EAAE,GAAG,GAAG,IAAI,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,CAsBpG"}
|
|
@@ -10,27 +10,29 @@ import { generatePath } from "../../services/templatedPaths.js";
|
|
|
10
10
|
* Find accessible sites that match the provided keywords.
|
|
11
11
|
* @param contextRef Reference to the context.
|
|
12
12
|
* @param search Search keywords to find matching sites.
|
|
13
|
-
* @returns
|
|
13
|
+
* @returns Object containing array of sites and nextLink, each including its metadata and reference information.
|
|
14
14
|
* @see https://learn.microsoft.com/en-us/graph/api/site-search
|
|
15
15
|
*/
|
|
16
16
|
export default function searchSites(contextRef, search) {
|
|
17
17
|
return operation({
|
|
18
18
|
context: contextRef.context,
|
|
19
19
|
method: "GET",
|
|
20
|
-
path: generatePath("/sites?search={search}", { search }),
|
|
20
|
+
path: generatePath("/sites?search={search}&$top=1000", { search }),
|
|
21
21
|
headers: {},
|
|
22
22
|
body: null,
|
|
23
23
|
responseTransform: (response) => {
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
const result = response;
|
|
25
|
+
return {
|
|
26
|
+
sites: result.value.map((site) => {
|
|
27
|
+
const siteId = site.id;
|
|
28
|
+
const siteRef = createSiteRef(contextRef, siteId);
|
|
29
|
+
return {
|
|
30
|
+
...site,
|
|
31
|
+
...siteRef,
|
|
32
|
+
};
|
|
33
|
+
}),
|
|
34
|
+
nextLink: result["@odata.nextLink"] ? new URL(result["@odata.nextLink"]) : null,
|
|
35
|
+
};
|
|
34
36
|
},
|
|
35
37
|
});
|
|
36
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iterateDrives.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateDrives.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"iterateDrives.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateDrives.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIjD;;;;;;GAMG;AACH,wBAA+B,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,SAAO,GAAG,cAAc,CAAC,SAAS,GAAG,QAAQ,CAAC,CAyBvH"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @category Tasks
|
|
5
5
|
*/
|
|
6
6
|
import listDrives from "../operations/drive/listDrives.js";
|
|
7
|
+
import { executeHttpRequest } from "../services/http.js";
|
|
7
8
|
/**
|
|
8
9
|
* List drives in a site as an async iterable.
|
|
9
10
|
* @param siteRef Reference to the site.
|
|
@@ -18,12 +19,14 @@ export default async function* iterateDrives(siteRef, maxPerChunk = 1000) {
|
|
|
18
19
|
}
|
|
19
20
|
while (nextLink) {
|
|
20
21
|
const accessToken = await siteRef.context.generateAccessToken();
|
|
21
|
-
const response = await
|
|
22
|
+
const response = await executeHttpRequest({
|
|
23
|
+
url: nextLink.toString(),
|
|
24
|
+
method: "GET",
|
|
22
25
|
headers: {
|
|
23
26
|
authorization: `Bearer ${accessToken}`,
|
|
24
27
|
},
|
|
25
28
|
});
|
|
26
|
-
const result =
|
|
29
|
+
const result = response.data;
|
|
27
30
|
drives = result.value;
|
|
28
31
|
nextLink = result["@odata.nextLink"] ? new URL(result["@odata.nextLink"]) : null;
|
|
29
32
|
for (const drive of drives) {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
3
|
+
* @module iterateSiteSearch
|
|
4
|
+
* @category Tasks
|
|
5
|
+
*/
|
|
6
|
+
import type { Site } from "@microsoft/microsoft-graph-types";
|
|
7
|
+
import type { ContextRef } from "../models/Context.ts";
|
|
8
|
+
import type { SiteRef } from "../models/Site.ts";
|
|
9
|
+
/**
|
|
10
|
+
* Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
11
|
+
* @param contextRef Reference to the context.
|
|
12
|
+
* @param search Search keywords to find matching sites.
|
|
13
|
+
* @returns Async iterable of sites.
|
|
14
|
+
*/
|
|
15
|
+
export default function iterateSiteSearch(contextRef: ContextRef, search: string): AsyncGenerator<Site & SiteRef>;
|
|
16
|
+
//# sourceMappingURL=iterateSiteSearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iterateSiteSearch.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateSiteSearch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIjD;;;;;GAKG;AACH,wBAA+B,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,IAAI,GAAG,OAAO,CAAC,CAyBvH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
3
|
+
* @module iterateSiteSearch
|
|
4
|
+
* @category Tasks
|
|
5
|
+
*/
|
|
6
|
+
import searchSites from "../operations/site/searchSites.js";
|
|
7
|
+
import { executeHttpRequest } from "../services/http.js";
|
|
8
|
+
/**
|
|
9
|
+
* Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
10
|
+
* @param contextRef Reference to the context.
|
|
11
|
+
* @param search Search keywords to find matching sites.
|
|
12
|
+
* @returns Async iterable of sites.
|
|
13
|
+
*/
|
|
14
|
+
export default async function* iterateSiteSearch(contextRef, search) {
|
|
15
|
+
let { sites, nextLink } = await searchSites(contextRef, search);
|
|
16
|
+
for (const site of sites) {
|
|
17
|
+
yield site;
|
|
18
|
+
}
|
|
19
|
+
while (nextLink) {
|
|
20
|
+
const accessToken = await contextRef.context.generateAccessToken();
|
|
21
|
+
const response = await executeHttpRequest({
|
|
22
|
+
url: nextLink.toString(),
|
|
23
|
+
method: "GET",
|
|
24
|
+
headers: {
|
|
25
|
+
authorization: `Bearer ${accessToken}`,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
const result = response.data;
|
|
29
|
+
sites = result.value;
|
|
30
|
+
nextLink = result["@odata.nextLink"] ? new URL(result["@odata.nextLink"]) : null;
|
|
31
|
+
for (const site of sites) {
|
|
32
|
+
yield site;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iterateSites.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateSites.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"iterateSites.d.ts","sourceRoot":"","sources":["../../../src/tasks/iterateSites.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIjD;;;;;;GAMG;AACH,wBAA+B,YAAY,CAAC,UAAU,EAAE,UAAU,EAAE,WAAW,SAAO,GAAG,cAAc,CAAC,IAAI,GAAG,OAAO,CAAC,CAyBtH"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @category Tasks
|
|
5
5
|
*/
|
|
6
6
|
import listSites from "../operations/site/listSites.js";
|
|
7
|
+
import { executeHttpRequest } from "../services/http.js";
|
|
7
8
|
/**
|
|
8
9
|
* List sites in your company geography as an async iterable.
|
|
9
10
|
* @param contextRef Reference to the context.
|
|
@@ -18,12 +19,14 @@ export default async function* iterateSites(contextRef, maxPerChunk = 1000) {
|
|
|
18
19
|
}
|
|
19
20
|
while (nextLink) {
|
|
20
21
|
const accessToken = await contextRef.context.generateAccessToken();
|
|
21
|
-
const response = await
|
|
22
|
+
const response = await executeHttpRequest({
|
|
23
|
+
url: nextLink.toString(),
|
|
24
|
+
method: "GET",
|
|
22
25
|
headers: {
|
|
23
26
|
authorization: `Bearer ${accessToken}`,
|
|
24
27
|
},
|
|
25
28
|
});
|
|
26
|
-
const result =
|
|
29
|
+
const result = response.data;
|
|
27
30
|
sites = result.value;
|
|
28
31
|
nextLink = result["@odata.nextLink"] ? new URL(result["@odata.nextLink"]) : null;
|
|
29
32
|
for (const site of sites) {
|
package/docs/api/README.md
CHANGED
|
@@ -185,6 +185,7 @@
|
|
|
185
185
|
| [iterateDriveItems](iterateDriveItems.md) | List drive items in a drive or a drive item. |
|
|
186
186
|
| [iterateDrives](iterateDrives.md) | List drives in a site as an async iterable. |
|
|
187
187
|
| [iterateSites](iterateSites.md) | List sites in your company geography as an async iterable. |
|
|
188
|
+
| [iterateSiteSearch](iterateSiteSearch.md) | Iterate accessible sites matching the provided search keywords as an async iterable. |
|
|
188
189
|
| [iterateWorkbookRangeRows](iterateWorkbookRangeRows.md) | Iterate over the rows in a given worksheet range. |
|
|
189
190
|
| [readWorkbookRangeFirstRow](readWorkbookRangeFirstRow.md) | Read the first row from a given workbook range. |
|
|
190
191
|
| [readWorkbookRangeRows](readWorkbookRangeRows.md) | Read all rows from a given workbook range. |
|
|
@@ -10,7 +10,7 @@ Retrieve the format of a workbook range.
|
|
|
10
10
|
|
|
11
11
|
> **getWorkbookRangeAlignment**(`rangeRef`): [`GraphOperation`](GraphOperation.md#graphoperation)\<`WorkbookRangeFormat` & [`SiteRef`](Site-1.md#siteref) & `object` & `object` & `object` & `object` & `object`\>
|
|
12
12
|
|
|
13
|
-
Defined in: src/operations/workbookRange/getWorkbookRangeAlignment.ts:20
|
|
13
|
+
Defined in: [src/operations/workbookRange/getWorkbookRangeAlignment.ts:20](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/workbookRange/getWorkbookRangeAlignment.ts#L20)
|
|
14
14
|
|
|
15
15
|
Retrieve the format of a workbook range.
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@ List drive items in a drive or a drive item.
|
|
|
10
10
|
|
|
11
11
|
> **iterateDriveItems**(`parentRef`, `maxPerChunk`): [`AsyncGenerator`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/AsyncGenerator)\<`DriveItem` & [`SiteRef`](Site-1.md#siteref) & `object` & `object`\>
|
|
12
12
|
|
|
13
|
-
Defined in: src/tasks/iterateDriveItems.ts:21
|
|
13
|
+
Defined in: [src/tasks/iterateDriveItems.ts:21](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/iterateDriveItems.ts#L21)
|
|
14
14
|
|
|
15
15
|
List drive items in a drive or a drive item as an async iterable.
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@ List drives in a site as an async iterable.
|
|
|
10
10
|
|
|
11
11
|
> **iterateDrives**(`siteRef`, `maxPerChunk`): [`AsyncGenerator`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/AsyncGenerator)\<`DriveItem` & [`SiteRef`](Site-1.md#siteref) & `object`\>
|
|
12
12
|
|
|
13
|
-
Defined in: src/tasks/iterateDrives.ts:
|
|
13
|
+
Defined in: [src/tasks/iterateDrives.ts:20](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/iterateDrives.ts#L20)
|
|
14
14
|
|
|
15
15
|
List drives in a site as an async iterable.
|
|
16
16
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[Microsoft Graph SDK](README.md) / iterateSiteSearch
|
|
2
|
+
|
|
3
|
+
# iterateSiteSearch
|
|
4
|
+
|
|
5
|
+
Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
6
|
+
|
|
7
|
+
## Functions
|
|
8
|
+
|
|
9
|
+
### iterateSiteSearch()
|
|
10
|
+
|
|
11
|
+
> **iterateSiteSearch**(`contextRef`, `search`): [`AsyncGenerator`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/AsyncGenerator)\<`Site` & [`SiteRef`](Site-1.md#siteref)\>
|
|
12
|
+
|
|
13
|
+
Defined in: [src/tasks/iterateSiteSearch.ts:19](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/iterateSiteSearch.ts#L19)
|
|
14
|
+
|
|
15
|
+
Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
16
|
+
|
|
17
|
+
#### Parameters
|
|
18
|
+
|
|
19
|
+
| Parameter | Type | Description |
|
|
20
|
+
| ------ | ------ | ------ |
|
|
21
|
+
| `contextRef` | [`ContextRef`](Context-1.md#contextref) | Reference to the context. |
|
|
22
|
+
| `search` | `string` | Search keywords to find matching sites. |
|
|
23
|
+
|
|
24
|
+
#### Returns
|
|
25
|
+
|
|
26
|
+
[`AsyncGenerator`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/AsyncGenerator)\<`Site` & [`SiteRef`](Site-1.md#siteref)\>
|
|
27
|
+
|
|
28
|
+
Async iterable of sites.
|
package/docs/api/iterateSites.md
CHANGED
|
@@ -10,7 +10,7 @@ List sites in your company geography as an async iterable.
|
|
|
10
10
|
|
|
11
11
|
> **iterateSites**(`contextRef`, `maxPerChunk`): [`AsyncGenerator`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/AsyncGenerator)\<`Site` & [`SiteRef`](Site-1.md#siteref)\>
|
|
12
12
|
|
|
13
|
-
Defined in: src/tasks/iterateSites.ts:
|
|
13
|
+
Defined in: [src/tasks/iterateSites.ts:20](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/iterateSites.ts#L20)
|
|
14
14
|
|
|
15
15
|
List sites in your company geography as an async iterable.
|
|
16
16
|
|
|
@@ -10,14 +10,14 @@ Retrieve the metadata for items in a drive or folder.
|
|
|
10
10
|
|
|
11
11
|
> **DriveItemList** = `object`
|
|
12
12
|
|
|
13
|
-
Defined in: src/operations/driveItem/listDriveItems.ts:20
|
|
13
|
+
Defined in: [src/operations/driveItem/listDriveItems.ts:20](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/listDriveItems.ts#L20)
|
|
14
14
|
|
|
15
15
|
#### Properties
|
|
16
16
|
|
|
17
17
|
| Property | Type | Defined in |
|
|
18
18
|
| ------ | ------ | ------ |
|
|
19
|
-
| <a id="items"></a> `items` | `DriveItem` & [`DriveItemRef`](DriveItem-1.md#driveitemref)[] | src/operations/driveItem/listDriveItems.ts:21 |
|
|
20
|
-
| <a id="nextlink"></a> `nextLink` | [`URL`](https://developer.mozilla.org/docs/Web/API/URL) \| `null` | src/operations/driveItem/listDriveItems.ts:22 |
|
|
19
|
+
| <a id="items"></a> `items` | `DriveItem` & [`DriveItemRef`](DriveItem-1.md#driveitemref)[] | [src/operations/driveItem/listDriveItems.ts:21](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/listDriveItems.ts#L21) |
|
|
20
|
+
| <a id="nextlink"></a> `nextLink` | [`URL`](https://developer.mozilla.org/docs/Web/API/URL) \| `null` | [src/operations/driveItem/listDriveItems.ts:22](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/listDriveItems.ts#L22) |
|
|
21
21
|
|
|
22
22
|
***
|
|
23
23
|
|
|
@@ -25,14 +25,14 @@ Defined in: src/operations/driveItem/listDriveItems.ts:20
|
|
|
25
25
|
|
|
26
26
|
> **ListDriveItemResponse** = `object`
|
|
27
27
|
|
|
28
|
-
Defined in: src/operations/driveItem/listDriveItems.ts:15
|
|
28
|
+
Defined in: [src/operations/driveItem/listDriveItems.ts:15](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/listDriveItems.ts#L15)
|
|
29
29
|
|
|
30
30
|
#### Properties
|
|
31
31
|
|
|
32
32
|
| Property | Type | Defined in |
|
|
33
33
|
| ------ | ------ | ------ |
|
|
34
|
-
| <a id="odatanextlink"></a> `@odata.nextLink` | `string` \| `null` | src/operations/driveItem/listDriveItems.ts:17 |
|
|
35
|
-
| <a id="value"></a> `value` | `DriveItem` & [`DriveItemRef`](DriveItem-1.md#driveitemref)[] | src/operations/driveItem/listDriveItems.ts:16 |
|
|
34
|
+
| <a id="odatanextlink"></a> `@odata.nextLink` | `string` \| `null` | [src/operations/driveItem/listDriveItems.ts:17](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/listDriveItems.ts#L17) |
|
|
35
|
+
| <a id="value"></a> `value` | `DriveItem` & [`DriveItemRef`](DriveItem-1.md#driveitemref)[] | [src/operations/driveItem/listDriveItems.ts:16](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/listDriveItems.ts#L16) |
|
|
36
36
|
|
|
37
37
|
## Functions
|
|
38
38
|
|
|
@@ -40,7 +40,7 @@ Defined in: src/operations/driveItem/listDriveItems.ts:15
|
|
|
40
40
|
|
|
41
41
|
> **listDriveItems**(`parentRef`, `take`): [`GraphOperation`](GraphOperation.md#graphoperation)\<[`DriveItemList`](#driveitemlist)\>
|
|
42
42
|
|
|
43
|
-
Defined in: src/operations/driveItem/listDriveItems.ts:32
|
|
43
|
+
Defined in: [src/operations/driveItem/listDriveItems.ts:32](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/driveItem/listDriveItems.ts#L32)
|
|
44
44
|
|
|
45
45
|
Retrieve the metadata for items in a drive or folder.
|
|
46
46
|
|
package/docs/api/searchSites.md
CHANGED
|
@@ -4,13 +4,43 @@
|
|
|
4
4
|
|
|
5
5
|
Find accessible sites that match the provided keywords.
|
|
6
6
|
|
|
7
|
+
## Type Aliases
|
|
8
|
+
|
|
9
|
+
### SearchSitesResponse
|
|
10
|
+
|
|
11
|
+
> **SearchSitesResponse** = `object`
|
|
12
|
+
|
|
13
|
+
Defined in: [src/operations/site/searchSites.ts:15](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/site/searchSites.ts#L15)
|
|
14
|
+
|
|
15
|
+
#### Properties
|
|
16
|
+
|
|
17
|
+
| Property | Type | Defined in |
|
|
18
|
+
| ------ | ------ | ------ |
|
|
19
|
+
| <a id="odatanextlink"></a> `@odata.nextLink?` | `string` | [src/operations/site/searchSites.ts:17](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/site/searchSites.ts#L17) |
|
|
20
|
+
| <a id="value"></a> `value` | `Site`[] | [src/operations/site/searchSites.ts:16](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/site/searchSites.ts#L16) |
|
|
21
|
+
|
|
22
|
+
***
|
|
23
|
+
|
|
24
|
+
### SiteList
|
|
25
|
+
|
|
26
|
+
> **SiteList** = `object`
|
|
27
|
+
|
|
28
|
+
Defined in: [src/operations/site/searchSites.ts:20](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/site/searchSites.ts#L20)
|
|
29
|
+
|
|
30
|
+
#### Properties
|
|
31
|
+
|
|
32
|
+
| Property | Type | Defined in |
|
|
33
|
+
| ------ | ------ | ------ |
|
|
34
|
+
| <a id="nextlink"></a> `nextLink` | [`URL`](https://developer.mozilla.org/docs/Web/API/URL) \| `null` | [src/operations/site/searchSites.ts:22](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/site/searchSites.ts#L22) |
|
|
35
|
+
| <a id="sites"></a> `sites` | `Site` & [`SiteRef`](Site-1.md#siteref)[] | [src/operations/site/searchSites.ts:21](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/site/searchSites.ts#L21) |
|
|
36
|
+
|
|
7
37
|
## Functions
|
|
8
38
|
|
|
9
39
|
### searchSites()
|
|
10
40
|
|
|
11
|
-
> **searchSites**(`contextRef`, `search`): [`GraphOperation`](GraphOperation.md#graphoperation)
|
|
41
|
+
> **searchSites**(`contextRef`, `search`): [`GraphOperation`](GraphOperation.md#graphoperation)\<[`SiteList`](#sitelist)\>
|
|
12
42
|
|
|
13
|
-
Defined in: [src/operations/site/searchSites.ts:
|
|
43
|
+
Defined in: [src/operations/site/searchSites.ts:32](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/site/searchSites.ts#L32)
|
|
14
44
|
|
|
15
45
|
Find accessible sites that match the provided keywords.
|
|
16
46
|
|
|
@@ -23,9 +53,9 @@ Find accessible sites that match the provided keywords.
|
|
|
23
53
|
|
|
24
54
|
#### Returns
|
|
25
55
|
|
|
26
|
-
[`GraphOperation`](GraphOperation.md#graphoperation)
|
|
56
|
+
[`GraphOperation`](GraphOperation.md#graphoperation)\<[`SiteList`](#sitelist)\>
|
|
27
57
|
|
|
28
|
-
|
|
58
|
+
Object containing array of sites and nextLink, each including its metadata and reference information.
|
|
29
59
|
|
|
30
60
|
#### See
|
|
31
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microsoft-graph",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Microsoft GraphAPI SDK for NodeJS",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -1714,6 +1714,16 @@
|
|
|
1714
1714
|
"require": "./dist/cjs/tasks/iterateDrives.js",
|
|
1715
1715
|
"types": "./dist/esm/tasks/iterateDrives.d.ts"
|
|
1716
1716
|
},
|
|
1717
|
+
"./iterateSiteSearch": {
|
|
1718
|
+
"import": "./dist/esm/tasks/iterateSiteSearch.js",
|
|
1719
|
+
"require": "./dist/cjs/tasks/iterateSiteSearch.js",
|
|
1720
|
+
"types": "./dist/esm/tasks/iterateSiteSearch.d.ts"
|
|
1721
|
+
},
|
|
1722
|
+
"./dist/cjs/tasks/iterateSiteSearch": {
|
|
1723
|
+
"import": "./dist/esm/tasks/iterateSiteSearch.js",
|
|
1724
|
+
"require": "./dist/cjs/tasks/iterateSiteSearch.js",
|
|
1725
|
+
"types": "./dist/esm/tasks/iterateSiteSearch.d.ts"
|
|
1726
|
+
},
|
|
1717
1727
|
"./iterateSites": {
|
|
1718
1728
|
"import": "./dist/esm/tasks/iterateSites.js",
|
|
1719
1729
|
"require": "./dist/cjs/tasks/iterateSites.js",
|