@mikezimm/fps-core-v7 1.0.56 → 1.0.58

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.
Files changed (51) hide show
  1. package/lib/components/atoms/Inputs/FileDropBox/IFileDropBoxProps.d.ts +25 -0
  2. package/lib/components/atoms/Inputs/FileDropBox/IFileDropBoxProps.d.ts.map +1 -0
  3. package/lib/components/atoms/Inputs/FileDropBox/IFileDropBoxProps.js +3 -0
  4. package/lib/components/atoms/Inputs/FileDropBox/IFileDropBoxProps.js.map +1 -0
  5. package/lib/components/atoms/Inputs/FileDropBox/IFileNameHandleBars.d.ts +20 -0
  6. package/lib/components/atoms/Inputs/FileDropBox/IFileNameHandleBars.d.ts.map +1 -0
  7. package/lib/components/atoms/Inputs/FileDropBox/IFileNameHandleBars.js +6 -0
  8. package/lib/components/atoms/Inputs/FileDropBox/IFileNameHandleBars.js.map +1 -0
  9. package/lib/components/atoms/Inputs/FileDropBox/convertFileDropWPPropsToFileDropBoxProps.d.ts +9 -0
  10. package/lib/components/atoms/Inputs/FileDropBox/convertFileDropWPPropsToFileDropBoxProps.d.ts.map +1 -0
  11. package/lib/components/atoms/Inputs/FileDropBox/convertFileDropWPPropsToFileDropBoxProps.js +33 -0
  12. package/lib/components/atoms/Inputs/FileDropBox/convertFileDropWPPropsToFileDropBoxProps.js.map +1 -0
  13. package/lib/components/atoms/Inputs/FileDropBox/fps-FileDropTypes.d.ts +69 -0
  14. package/lib/components/atoms/Inputs/FileDropBox/fps-FileDropTypes.d.ts.map +1 -0
  15. package/lib/components/atoms/Inputs/FileDropBox/fps-FileDropTypes.js +169 -0
  16. package/lib/components/atoms/Inputs/FileDropBox/fps-FileDropTypes.js.map +1 -0
  17. package/lib/components/atoms/Inputs/FileDropBox/processCommonFileNameHandleBars.d.ts +10 -0
  18. package/lib/components/atoms/Inputs/FileDropBox/processCommonFileNameHandleBars.d.ts.map +1 -0
  19. package/lib/components/atoms/Inputs/FileDropBox/processCommonFileNameHandleBars.js +24 -0
  20. package/lib/components/atoms/Inputs/FileDropBox/processCommonFileNameHandleBars.js.map +1 -0
  21. package/lib/logic/Links/getSPOUrl.d.ts +9 -1
  22. package/lib/logic/Links/getSPOUrl.d.ts.map +1 -1
  23. package/lib/logic/Links/getSPOUrl.js +9 -1
  24. package/lib/logic/Links/getSPOUrl.js.map +1 -1
  25. package/lib/restAPIs/lists/fields/getSourceFieldsAPI.d.ts +15 -0
  26. package/lib/restAPIs/lists/fields/getSourceFieldsAPI.d.ts.map +1 -0
  27. package/lib/restAPIs/lists/fields/getSourceFieldsAPI.js +51 -0
  28. package/lib/restAPIs/lists/fields/getSourceFieldsAPI.js.map +1 -0
  29. package/lib/restAPIs/lists/types/getSourceContentTypesAPI.d.ts +15 -0
  30. package/lib/restAPIs/lists/types/getSourceContentTypesAPI.d.ts.map +1 -0
  31. package/lib/restAPIs/lists/types/getSourceContentTypesAPI.js +53 -0
  32. package/lib/restAPIs/lists/types/getSourceContentTypesAPI.js.map +1 -0
  33. package/lib/restAPIs/lists/views/getSourceViewsAPI.d.ts +15 -0
  34. package/lib/restAPIs/lists/views/getSourceViewsAPI.d.ts.map +1 -0
  35. package/lib/restAPIs/lists/views/getSourceViewsAPI.js +51 -0
  36. package/lib/restAPIs/lists/views/getSourceViewsAPI.js.map +1 -0
  37. package/lib/restAPIs/sites/sites/getClientSideWebParts.d.ts +15 -0
  38. package/lib/restAPIs/sites/sites/getClientSideWebParts.d.ts.map +1 -0
  39. package/lib/restAPIs/sites/sites/getClientSideWebParts.js +52 -0
  40. package/lib/restAPIs/sites/sites/getClientSideWebParts.js.map +1 -0
  41. package/lib/restAPIs/sites/sites/getSiteFeaturesAPI.d.ts +15 -0
  42. package/lib/restAPIs/sites/sites/getSiteFeaturesAPI.d.ts.map +1 -0
  43. package/lib/restAPIs/sites/sites/getSiteFeaturesAPI.js +55 -0
  44. package/lib/restAPIs/sites/sites/getSiteFeaturesAPI.js.map +1 -0
  45. package/lib/restAPIs/sites/users/ensureUserOnWeb.d.ts +15 -0
  46. package/lib/restAPIs/sites/users/ensureUserOnWeb.d.ts.map +1 -0
  47. package/lib/restAPIs/sites/users/ensureUserOnWeb.js +39 -0
  48. package/lib/restAPIs/sites/users/ensureUserOnWeb.js.map +1 -0
  49. package/lib/types/fps-returns/common/IFPSBaseContentType.d.ts +1 -1
  50. package/lib/types/fps-returns/common/IFPSBaseContentType.d.ts.map +1 -1
  51. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ import { IReactCSSProperties } from '../../../../types/react/IReactCSSTypes';
