@esri/solution-common 1.3.10 → 1.3.13
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/dist/esm/completeItem.d.ts +1 -1
- package/dist/esm/completeItem.js +1 -1
- package/dist/esm/deleteHelpers/deleteEmptyGroups.d.ts +1 -1
- package/dist/esm/deleteHelpers/deleteEmptyGroups.js +1 -1
- package/dist/esm/deleteHelpers/deleteGroupIfEmpty.d.ts +1 -1
- package/dist/esm/deleteHelpers/deleteGroupIfEmpty.js +1 -1
- package/dist/esm/deleteHelpers/deleteSolutionContents.d.ts +1 -1
- package/dist/esm/deleteHelpers/deleteSolutionContents.js +1 -1
- package/dist/esm/deleteHelpers/deleteSolutionFolder.d.ts +1 -1
- package/dist/esm/deleteHelpers/deleteSolutionFolder.js +1 -1
- package/dist/esm/deleteHelpers/deleteSolutionItem.d.ts +1 -1
- package/dist/esm/deleteHelpers/deleteSolutionItem.js +1 -1
- package/dist/esm/deleteHelpers/reconstructBuildOrderIds.d.ts +1 -1
- package/dist/esm/deleteHelpers/reconstructBuildOrderIds.js +1 -1
- package/dist/esm/deleteHelpers/removeItems.d.ts +1 -1
- package/dist/esm/deleteHelpers/removeItems.js +1 -1
- package/dist/esm/deleteSolution.d.ts +2 -2
- package/dist/esm/deleteSolution.js +2 -2
- package/dist/esm/dependencies.d.ts +1 -1
- package/dist/esm/dependencies.js +2 -2
- package/dist/esm/featureServiceHelpers.d.ts +99 -60
- package/dist/esm/featureServiceHelpers.js +99 -60
- package/dist/esm/featureServiceHelpers.js.map +1 -1
- package/dist/esm/generalHelpers.d.ts +34 -34
- package/dist/esm/generalHelpers.js +36 -36
- package/dist/esm/getDeletableSolutionInfo.d.ts +1 -1
- package/dist/esm/getDeletableSolutionInfo.js +1 -1
- package/dist/esm/getSolutionSummary.d.ts +1 -1
- package/dist/esm/getSolutionSummary.js +1 -1
- package/dist/esm/interfaces.d.ts +438 -10
- package/dist/esm/interfaces.js +7 -1
- package/dist/esm/interfaces.js.map +1 -1
- package/dist/esm/libConnectors.d.ts +5 -5
- package/dist/esm/libConnectors.js +5 -5
- package/dist/esm/migrations/apply-schema.d.ts +1 -0
- package/dist/esm/migrations/apply-schema.js +1 -0
- package/dist/esm/migrations/apply-schema.js.map +1 -1
- package/dist/esm/migrations/upgrade-three-dot-one.d.ts +1 -0
- package/dist/esm/migrations/upgrade-three-dot-one.js +1 -0
- package/dist/esm/migrations/upgrade-three-dot-one.js.map +1 -1
- package/dist/esm/migrations/upgrade-two-dot-seven.d.ts +7 -0
- package/dist/esm/migrations/upgrade-two-dot-seven.js +7 -0
- package/dist/esm/migrations/upgrade-two-dot-seven.js.map +1 -1
- package/dist/esm/polyfills.d.ts +2 -2
- package/dist/esm/polyfills.js +2 -2
- package/dist/esm/resourceHelpers.d.ts +11 -11
- package/dist/esm/resourceHelpers.js +11 -11
- package/dist/esm/resources/addMetadataFromBlob.d.ts +1 -1
- package/dist/esm/resources/addMetadataFromBlob.js +1 -1
- package/dist/esm/resources/convert-item-resource-to-storage-resource.d.ts +1 -1
- package/dist/esm/resources/convert-item-resource-to-storage-resource.js +1 -1
- package/dist/esm/resources/convert-storage-resource-to-item-resource.d.ts +1 -1
- package/dist/esm/resources/convert-storage-resource-to-item-resource.js +1 -1
- package/dist/esm/resources/copyAssociatedFiles.d.ts +4 -3
- package/dist/esm/resources/copyAssociatedFiles.js +5 -4
- package/dist/esm/resources/copyAssociatedFiles.js.map +1 -1
- package/dist/esm/resources/copyDataIntoItem.d.ts +2 -2
- package/dist/esm/resources/copyDataIntoItem.js +2 -2
- package/dist/esm/resources/copyMetadataIntoItem.d.ts +1 -1
- package/dist/esm/resources/copyMetadataIntoItem.js +1 -1
- package/dist/esm/resources/copyResourceIntoZip.d.ts +2 -2
- package/dist/esm/resources/copyResourceIntoZip.js +2 -2
- package/dist/esm/resources/copyZipIntoItem.d.ts +1 -1
- package/dist/esm/resources/copyZipIntoItem.js +1 -1
- package/dist/esm/resources/createCopyResults.d.ts +1 -1
- package/dist/esm/resources/createCopyResults.js +1 -1
- package/dist/esm/resources/get-blob.d.ts +1 -1
- package/dist/esm/resources/get-blob.js +1 -1
- package/dist/esm/resources/getItemResourcesFilesFromPaths.d.ts +1 -1
- package/dist/esm/resources/getItemResourcesFilesFromPaths.js +1 -1
- package/dist/esm/resources/getItemResourcesPaths.d.ts +1 -1
- package/dist/esm/resources/getItemResourcesPaths.js +1 -1
- package/dist/esm/resources/transform-resource-paths-to-solution-resources.d.ts +1 -0
- package/dist/esm/resources/transform-resource-paths-to-solution-resources.js +1 -0
- package/dist/esm/resources/transform-resource-paths-to-solution-resources.js.map +1 -1
- package/dist/esm/restHelpers.d.ts +59 -54
- package/dist/esm/restHelpers.js +55 -50
- package/dist/esm/restHelpers.js.map +1 -1
- package/dist/esm/restHelpersGet.d.ts +30 -30
- package/dist/esm/restHelpersGet.js +30 -30
- package/dist/esm/templatization.d.ts +15 -15
- package/dist/esm/templatization.js +15 -15
- package/dist/esm/trackingHelpers.d.ts +9 -9
- package/dist/esm/trackingHelpers.js +9 -9
- package/dist/esm/velocityHelpers.d.ts +4 -4
- package/dist/esm/velocityHelpers.js +4 -4
- package/dist/esm/workforceHelpers.d.ts +8 -7
- package/dist/esm/workforceHelpers.js +18 -7
- package/dist/esm/workforceHelpers.js.map +1 -1
- package/dist/node/completeItem.d.ts +1 -1
- package/dist/node/completeItem.js +1 -1
- package/dist/node/deleteHelpers/deleteEmptyGroups.d.ts +1 -1
- package/dist/node/deleteHelpers/deleteEmptyGroups.js +1 -1
- package/dist/node/deleteHelpers/deleteGroupIfEmpty.d.ts +1 -1
- package/dist/node/deleteHelpers/deleteGroupIfEmpty.js +1 -1
- package/dist/node/deleteHelpers/deleteSolutionContents.d.ts +1 -1
- package/dist/node/deleteHelpers/deleteSolutionContents.js +1 -1
- package/dist/node/deleteHelpers/deleteSolutionFolder.d.ts +1 -1
- package/dist/node/deleteHelpers/deleteSolutionFolder.js +1 -1
- package/dist/node/deleteHelpers/deleteSolutionItem.d.ts +1 -1
- package/dist/node/deleteHelpers/deleteSolutionItem.js +1 -1
- package/dist/node/deleteHelpers/reconstructBuildOrderIds.d.ts +1 -1
- package/dist/node/deleteHelpers/reconstructBuildOrderIds.js +1 -1
- package/dist/node/deleteHelpers/removeItems.d.ts +1 -1
- package/dist/node/deleteHelpers/removeItems.js +1 -1
- package/dist/node/deleteSolution.d.ts +2 -2
- package/dist/node/deleteSolution.js +2 -2
- package/dist/node/dependencies.d.ts +1 -1
- package/dist/node/dependencies.js +2 -2
- package/dist/node/featureServiceHelpers.d.ts +99 -60
- package/dist/node/featureServiceHelpers.js +99 -60
- package/dist/node/featureServiceHelpers.js.map +1 -1
- package/dist/node/generalHelpers.d.ts +34 -34
- package/dist/node/generalHelpers.js +36 -36
- package/dist/node/getDeletableSolutionInfo.d.ts +1 -1
- package/dist/node/getDeletableSolutionInfo.js +1 -1
- package/dist/node/getSolutionSummary.d.ts +1 -1
- package/dist/node/getSolutionSummary.js +1 -1
- package/dist/node/interfaces.d.ts +438 -10
- package/dist/node/interfaces.js +7 -1
- package/dist/node/interfaces.js.map +1 -1
- package/dist/node/libConnectors.d.ts +5 -5
- package/dist/node/libConnectors.js +5 -5
- package/dist/node/migrations/apply-schema.d.ts +1 -0
- package/dist/node/migrations/apply-schema.js +1 -0
- package/dist/node/migrations/apply-schema.js.map +1 -1
- package/dist/node/migrations/upgrade-three-dot-one.d.ts +1 -0
- package/dist/node/migrations/upgrade-three-dot-one.js +1 -0
- package/dist/node/migrations/upgrade-three-dot-one.js.map +1 -1
- package/dist/node/migrations/upgrade-two-dot-seven.d.ts +7 -0
- package/dist/node/migrations/upgrade-two-dot-seven.js +7 -0
- package/dist/node/migrations/upgrade-two-dot-seven.js.map +1 -1
- package/dist/node/polyfills.d.ts +2 -2
- package/dist/node/polyfills.js +2 -2
- package/dist/node/resourceHelpers.d.ts +11 -11
- package/dist/node/resourceHelpers.js +11 -11
- package/dist/node/resources/addMetadataFromBlob.d.ts +1 -1
- package/dist/node/resources/addMetadataFromBlob.js +1 -1
- package/dist/node/resources/convert-item-resource-to-storage-resource.d.ts +1 -1
- package/dist/node/resources/convert-item-resource-to-storage-resource.js +1 -1
- package/dist/node/resources/convert-storage-resource-to-item-resource.d.ts +1 -1
- package/dist/node/resources/convert-storage-resource-to-item-resource.js +1 -1
- package/dist/node/resources/copyAssociatedFiles.d.ts +4 -3
- package/dist/node/resources/copyAssociatedFiles.js +5 -4
- package/dist/node/resources/copyAssociatedFiles.js.map +1 -1
- package/dist/node/resources/copyDataIntoItem.d.ts +2 -2
- package/dist/node/resources/copyDataIntoItem.js +2 -2
- package/dist/node/resources/copyMetadataIntoItem.d.ts +1 -1
- package/dist/node/resources/copyMetadataIntoItem.js +1 -1
- package/dist/node/resources/copyResourceIntoZip.d.ts +2 -2
- package/dist/node/resources/copyResourceIntoZip.js +2 -2
- package/dist/node/resources/copyZipIntoItem.d.ts +1 -1
- package/dist/node/resources/copyZipIntoItem.js +1 -1
- package/dist/node/resources/createCopyResults.d.ts +1 -1
- package/dist/node/resources/createCopyResults.js +1 -1
- package/dist/node/resources/get-blob.d.ts +1 -1
- package/dist/node/resources/get-blob.js +1 -1
- package/dist/node/resources/getItemResourcesFilesFromPaths.d.ts +1 -1
- package/dist/node/resources/getItemResourcesFilesFromPaths.js +1 -1
- package/dist/node/resources/getItemResourcesPaths.d.ts +1 -1
- package/dist/node/resources/getItemResourcesPaths.js +1 -1
- package/dist/node/resources/transform-resource-paths-to-solution-resources.d.ts +1 -0
- package/dist/node/resources/transform-resource-paths-to-solution-resources.js +1 -0
- package/dist/node/resources/transform-resource-paths-to-solution-resources.js.map +1 -1
- package/dist/node/restHelpers.d.ts +59 -54
- package/dist/node/restHelpers.js +55 -50
- package/dist/node/restHelpers.js.map +1 -1
- package/dist/node/restHelpersGet.d.ts +30 -30
- package/dist/node/restHelpersGet.js +30 -30
- package/dist/node/templatization.d.ts +15 -15
- package/dist/node/templatization.js +15 -15
- package/dist/node/trackingHelpers.d.ts +9 -9
- package/dist/node/trackingHelpers.js +9 -9
- package/dist/node/velocityHelpers.d.ts +4 -4
- package/dist/node/velocityHelpers.js +4 -4
- package/dist/node/workforceHelpers.d.ts +8 -7
- package/dist/node/workforceHelpers.js +18 -7
- package/dist/node/workforceHelpers.js.map +1 -1
- package/dist/umd/common.umd.js +399 -313
- package/dist/umd/common.umd.js.map +1 -1
- package/dist/umd/common.umd.min.js +3 -3
- package/dist/umd/common.umd.min.js.map +1 -1
- package/dist/umd/completeItem.d.ts +1 -1
- package/dist/umd/deleteHelpers/deleteEmptyGroups.d.ts +1 -1
- package/dist/umd/deleteHelpers/deleteGroupIfEmpty.d.ts +1 -1
- package/dist/umd/deleteHelpers/deleteSolutionContents.d.ts +1 -1
- package/dist/umd/deleteHelpers/deleteSolutionFolder.d.ts +1 -1
- package/dist/umd/deleteHelpers/deleteSolutionItem.d.ts +1 -1
- package/dist/umd/deleteHelpers/reconstructBuildOrderIds.d.ts +1 -1
- package/dist/umd/deleteHelpers/removeItems.d.ts +1 -1
- package/dist/umd/deleteSolution.d.ts +2 -2
- package/dist/umd/dependencies.d.ts +1 -1
- package/dist/umd/featureServiceHelpers.d.ts +99 -60
- package/dist/umd/generalHelpers.d.ts +34 -34
- package/dist/umd/getDeletableSolutionInfo.d.ts +1 -1
- package/dist/umd/getSolutionSummary.d.ts +1 -1
- package/dist/umd/interfaces.d.ts +438 -10
- package/dist/umd/libConnectors.d.ts +5 -5
- package/dist/umd/migrations/apply-schema.d.ts +1 -0
- package/dist/umd/migrations/upgrade-three-dot-one.d.ts +1 -0
- package/dist/umd/migrations/upgrade-two-dot-seven.d.ts +7 -0
- package/dist/umd/polyfills.d.ts +2 -2
- package/dist/umd/resourceHelpers.d.ts +11 -11
- package/dist/umd/resources/addMetadataFromBlob.d.ts +1 -1
- package/dist/umd/resources/convert-item-resource-to-storage-resource.d.ts +1 -1
- package/dist/umd/resources/convert-storage-resource-to-item-resource.d.ts +1 -1
- package/dist/umd/resources/copyAssociatedFiles.d.ts +4 -3
- package/dist/umd/resources/copyDataIntoItem.d.ts +2 -2
- package/dist/umd/resources/copyMetadataIntoItem.d.ts +1 -1
- package/dist/umd/resources/copyResourceIntoZip.d.ts +2 -2
- package/dist/umd/resources/copyZipIntoItem.d.ts +1 -1
- package/dist/umd/resources/createCopyResults.d.ts +1 -1
- package/dist/umd/resources/get-blob.d.ts +1 -1
- package/dist/umd/resources/getItemResourcesFilesFromPaths.d.ts +1 -1
- package/dist/umd/resources/getItemResourcesPaths.d.ts +1 -1
- package/dist/umd/resources/transform-resource-paths-to-solution-resources.d.ts +1 -0
- package/dist/umd/restHelpers.d.ts +59 -54
- package/dist/umd/restHelpersGet.d.ts +30 -30
- package/dist/umd/templatization.d.ts +15 -15
- package/dist/umd/trackingHelpers.d.ts +9 -9
- package/dist/umd/velocityHelpers.d.ts +4 -4
- package/dist/umd/workforceHelpers.d.ts +8 -7
- package/package.json +18 -17
package/dist/esm/interfaces.js
CHANGED
|
@@ -20,7 +20,7 @@ export const SolutionTemplateFormatVersion = 1;
|
|
|
20
20
|
export const DeployedSolutionFormatVersion = 1;
|
|
21
21
|
//#region Enums ------------------------------------------------------------------------------------------------------//
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Flags for storing an item's binary resources.
|
|
24
24
|
*/
|
|
25
25
|
export var EFileType;
|
|
26
26
|
(function (EFileType) {
|
|
@@ -30,6 +30,9 @@ export var EFileType;
|
|
|
30
30
|
EFileType[EFileType["Resource"] = 3] = "Resource";
|
|
31
31
|
EFileType[EFileType["Thumbnail"] = 4] = "Thumbnail";
|
|
32
32
|
})(EFileType || (EFileType = {}));
|
|
33
|
+
/**
|
|
34
|
+
* Text versions of flags for storing an item's binary resources.
|
|
35
|
+
*/
|
|
33
36
|
export var SFileType;
|
|
34
37
|
(function (SFileType) {
|
|
35
38
|
SFileType[SFileType["Data"] = 0] = "Data";
|
|
@@ -51,6 +54,9 @@ export var EItemProgressStatus;
|
|
|
51
54
|
EItemProgressStatus[EItemProgressStatus["Failed"] = 5] = "Failed";
|
|
52
55
|
EItemProgressStatus[EItemProgressStatus["Unknown"] = 6] = "Unknown";
|
|
53
56
|
})(EItemProgressStatus || (EItemProgressStatus = {}));
|
|
57
|
+
/**
|
|
58
|
+
* Text versions of flags for reporting the status of creating or deploying an item.
|
|
59
|
+
*/
|
|
54
60
|
export const SItemProgressStatus = [
|
|
55
61
|
"1 Started",
|
|
56
62
|
"2 Created",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAcH,wHAAwH;AAExH,OAAO,EAGL,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAqBhC,wHAAwH;AAExH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAC/C,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAE/C,wHAAwH;AAExH;;GAEG;AACH,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,yCAAI,CAAA;IACJ,yCAAI,CAAA;IACJ,iDAAQ,CAAA;IACR,iDAAQ,CAAA;IACR,mDAAS,CAAA;AACX,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAED,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,yCAAM,CAAA;IACN,yCAAM,CAAA;IACN,iDAAU,CAAA;IACV,iDAAU,CAAA;IACV,mDAAW,CAAA;AACb,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,mEAAO,CAAA;IACP,mEAAO,CAAA;IACP,uEAAS,CAAA;IACT,qEAAQ,CAAA;IACR,mEAAO,CAAA;IACP,iEAAM,CAAA;IACN,mEAAO,CAAA;AACT,CAAC,EARW,mBAAmB,KAAnB,mBAAmB,QAQ9B;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW;IACX,WAAW;IACX,aAAa;IACb,YAAY;IACZ,WAAW;IACX,UAAU;IACV,SAAS;CACV,CAAC;
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAcH,wHAAwH;AAExH,OAAO,EAGL,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAqBhC,wHAAwH;AAExH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAC/C,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAE/C,wHAAwH;AAExH;;GAEG;AACH,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,yCAAI,CAAA;IACJ,yCAAI,CAAA;IACJ,iDAAQ,CAAA;IACR,iDAAQ,CAAA;IACR,mDAAS,CAAA;AACX,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,yCAAM,CAAA;IACN,yCAAM,CAAA;IACN,iDAAU,CAAA;IACV,iDAAU,CAAA;IACV,mDAAW,CAAA;AACb,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,mEAAO,CAAA;IACP,mEAAO,CAAA;IACP,uEAAS,CAAA;IACT,qEAAQ,CAAA;IACR,mEAAO,CAAA;IACP,iEAAM,CAAA;IACN,mEAAO,CAAA;AACT,CAAC,EARW,mBAAmB,KAAnB,mBAAmB,QAQ9B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW;IACX,WAAW;IACX,aAAa;IACb,YAAY;IACZ,WAAW;IACX,UAAU;IACV,SAAS;CACV,CAAC;AAm7CF,wHAAwH"}
|
|
@@ -24,7 +24,7 @@ export { Sanitizer } from "@esri/arcgis-html-sanitizer";
|
|
|
24
24
|
* @param zipFilename Name to use for zip File
|
|
25
25
|
* @param files List of files to add to zip File
|
|
26
26
|
* @param folder Folder to contain the files
|
|
27
|
-
* @
|
|
27
|
+
* @returns Promise resolving to a zip File
|
|
28
28
|
*/
|
|
29
29
|
export declare function createZip(zipFilename: string, files: File[], folder?: string): Promise<File>;
|
|
30
30
|
/**
|
|
@@ -39,7 +39,7 @@ export interface IValidationResult {
|
|
|
39
39
|
*
|
|
40
40
|
* @param HTML Text to sanitize
|
|
41
41
|
* @param sanitizer Instance of Sanitizer class
|
|
42
|
-
* @
|
|
42
|
+
* @returns Sanitized version of `html`
|
|
43
43
|
* @see https://github.com/esri/arcgis-html-sanitizer#basic-usage
|
|
44
44
|
*/
|
|
45
45
|
export declare function sanitizeHTML(html: string, sanitizer?: Sanitizer): string;
|
|
@@ -48,7 +48,7 @@ export declare function sanitizeHTML(html: string, sanitizer?: Sanitizer): strin
|
|
|
48
48
|
*
|
|
49
49
|
* @param json JSON to sanitize
|
|
50
50
|
* @param sanitizer Instance of Sanitizer class
|
|
51
|
-
* @
|
|
51
|
+
* @returns Sanitized version of `json`
|
|
52
52
|
* @see https://github.com/esri/arcgis-html-sanitizer#sanitize-json
|
|
53
53
|
*/
|
|
54
54
|
export declare function sanitizeJSON(json: any, sanitizer?: Sanitizer): any;
|
|
@@ -57,7 +57,7 @@ export declare function sanitizeJSON(json: any, sanitizer?: Sanitizer): any;
|
|
|
57
57
|
*
|
|
58
58
|
* @param url URL to sanitize
|
|
59
59
|
* @param sanitizer Instance of Sanitizer class
|
|
60
|
-
* @
|
|
60
|
+
* @returns Sanitized version of `url`
|
|
61
61
|
* @see https://github.com/esri/arcgis-html-sanitizer#sanitize-urls
|
|
62
62
|
*/
|
|
63
63
|
export declare function sanitizeURLProtocol(url: string, sanitizer?: Sanitizer): string;
|
|
@@ -66,7 +66,7 @@ export declare function sanitizeURLProtocol(url: string, sanitizer?: Sanitizer):
|
|
|
66
66
|
*
|
|
67
67
|
* @param html HTML to check
|
|
68
68
|
* @param sanitizer Instance of Sanitizer class
|
|
69
|
-
* @
|
|
69
|
+
* @returns An object containing a flag indicating if `html` is valid (i.e., contains no invalid HTML)
|
|
70
70
|
* as well as the sanitized version of `html`
|
|
71
71
|
* @see https://github.com/esri/arcgis-html-sanitizer#basic-usage
|
|
72
72
|
*/
|
|
@@ -27,7 +27,7 @@ export { Sanitizer } from "@esri/arcgis-html-sanitizer";
|
|
|
27
27
|
* @param zipFilename Name to use for zip File
|
|
28
28
|
* @param files List of files to add to zip File
|
|
29
29
|
* @param folder Folder to contain the files
|
|
30
|
-
* @
|
|
30
|
+
* @returns Promise resolving to a zip File
|
|
31
31
|
*/
|
|
32
32
|
export function createZip(zipFilename, files, folder) {
|
|
33
33
|
return new Promise((resolve, reject) => {
|
|
@@ -49,7 +49,7 @@ export function createZip(zipFilename, files, folder) {
|
|
|
49
49
|
*
|
|
50
50
|
* @param HTML Text to sanitize
|
|
51
51
|
* @param sanitizer Instance of Sanitizer class
|
|
52
|
-
* @
|
|
52
|
+
* @returns Sanitized version of `html`
|
|
53
53
|
* @see https://github.com/esri/arcgis-html-sanitizer#basic-usage
|
|
54
54
|
*/
|
|
55
55
|
export function sanitizeHTML(html, sanitizer) {
|
|
@@ -63,7 +63,7 @@ export function sanitizeHTML(html, sanitizer) {
|
|
|
63
63
|
*
|
|
64
64
|
* @param json JSON to sanitize
|
|
65
65
|
* @param sanitizer Instance of Sanitizer class
|
|
66
|
-
* @
|
|
66
|
+
* @returns Sanitized version of `json`
|
|
67
67
|
* @see https://github.com/esri/arcgis-html-sanitizer#sanitize-json
|
|
68
68
|
*/
|
|
69
69
|
export function sanitizeJSON(json, sanitizer) {
|
|
@@ -77,7 +77,7 @@ export function sanitizeJSON(json, sanitizer) {
|
|
|
77
77
|
*
|
|
78
78
|
* @param url URL to sanitize
|
|
79
79
|
* @param sanitizer Instance of Sanitizer class
|
|
80
|
-
* @
|
|
80
|
+
* @returns Sanitized version of `url`
|
|
81
81
|
* @see https://github.com/esri/arcgis-html-sanitizer#sanitize-urls
|
|
82
82
|
*/
|
|
83
83
|
export function sanitizeURLProtocol(url, sanitizer) {
|
|
@@ -91,7 +91,7 @@ export function sanitizeURLProtocol(url, sanitizer) {
|
|
|
91
91
|
*
|
|
92
92
|
* @param html HTML to check
|
|
93
93
|
* @param sanitizer Instance of Sanitizer class
|
|
94
|
-
* @
|
|
94
|
+
* @returns An object containing a flag indicating if `html` is valid (i.e., contains no invalid HTML)
|
|
95
95
|
* as well as the sanitized version of `html`
|
|
96
96
|
* @see https://github.com/esri/arcgis-html-sanitizer#basic-usage
|
|
97
97
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-schema.js","sourceRoot":"","sources":["../../../src/migrations/apply-schema.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAExD
|
|
1
|
+
{"version":3,"file":"apply-schema.js","sourceRoot":"","sources":["../../../src/migrations/apply-schema.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,KAAoB;IAC/C,IAAI,OAAO,CAAC,KAAK,EAAE,+BAA+B,CAAC,IAAI,CAAC,EAAE;QACxD,OAAO,KAAK,CAAC;KACd;IAED,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE;QAC1B,KAAK,CAAC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;KAC5B;IAED,sCAAsC;IACtC,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,IAAI,EAAE,CAAC;IACzD,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,KAAU,EAAE,EAAE;QAClD,OAAO;YACL,GAAG,EAAE,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,GAAG;YACjC,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,IAAI,EAAE,KAAK,CAAC,IAAwB;YACpC,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,GAAG;YACpD,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,EAAE;SAChB,CAAC;IACrB,CAAC,CAAC,CAAC;IACH,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,GAAG,CAAC,CAAC;IACxC,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -23,6 +23,7 @@ import { transformResourcePathsToSolutionResources } from "../resources/transfor
|
|
|
23
23
|
*
|
|
24
24
|
* @param model ISolutionItem
|
|
25
25
|
* @param authentication UserSession
|
|
26
|
+
* @private
|
|
26
27
|
*/
|
|
27
28
|
export function _upgradeThreeDotOne(model) {
|
|
28
29
|
if (getProp(model, "item.properties.schemaVersion") >= 3.1) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-three-dot-one.js","sourceRoot":"","sources":["../../../src/migrations/upgrade-three-dot-one.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,yCAAyC,EAAE,MAAM,6DAA6D,CAAC;AAExH
|
|
1
|
+
{"version":3,"file":"upgrade-three-dot-one.js","sourceRoot":"","sources":["../../../src/migrations/upgrade-three-dot-one.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,yCAAyC,EAAE,MAAM,6DAA6D,CAAC;AAExH;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAoB;IACtD,IAAI,OAAO,CAAC,KAAK,EAAE,+BAA+B,CAAC,IAAI,GAAG,EAAE;QAC1D,OAAO,KAAK,CAAC;KACd;SAAM;QACL,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;QACjC,wDAAwD;QACxD,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE;YAC5D,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC;YACvC,IAAI,CAAC,SAAS,GAAG,yCAAyC,CAAC,SAAS,CAAC,CAAC;YACtE,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QAEH,4BAA4B;QAC5B,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,GAAG,GAAG,CAAC;QAC1C,OAAO,KAAK,CAAC;KACd;AACH,CAAC"}
|
|
@@ -13,4 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
/**
|
|
17
|
+
* Updates schema to 2.7.
|
|
18
|
+
*
|
|
19
|
+
* @param model Model to be updated
|
|
20
|
+
* @returns Updated model
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
16
23
|
export declare function _upgradeTwoDotSeven(model: any): any;
|
|
@@ -14,6 +14,13 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { getProp, createId } from "@esri/hub-common";
|
|
17
|
+
/**
|
|
18
|
+
* Updates schema to 2.7.
|
|
19
|
+
*
|
|
20
|
+
* @param model Model to be updated
|
|
21
|
+
* @returns Updated model
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
17
24
|
export function _upgradeTwoDotSeven(model) {
|
|
18
25
|
if (getProp(model, "item.properties.schemaVersion") >= 2.7) {
|
|
19
26
|
return model;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-two-dot-seven.js","sourceRoot":"","sources":["../../../src/migrations/upgrade-two-dot-seven.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,UAAU,mBAAmB,CAAC,KAAU;IAC5C,IAAI,OAAO,CAAC,KAAK,EAAE,+BAA+B,CAAC,IAAI,GAAG,EAAE;QAC1D,OAAO,KAAK,CAAC;KACd;IACD,oEAAoE;IACpE,mEAAmE;IACnE,oEAAoE;IACpE,qBAAqB;IACrB,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAC7C,CAAC,CAAM,EAAE,GAAW,EAAE,GAAU,EAAE,EAAE;QAClC,6DAA6D;QAC7D,wDAAwD;QACxD,0DAA0D;QAC1D,iDAAiD;QACjD,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE;YACb,CAAC,CAAC,MAAM,GAAG,QAAQ,EAAE,CAAC;SACvB;QACD,6DAA6D;QAC7D,IAAI,CAAC,CAAC,CAAC,YAAY,EAAE;YACnB,CAAC,CAAC,YAAY,GAAG,EAAE,CAAC;SACrB;QACD,qDAAqD;QACrD,qBAAqB;QACrB,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;YAC1C,CAAC,CAAC,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;SACxC;QACD,OAAO,CAAC,CAAC;IACX,CAAC,CACF,CAAC;IAEF,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,GAAG,GAAG,CAAC;IAC1C,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
1
|
+
{"version":3,"file":"upgrade-two-dot-seven.js","sourceRoot":"","sources":["../../../src/migrations/upgrade-two-dot-seven.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAErD;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAU;IAC5C,IAAI,OAAO,CAAC,KAAK,EAAE,+BAA+B,CAAC,IAAI,GAAG,EAAE;QAC1D,OAAO,KAAK,CAAC;KACd;IACD,oEAAoE;IACpE,mEAAmE;IACnE,oEAAoE;IACpE,qBAAqB;IACrB,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAC7C,CAAC,CAAM,EAAE,GAAW,EAAE,GAAU,EAAE,EAAE;QAClC,6DAA6D;QAC7D,wDAAwD;QACxD,0DAA0D;QAC1D,iDAAiD;QACjD,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE;YACb,CAAC,CAAC,MAAM,GAAG,QAAQ,EAAE,CAAC;SACvB;QACD,6DAA6D;QAC7D,IAAI,CAAC,CAAC,CAAC,YAAY,EAAE;YACnB,CAAC,CAAC,YAAY,GAAG,EAAE,CAAC;SACrB;QACD,qDAAqD;QACrD,qBAAqB;QACrB,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;YAC1C,CAAC,CAAC,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;SACxC;QACD,OAAO,CAAC,CAAC;IACX,CAAC,CACF,CAAC;IAEF,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,GAAG,GAAG,CAAC;IAC1C,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/esm/polyfills.d.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* Supplies Blob.text for Microsoft Legacy Edge
|
|
23
23
|
*
|
|
24
24
|
* @param blob Blob to read
|
|
25
|
-
* @
|
|
25
|
+
* @returns Promise resolving to blob's text
|
|
26
26
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob
|
|
27
27
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/FileReader
|
|
28
28
|
*/
|
|
@@ -33,7 +33,7 @@ export declare function getBlobText(blob: Blob): Promise<string>;
|
|
|
33
33
|
* @param fileBits Contents for file
|
|
34
34
|
* @param fileName Name for file
|
|
35
35
|
* @param options Bucket of options, euch as `type` for the MIME type; defaults to empty string for `type`
|
|
36
|
-
* @
|
|
36
|
+
* @returns File or, for Microsoft Legacy Edge, Blob
|
|
37
37
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/File/File
|
|
38
38
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob
|
|
39
39
|
*/
|
package/dist/esm/polyfills.js
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* Supplies Blob.text for Microsoft Legacy Edge
|
|
24
24
|
*
|
|
25
25
|
* @param blob Blob to read
|
|
26
|
-
* @
|
|
26
|
+
* @returns Promise resolving to blob's text
|
|
27
27
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob
|
|
28
28
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/FileReader
|
|
29
29
|
*/
|
|
@@ -62,7 +62,7 @@ export function getBlobText(blob) {
|
|
|
62
62
|
* @param fileBits Contents for file
|
|
63
63
|
* @param fileName Name for file
|
|
64
64
|
* @param options Bucket of options, euch as `type` for the MIME type; defaults to empty string for `type`
|
|
65
|
-
* @
|
|
65
|
+
* @returns File or, for Microsoft Legacy Edge, Blob
|
|
66
66
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/File/File
|
|
67
67
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob
|
|
68
68
|
*/
|
|
@@ -59,7 +59,7 @@ export declare function convertBlobToSupportableResource(blob: Blob, filename?:
|
|
|
59
59
|
* @param destinationItemId Id of item to receive copy of resource/metadata
|
|
60
60
|
* @param destinationAuthentication Credentials for the request to the destination
|
|
61
61
|
* @param template Template for using its itemId and properties for fine-tuning the filename for Hub
|
|
62
|
-
* @
|
|
62
|
+
* @returns A promise which resolves to a boolean indicating if the copies were successful
|
|
63
63
|
*/
|
|
64
64
|
export declare function copyFilesFromStorageItem(storageAuthentication: UserSession, filePaths: IDeployFileCopyPath[], destinationFolderId: string, destinationItemId: string, destinationAuthentication: UserSession, template?: any): Promise<boolean>;
|
|
65
65
|
/**
|
|
@@ -69,14 +69,14 @@ export declare function copyFilesFromStorageItem(storageAuthentication: UserSess
|
|
|
69
69
|
* @param files List of item files and paths for storing the files
|
|
70
70
|
* @param storageItemId Id of item to receive copy of resource/metadata
|
|
71
71
|
* @param storageAuthentication Credentials for the request to the storage
|
|
72
|
-
* @
|
|
72
|
+
* @returns A promise which resolves to a list of the filenames under which the resource/metadata are stored
|
|
73
73
|
*/
|
|
74
74
|
export declare function copyFilesToStorageItem(files: ISourceFile[], storageItemId: string, storageAuthentication: UserSession): Promise<string[]>;
|
|
75
75
|
/**
|
|
76
76
|
* Generates a folder and filename for storing a copy of an item's metadata in a storage item.
|
|
77
77
|
*
|
|
78
78
|
* @param itemId Id of item
|
|
79
|
-
* @
|
|
79
|
+
* @returns Folder and filename for storage; folder is the itemID suffixed with "_info_metadata"
|
|
80
80
|
* @see convertStorageResourceToItemResource
|
|
81
81
|
*/
|
|
82
82
|
export declare function generateMetadataStorageFilename(itemId: string): {
|
|
@@ -93,7 +93,7 @@ export declare function generateMetadataStorageFilename(itemId: string): {
|
|
|
93
93
|
* @param resourceFilenames List of resource filenames for an item, e.g., ["file1", "myFolder/file2"]
|
|
94
94
|
* @param isGroup Boolean to indicate if the files are associated with a group or item
|
|
95
95
|
* @param storageVersion Version of the Solution template
|
|
96
|
-
* @
|
|
96
|
+
* @returns List of item files' URLs and folder/filenames for storing the files
|
|
97
97
|
*/
|
|
98
98
|
export declare function generateSourceFilePaths(portalSharingUrl: string, itemId: string, thumbnailUrlPart: string, resourceFilenames: string[], isGroup?: boolean, storageVersion?: number): ISourceFileCopyPath[];
|
|
99
99
|
/**
|
|
@@ -102,7 +102,7 @@ export declare function generateSourceFilePaths(portalSharingUrl: string, itemId
|
|
|
102
102
|
* @param sourcePortalSharingUrl Server/sharing
|
|
103
103
|
* @param itemId Id of item
|
|
104
104
|
* @param isGroup Boolean to indicate if the files are associated with a group or item
|
|
105
|
-
* @
|
|
105
|
+
* @returns URL string
|
|
106
106
|
*/
|
|
107
107
|
export declare function generateSourceMetadataUrl(sourcePortalSharingUrl: string, itemId: string, isGroup?: boolean): string;
|
|
108
108
|
/**
|
|
@@ -111,7 +111,7 @@ export declare function generateSourceMetadataUrl(sourcePortalSharingUrl: string
|
|
|
111
111
|
* @param sourcePortalSharingUrl Server/sharing
|
|
112
112
|
* @param itemId Id of item
|
|
113
113
|
* @param sourceResourceFilename Either filename or folder/filename to resource
|
|
114
|
-
* @
|
|
114
|
+
* @returns URL string
|
|
115
115
|
*/
|
|
116
116
|
export declare function generateSourceResourceUrl(sourcePortalSharingUrl: string, itemId: string, sourceResourceFilename: string): string;
|
|
117
117
|
/**
|
|
@@ -121,7 +121,7 @@ export declare function generateSourceResourceUrl(sourcePortalSharingUrl: string
|
|
|
121
121
|
* @param itemId Id of item
|
|
122
122
|
* @param thumbnailUrlPart Partial path to the thumbnail held in an item's JSON
|
|
123
123
|
* @param isGroup Boolean to indicate if the files are associated with a group or item
|
|
124
|
-
* @
|
|
124
|
+
* @returns URL string
|
|
125
125
|
*/
|
|
126
126
|
export declare function generateSourceThumbnailUrl(sourcePortalSharingUrl: string, itemId: string, thumbnailUrlPart: string, isGroup?: boolean): string;
|
|
127
127
|
/**
|
|
@@ -132,7 +132,7 @@ export declare function generateSourceThumbnailUrl(sourcePortalSharingUrl: strin
|
|
|
132
132
|
* @param storageItemId Id of storage item
|
|
133
133
|
* @param resourceFilenames List of resource filenames for an item, e.g., ["file1", "myFolder/file2"]
|
|
134
134
|
* @param storageVersion Version of the Solution template
|
|
135
|
-
* @
|
|
135
|
+
* @returns List of item files' URLs and folder/filenames for storing the files
|
|
136
136
|
*/
|
|
137
137
|
export declare function generateStorageFilePaths(portalSharingUrl: string, storageItemId: string, resourceFilenames?: string[], storageVersion?: number): IDeployFileCopyPath[];
|
|
138
138
|
/**
|
|
@@ -140,7 +140,7 @@ export declare function generateStorageFilePaths(portalSharingUrl: string, stora
|
|
|
140
140
|
*
|
|
141
141
|
* @param itemId Id of item
|
|
142
142
|
* @param thumbnailUrlPart Partial path to the thumbnail held in an item's JSON
|
|
143
|
-
* @
|
|
143
|
+
* @returns Folder and filename for storage; folder is the itemID suffixed with "_info_thumbnail";
|
|
144
144
|
* file is URI-encoded thumbnailUrlPart
|
|
145
145
|
* @see convertStorageResourceToItemResource
|
|
146
146
|
*/
|
|
@@ -154,7 +154,7 @@ export declare function isSupportedFileType(filename: string): boolean;
|
|
|
154
154
|
*
|
|
155
155
|
* @param authentication Credentials for the request to the storage
|
|
156
156
|
* @param filePaths List of item files' URLs and folder/filenames for storing the files
|
|
157
|
-
* @
|
|
157
|
+
* @returns A promise which resolves to a boolean indicating if the copies were successful
|
|
158
158
|
*/
|
|
159
159
|
export declare function getThumbnailFromStorageItem(authentication: UserSession, filePaths: IDeployFileCopyPath[]): Promise<File>;
|
|
160
160
|
/**
|
|
@@ -164,6 +164,6 @@ export declare function getThumbnailFromStorageItem(authentication: UserSession,
|
|
|
164
164
|
* @param filename Name of the resource file to update
|
|
165
165
|
* @param content The new content to update the resource with
|
|
166
166
|
* @param authentication Credentials for the request to the storage
|
|
167
|
-
* @
|
|
167
|
+
* @returns A promise which resolves with a success true/false response
|
|
168
168
|
*/
|
|
169
169
|
export declare function updateItemResourceText(itemId: string, filename: string, content: string, authentication: UserSession): Promise<IItemResourceResponse>;
|
|
@@ -89,7 +89,7 @@ export function convertBlobToSupportableResource(blob, filename = "") {
|
|
|
89
89
|
* @param destinationItemId Id of item to receive copy of resource/metadata
|
|
90
90
|
* @param destinationAuthentication Credentials for the request to the destination
|
|
91
91
|
* @param template Template for using its itemId and properties for fine-tuning the filename for Hub
|
|
92
|
-
* @
|
|
92
|
+
* @returns A promise which resolves to a boolean indicating if the copies were successful
|
|
93
93
|
*/
|
|
94
94
|
export function copyFilesFromStorageItem(storageAuthentication, filePaths, destinationFolderId, destinationItemId, destinationAuthentication, template = {}) {
|
|
95
95
|
// TODO: This is only used in deployer, so move there
|
|
@@ -142,7 +142,7 @@ export function copyFilesFromStorageItem(storageAuthentication, filePaths, desti
|
|
|
142
142
|
* @param files List of item files and paths for storing the files
|
|
143
143
|
* @param storageItemId Id of item to receive copy of resource/metadata
|
|
144
144
|
* @param storageAuthentication Credentials for the request to the storage
|
|
145
|
-
* @
|
|
145
|
+
* @returns A promise which resolves to a list of the filenames under which the resource/metadata are stored
|
|
146
146
|
*/
|
|
147
147
|
export function copyFilesToStorageItem(files, storageItemId, storageAuthentication) {
|
|
148
148
|
return new Promise(resolve => {
|
|
@@ -160,7 +160,7 @@ export function copyFilesToStorageItem(files, storageItemId, storageAuthenticati
|
|
|
160
160
|
* Generates a folder and filename for storing a copy of an item's metadata in a storage item.
|
|
161
161
|
*
|
|
162
162
|
* @param itemId Id of item
|
|
163
|
-
* @
|
|
163
|
+
* @returns Folder and filename for storage; folder is the itemID suffixed with "_info_metadata"
|
|
164
164
|
* @see convertStorageResourceToItemResource
|
|
165
165
|
*/
|
|
166
166
|
export function generateMetadataStorageFilename(itemId) {
|
|
@@ -179,7 +179,7 @@ export function generateMetadataStorageFilename(itemId) {
|
|
|
179
179
|
* @param resourceFilenames List of resource filenames for an item, e.g., ["file1", "myFolder/file2"]
|
|
180
180
|
* @param isGroup Boolean to indicate if the files are associated with a group or item
|
|
181
181
|
* @param storageVersion Version of the Solution template
|
|
182
|
-
* @
|
|
182
|
+
* @returns List of item files' URLs and folder/filenames for storing the files
|
|
183
183
|
*/
|
|
184
184
|
export function generateSourceFilePaths(portalSharingUrl, itemId, thumbnailUrlPart, resourceFilenames, isGroup = false, storageVersion = 0) {
|
|
185
185
|
const filePaths = resourceFilenames.map(resourceFilename => {
|
|
@@ -211,7 +211,7 @@ export function generateSourceFilePaths(portalSharingUrl, itemId, thumbnailUrlPa
|
|
|
211
211
|
* @param sourcePortalSharingUrl Server/sharing
|
|
212
212
|
* @param itemId Id of item
|
|
213
213
|
* @param isGroup Boolean to indicate if the files are associated with a group or item
|
|
214
|
-
* @
|
|
214
|
+
* @returns URL string
|
|
215
215
|
*/
|
|
216
216
|
export function generateSourceMetadataUrl(sourcePortalSharingUrl, itemId, isGroup = false) {
|
|
217
217
|
return (checkUrlPathTermination(sourcePortalSharingUrl) +
|
|
@@ -225,7 +225,7 @@ export function generateSourceMetadataUrl(sourcePortalSharingUrl, itemId, isGrou
|
|
|
225
225
|
* @param sourcePortalSharingUrl Server/sharing
|
|
226
226
|
* @param itemId Id of item
|
|
227
227
|
* @param sourceResourceFilename Either filename or folder/filename to resource
|
|
228
|
-
* @
|
|
228
|
+
* @returns URL string
|
|
229
229
|
*/
|
|
230
230
|
export function generateSourceResourceUrl(sourcePortalSharingUrl, itemId, sourceResourceFilename) {
|
|
231
231
|
return (checkUrlPathTermination(sourcePortalSharingUrl) +
|
|
@@ -241,7 +241,7 @@ export function generateSourceResourceUrl(sourcePortalSharingUrl, itemId, source
|
|
|
241
241
|
* @param itemId Id of item
|
|
242
242
|
* @param thumbnailUrlPart Partial path to the thumbnail held in an item's JSON
|
|
243
243
|
* @param isGroup Boolean to indicate if the files are associated with a group or item
|
|
244
|
-
* @
|
|
244
|
+
* @returns URL string
|
|
245
245
|
*/
|
|
246
246
|
export function generateSourceThumbnailUrl(sourcePortalSharingUrl, itemId, thumbnailUrlPart, isGroup = false) {
|
|
247
247
|
return (checkUrlPathTermination(sourcePortalSharingUrl) +
|
|
@@ -258,7 +258,7 @@ export function generateSourceThumbnailUrl(sourcePortalSharingUrl, itemId, thumb
|
|
|
258
258
|
* @param storageItemId Id of storage item
|
|
259
259
|
* @param resourceFilenames List of resource filenames for an item, e.g., ["file1", "myFolder/file2"]
|
|
260
260
|
* @param storageVersion Version of the Solution template
|
|
261
|
-
* @
|
|
261
|
+
* @returns List of item files' URLs and folder/filenames for storing the files
|
|
262
262
|
*/
|
|
263
263
|
export function generateStorageFilePaths(portalSharingUrl, storageItemId, resourceFilenames = [], storageVersion = 0) {
|
|
264
264
|
return resourceFilenames.map(resourceFilename => {
|
|
@@ -273,7 +273,7 @@ export function generateStorageFilePaths(portalSharingUrl, storageItemId, resour
|
|
|
273
273
|
*
|
|
274
274
|
* @param itemId Id of item
|
|
275
275
|
* @param thumbnailUrlPart Partial path to the thumbnail held in an item's JSON
|
|
276
|
-
* @
|
|
276
|
+
* @returns Folder and filename for storage; folder is the itemID suffixed with "_info_thumbnail";
|
|
277
277
|
* file is URI-encoded thumbnailUrlPart
|
|
278
278
|
* @see convertStorageResourceToItemResource
|
|
279
279
|
*/
|
|
@@ -298,7 +298,7 @@ export function isSupportedFileType(filename) {
|
|
|
298
298
|
*
|
|
299
299
|
* @param authentication Credentials for the request to the storage
|
|
300
300
|
* @param filePaths List of item files' URLs and folder/filenames for storing the files
|
|
301
|
-
* @
|
|
301
|
+
* @returns A promise which resolves to a boolean indicating if the copies were successful
|
|
302
302
|
*/
|
|
303
303
|
export function getThumbnailFromStorageItem(authentication, filePaths) {
|
|
304
304
|
let thumbnailUrl;
|
|
@@ -321,7 +321,7 @@ export function getThumbnailFromStorageItem(authentication, filePaths) {
|
|
|
321
321
|
* @param filename Name of the resource file to update
|
|
322
322
|
* @param content The new content to update the resource with
|
|
323
323
|
* @param authentication Credentials for the request to the storage
|
|
324
|
-
* @
|
|
324
|
+
* @returns A promise which resolves with a success true/false response
|
|
325
325
|
*/
|
|
326
326
|
export function updateItemResourceText(itemId, filename, content, authentication) {
|
|
327
327
|
return updateItemResource({
|
|
@@ -20,6 +20,6 @@ import { UserSession } from "../interfaces";
|
|
|
20
20
|
* @param blob Blob containing metadata
|
|
21
21
|
* @param itemId Item to receive metadata
|
|
22
22
|
* @param authentication Credentials for the request
|
|
23
|
-
* @
|
|
23
|
+
* @returns Promise resolving to JSON containing success boolean
|
|
24
24
|
*/
|
|
25
25
|
export declare function addMetadataFromBlob(blob: Blob, itemId: string, authentication: UserSession): Promise<any>;
|
|
@@ -21,7 +21,7 @@ import { updateItem } from "@esri/arcgis-rest-portal";
|
|
|
21
21
|
* @param blob Blob containing metadata
|
|
22
22
|
* @param itemId Item to receive metadata
|
|
23
23
|
* @param authentication Credentials for the request
|
|
24
|
-
* @
|
|
24
|
+
* @returns Promise resolving to JSON containing success boolean
|
|
25
25
|
*/
|
|
26
26
|
export function addMetadataFromBlob(blob, itemId, authentication) {
|
|
27
27
|
const updateOptions = {
|
|
@@ -21,7 +21,7 @@ import { SolutionResourceType } from "./solution-resource";
|
|
|
21
21
|
* @param sourceResourceFilename Either filename or folder/filename to resource
|
|
22
22
|
* @param storageVersion Version of the Solution template
|
|
23
23
|
* @param storageFileType Optional argument that when supplied will control the how the prefix is created
|
|
24
|
-
* @
|
|
24
|
+
* @returns Folder and filename for storage; folder is the itemID plus ("_" + storageFolder) if storageFolder
|
|
25
25
|
* exists plus ("_" + part of sourceResourceFilename before "/" if that separator exists);
|
|
26
26
|
* file is sourceResourceFilename
|
|
27
27
|
* @see convertStorageResourceToItemResource
|
|
@@ -21,7 +21,7 @@ import { SolutionResourceType } from "./solution-resource";
|
|
|
21
21
|
* @param sourceResourceFilename Either filename or folder/filename to resource
|
|
22
22
|
* @param storageVersion Version of the Solution template
|
|
23
23
|
* @param storageFileType Optional argument that when supplied will control the how the prefix is created
|
|
24
|
-
* @
|
|
24
|
+
* @returns Folder and filename for storage; folder is the itemID plus ("_" + storageFolder) if storageFolder
|
|
25
25
|
* exists plus ("_" + part of sourceResourceFilename before "/" if that separator exists);
|
|
26
26
|
* file is sourceResourceFilename
|
|
27
27
|
* @see convertStorageResourceToItemResource
|
|
@@ -19,7 +19,7 @@ import { IDeployFilename } from "../interfaces";
|
|
|
19
19
|
*
|
|
20
20
|
* @param storageResourceFilename Filename used to store the resource, metadata, or thumbnail of an item
|
|
21
21
|
* @param storageVersion Version of the Solution template
|
|
22
|
-
* @
|
|
22
|
+
* @returns Folder and filename for storing information in an item, as well as the type (resource, metadata,
|
|
23
23
|
* or thumbnail) of the information; the folder property is only meaningful for the resource type
|
|
24
24
|
* @see generateResourceStorageFilename
|
|
25
25
|
* @see generateMetadataStorageFilename
|
|
@@ -19,7 +19,7 @@ import { EFileType } from "../interfaces";
|
|
|
19
19
|
*
|
|
20
20
|
* @param storageResourceFilename Filename used to store the resource, metadata, or thumbnail of an item
|
|
21
21
|
* @param storageVersion Version of the Solution template
|
|
22
|
-
* @
|
|
22
|
+
* @returns Folder and filename for storing information in an item, as well as the type (resource, metadata,
|
|
23
23
|
* or thumbnail) of the information; the folder property is only meaningful for the resource type
|
|
24
24
|
* @see generateResourceStorageFilename
|
|
25
25
|
* @see generateMetadataStorageFilename
|
|
@@ -25,7 +25,7 @@ import { IAssociatedFileCopyResults, IAssociatedFileInfo, ISourceFile, IZipInfo,
|
|
|
25
25
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
26
26
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
27
27
|
* @param filesPerZip Number of files to include per zip file; AGO limits zips to 50 files
|
|
28
|
-
* @
|
|
28
|
+
* @returns A promise which resolves to a list of the result of the copies
|
|
29
29
|
*/
|
|
30
30
|
export declare function copyFilesAsResources(files: ISourceFile[], destinationItemId: string, destinationAuthentication: UserSession, filesPerZip?: number): Promise<IAssociatedFileCopyResults[]>;
|
|
31
31
|
/**
|
|
@@ -37,7 +37,7 @@ export declare function copyFilesAsResources(files: ISourceFile[], destinationIt
|
|
|
37
37
|
* @param sourceAuthentication Credentials for the request to the source
|
|
38
38
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
39
39
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
40
|
-
* @
|
|
40
|
+
* @returns A promise which resolves to a list of the result of the copies
|
|
41
41
|
*/
|
|
42
42
|
export declare function copyAssociatedFilesByType(fileInfos: IAssociatedFileInfo[], sourceAuthentication: UserSession, destinationItemId: string, destinationAuthentication: UserSession): Promise<IAssociatedFileCopyResults[]>;
|
|
43
43
|
/**
|
|
@@ -46,6 +46,7 @@ export declare function copyAssociatedFilesByType(fileInfos: IAssociatedFileInfo
|
|
|
46
46
|
* @param zipInfos List of zip files containing files to store
|
|
47
47
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
48
48
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
49
|
-
* @
|
|
49
|
+
* @returns A promise which resolves to a list of the result of the copies
|
|
50
|
+
* @private
|
|
50
51
|
*/
|
|
51
52
|
export declare function _copyAssociatedFileZips(zipInfos: IZipInfo[], destinationItemId: string, destinationAuthentication: UserSession): Promise<IAssociatedFileCopyResults[]>;
|
|
@@ -33,7 +33,7 @@ import JSZip from "jszip";
|
|
|
33
33
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
34
34
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
35
35
|
* @param filesPerZip Number of files to include per zip file; AGO limits zips to 50 files
|
|
36
|
-
* @
|
|
36
|
+
* @returns A promise which resolves to a list of the result of the copies
|
|
37
37
|
*/
|
|
38
38
|
export function copyFilesAsResources(files, destinationItemId, destinationAuthentication, filesPerZip = 40) {
|
|
39
39
|
return new Promise(resolve => {
|
|
@@ -91,7 +91,7 @@ export function copyFilesAsResources(files, destinationItemId, destinationAuthen
|
|
|
91
91
|
* @param sourceAuthentication Credentials for the request to the source
|
|
92
92
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
93
93
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
94
|
-
* @
|
|
94
|
+
* @returns A promise which resolves to a list of the result of the copies
|
|
95
95
|
*/
|
|
96
96
|
export function copyAssociatedFilesByType(fileInfos, sourceAuthentication, destinationItemId, destinationAuthentication) {
|
|
97
97
|
return new Promise(resolve => {
|
|
@@ -167,7 +167,8 @@ export function copyAssociatedFilesByType(fileInfos, sourceAuthentication, desti
|
|
|
167
167
|
* @param zipInfos List of zip files containing files to store
|
|
168
168
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
169
169
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
170
|
-
* @
|
|
170
|
+
* @returns A promise which resolves to a list of the result of the copies
|
|
171
|
+
* @private
|
|
171
172
|
*/
|
|
172
173
|
export function _copyAssociatedFileZips(zipInfos, destinationItemId, destinationAuthentication) {
|
|
173
174
|
return new Promise(resolve => {
|
|
@@ -193,7 +194,7 @@ export function _copyAssociatedFileZips(zipInfos, destinationItemId, destination
|
|
|
193
194
|
* @param zipInfos List of zip files containing files to store
|
|
194
195
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
195
196
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
196
|
-
* @
|
|
197
|
+
* @returns A promise which resolves to a list of the result of the copies
|
|
197
198
|
*/
|
|
198
199
|
function _sendZipsSeriallyToItem(zipInfos, destinationItemId, destinationAuthentication) {
|
|
199
200
|
return new Promise(resolve => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copyAssociatedFiles.js","sourceRoot":"","sources":["../../../src/resources/copyAssociatedFiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;GAEG;AAEH,OAAO,EACL,SAAS,EAOV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EACL,mBAAmB,EACnB,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAC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AAI,CAClC,CAAC,OAAqC,EAAE,EAAE;gBACxC,kCAAkC;gBAClC,+FAA+F;gBAC/F,+FAA+F;gBAC/F,+FAA+F;gBAC/F,+FAA+F;gBAC/F,+FAA+F;gBAE/F,4FAA4F;gBAC5F,OAAO,GAAG,OAAO,CAAC,MAAM,CACtB,CAAC,MAAkC,EAAE,EAAE,CACrC,CAAC,CACC,MAAM,CAAC,iBAAiB;oBACxB,OAAO,MAAM,CAAC,mBAAmB,KAAK,WAAW,CAClD,CACJ,CAAC;gBAEF,gCAAgC;gBAChC,mEAAmE;gBACnE,uBAAuB,CACrB,QAAQ,EACR,iBAAiB,EACjB,yBAAyB,CAC1B,CAAC,IAAI,CAAC,CAAC,UAAwC,EAAE,EAAE;oBAClD,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;gBACtC,CAAC,CAAC,CAAC;YACL,CAAC,CACF,CAAC;SACH;aAAM;YACL,sDAAsD;YACtD,OAAO,CAAC,EAAE,CAAC,CAAC;SACb;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"copyAssociatedFiles.js","sourceRoot":"","sources":["../../../src/resources/copyAssociatedFiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;GAEG;AAEH,OAAO,EACL,SAAS,EAOV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EACL,mBAAmB,EACnB,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AA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AAC;AACL,CAAC"}
|
|
@@ -21,13 +21,13 @@ import { IAssociatedFileCopyResults, IAssociatedFileInfo, IFileMimeTyped, UserSe
|
|
|
21
21
|
* @param sourceAuthentication Credentials for the request to the source
|
|
22
22
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
23
23
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
24
|
-
* @
|
|
24
|
+
* @returns A promise which resolves to the result of the copy
|
|
25
25
|
*/
|
|
26
26
|
export declare function copyDataIntoItem(fileInfo: IAssociatedFileInfo, sourceAuthentication: UserSession, destinationItemId: string, destinationAuthentication: UserSession): Promise<IAssociatedFileCopyResults>;
|
|
27
27
|
/**
|
|
28
28
|
* Creates a file with a specified mime type.
|
|
29
29
|
*
|
|
30
30
|
* @param fileDescription Structure containing a file and the desired mime type
|
|
31
|
-
* @
|
|
31
|
+
* @returns Created file
|
|
32
32
|
*/
|
|
33
33
|
export declare function createMimeTypedFile(fileDescription: IFileMimeTyped): File;
|