@pnp/graph 2.7.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 -24
- package/calendars/funcs.d.ts.map +1 -1
- package/calendars/funcs.js +43 -29
- package/calendars/funcs.js.map +1 -1
- 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 -51
- package/calendars/types.d.ts.map +1 -1
- package/calendars/types.js +98 -96
- package/calendars/types.js.map +1 -1
- 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.d.ts.map +1 -1
- package/graphqueryable.js +247 -237
- package/graphqueryable.js.map +1 -1
- package/groups/index.d.ts +7 -7
- package/groups/index.js +13 -13
- package/groups/types.d.ts +81 -81
- package/groups/types.d.ts.map +1 -1
- package/groups/types.js +137 -137
- package/groups/types.js.map +1 -1
- 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.d.ts.map +1 -1
- package/messages/types.js +77 -77
- package/messages/types.js.map +1 -1
- 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 -87
- package/onedrive/types.d.ts.map +1 -1
- package/onedrive/types.js +241 -192
- package/onedrive/types.js.map +1 -1
- 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.d.ts.map +1 -1
- package/users/types.js +82 -82
- package/users/types.js.map +1 -1
- 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.js
CHANGED
|
@@ -1,238 +1,248 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { combine } from "@pnp/common";
|
|
3
|
-
import { Queryable, invokableFactory } from "@pnp/odata";
|
|
4
|
-
import { GraphEndpoints } from "./types.js";
|
|
5
|
-
import { graphGet } from "./operations.js";
|
|
6
|
-
export var graphInvokableFactory = function (f) {
|
|
7
|
-
return invokableFactory(f);
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Queryable Base Class
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
var _GraphQueryable = /** @class */ (function (_super) {
|
|
14
|
-
__extends(_GraphQueryable, _super);
|
|
15
|
-
/**
|
|
16
|
-
* Creates a new instance of the Queryable class
|
|
17
|
-
*
|
|
18
|
-
* @constructor
|
|
19
|
-
* @param baseUrl A string or Queryable that should form the base part of the url
|
|
20
|
-
*
|
|
21
|
-
*/
|
|
22
|
-
function _GraphQueryable(baseUrl, path) {
|
|
23
|
-
var _this = this;
|
|
24
|
-
var url = "";
|
|
25
|
-
var parentUrl = "";
|
|
26
|
-
var query = new Map();
|
|
27
|
-
if (typeof baseUrl === "string") {
|
|
28
|
-
parentUrl = baseUrl;
|
|
29
|
-
url = combine(parentUrl, path);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
parentUrl = baseUrl.toUrl();
|
|
33
|
-
url = combine(parentUrl, path);
|
|
34
|
-
}
|
|
35
|
-
_this = _super.call(this, {
|
|
36
|
-
parentUrl: parentUrl,
|
|
37
|
-
query: query,
|
|
38
|
-
url: url,
|
|
39
|
-
}) || this;
|
|
40
|
-
// post init actions
|
|
41
|
-
if (typeof baseUrl !== "string") {
|
|
42
|
-
_this.configureFrom(baseUrl);
|
|
43
|
-
}
|
|
44
|
-
return _this;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Choose which fields to return
|
|
48
|
-
*
|
|
49
|
-
* @param selects One or more fields to return
|
|
50
|
-
*/
|
|
51
|
-
_GraphQueryable.prototype.select = function () {
|
|
52
|
-
var selects = [];
|
|
53
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
54
|
-
selects[_i] = arguments[_i];
|
|
55
|
-
}
|
|
56
|
-
if (selects.length > 0) {
|
|
57
|
-
this.query.set("$select", selects.map(encodeURIComponent).join(","));
|
|
58
|
-
}
|
|
59
|
-
return this;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Expands fields such as lookups to get additional data
|
|
63
|
-
*
|
|
64
|
-
* @param expands The Fields for which to expand the values
|
|
65
|
-
*/
|
|
66
|
-
_GraphQueryable.prototype.expand = function () {
|
|
67
|
-
var expands = [];
|
|
68
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
69
|
-
expands[_i] = arguments[_i];
|
|
70
|
-
}
|
|
71
|
-
if (expands.length > 0) {
|
|
72
|
-
this.query.set("$expand", expands.map(encodeURIComponent).join(","));
|
|
73
|
-
}
|
|
74
|
-
return this;
|
|
75
|
-
};
|
|
76
|
-
_GraphQueryable.prototype.defaultAction = function (options) {
|
|
77
|
-
return graphGet(this, options);
|
|
78
|
-
};
|
|
79
|
-
_GraphQueryable.prototype.get = function (options) {
|
|
80
|
-
return graphGet(this, options);
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* Gets the full url with query information
|
|
84
|
-
*
|
|
85
|
-
*/
|
|
86
|
-
_GraphQueryable.prototype.toUrlAndQuery = function () {
|
|
87
|
-
var url = this.toUrl();
|
|
88
|
-
if (this.query.size > 0) {
|
|
89
|
-
var char = url.indexOf("?") > -1 ? "&" : "?";
|
|
90
|
-
url += "" + char + Array.from(this.query).map(function (v) { return v[0] + "=" + v[1]; }).join("&");
|
|
91
|
-
}
|
|
92
|
-
return url;
|
|
93
|
-
};
|
|
94
|
-
_GraphQueryable.prototype.setEndpoint = function (endpoint) {
|
|
95
|
-
this.data.url = GraphEndpoints.ensure(this.data.url, endpoint);
|
|
96
|
-
return this;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Clones this queryable into a new queryable instance of T
|
|
100
|
-
* @param factory Constructor used to create the new instance
|
|
101
|
-
* @param additionalPath Any additional path to include in the clone
|
|
102
|
-
* @param includeBatch If true this instance's batch will be added to the cloned instance
|
|
103
|
-
* @param includeQuery If true all of the query values will be copied to the cloned instance
|
|
104
|
-
*/
|
|
105
|
-
_GraphQueryable.prototype.clone = function (factory, additionalPath, includeBatch, includeQuery) {
|
|
106
|
-
if (includeBatch === void 0) { includeBatch = true; }
|
|
107
|
-
if (includeQuery === void 0) { includeQuery = false; }
|
|
108
|
-
return _super.prototype.cloneTo.call(this, factory(this, additionalPath), { includeBatch: includeBatch, includeQuery: includeQuery });
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Gets a parent for this instance as specified
|
|
112
|
-
*
|
|
113
|
-
* @param factory The contructor for the class to create
|
|
114
|
-
*/
|
|
115
|
-
_GraphQueryable.prototype.getParent = function (factory, baseUrl, path) {
|
|
116
|
-
if (baseUrl === void 0) { baseUrl = this.parentUrl; }
|
|
117
|
-
return new factory(baseUrl, path);
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Gets the current base url of this object (https://graph.microsoft.com/v1.0 or https://graph.microsoft.com/beta)
|
|
121
|
-
*/
|
|
122
|
-
_GraphQueryable.prototype.getUrlBase = function () {
|
|
123
|
-
var url = this.toUrl();
|
|
124
|
-
var index = url.indexOf("v1.0/");
|
|
125
|
-
if (index > -1) {
|
|
126
|
-
return url.substring(0, index + 5);
|
|
127
|
-
}
|
|
128
|
-
index = url.indexOf("beta/");
|
|
129
|
-
if (index > -1) {
|
|
130
|
-
return url.substring(0, index + 5);
|
|
131
|
-
}
|
|
132
|
-
return url;
|
|
133
|
-
};
|
|
134
|
-
return _GraphQueryable;
|
|
135
|
-
}(Queryable));
|
|
136
|
-
export { _GraphQueryable };
|
|
137
|
-
export var GraphQueryable = graphInvokableFactory(_GraphQueryable);
|
|
138
|
-
/**
|
|
139
|
-
* Represents a REST collection which can be filtered, paged, and selected
|
|
140
|
-
*
|
|
141
|
-
*/
|
|
142
|
-
var _GraphQueryableCollection = /** @class */ (function (_super) {
|
|
143
|
-
__extends(_GraphQueryableCollection, _super);
|
|
144
|
-
function _GraphQueryableCollection() {
|
|
145
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
* @param filter The string representing the filter query
|
|
150
|
-
*/
|
|
151
|
-
_GraphQueryableCollection.prototype.filter = function (filter) {
|
|
152
|
-
this.query.set("$filter", filter);
|
|
153
|
-
return this;
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* Orders based on the supplied fields
|
|
157
|
-
*
|
|
158
|
-
* @param orderby The name of the field on which to sort
|
|
159
|
-
* @param ascending If false DESC is appended, otherwise ASC (default)
|
|
160
|
-
*/
|
|
161
|
-
_GraphQueryableCollection.prototype.orderBy = function (orderBy, ascending) {
|
|
162
|
-
if (ascending === void 0) { ascending = true; }
|
|
163
|
-
var o = "$orderby";
|
|
164
|
-
var query = this.query.has(o) ? this.query.get(o).split(",") : [];
|
|
165
|
-
query.push(encodeURIComponent(orderBy) + " " + (ascending ? "asc" : "desc"));
|
|
166
|
-
this.query.set(o, query.join(","));
|
|
167
|
-
return this;
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* Limits the query to only return the specified number of items
|
|
171
|
-
*
|
|
172
|
-
* @param top The query row limit
|
|
173
|
-
*/
|
|
174
|
-
_GraphQueryableCollection.prototype.top = function (top) {
|
|
175
|
-
this.query.set("$top", top.toString());
|
|
176
|
-
return this;
|
|
177
|
-
};
|
|
178
|
-
/**
|
|
179
|
-
* Skips a set number of items in the return set
|
|
180
|
-
*
|
|
181
|
-
* @param num Number of items to skip
|
|
182
|
-
*/
|
|
183
|
-
_GraphQueryableCollection.prototype.skip = function (num) {
|
|
184
|
-
this.query.set("$skip", num.toString());
|
|
185
|
-
return this;
|
|
186
|
-
};
|
|
187
|
-
/**
|
|
188
|
-
* To request second and subsequent pages of Graph data
|
|
189
|
-
*/
|
|
190
|
-
_GraphQueryableCollection.prototype.skipToken = function (token) {
|
|
191
|
-
this.query.set("$skiptoken", token);
|
|
192
|
-
return this;
|
|
193
|
-
};
|
|
194
|
-
Object.defineProperty(_GraphQueryableCollection.prototype, "count", {
|
|
195
|
-
/**
|
|
196
|
-
* Retrieves the total count of matching resources
|
|
197
|
-
*/
|
|
198
|
-
get: function () {
|
|
199
|
-
this.
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { combine } from "@pnp/common";
|
|
3
|
+
import { Queryable, invokableFactory } from "@pnp/odata";
|
|
4
|
+
import { GraphEndpoints } from "./types.js";
|
|
5
|
+
import { graphGet } from "./operations.js";
|
|
6
|
+
export var graphInvokableFactory = function (f) {
|
|
7
|
+
return invokableFactory(f);
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Queryable Base Class
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
var _GraphQueryable = /** @class */ (function (_super) {
|
|
14
|
+
__extends(_GraphQueryable, _super);
|
|
15
|
+
/**
|
|
16
|
+
* Creates a new instance of the Queryable class
|
|
17
|
+
*
|
|
18
|
+
* @constructor
|
|
19
|
+
* @param baseUrl A string or Queryable that should form the base part of the url
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
function _GraphQueryable(baseUrl, path) {
|
|
23
|
+
var _this = this;
|
|
24
|
+
var url = "";
|
|
25
|
+
var parentUrl = "";
|
|
26
|
+
var query = new Map();
|
|
27
|
+
if (typeof baseUrl === "string") {
|
|
28
|
+
parentUrl = baseUrl;
|
|
29
|
+
url = combine(parentUrl, path);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
parentUrl = baseUrl.toUrl();
|
|
33
|
+
url = combine(parentUrl, path);
|
|
34
|
+
}
|
|
35
|
+
_this = _super.call(this, {
|
|
36
|
+
parentUrl: parentUrl,
|
|
37
|
+
query: query,
|
|
38
|
+
url: url,
|
|
39
|
+
}) || this;
|
|
40
|
+
// post init actions
|
|
41
|
+
if (typeof baseUrl !== "string") {
|
|
42
|
+
_this.configureFrom(baseUrl);
|
|
43
|
+
}
|
|
44
|
+
return _this;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Choose which fields to return
|
|
48
|
+
*
|
|
49
|
+
* @param selects One or more fields to return
|
|
50
|
+
*/
|
|
51
|
+
_GraphQueryable.prototype.select = function () {
|
|
52
|
+
var selects = [];
|
|
53
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
54
|
+
selects[_i] = arguments[_i];
|
|
55
|
+
}
|
|
56
|
+
if (selects.length > 0) {
|
|
57
|
+
this.query.set("$select", selects.map(encodeURIComponent).join(","));
|
|
58
|
+
}
|
|
59
|
+
return this;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Expands fields such as lookups to get additional data
|
|
63
|
+
*
|
|
64
|
+
* @param expands The Fields for which to expand the values
|
|
65
|
+
*/
|
|
66
|
+
_GraphQueryable.prototype.expand = function () {
|
|
67
|
+
var expands = [];
|
|
68
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
69
|
+
expands[_i] = arguments[_i];
|
|
70
|
+
}
|
|
71
|
+
if (expands.length > 0) {
|
|
72
|
+
this.query.set("$expand", expands.map(encodeURIComponent).join(","));
|
|
73
|
+
}
|
|
74
|
+
return this;
|
|
75
|
+
};
|
|
76
|
+
_GraphQueryable.prototype.defaultAction = function (options) {
|
|
77
|
+
return graphGet(this, options);
|
|
78
|
+
};
|
|
79
|
+
_GraphQueryable.prototype.get = function (options) {
|
|
80
|
+
return graphGet(this, options);
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Gets the full url with query information
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
_GraphQueryable.prototype.toUrlAndQuery = function () {
|
|
87
|
+
var url = this.toUrl();
|
|
88
|
+
if (this.query.size > 0) {
|
|
89
|
+
var char = url.indexOf("?") > -1 ? "&" : "?";
|
|
90
|
+
url += "" + char + Array.from(this.query).map(function (v) { return v[0] + "=" + v[1]; }).join("&");
|
|
91
|
+
}
|
|
92
|
+
return url;
|
|
93
|
+
};
|
|
94
|
+
_GraphQueryable.prototype.setEndpoint = function (endpoint) {
|
|
95
|
+
this.data.url = GraphEndpoints.ensure(this.data.url, endpoint);
|
|
96
|
+
return this;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Clones this queryable into a new queryable instance of T
|
|
100
|
+
* @param factory Constructor used to create the new instance
|
|
101
|
+
* @param additionalPath Any additional path to include in the clone
|
|
102
|
+
* @param includeBatch If true this instance's batch will be added to the cloned instance
|
|
103
|
+
* @param includeQuery If true all of the query values will be copied to the cloned instance
|
|
104
|
+
*/
|
|
105
|
+
_GraphQueryable.prototype.clone = function (factory, additionalPath, includeBatch, includeQuery) {
|
|
106
|
+
if (includeBatch === void 0) { includeBatch = true; }
|
|
107
|
+
if (includeQuery === void 0) { includeQuery = false; }
|
|
108
|
+
return _super.prototype.cloneTo.call(this, factory(this, additionalPath), { includeBatch: includeBatch, includeQuery: includeQuery });
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Gets a parent for this instance as specified
|
|
112
|
+
*
|
|
113
|
+
* @param factory The contructor for the class to create
|
|
114
|
+
*/
|
|
115
|
+
_GraphQueryable.prototype.getParent = function (factory, baseUrl, path) {
|
|
116
|
+
if (baseUrl === void 0) { baseUrl = this.parentUrl; }
|
|
117
|
+
return new factory(baseUrl, path);
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Gets the current base url of this object (https://graph.microsoft.com/v1.0 or https://graph.microsoft.com/beta)
|
|
121
|
+
*/
|
|
122
|
+
_GraphQueryable.prototype.getUrlBase = function () {
|
|
123
|
+
var url = this.toUrl();
|
|
124
|
+
var index = url.indexOf("v1.0/");
|
|
125
|
+
if (index > -1) {
|
|
126
|
+
return url.substring(0, index + 5);
|
|
127
|
+
}
|
|
128
|
+
index = url.indexOf("beta/");
|
|
129
|
+
if (index > -1) {
|
|
130
|
+
return url.substring(0, index + 5);
|
|
131
|
+
}
|
|
132
|
+
return url;
|
|
133
|
+
};
|
|
134
|
+
return _GraphQueryable;
|
|
135
|
+
}(Queryable));
|
|
136
|
+
export { _GraphQueryable };
|
|
137
|
+
export var GraphQueryable = graphInvokableFactory(_GraphQueryable);
|
|
138
|
+
/**
|
|
139
|
+
* Represents a REST collection which can be filtered, paged, and selected
|
|
140
|
+
*
|
|
141
|
+
*/
|
|
142
|
+
var _GraphQueryableCollection = /** @class */ (function (_super) {
|
|
143
|
+
__extends(_GraphQueryableCollection, _super);
|
|
144
|
+
function _GraphQueryableCollection() {
|
|
145
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @param filter The string representing the filter query
|
|
150
|
+
*/
|
|
151
|
+
_GraphQueryableCollection.prototype.filter = function (filter) {
|
|
152
|
+
this.query.set("$filter", filter);
|
|
153
|
+
return this;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Orders based on the supplied fields
|
|
157
|
+
*
|
|
158
|
+
* @param orderby The name of the field on which to sort
|
|
159
|
+
* @param ascending If false DESC is appended, otherwise ASC (default)
|
|
160
|
+
*/
|
|
161
|
+
_GraphQueryableCollection.prototype.orderBy = function (orderBy, ascending) {
|
|
162
|
+
if (ascending === void 0) { ascending = true; }
|
|
163
|
+
var o = "$orderby";
|
|
164
|
+
var query = this.query.has(o) ? this.query.get(o).split(",") : [];
|
|
165
|
+
query.push(encodeURIComponent(orderBy) + " " + (ascending ? "asc" : "desc"));
|
|
166
|
+
this.query.set(o, query.join(","));
|
|
167
|
+
return this;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Limits the query to only return the specified number of items
|
|
171
|
+
*
|
|
172
|
+
* @param top The query row limit
|
|
173
|
+
*/
|
|
174
|
+
_GraphQueryableCollection.prototype.top = function (top) {
|
|
175
|
+
this.query.set("$top", top.toString());
|
|
176
|
+
return this;
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Skips a set number of items in the return set
|
|
180
|
+
*
|
|
181
|
+
* @param num Number of items to skip
|
|
182
|
+
*/
|
|
183
|
+
_GraphQueryableCollection.prototype.skip = function (num) {
|
|
184
|
+
this.query.set("$skip", num.toString());
|
|
185
|
+
return this;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* To request second and subsequent pages of Graph data
|
|
189
|
+
*/
|
|
190
|
+
_GraphQueryableCollection.prototype.skipToken = function (token) {
|
|
191
|
+
this.query.set("$skiptoken", token);
|
|
192
|
+
return this;
|
|
193
|
+
};
|
|
194
|
+
Object.defineProperty(_GraphQueryableCollection.prototype, "count", {
|
|
195
|
+
/**
|
|
196
|
+
* Retrieves the total count of matching resources
|
|
197
|
+
*/
|
|
198
|
+
get: function () {
|
|
199
|
+
this.configure({
|
|
200
|
+
headers: {
|
|
201
|
+
ConsistencyLevel: "eventual",
|
|
202
|
+
},
|
|
203
|
+
});
|
|
204
|
+
this.query.set("$count", "true");
|
|
205
|
+
return this;
|
|
206
|
+
},
|
|
207
|
+
enumerable: false,
|
|
208
|
+
configurable: true
|
|
209
|
+
});
|
|
210
|
+
return _GraphQueryableCollection;
|
|
211
|
+
}(_GraphQueryable));
|
|
212
|
+
export { _GraphQueryableCollection };
|
|
213
|
+
export var GraphQueryableCollection = graphInvokableFactory(_GraphQueryableCollection);
|
|
214
|
+
var _GraphQueryableSearchableCollection = /** @class */ (function (_super) {
|
|
215
|
+
__extends(_GraphQueryableSearchableCollection, _super);
|
|
216
|
+
function _GraphQueryableSearchableCollection() {
|
|
217
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* To request second and subsequent pages of Graph data
|
|
221
|
+
*/
|
|
222
|
+
_GraphQueryableSearchableCollection.prototype.search = function (query) {
|
|
223
|
+
this.configure({
|
|
224
|
+
headers: {
|
|
225
|
+
ConsistencyLevel: "eventual",
|
|
226
|
+
},
|
|
227
|
+
});
|
|
228
|
+
this.query.set("$search", "" + query);
|
|
229
|
+
return this;
|
|
230
|
+
};
|
|
231
|
+
return _GraphQueryableSearchableCollection;
|
|
232
|
+
}(_GraphQueryableCollection));
|
|
233
|
+
export { _GraphQueryableSearchableCollection };
|
|
234
|
+
export var GraphQueryableSearchableCollection = graphInvokableFactory(_GraphQueryableSearchableCollection);
|
|
235
|
+
/**
|
|
236
|
+
* Represents an instance that can be selected
|
|
237
|
+
*
|
|
238
|
+
*/
|
|
239
|
+
var _GraphQueryableInstance = /** @class */ (function (_super) {
|
|
240
|
+
__extends(_GraphQueryableInstance, _super);
|
|
241
|
+
function _GraphQueryableInstance() {
|
|
242
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
243
|
+
}
|
|
244
|
+
return _GraphQueryableInstance;
|
|
245
|
+
}(_GraphQueryable));
|
|
246
|
+
export { _GraphQueryableInstance };
|
|
247
|
+
export var GraphQueryableInstance = graphInvokableFactory(_GraphQueryableInstance);
|
|
238
248
|
//# sourceMappingURL=graphqueryable.js.map
|
package/graphqueryable.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphqueryable.js","sourceRoot":"","sources":["../../../../packages/graph/graphqueryable.ts"],"names":[],"mappings":";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GxF,MAAM,CAAC,IAAM,sBAAsB,GAAG,qBAAqB,CAA0B,uBAAuB,CAAC,CAAC"}
|
package/groups/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IGroups } from "./types.js";
|
|
2
|
-
export { Group, GroupType, Groups, IGroup, IGroupAddResult, IGroups, } from "./types.js";
|
|
3
|
-
declare module "../rest" {
|
|
4
|
-
interface GraphRest {
|
|
5
|
-
readonly groups: IGroups;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
import { IGroups } from "./types.js";
|
|
2
|
+
export { Group, GroupType, Groups, IGroup, IGroupAddResult, IGroups, } from "./types.js";
|
|
3
|
+
declare module "../rest" {
|
|
4
|
+
interface GraphRest {
|
|
5
|
+
readonly groups: IGroups;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/groups/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { GraphRest } from "../rest.js";
|
|
2
|
-
import { Groups } from "./types.js";
|
|
3
|
-
export { Group, GroupType, Groups, } from "./types.js";
|
|
4
|
-
Reflect.defineProperty(GraphRest.prototype, "groups", {
|
|
5
|
-
configurable: true,
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function () {
|
|
8
|
-
return this.childConfigHook(function (_a) {
|
|
9
|
-
var options = _a.options, baseUrl = _a.baseUrl, runtime = _a.runtime;
|
|
10
|
-
return Groups(baseUrl).configure(options).setRuntime(runtime);
|
|
11
|
-
});
|
|
12
|
-
},
|
|
13
|
-
});
|
|
1
|
+
import { GraphRest } from "../rest.js";
|
|
2
|
+
import { Groups } from "./types.js";
|
|
3
|
+
export { Group, GroupType, Groups, } from "./types.js";
|
|
4
|
+
Reflect.defineProperty(GraphRest.prototype, "groups", {
|
|
5
|
+
configurable: true,
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () {
|
|
8
|
+
return this.childConfigHook(function (_a) {
|
|
9
|
+
var options = _a.options, baseUrl = _a.baseUrl, runtime = _a.runtime;
|
|
10
|
+
return Groups(baseUrl).configure(options).setRuntime(runtime);
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
14
|
//# sourceMappingURL=index.js.map
|