@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/onedrive/types.d.ts
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import { _GraphQueryableInstance, IGraphQueryableInstance, IGraphQueryableCollection, _GraphQueryableCollection } from "../graphqueryable.js";
|
|
2
|
-
import { Drive as IDriveType } from "@microsoft/microsoft-graph-types";
|
|
3
|
-
import { IGetById, IDeleteable, IUpdateable } from "../decorators.js";
|
|
4
|
-
/**
|
|
5
|
-
* Describes a Drive instance
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export declare class _Drive extends _GraphQueryableInstance<IDriveType> {
|
|
9
|
-
get root(): IRoot;
|
|
10
|
-
get list(): IGraphQueryableInstance;
|
|
11
|
-
get recent(): IDriveItems;
|
|
12
|
-
get sharedWithMe(): IDriveItems;
|
|
13
|
-
getItemById(id: string): IDriveItem;
|
|
14
|
-
}
|
|
15
|
-
export interface IDrive extends _Drive {
|
|
16
|
-
}
|
|
17
|
-
export declare const Drive: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IDrive & import("@pnp/odata").IInvokable<any>;
|
|
18
|
-
/**
|
|
19
|
-
* Describes a collection of Drive objects
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
export declare class _Drives extends _GraphQueryableCollection<IDriveType[]> {
|
|
23
|
-
getById(id: string): IDrive;
|
|
24
|
-
}
|
|
25
|
-
export interface IDrives extends _Drives, IGetById<IDrive> {
|
|
26
|
-
}
|
|
27
|
-
export declare const Drives: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IDrives & import("@pnp/odata").IInvokable<any>;
|
|
28
|
-
/**
|
|
29
|
-
* Describes a Root instance
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
export declare class _Root extends _GraphQueryableInstance<IDrive> {
|
|
33
|
-
get children(): IDriveItems;
|
|
34
|
-
search(query: string): Promise<any>;
|
|
35
|
-
get thumbnails(): IGraphQueryableCollection;
|
|
36
|
-
}
|
|
37
|
-
export interface IRoot extends _Root {
|
|
38
|
-
}
|
|
39
|
-
export declare const Root: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IRoot & import("@pnp/odata").IInvokable<any>;
|
|
40
|
-
/**
|
|
41
|
-
* Describes a Drive Item instance
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export declare class _DriveItem extends _GraphQueryableInstance<any> {
|
|
45
|
-
get children(): IDriveItems;
|
|
46
|
-
get thumbnails(): IGraphQueryableCollection;
|
|
47
|
-
get versions(): IGraphQueryableCollection<IDriveItemVersionInfo>;
|
|
48
|
-
move(parentReference: {
|
|
49
|
-
id: "string";
|
|
50
|
-
}, name: string): Promise<void>;
|
|
51
|
-
getContent(): Promise<Blob>;
|
|
52
|
-
setContent(content: any): Promise<{
|
|
53
|
-
id: string;
|
|
54
|
-
name: string;
|
|
55
|
-
size: number;
|
|
56
|
-
}>;
|
|
57
|
-
}
|
|
58
|
-
export interface IDriveItem extends _DriveItem, IDeleteable, IUpdateable {
|
|
59
|
-
}
|
|
60
|
-
export declare const DriveItem: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IDriveItem & import("@pnp/odata").IInvokable<any>;
|
|
61
|
-
/**
|
|
62
|
-
* Describes a collection of Drive Item objects
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
65
|
-
export declare class _DriveItems extends _GraphQueryableCollection {
|
|
66
|
-
add(filename: string, content: string): Promise<IDriveItemAddResult>;
|
|
67
|
-
/**
|
|
68
|
-
* Adds a folder to this collection of drive items
|
|
69
|
-
*
|
|
70
|
-
* @param name Name of the new folder
|
|
71
|
-
* @returns result with folder data and chainable drive item object
|
|
72
|
-
*/
|
|
73
|
-
addFolder(name: string): Promise<IDriveItemAddResult>;
|
|
74
|
-
}
|
|
75
|
-
export interface IDriveItems extends _DriveItems, IGetById<IDriveItem> {
|
|
76
|
-
}
|
|
77
|
-
export declare const DriveItems: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IDriveItems & import("@pnp/odata").IInvokable<any>;
|
|
78
|
-
/**
|
|
79
|
-
* IDriveItemAddResult
|
|
80
|
-
*/
|
|
81
|
-
export interface IDriveItemAddResult {
|
|
82
|
-
data: any;
|
|
83
|
-
driveItem: IDriveItem;
|
|
84
|
-
}
|
|
85
|
-
export interface IDriveItemVersionInfo {
|
|
86
|
-
id: string;
|
|
87
|
-
lastModifiedBy: {
|
|
88
|
-
user: {
|
|
89
|
-
id: string;
|
|
90
|
-
displayName: string;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
lastModifiedDateTime: string;
|
|
94
|
-
size: number;
|
|
95
|
-
}
|
|
1
|
+
import { _GraphQueryableInstance, IGraphQueryableInstance, IGraphQueryableCollection, _GraphQueryableCollection } from "../graphqueryable.js";
|
|
2
|
+
import { Drive as IDriveType } from "@microsoft/microsoft-graph-types";
|
|
3
|
+
import { IGetById, IDeleteable, IUpdateable } from "../decorators.js";
|
|
4
|
+
/**
|
|
5
|
+
* Describes a Drive instance
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare class _Drive extends _GraphQueryableInstance<IDriveType> {
|
|
9
|
+
get root(): IRoot;
|
|
10
|
+
get list(): IGraphQueryableInstance;
|
|
11
|
+
get recent(): IDriveItems;
|
|
12
|
+
get sharedWithMe(): IDriveItems;
|
|
13
|
+
getItemById(id: string): IDriveItem;
|
|
14
|
+
}
|
|
15
|
+
export interface IDrive extends _Drive {
|
|
16
|
+
}
|
|
17
|
+
export declare const Drive: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IDrive & import("@pnp/odata").IInvokable<any>;
|
|
18
|
+
/**
|
|
19
|
+
* Describes a collection of Drive objects
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare class _Drives extends _GraphQueryableCollection<IDriveType[]> {
|
|
23
|
+
getById(id: string): IDrive;
|
|
24
|
+
}
|
|
25
|
+
export interface IDrives extends _Drives, IGetById<IDrive> {
|
|
26
|
+
}
|
|
27
|
+
export declare const Drives: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IDrives & import("@pnp/odata").IInvokable<any>;
|
|
28
|
+
/**
|
|
29
|
+
* Describes a Root instance
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export declare class _Root extends _GraphQueryableInstance<IDrive> {
|
|
33
|
+
get children(): IDriveItems;
|
|
34
|
+
search(query: string): Promise<any>;
|
|
35
|
+
get thumbnails(): IGraphQueryableCollection;
|
|
36
|
+
}
|
|
37
|
+
export interface IRoot extends _Root {
|
|
38
|
+
}
|
|
39
|
+
export declare const Root: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IRoot & import("@pnp/odata").IInvokable<any>;
|
|
40
|
+
/**
|
|
41
|
+
* Describes a Drive Item instance
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
export declare class _DriveItem extends _GraphQueryableInstance<any> {
|
|
45
|
+
get children(): IDriveItems;
|
|
46
|
+
get thumbnails(): IGraphQueryableCollection;
|
|
47
|
+
get versions(): IGraphQueryableCollection<IDriveItemVersionInfo>;
|
|
48
|
+
move(parentReference: {
|
|
49
|
+
id: "string";
|
|
50
|
+
}, name: string): Promise<void>;
|
|
51
|
+
getContent(): Promise<Blob>;
|
|
52
|
+
setContent(content: any): Promise<{
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
size: number;
|
|
56
|
+
}>;
|
|
57
|
+
}
|
|
58
|
+
export interface IDriveItem extends _DriveItem, IDeleteable, IUpdateable {
|
|
59
|
+
}
|
|
60
|
+
export declare const DriveItem: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IDriveItem & import("@pnp/odata").IInvokable<any>;
|
|
61
|
+
/**
|
|
62
|
+
* Describes a collection of Drive Item objects
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
export declare class _DriveItems extends _GraphQueryableCollection {
|
|
66
|
+
add(filename: string, content: string): Promise<IDriveItemAddResult>;
|
|
67
|
+
/**
|
|
68
|
+
* Adds a folder to this collection of drive items
|
|
69
|
+
*
|
|
70
|
+
* @param name Name of the new folder
|
|
71
|
+
* @returns result with folder data and chainable drive item object
|
|
72
|
+
*/
|
|
73
|
+
addFolder(name: string): Promise<IDriveItemAddResult>;
|
|
74
|
+
}
|
|
75
|
+
export interface IDriveItems extends _DriveItems, IGetById<IDriveItem> {
|
|
76
|
+
}
|
|
77
|
+
export declare const DriveItems: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IDriveItems & import("@pnp/odata").IInvokable<any>;
|
|
78
|
+
/**
|
|
79
|
+
* IDriveItemAddResult
|
|
80
|
+
*/
|
|
81
|
+
export interface IDriveItemAddResult {
|
|
82
|
+
data: any;
|
|
83
|
+
driveItem: IDriveItem;
|
|
84
|
+
}
|
|
85
|
+
export interface IDriveItemVersionInfo {
|
|
86
|
+
id: string;
|
|
87
|
+
lastModifiedBy: {
|
|
88
|
+
user: {
|
|
89
|
+
id: string;
|
|
90
|
+
displayName: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
lastModifiedDateTime: string;
|
|
94
|
+
size: number;
|
|
95
|
+
}
|
|
96
96
|
//# sourceMappingURL=types.d.ts.map
|