@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
|
@@ -78,7 +78,7 @@ exports.getFoldersAndGroups = getFoldersAndGroups;
|
|
|
78
78
|
* @param url Address of Blob
|
|
79
79
|
* @param filename Name to use for file
|
|
80
80
|
* @param authentication Credentials for the request
|
|
81
|
-
* @
|
|
81
|
+
* @returns Promise that will resolve with a File, undefined if the Blob is null, or an AGO-style JSON failure response
|
|
82
82
|
*/
|
|
83
83
|
function getBlobAsFile(url, filename, authentication, ignoreErrors = [], mimeType) {
|
|
84
84
|
return new Promise((resolve, reject) => {
|
|
@@ -93,7 +93,7 @@ exports.getBlobAsFile = getBlobAsFile;
|
|
|
93
93
|
* @param url Address of Blob
|
|
94
94
|
* @param authentication Credentials for the request
|
|
95
95
|
* @param ignoreErrors List of HTTP error codes that should be ignored
|
|
96
|
-
* @
|
|
96
|
+
* @returns Promise that will resolve with Blob or an AGO-REST JSON failure response
|
|
97
97
|
*/
|
|
98
98
|
function getBlobCheckForError(url, authentication, ignoreErrors = []) {
|
|
99
99
|
return new Promise((resolve, reject) => {
|
|
@@ -132,7 +132,7 @@ exports.getBlobCheckForError = getBlobCheckForError;
|
|
|
132
132
|
* Extracts the text in a url between the last forward slash and the beginning of the url's parameters.
|
|
133
133
|
*
|
|
134
134
|
* @param url URL to work with
|
|
135
|
-
* @
|
|
135
|
+
* @returns Text extracted; empty if url ends with a forward slash or has a "?" immediately after the last
|
|
136
136
|
* forward slash
|
|
137
137
|
*/
|
|
138
138
|
function getFilenameFromUrl(url) {
|
|
@@ -155,7 +155,7 @@ exports.getFilenameFromUrl = getFilenameFromUrl;
|
|
|
155
155
|
*
|
|
156
156
|
* @param groupId Id of an group whose primary information is sought
|
|
157
157
|
* @param authentication Credentials for the request to AGO
|
|
158
|
-
* @
|
|
158
|
+
* @returns A promise that will resolve with group's JSON or error JSON or throws ArcGISRequestError in case of HTTP error
|
|
159
159
|
* or response error code
|
|
160
160
|
*/
|
|
161
161
|
function getGroupBase(groupId, authentication) {
|
|
@@ -170,7 +170,7 @@ exports.getGroupBase = getGroupBase;
|
|
|
170
170
|
*
|
|
171
171
|
* @param groupId Id of an group whose category schema information is sought
|
|
172
172
|
* @param authentication Credentials for the request to AGO
|
|
173
|
-
* @
|
|
173
|
+
* @returns A promise that will resolve with JSON of group's category schema
|
|
174
174
|
* @see https://developers.arcgis.com/rest/users-groups-and-items/group-category-schema.htm
|
|
175
175
|
*/
|
|
176
176
|
function getGroupCategorySchema(groupId, authentication) {
|
|
@@ -185,7 +185,7 @@ exports.getGroupCategorySchema = getGroupCategorySchema;
|
|
|
185
185
|
*
|
|
186
186
|
* @param groupId Id of a group whose contents are sought
|
|
187
187
|
* @param authentication Credentials for the request to AGO
|
|
188
|
-
* @
|
|
188
|
+
* @returns A promise that will resolve with list of dependent ids or an empty list
|
|
189
189
|
*/
|
|
190
190
|
function getGroupContents(groupId, authentication) {
|
|
191
191
|
return new Promise((resolve, reject) => {
|
|
@@ -205,7 +205,7 @@ exports.getGroupContents = getGroupContents;
|
|
|
205
205
|
*
|
|
206
206
|
* @param itemId Id of an item whose primary information is sought
|
|
207
207
|
* @param authentication Credentials for the request to AGO
|
|
208
|
-
* @
|
|
208
|
+
* @returns A promise that will resolve with item's JSON or error JSON or throws ArcGISRequestError in case of HTTP error
|
|
209
209
|
* or response error code
|
|
210
210
|
*/
|
|
211
211
|
function getItemBase(itemId, authentication) {
|
|
@@ -221,7 +221,7 @@ exports.getItemBase = getItemBase;
|
|
|
221
221
|
* @param itemId Id of an item whose data information is sought
|
|
222
222
|
* @param filename Name to use for file
|
|
223
223
|
* @param authentication Credentials for the request to AGO
|
|
224
|
-
* @
|
|
224
|
+
* @returns Promise that will resolve with a File, undefined if the Blob is null, or an AGO-style JSON failure response
|
|
225
225
|
*/
|
|
226
226
|
function getItemDataAsFile(itemId, filename, authentication) {
|
|
227
227
|
return new Promise(resolve => {
|
|
@@ -235,7 +235,7 @@ exports.getItemDataAsFile = getItemDataAsFile;
|
|
|
235
235
|
* @param itemId Id of an item whose data information is sought
|
|
236
236
|
* @param filename Name to use for file
|
|
237
237
|
* @param authentication Credentials for the request to AGO
|
|
238
|
-
* @
|
|
238
|
+
* @returns Promise that will resolve with JSON, or an AGO-style JSON failure response
|
|
239
239
|
*/
|
|
240
240
|
function getItemDataAsJson(itemId, authentication) {
|
|
241
241
|
return new Promise(resolve => {
|
|
@@ -248,7 +248,7 @@ exports.getItemDataAsJson = getItemDataAsJson;
|
|
|
248
248
|
*
|
|
249
249
|
* @param itemId Id of an item whose data information is sought
|
|
250
250
|
* @param authentication Credentials for the request to AGO
|
|
251
|
-
* @
|
|
251
|
+
* @returns A promise that will resolve with the data Blob or null if the item doesn't have a data section
|
|
252
252
|
*/
|
|
253
253
|
function getItemDataBlob(itemId, authentication) {
|
|
254
254
|
return new Promise(resolve => {
|
|
@@ -262,7 +262,7 @@ exports.getItemDataBlob = getItemDataBlob;
|
|
|
262
262
|
*
|
|
263
263
|
* @param itemId Id of an item whose data information is sought
|
|
264
264
|
* @param authentication Credentials for the request to AGO
|
|
265
|
-
* @
|
|
265
|
+
* @returns URL string
|
|
266
266
|
*/
|
|
267
267
|
function getItemDataBlobUrl(itemId, authentication) {
|
|
268
268
|
return `${getPortalSharingUrlFromAuth(authentication)}/content/items/${itemId}/data`;
|
|
@@ -273,7 +273,7 @@ exports.getItemDataBlobUrl = getItemDataBlobUrl;
|
|
|
273
273
|
*
|
|
274
274
|
* @param itemId Id of an item whose data information is sought
|
|
275
275
|
* @param authentication Credentials for the request to AGO
|
|
276
|
-
* @
|
|
276
|
+
* @returns URL string
|
|
277
277
|
*/
|
|
278
278
|
function getItemInfoFileUrlPrefix(itemId, authentication) {
|
|
279
279
|
return `${getPortalSharingUrlFromAuth(authentication)}/content/items/${itemId}/info/`;
|
|
@@ -284,7 +284,7 @@ exports.getItemInfoFileUrlPrefix = getItemInfoFileUrlPrefix;
|
|
|
284
284
|
*
|
|
285
285
|
* @param itemId Id of an item whose data information is sought
|
|
286
286
|
* @param authentication Credentials for the request to AGO
|
|
287
|
-
* @
|
|
287
|
+
* @returns Promise that will resolve with `undefined` or a File containing the metadata
|
|
288
288
|
*/
|
|
289
289
|
function getItemMetadataAsFile(itemId, authentication) {
|
|
290
290
|
return new Promise(resolve => {
|
|
@@ -304,7 +304,7 @@ exports.getItemMetadataAsFile = getItemMetadataAsFile;
|
|
|
304
304
|
*
|
|
305
305
|
* @param itemId Id of an item whose data information is sought
|
|
306
306
|
* @param authentication Credentials for the request to AGO
|
|
307
|
-
* @
|
|
307
|
+
* @returns A promise that will resolve with the metadata Blob or null if the item doesn't have a metadata file
|
|
308
308
|
*/
|
|
309
309
|
function getItemMetadataBlob(itemId, authentication) {
|
|
310
310
|
return new Promise((resolve, reject) => {
|
|
@@ -318,7 +318,7 @@ exports.getItemMetadataBlob = getItemMetadataBlob;
|
|
|
318
318
|
*
|
|
319
319
|
* @param itemId Id of an item whose data information is sought
|
|
320
320
|
* @param authentication Credentials for the request to AGO
|
|
321
|
-
* @
|
|
321
|
+
* @returns URL string
|
|
322
322
|
*/
|
|
323
323
|
function getItemMetadataBlobUrl(itemId, authentication) {
|
|
324
324
|
return (getItemInfoFileUrlPrefix(itemId, authentication) + "metadata/metadata.xml");
|
|
@@ -331,7 +331,7 @@ exports.getItemMetadataBlobUrl = getItemMetadataBlobUrl;
|
|
|
331
331
|
* @param relationshipType
|
|
332
332
|
* @param direction
|
|
333
333
|
* @param authentication Credentials for the request to AGO
|
|
334
|
-
* @
|
|
334
|
+
* @returns A promise that will resolve with an arcgis-rest-js `IGetRelatedItemsResponse` structure
|
|
335
335
|
*/
|
|
336
336
|
function getItemRelatedItems(itemId, relationshipType, direction, authentication) {
|
|
337
337
|
return new Promise(resolve => {
|
|
@@ -361,7 +361,7 @@ exports.getItemRelatedItems = getItemRelatedItems;
|
|
|
361
361
|
* @param itemId Id of an item whose related items are sought
|
|
362
362
|
* @param direction
|
|
363
363
|
* @param authentication Credentials for the request to AGO
|
|
364
|
-
* @
|
|
364
|
+
* @returns A promise that will resolve with a list of IRelatedItems
|
|
365
365
|
*/
|
|
366
366
|
function getItemRelatedItemsInSameDirection(itemId, direction, authentication) {
|
|
367
367
|
return new Promise(resolve => {
|
|
@@ -433,7 +433,7 @@ exports.getItemResources = getItemResources;
|
|
|
433
433
|
*
|
|
434
434
|
* @param itemId Id of an item whose resources are sought
|
|
435
435
|
* @param authentication Credentials for the request to AGO
|
|
436
|
-
* @
|
|
436
|
+
* @returns Promise that will resolve with a list of Files or an AGO-style JSON failure response
|
|
437
437
|
*/
|
|
438
438
|
function getItemResourcesFiles(itemId, authentication) {
|
|
439
439
|
return new Promise((resolve, reject) => {
|
|
@@ -453,7 +453,7 @@ exports.getItemResourcesFiles = getItemResourcesFiles;
|
|
|
453
453
|
*
|
|
454
454
|
* @param solutionItemId Id of a deployed Solution
|
|
455
455
|
* @param authentication Credentials for the request
|
|
456
|
-
* @
|
|
456
|
+
* @returns Promise resolving to a list of detailed item information
|
|
457
457
|
*/
|
|
458
458
|
function getItemsRelatedToASolution(solutionItemId, authentication) {
|
|
459
459
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
@@ -470,7 +470,7 @@ exports.getItemsRelatedToASolution = getItemsRelatedToASolution;
|
|
|
470
470
|
* in the item's base section
|
|
471
471
|
* @param isGroup Switch indicating if the item is a group
|
|
472
472
|
* @param authentication Credentials for the request to AGO
|
|
473
|
-
* @
|
|
473
|
+
* @returns Promise that will resolve with an image Blob or an AGO-style JSON failure response
|
|
474
474
|
*/
|
|
475
475
|
function getItemThumbnail(itemId, thumbnailUrlPart, isGroup, authentication) {
|
|
476
476
|
return new Promise((resolve, reject) => {
|
|
@@ -491,7 +491,7 @@ exports.getItemThumbnail = getItemThumbnail;
|
|
|
491
491
|
* in the item's base section
|
|
492
492
|
* @param isGroup Switch indicating if the item is a group
|
|
493
493
|
* @param authentication Credentials for the request to AGO
|
|
494
|
-
* @
|
|
494
|
+
* @returns Promise that will resolve with an image Blob or an AGO-style JSON failure response
|
|
495
495
|
*/
|
|
496
496
|
function getItemThumbnailAsFile(itemId, thumbnailUrlPart, isGroup, authentication) {
|
|
497
497
|
return new Promise((resolve, reject) => {
|
|
@@ -515,7 +515,7 @@ exports.getItemThumbnailAsFile = getItemThumbnailAsFile;
|
|
|
515
515
|
* in the item's base section
|
|
516
516
|
* @param isGroup Switch indicating if the item is a group
|
|
517
517
|
* @param authentication Credentials for the request to AGO
|
|
518
|
-
* @
|
|
518
|
+
* @returns URL string
|
|
519
519
|
*/
|
|
520
520
|
function getItemThumbnailUrl(itemId, thumbnailUrlPart, isGroup, authentication) {
|
|
521
521
|
return ((0, generalHelpers_1.checkUrlPathTermination)(getPortalSharingUrlFromAuth(authentication)) +
|
|
@@ -530,7 +530,7 @@ exports.getItemThumbnailUrl = getItemThumbnailUrl;
|
|
|
530
530
|
*
|
|
531
531
|
* @param url Address of JSON
|
|
532
532
|
* @param authentication Credentials for the request
|
|
533
|
-
* @
|
|
533
|
+
* @returns Promise that will resolve with JSON
|
|
534
534
|
*/
|
|
535
535
|
function getJson(url, authentication) {
|
|
536
536
|
// Get the blob from the URL
|
|
@@ -578,7 +578,7 @@ exports.getPortalUrlFromAuth = getPortalUrlFromAuth;
|
|
|
578
578
|
*
|
|
579
579
|
* @param itemId Id of an AGO item to query
|
|
580
580
|
* @param authentication Credentials for the request
|
|
581
|
-
* @
|
|
581
|
+
* @returns Promise resolving to a list of Solution item ids
|
|
582
582
|
*/
|
|
583
583
|
function getSolutionsRelatedToAnItem(itemId, authentication) {
|
|
584
584
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
@@ -598,9 +598,9 @@ exports.getThumbnailFile = getThumbnailFile;
|
|
|
598
598
|
* Fixes the types of Blobs incorrectly typed as text/plain.
|
|
599
599
|
*
|
|
600
600
|
* @param blob Blob to check
|
|
601
|
-
* @
|
|
601
|
+
* @returns Promise resolving to original Blob, unless it's originally typed as text/plain but is
|
|
602
602
|
* really JSON, ZIP, or XML
|
|
603
|
-
* @
|
|
603
|
+
* @private
|
|
604
604
|
*/
|
|
605
605
|
function _fixTextBlobType(blob) {
|
|
606
606
|
return new Promise((resolve, reject) => {
|
|
@@ -654,8 +654,8 @@ exports._fixTextBlobType = _fixTextBlobType;
|
|
|
654
654
|
* @param groupId Id of a group whose contents are sought
|
|
655
655
|
* @param pagingParams Structure with start and num properties for the tranche to fetch
|
|
656
656
|
* @param authentication Credentials for the request to AGO
|
|
657
|
-
* @
|
|
658
|
-
* @
|
|
657
|
+
* @returns A promise that will resolve with list of dependent ids or an empty list
|
|
658
|
+
* @private
|
|
659
659
|
*/
|
|
660
660
|
function _getGroupContentsTranche(groupId, pagingParams, authentication) {
|
|
661
661
|
return new Promise((resolve, reject) => {
|
|
@@ -693,8 +693,8 @@ exports._getGroupContentsTranche = _getGroupContentsTranche;
|
|
|
693
693
|
* @param itemId Id of an item whose resources are sought
|
|
694
694
|
* @param pagingParams Structure with start and num properties for the tranche to fetch
|
|
695
695
|
* @param authentication Credentials for the request to AGO
|
|
696
|
-
* @
|
|
697
|
-
* @
|
|
696
|
+
* @returns Promise that will resolve with a list of File promises or an AGO-style JSON failure response
|
|
697
|
+
* @private
|
|
698
698
|
*/
|
|
699
699
|
function _getItemResourcesTranche(itemId, pagingParams, authentication) {
|
|
700
700
|
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;
|
|
@@ -30,31 +30,31 @@ const generalHelpers_1 = require("./generalHelpers");
|
|
|
30
30
|
* itself; name has to be acceptable to AGOL, otherwise it discards the URL, so substitution must be
|
|
31
31
|
* made before attempting to create the item.
|
|
32
32
|
*
|
|
33
|
-
* @
|
|
33
|
+
* @private
|
|
34
34
|
*/
|
|
35
35
|
exports.SERVER_NAME = "portalBaseUrl";
|
|
36
36
|
/**
|
|
37
37
|
* A parameterized geometry server name
|
|
38
38
|
*
|
|
39
|
-
* @
|
|
39
|
+
* @private
|
|
40
40
|
*/
|
|
41
41
|
exports.GEOMETRY_SERVER_NAME = "organization.helperServices.geometry.url";
|
|
42
42
|
/**
|
|
43
43
|
* A parameterized geocode server name
|
|
44
44
|
*
|
|
45
|
-
* @
|
|
45
|
+
* @private
|
|
46
46
|
*/
|
|
47
47
|
exports.GEOCODE_SERVER_NAME = "organization.helperServices.geocode:getDefaultLocatorURL";
|
|
48
48
|
/**
|
|
49
49
|
* A parameterized network analyst server name
|
|
50
50
|
*
|
|
51
|
-
* @
|
|
51
|
+
* @private
|
|
52
52
|
*/
|
|
53
53
|
exports.NA_SERVER_NAME = "organization.helperServices.route.url";
|
|
54
54
|
/**
|
|
55
55
|
* A parameterized network analyst server name
|
|
56
56
|
*
|
|
57
|
-
* @
|
|
57
|
+
* @private
|
|
58
58
|
*/
|
|
59
59
|
exports.PRINT_SERVER_NAME = "organization.helperServices.printTask.url";
|
|
60
60
|
exports.TRANSFORMS = {
|
|
@@ -68,7 +68,7 @@ exports.TRANSFORMS = {
|
|
|
68
68
|
* Wraps double brackets around the supplied term.
|
|
69
69
|
*
|
|
70
70
|
* @param term Term to be wrapped, e.g., SERVER_NAME's "portalBaseUrl"
|
|
71
|
-
* @
|
|
71
|
+
* @returns Wrapped term, e.g., "{{portalBaseUrl}}"
|
|
72
72
|
*/
|
|
73
73
|
function placeholder(term) {
|
|
74
74
|
return "{{" + term + "}}";
|
|
@@ -120,7 +120,7 @@ exports.createInitializedItemTemplate = createInitializedItemTemplate;
|
|
|
120
120
|
*
|
|
121
121
|
* @param id AGO id of item
|
|
122
122
|
* @param type AGO item type; defaults to ""
|
|
123
|
-
* @
|
|
123
|
+
* @returns Empty template containing supplied id, optional type, and a key created using the function createShortId()
|
|
124
124
|
*/
|
|
125
125
|
function createPlaceholderTemplate(id, type = "") {
|
|
126
126
|
return {
|
|
@@ -144,7 +144,7 @@ exports.createPlaceholderTemplate = createPlaceholderTemplate;
|
|
|
144
144
|
* Extracts the version of a solution from its data section.
|
|
145
145
|
*
|
|
146
146
|
* @param itemData Data section of the solution as JSON
|
|
147
|
-
* @
|
|
147
|
+
* @returns Zero-based version number
|
|
148
148
|
*/
|
|
149
149
|
function extractSolutionVersion(itemData) {
|
|
150
150
|
let version = (0, generalHelpers_1.getProp)(itemData, "metadata.version");
|
|
@@ -163,8 +163,8 @@ exports.extractSolutionVersion = extractSolutionVersion;
|
|
|
163
163
|
*
|
|
164
164
|
* @param templates A collection of AGO item templates to search
|
|
165
165
|
* @param id AGO id of template to find
|
|
166
|
-
* @
|
|
167
|
-
* @
|
|
166
|
+
* @returns Offset of of matching template or -1 if not found
|
|
167
|
+
* @private
|
|
168
168
|
*/
|
|
169
169
|
function findTemplateIndexInList(templates, id) {
|
|
170
170
|
const baseId = id;
|
|
@@ -178,7 +178,7 @@ exports.findTemplateIndexInList = findTemplateIndexInList;
|
|
|
178
178
|
*
|
|
179
179
|
* @param templates A collection of AGO item templates to search
|
|
180
180
|
* @param id AGO id of template to find
|
|
181
|
-
* @
|
|
181
|
+
* @returns Matching template or null
|
|
182
182
|
*/
|
|
183
183
|
function findTemplateInList(templates, id) {
|
|
184
184
|
const iTemplate = findTemplateIndexInList(templates, id);
|
|
@@ -208,7 +208,7 @@ exports.getDefaultExtent = getDefaultExtent;
|
|
|
208
208
|
*
|
|
209
209
|
* @param templates A collection of AGO item templates
|
|
210
210
|
* @param id Id of item in templates list to find; if not found, no replacement is done
|
|
211
|
-
* @
|
|
211
|
+
* @private
|
|
212
212
|
*/
|
|
213
213
|
function removeTemplate(templates, id) {
|
|
214
214
|
const i = findTemplateIndexInList(templates, id);
|
|
@@ -222,7 +222,7 @@ exports.removeTemplate = removeTemplate;
|
|
|
222
222
|
*
|
|
223
223
|
* @param template Template to check for replacements; template is modified by this function
|
|
224
224
|
* @param replacements Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
225
|
-
* @
|
|
225
|
+
* @returns template is returned after updating it
|
|
226
226
|
*/
|
|
227
227
|
function replaceInTemplate(template, replacements) {
|
|
228
228
|
return (0, adlib_1.adlib)(template, replacements, exports.TRANSFORMS);
|
|
@@ -234,8 +234,8 @@ exports.replaceInTemplate = replaceInTemplate;
|
|
|
234
234
|
* @param templates A collection of AGO item templates
|
|
235
235
|
* @param id Id of item in templates list to find; if not found, no replacement is done
|
|
236
236
|
* @param template Replacement template
|
|
237
|
-
* @
|
|
238
|
-
* @
|
|
237
|
+
* @returns True if replacement was made
|
|
238
|
+
* @private
|
|
239
239
|
*/
|
|
240
240
|
function replaceTemplate(templates, id, template) {
|
|
241
241
|
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;
|
|
@@ -30,7 +30,7 @@ const templatization_1 = require("./templatization");
|
|
|
30
30
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
31
31
|
* @param templates the list of IItemTemplates from the solution
|
|
32
32
|
*
|
|
33
|
-
* @
|
|
33
|
+
* @private
|
|
34
34
|
*/
|
|
35
35
|
function setLocationTrackingEnabled(portalResponse, userResponse, templateDictionary, templates) {
|
|
36
36
|
// set locationTracking...contains service url and id
|
|
@@ -59,7 +59,7 @@ exports.setLocationTrackingEnabled = setLocationTrackingEnabled;
|
|
|
59
59
|
* @param templates the list of IItemTemplates from the solution
|
|
60
60
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
61
61
|
*
|
|
62
|
-
* @
|
|
62
|
+
* @private
|
|
63
63
|
*/
|
|
64
64
|
function _validateTrackingTemplates(templates, templateDictionary) {
|
|
65
65
|
/* istanbul ignore else */
|
|
@@ -83,7 +83,7 @@ exports._validateTrackingTemplates = _validateTrackingTemplates;
|
|
|
83
83
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
84
84
|
* @param authentication Credentials for the requests
|
|
85
85
|
*
|
|
86
|
-
* @
|
|
86
|
+
* @private
|
|
87
87
|
*/
|
|
88
88
|
function getTackingServiceOwner(templateDictionary, authentication) {
|
|
89
89
|
if (templateDictionary.locationTrackingEnabled) {
|
|
@@ -107,7 +107,7 @@ exports.getTackingServiceOwner = getTackingServiceOwner;
|
|
|
107
107
|
* @param itemTemplate the template to evaluate
|
|
108
108
|
* @param itemUpdate the item update to evaluate
|
|
109
109
|
*
|
|
110
|
-
* @
|
|
110
|
+
* @private
|
|
111
111
|
*/
|
|
112
112
|
function isTrackingViewTemplate(itemTemplate, itemUpdate) {
|
|
113
113
|
const typeKeywords = (0, generalHelpers_1.getProp)(itemTemplate, "item.typeKeywords") ||
|
|
@@ -122,7 +122,7 @@ exports.isTrackingViewTemplate = isTrackingViewTemplate;
|
|
|
122
122
|
*
|
|
123
123
|
* @param itemTemplate the template to evaluate
|
|
124
124
|
*
|
|
125
|
-
* @
|
|
125
|
+
* @private
|
|
126
126
|
*/
|
|
127
127
|
function isTrackingViewGroup(itemTemplate) {
|
|
128
128
|
const typeKeywords = (0, generalHelpers_1.getProp)(itemTemplate, "item.tags");
|
|
@@ -135,7 +135,7 @@ exports.isTrackingViewGroup = isTrackingViewGroup;
|
|
|
135
135
|
*
|
|
136
136
|
* @param itemTemplate Template for feature service item
|
|
137
137
|
*
|
|
138
|
-
* @
|
|
138
|
+
* @private
|
|
139
139
|
*/
|
|
140
140
|
function templatizeTracker(itemTemplate) {
|
|
141
141
|
/* istanbul ignore else */
|
|
@@ -163,7 +163,7 @@ exports.templatizeTracker = templatizeTracker;
|
|
|
163
163
|
* @param groupId the id of the associated tracker group
|
|
164
164
|
* @param groupIdVar the variable to replace the existing name with
|
|
165
165
|
*
|
|
166
|
-
* @
|
|
166
|
+
* @private
|
|
167
167
|
*/
|
|
168
168
|
function _setName(itemTemplate, path, groupId, groupIdVar) {
|
|
169
169
|
const name = (0, generalHelpers_1.getProp)(itemTemplate, path);
|
|
@@ -181,7 +181,7 @@ exports._setName = _setName;
|
|
|
181
181
|
* @param obj the object that stores the serviceItemId
|
|
182
182
|
* @param path the path to the property that stores the serviceItemId
|
|
183
183
|
*
|
|
184
|
-
* @
|
|
184
|
+
* @private
|
|
185
185
|
*/
|
|
186
186
|
function templatizeServiceItemId(obj, path) {
|
|
187
187
|
const serviceItemId = (0, generalHelpers_1.getProp)(obj, path);
|
|
@@ -198,7 +198,7 @@ exports.templatizeServiceItemId = templatizeServiceItemId;
|
|
|
198
198
|
* @param options the current request options to update
|
|
199
199
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
200
200
|
*
|
|
201
|
-
* @
|
|
201
|
+
* @private
|
|
202
202
|
*/
|
|
203
203
|
function setTrackingOptions(itemTemplate, options, templateDictionary) {
|
|
204
204
|
/* 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;
|