@mikezimm/fps-library-v2 1.0.108 → 1.0.109

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,12 +5,15 @@ 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.108
8
+ npm install @mikezimm/fps-library-v2@1.0.109
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.109 - 2023-Feb-03: Pivot Tiles Groups
15
+ - add optional filter to getAllSiteGroups function
16
+
14
17
  ## 1.0.108 - 2023-Feb-03: Pivot Tiles Groups
15
18
  - fix ModernSitePagesColumnsPivotTiles
16
19
  - add includeNormal: boolean = true to getSelectColumns
@@ -1,3 +1,11 @@
1
1
  import { IFpsGroupsReturn } from './IFpsAssociatedGroupsReturn';
2
- export declare function getAllSiteGroups(webUrl: string, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsGroupsReturn>;
2
+ /**
3
+ *
4
+ * @param webUrl
5
+ * @param alertMe
6
+ * @param consoleLog
7
+ * @param filter >> optional filter string like Title eq "Group Title" or Id eq 10
8
+ * @returns
9
+ */
10
+ export declare function getAllSiteGroups(webUrl: string, alertMe: boolean | undefined, consoleLog: boolean | undefined, filter?: string): Promise<IFpsGroupsReturn>;
3
11
  //# sourceMappingURL=getAllSiteGroups.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAllSiteGroups.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/Groups/getAllSiteGroups.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,wBAAsB,gBAAgB,CAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAM,OAAO,CAAC,gBAAgB,CAAC,CAOnJ"}
1
+ {"version":3,"file":"getAllSiteGroups.d.ts","sourceRoot":"","sources":["../../../src/pnpjs/Groups/getAllSiteGroups.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,EAAE,MAAM,GAAE,MAAW,GAAK,OAAO,CAAC,gBAAgB,CAAC,CAOvK"}
@@ -1,8 +1,16 @@
1
1
  import { checkItemsResults, } from '../Common/CheckItemsResults';
2
2
  import { getSiteGroups, } from '@mikezimm/fps-pnp2/lib/services/sp/groups/getSiteGroups';
3
- export async function getAllSiteGroups(webUrl, alertMe, consoleLog) {
4
- const groups = await getSiteGroups(webUrl);
5
- const result = checkItemsResults(groups, `fps-library-v2: getAllSiteGroups ~ 10`, alertMe, consoleLog); // added as any to fix compile error due to adding item as optional to IFPSItemsReturn
3
+ /**
4
+ *
5
+ * @param webUrl
6
+ * @param alertMe
7
+ * @param consoleLog
8
+ * @param filter >> optional filter string like Title eq "Group Title" or Id eq 10
9
+ * @returns
10
+ */
11
+ export async function getAllSiteGroups(webUrl, alertMe, consoleLog, filter = '') {
12
+ const groups = await getSiteGroups(webUrl, [''], filter);
13
+ const result = checkItemsResults(groups, `fps-library-v2: getAllSiteGroups ~ 18`, alertMe, consoleLog); // added as any to fix compile error due to adding item as optional to IFPSItemsReturn
6
14
  return result;
7
15
  }
8
16
  //# sourceMappingURL=getAllSiteGroups.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAllSiteGroups.js","sourceRoot":"","sources":["../../../src/pnpjs/Groups/getAllSiteGroups.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,GAAG,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,aAAa,GAAG,MAAM,yDAAyD,CAAC;AAIzF,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAE,MAAc,EAAE,OAA4B,EAAE,UAA+B;IAEnH,MAAM,MAAM,GAAmB,MAAM,aAAa,CAAE,MAAM,CAAG,CAAC;IAC9D,MAAM,MAAM,GAAqB,iBAAiB,CAAE,MAAM,EAAE,wCAAwC,EAAE,OAAO,EAAE,UAAU,CAAS,CAAC,CAAE,sFAAsF;IAE3N,OAAO,MAAM,CAAC;AAEhB,CAAC"}
1
+ {"version":3,"file":"getAllSiteGroups.js","sourceRoot":"","sources":["../../../src/pnpjs/Groups/getAllSiteGroups.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,GAAG,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,aAAa,GAAG,MAAM,yDAAyD,CAAC;AAIzF;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAE,MAAc,EAAE,OAA4B,EAAE,UAA+B,EAAE,SAAiB,EAAE;IAExI,MAAM,MAAM,GAAmB,MAAM,aAAa,CAAE,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,CAAE,CAAC;IAC3E,MAAM,MAAM,GAAqB,iBAAiB,CAAE,MAAM,EAAE,wCAAwC,EAAE,OAAO,EAAE,UAAU,CAAS,CAAC,CAAE,sFAAsF;IAE3N,OAAO,MAAM,CAAC;AAEhB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikezimm/fps-library-v2",
3
- "version": "1.0.108",
3
+ "version": "1.0.109",
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.37",
43
+ "@mikezimm/fps-pnp2": "^1.0.38",
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",