@pnp/graph 2.10.0 → 2.13.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 (151) 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 -36
  11. package/calendars/funcs.js +43 -43
  12. package/calendars/groups.d.ts +13 -13
  13. package/calendars/groups.js +5 -5
  14. package/calendars/index.d.ts +4 -4
  15. package/calendars/index.js +3 -3
  16. package/calendars/types.d.ts +52 -52
  17. package/calendars/types.js +98 -98
  18. package/calendars/users.d.ts +22 -22
  19. package/calendars/users.js +9 -9
  20. package/cloud-communications/index.d.ts +8 -8
  21. package/cloud-communications/index.js +14 -14
  22. package/cloud-communications/types.d.ts +21 -21
  23. package/cloud-communications/types.js +46 -46
  24. package/cloud-communications/users.d.ts +9 -9
  25. package/cloud-communications/users.js +4 -4
  26. package/contacts/index.d.ts +2 -2
  27. package/contacts/index.js +2 -2
  28. package/contacts/types.d.ts +75 -75
  29. package/contacts/types.js +145 -145
  30. package/contacts/users.d.ts +11 -11
  31. package/contacts/users.js +5 -5
  32. package/conversations/groups.d.ts +13 -13
  33. package/conversations/groups.js +6 -6
  34. package/conversations/index.d.ts +2 -2
  35. package/conversations/index.js +2 -2
  36. package/conversations/types.d.ts +103 -103
  37. package/conversations/types.js +173 -173
  38. package/decorators.d.ts +103 -103
  39. package/decorators.js +138 -138
  40. package/directory-objects/index.d.ts +7 -7
  41. package/directory-objects/index.js +13 -13
  42. package/directory-objects/types.d.ts +67 -67
  43. package/directory-objects/types.js +96 -96
  44. package/graphhttpclient.d.ts +13 -13
  45. package/graphhttpclient.js +95 -95
  46. package/graphlibconfig.d.ts +21 -21
  47. package/graphlibconfig.js +19 -19
  48. package/graphqueryable.d.ts +156 -156
  49. package/graphqueryable.js +247 -247
  50. package/groups/index.d.ts +7 -7
  51. package/groups/index.js +13 -13
  52. package/groups/types.d.ts +81 -81
  53. package/groups/types.js +137 -137
  54. package/index.d.ts +8 -8
  55. package/index.js +7 -7
  56. package/insights/index.d.ts +2 -2
  57. package/insights/index.js +2 -2
  58. package/insights/types.d.ts +76 -76
  59. package/insights/types.js +162 -162
  60. package/insights/users.d.ts +9 -9
  61. package/insights/users.js +4 -4
  62. package/invitations/index.d.ts +7 -7
  63. package/invitations/index.js +13 -13
  64. package/invitations/types.d.ts +25 -25
  65. package/invitations/types.js +44 -44
  66. package/members/groups.d.ts +11 -11
  67. package/members/groups.js +5 -5
  68. package/members/index.d.ts +2 -2
  69. package/members/index.js +2 -2
  70. package/members/types.d.ts +31 -31
  71. package/members/types.js +49 -49
  72. package/messages/index.d.ts +2 -2
  73. package/messages/index.js +2 -2
  74. package/messages/types.d.ts +43 -43
  75. package/messages/types.js +77 -77
  76. package/messages/users.d.ts +15 -15
  77. package/messages/users.js +10 -10
  78. package/onedrive/index.d.ts +2 -2
  79. package/onedrive/index.js +2 -2
  80. package/onedrive/types.d.ts +95 -95
  81. package/onedrive/types.js +241 -241
  82. package/onedrive/users.d.ts +11 -11
  83. package/onedrive/users.js +5 -5
  84. package/onenote/index.d.ts +2 -2
  85. package/onenote/index.js +2 -2
  86. package/onenote/types.d.ts +76 -76
  87. package/onenote/types.js +149 -149
  88. package/onenote/users.d.ts +9 -9
  89. package/onenote/users.js +4 -4
  90. package/operations.d.ts +8 -8
  91. package/operations.js +41 -41
  92. package/outlook/index.d.ts +2 -2
  93. package/outlook/index.js +2 -2
  94. package/outlook/types.d.ts +40 -40
  95. package/outlook/types.js +76 -76
  96. package/outlook/users.d.ts +9 -9
  97. package/outlook/users.js +4 -4
  98. package/package.json +5 -5
  99. package/photos/groups.d.ts +9 -9
  100. package/photos/groups.js +4 -4
  101. package/photos/index.d.ts +3 -3
  102. package/photos/index.js +3 -3
  103. package/photos/types.d.ts +21 -21
  104. package/photos/types.js +37 -37
  105. package/photos/users.d.ts +9 -9
  106. package/photos/users.js +4 -4
  107. package/planner/groups.d.ts +9 -9
  108. package/planner/groups.js +4 -4
  109. package/planner/index.d.ts +9 -9
  110. package/planner/index.js +15 -15
  111. package/planner/types.d.ts +117 -117
  112. package/planner/types.js +291 -291
  113. package/planner/users.d.ts +9 -9
  114. package/planner/users.js +4 -4
  115. package/presets/all.d.ts +38 -38
  116. package/presets/all.js +38 -38
  117. package/readme.md +21 -21
  118. package/rest.d.ts +30 -30
  119. package/rest.js +57 -57
  120. package/search/index.d.ts +7 -7
  121. package/search/index.js +18 -18
  122. package/search/types.d.ts +16 -16
  123. package/search/types.js +23 -23
  124. package/sites/group.d.ts +9 -9
  125. package/sites/group.js +4 -4
  126. package/sites/index.d.ts +2 -2
  127. package/sites/index.js +2 -2
  128. package/sites/types.d.ts +23 -23
  129. package/sites/types.js +47 -47
  130. package/subscriptions/index.d.ts +7 -7
  131. package/subscriptions/index.js +13 -13
  132. package/subscriptions/types.d.ts +37 -37
  133. package/subscriptions/types.js +72 -72
  134. package/teams/index.d.ts +19 -19
  135. package/teams/index.js +35 -35
  136. package/teams/types.d.ts +112 -111
  137. package/teams/types.d.ts.map +1 -1
  138. package/teams/types.js +261 -254
  139. package/teams/types.js.map +1 -1
  140. package/teams/users.d.ts +9 -9
  141. package/teams/users.js +4 -4
  142. package/types.d.ts +9 -9
  143. package/types.js +19 -19
  144. package/users/index.d.ts +8 -8
  145. package/users/index.js +23 -23
  146. package/users/types.d.ts +35 -35
  147. package/users/types.js +82 -82
  148. package/utils/toabsoluteurl.d.ts +7 -7
  149. package/utils/toabsoluteurl.js +48 -48
  150. package/utils/type.d.ts +3 -3
  151. package/utils/type.js +3 -3
