@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/decorators.js
CHANGED
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { graphDelete, graphPatch, graphPost } from "./operations.js";
|
|
3
|
-
import { body, headers } from "@pnp/odata";
|
|
4
|
-
/**
|
|
5
|
-
* Decorator used to specify the default path for Queryable objects
|
|
6
|
-
*
|
|
7
|
-
* @param path
|
|
8
|
-
*/
|
|
9
|
-
export function defaultPath(path) {
|
|
10
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
11
|
-
return function (target) {
|
|
12
|
-
return /** @class */ (function (_super) {
|
|
13
|
-
__extends(class_1, _super);
|
|
14
|
-
function class_1() {
|
|
15
|
-
var args = [];
|
|
16
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17
|
-
args[_i] = arguments[_i];
|
|
18
|
-
}
|
|
19
|
-
return _super.call(this, args[0], args.length > 1 && args[1] !== undefined ? args[1] : path) || this;
|
|
20
|
-
}
|
|
21
|
-
return class_1;
|
|
22
|
-
}(target));
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Adds the delete method to the tagged class
|
|
27
|
-
*/
|
|
28
|
-
export function deleteable() {
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
30
|
-
return function (target) {
|
|
31
|
-
return /** @class */ (function (_super) {
|
|
32
|
-
__extends(class_2, _super);
|
|
33
|
-
function class_2() {
|
|
34
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
-
}
|
|
36
|
-
class_2.prototype.delete = function () {
|
|
37
|
-
return graphDelete(this);
|
|
38
|
-
};
|
|
39
|
-
return class_2;
|
|
40
|
-
}(target));
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Adds the delete method to the tagged class
|
|
45
|
-
*/
|
|
46
|
-
export function deleteableWithETag() {
|
|
47
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
48
|
-
return function (target) {
|
|
49
|
-
return /** @class */ (function (_super) {
|
|
50
|
-
__extends(class_3, _super);
|
|
51
|
-
function class_3() {
|
|
52
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
53
|
-
}
|
|
54
|
-
class_3.prototype.delete = function (eTag) {
|
|
55
|
-
if (eTag === void 0) { eTag = "*"; }
|
|
56
|
-
return graphDelete(this, headers({
|
|
57
|
-
"If-Match": eTag,
|
|
58
|
-
}));
|
|
59
|
-
};
|
|
60
|
-
return class_3;
|
|
61
|
-
}(target));
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Adds the update method to the tagged class
|
|
66
|
-
*/
|
|
67
|
-
export function updateable() {
|
|
68
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
69
|
-
return function (target) {
|
|
70
|
-
return /** @class */ (function (_super) {
|
|
71
|
-
__extends(class_4, _super);
|
|
72
|
-
function class_4() {
|
|
73
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
74
|
-
}
|
|
75
|
-
class_4.prototype.update = function (props) {
|
|
76
|
-
return graphPatch(this, body(props));
|
|
77
|
-
};
|
|
78
|
-
return class_4;
|
|
79
|
-
}(target));
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Adds the update method to the tagged class
|
|
84
|
-
*/
|
|
85
|
-
export function updateableWithETag() {
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
87
|
-
return function (target) {
|
|
88
|
-
return /** @class */ (function (_super) {
|
|
89
|
-
__extends(class_5, _super);
|
|
90
|
-
function class_5() {
|
|
91
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
92
|
-
}
|
|
93
|
-
class_5.prototype.update = function (props, eTag) {
|
|
94
|
-
if (eTag === void 0) { eTag = "*"; }
|
|
95
|
-
return graphPatch(this, body(props, headers({
|
|
96
|
-
"If-Match": eTag,
|
|
97
|
-
})));
|
|
98
|
-
};
|
|
99
|
-
return class_5;
|
|
100
|
-
}(target));
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Adds the add method to the tagged class
|
|
105
|
-
*/
|
|
106
|
-
export function addable() {
|
|
107
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
108
|
-
return function (target) {
|
|
109
|
-
return /** @class */ (function (_super) {
|
|
110
|
-
__extends(class_6, _super);
|
|
111
|
-
function class_6() {
|
|
112
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
113
|
-
}
|
|
114
|
-
class_6.prototype.add = function (props) {
|
|
115
|
-
return graphPost(this, body(props));
|
|
116
|
-
};
|
|
117
|
-
return class_6;
|
|
118
|
-
}(target));
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Adds the getById method to a collection
|
|
123
|
-
*/
|
|
124
|
-
export function getById(factory) {
|
|
125
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
126
|
-
return function (target) {
|
|
127
|
-
return /** @class */ (function (_super) {
|
|
128
|
-
__extends(class_7, _super);
|
|
129
|
-
function class_7() {
|
|
130
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
131
|
-
}
|
|
132
|
-
class_7.prototype.getById = function (id) {
|
|
133
|
-
return factory(this, id);
|
|
134
|
-
};
|
|
135
|
-
return class_7;
|
|
136
|
-
}(target));
|
|
137
|
-
};
|
|
138
|
-
}
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { graphDelete, graphPatch, graphPost } from "./operations.js";
|
|
3
|
+
import { body, headers } from "@pnp/odata";
|
|
4
|
+
/**
|
|
5
|
+
* Decorator used to specify the default path for Queryable objects
|
|
6
|
+
*
|
|
7
|
+
* @param path
|
|
8
|
+
*/
|
|
9
|
+
export function defaultPath(path) {
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
11
|
+
return function (target) {
|
|
12
|
+
return /** @class */ (function (_super) {
|
|
13
|
+
__extends(class_1, _super);
|
|
14
|
+
function class_1() {
|
|
15
|
+
var args = [];
|
|
16
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17
|
+
args[_i] = arguments[_i];
|
|
18
|
+
}
|
|
19
|
+
return _super.call(this, args[0], args.length > 1 && args[1] !== undefined ? args[1] : path) || this;
|
|
20
|
+
}
|
|
21
|
+
return class_1;
|
|
22
|
+
}(target));
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Adds the delete method to the tagged class
|
|
27
|
+
*/
|
|
28
|
+
export function deleteable() {
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
30
|
+
return function (target) {
|
|
31
|
+
return /** @class */ (function (_super) {
|
|
32
|
+
__extends(class_2, _super);
|
|
33
|
+
function class_2() {
|
|
34
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
+
}
|
|
36
|
+
class_2.prototype.delete = function () {
|
|
37
|
+
return graphDelete(this);
|
|
38
|
+
};
|
|
39
|
+
return class_2;
|
|
40
|
+
}(target));
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Adds the delete method to the tagged class
|
|
45
|
+
*/
|
|
46
|
+
export function deleteableWithETag() {
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
48
|
+
return function (target) {
|
|
49
|
+
return /** @class */ (function (_super) {
|
|
50
|
+
__extends(class_3, _super);
|
|
51
|
+
function class_3() {
|
|
52
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
53
|
+
}
|
|
54
|
+
class_3.prototype.delete = function (eTag) {
|
|
55
|
+
if (eTag === void 0) { eTag = "*"; }
|
|
56
|
+
return graphDelete(this, headers({
|
|
57
|
+
"If-Match": eTag,
|
|
58
|
+
}));
|
|
59
|
+
};
|
|
60
|
+
return class_3;
|
|
61
|
+
}(target));
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Adds the update method to the tagged class
|
|
66
|
+
*/
|
|
67
|
+
export function updateable() {
|
|
68
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
69
|
+
return function (target) {
|
|
70
|
+
return /** @class */ (function (_super) {
|
|
71
|
+
__extends(class_4, _super);
|
|
72
|
+
function class_4() {
|
|
73
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
74
|
+
}
|
|
75
|
+
class_4.prototype.update = function (props) {
|
|
76
|
+
return graphPatch(this, body(props));
|
|
77
|
+
};
|
|
78
|
+
return class_4;
|
|
79
|
+
}(target));
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Adds the update method to the tagged class
|
|
84
|
+
*/
|
|
85
|
+
export function updateableWithETag() {
|
|
86
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
87
|
+
return function (target) {
|
|
88
|
+
return /** @class */ (function (_super) {
|
|
89
|
+
__extends(class_5, _super);
|
|
90
|
+
function class_5() {
|
|
91
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
92
|
+
}
|
|
93
|
+
class_5.prototype.update = function (props, eTag) {
|
|
94
|
+
if (eTag === void 0) { eTag = "*"; }
|
|
95
|
+
return graphPatch(this, body(props, headers({
|
|
96
|
+
"If-Match": eTag,
|
|
97
|
+
})));
|
|
98
|
+
};
|
|
99
|
+
return class_5;
|
|
100
|
+
}(target));
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Adds the add method to the tagged class
|
|
105
|
+
*/
|
|
106
|
+
export function addable() {
|
|
107
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
108
|
+
return function (target) {
|
|
109
|
+
return /** @class */ (function (_super) {
|
|
110
|
+
__extends(class_6, _super);
|
|
111
|
+
function class_6() {
|
|
112
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
113
|
+
}
|
|
114
|
+
class_6.prototype.add = function (props) {
|
|
115
|
+
return graphPost(this, body(props));
|
|
116
|
+
};
|
|
117
|
+
return class_6;
|
|
118
|
+
}(target));
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Adds the getById method to a collection
|
|
123
|
+
*/
|
|
124
|
+
export function getById(factory) {
|
|
125
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
126
|
+
return function (target) {
|
|
127
|
+
return /** @class */ (function (_super) {
|
|
128
|
+
__extends(class_7, _super);
|
|
129
|
+
function class_7() {
|
|
130
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
131
|
+
}
|
|
132
|
+
class_7.prototype.getById = function (id) {
|
|
133
|
+
return factory(this, id);
|
|
134
|
+
};
|
|
135
|
+
return class_7;
|
|
136
|
+
}(target));
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
139
|
//# sourceMappingURL=decorators.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IDirectoryObjects } from "./types.js";
|
|
2
|
-
export { IDirectoryObject, DirectoryObjectTypes, DirectoryObject, DirectoryObjects, IDirectoryObjects, } from "./types.js";
|
|
3
|
-
declare module "../rest" {
|
|
4
|
-
interface GraphRest {
|
|
5
|
-
readonly directoryObjects: IDirectoryObjects;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
import { IDirectoryObjects } from "./types.js";
|
|
2
|
+
export { IDirectoryObject, DirectoryObjectTypes, DirectoryObject, DirectoryObjects, IDirectoryObjects, } from "./types.js";
|
|
3
|
+
declare module "../rest" {
|
|
4
|
+
interface GraphRest {
|
|
5
|
+
readonly directoryObjects: IDirectoryObjects;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { GraphRest } from "../rest.js";
|
|
2
|
-
import { DirectoryObjects } from "./types.js";
|
|
3
|
-
export { DirectoryObjectTypes, DirectoryObject, DirectoryObjects, } from "./types.js";
|
|
4
|
-
Reflect.defineProperty(GraphRest.prototype, "directoryObjects", {
|
|
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 DirectoryObjects(baseUrl).configure(options).setRuntime(runtime);
|
|
11
|
-
});
|
|
12
|
-
},
|
|
13
|
-
});
|
|
1
|
+
import { GraphRest } from "../rest.js";
|
|
2
|
+
import { DirectoryObjects } from "./types.js";
|
|
3
|
+
export { DirectoryObjectTypes, DirectoryObject, DirectoryObjects, } from "./types.js";
|
|
4
|
+
Reflect.defineProperty(GraphRest.prototype, "directoryObjects", {
|
|
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 DirectoryObjects(baseUrl).configure(options).setRuntime(runtime);
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { _GraphQueryableCollection, _GraphQueryableInstance } from "../graphqueryable.js";
|
|
2
|
-
import { DirectoryObject as IDirectoryObjectType } from "@microsoft/microsoft-graph-types";
|
|
3
|
-
import { IGetById, IDeleteable } from "../decorators.js";
|
|
4
|
-
/**
|
|
5
|
-
* Represents a Directory Object entity
|
|
6
|
-
*/
|
|
7
|
-
export declare class _DirectoryObject<GetType = IDirectoryObjectType> extends _GraphQueryableInstance<GetType> {
|
|
8
|
-
/**
|
|
9
|
-
* Returns all the groups and directory roles that the specified Directory Object is a member of. The check is transitive
|
|
10
|
-
*
|
|
11
|
-
* @param securityEnabledOnly
|
|
12
|
-
*/
|
|
13
|
-
getMemberObjects(securityEnabledOnly?: boolean): Promise<string[]>;
|
|
14
|
-
/**
|
|
15
|
-
* Returns all the groups that the specified Directory Object is a member of. The check is transitive
|
|
16
|
-
*
|
|
17
|
-
* @param securityEnabledOnly
|
|
18
|
-
*/
|
|
19
|
-
getMemberGroups(securityEnabledOnly?: boolean): Promise<string[]>;
|
|
20
|
-
/**
|
|
21
|
-
* Check for membership in a specified list of groups, and returns from that list those groups of which the specified user, group, or directory object is a member.
|
|
22
|
-
* This function is transitive.
|
|
23
|
-
* @param groupIds A collection that contains the object IDs of the groups in which to check membership. Up to 20 groups may be specified.
|
|
24
|
-
*/
|
|
25
|
-
checkMemberGroups(groupIds: string[]): Promise<string[]>;
|
|
26
|
-
}
|
|
27
|
-
export interface IDirectoryObject extends _DirectoryObject, IDeleteable {
|
|
28
|
-
}
|
|
29
|
-
export declare const DirectoryObject: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IDirectoryObject & import("@pnp/odata").IInvokable<any>;
|
|
30
|
-
/**
|
|
31
|
-
* Describes a collection of Directory Objects
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
export declare class _DirectoryObjects<GetType = IDirectoryObjectType[]> extends _GraphQueryableCollection<GetType> {
|
|
35
|
-
/**
|
|
36
|
-
* Returns the directory objects specified in a list of ids. NOTE: The directory objects returned are the full objects containing all their properties.
|
|
37
|
-
* The $select query option is not available for this operation.
|
|
38
|
-
*
|
|
39
|
-
* @param ids A collection of ids for which to return objects. You can specify up to 1000 ids.
|
|
40
|
-
* @param type A collection of resource types that specifies the set of resource collections to search. Default is directoryObject.
|
|
41
|
-
*/
|
|
42
|
-
getByIds(ids: string[], type?: DirectoryObjectTypes): Promise<IDirectoryObjectType[]>;
|
|
43
|
-
}
|
|
44
|
-
export interface IDirectoryObjects extends _DirectoryObjects, IGetById<IDirectoryObjectType> {
|
|
45
|
-
}
|
|
46
|
-
export declare const DirectoryObjects: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IDirectoryObjects & import("@pnp/odata").IInvokable<any>;
|
|
47
|
-
/**
|
|
48
|
-
* DirectoryObjectTypes
|
|
49
|
-
*/
|
|
50
|
-
export declare enum DirectoryObjectTypes {
|
|
51
|
-
/**
|
|
52
|
-
* Directory Objects
|
|
53
|
-
*/
|
|
54
|
-
directoryObject = 0,
|
|
55
|
-
/**
|
|
56
|
-
* User
|
|
57
|
-
*/
|
|
58
|
-
user = 1,
|
|
59
|
-
/**
|
|
60
|
-
* Group
|
|
61
|
-
*/
|
|
62
|
-
group = 2,
|
|
63
|
-
/**
|
|
64
|
-
* Device
|
|
65
|
-
*/
|
|
66
|
-
device = 3
|
|
67
|
-
}
|
|
1
|
+
import { _GraphQueryableCollection, _GraphQueryableInstance } from "../graphqueryable.js";
|
|
2
|
+
import { DirectoryObject as IDirectoryObjectType } from "@microsoft/microsoft-graph-types";
|
|
3
|
+
import { IGetById, IDeleteable } from "../decorators.js";
|
|
4
|
+
/**
|
|
5
|
+
* Represents a Directory Object entity
|
|
6
|
+
*/
|
|
7
|
+
export declare class _DirectoryObject<GetType = IDirectoryObjectType> extends _GraphQueryableInstance<GetType> {
|
|
8
|
+
/**
|
|
9
|
+
* Returns all the groups and directory roles that the specified Directory Object is a member of. The check is transitive
|
|
10
|
+
*
|
|
11
|
+
* @param securityEnabledOnly
|
|
12
|
+
*/
|
|
13
|
+
getMemberObjects(securityEnabledOnly?: boolean): Promise<string[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Returns all the groups that the specified Directory Object is a member of. The check is transitive
|
|
16
|
+
*
|
|
17
|
+
* @param securityEnabledOnly
|
|
18
|
+
*/
|
|
19
|
+
getMemberGroups(securityEnabledOnly?: boolean): Promise<string[]>;
|
|
20
|
+
/**
|
|
21
|
+
* Check for membership in a specified list of groups, and returns from that list those groups of which the specified user, group, or directory object is a member.
|
|
22
|
+
* This function is transitive.
|
|
23
|
+
* @param groupIds A collection that contains the object IDs of the groups in which to check membership. Up to 20 groups may be specified.
|
|
24
|
+
*/
|
|
25
|
+
checkMemberGroups(groupIds: string[]): Promise<string[]>;
|
|
26
|
+
}
|
|
27
|
+
export interface IDirectoryObject extends _DirectoryObject, IDeleteable {
|
|
28
|
+
}
|
|
29
|
+
export declare const DirectoryObject: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IDirectoryObject & import("@pnp/odata").IInvokable<any>;
|
|
30
|
+
/**
|
|
31
|
+
* Describes a collection of Directory Objects
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare class _DirectoryObjects<GetType = IDirectoryObjectType[]> extends _GraphQueryableCollection<GetType> {
|
|
35
|
+
/**
|
|
36
|
+
* Returns the directory objects specified in a list of ids. NOTE: The directory objects returned are the full objects containing all their properties.
|
|
37
|
+
* The $select query option is not available for this operation.
|
|
38
|
+
*
|
|
39
|
+
* @param ids A collection of ids for which to return objects. You can specify up to 1000 ids.
|
|
40
|
+
* @param type A collection of resource types that specifies the set of resource collections to search. Default is directoryObject.
|
|
41
|
+
*/
|
|
42
|
+
getByIds(ids: string[], type?: DirectoryObjectTypes): Promise<IDirectoryObjectType[]>;
|
|
43
|
+
}
|
|
44
|
+
export interface IDirectoryObjects extends _DirectoryObjects, IGetById<IDirectoryObjectType> {
|
|
45
|
+
}
|
|
46
|
+
export declare const DirectoryObjects: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IDirectoryObjects & import("@pnp/odata").IInvokable<any>;
|
|
47
|
+
/**
|
|
48
|
+
* DirectoryObjectTypes
|
|
49
|
+
*/
|
|
50
|
+
export declare enum DirectoryObjectTypes {
|
|
51
|
+
/**
|
|
52
|
+
* Directory Objects
|
|
53
|
+
*/
|
|
54
|
+
directoryObject = 0,
|
|
55
|
+
/**
|
|
56
|
+
* User
|
|
57
|
+
*/
|
|
58
|
+
user = 1,
|
|
59
|
+
/**
|
|
60
|
+
* Group
|
|
61
|
+
*/
|
|
62
|
+
group = 2,
|
|
63
|
+
/**
|
|
64
|
+
* Device
|
|
65
|
+
*/
|
|
66
|
+
device = 3
|
|
67
|
+
}
|
|
68
68
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import { __decorate, __extends } from "tslib";
|
|
2
|
-
import { _GraphQueryableCollection, _GraphQueryableInstance, graphInvokableFactory } from "../graphqueryable.js";
|
|
3
|
-
import { defaultPath, getById, deleteable } from "../decorators.js";
|
|
4
|
-
import { body } from "@pnp/odata";
|
|
5
|
-
import { graphPost } from "../operations.js";
|
|
6
|
-
/**
|
|
7
|
-
* Represents a Directory Object entity
|
|
8
|
-
*/
|
|
9
|
-
var _DirectoryObject = /** @class */ (function (_super) {
|
|
10
|
-
__extends(_DirectoryObject, _super);
|
|
11
|
-
function _DirectoryObject() {
|
|
12
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Returns all the groups and directory roles that the specified Directory Object is a member of. The check is transitive
|
|
16
|
-
*
|
|
17
|
-
* @param securityEnabledOnly
|
|
18
|
-
*/
|
|
19
|
-
_DirectoryObject.prototype.getMemberObjects = function (securityEnabledOnly) {
|
|
20
|
-
if (securityEnabledOnly === void 0) { securityEnabledOnly = false; }
|
|
21
|
-
return graphPost(this.clone(DirectoryObject, "getMemberObjects"), body({ securityEnabledOnly: securityEnabledOnly }));
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Returns all the groups that the specified Directory Object is a member of. The check is transitive
|
|
25
|
-
*
|
|
26
|
-
* @param securityEnabledOnly
|
|
27
|
-
*/
|
|
28
|
-
_DirectoryObject.prototype.getMemberGroups = function (securityEnabledOnly) {
|
|
29
|
-
if (securityEnabledOnly === void 0) { securityEnabledOnly = false; }
|
|
30
|
-
return graphPost(this.clone(DirectoryObject, "getMemberGroups"), body({ securityEnabledOnly: securityEnabledOnly }));
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Check for membership in a specified list of groups, and returns from that list those groups of which the specified user, group, or directory object is a member.
|
|
34
|
-
* This function is transitive.
|
|
35
|
-
* @param groupIds A collection that contains the object IDs of the groups in which to check membership. Up to 20 groups may be specified.
|
|
36
|
-
*/
|
|
37
|
-
_DirectoryObject.prototype.checkMemberGroups = function (groupIds) {
|
|
38
|
-
return graphPost(this.clone(DirectoryObject, "checkMemberGroups"), body({ groupIds: groupIds }));
|
|
39
|
-
};
|
|
40
|
-
_DirectoryObject = __decorate([
|
|
41
|
-
deleteable()
|
|
42
|
-
], _DirectoryObject);
|
|
43
|
-
return _DirectoryObject;
|
|
44
|
-
}(_GraphQueryableInstance));
|
|
45
|
-
export { _DirectoryObject };
|
|
46
|
-
export var DirectoryObject = graphInvokableFactory(_DirectoryObject);
|
|
47
|
-
/**
|
|
48
|
-
* Describes a collection of Directory Objects
|
|
49
|
-
*
|
|
50
|
-
*/
|
|
51
|
-
var _DirectoryObjects = /** @class */ (function (_super) {
|
|
52
|
-
__extends(_DirectoryObjects, _super);
|
|
53
|
-
function _DirectoryObjects() {
|
|
54
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Returns the directory objects specified in a list of ids. NOTE: The directory objects returned are the full objects containing all their properties.
|
|
58
|
-
* The $select query option is not available for this operation.
|
|
59
|
-
*
|
|
60
|
-
* @param ids A collection of ids for which to return objects. You can specify up to 1000 ids.
|
|
61
|
-
* @param type A collection of resource types that specifies the set of resource collections to search. Default is directoryObject.
|
|
62
|
-
*/
|
|
63
|
-
_DirectoryObjects.prototype.getByIds = function (ids, type) {
|
|
64
|
-
if (type === void 0) { type = DirectoryObjectTypes.directoryObject; }
|
|
65
|
-
return graphPost(this.clone(DirectoryObjects, "getByIds"), body({ ids: ids, type: type }));
|
|
66
|
-
};
|
|
67
|
-
_DirectoryObjects = __decorate([
|
|
68
|
-
defaultPath("directoryObjects"),
|
|
69
|
-
getById(DirectoryObject)
|
|
70
|
-
], _DirectoryObjects);
|
|
71
|
-
return _DirectoryObjects;
|
|
72
|
-
}(_GraphQueryableCollection));
|
|
73
|
-
export { _DirectoryObjects };
|
|
74
|
-
export var DirectoryObjects = graphInvokableFactory(_DirectoryObjects);
|
|
75
|
-
/**
|
|
76
|
-
* DirectoryObjectTypes
|
|
77
|
-
*/
|
|
78
|
-
export var DirectoryObjectTypes;
|
|
79
|
-
(function (DirectoryObjectTypes) {
|
|
80
|
-
/**
|
|
81
|
-
* Directory Objects
|
|
82
|
-
*/
|
|
83
|
-
DirectoryObjectTypes[DirectoryObjectTypes["directoryObject"] = 0] = "directoryObject";
|
|
84
|
-
/**
|
|
85
|
-
* User
|
|
86
|
-
*/
|
|
87
|
-
DirectoryObjectTypes[DirectoryObjectTypes["user"] = 1] = "user";
|
|
88
|
-
/**
|
|
89
|
-
* Group
|
|
90
|
-
*/
|
|
91
|
-
DirectoryObjectTypes[DirectoryObjectTypes["group"] = 2] = "group";
|
|
92
|
-
/**
|
|
93
|
-
* Device
|
|
94
|
-
*/
|
|
95
|
-
DirectoryObjectTypes[DirectoryObjectTypes["device"] = 3] = "device";
|
|
96
|
-
})(DirectoryObjectTypes || (DirectoryObjectTypes = {}));
|
|
1
|
+
import { __decorate, __extends } from "tslib";
|
|
2
|
+
import { _GraphQueryableCollection, _GraphQueryableInstance, graphInvokableFactory } from "../graphqueryable.js";
|
|
3
|
+
import { defaultPath, getById, deleteable } from "../decorators.js";
|
|
4
|
+
import { body } from "@pnp/odata";
|
|
5
|
+
import { graphPost } from "../operations.js";
|
|
6
|
+
/**
|
|
7
|
+
* Represents a Directory Object entity
|
|
8
|
+
*/
|
|
9
|
+
var _DirectoryObject = /** @class */ (function (_super) {
|
|
10
|
+
__extends(_DirectoryObject, _super);
|
|
11
|
+
function _DirectoryObject() {
|
|
12
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns all the groups and directory roles that the specified Directory Object is a member of. The check is transitive
|
|
16
|
+
*
|
|
17
|
+
* @param securityEnabledOnly
|
|
18
|
+
*/
|
|
19
|
+
_DirectoryObject.prototype.getMemberObjects = function (securityEnabledOnly) {
|
|
20
|
+
if (securityEnabledOnly === void 0) { securityEnabledOnly = false; }
|
|
21
|
+
return graphPost(this.clone(DirectoryObject, "getMemberObjects"), body({ securityEnabledOnly: securityEnabledOnly }));
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Returns all the groups that the specified Directory Object is a member of. The check is transitive
|
|
25
|
+
*
|
|
26
|
+
* @param securityEnabledOnly
|
|
27
|
+
*/
|
|
28
|
+
_DirectoryObject.prototype.getMemberGroups = function (securityEnabledOnly) {
|
|
29
|
+
if (securityEnabledOnly === void 0) { securityEnabledOnly = false; }
|
|
30
|
+
return graphPost(this.clone(DirectoryObject, "getMemberGroups"), body({ securityEnabledOnly: securityEnabledOnly }));
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check for membership in a specified list of groups, and returns from that list those groups of which the specified user, group, or directory object is a member.
|
|
34
|
+
* This function is transitive.
|
|
35
|
+
* @param groupIds A collection that contains the object IDs of the groups in which to check membership. Up to 20 groups may be specified.
|
|
36
|
+
*/
|
|
37
|
+
_DirectoryObject.prototype.checkMemberGroups = function (groupIds) {
|
|
38
|
+
return graphPost(this.clone(DirectoryObject, "checkMemberGroups"), body({ groupIds: groupIds }));
|
|
39
|
+
};
|
|
40
|
+
_DirectoryObject = __decorate([
|
|
41
|
+
deleteable()
|
|
42
|
+
], _DirectoryObject);
|
|
43
|
+
return _DirectoryObject;
|
|
44
|
+
}(_GraphQueryableInstance));
|
|
45
|
+
export { _DirectoryObject };
|
|
46
|
+
export var DirectoryObject = graphInvokableFactory(_DirectoryObject);
|
|
47
|
+
/**
|
|
48
|
+
* Describes a collection of Directory Objects
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
var _DirectoryObjects = /** @class */ (function (_super) {
|
|
52
|
+
__extends(_DirectoryObjects, _super);
|
|
53
|
+
function _DirectoryObjects() {
|
|
54
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Returns the directory objects specified in a list of ids. NOTE: The directory objects returned are the full objects containing all their properties.
|
|
58
|
+
* The $select query option is not available for this operation.
|
|
59
|
+
*
|
|
60
|
+
* @param ids A collection of ids for which to return objects. You can specify up to 1000 ids.
|
|
61
|
+
* @param type A collection of resource types that specifies the set of resource collections to search. Default is directoryObject.
|
|
62
|
+
*/
|
|
63
|
+
_DirectoryObjects.prototype.getByIds = function (ids, type) {
|
|
64
|
+
if (type === void 0) { type = DirectoryObjectTypes.directoryObject; }
|
|
65
|
+
return graphPost(this.clone(DirectoryObjects, "getByIds"), body({ ids: ids, type: type }));
|
|
66
|
+
};
|
|
67
|
+
_DirectoryObjects = __decorate([
|
|
68
|
+
defaultPath("directoryObjects"),
|
|
69
|
+
getById(DirectoryObject)
|
|
70
|
+
], _DirectoryObjects);
|
|
71
|
+
return _DirectoryObjects;
|
|
72
|
+
}(_GraphQueryableCollection));
|
|
73
|
+
export { _DirectoryObjects };
|
|
74
|
+
export var DirectoryObjects = graphInvokableFactory(_DirectoryObjects);
|
|
75
|
+
/**
|
|
76
|
+
* DirectoryObjectTypes
|
|
77
|
+
*/
|
|
78
|
+
export var DirectoryObjectTypes;
|
|
79
|
+
(function (DirectoryObjectTypes) {
|
|
80
|
+
/**
|
|
81
|
+
* Directory Objects
|
|
82
|
+
*/
|
|
83
|
+
DirectoryObjectTypes[DirectoryObjectTypes["directoryObject"] = 0] = "directoryObject";
|
|
84
|
+
/**
|
|
85
|
+
* User
|
|
86
|
+
*/
|
|
87
|
+
DirectoryObjectTypes[DirectoryObjectTypes["user"] = 1] = "user";
|
|
88
|
+
/**
|
|
89
|
+
* Group
|
|
90
|
+
*/
|
|
91
|
+
DirectoryObjectTypes[DirectoryObjectTypes["group"] = 2] = "group";
|
|
92
|
+
/**
|
|
93
|
+
* Device
|
|
94
|
+
*/
|
|
95
|
+
DirectoryObjectTypes[DirectoryObjectTypes["device"] = 3] = "device";
|
|
96
|
+
})(DirectoryObjectTypes || (DirectoryObjectTypes = {}));
|
|
97
97
|
//# sourceMappingURL=types.js.map
|