@mikezimm/fps-library-v2 1.0.104 → 1.0.105

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/CHANGELOG.md CHANGED
@@ -5,28 +5,34 @@ npm run build
5
5
  npm version major/minor/patch
6
6
  npm publish --access=public
7
7
 
8
- npm install @mikezimm/fps-library-v2@1.0.104
8
+ npm install @mikezimm/fps-library-v2@1.0.105
9
9
 
10
10
  # Changelog
11
11
 
12
12
  NOTE: TURN BACK ON STRICT NULL CHECKS - turned off for PropPaneCols
13
13
 
14
+ ## 1.0.105 - 2023-Jan-30: Pivot Tiles Permissions
15
+ - add getSiteInfo - src/pnpjs/Sites/fetchSiteInfo
16
+ - add IFpsGetSiteReturn - src/pnpjs/Sites/IFpsGetSiteReturn
17
+ - add getWebInfoIncludingUnique/+Min - src/pnpjs/Webs/getWebInfoIncludingUnique
18
+ - add IFpsGetWebReturn/+Min - src/pnpjs/Webs/IFpsGetWebReturn
19
+
14
20
  ## 1.0.104 - 2023-Jan-30: Pivot Tiles Permissions
15
- - add savePermissionHistory in src\pnpjs\Logging\permissions
16
- - add savePermissionAnalytics in src\pnpjs\Logging\permissionsSave
17
- - add fetchAnalytics in src\pnpjs\Logging\fetch
18
-
19
- - add getListRoleAssignments in src\pnpjs\Permissions\getListPerms
20
- - add getWebRoleAssignments in src\pnpjs\Permissions\getWebPerms
21
- - add getUserListRoleAssignments in src\pnpjs\Permissions\getUserListPerms
22
- - add getUserWebRoleAssignments in src\pnpjs\Permissions\getUserWebPerms
23
- - add IFpsRoleAssignmentInfo in src\pnpjs\Permissions\IFpsRoleAssignmentInfo
24
-
25
- - add getSourceItemsWithUniquePerms in src\pnpjs\SourceItems\getSourceItemsUniquePerms
26
- - add getSourceItemsInBatches in src\pnpjs\SourceItems\getSourceItemsBatch
27
- - add getUserListRoleAssignmentsInBatch in src\pnpjs\Permissions\getUserListPermsBatch
28
- - add getUserWebRoleAssignmentsInBatch in src\pnpjs\Permissions\getUserWebPermsBatch
29
- - add getSiteUsersInBatch in src\pnpjs\Users\calls\getSiteUsersBatch
21
+ - add savePermissionHistory in src/pnpjs/Logging/permissions
22
+ - add savePermissionAnalytics in src/pnpjs/Logging/permissionsSave
23
+ - add fetchAnalytics in src/pnpjs/Logging/fetch
24
+
25
+ - add getListRoleAssignments in src/pnpjs/Permissions/getListPerms
26
+ - add getWebRoleAssignments in src/pnpjs/Permissions/getWebPerms
27
+ - add getUserListRoleAssignments in src/pnpjs/Permissions/getUserListPerms
28
+ - add getUserWebRoleAssignments in src/pnpjs/Permissions/getUserWebPerms
29
+ - add IFpsRoleAssignmentInfo in src/pnpjs/Permissions/IFpsRoleAssignmentInfo
30
+
31
+ - add getSourceItemsWithUniquePerms in src/pnpjs/SourceItems/getSourceItemsUniquePerms
32
+ - add getSourceItemsInBatches in src/pnpjs/SourceItems/getSourceItemsBatch
33
+ - add getUserListRoleAssignmentsInBatch in src/pnpjs/Permissions/getUserListPermsBatch
34
+ - add getUserWebRoleAssignmentsInBatch in src/pnpjs/Permissions/getUserWebPermsBatch
35
+ - add getSiteUsersInBatch in src/pnpjs/Users/calls/getSiteUsersBatch
30
36
  - create buildValueUserInfos - moved code out of getSiteUsers and getSiteUsersInBatch
31
37
 
32
38
 
