@mikezimm/fps-core-v7 1.0.20 → 1.0.21
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/lib/banner/components/ItemPicker/functions/fetchFileList.d.ts +2 -3
- package/lib/banner/components/ItemPicker/functions/fetchFileList.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileList.js +5 -5
- package/lib/banner/components/ItemPicker/functions/fetchFileList.js.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.d.ts +1 -2
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.js +2 -2
- package/lib/banner/components/ItemPicker/functions/fetchFileListUniqueIds.js.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.d.ts +1 -2
- package/lib/banner/components/ItemPicker/functions/fetchListList.d.ts.map +1 -1
- package/lib/banner/components/ItemPicker/functions/fetchListList.js +4 -4
- package/lib/banner/components/ItemPicker/functions/fetchListList.js.map +1 -1
- package/lib/banner/features/FPSDOM/IFPSDigestValues.d.ts +12 -0
- package/lib/banner/features/FPSDOM/IFPSDigestValues.d.ts.map +1 -0
- package/lib/banner/features/FPSDOM/IFPSDigestValues.js +2 -0
- package/lib/banner/features/FPSDOM/IFPSDigestValues.js.map +1 -0
- package/lib/banner/features/FPSDOM/Window.d.ts +2 -0
- package/lib/banner/features/FPSDOM/Window.d.ts.map +1 -1
- package/lib/common/Pivots/Types.d.ts.map +1 -1
- package/lib/common/Pivots/Types.js +1 -0
- package/lib/common/Pivots/Types.js.map +1 -1
- package/lib/components/molecules/SpHttp/digestValues/fromContext/getRequestDigestFromContext.d.ts +13 -0
- package/lib/components/molecules/SpHttp/digestValues/fromContext/getRequestDigestFromContext.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/digestValues/fromContext/getRequestDigestFromContext.js +26 -0
- package/lib/components/molecules/SpHttp/digestValues/fromContext/getRequestDigestFromContext.js.map +1 -0
- package/lib/components/molecules/SpHttp/digestValues/fromContext/getThisFPSDigestValueFromContext.d.ts +17 -0
- package/lib/components/molecules/SpHttp/digestValues/fromContext/getThisFPSDigestValueFromContext.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/digestValues/fromContext/getThisFPSDigestValueFromContext.js +49 -0
- package/lib/components/molecules/SpHttp/digestValues/fromContext/getThisFPSDigestValueFromContext.js.map +1 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getFormDigestValueNoContext.d.ts +20 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getFormDigestValueNoContext.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getFormDigestValueNoContext.js +62 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getFormDigestValueNoContext.js.map +1 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.d.ts +16 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.js +49 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.js.map +1 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/setMultiFPSFormDigests.d.ts +13 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/setMultiFPSFormDigests.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/setMultiFPSFormDigests.js +46 -0
- package/lib/components/molecules/SpHttp/digestValues/fromUrl/setMultiFPSFormDigests.js.map +1 -0
- package/lib/components/molecules/SpHttp/doSpJsFetch.d.ts +5 -3
- package/lib/components/molecules/SpHttp/doSpJsFetch.d.ts.map +1 -1
- package/lib/components/molecules/SpHttp/doSpJsFetch.js +24 -11
- package/lib/components/molecules/SpHttp/doSpJsFetch.js.map +1 -1
- package/lib/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.d.ts +12 -0
- package/lib/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.js +54 -0
- package/lib/components/molecules/SpHttp/helpers/check4ThisFPSDigestValue.js.map +1 -0
- package/lib/components/molecules/SpHttp/helpers/getCurrentFPSDigest.d.ts +3 -0
- package/lib/components/molecules/SpHttp/helpers/getCurrentFPSDigest.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/helpers/getCurrentFPSDigest.js +16 -0
- package/lib/components/molecules/SpHttp/helpers/getCurrentFPSDigest.js.map +1 -0
- package/lib/components/molecules/SpHttp/helpers/getListContentType.d.ts +8 -0
- package/lib/components/molecules/SpHttp/helpers/getListContentType.d.ts.map +1 -0
- package/lib/components/molecules/SpHttp/helpers/getListContentType.js +30 -0
- package/lib/components/molecules/SpHttp/helpers/getListContentType.js.map +1 -0
- package/lib/components/molecules/process-results/CheckAnyResults.js +1 -1
- package/lib/components/molecules/process-results/CheckAnyResults.js.map +1 -1
- package/lib/components/molecules/process-results/CheckItemsResults.js +1 -1
- package/lib/components/molecules/process-results/CheckItemsResults.js.map +1 -1
- package/lib/components/molecules/source-props/ISourceProps.d.ts +1 -0
- package/lib/components/molecules/source-props/ISourceProps.d.ts.map +1 -1
- package/lib/components/molecules/source-props/prepSourceColumns.js +2 -2
- package/lib/components/molecules/source-props/prepSourceColumns.js.map +1 -1
- package/lib/components/webparts/PalettePal/functions/ReactComponent.d.ts +1 -1
- package/lib/components/webparts/PalettePal/functions/ReactComponent.d.ts.map +1 -1
- package/lib/components/webparts/PalettePal/functions/ReactComponent.js +2 -2
- package/lib/components/webparts/PalettePal/functions/ReactComponent.js.map +1 -1
- package/lib/logic/Strings/getFullUrlFromSlashSitesUrl.d.ts +6 -0
- package/lib/logic/Strings/getFullUrlFromSlashSitesUrl.d.ts.map +1 -0
- package/lib/logic/Strings/getFullUrlFromSlashSitesUrl.js +24 -0
- package/lib/logic/Strings/getFullUrlFromSlashSitesUrl.js.map +1 -0
- package/lib/logic/Strings/getSiteCollectionUrlFromLink.d.ts +2 -0
- package/lib/logic/Strings/getSiteCollectionUrlFromLink.d.ts.map +1 -0
- package/lib/logic/Strings/getSiteCollectionUrlFromLink.js +21 -0
- package/lib/logic/Strings/getSiteCollectionUrlFromLink.js.map +1 -0
- package/lib/logic/Strings/urlServices.d.ts +2 -6
- package/lib/logic/Strings/urlServices.d.ts.map +1 -1
- package/lib/logic/Strings/urlServices.js +2 -43
- package/lib/logic/Strings/urlServices.js.map +1 -1
- package/lib/logic/Time/constants.d.ts +1 -0
- package/lib/logic/Time/constants.d.ts.map +1 -1
- package/lib/logic/Time/constants.js +1 -0
- package/lib/logic/Time/constants.js.map +1 -1
- package/lib/restAPIs/lists/items/getSourceItemsAPI.d.ts +16 -0
- package/lib/restAPIs/lists/items/getSourceItemsAPI.d.ts.map +1 -0
- package/lib/restAPIs/lists/items/getSourceItemsAPI.js +76 -0
- package/lib/restAPIs/lists/items/getSourceItemsAPI.js.map +1 -0
- package/lib/restAPIs/lists/items/postSourceItemsAPI.d.ts +4 -0
- package/lib/restAPIs/lists/items/postSourceItemsAPI.d.ts.map +1 -0
- package/lib/restAPIs/lists/items/postSourceItemsAPI.js +44 -0
- package/lib/restAPIs/lists/items/postSourceItemsAPI.js.map +1 -0
- package/lib/restAPIs/lists/lists/getSourceListsAPI.d.ts +5 -0
- package/lib/restAPIs/lists/lists/getSourceListsAPI.d.ts.map +1 -0
- package/lib/{components/molecules/SpHttp/Lists/fetchSourceListsAPI.js → restAPIs/lists/lists/getSourceListsAPI.js} +14 -12
- package/lib/restAPIs/lists/lists/getSourceListsAPI.js.map +1 -0
- package/lib/restAPIs/logging/interfaces/EasyContents.d.ts +8 -0
- package/lib/restAPIs/logging/interfaces/EasyContents.d.ts.map +1 -0
- package/lib/restAPIs/logging/interfaces/EasyContents.js +8 -0
- package/lib/restAPIs/logging/interfaces/EasyContents.js.map +1 -0
- package/lib/restAPIs/logging/interfaces/ExtremeStorageLog.d.ts +2 -0
- package/lib/restAPIs/logging/interfaces/ExtremeStorageLog.d.ts.map +1 -0
- package/lib/restAPIs/logging/interfaces/ExtremeStorageLog.js +2 -0
- package/lib/restAPIs/logging/interfaces/ExtremeStorageLog.js.map +1 -0
- package/lib/restAPIs/logging/interfaces/constants.d.ts +11 -0
- package/lib/restAPIs/logging/interfaces/constants.d.ts.map +1 -0
- package/lib/restAPIs/logging/interfaces/constants.js +17 -0
- package/lib/restAPIs/logging/interfaces/constants.js.map +1 -0
- package/lib/restAPIs/logging/saveErrorToLog.d.ts +8 -0
- package/lib/restAPIs/logging/saveErrorToLog.d.ts.map +1 -0
- package/lib/restAPIs/logging/saveErrorToLog.js +46 -0
- package/lib/restAPIs/logging/saveErrorToLog.js.map +1 -0
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.d.ts +7 -0
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.d.ts.map +1 -0
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.js +66 -0
- package/lib/restAPIs/sites/groups/getGroupMembersAPI.js.map +1 -0
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.d.ts +3 -0
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.d.ts.map +1 -0
- package/lib/{components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.js → restAPIs/sites/groups/getWebGroupInfoAPI.js} +11 -11
- package/lib/restAPIs/sites/groups/getWebGroupInfoAPI.js.map +1 -0
- package/lib/types/@msft/1.4.1/IFPSSPHttpClientConfiguration.d.ts +33 -0
- package/lib/types/@msft/1.4.1/IFPSSPHttpClientConfiguration.d.ts.map +1 -0
- package/lib/types/@msft/1.4.1/IFPSSPHttpClientConfiguration.js +37 -0
- package/lib/types/@msft/1.4.1/IFPSSPHttpClientConfiguration.js.map +1 -0
- package/lib/types/@msft/1.4.1/ISPHttpClient.d.ts +71 -0
- package/lib/types/@msft/1.4.1/ISPHttpClient.d.ts.map +1 -0
- package/lib/types/@msft/1.4.1/ISPHttpClient.js +13 -0
- package/lib/types/@msft/1.4.1/ISPHttpClient.js.map +1 -0
- package/package.json +1 -1
- package/lib/components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.d.ts +0 -3
- package/lib/components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.d.ts.map +0 -1
- package/lib/components/molecules/SpHttp/Groups/fetchWebGroupInfoAPI.js.map +0 -1
- package/lib/components/molecules/SpHttp/Lists/fetchSourceListsAPI.d.ts +0 -4
- package/lib/components/molecules/SpHttp/Lists/fetchSourceListsAPI.d.ts.map +0 -1
- package/lib/components/molecules/SpHttp/Lists/fetchSourceListsAPI.js.map +0 -1
|
@@ -16,20 +16,19 @@
|
|
|
16
16
|
|
|
17
17
|
*/
|
|
18
18
|
import { IJSFetchReturn } from '../../../../components/molecules/SpHttp/doSpJsFetch';
|
|
19
|
-
import { WebPartContextCopy_15_2 } from '../../../../types/@msft/1.15.2/WebPartContext';
|
|
20
19
|
import { IFPSListItemPropPaneDropDownOption } from '../../ItemPicker/interfaces/IFPSListItemPropPaneDropDownOption';
|
|
21
20
|
import { IPropPaneFetchFileProps } from '../../ItemPicker/interfaces/IPropPaneFetchFileProps';
|
|
22
21
|
export declare const DefaultCustomFileSelect: string;
|
|
23
22
|
/**
|
|
24
23
|
* This was originally used for onListPickerChanged call... added fetchFileListUniqueIds option for easier PagePal use
|
|
25
|
-
* @param
|
|
24
|
+
* @param digestValue: string - only if needed
|
|
26
25
|
* @param filesLocation
|
|
27
26
|
* @param postFilters : would be string array of valid extensions to return
|
|
28
27
|
* @param customSelect : pass in custom select/filter statement....
|
|
29
28
|
* It's used like this: /Items?$${customSelect}` so there is no intial $ needed at the beginning
|
|
30
29
|
* @returns
|
|
31
30
|
*/
|
|
32
|
-
export declare function fetchFileList(
|
|
31
|
+
export declare function fetchFileList(digestValue: string, filesLocation: undefined | IFPSListItemPropPaneDropDownOption, postFilters: string[], customSelect?: string): Promise<IJSFetchReturn>;
|
|
33
32
|
export interface IPickerFileFetch {
|
|
34
33
|
}
|
|
35
34
|
export declare function cleanWebFileList(FilePickerInfo: IPropPaneFetchFileProps[], postFilters: string[]): IPropPaneFetchFileProps[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchFileList.d.ts","sourceRoot":"","sources":["../../../../../src/banner/components/ItemPicker/functions/fetchFileList.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAE,cAAc,EAAuC,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"fetchFileList.d.ts","sourceRoot":"","sources":["../../../../../src/banner/components/ItemPicker/functions/fetchFileList.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAE,cAAc,EAAuC,MAAM,qDAAqD,CAAC;AAM1H,OAAO,EAAE,kCAAkC,EAAE,MAAM,gEAAgE,CAAC;AAEpH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAG9F,eAAO,MAAM,uBAAuB,EAAE,MAA0D,CAAC;AAGjG;;;;;;;;GAQG;AAIH,wBAAsB,aAAa,CAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,GAAG,kCAAkC,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,YAAY,GAAE,MAAgC,GAAI,OAAO,CAAC,cAAc,CAAC,CAoBxN;AAED,MAAM,WAAW,gBAAgB;CAGhC;AAED,wBAAgB,gBAAgB,CAAE,cAAc,EAAE,uBAAuB,EAAE,EAAG,WAAW,EAAE,MAAM,EAAE,GAAI,uBAAuB,EAAE,CAuC/H"}
|
|
@@ -23,7 +23,7 @@ export const DefaultCustomFileSelect = "select=FileLeafRef,FileRef,FileSystemObj
|
|
|
23
23
|
// THIS SHOULD COME FROM doSpJsFetch file
|
|
24
24
|
/**
|
|
25
25
|
* This was originally used for onListPickerChanged call... added fetchFileListUniqueIds option for easier PagePal use
|
|
26
|
-
* @param
|
|
26
|
+
* @param digestValue: string - only if needed
|
|
27
27
|
* @param filesLocation
|
|
28
28
|
* @param postFilters : would be string array of valid extensions to return
|
|
29
29
|
* @param customSelect : pass in custom select/filter statement....
|
|
@@ -31,18 +31,18 @@ export const DefaultCustomFileSelect = "select=FileLeafRef,FileRef,FileSystemObj
|
|
|
31
31
|
* @returns
|
|
32
32
|
*/
|
|
33
33
|
// export async function getPickerFiles ( context: WebPartContextCopy_15_2, filesLocation: undefined | IFPSListItemPropPaneDropDownOption, postFilters: string[] ): Promise<IPropPaneFetchFileProps[]> {
|
|
34
|
-
export async function fetchFileList(
|
|
34
|
+
export async function fetchFileList(digestValue, filesLocation, postFilters, customSelect = DefaultCustomFileSelect) {
|
|
35
35
|
const performanceSettings = { label: 'myHubs', updateMiliseconds: true, includeMsStr: true, op: 'fetch' };
|
|
36
36
|
const fetchOp = performanceSettings ? startPerformOpV2(performanceSettings) : null;
|
|
37
37
|
const apiFetchFilesQuery = filesLocation ? `${window.location.origin}${filesLocation === null || filesLocation === void 0 ? void 0 : filesLocation.siteRelativeURL}/_api/web/lists/getbytitle('${filesLocation === null || filesLocation === void 0 ? void 0 : filesLocation.text}')/Items?$${customSelect}` : '';
|
|
38
38
|
if (filesLocation === undefined)
|
|
39
|
-
return createEmptyFetchReturn(apiFetchFilesQuery);
|
|
40
|
-
const resultFileList = await doSpJsFetch(apiFetchFilesQuery);
|
|
39
|
+
return createEmptyFetchReturn(apiFetchFilesQuery, 'GET');
|
|
40
|
+
const resultFileList = await doSpJsFetch(apiFetchFilesQuery, digestValue, '');
|
|
41
41
|
if (resultFileList.ok)
|
|
42
42
|
resultFileList.items = cleanWebFileList(resultFileList.items, postFilters);
|
|
43
43
|
let result = unifiedPerformanceEnd(resultFileList, performanceSettings, fetchOp, 'fetch', 'items');
|
|
44
44
|
result.fpsContentType = ['file'];
|
|
45
|
-
result = checkItemsResults(result, `fps-
|
|
45
|
+
result = checkItemsResults(result, `fps-core-v7: fetchFileList ~ 69`, false, true);
|
|
46
46
|
return result;
|
|
47
47
|
}
|
|
48
48
|
export function cleanWebFileList(FilePickerInfo, postFilters) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchFileList.js","sourceRoot":"","sources":["../../../../../src/banner/components/ItemPicker/functions/fetchFileList.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAkB,sBAAsB,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAE1H,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAEjH,OAAO,EAAmB,iBAAiB,EAAE,MAAM,oEAAoE,CAAC;AAGxH,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAItF,MAAM,CAAC,MAAM,uBAAuB,GAAW,iDAAiD,CAAC;AACjG,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,wMAAwM;AAGxM,MAAM,CAAC,KAAK,UAAU,aAAa,CAAE,
|
|
1
|
+
{"version":3,"file":"fetchFileList.js","sourceRoot":"","sources":["../../../../../src/banner/components/ItemPicker/functions/fetchFileList.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAkB,sBAAsB,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAE1H,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAEjH,OAAO,EAAmB,iBAAiB,EAAE,MAAM,oEAAoE,CAAC;AAGxH,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAItF,MAAM,CAAC,MAAM,uBAAuB,GAAW,iDAAiD,CAAC;AACjG,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,wMAAwM;AAGxM,MAAM,CAAC,KAAK,UAAU,aAAa,CAAE,WAAmB,EAAE,aAA6D,EAAE,WAAqB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,aAAa,EAAE,KAAK,EAAE,MAAM,CAAE,CAAC;IAE1G,OAAO,WAAW,CAAC;AAErB,CAAC"}
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
*/
|
|
13
13
|
import { IJSFetchReturn } from '../../../../components/molecules/SpHttp/doSpJsFetch';
|
|
14
|
-
import { WebPartContextCopy_15_2 } from '../../../../types/@msft/1.15.2/WebPartContext';
|
|
15
14
|
/**
|
|
16
15
|
* Added for easier use getting Site Assets with Doc Ids in PagePal
|
|
17
16
|
* @param context
|
|
@@ -31,5 +30,5 @@ export interface IFileUniqueIds {
|
|
|
31
30
|
wasUsed?: boolean;
|
|
32
31
|
replacements?: any;
|
|
33
32
|
}
|
|
34
|
-
export declare function fetchFileListUniqueIds(
|
|
33
|
+
export declare function fetchFileListUniqueIds(digestValue: string, siteRelativeURL: string, listTitle: string, postFilters: string[], topX?: number, optionalSortFilter?: string): Promise<IJSFetchReturn>;
|
|
35
34
|
//# sourceMappingURL=fetchFileListUniqueIds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchFileListUniqueIds.d.ts","sourceRoot":"","sources":["../../../../../src/banner/components/ItemPicker/functions/fetchFileListUniqueIds.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"fetchFileListUniqueIds.d.ts","sourceRoot":"","sources":["../../../../../src/banner/components/ItemPicker/functions/fetchFileListUniqueIds.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAKrF;;;;;;;;;GASG;AAEH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,GAAG,CAAC;CAEpB;AAED,wBAAsB,sBAAsB,CAAE,WAAW,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,IAAI,GAAE,MAAY,EAAE,kBAAkB,GAAE,MAAW,GAAG,OAAO,CAAC,cAAc,CAAC,CAWlN"}
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
*/
|
|
6
6
|
import { fetchFileList } from '../../ItemPicker/functions/fetchFileList';
|
|
7
|
-
export async function fetchFileListUniqueIds(
|
|
7
|
+
export async function fetchFileListUniqueIds(digestValue, siteRelativeURL, listTitle, postFilters, topX = 500, optionalSortFilter = ``) {
|
|
8
8
|
const filesLocation = {
|
|
9
9
|
siteRelativeURL: siteRelativeURL,
|
|
10
10
|
text: listTitle,
|
|
11
11
|
};
|
|
12
12
|
const customSelect = `select=Created,Modified,Id,File/Name,File/ServerRelativeUrl,File/UniqueId&$expand=File&$filter=startswith(ContentTypeId,%270x0101%27)&$top=${topX}`;
|
|
13
|
-
const results = await fetchFileList(
|
|
13
|
+
const results = await fetchFileList(digestValue, filesLocation, postFilters, customSelect);
|
|
14
14
|
return results;
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=fetchFileListUniqueIds.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchFileListUniqueIds.js","sourceRoot":"","sources":["../../../../../src/banner/components/ItemPicker/functions/fetchFileListUniqueIds.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAwBzE,MAAM,CAAC,KAAK,UAAU,sBAAsB,
|
|
1
|
+
{"version":3,"file":"fetchFileListUniqueIds.js","sourceRoot":"","sources":["../../../../../src/banner/components/ItemPicker/functions/fetchFileListUniqueIds.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAwBzE,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAE,WAAmB,EAAE,eAAuB,EAAE,SAAiB,EAAE,WAAqB,EAAE,OAAe,GAAG,EAAE,qBAA6B,EAAE;IAEvL,MAAM,aAAa,GAAuC;QACxD,eAAe,EAAE,eAAe;QAChC,IAAI,EAAE,SAAS;KACT,CAAC;IAET,MAAM,YAAY,GAAW,8IAA8I,IAAI,EAAE,CAAC;IAClL,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;IAE3F,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
|
|
14
14
|
*/
|
|
15
15
|
import { IJSFetchReturn } from '../../../../components/molecules/SpHttp/doSpJsFetch';
|
|
16
|
-
import { WebPartContextCopy_15_2 } from '../../../../types/@msft/1.15.2/WebPartContext';
|
|
17
16
|
export interface IListPickerLists {
|
|
18
17
|
Title: string;
|
|
19
18
|
EntityTypeName: string;
|
|
@@ -35,6 +34,6 @@ export interface IListPickerLists {
|
|
|
35
34
|
* @param postFilters : would be string array of valid extensions to return
|
|
36
35
|
* @returns
|
|
37
36
|
*/
|
|
38
|
-
export declare function fetchListList(
|
|
37
|
+
export declare function fetchListList(digestValue: string, web: string, filter: string): Promise<IJSFetchReturn>;
|
|
39
38
|
export declare function cleanWebLists(ListPickerInfo: IListPickerLists[]): IListPickerLists[];
|
|
40
39
|
//# sourceMappingURL=fetchListList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchListList.d.ts","sourceRoot":"","sources":["../../../../../src/banner/components/ItemPicker/functions/fetchListList.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,cAAc,EAAuC,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"fetchListList.d.ts","sourceRoot":"","sources":["../../../../../src/banner/components/ItemPicker/functions/fetchListList.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,cAAc,EAAuC,MAAM,qDAAqD,CAAC;AAS1H,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE;QACV,iBAAiB,EAAE,MAAM,CAAC;KAC3B,CAAA;IACD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB;AAcD;;;;;;GAMG;AAEH,wBAAsB,aAAa,CAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAG,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,OAAO,CAAC,cAAc,CAAC,CAwBhH;AAED,wBAAgB,aAAa,CAAE,cAAc,EAAE,gBAAgB,EAAE,GAAK,gBAAgB,EAAE,CAmBvF"}
|
|
@@ -33,7 +33,7 @@ import { checkItemsResults } from '../../../../components/molecules/process-resu
|
|
|
33
33
|
* @param postFilters : would be string array of valid extensions to return
|
|
34
34
|
* @returns
|
|
35
35
|
*/
|
|
36
|
-
export async function fetchListList(
|
|
36
|
+
export async function fetchListList(digestValue, web, filter) {
|
|
37
37
|
let websLocation = web;
|
|
38
38
|
if (web && web.indexOf('/sites/') === 0) {
|
|
39
39
|
websLocation = window.location.origin + websLocation;
|
|
@@ -45,13 +45,13 @@ export async function fetchListList(context, web, filter) {
|
|
|
45
45
|
const fetchOp = performanceSettings ? startPerformOpV2(performanceSettings) : null;
|
|
46
46
|
const apiFetchLibsQuery = `${websLocation}/_api/Web/Lists?$filter=${filter}&select=Title,EntityTypeName,BaseType,ParentWebUrl,RootFolder`;
|
|
47
47
|
if (!web)
|
|
48
|
-
return createEmptyFetchReturn(apiFetchLibsQuery);
|
|
49
|
-
const resultFileList = await doSpJsFetch(apiFetchLibsQuery);
|
|
48
|
+
return createEmptyFetchReturn(apiFetchLibsQuery, 'GET');
|
|
49
|
+
const resultFileList = await doSpJsFetch(apiFetchLibsQuery, digestValue, '');
|
|
50
50
|
if (resultFileList.ok)
|
|
51
51
|
resultFileList.items = cleanWebLists(resultFileList.items);
|
|
52
52
|
let result = unifiedPerformanceEnd(resultFileList, performanceSettings, fetchOp, 'fetch', 'items');
|
|
53
53
|
result.fpsContentType = ['list'];
|
|
54
|
-
result = checkItemsResults(result, `fps-
|
|
54
|
+
result = checkItemsResults(result, `fps-core-v7: fetchFileList ~ 69`, false, true);
|
|
55
55
|
return result;
|
|
56
56
|
}
|
|
57
57
|
export function cleanWebLists(ListPickerInfo) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchListList.js","sourceRoot":"","sources":["../../../../../src/banner/components/ItemPicker/functions/fetchListList.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAkB,sBAAsB,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAE1H,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAEjH,OAAO,EAAmB,iBAAiB,EAAE,MAAM,oEAAoE,CAAC;AAoBxH,yCAAyC;AACzC,+EAA+E;AAC/E,0CAA0C;AAC1C,iBAAiB;AACjB,gBAAgB;AAChB,eAAe;AACf,yBAAyB;AACzB,0BAA0B;AAC1B,MAAM;AACN,uBAAuB;AACvB,IAAI;AAEJ;;;;;;GAMG;AAEH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAE,
|
|
1
|
+
{"version":3,"file":"fetchListList.js","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{
|
|
2
|
+
CurrentSite: IFPSSiteDigestInfo;
|
|
3
|
+
AnalyticsWeb: IFPSSiteDigestInfo;
|
|
4
|
+
SecureCDNAlyticsWeb?: IFPSSiteDigestInfo;
|
|
5
|
+
sites: IFPSSiteDigestInfo[];
|
|
6
|
+
}
|
|
7
|
+
export interface IFPSSiteDigestInfo {
|
|
8
|
+
url: string;
|
|
9
|
+
digestValue: string;
|
|
10
|
+
time: number;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=IFPSDigestValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFPSDigestValues.d.ts","sourceRoot":"","sources":["../../../../src/banner/features/FPSDOM/IFPSDigestValues.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,kBAAkB,CAAC;IAChC,YAAY,EAAE,kBAAkB,CAAC;IACjC,mBAAmB,CAAC,EAAE,kBAAkB,CAAC;IACzC,KAAK,EAAE,kBAAkB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IAGpB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFPSDigestValues.js","sourceRoot":"","sources":["../../../../src/banner/features/FPSDOM/IFPSDigestValues.ts"],"names":[],"mappings":""}
|
|
@@ -3,6 +3,7 @@ import { IFPSEasyIcons } from "../../../components/atoms/easy-icons/interfaces/I
|
|
|
3
3
|
import { LegacyPageContextCopy_15_2, PageContextCopy_15_2 } from "../../../types/@msft/1.15.2/WebPartContext";
|
|
4
4
|
import { IFPSEnviro } from "./IFPSEnviro";
|
|
5
5
|
import { IFPSWindowProps } from "./IFPSWindowProps";
|
|
6
|
+
import { IFPSDigestValues } from "./IFPSDigestValues";
|
|
6
7
|
export interface IFPSWindow {
|
|
7
8
|
FPSUser: IFPSUser;
|
|
8
9
|
FPSOptions: IFPSWindowProps;
|
|
@@ -10,5 +11,6 @@ export interface IFPSWindow {
|
|
|
10
11
|
_spPageContextInfo?: LegacyPageContextCopy_15_2;
|
|
11
12
|
_pageContextInfo?: PageContextCopy_15_2;
|
|
12
13
|
FPSEasyIcons?: IFPSEasyIcons;
|
|
14
|
+
FPSDigestValues: IFPSDigestValues;
|
|
13
15
|
}
|
|
14
16
|
//# sourceMappingURL=Window.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Window.d.ts","sourceRoot":"","sources":["../../../../src/banner/features/FPSDOM/Window.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,+DAA+D,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAC9G,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Window.d.ts","sourceRoot":"","sources":["../../../../src/banner/features/FPSDOM/Window.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,+DAA+D,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAC9G,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,UAAU;IAEzB,OAAO,EAAE,QAAQ,CAAC;IAElB,UAAU,EAAE,eAAe,CAAC;IAE5B,SAAS,EAAE,UAAU,CAAC;IAGtB,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;IAChD,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IAExC,YAAY,CAAC,EAAE,aAAa,CAAC;IAG7B,eAAe,EAAE,gBAAgB,CAAC;CAEnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../src/common/Pivots/Types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../src/common/Pivots/Types.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,MAAM,CAAC;AAEnD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnD,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Types.js","sourceRoot":"","sources":["../../../src/common/Pivots/Types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Types.js","sourceRoot":"","sources":["../../../src/common/Pivots/Types.ts"],"names":[],"mappings":"AAAA,4CAA4C"}
|
package/lib/components/molecules/SpHttp/digestValues/fromContext/getRequestDigestFromContext.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WebPartContextCopy_15_2 } from "../../../../../types/@msft/1.15.2/WebPartContext";
|
|
2
|
+
/**
|
|
3
|
+
* Use this for cases where you need a request digestValue for API calls
|
|
4
|
+
*
|
|
5
|
+
* getRequestDigestFromClass REQUIRES the Class, NOT NULL
|
|
6
|
+
* Was previously named getRequestDigest
|
|
7
|
+
*
|
|
8
|
+
* @param classContext
|
|
9
|
+
* @param absoluteWebUrl
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export declare function getRequestDigestFromContext(classContext: WebPartContextCopy_15_2, absoluteWebUrl: string): Promise<string>;
|
|
13
|
+
//# sourceMappingURL=getRequestDigestFromContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRequestDigestFromContext.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromContext/getRequestDigestFromContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAI3F;;;;;;;;;GASG;AACH,wBAAsB,2BAA2B,CAAC,YAAY,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAqBhI"}
|
package/lib/components/molecules/SpHttp/digestValues/fromContext/getRequestDigestFromContext.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FPS_SPHttpClientConfigurations } from "../../../../../types/@msft/1.4.1/IFPSSPHttpClientConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* Use this for cases where you need a request digestValue for API calls
|
|
4
|
+
*
|
|
5
|
+
* getRequestDigestFromClass REQUIRES the Class, NOT NULL
|
|
6
|
+
* Was previously named getRequestDigest
|
|
7
|
+
*
|
|
8
|
+
* @param classContext
|
|
9
|
+
* @param absoluteWebUrl
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export async function getRequestDigestFromContext(classContext, absoluteWebUrl) {
|
|
13
|
+
let httpPostOptions = {
|
|
14
|
+
headers: {
|
|
15
|
+
"accept": "application/json",
|
|
16
|
+
"content-type": "application/json",
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
// Using this to make it possible to test extension on one site where the extension is not installed
|
|
20
|
+
const useUrl = absoluteWebUrl ? absoluteWebUrl : classContext.pageContext.web.absoluteUrl;
|
|
21
|
+
const response = await classContext.spHttpClient.post(`${useUrl}/_api/contextinfo`, FPS_SPHttpClientConfigurations.v1, httpPostOptions);
|
|
22
|
+
const data = await response.json();
|
|
23
|
+
console.log('getRequestDigest FormDigestValue:', data.FormDigestValue);
|
|
24
|
+
return data.FormDigestValue;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=getRequestDigestFromContext.js.map
|
package/lib/components/molecules/SpHttp/digestValues/fromContext/getRequestDigestFromContext.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRequestDigestFromContext.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromContext/getRequestDigestFromContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAGhH;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,YAAqC,EAAE,cAAsB;IAE7G,IAAI,eAAe,GAAyB;QAC1C,OAAO,EAAE;YACP,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,kBAAkB;SACnC;KACF,CAAC;IAEF,oGAAoG;IACpG,MAAM,MAAM,GAAW,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC;IAElG,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,YAAY,CAAC,IAAI,CACnD,GAAG,MAAM,mBAAmB,EAC5B,8BAA8B,CAAC,EAAE,EACjC,eAAe,CAChB,CAAC;IAEF,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACnC,OAAO,CAAC,GAAG,CAAC,mCAAmC,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACvE,OAAO,IAAI,CAAC,eAAe,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WebPartContextCopy_15_2 } from "../../../../../types/@msft/1.15.2/WebPartContext";
|
|
2
|
+
/**
|
|
3
|
+
* REQUIRES Context!!!!
|
|
4
|
+
*
|
|
5
|
+
* getThisFPSDigestValue will first check for a valid digestValue, if not found, will try to request from getRequestDigestFromClass
|
|
6
|
+
*
|
|
7
|
+
* If you need to use digestValues, such as in SE or certain calls,
|
|
8
|
+
* It's best to call this during the onInit because you have the context.
|
|
9
|
+
*
|
|
10
|
+
* Then later on, you can pass in null for the context because the digestValue will already be updated
|
|
11
|
+
*
|
|
12
|
+
* @param classContext
|
|
13
|
+
* @param absoluteUrl
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare function getThisFPSDigestValueFromContext(classContext: WebPartContextCopy_15_2, absoluteUrl: string): Promise<string>;
|
|
17
|
+
//# sourceMappingURL=getThisFPSDigestValueFromContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getThisFPSDigestValueFromContext.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromContext/getThisFPSDigestValueFromContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kDAAkD,CAAC;AAU3F;;;;;;;;;;;;;GAaG;AAEH,wBAAsB,gCAAgC,CAAE,YAAY,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,GAAI,OAAO,CAAC,MAAM,CAAC,CAoCpI"}
|
package/lib/components/molecules/SpHttp/digestValues/fromContext/getThisFPSDigestValueFromContext.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { getRequestDigestFromContext } from "./getRequestDigestFromContext";
|
|
2
|
+
import { AnalyticsWeb, SecureCDNalyticsWeb } from "../../../../../restAPIs/logging/interfaces/constants";
|
|
3
|
+
import { getCurrentFPSDigest } from "../../helpers/getCurrentFPSDigest";
|
|
4
|
+
import { getFullUrlFromSlashSitesUrl } from "../../../../../logic/Strings/getFullUrlFromSlashSitesUrl";
|
|
5
|
+
import { check4ThisFPSDigestValue } from "../../helpers/check4ThisFPSDigestValue";
|
|
6
|
+
import { startPerformOpV2, updatePerformanceEndV2 } from "../../../Performance/functions";
|
|
7
|
+
import { check4This } from "../../../../../logic/Links/CheckSearch";
|
|
8
|
+
/**
|
|
9
|
+
* REQUIRES Context!!!!
|
|
10
|
+
*
|
|
11
|
+
* getThisFPSDigestValue will first check for a valid digestValue, if not found, will try to request from getRequestDigestFromClass
|
|
12
|
+
*
|
|
13
|
+
* If you need to use digestValues, such as in SE or certain calls,
|
|
14
|
+
* It's best to call this during the onInit because you have the context.
|
|
15
|
+
*
|
|
16
|
+
* Then later on, you can pass in null for the context because the digestValue will already be updated
|
|
17
|
+
*
|
|
18
|
+
* @param classContext
|
|
19
|
+
* @param absoluteUrl
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export async function getThisFPSDigestValueFromContext(classContext, absoluteUrl) {
|
|
23
|
+
const startTime = Date.now();
|
|
24
|
+
absoluteUrl = getFullUrlFromSlashSitesUrl(absoluteUrl);
|
|
25
|
+
let thisPerformance = startPerformOpV2({ label: `DIGEST ${absoluteUrl}`, includeMsStr: true });
|
|
26
|
+
let fpsWindowProps = getCurrentFPSDigest();
|
|
27
|
+
let siteDigestValue = check4ThisFPSDigestValue(absoluteUrl);
|
|
28
|
+
if (!siteDigestValue) {
|
|
29
|
+
// Go get the digest value
|
|
30
|
+
siteDigestValue = await getRequestDigestFromContext(classContext, absoluteUrl);
|
|
31
|
+
const thisFPSDigest = { url: absoluteUrl, digestValue: siteDigestValue, time: startTime };
|
|
32
|
+
if (absoluteUrl === AnalyticsWeb) {
|
|
33
|
+
fpsWindowProps.AnalyticsWeb = thisFPSDigest;
|
|
34
|
+
}
|
|
35
|
+
else if (absoluteUrl === SecureCDNalyticsWeb) {
|
|
36
|
+
fpsWindowProps.SecureCDNAlyticsWeb = thisFPSDigest;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
fpsWindowProps.sites.push(thisFPSDigest);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
thisPerformance = updatePerformanceEndV2({ op: thisPerformance, updateMiliseconds: true, count: 1 });
|
|
43
|
+
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
44
|
+
console.log(`fps-core-v7 COMPLETE: getThisFPSDigestValueFromContext ~ 60`, thisPerformance);
|
|
45
|
+
}
|
|
46
|
+
;
|
|
47
|
+
return siteDigestValue;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=getThisFPSDigestValueFromContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getThisFPSDigestValueFromContext.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromContext/getThisFPSDigestValueFromContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAEzG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,OAAO,EAAE,2BAA2B,EAAE,MAAM,0DAA0D,CAAC;AACvG,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAElF,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE;;;;;;;;;;;;;GAaG;AAEH,MAAM,CAAC,KAAK,UAAU,gCAAgC,CAAE,YAAqC,EAAE,WAAmB;IAEhH,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE7B,WAAW,GAAG,2BAA2B,CAAE,WAAW,CAAE,CAAC;IAEzD,IAAI,eAAe,GAAmB,gBAAgB,CAAE,EAAC,KAAK,EAAE,UAAU,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAoB,CAAC;IAElI,IAAI,cAAc,GAAqB,mBAAmB,EAAE,CAAC;IAE7D,IAAI,eAAe,GAAG,wBAAwB,CAAE,WAAW,CAAE,CAAC;IAE9D,IAAK,CAAC,eAAe,EAAG;QACtB,0BAA0B;QAE1B,eAAe,GAAG,MAAM,2BAA2B,CAAE,YAAY,EAAE,WAAW,CAAE,CAAC;QAEjF,MAAM,aAAa,GAAuB,EAAE,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAE9G,IAAK,WAAW,KAAK,YAAY,EAAG;YAClC,cAAc,CAAC,YAAY,GAAG,aAAa,CAAC;SAE7C;aAAM,IAAK,WAAW,KAAK,mBAAmB,EAAG;YAChD,cAAc,CAAC,mBAAmB,GAAG,aAAa,CAAC;SAEpD;aAAM;YACL,cAAc,CAAC,KAAK,CAAC,IAAI,CAAE,aAAa,CAAE,CAAC;SAC5C;KAEF;IAED,eAAe,GAAG,sBAAsB,CAAG,EAAE,EAAE,EAAE,eAAe,EAAE,iBAAiB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAoB,CAAC;IAC1H,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,6DAA6D,EAAE,eAAe,CAAE,CAAA;KAAE;IAAA,CAAC;IAE3J,OAAO,eAAe,CAAC;AAEzB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated from ChatGPT Query... UNTESTED as of 2024-09-29.
|
|
3
|
+
* NOTE:
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
getFormDigestValue("https://your-sharepoint-site-url")
|
|
7
|
+
.then(digestValue => {
|
|
8
|
+
console.log("Form Digest Value:", digestValue);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
* Fetch Request NOTES:
|
|
12
|
+
Method: A POST request is sent to retrieve the context information.
|
|
13
|
+
Headers: The request includes the Accept and Content-Type headers. If you're already on a SharePoint page and have access to the __REQUESTDIGEST hidden input, you can include it, though it's optional for this request.
|
|
14
|
+
Credentials: Setting credentials: 'include' ensures that cookies (authentication) are sent with the request.
|
|
15
|
+
*
|
|
16
|
+
* @param siteUrl
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export declare function getFormDigestValueNoContext(siteUrl: string): Promise<string>;
|
|
20
|
+
//# sourceMappingURL=getFormDigestValueNoContext.d.ts.map
|
package/lib/components/molecules/SpHttp/digestValues/fromUrl/getFormDigestValueNoContext.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFormDigestValueNoContext.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromUrl/getFormDigestValueNoContext.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;GAiBG;AAMH,wBAAsB,2BAA2B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA6ClF"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated from ChatGPT Query... UNTESTED as of 2024-09-29.
|
|
3
|
+
* NOTE:
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
getFormDigestValue("https://your-sharepoint-site-url")
|
|
7
|
+
.then(digestValue => {
|
|
8
|
+
console.log("Form Digest Value:", digestValue);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
* Fetch Request NOTES:
|
|
12
|
+
Method: A POST request is sent to retrieve the context information.
|
|
13
|
+
Headers: The request includes the Accept and Content-Type headers. If you're already on a SharePoint page and have access to the __REQUESTDIGEST hidden input, you can include it, though it's optional for this request.
|
|
14
|
+
Credentials: Setting credentials: 'include' ensures that cookies (authentication) are sent with the request.
|
|
15
|
+
*
|
|
16
|
+
* @param siteUrl
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
import { check4This } from "../../../../../logic/Links/CheckSearch";
|
|
20
|
+
import { startPerformOpV2, updatePerformanceEndV2 } from "../../../Performance/functions";
|
|
21
|
+
export async function getFormDigestValueNoContext(siteUrl) {
|
|
22
|
+
var _a;
|
|
23
|
+
const contextInfoUrl = `${siteUrl}/_api/contextinfo`;
|
|
24
|
+
const XRequestDigest = document.getElementById("__REQUESTDIGEST");
|
|
25
|
+
let thisPerformance = startPerformOpV2({ label: `DIGEST ${siteUrl}`, includeMsStr: true });
|
|
26
|
+
try {
|
|
27
|
+
const response = await fetch(contextInfoUrl, {
|
|
28
|
+
method: 'POST',
|
|
29
|
+
headers: {
|
|
30
|
+
'Accept': 'application/json;odata=verbose',
|
|
31
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
|
32
|
+
'X-RequestDigest': XRequestDigest ? XRequestDigest : '', // Optional, if available in the context
|
|
33
|
+
},
|
|
34
|
+
credentials: 'include' // Include credentials for authentication
|
|
35
|
+
});
|
|
36
|
+
if (!response.ok) {
|
|
37
|
+
throw new Error(`Error: ${response.statusText}`);
|
|
38
|
+
}
|
|
39
|
+
const data = await response.json();
|
|
40
|
+
/**
|
|
41
|
+
* Made this check just to be absolutely sure it gets any FormDigestValue there.
|
|
42
|
+
* My original SiteEULA code just had data.FormDigestValue.
|
|
43
|
+
* ChatGPT then said it's under the GetContextWebInformation object
|
|
44
|
+
*/
|
|
45
|
+
let FormDigestValue = data.FormDigestValue ? data.FormDigestValue : '';
|
|
46
|
+
if (!FormDigestValue && data.GetContextWebInformation)
|
|
47
|
+
FormDigestValue = data.GetContextWebInformation.FormDigestValue;
|
|
48
|
+
if (!FormDigestValue && ((_a = data.d) === null || _a === void 0 ? void 0 : _a.GetContextWebInformation))
|
|
49
|
+
FormDigestValue = data.d.GetContextWebInformation.FormDigestValue;
|
|
50
|
+
thisPerformance = updatePerformanceEndV2({ op: thisPerformance, updateMiliseconds: true, count: 1 });
|
|
51
|
+
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
52
|
+
console.log(`fps-core-v7 COMPLETE: getFormDigestValueNoContext ~ 61`, thisPerformance);
|
|
53
|
+
}
|
|
54
|
+
;
|
|
55
|
+
return FormDigestValue;
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
console.error("Failed to get form digest value:", error);
|
|
59
|
+
return '';
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=getFormDigestValueNoContext.js.map
|
package/lib/components/molecules/SpHttp/digestValues/fromUrl/getFormDigestValueNoContext.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFormDigestValueNoContext.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromUrl/getFormDigestValueNoContext.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAG1F,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,OAAe;;IAC/D,MAAM,cAAc,GAAG,GAAG,OAAO,mBAAmB,CAAC;IAErD,MAAM,cAAc,GAAiB,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;IAEhF,IAAI,eAAe,GAAmB,gBAAgB,CAAE,EAAC,KAAK,EAAE,UAAU,OAAO,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAoB,CAAC;IAE9H,IAAI;QAEA,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAE,cAAc,EAAE;YAC1C,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACL,QAAQ,EAAE,gCAAgC;gBAC1C,cAAc,EAAE,kDAAkD;gBAClE,iBAAiB,EAAE,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE,wCAAwC;aACpG;YACD,WAAW,EAAE,SAAS,CAAC,yCAAyC;SACnE,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;YACd,MAAM,IAAI,KAAK,CAAC,UAAU,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;SACpD;QAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEnC;;;;WAIG;QAEH,IAAI,eAAe,GAAW,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/E,IAAK,CAAC,eAAe,IAAI,IAAI,CAAC,wBAAwB;YAAG,eAAe,GAAG,IAAI,CAAC,wBAAwB,CAAC,eAAe,CAAC;QACzH,IAAK,CAAC,eAAe,KAAI,MAAA,IAAI,CAAC,CAAC,0CAAE,wBAAwB,CAAA;YAAG,eAAe,GAAG,IAAI,CAAC,CAAC,CAAC,wBAAwB,CAAC,eAAe,CAAC;QAE9H,eAAe,GAAG,sBAAsB,CAAG,EAAE,EAAE,EAAE,eAAe,EAAE,iBAAiB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAoB,CAAC;QAC1H,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;YAAE,OAAO,CAAC,GAAG,CAAE,wDAAwD,EAAE,eAAe,CAAE,CAAA;SAAE;QAAA,CAAC;QAEtJ,OAAO,eAAe,CAAC;KAE1B;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAC;QACzD,OAAO,EAAE,CAAC;KAEb;AACH,CAAC"}
|
package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOES NOT REQUIRES Context - 2024-09-29: NEED TO TEST getFormDigestValueNoContext before widespread use
|
|
3
|
+
*
|
|
4
|
+
* getThisFPSDigestValue will first check for a valid digestValue, if not found, will try to request from getRequestDigestFromClass
|
|
5
|
+
*
|
|
6
|
+
* If you need to use digestValues, such as in SE or certain calls,
|
|
7
|
+
* It's best to call this during the onInit because you have the context.
|
|
8
|
+
*
|
|
9
|
+
* Then later on, you can pass in null for the context because the digestValue will already be updated
|
|
10
|
+
*
|
|
11
|
+
* @param classContext
|
|
12
|
+
* @param absoluteUrl
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export declare function getThisFPSDigestValueFromUrl(absoluteUrl: string): Promise<string>;
|
|
16
|
+
//# sourceMappingURL=getThisFPSDigestValueFromUrl.d.ts.map
|
package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getThisFPSDigestValueFromUrl.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;GAaG;AAEH,wBAAsB,4BAA4B,CAAE,WAAW,EAAE,MAAM,GAAI,OAAO,CAAC,MAAM,CAAC,CAmCzF"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AnalyticsWeb, SecureCDNalyticsWeb } from "../../../../../restAPIs/logging/interfaces/constants";
|
|
2
|
+
import { getCurrentFPSDigest } from "../../helpers/getCurrentFPSDigest";
|
|
3
|
+
import { getFullUrlFromSlashSitesUrl } from "../../../../../logic/Strings/getFullUrlFromSlashSitesUrl";
|
|
4
|
+
import { check4ThisFPSDigestValue } from "../../helpers/check4ThisFPSDigestValue";
|
|
5
|
+
import { startPerformOpV2, updatePerformanceEndV2 } from "../../../Performance/functions";
|
|
6
|
+
import { check4This } from "../../../../../logic/Links/CheckSearch";
|
|
7
|
+
import { getFormDigestValueNoContext } from "./getFormDigestValueNoContext";
|
|
8
|
+
/**
|
|
9
|
+
* DOES NOT REQUIRES Context - 2024-09-29: NEED TO TEST getFormDigestValueNoContext before widespread use
|
|
10
|
+
*
|
|
11
|
+
* getThisFPSDigestValue will first check for a valid digestValue, if not found, will try to request from getRequestDigestFromClass
|
|
12
|
+
*
|
|
13
|
+
* If you need to use digestValues, such as in SE or certain calls,
|
|
14
|
+
* It's best to call this during the onInit because you have the context.
|
|
15
|
+
*
|
|
16
|
+
* Then later on, you can pass in null for the context because the digestValue will already be updated
|
|
17
|
+
*
|
|
18
|
+
* @param classContext
|
|
19
|
+
* @param absoluteUrl
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export async function getThisFPSDigestValueFromUrl(absoluteUrl) {
|
|
23
|
+
let thisPerformance = startPerformOpV2({ label: `Single-Digest`, includeMsStr: true });
|
|
24
|
+
const startTime = Date.now();
|
|
25
|
+
let fpsWindowProps = getCurrentFPSDigest();
|
|
26
|
+
absoluteUrl = getFullUrlFromSlashSitesUrl(absoluteUrl);
|
|
27
|
+
let siteDigestValue = check4ThisFPSDigestValue(absoluteUrl);
|
|
28
|
+
if (!siteDigestValue) {
|
|
29
|
+
// Go get the digest value
|
|
30
|
+
siteDigestValue = await getFormDigestValueNoContext(absoluteUrl);
|
|
31
|
+
const thisFPSDigest = { url: absoluteUrl, digestValue: siteDigestValue, time: startTime };
|
|
32
|
+
if (absoluteUrl === AnalyticsWeb) {
|
|
33
|
+
fpsWindowProps.AnalyticsWeb = thisFPSDigest;
|
|
34
|
+
}
|
|
35
|
+
else if (absoluteUrl === SecureCDNalyticsWeb) {
|
|
36
|
+
fpsWindowProps.SecureCDNAlyticsWeb = thisFPSDigest;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
fpsWindowProps.sites.push(thisFPSDigest);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
thisPerformance = updatePerformanceEndV2({ op: thisPerformance, updateMiliseconds: true, count: 1 });
|
|
43
|
+
if (check4This(`fpsShowFetchResults=true`) === true) {
|
|
44
|
+
console.log(`fps-core-v7 COMPLETE: getThisFPSDigestValueFromUrl ~ 59`, thisPerformance);
|
|
45
|
+
}
|
|
46
|
+
;
|
|
47
|
+
return siteDigestValue;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=getThisFPSDigestValueFromUrl.js.map
|
package/lib/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getThisFPSDigestValueFromUrl.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromUrl/getThisFPSDigestValueFromUrl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AACzG,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,OAAO,EAAE,2BAA2B,EAAE,MAAM,0DAA0D,CAAC;AACvG,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE1F,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAG5E;;;;;;;;;;;;;GAaG;AAEH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAE,WAAmB;IAErE,IAAI,eAAe,GAAmB,gBAAgB,CAAE,EAAC,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,IAAI,EAAE,CAAoB,CAAC;IAE1H,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,IAAI,cAAc,GAAqB,mBAAmB,EAAE,CAAC;IAE7D,WAAW,GAAG,2BAA2B,CAAE,WAAW,CAAE,CAAC;IAEzD,IAAI,eAAe,GAAG,wBAAwB,CAAE,WAAW,CAAE,CAAC;IAE9D,IAAK,CAAC,eAAe,EAAG;QACtB,0BAA0B;QAE1B,eAAe,GAAG,MAAM,2BAA2B,CAAE,WAAW,CAAE,CAAC;QAEnE,MAAM,aAAa,GAAuB,EAAE,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAE9G,IAAK,WAAW,KAAK,YAAY,EAAG;YAClC,cAAc,CAAC,YAAY,GAAG,aAAa,CAAC;SAE7C;aAAM,IAAK,WAAW,KAAK,mBAAmB,EAAG;YAChD,cAAc,CAAC,mBAAmB,GAAG,aAAa,CAAC;SAEpD;aAAM;YACL,cAAc,CAAC,KAAK,CAAC,IAAI,CAAE,aAAa,CAAE,CAAC;SAC5C;KAEF;IAED,eAAe,GAAG,sBAAsB,CAAG,EAAE,EAAE,EAAE,eAAe,EAAE,iBAAiB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,CAAoB,CAAC;IAC1H,IAAK,UAAU,CAAE,0BAA0B,CAAE,KAAK,IAAI,EAAG;QAAE,OAAO,CAAC,GAAG,CAAE,yDAAyD,EAAE,eAAe,CAAE,CAAA;KAAE;IAAA,CAAC;IAEvJ,OAAO,eAAe,CAAC;AAEzB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IFPSDigestValues } from "../../../../../banner/features/FPSDOM/IFPSDigestValues";
|
|
2
|
+
/**
|
|
3
|
+
* If you need to use digestValues, such as in SE or certain calls,
|
|
4
|
+
* It's best to call this during the onInit because you have the context.
|
|
5
|
+
*
|
|
6
|
+
* Then later on, you can pass in null for the context because the digestValue will already be updated
|
|
7
|
+
*
|
|
8
|
+
* @param classContext
|
|
9
|
+
* @param absoluteUrl
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export declare function setMultiFPSFormDigests(urls: string[]): Promise<IFPSDigestValues>;
|
|
13
|
+
//# sourceMappingURL=setMultiFPSFormDigests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setMultiFPSFormDigests.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/SpHttp/digestValues/fromUrl/setMultiFPSFormDigests.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAsB,MAAM,wDAAwD,CAAC;AAQ9G;;;;;;;;;GASG;AAEH,wBAAsB,sBAAsB,CAAE,IAAI,EAAE,MAAM,EAAE,GAAI,OAAO,CAAC,gBAAgB,CAAC,CAsCxF"}
|