@esri/solution-common 6.0.4-alpha.0 → 6.1.0-alpha.0
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 +6 -6
- package/dist/cjs/arcgisRestJS.d.ts +0 -58
- package/dist/cjs/arcgisRestJS.js +0 -142
- 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 -833
- package/dist/cjs/featureServiceHelpers.js +0 -2524
- 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 -2044
- 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 -58
- package/dist/esm/arcgisRestJS.js +0 -94
- 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 -833
- package/dist/esm/featureServiceHelpers.js +0 -2438
- 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 -1979
- 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 -10
package/dist/esm/interfaces.js
DELETED
|
@@ -1,69 +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
|
-
//#endregion ---------------------------------------------------------------------------------------------------------//
|
|
17
|
-
export const SolutionTemplateFormatVersion = 1;
|
|
18
|
-
export const DeployedSolutionFormatVersion = 1;
|
|
19
|
-
export const UNREACHABLE = "unreachable";
|
|
20
|
-
//#region Enums ------------------------------------------------------------------------------------------------------//
|
|
21
|
-
/**
|
|
22
|
-
* Flags for storing an item's binary resources.
|
|
23
|
-
*/
|
|
24
|
-
export var EFileType;
|
|
25
|
-
(function (EFileType) {
|
|
26
|
-
EFileType[EFileType["Data"] = 0] = "Data";
|
|
27
|
-
EFileType[EFileType["Info"] = 1] = "Info";
|
|
28
|
-
EFileType[EFileType["Metadata"] = 2] = "Metadata";
|
|
29
|
-
EFileType[EFileType["Resource"] = 3] = "Resource";
|
|
30
|
-
EFileType[EFileType["Thumbnail"] = 4] = "Thumbnail";
|
|
31
|
-
})(EFileType || (EFileType = {}));
|
|
32
|
-
/**
|
|
33
|
-
* Text versions of flags for storing an item's binary resources.
|
|
34
|
-
*/
|
|
35
|
-
export var SFileType;
|
|
36
|
-
(function (SFileType) {
|
|
37
|
-
SFileType[SFileType["Data"] = 0] = "Data";
|
|
38
|
-
SFileType[SFileType["Info"] = 1] = "Info";
|
|
39
|
-
SFileType[SFileType["Metadata"] = 2] = "Metadata";
|
|
40
|
-
SFileType[SFileType["Resource"] = 3] = "Resource";
|
|
41
|
-
SFileType[SFileType["Thumbnail"] = 4] = "Thumbnail";
|
|
42
|
-
})(SFileType || (SFileType = {}));
|
|
43
|
-
/**
|
|
44
|
-
* Flags for reporting the status of creating or deploying an item.
|
|
45
|
-
*/
|
|
46
|
-
export var EItemProgressStatus;
|
|
47
|
-
(function (EItemProgressStatus) {
|
|
48
|
-
EItemProgressStatus[EItemProgressStatus["Started"] = 0] = "Started";
|
|
49
|
-
EItemProgressStatus[EItemProgressStatus["Created"] = 1] = "Created";
|
|
50
|
-
EItemProgressStatus[EItemProgressStatus["Cancelled"] = 2] = "Cancelled";
|
|
51
|
-
EItemProgressStatus[EItemProgressStatus["Finished"] = 3] = "Finished";
|
|
52
|
-
EItemProgressStatus[EItemProgressStatus["Ignored"] = 4] = "Ignored";
|
|
53
|
-
EItemProgressStatus[EItemProgressStatus["Failed"] = 5] = "Failed";
|
|
54
|
-
EItemProgressStatus[EItemProgressStatus["Unknown"] = 6] = "Unknown";
|
|
55
|
-
})(EItemProgressStatus || (EItemProgressStatus = {}));
|
|
56
|
-
/**
|
|
57
|
-
* Text versions of flags for reporting the status of creating or deploying an item.
|
|
58
|
-
*/
|
|
59
|
-
export const SItemProgressStatus = [
|
|
60
|
-
"1 Started",
|
|
61
|
-
"2 Created",
|
|
62
|
-
"3 Cancelled",
|
|
63
|
-
"3 Finished",
|
|
64
|
-
"3 Ignored",
|
|
65
|
-
"3 Failed",
|
|
66
|
-
"Unknown",
|
|
67
|
-
];
|
|
68
|
-
//#endregion ---------------------------------------------------------------------------------------------------------//
|
|
69
|
-
//# sourceMappingURL=interfaces.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAoBH,wHAAwH;AAExH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAC/C,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAC/C,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;AAEzC,wHAAwH;AAExH;;GAEG;AACH,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,yCAAI,CAAA;IACJ,yCAAI,CAAA;IACJ,iDAAQ,CAAA;IACR,iDAAQ,CAAA;IACR,mDAAS,CAAA;AACX,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,yCAAM,CAAA;IACN,yCAAM,CAAA;IACN,iDAAU,CAAA;IACV,iDAAU,CAAA;IACV,mDAAW,CAAA;AACb,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,mEAAO,CAAA;IACP,mEAAO,CAAA;IACP,uEAAS,CAAA;IACT,qEAAQ,CAAA;IACR,mEAAO,CAAA;IACP,iEAAM,CAAA;IACN,mEAAO,CAAA;AACT,CAAC,EARW,mBAAmB,KAAnB,mBAAmB,QAQ9B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,WAAW;IACX,WAAW;IACX,aAAa;IACb,YAAY;IACZ,WAAW;IACX,UAAU;IACV,SAAS;CACV,CAAC;AAgoDF,wHAAwH"}
|
package/dist/esm/item-reuse.d.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2024 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
|
-
* @module item-reuse
|
|
17
|
-
*/
|
|
18
|
-
import { IItem, ISearchResult, UserSession } from "./arcgisRestJS";
|
|
19
|
-
export interface ISourceItem {
|
|
20
|
-
/**
|
|
21
|
-
* The key is the id of the item as it is within the solution template that will be deployed
|
|
22
|
-
*/
|
|
23
|
-
[key: string]: IReuseItem;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Object that contains key details for items that could be leveraged for reuse
|
|
27
|
-
*/
|
|
28
|
-
export interface IReuseItem {
|
|
29
|
-
/**
|
|
30
|
-
* The key is the id of the item as it is within the solution template that will be deployed
|
|
31
|
-
*/
|
|
32
|
-
[key: string]: IReuseItemInfo;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Object that contains key details for an item that could be leveraged for reuse
|
|
36
|
-
*/
|
|
37
|
-
export interface IReuseItemInfo {
|
|
38
|
-
/**
|
|
39
|
-
* The date/time the item was created
|
|
40
|
-
*/
|
|
41
|
-
created: number;
|
|
42
|
-
/**
|
|
43
|
-
* A collection of key details from solutions that leverage this item
|
|
44
|
-
*/
|
|
45
|
-
solutions: IReuseSolutions;
|
|
46
|
-
/**
|
|
47
|
-
* The title of the item that is already deployed
|
|
48
|
-
*/
|
|
49
|
-
title: string;
|
|
50
|
-
/**
|
|
51
|
-
* The type of item that is already deployed
|
|
52
|
-
*/
|
|
53
|
-
type: string;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* A collection of key details from a solutions that leverage one or more reuse items
|
|
57
|
-
*/
|
|
58
|
-
export interface IReuseSolutions {
|
|
59
|
-
/**
|
|
60
|
-
* A collection of key details from a solution that leverages one or more reuse items
|
|
61
|
-
* The key is the id of the deployed solution.
|
|
62
|
-
*/
|
|
63
|
-
[key: string]: IReuseSolution;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* A collection of key details from a solution that leverages one or more reuse items
|
|
67
|
-
*/
|
|
68
|
-
export interface IReuseSolution {
|
|
69
|
-
/**
|
|
70
|
-
* The date/time the solution was created
|
|
71
|
-
*/
|
|
72
|
-
created: number;
|
|
73
|
-
/**
|
|
74
|
-
* The title of the solution is already deployed
|
|
75
|
-
*/
|
|
76
|
-
title: string;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Collection of key details about one or more solutions
|
|
80
|
-
*/
|
|
81
|
-
export interface ISolutionInfos {
|
|
82
|
-
/**
|
|
83
|
-
* Key details about a solution
|
|
84
|
-
* The key value is the solutions item id
|
|
85
|
-
*/
|
|
86
|
-
[key: string]: ISolutionInfo;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Key details about a solution
|
|
90
|
-
*/
|
|
91
|
-
export interface ISolutionInfo {
|
|
92
|
-
/**
|
|
93
|
-
* Array of template ids from the solution
|
|
94
|
-
*/
|
|
95
|
-
templates: string[];
|
|
96
|
-
/**
|
|
97
|
-
* A collection of key details from a solution that leverages one or more reuse items
|
|
98
|
-
*/
|
|
99
|
-
solutionInfo: IReuseSolution;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Find all deployed solutions and their items from the current org for the current user
|
|
103
|
-
*
|
|
104
|
-
* @param authentication Credentials for the request
|
|
105
|
-
*/
|
|
106
|
-
export declare function getDeployedSolutionsAndItems(authentication: UserSession): Promise<ISolutionInfos>;
|
|
107
|
-
/**
|
|
108
|
-
* Find all deployed solutions from the current org for the current user
|
|
109
|
-
*
|
|
110
|
-
* @param authentication Credentials for the request
|
|
111
|
-
*/
|
|
112
|
-
export declare function getDeployedSolutions(authentication: UserSession): Promise<ISearchResult<IItem>>;
|
|
113
|
-
/**
|
|
114
|
-
* Find key details for the items from each of the deployed solutions
|
|
115
|
-
*
|
|
116
|
-
* @param authentication Credentials for the request
|
|
117
|
-
* @param searchResults key details of the deployed solutions
|
|
118
|
-
*/
|
|
119
|
-
export declare function getSolutionItemsFromDeployedSolutions(authentication: UserSession, searchResults: ISearchResult<IItem>): Promise<ISolutionInfos>;
|
|
120
|
-
/**
|
|
121
|
-
* Get the ids for each template in a solution
|
|
122
|
-
*
|
|
123
|
-
* @param authentication Credentials for the request
|
|
124
|
-
*/
|
|
125
|
-
export declare function getIdsFromSolutionTemplates(id: string, authentication: UserSession): Promise<string[]>;
|
|
126
|
-
/**
|
|
127
|
-
* Fetch key details for the solution that will be deployed and find any solutions
|
|
128
|
-
* that leverage any of the source items that exist in the solution to be deployed.
|
|
129
|
-
*
|
|
130
|
-
* @param id The id of the solution that will be deployed
|
|
131
|
-
* @param authentication Credentials for the request
|
|
132
|
-
*/
|
|
133
|
-
export declare function findReusableSolutionsAndItems(id: string, authentication: UserSession): Promise<ISourceItem>;
|
|
134
|
-
/**
|
|
135
|
-
* Fetch key details for the solution that will be deployed
|
|
136
|
-
*
|
|
137
|
-
* @param id The id of the solution that will be deployed
|
|
138
|
-
* @param authentication Credentials for the request
|
|
139
|
-
*/
|
|
140
|
-
export declare function getItemHash(id: string, authentication: UserSession): Promise<ISourceItem>;
|
package/dist/esm/item-reuse.js
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2024 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
|
-
* @module item-reuse
|
|
17
|
-
*/
|
|
18
|
-
import { getItemData, restSearchItems, SearchQueryBuilder } from "./arcgisRestJS";
|
|
19
|
-
/**
|
|
20
|
-
* Find all deployed solutions and their items from the current org for the current user
|
|
21
|
-
*
|
|
22
|
-
* @param authentication Credentials for the request
|
|
23
|
-
*/
|
|
24
|
-
export function getDeployedSolutionsAndItems(authentication) {
|
|
25
|
-
return getDeployedSolutions(authentication).then((searchResults) => {
|
|
26
|
-
return getSolutionItemsFromDeployedSolutions(authentication, searchResults);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Find all deployed solutions from the current org for the current user
|
|
31
|
-
*
|
|
32
|
-
* @param authentication Credentials for the request
|
|
33
|
-
*/
|
|
34
|
-
export function getDeployedSolutions(authentication) {
|
|
35
|
-
const query = new SearchQueryBuilder()
|
|
36
|
-
.match(authentication.username)
|
|
37
|
-
.in("owner")
|
|
38
|
-
.and()
|
|
39
|
-
.match("Solution")
|
|
40
|
-
.in("type")
|
|
41
|
-
.and()
|
|
42
|
-
.match("Deployed")
|
|
43
|
-
.in("typekeywords");
|
|
44
|
-
return restSearchItems({
|
|
45
|
-
q: query,
|
|
46
|
-
num: 100,
|
|
47
|
-
authentication,
|
|
48
|
-
}).then((searchResponse) => {
|
|
49
|
-
// Sort the results by title and then id
|
|
50
|
-
searchResponse.results.sort((e1, e2) => {
|
|
51
|
-
if (e1.title !== e2.title) {
|
|
52
|
-
return e1.title < e2.title ? -1 : 1;
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return e1.id < e2.id ? -1 : 1;
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
return searchResponse;
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Find key details for the items from each of the deployed solutions
|
|
63
|
-
*
|
|
64
|
-
* @param authentication Credentials for the request
|
|
65
|
-
* @param searchResults key details of the deployed solutions
|
|
66
|
-
*/
|
|
67
|
-
export function getSolutionItemsFromDeployedSolutions(authentication, searchResults) {
|
|
68
|
-
const promises = [];
|
|
69
|
-
const itemIds = [];
|
|
70
|
-
const solutions = {};
|
|
71
|
-
if (searchResults.results.length > 0) {
|
|
72
|
-
searchResults.results.forEach((r) => {
|
|
73
|
-
const versionKeywords = r.typeKeywords.filter((v) => /solutionversion-.+/.exec(v));
|
|
74
|
-
const version = versionKeywords.length > 0 ? versionKeywords[0] : "";
|
|
75
|
-
itemIds.push(r.id);
|
|
76
|
-
solutions[r.id] = {
|
|
77
|
-
created: r.created,
|
|
78
|
-
title: r.title,
|
|
79
|
-
version,
|
|
80
|
-
};
|
|
81
|
-
promises.push(getItemData(r.id, { authentication }));
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
return Promise.all(promises).then((results) => {
|
|
85
|
-
return results.reduce((prev, cur, i) => {
|
|
86
|
-
const id = itemIds[i];
|
|
87
|
-
prev[id] = {
|
|
88
|
-
templates: cur.templates.map((template) => template.itemId),
|
|
89
|
-
solutionInfo: solutions[id],
|
|
90
|
-
};
|
|
91
|
-
return prev;
|
|
92
|
-
}, {});
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Get the ids for each template in a solution
|
|
97
|
-
*
|
|
98
|
-
* @param authentication Credentials for the request
|
|
99
|
-
*/
|
|
100
|
-
export function getIdsFromSolutionTemplates(id, authentication) {
|
|
101
|
-
return getItemData(id, { authentication }).then((data) => {
|
|
102
|
-
return data.templates.map((t) => t.itemId);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Fetch key details for the solution that will be deployed and find any solutions
|
|
107
|
-
* that leverage any of the source items that exist in the solution to be deployed.
|
|
108
|
-
*
|
|
109
|
-
* @param id The id of the solution that will be deployed
|
|
110
|
-
* @param authentication Credentials for the request
|
|
111
|
-
*/
|
|
112
|
-
export function findReusableSolutionsAndItems(id, authentication) {
|
|
113
|
-
return getItemHash(id, authentication).then((itemHash) => {
|
|
114
|
-
return getDeployedSolutionsAndItems(authentication).then((results) => {
|
|
115
|
-
const sourceIds = Object.keys(itemHash);
|
|
116
|
-
Object.keys(results).forEach((solutionId) => {
|
|
117
|
-
const solution = results[solutionId];
|
|
118
|
-
sourceIds.forEach((sourceId) => {
|
|
119
|
-
const itemKeys = Object.keys(itemHash[sourceId]);
|
|
120
|
-
itemKeys.forEach((deployedId) => {
|
|
121
|
-
const item = itemHash[sourceId][deployedId];
|
|
122
|
-
if (solution.templates.indexOf(deployedId) > -1 && Object.keys(item.solutions).indexOf(solutionId) < 0) {
|
|
123
|
-
item.solutions[solutionId] = solution.solutionInfo;
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
return itemHash;
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Fetch key details for the solution that will be deployed
|
|
134
|
-
*
|
|
135
|
-
* @param id The id of the solution that will be deployed
|
|
136
|
-
* @param authentication Credentials for the request
|
|
137
|
-
*/
|
|
138
|
-
export function getItemHash(id, authentication) {
|
|
139
|
-
return getIdsFromSolutionTemplates(id, authentication).then((ids) => {
|
|
140
|
-
// search for existing items that reference any of these ids in their typeKeywords
|
|
141
|
-
const promises = ids.map((id) => {
|
|
142
|
-
const q = `typekeywords:source-${id} owner:${authentication.username}`;
|
|
143
|
-
const searchOptions = {
|
|
144
|
-
q,
|
|
145
|
-
authentication,
|
|
146
|
-
};
|
|
147
|
-
return restSearchItems(searchOptions);
|
|
148
|
-
});
|
|
149
|
-
return Promise.all(promises).then((results) => {
|
|
150
|
-
// if we have a result from the typeKeyword search we need to understand what solution it came from and what its id is
|
|
151
|
-
return results.reduce((prev, cur, i) => {
|
|
152
|
-
// key is source id and value is any ids for items that were deployed based on this source
|
|
153
|
-
prev[ids[i]] = cur.results.reduce((prev, cur) => {
|
|
154
|
-
prev[cur.id] = {
|
|
155
|
-
created: cur.created,
|
|
156
|
-
solutions: {},
|
|
157
|
-
title: cur.title,
|
|
158
|
-
type: cur.type,
|
|
159
|
-
};
|
|
160
|
-
return prev;
|
|
161
|
-
}, {});
|
|
162
|
-
return prev;
|
|
163
|
-
}, {});
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
//# sourceMappingURL=item-reuse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"item-reuse.js","sourceRoot":"","sources":["../../src/item-reuse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAwB,WAAW,EAAE,eAAe,EAAE,kBAAkB,EAAe,MAAM,gBAAgB,CAAC;AA+FrH;;;;GAIG;AACH,MAAM,UAAU,4BAA4B,CAAC,cAA2B;IACtE,OAAO,oBAAoB,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,CAAC,aAAmC,EAAE,EAAE;QACvF,OAAO,qCAAqC,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;IAC9E,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,cAA2B;IAC9D,MAAM,KAAK,GAAG,IAAI,kBAAkB,EAAE;SACnC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC;SAC9B,EAAE,CAAC,OAAO,CAAC;SACX,GAAG,EAAE;SACL,KAAK,CAAC,UAAU,CAAC;SACjB,EAAE,CAAC,MAAM,CAAC;SACV,GAAG,EAAE;SACL,KAAK,CAAC,UAAU,CAAC;SACjB,EAAE,CAAC,cAAc,CAAC,CAAC;IACtB,OAAO,eAAe,CAAC;QACrB,CAAC,EAAE,KAAK;QACR,GAAG,EAAE,GAAG;QACR,cAAc;KACf,CAAC,CAAC,IAAI,CAAC,CAAC,cAAoC,EAAE,EAAE;QAC/C,wCAAwC;QACxC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;YACrC,IAAI,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,KAAK,EAAE;gBACzB,OAAO,EAAE,CAAC,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC,CAA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AE;YAC5C,sHAAsH;YACtH,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,IAAS,EAAE,GAAQ,EAAE,CAAS,EAAE,EAAE;gBACvD,0FAA0F;gBAC1F,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;oBAC9C,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG;wBACb,OAAO,EAAE,GAAG,CAAC,OAAO;wBACpB,SAAS,EAAE,EAAE;wBACb,KAAK,EAAE,GAAG,CAAC,KAAK;wBAChB,IAAI,EAAE,GAAG,CAAC,IAAI;qBACf,CAAC;oBACF,OAAO,IAAI,CAAC;gBACd,CAAC,EAAE,EAAE,CAAC,CAAC;gBACP,OAAO,IAAI,CAAC;YACd,CAAC,EAAE,EAAE,CAAC,CAAC;QACT,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,73 +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
|
-
* Provides connectors to third-party helper functions.
|
|
18
|
-
*/
|
|
19
|
-
import { Sanitizer } from "@esri/arcgis-html-sanitizer";
|
|
20
|
-
export { Sanitizer } from "@esri/arcgis-html-sanitizer";
|
|
21
|
-
/**
|
|
22
|
-
* Creates a zip File from a collection of Files.
|
|
23
|
-
*
|
|
24
|
-
* @param zipFilename Name to use for zip File
|
|
25
|
-
* @param files List of files to add to zip File
|
|
26
|
-
* @param folder Folder to contain the files
|
|
27
|
-
* @returns Promise resolving to a zip File
|
|
28
|
-
*/
|
|
29
|
-
export declare function createZip(zipFilename: string, files: File[], folder?: string): Promise<File>;
|
|
30
|
-
/**
|
|
31
|
-
* Result of checking if a string contains invalid HTML.
|
|
32
|
-
*/
|
|
33
|
-
export interface IValidationResult {
|
|
34
|
-
isValid: boolean;
|
|
35
|
-
sanitized: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Sanitizes html.
|
|
39
|
-
*
|
|
40
|
-
* @param HTML Text to sanitize
|
|
41
|
-
* @param sanitizer Instance of Sanitizer class
|
|
42
|
-
* @returns Sanitized version of `html`
|
|
43
|
-
* @see https://github.com/esri/arcgis-html-sanitizer#basic-usage
|
|
44
|
-
*/
|
|
45
|
-
export declare function sanitizeHTML(html: string, sanitizer?: Sanitizer): string;
|
|
46
|
-
/**
|
|
47
|
-
* Sanitizes JSON.
|
|
48
|
-
*
|
|
49
|
-
* @param json JSON to sanitize
|
|
50
|
-
* @param sanitizer Instance of Sanitizer class
|
|
51
|
-
* @returns Sanitized version of `json`
|
|
52
|
-
* @see https://github.com/esri/arcgis-html-sanitizer#sanitize-json
|
|
53
|
-
*/
|
|
54
|
-
export declare function sanitizeJSON(json: any, sanitizer?: Sanitizer): any;
|
|
55
|
-
/**
|
|
56
|
-
* Sanitizes the protocol in a URL.
|
|
57
|
-
*
|
|
58
|
-
* @param url URL to sanitize
|
|
59
|
-
* @param sanitizer Instance of Sanitizer class
|
|
60
|
-
* @returns Sanitized version of `url`
|
|
61
|
-
* @see https://github.com/esri/arcgis-html-sanitizer#sanitize-urls
|
|
62
|
-
*/
|
|
63
|
-
export declare function sanitizeURLProtocol(url: string, sanitizer?: Sanitizer): string;
|
|
64
|
-
/**
|
|
65
|
-
* Checks if a string contains invalid HTML.
|
|
66
|
-
*
|
|
67
|
-
* @param html HTML to check
|
|
68
|
-
* @param sanitizer Instance of Sanitizer class
|
|
69
|
-
* @returns An object containing a flag indicating if `html` is valid (i.e., contains no invalid HTML)
|
|
70
|
-
* as well as the sanitized version of `html`
|
|
71
|
-
* @see https://github.com/esri/arcgis-html-sanitizer#basic-usage
|
|
72
|
-
*/
|
|
73
|
-
export declare function validateHTML(html: string, sanitizer?: Sanitizer): IValidationResult;
|
|
@@ -1,105 +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
|
-
* Provides connectors to third-party helper functions.
|
|
18
|
-
*/
|
|
19
|
-
import JSZip from "jszip";
|
|
20
|
-
import { blobToFile } from "./generalHelpers";
|
|
21
|
-
import { Sanitizer } from "@esri/arcgis-html-sanitizer";
|
|
22
|
-
export { Sanitizer } from "@esri/arcgis-html-sanitizer";
|
|
23
|
-
//#region JSZip ----------------------------------------------------------------------------------------------------- //
|
|
24
|
-
/**
|
|
25
|
-
* Creates a zip File from a collection of Files.
|
|
26
|
-
*
|
|
27
|
-
* @param zipFilename Name to use for zip File
|
|
28
|
-
* @param files List of files to add to zip File
|
|
29
|
-
* @param folder Folder to contain the files
|
|
30
|
-
* @returns Promise resolving to a zip File
|
|
31
|
-
*/
|
|
32
|
-
export function createZip(zipFilename, files, folder) {
|
|
33
|
-
return new Promise((resolve, reject) => {
|
|
34
|
-
const zip = new JSZip();
|
|
35
|
-
let container = zip;
|
|
36
|
-
if (folder) {
|
|
37
|
-
container = zip.folder(folder);
|
|
38
|
-
}
|
|
39
|
-
// Add the files
|
|
40
|
-
files.forEach((file) => container.file(file.name, file, { binary: true }));
|
|
41
|
-
// Create the ZIP
|
|
42
|
-
zip
|
|
43
|
-
.generateAsync({ type: "blob" })
|
|
44
|
-
.then((content) => resolve(blobToFile(content, zipFilename, "application/zip")), reject);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Sanitizes html.
|
|
49
|
-
*
|
|
50
|
-
* @param HTML Text to sanitize
|
|
51
|
-
* @param sanitizer Instance of Sanitizer class
|
|
52
|
-
* @returns Sanitized version of `html`
|
|
53
|
-
* @see https://github.com/esri/arcgis-html-sanitizer#basic-usage
|
|
54
|
-
*/
|
|
55
|
-
export function sanitizeHTML(html, sanitizer) {
|
|
56
|
-
if (!sanitizer) {
|
|
57
|
-
sanitizer = new Sanitizer();
|
|
58
|
-
}
|
|
59
|
-
return sanitizer.sanitize(html);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Sanitizes JSON.
|
|
63
|
-
*
|
|
64
|
-
* @param json JSON to sanitize
|
|
65
|
-
* @param sanitizer Instance of Sanitizer class
|
|
66
|
-
* @returns Sanitized version of `json`
|
|
67
|
-
* @see https://github.com/esri/arcgis-html-sanitizer#sanitize-json
|
|
68
|
-
*/
|
|
69
|
-
export function sanitizeJSON(json, sanitizer) {
|
|
70
|
-
if (!sanitizer) {
|
|
71
|
-
sanitizer = new Sanitizer();
|
|
72
|
-
}
|
|
73
|
-
return sanitizer.sanitize(json);
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Sanitizes the protocol in a URL.
|
|
77
|
-
*
|
|
78
|
-
* @param url URL to sanitize
|
|
79
|
-
* @param sanitizer Instance of Sanitizer class
|
|
80
|
-
* @returns Sanitized version of `url`
|
|
81
|
-
* @see https://github.com/esri/arcgis-html-sanitizer#sanitize-urls
|
|
82
|
-
*/
|
|
83
|
-
export function sanitizeURLProtocol(url, sanitizer) {
|
|
84
|
-
if (!sanitizer) {
|
|
85
|
-
sanitizer = new Sanitizer();
|
|
86
|
-
}
|
|
87
|
-
return sanitizer.sanitizeUrl(url);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Checks if a string contains invalid HTML.
|
|
91
|
-
*
|
|
92
|
-
* @param html HTML to check
|
|
93
|
-
* @param sanitizer Instance of Sanitizer class
|
|
94
|
-
* @returns An object containing a flag indicating if `html` is valid (i.e., contains no invalid HTML)
|
|
95
|
-
* as well as the sanitized version of `html`
|
|
96
|
-
* @see https://github.com/esri/arcgis-html-sanitizer#basic-usage
|
|
97
|
-
*/
|
|
98
|
-
export function validateHTML(html, sanitizer) {
|
|
99
|
-
if (!sanitizer) {
|
|
100
|
-
sanitizer = new Sanitizer();
|
|
101
|
-
}
|
|
102
|
-
return sanitizer.validate(html);
|
|
103
|
-
}
|
|
104
|
-
//#endregion ---------------------------------------------------------------------------------------------------------//
|
|
105
|
-
//# sourceMappingURL=libConnectors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"libConnectors.js","sourceRoot":"","sources":["../../src/libConnectors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,wHAAwH;AAExH;;;;;;;GAOG;AACH,MAAM,UAAU,SAAS,CAAC,WAAmB,EAAE,KAAa,EAAE,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I,SAAS,EAAE,CAAC;KAC7B;IAED,OAAO,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AACpC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,SAAqB;IAC9D,IAAI,CAAC,SAAS,EAAE;QACd,SAAS,GAAG,IAAI,SAAS,EAAE,CAAC;KAC7B;IAED,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC;AAED,wHAAwH"}
|
|
@@ -1,24 +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 { ISolutionItem } from "../interfaces";
|
|
17
|
-
/**
|
|
18
|
-
* Apply the initial schema for old Hub Solutions
|
|
19
|
-
*
|
|
20
|
-
* @param model
|
|
21
|
-
* @param authentication
|
|
22
|
-
* @private
|
|
23
|
-
*/
|
|
24
|
-
export declare function _applySchema(model: ISolutionItem): ISolutionItem;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { getProp, cloneObject } from "@esri/hub-common";
|
|
2
|
-
/**
|
|
3
|
-
* Apply the initial schema for old Hub Solutions
|
|
4
|
-
*
|
|
5
|
-
* @param model
|
|
6
|
-
* @param authentication
|
|
7
|
-
* @private
|
|
8
|
-
*/
|
|
9
|
-
export function _applySchema(model) {
|
|
10
|
-
if (getProp(model, "item.properties.schemaVersion") >= 1) {
|
|
11
|
-
return model;
|
|
12
|
-
}
|
|
13
|
-
const clone = cloneObject(model);
|
|
14
|
-
if (!clone.item.properties) {
|
|
15
|
-
clone.item.properties = {};
|
|
16
|
-
}
|
|
17
|
-
// upgrade the schema of the Templates
|
|
18
|
-
const templates = getProp(clone, "data.templates") || [];
|
|
19
|
-
clone.data.templates = templates.map((entry) => {
|
|
20
|
-
return {
|
|
21
|
-
key: entry.fieldName || entry.key,
|
|
22
|
-
type: entry.type,
|
|
23
|
-
item: entry.item,
|
|
24
|
-
data: entry.data,
|
|
25
|
-
itemId: entry.itemId || entry.fieldName || entry.key,
|
|
26
|
-
resources: entry.resources || [],
|
|
27
|
-
};
|
|
28
|
-
});
|
|
29
|
-
clone.item.properties.schemaVersion = 1;
|
|
30
|
-
return clone;
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=apply-schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apply-schema.js","sourceRoot":"","sources":["../../../src/migrations/apply-schema.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,KAAoB;IAC/C,IAAI,OAAO,CAAC,KAAK,EAAE,+BAA+B,CAAC,IAAI,CAAC,EAAE;QACxD,OAAO,KAAK,CAAC;KACd;IAED,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE;QAC1B,KAAK,CAAC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;KAC5B;IAED,sCAAsC;IACtC,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,IAAI,EAAE,CAAC;IACzD,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,KAAU,EAAE,EAAE;QAClD,OAAO;YACL,GAAG,EAAE,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,GAAG;YACjC,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,IAAI,EAAE,KAAK,CAAC,IAAwB;YACpC,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,GAAG;YACpD,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,EAAE;SAChB,CAAC;IACrB,CAAC,CAAC,CAAC;IACH,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,GAAG,CAAC,CAAC;IACxC,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,24 +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 { ISolutionItem } from "../interfaces";
|
|
17
|
-
/**
|
|
18
|
-
* Determine if the Solution is a legacy item created by Hub
|
|
19
|
-
* vs one that is 100% compatible with Solution.js
|
|
20
|
-
*
|
|
21
|
-
* @param model ISolutionModel
|
|
22
|
-
* @private
|
|
23
|
-
*/
|
|
24
|
-
export declare function _isLegacySolution(model: ISolutionItem): boolean;
|