@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/operations.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { __awaiter, __generator } from "tslib";
|
|
2
|
-
import { isFunc, mergeOptions, objectDefinedNotNull } from "@pnp/common";
|
|
3
|
-
import { defaultPipelineBinder, cloneQueryableData } from "@pnp/odata";
|
|
4
|
-
import { GraphHttpClient } from "./graphhttpclient.js";
|
|
5
|
-
import { toAbsoluteUrl } from "./utils/toabsoluteurl.js";
|
|
6
|
-
export function registerCustomRequestClientFactory(requestClientFactory) {
|
|
7
|
-
httpClientFactory = isFunc(requestClientFactory) ? function () { return requestClientFactory; } : defaultFactory;
|
|
8
|
-
}
|
|
9
|
-
var defaultFactory = function (runtime) { return function () { return new GraphHttpClient(runtime); }; };
|
|
10
|
-
var httpClientFactory = defaultFactory;
|
|
11
|
-
var send = function (method) {
|
|
12
|
-
return function (o, options) {
|
|
13
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
14
|
-
var runtime, operation, data, batchDependency, url;
|
|
15
|
-
return __generator(this, function (_a) {
|
|
16
|
-
switch (_a.label) {
|
|
17
|
-
case 0:
|
|
18
|
-
runtime = o.getRuntime();
|
|
19
|
-
operation = defaultPipelineBinder(httpClientFactory(runtime))(method);
|
|
20
|
-
data = cloneQueryableData(o.data);
|
|
21
|
-
batchDependency = objectDefinedNotNull(data.batch) ? data.batch.addDependency() : function () {
|
|
22
|
-
return;
|
|
23
|
-
};
|
|
24
|
-
return [4 /*yield*/, toAbsoluteUrl(o.toUrlAndQuery(), runtime)];
|
|
25
|
-
case 1:
|
|
26
|
-
url = _a.sent();
|
|
27
|
-
mergeOptions(data.options, options);
|
|
28
|
-
return [2 /*return*/, operation(Object.assign({}, data, {
|
|
29
|
-
batchDependency: batchDependency,
|
|
30
|
-
url: url,
|
|
31
|
-
}))];
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export var graphGet = function (o, options) { return send("GET")(o, options); };
|
|
38
|
-
export var graphPost = function (o, options) { return send("POST")(o, options); };
|
|
39
|
-
export var graphDelete = function (o, options) { return send("DELETE")(o, options); };
|
|
40
|
-
export var graphPatch = function (o, options) { return send("PATCH")(o, options); };
|
|
41
|
-
export var graphPut = function (o, options) { return send("PUT")(o, options); };
|
|
1
|
+
import { __awaiter, __generator } from "tslib";
|
|
2
|
+
import { isFunc, mergeOptions, objectDefinedNotNull } from "@pnp/common";
|
|
3
|
+
import { defaultPipelineBinder, cloneQueryableData } from "@pnp/odata";
|
|
4
|
+
import { GraphHttpClient } from "./graphhttpclient.js";
|
|
5
|
+
import { toAbsoluteUrl } from "./utils/toabsoluteurl.js";
|
|
6
|
+
export function registerCustomRequestClientFactory(requestClientFactory) {
|
|
7
|
+
httpClientFactory = isFunc(requestClientFactory) ? function () { return requestClientFactory; } : defaultFactory;
|
|
8
|
+
}
|
|
9
|
+
var defaultFactory = function (runtime) { return function () { return new GraphHttpClient(runtime); }; };
|
|
10
|
+
var httpClientFactory = defaultFactory;
|
|
11
|
+
var send = function (method) {
|
|
12
|
+
return function (o, options) {
|
|
13
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14
|
+
var runtime, operation, data, batchDependency, url;
|
|
15
|
+
return __generator(this, function (_a) {
|
|
16
|
+
switch (_a.label) {
|
|
17
|
+
case 0:
|
|
18
|
+
runtime = o.getRuntime();
|
|
19
|
+
operation = defaultPipelineBinder(httpClientFactory(runtime))(method);
|
|
20
|
+
data = cloneQueryableData(o.data);
|
|
21
|
+
batchDependency = objectDefinedNotNull(data.batch) ? data.batch.addDependency() : function () {
|
|
22
|
+
return;
|
|
23
|
+
};
|
|
24
|
+
return [4 /*yield*/, toAbsoluteUrl(o.toUrlAndQuery(), runtime)];
|
|
25
|
+
case 1:
|
|
26
|
+
url = _a.sent();
|
|
27
|
+
mergeOptions(data.options, options);
|
|
28
|
+
return [2 /*return*/, operation(Object.assign({}, data, {
|
|
29
|
+
batchDependency: batchDependency,
|
|
30
|
+
url: url,
|
|
31
|
+
}))];
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export var graphGet = function (o, options) { return send("GET")(o, options); };
|
|
38
|
+
export var graphPost = function (o, options) { return send("POST")(o, options); };
|
|
39
|
+
export var graphDelete = function (o, options) { return send("DELETE")(o, options); };
|
|
40
|
+
export var graphPatch = function (o, options) { return send("PATCH")(o, options); };
|
|
41
|
+
export var graphPut = function (o, options) { return send("PUT")(o, options); };
|
|
42
42
|
//# sourceMappingURL=operations.js.map
|
package/outlook/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./users.js";
|
|
2
|
-
export { Outlook, IOutlook, IMasterCategories, MasterCategories, IMasterCategoryAddResult, OutlookCategory, IOutlookCategory, } from "./types.js";
|
|
1
|
+
import "./users.js";
|
|
2
|
+
export { Outlook, IOutlook, IMasterCategories, MasterCategories, IMasterCategoryAddResult, OutlookCategory, IOutlookCategory, } from "./types.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/outlook/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./users.js";
|
|
2
|
-
export { Outlook, MasterCategories, OutlookCategory, } from "./types.js";
|
|
1
|
+
import "./users.js";
|
|
2
|
+
export { Outlook, MasterCategories, OutlookCategory, } from "./types.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/outlook/types.d.ts
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { _GraphQueryableCollection, _GraphQueryableInstance } from "@pnp/graph/graphqueryable";
|
|
2
|
-
import { OutlookUser as IOutlookType, OutlookCategory as IOutlookCategoryType } from "@microsoft/microsoft-graph-types";
|
|
3
|
-
import { IDeleteable, IGetById, IUpdateable } from "@pnp/graph/decorators";
|
|
4
|
-
/**
|
|
5
|
-
* Outlook
|
|
6
|
-
*/
|
|
7
|
-
export declare class _Outlook extends _GraphQueryableInstance<IOutlookType> {
|
|
8
|
-
get masterCategories(): IMasterCategories;
|
|
9
|
-
}
|
|
10
|
-
export interface IOutlook extends _Outlook {
|
|
11
|
-
}
|
|
12
|
-
export declare const Outlook: (baseUrl: string | import("@pnp/graph").IGraphQueryable<any>, path?: string) => IOutlook & import("@pnp/odata").IInvokable<any>;
|
|
13
|
-
/**
|
|
14
|
-
* Describes an Outlook Category instance
|
|
15
|
-
*/
|
|
16
|
-
export declare class _OutlookCategory extends _GraphQueryableInstance<IOutlookCategoryType> {
|
|
17
|
-
}
|
|
18
|
-
export interface IOutlookCategory extends _OutlookCategory, IUpdateable<IOutlookCategoryType>, IDeleteable {
|
|
19
|
-
}
|
|
20
|
-
export declare const OutlookCategory: (baseUrl: string | import("@pnp/graph").IGraphQueryable<any>, path?: string) => IOutlookCategory & import("@pnp/odata").IInvokable<any>;
|
|
21
|
-
/**
|
|
22
|
-
* Categories
|
|
23
|
-
*/
|
|
24
|
-
export declare class _MasterCategories extends _GraphQueryableCollection<IOutlookCategoryType[]> {
|
|
25
|
-
/**
|
|
26
|
-
* Adds a new event to the collection
|
|
27
|
-
*
|
|
28
|
-
* @param properties The set of properties used to create the event
|
|
29
|
-
*/
|
|
30
|
-
add(properties: IOutlookCategoryType): Promise<IMasterCategoryAddResult>;
|
|
31
|
-
}
|
|
32
|
-
export interface IMasterCategories extends _MasterCategories, IGetById<IOutlookCategory> {
|
|
33
|
-
}
|
|
34
|
-
export declare const MasterCategories: (baseUrl: string | import("@pnp/graph").IGraphQueryable<any>, path?: string) => IMasterCategories & import("@pnp/odata").IInvokable<any>;
|
|
35
|
-
/**
|
|
36
|
-
* MasterCategoryAddResult
|
|
37
|
-
*/
|
|
38
|
-
export interface IMasterCategoryAddResult {
|
|
39
|
-
data: IOutlookCategoryType;
|
|
40
|
-
}
|
|
1
|
+
import { _GraphQueryableCollection, _GraphQueryableInstance } from "@pnp/graph/graphqueryable";
|
|
2
|
+
import { OutlookUser as IOutlookType, OutlookCategory as IOutlookCategoryType } from "@microsoft/microsoft-graph-types";
|
|
3
|
+
import { IDeleteable, IGetById, IUpdateable } from "@pnp/graph/decorators";
|
|
4
|
+
/**
|
|
5
|
+
* Outlook
|
|
6
|
+
*/
|
|
7
|
+
export declare class _Outlook extends _GraphQueryableInstance<IOutlookType> {
|
|
8
|
+
get masterCategories(): IMasterCategories;
|
|
9
|
+
}
|
|
10
|
+
export interface IOutlook extends _Outlook {
|
|
11
|
+
}
|
|
12
|
+
export declare const Outlook: (baseUrl: string | import("@pnp/graph").IGraphQueryable<any>, path?: string) => IOutlook & import("@pnp/odata").IInvokable<any>;
|
|
13
|
+
/**
|
|
14
|
+
* Describes an Outlook Category instance
|
|
15
|
+
*/
|
|
16
|
+
export declare class _OutlookCategory extends _GraphQueryableInstance<IOutlookCategoryType> {
|
|
17
|
+
}
|
|
18
|
+
export interface IOutlookCategory extends _OutlookCategory, IUpdateable<IOutlookCategoryType>, IDeleteable {
|
|
19
|
+
}
|
|
20
|
+
export declare const OutlookCategory: (baseUrl: string | import("@pnp/graph").IGraphQueryable<any>, path?: string) => IOutlookCategory & import("@pnp/odata").IInvokable<any>;
|
|
21
|
+
/**
|
|
22
|
+
* Categories
|
|
23
|
+
*/
|
|
24
|
+
export declare class _MasterCategories extends _GraphQueryableCollection<IOutlookCategoryType[]> {
|
|
25
|
+
/**
|
|
26
|
+
* Adds a new event to the collection
|
|
27
|
+
*
|
|
28
|
+
* @param properties The set of properties used to create the event
|
|
29
|
+
*/
|
|
30
|
+
add(properties: IOutlookCategoryType): Promise<IMasterCategoryAddResult>;
|
|
31
|
+
}
|
|
32
|
+
export interface IMasterCategories extends _MasterCategories, IGetById<IOutlookCategory> {
|
|
33
|
+
}
|
|
34
|
+
export declare const MasterCategories: (baseUrl: string | import("@pnp/graph").IGraphQueryable<any>, path?: string) => IMasterCategories & import("@pnp/odata").IInvokable<any>;
|
|
35
|
+
/**
|
|
36
|
+
* MasterCategoryAddResult
|
|
37
|
+
*/
|
|
38
|
+
export interface IMasterCategoryAddResult {
|
|
39
|
+
data: IOutlookCategoryType;
|
|
40
|
+
}
|
|
41
41
|
//# sourceMappingURL=types.d.ts.map
|
package/outlook/types.js
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import { __awaiter, __decorate, __extends, __generator } from "tslib";
|
|
2
|
-
import { _GraphQueryableCollection, _GraphQueryableInstance, graphInvokableFactory } from "@pnp/graph/graphqueryable";
|
|
3
|
-
import { defaultPath, deleteable, getById, updateable } from "@pnp/graph/decorators";
|
|
4
|
-
import { graphPost } from "@pnp/graph";
|
|
5
|
-
import { body } from "@pnp/odata";
|
|
6
|
-
/**
|
|
7
|
-
* Outlook
|
|
8
|
-
*/
|
|
9
|
-
var _Outlook = /** @class */ (function (_super) {
|
|
10
|
-
__extends(_Outlook, _super);
|
|
11
|
-
function _Outlook() {
|
|
12
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(_Outlook.prototype, "masterCategories", {
|
|
15
|
-
get: function () {
|
|
16
|
-
return MasterCategories(this);
|
|
17
|
-
},
|
|
18
|
-
enumerable: false,
|
|
19
|
-
configurable: true
|
|
20
|
-
});
|
|
21
|
-
return _Outlook;
|
|
22
|
-
}(_GraphQueryableInstance));
|
|
23
|
-
export { _Outlook };
|
|
24
|
-
export var Outlook = graphInvokableFactory(_Outlook);
|
|
25
|
-
/**
|
|
26
|
-
* Describes an Outlook Category instance
|
|
27
|
-
*/
|
|
28
|
-
var _OutlookCategory = /** @class */ (function (_super) {
|
|
29
|
-
__extends(_OutlookCategory, _super);
|
|
30
|
-
function _OutlookCategory() {
|
|
31
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
32
|
-
}
|
|
33
|
-
_OutlookCategory = __decorate([
|
|
34
|
-
deleteable(),
|
|
35
|
-
updateable()
|
|
36
|
-
], _OutlookCategory);
|
|
37
|
-
return _OutlookCategory;
|
|
38
|
-
}(_GraphQueryableInstance));
|
|
39
|
-
export { _OutlookCategory };
|
|
40
|
-
export var OutlookCategory = graphInvokableFactory(_OutlookCategory);
|
|
41
|
-
/**
|
|
42
|
-
* Categories
|
|
43
|
-
*/
|
|
44
|
-
var _MasterCategories = /** @class */ (function (_super) {
|
|
45
|
-
__extends(_MasterCategories, _super);
|
|
46
|
-
function _MasterCategories() {
|
|
47
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Adds a new event to the collection
|
|
51
|
-
*
|
|
52
|
-
* @param properties The set of properties used to create the event
|
|
53
|
-
*/
|
|
54
|
-
_MasterCategories.prototype.add = function (properties) {
|
|
55
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
56
|
-
var data;
|
|
57
|
-
return __generator(this, function (_a) {
|
|
58
|
-
switch (_a.label) {
|
|
59
|
-
case 0: return [4 /*yield*/, graphPost(this, body(properties))];
|
|
60
|
-
case 1:
|
|
61
|
-
data = _a.sent();
|
|
62
|
-
return [2 /*return*/, {
|
|
63
|
-
data: data,
|
|
64
|
-
}];
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
_MasterCategories = __decorate([
|
|
70
|
-
defaultPath("masterCategories"),
|
|
71
|
-
getById(OutlookCategory)
|
|
72
|
-
], _MasterCategories);
|
|
73
|
-
return _MasterCategories;
|
|
74
|
-
}(_GraphQueryableCollection));
|
|
75
|
-
export { _MasterCategories };
|
|
76
|
-
export var MasterCategories = graphInvokableFactory(_MasterCategories);
|
|
1
|
+
import { __awaiter, __decorate, __extends, __generator } from "tslib";
|
|
2
|
+
import { _GraphQueryableCollection, _GraphQueryableInstance, graphInvokableFactory } from "@pnp/graph/graphqueryable";
|
|
3
|
+
import { defaultPath, deleteable, getById, updateable } from "@pnp/graph/decorators";
|
|
4
|
+
import { graphPost } from "@pnp/graph";
|
|
5
|
+
import { body } from "@pnp/odata";
|
|
6
|
+
/**
|
|
7
|
+
* Outlook
|
|
8
|
+
*/
|
|
9
|
+
var _Outlook = /** @class */ (function (_super) {
|
|
10
|
+
__extends(_Outlook, _super);
|
|
11
|
+
function _Outlook() {
|
|
12
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(_Outlook.prototype, "masterCategories", {
|
|
15
|
+
get: function () {
|
|
16
|
+
return MasterCategories(this);
|
|
17
|
+
},
|
|
18
|
+
enumerable: false,
|
|
19
|
+
configurable: true
|
|
20
|
+
});
|
|
21
|
+
return _Outlook;
|
|
22
|
+
}(_GraphQueryableInstance));
|
|
23
|
+
export { _Outlook };
|
|
24
|
+
export var Outlook = graphInvokableFactory(_Outlook);
|
|
25
|
+
/**
|
|
26
|
+
* Describes an Outlook Category instance
|
|
27
|
+
*/
|
|
28
|
+
var _OutlookCategory = /** @class */ (function (_super) {
|
|
29
|
+
__extends(_OutlookCategory, _super);
|
|
30
|
+
function _OutlookCategory() {
|
|
31
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
32
|
+
}
|
|
33
|
+
_OutlookCategory = __decorate([
|
|
34
|
+
deleteable(),
|
|
35
|
+
updateable()
|
|
36
|
+
], _OutlookCategory);
|
|
37
|
+
return _OutlookCategory;
|
|
38
|
+
}(_GraphQueryableInstance));
|
|
39
|
+
export { _OutlookCategory };
|
|
40
|
+
export var OutlookCategory = graphInvokableFactory(_OutlookCategory);
|
|
41
|
+
/**
|
|
42
|
+
* Categories
|
|
43
|
+
*/
|
|
44
|
+
var _MasterCategories = /** @class */ (function (_super) {
|
|
45
|
+
__extends(_MasterCategories, _super);
|
|
46
|
+
function _MasterCategories() {
|
|
47
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Adds a new event to the collection
|
|
51
|
+
*
|
|
52
|
+
* @param properties The set of properties used to create the event
|
|
53
|
+
*/
|
|
54
|
+
_MasterCategories.prototype.add = function (properties) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
56
|
+
var data;
|
|
57
|
+
return __generator(this, function (_a) {
|
|
58
|
+
switch (_a.label) {
|
|
59
|
+
case 0: return [4 /*yield*/, graphPost(this, body(properties))];
|
|
60
|
+
case 1:
|
|
61
|
+
data = _a.sent();
|
|
62
|
+
return [2 /*return*/, {
|
|
63
|
+
data: data,
|
|
64
|
+
}];
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
_MasterCategories = __decorate([
|
|
70
|
+
defaultPath("masterCategories"),
|
|
71
|
+
getById(OutlookCategory)
|
|
72
|
+
], _MasterCategories);
|
|
73
|
+
return _MasterCategories;
|
|
74
|
+
}(_GraphQueryableCollection));
|
|
75
|
+
export { _MasterCategories };
|
|
76
|
+
export var MasterCategories = graphInvokableFactory(_MasterCategories);
|
|
77
77
|
//# sourceMappingURL=types.js.map
|
package/outlook/users.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IOutlook } from "./types.js";
|
|
2
|
-
declare module "../users/types" {
|
|
3
|
-
interface _User {
|
|
4
|
-
readonly outlook: IOutlook;
|
|
5
|
-
}
|
|
6
|
-
interface IUser {
|
|
7
|
-
readonly outlook: IOutlook;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
import { IOutlook } from "./types.js";
|
|
2
|
+
declare module "../users/types" {
|
|
3
|
+
interface _User {
|
|
4
|
+
readonly outlook: IOutlook;
|
|
5
|
+
}
|
|
6
|
+
interface IUser {
|
|
7
|
+
readonly outlook: IOutlook;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
10
|
//# sourceMappingURL=users.d.ts.map
|
package/outlook/users.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { addProp } from "@pnp/odata";
|
|
2
|
-
import { _User } from "../users/types.js";
|
|
3
|
-
import { Outlook } from "./types.js";
|
|
4
|
-
addProp(_User, "outlook", Outlook, "outlook");
|
|
1
|
+
import { addProp } from "@pnp/odata";
|
|
2
|
+
import { _User } from "../users/types.js";
|
|
3
|
+
import { Outlook } from "./types.js";
|
|
4
|
+
addProp(_User, "outlook", Outlook, "outlook");
|
|
5
5
|
//# sourceMappingURL=users.js.map
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/graph",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "pnp - provides functionality to query the Microsoft Graph",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@microsoft/microsoft-graph-types": "^
|
|
8
|
+
"@microsoft/microsoft-graph-types": "^2.10.0",
|
|
9
9
|
"tslib": "2.3.0",
|
|
10
|
-
"@pnp/common": "2.
|
|
11
|
-
"@pnp/logging": "2.
|
|
12
|
-
"@pnp/odata": "2.
|
|
10
|
+
"@pnp/common": "2.11.0",
|
|
11
|
+
"@pnp/logging": "2.11.0",
|
|
12
|
+
"@pnp/odata": "2.11.0"
|
|
13
13
|
},
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "Microsoft and other contributors"
|
package/photos/groups.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IPhoto } from "./types.js";
|
|
2
|
-
declare module "../groups/types" {
|
|
3
|
-
interface _Group {
|
|
4
|
-
readonly photo: IPhoto;
|
|
5
|
-
}
|
|
6
|
-
interface IGroup {
|
|
7
|
-
readonly photo: IPhoto;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
import { IPhoto } from "./types.js";
|
|
2
|
+
declare module "../groups/types" {
|
|
3
|
+
interface _Group {
|
|
4
|
+
readonly photo: IPhoto;
|
|
5
|
+
}
|
|
6
|
+
interface IGroup {
|
|
7
|
+
readonly photo: IPhoto;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
10
|
//# sourceMappingURL=groups.d.ts.map
|
package/photos/groups.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { addProp } from "@pnp/odata";
|
|
2
|
-
import { _Group } from "../groups/types.js";
|
|
3
|
-
import { Photo } from "./types.js";
|
|
4
|
-
addProp(_Group, "photo", Photo);
|
|
1
|
+
import { addProp } from "@pnp/odata";
|
|
2
|
+
import { _Group } from "../groups/types.js";
|
|
3
|
+
import { Photo } from "./types.js";
|
|
4
|
+
addProp(_Group, "photo", Photo);
|
|
5
5
|
//# sourceMappingURL=groups.js.map
|
package/photos/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./groups.js";
|
|
2
|
-
import "./users.js";
|
|
3
|
-
export { IPhoto, Photo, } from "./types.js";
|
|
1
|
+
import "./groups.js";
|
|
2
|
+
import "./users.js";
|
|
3
|
+
export { IPhoto, Photo, } from "./types.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/photos/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./groups.js";
|
|
2
|
-
import "./users.js";
|
|
3
|
-
export { Photo, } from "./types.js";
|
|
1
|
+
import "./groups.js";
|
|
2
|
+
import "./users.js";
|
|
3
|
+
export { Photo, } from "./types.js";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/photos/types.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { _GraphQueryableInstance } from "../graphqueryable.js";
|
|
2
|
-
import { Photo as IPhotoType } from "@microsoft/microsoft-graph-types";
|
|
3
|
-
export declare class _Photo extends _GraphQueryableInstance<IPhotoType> {
|
|
4
|
-
/**
|
|
5
|
-
* Gets the image bytes as a blob (browser)
|
|
6
|
-
*/
|
|
7
|
-
getBlob(): Promise<Blob>;
|
|
8
|
-
/**
|
|
9
|
-
* Gets the image file bytes as a Buffer (node.js)
|
|
10
|
-
*/
|
|
11
|
-
getBuffer(): Promise<ArrayBuffer>;
|
|
12
|
-
/**
|
|
13
|
-
* Sets the file bytes
|
|
14
|
-
*
|
|
15
|
-
* @param content Image file contents, max 4 MB
|
|
16
|
-
*/
|
|
17
|
-
setContent(content: ArrayBuffer | Blob): Promise<void>;
|
|
18
|
-
}
|
|
19
|
-
export interface IPhoto extends _Photo {
|
|
20
|
-
}
|
|
21
|
-
export declare const Photo: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IPhoto & import("@pnp/odata").IInvokable<any>;
|
|
1
|
+
import { _GraphQueryableInstance } from "../graphqueryable.js";
|
|
2
|
+
import { Photo as IPhotoType } from "@microsoft/microsoft-graph-types";
|
|
3
|
+
export declare class _Photo extends _GraphQueryableInstance<IPhotoType> {
|
|
4
|
+
/**
|
|
5
|
+
* Gets the image bytes as a blob (browser)
|
|
6
|
+
*/
|
|
7
|
+
getBlob(): Promise<Blob>;
|
|
8
|
+
/**
|
|
9
|
+
* Gets the image file bytes as a Buffer (node.js)
|
|
10
|
+
*/
|
|
11
|
+
getBuffer(): Promise<ArrayBuffer>;
|
|
12
|
+
/**
|
|
13
|
+
* Sets the file bytes
|
|
14
|
+
*
|
|
15
|
+
* @param content Image file contents, max 4 MB
|
|
16
|
+
*/
|
|
17
|
+
setContent(content: ArrayBuffer | Blob): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export interface IPhoto extends _Photo {
|
|
20
|
+
}
|
|
21
|
+
export declare const Photo: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IPhoto & import("@pnp/odata").IInvokable<any>;
|
|
22
22
|
//# sourceMappingURL=types.d.ts.map
|
package/photos/types.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { __decorate, __extends } from "tslib";
|
|
2
|
-
import { _GraphQueryableInstance, graphInvokableFactory } from "../graphqueryable.js";
|
|
3
|
-
import { BlobParser, BufferParser } from "@pnp/odata";
|
|
4
|
-
import { defaultPath } from "../decorators.js";
|
|
5
|
-
import { graphPatch } from "../operations.js";
|
|
6
|
-
var _Photo = /** @class */ (function (_super) {
|
|
7
|
-
__extends(_Photo, _super);
|
|
8
|
-
function _Photo() {
|
|
9
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Gets the image bytes as a blob (browser)
|
|
13
|
-
*/
|
|
14
|
-
_Photo.prototype.getBlob = function () {
|
|
15
|
-
return this.clone(Photo, "$value", false).usingParser(new BlobParser())();
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Gets the image file bytes as a Buffer (node.js)
|
|
19
|
-
*/
|
|
20
|
-
_Photo.prototype.getBuffer = function () {
|
|
21
|
-
return this.clone(Photo, "$value", false).usingParser(new BufferParser())();
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Sets the file bytes
|
|
25
|
-
*
|
|
26
|
-
* @param content Image file contents, max 4 MB
|
|
27
|
-
*/
|
|
28
|
-
_Photo.prototype.setContent = function (content) {
|
|
29
|
-
return graphPatch(this.clone(Photo, "$value", false), { body: content });
|
|
30
|
-
};
|
|
31
|
-
_Photo = __decorate([
|
|
32
|
-
defaultPath("photo")
|
|
33
|
-
], _Photo);
|
|
34
|
-
return _Photo;
|
|
35
|
-
}(_GraphQueryableInstance));
|
|
36
|
-
export { _Photo };
|
|
37
|
-
export var Photo = graphInvokableFactory(_Photo);
|
|
1
|
+
import { __decorate, __extends } from "tslib";
|
|
2
|
+
import { _GraphQueryableInstance, graphInvokableFactory } from "../graphqueryable.js";
|
|
3
|
+
import { BlobParser, BufferParser } from "@pnp/odata";
|
|
4
|
+
import { defaultPath } from "../decorators.js";
|
|
5
|
+
import { graphPatch } from "../operations.js";
|
|
6
|
+
var _Photo = /** @class */ (function (_super) {
|
|
7
|
+
__extends(_Photo, _super);
|
|
8
|
+
function _Photo() {
|
|
9
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Gets the image bytes as a blob (browser)
|
|
13
|
+
*/
|
|
14
|
+
_Photo.prototype.getBlob = function () {
|
|
15
|
+
return this.clone(Photo, "$value", false).usingParser(new BlobParser())();
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Gets the image file bytes as a Buffer (node.js)
|
|
19
|
+
*/
|
|
20
|
+
_Photo.prototype.getBuffer = function () {
|
|
21
|
+
return this.clone(Photo, "$value", false).usingParser(new BufferParser())();
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Sets the file bytes
|
|
25
|
+
*
|
|
26
|
+
* @param content Image file contents, max 4 MB
|
|
27
|
+
*/
|
|
28
|
+
_Photo.prototype.setContent = function (content) {
|
|
29
|
+
return graphPatch(this.clone(Photo, "$value", false), { body: content });
|
|
30
|
+
};
|
|
31
|
+
_Photo = __decorate([
|
|
32
|
+
defaultPath("photo")
|
|
33
|
+
], _Photo);
|
|
34
|
+
return _Photo;
|
|
35
|
+
}(_GraphQueryableInstance));
|
|
36
|
+
export { _Photo };
|
|
37
|
+
export var Photo = graphInvokableFactory(_Photo);
|
|
38
38
|
//# sourceMappingURL=types.js.map
|
package/photos/users.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IPhoto } from "./types.js";
|
|
2
|
-
declare module "../users/types" {
|
|
3
|
-
interface _User {
|
|
4
|
-
readonly photo: IPhoto;
|
|
5
|
-
}
|
|
6
|
-
interface IUser {
|
|
7
|
-
readonly photo: IPhoto;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
import { IPhoto } from "./types.js";
|
|
2
|
+
declare module "../users/types" {
|
|
3
|
+
interface _User {
|
|
4
|
+
readonly photo: IPhoto;
|
|
5
|
+
}
|
|
6
|
+
interface IUser {
|
|
7
|
+
readonly photo: IPhoto;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
10
|
//# sourceMappingURL=users.d.ts.map
|
package/photos/users.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { addProp } from "@pnp/odata";
|
|
2
|
-
import { _User } from "../users/types.js";
|
|
3
|
-
import { Photo } from "./types.js";
|
|
4
|
-
addProp(_User, "photo", Photo);
|
|
1
|
+
import { addProp } from "@pnp/odata";
|
|
2
|
+
import { _User } from "../users/types.js";
|
|
3
|
+
import { Photo } from "./types.js";
|
|
4
|
+
addProp(_User, "photo", Photo);
|
|
5
5
|
//# sourceMappingURL=users.js.map
|
package/planner/groups.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IPlans } from "./types.js";
|
|
2
|
-
declare module "../groups/types" {
|
|
3
|
-
interface _Group {
|
|
4
|
-
readonly plans: IPlans;
|
|
5
|
-
}
|
|
6
|
-
interface IGroup {
|
|
7
|
-
readonly plans: IPlans;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
import { IPlans } from "./types.js";
|
|
2
|
+
declare module "../groups/types" {
|
|
3
|
+
interface _Group {
|
|
4
|
+
readonly plans: IPlans;
|
|
5
|
+
}
|
|
6
|
+
interface IGroup {
|
|
7
|
+
readonly plans: IPlans;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
10
|
//# sourceMappingURL=groups.d.ts.map
|
package/planner/groups.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { addProp } from "@pnp/odata";
|
|
2
|
-
import { _Group } from "../groups/types.js";
|
|
3
|
-
import { Plans } from "./types.js";
|
|
4
|
-
addProp(_Group, "plans", Plans, "planner/plans");
|
|
1
|
+
import { addProp } from "@pnp/odata";
|
|
2
|
+
import { _Group } from "../groups/types.js";
|
|
3
|
+
import { Plans } from "./types.js";
|
|
4
|
+
addProp(_Group, "plans", Plans, "planner/plans");
|
|
5
5
|
//# sourceMappingURL=groups.js.map
|
package/planner/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IPlanner } from "./types.js";
|
|
2
|
-
import "./groups.js";
|
|
3
|
-
import "./users.js";
|
|
4
|
-
export { Bucket, Buckets, IBucket, IBucketAddResult, IBuckets, IPlan, IPlanAddResult, IPlanner, IPlans, ITask, ITaskAddResult, ITasks, ITaskDetails, Plan, Planner, Plans, Task, Tasks, TaskDetails, PlanDetails, } from "./types.js";
|
|
5
|
-
declare module "../rest" {
|
|
6
|
-
interface GraphRest {
|
|
7
|
-
readonly planner: IPlanner;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
import { IPlanner } from "./types.js";
|
|
2
|
+
import "./groups.js";
|
|
3
|
+
import "./users.js";
|
|
4
|
+
export { Bucket, Buckets, IBucket, IBucketAddResult, IBuckets, IPlan, IPlanAddResult, IPlanner, IPlans, ITask, ITaskAddResult, ITasks, ITaskDetails, Plan, Planner, Plans, Task, Tasks, TaskDetails, PlanDetails, } from "./types.js";
|
|
5
|
+
declare module "../rest" {
|
|
6
|
+
interface GraphRest {
|
|
7
|
+
readonly planner: IPlanner;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|