@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/onedrive/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../packages/graph/onedrive/types.ts"],"names":[],"mappings":";AAAA,O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AAC,IAAI,CAAC,EAAE,CAAC;6BAC1C,EAAC;;;;KACL;;IArCQ,WAAW;QADvB,OAAO,CAAC,SAAS,CAAC;OACN,WAAW,CAsCvB;IAAD,kBAAC;CAAA,AAtCD,CAAiC,yBAAyB,GAsCzD;SAtCY,WAAW;AAwCxB,MAAM,CAAC,IAAM,UAAU,GAAG,qBAAqB,CAAc,WAAW,CAAC,CAAC"}
|
package/onedrive/users.d.ts
CHANGED
|
@@ -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
|
package/onenote/index.d.ts
CHANGED
|
@@ -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
|
package/onenote/types.d.ts
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import { Notebook as INotebookType, Onenote as IOnenoteType, OnenoteSection as ISectionType, OnenotePage as IOnenotePageType } from "@microsoft/microsoft-graph-types";
|
|
2
|
-
import { _GraphQueryableInstance, _GraphQueryableCollection, IGraphQueryableCollection } from "../graphqueryable.js";
|
|
3
|
-
import { IGetById } from "../decorators.js";
|
|
4
|
-
/**
|
|
5
|
-
* Represents a onenote entity
|
|
6
|
-
*/
|
|
7
|
-
export declare class _OneNote extends _GraphQueryableInstance<IOnenoteType> {
|
|
8
|
-
get notebooks(): INotebooks;
|
|
9
|
-
get sections(): ISections;
|
|
10
|
-
get pages(): IGraphQueryableCollection<IOnenotePageType[]>;
|
|
11
|
-
}
|
|
12
|
-
export interface IOneNote extends _OneNote {
|
|
13
|
-
}
|
|
14
|
-
export declare const OneNote: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IOneNote & import("@pnp/odata").IInvokable<any>;
|
|
15
|
-
/**
|
|
16
|
-
* Describes a notebook instance
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export declare class _Notebook extends _GraphQueryableInstance<INotebookType> {
|
|
20
|
-
get sections(): ISections;
|
|
21
|
-
}
|
|
22
|
-
export interface INotebook extends _Notebook {
|
|
23
|
-
}
|
|
24
|
-
export declare const Notebook: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => INotebook & import("@pnp/odata").IInvokable<any>;
|
|
25
|
-
/**
|
|
26
|
-
* Describes a collection of Notebook objects
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
export declare class _Notebooks extends _GraphQueryableCollection<INotebookType[]> {
|
|
30
|
-
/**
|
|
31
|
-
* Create a new notebook as specified in the request body.
|
|
32
|
-
*
|
|
33
|
-
* @param displayName Notebook display name
|
|
34
|
-
*/
|
|
35
|
-
add(displayName: string): Promise<INotebookAddResult>;
|
|
36
|
-
}
|
|
37
|
-
export interface INotebooks extends _Notebooks, IGetById<INotebook> {
|
|
38
|
-
}
|
|
39
|
-
export declare const Notebooks: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => INotebooks & import("@pnp/odata").IInvokable<any>;
|
|
40
|
-
/**
|
|
41
|
-
* Describes a sections instance
|
|
42
|
-
*/
|
|
43
|
-
export declare class _Section extends _GraphQueryableInstance<ISectionType> {
|
|
44
|
-
}
|
|
45
|
-
export interface ISection extends _Section {
|
|
46
|
-
}
|
|
47
|
-
export declare const Section: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ISection & import("@pnp/odata").IInvokable<any>;
|
|
48
|
-
/**
|
|
49
|
-
* Describes a collection of Sections objects
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
export declare class _Sections extends _GraphQueryableCollection<ISectionType[]> {
|
|
53
|
-
/**
|
|
54
|
-
* Adds a new section
|
|
55
|
-
*
|
|
56
|
-
* @param displayName New section display name
|
|
57
|
-
*/
|
|
58
|
-
add(displayName: string): Promise<ISectionAddResult>;
|
|
59
|
-
}
|
|
60
|
-
export interface ISections extends _Sections, IGetById<ISection> {
|
|
61
|
-
}
|
|
62
|
-
export declare const Sections: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ISections & import("@pnp/odata").IInvokable<any>;
|
|
63
|
-
/**
|
|
64
|
-
* INotebookAddResult
|
|
65
|
-
*/
|
|
66
|
-
export interface INotebookAddResult {
|
|
67
|
-
data: any;
|
|
68
|
-
notebook: INotebook;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* ISectionAddResult
|
|
72
|
-
*/
|
|
73
|
-
export interface ISectionAddResult {
|
|
74
|
-
data: any;
|
|
75
|
-
section: ISection;
|
|
76
|
-
}
|
|
1
|
+
import { Notebook as INotebookType, Onenote as IOnenoteType, OnenoteSection as ISectionType, OnenotePage as IOnenotePageType } from "@microsoft/microsoft-graph-types";
|
|
2
|
+
import { _GraphQueryableInstance, _GraphQueryableCollection, IGraphQueryableCollection } from "../graphqueryable.js";
|
|
3
|
+
import { IGetById } from "../decorators.js";
|
|
4
|
+
/**
|
|
5
|
+
* Represents a onenote entity
|
|
6
|
+
*/
|
|
7
|
+
export declare class _OneNote extends _GraphQueryableInstance<IOnenoteType> {
|
|
8
|
+
get notebooks(): INotebooks;
|
|
9
|
+
get sections(): ISections;
|
|
10
|
+
get pages(): IGraphQueryableCollection<IOnenotePageType[]>;
|
|
11
|
+
}
|
|
12
|
+
export interface IOneNote extends _OneNote {
|
|
13
|
+
}
|
|
14
|
+
export declare const OneNote: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => IOneNote & import("@pnp/odata").IInvokable<any>;
|
|
15
|
+
/**
|
|
16
|
+
* Describes a notebook instance
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare class _Notebook extends _GraphQueryableInstance<INotebookType> {
|
|
20
|
+
get sections(): ISections;
|
|
21
|
+
}
|
|
22
|
+
export interface INotebook extends _Notebook {
|
|
23
|
+
}
|
|
24
|
+
export declare const Notebook: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => INotebook & import("@pnp/odata").IInvokable<any>;
|
|
25
|
+
/**
|
|
26
|
+
* Describes a collection of Notebook objects
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare class _Notebooks extends _GraphQueryableCollection<INotebookType[]> {
|
|
30
|
+
/**
|
|
31
|
+
* Create a new notebook as specified in the request body.
|
|
32
|
+
*
|
|
33
|
+
* @param displayName Notebook display name
|
|
34
|
+
*/
|
|
35
|
+
add(displayName: string): Promise<INotebookAddResult>;
|
|
36
|
+
}
|
|
37
|
+
export interface INotebooks extends _Notebooks, IGetById<INotebook> {
|
|
38
|
+
}
|
|
39
|
+
export declare const Notebooks: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => INotebooks & import("@pnp/odata").IInvokable<any>;
|
|
40
|
+
/**
|
|
41
|
+
* Describes a sections instance
|
|
42
|
+
*/
|
|
43
|
+
export declare class _Section extends _GraphQueryableInstance<ISectionType> {
|
|
44
|
+
}
|
|
45
|
+
export interface ISection extends _Section {
|
|
46
|
+
}
|
|
47
|
+
export declare const Section: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ISection & import("@pnp/odata").IInvokable<any>;
|
|
48
|
+
/**
|
|
49
|
+
* Describes a collection of Sections objects
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
export declare class _Sections extends _GraphQueryableCollection<ISectionType[]> {
|
|
53
|
+
/**
|
|
54
|
+
* Adds a new section
|
|
55
|
+
*
|
|
56
|
+
* @param displayName New section display name
|
|
57
|
+
*/
|
|
58
|
+
add(displayName: string): Promise<ISectionAddResult>;
|
|
59
|
+
}
|
|
60
|
+
export interface ISections extends _Sections, IGetById<ISection> {
|
|
61
|
+
}
|
|
62
|
+
export declare const Sections: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable<any>, path?: string) => ISections & import("@pnp/odata").IInvokable<any>;
|
|
63
|
+
/**
|
|
64
|
+
* INotebookAddResult
|
|
65
|
+
*/
|
|
66
|
+
export interface INotebookAddResult {
|
|
67
|
+
data: any;
|
|
68
|
+
notebook: INotebook;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* ISectionAddResult
|
|
72
|
+
*/
|
|
73
|
+
export interface ISectionAddResult {
|
|
74
|
+
data: any;
|
|
75
|
+
section: ISection;
|
|
76
|
+
}
|
|
77
77
|
//# sourceMappingURL=types.d.ts.map
|
package/onenote/types.js
CHANGED
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
import { __awaiter, __decorate, __extends, __generator } from "tslib";
|
|
2
|
-
import { body } from "@pnp/odata";
|
|
3
|
-
import { GraphQueryableCollection, _GraphQueryableInstance, _GraphQueryableCollection, graphInvokableFactory, } from "../graphqueryable.js";
|
|
4
|
-
import { defaultPath, getById } from "../decorators.js";
|
|
5
|
-
import { graphPost } from "../operations.js";
|
|
6
|
-
/**
|
|
7
|
-
* Represents a onenote entity
|
|
8
|
-
*/
|
|
9
|
-
var _OneNote = /** @class */ (function (_super) {
|
|
10
|
-
__extends(_OneNote, _super);
|
|
11
|
-
function _OneNote() {
|
|
12
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(_OneNote.prototype, "notebooks", {
|
|
15
|
-
get: function () {
|
|
16
|
-
return Notebooks(this);
|
|
17
|
-
},
|
|
18
|
-
enumerable: false,
|
|
19
|
-
configurable: true
|
|
20
|
-
});
|
|
21
|
-
Object.defineProperty(_OneNote.prototype, "sections", {
|
|
22
|
-
get: function () {
|
|
23
|
-
return Sections(this);
|
|
24
|
-
},
|
|
25
|
-
enumerable: false,
|
|
26
|
-
configurable: true
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(_OneNote.prototype, "pages", {
|
|
29
|
-
get: function () {
|
|
30
|
-
return this.clone(GraphQueryableCollection, "pages");
|
|
31
|
-
},
|
|
32
|
-
enumerable: false,
|
|
33
|
-
configurable: true
|
|
34
|
-
});
|
|
35
|
-
_OneNote = __decorate([
|
|
36
|
-
defaultPath("onenote")
|
|
37
|
-
], _OneNote);
|
|
38
|
-
return _OneNote;
|
|
39
|
-
}(_GraphQueryableInstance));
|
|
40
|
-
export { _OneNote };
|
|
41
|
-
export var OneNote = graphInvokableFactory(_OneNote);
|
|
42
|
-
/**
|
|
43
|
-
* Describes a notebook instance
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
var _Notebook = /** @class */ (function (_super) {
|
|
47
|
-
__extends(_Notebook, _super);
|
|
48
|
-
function _Notebook() {
|
|
49
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
50
|
-
}
|
|
51
|
-
Object.defineProperty(_Notebook.prototype, "sections", {
|
|
52
|
-
get: function () {
|
|
53
|
-
return Sections(this);
|
|
54
|
-
},
|
|
55
|
-
enumerable: false,
|
|
56
|
-
configurable: true
|
|
57
|
-
});
|
|
58
|
-
return _Notebook;
|
|
59
|
-
}(_GraphQueryableInstance));
|
|
60
|
-
export { _Notebook };
|
|
61
|
-
export var Notebook = graphInvokableFactory(_Notebook);
|
|
62
|
-
/**
|
|
63
|
-
* Describes a collection of Notebook objects
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
|
-
var _Notebooks = /** @class */ (function (_super) {
|
|
67
|
-
__extends(_Notebooks, _super);
|
|
68
|
-
function _Notebooks() {
|
|
69
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Create a new notebook as specified in the request body.
|
|
73
|
-
*
|
|
74
|
-
* @param displayName Notebook display name
|
|
75
|
-
*/
|
|
76
|
-
_Notebooks.prototype.add = function (displayName) {
|
|
77
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
78
|
-
var data;
|
|
79
|
-
return __generator(this, function (_a) {
|
|
80
|
-
switch (_a.label) {
|
|
81
|
-
case 0: return [4 /*yield*/, graphPost(this, body({ displayName: displayName }))];
|
|
82
|
-
case 1:
|
|
83
|
-
data = _a.sent();
|
|
84
|
-
return [2 /*return*/, {
|
|
85
|
-
data: data,
|
|
86
|
-
notebook: this.getById(data.id),
|
|
87
|
-
}];
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
_Notebooks = __decorate([
|
|
93
|
-
defaultPath("notebooks"),
|
|
94
|
-
getById(Notebook)
|
|
95
|
-
], _Notebooks);
|
|
96
|
-
return _Notebooks;
|
|
97
|
-
}(_GraphQueryableCollection));
|
|
98
|
-
export { _Notebooks };
|
|
99
|
-
export var Notebooks = graphInvokableFactory(_Notebooks);
|
|
100
|
-
/**
|
|
101
|
-
* Describes a sections instance
|
|
102
|
-
*/
|
|
103
|
-
var _Section = /** @class */ (function (_super) {
|
|
104
|
-
__extends(_Section, _super);
|
|
105
|
-
function _Section() {
|
|
106
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
107
|
-
}
|
|
108
|
-
return _Section;
|
|
109
|
-
}(_GraphQueryableInstance));
|
|
110
|
-
export { _Section };
|
|
111
|
-
export var Section = graphInvokableFactory(_Section);
|
|
112
|
-
/**
|
|
113
|
-
* Describes a collection of Sections objects
|
|
114
|
-
*
|
|
115
|
-
*/
|
|
116
|
-
var _Sections = /** @class */ (function (_super) {
|
|
117
|
-
__extends(_Sections, _super);
|
|
118
|
-
function _Sections() {
|
|
119
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Adds a new section
|
|
123
|
-
*
|
|
124
|
-
* @param displayName New section display name
|
|
125
|
-
*/
|
|
126
|
-
_Sections.prototype.add = function (displayName) {
|
|
127
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
-
var data;
|
|
129
|
-
return __generator(this, function (_a) {
|
|
130
|
-
switch (_a.label) {
|
|
131
|
-
case 0: return [4 /*yield*/, graphPost(this, body({ displayName: displayName }))];
|
|
132
|
-
case 1:
|
|
133
|
-
data = _a.sent();
|
|
134
|
-
return [2 /*return*/, {
|
|
135
|
-
data: data,
|
|
136
|
-
section: this.getById(data.id),
|
|
137
|
-
}];
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
_Sections = __decorate([
|
|
143
|
-
defaultPath("sections"),
|
|
144
|
-
getById(Section)
|
|
145
|
-
], _Sections);
|
|
146
|
-
return _Sections;
|
|
147
|
-
}(_GraphQueryableCollection));
|
|
148
|
-
export { _Sections };
|
|
149
|
-
export var Sections = graphInvokableFactory(_Sections);
|
|
1
|
+
import { __awaiter, __decorate, __extends, __generator } from "tslib";
|
|
2
|
+
import { body } from "@pnp/odata";
|
|
3
|
+
import { GraphQueryableCollection, _GraphQueryableInstance, _GraphQueryableCollection, graphInvokableFactory, } from "../graphqueryable.js";
|
|
4
|
+
import { defaultPath, getById } from "../decorators.js";
|
|
5
|
+
import { graphPost } from "../operations.js";
|
|
6
|
+
/**
|
|
7
|
+
* Represents a onenote entity
|
|
8
|
+
*/
|
|
9
|
+
var _OneNote = /** @class */ (function (_super) {
|
|
10
|
+
__extends(_OneNote, _super);
|
|
11
|
+
function _OneNote() {
|
|
12
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(_OneNote.prototype, "notebooks", {
|
|
15
|
+
get: function () {
|
|
16
|
+
return Notebooks(this);
|
|
17
|
+
},
|
|
18
|
+
enumerable: false,
|
|
19
|
+
configurable: true
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(_OneNote.prototype, "sections", {
|
|
22
|
+
get: function () {
|
|
23
|
+
return Sections(this);
|
|
24
|
+
},
|
|
25
|
+
enumerable: false,
|
|
26
|
+
configurable: true
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(_OneNote.prototype, "pages", {
|
|
29
|
+
get: function () {
|
|
30
|
+
return this.clone(GraphQueryableCollection, "pages");
|
|
31
|
+
},
|
|
32
|
+
enumerable: false,
|
|
33
|
+
configurable: true
|
|
34
|
+
});
|
|
35
|
+
_OneNote = __decorate([
|
|
36
|
+
defaultPath("onenote")
|
|
37
|
+
], _OneNote);
|
|
38
|
+
return _OneNote;
|
|
39
|
+
}(_GraphQueryableInstance));
|
|
40
|
+
export { _OneNote };
|
|
41
|
+
export var OneNote = graphInvokableFactory(_OneNote);
|
|
42
|
+
/**
|
|
43
|
+
* Describes a notebook instance
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
var _Notebook = /** @class */ (function (_super) {
|
|
47
|
+
__extends(_Notebook, _super);
|
|
48
|
+
function _Notebook() {
|
|
49
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
50
|
+
}
|
|
51
|
+
Object.defineProperty(_Notebook.prototype, "sections", {
|
|
52
|
+
get: function () {
|
|
53
|
+
return Sections(this);
|
|
54
|
+
},
|
|
55
|
+
enumerable: false,
|
|
56
|
+
configurable: true
|
|
57
|
+
});
|
|
58
|
+
return _Notebook;
|
|
59
|
+
}(_GraphQueryableInstance));
|
|
60
|
+
export { _Notebook };
|
|
61
|
+
export var Notebook = graphInvokableFactory(_Notebook);
|
|
62
|
+
/**
|
|
63
|
+
* Describes a collection of Notebook objects
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
var _Notebooks = /** @class */ (function (_super) {
|
|
67
|
+
__extends(_Notebooks, _super);
|
|
68
|
+
function _Notebooks() {
|
|
69
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Create a new notebook as specified in the request body.
|
|
73
|
+
*
|
|
74
|
+
* @param displayName Notebook display name
|
|
75
|
+
*/
|
|
76
|
+
_Notebooks.prototype.add = function (displayName) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
78
|
+
var data;
|
|
79
|
+
return __generator(this, function (_a) {
|
|
80
|
+
switch (_a.label) {
|
|
81
|
+
case 0: return [4 /*yield*/, graphPost(this, body({ displayName: displayName }))];
|
|
82
|
+
case 1:
|
|
83
|
+
data = _a.sent();
|
|
84
|
+
return [2 /*return*/, {
|
|
85
|
+
data: data,
|
|
86
|
+
notebook: this.getById(data.id),
|
|
87
|
+
}];
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
_Notebooks = __decorate([
|
|
93
|
+
defaultPath("notebooks"),
|
|
94
|
+
getById(Notebook)
|
|
95
|
+
], _Notebooks);
|
|
96
|
+
return _Notebooks;
|
|
97
|
+
}(_GraphQueryableCollection));
|
|
98
|
+
export { _Notebooks };
|
|
99
|
+
export var Notebooks = graphInvokableFactory(_Notebooks);
|
|
100
|
+
/**
|
|
101
|
+
* Describes a sections instance
|
|
102
|
+
*/
|
|
103
|
+
var _Section = /** @class */ (function (_super) {
|
|
104
|
+
__extends(_Section, _super);
|
|
105
|
+
function _Section() {
|
|
106
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
107
|
+
}
|
|
108
|
+
return _Section;
|
|
109
|
+
}(_GraphQueryableInstance));
|
|
110
|
+
export { _Section };
|
|
111
|
+
export var Section = graphInvokableFactory(_Section);
|
|
112
|
+
/**
|
|
113
|
+
* Describes a collection of Sections objects
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
var _Sections = /** @class */ (function (_super) {
|
|
117
|
+
__extends(_Sections, _super);
|
|
118
|
+
function _Sections() {
|
|
119
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Adds a new section
|
|
123
|
+
*
|
|
124
|
+
* @param displayName New section display name
|
|
125
|
+
*/
|
|
126
|
+
_Sections.prototype.add = function (displayName) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
+
var data;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
switch (_a.label) {
|
|
131
|
+
case 0: return [4 /*yield*/, graphPost(this, body({ displayName: displayName }))];
|
|
132
|
+
case 1:
|
|
133
|
+
data = _a.sent();
|
|
134
|
+
return [2 /*return*/, {
|
|
135
|
+
data: data,
|
|
136
|
+
section: this.getById(data.id),
|
|
137
|
+
}];
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
_Sections = __decorate([
|
|
143
|
+
defaultPath("sections"),
|
|
144
|
+
getById(Section)
|
|
145
|
+
], _Sections);
|
|
146
|
+
return _Sections;
|
|
147
|
+
}(_GraphQueryableCollection));
|
|
148
|
+
export { _Sections };
|
|
149
|
+
export var Sections = graphInvokableFactory(_Sections);
|
|
150
150
|
//# sourceMappingURL=types.js.map
|
package/onenote/users.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IOneNote } from "./types.js";
|
|
2
|
-
declare module "../users/types" {
|
|
3
|
-
interface _User {
|
|
4
|
-
readonly onenote: IOneNote;
|
|
5
|
-
}
|
|
6
|
-
interface IUser {
|
|
7
|
-
readonly onenote: IOneNote;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
import { IOneNote } from "./types.js";
|
|
2
|
+
declare module "../users/types" {
|
|
3
|
+
interface _User {
|
|
4
|
+
readonly onenote: IOneNote;
|
|
5
|
+
}
|
|
6
|
+
interface IUser {
|
|
7
|
+
readonly onenote: IOneNote;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
10
|
//# sourceMappingURL=users.d.ts.map
|
package/onenote/users.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { addProp } from "@pnp/odata";
|
|
2
|
-
import { _User } from "../users/types.js";
|
|
3
|
-
import { OneNote } from "./types.js";
|
|
4
|
-
addProp(_User, "onenote", OneNote);
|
|
1
|
+
import { addProp } from "@pnp/odata";
|
|
2
|
+
import { _User } from "../users/types.js";
|
|
3
|
+
import { OneNote } from "./types.js";
|
|
4
|
+
addProp(_User, "onenote", OneNote);
|
|
5
5
|
//# sourceMappingURL=users.js.map
|
package/operations.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IFetchOptions, IRequestClient } from "@pnp/common";
|
|
2
|
-
import { IGraphQueryable } from "./graphqueryable.js";
|
|
3
|
-
export declare function registerCustomRequestClientFactory(requestClientFactory: () => IRequestClient): void;
|
|
4
|
-
export declare const graphGet: <T = any>(o: IGraphQueryable<any>, options?: IFetchOptions) => Promise<T>;
|
|
5
|
-
export declare const graphPost: <T = any>(o: IGraphQueryable<any>, options?: IFetchOptions) => Promise<T>;
|
|
6
|
-
export declare const graphDelete: <T = any>(o: IGraphQueryable<any>, options?: IFetchOptions) => Promise<T>;
|
|
7
|
-
export declare const graphPatch: <T = any>(o: IGraphQueryable<any>, options?: IFetchOptions) => Promise<T>;
|
|
8
|
-
export declare const graphPut: <T = any>(o: IGraphQueryable<any>, options?: IFetchOptions) => Promise<T>;
|
|
1
|
+
import { IFetchOptions, IRequestClient } from "@pnp/common";
|
|
2
|
+
import { IGraphQueryable } from "./graphqueryable.js";
|
|
3
|
+
export declare function registerCustomRequestClientFactory(requestClientFactory: () => IRequestClient): void;
|
|
4
|
+
export declare const graphGet: <T = any>(o: IGraphQueryable<any>, options?: IFetchOptions) => Promise<T>;
|
|
5
|
+
export declare const graphPost: <T = any>(o: IGraphQueryable<any>, options?: IFetchOptions) => Promise<T>;
|
|
6
|
+
export declare const graphDelete: <T = any>(o: IGraphQueryable<any>, options?: IFetchOptions) => Promise<T>;
|
|
7
|
+
export declare const graphPatch: <T = any>(o: IGraphQueryable<any>, options?: IFetchOptions) => Promise<T>;
|
|
8
|
+
export declare const graphPut: <T = any>(o: IGraphQueryable<any>, options?: IFetchOptions) => Promise<T>;
|
|
9
9
|
//# sourceMappingURL=operations.d.ts.map
|