@microsoft/teams.graph-endpoints 2.0.0-preview.10 → 2.0.0-preview.11

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/README.md CHANGED
@@ -1,26 +1,27 @@
1
1
  # Teams: Graph
2
2
 
3
3
  <p>
4
- <a href="https://www.npmjs.com/package/@microsoft/teams.graphEndpoints" target="_blank">
5
- <img src="https://img.shields.io/npm/v/@microsoft/teams.graphEndpoints/preview" />
4
+ <a href="https://www.npmjs.com/package/@microsoft/teams.graph-endpoints" target="_blank">
5
+ <img src="https://img.shields.io/npm/v/@microsoft/teams.graph-endpoints/preview" />
6
6
  </a>
7
- <a href="https://www.npmjs.com/package/@microsoft/teams.graphEndpoints?activeTab=code" target="_blank">
8
- <img src="https://img.shields.io/bundlephobia/min/@microsoft/teams.graphEndpoints" />
7
+ <a href="https://www.npmjs.com/package/@microsoft/teams.graph-endpoints?activeTab=code" target="_blank">
8
+ <img src="https://img.shields.io/bundlephobia/min/@microsoft/teams.graph-endpoints" />
9
9
  </a>
10
- <a href="https://www.npmjs.com/package/@microsoft/teams.graphEndpoints?activeTab=dependencies" target="_blank">
11
- <img src="https://img.shields.io/librariesio/release/npm/@microsoft/teams.graphEndpoints" />
10
+ <a href="https://www.npmjs.com/package/@microsoft/teams.graph-endpoints?activeTab=dependencies" target="_blank">
11
+ <img src="https://img.shields.io/librariesio/release/npm/@microsoft/teams.graph-endpoints" />
12
12
  </a>
13
- <a href="https://www.npmjs.com/package/@microsoft/teams.graphEndpoints" target="_blank">
14
- <img src="https://img.shields.io/npm/dw/@microsoft/teams.graphEndpoints" />
13
+ <a href="https://www.npmjs.com/package/@microsoft/teams.graph-endpoints" target="_blank">
14
+ <img src="https://img.shields.io/npm/dw/@microsoft/teams.graph-endpoints" />
15
15
  </a>
16
16
  <a href="https://microsoft.github.io/teams-ai" target="_blank">
17
17
  <img src="https://img.shields.io/badge/📖 docs-open-blue" />
18
18
  </a>
19
19
  </p>
20
20
 
21
- A collection of strongly typed request configuration builders for MSGraph endpoints, designed to be used
21
+ A collection of strongly typed request configuration builders for Microsoft Graph endpoints, designed to be used
22
22
  together with <a href="https://www.npmjs.com/package/@microsoft/teams.graph" target="_blank">@microsoft/teams.graph</a>.
23
23
 
24
+ Use this package to call Microsoft Graph APIs that have reached general availability (GA), and have gone through a rigorous review-and-feedback process with customers to meet practical, production needs.
24
25
 
25
26
  <a href="https://microsoft.github.io/teams-ai" target="_blank">
26
27
  <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
@@ -29,11 +30,13 @@ together with <a href="https://www.npmjs.com/package/@microsoft/teams.graph" tar
29
30
  ## Install
30
31
 
31
32
  ```bash
32
- $: npm install @microsoft/teams.graphEndpoints
33
+ $: npm install @microsoft/teams.graph-endpoints
33
34
  ```
34
35
 
35
36
  ## Links
36
37
 
38
+ - [Microsoft Graph REST API v1.0 endpoint reference](https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0)
39
+
37
40
  ## Dependencies
38
41
 
