-
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.
Adding Photos w/ Dimension support Adding Photos to User, Group Adding Photo to Teams Updating Docs
- Loading branch information
1 parent
1b3b6fa
commit 80abf33
Showing
6 changed files
with
104 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
import { addProp } from "@pnp/queryable"; | ||
import { _Group } from "../groups/types.js"; | ||
import { Photo, IPhoto } from "./types.js"; | ||
import { Photo, IPhoto, IPhotos, Photos } from "./types.js"; | ||
|
||
declare module "../groups/types" { | ||
interface _Group { | ||
readonly photo: IPhoto; | ||
readonly photos: IPhotos; | ||
} | ||
interface IGroup { | ||
readonly photo: IPhoto; | ||
readonly photos: IPhotos; | ||
} | ||
} | ||
|
||
addProp(_Group, "photo", Photo); | ||
addProp(_Group, "photos", Photos); |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import "./groups.js"; | ||
import "./users.js"; | ||
import "./teams.js"; | ||
|
||
export { | ||
IPhoto, | ||
|
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { addProp } from "@pnp/queryable"; | ||
import { _Team } from "../teams/types.js"; | ||
import { Photo, IPhoto } from "./types.js"; | ||
|
||
declare module "../teams/types" { | ||
interface _Team { | ||
readonly photo: IPhoto; | ||
} | ||
interface ITeam { | ||
readonly photo: IPhoto; | ||
} | ||
} | ||
|
||
addProp(_Team, "photo", Photo); |
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
import { addProp } from "@pnp/queryable"; | ||
import { _User } from "../users/types.js"; | ||
import { Photo, IPhoto } from "./types.js"; | ||
import { Photo, IPhoto, IPhotos, Photos } from "./types.js"; | ||
|
||
declare module "../users/types" { | ||
interface _User { | ||
readonly photo: IPhoto; | ||
readonly photos: IPhotos; | ||
} | ||
interface IUser { | ||
readonly photo: IPhoto; | ||
readonly photos: IPhotos; | ||
} | ||
} | ||
|
||
addProp(_User, "photo", Photo); | ||
addProp(_User, "photos", Photos); |