@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/graphqueryable.d.ts
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
1
|
-
import { IFetchOptions } from "@pnp/common";
|
|
2
|
-
import { Queryable, IInvokable, IRequestContext } from "@pnp/odata";
|
|
3
|
-
export interface IGraphQueryableConstructor<T> {
|
|
4
|
-
new (baseUrl: string | IGraphQueryable, path?: string): T;
|
|
5
|
-
}
|
|
6
|
-
export declare const graphInvokableFactory: <R>(f: any) => (baseUrl: string | IGraphQueryable, path?: string) => R & IInvokable<any>;
|
|
7
|
-
/**
|
|
8
|
-
* Queryable Base Class
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
export declare class _GraphQueryable<GetType = any> extends Queryable<GetType> {
|
|
12
|
-
/**
|
|
13
|
-
* Creates a new instance of the Queryable class
|
|
14
|
-
*
|
|
15
|
-
* @constructor
|
|
16
|
-
* @param baseUrl A string or Queryable that should form the base part of the url
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
constructor(baseUrl: string | IGraphQueryable, path?: string);
|
|
20
|
-
/**
|
|
21
|
-
* Choose which fields to return
|
|
22
|
-
*
|
|
23
|
-
* @param selects One or more fields to return
|
|
24
|
-
*/
|
|
25
|
-
select(...selects: string[]): this;
|
|
26
|
-
/**
|
|
27
|
-
* Expands fields such as lookups to get additional data
|
|
28
|
-
*
|
|
29
|
-
* @param expands The Fields for which to expand the values
|
|
30
|
-
*/
|
|
31
|
-
expand(...expands: string[]): this;
|
|
32
|
-
defaultAction(options?: IFetchOptions): Promise<GetType>;
|
|
33
|
-
get<T = GetType>(options?: IFetchOptions): Promise<T>;
|
|
34
|
-
/**
|
|
35
|
-
* Gets the full url with query information
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
toUrlAndQuery(): string;
|
|
39
|
-
setEndpoint(endpoint: "beta" | "v1.0"): this;
|
|
40
|
-
/**
|
|
41
|
-
* Clones this queryable into a new queryable instance of T
|
|
42
|
-
* @param factory Constructor used to create the new instance
|
|
43
|
-
* @param additionalPath Any additional path to include in the clone
|
|
44
|
-
* @param includeBatch If true this instance's batch will be added to the cloned instance
|
|
45
|
-
* @param includeQuery If true all of the query values will be copied to the cloned instance
|
|
46
|
-
*/
|
|
47
|
-
clone<T extends IGraphQueryable>(factory: (...args: any[]) => T, additionalPath?: string, includeBatch?: boolean, includeQuery?: boolean): T;
|
|
48
|
-
/**
|
|
49
|
-
* Gets a parent for this instance as specified
|
|
50
|
-
*
|
|
51
|
-
* @param factory The contructor for the class to create
|
|
52
|
-
*/
|
|
53
|
-
protected getParent<T extends _GraphQueryable>(factory: IGraphQueryableConstructor<T>, baseUrl?: string | IGraphQueryable, path?: string): T;
|
|
54
|
-
/**
|
|
55
|
-
* Gets the current base url of this object (https://graph.microsoft.com/v1.0 or https://graph.microsoft.com/beta)
|
|
56
|
-
*/
|
|
57
|
-
protected getUrlBase(): string;
|
|
58
|
-
}
|
|
59
|
-
export interface IGraphQueryable<GetType = any> extends _GraphQueryable<GetType> {
|
|
60
|
-
}
|
|
61
|
-
export interface _GraphQueryable<GetType = any> {
|
|
62
|
-
<T = GetType>(options?: Partial<IRequestContext<T>>): Promise<T>;
|
|
63
|
-
}
|
|
64
|
-
export declare const GraphQueryable: (baseUrl: string | IGraphQueryable, path?: string) => IGraphQueryable<any> & IInvokable<any>;
|
|
65
|
-
/**
|
|
66
|
-
* Represents a REST collection which can be filtered, paged, and selected
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
export declare class _GraphQueryableCollection<GetType = any[]> extends _GraphQueryable<GetType> {
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @param filter The string representing the filter query
|
|
73
|
-
*/
|
|
74
|
-
filter(filter: string): this;
|
|
75
|
-
/**
|
|
76
|
-
* Orders based on the supplied fields
|
|
77
|
-
*
|
|
78
|
-
* @param orderby The name of the field on which to sort
|
|
79
|
-
* @param ascending If false DESC is appended, otherwise ASC (default)
|
|
80
|
-
*/
|
|
81
|
-
orderBy(orderBy: string, ascending?: boolean): this;
|
|
82
|
-
/**
|
|
83
|
-
* Limits the query to only return the specified number of items
|
|
84
|
-
*
|
|
85
|
-
* @param top The query row limit
|
|
86
|
-
*/
|
|
87
|
-
top(top: number): this;
|
|
88
|
-
/**
|
|
89
|
-
* Skips a set number of items in the return set
|
|
90
|
-
*
|
|
91
|
-
* @param num Number of items to skip
|
|
92
|
-
*/
|
|
93
|
-
skip(num: number): this;
|
|
94
|
-
/**
|
|
95
|
-
* To request second and subsequent pages of Graph data
|
|
96
|
-
*/
|
|
97
|
-
skipToken(token: string): this;
|
|
98
|
-
/**
|
|
99
|
-
* Retrieves the total count of matching resources
|
|
100
|
-
*/
|
|
101
|
-
get count(): this;
|
|
102
|
-
}
|
|
103
|
-
export interface IGraphQueryableCollection<GetType = any[]> extends IInvokable, IGraphQueryable<GetType> {
|
|
104
|
-
/**
|
|
105
|
-
* Retrieves the total count of matching resources
|
|
106
|
-
*/
|
|
107
|
-
count: this;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @param filter The string representing the filter query
|
|
111
|
-
*/
|
|
112
|
-
filter(filter: string): this;
|
|
113
|
-
/**
|
|
114
|
-
* Orders based on the supplied fields
|
|
115
|
-
*
|
|
116
|
-
* @param orderby The name of the field on which to sort
|
|
117
|
-
* @param ascending If false DESC is appended, otherwise ASC (default)
|
|
118
|
-
*/
|
|
119
|
-
orderBy(orderBy: string, ascending?: boolean): this;
|
|
120
|
-
/**
|
|
121
|
-
* Limits the query to only return the specified number of items
|
|
122
|
-
*
|
|
123
|
-
* @param top The query row limit
|
|
124
|
-
*/
|
|
125
|
-
top(top: number): this;
|
|
126
|
-
/**
|
|
127
|
-
* Skips a set number of items in the return set
|
|
128
|
-
*
|
|
129
|
-
* @param num Number of items to skip
|
|
130
|
-
*/
|
|
131
|
-
skip(num: number): this;
|
|
132
|
-
/**
|
|
133
|
-
* To request second and subsequent pages of Graph data
|
|
134
|
-
*/
|
|
135
|
-
skipToken(token: string): this;
|
|
136
|
-
}
|
|
137
|
-
export declare const GraphQueryableCollection: (baseUrl: string | IGraphQueryable, path?: string) => IGraphQueryableCollection<any[]> & IInvokable<any>;
|
|
138
|
-
export declare class _GraphQueryableSearchableCollection<GetType = any[]> extends _GraphQueryableCollection<GetType> {
|
|
139
|
-
/**
|
|
140
|
-
* To request second and subsequent pages of Graph data
|
|
141
|
-
*/
|
|
142
|
-
search(query: string): this;
|
|
143
|
-
}
|
|
144
|
-
export interface IGraphQueryableSearchableCollection<GetType = any> extends IInvokable, IGraphQueryable<GetType> {
|
|
145
|
-
search(query: string): this;
|
|
146
|
-
}
|
|
147
|
-
export declare const GraphQueryableSearchableCollection: (baseUrl: string | IGraphQueryable, path?: string) => IGraphQueryableSearchableCollection<any> & IInvokable<any>;
|
|
148
|
-
/**
|
|
149
|
-
* Represents an instance that can be selected
|
|
150
|
-
*
|
|
151
|
-
*/
|
|
152
|
-
export declare class _GraphQueryableInstance<GetType = any> extends _GraphQueryable<GetType> {
|
|
153
|
-
}
|
|
154
|
-
export interface IGraphQueryableInstance<GetType = any> extends IInvokable, IGraphQueryable<GetType> {
|
|
155
|
-
}
|
|
156
|
-
export declare const GraphQueryableInstance: (baseUrl: string | IGraphQueryable, path?: string) => IGraphQueryableInstance<any> & IInvokable<any>;
|
|
1
|
+
import { IFetchOptions } from "@pnp/common";
|
|
2
|
+
import { Queryable, IInvokable, IRequestContext } from "@pnp/odata";
|
|
3
|
+
export interface IGraphQueryableConstructor<T> {
|
|
4
|
+
new (baseUrl: string | IGraphQueryable, path?: string): T;
|
|
5
|
+
}
|
|
6
|
+
export declare const graphInvokableFactory: <R>(f: any) => (baseUrl: string | IGraphQueryable, path?: string) => R & IInvokable<any>;
|
|
7
|
+
/**
|
|
8
|
+
* Queryable Base Class
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export declare class _GraphQueryable<GetType = any> extends Queryable<GetType> {
|
|
12
|
+
/**
|
|
13
|
+
* Creates a new instance of the Queryable class
|
|
14
|
+
*
|
|
15
|
+
* @constructor
|
|
16
|
+
* @param baseUrl A string or Queryable that should form the base part of the url
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
constructor(baseUrl: string | IGraphQueryable, path?: string);
|
|
20
|
+
/**
|
|
21
|
+
* Choose which fields to return
|
|
22
|
+
*
|
|
23
|
+
* @param selects One or more fields to return
|
|
24
|
+
*/
|
|
25
|
+
select(...selects: string[]): this;
|
|
26
|
+
/**
|
|
27
|
+
* Expands fields such as lookups to get additional data
|
|
28
|
+
*
|
|
29
|
+
* @param expands The Fields for which to expand the values
|
|
30
|
+
*/
|
|
31
|
+
expand(...expands: string[]): this;
|
|
32
|
+
defaultAction(options?: IFetchOptions): Promise<GetType>;
|
|
33
|
+
get<T = GetType>(options?: IFetchOptions): Promise<T>;
|
|
34
|
+
/**
|
|
35
|
+
* Gets the full url with query information
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
toUrlAndQuery(): string;
|
|
39
|
+
setEndpoint(endpoint: "beta" | "v1.0"): this;
|
|
40
|
+
/**
|
|
41
|
+
* Clones this queryable into a new queryable instance of T
|
|
42
|
+
* @param factory Constructor used to create the new instance
|
|
43
|
+
* @param additionalPath Any additional path to include in the clone
|
|
44
|
+
* @param includeBatch If true this instance's batch will be added to the cloned instance
|
|
45
|
+
* @param includeQuery If true all of the query values will be copied to the cloned instance
|
|
46
|
+
*/
|
|
47
|
+
clone<T extends IGraphQueryable>(factory: (...args: any[]) => T, additionalPath?: string, includeBatch?: boolean, includeQuery?: boolean): T;
|
|
48
|
+
/**
|
|
49
|
+
* Gets a parent for this instance as specified
|
|
50
|
+
*
|
|
51
|
+
* @param factory The contructor for the class to create
|
|
52
|
+
*/
|
|
53
|
+
protected getParent<T extends _GraphQueryable>(factory: IGraphQueryableConstructor<T>, baseUrl?: string | IGraphQueryable, path?: string): T;
|
|
54
|
+
/**
|
|
55
|
+
* Gets the current base url of this object (https://graph.microsoft.com/v1.0 or https://graph.microsoft.com/beta)
|
|
56
|
+
*/
|
|
57
|
+
protected getUrlBase(): string;
|
|
58
|
+
}
|
|
59
|
+
export interface IGraphQueryable<GetType = any> extends _GraphQueryable<GetType> {
|
|
60
|
+
}
|
|
61
|
+
export interface _GraphQueryable<GetType = any> {
|
|
62
|
+
<T = GetType>(options?: Partial<IRequestContext<T>>): Promise<T>;
|
|
63
|
+
}
|
|
64
|
+
export declare const GraphQueryable: (baseUrl: string | IGraphQueryable, path?: string) => IGraphQueryable<any> & IInvokable<any>;
|
|
65
|
+
/**
|
|
66
|
+
* Represents a REST collection which can be filtered, paged, and selected
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
export declare class _GraphQueryableCollection<GetType = any[]> extends _GraphQueryable<GetType> {
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @param filter The string representing the filter query
|
|
73
|
+
*/
|
|
74
|
+
filter(filter: string): this;
|
|
75
|
+
/**
|
|
76
|
+
* Orders based on the supplied fields
|
|
77
|
+
*
|
|
78
|
+
* @param orderby The name of the field on which to sort
|
|
79
|
+
* @param ascending If false DESC is appended, otherwise ASC (default)
|
|
80
|
+
*/
|
|
81
|
+
orderBy(orderBy: string, ascending?: boolean): this;
|
|
82
|
+
/**
|
|
83
|
+
* Limits the query to only return the specified number of items
|
|
84
|
+
*
|
|
85
|
+
* @param top The query row limit
|
|
86
|
+
*/
|
|
87
|
+
top(top: number): this;
|
|
88
|
+
/**
|
|
89
|
+
* Skips a set number of items in the return set
|
|
90
|
+
*
|
|
91
|
+
* @param num Number of items to skip
|
|
92
|
+
*/
|
|
93
|
+
skip(num: number): this;
|
|
94
|
+
/**
|
|
95
|
+
* To request second and subsequent pages of Graph data
|
|
96
|
+
*/
|
|
97
|
+
skipToken(token: string): this;
|
|
98
|
+
/**
|
|
99
|
+
* Retrieves the total count of matching resources
|
|
100
|
+
*/
|
|
101
|
+
get count(): this;
|
|
102
|
+
}
|
|
103
|
+
export interface IGraphQueryableCollection<GetType = any[]> extends IInvokable, IGraphQueryable<GetType> {
|
|
104
|
+
/**
|
|
105
|
+
* Retrieves the total count of matching resources
|
|
106
|
+
*/
|
|
107
|
+
count: this;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @param filter The string representing the filter query
|
|
111
|
+
*/
|
|
112
|
+
filter(filter: string): this;
|
|
113
|
+
/**
|
|
114
|
+
* Orders based on the supplied fields
|
|
115
|
+
*
|
|
116
|
+
* @param orderby The name of the field on which to sort
|
|
117
|
+
* @param ascending If false DESC is appended, otherwise ASC (default)
|
|
118
|
+
*/
|
|
119
|
+
orderBy(orderBy: string, ascending?: boolean): this;
|
|
120
|
+
/**
|
|
121
|
+
* Limits the query to only return the specified number of items
|
|
122
|
+
*
|
|
123
|
+
* @param top The query row limit
|
|
124
|
+
*/
|
|
125
|
+
top(top: number): this;
|
|
126
|
+
/**
|
|
127
|
+
* Skips a set number of items in the return set
|
|
128
|
+
*
|
|
129
|
+
* @param num Number of items to skip
|
|
130
|
+
*/
|
|
131
|
+
skip(num: number): this;
|
|
132
|
+
/**
|
|
133
|
+
* To request second and subsequent pages of Graph data
|
|
134
|
+
*/
|
|
135
|
+
skipToken(token: string): this;
|
|
136
|
+
}
|
|
137
|
+
export declare const GraphQueryableCollection: (baseUrl: string | IGraphQueryable, path?: string) => IGraphQueryableCollection<any[]> & IInvokable<any>;
|
|
138
|
+
export declare class _GraphQueryableSearchableCollection<GetType = any[]> extends _GraphQueryableCollection<GetType> {
|
|
139
|
+
/**
|
|
140
|
+
* To request second and subsequent pages of Graph data
|
|
141
|
+
*/
|
|
142
|
+
search(query: string): this;
|
|
143
|
+
}
|
|
144
|
+
export interface IGraphQueryableSearchableCollection<GetType = any> extends IInvokable, IGraphQueryable<GetType> {
|
|
145
|
+
search(query: string): this;
|
|
146
|
+
}
|
|
147
|
+
export declare const GraphQueryableSearchableCollection: (baseUrl: string | IGraphQueryable, path?: string) => IGraphQueryableSearchableCollection<any> & IInvokable<any>;
|
|
148
|
+
/**
|
|
149
|
+
* Represents an instance that can be selected
|
|
150
|
+
*
|
|
151
|
+
*/
|
|
152
|
+
export declare class _GraphQueryableInstance<GetType = any> extends _GraphQueryable<GetType> {
|
|
153
|
+
}
|
|
154
|
+
export interface IGraphQueryableInstance<GetType = any> extends IInvokable, IGraphQueryable<GetType> {
|
|
155
|
+
}
|
|
156
|
+
export declare const GraphQueryableInstance: (baseUrl: string | IGraphQueryable, path?: string) => IGraphQueryableInstance<any> & IInvokable<any>;
|
|
157
157
|
//# sourceMappingURL=graphqueryable.d.ts.map
|