microsoft-graph 2.28.0 → 2.29.0

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * List accessible sites.
2
+ * List sites in your company geography.
3
3
  * @module listSites
4
4
  * @category Operations
5
5
  */
@@ -8,7 +8,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
10
  /**
11
- * List accessible sites.
11
+ * List sites in your company geography.
12
12
  * @param contextRef Reference to the context.
13
13
  * @returns Array of sites, each including its metadata and reference information.
14
14
  * @see https://learn.microsoft.com/en-us/graph/api/site-list
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * List accessible sites.
3
+ * List sites in your company geography.
4
4
  * @module listSites
5
5
  * @category Operations
6
6
  */
@@ -10,7 +10,7 @@ const operationInvoker_ts_1 = require("../../services/operationInvoker.js");
10
10
  const site_ts_1 = require("../../services/site.js");
11
11
  const templatedPaths_ts_1 = require("../../services/templatedPaths.js");
12
12
  /**
13
- * List accessible sites.
13
+ * List sites in your company geography.
14
14
  * @param contextRef Reference to the context.
15
15
  * @returns Array of sites, each including its metadata and reference information.
16
16
  * @see https://learn.microsoft.com/en-us/graph/api/site-list
@@ -0,0 +1,17 @@
1
+ /**
2
+ * List sites in all company geographies.
3
+ * @module listSites
4
+ * @category Operations
5
+ */
6
+ import type { Site } from "@microsoft/microsoft-graph-types";
7
+ import type { ContextRef } from "../../models/Context.ts";
8
+ import type { GraphOperation } from "../../models/GraphOperation.ts";
9
+ import type { SiteRef } from "../../models/Site.ts";
10
+ /**
11
+ * List sites in all company geographies.
12
+ * @param contextRef Reference to the context.
13
+ * @returns Array of sites, each including its metadata and reference information.
14
+ * @see https://learn.microsoft.com/en-us/graph/api/site-getallsites
15
+ */
16
+ export default function listSitesAllGeographies(contextRef: ContextRef): GraphOperation<(Site & SiteRef)[]>;
17
+ //# sourceMappingURL=listSitesAllGeographies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listSitesAllGeographies.d.ts","sourceRoot":"","sources":["../../../../src/operations/site/listSitesAllGeographies.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;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAuB1G"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * List sites in all company geographies.
4
+ * @module listSites
5
+ * @category Operations
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.default = listSitesAllGeographies;
9
+ const operationInvoker_ts_1 = require("../../services/operationInvoker.js");
10
+ const site_ts_1 = require("../../services/site.js");
11
+ const templatedPaths_ts_1 = require("../../services/templatedPaths.js");
12
+ /**
13
+ * List sites in all company geographies.
14
+ * @param contextRef Reference to the context.
15
+ * @returns Array of sites, each including its metadata and reference information.
16
+ * @see https://learn.microsoft.com/en-us/graph/api/site-getallsites
17
+ */
18
+ function listSitesAllGeographies(contextRef) {
19
+ return (0, operationInvoker_ts_1.operation)({
20
+ context: contextRef.context,
21
+ method: "GET",
22
+ path: (0, templatedPaths_ts_1.generatePath)("/sites/getAllSites", {}),
23
+ headers: {},
24
+ body: null,
25
+ responseTransform: (response) => {
26
+ const list = response;
27
+ const sites = list.value.map((site) => {
28
+ const siteId = site.id;
29
+ const siteRef = (0, site_ts_1.createSiteRef)(contextRef, siteId);
30
+ return {
31
+ ...site,
32
+ ...siteRef,
33
+ };
34
+ });
35
+ return sites;
36
+ },
37
+ });
38
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * List accessible sites.
2
+ * List sites in your company geography.
3
3
  * @module listSites
4
4
  * @category Operations
5
5
  */
@@ -8,7 +8,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
10
  /**
11
- * List accessible sites.
11
+ * List sites in your company geography.
12
12
  * @param contextRef Reference to the context.
13
13
  * @returns Array of sites, each including its metadata and reference information.
14
14
  * @see https://learn.microsoft.com/en-us/graph/api/site-list
@@ -1,5 +1,5 @@
1
1
  /**
2
- * List accessible sites.
2
+ * List sites in your company geography.
3
3
  * @module listSites
4
4
  * @category Operations
5
5
  */
@@ -7,7 +7,7 @@ import { operation } from "../../services/operationInvoker.js";
7
7
  import { createSiteRef } from "../../services/site.js";
8
8
  import { generatePath } from "../../services/templatedPaths.js";
9
9
  /**
10
- * List accessible sites.
10
+ * List sites in your company geography.
11
11
  * @param contextRef Reference to the context.
12
12
  * @returns Array of sites, each including its metadata and reference information.
13
13
  * @see https://learn.microsoft.com/en-us/graph/api/site-list
@@ -0,0 +1,17 @@
1
+ /**
2
+ * List sites in all company geographies.
3
+ * @module listSites
4
+ * @category Operations
5
+ */
6
+ import type { Site } from "@microsoft/microsoft-graph-types";
7
+ import type { ContextRef } from "../../models/Context.ts";
8
+ import type { GraphOperation } from "../../models/GraphOperation.ts";
9
+ import type { SiteRef } from "../../models/Site.ts";
10
+ /**
11
+ * List sites in all company geographies.
12
+ * @param contextRef Reference to the context.
13
+ * @returns Array of sites, each including its metadata and reference information.
14
+ * @see https://learn.microsoft.com/en-us/graph/api/site-getallsites
15
+ */
16
+ export default function listSitesAllGeographies(contextRef: ContextRef): GraphOperation<(Site & SiteRef)[]>;
17
+ //# sourceMappingURL=listSitesAllGeographies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listSitesAllGeographies.d.ts","sourceRoot":"","sources":["../../../../src/operations/site/listSitesAllGeographies.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;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAAC,CAAC,IAAI,GAAG,OAAO,CAAC,EAAE,CAAC,CAuB1G"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * List sites in all company geographies.
3
+ * @module listSites
4
+ * @category Operations
5
+ */
6
+ import { operation } from "../../services/operationInvoker.js";
7
+ import { createSiteRef } from "../../services/site.js";
8
+ import { generatePath } from "../../services/templatedPaths.js";
9
+ /**
10
+ * List sites in all company geographies.
11
+ * @param contextRef Reference to the context.
12
+ * @returns Array of sites, each including its metadata and reference information.
13
+ * @see https://learn.microsoft.com/en-us/graph/api/site-getallsites
14
+ */
15
+ export default function listSitesAllGeographies(contextRef) {
16
+ return operation({
17
+ context: contextRef.context,
18
+ method: "GET",
19
+ path: generatePath("/sites/getAllSites", {}),
20
+ headers: {},
21
+ body: null,
22
+ responseTransform: (response) => {
23
+ const list = response;
24
+ const sites = list.value.map((site) => {
25
+ const siteId = site.id;
26
+ const siteRef = createSiteRef(contextRef, siteId);
27
+ return {
28
+ ...site,
29
+ ...siteRef,
30
+ };
31
+ });
32
+ return sites;
33
+ },
34
+ });
35
+ }
@@ -93,7 +93,8 @@
93
93
  | [insertWorkbookCells](insertWorkbookCells.md) | Insert a new blank range at a specified address, shifting existing cells. |
94
94
  | [listDriveItemChildren](listDriveItemChildren.md) | Retrieve the metadata for items in a drive or folder. |
95
95
  | [listDrives](listDrives.md) | Retrieve the list of accessible Drives in a Site. |
96
- | [listSites](listSites.md) | List accessible sites. |
96
+ | [listSites](listSites.md) | List sites in your company geography. |
97
+ | [listSites](listSites-1.md) | List sites in all company geographies. |
97
98
  | [listWorkbookRangeBorders](listWorkbookRangeBorders.md) | List the borders of a range. |
98
99
  | [listWorkbookTableColumns](listWorkbookTableColumns.md) | Retrieve a list of columns in a table. |
99
100
  | [listWorkbookTableRows](listWorkbookTableRows.md) | Retrieve a list of rows in a table. |
@@ -0,0 +1,31 @@
1
+ [Microsoft Graph SDK](README.md) / listSites
2
+
3
+ # listSites
4
+
5
+ List sites in all company geographies.
6
+
7
+ ## Functions
8
+
9
+ ### listSitesAllGeographies()
10
+
11
+ > **listSitesAllGeographies**(`contextRef`): [`GraphOperation`](GraphOperation.md#graphoperation)\<`Site` & [`SiteRef`](Site-1.md#siteref)[]\>
12
+
13
+ Defined in: src/operations/site/listSitesAllGeographies.ts:21
14
+
15
+ List sites in all company geographies.
16
+
17
+ #### Parameters
18
+
19
+ | Parameter | Type | Description |
20
+ | ------ | ------ | ------ |
21
+ | `contextRef` | [`ContextRef`](Context-1.md#contextref) | Reference to the context. |
22
+
23
+ #### Returns
24
+
25
+ [`GraphOperation`](GraphOperation.md#graphoperation)\<`Site` & [`SiteRef`](Site-1.md#siteref)[]\>
26
+
27
+ Array of sites, each including its metadata and reference information.
28
+
29
+ #### See
30
+
31
+ https://learn.microsoft.com/en-us/graph/api/site-getallsites
@@ -2,7 +2,7 @@
2
2
 
3
3
  # listSites
4
4
 
5
- List accessible sites.
5
+ List sites in your company geography.
6
6
 
7
7
  ## Functions
8
8
 
@@ -12,7 +12,7 @@ List accessible sites.
12
12
 
13
13
  Defined in: [src/operations/site/listSites.ts:21](https://github.com/Future-Secure-AI/microsoft-graph/blob/main/src/operations/site/listSites.ts#L21)
14
14
 
15
- List accessible sites.
15
+ List sites in your company geography.
16
16
 
17
17
  #### Parameters
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microsoft-graph",
3
- "version": "2.28.0",
3
+ "version": "2.29.0",
4
4
  "description": "Microsoft GraphAPI SDK for NodeJS",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -1332,6 +1332,31 @@
1332
1332
  "require": "./dist/cjs/operations/site/listSites.js",
1333
1333
  "types": "./dist/esm/operations/site/listSites.d.ts"
1334
1334
  },
1335
+ "./listSitesAllGeographies": {
1336
+ "import": "./dist/esm/operations/site/listSitesAllGeographies.js",
1337
+ "require": "./dist/cjs/operations/site/listSitesAllGeographies.js",
1338
+ "types": "./dist/esm/operations/site/listSitesAllGeographies.d.ts"
1339
+ },
1340
+ "./dist/cjs/operations/site/listSitesAllGeographies.js": {
1341
+ "import": "./dist/esm/operations/site/listSitesAllGeographies.js",
1342
+ "require": "./dist/cjs/operations/site/listSitesAllGeographies.js",
1343
+ "types": "./dist/esm/operations/site/listSitesAllGeographies.d.ts"
1344
+ },
1345
+ "./dist/cjs/operations/site/listSitesAllGeographies": {
1346
+ "import": "./dist/esm/operations/site/listSitesAllGeographies.js",
1347
+ "require": "./dist/cjs/operations/site/listSitesAllGeographies.js",
1348
+ "types": "./dist/esm/operations/site/listSitesAllGeographies.d.ts"
1349
+ },
1350
+ "./operations/site/listSitesAllGeographies": {
1351
+ "import": "./dist/esm/operations/site/listSitesAllGeographies.js",
1352
+ "require": "./dist/cjs/operations/site/listSitesAllGeographies.js",
1353
+ "types": "./dist/esm/operations/site/listSitesAllGeographies.d.ts"
1354
+ },
1355
+ "./operations/site/listSitesAllGeographies.js": {
1356
+ "import": "./dist/esm/operations/site/listSitesAllGeographies.js",
1357
+ "require": "./dist/cjs/operations/site/listSitesAllGeographies.js",
1358
+ "types": "./dist/esm/operations/site/listSitesAllGeographies.d.ts"
1359
+ },
1335
1360
  "./searchSites": {
1336
1361
  "import": "./dist/esm/operations/site/searchSites.js",
1337
1362
  "require": "./dist/cjs/operations/site/searchSites.js",