-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
605 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,4 @@ body: | |
console.log(items); | ||
``` | ||
validations: | ||
required: true | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ export async function Example(settings: any) { | |
}); | ||
|
||
process.exit(0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -577,6 +577,16 @@ const delta: IDeltaItems = await graph.users.getById("[email protected] | |
|
||
// Get the changes for the drive items from token | ||
const delta: IDeltaItems = await graph.me.drive.root.delta("{token}")(); | ||
|
||
// consume all the values using async iterator | ||
for await (const val of delta.next.paged()) { | ||
console.log(JSON.stringify(val, null, 2)); | ||
} | ||
|
||
// consume all the values using async iterator in pages of 20 | ||
for await (const val of delta.next.top(20).paged()) { | ||
console.log(JSON.stringify(val, null, 2)); | ||
} | ||
``` | ||
|
||
## Get Drive Item Analytics | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -273,7 +273,7 @@ channels.getById('19:[email protected]').tabs.getByI | |
|
||
``` | ||
|
||
## Add a new Tab | ||
## Add a new Tab to Channel | ||
|
||
```TypeScript | ||
import { graphfi } from "@pnp/graph"; | ||
|
@@ -286,6 +286,34 @@ channels.getById('19:[email protected]').tabs.add('T | |
|
||
``` | ||
|
||
## Update a Tab | ||
|
||
```TypeScript | ||
import { graphfi } from "@pnp/graph"; | ||
import "@pnp/graph/teams"; | ||
|
||
const graph = graphfi(...); | ||
|
||
const tab = await graph.teams.getById('3531f3fb-f9ee-4f43-982a-6c90d8226528'). | ||
channels.getById('19:[email protected]').tabs.getById('Id').update({ | ||
displayName: "New tab name" | ||
}); | ||
|
||
``` | ||
|
||
## Remove a Tab from channel | ||
|
||
```TypeScript | ||
import { graphfi } from "@pnp/graph"; | ||
import "@pnp/graph/teams"; | ||
|
||
const graph = graphfi(...); | ||
|
||
const tab = await graph.teams.getById('3531f3fb-f9ee-4f43-982a-6c90d8226528'). | ||
channels.getById('19:[email protected]').tabs.getById('Id').delete(); | ||
|
||
``` | ||
|
||
## Team Membership | ||
|
||
Get the members and/or owners of a group. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.