@pnp/sp 4.0.0-alpha0-v4nightly.20240408 → 4.0.0-alpha0-v4nightly.20240410
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/package.json +3 -3
- package/presets/all.d.ts +0 -2
- package/presets/all.d.ts.map +1 -1
- package/presets/all.js +0 -2
- package/presets/all.js.map +1 -1
- package/favorites/index.d.ts +0 -11
- package/favorites/index.d.ts.map +0 -1
- package/favorites/index.js +0 -11
- package/favorites/index.js.map +0 -1
- package/favorites/types.d.ts +0 -113
- package/favorites/types.d.ts.map +0 -1
- package/favorites/types.js +0 -111
- package/favorites/types.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/sp",
|
|
3
|
-
"version": "4.0.0-alpha0-v4nightly.
|
|
3
|
+
"version": "4.0.0-alpha0-v4nightly.20240410",
|
|
4
4
|
"description": "pnp - provides a fluent api for working with SharePoint REST",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"tslib": "2.4.1",
|
|
9
|
-
"@pnp/core": "4.0.0-alpha0-v4nightly.
|
|
10
|
-
"@pnp/queryable": "4.0.0-alpha0-v4nightly.
|
|
9
|
+
"@pnp/core": "4.0.0-alpha0-v4nightly.20240410",
|
|
10
|
+
"@pnp/queryable": "4.0.0-alpha0-v4nightly.20240410"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|
|
13
13
|
"engines": {
|
package/presets/all.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import "../clientside-pages/index.js";
|
|
|
4
4
|
import "../column-defaults/index.js";
|
|
5
5
|
import "../comments/index.js";
|
|
6
6
|
import "../content-types/index.js";
|
|
7
|
-
import "../favorites/index.js";
|
|
8
7
|
import "../features/index.js";
|
|
9
8
|
import "../fields/index.js";
|
|
10
9
|
import "../files/index.js";
|
|
@@ -39,7 +38,6 @@ export * from "../clientside-pages/index.js";
|
|
|
39
38
|
export * from "../column-defaults/index.js";
|
|
40
39
|
export * from "../comments/index.js";
|
|
41
40
|
export * from "../content-types/index.js";
|
|
42
|
-
export * from "../favorites/index.js";
|
|
43
41
|
export * from "../features/index.js";
|
|
44
42
|
export * from "../fields/index.js";
|
|
45
43
|
export * from "../files/index.js";
|
package/presets/all.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../../../packages/sp/presets/all.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,yBAAyB,CAAC;AACjC,OAAO,8BAA8B,CAAC;AACtC,OAAO,6BAA6B,CAAC;AACrC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,2BAA2B,CAAC;AACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../../../packages/sp/presets/all.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,yBAAyB,CAAC;AACjC,OAAO,8BAA8B,CAAC;AACtC,OAAO,6BAA6B,CAAC;AACrC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,2BAA2B,CAAC;AACnC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,wBAAwB,CAAC;AAChC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,wCAAwC,CAAC;AAChD,OAAO,+BAA+B,CAAC;AACvC,OAAO,2BAA2B,CAAC;AACnC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,0BA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AkB,CAAC;AACjC,cAAc,aAAa,CAAC"}
|
package/presets/all.js
CHANGED
|
@@ -4,7 +4,6 @@ import "../clientside-pages/index.js";
|
|
|
4
4
|
import "../column-defaults/index.js";
|
|
5
5
|
import "../comments/index.js";
|
|
6
6
|
import "../content-types/index.js";
|
|
7
|
-
import "../favorites/index.js";
|
|
8
7
|
import "../features/index.js";
|
|
9
8
|
import "../fields/index.js";
|
|
10
9
|
import "../files/index.js";
|
|
@@ -39,7 +38,6 @@ export * from "../clientside-pages/index.js";
|
|
|
39
38
|
export * from "../column-defaults/index.js";
|
|
40
39
|
export * from "../comments/index.js";
|
|
41
40
|
export * from "../content-types/index.js";
|
|
42
|
-
export * from "../favorites/index.js";
|
|
43
41
|
export * from "../features/index.js";
|
|
44
42
|
export * from "../fields/index.js";
|
|
45
43
|
export * from "../files/index.js";
|
package/presets/all.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all.js","sourceRoot":"","sources":["../../../../packages/sp/presets/all.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,yBAAyB,CAAC;AACjC,OAAO,8BAA8B,CAAC;AACtC,OAAO,6BAA6B,CAAC;AACrC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,2BAA2B,CAAC;AACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"all.js","sourceRoot":"","sources":["../../../../packages/sp/presets/all.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,yBAAyB,CAAC;AACjC,OAAO,8BAA8B,CAAC;AACtC,OAAO,6BAA6B,CAAC;AACrC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,2BAA2B,CAAC;AACnC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,sBAAsB,CAAC;AAC9B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;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"}
|
package/favorites/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IFavorites } from "./types.js";
|
|
2
|
-
export { IFavorites, Favorites, IFollowedSites, IFollowedSiteInfo, IFollowedExchangeId, IFollowedListItems, IFollowedListItemInfo, IFavoritesResourceVisualization, IFavoritesUser, } from "./types.js";
|
|
3
|
-
declare module "../fi" {
|
|
4
|
-
interface SPFI {
|
|
5
|
-
/**
|
|
6
|
-
* Access to the favorites instance which allows you to track followed sites and items.
|
|
7
|
-
*/
|
|
8
|
-
readonly favorites: IFavorites;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
package/favorites/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/sp/favorites/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAC,MAAM,YAAY,CAAC;AAElD,OAAO,EACH,UAAU,EACV,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,+BAA+B,EAC/B,cAAc,GACjB,MAAM,YAAY,CAAC;AAGpB,OAAO,QAAQ,OAAO,CAAC;IACnB,UAAU,IAAI;QACV;;WAEG;QACH,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;KAClC;CACJ"}
|
package/favorites/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SPFI } from "../fi.js";
|
|
2
|
-
import { Favorites } from "./types.js";
|
|
3
|
-
export { Favorites, } from "./types.js";
|
|
4
|
-
Reflect.defineProperty(SPFI.prototype, "favorites", {
|
|
5
|
-
configurable: true,
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function () {
|
|
8
|
-
return this.create(Favorites);
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
package/favorites/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/sp/favorites/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,SAAS,EAAa,MAAM,YAAY,CAAC;AAElD,OAAO,EAEH,SAAS,GAQZ,MAAM,YAAY,CAAC;AAYpB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE;IAChD,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,GAAG,EAAE;QACD,OAAO,IAAI,CAAC,MAAM,CAAM,SAAS,CAAC,CAAC;IACvC,CAAC;CACJ,CAAC,CAAC"}
|
package/favorites/types.d.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { _SPInstance, _SPCollection, SPInit } from "../spqueryable.js";
|
|
2
|
-
import { SharepointIds, ResourceVisualization } from "@microsoft/microsoft-graph-types";
|
|
3
|
-
export declare class _Favorites extends _SPInstance implements IFavorites {
|
|
4
|
-
get followedSites(): IFollowedSites;
|
|
5
|
-
get followedListItems(): IFollowedListItems;
|
|
6
|
-
}
|
|
7
|
-
export declare const Favorites: (baseUrl: SPInit) => IFavorites;
|
|
8
|
-
export declare class _FollowedSites extends _SPCollection<IFollowedSiteInfo[]> {
|
|
9
|
-
/**
|
|
10
|
-
* Adds a site to user's followed sites
|
|
11
|
-
*
|
|
12
|
-
* @param tenantUrl Name of a tenant (e.g. yourtenant.sharepoint.com).
|
|
13
|
-
* @param siteId Id of a site collection.
|
|
14
|
-
* @param webId Id of a site.
|
|
15
|
-
* @param webUrl Absolute URL of a site.
|
|
16
|
-
*/
|
|
17
|
-
add(tenantUrl: string, siteId: string, webId: string, webUrl: string): Promise<IFollowedSiteInfo[]>;
|
|
18
|
-
/**
|
|
19
|
-
* Removes a site from user's followed sites
|
|
20
|
-
*
|
|
21
|
-
* @param tenantUrl Name of a tenant (e.g. yourtenant.sharepoint.com).
|
|
22
|
-
* @param siteId Id of a site collection.
|
|
23
|
-
* @param webId Id of a site.
|
|
24
|
-
* @param webUrl Absolute URL of a site.
|
|
25
|
-
*/
|
|
26
|
-
remove(tenantUrl: string, siteId: string, webId: string, webUrl: string): Promise<void>;
|
|
27
|
-
}
|
|
28
|
-
export interface IFollowedSites extends _FollowedSites {
|
|
29
|
-
}
|
|
30
|
-
export declare const FollowedSites: import("../spqueryable.js").ISPInvokableFactory<IFollowedSites>;
|
|
31
|
-
export declare class _FollowedListItems extends _SPCollection<IFollowedListItemInfo[]> {
|
|
32
|
-
/**
|
|
33
|
-
* Adds an item to user's _saved for later_ list
|
|
34
|
-
*
|
|
35
|
-
* @param siteId Id of a site collection of an item to add
|
|
36
|
-
* @param webId Id of a site of an item to add
|
|
37
|
-
* @param listId Id of a list of an item to add
|
|
38
|
-
* @param listItemUniqueId Unique id of an item to add
|
|
39
|
-
*/
|
|
40
|
-
add(siteId: string, webId: string, listId: string, listItemUniqueId: string): Promise<IFollowedListItemInfo>;
|
|
41
|
-
/**
|
|
42
|
-
* Removes an item from user's _saved for later_ list
|
|
43
|
-
*
|
|
44
|
-
* @param siteId Id of a site collection of an item to remove
|
|
45
|
-
* @param webId Id of a site of an item to remove
|
|
46
|
-
* @param listId Id of a list of an item to remove
|
|
47
|
-
* @param listItemUniqueId Unique id of an item to remove
|
|
48
|
-
*/
|
|
49
|
-
remove(siteId: string, webId: string, listId: string, listItemUniqueId: string): Promise<void>;
|
|
50
|
-
}
|
|
51
|
-
export interface IFollowedListItems extends _FollowedListItems {
|
|
52
|
-
}
|
|
53
|
-
export declare const FollowedListItems: import("../spqueryable.js").ISPInvokableFactory<IFollowedListItems>;
|
|
54
|
-
export interface IFavorites {
|
|
55
|
-
readonly followedSites: IFollowedSites;
|
|
56
|
-
readonly followedListItems: IFollowedListItems;
|
|
57
|
-
}
|
|
58
|
-
export interface IFollowedSiteInfo {
|
|
59
|
-
id: string;
|
|
60
|
-
webUrl: string;
|
|
61
|
-
title: string;
|
|
62
|
-
sharepointIds: SharepointIds;
|
|
63
|
-
siteCollection: {
|
|
64
|
-
hostName: string;
|
|
65
|
-
};
|
|
66
|
-
template: any;
|
|
67
|
-
exchangeIds: IFollowedExchangeId;
|
|
68
|
-
resourceVisualization: {
|
|
69
|
-
color: string;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
export interface IFollowedListItemInfo {
|
|
73
|
-
description: string;
|
|
74
|
-
id: string;
|
|
75
|
-
lastModifiedDateTime: string;
|
|
76
|
-
name: string;
|
|
77
|
-
size: number;
|
|
78
|
-
webUrl: string;
|
|
79
|
-
serverRedirectedUrl: string;
|
|
80
|
-
contentClass: string;
|
|
81
|
-
lastModifiedBy: {
|
|
82
|
-
user: IFavoritesUser;
|
|
83
|
-
};
|
|
84
|
-
sharepointIds: SharepointIds;
|
|
85
|
-
contentType: {
|
|
86
|
-
id: string;
|
|
87
|
-
};
|
|
88
|
-
resourceVisualization: IFavoritesResourceVisualization;
|
|
89
|
-
exchangeIds: IFollowedExchangeId;
|
|
90
|
-
followed: {
|
|
91
|
-
followedDateTime: string;
|
|
92
|
-
};
|
|
93
|
-
file: {
|
|
94
|
-
fileExtension: string;
|
|
95
|
-
};
|
|
96
|
-
news: {
|
|
97
|
-
publishedDateTime: string;
|
|
98
|
-
newsType: string;
|
|
99
|
-
author: IFavoritesUser;
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
export interface IFavoritesResourceVisualization extends ResourceVisualization {
|
|
103
|
-
color: string;
|
|
104
|
-
}
|
|
105
|
-
export interface IFollowedExchangeId {
|
|
106
|
-
id: string;
|
|
107
|
-
documentId: string;
|
|
108
|
-
}
|
|
109
|
-
export interface IFavoritesUser {
|
|
110
|
-
displayName: string;
|
|
111
|
-
userPrincipalName: string;
|
|
112
|
-
}
|
|
113
|
-
//# sourceMappingURL=types.d.ts.map
|
package/favorites/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/sp/favorites/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAsB,aAAa,EAAE,MAAM,EAAU,MAAM,mBAAmB,CAAC;AAGnG,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAExF,qBACa,UAAW,SAAQ,WAAY,YAAW,UAAU;IAC7D,IAAW,aAAa,IAAI,cAAc,CAEzC;IAED,IAAW,iBAAiB,IAAI,kBAAkB,CAEjD;CACJ;AAED,eAAO,MAAM,SAAS,YAAa,MAAM,KAAG,UAAqC,CAAC;AAElF,qBACa,cAAe,SAAQ,aAAa,CAAC,iBAAiB,EAAE,CAAC;IAClE;;;;;;;MAOE;IACW,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAchH;;;;;;;MAOE;IACW,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAavG;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc;CAAI;AAC1D,eAAO,MAAM,aAAa,iEAAqD,CAAC;AAEhF,qBACa,kBAAmB,SAAQ,aAAa,CAAC,qBAA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AAE,aAAa,CAAC;IAC7B,WAAW,EAAE;QACT,EAAE,EAAE,MAAM,CAAC;KACd,CAAC;IACF,qBAAqB,EAAE,+BAA+B,CAAC;IACvD,WAAW,EAAE,mBAAmB,CAAC;IACjC,QAAQ,EAAE;QACN,gBAAgB,EAAE,MAAM,CAAC;KAC5B,CAAC;IACF,IAAI,EAAE;QACF,aAAa,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,IAAI,EAAE;QACF,iBAAiB,EAAE,MAAM,CAAC;QAC1B,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,cAAc,CAAC;KAC1B,CAAC;CACL;AAED,MAAM,WAAW,+BAAgC,SAAQ,qBAAqB;IAC1E,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;CAC7B"}
|
package/favorites/types.js
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { defaultPath } from "../decorators.js";
|
|
3
|
-
import { _SPInstance, spInvokableFactory, _SPCollection, spPost } from "../spqueryable.js";
|
|
4
|
-
import { hOP } from "@pnp/core";
|
|
5
|
-
import { body } from "@pnp/queryable";
|
|
6
|
-
let _Favorites = class _Favorites extends _SPInstance {
|
|
7
|
-
get followedSites() {
|
|
8
|
-
return FollowedSites(this);
|
|
9
|
-
}
|
|
10
|
-
get followedListItems() {
|
|
11
|
-
return FollowedListItems(this);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
_Favorites = __decorate([
|
|
15
|
-
defaultPath("_api/v2.1/favorites")
|
|
16
|
-
], _Favorites);
|
|
17
|
-
export { _Favorites };
|
|
18
|
-
export const Favorites = (baseUrl) => new _Favorites(baseUrl);
|
|
19
|
-
let _FollowedSites = class _FollowedSites extends _SPCollection {
|
|
20
|
-
/**
|
|
21
|
-
* Adds a site to user's followed sites
|
|
22
|
-
*
|
|
23
|
-
* @param tenantUrl Name of a tenant (e.g. yourtenant.sharepoint.com).
|
|
24
|
-
* @param siteId Id of a site collection.
|
|
25
|
-
* @param webId Id of a site.
|
|
26
|
-
* @param webUrl Absolute URL of a site.
|
|
27
|
-
*/
|
|
28
|
-
async add(tenantUrl, siteId, webId, webUrl) {
|
|
29
|
-
const data = await spPost(FollowedListItems(this, "oneDrive.add"), body({
|
|
30
|
-
value: [
|
|
31
|
-
{
|
|
32
|
-
id: [tenantUrl, webId, siteId].join(","),
|
|
33
|
-
webUrl: webUrl,
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
}));
|
|
37
|
-
return hOP(data, "value") ? data.value : data;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Removes a site from user's followed sites
|
|
41
|
-
*
|
|
42
|
-
* @param tenantUrl Name of a tenant (e.g. yourtenant.sharepoint.com).
|
|
43
|
-
* @param siteId Id of a site collection.
|
|
44
|
-
* @param webId Id of a site.
|
|
45
|
-
* @param webUrl Absolute URL of a site.
|
|
46
|
-
*/
|
|
47
|
-
async remove(tenantUrl, siteId, webId, webUrl) {
|
|
48
|
-
await spPost(FollowedListItems(this, "oneDrive.remove"), body({
|
|
49
|
-
value: [
|
|
50
|
-
{
|
|
51
|
-
id: [tenantUrl, webId, siteId].join(","),
|
|
52
|
-
webUrl: webUrl,
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
}));
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
_FollowedSites = __decorate([
|
|
59
|
-
defaultPath("followedSites")
|
|
60
|
-
], _FollowedSites);
|
|
61
|
-
export { _FollowedSites };
|
|
62
|
-
export const FollowedSites = spInvokableFactory(_FollowedSites);
|
|
63
|
-
let _FollowedListItems = class _FollowedListItems extends _SPCollection {
|
|
64
|
-
/**
|
|
65
|
-
* Adds an item to user's _saved for later_ list
|
|
66
|
-
*
|
|
67
|
-
* @param siteId Id of a site collection of an item to add
|
|
68
|
-
* @param webId Id of a site of an item to add
|
|
69
|
-
* @param listId Id of a list of an item to add
|
|
70
|
-
* @param listItemUniqueId Unique id of an item to add
|
|
71
|
-
*/
|
|
72
|
-
async add(siteId, webId, listId, listItemUniqueId) {
|
|
73
|
-
const data = await spPost(FollowedListItems(this, "oneDrive.add"), body({
|
|
74
|
-
value: [
|
|
75
|
-
{
|
|
76
|
-
siteId: siteId,
|
|
77
|
-
webId: webId,
|
|
78
|
-
listId: listId,
|
|
79
|
-
listItemUniqueId: listItemUniqueId,
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
}));
|
|
83
|
-
return hOP(data, "value") ? data.value : data;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Removes an item from user's _saved for later_ list
|
|
87
|
-
*
|
|
88
|
-
* @param siteId Id of a site collection of an item to remove
|
|
89
|
-
* @param webId Id of a site of an item to remove
|
|
90
|
-
* @param listId Id of a list of an item to remove
|
|
91
|
-
* @param listItemUniqueId Unique id of an item to remove
|
|
92
|
-
*/
|
|
93
|
-
async remove(siteId, webId, listId, listItemUniqueId) {
|
|
94
|
-
await spPost(FollowedListItems(this, "oneDrive.remove"), body({
|
|
95
|
-
value: [
|
|
96
|
-
{
|
|
97
|
-
siteId: siteId,
|
|
98
|
-
webId: webId,
|
|
99
|
-
listId: listId,
|
|
100
|
-
listItemUniqueId: listItemUniqueId,
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
}));
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
_FollowedListItems = __decorate([
|
|
107
|
-
defaultPath("followedListItems")
|
|
108
|
-
], _FollowedListItems);
|
|
109
|
-
export { _FollowedListItems };
|
|
110
|
-
export const FollowedListItems = spInvokableFactory(_FollowedListItems);
|
|
111
|
-
//# sourceMappingURL=types.js.map
|
package/favorites/types.js.map
DELETED
|
@@ -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