@esri/solution-common 6.1.3 → 6.1.4
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/cjs/arcgisRestJS.d.ts +63 -0
- package/dist/cjs/arcgisRestJS.js +158 -0
- package/dist/cjs/arcgisRestJS.js.map +1 -0
- package/dist/cjs/completeItem.d.ts +30 -0
- package/dist/cjs/completeItem.js +72 -0
- package/dist/cjs/completeItem.js.map +1 -0
- package/dist/cjs/create-hub-request-options.d.ts +29 -0
- package/dist/cjs/create-hub-request-options.js +64 -0
- package/dist/cjs/create-hub-request-options.js.map +1 -0
- package/dist/cjs/deleteHelpers/deleteEmptyGroups.d.ts +24 -0
- package/dist/cjs/deleteHelpers/deleteEmptyGroups.js +42 -0
- package/dist/cjs/deleteHelpers/deleteEmptyGroups.js.map +1 -0
- package/dist/cjs/deleteHelpers/deleteGroupIfEmpty.d.ts +27 -0
- package/dist/cjs/deleteHelpers/deleteGroupIfEmpty.js +99 -0
- package/dist/cjs/deleteHelpers/deleteGroupIfEmpty.js.map +1 -0
- package/dist/cjs/deleteHelpers/deleteSolutionContents.d.ts +39 -0
- package/dist/cjs/deleteHelpers/deleteSolutionContents.js +127 -0
- package/dist/cjs/deleteHelpers/deleteSolutionContents.js.map +1 -0
- package/dist/cjs/deleteHelpers/deleteSolutionFolder.d.ts +29 -0
- package/dist/cjs/deleteHelpers/deleteSolutionFolder.js +81 -0
- package/dist/cjs/deleteHelpers/deleteSolutionFolder.js.map +1 -0
- package/dist/cjs/deleteHelpers/deleteSolutionItem.d.ts +31 -0
- package/dist/cjs/deleteHelpers/deleteSolutionItem.js +52 -0
- package/dist/cjs/deleteHelpers/deleteSolutionItem.js.map +1 -0
- package/dist/cjs/deleteHelpers/index.d.ts +22 -0
- package/dist/cjs/deleteHelpers/index.js +26 -0
- package/dist/cjs/deleteHelpers/index.js.map +1 -0
- package/dist/cjs/deleteHelpers/reconstructBuildOrderIds.d.ts +27 -0
- package/dist/cjs/deleteHelpers/reconstructBuildOrderIds.js +34 -0
- package/dist/cjs/deleteHelpers/reconstructBuildOrderIds.js.map +1 -0
- package/dist/cjs/deleteHelpers/removeItems.d.ts +35 -0
- package/dist/cjs/deleteHelpers/removeItems.js +116 -0
- package/dist/cjs/deleteHelpers/removeItems.js.map +1 -0
- package/dist/cjs/deleteHelpers/reportProgress.d.ts +27 -0
- package/dist/cjs/deleteHelpers/reportProgress.js +46 -0
- package/dist/cjs/deleteHelpers/reportProgress.js.map +1 -0
- package/dist/cjs/deleteSolution.d.ts +56 -0
- package/dist/cjs/deleteSolution.js +107 -0
- package/dist/cjs/deleteSolution.js.map +1 -0
- package/dist/cjs/dependencies.d.ts +26 -0
- package/dist/cjs/dependencies.js +171 -0
- package/dist/cjs/dependencies.js.map +1 -0
- package/dist/cjs/featureServiceHelpers.d.ts +847 -0
- package/dist/cjs/featureServiceHelpers.js +2553 -0
- package/dist/cjs/featureServiceHelpers.js.map +1 -0
- package/dist/cjs/formHelpers.d.ts +26 -0
- package/dist/cjs/formHelpers.js +40 -0
- package/dist/cjs/formHelpers.js.map +1 -0
- package/dist/cjs/generalHelpers.d.ts +447 -0
- package/dist/cjs/generalHelpers.js +959 -0
- package/dist/cjs/generalHelpers.js.map +1 -0
- package/dist/cjs/get-subscription-info.d.ts +27 -0
- package/dist/cjs/get-subscription-info.js +38 -0
- package/dist/cjs/get-subscription-info.js.map +1 -0
- package/dist/cjs/getDeletableSolutionInfo.d.ts +30 -0
- package/dist/cjs/getDeletableSolutionInfo.js +53 -0
- package/dist/cjs/getDeletableSolutionInfo.js.map +1 -0
- package/dist/cjs/getItemTypeAbbrev.d.ts +19 -0
- package/dist/cjs/getItemTypeAbbrev.js +186 -0
- package/dist/cjs/getItemTypeAbbrev.js.map +1 -0
- package/dist/cjs/getSolutionSummary.d.ts +28 -0
- package/dist/cjs/getSolutionSummary.js +100 -0
- package/dist/cjs/getSolutionSummary.js.map +1 -0
- package/dist/cjs/index.d.ts +49 -0
- package/dist/cjs/index.js +53 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/interfaces.d.ts +1446 -0
- package/dist/cjs/interfaces.js +72 -0
- package/dist/cjs/interfaces.js.map +1 -0
- package/dist/cjs/item-reuse.d.ts +140 -0
- package/dist/cjs/item-reuse.js +176 -0
- package/dist/cjs/item-reuse.js.map +1 -0
- package/dist/cjs/libConnectors.d.ts +73 -0
- package/dist/cjs/libConnectors.js +115 -0
- package/dist/cjs/libConnectors.js.map +1 -0
- package/dist/cjs/migrations/apply-schema.d.ts +24 -0
- package/dist/cjs/migrations/apply-schema.js +36 -0
- package/dist/cjs/migrations/apply-schema.js.map +1 -0
- package/dist/cjs/migrations/is-legacy-solution.d.ts +24 -0
- package/dist/cjs/migrations/is-legacy-solution.js +39 -0
- package/dist/cjs/migrations/is-legacy-solution.js.map +1 -0
- package/dist/cjs/migrations/upgrade-three-dot-one.d.ts +26 -0
- package/dist/cjs/migrations/upgrade-three-dot-one.js +48 -0
- package/dist/cjs/migrations/upgrade-three-dot-one.js.map +1 -0
- package/dist/cjs/migrations/upgrade-three-dot-zero.d.ts +27 -0
- package/dist/cjs/migrations/upgrade-three-dot-zero.js +43 -0
- package/dist/cjs/migrations/upgrade-three-dot-zero.js.map +1 -0
- package/dist/cjs/migrations/upgrade-two-dot-five.d.ts +24 -0
- package/dist/cjs/migrations/upgrade-two-dot-five.js +73 -0
- package/dist/cjs/migrations/upgrade-two-dot-five.js.map +1 -0
- package/dist/cjs/migrations/upgrade-two-dot-four.d.ts +24 -0
- package/dist/cjs/migrations/upgrade-two-dot-four.js +72 -0
- package/dist/cjs/migrations/upgrade-two-dot-four.js.map +1 -0
- package/dist/cjs/migrations/upgrade-two-dot-one.d.ts +7 -0
- package/dist/cjs/migrations/upgrade-two-dot-one.js +39 -0
- package/dist/cjs/migrations/upgrade-two-dot-one.js.map +1 -0
- package/dist/cjs/migrations/upgrade-two-dot-seven.d.ts +23 -0
- package/dist/cjs/migrations/upgrade-two-dot-seven.js +58 -0
- package/dist/cjs/migrations/upgrade-two-dot-seven.js.map +1 -0
- package/dist/cjs/migrations/upgrade-two-dot-six.d.ts +27 -0
- package/dist/cjs/migrations/upgrade-two-dot-six.js +61 -0
- package/dist/cjs/migrations/upgrade-two-dot-six.js.map +1 -0
- package/dist/cjs/migrations/upgrade-two-dot-three.d.ts +23 -0
- package/dist/cjs/migrations/upgrade-two-dot-three.js +55 -0
- package/dist/cjs/migrations/upgrade-two-dot-three.js.map +1 -0
- package/dist/cjs/migrations/upgrade-two-dot-two.d.ts +23 -0
- package/dist/cjs/migrations/upgrade-two-dot-two.js +58 -0
- package/dist/cjs/migrations/upgrade-two-dot-two.js.map +1 -0
- package/dist/cjs/migrations/upgrade-two-dot-zero.d.ts +44 -0
- package/dist/cjs/migrations/upgrade-two-dot-zero.js +95 -0
- package/dist/cjs/migrations/upgrade-two-dot-zero.js.map +1 -0
- package/dist/cjs/migrator.d.ts +25 -0
- package/dist/cjs/migrator.js +75 -0
- package/dist/cjs/migrator.js.map +1 -0
- package/dist/cjs/resourceHelpers.d.ts +192 -0
- package/dist/cjs/resourceHelpers.js +380 -0
- package/dist/cjs/resourceHelpers.js.map +1 -0
- package/dist/cjs/resources/add-resource.d.ts +38 -0
- package/dist/cjs/resources/add-resource.js +84 -0
- package/dist/cjs/resources/add-resource.js.map +1 -0
- package/dist/cjs/resources/addMetadataFromBlob.d.ts +25 -0
- package/dist/cjs/resources/addMetadataFromBlob.js +43 -0
- package/dist/cjs/resources/addMetadataFromBlob.js.map +1 -0
- package/dist/cjs/resources/convert-item-resource-to-storage-resource.d.ts +32 -0
- package/dist/cjs/resources/convert-item-resource-to-storage-resource.js +70 -0
- package/dist/cjs/resources/convert-item-resource-to-storage-resource.js.map +1 -0
- package/dist/cjs/resources/convert-storage-resource-to-item-resource.d.ts +29 -0
- package/dist/cjs/resources/convert-storage-resource-to-item-resource.js +70 -0
- package/dist/cjs/resources/convert-storage-resource-to-item-resource.js.map +1 -0
- package/dist/cjs/resources/copyAssociatedFiles.d.ts +79 -0
- package/dist/cjs/resources/copyAssociatedFiles.js +348 -0
- package/dist/cjs/resources/copyAssociatedFiles.js.map +1 -0
- package/dist/cjs/resources/copyDataIntoItem.d.ts +34 -0
- package/dist/cjs/resources/copyDataIntoItem.js +45 -0
- package/dist/cjs/resources/copyDataIntoItem.js.map +1 -0
- package/dist/cjs/resources/copyMetadataIntoItem.d.ts +27 -0
- package/dist/cjs/resources/copyMetadataIntoItem.js +44 -0
- package/dist/cjs/resources/copyMetadataIntoItem.js.map +1 -0
- package/dist/cjs/resources/copyResourceIntoZip.d.ts +34 -0
- package/dist/cjs/resources/copyResourceIntoZip.js +74 -0
- package/dist/cjs/resources/copyResourceIntoZip.js.map +1 -0
- package/dist/cjs/resources/copyZipIntoItem.d.ts +26 -0
- package/dist/cjs/resources/copyZipIntoItem.js +53 -0
- package/dist/cjs/resources/copyZipIntoItem.js.map +1 -0
- package/dist/cjs/resources/createCopyResults.d.ts +25 -0
- package/dist/cjs/resources/createCopyResults.js +36 -0
- package/dist/cjs/resources/createCopyResults.js.map +1 -0
- package/dist/cjs/resources/get-blob.d.ts +25 -0
- package/dist/cjs/resources/get-blob.js +42 -0
- package/dist/cjs/resources/get-blob.js.map +1 -0
- package/dist/cjs/resources/getItemResourcesFilesFromPaths.d.ts +25 -0
- package/dist/cjs/resources/getItemResourcesFilesFromPaths.js +49 -0
- package/dist/cjs/resources/getItemResourcesFilesFromPaths.js.map +1 -0
- package/dist/cjs/resources/getItemResourcesPaths.d.ts +27 -0
- package/dist/cjs/resources/getItemResourcesPaths.js +80 -0
- package/dist/cjs/resources/getItemResourcesPaths.js.map +1 -0
- package/dist/cjs/resources/index.d.ts +30 -0
- package/dist/cjs/resources/index.js +34 -0
- package/dist/cjs/resources/index.js.map +1 -0
- package/dist/cjs/resources/solution-resource.d.ts +35 -0
- package/dist/cjs/resources/solution-resource.js +31 -0
- package/dist/cjs/resources/solution-resource.js.map +1 -0
- package/dist/cjs/resources/transform-resource-paths-to-solution-resources.d.ts +56 -0
- package/dist/cjs/resources/transform-resource-paths-to-solution-resources.js +140 -0
- package/dist/cjs/resources/transform-resource-paths-to-solution-resources.js.map +1 -0
- package/dist/cjs/resources/update-resource.d.ts +27 -0
- package/dist/cjs/resources/update-resource.js +52 -0
- package/dist/cjs/resources/update-resource.js.map +1 -0
- package/dist/cjs/restHelpers.d.ts +634 -0
- package/dist/cjs/restHelpers.js +2008 -0
- package/dist/cjs/restHelpers.js.map +1 -0
- package/dist/cjs/restHelpersGet.d.ts +303 -0
- package/dist/cjs/restHelpersGet.js +835 -0
- package/dist/cjs/restHelpersGet.js.map +1 -0
- package/dist/cjs/sharing/index.d.ts +16 -0
- package/dist/cjs/sharing/index.js +20 -0
- package/dist/cjs/sharing/index.js.map +1 -0
- package/dist/cjs/sharing/share-item-to-groups.d.ts +26 -0
- package/dist/cjs/sharing/share-item-to-groups.js +44 -0
- package/dist/cjs/sharing/share-item-to-groups.js.map +1 -0
- package/dist/cjs/templatization.d.ts +139 -0
- package/dist/cjs/templatization.js +311 -0
- package/dist/cjs/templatization.js.map +1 -0
- package/dist/cjs/trackingHelpers.d.ts +115 -0
- package/dist/cjs/trackingHelpers.js +212 -0
- package/dist/cjs/trackingHelpers.js.map +1 -0
- package/dist/cjs/velocityHelpers.d.ts +68 -0
- package/dist/cjs/velocityHelpers.js +151 -0
- package/dist/cjs/velocityHelpers.js.map +1 -0
- package/dist/cjs/webtoolHelpers.d.ts +57 -0
- package/dist/cjs/webtoolHelpers.js +102 -0
- package/dist/cjs/webtoolHelpers.js.map +1 -0
- package/dist/cjs/workflowHelpers.d.ts +112 -0
- package/dist/cjs/workflowHelpers.js +284 -0
- package/dist/cjs/workflowHelpers.js.map +1 -0
- package/dist/cjs/workforceHelpers.d.ts +121 -0
- package/dist/cjs/workforceHelpers.js +720 -0
- package/dist/cjs/workforceHelpers.js.map +1 -0
- package/dist/cjs/zip-utils.d.ts +85 -0
- package/dist/cjs/zip-utils.js +154 -0
- package/dist/cjs/zip-utils.js.map +1 -0
- package/dist/esm/arcgisRestJS.d.ts +63 -0
- package/dist/esm/arcgisRestJS.js +110 -0
- package/dist/esm/arcgisRestJS.js.map +1 -0
- package/dist/esm/completeItem.d.ts +30 -0
- package/dist/esm/completeItem.js +67 -0
- package/dist/esm/completeItem.js.map +1 -0
- package/dist/esm/create-hub-request-options.d.ts +29 -0
- package/dist/esm/create-hub-request-options.js +60 -0
- package/dist/esm/create-hub-request-options.js.map +1 -0
- package/dist/esm/deleteHelpers/deleteEmptyGroups.d.ts +24 -0
- package/dist/esm/deleteHelpers/deleteEmptyGroups.js +38 -0
- package/dist/esm/deleteHelpers/deleteEmptyGroups.js.map +1 -0
- package/dist/esm/deleteHelpers/deleteGroupIfEmpty.d.ts +27 -0
- package/dist/esm/deleteHelpers/deleteGroupIfEmpty.js +95 -0
- package/dist/esm/deleteHelpers/deleteGroupIfEmpty.js.map +1 -0
- package/dist/esm/deleteHelpers/deleteSolutionContents.d.ts +39 -0
- package/dist/esm/deleteHelpers/deleteSolutionContents.js +122 -0
- package/dist/esm/deleteHelpers/deleteSolutionContents.js.map +1 -0
- package/dist/esm/deleteHelpers/deleteSolutionFolder.d.ts +29 -0
- package/dist/esm/deleteHelpers/deleteSolutionFolder.js +77 -0
- package/dist/esm/deleteHelpers/deleteSolutionFolder.js.map +1 -0
- package/dist/esm/deleteHelpers/deleteSolutionItem.d.ts +31 -0
- package/dist/esm/deleteHelpers/deleteSolutionItem.js +48 -0
- package/dist/esm/deleteHelpers/deleteSolutionItem.js.map +1 -0
- package/dist/esm/deleteHelpers/index.d.ts +22 -0
- package/dist/esm/deleteHelpers/index.js +23 -0
- package/dist/esm/deleteHelpers/index.js.map +1 -0
- package/dist/esm/deleteHelpers/reconstructBuildOrderIds.d.ts +27 -0
- package/dist/esm/deleteHelpers/reconstructBuildOrderIds.js +29 -0
- package/dist/esm/deleteHelpers/reconstructBuildOrderIds.js.map +1 -0
- package/dist/esm/deleteHelpers/removeItems.d.ts +35 -0
- package/dist/esm/deleteHelpers/removeItems.js +111 -0
- package/dist/esm/deleteHelpers/removeItems.js.map +1 -0
- package/dist/esm/deleteHelpers/reportProgress.d.ts +27 -0
- package/dist/esm/deleteHelpers/reportProgress.js +42 -0
- package/dist/esm/deleteHelpers/reportProgress.js.map +1 -0
- package/dist/esm/deleteSolution.d.ts +56 -0
- package/dist/esm/deleteSolution.js +101 -0
- package/dist/esm/deleteSolution.js.map +1 -0
- package/dist/esm/dependencies.d.ts +26 -0
- package/dist/esm/dependencies.js +167 -0
- package/dist/esm/dependencies.js.map +1 -0
- package/dist/esm/featureServiceHelpers.d.ts +847 -0
- package/dist/esm/featureServiceHelpers.js +2466 -0
- package/dist/esm/featureServiceHelpers.js.map +1 -0
- package/dist/esm/formHelpers.d.ts +26 -0
- package/dist/esm/formHelpers.js +35 -0
- package/dist/esm/formHelpers.js.map +1 -0
- package/dist/esm/generalHelpers.d.ts +447 -0
- package/dist/esm/generalHelpers.js +903 -0
- package/dist/esm/generalHelpers.js.map +1 -0
- package/dist/esm/get-subscription-info.d.ts +27 -0
- package/dist/esm/get-subscription-info.js +34 -0
- package/dist/esm/get-subscription-info.js.map +1 -0
- package/dist/esm/getDeletableSolutionInfo.d.ts +30 -0
- package/dist/esm/getDeletableSolutionInfo.js +48 -0
- package/dist/esm/getDeletableSolutionInfo.js.map +1 -0
- package/dist/esm/getItemTypeAbbrev.d.ts +19 -0
- package/dist/esm/getItemTypeAbbrev.js +182 -0
- package/dist/esm/getItemTypeAbbrev.js.map +1 -0
- package/dist/esm/getSolutionSummary.d.ts +28 -0
- package/dist/esm/getSolutionSummary.js +95 -0
- package/dist/esm/getSolutionSummary.js.map +1 -0
- package/dist/esm/index.d.ts +49 -0
- package/dist/esm/index.js +50 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/interfaces.d.ts +1446 -0
- package/dist/esm/interfaces.js +69 -0
- package/dist/esm/interfaces.js.map +1 -0
- package/dist/esm/item-reuse.d.ts +140 -0
- package/dist/esm/item-reuse.js +167 -0
- package/dist/esm/item-reuse.js.map +1 -0
- package/dist/esm/libConnectors.d.ts +73 -0
- package/dist/esm/libConnectors.js +105 -0
- package/dist/esm/libConnectors.js.map +1 -0
- package/dist/esm/migrations/apply-schema.d.ts +24 -0
- package/dist/esm/migrations/apply-schema.js +32 -0
- package/dist/esm/migrations/apply-schema.js.map +1 -0
- package/dist/esm/migrations/is-legacy-solution.d.ts +24 -0
- package/dist/esm/migrations/is-legacy-solution.js +35 -0
- package/dist/esm/migrations/is-legacy-solution.js.map +1 -0
- package/dist/esm/migrations/upgrade-three-dot-one.d.ts +26 -0
- package/dist/esm/migrations/upgrade-three-dot-one.js +44 -0
- package/dist/esm/migrations/upgrade-three-dot-one.js.map +1 -0
- package/dist/esm/migrations/upgrade-three-dot-zero.d.ts +27 -0
- package/dist/esm/migrations/upgrade-three-dot-zero.js +39 -0
- package/dist/esm/migrations/upgrade-three-dot-zero.js.map +1 -0
- package/dist/esm/migrations/upgrade-two-dot-five.d.ts +24 -0
- package/dist/esm/migrations/upgrade-two-dot-five.js +69 -0
- package/dist/esm/migrations/upgrade-two-dot-five.js.map +1 -0
- package/dist/esm/migrations/upgrade-two-dot-four.d.ts +24 -0
- package/dist/esm/migrations/upgrade-two-dot-four.js +68 -0
- package/dist/esm/migrations/upgrade-two-dot-four.js.map +1 -0
- package/dist/esm/migrations/upgrade-two-dot-one.d.ts +7 -0
- package/dist/esm/migrations/upgrade-two-dot-one.js +35 -0
- package/dist/esm/migrations/upgrade-two-dot-one.js.map +1 -0
- package/dist/esm/migrations/upgrade-two-dot-seven.d.ts +23 -0
- package/dist/esm/migrations/upgrade-two-dot-seven.js +54 -0
- package/dist/esm/migrations/upgrade-two-dot-seven.js.map +1 -0
- package/dist/esm/migrations/upgrade-two-dot-six.d.ts +27 -0
- package/dist/esm/migrations/upgrade-two-dot-six.js +57 -0
- package/dist/esm/migrations/upgrade-two-dot-six.js.map +1 -0
- package/dist/esm/migrations/upgrade-two-dot-three.d.ts +23 -0
- package/dist/esm/migrations/upgrade-two-dot-three.js +51 -0
- package/dist/esm/migrations/upgrade-two-dot-three.js.map +1 -0
- package/dist/esm/migrations/upgrade-two-dot-two.d.ts +23 -0
- package/dist/esm/migrations/upgrade-two-dot-two.js +54 -0
- package/dist/esm/migrations/upgrade-two-dot-two.js.map +1 -0
- package/dist/esm/migrations/upgrade-two-dot-zero.d.ts +44 -0
- package/dist/esm/migrations/upgrade-two-dot-zero.js +88 -0
- package/dist/esm/migrations/upgrade-two-dot-zero.js.map +1 -0
- package/dist/esm/migrator.d.ts +25 -0
- package/dist/esm/migrator.js +71 -0
- package/dist/esm/migrator.js.map +1 -0
- package/dist/esm/resourceHelpers.d.ts +192 -0
- package/dist/esm/resourceHelpers.js +361 -0
- package/dist/esm/resourceHelpers.js.map +1 -0
- package/dist/esm/resources/add-resource.d.ts +38 -0
- package/dist/esm/resources/add-resource.js +79 -0
- package/dist/esm/resources/add-resource.js.map +1 -0
- package/dist/esm/resources/addMetadataFromBlob.d.ts +25 -0
- package/dist/esm/resources/addMetadataFromBlob.js +39 -0
- package/dist/esm/resources/addMetadataFromBlob.js.map +1 -0
- package/dist/esm/resources/convert-item-resource-to-storage-resource.d.ts +32 -0
- package/dist/esm/resources/convert-item-resource-to-storage-resource.js +66 -0
- package/dist/esm/resources/convert-item-resource-to-storage-resource.js.map +1 -0
- package/dist/esm/resources/convert-storage-resource-to-item-resource.d.ts +29 -0
- package/dist/esm/resources/convert-storage-resource-to-item-resource.js +66 -0
- package/dist/esm/resources/convert-storage-resource-to-item-resource.js.map +1 -0
- package/dist/esm/resources/copyAssociatedFiles.d.ts +79 -0
- package/dist/esm/resources/copyAssociatedFiles.js +339 -0
- package/dist/esm/resources/copyAssociatedFiles.js.map +1 -0
- package/dist/esm/resources/copyDataIntoItem.d.ts +34 -0
- package/dist/esm/resources/copyDataIntoItem.js +40 -0
- package/dist/esm/resources/copyDataIntoItem.js.map +1 -0
- package/dist/esm/resources/copyMetadataIntoItem.d.ts +27 -0
- package/dist/esm/resources/copyMetadataIntoItem.js +40 -0
- package/dist/esm/resources/copyMetadataIntoItem.js.map +1 -0
- package/dist/esm/resources/copyResourceIntoZip.d.ts +34 -0
- package/dist/esm/resources/copyResourceIntoZip.js +69 -0
- package/dist/esm/resources/copyResourceIntoZip.js.map +1 -0
- package/dist/esm/resources/copyZipIntoItem.d.ts +26 -0
- package/dist/esm/resources/copyZipIntoItem.js +49 -0
- package/dist/esm/resources/copyZipIntoItem.js.map +1 -0
- package/dist/esm/resources/createCopyResults.d.ts +25 -0
- package/dist/esm/resources/createCopyResults.js +32 -0
- package/dist/esm/resources/createCopyResults.js.map +1 -0
- package/dist/esm/resources/get-blob.d.ts +25 -0
- package/dist/esm/resources/get-blob.js +38 -0
- package/dist/esm/resources/get-blob.js.map +1 -0
- package/dist/esm/resources/getItemResourcesFilesFromPaths.d.ts +25 -0
- package/dist/esm/resources/getItemResourcesFilesFromPaths.js +45 -0
- package/dist/esm/resources/getItemResourcesFilesFromPaths.js.map +1 -0
- package/dist/esm/resources/getItemResourcesPaths.d.ts +27 -0
- package/dist/esm/resources/getItemResourcesPaths.js +76 -0
- package/dist/esm/resources/getItemResourcesPaths.js.map +1 -0
- package/dist/esm/resources/index.d.ts +30 -0
- package/dist/esm/resources/index.js +31 -0
- package/dist/esm/resources/index.js.map +1 -0
- package/dist/esm/resources/solution-resource.d.ts +35 -0
- package/dist/esm/resources/solution-resource.js +28 -0
- package/dist/esm/resources/solution-resource.js.map +1 -0
- package/dist/esm/resources/transform-resource-paths-to-solution-resources.d.ts +56 -0
- package/dist/esm/resources/transform-resource-paths-to-solution-resources.js +132 -0
- package/dist/esm/resources/transform-resource-paths-to-solution-resources.js.map +1 -0
- package/dist/esm/resources/update-resource.d.ts +27 -0
- package/dist/esm/resources/update-resource.js +48 -0
- package/dist/esm/resources/update-resource.js.map +1 -0
- package/dist/esm/restHelpers.d.ts +634 -0
- package/dist/esm/restHelpers.js +1943 -0
- package/dist/esm/restHelpers.js.map +1 -0
- package/dist/esm/restHelpersGet.d.ts +303 -0
- package/dist/esm/restHelpersGet.js +793 -0
- package/dist/esm/restHelpersGet.js.map +1 -0
- package/dist/esm/sharing/index.d.ts +16 -0
- package/dist/esm/sharing/index.js +17 -0
- package/dist/esm/sharing/index.js.map +1 -0
- package/dist/esm/sharing/share-item-to-groups.d.ts +26 -0
- package/dist/esm/sharing/share-item-to-groups.js +40 -0
- package/dist/esm/sharing/share-item-to-groups.js.map +1 -0
- package/dist/esm/templatization.d.ts +139 -0
- package/dist/esm/templatization.js +291 -0
- package/dist/esm/templatization.js.map +1 -0
- package/dist/esm/trackingHelpers.d.ts +115 -0
- package/dist/esm/trackingHelpers.js +200 -0
- package/dist/esm/trackingHelpers.js.map +1 -0
- package/dist/esm/velocityHelpers.d.ts +68 -0
- package/dist/esm/velocityHelpers.js +144 -0
- package/dist/esm/velocityHelpers.js.map +1 -0
- package/dist/esm/webtoolHelpers.d.ts +57 -0
- package/dist/esm/webtoolHelpers.js +95 -0
- package/dist/esm/webtoolHelpers.js.map +1 -0
- package/dist/esm/workflowHelpers.d.ts +112 -0
- package/dist/esm/workflowHelpers.js +270 -0
- package/dist/esm/workflowHelpers.js.map +1 -0
- package/dist/esm/workforceHelpers.d.ts +121 -0
- package/dist/esm/workforceHelpers.js +691 -0
- package/dist/esm/workforceHelpers.js.map +1 -0
- package/dist/esm/zip-utils.d.ts +85 -0
- package/dist/esm/zip-utils.js +142 -0
- package/dist/esm/zip-utils.js.map +1 -0
- package/dist/solution.js_commit.txt +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1,634 @@
|
|
|
1
|
+
/** @license
|
|
2
|
+
* Copyright 2018 Esri
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { IAddGroupResponse, IAdditionalGroupSearchOptions, IDependency, IFeatureServiceProperties, IFolderStatusResponse, IItemTemplate, IItemUpdate, IPostProcessArgs, IRelatedItems, IStatusResponse, IUpdate } from "./interfaces";
|
|
17
|
+
import { IAddFolderResponse, ICreateItemResponse, ICreateServiceResult, IExtent, IGroup, IGroupAdd, IItem, IParams, ISpatialReference, ItemRelationshipType, IUpdateItemResponse, IUserSessionOptions, IMoveItemResponse, IPagingParams, ISearchOptions, ISearchResult, SearchQueryBuilder, UserSession } from "./arcgisRestJS";
|
|
18
|
+
export declare function addItemData(id: string, data: any, authentication: UserSession): Promise<IUpdateItemResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Creates a UserSession via a function so that the global arcgisSolution variable can access authentication.
|
|
21
|
+
*
|
|
22
|
+
* @param options See https://esri.github.io/arcgis-rest-js/api/auth/IUserSessionOptions/
|
|
23
|
+
* @returns UserSession
|
|
24
|
+
*/
|
|
25
|
+
export declare function getUserSession(options?: IUserSessionOptions): UserSession;
|
|
26
|
+
/**
|
|
27
|
+
* Adds a forward relationship between two items.
|
|
28
|
+
*
|
|
29
|
+
* @param originItemId Origin of relationship
|
|
30
|
+
* @param destinationItemId Destination of relationship
|
|
31
|
+
* @param relationshipType Type of relationship
|
|
32
|
+
* @param authentication Credentials for the request
|
|
33
|
+
* @returns A Promise to add item resources.
|
|
34
|
+
*/
|
|
35
|
+
export declare function addForwardItemRelationship(originItemId: string, destinationItemId: string, relationshipType: ItemRelationshipType, authentication: UserSession): Promise<IStatusResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Adds forward relationships for an item.
|
|
38
|
+
*
|
|
39
|
+
* @param originItemId Origin of relationship
|
|
40
|
+
* @param destinationRelationships Destinations
|
|
41
|
+
* @param authentication Credentials for the request
|
|
42
|
+
* @returns A Promise to add item resources.
|
|
43
|
+
*/
|
|
44
|
+
export declare function addForwardItemRelationships(originItemId: string, destinationRelationships: IRelatedItems[], authentication: UserSession): Promise<IStatusResponse[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Adds a token to the query parameters of a URL.
|
|
47
|
+
*
|
|
48
|
+
* @param url URL to use as base
|
|
49
|
+
* @param authentication Credentials to be used to generate token for URL
|
|
50
|
+
* @returns A promise that will resolve with the supplied URL with `token=<token>` added to its query params
|
|
51
|
+
* unless either the URL doesn't exist or the token can't be generated
|
|
52
|
+
*/
|
|
53
|
+
export declare function addTokenToUrl(url: string, authentication: UserSession): Promise<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Calls addToDefinition for the service.
|
|
56
|
+
*
|
|
57
|
+
* Added retry due to some solutions failing to deploy in specific orgs/hives due to timeouts.
|
|
58
|
+
* On the first pass we will use the quicker sync request to add.
|
|
59
|
+
* If it fails we will use an async request that will avoid the timeout errors.
|
|
60
|
+
*
|
|
61
|
+
* @param url URL to use as base
|
|
62
|
+
* @param options the info to add to the services definition
|
|
63
|
+
* @param skipRetry a boolean to control if retry logic will be used. Defaults to false.
|
|
64
|
+
* @param useAsync a boolean to control if we will use an async request
|
|
65
|
+
* @returns A promise that will resolve when the request has completed
|
|
66
|
+
*/
|
|
67
|
+
export declare function addToServiceDefinition(url: string, options: any, skipRetry?: boolean, useAsync?: boolean): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* When using an async request we need to poll the status url to know when the request has completed or failed.
|
|
70
|
+
*
|
|
71
|
+
* @param result the result returned from the addToDefinition request.
|
|
72
|
+
* This will contain a status url or the standard sync result.
|
|
73
|
+
* @param authentication Credentials to be used to generate token for URL
|
|
74
|
+
* @returns A promise that will resolve when the request has completed
|
|
75
|
+
*/
|
|
76
|
+
export declare function checkRequestStatus(result: any, authentication: any): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
* Converts a general search into an ISearchOptions structure.
|
|
79
|
+
*
|
|
80
|
+
* @param search Search specified in one of three ways
|
|
81
|
+
* @returns Recast search
|
|
82
|
+
*/
|
|
83
|
+
export declare function convertToISearchOptions(search: string | ISearchOptions | SearchQueryBuilder): ISearchOptions;
|
|
84
|
+
/**
|
|
85
|
+
* Simple validate function to ensure all coordinates are numbers
|
|
86
|
+
* In some cases orgs can have null or undefined coordinate values associated with the org extent
|
|
87
|
+
*
|
|
88
|
+
* @param extent the extent to validate
|
|
89
|
+
* @returns the provided extent or a default global extent if some coordinates are not numbers
|
|
90
|
+
* @private
|
|
91
|
+
*/
|
|
92
|
+
export declare function _validateExtent(extent: IExtent): IExtent;
|
|
93
|
+
/**
|
|
94
|
+
* If the request to convert the extent fails it has commonly been due to an invalid extent.
|
|
95
|
+
* This function will first attempt to use the provided extent. If it fails it will default to
|
|
96
|
+
* the source items extent and if that fails it will then use a default global extent.
|
|
97
|
+
*
|
|
98
|
+
* @param extent the extent to convert
|
|
99
|
+
* @param fallbackExtent the extent to convert if the main extent does not project to the outSR
|
|
100
|
+
* @param outSR the spatial reference to project to
|
|
101
|
+
* @param geometryServiceUrl the service url for the geometry service to use
|
|
102
|
+
* @param authentication the credentials for the requests
|
|
103
|
+
* @returns the extent projected to the provided spatial reference
|
|
104
|
+
* or the world extent projected to the provided spatial reference
|
|
105
|
+
* @private
|
|
106
|
+
*/
|
|
107
|
+
export declare function convertExtentWithFallback(extent: IExtent, fallbackExtent: any, outSR: ISpatialReference, geometryServiceUrl: string, authentication: UserSession): Promise<any>;
|
|
108
|
+
/**
|
|
109
|
+
* Converts an extent to a specified spatial reference.
|
|
110
|
+
*
|
|
111
|
+
* @param extent Extent object to check and (possibly) to project
|
|
112
|
+
* @param outSR Desired spatial reference
|
|
113
|
+
* @param geometryServiceUrl Path to geometry service providing `findTransformations` and `project` services
|
|
114
|
+
* @param authentication Credentials for the request
|
|
115
|
+
* @returns Original extent if it's already using outSR or the extents projected into the outSR
|
|
116
|
+
*/
|
|
117
|
+
export declare function convertExtent(extent: IExtent, outSR: ISpatialReference, geometryServiceUrl: string, authentication: UserSession): Promise<any>;
|
|
118
|
+
/**
|
|
119
|
+
* Publishes a feature service as an AGOL item; it does not include its layers and tables
|
|
120
|
+
*
|
|
121
|
+
* @param newItemTemplate Template of item to be created
|
|
122
|
+
* @param authentication Credentials for the request
|
|
123
|
+
* @param templateDictionary Hash of facts: org URL, adlib replacements, user; .user.folders property contains a list
|
|
124
|
+
* @returns A promise that will resolve with an object reporting success and the Solution id
|
|
125
|
+
*/
|
|
126
|
+
export declare function createFeatureService(newItemTemplate: IItemTemplate, authentication: UserSession, templateDictionary: any): Promise<ICreateServiceResult>;
|
|
127
|
+
/**
|
|
128
|
+
* Publishes an item and its data, metadata, and resources as an AGOL item.
|
|
129
|
+
*
|
|
130
|
+
* @param itemInfo Item's `item` section
|
|
131
|
+
* @param folderId Id of folder to receive item; null indicates that the item goes into the root
|
|
132
|
+
* folder; ignored for Group item type
|
|
133
|
+
* @param destinationAuthentication Credentials for for requests to where the item is to be created
|
|
134
|
+
* @param itemThumbnailUrl URL to image to use for item thumbnail
|
|
135
|
+
* @param itemThumbnailAuthentication Credentials for requests to the thumbnail source
|
|
136
|
+
* @param dataFile Item's `data` section
|
|
137
|
+
* @param metadataFile Item's metadata file
|
|
138
|
+
* @param resourcesFiles Item's resources
|
|
139
|
+
* @param access Access to set for item: "public", "org", "private"
|
|
140
|
+
* @returns A promise that will resolve with an object reporting success or failure and the Solution id
|
|
141
|
+
*/
|
|
142
|
+
export declare function createFullItem(itemInfo: any, folderId: string | undefined, destinationAuthentication: UserSession, itemThumbnailUrl?: string, itemThumbnailAuthentication?: UserSession, dataFile?: File, metadataFile?: File, resourcesFiles?: File[], access?: string): Promise<ICreateItemResponse>;
|
|
143
|
+
/**
|
|
144
|
+
* Publishes an item and its data as an AGOL item.
|
|
145
|
+
*
|
|
146
|
+
* @param itemInfo Item's `item` section
|
|
147
|
+
* @param dataInfo Item's `data` section
|
|
148
|
+
* @param authentication Credentials for the request
|
|
149
|
+
* @param folderId Id of folder to receive item; null indicates that the item goes into the root
|
|
150
|
+
* folder; ignored for Group item type
|
|
151
|
+
* @param access Access to set for item: "public", "org", "private"
|
|
152
|
+
* @returns A promise that will resolve with an object reporting success and the Solution id
|
|
153
|
+
*/
|
|
154
|
+
export declare function createItemWithData(itemInfo: any, dataInfo: any, authentication: UserSession, folderId: string | undefined, access?: string): Promise<ICreateItemResponse>;
|
|
155
|
+
/**
|
|
156
|
+
* Creates a folder using a numeric suffix to ensure uniqueness if necessary.
|
|
157
|
+
*
|
|
158
|
+
* @param title Folder title, used as-is if possible and with suffix otherwise
|
|
159
|
+
* @param templateDictionary Hash of facts: org URL, adlib replacements, user; .user.folders property contains a list
|
|
160
|
+
* of known folder names; function updates list with existing names not yet known, and creates .user.folders if it
|
|
161
|
+
* doesn't exist in the dictionary
|
|
162
|
+
* @param authentication Credentials for creating folder
|
|
163
|
+
* @returns Id of created folder
|
|
164
|
+
*/
|
|
165
|
+
export declare function createUniqueFolder(title: string, templateDictionary: any, authentication: UserSession): Promise<IAddFolderResponse>;
|
|
166
|
+
/**
|
|
167
|
+
* Creates a group using numeric suffix to ensure uniqueness.
|
|
168
|
+
*
|
|
169
|
+
* @param title Group title, used as-is if possible and with suffix otherwise
|
|
170
|
+
* @param templateDictionary Hash of facts: org URL, adlib replacements, user
|
|
171
|
+
* @param authentication Credentials for creating group
|
|
172
|
+
* @param owner Optional arg for the Tracking owner
|
|
173
|
+
* If the tracking owner is not the one deploying the solution
|
|
174
|
+
* tracker groups will be created under the deployment user but
|
|
175
|
+
* will be reassigned to the tracking owner.
|
|
176
|
+
* @returns Information about created group
|
|
177
|
+
*/
|
|
178
|
+
export declare function createUniqueGroup(title: string, groupItem: IGroupAdd, templateDictionary: any, authentication: UserSession, owner?: string): Promise<IAddGroupResponse>;
|
|
179
|
+
/**
|
|
180
|
+
* Gets the ids of the dependencies of an AGOL feature service item.
|
|
181
|
+
* Dependencies will only exist when the service is a view.
|
|
182
|
+
*
|
|
183
|
+
* @param itemTemplate Template of item to be created
|
|
184
|
+
* @param authentication Credentials for the request
|
|
185
|
+
* @returns A promise that will resolve a list of dependencies
|
|
186
|
+
*/
|
|
187
|
+
export declare function extractDependencies(itemTemplate: IItemTemplate, authentication?: UserSession): Promise<IDependency[]>;
|
|
188
|
+
/**
|
|
189
|
+
* Get json info for the services layers
|
|
190
|
+
*
|
|
191
|
+
* @param serviceUrl the url for the service
|
|
192
|
+
* @param layerList list of base layer info
|
|
193
|
+
* @param authentication Credentials for the request
|
|
194
|
+
* @returns A promise that will resolve a list of dependencies
|
|
195
|
+
*/
|
|
196
|
+
export declare function getLayers(serviceUrl: string, layerList: any[], authentication: UserSession): Promise<any[]>;
|
|
197
|
+
/**
|
|
198
|
+
* Add additional options to a layers definition.
|
|
199
|
+
*
|
|
200
|
+
* @param args The IPostProcessArgs for the request(s)
|
|
201
|
+
* @param isPortal boolean to indicate if we are deploying to portal
|
|
202
|
+
*
|
|
203
|
+
* @returns An array of update instructions
|
|
204
|
+
* @private
|
|
205
|
+
*/
|
|
206
|
+
export declare function getLayerUpdates(args: IPostProcessArgs, isPortal: boolean): IUpdate[];
|
|
207
|
+
/**
|
|
208
|
+
* Moves an AGO item to a specified folder.
|
|
209
|
+
*
|
|
210
|
+
* @param itemId Id of item to move
|
|
211
|
+
* @param folderId Id of folder to receive item
|
|
212
|
+
* @param authentication Credentials for the request
|
|
213
|
+
* @returns A Promise resolving to the results of the move
|
|
214
|
+
*/
|
|
215
|
+
export declare function moveItemToFolder(itemId: string, folderId: string, authentication: UserSession): Promise<IMoveItemResponse>;
|
|
216
|
+
/**
|
|
217
|
+
* Moves a list of AGO items to a specified folder.
|
|
218
|
+
*
|
|
219
|
+
* @param itemIds Ids of items to move
|
|
220
|
+
* @param folderId Id of folder to receive item
|
|
221
|
+
* @param authentication Credentials for the request
|
|
222
|
+
* @returns A Promise resolving to the results of the moves
|
|
223
|
+
*/
|
|
224
|
+
export declare function moveItemsToFolder(itemIds: string[], folderId: any, authentication: UserSession): Promise<IMoveItemResponse[]>;
|
|
225
|
+
/**
|
|
226
|
+
* Sorts relationships based on order of supporting layers and tables in the service definition
|
|
227
|
+
*
|
|
228
|
+
* @param layers the layers from the service
|
|
229
|
+
* @param tables the tables from the service
|
|
230
|
+
* @param relUpdates the relationships to add for the service
|
|
231
|
+
*
|
|
232
|
+
* @returns An array with relationships that have been sorted
|
|
233
|
+
* @private
|
|
234
|
+
*/
|
|
235
|
+
export declare function _sortRelationships(layers: any[], tables: any[], relUpdates: any): any[];
|
|
236
|
+
/**
|
|
237
|
+
* Add additional options to a layers definition
|
|
238
|
+
*
|
|
239
|
+
* Added retry due to some solutions failing to deploy in specific orgs/hives
|
|
240
|
+
*
|
|
241
|
+
*
|
|
242
|
+
* @param Update will contain either add, update, or delete from service definition call
|
|
243
|
+
* @param skipRetry defaults to false. when true the retry logic will be ignored
|
|
244
|
+
* @returns A promise that will resolve when service definition call has completed
|
|
245
|
+
* @private
|
|
246
|
+
*/
|
|
247
|
+
export declare function getRequest(update: IUpdate, skipRetry?: boolean, useAsync?: boolean, isPortal?: boolean): Promise<void>;
|
|
248
|
+
/**
|
|
249
|
+
* Fills in missing data, including full layer and table definitions, in a feature services' definition.
|
|
250
|
+
*
|
|
251
|
+
* @param itemTemplate Feature service item, data, dependencies definition to be modified
|
|
252
|
+
* @param authentication Credentials for the request to AGOL
|
|
253
|
+
* @returns A promise that will resolve when fullItem has been updated
|
|
254
|
+
* @private
|
|
255
|
+
*/
|
|
256
|
+
export declare function getServiceLayersAndTables(itemTemplate: IItemTemplate, authentication: UserSession): Promise<IItemTemplate>;
|
|
257
|
+
/**
|
|
258
|
+
* Get service properties for the given url and update key props
|
|
259
|
+
*
|
|
260
|
+
* @param serviceUrl the feature service url
|
|
261
|
+
* @param authentication Credentials for the request to AGOL
|
|
262
|
+
* @param workforceService boolean to indicate if extra workforce service steps should be handled
|
|
263
|
+
* @returns A promise that will resolve with the service properties
|
|
264
|
+
* @private
|
|
265
|
+
*/
|
|
266
|
+
export declare function getFeatureServiceProperties(serviceUrl: string, authentication: UserSession, workforceService?: boolean): Promise<IFeatureServiceProperties>;
|
|
267
|
+
/**
|
|
268
|
+
* Fetches the configuration of a workflow.
|
|
269
|
+
*
|
|
270
|
+
* @param itemId Id of the workflow item
|
|
271
|
+
* @param workflowBaseUrl URL of the workflow manager, e.g., "https://workflow.arcgis.com/orgId"
|
|
272
|
+
* @param authentication Credentials for the request to AGOL
|
|
273
|
+
* @returns Promise resolving with the workflow configuration in a zip file
|
|
274
|
+
* @throws {WorkflowJsonExceptionDTO} if request to workflow manager fails
|
|
275
|
+
*/
|
|
276
|
+
export declare function getWorkflowConfigurationZip(itemId: string, workflowBaseUrl: string, authentication: UserSession): Promise<File>;
|
|
277
|
+
/**
|
|
278
|
+
* Sets the configuration of a workflow.
|
|
279
|
+
*
|
|
280
|
+
* @param itemId Id of the workflow item
|
|
281
|
+
* @param configurationZipFile Configuration files in a zip file
|
|
282
|
+
* @param workflowBaseUrl URL of the workflow manager, e.g., "https://workflow.arcgis.com/orgId"
|
|
283
|
+
* @param authentication Credentials for the request to AGOL
|
|
284
|
+
* @returns Promise resolving with the workflow configuration in a zip file
|
|
285
|
+
* @throws {WorkflowJsonExceptionDTO} if request to workflow manager fails
|
|
286
|
+
*/
|
|
287
|
+
export declare function setWorkflowConfigurationZip(itemId: string, configurationZipFile: File, workflowBaseUrl: string, authentication: UserSession): Promise<IStatusResponse>;
|
|
288
|
+
/**
|
|
289
|
+
* Parses the layers array and will filter subsets of Layers and Tables
|
|
290
|
+
* Layers and Tables are both returned in the layers array when we access a feature service from the admin api.
|
|
291
|
+
*
|
|
292
|
+
* @param adminData The data of the feature service
|
|
293
|
+
* @returns A mutated version of the provided adminData
|
|
294
|
+
* @private
|
|
295
|
+
*/
|
|
296
|
+
export declare function _parseAdminServiceData(adminData: any): any;
|
|
297
|
+
/**
|
|
298
|
+
* livingatlas designation test.
|
|
299
|
+
* These layers should not be templatized or depolyed
|
|
300
|
+
*
|
|
301
|
+
* @param groupDesignations the items group designations to evaluate
|
|
302
|
+
* @returns A boolean indicating if the invalid designation is found in the item info
|
|
303
|
+
*/
|
|
304
|
+
export declare function hasInvalidGroupDesignations(groupDesignations: string): boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Removes a folder from AGO.
|
|
307
|
+
*
|
|
308
|
+
* @param folderId Id of a folder to delete
|
|
309
|
+
* @param authentication Credentials for the request to AGO
|
|
310
|
+
* @returns A promise that will resolve with the result of the request
|
|
311
|
+
*/
|
|
312
|
+
export declare function removeFolder(folderId: string, authentication: UserSession): Promise<IFolderStatusResponse>;
|
|
313
|
+
/**
|
|
314
|
+
* Removes a group from AGO.
|
|
315
|
+
*
|
|
316
|
+
* @param groupId Id of a group to delete
|
|
317
|
+
* @param authentication Credentials for the request to AGO
|
|
318
|
+
* @returns A promise that will resolve with the result of the request
|
|
319
|
+
*/
|
|
320
|
+
export declare function removeGroup(groupId: string, authentication: UserSession): Promise<IStatusResponse>;
|
|
321
|
+
/**
|
|
322
|
+
* Removes an item from AGO.
|
|
323
|
+
*
|
|
324
|
+
* @param itemId Id of an item to delete
|
|
325
|
+
* @param authentication Credentials for the request to AGO
|
|
326
|
+
* @param permanentDelete If true (the default), the item is permanently deleted; if false and the item type
|
|
327
|
+
* supports the recycle bin, the item will be put into the recycle bin
|
|
328
|
+
* @returns A promise that will resolve with the result of the request
|
|
329
|
+
*/
|
|
330
|
+
export declare function removeItem(itemId: string, authentication: UserSession, permanentDelete?: boolean): Promise<IStatusResponse>;
|
|
331
|
+
/**
|
|
332
|
+
* Removes an item or group from AGO.
|
|
333
|
+
*
|
|
334
|
+
* @param itemId Id of an item or group to delete
|
|
335
|
+
* @param authentication Credentials for the request to AGO
|
|
336
|
+
* @param permanentDelete If true (the default), the item is permanently deleted; if false and the item type
|
|
337
|
+
* supports the recycle bin, the item will be put into the recycle bin; note that this does not apply to groups
|
|
338
|
+
* @returns A promise that will resolve with the result of the request
|
|
339
|
+
*/
|
|
340
|
+
export declare function removeItemOrGroup(itemId: string, authentication: UserSession, permanentDelete?: boolean): Promise<IStatusResponse>;
|
|
341
|
+
/**
|
|
342
|
+
* Searches for items matching a query and that the caller has access to.
|
|
343
|
+
*
|
|
344
|
+
* @param search Search string (e.g., "q=redlands+map") or a more detailed structure that can include authentication
|
|
345
|
+
* @returns Promise resolving with search results
|
|
346
|
+
* @see https://developers.arcgis.com/rest/users-groups-and-items/search.htm
|
|
347
|
+
*/
|
|
348
|
+
export declare function searchItems(search: string | ISearchOptions | SearchQueryBuilder): Promise<ISearchResult<IItem>>;
|
|
349
|
+
/**
|
|
350
|
+
* Searches for items matching a query and that the caller has access to, continuing recursively until done.
|
|
351
|
+
*
|
|
352
|
+
* @param search Search string (e.g., "q=redlands+map") or a more detailed structure that can include authentication
|
|
353
|
+
* @param accumulatedResponse Response built from previous requests
|
|
354
|
+
* @returns Promise resolving with search results
|
|
355
|
+
* @see https://developers.arcgis.com/rest/users-groups-and-items/search.htm
|
|
356
|
+
*/
|
|
357
|
+
export declare function searchAllItems(search: string | ISearchOptions | SearchQueryBuilder, accumulatedResponse?: ISearchResult<IItem>): Promise<ISearchResult<IItem>>;
|
|
358
|
+
/**
|
|
359
|
+
* Searches for groups matching criteria.
|
|
360
|
+
*
|
|
361
|
+
* @param searchString Text for which to search, e.g., 'redlands+map', 'type:"Web Map" -type:"Web Mapping Application"'
|
|
362
|
+
* @param authentication Credentials for the request to AGO
|
|
363
|
+
* @param additionalSearchOptions Adjustments to search, such as tranche size
|
|
364
|
+
* @returns A promise that will resolve with a structure with a tranche of results and
|
|
365
|
+
* describing how many items are available
|
|
366
|
+
* @see https://developers.arcgis.com/rest/users-groups-and-items/group-search.htm
|
|
367
|
+
* @see https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm
|
|
368
|
+
*/
|
|
369
|
+
export declare function searchGroups(searchString: string, authentication: UserSession, additionalSearchOptions?: IAdditionalGroupSearchOptions): Promise<ISearchResult<IGroup>>;
|
|
370
|
+
/**
|
|
371
|
+
* Searches for groups matching criteria recurusively.
|
|
372
|
+
*
|
|
373
|
+
* @param searchString Text for which to search, e.g., 'redlands+map', 'type:"Web Map" -type:"Web Mapping Application"'
|
|
374
|
+
* @param authentication Credentials for the request to AGO
|
|
375
|
+
* @param groups List of groups that have been found from previous requests
|
|
376
|
+
* @param inPagingParams The paging params for the recurisve searching
|
|
377
|
+
*
|
|
378
|
+
* @returns A promise that will resolve with all groups that meet the search criteria
|
|
379
|
+
*/
|
|
380
|
+
export declare function searchAllGroups(searchString: string, authentication: UserSession, groups?: IGroup[], inPagingParams?: IPagingParams): Promise<IGroup[]>;
|
|
381
|
+
/**
|
|
382
|
+
* Searches for group contents matching criteria recursively.
|
|
383
|
+
*
|
|
384
|
+
* @param groupId Group whose contents are to be searched
|
|
385
|
+
* @param searchString Text for which to search, e.g., 'redlands+map', 'type:"Web Map" -type:"Web Mapping Application"'
|
|
386
|
+
* @param authentication Credentials for the request to AGO
|
|
387
|
+
* @param additionalSearchOptions Adjustments to search, such as tranche size and categories of interest; categories
|
|
388
|
+
* are supplied as an array: each array element consists of one or more categories to be ORed; array elements are ANDed
|
|
389
|
+
* @param portalUrl Rest Url of the portal to perform the search
|
|
390
|
+
* @param accumulatedResponse Response built from previous requests
|
|
391
|
+
* @returns A promise that will resolve with a structure with a tranche of results and
|
|
392
|
+
* describing how many items are available
|
|
393
|
+
* @see https://developers.arcgis.com/rest/users-groups-and-items/group-content-search.htm
|
|
394
|
+
* @see https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm
|
|
395
|
+
*/
|
|
396
|
+
export declare function searchGroupAllContents(groupId: string, searchString: string, authentication: UserSession, additionalSearchOptions?: IAdditionalGroupSearchOptions, portalUrl?: string, accumulatedResponse?: ISearchResult<IItem>): Promise<ISearchResult<IItem>>;
|
|
397
|
+
/**
|
|
398
|
+
* Searches for group contents matching criteria.
|
|
399
|
+
*
|
|
400
|
+
* @param groupId Group whose contents are to be searched
|
|
401
|
+
* @param searchString Text for which to search, e.g., 'redlands+map', 'type:"Web Map" -type:"Web Mapping Application"'
|
|
402
|
+
* @param authentication Credentials for the request to AGO
|
|
403
|
+
* @param additionalSearchOptions Adjustments to search, such as tranche size and categories of interest; categories
|
|
404
|
+
* are supplied as an array: each array element consists of one or more categories to be ORed; array elements are ANDed
|
|
405
|
+
* @param portalUrl Rest Url of the portal to perform the search
|
|
406
|
+
* @returns A promise that will resolve with a structure with a tranche of results and
|
|
407
|
+
* describing how many items are available
|
|
408
|
+
* @see https://developers.arcgis.com/rest/users-groups-and-items/group-content-search.htm
|
|
409
|
+
* @see https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm
|
|
410
|
+
*/
|
|
411
|
+
export declare function searchGroupContents(groupId: string, searchString: string, authentication: UserSession, additionalSearchOptions?: IAdditionalGroupSearchOptions, portalUrl?: string): Promise<ISearchResult<IItem>>;
|
|
412
|
+
/**
|
|
413
|
+
* Reassign ownership of a group
|
|
414
|
+
*
|
|
415
|
+
* @param groupId Group to remove users from
|
|
416
|
+
* @param userName The new owner for the group
|
|
417
|
+
* @param authentication Credentials for the request to
|
|
418
|
+
*
|
|
419
|
+
* @returns A promise that will resolve after the group ownership has been assigned
|
|
420
|
+
*
|
|
421
|
+
*/
|
|
422
|
+
export declare function reassignGroup(groupId: string, userName: string, authentication: UserSession): Promise<any>;
|
|
423
|
+
/**
|
|
424
|
+
* Remove users from a group
|
|
425
|
+
*
|
|
426
|
+
* @param groupId Group to remove users from
|
|
427
|
+
* @param users List of users to remove from the group
|
|
428
|
+
* @param authentication Credentials for the request to
|
|
429
|
+
*
|
|
430
|
+
* @returns A promise that will resolve after the users have been removed
|
|
431
|
+
*
|
|
432
|
+
*/
|
|
433
|
+
export declare function removeUsers(groupId: string, users: string[], authentication: UserSession): Promise<any>;
|
|
434
|
+
/**
|
|
435
|
+
* Shares an item to the defined group
|
|
436
|
+
*
|
|
437
|
+
* @param groupId Group to share with
|
|
438
|
+
* @param id the item id to share with the group
|
|
439
|
+
* @param destinationAuthentication Credentials for the request to AGO
|
|
440
|
+
* @param owner owner of the group when sharing tracking items (can be different from the deploying user)
|
|
441
|
+
*
|
|
442
|
+
* @returns A promise that will resolve after the item has been shared
|
|
443
|
+
*
|
|
444
|
+
*/
|
|
445
|
+
export declare function shareItem(groupId: string, id: string, destinationAuthentication: UserSession, owner?: string): Promise<void>;
|
|
446
|
+
/**
|
|
447
|
+
* Updates an item.
|
|
448
|
+
*
|
|
449
|
+
* @param itemInfo The base info of an item; note that this content will be serialized, which doesn't work
|
|
450
|
+
* for binary content
|
|
451
|
+
* @param authentication Credentials for request
|
|
452
|
+
* @param folderId Item's folder
|
|
453
|
+
* @param additionalParams Updates that are put under the `params` property, which is not serialized
|
|
454
|
+
* @return
|
|
455
|
+
*/
|
|
456
|
+
export declare function updateItem(itemInfo: IItemUpdate, authentication: UserSession, folderId?: string, additionalParams?: any): Promise<IUpdateItemResponse>;
|
|
457
|
+
/**
|
|
458
|
+
* Updates a group.
|
|
459
|
+
*
|
|
460
|
+
* @param groupInfo The base info of a group; note that this content will be serialized, which doesn't work
|
|
461
|
+
* for binary content
|
|
462
|
+
* @param authentication Credentials for request
|
|
463
|
+
* @param additionalParams Updates that are put under the `params` property, which is not serialized
|
|
464
|
+
* @returns A Promise that will resolve with the success/failure status of the request
|
|
465
|
+
*/
|
|
466
|
+
export declare function updateGroup(groupInfo: IGroup, authentication: UserSession, additionalParams?: any): Promise<{
|
|
467
|
+
success: boolean;
|
|
468
|
+
groupId: string;
|
|
469
|
+
}>;
|
|
470
|
+
/**
|
|
471
|
+
* Updates an item.
|
|
472
|
+
*
|
|
473
|
+
* @param itemInfo The base info of an item
|
|
474
|
+
* @param data The items data section
|
|
475
|
+
* @param authentication Credentials for requests
|
|
476
|
+
* @param thumbnail optional thumbnail to update
|
|
477
|
+
* @param access "public" or "org"
|
|
478
|
+
* @return
|
|
479
|
+
*/
|
|
480
|
+
export declare function updateItemExtended(itemInfo: IItemUpdate, data: any, authentication: UserSession, thumbnail?: File, access?: string | undefined, templateDictionary?: any): Promise<IUpdateItemResponse>;
|
|
481
|
+
/**
|
|
482
|
+
* Update an item's base and data using a dictionary.
|
|
483
|
+
*
|
|
484
|
+
* @param {string} itemId The item ID
|
|
485
|
+
* @param {any} templateDictionary The template dictionary
|
|
486
|
+
* @param {UserSession} authentication The destination session info
|
|
487
|
+
* @returns Promise resolving to successfulness of update
|
|
488
|
+
*/
|
|
489
|
+
export declare function updateItemTemplateFromDictionary(itemId: string, templateDictionary: any, authentication: UserSession): Promise<IUpdateItemResponse>;
|
|
490
|
+
/**
|
|
491
|
+
* Updates the URL of an item.
|
|
492
|
+
*
|
|
493
|
+
* @param id AGOL id of item to update
|
|
494
|
+
* @param url URL to assign to item's base section
|
|
495
|
+
* @param authentication Credentials for the request
|
|
496
|
+
* @returns A promise that will resolve with the item id when the item has been updated or an AGO-style JSON failure
|
|
497
|
+
* response
|
|
498
|
+
*/
|
|
499
|
+
export declare function updateItemURL(id: string, url: string, authentication: UserSession): Promise<string>;
|
|
500
|
+
/**
|
|
501
|
+
* Adds a data section to an item.
|
|
502
|
+
*
|
|
503
|
+
* @param itemId Id of item to receive data file
|
|
504
|
+
* @param dataFile Data to be added
|
|
505
|
+
* @param authentication Credentials for the request
|
|
506
|
+
* @returns Promise reporting success or failure
|
|
507
|
+
* @private
|
|
508
|
+
*/
|
|
509
|
+
export declare function _addItemDataFile(itemId: string, dataFile: File, authentication: UserSession): Promise<IUpdateItemResponse>;
|
|
510
|
+
/**
|
|
511
|
+
* Adds a metadata file to an item.
|
|
512
|
+
*
|
|
513
|
+
* @param itemId Id of item to receive data file
|
|
514
|
+
* @param metadataFile Metadata to be added
|
|
515
|
+
* @param authentication Credentials for the request
|
|
516
|
+
* @returns Promise reporting success or failure
|
|
517
|
+
* @private
|
|
518
|
+
*/
|
|
519
|
+
export declare function _addItemMetadataFile(itemId: string, metadataFile: File, authentication: UserSession): Promise<IUpdateItemResponse>;
|
|
520
|
+
/**
|
|
521
|
+
* Accumulates the number of relationships in a collection of layers.
|
|
522
|
+
*
|
|
523
|
+
* @param List of layers to examine
|
|
524
|
+
* @returns The number of relationships
|
|
525
|
+
* @private
|
|
526
|
+
*/
|
|
527
|
+
export declare function _countRelationships(layers: any[]): number;
|
|
528
|
+
/**
|
|
529
|
+
* Gets the full definitions of the layers affiliated with a hosted service.
|
|
530
|
+
*
|
|
531
|
+
* @param serviceUrl URL to hosted service
|
|
532
|
+
* @param layerList List of layers at that service...must contain id
|
|
533
|
+
* @param authentication Credentials for the request
|
|
534
|
+
* @returns A promise that will resolve with a list of the layers from the admin api
|
|
535
|
+
* @private
|
|
536
|
+
*/
|
|
537
|
+
export declare function _getCreateServiceOptions(newItemTemplate: IItemTemplate, authentication: UserSession, templateDictionary: any): Promise<any>;
|
|
538
|
+
/**
|
|
539
|
+
* When the services spatial reference does not match that of it's default extent
|
|
540
|
+
* use the out SRs default extent if it exists in the templateDictionary
|
|
541
|
+
* this should be set when adding a custom out wkid to the params before calling deploy
|
|
542
|
+
* this will help avoid situations where the orgs default extent and default world extent
|
|
543
|
+
* will not project successfully to the out SR
|
|
544
|
+
*
|
|
545
|
+
* @param serviceInfo the object that contains the spatial reference to evaluate
|
|
546
|
+
* @param templateDictionary the template dictionary
|
|
547
|
+
* @returns the extent to use as the fallback
|
|
548
|
+
* @private
|
|
549
|
+
*/
|
|
550
|
+
export declare function _getFallbackExtent(serviceInfo: any, templateDictionary: any): any;
|
|
551
|
+
/**
|
|
552
|
+
* Add relationships to all layers in one call to retain fully functioning composite relationships
|
|
553
|
+
*
|
|
554
|
+
* @param args The IPostProcessArgs for the request(s)
|
|
555
|
+
* @returns Any relationships that should be updated for the service
|
|
556
|
+
* @private
|
|
557
|
+
*/
|
|
558
|
+
export declare function _getRelationshipUpdates(args: IPostProcessArgs): any;
|
|
559
|
+
/**
|
|
560
|
+
* Get the stored contingent values and structure them to be added to the services layers.
|
|
561
|
+
*
|
|
562
|
+
* @param args The IPostProcessArgs for the request(s)
|
|
563
|
+
* @returns Any contingent values that should be added to the service.
|
|
564
|
+
* @private
|
|
565
|
+
*/
|
|
566
|
+
export declare function _getContingentValuesUpdates(args: IPostProcessArgs): any;
|
|
567
|
+
/**
|
|
568
|
+
* Get the stored subtype values and structure them to be added to the services layers.
|
|
569
|
+
*
|
|
570
|
+
* @param args The IPostProcessArgs for the request(s)
|
|
571
|
+
* @returns Any subtype values that should be added to the service.
|
|
572
|
+
* @private
|
|
573
|
+
*/
|
|
574
|
+
export declare function _getSubtypeUpdates(args: IPostProcessArgs): any;
|
|
575
|
+
/**
|
|
576
|
+
* Get refresh, add, update, or delete definition info
|
|
577
|
+
*
|
|
578
|
+
* @param url the base admin url for the service
|
|
579
|
+
* @param id the id of the layer
|
|
580
|
+
* @param obj parameters for the request
|
|
581
|
+
* @param args various arguments to help support the request
|
|
582
|
+
* @param type type of update the request will handle
|
|
583
|
+
* @returns IUpdate that has the request url and arguments
|
|
584
|
+
* @private
|
|
585
|
+
*/
|
|
586
|
+
export declare function _getUpdate(url: string, id: any, obj: any, args: any, type: "delete" | "update" | "add" | "refresh"): IUpdate;
|
|
587
|
+
/**
|
|
588
|
+
* Changes just the domain part of a URL to lowercase.
|
|
589
|
+
*
|
|
590
|
+
* @param url URL to modify
|
|
591
|
+
* @return Adjusted URL
|
|
592
|
+
* @see From `getServerRootUrl` in arcgis-rest-js' ArcGISIdentityManager.ts
|
|
593
|
+
* @private
|
|
594
|
+
*/
|
|
595
|
+
export declare function _lowercaseDomain(url: string): string;
|
|
596
|
+
/**
|
|
597
|
+
* Checks the two main parts of an item for unresolved variables and reports any found.
|
|
598
|
+
*
|
|
599
|
+
* @param base Item's base section
|
|
600
|
+
* @param data Item's data section
|
|
601
|
+
* @private
|
|
602
|
+
*/
|
|
603
|
+
export declare function _reportVariablesInItem(itemId: string, itemType: string, base: any, data: any): void;
|
|
604
|
+
/**
|
|
605
|
+
* Updates a feature service item.
|
|
606
|
+
*
|
|
607
|
+
* @param item Item to update
|
|
608
|
+
* @param itemTemplate item template for the new item
|
|
609
|
+
* @param serviceInfo Service information
|
|
610
|
+
* @param params arcgis-rest-js params to update
|
|
611
|
+
* @param isPortal Is the service hosted in a portal?
|
|
612
|
+
* @returns Updated item
|
|
613
|
+
* @private
|
|
614
|
+
*/
|
|
615
|
+
export declare function _setItemProperties(item: any, itemTemplate: IItemTemplate, serviceInfo: any, params: IParams, isPortal: boolean): any;
|
|
616
|
+
/**
|
|
617
|
+
* Set isUnique as true for indexes that reference origin relationship keyFields.
|
|
618
|
+
*
|
|
619
|
+
* @param serviceInfo Service information
|
|
620
|
+
* @private
|
|
621
|
+
*/
|
|
622
|
+
export declare function _updateIndexesForRelationshipKeyFields(serviceInfo: any): void;
|
|
623
|
+
/**
|
|
624
|
+
* Updates the URL of an item.
|
|
625
|
+
*
|
|
626
|
+
* @param id AGOL id of item to update
|
|
627
|
+
* @param url URL to assign to item's base section
|
|
628
|
+
* @param authentication Credentials for the request
|
|
629
|
+
* @param numAttempts Number of times to try to set the URL if AGO says that it updated the URL, but really didn't
|
|
630
|
+
* @returns A promise that will resolve with the item id when the item has been updated or an AGO-style JSON failure
|
|
631
|
+
* response
|
|
632
|
+
* @private
|
|
633
|
+
*/
|
|
634
|
+
export declare function _updateItemURL(id: string, url: string, authentication: UserSession, numAttempts?: number): Promise<string>;
|