microsoft-graph 3.1.0 → 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/tasks/iterateDrives.d.ts.map +1 -1
- package/dist/cjs/tasks/iterateDrives.js +5 -2
- package/dist/cjs/tasks/iterateSiteSearch.d.ts.map +1 -1
- package/dist/cjs/tasks/iterateSiteSearch.js +5 -2
- package/dist/cjs/tasks/iterateSites.d.ts.map +1 -1
- package/dist/cjs/tasks/iterateSites.js +5 -2
- 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.map +1 -1
- package/dist/esm/tasks/iterateSiteSearch.js +5 -2
- package/dist/esm/tasks/iterateSites.d.ts.map +1 -1
- package/dist/esm/tasks/iterateSites.js +5 -2
- package/docs/api/iterateDrives.md +1 -1
- package/docs/api/iterateSiteSearch.md +1 -1
- package/docs/api/iterateSites.md +1 -1
- package/package.json +1 -1
|
@@ -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) {
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -10,6 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.default = iterateSiteSearch;
|
|
12
12
|
const searchSites_ts_1 = __importDefault(require("../operations/site/searchSites.js"));
|
|
13
|
+
const http_ts_1 = require("../services/http.js");
|
|
13
14
|
/**
|
|
14
15
|
* Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
15
16
|
* @param contextRef Reference to the context.
|
|
@@ -23,12 +24,14 @@ async function* iterateSiteSearch(contextRef, search) {
|
|
|
23
24
|
}
|
|
24
25
|
while (nextLink) {
|
|
25
26
|
const accessToken = await contextRef.context.generateAccessToken();
|
|
26
|
-
const response = await
|
|
27
|
+
const response = await (0, http_ts_1.executeHttpRequest)({
|
|
28
|
+
url: nextLink.toString(),
|
|
29
|
+
method: "GET",
|
|
27
30
|
headers: {
|
|
28
31
|
authorization: `Bearer ${accessToken}`,
|
|
29
32
|
},
|
|
30
33
|
});
|
|
31
|
-
const result =
|
|
34
|
+
const result = response.data;
|
|
32
35
|
sites = result.value;
|
|
33
36
|
nextLink = result["@odata.nextLink"] ? new URL(result["@odata.nextLink"]) : null;
|
|
34
37
|
for (const site of sites) {
|
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @category Tasks
|
|
5
5
|
*/
|
|
6
6
|
import searchSites from "../operations/site/searchSites.js";
|
|
7
|
+
import { executeHttpRequest } from "../services/http.js";
|
|
7
8
|
/**
|
|
8
9
|
* Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
9
10
|
* @param contextRef Reference to the context.
|
|
@@ -17,12 +18,14 @@ export default async function* iterateSiteSearch(contextRef, search) {
|
|
|
17
18
|
}
|
|
18
19
|
while (nextLink) {
|
|
19
20
|
const accessToken = await contextRef.context.generateAccessToken();
|
|
20
|
-
const response = await
|
|
21
|
+
const response = await executeHttpRequest({
|
|
22
|
+
url: nextLink.toString(),
|
|
23
|
+
method: "GET",
|
|
21
24
|
headers: {
|
|
22
25
|
authorization: `Bearer ${accessToken}`,
|
|
23
26
|
},
|
|
24
27
|
});
|
|
25
|
-
const result =
|
|
28
|
+
const result = response.data;
|
|
26
29
|
sites = result.value;
|
|
27
30
|
nextLink = result["@odata.nextLink"] ? new URL(result["@odata.nextLink"]) : null;
|
|
28
31
|
for (const site of sites) {
|
|
@@ -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) {
|
|
@@ -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
|
|
|
@@ -10,7 +10,7 @@ Iterate accessible sites matching the provided search keywords as an async itera
|
|
|
10
10
|
|
|
11
11
|
> **iterateSiteSearch**(`contextRef`, `search`): [`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/iterateSiteSearch.ts:
|
|
13
|
+
Defined in: [src/tasks/iterateSiteSearch.ts:19](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/tasks/iterateSiteSearch.ts#L19)
|
|
14
14
|
|
|
15
15
|
Iterate accessible sites matching the provided search keywords as an async iterable.
|
|
16
16
|
|
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
|
|