39
- - axios
42
+ - None
@@ -32,4 +32,4 @@ export declare function update(body: IEndpoints['PATCH /me/appRoleAssignments/{a
32
32
  * `POST /me/appRoleAssignments`
33
33
  *
34
34
  */
35
- export declare function create(body: IEndpoints['POST /me/appRoleAssignments']['body'], params?: IEndpoints['POST /me/appRoleAssignments']['parameters']): EndpointRequest<IEndpoints['POST /me/appRoleAssignments']['response']>;
35
+ export declare function create(body: IEndpoints['POST /me/appRoleAssignments']['body']): EndpointRequest<IEndpoints['POST /me/appRoleAssignments']['response']>;
@@ -1 +1 @@
1
- 'use strict';function s(e){return {method:"delete",path:"/me/appRoleAssignments/{appRoleAssignment-id}",paramDefs:[{name:"If-Match",in:"header"},{name:"appRoleAssignment-id",in:"path"}],params:e}}function p(e){return {method:"get",path:"/me/appRoleAssignments",paramDefs:[{name:"ConsistencyLevel",in:"header"},{name:"$top",in:"query"},{name:"$skip",in:"query"},{name:"$search",in:"query"},{name:"$filter",in:"query"},{name:"$count",in:"query"},{name:"$orderby",in:"query"},{name:"$select",in:"query"},{name:"$expand",in:"query"}],params:e}}function t(e){return {method:"get",path:"/me/appRoleAssignments/{appRoleAssignment-id}",paramDefs:[{name:"ConsistencyLevel",in:"header"},{name:"$select",in:"query"},{name:"$expand",in:"query"},{name:"appRoleAssignment-id",in:"path"}],params:e}}function i(e,n){return {method:"patch",path:"/me/appRoleAssignments/{appRoleAssignment-id}",paramDefs:[{name:"appRoleAssignment-id",in:"path"}],params:n,body:e}}function a(e,n){return {method:"post",path:"/me/appRoleAssignments",paramDefs:[],params:n,body:e}}exports.create=a;exports.del=s;exports.get=t;exports.list=p;exports.update=i;
1
+ 'use strict';function s(e){return {method:"delete",path:"/me/appRoleAssignments/{appRoleAssignment-id}",paramDefs:[{name:"If-Match",in:"header"},{name:"appRoleAssignment-id",in:"path"}],params:e}}function p(e){return {method:"get",path:"/me/appRoleAssignments",paramDefs:[{name:"ConsistencyLevel",in:"header"},{name:"$top",in:"query"},{name:"$skip",in:"query"},{name:"$search",in:"query"},{name:"$filter",in:"query"},{name:"$count",in:"query"},{name:"$orderby",in:"query"},{name:"$select",in:"query"},{name:"$expand",in:"query"}],params:e}}function t(e){return {method:"get",path:"/me/appRoleAssignments/{appRoleAssignment-id}",paramDefs:[{name:"ConsistencyLevel",in:"header"},{name:"$select",in:"query"},{name:"$expand",in:"query"},{name:"appRoleAssignment-id",in:"path"}],params:e}}function i(e,n){return {method:"patch",path:"/me/appRoleAssignments/{appRoleAssignment-id}",paramDefs:[{name:"appRoleAssignment-id",in:"path"}],params:n,body:e}}function m(e){return {method:"post",path:"/me/appRoleAssignments",body:e}}exports.create=m;exports.del=s;exports.get=t;exports.list=p;exports.update=i;
@@ -1 +1 @@
1
- function s(e){return {method:"delete",path:"/me/appRoleAssignments/{appRoleAssignment-id}",paramDefs:[{name:"If-Match",in:"header"},{name:"appRoleAssignment-id",in:"path"}],params:e}}function p(e){return {method:"get",path:"/me/appRoleAssignments",paramDefs:[{name:"ConsistencyLevel",in:"header"},{name:"$top",in:"query"},{name:"$skip",in:"query"},{name:"$search",in:"query"},{name:"$filter",in:"query"},{name:"$count",in:"query"},{name:"$orderby",in:"query"},{name:"$select",in:"query"},{name:"$expand",in:"query"}],params:e}}function t(e){return {method:"get",path:"/me/appRoleAssignments/{appRoleAssignment-id}",paramDefs:[{name:"ConsistencyLevel",in:"header"},{name:"$select",in:"query"},{name:"$expand",in:"query"},{name:"appRoleAssignment-id",in:"path"}],params:e}}function i(e,n){return {method:"patch",path:"/me/appRoleAssignments/{appRoleAssignment-id}",paramDefs:[{name:"appRoleAssignment-id",in:"path"}],params:n,body:e}}function a(e,n){return {method:"post",path:"/me/appRoleAssignments",paramDefs:[],params:n,body:e}}export{a as create,s as del,t as get,p as list,i as update};
1
+ function s(e){return {method:"delete",path:"/me/appRoleAssignments/{appRoleAssignment-id}",paramDefs:[{name:"If-Match",in:"header"},{name:"appRoleAssignment-id",in:"path"}],params:e}}function p(e){return {method:"get",path:"/me/appRoleAssignments",paramDefs:[{name:"ConsistencyLevel",in:"header"},{name:"$top",in:"query"},{name:"$skip",in:"query"},{name:"$search",in:"query"},{name:"$filter",in:"query"},{name:"$count",in:"query"},{name:"$orderby",in:"query"},{name:"$select",in:"query"},{name:"$expand",in:"query"}],params:e}}function t(e){return {method:"get",path:"/me/appRoleAssignments/{appRoleAssignment-id}",paramDefs:[{name:"ConsistencyLevel",in:"header"},{name:"$select",in:"query"},{name:"$expand",in:"query"},{name:"appRoleAssignment-id",in:"path"}],params:e}}function i(e,n){return {method:"patch",path:"/me/appRoleAssignments/{appRoleAssignment-id}",paramDefs:[{name:"appRoleAssignment-id",in:"path"}],params:n,body:e}}function m(e){return {method:"post",path:"/me/appRoleAssignments",body:e}}export{m as create,s as del,t as get,p as list,i as update};
@@ -7,4 +7,4 @@ export interface IEndpoints {
7
7
  *
8
8
  * Retire all devices from management for this user
9
9
  */
10
- export declare function create(body: IEndpoints['POST /me/removeAllDevicesFromManagement']['body'], params?: IEndpoints['POST /me/removeAllDevicesFromManagement']['parameters']): EndpointRequest<IEndpoints['POST /me/removeAllDevicesFromManagement']['response']>;
10
+ export declare function create(): EndpointRequest<IEndpoints['POST /me/removeAllDevicesFromManagement']['response']>;
@@ -1 +1 @@
1
- 'use strict';function o(e,n){return {method:"post",path:"/me/removeAllDevicesFromManagement",paramDefs:[],params:n,body:e}}exports.create=o;
1
+ 'use strict';function e(){return {method:"post",path:"/me/removeAllDevicesFromManagement"}}exports.create=e;
@@ -1 +1 @@
1
- function o(e,n){return {method:"post",path:"/me/removeAllDevicesFromManagement",paramDefs:[],params:n,body:e}}export{o as create};
1
+ function e(){return {method:"post",path:"/me/removeAllDevicesFromManagement"}}export{e as create};
@@ -7,4 +7,4 @@ export interface IEndpoints {
7
7
  *
8
8
  * Reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. Also see Identify and resolve license assignment problems for a group in Microsoft Entra ID for more details.
9
9
  */
10
- export declare function create(body: IEndpoints['POST /me/reprocessLicenseAssignment']['body'], params?: IEndpoints['POST /me/reprocessLicenseAssignment']['parameters']): EndpointRequest<IEndpoints['POST /me/reprocessLicenseAssignment']['response']>;
10
+ export declare function create(): EndpointRequest<IEndpoints['POST /me/reprocessLicenseAssignment']['response']>;
@@ -1 +1 @@
1
- 'use strict';function n(e,s){return {method:"post",path:"/me/reprocessLicenseAssignment",paramDefs:[],params:s,body:e}}exports.create=n;
1
+ 'use strict';function e(){return {method:"post",path:"/me/reprocessLicenseAssignment"}}exports.create=e;
@@ -1 +1 @@
1
- function n(e,s){return {method:"post",path:"/me/reprocessLicenseAssignment",paramDefs:[],params:s,body:e}}export{n as create};
1
+ function e(){return {method:"post",path:"/me/reprocessLicenseAssignment"}}export{e as create};
@@ -7,4 +7,4 @@ export interface IEndpoints {
7
7
  *
8
8
  * Retry the provisioning of a user object in Microsoft Entra ID.
9
9
  */
10
- export declare function create(body: IEndpoints['POST /me/retryServiceProvisioning']['body'], params?: IEndpoints['POST /me/retryServiceProvisioning']['parameters']): EndpointRequest<IEndpoints['POST /me/retryServiceProvisioning']['response']>;
10
+ export declare function create(): EndpointRequest<IEndpoints['POST /me/retryServiceProvisioning']['response']>;
@@ -1 +1 @@
1
- 'use strict';function i(e,r){return {method:"post",path:"/me/retryServiceProvisioning",paramDefs:[],params:r,body:e}}exports.create=i;
1
+ 'use strict';function e(){return {method:"post",path:"/me/retryServiceProvisioning"}}exports.create=e;
@@ -1 +1 @@
1
- function i(e,r){return {method:"post",path:"/me/retryServiceProvisioning",paramDefs:[],params:r,body:e}}export{i as create};
1
+ function e(){return {method:"post",path:"/me/retryServiceProvisioning"}}export{e as create};
@@ -7,4 +7,4 @@ export interface IEndpoints {
7
7
  *
8
8
  * Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here.
9
9
  */
10
- export declare function create(body: IEndpoints['POST /me/sendMail']['body'], params?: IEndpoints['POST /me/sendMail']['parameters']): EndpointRequest<IEndpoints['POST /me/sendMail']['response']>;
10
+ export declare function create(body: IEndpoints['POST /me/sendMail']['body']): EndpointRequest<IEndpoints['POST /me/sendMail']['response']>;
@@ -1 +1 @@
1
- 'use strict';function t(e,n){return {method:"post",path:"/me/sendMail",paramDefs:[],params:n,body:e}}exports.create=t;
1
+ 'use strict';function n(e){return {method:"post",path:"/me/sendMail",body:e}}exports.create=n;
@@ -1 +1 @@
1
- function t(e,n){return {method:"post",path:"/me/sendMail",paramDefs:[],params:n,body:e}}export{t as create};
1
+ function n(e){return {method:"post",path:"/me/sendMail",body:e}}export{n as create};
@@ -2,7 +2,7 @@ import type { paths } from './types.ts';
2
2
  export type EndpointRequest<TResponse> = {
3
3
  method: 'get' | 'post' | 'patch' | 'delete' | 'put';
4
4
  path: string;
5
- paramDefs: Array<{
5
+ paramDefs?: Array<{
6
6
  name: string;
7
7
  in: 'query' | 'header' | 'path';
8
8
  }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@microsoft/teams.graph-endpoints",
3
3
  "sideEffects": false,
4
- "version": "2.0.0-preview.10",
4
+ "version": "2.0.0-preview.11",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -51,7 +51,7 @@
51
51
  "gen:endpoints": "npx cross-env NODE_OPTIONS='--max-old-space-size=16384' npx @microsoft/teams.graph-tools generate-endpoints ../graph/openapi.yaml ./src v1.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@microsoft/teams.graph-tools": "2.0.0-preview.10",
54
+ "@microsoft/teams.graph-tools": "2.0.0-preview.11",
55
55
  "rimraf": "^6.0.1",
56
56
  "tsup": "^8.4.0",
57
57
  "typescript": "^5.4.5"