@@ -0,0 +1,6 @@
1
+ import { ISite } from "@pnp/sp/sites/types";
2
+ import { IFpsErrorObject } from '../Common/IFpsErrorObject';
3
+ export interface IFpsGetSiteReturn extends IFpsErrorObject {
4
+ site: ISite;
5
+ }
6
+ //# sourceMappingURL=IFpsGetSiteReturn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFpsGetSiteReturn.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/Sites/IFpsGetSiteReturn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,IAAI,EAAE,KAAK,CAAE;CACd"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IFpsGetSiteReturn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFpsGetSiteReturn.js","sourceRoot":"","sources":["../../../src/pnpjs/Sites/IFpsGetSiteReturn.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { IFpsGetSiteReturn } from "./IFpsGetSiteReturn";
2
+ /**
3
+ * Copied from Pivot Tiles /mpnFunctions from getSiteInfo
4
+ * @param webUrl
5
+ * @param alertMe
6
+ * @param consoleLog
7
+ * @returns
8
+ */
9
+ export declare function getSiteInfo(webUrl: string, alertMe: boolean, consoleLog: boolean): Promise<IFpsGetSiteReturn>;
10
+ //# sourceMappingURL=fetchSiteInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchSiteInfo.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/Sites/fetchSiteInfo.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAK,OAAO,CAAC,iBAAiB,CAAC,CAQtH"}
@@ -0,0 +1,15 @@
1
+ import { fetchSiteInfo, } from "@mikezimm/fps-pnp2/lib/services/sp/sites/fetchSiteInfo";
2
+ import { checkAnyResults } from '../Common/CheckAnyResults';
3
+ /**
4
+ * Copied from Pivot Tiles /mpnFunctions from getSiteInfo
5
+ * @param webUrl
6
+ * @param alertMe
7
+ * @param consoleLog
8
+ * @returns
9
+ */
10
+ export async function getSiteInfo(webUrl, alertMe, consoleLog) {
11
+ const initialResult = await fetchSiteInfo(webUrl);
12
+ const result = checkAnyResults(initialResult, `fps-library-v2: getSiteInfo ~ 18`, alertMe, consoleLog);
13
+ return result;
14
+ }
15
+ //# sourceMappingURL=fetchSiteInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchSiteInfo.js","sourceRoot":"","sources":["../../../src/pnpjs/Sites/fetchSiteInfo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,GAAG,MAAM,wDAAwD,CAAC;AAExF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG5D;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAE,MAAc,EAAE,OAAgB,EAAE,UAAmB;IAEtF,MAAM,aAAa,GAAkB,MAAM,aAAa,CAAE,MAAM,CAAG,CAAC;IAEpE,MAAM,MAAM,GAAsB,eAAe,CAAE,aAAa,EAAE,kCAAkC,EAAE,OAAO,EAAE,UAAU,CAAuB,CAAC;IAEjJ,OAAO,MAAM,CAAC;AAEhB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { IWebInfo } from "@pnp/sp/webs/types";
2
+ import { IPickedWebBasic } from "../../common/interfaces/fps/Picked/IPickedWebBasic";
3
+ import { IFpsErrorObject } from '../Common/IFpsErrorObject';
4
+ export interface IFpsGetWebReturn extends IFpsErrorObject {
5
+ web: IWebInfo;
6
+ }
7
+ export interface IFpsGetMinWebReturn extends IFpsErrorObject {
8
+ web: IPickedWebBasic;
9
+ }
10
+ //# sourceMappingURL=IFpsGetWebReturn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFpsGetWebReturn.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/Webs/IFpsGetWebReturn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,GAAG,EAAE,QAAQ,CAAE;CAChB;AAED,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,GAAG,EAAE,eAAe,CAAE;CACvB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IFpsGetWebReturn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFpsGetWebReturn.js","sourceRoot":"","sources":["../../../src/pnpjs/Webs/IFpsGetWebReturn.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { IFpsGetWebReturn, IFpsGetMinWebReturn } from "./IFpsGetWebReturn";
2
+ /**
3
+ * Copied from Pivot Tiles /mpnFunctions from getWebInfoIncludingUnique
4
+ * @param webUrl
5
+ * @param alertMe
6
+ * @param consoleLog
7
+ * @returns
8
+ */
9
+ export declare function getWebInfoIncludingUniqueMin(webUrl: string, alertMe: boolean, consoleLog: boolean): Promise<IFpsGetMinWebReturn>;
10
+ export declare function getWebInfoIncludingUniqueAll(webUrl: string, alertMe: boolean, consoleLog: boolean): Promise<IFpsGetWebReturn>;
11
+ //# sourceMappingURL=getWebInfoIncludingUnique.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWebInfoIncludingUnique.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/Webs/getWebInfoIncludingUnique.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE3E;;;;;;GAMG;AACH,wBAAsB,4BAA4B,CAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAK,OAAO,CAAC,mBAAmB,CAAC,CAiBzI;AAED,wBAAsB,4BAA4B,CAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAK,OAAO,CAAC,gBAAgB,CAAC,CAQtI"}
@@ -0,0 +1,29 @@
1
+ import { fetchWebInfoIncludingUnique, } from "@mikezimm/fps-pnp2/lib/services/sp/webs/fetchWebInfoIncludingUnique";
2
+ import { checkAnyResults } from '../Common/CheckAnyResults';
3
+ /**
4
+ * Copied from Pivot Tiles /mpnFunctions from getWebInfoIncludingUnique
5
+ * @param webUrl
6
+ * @param alertMe
7
+ * @param consoleLog
8
+ * @returns
9
+ */
10
+ export async function getWebInfoIncludingUniqueMin(webUrl, alertMe, consoleLog) {
11
+ const initialResult = await fetchWebInfoIncludingUnique(webUrl, 'min');
12
+ initialResult.web = {
13
+ ServerRelativeUrl: initialResult.web ? initialResult.web.ServerRelativeUrl : 'Site ServerRelativeUrl',
14
+ guid: initialResult.web ? initialResult.web.Id : 'Site Guid',
15
+ title: initialResult.web ? initialResult.web.Title : 'Site Title',
16
+ url: initialResult.web ? initialResult.web.Url : 'siteURL',
17
+ siteIcon: initialResult.web ? initialResult.web.SiteLogoUrl : 'Site Icon',
18
+ error: '',
19
+ HasUniqueRoleAssignments: initialResult.web ? initialResult.web['HasUniqueRoleAssignments'] : null,
20
+ };
21
+ const result = checkAnyResults(initialResult, `fps-library-v2: getWebInfoIncludingUniqueMin ~ 27`, alertMe, consoleLog);
22
+ return result;
23
+ }
24
+ export async function getWebInfoIncludingUniqueAll(webUrl, alertMe, consoleLog) {
25
+ const initialResult = await fetchWebInfoIncludingUnique(webUrl, 'all');
26
+ const result = checkAnyResults(initialResult, `fps-library-v2: getWebInfoIncludingUniqueAll ~ 37`, alertMe, consoleLog);
27
+ return result;
28
+ }
29
+ //# sourceMappingURL=getWebInfoIncludingUnique.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getWebInfoIncludingUnique.js","sourceRoot":"","sources":["../../../src/pnpjs/Webs/getWebInfoIncludingUnique.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,GAAG,MAAM,qEAAqE,CAAC;AAEnH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG5D;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAE,MAAc,EAAE,OAAgB,EAAE,UAA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CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikezimm/fps-library-v2",
3
- "version": "1.0.104",
3
+ "version": "1.0.105",
4
4
  "description": "Library of reusable typescript/javascript functions, interfaces and constants",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",
@@ -40,7 +40,7 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@microsoft/sp-property-pane": "^1.15.2",
43
- "@mikezimm/fps-pnp2": "^1.0.34",
43
+ "@mikezimm/fps-pnp2": "^1.0.35",
44
44
  "@mikezimm/fps-styles": "^1.0.14",
45
45
  "@pnp/spfx-controls-react": "3.12.0",
46
46
  "@pnp/spfx-property-controls": "^3.6.0",
@@ -1,6 +0,0 @@
1
- import { ISourceProps } from './Interface';
2
- export interface ISourcePropsBatches extends ISourceProps {
3
- batchFilters: string[];
4
- progressCallback?: any;
5
- }
6
- //# sourceMappingURL=ISourcePropsBatches.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISourcePropsBatches.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/ISourcePropsBatches.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,GAAG,CAAC;CACxB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ISourcePropsBatches.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISourcePropsBatches.js","sourceRoot":"","sources":["../../../src/pnpjs/SourceItems/ISourcePropsBatches.ts"],"names":[],"mappings":""}