@esri/solution-common 3.0.0 → 3.1.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/dist/esm/featureServiceHelpers.js +20 -2
- package/dist/esm/featureServiceHelpers.js.map +1 -1
- package/dist/esm/resourceHelpers.d.ts +3 -2
- package/dist/esm/resourceHelpers.js +4 -3
- package/dist/esm/resourceHelpers.js.map +1 -1
- package/dist/esm/resources/copyAssociatedFiles.d.ts +17 -2
- package/dist/esm/resources/copyAssociatedFiles.js +106 -42
- package/dist/esm/resources/copyAssociatedFiles.js.map +1 -1
- package/dist/esm/resources/copyResourceIntoZip.js +8 -1
- package/dist/esm/resources/copyResourceIntoZip.js.map +1 -1
- package/dist/esm/resources/getItemResourcesPaths.js +9 -2
- package/dist/esm/resources/getItemResourcesPaths.js.map +1 -1
- package/package.json +3 -3
- package/dist/node/completeItem.d.ts +0 -29
- package/dist/node/completeItem.js +0 -82
- package/dist/node/completeItem.js.map +0 -1
- package/dist/node/create-hub-request-options.d.ts +0 -29
- package/dist/node/create-hub-request-options.js +0 -64
- package/dist/node/create-hub-request-options.js.map +0 -1
- package/dist/node/deleteHelpers/deleteEmptyGroups.d.ts +0 -24
- package/dist/node/deleteHelpers/deleteEmptyGroups.js +0 -42
- package/dist/node/deleteHelpers/deleteEmptyGroups.js.map +0 -1
- package/dist/node/deleteHelpers/deleteGroupIfEmpty.d.ts +0 -27
- package/dist/node/deleteHelpers/deleteGroupIfEmpty.js +0 -97
- package/dist/node/deleteHelpers/deleteGroupIfEmpty.js.map +0 -1
- package/dist/node/deleteHelpers/deleteSolutionContents.d.ts +0 -38
- package/dist/node/deleteHelpers/deleteSolutionContents.js +0 -130
- package/dist/node/deleteHelpers/deleteSolutionContents.js.map +0 -1
- package/dist/node/deleteHelpers/deleteSolutionFolder.d.ts +0 -29
- package/dist/node/deleteHelpers/deleteSolutionFolder.js +0 -79
- package/dist/node/deleteHelpers/deleteSolutionFolder.js.map +0 -1
- package/dist/node/deleteHelpers/deleteSolutionItem.d.ts +0 -30
- package/dist/node/deleteHelpers/deleteSolutionItem.js +0 -54
- package/dist/node/deleteHelpers/deleteSolutionItem.js.map +0 -1
- package/dist/node/deleteHelpers/index.d.ts +0 -22
- package/dist/node/deleteHelpers/index.js +0 -26
- package/dist/node/deleteHelpers/index.js.map +0 -1
- package/dist/node/deleteHelpers/reconstructBuildOrderIds.d.ts +0 -27
- package/dist/node/deleteHelpers/reconstructBuildOrderIds.js +0 -34
- package/dist/node/deleteHelpers/reconstructBuildOrderIds.js.map +0 -1
- package/dist/node/deleteHelpers/removeItems.d.ts +0 -34
- package/dist/node/deleteHelpers/removeItems.js +0 -112
- package/dist/node/deleteHelpers/removeItems.js.map +0 -1
- package/dist/node/deleteHelpers/reportProgress.d.ts +0 -27
- package/dist/node/deleteHelpers/reportProgress.js +0 -46
- package/dist/node/deleteHelpers/reportProgress.js.map +0 -1
- package/dist/node/deleteSolution.d.ts +0 -55
- package/dist/node/deleteSolution.js +0 -107
- package/dist/node/deleteSolution.js.map +0 -1
- package/dist/node/dependencies.d.ts +0 -26
- package/dist/node/dependencies.js +0 -171
- package/dist/node/dependencies.js.map +0 -1
- package/dist/node/featureServiceHelpers.d.ts +0 -791
- package/dist/node/featureServiceHelpers.js +0 -2403
- package/dist/node/featureServiceHelpers.js.map +0 -1
- package/dist/node/generalHelpers.d.ts +0 -372
- package/dist/node/generalHelpers.js +0 -842
- package/dist/node/generalHelpers.js.map +0 -1
- package/dist/node/get-subscription-info.d.ts +0 -27
- package/dist/node/get-subscription-info.js +0 -39
- package/dist/node/get-subscription-info.js.map +0 -1
- package/dist/node/getDeletableSolutionInfo.d.ts +0 -29
- package/dist/node/getDeletableSolutionInfo.js +0 -53
- package/dist/node/getDeletableSolutionInfo.js.map +0 -1
- package/dist/node/getItemTypeAbbrev.d.ts +0 -19
- package/dist/node/getItemTypeAbbrev.js +0 -184
- package/dist/node/getItemTypeAbbrev.js.map +0 -1
- package/dist/node/getSolutionSummary.d.ts +0 -27
- package/dist/node/getSolutionSummary.js +0 -101
- package/dist/node/getSolutionSummary.js.map +0 -1
- package/dist/node/index.d.ts +0 -44
- package/dist/node/index.js +0 -48
- package/dist/node/index.js.map +0 -1
- package/dist/node/interfaces.d.ts +0 -1321
- package/dist/node/interfaces.js +0 -75
- package/dist/node/interfaces.js.map +0 -1
- package/dist/node/libConnectors.d.ts +0 -73
- package/dist/node/libConnectors.js +0 -115
- package/dist/node/libConnectors.js.map +0 -1
- package/dist/node/migrations/apply-schema.d.ts +0 -24
- package/dist/node/migrations/apply-schema.js +0 -36
- package/dist/node/migrations/apply-schema.js.map +0 -1
- package/dist/node/migrations/is-legacy-solution.d.ts +0 -24
- package/dist/node/migrations/is-legacy-solution.js +0 -40
- package/dist/node/migrations/is-legacy-solution.js.map +0 -1
- package/dist/node/migrations/upgrade-three-dot-one.d.ts +0 -27
- package/dist/node/migrations/upgrade-three-dot-one.js +0 -49
- package/dist/node/migrations/upgrade-three-dot-one.js.map +0 -1
- package/dist/node/migrations/upgrade-three-dot-zero.d.ts +0 -27
- package/dist/node/migrations/upgrade-three-dot-zero.js +0 -43
- package/dist/node/migrations/upgrade-three-dot-zero.js.map +0 -1
- package/dist/node/migrations/upgrade-two-dot-five.d.ts +0 -24
- package/dist/node/migrations/upgrade-two-dot-five.js +0 -73
- package/dist/node/migrations/upgrade-two-dot-five.js.map +0 -1
- package/dist/node/migrations/upgrade-two-dot-four.d.ts +0 -24
- package/dist/node/migrations/upgrade-two-dot-four.js +0 -72
- package/dist/node/migrations/upgrade-two-dot-four.js.map +0 -1
- package/dist/node/migrations/upgrade-two-dot-one.d.ts +0 -7
- package/dist/node/migrations/upgrade-two-dot-one.js +0 -39
- package/dist/node/migrations/upgrade-two-dot-one.js.map +0 -1
- package/dist/node/migrations/upgrade-two-dot-seven.d.ts +0 -23
- package/dist/node/migrations/upgrade-two-dot-seven.js +0 -58
- package/dist/node/migrations/upgrade-two-dot-seven.js.map +0 -1
- package/dist/node/migrations/upgrade-two-dot-six.d.ts +0 -27
- package/dist/node/migrations/upgrade-two-dot-six.js +0 -61
- package/dist/node/migrations/upgrade-two-dot-six.js.map +0 -1
- package/dist/node/migrations/upgrade-two-dot-three.d.ts +0 -23
- package/dist/node/migrations/upgrade-two-dot-three.js +0 -55
- package/dist/node/migrations/upgrade-two-dot-three.js.map +0 -1
- package/dist/node/migrations/upgrade-two-dot-two.d.ts +0 -23
- package/dist/node/migrations/upgrade-two-dot-two.js +0 -58
- package/dist/node/migrations/upgrade-two-dot-two.js.map +0 -1
- package/dist/node/migrations/upgrade-two-dot-zero.d.ts +0 -44
- package/dist/node/migrations/upgrade-two-dot-zero.js +0 -95
- package/dist/node/migrations/upgrade-two-dot-zero.js.map +0 -1
- package/dist/node/migrator.d.ts +0 -25
- package/dist/node/migrator.js +0 -77
- package/dist/node/migrator.js.map +0 -1
- package/dist/node/polyfills.d.ts +0 -40
- package/dist/node/polyfills.js +0 -98
- package/dist/node/polyfills.js.map +0 -1
- package/dist/node/resourceHelpers.d.ts +0 -190
- package/dist/node/resourceHelpers.js +0 -390
- package/dist/node/resourceHelpers.js.map +0 -1
- package/dist/node/resources/add-resource-from-blob.d.ts +0 -26
- package/dist/node/resources/add-resource-from-blob.js +0 -52
- package/dist/node/resources/add-resource-from-blob.js.map +0 -1
- package/dist/node/resources/addMetadataFromBlob.d.ts +0 -25
- package/dist/node/resources/addMetadataFromBlob.js +0 -43
- package/dist/node/resources/addMetadataFromBlob.js.map +0 -1
- package/dist/node/resources/convert-item-resource-to-storage-resource.d.ts +0 -32
- package/dist/node/resources/convert-item-resource-to-storage-resource.js +0 -70
- package/dist/node/resources/convert-item-resource-to-storage-resource.js.map +0 -1
- package/dist/node/resources/convert-storage-resource-to-item-resource.d.ts +0 -29
- package/dist/node/resources/convert-storage-resource-to-item-resource.js +0 -70
- package/dist/node/resources/convert-storage-resource-to-item-resource.js.map +0 -1
- package/dist/node/resources/copyAssociatedFiles.d.ts +0 -52
- package/dist/node/resources/copyAssociatedFiles.js +0 -237
- package/dist/node/resources/copyAssociatedFiles.js.map +0 -1
- package/dist/node/resources/copyDataIntoItem.d.ts +0 -33
- package/dist/node/resources/copyDataIntoItem.js +0 -63
- package/dist/node/resources/copyDataIntoItem.js.map +0 -1
- package/dist/node/resources/copyMetadataIntoItem.d.ts +0 -26
- package/dist/node/resources/copyMetadataIntoItem.js +0 -46
- package/dist/node/resources/copyMetadataIntoItem.js.map +0 -1
- package/dist/node/resources/copyResourceIntoZip.d.ts +0 -33
- package/dist/node/resources/copyResourceIntoZip.js +0 -71
- package/dist/node/resources/copyResourceIntoZip.js.map +0 -1
- package/dist/node/resources/copyZipIntoItem.d.ts +0 -25
- package/dist/node/resources/copyZipIntoItem.js +0 -54
- package/dist/node/resources/copyZipIntoItem.js.map +0 -1
- package/dist/node/resources/createCopyResults.d.ts +0 -25
- package/dist/node/resources/createCopyResults.js +0 -36
- package/dist/node/resources/createCopyResults.js.map +0 -1
- package/dist/node/resources/get-blob.d.ts +0 -26
- package/dist/node/resources/get-blob.js +0 -27
- package/dist/node/resources/get-blob.js.map +0 -1
- package/dist/node/resources/getItemResourcesFilesFromPaths.d.ts +0 -24
- package/dist/node/resources/getItemResourcesFilesFromPaths.js +0 -49
- package/dist/node/resources/getItemResourcesFilesFromPaths.js.map +0 -1
- package/dist/node/resources/getItemResourcesPaths.d.ts +0 -26
- package/dist/node/resources/getItemResourcesPaths.js +0 -66
- package/dist/node/resources/getItemResourcesPaths.js.map +0 -1
- package/dist/node/resources/index.d.ts +0 -29
- package/dist/node/resources/index.js +0 -33
- package/dist/node/resources/index.js.map +0 -1
- package/dist/node/resources/solution-resource.d.ts +0 -35
- package/dist/node/resources/solution-resource.js +0 -31
- package/dist/node/resources/solution-resource.js.map +0 -1
- package/dist/node/resources/transform-resource-paths-to-solution-resources.d.ts +0 -56
- package/dist/node/resources/transform-resource-paths-to-solution-resources.js +0 -146
- package/dist/node/resources/transform-resource-paths-to-solution-resources.js.map +0 -1
- package/dist/node/restHelpers.d.ts +0 -585
- package/dist/node/restHelpers.js +0 -1887
- package/dist/node/restHelpers.js.map +0 -1
- package/dist/node/restHelpersGet.d.ts +0 -288
- package/dist/node/restHelpersGet.js +0 -804
- package/dist/node/restHelpersGet.js.map +0 -1
- package/dist/node/sharing/index.d.ts +0 -16
- package/dist/node/sharing/index.js +0 -20
- package/dist/node/sharing/index.js.map +0 -1
- package/dist/node/sharing/share-item-to-groups.d.ts +0 -26
- package/dist/node/sharing/share-item-to-groups.js +0 -44
- package/dist/node/sharing/share-item-to-groups.js.map +0 -1
- package/dist/node/templatization.d.ts +0 -139
- package/dist/node/templatization.js +0 -314
- package/dist/node/templatization.js.map +0 -1
- package/dist/node/trackingHelpers.d.ts +0 -116
- package/dist/node/trackingHelpers.js +0 -217
- package/dist/node/trackingHelpers.js.map +0 -1
- package/dist/node/velocityHelpers.d.ts +0 -57
- package/dist/node/velocityHelpers.js +0 -135
- package/dist/node/velocityHelpers.js.map +0 -1
- package/dist/node/workforceHelpers.d.ts +0 -115
- package/dist/node/workforceHelpers.js +0 -747
- package/dist/node/workforceHelpers.js.map +0 -1
- package/dist/umd/common.umd.js +0 -15471
- package/dist/umd/common.umd.js.map +0 -1
- package/dist/umd/common.umd.min.js +0 -19
- package/dist/umd/common.umd.min.js.map +0 -1
- package/dist/umd/src/completeItem.d.ts +0 -29
- package/dist/umd/src/create-hub-request-options.d.ts +0 -29
- package/dist/umd/src/deleteHelpers/deleteEmptyGroups.d.ts +0 -24
- package/dist/umd/src/deleteHelpers/deleteGroupIfEmpty.d.ts +0 -27
- package/dist/umd/src/deleteHelpers/deleteSolutionContents.d.ts +0 -38
- package/dist/umd/src/deleteHelpers/deleteSolutionFolder.d.ts +0 -29
- package/dist/umd/src/deleteHelpers/deleteSolutionItem.d.ts +0 -30
- package/dist/umd/src/deleteHelpers/index.d.ts +0 -22
- package/dist/umd/src/deleteHelpers/reconstructBuildOrderIds.d.ts +0 -27
- package/dist/umd/src/deleteHelpers/removeItems.d.ts +0 -34
- package/dist/umd/src/deleteHelpers/reportProgress.d.ts +0 -27
- package/dist/umd/src/deleteSolution.d.ts +0 -55
- package/dist/umd/src/dependencies.d.ts +0 -26
- package/dist/umd/src/featureServiceHelpers.d.ts +0 -791
- package/dist/umd/src/generalHelpers.d.ts +0 -372
- package/dist/umd/src/get-subscription-info.d.ts +0 -27
- package/dist/umd/src/getDeletableSolutionInfo.d.ts +0 -29
- package/dist/umd/src/getItemTypeAbbrev.d.ts +0 -19
- package/dist/umd/src/getSolutionSummary.d.ts +0 -27
- package/dist/umd/src/index.d.ts +0 -44
- package/dist/umd/src/interfaces.d.ts +0 -1321
- package/dist/umd/src/libConnectors.d.ts +0 -73
- package/dist/umd/src/migrations/apply-schema.d.ts +0 -24
- package/dist/umd/src/migrations/is-legacy-solution.d.ts +0 -24
- package/dist/umd/src/migrations/upgrade-three-dot-one.d.ts +0 -27
- package/dist/umd/src/migrations/upgrade-three-dot-zero.d.ts +0 -27
- package/dist/umd/src/migrations/upgrade-two-dot-five.d.ts +0 -24
- package/dist/umd/src/migrations/upgrade-two-dot-four.d.ts +0 -24
- package/dist/umd/src/migrations/upgrade-two-dot-one.d.ts +0 -7
- package/dist/umd/src/migrations/upgrade-two-dot-seven.d.ts +0 -23
- package/dist/umd/src/migrations/upgrade-two-dot-six.d.ts +0 -27
- package/dist/umd/src/migrations/upgrade-two-dot-three.d.ts +0 -23
- package/dist/umd/src/migrations/upgrade-two-dot-two.d.ts +0 -23
- package/dist/umd/src/migrations/upgrade-two-dot-zero.d.ts +0 -44
- package/dist/umd/src/migrator.d.ts +0 -25
- package/dist/umd/src/polyfills.d.ts +0 -40
- package/dist/umd/src/resourceHelpers.d.ts +0 -190
- package/dist/umd/src/resources/add-resource-from-blob.d.ts +0 -26
- package/dist/umd/src/resources/addMetadataFromBlob.d.ts +0 -25
- package/dist/umd/src/resources/convert-item-resource-to-storage-resource.d.ts +0 -32
- package/dist/umd/src/resources/convert-storage-resource-to-item-resource.d.ts +0 -29
- package/dist/umd/src/resources/copyAssociatedFiles.d.ts +0 -52
- package/dist/umd/src/resources/copyDataIntoItem.d.ts +0 -33
- package/dist/umd/src/resources/copyMetadataIntoItem.d.ts +0 -26
- package/dist/umd/src/resources/copyResourceIntoZip.d.ts +0 -33
- package/dist/umd/src/resources/copyZipIntoItem.d.ts +0 -25
- package/dist/umd/src/resources/createCopyResults.d.ts +0 -25
- package/dist/umd/src/resources/get-blob.d.ts +0 -26
- package/dist/umd/src/resources/getItemResourcesFilesFromPaths.d.ts +0 -24
- package/dist/umd/src/resources/getItemResourcesPaths.d.ts +0 -26
- package/dist/umd/src/resources/index.d.ts +0 -29
- package/dist/umd/src/resources/solution-resource.d.ts +0 -35
- package/dist/umd/src/resources/transform-resource-paths-to-solution-resources.d.ts +0 -56
- package/dist/umd/src/restHelpers.d.ts +0 -585
- package/dist/umd/src/restHelpersGet.d.ts +0 -288
- package/dist/umd/src/sharing/index.d.ts +0 -16
- package/dist/umd/src/sharing/share-item-to-groups.d.ts +0 -26
- package/dist/umd/src/templatization.d.ts +0 -139
- package/dist/umd/src/trackingHelpers.d.ts +0 -116
- package/dist/umd/src/velocityHelpers.d.ts +0 -57
- package/dist/umd/src/workforceHelpers.d.ts +0 -115
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2021 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 "../interfaces";
|
|
17
|
-
/**
|
|
18
|
-
* Adds metadata to an AGO item.
|
|
19
|
-
*
|
|
20
|
-
* @param blob Blob containing metadata
|
|
21
|
-
* @param itemId Item to receive metadata
|
|
22
|
-
* @param authentication Credentials for the request
|
|
23
|
-
* @returns Promise resolving to JSON containing success boolean
|
|
24
|
-
*/
|
|
25
|
-
export declare function addMetadataFromBlob(blob: Blob, itemId: string, authentication: UserSession): Promise<any>;
|
|
@@ -1,32 +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
|
-
/**
|
|
18
|
-
* Generates a folder and filename for storing a copy of an item's resource in a storage item.
|
|
19
|
-
*
|
|
20
|
-
* @param prefix Base prefix for resource
|
|
21
|
-
* @param sourceResourceFilename Either filename or folder/filename to resource
|
|
22
|
-
* @param storageVersion Version of the Solution template
|
|
23
|
-
* @param storageFileType Optional argument that when supplied will control the how the prefix is created
|
|
24
|
-
* @returns Folder and filename for storage; folder is the itemID plus ("_" + storageFolder) if storageFolder
|
|
25
|
-
* exists plus ("_" + part of sourceResourceFilename before "/" if that separator exists);
|
|
26
|
-
* file is sourceResourceFilename
|
|
27
|
-
* @see convertStorageResourceToItemResource
|
|
28
|
-
*/
|
|
29
|
-
export declare function convertItemResourceToStorageResource(prefix: string, sourceResourceFilename: string, storageVersion?: number, storageFileType?: SolutionResourceType): {
|
|
30
|
-
folder: string;
|
|
31
|
-
filename: string;
|
|
32
|
-
};
|
|
@@ -1,29 +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 { IDeployFilename } from "../interfaces";
|
|
17
|
-
/**
|
|
18
|
-
* Extracts an item's resource folder and filename from the filename used to store a copy in a storage item.
|
|
19
|
-
*
|
|
20
|
-
* @param storageResourceFilename Filename used to store the resource, metadata, or thumbnail of an item
|
|
21
|
-
* @param storageVersion Version of the Solution template
|
|
22
|
-
* @returns Folder and filename for storing information in an item, as well as the type (resource, metadata,
|
|
23
|
-
* or thumbnail) of the information; the folder property is only meaningful for the resource type
|
|
24
|
-
* @see generateResourceStorageFilename
|
|
25
|
-
* @see generateMetadataStorageFilename
|
|
26
|
-
* @see generateThumbnailStorageFilename
|
|
27
|
-
* @see convertItemResourceToStorageResource
|
|
28
|
-
*/
|
|
29
|
-
export declare function convertStorageResourceToItemResource(storageResourceFilename: string, storageVersion?: number): IDeployFilename;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2021 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 functions for sending resources to AGO.
|
|
18
|
-
*/
|
|
19
|
-
import { IAssociatedFileCopyResults, IAssociatedFileInfo, ISourceFile, IZipInfo, UserSession } from "../interfaces";
|
|
20
|
-
/**
|
|
21
|
-
* Copies the files for storing the resources, metadata, and thumbnail of an item or group to a storage item
|
|
22
|
-
* with a specified path by collecting files into zip files.
|
|
23
|
-
*
|
|
24
|
-
* @param files List of item files' URLs and folder/filenames for storing the files
|
|
25
|
-
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
26
|
-
* @param destinationAuthentication Credentials for the request to the storage
|
|
27
|
-
* @param filesPerZip Number of files to include per zip file; AGO limits zips to 50 files
|
|
28
|
-
* @returns A promise which resolves to a list of the result of the copies
|
|
29
|
-
*/
|
|
30
|
-
export declare function copyFilesAsResources(files: ISourceFile[], destinationItemId: string, destinationAuthentication: UserSession, filesPerZip?: number): Promise<IAssociatedFileCopyResults[]>;
|
|
31
|
-
/**
|
|
32
|
-
* Copies the files described by a list of full URLs and storage folder/filename combinations for storing
|
|
33
|
-
* the resources, metadata, and thumbnail of an item or group to a storage item with different
|
|
34
|
-
* handling based on the type of file.
|
|
35
|
-
*
|
|
36
|
-
* @param fileInfos List of item files' URLs and folder/filenames for storing the files
|
|
37
|
-
* @param sourceAuthentication Credentials for the request to the source
|
|
38
|
-
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
39
|
-
* @param destinationAuthentication Credentials for the request to the storage
|
|
40
|
-
* @returns A promise which resolves to a list of the result of the copies
|
|
41
|
-
*/
|
|
42
|
-
export declare function copyAssociatedFilesByType(fileInfos: IAssociatedFileInfo[], sourceAuthentication: UserSession, destinationItemId: string, destinationAuthentication: UserSession): Promise<IAssociatedFileCopyResults[]>;
|
|
43
|
-
/**
|
|
44
|
-
* Copies one or more zipfiles to a storage item.
|
|
45
|
-
*
|
|
46
|
-
* @param zipInfos List of zip files containing files to store
|
|
47
|
-
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
48
|
-
* @param destinationAuthentication Credentials for the request to the storage
|
|
49
|
-
* @returns A promise which resolves to a list of the result of the copies
|
|
50
|
-
* @private
|
|
51
|
-
*/
|
|
52
|
-
export declare function _copyAssociatedFileZips(zipInfos: IZipInfo[], destinationItemId: string, destinationAuthentication: UserSession): Promise<IAssociatedFileCopyResults[]>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2021 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 { IAssociatedFileCopyResults, IAssociatedFileInfo, IFileMimeTyped, UserSession } from "../interfaces";
|
|
17
|
-
/**
|
|
18
|
-
* Copies data into an AGO item.
|
|
19
|
-
*
|
|
20
|
-
* @param fileInfo Information about the source and destination of the file such as its URL, folder, filename
|
|
21
|
-
* @param sourceAuthentication Credentials for the request to the source
|
|
22
|
-
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
23
|
-
* @param destinationAuthentication Credentials for the request to the storage
|
|
24
|
-
* @returns A promise which resolves to the result of the copy
|
|
25
|
-
*/
|
|
26
|
-
export declare function copyDataIntoItem(fileInfo: IAssociatedFileInfo, sourceAuthentication: UserSession, destinationItemId: string, destinationAuthentication: UserSession): Promise<IAssociatedFileCopyResults>;
|
|
27
|
-
/**
|
|
28
|
-
* Creates a file with a specified mime type.
|
|
29
|
-
*
|
|
30
|
-
* @param fileDescription Structure containing a file and the desired mime type
|
|
31
|
-
* @returns Created file
|
|
32
|
-
*/
|
|
33
|
-
export declare function createMimeTypedFile(fileDescription: IFileMimeTyped): File;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2021 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 { IAssociatedFileCopyResults, IAssociatedFileInfo, UserSession } from "../interfaces";
|
|
17
|
-
/**
|
|
18
|
-
* Copies metadata into an AGO item.
|
|
19
|
-
*
|
|
20
|
-
* @param fileInfo Information about the source and destination of the file such as its URL, folder, filename
|
|
21
|
-
* @param sourceAuthentication Credentials for the request to the source
|
|
22
|
-
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
23
|
-
* @param destinationAuthentication Credentials for the request to the storage
|
|
24
|
-
* @returns A promise which resolves to the result of the copy
|
|
25
|
-
*/
|
|
26
|
-
export declare function copyMetadataIntoItem(fileInfo: IAssociatedFileInfo, sourceAuthentication: UserSession, destinationItemId: string, destinationAuthentication: UserSession): Promise<IAssociatedFileCopyResults>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2021 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 { IAssociatedFileCopyResults, IAssociatedFileInfo, ISourceFile, IZipInfo, UserSession } from "../interfaces";
|
|
17
|
-
/**
|
|
18
|
-
* Copies a resource into a zipfile.
|
|
19
|
-
*
|
|
20
|
-
* @param file Information about the source and destination of the file such as its URL, folder, filename
|
|
21
|
-
* @param zipInfo Information about a zipfile such as its name and its zip object
|
|
22
|
-
* @returns The result of the copy
|
|
23
|
-
*/
|
|
24
|
-
export declare function copyResourceIntoZip(file: ISourceFile, zipInfo: IZipInfo): IAssociatedFileCopyResults;
|
|
25
|
-
/**
|
|
26
|
-
* Copies a resource into a zipfile.
|
|
27
|
-
*
|
|
28
|
-
* @param fileInfo Information about the source and destination of the file such as its URL, folder, filename
|
|
29
|
-
* @param sourceAuthentication Credentials for the request to the source
|
|
30
|
-
* @param zipInfo Information about a zipfile such as its name and its zip object
|
|
31
|
-
* @returns A promise which resolves to the result of the copy
|
|
32
|
-
*/
|
|
33
|
-
export declare function copyResourceIntoZipFromInfo(fileInfo: IAssociatedFileInfo, sourceAuthentication: UserSession, zipInfo: IZipInfo): Promise<IAssociatedFileCopyResults>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2021 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 { IZipCopyResults, IZipInfo, UserSession } from "../interfaces";
|
|
17
|
-
/**
|
|
18
|
-
* Copies a zipfile into an AGO item.
|
|
19
|
-
*
|
|
20
|
-
* @param zipInfo Information about a zipfile such as its name and its zip object
|
|
21
|
-
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
22
|
-
* @param destinationAuthentication Credentials for the request to the storage
|
|
23
|
-
* @returns A promise which resolves to the result of the copy
|
|
24
|
-
*/
|
|
25
|
-
export declare function copyZipIntoItem(zipInfo: IZipInfo, destinationItemId: string, destinationAuthentication: UserSession): Promise<IZipCopyResults>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2021 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 { IAssociatedFileCopyResults, IZipCopyResults } from "../interfaces";
|
|
17
|
-
/**
|
|
18
|
-
* Generates IAssociatedFileCopyResults object.
|
|
19
|
-
*
|
|
20
|
-
* @param fileInfo Info about item that was to be copied
|
|
21
|
-
* @param fetchedFromSource Status of fetching item from source
|
|
22
|
-
* @param copiedToDestination Status of copying item to destination
|
|
23
|
-
* @returns IAssociatedFileCopyResults object
|
|
24
|
-
*/
|
|
25
|
-
export declare function createCopyResults(fileInfo: any, fetchedFromSource: boolean, copiedToDestination?: boolean): IAssociatedFileCopyResults | IZipCopyResults;
|
|
@@ -1,26 +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 "../interfaces";
|
|
17
|
-
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
18
|
-
/**
|
|
19
|
-
* Gets a Blob from a web site.
|
|
20
|
-
*
|
|
21
|
-
* @param url Address of Blob
|
|
22
|
-
* @param authentication Credentials for the request
|
|
23
|
-
* @param requestOptions - Options for the request, including parameters relevant to the endpoint.
|
|
24
|
-
* @returns Promise that will resolve with Blob or an AGO-style JSON failure response
|
|
25
|
-
*/
|
|
26
|
-
export declare function getBlob(url: string, authentication: UserSession, requestOptions?: IRequestOptions): Promise<Blob>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2021 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 { ISourceFile, ISourceFileCopyPath, UserSession } from "../interfaces";
|
|
17
|
-
/**
|
|
18
|
-
* Fetches a set of resources defined by paths.
|
|
19
|
-
*
|
|
20
|
-
* @param resourceItemFilePaths Paths to resources in source
|
|
21
|
-
* @param authentication Credentials for the request to the source
|
|
22
|
-
* @returns A promise which resolves with an array of resource files
|
|
23
|
-
*/
|
|
24
|
-
export declare function getItemResourcesFilesFromPaths(resourceItemFilePaths: ISourceFileCopyPath[], authentication: UserSession): Promise<ISourceFile[]>;
|
|
@@ -1,26 +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 { IItemTemplate, ISourceFileCopyPath, UserSession } from "../interfaces";
|
|
17
|
-
/**
|
|
18
|
-
* Updates the solution item with resources from the itemTemplate
|
|
19
|
-
*
|
|
20
|
-
* @param itemTemplate Template for AGOL item
|
|
21
|
-
* @param solutionItemId item id for the solution
|
|
22
|
-
* @param authentication Credentials for the request to the storage
|
|
23
|
-
* @param storageVersion Version of the Solution template
|
|
24
|
-
* @returns A promise which resolves with an array of paths to resources for the item
|
|
25
|
-
*/
|
|
26
|
-
export declare function getItemResourcesPaths(itemTemplate: IItemTemplate, solutionItemId: string, authentication: UserSession, storageVersion?: number): Promise<ISourceFileCopyPath[]>;
|
|
@@ -1,29 +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
|
-
export * from "./addMetadataFromBlob";
|
|
17
|
-
export * from "./add-resource-from-blob";
|
|
18
|
-
export * from "./convert-item-resource-to-storage-resource";
|
|
19
|
-
export * from "./convert-storage-resource-to-item-resource";
|
|
20
|
-
export * from "./copyAssociatedFiles";
|
|
21
|
-
export * from "./copyDataIntoItem";
|
|
22
|
-
export * from "./copyMetadataIntoItem";
|
|
23
|
-
export * from "./copyResourceIntoZip";
|
|
24
|
-
export * from "./copyZipIntoItem";
|
|
25
|
-
export * from "./createCopyResults";
|
|
26
|
-
export * from "./get-blob";
|
|
27
|
-
export * from "./getItemResourcesFilesFromPaths";
|
|
28
|
-
export * from "./getItemResourcesPaths";
|
|
29
|
-
export * from "./solution-resource";
|
|
@@ -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,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;
|