@esri/solution-common 6.1.1 → 6.1.3
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/package.json +2 -2
- package/dist/cjs/arcgisRestJS.d.ts +0 -61
- package/dist/cjs/arcgisRestJS.js +0 -144
- package/dist/cjs/arcgisRestJS.js.map +0 -1
- package/dist/cjs/completeItem.d.ts +0 -30
- package/dist/cjs/completeItem.js +0 -72
- package/dist/cjs/completeItem.js.map +0 -1
- package/dist/cjs/create-hub-request-options.d.ts +0 -29
- package/dist/cjs/create-hub-request-options.js +0 -64
- package/dist/cjs/create-hub-request-options.js.map +0 -1
- package/dist/cjs/deleteHelpers/deleteEmptyGroups.d.ts +0 -24
- package/dist/cjs/deleteHelpers/deleteEmptyGroups.js +0 -42
- package/dist/cjs/deleteHelpers/deleteEmptyGroups.js.map +0 -1
- package/dist/cjs/deleteHelpers/deleteGroupIfEmpty.d.ts +0 -27
- package/dist/cjs/deleteHelpers/deleteGroupIfEmpty.js +0 -99
- package/dist/cjs/deleteHelpers/deleteGroupIfEmpty.js.map +0 -1
- package/dist/cjs/deleteHelpers/deleteSolutionContents.d.ts +0 -39
- package/dist/cjs/deleteHelpers/deleteSolutionContents.js +0 -127
- package/dist/cjs/deleteHelpers/deleteSolutionContents.js.map +0 -1
- package/dist/cjs/deleteHelpers/deleteSolutionFolder.d.ts +0 -29
- package/dist/cjs/deleteHelpers/deleteSolutionFolder.js +0 -81
- package/dist/cjs/deleteHelpers/deleteSolutionFolder.js.map +0 -1
- package/dist/cjs/deleteHelpers/deleteSolutionItem.d.ts +0 -31
- package/dist/cjs/deleteHelpers/deleteSolutionItem.js +0 -52
- package/dist/cjs/deleteHelpers/deleteSolutionItem.js.map +0 -1
- package/dist/cjs/deleteHelpers/index.d.ts +0 -22
- package/dist/cjs/deleteHelpers/index.js +0 -26
- package/dist/cjs/deleteHelpers/index.js.map +0 -1
- package/dist/cjs/deleteHelpers/reconstructBuildOrderIds.d.ts +0 -27
- package/dist/cjs/deleteHelpers/reconstructBuildOrderIds.js +0 -34
- package/dist/cjs/deleteHelpers/reconstructBuildOrderIds.js.map +0 -1
- package/dist/cjs/deleteHelpers/removeItems.d.ts +0 -35
- package/dist/cjs/deleteHelpers/removeItems.js +0 -116
- package/dist/cjs/deleteHelpers/removeItems.js.map +0 -1
- package/dist/cjs/deleteHelpers/reportProgress.d.ts +0 -27
- package/dist/cjs/deleteHelpers/reportProgress.js +0 -46
- package/dist/cjs/deleteHelpers/reportProgress.js.map +0 -1
- package/dist/cjs/deleteSolution.d.ts +0 -56
- package/dist/cjs/deleteSolution.js +0 -107
- package/dist/cjs/deleteSolution.js.map +0 -1
- package/dist/cjs/dependencies.d.ts +0 -26
- package/dist/cjs/dependencies.js +0 -171
- package/dist/cjs/dependencies.js.map +0 -1
- package/dist/cjs/featureServiceHelpers.d.ts +0 -847
- package/dist/cjs/featureServiceHelpers.js +0 -2553
- package/dist/cjs/featureServiceHelpers.js.map +0 -1
- package/dist/cjs/formHelpers.d.ts +0 -26
- package/dist/cjs/formHelpers.js +0 -40
- package/dist/cjs/formHelpers.js.map +0 -1
- package/dist/cjs/generalHelpers.d.ts +0 -447
- package/dist/cjs/generalHelpers.js +0 -959
- package/dist/cjs/generalHelpers.js.map +0 -1
- package/dist/cjs/get-subscription-info.d.ts +0 -27
- package/dist/cjs/get-subscription-info.js +0 -38
- package/dist/cjs/get-subscription-info.js.map +0 -1
- package/dist/cjs/getDeletableSolutionInfo.d.ts +0 -30
- package/dist/cjs/getDeletableSolutionInfo.js +0 -53
- package/dist/cjs/getDeletableSolutionInfo.js.map +0 -1
- package/dist/cjs/getItemTypeAbbrev.d.ts +0 -19
- package/dist/cjs/getItemTypeAbbrev.js +0 -186
- package/dist/cjs/getItemTypeAbbrev.js.map +0 -1
- package/dist/cjs/getSolutionSummary.d.ts +0 -28
- package/dist/cjs/getSolutionSummary.js +0 -100
- package/dist/cjs/getSolutionSummary.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -49
- package/dist/cjs/index.js +0 -53
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/interfaces.d.ts +0 -1446
- package/dist/cjs/interfaces.js +0 -72
- package/dist/cjs/interfaces.js.map +0 -1
- package/dist/cjs/item-reuse.d.ts +0 -140
- package/dist/cjs/item-reuse.js +0 -176
- package/dist/cjs/item-reuse.js.map +0 -1
- package/dist/cjs/libConnectors.d.ts +0 -73
- package/dist/cjs/libConnectors.js +0 -115
- package/dist/cjs/libConnectors.js.map +0 -1
- package/dist/cjs/migrations/apply-schema.d.ts +0 -24
- package/dist/cjs/migrations/apply-schema.js +0 -36
- package/dist/cjs/migrations/apply-schema.js.map +0 -1
- package/dist/cjs/migrations/is-legacy-solution.d.ts +0 -24
- package/dist/cjs/migrations/is-legacy-solution.js +0 -39
- package/dist/cjs/migrations/is-legacy-solution.js.map +0 -1
- package/dist/cjs/migrations/upgrade-three-dot-one.d.ts +0 -26
- package/dist/cjs/migrations/upgrade-three-dot-one.js +0 -48
- package/dist/cjs/migrations/upgrade-three-dot-one.js.map +0 -1
- package/dist/cjs/migrations/upgrade-three-dot-zero.d.ts +0 -27
- package/dist/cjs/migrations/upgrade-three-dot-zero.js +0 -43
- package/dist/cjs/migrations/upgrade-three-dot-zero.js.map +0 -1
- package/dist/cjs/migrations/upgrade-two-dot-five.d.ts +0 -24
- package/dist/cjs/migrations/upgrade-two-dot-five.js +0 -73
- package/dist/cjs/migrations/upgrade-two-dot-five.js.map +0 -1
- package/dist/cjs/migrations/upgrade-two-dot-four.d.ts +0 -24
- package/dist/cjs/migrations/upgrade-two-dot-four.js +0 -72
- package/dist/cjs/migrations/upgrade-two-dot-four.js.map +0 -1
- package/dist/cjs/migrations/upgrade-two-dot-one.d.ts +0 -7
- package/dist/cjs/migrations/upgrade-two-dot-one.js +0 -39
- package/dist/cjs/migrations/upgrade-two-dot-one.js.map +0 -1
- package/dist/cjs/migrations/upgrade-two-dot-seven.d.ts +0 -23
- package/dist/cjs/migrations/upgrade-two-dot-seven.js +0 -58
- package/dist/cjs/migrations/upgrade-two-dot-seven.js.map +0 -1
- package/dist/cjs/migrations/upgrade-two-dot-six.d.ts +0 -27
- package/dist/cjs/migrations/upgrade-two-dot-six.js +0 -61
- package/dist/cjs/migrations/upgrade-two-dot-six.js.map +0 -1
- package/dist/cjs/migrations/upgrade-two-dot-three.d.ts +0 -23
- package/dist/cjs/migrations/upgrade-two-dot-three.js +0 -55
- package/dist/cjs/migrations/upgrade-two-dot-three.js.map +0 -1
- package/dist/cjs/migrations/upgrade-two-dot-two.d.ts +0 -23
- package/dist/cjs/migrations/upgrade-two-dot-two.js +0 -58
- package/dist/cjs/migrations/upgrade-two-dot-two.js.map +0 -1
- package/dist/cjs/migrations/upgrade-two-dot-zero.d.ts +0 -44
- package/dist/cjs/migrations/upgrade-two-dot-zero.js +0 -95
- package/dist/cjs/migrations/upgrade-two-dot-zero.js.map +0 -1
- package/dist/cjs/migrator.d.ts +0 -25
- package/dist/cjs/migrator.js +0 -75
- package/dist/cjs/migrator.js.map +0 -1
- package/dist/cjs/resourceHelpers.d.ts +0 -192
- package/dist/cjs/resourceHelpers.js +0 -380
- package/dist/cjs/resourceHelpers.js.map +0 -1
- package/dist/cjs/resources/add-resource.d.ts +0 -38
- package/dist/cjs/resources/add-resource.js +0 -84
- package/dist/cjs/resources/add-resource.js.map +0 -1
- package/dist/cjs/resources/addMetadataFromBlob.d.ts +0 -25
- package/dist/cjs/resources/addMetadataFromBlob.js +0 -43
- package/dist/cjs/resources/addMetadataFromBlob.js.map +0 -1
- package/dist/cjs/resources/convert-item-resource-to-storage-resource.d.ts +0 -32
- package/dist/cjs/resources/convert-item-resource-to-storage-resource.js +0 -70
- package/dist/cjs/resources/convert-item-resource-to-storage-resource.js.map +0 -1
- package/dist/cjs/resources/convert-storage-resource-to-item-resource.d.ts +0 -29
- package/dist/cjs/resources/convert-storage-resource-to-item-resource.js +0 -70
- package/dist/cjs/resources/convert-storage-resource-to-item-resource.js.map +0 -1
- package/dist/cjs/resources/copyAssociatedFiles.d.ts +0 -79
- package/dist/cjs/resources/copyAssociatedFiles.js +0 -348
- package/dist/cjs/resources/copyAssociatedFiles.js.map +0 -1
- package/dist/cjs/resources/copyDataIntoItem.d.ts +0 -34
- package/dist/cjs/resources/copyDataIntoItem.js +0 -45
- package/dist/cjs/resources/copyDataIntoItem.js.map +0 -1
- package/dist/cjs/resources/copyMetadataIntoItem.d.ts +0 -27
- package/dist/cjs/resources/copyMetadataIntoItem.js +0 -44
- package/dist/cjs/resources/copyMetadataIntoItem.js.map +0 -1
- package/dist/cjs/resources/copyResourceIntoZip.d.ts +0 -34
- package/dist/cjs/resources/copyResourceIntoZip.js +0 -74
- package/dist/cjs/resources/copyResourceIntoZip.js.map +0 -1
- package/dist/cjs/resources/copyZipIntoItem.d.ts +0 -26
- package/dist/cjs/resources/copyZipIntoItem.js +0 -53
- package/dist/cjs/resources/copyZipIntoItem.js.map +0 -1
- package/dist/cjs/resources/createCopyResults.d.ts +0 -25
- package/dist/cjs/resources/createCopyResults.js +0 -36
- package/dist/cjs/resources/createCopyResults.js.map +0 -1
- package/dist/cjs/resources/get-blob.d.ts +0 -25
- package/dist/cjs/resources/get-blob.js +0 -42
- package/dist/cjs/resources/get-blob.js.map +0 -1
- package/dist/cjs/resources/getItemResourcesFilesFromPaths.d.ts +0 -25
- package/dist/cjs/resources/getItemResourcesFilesFromPaths.js +0 -49
- package/dist/cjs/resources/getItemResourcesFilesFromPaths.js.map +0 -1
- package/dist/cjs/resources/getItemResourcesPaths.d.ts +0 -27
- package/dist/cjs/resources/getItemResourcesPaths.js +0 -80
- package/dist/cjs/resources/getItemResourcesPaths.js.map +0 -1
- package/dist/cjs/resources/index.d.ts +0 -30
- package/dist/cjs/resources/index.js +0 -34
- package/dist/cjs/resources/index.js.map +0 -1
- package/dist/cjs/resources/solution-resource.d.ts +0 -35
- package/dist/cjs/resources/solution-resource.js +0 -31
- package/dist/cjs/resources/solution-resource.js.map +0 -1
- package/dist/cjs/resources/transform-resource-paths-to-solution-resources.d.ts +0 -56
- package/dist/cjs/resources/transform-resource-paths-to-solution-resources.js +0 -140
- package/dist/cjs/resources/transform-resource-paths-to-solution-resources.js.map +0 -1
- package/dist/cjs/resources/update-resource.d.ts +0 -27
- package/dist/cjs/resources/update-resource.js +0 -52
- package/dist/cjs/resources/update-resource.js.map +0 -1
- package/dist/cjs/restHelpers.d.ts +0 -634
- package/dist/cjs/restHelpers.js +0 -2008
- package/dist/cjs/restHelpers.js.map +0 -1
- package/dist/cjs/restHelpersGet.d.ts +0 -303
- package/dist/cjs/restHelpersGet.js +0 -835
- package/dist/cjs/restHelpersGet.js.map +0 -1
- package/dist/cjs/sharing/index.d.ts +0 -16
- package/dist/cjs/sharing/index.js +0 -20
- package/dist/cjs/sharing/index.js.map +0 -1
- package/dist/cjs/sharing/share-item-to-groups.d.ts +0 -26
- package/dist/cjs/sharing/share-item-to-groups.js +0 -44
- package/dist/cjs/sharing/share-item-to-groups.js.map +0 -1
- package/dist/cjs/templatization.d.ts +0 -139
- package/dist/cjs/templatization.js +0 -311
- package/dist/cjs/templatization.js.map +0 -1
- package/dist/cjs/trackingHelpers.d.ts +0 -115
- package/dist/cjs/trackingHelpers.js +0 -212
- package/dist/cjs/trackingHelpers.js.map +0 -1
- package/dist/cjs/velocityHelpers.d.ts +0 -68
- package/dist/cjs/velocityHelpers.js +0 -151
- package/dist/cjs/velocityHelpers.js.map +0 -1
- package/dist/cjs/webtoolHelpers.d.ts +0 -57
- package/dist/cjs/webtoolHelpers.js +0 -102
- package/dist/cjs/webtoolHelpers.js.map +0 -1
- package/dist/cjs/workflowHelpers.d.ts +0 -112
- package/dist/cjs/workflowHelpers.js +0 -284
- package/dist/cjs/workflowHelpers.js.map +0 -1
- package/dist/cjs/workforceHelpers.d.ts +0 -121
- package/dist/cjs/workforceHelpers.js +0 -720
- package/dist/cjs/workforceHelpers.js.map +0 -1
- package/dist/cjs/zip-utils.d.ts +0 -85
- package/dist/cjs/zip-utils.js +0 -154
- package/dist/cjs/zip-utils.js.map +0 -1
- package/dist/esm/arcgisRestJS.d.ts +0 -61
- package/dist/esm/arcgisRestJS.js +0 -95
- package/dist/esm/arcgisRestJS.js.map +0 -1
- package/dist/esm/completeItem.d.ts +0 -30
- package/dist/esm/completeItem.js +0 -67
- package/dist/esm/completeItem.js.map +0 -1
- package/dist/esm/create-hub-request-options.d.ts +0 -29
- package/dist/esm/create-hub-request-options.js +0 -60
- package/dist/esm/create-hub-request-options.js.map +0 -1
- package/dist/esm/deleteHelpers/deleteEmptyGroups.d.ts +0 -24
- package/dist/esm/deleteHelpers/deleteEmptyGroups.js +0 -38
- package/dist/esm/deleteHelpers/deleteEmptyGroups.js.map +0 -1
- package/dist/esm/deleteHelpers/deleteGroupIfEmpty.d.ts +0 -27
- package/dist/esm/deleteHelpers/deleteGroupIfEmpty.js +0 -95
- package/dist/esm/deleteHelpers/deleteGroupIfEmpty.js.map +0 -1
- package/dist/esm/deleteHelpers/deleteSolutionContents.d.ts +0 -39
- package/dist/esm/deleteHelpers/deleteSolutionContents.js +0 -122
- package/dist/esm/deleteHelpers/deleteSolutionContents.js.map +0 -1
- package/dist/esm/deleteHelpers/deleteSolutionFolder.d.ts +0 -29
- package/dist/esm/deleteHelpers/deleteSolutionFolder.js +0 -77
- package/dist/esm/deleteHelpers/deleteSolutionFolder.js.map +0 -1
- package/dist/esm/deleteHelpers/deleteSolutionItem.d.ts +0 -31
- package/dist/esm/deleteHelpers/deleteSolutionItem.js +0 -48
- package/dist/esm/deleteHelpers/deleteSolutionItem.js.map +0 -1
- package/dist/esm/deleteHelpers/index.d.ts +0 -22
- package/dist/esm/deleteHelpers/index.js +0 -23
- package/dist/esm/deleteHelpers/index.js.map +0 -1
- package/dist/esm/deleteHelpers/reconstructBuildOrderIds.d.ts +0 -27
- package/dist/esm/deleteHelpers/reconstructBuildOrderIds.js +0 -29
- package/dist/esm/deleteHelpers/reconstructBuildOrderIds.js.map +0 -1
- package/dist/esm/deleteHelpers/removeItems.d.ts +0 -35
- package/dist/esm/deleteHelpers/removeItems.js +0 -111
- package/dist/esm/deleteHelpers/removeItems.js.map +0 -1
- package/dist/esm/deleteHelpers/reportProgress.d.ts +0 -27
- package/dist/esm/deleteHelpers/reportProgress.js +0 -42
- package/dist/esm/deleteHelpers/reportProgress.js.map +0 -1
- package/dist/esm/deleteSolution.d.ts +0 -56
- package/dist/esm/deleteSolution.js +0 -101
- package/dist/esm/deleteSolution.js.map +0 -1
- package/dist/esm/dependencies.d.ts +0 -26
- package/dist/esm/dependencies.js +0 -167
- package/dist/esm/dependencies.js.map +0 -1
- package/dist/esm/featureServiceHelpers.d.ts +0 -847
- package/dist/esm/featureServiceHelpers.js +0 -2466
- package/dist/esm/featureServiceHelpers.js.map +0 -1
- package/dist/esm/formHelpers.d.ts +0 -26
- package/dist/esm/formHelpers.js +0 -35
- package/dist/esm/formHelpers.js.map +0 -1
- package/dist/esm/generalHelpers.d.ts +0 -447
- package/dist/esm/generalHelpers.js +0 -903
- package/dist/esm/generalHelpers.js.map +0 -1
- package/dist/esm/get-subscription-info.d.ts +0 -27
- package/dist/esm/get-subscription-info.js +0 -34
- package/dist/esm/get-subscription-info.js.map +0 -1
- package/dist/esm/getDeletableSolutionInfo.d.ts +0 -30
- package/dist/esm/getDeletableSolutionInfo.js +0 -48
- package/dist/esm/getDeletableSolutionInfo.js.map +0 -1
- package/dist/esm/getItemTypeAbbrev.d.ts +0 -19
- package/dist/esm/getItemTypeAbbrev.js +0 -182
- package/dist/esm/getItemTypeAbbrev.js.map +0 -1
- package/dist/esm/getSolutionSummary.d.ts +0 -28
- package/dist/esm/getSolutionSummary.js +0 -95
- package/dist/esm/getSolutionSummary.js.map +0 -1
- package/dist/esm/index.d.ts +0 -49
- package/dist/esm/index.js +0 -50
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/interfaces.d.ts +0 -1446
- package/dist/esm/interfaces.js +0 -69
- package/dist/esm/interfaces.js.map +0 -1
- package/dist/esm/item-reuse.d.ts +0 -140
- package/dist/esm/item-reuse.js +0 -167
- package/dist/esm/item-reuse.js.map +0 -1
- package/dist/esm/libConnectors.d.ts +0 -73
- package/dist/esm/libConnectors.js +0 -105
- package/dist/esm/libConnectors.js.map +0 -1
- package/dist/esm/migrations/apply-schema.d.ts +0 -24
- package/dist/esm/migrations/apply-schema.js +0 -32
- package/dist/esm/migrations/apply-schema.js.map +0 -1
- package/dist/esm/migrations/is-legacy-solution.d.ts +0 -24
- package/dist/esm/migrations/is-legacy-solution.js +0 -35
- package/dist/esm/migrations/is-legacy-solution.js.map +0 -1
- package/dist/esm/migrations/upgrade-three-dot-one.d.ts +0 -26
- package/dist/esm/migrations/upgrade-three-dot-one.js +0 -44
- package/dist/esm/migrations/upgrade-three-dot-one.js.map +0 -1
- package/dist/esm/migrations/upgrade-three-dot-zero.d.ts +0 -27
- package/dist/esm/migrations/upgrade-three-dot-zero.js +0 -39
- package/dist/esm/migrations/upgrade-three-dot-zero.js.map +0 -1
- package/dist/esm/migrations/upgrade-two-dot-five.d.ts +0 -24
- package/dist/esm/migrations/upgrade-two-dot-five.js +0 -69
- package/dist/esm/migrations/upgrade-two-dot-five.js.map +0 -1
- package/dist/esm/migrations/upgrade-two-dot-four.d.ts +0 -24
- package/dist/esm/migrations/upgrade-two-dot-four.js +0 -68
- package/dist/esm/migrations/upgrade-two-dot-four.js.map +0 -1
- package/dist/esm/migrations/upgrade-two-dot-one.d.ts +0 -7
- package/dist/esm/migrations/upgrade-two-dot-one.js +0 -35
- package/dist/esm/migrations/upgrade-two-dot-one.js.map +0 -1
- package/dist/esm/migrations/upgrade-two-dot-seven.d.ts +0 -23
- package/dist/esm/migrations/upgrade-two-dot-seven.js +0 -54
- package/dist/esm/migrations/upgrade-two-dot-seven.js.map +0 -1
- package/dist/esm/migrations/upgrade-two-dot-six.d.ts +0 -27
- package/dist/esm/migrations/upgrade-two-dot-six.js +0 -57
- package/dist/esm/migrations/upgrade-two-dot-six.js.map +0 -1
- package/dist/esm/migrations/upgrade-two-dot-three.d.ts +0 -23
- package/dist/esm/migrations/upgrade-two-dot-three.js +0 -51
- package/dist/esm/migrations/upgrade-two-dot-three.js.map +0 -1
- package/dist/esm/migrations/upgrade-two-dot-two.d.ts +0 -23
- package/dist/esm/migrations/upgrade-two-dot-two.js +0 -54
- package/dist/esm/migrations/upgrade-two-dot-two.js.map +0 -1
- package/dist/esm/migrations/upgrade-two-dot-zero.d.ts +0 -44
- package/dist/esm/migrations/upgrade-two-dot-zero.js +0 -88
- package/dist/esm/migrations/upgrade-two-dot-zero.js.map +0 -1
- package/dist/esm/migrator.d.ts +0 -25
- package/dist/esm/migrator.js +0 -71
- package/dist/esm/migrator.js.map +0 -1
- package/dist/esm/resourceHelpers.d.ts +0 -192
- package/dist/esm/resourceHelpers.js +0 -361
- package/dist/esm/resourceHelpers.js.map +0 -1
- package/dist/esm/resources/add-resource.d.ts +0 -38
- package/dist/esm/resources/add-resource.js +0 -79
- package/dist/esm/resources/add-resource.js.map +0 -1
- package/dist/esm/resources/addMetadataFromBlob.d.ts +0 -25
- package/dist/esm/resources/addMetadataFromBlob.js +0 -39
- package/dist/esm/resources/addMetadataFromBlob.js.map +0 -1
- package/dist/esm/resources/convert-item-resource-to-storage-resource.d.ts +0 -32
- package/dist/esm/resources/convert-item-resource-to-storage-resource.js +0 -66
- package/dist/esm/resources/convert-item-resource-to-storage-resource.js.map +0 -1
- package/dist/esm/resources/convert-storage-resource-to-item-resource.d.ts +0 -29
- package/dist/esm/resources/convert-storage-resource-to-item-resource.js +0 -66
- package/dist/esm/resources/convert-storage-resource-to-item-resource.js.map +0 -1
- package/dist/esm/resources/copyAssociatedFiles.d.ts +0 -79
- package/dist/esm/resources/copyAssociatedFiles.js +0 -339
- package/dist/esm/resources/copyAssociatedFiles.js.map +0 -1
- package/dist/esm/resources/copyDataIntoItem.d.ts +0 -34
- package/dist/esm/resources/copyDataIntoItem.js +0 -40
- package/dist/esm/resources/copyDataIntoItem.js.map +0 -1
- package/dist/esm/resources/copyMetadataIntoItem.d.ts +0 -27
- package/dist/esm/resources/copyMetadataIntoItem.js +0 -40
- package/dist/esm/resources/copyMetadataIntoItem.js.map +0 -1
- package/dist/esm/resources/copyResourceIntoZip.d.ts +0 -34
- package/dist/esm/resources/copyResourceIntoZip.js +0 -69
- package/dist/esm/resources/copyResourceIntoZip.js.map +0 -1
- package/dist/esm/resources/copyZipIntoItem.d.ts +0 -26
- package/dist/esm/resources/copyZipIntoItem.js +0 -49
- package/dist/esm/resources/copyZipIntoItem.js.map +0 -1
- package/dist/esm/resources/createCopyResults.d.ts +0 -25
- package/dist/esm/resources/createCopyResults.js +0 -32
- package/dist/esm/resources/createCopyResults.js.map +0 -1
- package/dist/esm/resources/get-blob.d.ts +0 -25
- package/dist/esm/resources/get-blob.js +0 -38
- package/dist/esm/resources/get-blob.js.map +0 -1
- package/dist/esm/resources/getItemResourcesFilesFromPaths.d.ts +0 -25
- package/dist/esm/resources/getItemResourcesFilesFromPaths.js +0 -45
- package/dist/esm/resources/getItemResourcesFilesFromPaths.js.map +0 -1
- package/dist/esm/resources/getItemResourcesPaths.d.ts +0 -27
- package/dist/esm/resources/getItemResourcesPaths.js +0 -76
- package/dist/esm/resources/getItemResourcesPaths.js.map +0 -1
- package/dist/esm/resources/index.d.ts +0 -30
- package/dist/esm/resources/index.js +0 -31
- package/dist/esm/resources/index.js.map +0 -1
- package/dist/esm/resources/solution-resource.d.ts +0 -35
- package/dist/esm/resources/solution-resource.js +0 -28
- package/dist/esm/resources/solution-resource.js.map +0 -1
- package/dist/esm/resources/transform-resource-paths-to-solution-resources.d.ts +0 -56
- package/dist/esm/resources/transform-resource-paths-to-solution-resources.js +0 -132
- package/dist/esm/resources/transform-resource-paths-to-solution-resources.js.map +0 -1
- package/dist/esm/resources/update-resource.d.ts +0 -27
- package/dist/esm/resources/update-resource.js +0 -48
- package/dist/esm/resources/update-resource.js.map +0 -1
- package/dist/esm/restHelpers.d.ts +0 -634
- package/dist/esm/restHelpers.js +0 -1943
- package/dist/esm/restHelpers.js.map +0 -1
- package/dist/esm/restHelpersGet.d.ts +0 -303
- package/dist/esm/restHelpersGet.js +0 -793
- package/dist/esm/restHelpersGet.js.map +0 -1
- package/dist/esm/sharing/index.d.ts +0 -16
- package/dist/esm/sharing/index.js +0 -17
- package/dist/esm/sharing/index.js.map +0 -1
- package/dist/esm/sharing/share-item-to-groups.d.ts +0 -26
- package/dist/esm/sharing/share-item-to-groups.js +0 -40
- package/dist/esm/sharing/share-item-to-groups.js.map +0 -1
- package/dist/esm/templatization.d.ts +0 -139
- package/dist/esm/templatization.js +0 -291
- package/dist/esm/templatization.js.map +0 -1
- package/dist/esm/trackingHelpers.d.ts +0 -115
- package/dist/esm/trackingHelpers.js +0 -200
- package/dist/esm/trackingHelpers.js.map +0 -1
- package/dist/esm/velocityHelpers.d.ts +0 -68
- package/dist/esm/velocityHelpers.js +0 -144
- package/dist/esm/velocityHelpers.js.map +0 -1
- package/dist/esm/webtoolHelpers.d.ts +0 -57
- package/dist/esm/webtoolHelpers.js +0 -95
- package/dist/esm/webtoolHelpers.js.map +0 -1
- package/dist/esm/workflowHelpers.d.ts +0 -112
- package/dist/esm/workflowHelpers.js +0 -270
- package/dist/esm/workflowHelpers.js.map +0 -1
- package/dist/esm/workforceHelpers.d.ts +0 -121
- package/dist/esm/workforceHelpers.js +0 -691
- package/dist/esm/workforceHelpers.js.map +0 -1
- package/dist/esm/zip-utils.d.ts +0 -85
- package/dist/esm/zip-utils.js +0 -142
- package/dist/esm/zip-utils.js.map +0 -1
- package/dist/solution.js_commit.txt +0 -7
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2020 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
|
-
/**
|
|
17
|
-
* Denotes type information for a SolutionResource
|
|
18
|
-
*/
|
|
19
|
-
export declare enum SolutionResourceType {
|
|
20
|
-
thumbnail = 0,
|
|
21
|
-
metadata = 1,
|
|
22
|
-
resource = 2,
|
|
23
|
-
data = 3,
|
|
24
|
-
fakezip = 4,
|
|
25
|
-
info = 5
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Solution Resource information
|
|
29
|
-
*/
|
|
30
|
-
export interface ISolutionResource {
|
|
31
|
-
filename: string;
|
|
32
|
-
type: SolutionResourceType;
|
|
33
|
-
path: string;
|
|
34
|
-
sourceUrl?: string;
|
|
35
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2020 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
|
-
/**
|
|
17
|
-
* Denotes type information for a SolutionResource
|
|
18
|
-
*/
|
|
19
|
-
export var SolutionResourceType;
|
|
20
|
-
(function (SolutionResourceType) {
|
|
21
|
-
SolutionResourceType[SolutionResourceType["thumbnail"] = 0] = "thumbnail";
|
|
22
|
-
SolutionResourceType[SolutionResourceType["metadata"] = 1] = "metadata";
|
|
23
|
-
SolutionResourceType[SolutionResourceType["resource"] = 2] = "resource";
|
|
24
|
-
SolutionResourceType[SolutionResourceType["data"] = 3] = "data";
|
|
25
|
-
SolutionResourceType[SolutionResourceType["fakezip"] = 4] = "fakezip";
|
|
26
|
-
SolutionResourceType[SolutionResourceType["info"] = 5] = "info";
|
|
27
|
-
})(SolutionResourceType || (SolutionResourceType = {}));
|
|
28
|
-
//# sourceMappingURL=solution-resource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solution-resource.js","sourceRoot":"","sources":["../../../src/resources/solution-resource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,yEAAS,CAAA;IACT,uEAAQ,CAAA;IACR,uEAAQ,CAAA;IACR,+DAAI,CAAA;IACJ,qEAAO,CAAA;IACP,+DAAI,CAAA;AACN,CAAC,EAPW,oBAAoB,KAApB,oBAAoB,QAO/B"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2020 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 { ISolutionResource, SolutionResourceType } from "./solution-resource";
|
|
17
|
-
/**
|
|
18
|
-
* Convert an array of resource strings into an array of ISolutionResources
|
|
19
|
-
*
|
|
20
|
-
* Used to migrate Solutions to a more extensible resource schema
|
|
21
|
-
*
|
|
22
|
-
* @param resourceStrings Array of resource paths
|
|
23
|
-
*/
|
|
24
|
-
export declare function transformResourcePathsToSolutionResources(resourceStrings?: string[]): ISolutionResource[];
|
|
25
|
-
/**
|
|
26
|
-
* Convert a resource path to a ISolutionResource
|
|
27
|
-
*
|
|
28
|
-
* @param resourcePath String
|
|
29
|
-
*/
|
|
30
|
-
export declare function transformResourcePathToSolutionResource(resourcePath: string): ISolutionResource;
|
|
31
|
-
/**
|
|
32
|
-
* Convert a resource path to a SolutionResourceType
|
|
33
|
-
*
|
|
34
|
-
* @param resourcePath String
|
|
35
|
-
* @private
|
|
36
|
-
*/
|
|
37
|
-
export declare function _getSolutionResourceTypeFromResourcePath(resourcePath: string): SolutionResourceType;
|
|
38
|
-
/**
|
|
39
|
-
* Extract the filename from a path
|
|
40
|
-
*
|
|
41
|
-
* @param path String that is a path
|
|
42
|
-
* @private
|
|
43
|
-
*/
|
|
44
|
-
export declare function _extractFilenameFromResourcePath(path: string): string;
|
|
45
|
-
/**
|
|
46
|
-
* Convert the resource path into the correct output path
|
|
47
|
-
* (aka resource prefix)
|
|
48
|
-
*
|
|
49
|
-
* Original resource paths encoded information in the path
|
|
50
|
-
* including actual sub-folders. The logic is kinda complex
|
|
51
|
-
* thus this function has extensive tests
|
|
52
|
-
*
|
|
53
|
-
* @param path
|
|
54
|
-
* @private
|
|
55
|
-
*/
|
|
56
|
-
export declare function _extractPathFromResourcePath(resourcePath: string): string;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2020 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 { SolutionResourceType } from "./solution-resource";
|
|
17
|
-
import { isGuid } from "@esri/hub-common";
|
|
18
|
-
/**
|
|
19
|
-
* Convert an array of resource strings into an array of ISolutionResources
|
|
20
|
-
*
|
|
21
|
-
* Used to migrate Solutions to a more extensible resource schema
|
|
22
|
-
*
|
|
23
|
-
* @param resourceStrings Array of resource paths
|
|
24
|
-
*/
|
|
25
|
-
export function transformResourcePathsToSolutionResources(resourceStrings = []) {
|
|
26
|
-
return resourceStrings.map(transformResourcePathToSolutionResource);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Convert a resource path to a ISolutionResource
|
|
30
|
-
*
|
|
31
|
-
* @param resourcePath String
|
|
32
|
-
*/
|
|
33
|
-
export function transformResourcePathToSolutionResource(resourcePath) {
|
|
34
|
-
return {
|
|
35
|
-
filename: _extractFilenameFromResourcePath(resourcePath),
|
|
36
|
-
type: _getSolutionResourceTypeFromResourcePath(resourcePath),
|
|
37
|
-
path: _extractPathFromResourcePath(resourcePath),
|
|
38
|
-
sourceUrl: resourcePath,
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Convert a resource path to a SolutionResourceType
|
|
43
|
-
*
|
|
44
|
-
* @param resourcePath String
|
|
45
|
-
* @private
|
|
46
|
-
*/
|
|
47
|
-
export function _getSolutionResourceTypeFromResourcePath(resourcePath) {
|
|
48
|
-
let type = SolutionResourceType.resource;
|
|
49
|
-
const folder = resourcePath.split("/").slice(0, -1).join("/") || "";
|
|
50
|
-
PATH_TO_TYPE_MAP.forEach((entry) => {
|
|
51
|
-
if (folder.endsWith(entry.ending)) {
|
|
52
|
-
type = entry.type;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
return type;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Mapping of strings that have been appended to the resource path to
|
|
59
|
-
* encode the resource type
|
|
60
|
-
*/
|
|
61
|
-
const PATH_TO_TYPE_MAP = [
|
|
62
|
-
{ ending: "_info_thumbnail", type: SolutionResourceType.thumbnail },
|
|
63
|
-
{ ending: "_info_metadata", type: SolutionResourceType.metadata },
|
|
64
|
-
{ ending: "_info_data", type: SolutionResourceType.data },
|
|
65
|
-
{ ending: "_info_dataz", type: SolutionResourceType.fakezip },
|
|
66
|
-
{ ending: "_info", type: SolutionResourceType.info },
|
|
67
|
-
];
|
|
68
|
-
/**
|
|
69
|
-
* Extract the filename from a path
|
|
70
|
-
*
|
|
71
|
-
* @param path String that is a path
|
|
72
|
-
* @private
|
|
73
|
-
*/
|
|
74
|
-
export function _extractFilenameFromResourcePath(path) {
|
|
75
|
-
// if we have path separators, split and grab last segment
|
|
76
|
-
if (path.indexOf("/") > -1) {
|
|
77
|
-
return path.split("/").reverse()[0];
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
// Hub resources are {guid}-{filename.ext}
|
|
81
|
-
if (path.indexOf("-") === 32) {
|
|
82
|
-
// start at 33 to remove the `-` between the filename and the guid
|
|
83
|
-
return path.substr(33, path.length - 1);
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
// path is the filename
|
|
87
|
-
return path;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Convert the resource path into the correct output path
|
|
93
|
-
* (aka resource prefix)
|
|
94
|
-
*
|
|
95
|
-
* Original resource paths encoded information in the path
|
|
96
|
-
* including actual sub-folders. The logic is kinda complex
|
|
97
|
-
* thus this function has extensive tests
|
|
98
|
-
*
|
|
99
|
-
* @param path
|
|
100
|
-
* @private
|
|
101
|
-
*/
|
|
102
|
-
export function _extractPathFromResourcePath(resourcePath) {
|
|
103
|
-
// default case
|
|
104
|
-
let path = "";
|
|
105
|
-
// parse up the path by splittins on `/` and dropping the last segment
|
|
106
|
-
const parsedPath = resourcePath.split("/").slice(0, -1).join("/") || "";
|
|
107
|
-
// if we got something...
|
|
108
|
-
if (parsedPath) {
|
|
109
|
-
// now we need to see if this has any of the well-known endings
|
|
110
|
-
const isWellKnownPath = PATH_TO_TYPE_MAP.reduce((acc, entry) => {
|
|
111
|
-
if (parsedPath.endsWith(entry.ending)) {
|
|
112
|
-
acc = true;
|
|
113
|
-
}
|
|
114
|
-
return acc;
|
|
115
|
-
}, false);
|
|
116
|
-
// if it does not match a well-known path...
|
|
117
|
-
if (!isWellKnownPath && parsedPath.indexOf("http") !== 0) {
|
|
118
|
-
// see if there is another folder encoded...
|
|
119
|
-
if (parsedPath.indexOf("_") > -1) {
|
|
120
|
-
path = parsedPath.split("_")[1];
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
// if the path is not a naked guid, we return the parsed path
|
|
124
|
-
if (!isGuid(parsedPath)) {
|
|
125
|
-
path = parsedPath;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return path;
|
|
131
|
-
}
|
|
132
|
-
//# sourceMappingURL=transform-resource-paths-to-solution-resources.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transform-resource-paths-to-solution-resources.js","sourceRoot":"","sources":["../../../src/resources/transform-resource-paths-to-solution-resources.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,27 +0,0 @@
|
|
|
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 { UserSession } from "../arcgisRestJS";
|
|
17
|
-
/**
|
|
18
|
-
* Adds a text resource.
|
|
19
|
-
*
|
|
20
|
-
* @param content Text to add as a resource
|
|
21
|
-
* @param itemId Id of the item to add the resource to
|
|
22
|
-
* @param folder A prefix string added to the filename in the storage; use null or undefined for no folder
|
|
23
|
-
* @param filename File name used to rename an existing file resource uploaded, or to be used together with
|
|
24
|
-
* text as file name for it. File name must have the file resource extension.
|
|
25
|
-
* @param authentication Credentials for the request
|
|
26
|
-
*/
|
|
27
|
-
export declare function updateTextResource(content: string, itemId: string, folder: string, filename: string, authentication: UserSession): Promise<any>;
|
|
@@ -1,48 +0,0 @@
|
|
|
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 { ArcGISAuthError, updateItemResource } from "../arcgisRestJS";
|
|
17
|
-
/**
|
|
18
|
-
* Adds a text resource.
|
|
19
|
-
*
|
|
20
|
-
* @param content Text to add as a resource
|
|
21
|
-
* @param itemId Id of the item to add the resource to
|
|
22
|
-
* @param folder A prefix string added to the filename in the storage; use null or undefined for no folder
|
|
23
|
-
* @param filename File name used to rename an existing file resource uploaded, or to be used together with
|
|
24
|
-
* text as file name for it. File name must have the file resource extension.
|
|
25
|
-
* @param authentication Credentials for the request
|
|
26
|
-
*/
|
|
27
|
-
export function updateTextResource(content, itemId, folder, filename, authentication) {
|
|
28
|
-
// Check that the filename has an extension because it is required by the addResources call
|
|
29
|
-
if (filename && filename.indexOf(".") < 0) {
|
|
30
|
-
return new Promise((resolve, reject) => {
|
|
31
|
-
reject(new ArcGISAuthError("Filename must have an extension indicating its type"));
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
const requestOptions = {
|
|
35
|
-
id: itemId,
|
|
36
|
-
content,
|
|
37
|
-
name: filename,
|
|
38
|
-
authentication: authentication,
|
|
39
|
-
params: {},
|
|
40
|
-
};
|
|
41
|
-
if (folder) {
|
|
42
|
-
requestOptions.params = {
|
|
43
|
-
resourcesPrefix: folder,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
return updateItemResource(requestOptions);
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=update-resource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-resource.js","sourceRoot":"","sources":["../../../src/resources/update-resource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAwB,eAAe,EAAE,kBAAkB,EAAe,MAAM,iBAAiB,CAAC;AAEzG;;;;;;;;;GASG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAe,EACf,MAAc,EACd,MAAc,EACd,QAAgB,EAChB,cAA2B;IAE3B,2FAA2F;IAC3F,IAAI,QAAQ,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QACzC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,MAAM,CAAC,IAAI,eAAe,CAAC,qDAAqD,CAAC,CAAC,CAAC;QACrF,CAAC,CAAC,CAAC;KACJ;IAED,MAAM,cAAc,GAAyB;QAC3C,EAAE,EAAE,MAAM;QACV,OAAO;QACP,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE,cAAc;QAC9B,MAAM,EAAE,EAAE;KACX,CAAC;IACF,IAAI,MAAM,EAAE;QACV,cAAc,CAAC,MAAM,GAAG;YACtB,eAAe,EAAE,MAAM;SACxB,CAAC;KACH;IACD,OAAO,kBAAkB,CAAC,cAAc,CAAC,CAAC;AAC5C,CAAC"}
|