@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/contacts/types.js
CHANGED
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
import { __awaiter, __decorate, __extends, __generator } from "tslib";
|
|
2
|
-
import { _GraphQueryableCollection, _GraphQueryableInstance, graphInvokableFactory } from "../graphqueryable.js";
|
|
3
|
-
import { assign } from "@pnp/common";
|
|
4
|
-
import { defaultPath, updateable, deleteable, getById } from "../decorators.js";
|
|
5
|
-
import { graphPost } from "../operations.js";
|
|
6
|
-
import { body } from "@pnp/odata";
|
|
7
|
-
/**
|
|
8
|
-
* Contact
|
|
9
|
-
*/
|
|
10
|
-
var _Contact = /** @class */ (function (_super) {
|
|
11
|
-
__extends(_Contact, _super);
|
|
12
|
-
function _Contact() {
|
|
13
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
-
}
|
|
15
|
-
_Contact = __decorate([
|
|
16
|
-
updateable(),
|
|
17
|
-
deleteable()
|
|
18
|
-
], _Contact);
|
|
19
|
-
return _Contact;
|
|
20
|
-
}(_GraphQueryableInstance));
|
|
21
|
-
export { _Contact };
|
|
22
|
-
export var Contact = graphInvokableFactory(_Contact);
|
|
23
|
-
/**
|
|
24
|
-
* Contacts
|
|
25
|
-
*/
|
|
26
|
-
var _Contacts = /** @class */ (function (_super) {
|
|
27
|
-
__extends(_Contacts, _super);
|
|
28
|
-
function _Contacts() {
|
|
29
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Create a new Contact for the user.
|
|
33
|
-
*
|
|
34
|
-
* @param givenName The contact's given name.
|
|
35
|
-
* @param surName The contact's surname.
|
|
36
|
-
* @param emailAddresses The contact's email addresses.
|
|
37
|
-
* @param businessPhones The contact's business phone numbers.
|
|
38
|
-
* @param additionalProperties A plain object collection of additional properties you want to set on the new contact
|
|
39
|
-
*/
|
|
40
|
-
_Contacts.prototype.add = function (givenName, surName, emailAddresses, businessPhones, additionalProperties) {
|
|
41
|
-
if (additionalProperties === void 0) { additionalProperties = {}; }
|
|
42
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
43
|
-
var postBody, data;
|
|
44
|
-
return __generator(this, function (_a) {
|
|
45
|
-
switch (_a.label) {
|
|
46
|
-
case 0:
|
|
47
|
-
postBody = assign({ businessPhones: businessPhones, emailAddresses: emailAddresses, givenName: givenName, surName: surName }, additionalProperties);
|
|
48
|
-
return [4 /*yield*/, graphPost(this, body(postBody))];
|
|
49
|
-
case 1:
|
|
50
|
-
data = _a.sent();
|
|
51
|
-
return [2 /*return*/, {
|
|
52
|
-
contact: this.getById(data.id),
|
|
53
|
-
data: data,
|
|
54
|
-
}];
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
_Contacts = __decorate([
|
|
60
|
-
defaultPath("contacts"),
|
|
61
|
-
getById(Contact)
|
|
62
|
-
], _Contacts);
|
|
63
|
-
return _Contacts;
|
|
64
|
-
}(_GraphQueryableCollection));
|
|
65
|
-
export { _Contacts };
|
|
66
|
-
export var Contacts = graphInvokableFactory(_Contacts);
|
|
67
|
-
/**
|
|
68
|
-
* Contact Folder
|
|
69
|
-
*/
|
|
70
|
-
var _ContactFolder = /** @class */ (function (_super) {
|
|
71
|
-
__extends(_ContactFolder, _super);
|
|
72
|
-
function _ContactFolder() {
|
|
73
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
74
|
-
}
|
|
75
|
-
Object.defineProperty(_ContactFolder.prototype, "contacts", {
|
|
76
|
-
/**
|
|
77
|
-
* Gets the contacts in this contact folder
|
|
78
|
-
*/
|
|
79
|
-
get: function () {
|
|
80
|
-
return Contacts(this);
|
|
81
|
-
},
|
|
82
|
-
enumerable: false,
|
|
83
|
-
configurable: true
|
|
84
|
-
});
|
|
85
|
-
Object.defineProperty(_ContactFolder.prototype, "childFolders", {
|
|
86
|
-
/**
|
|
87
|
-
* Gets the contacts in this contact folder
|
|
88
|
-
*/
|
|
89
|
-
get: function () {
|
|
90
|
-
return ContactFolders(this, "childFolders");
|
|
91
|
-
},
|
|
92
|
-
enumerable: false,
|
|
93
|
-
configurable: true
|
|
94
|
-
});
|
|
95
|
-
_ContactFolder = __decorate([
|
|
96
|
-
deleteable(),
|
|
97
|
-
updateable()
|
|
98
|
-
], _ContactFolder);
|
|
99
|
-
return _ContactFolder;
|
|
100
|
-
}(_GraphQueryableInstance));
|
|
101
|
-
export { _ContactFolder };
|
|
102
|
-
export var ContactFolder = graphInvokableFactory(_ContactFolder);
|
|
103
|
-
/**
|
|
104
|
-
* Contact Folders
|
|
105
|
-
*/
|
|
106
|
-
var _ContactFolders = /** @class */ (function (_super) {
|
|
107
|
-
__extends(_ContactFolders, _super);
|
|
108
|
-
function _ContactFolders() {
|
|
109
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Create a new Contact Folder for the user.
|
|
113
|
-
*
|
|
114
|
-
* @param displayName The folder's display name.
|
|
115
|
-
* @param parentFolderId The ID of the folder's parent folder.
|
|
116
|
-
*/
|
|
117
|
-
_ContactFolders.prototype.add = function (displayName, parentFolderId) {
|
|
118
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
119
|
-
var postBody, data;
|
|
120
|
-
return __generator(this, function (_a) {
|
|
121
|
-
switch (_a.label) {
|
|
122
|
-
case 0:
|
|
123
|
-
postBody = {
|
|
124
|
-
displayName: displayName,
|
|
125
|
-
parentFolderId: parentFolderId,
|
|
126
|
-
};
|
|
127
|
-
return [4 /*yield*/, graphPost(this, body(postBody))];
|
|
128
|
-
case 1:
|
|
129
|
-
data = _a.sent();
|
|
130
|
-
return [2 /*return*/, {
|
|
131
|
-
contactFolder: this.getById(data.id),
|
|
132
|
-
data: data,
|
|
133
|
-
}];
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
};
|
|
138
|
-
_ContactFolders = __decorate([
|
|
139
|
-
defaultPath("contactFolders"),
|
|
140
|
-
getById(ContactFolder)
|
|
141
|
-
], _ContactFolders);
|
|
142
|
-
return _ContactFolders;
|
|
143
|
-
}(_GraphQueryableCollection));
|
|
144
|
-
export { _ContactFolders };
|
|
145
|
-
export var ContactFolders = graphInvokableFactory(_ContactFolders);
|
|
1
|
+
import { __awaiter, __decorate, __extends, __generator } from "tslib";
|
|
2
|
+
import { _GraphQueryableCollection, _GraphQueryableInstance, graphInvokableFactory } from "../graphqueryable.js";
|
|
3
|
+
import { assign } from "@pnp/common";
|
|
4
|
+
import { defaultPath, updateable, deleteable, getById } from "../decorators.js";
|
|
5
|
+
import { graphPost } from "../operations.js";
|
|
6
|
+
import { body } from "@pnp/odata";
|
|
7
|
+
/**
|
|
8
|
+
* Contact
|
|
9
|
+
*/
|
|
10
|
+
var _Contact = /** @class */ (function (_super) {
|
|
11
|
+
__extends(_Contact, _super);
|
|
12
|
+
function _Contact() {
|
|
13
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
+
}
|
|
15
|
+
_Contact = __decorate([
|
|
16
|
+
updateable(),
|
|
17
|
+
deleteable()
|
|
18
|
+
], _Contact);
|
|
19
|
+
return _Contact;
|
|
20
|
+
}(_GraphQueryableInstance));
|
|
21
|
+
export { _Contact };
|
|
22
|
+
export var Contact = graphInvokableFactory(_Contact);
|
|
23
|
+
/**
|
|
24
|
+
* Contacts
|
|
25
|
+
*/
|
|
26
|
+
var _Contacts = /** @class */ (function (_super) {
|
|
27
|
+
__extends(_Contacts, _super);
|
|
28
|
+
function _Contacts() {
|
|
29
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Create a new Contact for the user.
|
|
33
|
+
*
|
|
34
|
+
* @param givenName The contact's given name.
|
|
35
|
+
* @param surName The contact's surname.
|
|
36
|
+
* @param emailAddresses The contact's email addresses.
|
|
37
|
+
* @param businessPhones The contact's business phone numbers.
|
|
38
|
+
* @param additionalProperties A plain object collection of additional properties you want to set on the new contact
|
|
39
|
+
*/
|
|
40
|
+
_Contacts.prototype.add = function (givenName, surName, emailAddresses, businessPhones, additionalProperties) {
|
|
41
|
+
if (additionalProperties === void 0) { additionalProperties = {}; }
|
|
42
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
43
|
+
var postBody, data;
|
|
44
|
+
return __generator(this, function (_a) {
|
|
45
|
+
switch (_a.label) {
|
|
46
|
+
case 0:
|
|
47
|
+
postBody = assign({ businessPhones: businessPhones, emailAddresses: emailAddresses, givenName: givenName, surName: surName }, additionalProperties);
|
|
48
|
+
return [4 /*yield*/, graphPost(this, body(postBody))];
|
|
49
|
+
case 1:
|
|
50
|
+
data = _a.sent();
|
|
51
|
+
return [2 /*return*/, {
|
|
52
|
+
contact: this.getById(data.id),
|
|
53
|
+
data: data,
|
|
54
|
+
}];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
_Contacts = __decorate([
|
|
60
|
+
defaultPath("contacts"),
|
|
61
|
+
getById(Contact)
|
|
62
|
+
], _Contacts);
|
|
63
|
+
return _Contacts;
|
|
64
|
+
}(_GraphQueryableCollection));
|
|
65
|
+
export { _Contacts };
|
|
66
|
+
export var Contacts = graphInvokableFactory(_Contacts);
|
|
67
|
+
/**
|
|
68
|
+
* Contact Folder
|
|
69
|
+
*/
|
|
70
|
+
var _ContactFolder = /** @class */ (function (_super) {
|
|
71
|
+
__extends(_ContactFolder, _super);
|
|
72
|
+
function _ContactFolder() {
|
|
73
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
74
|
+
}
|
|
75
|
+
Object.defineProperty(_ContactFolder.prototype, "contacts", {
|
|
76
|
+
/**
|
|
77
|
+
* Gets the contacts in this contact folder
|
|
78
|
+
*/
|
|
79
|
+
get: function () {
|
|
80
|
+
return Contacts(this);
|
|
81
|
+
},
|
|
82
|
+
enumerable: false,
|
|
83
|
+
configurable: true
|
|
84
|
+
});
|
|
85
|
+
Object.defineProperty(_ContactFolder.prototype, "childFolders", {
|
|
86
|
+
/**
|
|
87
|
+
* Gets the contacts in this contact folder
|
|
88
|
+
*/
|
|
89
|
+
get: function () {
|
|
90
|
+
return ContactFolders(this, "childFolders");
|
|
91
|
+
},
|
|
92
|
+
enumerable: false,
|
|
93
|
+
configurable: true
|
|
94
|
+
});
|
|
95
|
+
_ContactFolder = __decorate([
|
|
96
|
+
deleteable(),
|
|
97
|
+
updateable()
|
|
98
|
+
], _ContactFolder);
|
|
99
|
+
return _ContactFolder;
|
|
100
|
+
}(_GraphQueryableInstance));
|
|
101
|
+
export { _ContactFolder };
|
|
102
|
+
export var ContactFolder = graphInvokableFactory(_ContactFolder);
|
|
103
|
+
/**
|
|
104
|
+
* Contact Folders
|
|
105
|
+
*/
|
|
106
|
+
var _ContactFolders = /** @class */ (function (_super) {
|
|
107
|
+
__extends(_ContactFolders, _super);
|
|
108
|
+
function _ContactFolders() {
|
|
109
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Create a new Contact Folder for the user.
|
|
113
|
+
*
|
|
114
|
+
* @param displayName The folder's display name.
|
|
115
|
+
* @param parentFolderId The ID of the folder's parent folder.
|
|
116
|
+
*/
|
|
117
|
+
_ContactFolders.prototype.add = function (displayName, parentFolderId) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
119
|
+
var postBody, data;
|
|
120
|
+
return __generator(this, function (_a) {
|
|
121
|
+
switch (_a.label) {
|
|
122
|
+
case 0:
|
|
123
|
+
postBody = {
|
|
124
|
+
displayName: displayName,
|
|
125
|
+
parentFolderId: parentFolderId,
|
|
126
|
+
};
|
|
127
|
+
return [4 /*yield*/, graphPost(this, body(postBody))];
|
|
128
|
+
case 1:
|
|
129
|
+
data = _a.sent();
|
|
130
|
+
return [2 /*return*/, {
|
|
131
|
+
contactFolder: this.getById(data.id),
|
|
132
|
+
data: data,
|
|
133
|
+
}];
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
_ContactFolders = __decorate([
|
|
139
|
+
defaultPath("contactFolders"),
|
|
140
|
+
getById(ContactFolder)
|
|
141
|
+
], _ContactFolders);
|
|
142
|
+
return _ContactFolders;
|
|
143
|
+
}(_GraphQueryableCollection));
|
|
144
|
+
export { _ContactFolders };
|
|
145
|
+
export var ContactFolders = graphInvokableFactory(_ContactFolders);
|
|
146
146
|
//# sourceMappingURL=types.js.map
|
package/contacts/users.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IContacts, IContactFolders } from "./types.js";
|
|
2
|
-
declare module "../users/types" {
|
|
3
|
-
interface _User {
|
|
4
|
-
readonly contacts: IContacts;
|
|
5
|
-
readonly contactFolders: IContactFolders;
|
|
6
|
-
}
|
|
7
|
-
interface IUser {
|
|
8
|
-
readonly contacts: IContacts;
|
|
9
|
-
readonly contactFolders: IContactFolders;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
import { IContacts, IContactFolders } from "./types.js";
|
|
2
|
+
declare module "../users/types" {
|
|
3
|
+
interface _User {
|
|
4
|
+
readonly contacts: IContacts;
|
|
5
|
+
readonly contactFolders: IContactFolders;
|
|
6
|
+
}
|
|
7
|
+
interface IUser {
|
|
8
|
+
readonly contacts: IContacts;
|
|
9
|
+
readonly contactFolders: IContactFolders;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
12
|
//# sourceMappingURL=users.d.ts.map
|
package/contacts/users.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { addProp } from "@pnp/odata";
|
|
2
|
-
import { _User } from "../users/types.js";
|
|
3
|
-
import { Contacts, ContactFolders } from "./types.js";
|
|
4
|
-
addProp(_User, "contacts", Contacts);
|
|
5
|
-
addProp(_User, "contactFolders", ContactFolders);
|
|
1
|
+
import { addProp } from "@pnp/odata";
|
|
2
|
+
import { _User } from "../users/types.js";
|
|
3
|
+
import { Contacts, ContactFolders } from "./types.js";
|
|
4
|
+
addProp(_User, "contacts", Contacts);
|
|
5
|
+
addProp(_User, "contactFolders", ContactFolders);
|
|
6
6
|
//# sourceMappingURL=users.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IConversations, ISenders } from "./types.js";
|
|
2
|
-
declare module "../groups/types" {
|
|
3
|
-
interface _Group {
|
|
4
|
-
readonly conversations: IConversations;
|
|
5
|
-
readonly acceptedSenders: ISenders;
|
|
6
|
-
readonly rejectedSenders: ISenders;
|
|
7
|
-
}
|
|
8
|
-
interface IGroup {
|
|
9
|
-
readonly conversations: IConversations;
|
|
10
|
-
readonly acceptedSenders: ISenders;
|
|
11
|
-
readonly rejectedSenders: ISenders;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
1
|
+
import { IConversations, ISenders } from "./types.js";
|
|
2
|
+
declare module "../groups/types" {
|
|
3
|
+
interface _Group {
|
|
4
|
+
readonly conversations: IConversations;
|
|
5
|
+
readonly acceptedSenders: ISenders;
|
|
6
|
+
readonly rejectedSenders: ISenders;
|
|
7
|
+
}
|
|
8
|
+
interface IGroup {
|
|
9
|
+
readonly conversations: IConversations;
|
|
10
|
+
readonly acceptedSenders: ISenders;
|
|
11
|
+
readonly rejectedSenders: ISenders;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=groups.d.ts.map
|
package/conversations/groups.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { addProp } from "@pnp/odata";
|
|
2
|
-
import { _Group } from "../groups/types.js";
|
|
3
|
-
import { Conversations, Senders } from "./types.js";
|
|
4
|
-
addProp(_Group, "conversations", Conversations);
|
|
5
|
-
addProp(_Group, "acceptedSenders", Senders, "acceptedsenders");
|
|
6
|
-
addProp(_Group, "rejectedSenders", Senders, "rejectedsenders");
|
|
1
|
+
import { addProp } from "@pnp/odata";
|
|
2
|
+
import { _Group } from "../groups/types.js";
|
|
3
|
+
import { Conversations, Senders } from "./types.js";
|
|
4
|
+
addProp(_Group, "conversations", Conversations);
|
|
5
|
+
addProp(_Group, "acceptedSenders", Senders, "acceptedsenders");
|
|
6
|
+
addProp(_Group, "rejectedSenders", Senders, "rejectedsenders");
|
|
7
7
|
//# sourceMappingURL=groups.js.map
|
package/conversations/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./groups.js";
|
|
2
|
-
export { Conversation, Conversations, IConversation, IConversations, IPost, IPostForwardInfo, IPosts, ISenders, IThread, IThreads, Post, Posts, Senders, Thread, Threads, } from "./types.js";
|
|
1
|
+
import "./groups.js";
|
|
2
|
+
export { Conversation, Conversations, IConversation, IConversations, IPost, IPostForwardInfo, IPosts, ISenders, IThread, IThreads, Post, Posts, Senders, Thread, Threads, } from "./types.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/conversations/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./groups.js";
|
|
2
|
-
export { Conversation, Conversations, Post, Posts, Senders, Thread, Threads, } from "./types.js";
|
|
1
|
+
import "./groups.js";
|
|
2
|
+
export { Conversation, Conversations, Post, Posts, Senders, Thread, Threads, } from "./types.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/conversations/types.d.ts
CHANGED
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import { ConversationThread as IConversationThreadType, Post as IPostType, Recipient as IRecipientType, Conversation as IConversationType, User as IUserType } from "@microsoft/microsoft-graph-types";
|
|
2
|
-
import { _GraphQueryableCollection, _GraphQueryableInstance } from "../graphqueryable.js";
|
|
3
|
-
import { IUpdateable, IDeleteable, IAddable, IGetById } from "../decorators.js";
|
|
4
|
-
/**
|
|
5
|
-
* Conversation
|
|
6
|
-
*/
|
|
7
|
-
export declare class _Conversation extends _GraphQueryableInstance<IConversationType> {
|
|
8
|
-
/**
|
|
9
|
-
* Get all the threads in a group conversation.
|
|
10
|
-
*/
|
|
11
|
-
get threads(): IThreads;
|
|
12
|
-
}
|
|
13
|
-
export interface IConversation extends _Conversation, IUpdateable<IConversationType>, IDeleteable {
|
|
14
|
-
}
|
|
15
|
-
export declare const Conversation: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IConversation & import("@pnp/odata").IInvokable<any>;
|
|
16
|
-
/**
|
|
17
|
-
* Conversations
|
|
18
|
-
*/
|
|
19
|
-
export declare class _Conversations extends _GraphQueryableCollection<IConversationType[]> {
|
|
20
|
-
}
|
|
21
|
-
export interface IConversations extends _Conversations, IGetById<IConversation>, IAddable<IConversationType> {
|
|
22
|
-
}
|
|
23
|
-
export declare const Conversations: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IConversations & import("@pnp/odata").IInvokable<any>;
|
|
24
|
-
/**
|
|
25
|
-
* Thread
|
|
26
|
-
*/
|
|
27
|
-
export declare class _Thread extends _GraphQueryableInstance {
|
|
28
|
-
/**
|
|
29
|
-
* Get all the threads in a group conversation.
|
|
30
|
-
*/
|
|
31
|
-
get posts(): IPosts;
|
|
32
|
-
/**
|
|
33
|
-
* Reply to a thread in a group conversation and add a new post to it
|
|
34
|
-
*
|
|
35
|
-
* @param post Contents of the post
|
|
36
|
-
*/
|
|
37
|
-
reply(post: IPostType): Promise<void>;
|
|
38
|
-
}
|
|
39
|
-
export interface IThread extends _Thread, IDeleteable {
|
|
40
|
-
}
|
|
41
|
-
export declare const Thread: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IThread & import("@pnp/odata").IInvokable<any>;
|
|
42
|
-
/**
|
|
43
|
-
* Threads
|
|
44
|
-
*/
|
|
45
|
-
export declare class _Threads extends _GraphQueryableCollection<IConversationThreadType[]> {
|
|
46
|
-
}
|
|
47
|
-
export interface IThreads extends _Threads, IGetById<IThread>, IAddable<IConversationThreadType, {
|
|
48
|
-
id: string;
|
|
49
|
-
}> {
|
|
50
|
-
}
|
|
51
|
-
export declare const Threads: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IThreads & import("@pnp/odata").IInvokable<any>;
|
|
52
|
-
/**
|
|
53
|
-
* Post
|
|
54
|
-
*/
|
|
55
|
-
export declare class _Post extends _GraphQueryableInstance<IPostType> {
|
|
56
|
-
/**
|
|
57
|
-
* Forward a post to a recipient
|
|
58
|
-
*/
|
|
59
|
-
forward(info: IPostForwardInfo): Promise<void>;
|
|
60
|
-
/**
|
|
61
|
-
* Reply to a thread in a group conversation and add a new post to it
|
|
62
|
-
*
|
|
63
|
-
* @param post Contents of the post
|
|
64
|
-
*/
|
|
65
|
-
reply(post: IPostType): Promise<void>;
|
|
66
|
-
}
|
|
67
|
-
export interface IPost extends _Post, IDeleteable {
|
|
68
|
-
}
|
|
69
|
-
export declare const Post: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IPost & import("@pnp/odata").IInvokable<any>;
|
|
70
|
-
/**
|
|
71
|
-
* Posts
|
|
72
|
-
*/
|
|
73
|
-
export declare class _Posts extends _GraphQueryableCollection<IPostType[]> {
|
|
74
|
-
}
|
|
75
|
-
export interface IPosts extends _Posts, IGetById<IPost>, IAddable<IPostType> {
|
|
76
|
-
}
|
|
77
|
-
export declare const Posts: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IPosts & import("@pnp/odata").IInvokable<any>;
|
|
78
|
-
/**
|
|
79
|
-
* Senders
|
|
80
|
-
*/
|
|
81
|
-
export declare class _Senders extends _GraphQueryableCollection<IUserType[]> {
|
|
82
|
-
/**
|
|
83
|
-
* Add a new user or group to this senders collection
|
|
84
|
-
* @param id The full @odata.id value to add (ex: https://graph.microsoft.com/v1.0/users/user@contoso.com)
|
|
85
|
-
*/
|
|
86
|
-
add(id: string): Promise<any>;
|
|
87
|
-
/**
|
|
88
|
-
* Removes the entity from the collection
|
|
89
|
-
*
|
|
90
|
-
* @param id The full @odata.id value to remove (ex: https://graph.microsoft.com/v1.0/users/user@contoso.com)
|
|
91
|
-
*/
|
|
92
|
-
remove(id: string): Promise<void>;
|
|
93
|
-
}
|
|
94
|
-
export interface ISenders extends _Senders {
|
|
95
|
-
}
|
|
96
|
-
export declare const Senders: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ISenders & import("@pnp/odata").IInvokable<any>;
|
|
97
|
-
/**
|
|
98
|
-
* Information used to forward a post
|
|
99
|
-
*/
|
|
100
|
-
export interface IPostForwardInfo {
|
|
101
|
-
comment?: string;
|
|
102
|
-
toRecipients: IRecipientType[];
|
|
103
|
-
}
|
|
1
|
+
import { ConversationThread as IConversationThreadType, Post as IPostType, Recipient as IRecipientType, Conversation as IConversationType, User as IUserType } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import { _GraphQueryableCollection, _GraphQueryableInstance } from "../graphqueryable.js";
|
|
3
|
+
import { IUpdateable, IDeleteable, IAddable, IGetById } from "../decorators.js";
|
|
4
|
+
/**
|
|
5
|
+
* Conversation
|
|
6
|
+
*/
|
|
7
|
+
export declare class _Conversation extends _GraphQueryableInstance<IConversationType> {
|
|
8
|
+
/**
|
|
9
|
+
* Get all the threads in a group conversation.
|
|
10
|
+
*/
|
|
11
|
+
get threads(): IThreads;
|
|
12
|
+
}
|
|
13
|
+
export interface IConversation extends _Conversation, IUpdateable<IConversationType>, IDeleteable {
|
|
14
|
+
}
|
|
15
|
+
export declare const Conversation: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IConversation & import("@pnp/odata").IInvokable<any>;
|
|
16
|
+
/**
|
|
17
|
+
* Conversations
|
|
18
|
+
*/
|
|
19
|
+
export declare class _Conversations extends _GraphQueryableCollection<IConversationType[]> {
|
|
20
|
+
}
|
|
21
|
+
export interface IConversations extends _Conversations, IGetById<IConversation>, IAddable<IConversationType> {
|
|
22
|
+
}
|
|
23
|
+
export declare const Conversations: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IConversations & import("@pnp/odata").IInvokable<any>;
|
|
24
|
+
/**
|
|
25
|
+
* Thread
|
|
26
|
+
*/
|
|
27
|
+
export declare class _Thread extends _GraphQueryableInstance {
|
|
28
|
+
/**
|
|
29
|
+
* Get all the threads in a group conversation.
|
|
30
|
+
*/
|
|
31
|
+
get posts(): IPosts;
|
|
32
|
+
/**
|
|
33
|
+
* Reply to a thread in a group conversation and add a new post to it
|
|
34
|
+
*
|
|
35
|
+
* @param post Contents of the post
|
|
36
|
+
*/
|
|
37
|
+
reply(post: IPostType): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
export interface IThread extends _Thread, IDeleteable {
|
|
40
|
+
}
|
|
41
|
+
export declare const Thread: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IThread & import("@pnp/odata").IInvokable<any>;
|
|
42
|
+
/**
|
|
43
|
+
* Threads
|
|
44
|
+
*/
|
|
45
|
+
export declare class _Threads extends _GraphQueryableCollection<IConversationThreadType[]> {
|
|
46
|
+
}
|
|
47
|
+
export interface IThreads extends _Threads, IGetById<IThread>, IAddable<IConversationThreadType, {
|
|
48
|
+
id: string;
|
|
49
|
+
}> {
|
|
50
|
+
}
|
|
51
|
+
export declare const Threads: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IThreads & import("@pnp/odata").IInvokable<any>;
|
|
52
|
+
/**
|
|
53
|
+
* Post
|
|
54
|
+
*/
|
|
55
|
+
export declare class _Post extends _GraphQueryableInstance<IPostType> {
|
|
56
|
+
/**
|
|
57
|
+
* Forward a post to a recipient
|
|
58
|
+
*/
|
|
59
|
+
forward(info: IPostForwardInfo): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Reply to a thread in a group conversation and add a new post to it
|
|
62
|
+
*
|
|
63
|
+
* @param post Contents of the post
|
|
64
|
+
*/
|
|
65
|
+
reply(post: IPostType): Promise<void>;
|
|
66
|
+
}
|
|
67
|
+
export interface IPost extends _Post, IDeleteable {
|
|
68
|
+
}
|
|
69
|
+
export declare const Post: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IPost & import("@pnp/odata").IInvokable<any>;
|
|
70
|
+
/**
|
|
71
|
+
* Posts
|
|
72
|
+
*/
|
|
73
|
+
export declare class _Posts extends _GraphQueryableCollection<IPostType[]> {
|
|
74
|
+
}
|
|
75
|
+
export interface IPosts extends _Posts, IGetById<IPost>, IAddable<IPostType> {
|
|
76
|
+
}
|
|
77
|
+
export declare const Posts: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IPosts & import("@pnp/odata").IInvokable<any>;
|
|
78
|
+
/**
|
|
79
|
+
* Senders
|
|
80
|
+
*/
|
|
81
|
+
export declare class _Senders extends _GraphQueryableCollection<IUserType[]> {
|
|
82
|
+
/**
|
|
83
|
+
* Add a new user or group to this senders collection
|
|
84
|
+
* @param id The full @odata.id value to add (ex: https://graph.microsoft.com/v1.0/users/user@contoso.com)
|
|
85
|
+
*/
|
|
86
|
+
add(id: string): Promise<any>;
|
|
87
|
+
/**
|
|
88
|
+
* Removes the entity from the collection
|
|
89
|
+
*
|
|
90
|
+
* @param id The full @odata.id value to remove (ex: https://graph.microsoft.com/v1.0/users/user@contoso.com)
|
|
91
|
+
*/
|
|
92
|
+
remove(id: string): Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
export interface ISenders extends _Senders {
|
|
95
|
+
}
|
|
96
|
+
export declare const Senders: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ISenders & import("@pnp/odata").IInvokable<any>;
|
|
97
|
+
/**
|
|
98
|
+
* Information used to forward a post
|
|
99
|
+
*/
|
|
100
|
+
export interface IPostForwardInfo {
|
|
101
|
+
comment?: string;
|
|
102
|
+
toRecipients: IRecipientType[];
|
|
103
|
+
}
|
|
104
104
|
//# sourceMappingURL=types.d.ts.map
|