@esri/solution-common 1.3.10 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/completeItem.d.ts +1 -1
- package/dist/esm/completeItem.js +1 -1
- package/dist/esm/deleteHelpers/deleteEmptyGroups.d.ts +1 -1
- package/dist/esm/deleteHelpers/deleteEmptyGroups.js +1 -1
- package/dist/esm/deleteHelpers/deleteGroupIfEmpty.d.ts +1 -1
- package/dist/esm/deleteHelpers/deleteGroupIfEmpty.js +1 -1
- package/dist/esm/deleteHelpers/deleteSolutionContents.d.ts +1 -1
- package/dist/esm/deleteHelpers/deleteSolutionContents.js +1 -1
- package/dist/esm/deleteHelpers/deleteSolutionFolder.d.ts +1 -1
- package/dist/esm/deleteHelpers/deleteSolutionFolder.js +1 -1
- package/dist/esm/deleteHelpers/deleteSolutionItem.d.ts +1 -1
- package/dist/esm/deleteHelpers/deleteSolutionItem.js +1 -1
- package/dist/esm/deleteHelpers/reconstructBuildOrderIds.d.ts +1 -1
- package/dist/esm/deleteHelpers/reconstructBuildOrderIds.js +1 -1
- package/dist/esm/deleteHelpers/removeItems.d.ts +1 -1
- package/dist/esm/deleteHelpers/removeItems.js +1 -1
- package/dist/esm/deleteSolution.d.ts +2 -2
- package/dist/esm/deleteSolution.js +2 -2
- package/dist/esm/dependencies.d.ts +1 -1
- package/dist/esm/dependencies.js +2 -2
- package/dist/esm/featureServiceHelpers.d.ts +99 -60
- package/dist/esm/featureServiceHelpers.js +99 -60
- package/dist/esm/featureServiceHelpers.js.map +1 -1
- package/dist/esm/generalHelpers.d.ts +34 -34
- package/dist/esm/generalHelpers.js +36 -36
- package/dist/esm/getDeletableSolutionInfo.d.ts +1 -1
- package/dist/esm/getDeletableSolutionInfo.js +1 -1
- package/dist/esm/getSolutionSummary.d.ts +1 -1
- package/dist/esm/getSolutionSummary.js +1 -1
- package/dist/esm/interfaces.d.ts +438 -10
- package/dist/esm/interfaces.js +7 -1
- package/dist/esm/interfaces.js.map +1 -1
- package/dist/esm/libConnectors.d.ts +5 -5
- package/dist/esm/libConnectors.js +5 -5
- package/dist/esm/migrations/apply-schema.d.ts +1 -0
- package/dist/esm/migrations/apply-schema.js +1 -0
- package/dist/esm/migrations/apply-schema.js.map +1 -1
- package/dist/esm/migrations/upgrade-three-dot-one.d.ts +1 -0
- package/dist/esm/migrations/upgrade-three-dot-one.js +1 -0
- package/dist/esm/migrations/upgrade-three-dot-one.js.map +1 -1
- package/dist/esm/migrations/upgrade-two-dot-seven.d.ts +7 -0
- package/dist/esm/migrations/upgrade-two-dot-seven.js +7 -0
- package/dist/esm/migrations/upgrade-two-dot-seven.js.map +1 -1
- package/dist/esm/polyfills.d.ts +2 -2
- package/dist/esm/polyfills.js +2 -2
- package/dist/esm/resourceHelpers.d.ts +11 -11
- package/dist/esm/resourceHelpers.js +11 -11
- package/dist/esm/resources/addMetadataFromBlob.d.ts +1 -1
- package/dist/esm/resources/addMetadataFromBlob.js +1 -1
- package/dist/esm/resources/convert-item-resource-to-storage-resource.d.ts +1 -1
- package/dist/esm/resources/convert-item-resource-to-storage-resource.js +1 -1
- package/dist/esm/resources/convert-storage-resource-to-item-resource.d.ts +1 -1
- package/dist/esm/resources/convert-storage-resource-to-item-resource.js +1 -1
- package/dist/esm/resources/copyAssociatedFiles.d.ts +4 -3
- package/dist/esm/resources/copyAssociatedFiles.js +5 -4
- package/dist/esm/resources/copyAssociatedFiles.js.map +1 -1
- package/dist/esm/resources/copyDataIntoItem.d.ts +2 -2
- package/dist/esm/resources/copyDataIntoItem.js +2 -2
- package/dist/esm/resources/copyMetadataIntoItem.d.ts +1 -1
- package/dist/esm/resources/copyMetadataIntoItem.js +1 -1
- package/dist/esm/resources/copyResourceIntoZip.d.ts +2 -2
- package/dist/esm/resources/copyResourceIntoZip.js +2 -2
- package/dist/esm/resources/copyZipIntoItem.d.ts +1 -1
- package/dist/esm/resources/copyZipIntoItem.js +1 -1
- package/dist/esm/resources/createCopyResults.d.ts +1 -1
- package/dist/esm/resources/createCopyResults.js +1 -1
- package/dist/esm/resources/get-blob.d.ts +1 -1
- package/dist/esm/resources/get-blob.js +1 -1
- package/dist/esm/resources/getItemResourcesFilesFromPaths.d.ts +1 -1
- package/dist/esm/resources/getItemResourcesFilesFromPaths.js +1 -1
- package/dist/esm/resources/getItemResourcesPaths.d.ts +1 -1
- package/dist/esm/resources/getItemResourcesPaths.js +1 -1
- package/dist/esm/resources/transform-resource-paths-to-solution-resources.d.ts +1 -0
- package/dist/esm/resources/transform-resource-paths-to-solution-resources.js +1 -0
- package/dist/esm/resources/transform-resource-paths-to-solution-resources.js.map +1 -1
- package/dist/esm/restHelpers.d.ts +59 -54
- package/dist/esm/restHelpers.js +55 -50
- package/dist/esm/restHelpers.js.map +1 -1
- package/dist/esm/restHelpersGet.d.ts +30 -30
- package/dist/esm/restHelpersGet.js +30 -30
- package/dist/esm/templatization.d.ts +15 -15
- package/dist/esm/templatization.js +15 -15
- package/dist/esm/trackingHelpers.d.ts +9 -9
- package/dist/esm/trackingHelpers.js +9 -9
- package/dist/esm/velocityHelpers.d.ts +4 -4
- package/dist/esm/velocityHelpers.js +4 -4
- package/dist/esm/workforceHelpers.d.ts +8 -7
- package/dist/esm/workforceHelpers.js +18 -7
- package/dist/esm/workforceHelpers.js.map +1 -1
- package/dist/node/completeItem.d.ts +1 -1
- package/dist/node/completeItem.js +1 -1
- package/dist/node/deleteHelpers/deleteEmptyGroups.d.ts +1 -1
- package/dist/node/deleteHelpers/deleteEmptyGroups.js +1 -1
- package/dist/node/deleteHelpers/deleteGroupIfEmpty.d.ts +1 -1
- package/dist/node/deleteHelpers/deleteGroupIfEmpty.js +1 -1
- package/dist/node/deleteHelpers/deleteSolutionContents.d.ts +1 -1
- package/dist/node/deleteHelpers/deleteSolutionContents.js +1 -1
- package/dist/node/deleteHelpers/deleteSolutionFolder.d.ts +1 -1
- package/dist/node/deleteHelpers/deleteSolutionFolder.js +1 -1
- package/dist/node/deleteHelpers/deleteSolutionItem.d.ts +1 -1
- package/dist/node/deleteHelpers/deleteSolutionItem.js +1 -1
- package/dist/node/deleteHelpers/reconstructBuildOrderIds.d.ts +1 -1
- package/dist/node/deleteHelpers/reconstructBuildOrderIds.js +1 -1
- package/dist/node/deleteHelpers/removeItems.d.ts +1 -1
- package/dist/node/deleteHelpers/removeItems.js +1 -1
- package/dist/node/deleteSolution.d.ts +2 -2
- package/dist/node/deleteSolution.js +2 -2
- package/dist/node/dependencies.d.ts +1 -1
- package/dist/node/dependencies.js +2 -2
- package/dist/node/featureServiceHelpers.d.ts +99 -60
- package/dist/node/featureServiceHelpers.js +99 -60
- package/dist/node/featureServiceHelpers.js.map +1 -1
- package/dist/node/generalHelpers.d.ts +34 -34
- package/dist/node/generalHelpers.js +36 -36
- package/dist/node/getDeletableSolutionInfo.d.ts +1 -1
- package/dist/node/getDeletableSolutionInfo.js +1 -1
- package/dist/node/getSolutionSummary.d.ts +1 -1
- package/dist/node/getSolutionSummary.js +1 -1
- package/dist/node/interfaces.d.ts +438 -10
- package/dist/node/interfaces.js +7 -1
- package/dist/node/interfaces.js.map +1 -1
- package/dist/node/libConnectors.d.ts +5 -5
- package/dist/node/libConnectors.js +5 -5
- package/dist/node/migrations/apply-schema.d.ts +1 -0
- package/dist/node/migrations/apply-schema.js +1 -0
- package/dist/node/migrations/apply-schema.js.map +1 -1
- package/dist/node/migrations/upgrade-three-dot-one.d.ts +1 -0
- package/dist/node/migrations/upgrade-three-dot-one.js +1 -0
- package/dist/node/migrations/upgrade-three-dot-one.js.map +1 -1
- package/dist/node/migrations/upgrade-two-dot-seven.d.ts +7 -0
- package/dist/node/migrations/upgrade-two-dot-seven.js +7 -0
- package/dist/node/migrations/upgrade-two-dot-seven.js.map +1 -1
- package/dist/node/polyfills.d.ts +2 -2
- package/dist/node/polyfills.js +2 -2
- package/dist/node/resourceHelpers.d.ts +11 -11
- package/dist/node/resourceHelpers.js +11 -11
- package/dist/node/resources/addMetadataFromBlob.d.ts +1 -1
- package/dist/node/resources/addMetadataFromBlob.js +1 -1
- package/dist/node/resources/convert-item-resource-to-storage-resource.d.ts +1 -1
- package/dist/node/resources/convert-item-resource-to-storage-resource.js +1 -1
- package/dist/node/resources/convert-storage-resource-to-item-resource.d.ts +1 -1
- package/dist/node/resources/convert-storage-resource-to-item-resource.js +1 -1
- package/dist/node/resources/copyAssociatedFiles.d.ts +4 -3
- package/dist/node/resources/copyAssociatedFiles.js +5 -4
- package/dist/node/resources/copyAssociatedFiles.js.map +1 -1
- package/dist/node/resources/copyDataIntoItem.d.ts +2 -2
- package/dist/node/resources/copyDataIntoItem.js +2 -2
- package/dist/node/resources/copyMetadataIntoItem.d.ts +1 -1
- package/dist/node/resources/copyMetadataIntoItem.js +1 -1
- package/dist/node/resources/copyResourceIntoZip.d.ts +2 -2
- package/dist/node/resources/copyResourceIntoZip.js +2 -2
- package/dist/node/resources/copyZipIntoItem.d.ts +1 -1
- package/dist/node/resources/copyZipIntoItem.js +1 -1
- package/dist/node/resources/createCopyResults.d.ts +1 -1
- package/dist/node/resources/createCopyResults.js +1 -1
- package/dist/node/resources/get-blob.d.ts +1 -1
- package/dist/node/resources/get-blob.js +1 -1
- package/dist/node/resources/getItemResourcesFilesFromPaths.d.ts +1 -1
- package/dist/node/resources/getItemResourcesFilesFromPaths.js +1 -1
- package/dist/node/resources/getItemResourcesPaths.d.ts +1 -1
- package/dist/node/resources/getItemResourcesPaths.js +1 -1
- package/dist/node/resources/transform-resource-paths-to-solution-resources.d.ts +1 -0
- package/dist/node/resources/transform-resource-paths-to-solution-resources.js +1 -0
- package/dist/node/resources/transform-resource-paths-to-solution-resources.js.map +1 -1
- package/dist/node/restHelpers.d.ts +59 -54
- package/dist/node/restHelpers.js +55 -50
- package/dist/node/restHelpers.js.map +1 -1
- package/dist/node/restHelpersGet.d.ts +30 -30
- package/dist/node/restHelpersGet.js +30 -30
- package/dist/node/templatization.d.ts +15 -15
- package/dist/node/templatization.js +15 -15
- package/dist/node/trackingHelpers.d.ts +9 -9
- package/dist/node/trackingHelpers.js +9 -9
- package/dist/node/velocityHelpers.d.ts +4 -4
- package/dist/node/velocityHelpers.js +4 -4
- package/dist/node/workforceHelpers.d.ts +8 -7
- package/dist/node/workforceHelpers.js +18 -7
- package/dist/node/workforceHelpers.js.map +1 -1
- package/dist/umd/common.umd.js +399 -313
- package/dist/umd/common.umd.js.map +1 -1
- package/dist/umd/common.umd.min.js +3 -3
- package/dist/umd/common.umd.min.js.map +1 -1
- package/dist/umd/completeItem.d.ts +1 -1
- package/dist/umd/deleteHelpers/deleteEmptyGroups.d.ts +1 -1
- package/dist/umd/deleteHelpers/deleteGroupIfEmpty.d.ts +1 -1
- package/dist/umd/deleteHelpers/deleteSolutionContents.d.ts +1 -1
- package/dist/umd/deleteHelpers/deleteSolutionFolder.d.ts +1 -1
- package/dist/umd/deleteHelpers/deleteSolutionItem.d.ts +1 -1
- package/dist/umd/deleteHelpers/reconstructBuildOrderIds.d.ts +1 -1
- package/dist/umd/deleteHelpers/removeItems.d.ts +1 -1
- package/dist/umd/deleteSolution.d.ts +2 -2
- package/dist/umd/dependencies.d.ts +1 -1
- package/dist/umd/featureServiceHelpers.d.ts +99 -60
- package/dist/umd/generalHelpers.d.ts +34 -34
- package/dist/umd/getDeletableSolutionInfo.d.ts +1 -1
- package/dist/umd/getSolutionSummary.d.ts +1 -1
- package/dist/umd/interfaces.d.ts +438 -10
- package/dist/umd/libConnectors.d.ts +5 -5
- package/dist/umd/migrations/apply-schema.d.ts +1 -0
- package/dist/umd/migrations/upgrade-three-dot-one.d.ts +1 -0
- package/dist/umd/migrations/upgrade-two-dot-seven.d.ts +7 -0
- package/dist/umd/polyfills.d.ts +2 -2
- package/dist/umd/resourceHelpers.d.ts +11 -11
- package/dist/umd/resources/addMetadataFromBlob.d.ts +1 -1
- package/dist/umd/resources/convert-item-resource-to-storage-resource.d.ts +1 -1
- package/dist/umd/resources/convert-storage-resource-to-item-resource.d.ts +1 -1
- package/dist/umd/resources/copyAssociatedFiles.d.ts +4 -3
- package/dist/umd/resources/copyDataIntoItem.d.ts +2 -2
- package/dist/umd/resources/copyMetadataIntoItem.d.ts +1 -1
- package/dist/umd/resources/copyResourceIntoZip.d.ts +2 -2
- package/dist/umd/resources/copyZipIntoItem.d.ts +1 -1
- package/dist/umd/resources/createCopyResults.d.ts +1 -1
- package/dist/umd/resources/get-blob.d.ts +1 -1
- package/dist/umd/resources/getItemResourcesFilesFromPaths.d.ts +1 -1
- package/dist/umd/resources/getItemResourcesPaths.d.ts +1 -1
- package/dist/umd/resources/transform-resource-paths-to-solution-resources.d.ts +1 -0
- package/dist/umd/restHelpers.d.ts +59 -54
- package/dist/umd/restHelpersGet.d.ts +30 -30
- package/dist/umd/templatization.d.ts +15 -15
- package/dist/umd/trackingHelpers.d.ts +9 -9
- package/dist/umd/velocityHelpers.d.ts +4 -4
- package/dist/umd/workforceHelpers.d.ts +8 -7
- package/package.json +18 -17
|
@@ -25,7 +25,7 @@ import { updateItem as helpersUpdateItem } from "../restHelpers";
|
|
|
25
25
|
* @param sourceAuthentication Credentials for the request to the source
|
|
26
26
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
27
27
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
28
|
-
* @
|
|
28
|
+
* @returns A promise which resolves to the result of the copy
|
|
29
29
|
*/
|
|
30
30
|
export function copyDataIntoItem(fileInfo, sourceAuthentication, destinationItemId, destinationAuthentication) {
|
|
31
31
|
return new Promise(resolve => {
|
|
@@ -48,7 +48,7 @@ export function copyDataIntoItem(fileInfo, sourceAuthentication, destinationItem
|
|
|
48
48
|
* Creates a file with a specified mime type.
|
|
49
49
|
*
|
|
50
50
|
* @param fileDescription Structure containing a file and the desired mime type
|
|
51
|
-
* @
|
|
51
|
+
* @returns Created file
|
|
52
52
|
*/
|
|
53
53
|
export function createMimeTypedFile(fileDescription) {
|
|
54
54
|
return new_File([fileDescription.blob], fileDescription.filename, {
|
|
@@ -21,6 +21,6 @@ import { IAssociatedFileCopyResults, IAssociatedFileInfo, UserSession } from "..
|
|
|
21
21
|
* @param sourceAuthentication Credentials for the request to the source
|
|
22
22
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
23
23
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
24
|
-
* @
|
|
24
|
+
* @returns A promise which resolves to the result of the copy
|
|
25
25
|
*/
|
|
26
26
|
export declare function copyMetadataIntoItem(fileInfo: IAssociatedFileInfo, sourceAuthentication: UserSession, destinationItemId: string, destinationAuthentication: UserSession): Promise<IAssociatedFileCopyResults>;
|
|
@@ -24,7 +24,7 @@ import { getBlob } from "./get-blob";
|
|
|
24
24
|
* @param sourceAuthentication Credentials for the request to the source
|
|
25
25
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
26
26
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
27
|
-
* @
|
|
27
|
+
* @returns A promise which resolves to the result of the copy
|
|
28
28
|
*/
|
|
29
29
|
export function copyMetadataIntoItem(fileInfo, sourceAuthentication, destinationItemId, destinationAuthentication) {
|
|
30
30
|
return new Promise(resolve => {
|
|
@@ -19,7 +19,7 @@ import { IAssociatedFileCopyResults, IAssociatedFileInfo, ISourceFile, IZipInfo,
|
|
|
19
19
|
*
|
|
20
20
|
* @param file Information about the source and destination of the file such as its URL, folder, filename
|
|
21
21
|
* @param zipInfo Information about a zipfile such as its name and its zip object
|
|
22
|
-
* @
|
|
22
|
+
* @returns The result of the copy
|
|
23
23
|
*/
|
|
24
24
|
export declare function copyResourceIntoZip(file: ISourceFile, zipInfo: IZipInfo): IAssociatedFileCopyResults;
|
|
25
25
|
/**
|
|
@@ -28,6 +28,6 @@ export declare function copyResourceIntoZip(file: ISourceFile, zipInfo: IZipInfo
|
|
|
28
28
|
* @param fileInfo Information about the source and destination of the file such as its URL, folder, filename
|
|
29
29
|
* @param sourceAuthentication Credentials for the request to the source
|
|
30
30
|
* @param zipInfo Information about a zipfile such as its name and its zip object
|
|
31
|
-
* @
|
|
31
|
+
* @returns A promise which resolves to the result of the copy
|
|
32
32
|
*/
|
|
33
33
|
export declare function copyResourceIntoZipFromInfo(fileInfo: IAssociatedFileInfo, sourceAuthentication: UserSession, zipInfo: IZipInfo): Promise<IAssociatedFileCopyResults>;
|
|
@@ -21,7 +21,7 @@ import { getBlobAsFile } from "../restHelpersGet";
|
|
|
21
21
|
*
|
|
22
22
|
* @param file Information about the source and destination of the file such as its URL, folder, filename
|
|
23
23
|
* @param zipInfo Information about a zipfile such as its name and its zip object
|
|
24
|
-
* @
|
|
24
|
+
* @returns The result of the copy
|
|
25
25
|
*/
|
|
26
26
|
export function copyResourceIntoZip(file, zipInfo) {
|
|
27
27
|
// Add it to the zip
|
|
@@ -42,7 +42,7 @@ export function copyResourceIntoZip(file, zipInfo) {
|
|
|
42
42
|
* @param fileInfo Information about the source and destination of the file such as its URL, folder, filename
|
|
43
43
|
* @param sourceAuthentication Credentials for the request to the source
|
|
44
44
|
* @param zipInfo Information about a zipfile such as its name and its zip object
|
|
45
|
-
* @
|
|
45
|
+
* @returns A promise which resolves to the result of the copy
|
|
46
46
|
*/
|
|
47
47
|
export function copyResourceIntoZipFromInfo(fileInfo, sourceAuthentication, zipInfo) {
|
|
48
48
|
return new Promise(resolve => {
|
|
@@ -20,6 +20,6 @@ import { IZipCopyResults, IZipInfo, UserSession } from "../interfaces";
|
|
|
20
20
|
* @param zipInfo Information about a zipfile such as its name and its zip object
|
|
21
21
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
22
22
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
23
|
-
* @
|
|
23
|
+
* @returns A promise which resolves to the result of the copy
|
|
24
24
|
*/
|
|
25
25
|
export declare function copyZipIntoItem(zipInfo: IZipInfo, destinationItemId: string, destinationAuthentication: UserSession): Promise<IZipCopyResults>;
|
|
@@ -23,7 +23,7 @@ import { createCopyResults } from "./createCopyResults";
|
|
|
23
23
|
* @param zipInfo Information about a zipfile such as its name and its zip object
|
|
24
24
|
* @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
|
|
25
25
|
* @param destinationAuthentication Credentials for the request to the storage
|
|
26
|
-
* @
|
|
26
|
+
* @returns A promise which resolves to the result of the copy
|
|
27
27
|
*/
|
|
28
28
|
export function copyZipIntoItem(zipInfo, destinationItemId, destinationAuthentication) {
|
|
29
29
|
return new Promise(resolve => {
|
|
@@ -20,6 +20,6 @@ import { IAssociatedFileCopyResults, IZipCopyResults } from "../interfaces";
|
|
|
20
20
|
* @param fileInfo Info about item that was to be copied
|
|
21
21
|
* @param fetchedFromSource Status of fetching item from source
|
|
22
22
|
* @param copiedToDestination Status of copying item to destination
|
|
23
|
-
* @
|
|
23
|
+
* @returns IAssociatedFileCopyResults object
|
|
24
24
|
*/
|
|
25
25
|
export declare function createCopyResults(fileInfo: any, fetchedFromSource: boolean, copiedToDestination?: boolean): IAssociatedFileCopyResults | IZipCopyResults;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* @param fileInfo Info about item that was to be copied
|
|
21
21
|
* @param fetchedFromSource Status of fetching item from source
|
|
22
22
|
* @param copiedToDestination Status of copying item to destination
|
|
23
|
-
* @
|
|
23
|
+
* @returns IAssociatedFileCopyResults object
|
|
24
24
|
*/
|
|
25
25
|
export function createCopyResults(fileInfo, fetchedFromSource, copiedToDestination) {
|
|
26
26
|
return {
|
|
@@ -21,6 +21,6 @@ import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
|
21
21
|
* @param url Address of Blob
|
|
22
22
|
* @param authentication Credentials for the request
|
|
23
23
|
* @param requestOptions - Options for the request, including parameters relevant to the endpoint.
|
|
24
|
-
* @
|
|
24
|
+
* @returns Promise that will resolve with Blob or an AGO-style JSON failure response
|
|
25
25
|
*/
|
|
26
26
|
export declare function getBlob(url: string, authentication: UserSession, requestOptions?: IRequestOptions): Promise<Blob>;
|
|
@@ -5,7 +5,7 @@ import { request } from "@esri/arcgis-rest-request";
|
|
|
5
5
|
* @param url Address of Blob
|
|
6
6
|
* @param authentication Credentials for the request
|
|
7
7
|
* @param requestOptions - Options for the request, including parameters relevant to the endpoint.
|
|
8
|
-
* @
|
|
8
|
+
* @returns Promise that will resolve with Blob or an AGO-style JSON failure response
|
|
9
9
|
*/
|
|
10
10
|
export function getBlob(url, authentication, requestOptions = {}) {
|
|
11
11
|
if (!url) {
|
|
@@ -19,6 +19,6 @@ import { ISourceFile, ISourceFileCopyPath, UserSession } from "../interfaces";
|
|
|
19
19
|
*
|
|
20
20
|
* @param resourceItemFilePaths Paths to resources in source
|
|
21
21
|
* @param authentication Credentials for the request to the source
|
|
22
|
-
* @
|
|
22
|
+
* @returns A promise which resolves with an array of resource files
|
|
23
23
|
*/
|
|
24
24
|
export declare function getItemResourcesFilesFromPaths(resourceItemFilePaths: ISourceFileCopyPath[], authentication: UserSession): Promise<ISourceFile[]>;
|
|
@@ -20,7 +20,7 @@ import { getBlobAsFile } from "../restHelpersGet";
|
|
|
20
20
|
*
|
|
21
21
|
* @param resourceItemFilePaths Paths to resources in source
|
|
22
22
|
* @param authentication Credentials for the request to the source
|
|
23
|
-
* @
|
|
23
|
+
* @returns A promise which resolves with an array of resource files
|
|
24
24
|
*/
|
|
25
25
|
export function getItemResourcesFilesFromPaths(resourceItemFilePaths, authentication) {
|
|
26
26
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
@@ -21,6 +21,6 @@ import { IItemTemplate, ISourceFileCopyPath, UserSession } from "../interfaces";
|
|
|
21
21
|
* @param solutionItemId item id for the solution
|
|
22
22
|
* @param authentication Credentials for the request to the storage
|
|
23
23
|
* @param storageVersion Version of the Solution template
|
|
24
|
-
* @
|
|
24
|
+
* @returns A promise which resolves with an array of paths to resources for the item
|
|
25
25
|
*/
|
|
26
26
|
export declare function getItemResourcesPaths(itemTemplate: IItemTemplate, solutionItemId: string, authentication: UserSession, storageVersion?: number): Promise<ISourceFileCopyPath[]>;
|
|
@@ -23,7 +23,7 @@ import { generateSourceFilePaths } from "../resourceHelpers";
|
|
|
23
23
|
* @param solutionItemId item id for the solution
|
|
24
24
|
* @param authentication Credentials for the request to the storage
|
|
25
25
|
* @param storageVersion Version of the Solution template
|
|
26
|
-
* @
|
|
26
|
+
* @returns A promise which resolves with an array of paths to resources for the item
|
|
27
27
|
*/
|
|
28
28
|
export function getItemResourcesPaths(itemTemplate, solutionItemId, authentication, storageVersion = 0) {
|
|
29
29
|
// get the resources for the item
|
|
@@ -32,6 +32,7 @@ export declare function transformResourcePathToSolutionResource(resourcePath: st
|
|
|
32
32
|
* Convert a resource path to a SolutionResourceType
|
|
33
33
|
*
|
|
34
34
|
* @param resourcePath String
|
|
35
|
+
* @private
|
|
35
36
|
*/
|
|
36
37
|
export declare function _getSolutionResourceTypeFromResourcePath(resourcePath: string): SolutionResourceType;
|
|
37
38
|
/**
|
|
@@ -42,6 +42,7 @@ export function transformResourcePathToSolutionResource(resourcePath) {
|
|
|
42
42
|
* Convert a resource path to a SolutionResourceType
|
|
43
43
|
*
|
|
44
44
|
* @param resourcePath String
|
|
45
|
+
* @private
|
|
45
46
|
*/
|
|
46
47
|
export function _getSolutionResourceTypeFromResourcePath(resourcePath) {
|
|
47
48
|
let type = SolutionResourceType.resource;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-resource-paths-to-solution-resources.js","sourceRoot":"","sources":["../../../src/resources/transform-resource-paths-to-solution-resources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C;;;;;;GAMG;AACH,MAAM,UAAU,yCAAyC,CACvD,kBAA4B,EAAE;IAE9B,OAAO,eAAe,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;AACtE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uCAAuC,CACrD,YAAoB;IAEpB,OAAO;QACL,QAAQ,EAAE,gCAAgC,CAAC,YAAY,CAAC;QACxD,IAAI,EAAE,wCAAwC,CAAC,YAAY,CAAC;QAC5D,IAAI,EAAE,4BAA4B,CAAC,YAAY,CAAC;QAChD,SAAS,EAAE,YAAY;KACH,CAAC;AACzB,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"transform-resource-paths-to-solution-resources.js","sourceRoot":"","sources":["../../../src/resources/transform-resource-paths-to-solution-resources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C;;;;;;GAMG;AACH,MAAM,UAAU,yCAAyC,CACvD,kBAA4B,EAAE;IAE9B,OAAO,eAAe,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;AACtE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uCAAuC,CACrD,YAAoB;IAEpB,OAAO;QACL,QAAQ,EAAE,gCAAgC,CAAC,YAAY,CAAC;QACxD,IAAI,EAAE,wCAAwC,CAAC,YAAY,CAAC;QAC5D,IAAI,EAAE,4BAA4B,CAAC,YAAY,CAAC;QAChD,SAAS,EAAE,YAAY;KACH,CAAC;AACzB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,wCAAwC,CACtD,YAAoB;IAEpB,IAAI,IAAI,GAAG,oBAAoB,CAAC,QAAQ,CAAC;IAEzC,MAAM,MAAM,GACV,YAAY;SACT,KAAK,CAAC,GAAG,CAAC;SACV,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;SACZ,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IAErB,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAC/B,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;YACjC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;SAC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