@pnp/sp 3.13.0 → 3.14.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/appcatalog/index.d.ts +2 -0
- package/appcatalog/index.d.ts.map +1 -1
- package/appcatalog/index.js +8 -0
- package/appcatalog/index.js.map +1 -1
- package/appcatalog/types.d.ts +1 -1
- package/appcatalog/types.d.ts.map +1 -1
- package/appcatalog/types.js +14 -4
- package/appcatalog/types.js.map +1 -1
- package/appcatalog/web.js +1 -1
- package/appcatalog/web.js.map +1 -1
- package/behaviors/telemetry.js +1 -1
- package/groupsitemanager/index.d.ts +8 -0
- package/groupsitemanager/index.d.ts.map +1 -0
- package/groupsitemanager/index.js +11 -0
- package/groupsitemanager/index.js.map +1 -0
- package/groupsitemanager/types.d.ts +312 -0
- package/groupsitemanager/types.d.ts.map +1 -0
- package/groupsitemanager/types.js +321 -0
- package/groupsitemanager/types.js.map +1 -0
- package/package.json +3 -3
- package/readme.md +1 -2
- package/recycle-bin/types.js +1 -1
- package/recycle-bin/types.js.map +1 -1
- package/sites/index.d.ts +1 -1
- package/sites/index.d.ts.map +1 -1
- package/sites/index.js +1 -1
- package/sites/index.js.map +1 -1
- package/sites/types.d.ts +34 -0
- package/sites/types.d.ts.map +1 -1
- package/sites/types.js +37 -2
- package/sites/types.js.map +1 -1
package/appcatalog/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { IWeb } from "../webs/types.js";
|
|
2
|
+
import { IAppCatalog } from "./types.js";
|
|
2
3
|
import "./web.js";
|
|
3
4
|
export { IAppAddResult, IApp, IAppCatalog, App, AppCatalog, } from "./types.js";
|
|
4
5
|
declare module "../fi" {
|
|
5
6
|
interface SPFI {
|
|
7
|
+
tenantAppcatalog: IAppCatalog;
|
|
6
8
|
getTenantAppCatalogWeb(): Promise<IWeb>;
|
|
7
9
|
}
|
|
8
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/sp/appcatalog/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAO,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/sp/appcatalog/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAO,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAc,WAAW,EAAE,MAAM,YAAY,CAAC;AAErD,OAAO,UAAU,CAAC;AAElB,OAAO,EACH,aAAa,EACb,IAAI,EACJ,WAAW,EACX,GAAG,EACH,UAAU,GACb,MAAM,YAAY,CAAC;AAEpB,OAAO,QAAQ,OAAO,CAAC;IACnB,UAAU,IAAI;QACV,gBAAgB,EAAE,WAAW,CAAC;QAC9B,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;KAC3C;CACJ"}
|
package/appcatalog/index.js
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { SPFI } from "../fi.js";
|
|
2
2
|
import { Web } from "../webs/types.js";
|
|
3
|
+
import { AppCatalog } from "./types.js";
|
|
3
4
|
import "./web.js";
|
|
4
5
|
export { App, AppCatalog, } from "./types.js";
|
|
6
|
+
Reflect.defineProperty(SPFI.prototype, "tenantAppcatalog", {
|
|
7
|
+
configurable: true,
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return this.create(AppCatalog, "_api/web/tenantappcatalog/AvailableApps");
|
|
11
|
+
},
|
|
12
|
+
});
|
|
5
13
|
SPFI.prototype.getTenantAppCatalogWeb = async function () {
|
|
6
14
|
const data = await Web(this._root, "_api/SP_TenantSettings_Current")();
|
|
7
15
|
return Web([this._root, data.CorporateCatalogUrl]);
|
package/appcatalog/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/sp/appcatalog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAQ,GAAG,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/sp/appcatalog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAQ,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAe,MAAM,YAAY,CAAC;AAErD,OAAO,UAAU,CAAC;AAElB,OAAO,EAIH,GAAG,EACH,UAAU,GACb,MAAM,YAAY,CAAC;AASpB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,kBAAkB,EAAE;IACvD,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,GAAG,EAAE;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,yCAAyC,CAAC,CAAC;IAC9E,CAAC;CACJ,CAAC,CAAC;AAEH,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,KAAK;IAEzC,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,gCAAgC,CAAC,EAAmC,CAAC;IAExG,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC;AACvD,CAAC,CAAC"}
|
package/appcatalog/types.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare class _AppCatalog extends _SPCollection {
|
|
|
11
11
|
* Synchronize a solution to the Microsoft Teams App Catalog
|
|
12
12
|
* @param id - Specify the guid of the app
|
|
13
13
|
* @param useSharePointItemId (optional) - By default this REST call requires the SP Item id of the app, not the app id.
|
|
14
|
-
* PnPjs will try to fetch the item id
|
|
14
|
+
* PnPjs will try to fetch the item id, you can still use this parameter to pass your own item id in the first parameter
|
|
15
15
|
*/
|
|
16
16
|
syncSolutionToTeams(id: string | number, useSharePointItemId?: boolean): Promise<void>;
|
|
17
17
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/sp/appcatalog/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EAEb,WAAW,EACX,YAAY,EAEf,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAQ,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/sp/appcatalog/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EAEb,WAAW,EACX,YAAY,EAEf,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAQ,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAkBhD,qBACa,WAAY,SAAQ,aAAa;gBAE9B,IAAI,EAAE,MAAM,GAAG,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM;IAKtD;;;OAGG;IACI,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAInC;;;;;OAKG;IACU,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,mBAAmB,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IA4BjG;;;;;;;OAOG;IACU,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,EAAE,eAAe,UAAO,GAAG,OAAO,CAAC,aAAa,CAAC;CAgB3H;AACD,MAAM,WAAW,WAAY,SAAQ,WAAW;CAAI;AACpD,eAAO,MAAM,UAAU,8DAA+C,CAAC;AAEvE,qBAAa,IAAK,SAAQ,WAAW;IAEjC;;;;;OAKG;IACI,MAAM,CAAC,qBAAqB,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3D;;;OAGG;IACI,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B;;OAEG;IACI,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B;;;OAGG;IACI,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAIjC;;OAEG;IACI,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B;;;OAGG;IACI,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B,OAAO,CAAC,EAAE;CAGb;AACD,MAAM,WAAW,IAAK,SAAQ,IAAI;CAAI;AACtC,eAAO,MAAM,GAAG,uDAAiC,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;CACf"}
|
package/appcatalog/types.js
CHANGED
|
@@ -6,6 +6,16 @@ import { extractWebUrl } from "../utils/extract-web-url.js";
|
|
|
6
6
|
import { File } from "../files/types.js";
|
|
7
7
|
import { combine } from "@pnp/core";
|
|
8
8
|
import { defaultPath } from "../decorators.js";
|
|
9
|
+
function getAppCatalogPath(base, path) {
|
|
10
|
+
const paths = ["_api/web/tenantappcatalog/", "_api/web/sitecollectionappcatalog/"];
|
|
11
|
+
for (let i = 0; i < paths.length; i++) {
|
|
12
|
+
const index = base.indexOf(paths[i]);
|
|
13
|
+
if (index > -1) {
|
|
14
|
+
return combine(base.substring(index, index + paths[i].length), path);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return combine(base, path);
|
|
18
|
+
}
|
|
9
19
|
let _AppCatalog = class _AppCatalog extends _SPCollection {
|
|
10
20
|
constructor(base, path) {
|
|
11
21
|
super(base, null);
|
|
@@ -22,12 +32,12 @@ let _AppCatalog = class _AppCatalog extends _SPCollection {
|
|
|
22
32
|
* Synchronize a solution to the Microsoft Teams App Catalog
|
|
23
33
|
* @param id - Specify the guid of the app
|
|
24
34
|
* @param useSharePointItemId (optional) - By default this REST call requires the SP Item id of the app, not the app id.
|
|
25
|
-
* PnPjs will try to fetch the item id
|
|
35
|
+
* PnPjs will try to fetch the item id, you can still use this parameter to pass your own item id in the first parameter
|
|
26
36
|
*/
|
|
27
37
|
async syncSolutionToTeams(id, useSharePointItemId = false) {
|
|
28
38
|
// This REST call requires that you refer the list item id of the solution in the app catalog site.
|
|
29
39
|
let appId = null;
|
|
30
|
-
const webUrl = extractWebUrl(this.toUrl())
|
|
40
|
+
const webUrl = combine(extractWebUrl(this.toUrl()), "_api/web");
|
|
31
41
|
if (useSharePointItemId) {
|
|
32
42
|
appId = id;
|
|
33
43
|
}
|
|
@@ -41,7 +51,7 @@ let _AppCatalog = class _AppCatalog extends _SPCollection {
|
|
|
41
51
|
throw Error(`Did not find the app with id ${id} in the appcatalog.`);
|
|
42
52
|
}
|
|
43
53
|
}
|
|
44
|
-
return spPost(AppCatalog(
|
|
54
|
+
return spPost(AppCatalog(this, getAppCatalogPath(this.toUrl(), `SyncSolutionToTeams(id=${appId})`)));
|
|
45
55
|
}
|
|
46
56
|
/**
|
|
47
57
|
* Uploads an app package. Not supported for batching
|
|
@@ -53,7 +63,7 @@ let _AppCatalog = class _AppCatalog extends _SPCollection {
|
|
|
53
63
|
*/
|
|
54
64
|
async add(filename, content, shouldOverWrite = true) {
|
|
55
65
|
// you don't add to the availableapps collection
|
|
56
|
-
const adder = AppCatalog(
|
|
66
|
+
const adder = AppCatalog(this, getAppCatalogPath(this.toUrl(), `add(overwrite=${shouldOverWrite},url='${filename}')`));
|
|
57
67
|
const r = await spPost(adder, {
|
|
58
68
|
body: content, headers: {
|
|
59
69
|
"binaryStringRequestBody": "true",
|
package/appcatalog/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/sp/appcatalog/types.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,aAAa,EACb,kBAAkB,EAClB,WAAW,EAEX,YAAY,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAA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;IAED;;OAEG;IACI,OAAO;QACV,OAAO,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACI,SAAS;QACZ,OAAO,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,OAAO;QACV,OAAO,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACI,MAAM;QACT,OAAO,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC7B,CAAC;IAEO,EAAE,CAAC,IAAY;QACnB,OAAO,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IACnC,CAAC;CACJ;AAED,MAAM,CAAC,MAAM,GAAG,GAAG,kBAAkB,CAAO,IAAI,CAAC,CAAC"}
|
package/appcatalog/web.js
CHANGED
|
@@ -3,5 +3,5 @@ import { _Web } from "../webs/types.js";
|
|
|
3
3
|
import { AppCatalog } from "./types.js";
|
|
4
4
|
// we use this function to wrap the AppCatalog as we want to ignore any path values addProp
|
|
5
5
|
// will pass and use the defaultPath defined for AppCatalog
|
|
6
|
-
addProp(_Web, "appcatalog", (s) => AppCatalog(s));
|
|
6
|
+
addProp(_Web, "appcatalog", (s) => AppCatalog(s, "_api/web/sitecollectionappcatalog/AvailableApps"));
|
|
7
7
|
//# sourceMappingURL=web.js.map
|
package/appcatalog/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../../packages/sp/appcatalog/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAe,MAAM,YAAY,CAAC;AAcrD,2FAA2F;AAC3F,2DAA2D;AAC3D,OAAO,CAAC,IAAI,EAAE,YAAY,EAAE,CAAC,CAAO,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../../packages/sp/appcatalog/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAe,MAAM,YAAY,CAAC;AAcrD,2FAA2F;AAC3F,2DAA2D;AAC3D,OAAO,CAAC,IAAI,EAAE,YAAY,EAAE,CAAC,CAAO,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,iDAAiD,CAAC,CAAC,CAAC"}
|
package/behaviors/telemetry.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function Telemetry() {
|
|
2
2
|
return (instance) => {
|
|
3
3
|
instance.on.pre(async function (url, init, result) {
|
|
4
|
-
let clientTag = "PnPCoreJS:3.
|
|
4
|
+
let clientTag = "PnPCoreJS:3.14.0:";
|
|
5
5
|
// make our best guess based on url to the method called
|
|
6
6
|
const { pathname } = new URL(url);
|
|
7
7
|
// remove anything before the _api as that is potentially PII and we don't care, just want to get the called path to the REST API
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/sp/groupsitemanager/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEjE,cAAc,YAAY,CAAC;AAE3B,OAAO,QAAQ,OAAO,CAAC;IACnB,UAAU,IAAI;QACV,QAAQ,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;KAChD;CACJ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SPFI } from "../fi.js";
|
|
2
|
+
import { GroupSiteManager } from "./types.js";
|
|
3
|
+
export * from "./types.js";
|
|
4
|
+
Reflect.defineProperty(SPFI.prototype, "groupSiteManager", {
|
|
5
|
+
configurable: true,
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () {
|
|
8
|
+
return this.create(GroupSiteManager);
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/sp/groupsitemanager/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAqB,MAAM,YAAY,CAAC;AAEjE,cAAc,YAAY,CAAC;AAQ3B,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,kBAAkB,EAAE;IACvD,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,GAAG,EAAE;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACzC,CAAC;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { _SPInstance, ISPQueryable } from "@pnp/sp";
|
|
2
|
+
declare class _GroupSiteManager extends _SPInstance<Record<string, never>> {
|
|
3
|
+
/**
|
|
4
|
+
* Indicates if the current user / application can create Microsoft 365 groups
|
|
5
|
+
*
|
|
6
|
+
*@returns True if possible, otherwise false
|
|
7
|
+
*/
|
|
8
|
+
canUserCreateGroup(): Promise<boolean>;
|
|
9
|
+
/**
|
|
10
|
+
* Clears Teams cache for current user / application
|
|
11
|
+
*/
|
|
12
|
+
clearCurrentUserTeamsCache(): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a SharePoint team site for the submitted Microsoft 365 group.
|
|
15
|
+
* More information regarding site creation status here: https://learn.microsoft.com/sharepoint/dev/apis/site-creation-rest#response-2
|
|
16
|
+
*
|
|
17
|
+
*@param groupId Id of the Microsoft 365 group
|
|
18
|
+
*@returns Created SharePoint site information (or current creation status)
|
|
19
|
+
*/
|
|
20
|
+
create(groupId: string): Promise<IGroupSiteInfo>;
|
|
21
|
+
/**
|
|
22
|
+
* Creates a Microsoft 365 group with a connected site.
|
|
23
|
+
* This method doesn't work in Azure AD Application context
|
|
24
|
+
*
|
|
25
|
+
*@param displayName The name of the group
|
|
26
|
+
*@param isPublic Whether the new group should be public or private
|
|
27
|
+
*@param ownerPrincipalNames The group owners principal names
|
|
28
|
+
*@param description Detailed information about the group
|
|
29
|
+
*@param creationOptions Additional options ("SPSiteLanguage", "SensitivityLabel", "HubSiteId",...)
|
|
30
|
+
*@returns Created SharePoint site information and group Id (or current creation status)
|
|
31
|
+
*/
|
|
32
|
+
createGroup(displayName: string, alias: string, isPublic: boolean, ownerPrincipalNames: string[], description: string, creationOptions: string[]): Promise<IGroupSiteInfo>;
|
|
33
|
+
/**
|
|
34
|
+
* Deletes a group-connected site.
|
|
35
|
+
* This method doesn't work in Azure AD Application context
|
|
36
|
+
*
|
|
37
|
+
*@param siteUrl URL of the group-connected site to delete
|
|
38
|
+
*/
|
|
39
|
+
delete(siteUrl: string): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a team for the current site (group-connected only).
|
|
42
|
+
* This method doesn't work in Azure AD Application context
|
|
43
|
+
*
|
|
44
|
+
*@returns The group-connected site team URL
|
|
45
|
+
*/
|
|
46
|
+
ensureTeamForGroup(): Promise<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates a team for the current site (group-connected only).
|
|
49
|
+
* This method only works with @pnp/sp behaviors.
|
|
50
|
+
* This method doesn't work in Azure AD Application context
|
|
51
|
+
*
|
|
52
|
+
*@returns The group-connected site team ID and URL
|
|
53
|
+
*/
|
|
54
|
+
ensureTeamForGroupEx(): Promise<IEnsureTeamForGroupExResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Gets labels configured for the tenant
|
|
57
|
+
*
|
|
58
|
+
*@param pageNumber Page results number to display
|
|
59
|
+
*@returns A list of labels
|
|
60
|
+
*/
|
|
61
|
+
getAllOrgLabels(pageNumber: number): Promise<IOrgLabelsContextList>;
|
|
62
|
+
/**
|
|
63
|
+
* Gets the joined teams for the current user.
|
|
64
|
+
* This method only works with @pnp/sp behaviors.
|
|
65
|
+
* This method doesn't work in Azure AD Application context
|
|
66
|
+
*
|
|
67
|
+
*@param getLogoData True to return logo data, otherwise false
|
|
68
|
+
*@param forceCacheUpdate True to force cache update, otherwise false
|
|
69
|
+
*@returns A list of teams with detailed information. The returned value is a JSON object which can be parsed
|
|
70
|
+
*/
|
|
71
|
+
getCurrentUserJoinedTeams(getLogoData: boolean, forceCacheUpdate: boolean): Promise<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Gets the teams shared channels which current user is member of.
|
|
74
|
+
* This method doesn't work in Azure AD application context
|
|
75
|
+
*
|
|
76
|
+
*@returns A list of teams shared channels with summary information (object id, acronym, banner color, ...).
|
|
77
|
+
The returned value is a JSON object which can be parsed
|
|
78
|
+
*/
|
|
79
|
+
getCurrentUserSharedChannelMemberGroups(): Promise<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Gets the teams which current user is member of.
|
|
82
|
+
* This method doesn't work in Azure AD Application context
|
|
83
|
+
*
|
|
84
|
+
*@returns A list of teams with summary information (object id, acronym, banner color,...).
|
|
85
|
+
The returned value is a JSON object which can be parsed
|
|
86
|
+
*/
|
|
87
|
+
getCurrentUserTeamConnectedMemberGroups(): Promise<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Gets information regarding Microsoft 365 group creation configuration
|
|
90
|
+
*
|
|
91
|
+
*@returns Information about current configuration
|
|
92
|
+
*/
|
|
93
|
+
getGroupCreationContext(): Promise<IGroupCreationContext>;
|
|
94
|
+
/**
|
|
95
|
+
* Gets information regarding site groupification configuration for the current site
|
|
96
|
+
*
|
|
97
|
+
*@returns Information about current configuration
|
|
98
|
+
*/
|
|
99
|
+
getGroupSiteConversionData(): Promise<IGroupSiteConversionInfo>;
|
|
100
|
+
/**
|
|
101
|
+
* Gets group-connected site creation status
|
|
102
|
+
*
|
|
103
|
+
*@param groupId Microsoft 365 group Id
|
|
104
|
+
*@returns SharePoint site information and group Id (or current creation status)
|
|
105
|
+
*/
|
|
106
|
+
getSiteStatus(groupId: string): Promise<IGroupSiteInfo>;
|
|
107
|
+
/**
|
|
108
|
+
* Gets detailed information related to a team channel files URL.
|
|
109
|
+
* This method only works with @pnp/sp behaviors.
|
|
110
|
+
* This method doesn't work in Azure AD Application context
|
|
111
|
+
*
|
|
112
|
+
*@param teamId Team's group Id
|
|
113
|
+
*@param channelId Teams's channel Id
|
|
114
|
+
*@returns Stream information about team channel files URL. The returned value is a JSON object which can be parsed
|
|
115
|
+
*/
|
|
116
|
+
getTeamChannelFilesUrl(teamId: string, channelId: string): Promise<ArrayBuffer>;
|
|
117
|
+
/**
|
|
118
|
+
* Gets channels for a team.
|
|
119
|
+
* This method only works with @pnp/sp behaviors.
|
|
120
|
+
* This method doesn't work in Azure AD Application context
|
|
121
|
+
*
|
|
122
|
+
*@param teamId Team's group Id
|
|
123
|
+
*@param useStagingEndpoint Use staging endpoint or not
|
|
124
|
+
*@returns Stream information about team's channels. The returned value is a JSON object which can be parsed
|
|
125
|
+
*/
|
|
126
|
+
getTeamChannels(teamId: string, useStagingEndpoint: boolean): Promise<ArrayBuffer>;
|
|
127
|
+
/**
|
|
128
|
+
* Gets channels for a team.
|
|
129
|
+
* This method only works with @pnp/sp behaviors.
|
|
130
|
+
* This method doesn't work in Azure AD Application context
|
|
131
|
+
*
|
|
132
|
+
*@param teamId Team's group Id
|
|
133
|
+
*@returns Detailed information about team's channels. The returned value is a JSON object which can be parsed
|
|
134
|
+
*/
|
|
135
|
+
getTeamChannelsDirect(teamId: string): Promise<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Gets channels for a team.
|
|
138
|
+
* This method only works with @pnp/sp behaviors.
|
|
139
|
+
* This method doesn't work in Azure AD Application context
|
|
140
|
+
*
|
|
141
|
+
*@param teamId Team's group Id
|
|
142
|
+
*@returns Detailed information about team's channels
|
|
143
|
+
*/
|
|
144
|
+
getTeamChannelsEx(teamId: string): Promise<IChannelInfoCollection>;
|
|
145
|
+
/**
|
|
146
|
+
* Gets channels for a team based on site URL.
|
|
147
|
+
* Works only with root site (neither private or shared channel sites).
|
|
148
|
+
* This method only works with @pnp/sp behaviors.
|
|
149
|
+
* This method doesn't work in Azure AD Application context
|
|
150
|
+
*
|
|
151
|
+
*@param siteUrl group-connected site URL
|
|
152
|
+
*@returns Detailed information about team's channels
|
|
153
|
+
*/
|
|
154
|
+
getTeamChannelsWithSiteUrl(siteUrl: string): Promise<IChannelInfoCollection>;
|
|
155
|
+
/**
|
|
156
|
+
* Gets shared channels membership for a user
|
|
157
|
+
*
|
|
158
|
+
*@param userName User principal name to get shared channels membership
|
|
159
|
+
*@returns Information about user's shared channels. The returned value is a JSON object which can be parsed
|
|
160
|
+
*/
|
|
161
|
+
getUserSharedChannelMemberGroups(userName: string): Promise<string>;
|
|
162
|
+
/**
|
|
163
|
+
* Gets teams membership for a user
|
|
164
|
+
*
|
|
165
|
+
*@param userName User principal name to get teams membership
|
|
166
|
+
*@returns Information about requested user's teams. The returned value is a JSON object which can be parsed
|
|
167
|
+
*/
|
|
168
|
+
getUserTeamConnectedMemberGroups(userName: string): Promise<string>;
|
|
169
|
+
/**
|
|
170
|
+
* Gets a valid SharePoint site URL from an alias
|
|
171
|
+
*
|
|
172
|
+
*@param alias Alias for SharePoint site URL (also used when creating a Microsoft 365 group)
|
|
173
|
+
*@param managedPath SharePoint managed path ("/sites" or "/teams", optional)
|
|
174
|
+
*@param isTeamSite True if target is a group-connected site, otherwise false (optional)
|
|
175
|
+
*@returns A valid SharePoint site URL
|
|
176
|
+
*/
|
|
177
|
+
getValidSiteUrlFromAlias(alias: string, managedPath?: string, isTeamSite?: boolean): Promise<string>;
|
|
178
|
+
/**
|
|
179
|
+
* Indicates if the "Teamify" prompt is displayed or not on a group-connected site.
|
|
180
|
+
* If no parameter is specified, the command will run in the current site context
|
|
181
|
+
*
|
|
182
|
+
*@param siteUrl Group-Connected site
|
|
183
|
+
*@returns true if "Teamify" prompt is hidden, otherwise false
|
|
184
|
+
*/
|
|
185
|
+
isTeamifyPromptHidden(siteUrl?: string): Promise<boolean>;
|
|
186
|
+
/**
|
|
187
|
+
* Gets the group-connected site default OneNote Notebook location
|
|
188
|
+
*
|
|
189
|
+
*@param groupId Id of the Microsoft 365 group
|
|
190
|
+
*@returns URL of the group's default OneNote Notebook
|
|
191
|
+
*/
|
|
192
|
+
notebook(groupId: string): Promise<string>;
|
|
193
|
+
/**
|
|
194
|
+
* Pins one or more new SharePoint tabs to a team's default channel.
|
|
195
|
+
* This method only works with @pnp/sp behaviors.
|
|
196
|
+
* This method doesn't work in Azure AD Application context
|
|
197
|
+
*
|
|
198
|
+
*@param requestParams Parameters including the tabs data and the team's group Id
|
|
199
|
+
*@returns Successful and failed results for the submitted tabs to add
|
|
200
|
+
*/
|
|
201
|
+
pinToTeam(requestParams: IPinToTeamParams): Promise<IPinToTeamResponse>;
|
|
202
|
+
/**
|
|
203
|
+
* Supports calling POST methods not added explicitly to this class
|
|
204
|
+
*
|
|
205
|
+
* @param method method name, used in url path (ex: "CreateGroup")
|
|
206
|
+
* @param args optional, any arguments to include in the body
|
|
207
|
+
* @returns The result of the method invocation T
|
|
208
|
+
*/
|
|
209
|
+
call<T = any>(method: string, args?: any): Promise<T>;
|
|
210
|
+
}
|
|
211
|
+
export interface IGroupSiteManager extends _GroupSiteManager {
|
|
212
|
+
}
|
|
213
|
+
export declare const GroupSiteManager: import("@pnp/sp").ISPInvokableFactory<ISPQueryable<IGroupSiteManager>>;
|
|
214
|
+
export interface IEnsureTeamForGroupExResponse {
|
|
215
|
+
teamsId: string;
|
|
216
|
+
teamsUrl: string;
|
|
217
|
+
}
|
|
218
|
+
export interface IOrgLabelsContext {
|
|
219
|
+
DisplayName: string;
|
|
220
|
+
LabelApplicableTo: string;
|
|
221
|
+
ObjectId: string;
|
|
222
|
+
}
|
|
223
|
+
export interface IOrgLabelsContextList {
|
|
224
|
+
IsLastPage: boolean;
|
|
225
|
+
Labels: IOrgLabelsContext[];
|
|
226
|
+
}
|
|
227
|
+
export interface IGroupCreationContext {
|
|
228
|
+
ClassificationDescriptions: {
|
|
229
|
+
Key: string;
|
|
230
|
+
Value: any;
|
|
231
|
+
ValueType: string;
|
|
232
|
+
}[];
|
|
233
|
+
ClassificationDescriptionsNew: {
|
|
234
|
+
Key: string;
|
|
235
|
+
Value: any;
|
|
236
|
+
ValueType: string;
|
|
237
|
+
}[];
|
|
238
|
+
ClassificationExtSharingValue: {
|
|
239
|
+
Key: string;
|
|
240
|
+
Value: any;
|
|
241
|
+
ValueType: string;
|
|
242
|
+
}[];
|
|
243
|
+
ClassificationPrivacyValue: {
|
|
244
|
+
Key: string;
|
|
245
|
+
Value: any;
|
|
246
|
+
ValueType: string;
|
|
247
|
+
}[];
|
|
248
|
+
CustomFormUrl: string;
|
|
249
|
+
DataClassificationOptions: string[];
|
|
250
|
+
DataClassificationOptionsNew: {
|
|
251
|
+
Key: string;
|
|
252
|
+
Value: any;
|
|
253
|
+
ValueType: string;
|
|
254
|
+
}[];
|
|
255
|
+
DefaultClassification: string;
|
|
256
|
+
ExternalInvitationEnabled: boolean;
|
|
257
|
+
MachineLearningCaptureEnabled: boolean;
|
|
258
|
+
MachineLearningExperienceEnabled: boolean;
|
|
259
|
+
PreferredLanguage: number;
|
|
260
|
+
RequireSecondaryContact: boolean;
|
|
261
|
+
SensitivityLabelPolicyMandatory: boolean;
|
|
262
|
+
ShowSelfServiceSiteCreation: boolean;
|
|
263
|
+
SiteCreationNewUX: boolean;
|
|
264
|
+
SitePath: string;
|
|
265
|
+
SiteSensitivityLabelId: string;
|
|
266
|
+
URLForCustomHelpPageSensitivityLabel: string;
|
|
267
|
+
UsageGuidelineUrl: string;
|
|
268
|
+
}
|
|
269
|
+
export interface IGroupSiteConversionInfo {
|
|
270
|
+
GroupType: number;
|
|
271
|
+
IsGroupifyDisabled: boolean;
|
|
272
|
+
IsRegionRestricted: boolean;
|
|
273
|
+
IsWrongPdl: boolean;
|
|
274
|
+
SuggestedMembers: string[];
|
|
275
|
+
SuggestedOwners: string[];
|
|
276
|
+
UnsuggestablePrincipals: string[];
|
|
277
|
+
}
|
|
278
|
+
export interface IGroupSiteInfo {
|
|
279
|
+
DocumentsUrl: string;
|
|
280
|
+
ErrorMessage: string;
|
|
281
|
+
GroupId: string;
|
|
282
|
+
SiteStatus: number;
|
|
283
|
+
SiteUrl: string;
|
|
284
|
+
}
|
|
285
|
+
export interface IChannelInfo {
|
|
286
|
+
description: string;
|
|
287
|
+
displayName: string;
|
|
288
|
+
filesFolderWebUrl: string;
|
|
289
|
+
id: string;
|
|
290
|
+
memberShipType: number;
|
|
291
|
+
webUrl: string;
|
|
292
|
+
}
|
|
293
|
+
export interface IChannelInfoCollection {
|
|
294
|
+
CacheUpdatedTime: Date;
|
|
295
|
+
value: IChannelInfo[];
|
|
296
|
+
}
|
|
297
|
+
export interface IM365TabItem {
|
|
298
|
+
displayName: string;
|
|
299
|
+
isDefault: boolean;
|
|
300
|
+
itemType: number;
|
|
301
|
+
url: string;
|
|
302
|
+
}
|
|
303
|
+
export interface IPinToTeamParams {
|
|
304
|
+
tabs: IM365TabItem[];
|
|
305
|
+
teamsId: string;
|
|
306
|
+
}
|
|
307
|
+
export interface IPinToTeamResponse {
|
|
308
|
+
FailedPinning: IM365TabItem[];
|
|
309
|
+
SuccessfulPinning: IM365TabItem[];
|
|
310
|
+
}
|
|
311
|
+
export {};
|
|
312
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/sp/groupsitemanager/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAA2C,YAAY,EAAS,MAAM,SAAS,CAAC;AAEpG,cACM,iBAAkB,SAAQ,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,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,WAAW,gBAAgB;IAC7B,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IAC/B,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,iBAAiB,EAAE,YAAY,EAAE,CAAC;CACrC"}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { body, BufferParse } from "@pnp/queryable";
|
|
3
|
+
import { _SPInstance, defaultPath, spPost, spInvokableFactory, spGet } from "@pnp/sp";
|
|
4
|
+
let _GroupSiteManager = class _GroupSiteManager extends _SPInstance {
|
|
5
|
+
/**
|
|
6
|
+
* Indicates if the current user / application can create Microsoft 365 groups
|
|
7
|
+
*
|
|
8
|
+
*@returns True if possible, otherwise false
|
|
9
|
+
*/
|
|
10
|
+
canUserCreateGroup() {
|
|
11
|
+
return spGet(GroupSiteManager(this, "CanUserCreateGroup"));
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Clears Teams cache for current user / application
|
|
15
|
+
*/
|
|
16
|
+
clearCurrentUserTeamsCache() {
|
|
17
|
+
return spPost(GroupSiteManager(this, "ClearCurrentUserTeamsCache"));
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Creates a SharePoint team site for the submitted Microsoft 365 group.
|
|
21
|
+
* More information regarding site creation status here: https://learn.microsoft.com/sharepoint/dev/apis/site-creation-rest#response-2
|
|
22
|
+
*
|
|
23
|
+
*@param groupId Id of the Microsoft 365 group
|
|
24
|
+
*@returns Created SharePoint site information (or current creation status)
|
|
25
|
+
*/
|
|
26
|
+
create(groupId) {
|
|
27
|
+
return spPost(GroupSiteManager(this, "Create"), body({
|
|
28
|
+
groupId,
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Creates a Microsoft 365 group with a connected site.
|
|
33
|
+
* This method doesn't work in Azure AD Application context
|
|
34
|
+
*
|
|
35
|
+
*@param displayName The name of the group
|
|
36
|
+
*@param isPublic Whether the new group should be public or private
|
|
37
|
+
*@param ownerPrincipalNames The group owners principal names
|
|
38
|
+
*@param description Detailed information about the group
|
|
39
|
+
*@param creationOptions Additional options ("SPSiteLanguage", "SensitivityLabel", "HubSiteId",...)
|
|
40
|
+
*@returns Created SharePoint site information and group Id (or current creation status)
|
|
41
|
+
*/
|
|
42
|
+
// eslint-disable-next-line max-len
|
|
43
|
+
createGroup(displayName, alias, isPublic, ownerPrincipalNames, description, creationOptions) {
|
|
44
|
+
return spPost(GroupSiteManager(this, "CreateGroup"), body({
|
|
45
|
+
displayName,
|
|
46
|
+
alias,
|
|
47
|
+
isPublic,
|
|
48
|
+
ownerPrincipalNames,
|
|
49
|
+
description,
|
|
50
|
+
creationOptions,
|
|
51
|
+
}));
|
|
52
|
+
}
|
|
53
|
+
// CreateGroupEx: created in sp/sites node through PR #2520
|
|
54
|
+
/**
|
|
55
|
+
* Deletes a group-connected site.
|
|
56
|
+
* This method doesn't work in Azure AD Application context
|
|
57
|
+
*
|
|
58
|
+
*@param siteUrl URL of the group-connected site to delete
|
|
59
|
+
*/
|
|
60
|
+
delete(siteUrl) {
|
|
61
|
+
return spPost(GroupSiteManager(this, "Delete"), body({
|
|
62
|
+
siteUrl,
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Creates a team for the current site (group-connected only).
|
|
67
|
+
* This method doesn't work in Azure AD Application context
|
|
68
|
+
*
|
|
69
|
+
*@returns The group-connected site team URL
|
|
70
|
+
*/
|
|
71
|
+
ensureTeamForGroup() {
|
|
72
|
+
return spPost(GroupSiteManager(this, "EnsureTeamForGroup"));
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Creates a team for the current site (group-connected only).
|
|
76
|
+
* This method only works with @pnp/sp behaviors.
|
|
77
|
+
* This method doesn't work in Azure AD Application context
|
|
78
|
+
*
|
|
79
|
+
*@returns The group-connected site team ID and URL
|
|
80
|
+
*/
|
|
81
|
+
ensureTeamForGroupEx() {
|
|
82
|
+
return spPost(GroupSiteManager(this, "EnsureTeamForGroupEx"));
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Gets labels configured for the tenant
|
|
86
|
+
*
|
|
87
|
+
*@param pageNumber Page results number to display
|
|
88
|
+
*@returns A list of labels
|
|
89
|
+
*/
|
|
90
|
+
getAllOrgLabels(pageNumber) {
|
|
91
|
+
return spPost(GroupSiteManager(this, "GetAllOrgLabels"), body({
|
|
92
|
+
pageNumber,
|
|
93
|
+
}));
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Gets the joined teams for the current user.
|
|
97
|
+
* This method only works with @pnp/sp behaviors.
|
|
98
|
+
* This method doesn't work in Azure AD Application context
|
|
99
|
+
*
|
|
100
|
+
*@param getLogoData True to return logo data, otherwise false
|
|
101
|
+
*@param forceCacheUpdate True to force cache update, otherwise false
|
|
102
|
+
*@returns A list of teams with detailed information. The returned value is a JSON object which can be parsed
|
|
103
|
+
*/
|
|
104
|
+
getCurrentUserJoinedTeams(getLogoData, forceCacheUpdate) {
|
|
105
|
+
return spPost(GroupSiteManager(this, "GetCurrentUserJoinedTeams"), body({
|
|
106
|
+
getLogoData,
|
|
107
|
+
forceCacheUpdate,
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Gets the teams shared channels which current user is member of.
|
|
112
|
+
* This method doesn't work in Azure AD application context
|
|
113
|
+
*
|
|
114
|
+
*@returns A list of teams shared channels with summary information (object id, acronym, banner color, ...).
|
|
115
|
+
The returned value is a JSON object which can be parsed
|
|
116
|
+
*/
|
|
117
|
+
getCurrentUserSharedChannelMemberGroups() {
|
|
118
|
+
return spPost(GroupSiteManager(this, "GetCurrentUserSharedChannelMemberGroups"));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Gets the teams which current user is member of.
|
|
122
|
+
* This method doesn't work in Azure AD Application context
|
|
123
|
+
*
|
|
124
|
+
*@returns A list of teams with summary information (object id, acronym, banner color,...).
|
|
125
|
+
The returned value is a JSON object which can be parsed
|
|
126
|
+
*/
|
|
127
|
+
getCurrentUserTeamConnectedMemberGroups() {
|
|
128
|
+
return spPost(GroupSiteManager(this, "GetCurrentUserTeamConnectedMemberGroups"));
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Gets information regarding Microsoft 365 group creation configuration
|
|
132
|
+
*
|
|
133
|
+
*@returns Information about current configuration
|
|
134
|
+
*/
|
|
135
|
+
getGroupCreationContext() {
|
|
136
|
+
return spGet(GroupSiteManager(this, "GetGroupCreationContext"));
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Gets information regarding site groupification configuration for the current site
|
|
140
|
+
*
|
|
141
|
+
*@returns Information about current configuration
|
|
142
|
+
*/
|
|
143
|
+
getGroupSiteConversionData() {
|
|
144
|
+
return spGet(GroupSiteManager(this, "GetGroupSiteConversionData"));
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Gets group-connected site creation status
|
|
148
|
+
*
|
|
149
|
+
*@param groupId Microsoft 365 group Id
|
|
150
|
+
*@returns SharePoint site information and group Id (or current creation status)
|
|
151
|
+
*/
|
|
152
|
+
getSiteStatus(groupId) {
|
|
153
|
+
return spPost(GroupSiteManager(this, "GetSiteStatus"), body({
|
|
154
|
+
groupId,
|
|
155
|
+
}));
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Gets detailed information related to a team channel files URL.
|
|
159
|
+
* This method only works with @pnp/sp behaviors.
|
|
160
|
+
* This method doesn't work in Azure AD Application context
|
|
161
|
+
*
|
|
162
|
+
*@param teamId Team's group Id
|
|
163
|
+
*@param channelId Teams's channel Id
|
|
164
|
+
*@returns Stream information about team channel files URL. The returned value is a JSON object which can be parsed
|
|
165
|
+
*/
|
|
166
|
+
getTeamChannelFilesUrl(teamId, channelId) {
|
|
167
|
+
return spPost(GroupSiteManager(this, "GetTeamChannelFilesUrl").using(BufferParse()), body({
|
|
168
|
+
teamId,
|
|
169
|
+
channelId,
|
|
170
|
+
}));
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Gets channels for a team.
|
|
174
|
+
* This method only works with @pnp/sp behaviors.
|
|
175
|
+
* This method doesn't work in Azure AD Application context
|
|
176
|
+
*
|
|
177
|
+
*@param teamId Team's group Id
|
|
178
|
+
*@param useStagingEndpoint Use staging endpoint or not
|
|
179
|
+
*@returns Stream information about team's channels. The returned value is a JSON object which can be parsed
|
|
180
|
+
*/
|
|
181
|
+
getTeamChannels(teamId, useStagingEndpoint) {
|
|
182
|
+
return spPost(GroupSiteManager(this, "GetTeamChannels").using(BufferParse()), body({
|
|
183
|
+
teamId,
|
|
184
|
+
useStagingEndpoint,
|
|
185
|
+
}));
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Gets channels for a team.
|
|
189
|
+
* This method only works with @pnp/sp behaviors.
|
|
190
|
+
* This method doesn't work in Azure AD Application context
|
|
191
|
+
*
|
|
192
|
+
*@param teamId Team's group Id
|
|
193
|
+
*@returns Detailed information about team's channels. The returned value is a JSON object which can be parsed
|
|
194
|
+
*/
|
|
195
|
+
getTeamChannelsDirect(teamId) {
|
|
196
|
+
return spPost(GroupSiteManager(this, "GetTeamChannelsDirect"), body({
|
|
197
|
+
teamId,
|
|
198
|
+
}));
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Gets channels for a team.
|
|
202
|
+
* This method only works with @pnp/sp behaviors.
|
|
203
|
+
* This method doesn't work in Azure AD Application context
|
|
204
|
+
*
|
|
205
|
+
*@param teamId Team's group Id
|
|
206
|
+
*@returns Detailed information about team's channels
|
|
207
|
+
*/
|
|
208
|
+
getTeamChannelsEx(teamId) {
|
|
209
|
+
return spPost(GroupSiteManager(this, "GetTeamChannelsEx"), body({
|
|
210
|
+
teamId,
|
|
211
|
+
}));
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Gets channels for a team based on site URL.
|
|
215
|
+
* Works only with root site (neither private or shared channel sites).
|
|
216
|
+
* This method only works with @pnp/sp behaviors.
|
|
217
|
+
* This method doesn't work in Azure AD Application context
|
|
218
|
+
*
|
|
219
|
+
*@param siteUrl group-connected site URL
|
|
220
|
+
*@returns Detailed information about team's channels
|
|
221
|
+
*/
|
|
222
|
+
getTeamChannelsWithSiteUrl(siteUrl) {
|
|
223
|
+
return spPost(GroupSiteManager(this, "GetTeamChannelsWithSiteUrl"), body({
|
|
224
|
+
siteUrl,
|
|
225
|
+
}));
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Gets shared channels membership for a user
|
|
229
|
+
*
|
|
230
|
+
*@param userName User principal name to get shared channels membership
|
|
231
|
+
*@returns Information about user's shared channels. The returned value is a JSON object which can be parsed
|
|
232
|
+
*/
|
|
233
|
+
getUserSharedChannelMemberGroups(userName) {
|
|
234
|
+
return spPost(GroupSiteManager(this, "GetUserSharedChannelMemberGroups"), body({
|
|
235
|
+
userName,
|
|
236
|
+
}));
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Gets teams membership for a user
|
|
240
|
+
*
|
|
241
|
+
*@param userName User principal name to get teams membership
|
|
242
|
+
*@returns Information about requested user's teams. The returned value is a JSON object which can be parsed
|
|
243
|
+
*/
|
|
244
|
+
getUserTeamConnectedMemberGroups(userName) {
|
|
245
|
+
return spPost(GroupSiteManager(this, "GetUserTeamConnectedMemberGroups"), body({
|
|
246
|
+
userName,
|
|
247
|
+
}));
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Gets a valid SharePoint site URL from an alias
|
|
251
|
+
*
|
|
252
|
+
*@param alias Alias for SharePoint site URL (also used when creating a Microsoft 365 group)
|
|
253
|
+
*@param managedPath SharePoint managed path ("/sites" or "/teams", optional)
|
|
254
|
+
*@param isTeamSite True if target is a group-connected site, otherwise false (optional)
|
|
255
|
+
*@returns A valid SharePoint site URL
|
|
256
|
+
*/
|
|
257
|
+
getValidSiteUrlFromAlias(alias, managedPath, isTeamSite) {
|
|
258
|
+
return spPost(GroupSiteManager(this, "GetValidSiteUrlFromAlias"), body({
|
|
259
|
+
alias,
|
|
260
|
+
managedPath,
|
|
261
|
+
isTeamSite,
|
|
262
|
+
}));
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Indicates if the "Teamify" prompt is displayed or not on a group-connected site.
|
|
266
|
+
* If no parameter is specified, the command will run in the current site context
|
|
267
|
+
*
|
|
268
|
+
*@param siteUrl Group-Connected site
|
|
269
|
+
*@returns true if "Teamify" prompt is hidden, otherwise false
|
|
270
|
+
*/
|
|
271
|
+
isTeamifyPromptHidden(siteUrl) {
|
|
272
|
+
return spPost(GroupSiteManager(this, "IsTeamifyPromptHidden"), body({
|
|
273
|
+
siteUrl,
|
|
274
|
+
}));
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Gets the group-connected site default OneNote Notebook location
|
|
278
|
+
*
|
|
279
|
+
*@param groupId Id of the Microsoft 365 group
|
|
280
|
+
*@returns URL of the group's default OneNote Notebook
|
|
281
|
+
*/
|
|
282
|
+
notebook(groupId) {
|
|
283
|
+
return spPost(GroupSiteManager(this, "Notebook"), body({
|
|
284
|
+
groupId,
|
|
285
|
+
}));
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Pins one or more new SharePoint tabs to a team's default channel.
|
|
289
|
+
* This method only works with @pnp/sp behaviors.
|
|
290
|
+
* This method doesn't work in Azure AD Application context
|
|
291
|
+
*
|
|
292
|
+
*@param requestParams Parameters including the tabs data and the team's group Id
|
|
293
|
+
*@returns Successful and failed results for the submitted tabs to add
|
|
294
|
+
*/
|
|
295
|
+
pinToTeam(requestParams) {
|
|
296
|
+
return spPost(GroupSiteManager(this, "PinToTeam"), body({
|
|
297
|
+
requestParams,
|
|
298
|
+
}));
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Supports calling POST methods not added explicitly to this class
|
|
302
|
+
*
|
|
303
|
+
* @param method method name, used in url path (ex: "CreateGroup")
|
|
304
|
+
* @param args optional, any arguments to include in the body
|
|
305
|
+
* @returns The result of the method invocation T
|
|
306
|
+
*/
|
|
307
|
+
call(method, args) {
|
|
308
|
+
const query = GroupSiteManager(this, method);
|
|
309
|
+
if (typeof args !== "undefined") {
|
|
310
|
+
return spPost(query, body(args));
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
return spPost(query);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
_GroupSiteManager = __decorate([
|
|
318
|
+
defaultPath("_api/groupsitemanager")
|
|
319
|
+
], _GroupSiteManager);
|
|
320
|
+
export const GroupSiteManager = spInvokableFactory(_GroupSiteManager);
|
|
321
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/sp/groupsitemanager/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,kBAAkB,EAAgB,KAAK,EAAE,MAAM,SAAS,CAAC;AAGpG,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,WAAkC;IAC9D;;;;OAIG;IACI,kBAAkB;QACrB,OAAO,KAAK,CAAC,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACI,0BAA0B;QAC7B,OAAO,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,4BAA4B,CAAC,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,OAAe;QACzB,OAAO,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,IAAI,CAAC;YACjD,OAAO;SACV,CAAC,CAAC,CAAC;IACR,CAAC;IAED;;;;;;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AM,CAAC,gBAAgB,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,IAAI,CAAC;YACpD,aAAa;SAChB,CAAC,CAAC,CAAC;IACR,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CAAU,MAAc,EAAE,IAAU;QAC3C,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC7C,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE;YAC7B,OAAO,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;SACpC;aAAM;YACH,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;SACxB;IACL,CAAC;CACJ,CAAA;AAjVK,iBAAiB;IADtB,WAAW,CAAC,uBAAuB,CAAC;GAC/B,iBAAiB,CAiVtB;AAGD,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAkC,iBAAiB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/sp",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.0",
|
|
4
4
|
"description": "pnp - provides a fluent api for working with SharePoint REST",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"tslib": "2.4.1",
|
|
12
|
-
"@pnp/core": "3.
|
|
13
|
-
"@pnp/queryable": "3.
|
|
12
|
+
"@pnp/core": "3.14.0",
|
|
13
|
+
"@pnp/queryable": "3.14.0"
|
|
14
14
|
},
|
|
15
15
|
"funding": {
|
|
16
16
|
"type": "individual",
|
package/readme.md
CHANGED
|
@@ -4,8 +4,7 @@ The SharePoint Patterns and Practices client side libraries were created to help
|
|
|
4
4
|
REST api details. Built with feedback from the community they represent a way to simplify your day-to-day dev cycle while relying on tested and proven
|
|
5
5
|
patterns.
|
|
6
6
|
|
|
7
|
-
Please use [http://aka.ms/
|
|
8
|
-
|
|
7
|
+
Please use [http://aka.ms/community/home](http://aka.ms/community/home) for the latest updates around the whole *Microsoft 365 and Power Platform Community(PnP)* initiative.
|
|
9
8
|
## Source & Docs
|
|
10
9
|
|
|
11
10
|
This code is managed within the [main pnp repo](https://github.com/pnp/pnpjs), please report issues and submit pull requests there.
|
package/recycle-bin/types.js
CHANGED
|
@@ -41,7 +41,7 @@ let _RecycleBin = class _RecycleBin extends _SPCollection {
|
|
|
41
41
|
* @param id The string id of the recycle bin item
|
|
42
42
|
*/
|
|
43
43
|
getById(id) {
|
|
44
|
-
return RecycleBinItem(this).concat(`(${id})`);
|
|
44
|
+
return RecycleBinItem(this).concat(`('${id}')`);
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Delete's all items in the Recycle Bin
|
package/recycle-bin/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/sp/recycle-bin/types.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,WAAW,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C;;;GAGG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAkC;IACnE;;;OAGG;IACI,MAAM;QACT,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACI,iBAAiB;QACpB,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED;;;OAGG;IACI,OAAO;QACV,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IAChD,CAAC;CAC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AI,EAAE,WAAW,CAAC,CAAC,CAAC;IAClD,CAAC;IAED;;;OAGG;IACI,yBAAyB;QAC5B,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,2BAA2B,CAAC,CAAC,CAAC;IAClE,CAAC;IAED;;;OAGG;IACI,oBAAoB;QACvB,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACI,UAAU;QACb,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC;IACnD,CAAC;CACJ,CAAA;AA1CY,WAAW;IADvB,WAAW,CAAC,YAAY,CAAC;GACb,WAAW,CA0CvB;SA1CY,WAAW;AA4CxB,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAc,WAAW,CAAC,CAAC"}
|
package/sites/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ISite } from "./types.js";
|
|
2
|
-
export { IOpenWebByIdResult, ISite, Site, IDocumentLibraryInformation, } from "./types.js";
|
|
2
|
+
export { IOpenWebByIdResult, ISite, Site, IDocumentLibraryInformation, SiteLogoAspect, SiteLogoType, ISiteLogoProperties, } from "./types.js";
|
|
3
3
|
declare module "../fi" {
|
|
4
4
|
interface SPFI {
|
|
5
5
|
readonly site: ISite;
|
package/sites/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/sp/sites/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAQ,MAAM,YAAY,CAAC;AAEzC,OAAO,EACH,kBAAkB,EAClB,KAAK,EACL,IAAI,EACJ,2BAA2B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/sp/sites/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAQ,MAAM,YAAY,CAAC;AAEzC,OAAO,EACH,kBAAkB,EAClB,KAAK,EACL,IAAI,EACJ,2BAA2B,EAC3B,cAAc,EACd,YAAY,EACZ,mBAAmB,GACtB,MAAM,YAAY,CAAC;AAEpB,OAAO,QAAQ,OAAO,CAAC;IACnB,UAAU,IAAI;QACV,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;KACxB;CACJ"}
|
package/sites/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SPFI } from "../fi.js";
|
|
2
2
|
import { Site } from "./types.js";
|
|
3
|
-
export { Site, } from "./types.js";
|
|
3
|
+
export { Site, SiteLogoAspect, SiteLogoType, } from "./types.js";
|
|
4
4
|
Reflect.defineProperty(SPFI.prototype, "site", {
|
|
5
5
|
configurable: true,
|
|
6
6
|
enumerable: true,
|
package/sites/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/sp/sites/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAS,IAAI,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAGH,IAAI,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/sp/sites/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAS,IAAI,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAGH,IAAI,EAEJ,cAAc,EACd,YAAY,GAEf,MAAM,YAAY,CAAC;AAQpB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE;IAC3C,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,GAAG,EAAE;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACJ,CAAC,CAAC"}
|
package/sites/types.d.ts
CHANGED
|
@@ -79,6 +79,13 @@ export declare class _Site extends _SPInstance<ISiteInfo> {
|
|
|
79
79
|
*/
|
|
80
80
|
createModernTeamSite(displayName: string, alias: string, isPublic?: boolean, lcid?: number, description?: string, classification?: string, owners?: string[], hubSiteId?: string, siteDesignId?: string): Promise<ISiteCreationResponse>;
|
|
81
81
|
createModernTeamSiteFromProps(props: ICreateTeamSiteProps): Promise<ISiteCreationResponse>;
|
|
82
|
+
update(props: ISiteInfo): Promise<any>;
|
|
83
|
+
/**
|
|
84
|
+
* Set's the site's `Site Logo` property, vs the Site Icon property available on the web's properties
|
|
85
|
+
*
|
|
86
|
+
* @param logoProperties An instance of ISiteLogoProperties which sets the new site logo.
|
|
87
|
+
*/
|
|
88
|
+
setSiteLogo(logoProperties: ISiteLogoProperties): Promise<void>;
|
|
82
89
|
}
|
|
83
90
|
export interface ISite extends _Site {
|
|
84
91
|
}
|
|
@@ -184,4 +191,31 @@ export interface ISiteInfo {
|
|
|
184
191
|
Url: string;
|
|
185
192
|
WriteLocked: boolean;
|
|
186
193
|
}
|
|
194
|
+
export declare const enum SiteLogoType {
|
|
195
|
+
/**
|
|
196
|
+
* Site header logo
|
|
197
|
+
*/
|
|
198
|
+
WebLogo = 0,
|
|
199
|
+
/**
|
|
200
|
+
* Hub site logo
|
|
201
|
+
*/
|
|
202
|
+
HubLogo = 1,
|
|
203
|
+
/**
|
|
204
|
+
* Header background image
|
|
205
|
+
*/
|
|
206
|
+
HeaderBackground = 2,
|
|
207
|
+
/**
|
|
208
|
+
* Global navigation logo
|
|
209
|
+
*/
|
|
210
|
+
GlobalNavLogo = 3
|
|
211
|
+
}
|
|
212
|
+
export declare const enum SiteLogoAspect {
|
|
213
|
+
Square = 0,
|
|
214
|
+
Rectangular = 1
|
|
215
|
+
}
|
|
216
|
+
export interface ISiteLogoProperties {
|
|
217
|
+
relativeLogoUrl: string;
|
|
218
|
+
type: SiteLogoType;
|
|
219
|
+
aspect: SiteLogoAspect;
|
|
220
|
+
}
|
|
187
221
|
//# sourceMappingURL=types.d.ts.map
|
package/sites/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/sp/sites/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAsB,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../packages/sp/sites/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAsB,MAAM,EAAe,MAAM,mBAAmB,CAAC;AAEzF,OAAO,EAAO,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAK7C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAoC3C,qBACa,KAAM,SAAQ,WAAW,CAAC,SAAS,CAAC;gBAEjC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;IAavC;;;OAGG;IACH,IAAW,OAAO,IAAI,IAAI,CAEzB;IAED;;;;OAIG;IACI,UAAU,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC;IAMpD;;;;OAIG;IACU,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAQpE;;;OAGG;IACU,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAKxC;;;OAGG;IACU,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAOpC;;;;OAIG;IACU,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,EAAE,CAAC;IAOjG;;;;OAIG;IACU,oBAAoB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQ3E;;;;;;;;;;;;;;;;OAgBG;IACU,uBAAuB,CAChC,KAAK,EAAE,MAAM,EACb,IAAI,QAAO,EACX,mBAAmB,SAAQ,EAC3B,GAAG,EAAE,MAAM,EACX,WAAW,CAAC,EAAE,MAAM,EAC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AC;IAC5B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,OAAO,CAAC;CACxB;AAED,0BAAkB,YAAY;IAC1B;;OAEG;IACH,OAAO,IAAI;IACX;;OAEG;IACH,OAAO,IAAI;IACX;;OAEG;IACH,gBAAgB,IAAI;IACpB;;OAEG;IACH,aAAa,IAAI;CACpB;AAED,0BAAkB,cAAc;IAC5B,MAAM,IAAI;IACV,WAAW,IAAI;CAClB;AAED,MAAM,WAAW,mBAAmB;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,cAAc,CAAC;CAC1B"}
|
package/sites/types.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { _SPInstance, spInvokableFactory } from "../spqueryable.js";
|
|
2
|
+
import { _SPInstance, spInvokableFactory, SPQueryable } from "../spqueryable.js";
|
|
3
3
|
import { defaultPath } from "../decorators.js";
|
|
4
4
|
import { Web } from "../webs/types.js";
|
|
5
5
|
import { combine, hOP, isArray } from "@pnp/core";
|
|
6
6
|
import { body, TextParse } from "@pnp/queryable";
|
|
7
7
|
import { odataUrlFrom } from "../utils/odata-url-from.js";
|
|
8
|
-
import { spPost } from "../operations.js";
|
|
8
|
+
import { spPatch, spPost } from "../operations.js";
|
|
9
9
|
import { extractWebUrl } from "../utils/extract-web-url.js";
|
|
10
10
|
import { emptyGuid } from "../types.js";
|
|
11
11
|
/**
|
|
@@ -215,10 +215,45 @@ let _Site = class _Site extends _SPInstance {
|
|
|
215
215
|
}
|
|
216
216
|
return spPost(Site([this, extractWebUrl(this.toUrl())], "/_api/GroupSiteManager/CreateGroupEx").using(TextParse()), body(postBody));
|
|
217
217
|
}
|
|
218
|
+
update(props) {
|
|
219
|
+
return spPatch(this, body(props));
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Set's the site's `Site Logo` property, vs the Site Icon property available on the web's properties
|
|
223
|
+
*
|
|
224
|
+
* @param logoProperties An instance of ISiteLogoProperties which sets the new site logo.
|
|
225
|
+
*/
|
|
226
|
+
setSiteLogo(logoProperties) {
|
|
227
|
+
return spPost(SPQueryable([this, extractWebUrl(this.toUrl())], "_api/siteiconmanager/setsitelogo"), body(logoProperties));
|
|
228
|
+
}
|
|
218
229
|
};
|
|
219
230
|
_Site = __decorate([
|
|
220
231
|
defaultPath("_api/site")
|
|
221
232
|
], _Site);
|
|
222
233
|
export { _Site };
|
|
223
234
|
export const Site = spInvokableFactory(_Site);
|
|
235
|
+
export var SiteLogoType;
|
|
236
|
+
(function (SiteLogoType) {
|
|
237
|
+
/**
|
|
238
|
+
* Site header logo
|
|
239
|
+
*/
|
|
240
|
+
SiteLogoType[SiteLogoType["WebLogo"] = 0] = "WebLogo";
|
|
241
|
+
/**
|
|
242
|
+
* Hub site logo
|
|
243
|
+
*/
|
|
244
|
+
SiteLogoType[SiteLogoType["HubLogo"] = 1] = "HubLogo";
|
|
245
|
+
/**
|
|
246
|
+
* Header background image
|
|
247
|
+
*/
|
|
248
|
+
SiteLogoType[SiteLogoType["HeaderBackground"] = 2] = "HeaderBackground";
|
|
249
|
+
/**
|
|
250
|
+
* Global navigation logo
|
|
251
|
+
*/
|
|
252
|
+
SiteLogoType[SiteLogoType["GlobalNavLogo"] = 3] = "GlobalNavLogo";
|
|
253
|
+
})(SiteLogoType || (SiteLogoType = {}));
|
|
254
|
+
export var SiteLogoAspect;
|
|
255
|
+
(function (SiteLogoAspect) {
|
|
256
|
+
SiteLogoAspect[SiteLogoAspect["Square"] = 0] = "Square";
|
|
257
|
+
SiteLogoAspect[SiteLogoAspect["Rectangular"] = 1] = "Rectangular";
|
|
258
|
+
})(SiteLogoAspect || (SiteLogoAspect = {}));
|
|
224
259
|
//# sourceMappingURL=types.js.map
|
package/sites/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/sp/sites/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAU,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../packages/sp/sites/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAU,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;;GAKG;AACH,SAAS,aAAa,CAAC,SAAiB,EAAE,IAAwB;IAE9D,IAAI,OAAO,GAAG,WAAW,CAAC;IAE1B,0BAA0B;IAC1B,gDAAgD;IAChD,4EAA4E;IAC5E,8DAA8D;IAC9D,MAAM,OAAO,GAAG,yBAAyB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1D,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,IAAG,CAAC,EAAE;QAErB,mDAAmD;QACnD,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;QAErC,mDAAmD;QACnD,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;KACxB;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