@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.
Files changed (165) hide show
  1. package/LICENSE +25 -25
  2. package/attachments/conversations.d.ts +9 -9
  3. package/attachments/conversations.js +4 -4
  4. package/attachments/index.d.ts +2 -2
  5. package/attachments/index.js +2 -2
  6. package/attachments/types.d.ts +26 -26
  7. package/attachments/types.js +46 -46
  8. package/batch.d.ts +17 -17
  9. package/batch.js +176 -176
  10. package/calendars/funcs.d.ts +36 -24
  11. package/calendars/funcs.d.ts.map +1 -1
  12. package/calendars/funcs.js +43 -29
  13. package/calendars/funcs.js.map +1 -1
  14. package/calendars/groups.d.ts +13 -13
  15. package/calendars/groups.js +5 -5
  16. package/calendars/index.d.ts +4 -4
  17. package/calendars/index.js +3 -3
  18. package/calendars/types.d.ts +52 -51
  19. package/calendars/types.d.ts.map +1 -1
  20. package/calendars/types.js +98 -96
  21. package/calendars/types.js.map +1 -1
  22. package/calendars/users.d.ts +22 -22
  23. package/calendars/users.js +9 -9
  24. package/cloud-communications/index.d.ts +8 -8
  25. package/cloud-communications/index.js +14 -14
  26. package/cloud-communications/types.d.ts +21 -21
  27. package/cloud-communications/types.js +46 -46
  28. package/cloud-communications/users.d.ts +9 -9
  29. package/cloud-communications/users.js +4 -4
  30. package/contacts/index.d.ts +2 -2
  31. package/contacts/index.js +2 -2
  32. package/contacts/types.d.ts +75 -75
  33. package/contacts/types.js +145 -145
  34. package/contacts/users.d.ts +11 -11
  35. package/contacts/users.js +5 -5
  36. package/conversations/groups.d.ts +13 -13
  37. package/conversations/groups.js +6 -6
  38. package/conversations/index.d.ts +2 -2
  39. package/conversations/index.js +2 -2
  40. package/conversations/types.d.ts +103 -103
  41. package/conversations/types.js +173 -173
  42. package/decorators.d.ts +103 -103
  43. package/decorators.js +138 -138
  44. package/directory-objects/index.d.ts +7 -7
  45. package/directory-objects/index.js +13 -13
  46. package/directory-objects/types.d.ts +67 -67
  47. package/directory-objects/types.js +96 -96
  48. package/graphhttpclient.d.ts +13 -13
  49. package/graphhttpclient.js +95 -95
  50. package/graphlibconfig.d.ts +21 -21
  51. package/graphlibconfig.js +19 -19
  52. package/graphqueryable.d.ts +156 -156
  53. package/graphqueryable.d.ts.map +1 -1
  54. package/graphqueryable.js +247 -237
  55. package/graphqueryable.js.map +1 -1
  56. package/groups/index.d.ts +7 -7
  57. package/groups/index.js +13 -13
  58. package/groups/types.d.ts +81 -81
  59. package/groups/types.d.ts.map +1 -1
  60. package/groups/types.js +137 -137
  61. package/groups/types.js.map +1 -1
  62. package/index.d.ts +8 -8
  63. package/index.js +7 -7
  64. package/insights/index.d.ts +2 -2
  65. package/insights/index.js +2 -2
  66. package/insights/types.d.ts +76 -76
  67. package/insights/types.js +162 -162
  68. package/insights/users.d.ts +9 -9
  69. package/insights/users.js +4 -4
  70. package/invitations/index.d.ts +7 -7
  71. package/invitations/index.js +13 -13
  72. package/invitations/types.d.ts +25 -25
  73. package/invitations/types.js +44 -44
  74. package/members/groups.d.ts +11 -11
  75. package/members/groups.js +5 -5
  76. package/members/index.d.ts +2 -2
  77. package/members/index.js +2 -2
  78. package/members/types.d.ts +31 -31
  79. package/members/types.js +49 -49
  80. package/messages/index.d.ts +2 -2
  81. package/messages/index.js +2 -2
  82. package/messages/types.d.ts +43 -43
  83. package/messages/types.d.ts.map +1 -1
  84. package/messages/types.js +77 -77
  85. package/messages/types.js.map +1 -1
  86. package/messages/users.d.ts +15 -15
  87. package/messages/users.js +10 -10
  88. package/onedrive/index.d.ts +2 -2
  89. package/onedrive/index.js +2 -2
  90. package/onedrive/types.d.ts +95 -87
  91. package/onedrive/types.d.ts.map +1 -1
  92. package/onedrive/types.js +241 -192
  93. package/onedrive/types.js.map +1 -1
  94. package/onedrive/users.d.ts +11 -11
  95. package/onedrive/users.js +5 -5
  96. package/onenote/index.d.ts +2 -2
  97. package/onenote/index.js +2 -2
  98. package/onenote/types.d.ts +76 -76
  99. package/onenote/types.js +149 -149
  100. package/onenote/users.d.ts +9 -9
  101. package/onenote/users.js +4 -4
  102. package/operations.d.ts +8 -8
  103. package/operations.js +41 -41
  104. package/outlook/index.d.ts +2 -2
  105. package/outlook/index.js +2 -2
  106. package/outlook/types.d.ts +40 -40
  107. package/outlook/types.js +76 -76
  108. package/outlook/users.d.ts +9 -9
  109. package/outlook/users.js +4 -4
  110. package/package.json +5 -5
  111. package/photos/groups.d.ts +9 -9
  112. package/photos/groups.js +4 -4
  113. package/photos/index.d.ts +3 -3
  114. package/photos/index.js +3 -3
  115. package/photos/types.d.ts +21 -21
  116. package/photos/types.js +37 -37
  117. package/photos/users.d.ts +9 -9
  118. package/photos/users.js +4 -4
  119. package/planner/groups.d.ts +9 -9
  120. package/planner/groups.js +4 -4
  121. package/planner/index.d.ts +9 -9
  122. package/planner/index.js +15 -15
  123. package/planner/types.d.ts +117 -117
  124. package/planner/types.js +291 -291
  125. package/planner/users.d.ts +9 -9
  126. package/planner/users.js +4 -4
  127. package/presets/all.d.ts +38 -38
  128. package/presets/all.js +38 -38
  129. package/readme.md +21 -21
  130. package/rest.d.ts +30 -30
  131. package/rest.js +57 -57
  132. package/search/index.d.ts +7 -7
  133. package/search/index.js +18 -18
  134. package/search/types.d.ts +16 -16
  135. package/search/types.js +23 -23
  136. package/sites/group.d.ts +9 -9
  137. package/sites/group.js +4 -4
  138. package/sites/index.d.ts +2 -2
  139. package/sites/index.js +2 -2
  140. package/sites/types.d.ts +23 -23
  141. package/sites/types.js +47 -47
  142. package/subscriptions/index.d.ts +7 -7
  143. package/subscriptions/index.js +13 -13
  144. package/subscriptions/types.d.ts +37 -37
  145. package/subscriptions/types.js +72 -72
  146. package/teams/index.d.ts +19 -19
  147. package/teams/index.js +35 -35
  148. package/teams/types.d.ts +112 -111
  149. package/teams/types.d.ts.map +1 -1
  150. package/teams/types.js +261 -254
  151. package/teams/types.js.map +1 -1
  152. package/teams/users.d.ts +9 -9
  153. package/teams/users.js +4 -4
  154. package/types.d.ts +9 -9
  155. package/types.js +19 -19
  156. package/users/index.d.ts +8 -8
  157. package/users/index.js +23 -23
  158. package/users/types.d.ts +35 -35
  159. package/users/types.d.ts.map +1 -1
  160. package/users/types.js +82 -82
  161. package/users/types.js.map +1 -1
  162. package/utils/toabsoluteurl.d.ts +7 -7
  163. package/utils/toabsoluteurl.js +48 -48
  164. package/utils/type.d.ts +3 -3
  165. package/utils/type.js +3 -3