2
+ import { IMIMETypesObject } from './fps-FileDropTypes';
3
+ import { IFileNameHandleBars } from './IFileNameHandleBars';
4
+ export interface IFileDropBoxProps {
5
+ useDropBox?: boolean;
6
+ maxUploadCount?: number;
7
+ fileMaxSize?: number;
8
+ fileWarnSize?: number;
9
+ fileTypes?: IMIMETypesObject[];
10
+ fileNameHandleBars: IFileNameHandleBars;
11
+ setParentFilesData: (files: File[]) => void;
12
+ style?: IReactCSSProperties;
13
+ refreshId?: string;
14
+ resetId: string;
15
+ }
16
+ export declare const changesFileDropBox: (keyof IFileDropBoxWPProps)[];
17
+ export interface IFileDropBoxWPProps {
18
+ defaultPasteMode?: boolean;
19
+ maxUploadCount: string;
20
+ fileMaxSize?: string;
21
+ fileWarnSize?: string;
22
+ fileTypes?: string[];
23
+ fileNameHandleBars: string;
24
+ }
25
+ //# sourceMappingURL=IFileDropBoxProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFileDropBoxProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/FileDropBox/IFileDropBoxProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAE/B,kBAAkB,EAAE,mBAAmB,CAAC;IACxC,kBAAkB,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IAC5C,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAGD,eAAO,MAAM,kBAAkB,EAAE,CAAC,MAAM,mBAAmB,CAAC,EAA+G,CAAA;AAE3K,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;CAC5B"}
@@ -0,0 +1,3 @@
1
+ // NOTE: changesFileDropBox must match the keys of IFileDropBoxWPProps
2
+ export const changesFileDropBox = ['defaultPasteMode', 'maxUploadCount', 'fileMaxSize', 'fileWarnSize', 'fileTypes', 'fileNameHandleBars'];
3
+ //# sourceMappingURL=IFileDropBoxProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFileDropBoxProps.js","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/FileDropBox/IFileDropBoxProps.ts"],"names":[],"mappings":"AAkBA,sEAAsE;AACtE,MAAM,CAAC,MAAM,kBAAkB,GAAkC,CAAE,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,oBAAoB,CAAE,CAAA"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Use this with function similar to buildPhotoFormFileNameHandleBarsDef to create the expected result
3
+ *
4
+ */
5
+ export interface IFileNameHandleBars {
6
+ fileNameHandleBars: string;
7
+ Title?: string;
8
+ Comments?: string;
9
+ Category1?: string;
10
+ Category2?: string;
11
+ Category3?: string;
12
+ Number1?: string;
13
+ Number2?: string;
14
+ Number3?: string;
15
+ Date1?: string;
16
+ Time1?: string;
17
+ Date2?: string;
18
+ Time2?: string;
19
+ }
20
+ //# sourceMappingURL=IFileNameHandleBars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFileNameHandleBars.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/FileDropBox/IFileNameHandleBars.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,mBAAmB;IAElC,kBAAkB,EAAE,MAAM,CAAC;IAK3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAEhB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Use this with function similar to buildPhotoFormFileNameHandleBarsDef to create the expected result
3
+ *
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=IFileNameHandleBars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFileNameHandleBars.js","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/FileDropBox/IFileNameHandleBars.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,9 @@
1
+ import { IFileDropBoxWPProps, IFileDropBoxProps } from './IFileDropBoxProps';
2
+ /**
3
+ * This will convert wpProps to IFileDropBoxProps
4
+ * Be sure to add your fileNameHandleBars object in the web part similar to SPFx-Image-Form
5
+ * @param properties
6
+ * @returns
7
+ */
8
+ export declare function convertFileDropWPPropsToFileDropBoxProps(properties: IFileDropBoxWPProps): IFileDropBoxProps;
9
+ //# sourceMappingURL=convertFileDropWPPropsToFileDropBoxProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertFileDropWPPropsToFileDropBoxProps.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/FileDropBox/convertFileDropWPPropsToFileDropBoxProps.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7E;;;;;GAKG;AACH,wBAAgB,wCAAwC,CAAC,UAAU,EAAE,mBAAmB,GAAG,iBAAiB,CAqB3G"}
@@ -0,0 +1,33 @@
1
+ import { convertFileSizeStringToNum } from '../../../../logic/Math/convertFileSizeStringToNum';
2
+ import { makeid } from '../../../../logic/Strings/guids';
3
+ import { getMIMEObjectsFromSelectedTypes, Specific_MIME_Objects } from './fps-FileDropTypes';
4
+ /**
5
+ * This will convert wpProps to IFileDropBoxProps
6
+ * Be sure to add your fileNameHandleBars object in the web part similar to SPFx-Image-Form
7
+ * @param properties
8
+ * @returns
9
+ */
10
+ export function convertFileDropWPPropsToFileDropBoxProps(properties) {
11
+ const { maxUploadCount, fileMaxSize, fileWarnSize, fileTypes, defaultPasteMode, } = properties;
12
+ const result = {
13
+ setParentFilesData: null,
14
+ fileTypes: [],
15
+ refreshId: makeid(5),
16
+ resetId: makeid(5),
17
+ useDropBox: true,
18
+ fileNameHandleBars: null, // Add this locally with function similar to buildPhotoFormFileNameHandleBarsDef in SPFx-Image-Form
19
+ };
20
+ if (maxUploadCount)
21
+ result.maxUploadCount = parseInt(maxUploadCount);
22
+ if (fileMaxSize)
23
+ result.fileMaxSize = convertFileSizeStringToNum(fileMaxSize);
24
+ if (fileWarnSize)
25
+ result.fileWarnSize = convertFileSizeStringToNum(fileWarnSize);
26
+ if (defaultPasteMode === true)
27
+ result.useDropBox = false;
28
+ if (fileTypes && fileTypes.length > 0) {
29
+ result.fileTypes = getMIMEObjectsFromSelectedTypes(Specific_MIME_Objects, properties.fileTypes);
30
+ }
31
+ return result;
32
+ }
33
+ //# sourceMappingURL=convertFileDropWPPropsToFileDropBoxProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertFileDropWPPropsToFileDropBoxProps.js","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/FileDropBox/convertFileDropWPPropsToFileDropBoxProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;AAC/F,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,+BAA+B,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAI7F;;;;;GAKG;AACH,MAAM,UAAU,wCAAwC,CAAC,UAA+B;IAEtF,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,gBAAgB,GAAG,GAAG,UAAU,CAAC;IAE/F,MAAM,MAAM,GAAsB;QAChC,kBAAkB,EAAE,IAAW;QAC/B,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;QAClB,UAAU,EAAE,IAAI;QAChB,kBAAkB,EAAE,IAAsC,EAAE,mGAAmG;KAChK,CAAC;IAEF,IAAI,cAAc;QAAE,MAAM,CAAC,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC;IACrE,IAAI,WAAW;QAAE,MAAM,CAAC,WAAW,GAAG,0BAA0B,CAAC,WAAW,CAAC,CAAC;IAC9E,IAAI,YAAY;QAAE,MAAM,CAAC,YAAY,GAAG,0BAA0B,CAAC,YAAY,CAAC,CAAC;IACjF,IAAI,gBAAgB,KAAK,IAAI;QAAE,MAAM,CAAC,UAAU,GAAG,KAAK,CAAC;IACzD,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;QACrC,MAAM,CAAC,SAAS,GAAG,+BAA+B,CAAC,qBAAqB,EAAE,UAAU,CAAC,SAAqB,CAAC,CAAC;KAC7G;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,69 @@
1
+ export type IMIMEType_ImageCommon = 'image/png' | 'image/jpeg' | 'image/gif' | 'image/bmp';
2
+ export type IMIMEType_ImageBrowser = 'image/webp';
3
+ export type IMIMEType_Image = IMIMEType_ImageCommon | IMIMEType_ImageBrowser;
4
+ export type IMIMEType_PDF = 'application/pdf';
5
+ /**
6
+ * 2024-11-15: Notes for Code file types which may need to be addressed in a custom manner
7
+ * HTML shows up as text,
8
+ * .ts shows up (during my testing) as video/vnd.dlna.mpeg-tts instead of: text/typescript
9
+ */
10
+ export type IMIMEType_CodeCommon = 'text/javascript' | 'application/json' | 'text/typescript';
11
+ export type IMIMEType_CodeRare = '';
12
+ export type IMIMEType_EMAIL = 'text/calendar';
13
+ export type IMIMEType_Word = 'application/msword' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
14
+ export type IMIMEType_Excel = 'application/vnd.ms-excel' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
15
+ export type IMIMEType_PPT = 'application/vnd.ms-powerpoint' | 'application/vnd.openxmlformats-officedocument.presentationml.presentation';
16
+ export type IMIMEType_Text = 'text/plain' | 'text/csv' | 'text/html';
17
+ export type IMIMEType_RichText = 'application/rtf' | 'application/vnd.oasis.opendocument.text';
18
+ export type IMIMEType_Open = 'application/vnd.oasis.opendocument.spreadsheet';
19
+ export type IMIMEType_Compressed = 'application/zip' | 'application/x-7z-compressed' | 'application/x-rar-compressed' | 'application/x-zip-compressed' | 'application/x-compressed';
20
+ export type IMIMETYPE_Exe = 'application/x-msdownload';
21
+ export type IMIMEType_Video = 'video/mp4' | 'video/webm' | 'video/ogg' | 'video/quicktime' | 'video/x-msvideo' | 'video/mpeg' | 'video/vnd.dlna.mpeg-tts';
22
+ export type IMIMEType_ANY = '*/*';
23
+ export type IMIMEType_Specific = IMIMEType_Image | IMIMEType_PDF | IMIMEType_CodeCommon | IMIMEType_EMAIL | IMIMEType_Word | IMIMEType_Excel | IMIMEType_PPT | IMIMEType_Text | IMIMEType_RichText | IMIMEType_Open | IMIMEType_Compressed | IMIMEType_Video;
24
+ export type IMIMEType_Valid = IMIMEType_Specific | IMIMEType_ANY;
25
+ export type IMIMETypeType = 'Image' | 'Office' | 'OpenDoc' | 'Video' | 'Text' | 'Code' | 'Compressed' | 'Other' | 'All';
26
+ export type IMIMETypeUsage = 'Common' | 'Browser' | 'Rare' | 'Legacy' | 'All';
27
+ export interface IMIMETypesObject {
28
+ name: string;
29
+ type: IMIMETypeType;
30
+ usage: IMIMETypeUsage;
31
+ types: IMIMEType_Specific[];
32
+ }
33
+ export declare const MIMETypes_ImageCommon: IMIMETypesObject;
34
+ export declare const MIMETypes_ImageBrowser: IMIMETypesObject;
35
+ export declare const MIMETypes_PDF: IMIMETypesObject;
36
+ export type IOffice365SpecificMIMENames = 'Word' | 'Excel' | 'PowerPoint';
37
+ export declare const Office365MIMENAMES: IOffice365SpecificMIMENames[];
38
+ export declare const MIMETypes_MSFTWord: IMIMETypesObject;
39
+ export declare const MIMETypes_MSFTExcel: IMIMETypesObject;
40
+ export declare const MIMETypes_MSFTPPT: IMIMETypesObject;
41
+ export declare const MIMETypes_EMAIL: IMIMETypesObject;
42
+ export declare const Office365MIMENAME = "Office 365";
43
+ export declare const MIMETypes_MSFTOffice: IMIMETypesObject;
44
+ export declare const MIMETypes_Text: IMIMETypesObject;
45
+ export declare const MIMETypes_RichTextCommon: IMIMETypesObject;
46
+ export declare const MIMETypes_RichTextRare: IMIMETypesObject;
47
+ export declare const MIMETypes_Open: IMIMETypesObject;
48
+ export declare const MIMETypes_Compressed: IMIMETypesObject;
49
+ export declare const MIMETypes_VideoCommon: IMIMETypesObject;
50
+ export declare const MIMETypes_VideoRare: IMIMETypesObject;
51
+ export declare const MIMETypes_CodeCommon: IMIMETypesObject;
52
+ export declare const MIMETypes_All: IMIMETypesObject;
53
+ export declare const Common_MIME_Objects: IMIMETypesObject[];
54
+ export declare const Other_MIME_Objects: IMIMETypesObject[];
55
+ export declare const Specific_MIME_Objects: IMIMETypesObject[];
56
+ export interface IFPSPropertyPaneDropdownOption {
57
+ key: string;
58
+ text: string;
59
+ }
60
+ export declare const Specific_MIME_DropdownOptions: IFPSPropertyPaneDropdownOption[];
61
+ export declare function getMIMEObjectsFromSelectedTypes(objects: IMIMETypesObject[], names: string[]): IMIMETypesObject[];
62
+ export declare function getMIMETypesFromObjects(objects: IMIMETypesObject[]): IMIMEType_Specific[];
63
+ export declare function getMIMETypesProp(objects: IMIMETypesObject[], prop: keyof IMIMETypesObject): string[];
64
+ export declare function getMIMEObjectPropFromType(fileType: IMIMEType_Specific, prop: keyof IMIMETypesObject, notFound: 'fileType' | 'null'): IMIMEType_Specific;
65
+ export declare const Common_MIME_TYPES: IMIMEType_Specific[];
66
+ export declare const Other_MIME_TYPES: IMIMEType_Specific[];
67
+ export declare const Specific_MIME_TYPES: IMIMEType_Specific[];
68
+ export declare function isMimeTypeValid(type: IMIMEType_Specific): boolean;
69
+ //# sourceMappingURL=fps-FileDropTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fps-FileDropTypes.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/FileDropBox/fps-FileDropTypes.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,CAAC;AAC3F,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAE;AACnD,MA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Browser = {
8
+ name: 'Other Images',
9
+ type: 'Image',
10
+ usage: 'Browser',
11
+ types: ['image/webp'],
12
+ };
13
+ export const MIMETypes_PDF = {
14
+ name: 'PDF',
15
+ type: 'Other',
16
+ usage: 'Common',
17
+ types: ['application/pdf'],
18
+ };
19
+ export const Office365MIMENAMES = ['Word', 'Excel', 'PowerPoint'];
20
+ export const MIMETypes_MSFTWord = {
21
+ name: 'Word',
22
+ type: 'Office',
23
+ usage: 'Common',
24
+ types: ['application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'],
25
+ };
26
+ export const MIMETypes_MSFTExcel = {
27
+ name: 'Excel',
28
+ type: 'Office',
29
+ usage: 'Common',
30
+ types: ['application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
31
+ };
32
+ export const MIMETypes_MSFTPPT = {
33
+ name: 'PowerPoint',
34
+ type: 'Office',
35
+ usage: 'Common',
36
+ types: ['application/vnd.ms-powerpoint', 'application/vnd.openxmlformats-officedocument.presentationml.presentation'],
37
+ };
38
+ export const MIMETypes_EMAIL = {
39
+ name: 'Email',
40
+ type: 'Office',
41
+ usage: 'Common',
42
+ types: ['text/calendar'],
43
+ };
44
+ export const Office365MIMENAME = 'Office 365';
45
+ export const MIMETypes_MSFTOffice = {
46
+ name: Office365MIMENAME,
47
+ type: 'Office',
48
+ usage: 'Common',
49
+ types: [...MIMETypes_MSFTWord.types, ...MIMETypes_MSFTExcel.types, ...MIMETypes_MSFTPPT.types],
50
+ };
51
+ export const MIMETypes_Text = {
52
+ name: 'Text',
53
+ type: 'Text',
54
+ usage: 'Common',
55
+ types: ['text/plain', 'text/csv', 'text/html'],
56
+ };
57
+ export const MIMETypes_RichTextCommon = {
58
+ name: 'RichText',
59
+ type: 'Text',
60
+ usage: 'Common',
61
+ types: ['application/rtf',],
62
+ };
63
+ export const MIMETypes_RichTextRare = {
64
+ name: 'Other RichText',
65
+ type: 'Text',
66
+ usage: 'Rare',
67
+ types: ['application/vnd.oasis.opendocument.text'],
68
+ };
69
+ export const MIMETypes_Open = {
70
+ name: 'Open Doc',
71
+ type: 'OpenDoc',
72
+ usage: 'Rare',
73
+ types: ['application/vnd.oasis.opendocument.spreadsheet'],
74
+ };
75
+ export const MIMETypes_Compressed = {
76
+ name: 'Compressed',
77
+ type: 'Compressed',
78
+ usage: 'Common',
79
+ types: ['application/zip', 'application/x-zip-compressed', 'application/x-7z-compressed', 'application/x-rar-compressed', 'application/x-compressed'],
80
+ };
81
+ export const MIMETypes_VideoCommon = {
82
+ name: 'Common Video',
83
+ type: 'Video',
84
+ usage: 'Common',
85
+ types: ['video/mp4', 'video/quicktime', 'video/mpeg'],
86
+ };
87
+ export const MIMETypes_VideoRare = {
88
+ name: 'Other Video',
89
+ type: 'Video',
90
+ usage: 'Rare',
91
+ types: ['video/webm', 'video/ogg', 'video/x-msvideo',],
92
+ };
93
+ // 'text/javascript' | 'application/json'; // HTML shows up as text, .ts shows up as video/vnd.dlna.mpeg-tts instead of text/typescript
94
+ export const MIMETypes_CodeCommon = {
95
+ name: 'Common Code',
96
+ type: 'Code',
97
+ usage: 'Common',
98
+ types: ['text/javascript', 'application/json', 'text/typescript'],
99
+ };
100
+ export const MIMETypes_All = {
101
+ name: 'Generic-All',
102
+ type: 'All',
103
+ usage: 'All',
104
+ types: ['*/*'],
105
+ };
106
+ // Define an object for accepted MIME types
107
+ export const Common_MIME_Objects = [
108
+ MIMETypes_ImageCommon,
109
+ MIMETypes_PDF,
110
+ MIMETypes_MSFTWord,
111
+ MIMETypes_MSFTExcel,
112
+ MIMETypes_MSFTPPT,
113
+ MIMETypes_MSFTOffice,
114
+ MIMETypes_Text,
115
+ MIMETypes_RichTextCommon,
116
+ MIMETypes_Open,
117
+ MIMETypes_Compressed,
118
+ MIMETypes_VideoCommon,
119
+ MIMETypes_CodeCommon,
120
+ ];
121
+ // Define an object for accepted MIME types
122
+ export const Other_MIME_Objects = [
123
+ MIMETypes_ImageBrowser,
124
+ MIMETypes_EMAIL,
125
+ MIMETypes_RichTextRare,
126
+ MIMETypes_VideoRare,
127
+ ];
128
+ export const Specific_MIME_Objects = [...Common_MIME_Objects, ...Other_MIME_Objects];
129
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
130
+ function getDropDownOptionArray(objects, keyProp, textProp = keyProp) {
131
+ const results = [];
132
+ objects.map(obj => { results.push({ key: obj[keyProp], text: obj[textProp] }); });
133
+ return results;
134
+ }
135
+ export const Specific_MIME_DropdownOptions = getDropDownOptionArray(Specific_MIME_Objects, 'name');
136
+ export function getMIMEObjectsFromSelectedTypes(objects, names) {
137
+ const results = [];
138
+ objects.map(obj => { if (names.indexOf(obj.name) > -1)
139
+ results.push(obj); });
140
+ return results;
141
+ }
142
+ export function getMIMETypesFromObjects(objects) {
143
+ const results = [];
144
+ objects.map(obj => { results.push(...obj.types); });
145
+ return results;
146
+ }
147
+ export function getMIMETypesProp(objects, prop) {
148
+ const results = [];
149
+ objects.map(obj => { results.push(obj[prop]); });
150
+ return results;
151
+ }
152
+ export function getMIMEObjectPropFromType(fileType, prop, notFound) {
153
+ let results = notFound === 'fileType' ? fileType : null;
154
+ Specific_MIME_Objects.map(obj => { if (obj.types.indexOf(fileType) > -1)
155
+ results = obj[prop]; });
156
+ return results;
157
+ }
158
+ // Define an object for accepted MIME types
159
+ export const Common_MIME_TYPES = getMIMETypesFromObjects(Common_MIME_Objects);
160
+ // Define an object for accepted MIME types
161
+ export const Other_MIME_TYPES = getMIMETypesFromObjects(Other_MIME_Objects);
162
+ // Define an object for accepted MIME types
163
+ export const Specific_MIME_TYPES = [...Common_MIME_TYPES, ...Other_MIME_TYPES];
164
+ // Convert VALID_MIME_TYPES to a Set for fast lookup
165
+ const VALID_MIME_TYPES_SET = new Set(Specific_MIME_TYPES);
166
+ export function isMimeTypeValid(type) {
167
+ return VALID_MIME_TYPES_SET.has(type);
168
+ }
169
+ //# sourceMappingURL=fps-FileDropTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":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AO,CAAC,IAAI,CAAE,GAAG,CAAE,IAAa,CAAE,CAAG,CAAA,CAAA,CAAC,CAAC,CAAC;IAC9D,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAE,QAA4B,EAAE,IAA4B,EAAE,QAA6B;IAClI,IAAI,OAAO,GAAuB,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAqC,CAAC;IAC7G,qBAAqB,CAAC,GAAG,CAAE,GAAG,CAAC,EAAE,GAAG,IAAK,GAAG,CAAC,KAAK,CAAC,OAAO,CAAE,QAA8B,CAAE,GAAG,CAAC,CAAC;QAAG,OAAO,GAAG,GAAG,CAAE,IAAa,CAAE,CAAA,CAAC,CAAC,CAAC,CAAC;IACtI,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,2CAA2C;AAC3C,MAAM,CAAC,MAAM,iBAAiB,GAAyB,uBAAuB,CAAE,mBAAmB,CAAE,CAAC;AAEtG,2CAA2C;AAC3C,MAAM,CAAC,MAAM,gBAAgB,GAAyB,uBAAuB,CAAE,kBAAkB,CAAE,CAAC;AAEpG,2CAA2C;AAC3C,MAAM,CAAC,MAAM,mBAAmB,GAAyB,CAAE,GAAG,iBAAiB,EAAE,GAAG,gBAAgB,CAAE,CAAC;AAEvG,oDAAoD;AACpD,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC,mBAAmB,CAAC,CAAC;AAE1D,MAAM,UAAU,eAAe,CAAC,IAAwB;IACtD,OAAO,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This will handle some common handlebars updates for file names
3
+ * @param fileNameHandleBarStr
4
+ * @param originalNameNoExt
5
+ * @param maxLength
6
+ * @param fileExtension
7
+ * @returns
8
+ */
9
+ export declare function processCommonFileNameHandleBars(fileNameHandleBarStr: string, originalNameNoExt: string, maxLength: number, fileExtension: string): string;
10
+ //# sourceMappingURL=processCommonFileNameHandleBars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processCommonFileNameHandleBars.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/FileDropBox/processCommonFileNameHandleBars.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAAC,oBAAoB,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAiBzJ"}
@@ -0,0 +1,24 @@
1
+ import { makeTheTimeObject } from "../../../../logic/Time/timeObject";
2
+ /**
3
+ * This will handle some common handlebars updates for file names
4
+ * @param fileNameHandleBarStr
5
+ * @param originalNameNoExt
6
+ * @param maxLength
7
+ * @param fileExtension
8
+ * @returns
9
+ */
10
+ export function processCommonFileNameHandleBars(fileNameHandleBarStr, originalNameNoExt, maxLength, fileExtension) {
11
+ const theTime = makeTheTimeObject('');
12
+ fileNameHandleBarStr = fileNameHandleBarStr.replace(`{{Original}}`, originalNameNoExt ? originalNameNoExt : '');
13
+ fileNameHandleBarStr = fileNameHandleBarStr.replace(`{{Today}}`, theTime.dayYYYYMMDD);
14
+ fileNameHandleBarStr = fileNameHandleBarStr.replace(`{{Now}}`, `${theTime.dayYYYYMMDD}_${theTime.hour}-${theTime.minute}`);
15
+ // remove special characters from the filename: https://github.com/fps-solutions/FPS-Photo-Form/issues/9, https://github.com/fps-solutions/FPS-Photo-Form/issues/81
16
+ // eslint-disable-next-line no-useless-escape
17
+ fileNameHandleBarStr = fileNameHandleBarStr.replace(/[\\/:*?\'"<>|#&]/g, '');
18
+ if (fileNameHandleBarStr.length > maxLength)
19
+ fileNameHandleBarStr = `${fileNameHandleBarStr.substring(0, maxLength)}...and more_`;
20
+ if (fileExtension)
21
+ fileNameHandleBarStr += `.${fileExtension}`;
22
+ return fileNameHandleBarStr;
23
+ }
24
+ //# sourceMappingURL=processCommonFileNameHandleBars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processCommonFileNameHandleBars.js","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/FileDropBox/processCommonFileNameHandleBars.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE;;;;;;;GAOG;AACH,MAAM,UAAU,+BAA+B,CAAC,oBAA4B,EAAE,iBAAyB,EAAE,SAAiB,EAAE,aAAqB;IAE/I,MAAM,OAAO,GAAa,iBAAiB,CAAC,EAAE,CAAC,CAAC;IAEhD,oBAAoB,GAAG,oBAAoB,CAAC,OAAO,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChH,oBAAoB,GAAG,oBAAoB,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,WAAqB,CAAC,CAAC;IAChG,oBAAoB,GAAG,oBAAoB,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAE3H,oKAAoK;IACpK,6CAA6C;IAC7C,oBAAoB,GAAG,oBAAoB,CAAC,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IAE7E,IAAI,oBAAoB,CAAC,MAAM,GAAG,SAAS;QAAE,oBAAoB,GAAG,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC;IAElI,IAAI,aAAa;QAAE,oBAAoB,IAAI,IAAI,aAAa,EAAE,CAAC;IAE/D,OAAO,oBAAoB,CAAC;AAC9B,CAAC"}
@@ -26,7 +26,7 @@ export declare function getDomain2Reg(url: string, regex1: RegExp, regex2: RegEx
26
26
  Explanation of the regex:
27
27
 
28
28
  https:\/\/ matches the https:// part of the URL.
29
- [^.]+ matches one or more characters that are not a dot, capturing the subdomain part (e.g., fuzzypawstech).
29
+ [^.]+ matches one or more characters that are not a dot, capturing the subdomain part (e.g., tenant).
30
30
  \.sharepoint\.com\/sites\/ matches .sharepoint.com/sites/.
31
31
  ([^\/]+) captures one or more characters that are not a forward slash (/), representing the site collection name.
32
32
  i is the case-insensitive flag.
@@ -38,9 +38,17 @@ export declare function getDomain2Reg(url: string, regex1: RegExp, regex2: RegEx
38
38
  * NOTE: There is a better function for getting full absolute value of current site: getSiteCollectionUrlFromLink
39
39
  * You can also get it directly using the constant: CurrentSiteAbsolute
40
40
  *
41
+ * url = 'https://tenant.sharepoint.com/sites/XYZ/MoreStuff'
42
+ * output: XYZ
43
+ *
41
44
  * @param url
42
45
  * @returns
43
46
  */
44
47
  export declare function getCollectionUrl(url: string): string;
48
+ /**
49
+ *
50
+ * @param url
51
+ * @returns
52
+ */
45
53
  export declare function getTeamsUrl(url: string): string;
46
54
  //# sourceMappingURL=getSPOUrl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSPOUrl.d.ts","sourceRoot":"","sources":["../../../src/logic/Links/getSPOUrl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAUjF;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAOpD;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAO/C"}
1
+ {"version":3,"file":"getSPOUrl.d.ts","sourceRoot":"","sources":["../../../src/logic/Links/getSPOUrl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAUjF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAOpD;AAGD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAO/C"}
@@ -33,7 +33,7 @@ export function getDomain2Reg(url, regex1, regex2) {
33
33
  Explanation of the regex:
34
34
 
35
35
  https:\/\/ matches the https:// part of the URL.
36
- [^.]+ matches one or more characters that are not a dot, capturing the subdomain part (e.g., fuzzypawstech).
36
+ [^.]+ matches one or more characters that are not a dot, capturing the subdomain part (e.g., tenant).
37
37
  \.sharepoint\.com\/sites\/ matches .sharepoint.com/sites/.
38
38
  ([^\/]+) captures one or more characters that are not a forward slash (/), representing the site collection name.
39
39
  i is the case-insensitive flag.
@@ -45,6 +45,9 @@ export function getDomain2Reg(url, regex1, regex2) {
45
45
  * NOTE: There is a better function for getting full absolute value of current site: getSiteCollectionUrlFromLink
46
46
  * You can also get it directly using the constant: CurrentSiteAbsolute
47
47
  *
48
+ * url = 'https://tenant.sharepoint.com/sites/XYZ/MoreStuff'
49
+ * output: XYZ
50
+ *
48
51
  * @param url
49
52
  * @returns
50
53
  */
@@ -56,6 +59,11 @@ export function getCollectionUrl(url) {
56
59
  // 2024-09-22: Changed return from null to ''
57
60
  return url ? getDomain2Reg(url, regex, regex2) : '';
58
61
  }
62
+ /**
63
+ *
64
+ * @param url
65
+ * @returns
66
+ */
59
67
  export function getTeamsUrl(url) {
60
68
  const regex = /https:\/\/[^.]+\.sharepoint\.com\/teams\/([^/]+)/i;
61
69
  const regex2 = /\/teams\/([^/]+)/;
@@ -1 +1 @@
1
- {"version":3,"file":"getSPOUrl.js","sourceRoot":"","sources":["../../../src/logic/Links/getSPOUrl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,UAAU,aAAa,CAAC,GAAW,EAAE,MAAc,EAAE,MAAc;IAEvE,M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,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,KAAK;QAAE,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;IAE3B,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAEjC,8CAA8C;IAC9C,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAEjC,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAW;IAC1C,MAAM,KAAK,GAAG,mDAAmD,CAAC;IAClE,MAAM,MAAM,GAAG,kBAAkB,CAAC;IAClC,IAAI,GAAG;QAAE,OAAO,aAAa,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;IAElD,8CAA8C;IAC9C,OAAO,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACtD,CAAC;AAGD;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,GAAW;IACrC,MAAM,KAAK,GAAG,mDAAmD,CAAC;IAClE,MAAM,MAAM,GAAG,kBAAkB,CAAC;IAClC,IAAI,GAAG;QAAE,OAAO,aAAa,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;IAElD,8CAA8C;IAC9C,OAAO,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACtD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ISourceProps } from '../../../components/molecules/source-props/ISourceProps';
2
+ import { IFpsItemsReturn } from '../../../components/molecules/process-results/IFpsItemsReturn';
3
+ /**
4
+ * getSourceFieldsAPI will get all the fields information for a list
5
+ * import { getSourceFieldsAPI, getSourceFieldByInternalNameOrTitleAPI } from '@mikezimm/fps-core-v7/lib/restAPIs/lists/fields/getSourceFieldsAPI';
6
+ *
7
+ * Replaces fetchFieldsD from pnp2
8
+ *
9
+ * @param sourceProps
10
+ * @param alertMe
11
+ * @param consoleLog
12
+ * @returns
13
+ */
14
+ export declare function getSourceFieldsAPI(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined, fieldNameTitle?: string): Promise<IFpsItemsReturn>;
15
+ //# sourceMappingURL=getSourceFieldsAPI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSourceFieldsAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/lists/fields/getSourceFieldsAPI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA+C,MAAM,yDAAyD,CAAC;AACpI,OAAO,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAKhG;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,EAAE,cAAc,GAAE,MAAW,GAAI,OAAO,CAAC,eAAe,CAAC,CAkC1L"}
@@ -0,0 +1,51 @@
1
+ import { doSpHttpFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/Sp/doSpHttpFetch';
2
+ import { SourcePropsNoListTitle, SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
3
+ import { check4This } from '../../../logic/Links/CheckSearch';
4
+ import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
5
+ import { getAbsoluteWebUrlFromSourceProps } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
6
+ /**
7
+ * getSourceFieldsAPI will get all the fields information for a list
8
+ * import { getSourceFieldsAPI, getSourceFieldByInternalNameOrTitleAPI } from '@mikezimm/fps-core-v7/lib/restAPIs/lists/fields/getSourceFieldsAPI';
9
+ *
10
+ * Replaces fetchFieldsD from pnp2
11
+ *
12
+ * @param sourceProps
13
+ * @param alertMe
14
+ * @param consoleLog
15
+ * @returns
16
+ */
17
+ export async function getSourceFieldsAPI(sourceProps, alertMe, consoleLog, fieldNameTitle = '') {
18
+ // const { performanceSettings } = sourceProps;
19
+ // 2024-09-15: Change to null as any to pass linting when migrating from fps-library-v2
20
+ // const fetchOp = performanceSettings ? startPerformOpV2( performanceSettings ) : null as any;
21
+ const { listTitle, orderBy, restFilter, } = sourceProps;
22
+ let { selectThese, } = sourceProps;
23
+ // 2024-12-05: Added this because some places like PivotTiles had absoluteWebUrl in webUrl prop... so just taking care of differences
24
+ const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
25
+ if (!useUrl || !listTitle) {
26
+ // NO WebURL... Throw Alert
27
+ if (alertMe === true)
28
+ alert(`${listTitle ? listTitle : SourcePropsNoListTitle} ${SourcePropsNoWebUrl}`);
29
+ const results = createErrorFpsListReturn(useUrl, listTitle);
30
+ return results;
31
+ }
32
+ if (!selectThese || selectThese.length === 0)
33
+ selectThese = ['*'];
34
+ let fetchAPI = `${useUrl}/_api/web/lists/getbytitle('${listTitle}')/fields?`;
35
+ if (selectThese)
36
+ fetchAPI += `&$select= ${selectThese.join(',')}`;
37
+ if (orderBy)
38
+ fetchAPI += `&$orderby=${orderBy}`;
39
+ if (restFilter)
40
+ fetchAPI += `&$filter= ${restFilter}`;
41
+ const orderBys = [];
42
+ if (orderBy)
43
+ orderBys.push(`${orderBy.prop} ${orderBy.order}`);
44
+ const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.fpsSpService, '', alertMe, consoleLog, fieldNameTitle ? 'field' : 'fields', null);
45
+ if (check4This(`fpsShowFetchResults=true`) === true) {
46
+ console.log(`fps-core-v7 COMPLETE: getSourceFieldsAPI ~ 47`, result);
47
+ }
48
+ ;
49
+ return result;
50
+ }
51
+ //# sourceMappingURL=getSourceFieldsAPI.js.map
@@ -0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rF,IAAK,WAAW;QAAG,QAAQ,IAAI,aAAa,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACpE,IAAK,OAAO;QAAG,QAAQ,IAAI,aAAa,OAAO,EAAE,CAAC;IAClD,IAAK,UAAU;QAAG,QAAQ,IAAI,aAAa,UAAU,EAAE,CAAC;IAExD,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,IAAK,OAAO;QAAG,QAAQ,CAAC,IAAI,CAAE,GAAI,OAAO,CAAC,IAAK,IAAK,OAAO,CAAC,KAAM,EAAE,CAAE,CAAE;IAExE,MAAM,MAAM,GAAG,MAAM,2BAA2B,CAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,YAAY,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAE,CAAC;IAElK,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,+CAA+C,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAEpI,OAAO,MAAM,CAAC;AAEhB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ISourceProps } from '../../../components/molecules/source-props/ISourceProps';
2
+ import { IFpsItemsReturn } from '../../../components/molecules/process-results/IFpsItemsReturn';
3
+ /**
4
+ * getSourceContentTypesAPI will get all the content types information for a list or site
5
+ * import { getSourceContentTypesAPI } from '@mikezimm/fps-core-v7/lib/restAPIs/lists/types/getSourceContentTypesAPI';
6
+ *
7
+ * NOTE: In order to get site content types, just remove the listTitle from sourceProps
8
+ *
9
+ * @param sourceProps
10
+ * @param alertMe
11
+ * @param consoleLog
12
+ * @returns
13
+ */
14
+ export declare function getSourceContentTypesAPI(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined, contentTypeId?: string): Promise<IFpsItemsReturn>;
15
+ //# sourceMappingURL=getSourceContentTypesAPI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSourceContentTypesAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/lists/types/getSourceContentTypesAPI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAKhG;;;;;;;;;;GAUG;AAEH,wBAAsB,wBAAwB,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,EAAE,aAAa,GAAE,MAAW,GAAI,OAAO,CAAC,eAAe,CAAC,CAuC/L"}
@@ -0,0 +1,53 @@
1
+ import { doSpHttpFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/Sp/doSpHttpFetch';
2
+ import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
3
+ import { check4This } from '../../../logic/Links/CheckSearch';
4
+ import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
5
+ import { getAbsoluteWebUrlFromSourceProps } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
6
+ /**
7
+ * getSourceContentTypesAPI will get all the content types information for a list or site
8
+ * import { getSourceContentTypesAPI } from '@mikezimm/fps-core-v7/lib/restAPIs/lists/types/getSourceContentTypesAPI';
9
+ *
10
+ * NOTE: In order to get site content types, just remove the listTitle from sourceProps
11
+ *
12
+ * @param sourceProps
13
+ * @param alertMe
14
+ * @param consoleLog
15
+ * @returns
16
+ */
17
+ export async function getSourceContentTypesAPI(sourceProps, alertMe, consoleLog, contentTypeId = '') {
18
+ // const { performanceSettings } = sourceProps;
19
+ // 2024-09-15: Change to null as any to pass linting when migrating from fps-library-v2
20
+ // const fetchOp = performanceSettings ? startPerformOpV2( performanceSettings ) : null as any;
21
+ const { listTitle, orderBy, restFilter, } = sourceProps;
22
+ let { selectThese, } = sourceProps;
23
+ // 2024-12-05: Added this because some places like PivotTiles had absoluteWebUrl in webUrl prop... so just taking care of differences
24
+ const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
25
+ if (!useUrl) {
26
+ // NO WebURL... Throw Alert
27
+ if (alertMe === true)
28
+ alert(`${SourcePropsNoWebUrl}`);
29
+ const results = createErrorFpsListReturn(useUrl, listTitle);
30
+ return results;
31
+ }
32
+ if (!selectThese || selectThese.length === 0)
33
+ selectThese = ['*'];
34
+ let fetchAPI = listTitle ? `${useUrl}/_api/web/lists/getbytitle('${listTitle}')/contenttypes` : `${useUrl}/_api/web/contenttypes`;
35
+ fetchAPI = contentTypeId ? `${fetchAPI}/getbyid('${contentTypeId}')?`
36
+ : `${fetchAPI}?`;
37
+ if (selectThese)
38
+ fetchAPI += `&$select= ${selectThese.join(',')}`;
39
+ if (!contentTypeId && orderBy)
40
+ fetchAPI += `&$orderby=${orderBy}`;
41
+ if (!contentTypeId && restFilter)
42
+ fetchAPI += `&$filter= ${restFilter}`;
43
+ const orderBys = [];
44
+ if (orderBy)
45
+ orderBys.push(`${orderBy.prop} ${orderBy.order}`);
46
+ const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.fpsSpService, '', alertMe, consoleLog, contentTypeId ? 'type' : 'types', null);
47
+ if (check4This(`fpsShowFetchResults=true`) === true) {
48
+ console.log(`fps-core-v7 COMPLETE: getSourceViewsAPI ~ 47`, result);
49
+ }
50
+ ;
51
+ return result;
52
+ }
53
+ //# sourceMappingURL=getSourceContentTypesAPI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSourceContentTypesAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/types/getSourceContentTypesAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAgB,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAE5G,OAAO,EAAE,UAAU,EAA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,CAAC;IACpE,IAAK,CAAC,aAAa,IAAI,UAAU;QAAG,QAAQ,IAAI,aAAa,UAAU,EAAE,CAAC;IAE1E,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,IAAK,OAAO;QAAG,QAAQ,CAAC,IAAI,CAAE,GAAI,OAAO,CAAC,IAAK,IAAK,OAAO,CAAC,KAAM,EAAE,CAAE,CAAE;IAExE,MAAM,MAAM,GAAG,MAAM,2BAA2B,CAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,YAAY,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,IAAI,CAAE,CAAC;IAE/J,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,8CAA8C,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAEnI,OAAO,MAAM,CAAC;AAEhB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ISourceProps } from '../../../components/molecules/source-props/ISourceProps';
2
+ import { IFpsItemsReturn } from '../../../components/molecules/process-results/IFpsItemsReturn';
3
+ /**
4
+ * getSourceViewsAPI will get all the views information for a list
5
+ * import { getSourceViewsAPI, getSourceViewByTitleOrIdAPI } from '@mikezimm/fps-core-v7/lib/restAPIs/lists/views/getSourceViewsAPI';
6
+ *
7
+ * Replaces fetchFieldsD from pnp2
8
+ *
9
+ * @param sourceProps
10
+ * @param alertMe
11
+ * @param consoleLog
12
+ * @returns
13
+ */
14
+ export declare function getSourceViewsAPI(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined, viewTitleOrId?: string): Promise<IFpsItemsReturn>;
15
+ //# sourceMappingURL=getSourceViewsAPI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSourceViewsAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/lists/views/getSourceViewsAPI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA+C,MAAM,yDAAyD,CAAC;AACpI,OAAO,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAKhG;;;;;;;;;;GAUG;AAEH,wBAAsB,iBAAiB,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,EAAE,aAAa,GAAE,MAAW,GAAI,OAAO,CAAC,eAAe,CAAC,CAkCxL"}
@@ -0,0 +1,51 @@
1
+ import { doSpHttpFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/Sp/doSpHttpFetch';
2
+ import { SourcePropsNoListTitle, SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
3
+ import { check4This } from '../../../logic/Links/CheckSearch';
4
+ import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
5
+ import { getAbsoluteWebUrlFromSourceProps } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
6
+ /**
7
+ * getSourceViewsAPI will get all the views information for a list
8
+ * import { getSourceViewsAPI, getSourceViewByTitleOrIdAPI } from '@mikezimm/fps-core-v7/lib/restAPIs/lists/views/getSourceViewsAPI';
9
+ *
10
+ * Replaces fetchFieldsD from pnp2
11
+ *
12
+ * @param sourceProps
13
+ * @param alertMe
14
+ * @param consoleLog
15
+ * @returns
16
+ */
17
+ export async function getSourceViewsAPI(sourceProps, alertMe, consoleLog, viewTitleOrId = '') {
18
+ // const { performanceSettings } = sourceProps;
19
+ // 2024-09-15: Change to null as any to pass linting when migrating from fps-library-v2
20
+ // const fetchOp = performanceSettings ? startPerformOpV2( performanceSettings ) : null as any;
21
+ const { listTitle, orderBy, restFilter, } = sourceProps;
22
+ let { selectThese, } = sourceProps;
23
+ // 2024-12-05: Added this because some places like PivotTiles had absoluteWebUrl in webUrl prop... so just taking care of differences
24
+ const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
25
+ if (!useUrl || !listTitle) {
26
+ // NO WebURL... Throw Alert
27
+ if (alertMe === true)
28
+ alert(`${listTitle ? listTitle : SourcePropsNoListTitle} ${SourcePropsNoWebUrl}`);
29
+ const results = createErrorFpsListReturn(useUrl, listTitle);
30
+ return results;
31
+ }
32
+ if (!selectThese || selectThese.length === 0)
33
+ selectThese = ['*'];
34
+ let fetchAPI = `${useUrl}/_api/web/lists/getbytitle('${listTitle}')/views?`;
35
+ if (selectThese)
36
+ fetchAPI += `&$select= ${selectThese.join(',')}`;
37
+ if (orderBy)
38
+ fetchAPI += `&$orderby=${orderBy}`;
39
+ if (restFilter)
40
+ fetchAPI += `&$filter= ${restFilter}`;
41
+ const orderBys = [];
42
+ if (orderBy)
43
+ orderBys.push(`${orderBy.prop} ${orderBy.order}`);
44
+ const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.fpsSpService, '', alertMe, consoleLog, viewTitleOrId ? 'view' : 'views', null);
45
+ if (check4This(`fpsShowFetchResults=true`) === true) {
46
+ console.log(`fps-core-v7 COMPLETE: getSourceViewsAPI ~ 47`, result);
47
+ }
48
+ ;
49
+ return result;
50
+ }
51
+ //# sourceMappingURL=getSourceViewsAPI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSourceViewsAPI.js","sourceRoot":"","sources":["../../../../src/restAPIs/lists/views/getSourceViewsAPI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAgB,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAEpI,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6EAA6E,CAAC;AACvH,OAAO,EAAE,gCAAgC,EAAE,MAAM,0DAA0D,CAAC;AAE5G;;;;;;;;;;GAUG;AAEH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAE,WAA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,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,IAAI,CAAE,CAAC;IAE/J,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,8CAA8C,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAEnI,OAAO,MAAM,CAAC;AAEhB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ISourceProps } from '../../../components/molecules/source-props/ISourceProps';
2
+ import { IFpsItemsReturn } from '../../../components/molecules/process-results/IFpsItemsReturn';
3
+ /**
4
+ * getClientSideWebParts will get all the fields information for a list
5
+ * import { getClientSideWebPartsI } from '@mikezimm/fps-core-v7/lib/restAPIs/sites/sites/getClientSideWebParts';
6
+ *
7
+ * Replaces fetchFieldsD from pnp2
8
+ *
9
+ * @param sourceProps
10
+ * @param alertMe
11
+ * @param consoleLog
12
+ * @returns
13
+ */
14
+ export declare function getClientSideWebParts(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined, webpartId?: string): Promise<IFpsItemsReturn>;
15
+ //# sourceMappingURL=getClientSideWebParts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getClientSideWebParts.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/sites/getClientSideWebParts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAKhG;;;;;;;;;;GAUG;AACH,wBAAsB,qBAAqB,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,EAAE,SAAS,GAAE,MAAW,GAAI,OAAO,CAAC,eAAe,CAAC,CA+BxL"}
@@ -0,0 +1,52 @@
1
+ import { doSpHttpFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/Sp/doSpHttpFetch';
2
+ import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
3
+ import { check4This } from '../../../logic/Links/CheckSearch';
4
+ import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
5
+ import { getSiteCollectionUrlFromLink } from '../../../logic/Strings/getSiteCollectionUrlFromLink';
6
+ /**
7
+ * getClientSideWebParts will get all the fields information for a list
8
+ * import { getClientSideWebPartsI } from '@mikezimm/fps-core-v7/lib/restAPIs/sites/sites/getClientSideWebParts';
9
+ *
10
+ * Replaces fetchFieldsD from pnp2
11
+ *
12
+ * @param sourceProps
13
+ * @param alertMe
14
+ * @param consoleLog
15
+ * @returns
16
+ */
17
+ export async function getClientSideWebParts(sourceProps, alertMe, consoleLog, webpartId = '') {
18
+ const { orderBy, restFilter, } = sourceProps;
19
+ let { selectThese, } = sourceProps;
20
+ // 2024-12-05: Added this because some places like PivotTiles had absoluteWebUrl in webUrl prop... so just taking care of differences
21
+ const useUrl = getSiteCollectionUrlFromLink(sourceProps.absoluteWebUrl ? sourceProps.absoluteWebUrl : sourceProps.webUrl ? sourceProps.webUrl : '');
22
+ if (!useUrl) {
23
+ // NO WebURL... Throw Alert
24
+ if (alertMe === true)
25
+ alert(`${SourcePropsNoWebUrl}`);
26
+ const results = createErrorFpsListReturn(useUrl, '');
27
+ return results;
28
+ }
29
+ if (!selectThese || selectThese.length === 0)
30
+ selectThese = ['*'];
31
+ let fetchAPI = `${useUrl}/_api/web/GetClientSideWebParts?`;
32
+ if (selectThese)
33
+ fetchAPI += `&$select= ${selectThese.join(',')}`;
34
+ if (orderBy)
35
+ fetchAPI += `&$orderby=${orderBy}`;
36
+ if (webpartId) {
37
+ fetchAPI += `&$filter=Id eq '${webpartId}'`;
38
+ }
39
+ else if (restFilter) {
40
+ fetchAPI += `&$filter= ${restFilter}`;
41
+ }
42
+ const orderBys = [];
43
+ if (orderBy)
44
+ orderBys.push(`${orderBy.prop} ${orderBy.order}`);
45
+ const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.fpsSpService, '', alertMe, consoleLog, webpartId ? 'webpart' : 'webparts', null);
46
+ if (check4This(`fpsShowFetchResults=true`) === true) {
47
+ console.log(`fps-core-v7 COMPLETE: getClientSideWebParts ~ 49`, result);
48
+ }
49
+ ;
50
+ return result;
51
+ }
52
+ //# sourceMappingURL=getClientSideWebParts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getClientSideWebParts.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/sites/getClientSideWebParts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAgB,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAE5G,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,6EAA6E,CAAC;AACvH,OAAO,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AAEnG;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAE,WAAyB,EAAE,OAA4B,EAAE,UAA+B,EAAE,YAAoB,EAAE;IAE3J,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,GAAG,WAAW,CAAC;IAC7C,IAAI,EAAE,WAAW,GAAG,GAAG,WAAW,CAAC;IAEnC,sIAAsI;IACtI,MAAM,MAAM,GAAW,4BAA4B,CAAE,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAE,CAAC;IAE9J,IAAK,CAAC,MAAM,EAAG;QACb,2BAA2B;QAC3B,IAAK,OAAO,KAAK,IAAI;YAAG,KAAK,CAAC,GAAG,mBAAmB,EAAE,CAAC,CAAC;QACxD,MAAM,OAAO,GAAoB,wBAAwB,CAAE,MAAM,EAAE,EAAE,CAAG,CAAC;QACzE,OAAO,OAAO,CAAC;KAChB;IAED,IAAK,CAAC,WAAW,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC;QAAG,WAAW,GAAG,CAAE,GAAG,CAAE,CAAC;IACtE,IAAI,QAAQ,GAAW,GAAG,MAAM,kCAAkC,CAAC;IACnE,IAAK,WAAW;QAAG,QAAQ,IAAI,aAAa,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACpE,IAAK,OAAO;QAAG,QAAQ,IAAI,aAAa,OAAO,EAAE,CAAC;IAClD,IAAK,SAAS,EAAG;QAAE,QAAQ,IAAI,mBAAmB,SAAS,GAAG,CAAC;KAAE;SAC5D,IAAK,UAAU,EAAG;QAAE,QAAQ,IAAI,aAAa,UAAU,EAAE,CAAC;KAAE;IAEjE,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,IAAK,OAAO;QAAG,QAAQ,CAAC,IAAI,CAAE,GAAI,OAAO,CAAC,IAAK,IAAK,OAAO,CAAC,KAAM,EAAE,CAAE,CAAE;IAExE,MAAM,MAAM,GAAG,MAAM,2BAA2B,CAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,YAAY,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,EAAE,IAAI,CAAE,CAAC;IAEjK,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,kDAAkD,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAEvI,OAAO,MAAM,CAAC;AAEhB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ISourceProps } from '../../../components/molecules/source-props/ISourceProps';
2
+ import { IFpsItemsReturn } from '../../../components/molecules/process-results/IFpsItemsReturn';
3
+ /**
4
+ * getSiteFeaturesAPI will get all the fields information for a list
5
+ * import { getSiteFeaturesAPI } from '@mikezimm/fps-core-v7/lib/restAPIs/sites/sites/getSiteFeaturesAPI';
6
+ *
7
+ * Replaces fetchFieldsD from pnp2
8
+ *
9
+ * @param sourceProps
10
+ * @param alertMe
11
+ * @param consoleLog
12
+ * @returns
13
+ */
14
+ export declare function getSiteFeaturesAPI(sourceProps: ISourceProps, alertMe: boolean | undefined, consoleLog: boolean | undefined, featureId?: string): Promise<IFpsItemsReturn>;
15
+ //# sourceMappingURL=getSiteFeaturesAPI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSiteFeaturesAPI.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/sites/getSiteFeaturesAPI.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAKhG;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,EAAE,SAAS,GAAE,MAAW,GAAI,OAAO,CAAC,eAAe,CAAC,CAmCrL"}
@@ -0,0 +1,55 @@
1
+ import { doSpHttpFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/Sp/doSpHttpFetch';
2
+ import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
3
+ import { check4This } from '../../../logic/Links/CheckSearch';
4
+ import { createErrorFpsListReturn } from '../../../components/molecules/process-results/createErrorFpsListItemsReturn';
5
+ import { getSiteCollectionUrlFromLink } from '../../../logic/Strings/getSiteCollectionUrlFromLink';
6
+ /**
7
+ * getSiteFeaturesAPI will get all the fields information for a list
8
+ * import { getSiteFeaturesAPI } from '@mikezimm/fps-core-v7/lib/restAPIs/sites/sites/getSiteFeaturesAPI';
9
+ *
10
+ * Replaces fetchFieldsD from pnp2
11
+ *
12
+ * @param sourceProps
13
+ * @param alertMe
14
+ * @param consoleLog
15
+ * @returns
16
+ */
17
+ export async function getSiteFeaturesAPI(sourceProps, alertMe, consoleLog, featureId = '') {
18
+ // const { performanceSettings } = sourceProps;
19
+ // 2024-09-15: Change to null as any to pass linting when migrating from fps-library-v2
20
+ // const fetchOp = performanceSettings ? startPerformOpV2( performanceSettings ) : null as any;
21
+ const { orderBy, restFilter, } = sourceProps;
22
+ let { selectThese, } = sourceProps;
23
+ // 2024-12-05: Added this because some places like PivotTiles had absoluteWebUrl in webUrl prop... so just taking care of differences
24
+ const useUrl = getSiteCollectionUrlFromLink(sourceProps.absoluteWebUrl ? sourceProps.absoluteWebUrl : sourceProps.webUrl ? sourceProps.webUrl : '');
25
+ if (!useUrl) {
26
+ // NO WebURL... Throw Alert
27
+ if (alertMe === true)
28
+ alert(`${SourcePropsNoWebUrl}`);
29
+ const results = createErrorFpsListReturn(useUrl, '');
30
+ return results;
31
+ }
32
+ if (!selectThese || selectThese.length === 0)
33
+ selectThese = ['*'];
34
+ let fetchAPI = `${useUrl}/_api/site/features?`;
35
+ if (selectThese)
36
+ fetchAPI += `&$select= ${selectThese.join(',')}`;
37
+ if (orderBy)
38
+ fetchAPI += `&$orderby=${orderBy}`;
39
+ if (featureId) {
40
+ fetchAPI += `&$filter=Id eq '${featureId}'`;
41
+ }
42
+ else if (restFilter) {
43
+ fetchAPI += `&$filter= ${restFilter}`;
44
+ }
45
+ const orderBys = [];
46
+ if (orderBy)
47
+ orderBys.push(`${orderBy.prop} ${orderBy.order}`);
48
+ const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'GET', sourceProps.fpsSpService, '', alertMe, consoleLog, featureId ? 'feature' : 'features', null);
49
+ if (check4This(`fpsShowFetchResults=true`) === true) {
50
+ console.log(`fps-core-v7 COMPLETE: getSiteFeaturesAPI ~ 53`, result);
51
+ }
52
+ ;
53
+ return result;
54
+ }
55
+ //# sourceMappingURL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tE,IAAI,QAAQ,GAAW,GAAG,MAAM,sBAAsB,CAAC;IACvD,IAAK,WAAW;QAAG,QAAQ,IAAI,aAAa,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACpE,IAAK,OAAO;QAAG,QAAQ,IAAI,aAAa,OAAO,EAAE,CAAC;IAClD,IAAK,SAAS,EAAG;QAAE,QAAQ,IAAI,mBAAmB,SAAS,GAAG,CAAC;KAAE;SAC5D,IAAK,UAAU,EAAG;QAAE,QAAQ,IAAI,aAAa,UAAU,EAAE,CAAC;KAAE;IAEjE,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,IAAK,OAAO;QAAG,QAAQ,CAAC,IAAI,CAAE,GAAI,OAAO,CAAC,IAAK,IAAK,OAAO,CAAC,KAAM,EAAE,CAAE,CAAE;IAExE,MAAM,MAAM,GAAG,MAAM,2BAA2B,CAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,YAAY,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,EAAE,IAAI,CAAE,CAAC;IAEjK,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,+CAA+C,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAEpI,OAAO,MAAM,CAAC;AAEhB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ISourceProps } from '../../../components/molecules/source-props/ISourceProps';
2
+ import { IFpsItemsReturn } from '../../../components/molecules/process-results/IFpsItemsReturn';
3
+ /**
4
+ * ensureUserOnWeb will ensure a user is on the web and return their User Info when they are
5
+ * import { ensureUserOnWeb } from '@mikezimm/fps-core-v7/lib/restAPIs/sites/users/ensureUserOnWeb';
6
+ *
7
+ * Replaces ensureUserInfoD and ensureUserHereD from pnp2
8
+ *
9
+ * @param sourceProps
10
+ * @param alertMe
11
+ * @param consoleLog
12
+ * @returns
13
+ */
14
+ export declare function ensureUserOnWeb(sourceProps: ISourceProps, loginName: string, alertMe: boolean | undefined, consoleLog: boolean | undefined): Promise<IFpsItemsReturn>;
15
+ //# sourceMappingURL=ensureUserOnWeb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensureUserOnWeb.d.ts","sourceRoot":"","sources":["../../../../src/restAPIs/sites/users/ensureUserOnWeb.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAuB,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,MAAM,+DAA+D,CAAC;AAKhG;;;;;;;;;;GAUG;AAEH,wBAAsB,eAAe,CAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,SAAS,GAAI,OAAO,CAAC,eAAe,CAAC,CA0B7K"}
@@ -0,0 +1,39 @@
1
+ import { doSpHttpFetchOrPostAndCheck } from '../../../components/molecules/SpHttp/Sp/doSpHttpFetch';
2
+ import { SourcePropsNoWebUrl } from '../../../components/molecules/source-props/ISourceProps';
3
+ import { check4This } from '../../../logic/Links/CheckSearch';
4
+ import { getAbsoluteWebUrlFromSourceProps } from '../../../logic/Strings/getAbssoluteWebUrlFromSourceProps';
5
+ import { createErrorFpsUsersReturn } from '../../../components/molecules/process-results/createEmptyFpsUsersReturn';
6
+ /**
7
+ * ensureUserOnWeb will ensure a user is on the web and return their User Info when they are
8
+ * import { ensureUserOnWeb } from '@mikezimm/fps-core-v7/lib/restAPIs/sites/users/ensureUserOnWeb';
9
+ *
10
+ * Replaces ensureUserInfoD and ensureUserHereD from pnp2
11
+ *
12
+ * @param sourceProps
13
+ * @param alertMe
14
+ * @param consoleLog
15
+ * @returns
16
+ */
17
+ export async function ensureUserOnWeb(sourceProps, loginName, alertMe, consoleLog) {
18
+ // const { performanceSettings } = sourceProps;
19
+ // 2024-09-15: Change to null as any to pass linting when migrating from fps-library-v2
20
+ // const fetchOp = performanceSettings ? startPerformOpV2( performanceSettings ) : null as any;
21
+ // 2024-12-05: Added this because some places like PivotTiles had absoluteWebUrl in webUrl prop... so just taking care of differences
22
+ const useUrl = getAbsoluteWebUrlFromSourceProps(sourceProps);
23
+ if (!useUrl || !loginName) {
24
+ // NO WebURL... Throw Alert
25
+ if (alertMe === true)
26
+ alert(`${loginName ? loginName : 'Requires Login Name'} ${SourcePropsNoWebUrl}`);
27
+ const results = createErrorFpsUsersReturn(useUrl);
28
+ return results;
29
+ }
30
+ let fetchAPI = `${useUrl}/_api/web/ensureuser?`;
31
+ const body = { logonName: loginName };
32
+ const result = await doSpHttpFetchOrPostAndCheck(fetchAPI, 'POST', sourceProps.fpsSpService, '', alertMe, consoleLog, 'user', body);
33
+ if (check4This(`fpsShowFetchResults=true`) === true) {
34
+ console.log(`fps-core-v7 COMPLETE: ensureUserOnWeb ~ 47`, result);
35
+ }
36
+ ;
37
+ return result;
38
+ }
39
+ //# sourceMappingURL=ensureUserOnWeb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensureUserOnWeb.js","sourceRoot":"","sources":["../../../../src/restAPIs/sites/users/ensureUserOnWeb.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AACpG,OAAO,EAAgB,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAE5G,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,gCAAgC,EAAE,MAAM,0DAA0D,CAAC;AAC5G,OAAO,EAAE,yBAAyB,EAAE,MAAM,yEAAyE,CAAC;AAEpH;;;;;;;;;;GAUG;AAEH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAE,WAAyB,EAAE,SAAiB,EAAE,OAA4B,EAAE,UAA+B;IAEhJ,+CAA+C;IAC/C,wFAAwF;IACxF,+FAA+F;IAE/F,sIAAsI;IACtI,MAAM,MAAM,GAAW,gCAAgC,CAAE,WAAW,CAAE,CAAC;IAEvE,IAAK,CAAC,MAAM,IAAI,CAAC,SAAS,EAAG;QAC3B,2BAA2B;QAC3B,IAAK,OAAO,KAAK,IAAI;YAAG,KAAK,CAAC,GAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,qBAAsB,IAAI,mBAAmB,EAAE,CAAC,CAAC;QAC3G,MAAM,OAAO,GAAoB,yBAAyB,CAAE,MAAM,CAAE,CAAC;QACrE,OAAO,OAAO,CAAC;KAChB;IAED,IAAI,QAAQ,GAAW,GAAG,MAAM,uBAAuB,CAAC;IAExD,MAAM,IAAI,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;IAEtC,MAAM,MAAM,GAAG,MAAM,2BAA2B,CAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,CAAE,CAAC;IAEtI,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,4CAA4C,EAAE,MAAM,CAAE,CAAA;KAAE;IAAA,CAAC;IAEjI,OAAO,MAAM,CAAC;AAEhB,CAAC"}
@@ -1,4 +1,4 @@
1
- export type IFPSBaseContentType = 'hub' | 'site' | 'web' | 'list' | 'item' | 'search' | 'page' | 'file' | 'group' | 'user' | 'role' | 'field' | 'view' | 'nav' | 'theme';
1
+ export type IFPSBaseContentType = 'hub' | 'site' | 'web' | 'list' | 'item' | 'search' | 'page' | 'file' | 'group' | 'user' | 'role' | 'field' | 'view' | 'nav' | 'theme' | 'type' | 'feature' | 'webpart';
2
2
  export type IFPSBaseContentTypesPlural = `${IFPSBaseContentType}s`;
3
3
  export type IFPSBaseContentTypesAll = IFPSBaseContentType | IFPSBaseContentTypesPlural;
4
4
  export type IFpsMappedTypes = {
@@ -1 +1 @@
1
- {"version":3,"file":"IFPSBaseContentType.d.ts","sourceRoot":"","sources":["../../../../src/types/fps-returns/common/IFPSBaseContentType.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;AAEzK,MAAM,MAAM,0BAA0B,GAAG,GAAG,mBAAmB,GAAG,CAAC;AACnE,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG,0BAA0B,CAAC;AAEvF,MAAM,MAAM,eAAe,GAAG;KAC3B,CAAC,IAAI,mBAAmB,CAAC,CAAC,EAAE,GAAG;CACjC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG;KACjC,CAAC,IAAI,0BAA0B,CAAE,CAAC,EAAE,GAAG,EAAE;CAC3C,CAAC"}
1
+ {"version":3,"file":"IFPSBaseContentType.d.ts","sourceRoot":"","sources":["../../../../src/types/fps-returns/common/IFPSBaseContentType.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAE1M,MAAM,MAAM,0BAA0B,GAAG,GAAG,mBAAmB,GAAG,CAAC;AACnE,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG,0BAA0B,CAAC;AAEvF,MAAM,MAAM,eAAe,GAAG;KAC3B,CAAC,IAAI,mBAAmB,CAAC,CAAC,EAAE,GAAG;CACjC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG;KACjC,CAAC,IAAI,0BAA0B,CAAE,CAAC,EAAE,GAAG,EAAE;CAC3C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikezimm/fps-core-v7",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "Library of reusable core interfaces, types and constants migrated from fps-library-v2",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",