@pnp/graph 2.10.0 → 2.11.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.
- package/LICENSE +25 -25
- package/attachments/conversations.d.ts +9 -9
- package/attachments/conversations.js +4 -4
- package/attachments/index.d.ts +2 -2
- package/attachments/index.js +2 -2
- package/attachments/types.d.ts +26 -26
- package/attachments/types.js +46 -46
- package/batch.d.ts +17 -17
- package/batch.js +176 -176
- package/calendars/funcs.d.ts +36 -36
- package/calendars/funcs.js +43 -43
- package/calendars/groups.d.ts +13 -13
- package/calendars/groups.js +5 -5
- package/calendars/index.d.ts +4 -4
- package/calendars/index.js +3 -3
- package/calendars/types.d.ts +52 -52
- package/calendars/types.js +98 -98
- package/calendars/users.d.ts +22 -22
- package/calendars/users.js +9 -9
- package/cloud-communications/index.d.ts +8 -8
- package/cloud-communications/index.js +14 -14
- package/cloud-communications/types.d.ts +21 -21
- package/cloud-communications/types.js +46 -46
- package/cloud-communications/users.d.ts +9 -9
- package/cloud-communications/users.js +4 -4
- package/contacts/index.d.ts +2 -2
- package/contacts/index.js +2 -2
- package/contacts/types.d.ts +75 -75
- package/contacts/types.js +145 -145
- package/contacts/users.d.ts +11 -11
- package/contacts/users.js +5 -5
- package/conversations/groups.d.ts +13 -13
- package/conversations/groups.js +6 -6
- package/conversations/index.d.ts +2 -2
- package/conversations/index.js +2 -2
- package/conversations/types.d.ts +103 -103
- package/conversations/types.js +173 -173
- package/decorators.d.ts +103 -103
- package/decorators.js +138 -138
- package/directory-objects/index.d.ts +7 -7
- package/directory-objects/index.js +13 -13
- package/directory-objects/types.d.ts +67 -67
- package/directory-objects/types.js +96 -96
- package/graphhttpclient.d.ts +13 -13
- package/graphhttpclient.js +95 -95
- package/graphlibconfig.d.ts +21 -21
- package/graphlibconfig.js +19 -19
- package/graphqueryable.d.ts +156 -156
- package/graphqueryable.js +247 -247
- package/groups/index.d.ts +7 -7
- package/groups/index.js +13 -13
- package/groups/types.d.ts +81 -81
- package/groups/types.js +137 -137
- package/index.d.ts +8 -8
- package/index.js +7 -7
- package/insights/index.d.ts +2 -2
- package/insights/index.js +2 -2
- package/insights/types.d.ts +76 -76
- package/insights/types.js +162 -162
- package/insights/users.d.ts +9 -9
- package/insights/users.js +4 -4
- package/invitations/index.d.ts +7 -7
- package/invitations/index.js +13 -13
- package/invitations/types.d.ts +25 -25
- package/invitations/types.js +44 -44
- package/members/groups.d.ts +11 -11
- package/members/groups.js +5 -5
- package/members/index.d.ts +2 -2
- package/members/index.js +2 -2
- package/members/types.d.ts +31 -31
- package/members/types.js +49 -49
- package/messages/index.d.ts +2 -2
- package/messages/index.js +2 -2
- package/messages/types.d.ts +43 -43
- package/messages/types.js +77 -77
- package/messages/users.d.ts +15 -15
- package/messages/users.js +10 -10
- package/onedrive/index.d.ts +2 -2
- package/onedrive/index.js +2 -2
- package/onedrive/types.d.ts +95 -95
- package/onedrive/types.js +241 -241
- package/onedrive/users.d.ts +11 -11
- package/onedrive/users.js +5 -5
- package/onenote/index.d.ts +2 -2
- package/onenote/index.js +2 -2
- package/onenote/types.d.ts +76 -76
- package/onenote/types.js +149 -149
- package/onenote/users.d.ts +9 -9
- package/onenote/users.js +4 -4
- package/operations.d.ts +8 -8
- package/operations.js +41 -41
- package/outlook/index.d.ts +2 -2
- package/outlook/index.js +2 -2
- package/outlook/types.d.ts +40 -40
- package/outlook/types.js +76 -76
- package/outlook/users.d.ts +9 -9
- package/outlook/users.js +4 -4
- package/package.json +5 -5
- package/photos/groups.d.ts +9 -9
- package/photos/groups.js +4 -4
- package/photos/index.d.ts +3 -3
- package/photos/index.js +3 -3
- package/photos/types.d.ts +21 -21
- package/photos/types.js +37 -37
- package/photos/users.d.ts +9 -9
- package/photos/users.js +4 -4
- package/planner/groups.d.ts +9 -9
- package/planner/groups.js +4 -4
- package/planner/index.d.ts +9 -9
- package/planner/index.js +15 -15
- package/planner/types.d.ts +117 -117
- package/planner/types.js +291 -291
- package/planner/users.d.ts +9 -9
- package/planner/users.js +4 -4
- package/presets/all.d.ts +38 -38
- package/presets/all.js +38 -38
- package/readme.md +21 -21
- package/rest.d.ts +30 -30
- package/rest.js +57 -57
- package/search/index.d.ts +7 -7
- package/search/index.js +18 -18
- package/search/types.d.ts +16 -16
- package/search/types.js +23 -23
- package/sites/group.d.ts +9 -9
- package/sites/group.js +4 -4
- package/sites/index.d.ts +2 -2
- package/sites/index.js +2 -2
- package/sites/types.d.ts +23 -23
- package/sites/types.js +47 -47
- package/subscriptions/index.d.ts +7 -7
- package/subscriptions/index.js +13 -13
- package/subscriptions/types.d.ts +37 -37
- package/subscriptions/types.js +72 -72
- package/teams/index.d.ts +19 -19
- package/teams/index.js +35 -35
- package/teams/types.d.ts +112 -111
- package/teams/types.d.ts.map +1 -1
- package/teams/types.js +261 -254
- package/teams/types.js.map +1 -1
- package/teams/users.d.ts +9 -9
- package/teams/users.js +4 -4
- package/types.d.ts +9 -9
- package/types.js +19 -19
- package/users/index.d.ts +8 -8
- package/users/index.js +23 -23
- package/users/types.d.ts +35 -35
- package/users/types.js +82 -82
- package/utils/toabsoluteurl.d.ts +7 -7
- package/utils/toabsoluteurl.js +48 -48
- package/utils/type.d.ts +3 -3
- package/utils/type.js +3 -3
package/calendars/funcs.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { IGraphQueryable, IGraphQueryableCollection } from "../graphqueryable.js";
|
|
2
|
-
import { EmailAddress, Event as IEvent } from "@microsoft/microsoft-graph-types";
|
|
3
|
-
/**
|
|
4
|
-
* Temporary until graph types include this type
|
|
5
|
-
*/
|
|
6
|
-
interface IEventWithTag extends IEvent {
|
|
7
|
-
"@odata.etag": string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range,
|
|
11
|
-
* from the user's default calendar, or from some other calendar of the user's
|
|
12
|
-
*
|
|
13
|
-
* @param this IGraphQueryable instance
|
|
14
|
-
* @param start start time
|
|
15
|
-
* @param end end time
|
|
16
|
-
*/
|
|
17
|
-
export declare function calendarView(this: IGraphQueryable, start: string, end: string): IGraphQueryableCollection<ICalendarViewInfo[]>;
|
|
18
|
-
export declare type ICalendarViewInfo = IEventWithTag;
|
|
19
|
-
/**
|
|
20
|
-
* Get the emailAddress objects that represent all the meeting rooms in the user's tenant or in a specific room list.
|
|
21
|
-
*
|
|
22
|
-
* @param this IGraphQueryable instance
|
|
23
|
-
* @param roomList The SMTP address associated with the room list.
|
|
24
|
-
*/
|
|
25
|
-
export declare function findRooms(this: IGraphQueryable, roomList?: string): IGraphQueryableCollection<EmailAddress[]>;
|
|
26
|
-
/**
|
|
27
|
-
* Get the instances (occurrences) of an event for a specified time range.
|
|
28
|
-
* If the event is a seriesMaster type, this returns the occurrences and exceptions of the event in the specified time range.
|
|
29
|
-
*
|
|
30
|
-
* @param this IGraphQueryable instance
|
|
31
|
-
* @param start start time
|
|
32
|
-
* @param end end time
|
|
33
|
-
*/
|
|
34
|
-
export declare function instances(this: IGraphQueryable, start: string, end: string): IGraphQueryableCollection<IInstance[]>;
|
|
35
|
-
export declare type IInstance = IEventWithTag;
|
|
36
|
-
export {};
|
|
1
|
+
import { IGraphQueryable, IGraphQueryableCollection } from "../graphqueryable.js";
|
|
2
|
+
import { EmailAddress, Event as IEvent } from "@microsoft/microsoft-graph-types";
|
|
3
|
+
/**
|
|
4
|
+
* Temporary until graph types include this type
|
|
5
|
+
*/
|
|
6
|
+
interface IEventWithTag extends IEvent {
|
|
7
|
+
"@odata.etag": string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range,
|
|
11
|
+
* from the user's default calendar, or from some other calendar of the user's
|
|
12
|
+
*
|
|
13
|
+
* @param this IGraphQueryable instance
|
|
14
|
+
* @param start start time
|
|
15
|
+
* @param end end time
|
|
16
|
+
*/
|
|
17
|
+
export declare function calendarView(this: IGraphQueryable, start: string, end: string): IGraphQueryableCollection<ICalendarViewInfo[]>;
|
|
18
|
+
export declare type ICalendarViewInfo = IEventWithTag;
|
|
19
|
+
/**
|
|
20
|
+
* Get the emailAddress objects that represent all the meeting rooms in the user's tenant or in a specific room list.
|
|
21
|
+
*
|
|
22
|
+
* @param this IGraphQueryable instance
|
|
23
|
+
* @param roomList The SMTP address associated with the room list.
|
|
24
|
+
*/
|
|
25
|
+
export declare function findRooms(this: IGraphQueryable, roomList?: string): IGraphQueryableCollection<EmailAddress[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Get the instances (occurrences) of an event for a specified time range.
|
|
28
|
+
* If the event is a seriesMaster type, this returns the occurrences and exceptions of the event in the specified time range.
|
|
29
|
+
*
|
|
30
|
+
* @param this IGraphQueryable instance
|
|
31
|
+
* @param start start time
|
|
32
|
+
* @param end end time
|
|
33
|
+
*/
|
|
34
|
+
export declare function instances(this: IGraphQueryable, start: string, end: string): IGraphQueryableCollection<IInstance[]>;
|
|
35
|
+
export declare type IInstance = IEventWithTag;
|
|
36
|
+
export {};
|
|
37
37
|
//# sourceMappingURL=funcs.d.ts.map
|
package/calendars/funcs.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { GraphQueryableCollection } from "../graphqueryable.js";
|
|
2
|
-
/**
|
|
3
|
-
* Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range,
|
|
4
|
-
* from the user's default calendar, or from some other calendar of the user's
|
|
5
|
-
*
|
|
6
|
-
* @param this IGraphQueryable instance
|
|
7
|
-
* @param start start time
|
|
8
|
-
* @param end end time
|
|
9
|
-
*/
|
|
10
|
-
export function calendarView(start, end) {
|
|
11
|
-
var query = this.clone(GraphQueryableCollection, "calendarView");
|
|
12
|
-
query.query.set("startDateTime", encodeURIComponent(start));
|
|
13
|
-
query.query.set("endDateTime", encodeURIComponent(end));
|
|
14
|
-
return query;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Get the emailAddress objects that represent all the meeting rooms in the user's tenant or in a specific room list.
|
|
18
|
-
*
|
|
19
|
-
* @param this IGraphQueryable instance
|
|
20
|
-
* @param roomList The SMTP address associated with the room list.
|
|
21
|
-
*/
|
|
22
|
-
export function findRooms(roomList) {
|
|
23
|
-
var query = this.clone(GraphQueryableCollection, roomList ? "findRooms(RoomList=@roomList)" : "findRooms");
|
|
24
|
-
query.setEndpoint("beta");
|
|
25
|
-
if (roomList) {
|
|
26
|
-
query.query.set("@roomList", "'" + encodeURIComponent(roomList) + "'");
|
|
27
|
-
}
|
|
28
|
-
return query;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Get the instances (occurrences) of an event for a specified time range.
|
|
32
|
-
* If the event is a seriesMaster type, this returns the occurrences and exceptions of the event in the specified time range.
|
|
33
|
-
*
|
|
34
|
-
* @param this IGraphQueryable instance
|
|
35
|
-
* @param start start time
|
|
36
|
-
* @param end end time
|
|
37
|
-
*/
|
|
38
|
-
export function instances(start, end) {
|
|
39
|
-
var query = this.clone(GraphQueryableCollection, "instances");
|
|
40
|
-
query.query.set("startDateTime", encodeURIComponent(start));
|
|
41
|
-
query.query.set("endDateTime", encodeURIComponent(end));
|
|
42
|
-
return query;
|
|
43
|
-
}
|
|
1
|
+
import { GraphQueryableCollection } from "../graphqueryable.js";
|
|
2
|
+
/**
|
|
3
|
+
* Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range,
|
|
4
|
+
* from the user's default calendar, or from some other calendar of the user's
|
|
5
|
+
*
|
|
6
|
+
* @param this IGraphQueryable instance
|
|
7
|
+
* @param start start time
|
|
8
|
+
* @param end end time
|
|
9
|
+
*/
|
|
10
|
+
export function calendarView(start, end) {
|
|
11
|
+
var query = this.clone(GraphQueryableCollection, "calendarView");
|
|
12
|
+
query.query.set("startDateTime", encodeURIComponent(start));
|
|
13
|
+
query.query.set("endDateTime", encodeURIComponent(end));
|
|
14
|
+
return query;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Get the emailAddress objects that represent all the meeting rooms in the user's tenant or in a specific room list.
|
|
18
|
+
*
|
|
19
|
+
* @param this IGraphQueryable instance
|
|
20
|
+
* @param roomList The SMTP address associated with the room list.
|
|
21
|
+
*/
|
|
22
|
+
export function findRooms(roomList) {
|
|
23
|
+
var query = this.clone(GraphQueryableCollection, roomList ? "findRooms(RoomList=@roomList)" : "findRooms");
|
|
24
|
+
query.setEndpoint("beta");
|
|
25
|
+
if (roomList) {
|
|
26
|
+
query.query.set("@roomList", "'" + encodeURIComponent(roomList) + "'");
|
|
27
|
+
}
|
|
28
|
+
return query;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Get the instances (occurrences) of an event for a specified time range.
|
|
32
|
+
* If the event is a seriesMaster type, this returns the occurrences and exceptions of the event in the specified time range.
|
|
33
|
+
*
|
|
34
|
+
* @param this IGraphQueryable instance
|
|
35
|
+
* @param start start time
|
|
36
|
+
* @param end end time
|
|
37
|
+
*/
|
|
38
|
+
export function instances(start, end) {
|
|
39
|
+
var query = this.clone(GraphQueryableCollection, "instances");
|
|
40
|
+
query.query.set("startDateTime", encodeURIComponent(start));
|
|
41
|
+
query.query.set("endDateTime", encodeURIComponent(end));
|
|
42
|
+
return query;
|
|
43
|
+
}
|
|
44
44
|
//# sourceMappingURL=funcs.js.map
|
package/calendars/groups.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ICalendar, IEvents } from "./types.js";
|
|
2
|
-
declare module "../groups/types" {
|
|
3
|
-
interface _Group {
|
|
4
|
-
readonly calendar: ICalendar;
|
|
5
|
-
readonly attachmentFiles: ICalendar;
|
|
6
|
-
readonly events: IEvents;
|
|
7
|
-
}
|
|
8
|
-
interface IGroup {
|
|
9
|
-
readonly calendar: ICalendar;
|
|
10
|
-
readonly attachmentFiles: ICalendar;
|
|
11
|
-
readonly events: IEvents;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
1
|
+
import { ICalendar, IEvents } from "./types.js";
|
|
2
|
+
declare module "../groups/types" {
|
|
3
|
+
interface _Group {
|
|
4
|
+
readonly calendar: ICalendar;
|
|
5
|
+
readonly attachmentFiles: ICalendar;
|
|
6
|
+
readonly events: IEvents;
|
|
7
|
+
}
|
|
8
|
+
interface IGroup {
|
|
9
|
+
readonly calendar: ICalendar;
|
|
10
|
+
readonly attachmentFiles: ICalendar;
|
|
11
|
+
readonly events: IEvents;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=groups.d.ts.map
|
package/calendars/groups.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { addProp } from "@pnp/odata";
|
|
2
|
-
import { _Group } from "../groups/types.js";
|
|
3
|
-
import { Calendar, Events } from "./types.js";
|
|
4
|
-
addProp(_Group, "calendar", Calendar, "calendar");
|
|
5
|
-
addProp(_Group, "events", Events);
|
|
1
|
+
import { addProp } from "@pnp/odata";
|
|
2
|
+
import { _Group } from "../groups/types.js";
|
|
3
|
+
import { Calendar, Events } from "./types.js";
|
|
4
|
+
addProp(_Group, "calendar", Calendar, "calendar");
|
|
5
|
+
addProp(_Group, "events", Events);
|
|
6
6
|
//# sourceMappingURL=groups.js.map
|
package/calendars/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./groups.js";
|
|
2
|
-
import "./users.js";
|
|
3
|
-
export { Calendar, Calendars, Event, IEventAddResult, Events, ICalendar, ICalendars, IEvent, IEvents, } from "./types.js";
|
|
4
|
-
export { ICalendarViewInfo, } from "./funcs.js";
|
|
1
|
+
import "./groups.js";
|
|
2
|
+
import "./users.js";
|
|
3
|
+
export { Calendar, Calendars, Event, IEventAddResult, Events, ICalendar, ICalendars, IEvent, IEvents, } from "./types.js";
|
|
4
|
+
export { ICalendarViewInfo, } from "./funcs.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/calendars/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./groups.js";
|
|
2
|
-
import "./users.js";
|
|
3
|
-
export { Calendar, Calendars, Event, Events, } from "./types.js";
|
|
1
|
+
import "./groups.js";
|
|
2
|
+
import "./users.js";
|
|
3
|
+
export { Calendar, Calendars, Event, Events, } from "./types.js";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/calendars/types.d.ts
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { Event as IEventType, Calendar as ICalendarType } from "@microsoft/microsoft-graph-types";
|
|
2
|
-
import { _GraphQueryableCollection, _GraphQueryableInstance } from "../graphqueryable.js";
|
|
3
|
-
import { IDeleteable, IUpdateable, IGetById } from "../decorators.js";
|
|
4
|
-
import { calendarView, instances } from "./funcs.js";
|
|
5
|
-
/**
|
|
6
|
-
* Calendar
|
|
7
|
-
*/
|
|
8
|
-
export declare class _Calendar extends _GraphQueryableInstance<ICalendarType> {
|
|
9
|
-
get events(): IEvents;
|
|
10
|
-
calendarView: typeof calendarView;
|
|
11
|
-
}
|
|
12
|
-
export interface ICalendar extends _Calendar {
|
|
13
|
-
}
|
|
14
|
-
export declare const Calendar: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ICalendar & import("@pnp/odata").IInvokable<any>;
|
|
15
|
-
/**
|
|
16
|
-
* Calendars
|
|
17
|
-
*/
|
|
18
|
-
export declare class _Calendars extends _GraphQueryableCollection<ICalendarType[]> {
|
|
19
|
-
}
|
|
20
|
-
export interface ICalendars extends _Calendars, IGetById<ICalendar> {
|
|
21
|
-
}
|
|
22
|
-
export declare const Calendars: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ICalendars & import("@pnp/odata").IInvokable<any>;
|
|
23
|
-
/**
|
|
24
|
-
* Event
|
|
25
|
-
*/
|
|
26
|
-
export declare class _Event extends _GraphQueryableInstance<IEventType> {
|
|
27
|
-
instances: typeof instances;
|
|
28
|
-
}
|
|
29
|
-
export interface IEvent extends _Event, IDeleteable, IUpdateable {
|
|
30
|
-
}
|
|
31
|
-
export declare const Event: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IEvent & import("@pnp/odata").IInvokable<any>;
|
|
32
|
-
/**
|
|
33
|
-
* Events
|
|
34
|
-
*/
|
|
35
|
-
export declare class _Events extends _GraphQueryableCollection<IEventType[]> {
|
|
36
|
-
/**
|
|
37
|
-
* Adds a new event to the collection
|
|
38
|
-
*
|
|
39
|
-
* @param properties The set of properties used to create the event
|
|
40
|
-
*/
|
|
41
|
-
add(properties: IEventType): Promise<IEventAddResult>;
|
|
42
|
-
}
|
|
43
|
-
export interface IEvents extends _Events, IGetById<IEvent> {
|
|
44
|
-
}
|
|
45
|
-
export declare const Events: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IEvents & import("@pnp/odata").IInvokable<any>;
|
|
46
|
-
/**
|
|
47
|
-
* EventAddResult
|
|
48
|
-
*/
|
|
49
|
-
export interface IEventAddResult {
|
|
50
|
-
data: IEventType;
|
|
51
|
-
event: IEvent;
|
|
52
|
-
}
|
|
1
|
+
import { Event as IEventType, Calendar as ICalendarType } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import { _GraphQueryableCollection, _GraphQueryableInstance } from "../graphqueryable.js";
|
|
3
|
+
import { IDeleteable, IUpdateable, IGetById } from "../decorators.js";
|
|
4
|
+
import { calendarView, instances } from "./funcs.js";
|
|
5
|
+
/**
|
|
6
|
+
* Calendar
|
|
7
|
+
*/
|
|
8
|
+
export declare class _Calendar extends _GraphQueryableInstance<ICalendarType> {
|
|
9
|
+
get events(): IEvents;
|
|
10
|
+
calendarView: typeof calendarView;
|
|
11
|
+
}
|
|
12
|
+
export interface ICalendar extends _Calendar {
|
|
13
|
+
}
|
|
14
|
+
export declare const Calendar: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ICalendar & import("@pnp/odata").IInvokable<any>;
|
|
15
|
+
/**
|
|
16
|
+
* Calendars
|
|
17
|
+
*/
|
|
18
|
+
export declare class _Calendars extends _GraphQueryableCollection<ICalendarType[]> {
|
|
19
|
+
}
|
|
20
|
+
export interface ICalendars extends _Calendars, IGetById<ICalendar> {
|
|
21
|
+
}
|
|
22
|
+
export declare const Calendars: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ICalendars & import("@pnp/odata").IInvokable<any>;
|
|
23
|
+
/**
|
|
24
|
+
* Event
|
|
25
|
+
*/
|
|
26
|
+
export declare class _Event extends _GraphQueryableInstance<IEventType> {
|
|
27
|
+
instances: typeof instances;
|
|
28
|
+
}
|
|
29
|
+
export interface IEvent extends _Event, IDeleteable, IUpdateable {
|
|
30
|
+
}
|
|
31
|
+
export declare const Event: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IEvent & import("@pnp/odata").IInvokable<any>;
|
|
32
|
+
/**
|
|
33
|
+
* Events
|
|
34
|
+
*/
|
|
35
|
+
export declare class _Events extends _GraphQueryableCollection<IEventType[]> {
|
|
36
|
+
/**
|
|
37
|
+
* Adds a new event to the collection
|
|
38
|
+
*
|
|
39
|
+
* @param properties The set of properties used to create the event
|
|
40
|
+
*/
|
|
41
|
+
add(properties: IEventType): Promise<IEventAddResult>;
|
|
42
|
+
}
|
|
43
|
+
export interface IEvents extends _Events, IGetById<IEvent> {
|
|
44
|
+
}
|
|
45
|
+
export declare const Events: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IEvents & import("@pnp/odata").IInvokable<any>;
|
|
46
|
+
/**
|
|
47
|
+
* EventAddResult
|
|
48
|
+
*/
|
|
49
|
+
export interface IEventAddResult {
|
|
50
|
+
data: IEventType;
|
|
51
|
+
event: IEvent;
|
|
52
|
+
}
|
|
53
53
|
//# sourceMappingURL=types.d.ts.map
|
package/calendars/types.js
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
import { __awaiter, __decorate, __extends, __generator } from "tslib";
|
|
2
|
-
import { body } from "@pnp/odata";
|
|
3
|
-
import { _GraphQueryableCollection, _GraphQueryableInstance, graphInvokableFactory } from "../graphqueryable.js";
|
|
4
|
-
import { defaultPath, deleteable, updateable, getById } from "../decorators.js";
|
|
5
|
-
import { graphPost } from "../operations.js";
|
|
6
|
-
import { calendarView, instances } from "./funcs.js";
|
|
7
|
-
/**
|
|
8
|
-
* Calendar
|
|
9
|
-
*/
|
|
10
|
-
var _Calendar = /** @class */ (function (_super) {
|
|
11
|
-
__extends(_Calendar, _super);
|
|
12
|
-
function _Calendar() {
|
|
13
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
-
_this.calendarView = calendarView;
|
|
15
|
-
return _this;
|
|
16
|
-
}
|
|
17
|
-
Object.defineProperty(_Calendar.prototype, "events", {
|
|
18
|
-
get: function () {
|
|
19
|
-
return Events(this);
|
|
20
|
-
},
|
|
21
|
-
enumerable: false,
|
|
22
|
-
configurable: true
|
|
23
|
-
});
|
|
24
|
-
return _Calendar;
|
|
25
|
-
}(_GraphQueryableInstance));
|
|
26
|
-
export { _Calendar };
|
|
27
|
-
export var Calendar = graphInvokableFactory(_Calendar);
|
|
28
|
-
/**
|
|
29
|
-
* Calendars
|
|
30
|
-
*/
|
|
31
|
-
var _Calendars = /** @class */ (function (_super) {
|
|
32
|
-
__extends(_Calendars, _super);
|
|
33
|
-
function _Calendars() {
|
|
34
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
-
}
|
|
36
|
-
_Calendars = __decorate([
|
|
37
|
-
defaultPath("calendars"),
|
|
38
|
-
getById(Calendar)
|
|
39
|
-
], _Calendars);
|
|
40
|
-
return _Calendars;
|
|
41
|
-
}(_GraphQueryableCollection));
|
|
42
|
-
export { _Calendars };
|
|
43
|
-
export var Calendars = graphInvokableFactory(_Calendars);
|
|
44
|
-
/**
|
|
45
|
-
* Event
|
|
46
|
-
*/
|
|
47
|
-
var _Event = /** @class */ (function (_super) {
|
|
48
|
-
__extends(_Event, _super);
|
|
49
|
-
function _Event() {
|
|
50
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
51
|
-
_this.instances = instances;
|
|
52
|
-
return _this;
|
|
53
|
-
}
|
|
54
|
-
_Event = __decorate([
|
|
55
|
-
deleteable(),
|
|
56
|
-
updateable()
|
|
57
|
-
], _Event);
|
|
58
|
-
return _Event;
|
|
59
|
-
}(_GraphQueryableInstance));
|
|
60
|
-
export { _Event };
|
|
61
|
-
export var Event = graphInvokableFactory(_Event);
|
|
62
|
-
/**
|
|
63
|
-
* Events
|
|
64
|
-
*/
|
|
65
|
-
var _Events = /** @class */ (function (_super) {
|
|
66
|
-
__extends(_Events, _super);
|
|
67
|
-
function _Events() {
|
|
68
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Adds a new event to the collection
|
|
72
|
-
*
|
|
73
|
-
* @param properties The set of properties used to create the event
|
|
74
|
-
*/
|
|
75
|
-
_Events.prototype.add = function (properties) {
|
|
76
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
77
|
-
var data;
|
|
78
|
-
return __generator(this, function (_a) {
|
|
79
|
-
switch (_a.label) {
|
|
80
|
-
case 0: return [4 /*yield*/, graphPost(this, body(properties))];
|
|
81
|
-
case 1:
|
|
82
|
-
data = _a.sent();
|
|
83
|
-
return [2 /*return*/, {
|
|
84
|
-
data: data,
|
|
85
|
-
event: this.getById(data.id),
|
|
86
|
-
}];
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
_Events = __decorate([
|
|
92
|
-
defaultPath("events"),
|
|
93
|
-
getById(Event)
|
|
94
|
-
], _Events);
|
|
95
|
-
return _Events;
|
|
96
|
-
}(_GraphQueryableCollection));
|
|
97
|
-
export { _Events };
|
|
98
|
-
export var Events = graphInvokableFactory(_Events);
|
|
1
|
+
import { __awaiter, __decorate, __extends, __generator } from "tslib";
|
|
2
|
+
import { body } from "@pnp/odata";
|
|
3
|
+
import { _GraphQueryableCollection, _GraphQueryableInstance, graphInvokableFactory } from "../graphqueryable.js";
|
|
4
|
+
import { defaultPath, deleteable, updateable, getById } from "../decorators.js";
|
|
5
|
+
import { graphPost } from "../operations.js";
|
|
6
|
+
import { calendarView, instances } from "./funcs.js";
|
|
7
|
+
/**
|
|
8
|
+
* Calendar
|
|
9
|
+
*/
|
|
10
|
+
var _Calendar = /** @class */ (function (_super) {
|
|
11
|
+
__extends(_Calendar, _super);
|
|
12
|
+
function _Calendar() {
|
|
13
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
+
_this.calendarView = calendarView;
|
|
15
|
+
return _this;
|
|
16
|
+
}
|
|
17
|
+
Object.defineProperty(_Calendar.prototype, "events", {
|
|
18
|
+
get: function () {
|
|
19
|
+
return Events(this);
|
|
20
|
+
},
|
|
21
|
+
enumerable: false,
|
|
22
|
+
configurable: true
|
|
23
|
+
});
|
|
24
|
+
return _Calendar;
|
|
25
|
+
}(_GraphQueryableInstance));
|
|
26
|
+
export { _Calendar };
|
|
27
|
+
export var Calendar = graphInvokableFactory(_Calendar);
|
|
28
|
+
/**
|
|
29
|
+
* Calendars
|
|
30
|
+
*/
|
|
31
|
+
var _Calendars = /** @class */ (function (_super) {
|
|
32
|
+
__extends(_Calendars, _super);
|
|
33
|
+
function _Calendars() {
|
|
34
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
+
}
|
|
36
|
+
_Calendars = __decorate([
|
|
37
|
+
defaultPath("calendars"),
|
|
38
|
+
getById(Calendar)
|
|
39
|
+
], _Calendars);
|
|
40
|
+
return _Calendars;
|
|
41
|
+
}(_GraphQueryableCollection));
|
|
42
|
+
export { _Calendars };
|
|
43
|
+
export var Calendars = graphInvokableFactory(_Calendars);
|
|
44
|
+
/**
|
|
45
|
+
* Event
|
|
46
|
+
*/
|
|
47
|
+
var _Event = /** @class */ (function (_super) {
|
|
48
|
+
__extends(_Event, _super);
|
|
49
|
+
function _Event() {
|
|
50
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
51
|
+
_this.instances = instances;
|
|
52
|
+
return _this;
|
|
53
|
+
}
|
|
54
|
+
_Event = __decorate([
|
|
55
|
+
deleteable(),
|
|
56
|
+
updateable()
|
|
57
|
+
], _Event);
|
|
58
|
+
return _Event;
|
|
59
|
+
}(_GraphQueryableInstance));
|
|
60
|
+
export { _Event };
|
|
61
|
+
export var Event = graphInvokableFactory(_Event);
|
|
62
|
+
/**
|
|
63
|
+
* Events
|
|
64
|
+
*/
|
|
65
|
+
var _Events = /** @class */ (function (_super) {
|
|
66
|
+
__extends(_Events, _super);
|
|
67
|
+
function _Events() {
|
|
68
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Adds a new event to the collection
|
|
72
|
+
*
|
|
73
|
+
* @param properties The set of properties used to create the event
|
|
74
|
+
*/
|
|
75
|
+
_Events.prototype.add = function (properties) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
77
|
+
var data;
|
|
78
|
+
return __generator(this, function (_a) {
|
|
79
|
+
switch (_a.label) {
|
|
80
|
+
case 0: return [4 /*yield*/, graphPost(this, body(properties))];
|
|
81
|
+
case 1:
|
|
82
|
+
data = _a.sent();
|
|
83
|
+
return [2 /*return*/, {
|
|
84
|
+
data: data,
|
|
85
|
+
event: this.getById(data.id),
|
|
86
|
+
}];
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
_Events = __decorate([
|
|
92
|
+
defaultPath("events"),
|
|
93
|
+
getById(Event)
|
|
94
|
+
], _Events);
|
|
95
|
+
return _Events;
|
|
96
|
+
}(_GraphQueryableCollection));
|
|
97
|
+
export { _Events };
|
|
98
|
+
export var Events = graphInvokableFactory(_Events);
|
|
99
99
|
//# sourceMappingURL=types.js.map
|
package/calendars/users.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ICalendar, IEvents, ICalendars } from "./types.js";
|
|
2
|
-
import { ICalendarViewInfo } from "./funcs.js";
|
|
3
|
-
import { IGraphQueryableCollection } from "../graphqueryable.js";
|
|
4
|
-
import { EmailAddress } from "@microsoft/microsoft-graph-types";
|
|
5
|
-
declare module "../users/types" {
|
|
6
|
-
interface _User {
|
|
7
|
-
readonly calendar: ICalendar;
|
|
8
|
-
readonly calendars: ICalendars;
|
|
9
|
-
readonly attachmentFiles: ICalendar;
|
|
10
|
-
readonly events: IEvents;
|
|
11
|
-
calendarView(start: string, end: string): IGraphQueryableCollection<ICalendarViewInfo[]>;
|
|
12
|
-
findRooms(roomList?: string): IGraphQueryableCollection<EmailAddress[]>;
|
|
13
|
-
}
|
|
14
|
-
interface IUser {
|
|
15
|
-
readonly calendar: ICalendar;
|
|
16
|
-
readonly calendars: ICalendars;
|
|
17
|
-
readonly attachmentFiles: ICalendar;
|
|
18
|
-
readonly events: IEvents;
|
|
19
|
-
calendarView(start: string, end: string): IGraphQueryableCollection<ICalendarViewInfo[]>;
|
|
20
|
-
findRooms(roomList?: string): IGraphQueryableCollection<EmailAddress[]>;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
import { ICalendar, IEvents, ICalendars } from "./types.js";
|
|
2
|
+
import { ICalendarViewInfo } from "./funcs.js";
|
|
3
|
+
import { IGraphQueryableCollection } from "../graphqueryable.js";
|
|
4
|
+
import { EmailAddress } from "@microsoft/microsoft-graph-types";
|
|
5
|
+
declare module "../users/types" {
|
|
6
|
+
interface _User {
|
|
7
|
+
readonly calendar: ICalendar;
|
|
8
|
+
readonly calendars: ICalendars;
|
|
9
|
+
readonly attachmentFiles: ICalendar;
|
|
10
|
+
readonly events: IEvents;
|
|
11
|
+
calendarView(start: string, end: string): IGraphQueryableCollection<ICalendarViewInfo[]>;
|
|
12
|
+
findRooms(roomList?: string): IGraphQueryableCollection<EmailAddress[]>;
|
|
13
|
+
}
|
|
14
|
+
interface IUser {
|
|
15
|
+
readonly calendar: ICalendar;
|
|
16
|
+
readonly calendars: ICalendars;
|
|
17
|
+
readonly attachmentFiles: ICalendar;
|
|
18
|
+
readonly events: IEvents;
|
|
19
|
+
calendarView(start: string, end: string): IGraphQueryableCollection<ICalendarViewInfo[]>;
|
|
20
|
+
findRooms(roomList?: string): IGraphQueryableCollection<EmailAddress[]>;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
23
|
//# sourceMappingURL=users.d.ts.map
|
package/calendars/users.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { addProp } from "@pnp/odata";
|
|
2
|
-
import { _User } from "../users/types.js";
|
|
3
|
-
import { Calendar, Events, Calendars } from "./types.js";
|
|
4
|
-
import { calendarView, findRooms } from "./funcs.js";
|
|
5
|
-
addProp(_User, "calendar", Calendar, "calendar");
|
|
6
|
-
addProp(_User, "calendars", Calendars, "calendars");
|
|
7
|
-
addProp(_User, "events", Events);
|
|
8
|
-
_User.prototype.calendarView = calendarView;
|
|
9
|
-
_User.prototype.findRooms = findRooms;
|
|
1
|
+
import { addProp } from "@pnp/odata";
|
|
2
|
+
import { _User } from "../users/types.js";
|
|
3
|
+
import { Calendar, Events, Calendars } from "./types.js";
|
|
4
|
+
import { calendarView, findRooms } from "./funcs.js";
|
|
5
|
+
addProp(_User, "calendar", Calendar, "calendar");
|
|
6
|
+
addProp(_User, "calendars", Calendars, "calendars");
|
|
7
|
+
addProp(_User, "events", Events);
|
|
8
|
+
_User.prototype.calendarView = calendarView;
|
|
9
|
+
_User.prototype.findRooms = findRooms;
|
|
10
10
|
//# sourceMappingURL=users.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ICommunications } from "./types.js";
|
|
2
|
-
import "./users.js";
|
|
3
|
-
export { Presence, IPresence, Communications, ICommunications, } from "./types.js";
|
|
4
|
-
declare module "../rest" {
|
|
5
|
-
interface GraphRest {
|
|
6
|
-
readonly communications: ICommunications;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
import { ICommunications } from "./types.js";
|
|
2
|
+
import "./users.js";
|
|
3
|
+
export { Presence, IPresence, Communications, ICommunications, } from "./types.js";
|
|
4
|
+
declare module "../rest" {
|
|
5
|
+
interface GraphRest {
|
|
6
|
+
readonly communications: ICommunications;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { GraphRest } from "../rest.js";
|
|
2
|
-
import { Communications } from "./types.js";
|
|
3
|
-
import "./users.js";
|
|
4
|
-
export { Presence, Communications, } from "./types.js";
|
|
5
|
-
Reflect.defineProperty(GraphRest.prototype, "communications", {
|
|
6
|
-
configurable: true,
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return this.childConfigHook(function (_a) {
|
|
10
|
-
var options = _a.options, baseUrl = _a.baseUrl, runtime = _a.runtime;
|
|
11
|
-
return Communications(baseUrl).configure(options).setRuntime(runtime);
|
|
12
|
-
});
|
|
13
|
-
},
|
|
14
|
-
});
|
|
1
|
+
import { GraphRest } from "../rest.js";
|
|
2
|
+
import { Communications } from "./types.js";
|
|
3
|
+
import "./users.js";
|
|
4
|
+
export { Presence, Communications, } from "./types.js";
|
|
5
|
+
Reflect.defineProperty(GraphRest.prototype, "communications", {
|
|
6
|
+
configurable: true,
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return this.childConfigHook(function (_a) {
|
|
10
|
+
var options = _a.options, baseUrl = _a.baseUrl, runtime = _a.runtime;
|
|
11
|
+
return Communications(baseUrl).configure(options).setRuntime(runtime);
|
|
12
|
+
});
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
15
|
//# sourceMappingURL=index.js.map
|