@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
|
@@ -70,7 +70,7 @@ export function getFoldersAndGroups(authentication) {
|
|
|
70
70
|
* @param url Address of Blob
|
|
71
71
|
* @param filename Name to use for file
|
|
72
72
|
* @param authentication Credentials for the request
|
|
73
|
-
* @
|
|
73
|
+
* @returns Promise that will resolve with a File, undefined if the Blob is null, or an AGO-style JSON failure response
|
|
74
74
|
*/
|
|
75
75
|
export function getBlobAsFile(url, filename, authentication, ignoreErrors = [], mimeType) {
|
|
76
76
|
return new Promise((resolve, reject) => {
|
|
@@ -84,7 +84,7 @@ export function getBlobAsFile(url, filename, authentication, ignoreErrors = [],
|
|
|
84
84
|
* @param url Address of Blob
|
|
85
85
|
* @param authentication Credentials for the request
|
|
86
86
|
* @param ignoreErrors List of HTTP error codes that should be ignored
|
|
87
|
-
* @
|
|
87
|
+
* @returns Promise that will resolve with Blob or an AGO-REST JSON failure response
|
|
88
88
|
*/
|
|
89
89
|
export function getBlobCheckForError(url, authentication, ignoreErrors = []) {
|
|
90
90
|
return new Promise((resolve, reject) => {
|
|
@@ -122,7 +122,7 @@ export function getBlobCheckForError(url, authentication, ignoreErrors = []) {
|
|
|
122
122
|
* Extracts the text in a url between the last forward slash and the beginning of the url's parameters.
|
|
123
123
|
*
|
|
124
124
|
* @param url URL to work with
|
|
125
|
-
* @
|
|
125
|
+
* @returns Text extracted; empty if url ends with a forward slash or has a "?" immediately after the last
|
|
126
126
|
* forward slash
|
|
127
127
|
*/
|
|
128
128
|
export function getFilenameFromUrl(url) {
|
|
@@ -144,7 +144,7 @@ export function getFilenameFromUrl(url) {
|
|
|
144
144
|
*
|
|
145
145
|
* @param groupId Id of an group whose primary information is sought
|
|
146
146
|
* @param authentication Credentials for the request to AGO
|
|
147
|
-
* @
|
|
147
|
+
* @returns A promise that will resolve with group's JSON or error JSON or throws ArcGISRequestError in case of HTTP error
|
|
148
148
|
* or response error code
|
|
149
149
|
*/
|
|
150
150
|
export function getGroupBase(groupId, authentication) {
|
|
@@ -158,7 +158,7 @@ export function getGroupBase(groupId, authentication) {
|
|
|
158
158
|
*
|
|
159
159
|
* @param groupId Id of an group whose category schema information is sought
|
|
160
160
|
* @param authentication Credentials for the request to AGO
|
|
161
|
-
* @
|
|
161
|
+
* @returns A promise that will resolve with JSON of group's category schema
|
|
162
162
|
* @see https://developers.arcgis.com/rest/users-groups-and-items/group-category-schema.htm
|
|
163
163
|
*/
|
|
164
164
|
export function getGroupCategorySchema(groupId, authentication) {
|
|
@@ -172,7 +172,7 @@ export function getGroupCategorySchema(groupId, authentication) {
|
|
|
172
172
|
*
|
|
173
173
|
* @param groupId Id of a group whose contents are sought
|
|
174
174
|
* @param authentication Credentials for the request to AGO
|
|
175
|
-
* @
|
|
175
|
+
* @returns A promise that will resolve with list of dependent ids or an empty list
|
|
176
176
|
*/
|
|
177
177
|
export function getGroupContents(groupId, authentication) {
|
|
178
178
|
return new Promise((resolve, reject) => {
|
|
@@ -191,7 +191,7 @@ export function getGroupContents(groupId, authentication) {
|
|
|
191
191
|
*
|
|
192
192
|
* @param itemId Id of an item whose primary information is sought
|
|
193
193
|
* @param authentication Credentials for the request to AGO
|
|
194
|
-
* @
|
|
194
|
+
* @returns A promise that will resolve with item's JSON or error JSON or throws ArcGISRequestError in case of HTTP error
|
|
195
195
|
* or response error code
|
|
196
196
|
*/
|
|
197
197
|
export function getItemBase(itemId, authentication) {
|
|
@@ -206,7 +206,7 @@ export function getItemBase(itemId, authentication) {
|
|
|
206
206
|
* @param itemId Id of an item whose data information is sought
|
|
207
207
|
* @param filename Name to use for file
|
|
208
208
|
* @param authentication Credentials for the request to AGO
|
|
209
|
-
* @
|
|
209
|
+
* @returns Promise that will resolve with a File, undefined if the Blob is null, or an AGO-style JSON failure response
|
|
210
210
|
*/
|
|
211
211
|
export function getItemDataAsFile(itemId, filename, authentication) {
|
|
212
212
|
return new Promise(resolve => {
|
|
@@ -219,7 +219,7 @@ export function getItemDataAsFile(itemId, filename, authentication) {
|
|
|
219
219
|
* @param itemId Id of an item whose data information is sought
|
|
220
220
|
* @param filename Name to use for file
|
|
221
221
|
* @param authentication Credentials for the request to AGO
|
|
222
|
-
* @
|
|
222
|
+
* @returns Promise that will resolve with JSON, or an AGO-style JSON failure response
|
|
223
223
|
*/
|
|
224
224
|
export function getItemDataAsJson(itemId, authentication) {
|
|
225
225
|
return new Promise(resolve => {
|
|
@@ -231,7 +231,7 @@ export function getItemDataAsJson(itemId, authentication) {
|
|
|
231
231
|
*
|
|
232
232
|
* @param itemId Id of an item whose data information is sought
|
|
233
233
|
* @param authentication Credentials for the request to AGO
|
|
234
|
-
* @
|
|
234
|
+
* @returns A promise that will resolve with the data Blob or null if the item doesn't have a data section
|
|
235
235
|
*/
|
|
236
236
|
export function getItemDataBlob(itemId, authentication) {
|
|
237
237
|
return new Promise(resolve => {
|
|
@@ -244,7 +244,7 @@ export function getItemDataBlob(itemId, authentication) {
|
|
|
244
244
|
*
|
|
245
245
|
* @param itemId Id of an item whose data information is sought
|
|
246
246
|
* @param authentication Credentials for the request to AGO
|
|
247
|
-
* @
|
|
247
|
+
* @returns URL string
|
|
248
248
|
*/
|
|
249
249
|
export function getItemDataBlobUrl(itemId, authentication) {
|
|
250
250
|
return `${getPortalSharingUrlFromAuth(authentication)}/content/items/${itemId}/data`;
|
|
@@ -254,7 +254,7 @@ export function getItemDataBlobUrl(itemId, authentication) {
|
|
|
254
254
|
*
|
|
255
255
|
* @param itemId Id of an item whose data information is sought
|
|
256
256
|
* @param authentication Credentials for the request to AGO
|
|
257
|
-
* @
|
|
257
|
+
* @returns URL string
|
|
258
258
|
*/
|
|
259
259
|
export function getItemInfoFileUrlPrefix(itemId, authentication) {
|
|
260
260
|
return `${getPortalSharingUrlFromAuth(authentication)}/content/items/${itemId}/info/`;
|
|
@@ -264,7 +264,7 @@ export function getItemInfoFileUrlPrefix(itemId, authentication) {
|
|
|
264
264
|
*
|
|
265
265
|
* @param itemId Id of an item whose data information is sought
|
|
266
266
|
* @param authentication Credentials for the request to AGO
|
|
267
|
-
* @
|
|
267
|
+
* @returns Promise that will resolve with `undefined` or a File containing the metadata
|
|
268
268
|
*/
|
|
269
269
|
export function getItemMetadataAsFile(itemId, authentication) {
|
|
270
270
|
return new Promise(resolve => {
|
|
@@ -283,7 +283,7 @@ export function getItemMetadataAsFile(itemId, authentication) {
|
|
|
283
283
|
*
|
|
284
284
|
* @param itemId Id of an item whose data information is sought
|
|
285
285
|
* @param authentication Credentials for the request to AGO
|
|
286
|
-
* @
|
|
286
|
+
* @returns A promise that will resolve with the metadata Blob or null if the item doesn't have a metadata file
|
|
287
287
|
*/
|
|
288
288
|
export function getItemMetadataBlob(itemId, authentication) {
|
|
289
289
|
return new Promise((resolve, reject) => {
|
|
@@ -296,7 +296,7 @@ export function getItemMetadataBlob(itemId, authentication) {
|
|
|
296
296
|
*
|
|
297
297
|
* @param itemId Id of an item whose data information is sought
|
|
298
298
|
* @param authentication Credentials for the request to AGO
|
|
299
|
-
* @
|
|
299
|
+
* @returns URL string
|
|
300
300
|
*/
|
|
301
301
|
export function getItemMetadataBlobUrl(itemId, authentication) {
|
|
302
302
|
return (getItemInfoFileUrlPrefix(itemId, authentication) + "metadata/metadata.xml");
|
|
@@ -308,7 +308,7 @@ export function getItemMetadataBlobUrl(itemId, authentication) {
|
|
|
308
308
|
* @param relationshipType
|
|
309
309
|
* @param direction
|
|
310
310
|
* @param authentication Credentials for the request to AGO
|
|
311
|
-
* @
|
|
311
|
+
* @returns A promise that will resolve with an arcgis-rest-js `IGetRelatedItemsResponse` structure
|
|
312
312
|
*/
|
|
313
313
|
export function getItemRelatedItems(itemId, relationshipType, direction, authentication) {
|
|
314
314
|
return new Promise(resolve => {
|
|
@@ -337,7 +337,7 @@ export function getItemRelatedItems(itemId, relationshipType, direction, authent
|
|
|
337
337
|
* @param itemId Id of an item whose related items are sought
|
|
338
338
|
* @param direction
|
|
339
339
|
* @param authentication Credentials for the request to AGO
|
|
340
|
-
* @
|
|
340
|
+
* @returns A promise that will resolve with a list of IRelatedItems
|
|
341
341
|
*/
|
|
342
342
|
export function getItemRelatedItemsInSameDirection(itemId, direction, authentication) {
|
|
343
343
|
return new Promise(resolve => {
|
|
@@ -407,7 +407,7 @@ export function getItemResources(id, authentication) {
|
|
|
407
407
|
*
|
|
408
408
|
* @param itemId Id of an item whose resources are sought
|
|
409
409
|
* @param authentication Credentials for the request to AGO
|
|
410
|
-
* @
|
|
410
|
+
* @returns Promise that will resolve with a list of Files or an AGO-style JSON failure response
|
|
411
411
|
*/
|
|
412
412
|
export function getItemResourcesFiles(itemId, authentication) {
|
|
413
413
|
return new Promise((resolve, reject) => {
|
|
@@ -426,7 +426,7 @@ export function getItemResourcesFiles(itemId, authentication) {
|
|
|
426
426
|
*
|
|
427
427
|
* @param solutionItemId Id of a deployed Solution
|
|
428
428
|
* @param authentication Credentials for the request
|
|
429
|
-
* @
|
|
429
|
+
* @returns Promise resolving to a list of detailed item information
|
|
430
430
|
*/
|
|
431
431
|
export function getItemsRelatedToASolution(solutionItemId, authentication) {
|
|
432
432
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
@@ -442,7 +442,7 @@ export function getItemsRelatedToASolution(solutionItemId, authentication) {
|
|
|
442
442
|
* in the item's base section
|
|
443
443
|
* @param isGroup Switch indicating if the item is a group
|
|
444
444
|
* @param authentication Credentials for the request to AGO
|
|
445
|
-
* @
|
|
445
|
+
* @returns Promise that will resolve with an image Blob or an AGO-style JSON failure response
|
|
446
446
|
*/
|
|
447
447
|
export function getItemThumbnail(itemId, thumbnailUrlPart, isGroup, authentication) {
|
|
448
448
|
return new Promise((resolve, reject) => {
|
|
@@ -462,7 +462,7 @@ export function getItemThumbnail(itemId, thumbnailUrlPart, isGroup, authenticati
|
|
|
462
462
|
* in the item's base section
|
|
463
463
|
* @param isGroup Switch indicating if the item is a group
|
|
464
464
|
* @param authentication Credentials for the request to AGO
|
|
465
|
-
* @
|
|
465
|
+
* @returns Promise that will resolve with an image Blob or an AGO-style JSON failure response
|
|
466
466
|
*/
|
|
467
467
|
export function getItemThumbnailAsFile(itemId, thumbnailUrlPart, isGroup, authentication) {
|
|
468
468
|
return new Promise((resolve, reject) => {
|
|
@@ -485,7 +485,7 @@ export function getItemThumbnailAsFile(itemId, thumbnailUrlPart, isGroup, authen
|
|
|
485
485
|
* in the item's base section
|
|
486
486
|
* @param isGroup Switch indicating if the item is a group
|
|
487
487
|
* @param authentication Credentials for the request to AGO
|
|
488
|
-
* @
|
|
488
|
+
* @returns URL string
|
|
489
489
|
*/
|
|
490
490
|
export function getItemThumbnailUrl(itemId, thumbnailUrlPart, isGroup, authentication) {
|
|
491
491
|
return (checkUrlPathTermination(getPortalSharingUrlFromAuth(authentication)) +
|
|
@@ -499,7 +499,7 @@ export function getItemThumbnailUrl(itemId, thumbnailUrlPart, isGroup, authentic
|
|
|
499
499
|
*
|
|
500
500
|
* @param url Address of JSON
|
|
501
501
|
* @param authentication Credentials for the request
|
|
502
|
-
* @
|
|
502
|
+
* @returns Promise that will resolve with JSON
|
|
503
503
|
*/
|
|
504
504
|
export function getJson(url, authentication) {
|
|
505
505
|
// Get the blob from the URL
|
|
@@ -544,7 +544,7 @@ export function getPortalUrlFromAuth(authentication) {
|
|
|
544
544
|
*
|
|
545
545
|
* @param itemId Id of an AGO item to query
|
|
546
546
|
* @param authentication Credentials for the request
|
|
547
|
-
* @
|
|
547
|
+
* @returns Promise resolving to a list of Solution item ids
|
|
548
548
|
*/
|
|
549
549
|
export function getSolutionsRelatedToAnItem(itemId, authentication) {
|
|
550
550
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
@@ -562,9 +562,9 @@ export function getThumbnailFile(url, filename, authentication) {
|
|
|
562
562
|
* Fixes the types of Blobs incorrectly typed as text/plain.
|
|
563
563
|
*
|
|
564
564
|
* @param blob Blob to check
|
|
565
|
-
* @
|
|
565
|
+
* @returns Promise resolving to original Blob, unless it's originally typed as text/plain but is
|
|
566
566
|
* really JSON, ZIP, or XML
|
|
567
|
-
* @
|
|
567
|
+
* @private
|
|
568
568
|
*/
|
|
569
569
|
export function _fixTextBlobType(blob) {
|
|
570
570
|
return new Promise((resolve, reject) => {
|
|
@@ -617,8 +617,8 @@ export function _fixTextBlobType(blob) {
|
|
|
617
617
|
* @param groupId Id of a group whose contents are sought
|
|
618
618
|
* @param pagingParams Structure with start and num properties for the tranche to fetch
|
|
619
619
|
* @param authentication Credentials for the request to AGO
|
|
620
|
-
* @
|
|
621
|
-
* @
|
|
620
|
+
* @returns A promise that will resolve with list of dependent ids or an empty list
|
|
621
|
+
* @private
|
|
622
622
|
*/
|
|
623
623
|
export function _getGroupContentsTranche(groupId, pagingParams, authentication) {
|
|
624
624
|
return new Promise((resolve, reject) => {
|
|
@@ -655,8 +655,8 @@ export function _getGroupContentsTranche(groupId, pagingParams, authentication)
|
|
|
655
655
|
* @param itemId Id of an item whose resources are sought
|
|
656
656
|
* @param pagingParams Structure with start and num properties for the tranche to fetch
|
|
657
657
|
* @param authentication Credentials for the request to AGO
|
|
658
|
-
* @
|
|
659
|
-
* @
|
|
658
|
+
* @returns Promise that will resolve with a list of File promises or an AGO-style JSON failure response
|
|
659
|
+
* @private
|
|
660
660
|
*/
|
|
661
661
|
export function _getItemResourcesTranche(itemId, pagingParams, authentication) {
|
|
662
662
|
return new Promise((resolve, reject) => {
|
|
@@ -19,31 +19,31 @@ import { IItemTemplate, ISolutionItemData } from "./interfaces";
|
|
|
19
19
|
* itself; name has to be acceptable to AGOL, otherwise it discards the URL, so substitution must be
|
|
20
20
|
* made before attempting to create the item.
|
|
21
21
|
*
|
|
22
|
-
* @
|
|
22
|
+
* @private
|
|
23
23
|
*/
|
|
24
24
|
export declare const SERVER_NAME: string;
|
|
25
25
|
/**
|
|
26
26
|
* A parameterized geometry server name
|
|
27
27
|
*
|
|
28
|
-
* @
|
|
28
|
+
* @private
|
|
29
29
|
*/
|
|
30
30
|
export declare const GEOMETRY_SERVER_NAME: string;
|
|
31
31
|
/**
|
|
32
32
|
* A parameterized geocode server name
|
|
33
33
|
*
|
|
34
|
-
* @
|
|
34
|
+
* @private
|
|
35
35
|
*/
|
|
36
36
|
export declare const GEOCODE_SERVER_NAME: string;
|
|
37
37
|
/**
|
|
38
38
|
* A parameterized network analyst server name
|
|
39
39
|
*
|
|
40
|
-
* @
|
|
40
|
+
* @private
|
|
41
41
|
*/
|
|
42
42
|
export declare const NA_SERVER_NAME: string;
|
|
43
43
|
/**
|
|
44
44
|
* A parameterized network analyst server name
|
|
45
45
|
*
|
|
46
|
-
* @
|
|
46
|
+
* @private
|
|
47
47
|
*/
|
|
48
48
|
export declare const PRINT_SERVER_NAME: string;
|
|
49
49
|
export declare const TRANSFORMS: any;
|
|
@@ -51,7 +51,7 @@ export declare const TRANSFORMS: any;
|
|
|
51
51
|
* Wraps double brackets around the supplied term.
|
|
52
52
|
*
|
|
53
53
|
* @param term Term to be wrapped, e.g., SERVER_NAME's "portalBaseUrl"
|
|
54
|
-
* @
|
|
54
|
+
* @returns Wrapped term, e.g., "{{portalBaseUrl}}"
|
|
55
55
|
*/
|
|
56
56
|
export declare function placeholder(term: string): string;
|
|
57
57
|
export declare function createInitializedGroupTemplate(itemInfo: any): IItemTemplate;
|
|
@@ -61,14 +61,14 @@ export declare function createInitializedItemTemplate(itemInfo: any): IItemTempl
|
|
|
61
61
|
*
|
|
62
62
|
* @param id AGO id of item
|
|
63
63
|
* @param type AGO item type; defaults to ""
|
|
64
|
-
* @
|
|
64
|
+
* @returns Empty template containing supplied id, optional type, and a key created using the function createShortId()
|
|
65
65
|
*/
|
|
66
66
|
export declare function createPlaceholderTemplate(id: string, type?: string): IItemTemplate;
|
|
67
67
|
/**
|
|
68
68
|
* Extracts the version of a solution from its data section.
|
|
69
69
|
*
|
|
70
70
|
* @param itemData Data section of the solution as JSON
|
|
71
|
-
* @
|
|
71
|
+
* @returns Zero-based version number
|
|
72
72
|
*/
|
|
73
73
|
export declare function extractSolutionVersion(itemData: ISolutionItemData): number;
|
|
74
74
|
/**
|
|
@@ -76,8 +76,8 @@ export declare function extractSolutionVersion(itemData: ISolutionItemData): num
|
|
|
76
76
|
*
|
|
77
77
|
* @param templates A collection of AGO item templates to search
|
|
78
78
|
* @param id AGO id of template to find
|
|
79
|
-
* @
|
|
80
|
-
* @
|
|
79
|
+
* @returns Offset of of matching template or -1 if not found
|
|
80
|
+
* @private
|
|
81
81
|
*/
|
|
82
82
|
export declare function findTemplateIndexInList(templates: IItemTemplate[], id: string): number;
|
|
83
83
|
/**
|
|
@@ -85,7 +85,7 @@ export declare function findTemplateIndexInList(templates: IItemTemplate[], id:
|
|
|
85
85
|
*
|
|
86
86
|
* @param templates A collection of AGO item templates to search
|
|
87
87
|
* @param id AGO id of template to find
|
|
88
|
-
* @
|
|
88
|
+
* @returns Matching template or null
|
|
89
89
|
*/
|
|
90
90
|
export declare function findTemplateInList(templates: IItemTemplate[], id: string): IItemTemplate | null;
|
|
91
91
|
export declare function hasUnresolvedVariables(data: any): boolean;
|
|
@@ -96,7 +96,7 @@ export declare function getDefaultExtent(itemInfo: any): any;
|
|
|
96
96
|
*
|
|
97
97
|
* @param templates A collection of AGO item templates
|
|
98
98
|
* @param id Id of item in templates list to find; if not found, no replacement is done
|
|
99
|
-
* @
|
|
99
|
+
* @private
|
|
100
100
|
*/
|
|
101
101
|
export declare function removeTemplate(templates: IItemTemplate[], id: string): void;
|
|
102
102
|
/**
|
|
@@ -104,7 +104,7 @@ export declare function removeTemplate(templates: IItemTemplate[], id: string):
|
|
|
104
104
|
*
|
|
105
105
|
* @param template Template to check for replacements; template is modified by this function
|
|
106
106
|
* @param replacements Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
107
|
-
* @
|
|
107
|
+
* @returns template is returned after updating it
|
|
108
108
|
*/
|
|
109
109
|
export declare function replaceInTemplate(template: any, replacements: any): any;
|
|
110
110
|
/**
|
|
@@ -113,8 +113,8 @@ export declare function replaceInTemplate(template: any, replacements: any): any
|
|
|
113
113
|
* @param templates A collection of AGO item templates
|
|
114
114
|
* @param id Id of item in templates list to find; if not found, no replacement is done
|
|
115
115
|
* @param template Replacement template
|
|
116
|
-
* @
|
|
117
|
-
* @
|
|
116
|
+
* @returns True if replacement was made
|
|
117
|
+
* @private
|
|
118
118
|
*/
|
|
119
119
|
export declare function replaceTemplate(templates: IItemTemplate[], id: string, template: IItemTemplate): boolean;
|
|
120
120
|
export declare function templatizeTerm(context: string, term: string, suffix?: string): string;
|
|
@@ -27,31 +27,31 @@ import { createShortId, getProp } from "./generalHelpers";
|
|
|
27
27
|
* itself; name has to be acceptable to AGOL, otherwise it discards the URL, so substitution must be
|
|
28
28
|
* made before attempting to create the item.
|
|
29
29
|
*
|
|
30
|
-
* @
|
|
30
|
+
* @private
|
|
31
31
|
*/
|
|
32
32
|
export const SERVER_NAME = "portalBaseUrl";
|
|
33
33
|
/**
|
|
34
34
|
* A parameterized geometry server name
|
|
35
35
|
*
|
|
36
|
-
* @
|
|
36
|
+
* @private
|
|
37
37
|
*/
|
|
38
38
|
export const GEOMETRY_SERVER_NAME = "organization.helperServices.geometry.url";
|
|
39
39
|
/**
|
|
40
40
|
* A parameterized geocode server name
|
|
41
41
|
*
|
|
42
|
-
* @
|
|
42
|
+
* @private
|
|
43
43
|
*/
|
|
44
44
|
export const GEOCODE_SERVER_NAME = "organization.helperServices.geocode:getDefaultLocatorURL";
|
|
45
45
|
/**
|
|
46
46
|
* A parameterized network analyst server name
|
|
47
47
|
*
|
|
48
|
-
* @
|
|
48
|
+
* @private
|
|
49
49
|
*/
|
|
50
50
|
export const NA_SERVER_NAME = "organization.helperServices.route.url";
|
|
51
51
|
/**
|
|
52
52
|
* A parameterized network analyst server name
|
|
53
53
|
*
|
|
54
|
-
* @
|
|
54
|
+
* @private
|
|
55
55
|
*/
|
|
56
56
|
export const PRINT_SERVER_NAME = "organization.helperServices.printTask.url";
|
|
57
57
|
export const TRANSFORMS = {
|
|
@@ -65,7 +65,7 @@ export const TRANSFORMS = {
|
|
|
65
65
|
* Wraps double brackets around the supplied term.
|
|
66
66
|
*
|
|
67
67
|
* @param term Term to be wrapped, e.g., SERVER_NAME's "portalBaseUrl"
|
|
68
|
-
* @
|
|
68
|
+
* @returns Wrapped term, e.g., "{{portalBaseUrl}}"
|
|
69
69
|
*/
|
|
70
70
|
export function placeholder(term) {
|
|
71
71
|
return "{{" + term + "}}";
|
|
@@ -114,7 +114,7 @@ export function createInitializedItemTemplate(itemInfo) {
|
|
|
114
114
|
*
|
|
115
115
|
* @param id AGO id of item
|
|
116
116
|
* @param type AGO item type; defaults to ""
|
|
117
|
-
* @
|
|
117
|
+
* @returns Empty template containing supplied id, optional type, and a key created using the function createShortId()
|
|
118
118
|
*/
|
|
119
119
|
export function createPlaceholderTemplate(id, type = "") {
|
|
120
120
|
return {
|
|
@@ -137,7 +137,7 @@ export function createPlaceholderTemplate(id, type = "") {
|
|
|
137
137
|
* Extracts the version of a solution from its data section.
|
|
138
138
|
*
|
|
139
139
|
* @param itemData Data section of the solution as JSON
|
|
140
|
-
* @
|
|
140
|
+
* @returns Zero-based version number
|
|
141
141
|
*/
|
|
142
142
|
export function extractSolutionVersion(itemData) {
|
|
143
143
|
let version = getProp(itemData, "metadata.version");
|
|
@@ -155,8 +155,8 @@ export function extractSolutionVersion(itemData) {
|
|
|
155
155
|
*
|
|
156
156
|
* @param templates A collection of AGO item templates to search
|
|
157
157
|
* @param id AGO id of template to find
|
|
158
|
-
* @
|
|
159
|
-
* @
|
|
158
|
+
* @returns Offset of of matching template or -1 if not found
|
|
159
|
+
* @private
|
|
160
160
|
*/
|
|
161
161
|
export function findTemplateIndexInList(templates, id) {
|
|
162
162
|
const baseId = id;
|
|
@@ -169,7 +169,7 @@ export function findTemplateIndexInList(templates, id) {
|
|
|
169
169
|
*
|
|
170
170
|
* @param templates A collection of AGO item templates to search
|
|
171
171
|
* @param id AGO id of template to find
|
|
172
|
-
* @
|
|
172
|
+
* @returns Matching template or null
|
|
173
173
|
*/
|
|
174
174
|
export function findTemplateInList(templates, id) {
|
|
175
175
|
const iTemplate = findTemplateIndexInList(templates, id);
|
|
@@ -195,7 +195,7 @@ export function getDefaultExtent(itemInfo) {
|
|
|
195
195
|
*
|
|
196
196
|
* @param templates A collection of AGO item templates
|
|
197
197
|
* @param id Id of item in templates list to find; if not found, no replacement is done
|
|
198
|
-
* @
|
|
198
|
+
* @private
|
|
199
199
|
*/
|
|
200
200
|
export function removeTemplate(templates, id) {
|
|
201
201
|
const i = findTemplateIndexInList(templates, id);
|
|
@@ -208,7 +208,7 @@ export function removeTemplate(templates, id) {
|
|
|
208
208
|
*
|
|
209
209
|
* @param template Template to check for replacements; template is modified by this function
|
|
210
210
|
* @param replacements Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
211
|
-
* @
|
|
211
|
+
* @returns template is returned after updating it
|
|
212
212
|
*/
|
|
213
213
|
export function replaceInTemplate(template, replacements) {
|
|
214
214
|
return adlib(template, replacements, TRANSFORMS);
|
|
@@ -219,8 +219,8 @@ export function replaceInTemplate(template, replacements) {
|
|
|
219
219
|
* @param templates A collection of AGO item templates
|
|
220
220
|
* @param id Id of item in templates list to find; if not found, no replacement is done
|
|
221
221
|
* @param template Replacement template
|
|
222
|
-
* @
|
|
223
|
-
* @
|
|
222
|
+
* @returns True if replacement was made
|
|
223
|
+
* @private
|
|
224
224
|
*/
|
|
225
225
|
export function replaceTemplate(templates, id, template) {
|
|
226
226
|
const i = findTemplateIndexInList(templates, id);
|
|
@@ -27,7 +27,7 @@ import { ICreateServiceParams } from "@esri/arcgis-rest-service-admin";
|
|
|
27
27
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
28
28
|
* @param templates the list of IItemTemplates from the solution
|
|
29
29
|
*
|
|
30
|
-
* @
|
|
30
|
+
* @private
|
|
31
31
|
*/
|
|
32
32
|
export declare function setLocationTrackingEnabled(portalResponse: any, userResponse: any, templateDictionary: any, templates?: IItemTemplate[]): void;
|
|
33
33
|
/**
|
|
@@ -39,7 +39,7 @@ export declare function setLocationTrackingEnabled(portalResponse: any, userResp
|
|
|
39
39
|
* @param templates the list of IItemTemplates from the solution
|
|
40
40
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
41
41
|
*
|
|
42
|
-
* @
|
|
42
|
+
* @private
|
|
43
43
|
*/
|
|
44
44
|
export declare function _validateTrackingTemplates(templates: IItemTemplate[], templateDictionary: any): void;
|
|
45
45
|
/**
|
|
@@ -52,7 +52,7 @@ export declare function _validateTrackingTemplates(templates: IItemTemplate[], t
|
|
|
52
52
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
53
53
|
* @param authentication Credentials for the requests
|
|
54
54
|
*
|
|
55
|
-
* @
|
|
55
|
+
* @private
|
|
56
56
|
*/
|
|
57
57
|
export declare function getTackingServiceOwner(templateDictionary: any, authentication: UserSession): Promise<boolean>;
|
|
58
58
|
/**
|
|
@@ -61,7 +61,7 @@ export declare function getTackingServiceOwner(templateDictionary: any, authenti
|
|
|
61
61
|
* @param itemTemplate the template to evaluate
|
|
62
62
|
* @param itemUpdate the item update to evaluate
|
|
63
63
|
*
|
|
64
|
-
* @
|
|
64
|
+
* @private
|
|
65
65
|
*/
|
|
66
66
|
export declare function isTrackingViewTemplate(itemTemplate?: IItemTemplate, itemUpdate?: IItemUpdate): boolean;
|
|
67
67
|
/**
|
|
@@ -69,7 +69,7 @@ export declare function isTrackingViewTemplate(itemTemplate?: IItemTemplate, ite
|
|
|
69
69
|
*
|
|
70
70
|
* @param itemTemplate the template to evaluate
|
|
71
71
|
*
|
|
72
|
-
* @
|
|
72
|
+
* @private
|
|
73
73
|
*/
|
|
74
74
|
export declare function isTrackingViewGroup(itemTemplate: IItemTemplate): boolean;
|
|
75
75
|
/**
|
|
@@ -78,7 +78,7 @@ export declare function isTrackingViewGroup(itemTemplate: IItemTemplate): boolea
|
|
|
78
78
|
*
|
|
79
79
|
* @param itemTemplate Template for feature service item
|
|
80
80
|
*
|
|
81
|
-
* @
|
|
81
|
+
* @private
|
|
82
82
|
*/
|
|
83
83
|
export declare function templatizeTracker(itemTemplate: IItemTemplate): void;
|
|
84
84
|
/**
|
|
@@ -90,7 +90,7 @@ export declare function templatizeTracker(itemTemplate: IItemTemplate): void;
|
|
|
90
90
|
* @param groupId the id of the associated tracker group
|
|
91
91
|
* @param groupIdVar the variable to replace the existing name with
|
|
92
92
|
*
|
|
93
|
-
* @
|
|
93
|
+
* @private
|
|
94
94
|
*/
|
|
95
95
|
export declare function _setName(itemTemplate: IItemTemplate, path: string, groupId: string, groupIdVar: string): void;
|
|
96
96
|
/**
|
|
@@ -101,7 +101,7 @@ export declare function _setName(itemTemplate: IItemTemplate, path: string, grou
|
|
|
101
101
|
* @param obj the object that stores the serviceItemId
|
|
102
102
|
* @param path the path to the property that stores the serviceItemId
|
|
103
103
|
*
|
|
104
|
-
* @
|
|
104
|
+
* @private
|
|
105
105
|
*/
|
|
106
106
|
export declare function templatizeServiceItemId(obj: any, path: string): void;
|
|
107
107
|
/**
|
|
@@ -111,6 +111,6 @@ export declare function templatizeServiceItemId(obj: any, path: string): void;
|
|
|
111
111
|
* @param options the current request options to update
|
|
112
112
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
113
113
|
*
|
|
114
|
-
* @
|
|
114
|
+
* @private
|
|
115
115
|
*/
|
|
116
116
|
export declare function setTrackingOptions(itemTemplate: IItemTemplate, options: any, templateDictionary: any): ICreateServiceParams;
|
|
@@ -27,7 +27,7 @@ import { templatizeTerm } from "./templatization";
|
|
|
27
27
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
28
28
|
* @param templates the list of IItemTemplates from the solution
|
|
29
29
|
*
|
|
30
|
-
* @
|
|
30
|
+
* @private
|
|
31
31
|
*/
|
|
32
32
|
export function setLocationTrackingEnabled(portalResponse, userResponse, templateDictionary, templates) {
|
|
33
33
|
// set locationTracking...contains service url and id
|
|
@@ -55,7 +55,7 @@ export function setLocationTrackingEnabled(portalResponse, userResponse, templat
|
|
|
55
55
|
* @param templates the list of IItemTemplates from the solution
|
|
56
56
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
57
57
|
*
|
|
58
|
-
* @
|
|
58
|
+
* @private
|
|
59
59
|
*/
|
|
60
60
|
export function _validateTrackingTemplates(templates, templateDictionary) {
|
|
61
61
|
/* istanbul ignore else */
|
|
@@ -78,7 +78,7 @@ export function _validateTrackingTemplates(templates, templateDictionary) {
|
|
|
78
78
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
79
79
|
* @param authentication Credentials for the requests
|
|
80
80
|
*
|
|
81
|
-
* @
|
|
81
|
+
* @private
|
|
82
82
|
*/
|
|
83
83
|
export function getTackingServiceOwner(templateDictionary, authentication) {
|
|
84
84
|
if (templateDictionary.locationTrackingEnabled) {
|
|
@@ -101,7 +101,7 @@ export function getTackingServiceOwner(templateDictionary, authentication) {
|
|
|
101
101
|
* @param itemTemplate the template to evaluate
|
|
102
102
|
* @param itemUpdate the item update to evaluate
|
|
103
103
|
*
|
|
104
|
-
* @
|
|
104
|
+
* @private
|
|
105
105
|
*/
|
|
106
106
|
export function isTrackingViewTemplate(itemTemplate, itemUpdate) {
|
|
107
107
|
const typeKeywords = getProp(itemTemplate, "item.typeKeywords") ||
|
|
@@ -115,7 +115,7 @@ export function isTrackingViewTemplate(itemTemplate, itemUpdate) {
|
|
|
115
115
|
*
|
|
116
116
|
* @param itemTemplate the template to evaluate
|
|
117
117
|
*
|
|
118
|
-
* @
|
|
118
|
+
* @private
|
|
119
119
|
*/
|
|
120
120
|
export function isTrackingViewGroup(itemTemplate) {
|
|
121
121
|
const typeKeywords = getProp(itemTemplate, "item.tags");
|
|
@@ -127,7 +127,7 @@ export function isTrackingViewGroup(itemTemplate) {
|
|
|
127
127
|
*
|
|
128
128
|
* @param itemTemplate Template for feature service item
|
|
129
129
|
*
|
|
130
|
-
* @
|
|
130
|
+
* @private
|
|
131
131
|
*/
|
|
132
132
|
export function templatizeTracker(itemTemplate) {
|
|
133
133
|
/* istanbul ignore else */
|
|
@@ -154,7 +154,7 @@ export function templatizeTracker(itemTemplate) {
|
|
|
154
154
|
* @param groupId the id of the associated tracker group
|
|
155
155
|
* @param groupIdVar the variable to replace the existing name with
|
|
156
156
|
*
|
|
157
|
-
* @
|
|
157
|
+
* @private
|
|
158
158
|
*/
|
|
159
159
|
export function _setName(itemTemplate, path, groupId, groupIdVar) {
|
|
160
160
|
const name = getProp(itemTemplate, path);
|
|
@@ -171,7 +171,7 @@ export function _setName(itemTemplate, path, groupId, groupIdVar) {
|
|
|
171
171
|
* @param obj the object that stores the serviceItemId
|
|
172
172
|
* @param path the path to the property that stores the serviceItemId
|
|
173
173
|
*
|
|
174
|
-
* @
|
|
174
|
+
* @private
|
|
175
175
|
*/
|
|
176
176
|
export function templatizeServiceItemId(obj, path) {
|
|
177
177
|
const serviceItemId = getProp(obj, path);
|
|
@@ -187,7 +187,7 @@ export function templatizeServiceItemId(obj, path) {
|
|
|
187
187
|
* @param options the current request options to update
|
|
188
188
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
189
189
|
*
|
|
190
|
-
* @
|
|
190
|
+
* @private
|
|
191
191
|
*/
|
|
192
192
|
export function setTrackingOptions(itemTemplate, options, templateDictionary) {
|
|
193
193
|
/* istanbul ignore else */
|
|
@@ -26,7 +26,7 @@ export declare const PROP_NAMES: string[];
|
|
|
26
26
|
* @param authentication Credentials for the requests
|
|
27
27
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
28
28
|
*
|
|
29
|
-
* @
|
|
29
|
+
* @returns a promise that will resolve with the velocity url or an empty string when the org does not support velocity
|
|
30
30
|
*
|
|
31
31
|
*/
|
|
32
32
|
export declare function getVelocityUrlBase(authentication: UserSession, templateDictionary: any): Promise<string>;
|
|
@@ -40,7 +40,7 @@ export declare function getVelocityUrlBase(authentication: UserSession, template
|
|
|
40
40
|
* @param type The item type
|
|
41
41
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
42
42
|
*
|
|
43
|
-
* @
|
|
43
|
+
* @returns an updated instance of the data object that was supplied.
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
46
46
|
export declare function updateVelocityReferences(data: any, type: string, templateDictionary: any): any;
|
|
@@ -51,7 +51,7 @@ export declare function updateVelocityReferences(data: any, type: string, templa
|
|
|
51
51
|
* @param data The data object of the item
|
|
52
52
|
* @param velocityUrl The velocity url from the current organization
|
|
53
53
|
*
|
|
54
|
-
* @
|
|
55
|
-
*
|
|
54
|
+
* @returns an updated instance of the data object that was supplied.
|
|
55
|
+
* @private
|
|
56
56
|
*/
|
|
57
57
|
export declare function _replaceVelocityUrls(data: any, velocityUrl: string): any;
|