Skip to content

Commit

Permalink
Merge branch 'version-3'
Browse files Browse the repository at this point in the history
  • Loading branch information
juliemturner committed Feb 19, 2024
2 parents b436704 + 8abdc2c commit 5b92b64
Show file tree
Hide file tree
Showing 13 changed files with 398 additions and 197 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 3.23.0 - 2024-Feb-19

- graph
- Addresses #2911 - fixed Photos endpoint bug
- Add getSchedule to Calendar

- queryable
- Addresses #2890 - fixed node clone bug - reverts new rawData emit to fix bug introduced that broke batching/cashing

## 3.22.0 - 2024-Jan-15

- sp
Expand Down
27 changes: 27 additions & 0 deletions docs/graph/calendars.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,33 @@ await graph.users.getById('[email protected]').events.getById(EVENT_ID

await graph.me.events.getById(EVENT_ID).delete();
```
## Get Schedules

Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period.

```TypeScript
import { graphfi } from "@pnp/graph";
import '@pnp/graph/calendars';
import '@pnp/graph/users';

const graph = graphfi(...);

await graph.users.getById('[email protected]').calendar.schedule.get(
{
"startTime": {
"dateTime": "2017-04-15T12:00:00",
"timeZone": "Pacific Standard Time"
},
"endTime": {
"dateTime": "2017-04-15T14:00:00",
"timeZone": "Pacific Standard Time"
},
"schedules": [
"[email protected]"
],
"availabilityViewInterval": 30
});
```

## Get Calendar for a Group

Expand Down
15 changes: 6 additions & 9 deletions docs/queryable/behaviors.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,19 +176,16 @@ export function Caching(props?: ICachingProps): TimelinePipe<Queryable> {
const cached = getCachedValue();

// we need to ensure that result stays "undefined" unless we mean to set null as the result
if (cached === null) {
if (cached === null) {

// if we don't have a cached result we need to get it after the request is sent. Get the raw value (un-parsed) to store into cache
this.on.rawData(noInherit(async function (response) {
setCachedValue(response);
}));
this.on.post(async function (url: URL, result: any) {
setCachedValue(result);
return [url, result];
});

} else {
// if we find it in cache, override send request, and continue flow through timeline and parsers.
this.on.auth.clear();
this.on.send.replace(async function (this: Queryable) {
return new Response(cached, {});
});
result = cached;
}
}

Expand Down
2 changes: 2 additions & 0 deletions docs/sp/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ The addUsingPath method, supports the percent or pound characters in file names.

When using EnsureUniqueFileName property, you must omit the Overwrite parameter.

![Batching Not Supported Banner](https://img.shields.io/badge/Batching%20Not%20Supported-important.svg)

```TypeScript
import { spfi } from "@pnp/sp";
import "@pnp/sp/webs";
Expand Down
Loading

0 comments on commit 5b92b64

Please sign in to comment.