package/onedrive/types.js CHANGED
@@ -1,242 +1,242 @@
1
- import { __awaiter, __decorate, __extends, __generator } from "tslib";
2
- import { GraphQueryableInstance, GraphQueryableCollection, _GraphQueryableInstance, _GraphQueryableCollection, graphInvokableFactory, } from "../graphqueryable.js";
3
- import { assign, combine, safeGlobal } from "@pnp/common";
4
- import { defaultPath, getById, deleteable, updateable } from "../decorators.js";
5
- import { body, BlobParser } from "@pnp/odata";
6
- import { graphPatch, graphPost, graphPut } from "../operations.js";
7
- /**
8
- * Describes a Drive instance
9
- *
10
- */
11
- var _Drive = /** @class */ (function (_super) {
12
- __extends(_Drive, _super);
13
- function _Drive() {
14
- return _super !== null && _super.apply(this, arguments) || this;
15
- }
16
- Object.defineProperty(_Drive.prototype, "root", {
17
- get: function () {
18
- return Root(this);
19
- },
20
- enumerable: false,
21
- configurable: true
22
- });
23
- Object.defineProperty(_Drive.prototype, "list", {
24
- get: function () {
25
- return this.clone(GraphQueryableInstance, "list");
26
- },
27
- enumerable: false,
28
- configurable: true
29
- });
30
- Object.defineProperty(_Drive.prototype, "recent", {
31
- get: function () {
32
- return DriveItems(this, "recent");
33
- },
34
- enumerable: false,
35
- configurable: true
36
- });
37
- Object.defineProperty(_Drive.prototype, "sharedWithMe", {
38
- get: function () {
39
- return DriveItems(this, "sharedWithMe");
40
- },
41
- enumerable: false,
42
- configurable: true
43
- });
44
- _Drive.prototype.getItemById = function (id) {
45
- return DriveItem(this, combine("items", id));
46
- };
47
- _Drive = __decorate([
48
- defaultPath("drive")
49
- ], _Drive);
50
- return _Drive;
51
- }(_GraphQueryableInstance));
52
- export { _Drive };
53
- export var Drive = graphInvokableFactory(_Drive);
54
- /**
55
- * Describes a collection of Drive objects
56
- *
57
- */
58
- var _Drives = /** @class */ (function (_super) {
59
- __extends(_Drives, _super);
60
- function _Drives() {
61
- return _super !== null && _super.apply(this, arguments) || this;
62
- }
63
- _Drives.prototype.getById = function (id) {
64
- return Drive(this.getUrlBase(), "drives/" + id);
65
- };
66
- _Drives = __decorate([
67
- defaultPath("drives")
68
- ], _Drives);
69
- return _Drives;
70
- }(_GraphQueryableCollection));
71
- export { _Drives };
72
- export var Drives = graphInvokableFactory(_Drives);
73
- /**
74
- * Describes a Root instance
75
- *
76
- */
77
- var _Root = /** @class */ (function (_super) {
78
- __extends(_Root, _super);
79
- function _Root() {
80
- return _super !== null && _super.apply(this, arguments) || this;
81
- }
82
- Object.defineProperty(_Root.prototype, "children", {
83
- get: function () {
84
- return DriveItems(this, "children");
85
- },
86
- enumerable: false,
87
- configurable: true
88
- });
89
- _Root.prototype.search = function (query) {
90
- var searcher = this.clone(Root);
91
- searcher.query.set("search", "'" + query + "'");
92
- return searcher();
93
- };
94
- Object.defineProperty(_Root.prototype, "thumbnails", {
95
- get: function () {
96
- return this.clone(GraphQueryableCollection, "thumbnails");
97
- },
98
- enumerable: false,
99
- configurable: true
100
- });
101
- _Root = __decorate([
102
- defaultPath("root")
103
- ], _Root);
104
- return _Root;
105
- }(_GraphQueryableInstance));
106
- export { _Root };
107
- export var Root = graphInvokableFactory(_Root);
108
- /**
109
- * Describes a Drive Item instance
110
- *
111
- */
112
- var _DriveItem = /** @class */ (function (_super) {
113
- __extends(_DriveItem, _super);
114
- function _DriveItem() {
115
- return _super !== null && _super.apply(this, arguments) || this;
116
- }
117
- Object.defineProperty(_DriveItem.prototype, "children", {
118
- get: function () {
119
- return DriveItems(this, "children");
120
- },
121
- enumerable: false,
122
- configurable: true
123
- });
124
- Object.defineProperty(_DriveItem.prototype, "thumbnails", {
125
- get: function () {
126
- return this.clone(GraphQueryableCollection, "thumbnails");
127
- },
128
- enumerable: false,
129
- configurable: true
130
- });
131
- Object.defineProperty(_DriveItem.prototype, "versions", {
132
- get: function () {
133
- return this.clone(GraphQueryableCollection, "versions");
134
- },
135
- enumerable: false,
136
- configurable: true
137
- });
138
- _DriveItem.prototype.move = function (parentReference, name) {
139
- return graphPatch(this, body(assign(parentReference, { name: name })));
140
- };
141
- _DriveItem.prototype.getContent = function () {
142
- return __awaiter(this, void 0, void 0, function () {
143
- var info, r, p;
144
- return __generator(this, function (_a) {
145
- switch (_a.label) {
146
- case 0: return [4 /*yield*/, this.get()];
147
- case 1:
148
- info = _a.sent();
149
- return [4 /*yield*/, safeGlobal.fetch(info["@microsoft.graph.downloadUrl"], {
150
- headers: {
151
- "accept": "application/json",
152
- },
153
- method: "GET",
154
- responseType: "arraybuffer",
155
- })];
156
- case 2:
157
- r = _a.sent();
158
- p = new BlobParser();
159
- return [2 /*return*/, p.parse(r)];
160
- }
161
- });
162
- });
163
- };
164
- _DriveItem.prototype.setContent = function (content) {
165
- return graphPut(this.clone(DriveItem, "content"), {
166
- body: content,
167
- });
168
- };
169
- _DriveItem = __decorate([
170
- deleteable(),
171
- updateable()
172
- ], _DriveItem);
173
- return _DriveItem;
174
- }(_GraphQueryableInstance));
175
- export { _DriveItem };
176
- export var DriveItem = graphInvokableFactory(_DriveItem);
177
- /**
178
- * Describes a collection of Drive Item objects
179
- *
180
- */
181
- var _DriveItems = /** @class */ (function (_super) {
182
- __extends(_DriveItems, _super);
183
- function _DriveItems() {
184
- return _super !== null && _super.apply(this, arguments) || this;
185
- }
186
- _DriveItems_1 = _DriveItems;
187
- _DriveItems.prototype.add = function (filename, content) {
188
- return __awaiter(this, void 0, void 0, function () {
189
- var parent, data;
190
- return __generator(this, function (_a) {
191
- switch (_a.label) {
192
- case 0:
193
- parent = this.getParent(_DriveItems_1);
194
- parent.concat(":/" + filename + ":/content");
195
- return [4 /*yield*/, graphPut(parent, { body: content })];
196
- case 1:
197
- data = _a.sent();
198
- return [2 /*return*/, {
199
- data: data,
200
- driveItem: this.getById(data.id),
201
- }];
202
- }
203
- });
204
- });
205
- };
206
- /**
207
- * Adds a folder to this collection of drive items
208
- *
209
- * @param name Name of the new folder
210
- * @returns result with folder data and chainable drive item object
211
- */
212
- _DriveItems.prototype.addFolder = function (name) {
213
- return __awaiter(this, void 0, void 0, function () {
214
- var postBody, data;
215
- return __generator(this, function (_a) {
216
- switch (_a.label) {
217
- case 0:
218
- postBody = {
219
- name: name,
220
- folder: {},
221
- "@microsoft.graph.conflictBehavior": "rename",
222
- };
223
- return [4 /*yield*/, graphPost(this, body(postBody))];
224
- case 1:
225
- data = _a.sent();
226
- return [2 /*return*/, {
227
- data: data,
228
- driveItem: this.getById(data.id),
229
- }];
230
- }
231
- });
232
- });
233
- };
234
- var _DriveItems_1;
235
- _DriveItems = _DriveItems_1 = __decorate([
236
- getById(DriveItem)
237
- ], _DriveItems);
238
- return _DriveItems;
239
- }(_GraphQueryableCollection));
240
- export { _DriveItems };
241
- export var DriveItems = graphInvokableFactory(_DriveItems);
1
+ import { __awaiter, __decorate, __extends, __generator } from "tslib";
2
+ import { GraphQueryableInstance, GraphQueryableCollection, _GraphQueryableInstance, _GraphQueryableCollection, graphInvokableFactory, } from "../graphqueryable.js";
3
+ import { assign, combine, safeGlobal } from "@pnp/common";
4
+ import { defaultPath, getById, deleteable, updateable } from "../decorators.js";
5
+ import { body, BlobParser } from "@pnp/odata";
6
+ import { graphPatch, graphPost, graphPut } from "../operations.js";
7
+ /**
8
+ * Describes a Drive instance
9
+ *
10
+ */
11
+ var _Drive = /** @class */ (function (_super) {
12
+ __extends(_Drive, _super);
13
+ function _Drive() {
14
+ return _super !== null && _super.apply(this, arguments) || this;
15
+ }
16
+ Object.defineProperty(_Drive.prototype, "root", {
17
+ get: function () {
18
+ return Root(this);
19
+ },
20
+ enumerable: false,
21
+ configurable: true
22
+ });
23
+ Object.defineProperty(_Drive.prototype, "list", {
24
+ get: function () {
25
+ return this.clone(GraphQueryableInstance, "list");
26
+ },
27
+ enumerable: false,
28
+ configurable: true
29
+ });
30
+ Object.defineProperty(_Drive.prototype, "recent", {
31
+ get: function () {
32
+ return DriveItems(this, "recent");
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
37
+ Object.defineProperty(_Drive.prototype, "sharedWithMe", {
38
+ get: function () {
39
+ return DriveItems(this, "sharedWithMe");
40
+ },
41
+ enumerable: false,
42
+ configurable: true
43
+ });
44
+ _Drive.prototype.getItemById = function (id) {
45
+ return DriveItem(this, combine("items", id));
46
+ };
47
+ _Drive = __decorate([
48
+ defaultPath("drive")
49
+ ], _Drive);
50
+ return _Drive;
51
+ }(_GraphQueryableInstance));
52
+ export { _Drive };
53
+ export var Drive = graphInvokableFactory(_Drive);
54
+ /**
55
+ * Describes a collection of Drive objects
56
+ *
57
+ */
58
+ var _Drives = /** @class */ (function (_super) {
59
+ __extends(_Drives, _super);
60
+ function _Drives() {
61
+ return _super !== null && _super.apply(this, arguments) || this;
62
+ }
63
+ _Drives.prototype.getById = function (id) {
64
+ return Drive(this.getUrlBase(), "drives/" + id);
65
+ };
66
+ _Drives = __decorate([
67
+ defaultPath("drives")
68
+ ], _Drives);
69
+ return _Drives;
70
+ }(_GraphQueryableCollection));
71
+ export { _Drives };
72
+ export var Drives = graphInvokableFactory(_Drives);
73
+ /**
74
+ * Describes a Root instance
75
+ *
76
+ */
77
+ var _Root = /** @class */ (function (_super) {
78
+ __extends(_Root, _super);
79
+ function _Root() {
80
+ return _super !== null && _super.apply(this, arguments) || this;
81
+ }
82
+ Object.defineProperty(_Root.prototype, "children", {
83
+ get: function () {
84
+ return DriveItems(this, "children");
85
+ },
86
+ enumerable: false,
87
+ configurable: true
88
+ });
89
+ _Root.prototype.search = function (query) {
90
+ var searcher = this.clone(Root);
91
+ searcher.query.set("search", "'" + query + "'");
92
+ return searcher();
93
+ };
94
+ Object.defineProperty(_Root.prototype, "thumbnails", {
95
+ get: function () {
96
+ return this.clone(GraphQueryableCollection, "thumbnails");
97
+ },
98
+ enumerable: false,
99
+ configurable: true
100
+ });
101
+ _Root = __decorate([
102
+ defaultPath("root")
103
+ ], _Root);
104
+ return _Root;
105
+ }(_GraphQueryableInstance));
106
+ export { _Root };
107
+ export var Root = graphInvokableFactory(_Root);
108
+ /**
109
+ * Describes a Drive Item instance
110
+ *
111
+ */
112
+ var _DriveItem = /** @class */ (function (_super) {
113
+ __extends(_DriveItem, _super);
114
+ function _DriveItem() {
115
+ return _super !== null && _super.apply(this, arguments) || this;
116
+ }
117
+ Object.defineProperty(_DriveItem.prototype, "children", {
118
+ get: function () {
119
+ return DriveItems(this, "children");
120
+ },
121
+ enumerable: false,
122
+ configurable: true
123
+ });
124
+ Object.defineProperty(_DriveItem.prototype, "thumbnails", {
125
+ get: function () {
126
+ return this.clone(GraphQueryableCollection, "thumbnails");
127
+ },
128
+ enumerable: false,
129
+ configurable: true
130
+ });
131
+ Object.defineProperty(_DriveItem.prototype, "versions", {
132
+ get: function () {
133
+ return this.clone(GraphQueryableCollection, "versions");
134
+ },
135
+ enumerable: false,
136
+ configurable: true
137
+ });
138
+ _DriveItem.prototype.move = function (parentReference, name) {
139
+ return graphPatch(this, body(assign(parentReference, { name: name })));
140
+ };
141
+ _DriveItem.prototype.getContent = function () {
142
+ return __awaiter(this, void 0, void 0, function () {
143
+ var info, r, p;
144
+ return __generator(this, function (_a) {
145
+ switch (_a.label) {
146
+ case 0: return [4 /*yield*/, this.get()];
147
+ case 1:
148
+ info = _a.sent();
149
+ return [4 /*yield*/, safeGlobal.fetch(info["@microsoft.graph.downloadUrl"], {
150
+ headers: {
151
+ "accept": "application/json",
152
+ },
153
+ method: "GET",
154
+ responseType: "arraybuffer",
155
+ })];
156
+ case 2:
157
+ r = _a.sent();
158
+ p = new BlobParser();
159
+ return [2 /*return*/, p.parse(r)];
160
+ }
161
+ });
162
+ });
163
+ };
164
+ _DriveItem.prototype.setContent = function (content) {
165
+ return graphPut(this.clone(DriveItem, "content"), {
166
+ body: content,
167
+ });
168
+ };
169
+ _DriveItem = __decorate([
170
+ deleteable(),
171
+ updateable()
172
+ ], _DriveItem);
173
+ return _DriveItem;
174
+ }(_GraphQueryableInstance));
175
+ export { _DriveItem };
176
+ export var DriveItem = graphInvokableFactory(_DriveItem);
177
+ /**
178
+ * Describes a collection of Drive Item objects
179
+ *
180
+ */
181
+ var _DriveItems = /** @class */ (function (_super) {
182
+ __extends(_DriveItems, _super);
183
+ function _DriveItems() {
184
+ return _super !== null && _super.apply(this, arguments) || this;
185
+ }
186
+ _DriveItems_1 = _DriveItems;
187
+ _DriveItems.prototype.add = function (filename, content) {
188
+ return __awaiter(this, void 0, void 0, function () {
189
+ var parent, data;
190
+ return __generator(this, function (_a) {
191
+ switch (_a.label) {
192
+ case 0:
193
+ parent = this.getParent(_DriveItems_1);
194
+ parent.concat(":/" + filename + ":/content");
195
+ return [4 /*yield*/, graphPut(parent, { body: content })];
196
+ case 1:
197
+ data = _a.sent();
198
+ return [2 /*return*/, {
199
+ data: data,
200
+ driveItem: this.getById(data.id),
201
+ }];
202
+ }
203
+ });
204
+ });
205
+ };
206
+ /**
207
+ * Adds a folder to this collection of drive items
208
+ *
209
+ * @param name Name of the new folder
210
+ * @returns result with folder data and chainable drive item object
211
+ */
212
+ _DriveItems.prototype.addFolder = function (name) {
213
+ return __awaiter(this, void 0, void 0, function () {
214
+ var postBody, data;
215
+ return __generator(this, function (_a) {
216
+ switch (_a.label) {
217
+ case 0:
218
+ postBody = {
219
+ name: name,
220
+ folder: {},
221
+ "@microsoft.graph.conflictBehavior": "rename",
222
+ };
223
+ return [4 /*yield*/, graphPost(this, body(postBody))];
224
+ case 1:
225
+ data = _a.sent();
226
+ return [2 /*return*/, {
227
+ data: data,
228
+ driveItem: this.getById(data.id),
229
+ }];
230
+ }
231
+ });
232
+ });
233
+ };
234
+ var _DriveItems_1;
235
+ _DriveItems = _DriveItems_1 = __decorate([
236
+ getById(DriveItem)
237
+ ], _DriveItems);
238
+ return _DriveItems;
239
+ }(_GraphQueryableCollection));
240
+ export { _DriveItems };
241
+ export var DriveItems = graphInvokableFactory(_DriveItems);
242
242
  //# sourceMappingURL=types.js.map
@@ -1,12 +1,12 @@
1
- import { IDrive, IDrives } from "./types.js";
2
- declare module "../users/types" {
3
- interface _User {
4
- readonly drive: IDrive;
5
- readonly drives: IDrives;
6
- }
7
- interface IUser {
8
- readonly drive: IDrive;
9
- readonly drives: IDrives;
10
- }
11
- }
1
+ import { IDrive, IDrives } from "./types.js";
2
+ declare module "../users/types" {
3
+ interface _User {
4
+ readonly drive: IDrive;
5
+ readonly drives: IDrives;
6
+ }
7
+ interface IUser {
8
+ readonly drive: IDrive;
9
+ readonly drives: IDrives;
10
+ }
11
+ }
12
12
  //# sourceMappingURL=users.d.ts.map
package/onedrive/users.js CHANGED
@@ -1,6 +1,6 @@
1
- import { addProp } from "@pnp/odata";
2
- import { _User } from "../users/types.js";
3
- import { Drive, Drives } from "./types.js";
4
- addProp(_User, "drive", Drive);
5
- addProp(_User, "drives", Drives);
1
+ import { addProp } from "@pnp/odata";
2
+ import { _User } from "../users/types.js";
3
+ import { Drive, Drives } from "./types.js";
4
+ addProp(_User, "drive", Drive);
5
+ addProp(_User, "drives", Drives);
6
6
  //# sourceMappingURL=users.js.map
@@ -1,3 +1,3 @@
1
- import "./users.js";
2
- export { INotebook, INotebookAddResult, INotebooks, IOneNote, ISection, ISectionAddResult, ISections, Notebook, Notebooks, OneNote, Section, Sections, } from "./types.js";
1
+ import "./users.js";
2
+ export { INotebook, INotebookAddResult, INotebooks, IOneNote, ISection, ISectionAddResult, ISections, Notebook, Notebooks, OneNote, Section, Sections, } from "./types.js";
3
3
  //# sourceMappingURL=index.d.ts.map
package/onenote/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import "./users.js";
2
- export { Notebook, Notebooks, OneNote, Section, Sections, } from "./types.js";
1
+ import "./users.js";
2
+ export { Notebook, Notebooks, OneNote, Section, Sections, } from "./types.js";
3
3
  //# sourceMappingURL=index.js.map