package/teams/types.js CHANGED
@@ -1,255 +1,262 @@
1
- import { __awaiter, __decorate, __extends, __generator } from "tslib";
2
- import { _GraphQueryableInstance, _GraphQueryableCollection, graphInvokableFactory, GraphQueryableInstance } from "../graphqueryable";
3
- import { body, LambdaParser } from "@pnp/odata";
4
- import { assign } from "@pnp/common";
5
- import { updateable, getById, deleteable } from "../decorators";
6
- import { graphPost } from "../operations";
7
- import { defaultPath } from "../decorators";
8
- /**
9
- * Represents a Microsoft Team
10
- */
11
- var _Team = /** @class */ (function (_super) {
12
- __extends(_Team, _super);
13
- function _Team() {
14
- return _super !== null && _super.apply(this, arguments) || this;
15
- }
16
- Object.defineProperty(_Team.prototype, "channels", {
17
- get: function () {
18
- return Channels(this);
19
- },
20
- enumerable: false,
21
- configurable: true
22
- });
23
- /**
24
- * Archives this Team
25
- *
26
- * @param shouldSetSpoSiteReadOnlyForMembers Should members have Read-only in associated Team Site
27
- */
28
- _Team.prototype.archive = function (shouldSetSpoSiteReadOnlyForMembers) {
29
- if (shouldSetSpoSiteReadOnlyForMembers === void 0) { shouldSetSpoSiteReadOnlyForMembers = false; }
30
- return graphPost(this.clone(Team, "archive"), body({ shouldSetSpoSiteReadOnlyForMembers: shouldSetSpoSiteReadOnlyForMembers }));
31
- };
32
- /**
33
- * Unarchives this Team
34
- */
35
- _Team.prototype.unarchive = function () {
36
- return graphPost(this.clone(Team, "unarchive"));
37
- };
38
- /**
39
- * Clones this Team
40
- * @param name The name of the new Group
41
- * @param description Optional description of the group
42
- * @param partsToClone Parts to clone ex: apps,tabs,settings,channels,members
43
- * @param visibility Set visibility to public or private
44
- */
45
- _Team.prototype.cloneTeam = function (name, description, partsToClone, visibility) {
46
- if (description === void 0) { description = ""; }
47
- if (partsToClone === void 0) { partsToClone = "apps,tabs,settings,channels,members"; }
48
- if (visibility === void 0) { visibility = "private"; }
49
- return __awaiter(this, void 0, void 0, function () {
50
- var postBody, parser, creator, data, result, location_1, locationArray;
51
- return __generator(this, function (_a) {
52
- switch (_a.label) {
53
- case 0:
54
- postBody = {
55
- description: description ? description : "",
56
- displayName: name,
57
- mailNickname: name,
58
- partsToClone: partsToClone,
59
- visibility: visibility,
60
- };
61
- parser = new LambdaParser(function (r) { return Promise.resolve(r.headers); });
62
- creator = Teams(this, "clone").usingParser(parser);
63
- return [4 /*yield*/, graphPost(creator, body(postBody))];
64
- case 1:
65
- data = _a.sent();
66
- result = { teamId: "", operationId: "" };
67
- if (data.has("location")) {
68
- location_1 = data.get("location");
69
- locationArray = location_1.split("/");
70
- if (locationArray.length === 3) {
71
- result.teamId = locationArray[1].substring(locationArray[1].indexOf("'") + 1, locationArray[1].lastIndexOf("'"));
72
- result.operationId = locationArray[2].substring(locationArray[2].indexOf("'") + 1, locationArray[2].lastIndexOf("'"));
73
- }
74
- }
75
- return [2 /*return*/, result];
76
- }
77
- });
78
- });
79
- };
80
- _Team.prototype.getOperationById = function (id) {
81
- return GraphQueryableInstance(this, "operations/" + id)();
82
- };
83
- _Team = __decorate([
84
- defaultPath("team"),
85
- updateable()
86
- ], _Team);
87
- return _Team;
88
- }(_GraphQueryableInstance));
89
- export { _Team };
90
- export var Team = graphInvokableFactory(_Team);
91
- /**
92
- * Teams
93
- */
94
- var _Teams = /** @class */ (function (_super) {
95
- __extends(_Teams, _super);
96
- function _Teams() {
97
- return _super !== null && _super.apply(this, arguments) || this;
98
- }
99
- _Teams.prototype.create = function (team) {
100
- return __awaiter(this, void 0, void 0, function () {
101
- var parser, creator, data, result, location_2, locationArray;
102
- return __generator(this, function (_a) {
103
- switch (_a.label) {
104
- case 0:
105
- parser = new LambdaParser(function (r) { return Promise.resolve(r.headers); });
106
- creator = Teams(this, null).usingParser(parser);
107
- return [4 /*yield*/, graphPost(creator, body(team))];
108
- case 1:
109
- data = _a.sent();
110
- result = { teamId: "", operationId: "" };
111
- if (data.has("location")) {
112
- location_2 = data.get("location");
113
- locationArray = location_2.split("/");
114
- if (locationArray.length === 3) {
115
- result.teamId = locationArray[1].substring(locationArray[1].indexOf("'") + 1, locationArray[1].lastIndexOf("'"));
116
- result.operationId = locationArray[2].substring(locationArray[2].indexOf("'") + 1, locationArray[2].lastIndexOf("'"));
117
- }
118
- }
119
- return [2 /*return*/, result];
120
- }
121
- });
122
- });
123
- };
124
- _Teams = __decorate([
125
- defaultPath("teams"),
126
- getById(Team)
127
- ], _Teams);
128
- return _Teams;
129
- }(_GraphQueryableCollection));
130
- export { _Teams };
131
- export var Teams = graphInvokableFactory(_Teams);
132
- /**
133
- * Channel
134
- */
135
- var _Channel = /** @class */ (function (_super) {
136
- __extends(_Channel, _super);
137
- function _Channel() {
138
- return _super !== null && _super.apply(this, arguments) || this;
139
- }
140
- Object.defineProperty(_Channel.prototype, "tabs", {
141
- get: function () {
142
- return Tabs(this);
143
- },
144
- enumerable: false,
145
- configurable: true
146
- });
147
- return _Channel;
148
- }(_GraphQueryableInstance));
149
- export { _Channel };
150
- export var Channel = graphInvokableFactory(_Channel);
151
- /**
152
- * Channels
153
- */
154
- var _Channels = /** @class */ (function (_super) {
155
- __extends(_Channels, _super);
156
- function _Channels() {
157
- return _super !== null && _super.apply(this, arguments) || this;
158
- }
159
- /**
160
- * Creates a new Channel in the Team
161
- * @param displayName The display name of the new channel
162
- * @param description Optional description of the channel
163
- *
164
- */
165
- _Channels.prototype.add = function (displayName, description) {
166
- if (description === void 0) { description = ""; }
167
- return __awaiter(this, void 0, void 0, function () {
168
- var postBody, data;
169
- return __generator(this, function (_a) {
170
- switch (_a.label) {
171
- case 0:
172
- postBody = {
173
- description: description,
174
- displayName: displayName,
175
- };
176
- return [4 /*yield*/, graphPost(this, body(postBody))];
177
- case 1:
178
- data = _a.sent();
179
- return [2 /*return*/, {
180
- channel: this.getById(data.id),
181
- data: data,
182
- }];
183
- }
184
- });
185
- });
186
- };
187
- _Channels = __decorate([
188
- defaultPath("channels"),
189
- getById(Channel)
190
- ], _Channels);
191
- return _Channels;
192
- }(_GraphQueryableCollection));
193
- export { _Channels };
194
- export var Channels = graphInvokableFactory(_Channels);
195
- /**
196
- * Tab
197
- */
198
- var _Tab = /** @class */ (function (_super) {
199
- __extends(_Tab, _super);
200
- function _Tab() {
201
- return _super !== null && _super.apply(this, arguments) || this;
202
- }
203
- _Tab = __decorate([
204
- defaultPath("tab"),
205
- updateable(),
206
- deleteable()
207
- ], _Tab);
208
- return _Tab;
209
- }(_GraphQueryableInstance));
210
- export { _Tab };
211
- export var Tab = graphInvokableFactory(_Tab);
212
- /**
213
- * Tabs
214
- */
215
- var _Tabs = /** @class */ (function (_super) {
216
- __extends(_Tabs, _super);
217
- function _Tabs() {
218
- return _super !== null && _super.apply(this, arguments) || this;
219
- }
220
- /**
221
- * Adds a tab to the channel
222
- * @param name The name of the new Tab
223
- * @param appUrl The url to an app ex: https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a
224
- * @param tabsConfiguration visit https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/teamstab_add for reference
225
- */
226
- _Tabs.prototype.add = function (name, appUrl, properties) {
227
- return __awaiter(this, void 0, void 0, function () {
228
- var postBody, data;
229
- return __generator(this, function (_a) {
230
- switch (_a.label) {
231
- case 0:
232
- postBody = assign({
233
- displayName: name,
234
- "teamsApp@odata.bind": appUrl,
235
- }, properties);
236
- return [4 /*yield*/, graphPost(this, body(postBody))];
237
- case 1:
238
- data = _a.sent();
239
- return [2 /*return*/, {
240
- data: data,
241
- tab: this.getById(data.id),
242
- }];
243
- }
244
- });
245
- });
246
- };
247
- _Tabs = __decorate([
248
- defaultPath("tabs"),
249
- getById(Tab)
250
- ], _Tabs);
251
- return _Tabs;
252
- }(_GraphQueryableCollection));
253
- export { _Tabs };
254
- export var Tabs = graphInvokableFactory(_Tabs);
1
+ import { __awaiter, __decorate, __extends, __generator } from "tslib";
2
+ import { _GraphQueryableInstance, _GraphQueryableCollection, graphInvokableFactory, GraphQueryableInstance } from "../graphqueryable";
3
+ import { body, LambdaParser } from "@pnp/odata";
4
+ import { assign } from "@pnp/common";
5
+ import { updateable, getById, deleteable } from "../decorators";
6
+ import { graphPost } from "../operations";
7
+ import { defaultPath } from "../decorators";
8
+ /**
9
+ * Represents a Microsoft Team
10
+ */
11
+ var _Team = /** @class */ (function (_super) {
12
+ __extends(_Team, _super);
13
+ function _Team() {
14
+ return _super !== null && _super.apply(this, arguments) || this;
15
+ }
16
+ Object.defineProperty(_Team.prototype, "primaryChannel", {
17
+ get: function () {
18
+ return Channel(this, "primaryChannel");
19
+ },
20
+ enumerable: false,
21
+ configurable: true
22
+ });
23
+ Object.defineProperty(_Team.prototype, "channels", {
24
+ get: function () {
25
+ return Channels(this);
26
+ },
27
+ enumerable: false,
28
+ configurable: true
29
+ });
30
+ /**
31
+ * Archives this Team
32
+ *
33
+ * @param shouldSetSpoSiteReadOnlyForMembers Should members have Read-only in associated Team Site
34
+ */
35
+ _Team.prototype.archive = function (shouldSetSpoSiteReadOnlyForMembers) {
36
+ if (shouldSetSpoSiteReadOnlyForMembers === void 0) { shouldSetSpoSiteReadOnlyForMembers = false; }
37
+ return graphPost(this.clone(Team, "archive"), body({ shouldSetSpoSiteReadOnlyForMembers: shouldSetSpoSiteReadOnlyForMembers }));
38
+ };
39
+ /**
40
+ * Unarchives this Team
41
+ */
42
+ _Team.prototype.unarchive = function () {
43
+ return graphPost(this.clone(Team, "unarchive"));
44
+ };
45
+ /**
46
+ * Clones this Team
47
+ * @param name The name of the new Group
48
+ * @param description Optional description of the group
49
+ * @param partsToClone Parts to clone ex: apps,tabs,settings,channels,members
50
+ * @param visibility Set visibility to public or private
51
+ */
52
+ _Team.prototype.cloneTeam = function (name, description, partsToClone, visibility) {
53
+ if (description === void 0) { description = ""; }
54
+ if (partsToClone === void 0) { partsToClone = "apps,tabs,settings,channels,members"; }
55
+ if (visibility === void 0) { visibility = "private"; }
56
+ return __awaiter(this, void 0, void 0, function () {
57
+ var postBody, parser, creator, data, result, location_1, locationArray;
58
+ return __generator(this, function (_a) {
59
+ switch (_a.label) {
60
+ case 0:
61
+ postBody = {
62
+ description: description ? description : "",
63
+ displayName: name,
64
+ mailNickname: name,
65
+ partsToClone: partsToClone,
66
+ visibility: visibility,
67
+ };
68
+ parser = new LambdaParser(function (r) { return Promise.resolve(r.headers); });
69
+ creator = Teams(this, "clone").usingParser(parser);
70
+ return [4 /*yield*/, graphPost(creator, body(postBody))];
71
+ case 1:
72
+ data = _a.sent();
73
+ result = { teamId: "", operationId: "" };
74
+ if (data.has("location")) {
75
+ location_1 = data.get("location");
76
+ locationArray = location_1.split("/");
77
+ if (locationArray.length === 3) {
78
+ result.teamId = locationArray[1].substring(locationArray[1].indexOf("'") + 1, locationArray[1].lastIndexOf("'"));
79
+ result.operationId = locationArray[2].substring(locationArray[2].indexOf("'") + 1, locationArray[2].lastIndexOf("'"));
80
+ }
81
+ }
82
+ return [2 /*return*/, result];
83
+ }
84
+ });
85
+ });
86
+ };
87
+ _Team.prototype.getOperationById = function (id) {
88
+ return GraphQueryableInstance(this, "operations/" + id)();
89
+ };
90
+ _Team = __decorate([
91
+ defaultPath("team"),
92
+ updateable()
93
+ ], _Team);
94
+ return _Team;
95
+ }(_GraphQueryableInstance));
96
+ export { _Team };
97
+ export var Team = graphInvokableFactory(_Team);
98
+ /**
99
+ * Teams
100
+ */
101
+ var _Teams = /** @class */ (function (_super) {
102
+ __extends(_Teams, _super);
103
+ function _Teams() {
104
+ return _super !== null && _super.apply(this, arguments) || this;
105
+ }
106
+ _Teams.prototype.create = function (team) {
107
+ return __awaiter(this, void 0, void 0, function () {
108
+ var parser, creator, data, result, location_2, locationArray;
109
+ return __generator(this, function (_a) {
110
+ switch (_a.label) {
111
+ case 0:
112
+ parser = new LambdaParser(function (r) { return Promise.resolve(r.headers); });
113
+ creator = Teams(this, null).usingParser(parser);
114
+ return [4 /*yield*/, graphPost(creator, body(team))];
115
+ case 1:
116
+ data = _a.sent();
117
+ result = { teamId: "", operationId: "" };
118
+ if (data.has("location")) {
119
+ location_2 = data.get("location");
120
+ locationArray = location_2.split("/");
121
+ if (locationArray.length === 3) {
122
+ result.teamId = locationArray[1].substring(locationArray[1].indexOf("'") + 1, locationArray[1].lastIndexOf("'"));
123
+ result.operationId = locationArray[2].substring(locationArray[2].indexOf("'") + 1, locationArray[2].lastIndexOf("'"));
124
+ }
125
+ }
126
+ return [2 /*return*/, result];
127
+ }
128
+ });
129
+ });
130
+ };
131
+ _Teams = __decorate([
132
+ defaultPath("teams"),
133
+ getById(Team)
134
+ ], _Teams);
135
+ return _Teams;
136
+ }(_GraphQueryableCollection));
137
+ export { _Teams };
138
+ export var Teams = graphInvokableFactory(_Teams);
139
+ /**
140
+ * Channel
141
+ */
142
+ var _Channel = /** @class */ (function (_super) {
143
+ __extends(_Channel, _super);
144
+ function _Channel() {
145
+ return _super !== null && _super.apply(this, arguments) || this;
146
+ }
147
+ Object.defineProperty(_Channel.prototype, "tabs", {
148
+ get: function () {
149
+ return Tabs(this);
150
+ },
151
+ enumerable: false,
152
+ configurable: true
153
+ });
154
+ return _Channel;
155
+ }(_GraphQueryableInstance));
156
+ export { _Channel };
157
+ export var Channel = graphInvokableFactory(_Channel);
158
+ /**
159
+ * Channels
160
+ */
161
+ var _Channels = /** @class */ (function (_super) {
162
+ __extends(_Channels, _super);
163
+ function _Channels() {
164
+ return _super !== null && _super.apply(this, arguments) || this;
165
+ }
166
+ /**
167
+ * Creates a new Channel in the Team
168
+ * @param displayName The display name of the new channel
169
+ * @param description Optional description of the channel
170
+ *
171
+ */
172
+ _Channels.prototype.add = function (displayName, description) {
173
+ if (description === void 0) { description = ""; }
174
+ return __awaiter(this, void 0, void 0, function () {
175
+ var postBody, data;
176
+ return __generator(this, function (_a) {
177
+ switch (_a.label) {
178
+ case 0:
179
+ postBody = {
180
+ description: description,
181
+ displayName: displayName,
182
+ };
183
+ return [4 /*yield*/, graphPost(this, body(postBody))];
184
+ case 1:
185
+ data = _a.sent();
186
+ return [2 /*return*/, {
187
+ channel: this.getById(data.id),
188
+ data: data,
189
+ }];
190
+ }
191
+ });
192
+ });
193
+ };
194
+ _Channels = __decorate([
195
+ defaultPath("channels"),
196
+ getById(Channel)
197
+ ], _Channels);
198
+ return _Channels;
199
+ }(_GraphQueryableCollection));
200
+ export { _Channels };
201
+ export var Channels = graphInvokableFactory(_Channels);
202
+ /**
203
+ * Tab
204
+ */
205
+ var _Tab = /** @class */ (function (_super) {
206
+ __extends(_Tab, _super);
207
+ function _Tab() {
208
+ return _super !== null && _super.apply(this, arguments) || this;
209
+ }
210
+ _Tab = __decorate([
211
+ defaultPath("tab"),
212
+ updateable(),
213
+ deleteable()
214
+ ], _Tab);
215
+ return _Tab;
216
+ }(_GraphQueryableInstance));
217
+ export { _Tab };
218
+ export var Tab = graphInvokableFactory(_Tab);
219
+ /**
220
+ * Tabs
221
+ */
222
+ var _Tabs = /** @class */ (function (_super) {
223
+ __extends(_Tabs, _super);
224
+ function _Tabs() {
225
+ return _super !== null && _super.apply(this, arguments) || this;
226
+ }
227
+ /**
228
+ * Adds a tab to the channel
229
+ * @param name The name of the new Tab
230
+ * @param appUrl The url to an app ex: https://graph.microsoft.com/beta/appCatalogs/teamsApps/12345678-9abc-def0-123456789a
231
+ * @param tabsConfiguration visit https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/teamstab_add for reference
232
+ */
233
+ _Tabs.prototype.add = function (name, appUrl, properties) {
234
+ return __awaiter(this, void 0, void 0, function () {
235
+ var postBody, data;
236
+ return __generator(this, function (_a) {
237
+ switch (_a.label) {
238
+ case 0:
239
+ postBody = assign({
240
+ displayName: name,
241
+ "teamsApp@odata.bind": appUrl,
242
+ }, properties);
243
+ return [4 /*yield*/, graphPost(this, body(postBody))];
244
+ case 1:
245
+ data = _a.sent();
246
+ return [2 /*return*/, {
247
+ data: data,
248
+ tab: this.getById(data.id),
249
+ }];
250
+ }
251
+ });
252
+ });
253
+ };
254
+ _Tabs = __decorate([
255
+ defaultPath("tabs"),
256
+ getById(Tab)
257
+ ], _Tabs);
258
+ return _Tabs;
259
+ }(_GraphQueryableCollection));
260
+ export { _Tabs };
261
+ export var Tabs = graphInvokableFactory(_Tabs);
255
262
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../packages/graph/teams/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACtI,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,UAAU,EAAe,OAAO,EAAY,UAAU,EAAe,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C;;GAEG;AAGH;IAA2B,yBAAkC;IAA7D;;IAmEA,CAAC;IAjEG,sBAAW,2BAAQ;aAAnB;YACI,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;;;OAAA;IAED;;;;OAIG;IACI,uBAAO,GAAd,UAAe,kCAA0C;QAA1C,mDAAA,EAAA,0CAA0C;QACrD,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,IAAI,CAAC,EAAE,kCAAkC,oCAAA,EAAE,CAAC,CAAC,CAAC;IAChG,CAAC;IAED;;MAEE;IACK,yBAAS,GAAhB;QACI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F,qBAAM,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAA;;wBAA5C,IAAI,GAAG,SAAqC;wBAElD,sBAAO;gCACH,IAAI,MAAA;gCACJ,GAAG,EAAQ,IAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;6BACpC,EAAC;;;;KACL;IArBQ,KAAK;QAFjB,WAAW,CAAC,MAAM,CAAC;QACnB,OAAO,CAAC,GAAG,CAAC;OACA,KAAK,CAsBjB;IAAD,YAAC;CAAA,AAtBD,CAA2B,yBAAyB,GAsBnD;SAtBY,KAAK;AAwBlB,MAAM,CAAC,IAAM,IAAI,GAAG,qBAAqB,CAAQ,KAAK,CAAC,CAAC"}
package/teams/users.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { ITeams } from "./types.js";
2
- declare module "../users/types" {
3
- interface _User {
4
- readonly joinedTeams: ITeams;
5
- }
6
- interface IUser {
7
- readonly joinedTeams: ITeams;
8
- }
9
- }
1
+ import { ITeams } from "./types.js";
2
+ declare module "../users/types" {
3
+ interface _User {
4
+ readonly joinedTeams: ITeams;
5
+ }
6
+ interface IUser {
7
+ readonly joinedTeams: ITeams;
8
+ }
9
+ }
10
10
  //# sourceMappingURL=users.d.ts.map
package/teams/users.js CHANGED
@@ -1,5 +1,5 @@
1
- import { addProp } from "@pnp/odata";
2
- import { _User } from "../users/types.js";
3
- import { Teams } from "./types.js";
4
- addProp(_User, "joinedTeams", Teams, "joinedTeams");
1
+ import { addProp } from "@pnp/odata";
2
+ import { _User } from "../users/types.js";
3
+ import { Teams } from "./types.js";
4
+ addProp(_User, "joinedTeams", Teams, "joinedTeams");
5
5
  //# sourceMappingURL=users.js.map
package/types.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export declare class GraphEndpoints {
2
- static Beta: string;
3
- static V1: string;
4
- /**
5
- *
6
- * @param url The url to set the endpoint
7
- */
8
- static ensure(url: string, endpoint: string): string;
9
- }
1
+ export declare class GraphEndpoints {
2
+ static Beta: string;
3
+ static V1: string;
4
+ /**
5
+ *
6
+ * @param url The url to set the endpoint
7
+ */
8
+ static ensure(url: string, endpoint: string): string;
9
+ }
10
10
  //# sourceMappingURL=types.d.ts.map