@mikezimm/fps-core-v7 1.0.2

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.md ADDED
@@ -0,0 +1,42 @@
1
+ fps-core-v7 License Agreement
2
+
3
+ This License Agreement ("Agreement") is a legal agreement between you ("Licensee") and FP Tech LLC ("Licensor") for the use of the fps-core-v7 library ("Software"), developed for the SharePoint Framework.
4
+
5
+ 1. Grant of License
6
+ Licensor grants Licensee a limited, non-exclusive, non-transferable license to use the Software solely for integration with Microsoft SharePoint environments for personal or internal business purposes. Licensee may not use the Software for any commercial purposes without express written consent from Licensor.
7
+
8
+ 2. Restrictions
9
+ Licensee shall not, and shall not permit others to:
10
+
11
+ Copy, modify, or create derivative works of the Software.
12
+ Distribute, sell, lease, rent, lend, sublicense, or otherwise transfer the Software or any portion thereof, except as part of a sanctioned SharePoint deployment.
13
+ Use the Software in any manner that would compete with the Licensor's business.
14
+ Reverse engineer, decompile, disassemble, or otherwise attempt to discover the source code of the Software, except as permitted by applicable law.
15
+ Remove or alter any copyright, trademark, or other proprietary notices contained in the Software.
16
+
17
+ 3. Permitted Environments
18
+ The Software is licensed solely for use within SharePoint Online (Microsoft 365) or SharePoint Server environments. Use of the Software outside of these environments is strictly prohibited unless expressly authorized in writing by Licensor.
19
+
20
+ 4. Ownership
21
+ Licensor retains all right, title, and interest in and to the Software, including all intellectual property rights. The Software is licensed, not sold, to Licensee.
22
+
23
+ 5. Term and Termination
24
+ This Agreement is effective until terminated. Licensee's rights under this Agreement will terminate automatically without notice from Licensor if Licensee fails to comply with any term(s) of this Agreement. Upon termination, Licensee must immediately cease all use of the Software and destroy all copies in their possession or control.
25
+
26
+ 6. No Warranty
27
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
28
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30
+
31
+ 7. Limitation of Liability
32
+ To the maximum extent permitted by law, Licensor shall not be liable for any special, incidental, indirect, or consequential damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use the Software, even if Licensor has been advised of the possibility of such damages.
33
+
34
+ 8. Governing Law
35
+ This Agreement shall be governed by and construed in accordance with the laws of [Your Jurisdiction], without regard to its conflict of law principles.
36
+
37
+ 9. Support and Maintenance
38
+ Licensor is not obligated to provide any maintenance, support, updates, or modifications to the Software unless expressly agreed to in writing.
39
+
40
+ 10. Entire Agreement
41
+ This Agreement constitutes the entire agreement between the parties concerning the Software and supersedes all prior or contemporaneous communications, agreements, or understandings, written or oral, regarding such subject matter.
42
+
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ ## Purpose
2
+
3
+ The purpose of this library is to create a set of stand alone re-usable interfaces, types and constants that can be used in SPFx web parts and the FPS-Banner component.
4
+
5
+ This library is derived from fps-library-v2 and fps-pnp2
package/lib/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/lib/index.js ADDED
@@ -0,0 +1,5 @@
1
+ // export * from './services/sp/fetch/items/OLD-index';
2
+ // export * from './services/sp/users/OLD-index';
3
+ // export * from './services/sp/logging/OLD-index';
4
+ // export { check4Gulp } from './services/sp/CheckGulping';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,uDAAuD;AACvD,iDAAiD;AACjD,mDAAmD;AAEnD,2DAA2D"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 2024-09-03: Migrated from fps-Pnp2/src/services/sp
3
+ */
4
+ export declare const gulpRegex: RegExp;
5
+ export declare function check4Gulp(): boolean;
6
+ //# sourceMappingURL=CheckGulping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckGulping.d.ts","sourceRoot":"","sources":["../../../src/logic/Links/CheckGulping.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,SAAS,QAA6D,CAAC;AAEpF,wBAAgB,UAAU,IAAK,OAAO,CAOrC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 2024-09-03: Migrated from fps-Pnp2/src/services/sp
3
+ */
4
+ // from: window.location.search.match(/debugManifestsFile(.*)manifests.js/gmi)
5
+ export const gulpRegex = new RegExp(`debugManifestsFile(.*)manifests.js`, 'gmi');
6
+ export function check4Gulp() {
7
+ if (window.location.search.match(gulpRegex)) {
8
+ return true;
9
+ }
10
+ else {
11
+ return false;
12
+ }
13
+ ;
14
+ }
15
+ //# sourceMappingURL=CheckGulping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckGulping.js","sourceRoot":"","sources":["../../../src/logic/Links/CheckGulping.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,+EAA+E;AAC/E,MAAM,CAAC,MAAM,SAAS,GAAI,IAAI,MAAM,CAAE,oCAAoC,EAAE,KAAK,CAAE,CAAC;AAEpF,MAAM,UAAU,UAAU;IACxB,IAAK,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAE,SAAS,CAAE,EAAG;QAC/C,OAAO,IAAI,CAAC;KAEb;SAAM;QACL,OAAO,KAAK,CAAE;KACf;IAAA,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 2024-09-03: Migrated from fps-Pnp2/src/services/sp
3
+ */
4
+ export declare function check4This(test: string, exactCase?: boolean): boolean;
5
+ //# sourceMappingURL=CheckSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckSearch.d.ts","sourceRoot":"","sources":["../../../src/logic/Links/CheckSearch.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,SAAS,GAAE,OAAe,GAAK,OAAO,CAqB/E"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * 2024-09-03: Migrated from fps-Pnp2/src/services/sp
3
+ */
4
+ export function check4This(test, exactCase = false) {
5
+ // If text does not exist, then return true.
6
+ if (!test)
7
+ return true;
8
+ const compareThis = exactCase === true ? window.location.search : window.location.search.toLowerCase();
9
+ const withThis = exactCase === true ? test : test.toLowerCase();
10
+ if (compareThis.indexOf(withThis) > -1) {
11
+ return true;
12
+ }
13
+ else if (test.indexOf(`=false`) > -1 && compareThis.indexOf(withThis) > -1) {
14
+ // have way to supress this log even if showAllConsole=true below https://github.com/mikezimm/Compliance/issues/178
15
+ return false;
16
+ }
17
+ else if (compareThis.indexOf(`showAllConsole=true`.toLowerCase()) > -1) {
18
+ return true;
19
+ }
20
+ else {
21
+ return false;
22
+ }
23
+ ;
24
+ }
25
+ //# sourceMappingURL=CheckSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckSearch.js","sourceRoot":"","sources":["../../../src/logic/Links/CheckSearch.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,UAAU,UAAU,CAAE,IAAY,EAAE,YAAqB,KAAK;IAElE,4CAA4C;IAC5C,IAAK,CAAC,IAAI;QAAG,OAAO,IAAI,CAAC;IAEzB,MAAM,WAAW,GAAW,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;IAC/G,MAAM,QAAQ,GAAW,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAExE,IAAK,WAAW,CAAC,OAAO,CAAE,QAAQ,CAAE,GAAG,CAAC,CAAC,EAAG;QAC1C,OAAO,IAAI,CAAC;KAEb;SAAM,IAAK,IAAI,CAAC,OAAO,CAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,WAAW,CAAC,OAAO,CAAE,QAAQ,CAAE,GAAG,CAAC,CAAC,EAAG;QACjF,mHAAmH;QACnH,OAAO,KAAK,CAAE;KAEf;SAAO,IAAK,WAAW,CAAC,OAAO,CAAE,qBAAqB,CAAC,WAAW,EAAE,CAAE,GAAG,CAAC,CAAC,EAAG;QAC7E,OAAO,IAAI,CAAC;KAEb;SAAM;QACL,OAAO,KAAK,CAAE;KACf;IAAA,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 2024-09-03: Migrated from fps-Pnp2/src/services/sp
3
+ */
4
+ export type IFPSResultStatus = 'Unknown' | 'Success' | 'AccessDenied' | 'Error' | 'NoWeb' | 'NoList' | 'NoItem' | 'NoUser' | 'NoId' | 'NoGroup' | 'NoDepartment' | 'RuleBreak' | 'AlreadyExisted' | 'MissingDestination';
5
+ export declare const FPSResultCommonErrors: IFPSResultStatus[];
6
+ //# sourceMappingURL=IFPSResultStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFPSResultStatus.d.ts","sourceRoot":"","sources":["../../../../src/types/fps-returns/common/IFPSResultStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GACjI,SAAS,GAAG,cAAc,GAAG,WAAW,GAAG,gBAAgB,GAAG,oBAAoB,CAAC;AAErF,eAAO,MAAM,qBAAqB,EAAE,gBAAgB,EACoF,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 2024-09-03: Migrated from fps-Pnp2/src/services/sp
3
+ */
4
+ export const FPSResultCommonErrors = [
5
+ 'NoWeb', 'NoList', 'NoItem', 'NoUser', 'NoId', 'NoGroup', 'NoDepartment', 'AccessDenied', 'AlreadyExisted', 'MissingDestination'
6
+ ];
7
+ //# sourceMappingURL=IFPSResultStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFPSResultStatus.js","sourceRoot":"","sources":["../../../../src/types/fps-returns/common/IFPSResultStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,MAAM,CAAC,MAAM,qBAAqB,GAAuB;IACvD,OAAO,EAAG,QAAQ,EAAG,QAAQ,EAAG,QAAQ,EAAG,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,oBAAoB;CAAE,CAAC"}
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@mikezimm/fps-core-v7",
3
+ "version": "1.0.2",
4
+ "description": "Library of reusable core interfaces, types and constants migrated from fps-library-v2",
5
+ "main": "./lib/index.js",
6
+ "types": "./lib/index.d.ts",
7
+ "engines": {
8
+ "node": ">=0.10.0"
9
+ },
10
+ "scripts": {
11
+ "build": "del-cli \"./?(dist|lib)\" && tsc -p ./tsconfig.json && webpack",
12
+ "package": "webpack",
13
+ "watch": "webpack --watch",
14
+ "start": "webpack-dev-server --config ./webpack.config.cjs",
15
+ "clean": "del-cli \"./?(dist|lib)\"",
16
+ "lint": "eslint ./src --ext .ts"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/fps-solutions/fps-core-v7.git"
21
+ },
22
+ "keywords": [
23
+ "SPFx",
24
+ "Interfaces",
25
+ "Types",
26
+ "Constants"
27
+ ],
28
+ "author": "Mike Zimmerman",
29
+ "license": "SEE LICENSE IN LICENSE.md",
30
+ "bugs": {
31
+ "url": "https://github.com/fps-solutions/fps-core-v7/issues"
32
+ },
33
+ "homepage": "https://github.com/fps-solutions/fps-core-v7#readme",
34
+ "browserslist": [
35
+ "last 1 version",
36
+ "> 1%",
37
+ "maintained node versions",
38
+ "not dead"
39
+ ],
40
+ "devDependencies": {
41
+ "@types/webpack": "^5.28.0",
42
+ "@typescript-eslint/eslint-plugin": "^5.36.2",
43
+ "@typescript-eslint/parser": "^5.36.2",
44
+ "del-cli": "^5.0.0",
45
+ "eslint": "^8.23.0",
46
+ "ts-loader": "^9.3.1",
47
+ "typescript": "^4.7.4",
48
+ "webpack": "^5.74.0",
49
+ "webpack-bundle-analyzer": "^4.6.1",
50
+ "webpack-cli": "^4.10.0",
51
+ "webpack-dev-server": "^4.11.0"
52
+ },
53
+ "files": [
54
+ "/lib",
55
+ "LICENSE.md"
56
+ ],
57
+ "dependencies": {}
58
+ }