microsoft-graph 3.13.33 → 3.13.35
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/.env +9 -0
- package/dist/cjs/services/http.d.ts +2 -2
- package/dist/cjs/services/http.d.ts.map +1 -1
- package/dist/cjs/services/operationInvoker.d.ts.map +1 -1
- package/dist/cjs/services/operationInvoker.js +16 -4
- package/dist/cjs/services/usedAddress.js +1 -1
- package/dist/esm/services/operationInvoker.d.ts.map +1 -1
- package/dist/esm/services/operationInvoker.js +16 -4
- package/dist/esm/services/usedAddress.js +1 -1
- package/package.json +15 -15
- package/tsconfig.cjs.json +1 -1
package/.env
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# https://msftfuturesecureai.sharepoint.com/sites/FSAI-MQG/PL
|
|
2
|
+
# testingbot@msftfuturesecureai.onmicrosoft.com
|
|
3
|
+
|
|
4
|
+
AZURE_TENANT_ID="b6b2cf3f-9a4a-451d-8885-3fec2d0b2a94"
|
|
5
|
+
AZURE_CLIENT_ID="780628e0-ebdf-45fe-866f-d1fe81bd1c96"
|
|
6
|
+
AZURE_CLIENT_SECRET="XHY8Q~c1o38zUK07hE1g40BAuBjacOrJ7Dyvac7L"
|
|
7
|
+
SHAREPOINT_SITE_ID="89cb90aa-7977-412d-8215-31c74db72d7b"
|
|
8
|
+
SHAREPOINT_DRIVE_ID="b!qpDLiXd5LUGCFTHHTbcte07zDZGO-jpHhga5szhvDwEvhFVvV24OSrAv5WljW1aA"
|
|
9
|
+
SHAREPOINT_DEFAULT_SITE_ID="89cb90aa-7977-412d-8215-31c74db72d7b"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @module http
|
|
4
4
|
* @category Services
|
|
5
5
|
*/
|
|
6
|
-
import { type
|
|
6
|
+
import axios, { type RawAxiosRequestHeaders, type ResponseType } from "axios";
|
|
7
7
|
import type { HttpMethod } from "../models/Http.ts";
|
|
8
8
|
export type Request = {
|
|
9
9
|
url: string;
|
|
@@ -14,5 +14,5 @@ export type Request = {
|
|
|
14
14
|
};
|
|
15
15
|
export declare function execute<TResponse>(request: Request): Promise<TResponse>;
|
|
16
16
|
export declare function throwHttpException(responseCode: number, message: string): never;
|
|
17
|
-
export declare function executeRaw(request: Request): Promise<AxiosResponse<any, any, {}>>;
|
|
17
|
+
export declare function executeRaw(request: Request): Promise<axios.AxiosResponse<any, any, {}>>;
|
|
18
18
|
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/services/http.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/services/http.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,EAA6F,KAAK,sBAAsB,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AA0BzK,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAkCpD,MAAM,MAAM,OAAO,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF,wBAAsB,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAkD7E;AAED,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,CAwE/E;AAID,wBAAsB,UAAU,CAAC,OAAO,EAAE,OAAO,8CAMhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operationInvoker.d.ts","sourceRoot":"","sources":["../../../src/services/operationInvoker.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAM/G;;;GAGG;AACH,eAAO,MAAM,QAAQ,qCAAqC,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,aAAa,4CAAuB,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"operationInvoker.d.ts","sourceRoot":"","sources":["../../../src/services/operationInvoker.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAM/G;;;GAGG;AACH,eAAO,MAAM,QAAQ,qCAAqC,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,aAAa,4CAAuB,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAuBvF;AAED;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAInH;AAED;;;;;;;;GAQG;AACH,wBAAsB,UAAU,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAOrH"}
|
|
@@ -39,11 +39,23 @@ exports.batchEndpoint = `${exports.endpoint}/$batch`;
|
|
|
39
39
|
* @returns GraphOperation instance.
|
|
40
40
|
*/
|
|
41
41
|
function operation(definition) {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
let promise;
|
|
43
|
+
const run = () => {
|
|
44
|
+
if (promise === undefined) {
|
|
45
|
+
promise = executeSingle(definition);
|
|
46
|
+
}
|
|
47
|
+
return promise;
|
|
48
|
+
};
|
|
49
|
+
// GraphOperation is a thenable: it executes lazily when awaited, and can also
|
|
50
|
+
// be passed to parallel/sequential where only the operation definition is used.
|
|
51
|
+
const op = {
|
|
52
|
+
definition,
|
|
53
|
+
// biome-ignore lint/suspicious/noThenProperty: GraphOperation intentionally behaves as a lazy thenable for await compatibility.
|
|
54
|
+
then: (onfulfilled, onrejected) => run().then(onfulfilled, onrejected),
|
|
55
|
+
catch: (onrejected) => run().catch(onrejected),
|
|
56
|
+
finally: (onfinally) => run().finally(onfinally),
|
|
57
|
+
[Symbol.toStringTag]: "Promise",
|
|
44
58
|
};
|
|
45
|
-
const op = single(definition);
|
|
46
|
-
op.definition = definition;
|
|
47
59
|
return op;
|
|
48
60
|
}
|
|
49
61
|
/**
|
|
@@ -32,7 +32,7 @@ const pattern = /^(?<startColumn>[A-Z]*)(?<startRow>[0-9]*):(?<endColumn>[A-Z]*)
|
|
|
32
32
|
*/
|
|
33
33
|
function resolveUsedAddress(address, usedRange) {
|
|
34
34
|
const match = pattern.exec(address.toUpperCase());
|
|
35
|
-
if (!match
|
|
35
|
+
if (!match?.groups) {
|
|
36
36
|
throw new InvalidArgumentError_ts_1.default(`Invalid used range address '${address}', Must match pattern '${pattern}'.`);
|
|
37
37
|
}
|
|
38
38
|
let { startColumn, startRow, endColumn, endRow } = match.groups;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operationInvoker.d.ts","sourceRoot":"","sources":["../../../src/services/operationInvoker.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAM/G;;;GAGG;AACH,eAAO,MAAM,QAAQ,qCAAqC,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,aAAa,4CAAuB,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"operationInvoker.d.ts","sourceRoot":"","sources":["../../../src/services/operationInvoker.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAM/G;;;GAGG;AACH,eAAO,MAAM,QAAQ,qCAAqC,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,aAAa,4CAAuB,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAuBvF;AAED;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAInH;AAED;;;;;;;;GAQG;AACH,wBAAsB,UAAU,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAOrH"}
|
|
@@ -30,11 +30,23 @@ export const batchEndpoint = `${endpoint}/$batch`;
|
|
|
30
30
|
* @returns GraphOperation instance.
|
|
31
31
|
*/
|
|
32
32
|
export function operation(definition) {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
let promise;
|
|
34
|
+
const run = () => {
|
|
35
|
+
if (promise === undefined) {
|
|
36
|
+
promise = executeSingle(definition);
|
|
37
|
+
}
|
|
38
|
+
return promise;
|
|
39
|
+
};
|
|
40
|
+
// GraphOperation is a thenable: it executes lazily when awaited, and can also
|
|
41
|
+
// be passed to parallel/sequential where only the operation definition is used.
|
|
42
|
+
const op = {
|
|
43
|
+
definition,
|
|
44
|
+
// biome-ignore lint/suspicious/noThenProperty: GraphOperation intentionally behaves as a lazy thenable for await compatibility.
|
|
45
|
+
then: (onfulfilled, onrejected) => run().then(onfulfilled, onrejected),
|
|
46
|
+
catch: (onrejected) => run().catch(onrejected),
|
|
47
|
+
finally: (onfinally) => run().finally(onfinally),
|
|
48
|
+
[Symbol.toStringTag]: "Promise",
|
|
35
49
|
};
|
|
36
|
-
const op = single(definition);
|
|
37
|
-
op.definition = definition;
|
|
38
50
|
return op;
|
|
39
51
|
}
|
|
40
52
|
/**
|
|
@@ -26,7 +26,7 @@ const pattern = /^(?<startColumn>[A-Z]*)(?<startRow>[0-9]*):(?<endColumn>[A-Z]*)
|
|
|
26
26
|
*/
|
|
27
27
|
export function resolveUsedAddress(address, usedRange) {
|
|
28
28
|
const match = pattern.exec(address.toUpperCase());
|
|
29
|
-
if (!match
|
|
29
|
+
if (!match?.groups) {
|
|
30
30
|
throw new InvalidArgumentError(`Invalid used range address '${address}', Must match pattern '${pattern}'.`);
|
|
31
31
|
}
|
|
32
32
|
let { startColumn, startRow, endColumn, endRow } = match.groups;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microsoft-graph",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.35",
|
|
4
4
|
"description": "Microsoft GraphAPI SDK for NodeJS",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -27,29 +27,29 @@
|
|
|
27
27
|
"license": "PolyForm Noncommercial License 1.0.0",
|
|
28
28
|
"type": "module",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@biomejs/biome": "^2.4.
|
|
30
|
+
"@biomejs/biome": "^2.4.14",
|
|
31
31
|
"@microsoft/microsoft-graph-types": "^2.43.1",
|
|
32
32
|
"@types/lodash": "^4.17.24",
|
|
33
|
-
"@types/node": "^25.
|
|
34
|
-
"dotenv": "^17.
|
|
35
|
-
"globals": "^17.
|
|
36
|
-
"npm-check-updates": "^
|
|
33
|
+
"@types/node": "^25.6.0",
|
|
34
|
+
"dotenv": "^17.4.2",
|
|
35
|
+
"globals": "^17.6.0",
|
|
36
|
+
"npm-check-updates": "^22.1.0",
|
|
37
37
|
"tsx": "^4.21.0",
|
|
38
|
-
"typedoc": "^0.28.
|
|
38
|
+
"typedoc": "^0.28.19",
|
|
39
39
|
"typedoc-material-theme": "^1.4.1",
|
|
40
|
-
"typedoc-plugin-dt-links": "^2.0.
|
|
40
|
+
"typedoc-plugin-dt-links": "^2.0.53",
|
|
41
41
|
"typedoc-plugin-include-example": "^3.0.2",
|
|
42
|
-
"typedoc-plugin-markdown": "^4.
|
|
42
|
+
"typedoc-plugin-markdown": "^4.11.0",
|
|
43
43
|
"typedoc-plugin-mdn-links": "^5.1.1",
|
|
44
44
|
"typedoc-plugin-rename-defaults": "^0.7.3",
|
|
45
|
-
"typescript": "^
|
|
46
|
-
"vitest": "^4.
|
|
45
|
+
"typescript": "^6.0.3",
|
|
46
|
+
"vitest": "^4.1.5"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@azure/identity": "^4.13.
|
|
50
|
-
"axios": "^1.
|
|
51
|
-
"https-proxy-agent": "^
|
|
52
|
-
"lodash": "^4.
|
|
49
|
+
"@azure/identity": "^4.13.1",
|
|
50
|
+
"axios": "^1.16.0",
|
|
51
|
+
"https-proxy-agent": "^9.0.0",
|
|
52
|
+
"lodash": "^4.18.1"
|
|
53
53
|
},
|
|
54
54
|
"exports": {
|
|
55
55
|
".": {
|