@esri/solution-common 6.1.3 → 6.1.4

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.
Files changed (404) hide show
  1. package/dist/cjs/arcgisRestJS.d.ts +63 -0
  2. package/dist/cjs/arcgisRestJS.js +158 -0
  3. package/dist/cjs/arcgisRestJS.js.map +1 -0
  4. package/dist/cjs/completeItem.d.ts +30 -0
  5. package/dist/cjs/completeItem.js +72 -0
  6. package/dist/cjs/completeItem.js.map +1 -0
  7. package/dist/cjs/create-hub-request-options.d.ts +29 -0
  8. package/dist/cjs/create-hub-request-options.js +64 -0
  9. package/dist/cjs/create-hub-request-options.js.map +1 -0
  10. package/dist/cjs/deleteHelpers/deleteEmptyGroups.d.ts +24 -0
  11. package/dist/cjs/deleteHelpers/deleteEmptyGroups.js +42 -0
  12. package/dist/cjs/deleteHelpers/deleteEmptyGroups.js.map +1 -0
  13. package/dist/cjs/deleteHelpers/deleteGroupIfEmpty.d.ts +27 -0
  14. package/dist/cjs/deleteHelpers/deleteGroupIfEmpty.js +99 -0
  15. package/dist/cjs/deleteHelpers/deleteGroupIfEmpty.js.map +1 -0
  16. package/dist/cjs/deleteHelpers/deleteSolutionContents.d.ts +39 -0
  17. package/dist/cjs/deleteHelpers/deleteSolutionContents.js +127 -0
  18. package/dist/cjs/deleteHelpers/deleteSolutionContents.js.map +1 -0
  19. package/dist/cjs/deleteHelpers/deleteSolutionFolder.d.ts +29 -0
  20. package/dist/cjs/deleteHelpers/deleteSolutionFolder.js +81 -0
  21. package/dist/cjs/deleteHelpers/deleteSolutionFolder.js.map +1 -0
  22. package/dist/cjs/deleteHelpers/deleteSolutionItem.d.ts +31 -0
  23. package/dist/cjs/deleteHelpers/deleteSolutionItem.js +52 -0
  24. package/dist/cjs/deleteHelpers/deleteSolutionItem.js.map +1 -0
  25. package/dist/cjs/deleteHelpers/index.d.ts +22 -0
  26. package/dist/cjs/deleteHelpers/index.js +26 -0
  27. package/dist/cjs/deleteHelpers/index.js.map +1 -0
  28. package/dist/cjs/deleteHelpers/reconstructBuildOrderIds.d.ts +27 -0
  29. package/dist/cjs/deleteHelpers/reconstructBuildOrderIds.js +34 -0
  30. package/dist/cjs/deleteHelpers/reconstructBuildOrderIds.js.map +1 -0
  31. package/dist/cjs/deleteHelpers/removeItems.d.ts +35 -0
  32. package/dist/cjs/deleteHelpers/removeItems.js +116 -0
  33. package/dist/cjs/deleteHelpers/removeItems.js.map +1 -0
  34. package/dist/cjs/deleteHelpers/reportProgress.d.ts +27 -0
  35. package/dist/cjs/deleteHelpers/reportProgress.js +46 -0
  36. package/dist/cjs/deleteHelpers/reportProgress.js.map +1 -0
  37. package/dist/cjs/deleteSolution.d.ts +56 -0
  38. package/dist/cjs/deleteSolution.js +107 -0
  39. package/dist/cjs/deleteSolution.js.map +1 -0
  40. package/dist/cjs/dependencies.d.ts +26 -0
  41. package/dist/cjs/dependencies.js +171 -0
  42. package/dist/cjs/dependencies.js.map +1 -0
  43. package/dist/cjs/featureServiceHelpers.d.ts +847 -0
  44. package/dist/cjs/featureServiceHelpers.js +2553 -0
  45. package/dist/cjs/featureServiceHelpers.js.map +1 -0
  46. package/dist/cjs/formHelpers.d.ts +26 -0
  47. package/dist/cjs/formHelpers.js +40 -0
  48. package/dist/cjs/formHelpers.js.map +1 -0
  49. package/dist/cjs/generalHelpers.d.ts +447 -0
  50. package/dist/cjs/generalHelpers.js +959 -0
  51. package/dist/cjs/generalHelpers.js.map +1 -0
  52. package/dist/cjs/get-subscription-info.d.ts +27 -0
  53. package/dist/cjs/get-subscription-info.js +38 -0
  54. package/dist/cjs/get-subscription-info.js.map +1 -0
  55. package/dist/cjs/getDeletableSolutionInfo.d.ts +30 -0
  56. package/dist/cjs/getDeletableSolutionInfo.js +53 -0
  57. package/dist/cjs/getDeletableSolutionInfo.js.map +1 -0
  58. package/dist/cjs/getItemTypeAbbrev.d.ts +19 -0
  59. package/dist/cjs/getItemTypeAbbrev.js +186 -0
  60. package/dist/cjs/getItemTypeAbbrev.js.map +1 -0
  61. package/dist/cjs/getSolutionSummary.d.ts +28 -0
  62. package/dist/cjs/getSolutionSummary.js +100 -0
  63. package/dist/cjs/getSolutionSummary.js.map +1 -0
  64. package/dist/cjs/index.d.ts +49 -0
  65. package/dist/cjs/index.js +53 -0
  66. package/dist/cjs/index.js.map +1 -0
  67. package/dist/cjs/interfaces.d.ts +1446 -0
  68. package/dist/cjs/interfaces.js +72 -0
  69. package/dist/cjs/interfaces.js.map +1 -0
  70. package/dist/cjs/item-reuse.d.ts +140 -0
  71. package/dist/cjs/item-reuse.js +176 -0
  72. package/dist/cjs/item-reuse.js.map +1 -0
  73. package/dist/cjs/libConnectors.d.ts +73 -0
  74. package/dist/cjs/libConnectors.js +115 -0
  75. package/dist/cjs/libConnectors.js.map +1 -0
  76. package/dist/cjs/migrations/apply-schema.d.ts +24 -0
  77. package/dist/cjs/migrations/apply-schema.js +36 -0
  78. package/dist/cjs/migrations/apply-schema.js.map +1 -0
  79. package/dist/cjs/migrations/is-legacy-solution.d.ts +24 -0
  80. package/dist/cjs/migrations/is-legacy-solution.js +39 -0
  81. package/dist/cjs/migrations/is-legacy-solution.js.map +1 -0
  82. package/dist/cjs/migrations/upgrade-three-dot-one.d.ts +26 -0
  83. package/dist/cjs/migrations/upgrade-three-dot-one.js +48 -0
  84. package/dist/cjs/migrations/upgrade-three-dot-one.js.map +1 -0
  85. package/dist/cjs/migrations/upgrade-three-dot-zero.d.ts +27 -0
  86. package/dist/cjs/migrations/upgrade-three-dot-zero.js +43 -0
  87. package/dist/cjs/migrations/upgrade-three-dot-zero.js.map +1 -0
  88. package/dist/cjs/migrations/upgrade-two-dot-five.d.ts +24 -0
  89. package/dist/cjs/migrations/upgrade-two-dot-five.js +73 -0
  90. package/dist/cjs/migrations/upgrade-two-dot-five.js.map +1 -0
  91. package/dist/cjs/migrations/upgrade-two-dot-four.d.ts +24 -0
  92. package/dist/cjs/migrations/upgrade-two-dot-four.js +72 -0
  93. package/dist/cjs/migrations/upgrade-two-dot-four.js.map +1 -0
  94. package/dist/cjs/migrations/upgrade-two-dot-one.d.ts +7 -0
  95. package/dist/cjs/migrations/upgrade-two-dot-one.js +39 -0
  96. package/dist/cjs/migrations/upgrade-two-dot-one.js.map +1 -0
  97. package/dist/cjs/migrations/upgrade-two-dot-seven.d.ts +23 -0
  98. package/dist/cjs/migrations/upgrade-two-dot-seven.js +58 -0
  99. package/dist/cjs/migrations/upgrade-two-dot-seven.js.map +1 -0
  100. package/dist/cjs/migrations/upgrade-two-dot-six.d.ts +27 -0
  101. package/dist/cjs/migrations/upgrade-two-dot-six.js +61 -0
  102. package/dist/cjs/migrations/upgrade-two-dot-six.js.map +1 -0
  103. package/dist/cjs/migrations/upgrade-two-dot-three.d.ts +23 -0
  104. package/dist/cjs/migrations/upgrade-two-dot-three.js +55 -0
  105. package/dist/cjs/migrations/upgrade-two-dot-three.js.map +1 -0
  106. package/dist/cjs/migrations/upgrade-two-dot-two.d.ts +23 -0
  107. package/dist/cjs/migrations/upgrade-two-dot-two.js +58 -0
  108. package/dist/cjs/migrations/upgrade-two-dot-two.js.map +1 -0
  109. package/dist/cjs/migrations/upgrade-two-dot-zero.d.ts +44 -0
  110. package/dist/cjs/migrations/upgrade-two-dot-zero.js +95 -0
  111. package/dist/cjs/migrations/upgrade-two-dot-zero.js.map +1 -0
  112. package/dist/cjs/migrator.d.ts +25 -0
  113. package/dist/cjs/migrator.js +75 -0
  114. package/dist/cjs/migrator.js.map +1 -0
  115. package/dist/cjs/resourceHelpers.d.ts +192 -0
  116. package/dist/cjs/resourceHelpers.js +380 -0
  117. package/dist/cjs/resourceHelpers.js.map +1 -0
  118. package/dist/cjs/resources/add-resource.d.ts +38 -0
  119. package/dist/cjs/resources/add-resource.js +84 -0
  120. package/dist/cjs/resources/add-resource.js.map +1 -0
  121. package/dist/cjs/resources/addMetadataFromBlob.d.ts +25 -0
  122. package/dist/cjs/resources/addMetadataFromBlob.js +43 -0
  123. package/dist/cjs/resources/addMetadataFromBlob.js.map +1 -0
  124. package/dist/cjs/resources/convert-item-resource-to-storage-resource.d.ts +32 -0
  125. package/dist/cjs/resources/convert-item-resource-to-storage-resource.js +70 -0
  126. package/dist/cjs/resources/convert-item-resource-to-storage-resource.js.map +1 -0
  127. package/dist/cjs/resources/convert-storage-resource-to-item-resource.d.ts +29 -0
  128. package/dist/cjs/resources/convert-storage-resource-to-item-resource.js +70 -0
  129. package/dist/cjs/resources/convert-storage-resource-to-item-resource.js.map +1 -0
  130. package/dist/cjs/resources/copyAssociatedFiles.d.ts +79 -0
  131. package/dist/cjs/resources/copyAssociatedFiles.js +348 -0
  132. package/dist/cjs/resources/copyAssociatedFiles.js.map +1 -0
  133. package/dist/cjs/resources/copyDataIntoItem.d.ts +34 -0
  134. package/dist/cjs/resources/copyDataIntoItem.js +45 -0
  135. package/dist/cjs/resources/copyDataIntoItem.js.map +1 -0
  136. package/dist/cjs/resources/copyMetadataIntoItem.d.ts +27 -0
  137. package/dist/cjs/resources/copyMetadataIntoItem.js +44 -0
  138. package/dist/cjs/resources/copyMetadataIntoItem.js.map +1 -0
  139. package/dist/cjs/resources/copyResourceIntoZip.d.ts +34 -0
  140. package/dist/cjs/resources/copyResourceIntoZip.js +74 -0
  141. package/dist/cjs/resources/copyResourceIntoZip.js.map +1 -0
  142. package/dist/cjs/resources/copyZipIntoItem.d.ts +26 -0
  143. package/dist/cjs/resources/copyZipIntoItem.js +53 -0
  144. package/dist/cjs/resources/copyZipIntoItem.js.map +1 -0
  145. package/dist/cjs/resources/createCopyResults.d.ts +25 -0
  146. package/dist/cjs/resources/createCopyResults.js +36 -0
  147. package/dist/cjs/resources/createCopyResults.js.map +1 -0
  148. package/dist/cjs/resources/get-blob.d.ts +25 -0
  149. package/dist/cjs/resources/get-blob.js +42 -0
  150. package/dist/cjs/resources/get-blob.js.map +1 -0
  151. package/dist/cjs/resources/getItemResourcesFilesFromPaths.d.ts +25 -0
  152. package/dist/cjs/resources/getItemResourcesFilesFromPaths.js +49 -0
  153. package/dist/cjs/resources/getItemResourcesFilesFromPaths.js.map +1 -0
  154. package/dist/cjs/resources/getItemResourcesPaths.d.ts +27 -0
  155. package/dist/cjs/resources/getItemResourcesPaths.js +80 -0
  156. package/dist/cjs/resources/getItemResourcesPaths.js.map +1 -0
  157. package/dist/cjs/resources/index.d.ts +30 -0
  158. package/dist/cjs/resources/index.js +34 -0
  159. package/dist/cjs/resources/index.js.map +1 -0
  160. package/dist/cjs/resources/solution-resource.d.ts +35 -0
  161. package/dist/cjs/resources/solution-resource.js +31 -0
  162. package/dist/cjs/resources/solution-resource.js.map +1 -0
  163. package/dist/cjs/resources/transform-resource-paths-to-solution-resources.d.ts +56 -0
  164. package/dist/cjs/resources/transform-resource-paths-to-solution-resources.js +140 -0
  165. package/dist/cjs/resources/transform-resource-paths-to-solution-resources.js.map +1 -0
  166. package/dist/cjs/resources/update-resource.d.ts +27 -0
  167. package/dist/cjs/resources/update-resource.js +52 -0
  168. package/dist/cjs/resources/update-resource.js.map +1 -0
  169. package/dist/cjs/restHelpers.d.ts +634 -0
  170. package/dist/cjs/restHelpers.js +2008 -0
  171. package/dist/cjs/restHelpers.js.map +1 -0
  172. package/dist/cjs/restHelpersGet.d.ts +303 -0
  173. package/dist/cjs/restHelpersGet.js +835 -0
  174. package/dist/cjs/restHelpersGet.js.map +1 -0
  175. package/dist/cjs/sharing/index.d.ts +16 -0
  176. package/dist/cjs/sharing/index.js +20 -0
  177. package/dist/cjs/sharing/index.js.map +1 -0
  178. package/dist/cjs/sharing/share-item-to-groups.d.ts +26 -0
  179. package/dist/cjs/sharing/share-item-to-groups.js +44 -0
  180. package/dist/cjs/sharing/share-item-to-groups.js.map +1 -0
  181. package/dist/cjs/templatization.d.ts +139 -0
  182. package/dist/cjs/templatization.js +311 -0
  183. package/dist/cjs/templatization.js.map +1 -0
  184. package/dist/cjs/trackingHelpers.d.ts +115 -0
  185. package/dist/cjs/trackingHelpers.js +212 -0
  186. package/dist/cjs/trackingHelpers.js.map +1 -0
  187. package/dist/cjs/velocityHelpers.d.ts +68 -0
  188. package/dist/cjs/velocityHelpers.js +151 -0
  189. package/dist/cjs/velocityHelpers.js.map +1 -0
  190. package/dist/cjs/webtoolHelpers.d.ts +57 -0
  191. package/dist/cjs/webtoolHelpers.js +102 -0
  192. package/dist/cjs/webtoolHelpers.js.map +1 -0
  193. package/dist/cjs/workflowHelpers.d.ts +112 -0
  194. package/dist/cjs/workflowHelpers.js +284 -0
  195. package/dist/cjs/workflowHelpers.js.map +1 -0
  196. package/dist/cjs/workforceHelpers.d.ts +121 -0
  197. package/dist/cjs/workforceHelpers.js +720 -0
  198. package/dist/cjs/workforceHelpers.js.map +1 -0
  199. package/dist/cjs/zip-utils.d.ts +85 -0
  200. package/dist/cjs/zip-utils.js +154 -0
  201. package/dist/cjs/zip-utils.js.map +1 -0
  202. package/dist/esm/arcgisRestJS.d.ts +63 -0
  203. package/dist/esm/arcgisRestJS.js +110 -0
  204. package/dist/esm/arcgisRestJS.js.map +1 -0
  205. package/dist/esm/completeItem.d.ts +30 -0
  206. package/dist/esm/completeItem.js +67 -0
  207. package/dist/esm/completeItem.js.map +1 -0
  208. package/dist/esm/create-hub-request-options.d.ts +29 -0
  209. package/dist/esm/create-hub-request-options.js +60 -0
  210. package/dist/esm/create-hub-request-options.js.map +1 -0
  211. package/dist/esm/deleteHelpers/deleteEmptyGroups.d.ts +24 -0
  212. package/dist/esm/deleteHelpers/deleteEmptyGroups.js +38 -0
  213. package/dist/esm/deleteHelpers/deleteEmptyGroups.js.map +1 -0
  214. package/dist/esm/deleteHelpers/deleteGroupIfEmpty.d.ts +27 -0
  215. package/dist/esm/deleteHelpers/deleteGroupIfEmpty.js +95 -0
  216. package/dist/esm/deleteHelpers/deleteGroupIfEmpty.js.map +1 -0
  217. package/dist/esm/deleteHelpers/deleteSolutionContents.d.ts +39 -0
  218. package/dist/esm/deleteHelpers/deleteSolutionContents.js +122 -0
  219. package/dist/esm/deleteHelpers/deleteSolutionContents.js.map +1 -0
  220. package/dist/esm/deleteHelpers/deleteSolutionFolder.d.ts +29 -0
  221. package/dist/esm/deleteHelpers/deleteSolutionFolder.js +77 -0
  222. package/dist/esm/deleteHelpers/deleteSolutionFolder.js.map +1 -0
  223. package/dist/esm/deleteHelpers/deleteSolutionItem.d.ts +31 -0
  224. package/dist/esm/deleteHelpers/deleteSolutionItem.js +48 -0
  225. package/dist/esm/deleteHelpers/deleteSolutionItem.js.map +1 -0
  226. package/dist/esm/deleteHelpers/index.d.ts +22 -0
  227. package/dist/esm/deleteHelpers/index.js +23 -0
  228. package/dist/esm/deleteHelpers/index.js.map +1 -0
  229. package/dist/esm/deleteHelpers/reconstructBuildOrderIds.d.ts +27 -0
  230. package/dist/esm/deleteHelpers/reconstructBuildOrderIds.js +29 -0
  231. package/dist/esm/deleteHelpers/reconstructBuildOrderIds.js.map +1 -0
  232. package/dist/esm/deleteHelpers/removeItems.d.ts +35 -0
  233. package/dist/esm/deleteHelpers/removeItems.js +111 -0
  234. package/dist/esm/deleteHelpers/removeItems.js.map +1 -0
  235. package/dist/esm/deleteHelpers/reportProgress.d.ts +27 -0
  236. package/dist/esm/deleteHelpers/reportProgress.js +42 -0
  237. package/dist/esm/deleteHelpers/reportProgress.js.map +1 -0
  238. package/dist/esm/deleteSolution.d.ts +56 -0
  239. package/dist/esm/deleteSolution.js +101 -0
  240. package/dist/esm/deleteSolution.js.map +1 -0
  241. package/dist/esm/dependencies.d.ts +26 -0
  242. package/dist/esm/dependencies.js +167 -0
  243. package/dist/esm/dependencies.js.map +1 -0
  244. package/dist/esm/featureServiceHelpers.d.ts +847 -0
  245. package/dist/esm/featureServiceHelpers.js +2466 -0
  246. package/dist/esm/featureServiceHelpers.js.map +1 -0
  247. package/dist/esm/formHelpers.d.ts +26 -0
  248. package/dist/esm/formHelpers.js +35 -0
  249. package/dist/esm/formHelpers.js.map +1 -0
  250. package/dist/esm/generalHelpers.d.ts +447 -0
  251. package/dist/esm/generalHelpers.js +903 -0
  252. package/dist/esm/generalHelpers.js.map +1 -0
  253. package/dist/esm/get-subscription-info.d.ts +27 -0
  254. package/dist/esm/get-subscription-info.js +34 -0
  255. package/dist/esm/get-subscription-info.js.map +1 -0
  256. package/dist/esm/getDeletableSolutionInfo.d.ts +30 -0
  257. package/dist/esm/getDeletableSolutionInfo.js +48 -0
  258. package/dist/esm/getDeletableSolutionInfo.js.map +1 -0
  259. package/dist/esm/getItemTypeAbbrev.d.ts +19 -0
  260. package/dist/esm/getItemTypeAbbrev.js +182 -0
  261. package/dist/esm/getItemTypeAbbrev.js.map +1 -0
  262. package/dist/esm/getSolutionSummary.d.ts +28 -0
  263. package/dist/esm/getSolutionSummary.js +95 -0
  264. package/dist/esm/getSolutionSummary.js.map +1 -0
  265. package/dist/esm/index.d.ts +49 -0
  266. package/dist/esm/index.js +50 -0
  267. package/dist/esm/index.js.map +1 -0
  268. package/dist/esm/interfaces.d.ts +1446 -0
  269. package/dist/esm/interfaces.js +69 -0
  270. package/dist/esm/interfaces.js.map +1 -0
  271. package/dist/esm/item-reuse.d.ts +140 -0
  272. package/dist/esm/item-reuse.js +167 -0
  273. package/dist/esm/item-reuse.js.map +1 -0
  274. package/dist/esm/libConnectors.d.ts +73 -0
  275. package/dist/esm/libConnectors.js +105 -0
  276. package/dist/esm/libConnectors.js.map +1 -0
  277. package/dist/esm/migrations/apply-schema.d.ts +24 -0
  278. package/dist/esm/migrations/apply-schema.js +32 -0
  279. package/dist/esm/migrations/apply-schema.js.map +1 -0
  280. package/dist/esm/migrations/is-legacy-solution.d.ts +24 -0
  281. package/dist/esm/migrations/is-legacy-solution.js +35 -0
  282. package/dist/esm/migrations/is-legacy-solution.js.map +1 -0
  283. package/dist/esm/migrations/upgrade-three-dot-one.d.ts +26 -0
  284. package/dist/esm/migrations/upgrade-three-dot-one.js +44 -0
  285. package/dist/esm/migrations/upgrade-three-dot-one.js.map +1 -0
  286. package/dist/esm/migrations/upgrade-three-dot-zero.d.ts +27 -0
  287. package/dist/esm/migrations/upgrade-three-dot-zero.js +39 -0
  288. package/dist/esm/migrations/upgrade-three-dot-zero.js.map +1 -0
  289. package/dist/esm/migrations/upgrade-two-dot-five.d.ts +24 -0
  290. package/dist/esm/migrations/upgrade-two-dot-five.js +69 -0
  291. package/dist/esm/migrations/upgrade-two-dot-five.js.map +1 -0
  292. package/dist/esm/migrations/upgrade-two-dot-four.d.ts +24 -0
  293. package/dist/esm/migrations/upgrade-two-dot-four.js +68 -0
  294. package/dist/esm/migrations/upgrade-two-dot-four.js.map +1 -0
  295. package/dist/esm/migrations/upgrade-two-dot-one.d.ts +7 -0
  296. package/dist/esm/migrations/upgrade-two-dot-one.js +35 -0
  297. package/dist/esm/migrations/upgrade-two-dot-one.js.map +1 -0
  298. package/dist/esm/migrations/upgrade-two-dot-seven.d.ts +23 -0
  299. package/dist/esm/migrations/upgrade-two-dot-seven.js +54 -0
  300. package/dist/esm/migrations/upgrade-two-dot-seven.js.map +1 -0
  301. package/dist/esm/migrations/upgrade-two-dot-six.d.ts +27 -0
  302. package/dist/esm/migrations/upgrade-two-dot-six.js +57 -0
  303. package/dist/esm/migrations/upgrade-two-dot-six.js.map +1 -0
  304. package/dist/esm/migrations/upgrade-two-dot-three.d.ts +23 -0
  305. package/dist/esm/migrations/upgrade-two-dot-three.js +51 -0
  306. package/dist/esm/migrations/upgrade-two-dot-three.js.map +1 -0
  307. package/dist/esm/migrations/upgrade-two-dot-two.d.ts +23 -0
  308. package/dist/esm/migrations/upgrade-two-dot-two.js +54 -0
  309. package/dist/esm/migrations/upgrade-two-dot-two.js.map +1 -0
  310. package/dist/esm/migrations/upgrade-two-dot-zero.d.ts +44 -0
  311. package/dist/esm/migrations/upgrade-two-dot-zero.js +88 -0
  312. package/dist/esm/migrations/upgrade-two-dot-zero.js.map +1 -0
  313. package/dist/esm/migrator.d.ts +25 -0
  314. package/dist/esm/migrator.js +71 -0
  315. package/dist/esm/migrator.js.map +1 -0
  316. package/dist/esm/resourceHelpers.d.ts +192 -0
  317. package/dist/esm/resourceHelpers.js +361 -0
  318. package/dist/esm/resourceHelpers.js.map +1 -0
  319. package/dist/esm/resources/add-resource.d.ts +38 -0
  320. package/dist/esm/resources/add-resource.js +79 -0
  321. package/dist/esm/resources/add-resource.js.map +1 -0
  322. package/dist/esm/resources/addMetadataFromBlob.d.ts +25 -0
  323. package/dist/esm/resources/addMetadataFromBlob.js +39 -0
  324. package/dist/esm/resources/addMetadataFromBlob.js.map +1 -0
  325. package/dist/esm/resources/convert-item-resource-to-storage-resource.d.ts +32 -0
  326. package/dist/esm/resources/convert-item-resource-to-storage-resource.js +66 -0
  327. package/dist/esm/resources/convert-item-resource-to-storage-resource.js.map +1 -0
  328. package/dist/esm/resources/convert-storage-resource-to-item-resource.d.ts +29 -0
  329. package/dist/esm/resources/convert-storage-resource-to-item-resource.js +66 -0
  330. package/dist/esm/resources/convert-storage-resource-to-item-resource.js.map +1 -0
  331. package/dist/esm/resources/copyAssociatedFiles.d.ts +79 -0
  332. package/dist/esm/resources/copyAssociatedFiles.js +339 -0
  333. package/dist/esm/resources/copyAssociatedFiles.js.map +1 -0
  334. package/dist/esm/resources/copyDataIntoItem.d.ts +34 -0
  335. package/dist/esm/resources/copyDataIntoItem.js +40 -0
  336. package/dist/esm/resources/copyDataIntoItem.js.map +1 -0
  337. package/dist/esm/resources/copyMetadataIntoItem.d.ts +27 -0
  338. package/dist/esm/resources/copyMetadataIntoItem.js +40 -0
  339. package/dist/esm/resources/copyMetadataIntoItem.js.map +1 -0
  340. package/dist/esm/resources/copyResourceIntoZip.d.ts +34 -0
  341. package/dist/esm/resources/copyResourceIntoZip.js +69 -0
  342. package/dist/esm/resources/copyResourceIntoZip.js.map +1 -0
  343. package/dist/esm/resources/copyZipIntoItem.d.ts +26 -0
  344. package/dist/esm/resources/copyZipIntoItem.js +49 -0
  345. package/dist/esm/resources/copyZipIntoItem.js.map +1 -0
  346. package/dist/esm/resources/createCopyResults.d.ts +25 -0
  347. package/dist/esm/resources/createCopyResults.js +32 -0
  348. package/dist/esm/resources/createCopyResults.js.map +1 -0
  349. package/dist/esm/resources/get-blob.d.ts +25 -0
  350. package/dist/esm/resources/get-blob.js +38 -0
  351. package/dist/esm/resources/get-blob.js.map +1 -0
  352. package/dist/esm/resources/getItemResourcesFilesFromPaths.d.ts +25 -0
  353. package/dist/esm/resources/getItemResourcesFilesFromPaths.js +45 -0
  354. package/dist/esm/resources/getItemResourcesFilesFromPaths.js.map +1 -0
  355. package/dist/esm/resources/getItemResourcesPaths.d.ts +27 -0
  356. package/dist/esm/resources/getItemResourcesPaths.js +76 -0
  357. package/dist/esm/resources/getItemResourcesPaths.js.map +1 -0
  358. package/dist/esm/resources/index.d.ts +30 -0
  359. package/dist/esm/resources/index.js +31 -0
  360. package/dist/esm/resources/index.js.map +1 -0
  361. package/dist/esm/resources/solution-resource.d.ts +35 -0
  362. package/dist/esm/resources/solution-resource.js +28 -0
  363. package/dist/esm/resources/solution-resource.js.map +1 -0
  364. package/dist/esm/resources/transform-resource-paths-to-solution-resources.d.ts +56 -0
  365. package/dist/esm/resources/transform-resource-paths-to-solution-resources.js +132 -0
  366. package/dist/esm/resources/transform-resource-paths-to-solution-resources.js.map +1 -0
  367. package/dist/esm/resources/update-resource.d.ts +27 -0
  368. package/dist/esm/resources/update-resource.js +48 -0
  369. package/dist/esm/resources/update-resource.js.map +1 -0
  370. package/dist/esm/restHelpers.d.ts +634 -0
  371. package/dist/esm/restHelpers.js +1943 -0
  372. package/dist/esm/restHelpers.js.map +1 -0
  373. package/dist/esm/restHelpersGet.d.ts +303 -0
  374. package/dist/esm/restHelpersGet.js +793 -0
  375. package/dist/esm/restHelpersGet.js.map +1 -0
  376. package/dist/esm/sharing/index.d.ts +16 -0
  377. package/dist/esm/sharing/index.js +17 -0
  378. package/dist/esm/sharing/index.js.map +1 -0
  379. package/dist/esm/sharing/share-item-to-groups.d.ts +26 -0
  380. package/dist/esm/sharing/share-item-to-groups.js +40 -0
  381. package/dist/esm/sharing/share-item-to-groups.js.map +1 -0
  382. package/dist/esm/templatization.d.ts +139 -0
  383. package/dist/esm/templatization.js +291 -0
  384. package/dist/esm/templatization.js.map +1 -0
  385. package/dist/esm/trackingHelpers.d.ts +115 -0
  386. package/dist/esm/trackingHelpers.js +200 -0
  387. package/dist/esm/trackingHelpers.js.map +1 -0
  388. package/dist/esm/velocityHelpers.d.ts +68 -0
  389. package/dist/esm/velocityHelpers.js +144 -0
  390. package/dist/esm/velocityHelpers.js.map +1 -0
  391. package/dist/esm/webtoolHelpers.d.ts +57 -0
  392. package/dist/esm/webtoolHelpers.js +95 -0
  393. package/dist/esm/webtoolHelpers.js.map +1 -0
  394. package/dist/esm/workflowHelpers.d.ts +112 -0
  395. package/dist/esm/workflowHelpers.js +270 -0
  396. package/dist/esm/workflowHelpers.js.map +1 -0
  397. package/dist/esm/workforceHelpers.d.ts +121 -0
  398. package/dist/esm/workforceHelpers.js +691 -0
  399. package/dist/esm/workforceHelpers.js.map +1 -0
  400. package/dist/esm/zip-utils.d.ts +85 -0
  401. package/dist/esm/zip-utils.js +142 -0
  402. package/dist/esm/zip-utils.js.map +1 -0
  403. package/dist/solution.js_commit.txt +7 -0
  404. package/package.json +2 -2
@@ -0,0 +1,847 @@
1
+ /** @license
2
+ * Copyright 2019 Esri
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * Provides general helper functions.
18
+ *
19
+ * @module featureServiceHelpers
20
+ */
21
+ import { IDefaultSpatialReferenceAndExtent, IDependency, IFeatureServiceProperties, IItemTemplate, INumberValuePair } from "./interfaces";
22
+ import { IQueryRelatedResponse, UserSession } from "./arcgisRestJS";
23
+ /**
24
+ * Get the related records for a feature service.
25
+ *
26
+ * @param url Feature service's URL, e.g., layer.url
27
+ * @param relationshipId Id of relationship
28
+ * @param objectIds Objects in the feature service whose related records are sought
29
+ */
30
+ export declare function getFeatureServiceRelatedRecords(url: string, relationshipId: number, objectIds?: number[]): Promise<IQueryRelatedResponse>;
31
+ /**
32
+ * Templatize the ID, url, field references ect
33
+ *
34
+ * @param itemTemplate Template for feature service item
35
+ * @param dependencies Array of IDependency for name mapping
36
+ * @param templatizeFieldReferences Templatize all field references within a layer
37
+ * @param templateDictionary Hash mapping property names to replacement values
38
+ * @returns A promise that will resolve when template has been updated
39
+ * @private
40
+ */
41
+ export declare function templatize(itemTemplate: IItemTemplate, dependencies: IDependency[], templatizeFieldReferences: boolean, templateDictionary?: any): IItemTemplate;
42
+ /**
43
+ * Delete key properties that are system managed
44
+ *
45
+ * @param layer The data layer instance with field name references within
46
+ * @param isPortal When true we are deploying to portal
47
+ */
48
+ export declare function deleteViewProps(layer: any, isPortal: boolean): void;
49
+ /**
50
+ * Cache properties that contain field references
51
+ *
52
+ * removeProp added for issue #644
53
+ * setting all props on add for online now
54
+ * investigating if we can also just allow them to be set during add for portal
55
+ *
56
+ * @param layer The data layer instance with field name references within
57
+ * @param fieldInfos the object that stores the cached field infos
58
+ * @param isView When true the current layer is a view and does not need to cache subtype details
59
+ * @param isPortal When true we are deploying to portal
60
+ * @returns An updated instance of the fieldInfos
61
+ */
62
+ export declare function cacheFieldInfos(layer: any, fieldInfos: any, isView: boolean, isPortal: boolean): any;
63
+ /**
64
+ * Cache the stored contingent values so we can add them in subsequent addToDef calls
65
+ *
66
+ * @param id The layer id for the associated values to be stored with
67
+ * @param fieldInfos The object that stores the cached field infos
68
+ * @param itemTemplate The current itemTemplate being processed
69
+ * @returns An updated instance of the fieldInfos
70
+ */
71
+ export declare function cacheContingentValues(id: string, fieldInfos: any, itemTemplate: IItemTemplate): any;
72
+ /**
73
+ * Cache the stored contingent values so we can add them in subsequent addToDef calls
74
+ *
75
+ * @param layer The current layer to check indexes on
76
+ * @param fieldInfos The object that stores the cached field infos
77
+ * @returns An updated instance of the fieldInfos
78
+ */
79
+ export declare function cacheIndexes(layer: any, fieldInfos: any, isView: boolean, isMsView: boolean): any;
80
+ /**
81
+ * Helper function to cache a single property into the fieldInfos object
82
+ * This property will be removed from the layer instance.
83
+ *
84
+ * @param layer the data layer being cloned
85
+ * @param prop the property name used to cache
86
+ * @param fieldInfos the object that will store the cached property
87
+ * @param removeProp when true relationships prop will be set to null and subtype props will be deleted
88
+ * @private
89
+ */
90
+ export declare function _cacheFieldInfo(layer: any, prop: string, fieldInfos: any, removeProp: boolean): void;
91
+ /**
92
+ * Cache popup info that can contain field references
93
+ *
94
+ * @param data The items data property
95
+ * @returns An updated instance of the popupInfos
96
+ */
97
+ export declare function cachePopupInfos(data: any): any;
98
+ /**
99
+ * Helper function to cache a single popupInfo
100
+ * This property will be reset on the layer
101
+ *
102
+ * @param popupInfos object to store the cahced popupInfo
103
+ * @param type is it a layer or table
104
+ * @param _items list or either layers or tables
105
+ * @private
106
+ */
107
+ export declare function _cachePopupInfo(popupInfos: IPopupInfos, type: "layers" | "tables", _items: any): void;
108
+ /**
109
+ * Store basic layer information for potential replacement if we are unable to access a given service
110
+ * added for issue #859
111
+ *
112
+ * @param layerId the id for the layer
113
+ * @param itemId the id for the item
114
+ * @param url the url for the layer
115
+ * @param templateDictionary Hash of key details used for variable replacement
116
+ * @returns templatized itemTemplate
117
+ */
118
+ export declare function cacheLayerInfo(layerId: string, itemId: string, url: string, templateDictionary: any): void;
119
+ /**
120
+ * Creates an item in a specified folder (except for Group item type).
121
+ *
122
+ * @param itemTemplate Item to be created; n.b.: this item is modified
123
+ * @param templateDictionary Hash mapping property names to replacement values
124
+ * @param createResponse Response from create service
125
+ * @returns An updated instance of the template
126
+ * @private
127
+ */
128
+ export declare function updateTemplate(itemTemplate: IItemTemplate, templateDictionary: any, createResponse: any): IItemTemplate;
129
+ /**
130
+ * Updates the items typeKeywords to include any typeKeywords that
131
+ * were added by the create service request
132
+ *
133
+ * @param itemTemplate Item to be created; n.b.: this item is modified
134
+ * @param createResponse Response from create service
135
+ * @returns An updated instance of the template
136
+ * @private
137
+ */
138
+ export declare function _updateTypeKeywords(itemTemplate: IItemTemplate, createResponse: any): IItemTemplate;
139
+ /**
140
+ * Add layer urls from tracking views to the templateDictionary to be used for adlib replacements
141
+ *
142
+ * @param itemTemplate Item to be created; n.b.: this item is modified
143
+ * @param templateDictionary Hash mapping property names to replacement values
144
+ * @returns void
145
+ * @private
146
+ */
147
+ export declare function _setTrackingViewLayerSettings(itemTemplate: IItemTemplate, templateDictionary: any): void;
148
+ /**
149
+ * Create the name mapping object that will allow for all templatized field
150
+ * references to be de-templatized.
151
+ * This also removes the stored sourceFields and newFields arrays from fieldInfos.
152
+ *
153
+ * @example
154
+ * \{ layer0: \{ fields: \{ lowerCaseSourceFieldName: newFieldNameAfterDeployment \} \} \}
155
+ *
156
+ * @param layerInfos The object that stores the cached layer properties and name mapping
157
+ * @returns The settings object that will be used to de-templatize the field references.
158
+ */
159
+ export declare function getLayerSettings(layerInfos: any, url: string, itemId: string, enterpriseIDMapping?: any): any;
160
+ /**
161
+ * Set the names and titles for all feature services.
162
+ *
163
+ * This function will ensure that we have unique feature service names.
164
+ * The feature service name will have a generated GUID appended.
165
+ *
166
+ * @param templates A collection of AGO item templates.
167
+ * @returns An updated collection of AGO templates with unique feature service names.
168
+ */
169
+ export declare function setNamesAndTitles(templates: IItemTemplate[]): IItemTemplate[];
170
+ /**
171
+ * This is used when deploying views.
172
+ * We need to update fields referenced in adminLayerInfo for relationships prior to deploying the view.
173
+ * This moves the fieldInfos for the views source layers from the item settings for the source layer
174
+ * to the item settings for the view.
175
+ *
176
+ * @param itemTemplate The current itemTemplate being processed.
177
+ * @param settings The settings object used to de-templatize the various templates within the item.
178
+ */
179
+ export declare function updateSettingsFieldInfos(itemTemplate: IItemTemplate, settings: any): void;
180
+ /**
181
+ * Add flag to indicate item should be ignored.
182
+ * Construct template dictionary to detemplatize any references to this item by other items.
183
+ *
184
+ * @param template Template for feature service item
185
+ * @param authentication Credentials for the request
186
+ * @returns A promise that will resolve when template has been updated
187
+ * @private
188
+ */
189
+ export declare function updateTemplateForInvalidDesignations(template: IItemTemplate, authentication: UserSession): Promise<IItemTemplate>;
190
+ /**
191
+ * Get the contingent values for each layer in the service.
192
+ * Remove key props that cannot be included with the addToDef call on deploy.
193
+ * Store the values alongside other key feature service properties in the template
194
+ *
195
+ * @param properties the current feature services properties
196
+ * @param adminUrl the current feature service url
197
+ * @param authentication Credentials for the request to AGOL
198
+ * @returns A promise that will resolve when the contingent values have been fetched.
199
+ * This function will update the provided properties argument when contingent values are found.
200
+ */
201
+ export declare function processContingentValues(properties: IFeatureServiceProperties, adminUrl: string, authentication: UserSession): Promise<void>;
202
+ /**
203
+ * Replace the field name reference templates with the new field names after deployment.
204
+ *
205
+ * @param fieldInfos The object that stores the cached layer properties and name mapping
206
+ * @param popupInfos The object from the popupInfo property for the layer
207
+ * @param adminLayerInfos The object from the adminLayerInfo property for the layer
208
+ * @param settings The settings object that has all of the mappings for de-templatizing.
209
+ * @returns An object that contains updated instances of popupInfos, fieldInfos, and adminLayerInfos
210
+ */
211
+ export declare function deTemplatizeFieldInfos(fieldInfos: any, popupInfos: any, adminLayerInfos: any, settings: any): any;
212
+ /**
213
+ * This is used when deploying views.
214
+ * We need to update fields referenced in adminLayerInfo for relationships prior to deploying the view.
215
+ * This moves the fieldInfos for the views source layers from the item settings for the source layer
216
+ * to the item settings for the view.
217
+ *
218
+ * @param itemTemplate The current itemTemplate being processed.
219
+ * @returns array of layers and tables
220
+ */
221
+ export declare function getLayersAndTables(itemTemplate: IItemTemplate): any[];
222
+ /**
223
+ * Fetch each layer and table from service so we can determine what fields they have.
224
+ * This is leveraged when we are using existing services so we can determine if we need to
225
+ * remove any fields from views that depend on these layers and tables.
226
+ *
227
+ * @param url Feature service endpoint
228
+ * @param ids layer and table ids
229
+ * @param authentication Credentials for the request
230
+ * @returns A promise that will resolve an array of promises with either a failure or the data
231
+ * @private
232
+ */
233
+ export declare function getExistingLayersAndTables(url: string, ids: number[], authentication: UserSession): Promise<any>;
234
+ /**
235
+ * Adds the layers and tables of a feature service to it and restores their relationships.
236
+ *
237
+ * @param itemTemplate Feature service
238
+ * @param templateDictionary Hash mapping Solution source id to id of its clone (and name & URL for feature
239
+ * service)
240
+ * @param popupInfos the cached popup info from the layers
241
+ * @param authentication Credentials for the request
242
+ * @returns A promise that will resolve when all layers and tables have been added
243
+ * @private
244
+ */
245
+ export declare function addFeatureServiceLayersAndTables(itemTemplate: IItemTemplate, templateDictionary: any, popupInfos: IPopupInfos, authentication: UserSession): Promise<void>;
246
+ /**
247
+ * Updates a feature service with a list of layers and/or tables.
248
+ *
249
+ * @param serviceUrl URL of feature service
250
+ * @param listToAdd List of layers and/or tables to add
251
+ * @param templateDictionary Hash mapping Solution source id to id of its clone (and name & URL for feature
252
+ * service)
253
+ * @param authentication Credentials for the request
254
+ * @param key
255
+ * @param adminLayerInfos Hash map of a layers adminLayerInfo
256
+ * @param fieldInfos Hash map of properties that contain field references
257
+ * @param itemTemplate
258
+ * @returns A promise that will resolve when the feature service has been updated
259
+ * @private
260
+ */
261
+ export declare function addFeatureServiceDefinition(serviceUrl: string, listToAdd: any[], templateDictionary: any, authentication: UserSession, key: string, adminLayerInfos: any, fieldInfos: any, itemTemplate: IItemTemplate): Promise<void>;
262
+ /**
263
+ * When a view is a multi service view sort based on the id
264
+ * https://github.com/Esri/solution.js/issues/1048
265
+ *
266
+ * @param layersAndTables The list of layers and tables for the current template
267
+ * @param isSelfReferential Indicates if any layers or tables have relationships with other layers or tables in the same service
268
+ * @param itemTemplate The current itemTemplate being processed
269
+ *
270
+ * @returns Sorted list of layers and tables when using a multi-service view
271
+ * @private
272
+ */
273
+ export declare function _updateOrder(layersAndTables: any[], isSelfReferential: boolean, itemTemplate: IItemTemplate): any[];
274
+ /**
275
+ * When a view is a multi service view add each layer separately
276
+ * https://github.com/Esri/solution.js/issues/871
277
+ *
278
+ * @param itemTemplate The current itemTemplate being processed
279
+ * @param options Add to service definition options
280
+ * @param layerChunks Groups of layers or tables to add to the service
281
+ * @param isSelfReferential Indicates if any layers or tables have relationships with other layers or tables in the same service
282
+ * @param authentication Credentials for the request
283
+ *
284
+ * @returns Add to service definition options
285
+ * @private
286
+ */
287
+ export declare function _updateAddOptions(itemTemplate: IItemTemplate, options: any, layerChunks: any[], isSelfReferential: boolean, authentication: UserSession): any;
288
+ /**
289
+ * Determine if any layer or table within the service references
290
+ * other layers or tables within the same service
291
+ *
292
+ * @param layersAndTables the list of layers and tables from the service
293
+ *
294
+ * @returns true when valid internal references are found
295
+ * @private
296
+ */
297
+ export declare function _isSelfReferential(layersAndTables: any[]): boolean;
298
+ /**
299
+ * Remove "multiScaleGeometryInfo" for issue #526 to prevent invalid enablement of layer optimization
300
+ *
301
+ * @param layer the layer to evaluate
302
+ * @private
303
+ */
304
+ export declare function removeLayerOptimization(layer: any): void;
305
+ /**
306
+ * Handle portal specific updates to the item
307
+ *
308
+ * @param item the item to update
309
+ * @param itemTemplate the item template
310
+ * @param templateDictionary Hash mapping Solution source id to id of its clone
311
+ *
312
+ * @returns the updated item
313
+ * @private
314
+ */
315
+ export declare function _updateForPortal(item: any, itemTemplate: IItemTemplate, templateDictionary: any): any;
316
+ /**
317
+ * Get a list of the source layer field names
318
+ *
319
+ * @param table the table instance to compare
320
+ * @param itemTemplate the item template
321
+ * @param templateDictionary Hash mapping Solution source id to id of its clone
322
+ *
323
+ * @returns an array of the source layers fields
324
+ * @private
325
+ */
326
+ export declare function _getFieldNames(table: any, itemTemplate: IItemTemplate, templateDictionary: any): string[];
327
+ /**
328
+ * Get a list of any dynamically calculated fields
329
+ * These fields are still valid but will not exist in the source service
330
+ *
331
+ * @param table the table instance to compare
332
+ *
333
+ * @returns an array of field names
334
+ * @private
335
+ */
336
+ export declare function _getDynamicFieldNames(table: any): string[];
337
+ /**
338
+ * Remove fields references from fields and indexes that do not exist in the source service
339
+ *
340
+ * @param item Layer or table
341
+ * @param templateDictionary Hash mapping Solution source id to id of its clone
342
+ *
343
+ * @returns updated layer or table
344
+ * @private
345
+ */
346
+ export declare function _updateItemFields(item: any, fieldNames: string[]): any;
347
+ /**
348
+ * Filter the sourceLayerFields for the table
349
+ *
350
+ * @param table the table instance to evaluate
351
+ * @param sourceLayerFields array of fields from the source service
352
+ * @returns Updated instance of the table
353
+ * @private
354
+ */
355
+ export declare function _updateSourceLayerFields(table: any, sourceLayerFields: string[]): any;
356
+ /**
357
+ * When the itemm is a view with a geometry field update the value to
358
+ * use the table name from the view layer def
359
+ *
360
+ * @param item the item details from the current template
361
+ * @param templateDictionary Hash mapping property names to replacement values
362
+ * @private
363
+ */
364
+ export declare function _updateGeomFieldName(adminLayerInfo: any, templateDictionary: any): void;
365
+ /**
366
+ * Add the fields to the templateDictionary when a service has views
367
+ * these are used to compare with fields from the view when domains are involved
368
+ * when a view field has a domain that differs from that of the source service
369
+ * the definition needs to be modified in an update call rather than when it is first added.
370
+ * This should only happen when the domain differs.
371
+ *
372
+ * @param itemTemplate
373
+ * @param templateDictionary Hash mapping Solution source id to id of its clone (and name & URL for feature service)
374
+ * @private
375
+ */
376
+ export declare function _updateTemplateDictionaryFields(itemTemplate: IItemTemplate, templateDictionary: any, compareItemId?: boolean): void;
377
+ /**
378
+ * Set the defaultSpatialReference variable with the services spatial reference.
379
+ * If this item is a Feature Service that has child views then we will use this value
380
+ * if one or more of the child views spatial reference differs from that of its parent.
381
+ *
382
+ * @param templateDictionary Hash mapping Solution source id to id of its clone (and name & URL for feature service)
383
+ * @param itemId The source id for the item
384
+ * @param spatialReference \{ wkid: 102100 \} for example
385
+ * @private
386
+ */
387
+ export declare function setDefaultSpatialReference(templateDictionary: any, itemId: string, spatialReference: any): void;
388
+ /**
389
+ * Compare the spatial reference of the current item against its dependencies.
390
+ * The spatial reference of a view cannot differ from its source service.
391
+ * If the view has a different spatial reference from its source use the source spatial reference.
392
+ *
393
+ * @param serviceInfo Basic service information
394
+ * @param itemTemplate The current template to process
395
+ * @param templateDictionary Hash mapping Solution source id to id of its clone (and name & URL for feature service)
396
+ * @private
397
+ */
398
+ export declare function validateSpatialReferenceAndExtent(serviceInfo: any, itemTemplate: IItemTemplate, templateDictionary: any): void;
399
+ /**
400
+ * Get the spatial reference from a views source.
401
+ * Optionally ensure that the source has a valid geometry type prior to using its values.
402
+ *
403
+ * @param serviceInfo Basic service information
404
+ * @param itemTemplate The current template to process
405
+ * @param templateDictionary Hash mapping Solution source id to id of its clone (and name & URL for feature service)
406
+ * @param validateGeom When true the source must contain a geometryType for values to be returned
407
+ *
408
+ * @returns An object that contains the default spatial reference and extent value
409
+ * @private
410
+ */
411
+ export declare function _getSourceSpatialReferenceAndExtent(serviceInfo: any, itemTemplate: IItemTemplate, templateDictionary: any, validateGeom: boolean): IDefaultSpatialReferenceAndExtent;
412
+ /**
413
+ * Updates a feature service with a list of layers and/or tables.
414
+ *
415
+ * @param itemTemplate
416
+ * @param fieldInfos Hash map of properties that contain field references
417
+ * @param popupInfos Hash map of a layers popupInfo
418
+ * @param adminLayerInfos Hash map of a layers adminLayerInfo
419
+ * @param templateDictionary Hash mapping Solution source id to id of its clone (and name & URL for feature service)
420
+ * @param authentication Credentials for the request
421
+ * @returns A promise that will resolve when the feature service has been updated
422
+ * @private
423
+ */
424
+ export declare function updateLayerFieldReferences(itemTemplate: IItemTemplate, fieldInfos: any, popupInfos: IPopupInfos, adminLayerInfos: any, templateDictionary: any): Promise<any>;
425
+ /**
426
+ * Update the names of fields for each layer or table after it has been
427
+ * added to the definition
428
+ *
429
+ * @param itemTemplate Item to be created
430
+ * @param layerInfos Hash map of properties that contain field references and various layer info
431
+ * @param popupInfos Hash map of a layers popupInfo
432
+ * @param adminLayerInfos Hash map of a layers adminLayerInfo
433
+ * @param templateDictionary
434
+ * @param authentication Credentials for the request
435
+ * @returns An object with detemplatized field references
436
+ * @private
437
+ */
438
+ export declare function postProcessFields(itemTemplate: IItemTemplate, layerInfos: any, popupInfos: any, adminLayerInfos: any, templateDictionary: any): Promise<any>;
439
+ /**
440
+ * Set isViewOverride to false for single source view fields in portal when the field has
441
+ * a domain and isViewOverride is not currently defined
442
+ *
443
+ * https://devtopia.esri.com/WebGIS/solution-deployment-apps/issues/414
444
+ *
445
+ * @param item that stores the view fields
446
+ * @param isPortal When true we are deploying to portal
447
+ * @param isMsView When true the view is a multi-source view
448
+ *
449
+ * This function will update the item that is provided
450
+ * @private
451
+ */
452
+ export declare function _validateViewDomainFields(item: any, isPortal: boolean, isMsView: boolean): void;
453
+ /**
454
+ * Add popup info back to the layer item
455
+ *
456
+ * @param itemTemplate
457
+ * @param popupInfos popup info to be added back to the layer
458
+ * @private
459
+ */
460
+ export declare function updatePopupInfo(itemTemplate: IItemTemplate, popupInfos: any): void;
461
+ /**
462
+ * Helper function to templatize value and make sure its converted to lowercase
463
+ *
464
+ * @param basePath path used to de-templatize while deploying
465
+ * @param value to be converted to lower case for lookup while deploying
466
+ * @private
467
+ */
468
+ export declare function _templatize(basePath: string, value: string, suffix?: string): string;
469
+ /**
470
+ * templatize an objects property
471
+ *
472
+ * @param object the object with the property to templatize
473
+ * @param property the property of the object to templatize
474
+ * @param basePath path used to de-templatize while deploying
475
+ * @private
476
+ */
477
+ export declare function _templatizeProperty(object: any, property: string, basePath: string, suffix: string): void;
478
+ /**
479
+ * Templatize field references, serviceItemId, and adminLayerInfo for a layer
480
+ *
481
+ * @param dataItem from the items data property
482
+ * @param adminItem from the services admin api
483
+ * @param itemTemplate Template for feature service item
484
+ * @param dependencies Array of IDependency for name mapping
485
+ * @param templatizeFieldReferences Templatize all field references within a layer
486
+ * @returns A promise that will resolve when template has been updated
487
+ * @private
488
+ */
489
+ export declare function _templatizeLayer(dataItem: any, adminItem: any, itemTemplate: IItemTemplate, dependencies: IDependency[], templatizeFieldReferences: boolean, templateDictionary: any): void;
490
+ /**
491
+ * Repair common issues that can occur with feature service field references.
492
+ * This function will mutate the input item if any of the common issues have occured.
493
+ *
494
+ * @param adminItem layer or table from the service
495
+ */
496
+ export declare function _validateFields(adminItem: any): void;
497
+ /**
498
+ * Update primary display field if casing doesn't match.
499
+ * Update primary display field to the first non OID or GlobalId if the field isn't in the layer.
500
+ *
501
+ * @param adminItem layer or table from the service
502
+ * @param fieldNames string list of fields names
503
+ * @private
504
+ */
505
+ export declare function _validateDisplayField(adminItem: any, fieldNames: string[]): void;
506
+ /**
507
+ * Remove indexes on fields that don't exist in the layer.
508
+ * Remove duplicate indexes on the same field.
509
+ *
510
+ * @param adminItem layer or table from the service
511
+ * @param fieldNames string list of fields names
512
+ * @private
513
+ */
514
+ export declare function _validateIndexes(adminItem: any, fieldNames: string[]): void;
515
+ /**
516
+ * Remove field references from templates that no longer exist.
517
+ *
518
+ * @param adminItem layer or table from the service
519
+ * @param fieldNames string list of fields names
520
+ * @private
521
+ */
522
+ export declare function _validateTemplatesFields(adminItem: any, fieldNames: string[]): void;
523
+ /**
524
+ * Remove field references from templates that no longer exist.
525
+ *
526
+ * @param adminItem layer or table from the service
527
+ * @param fieldNames string list of fields names
528
+ * @private
529
+ */
530
+ export declare function _validateTypesTemplates(adminItem: any, fieldNames: string[]): void;
531
+ /**
532
+ * Check if edit feilds exist but with lower case
533
+ *
534
+ * @param adminItem layer or table from the service
535
+ * @param fieldNames string list of fields names
536
+ * @private
537
+ */
538
+ export declare function _validateEditFieldsInfo(adminItem: any, fieldNames: string[]): void;
539
+ /**
540
+ *
541
+ * Templatize all field references within a layer
542
+ * This is necessary to support potential field name changes when deploying to portal
543
+ * Portal will force all field names to be lower case
544
+ *
545
+ * @param dataItem The data layer instance with field name references within
546
+ * @param itemID The id for the item that contains this layer.
547
+ * @param layer JSON return from the layer being templatized.
548
+ * @param dependencies
549
+ * @returns An updated instance of the layer
550
+ * @private
551
+ */
552
+ export declare function _templatizeLayerFieldReferences(dataItem: any, itemID: string, layer: any, dependencies: IDependency[]): void;
553
+ /**
554
+ * Templatize a layers adminLayerInfo by removing properties that will case issues with clone.
555
+ * Also templatizes the source service name when we are dealing with a view.
556
+ *
557
+ * @param layer The layer to be modified
558
+ * @param dependencies Array of service dependencies
559
+ * @returns A new copy of the modified adminLayerInfo for the given layer
560
+ * @private
561
+ */
562
+ export declare function _templatizeAdminLayerInfo(layer: any, dependencies: IDependency[], templateDictionary: any): any;
563
+ /**
564
+ * Remove sourceId and templatize the sourceServiceName
565
+ *
566
+ * @param object The layer to be modified
567
+ * @param dependencies Array of service dependencies
568
+ * @private
569
+ */
570
+ export declare function _processAdminObject(object: any, dependencies: IDependency[]): void;
571
+ /**
572
+ * Templatize the name based on the given dependencies
573
+ *
574
+ * @param lookupName The current name from the source service
575
+ * @param dependencies Array of IDependency for name mapping
576
+ * @returns The templatized name || undefined when no matching dependency is found
577
+ * @private
578
+ */
579
+ export declare function _templatizeSourceServiceName(lookupName: string, dependencies: IDependency[]): string | string[] | undefined;
580
+ /**
581
+ * templatize the fields referenced in adminLayerInfo
582
+ *
583
+ * @param layer the layer object with the adminLayerInfo property to templatize
584
+ * @param basePath path used to de-templatize while deploying
585
+ * @param itemID the id for the item that contains this layer
586
+ * @private
587
+ */
588
+ export declare function _templatizeAdminLayerInfoFields(layer: any, dependencies: IDependency[]): void;
589
+ /**
590
+ * find id based on dependency name
591
+ *
592
+ * @param lookupName name of dependency we want to find the id of
593
+ * @param dependencies array of item dependencies
594
+ * @private
595
+ */
596
+ export declare function _getDependantItemId(lookupName: string, dependencies: IDependency[]): string;
597
+ /**
598
+ * templatize the sourceLayerFields referenced in adminLayerInfo
599
+ *
600
+ * @param fields array of sourceLayerFields to templatize
601
+ * @param basePath path used to de-templatize while deploying
602
+ * @private
603
+ */
604
+ export declare function _templatizeAdminSourceLayerFields(fields: any[], basePath: string): void;
605
+ /**
606
+ * templatize the topFilter property from adminLayerInfo related tables
607
+ *
608
+ * @param topFilter the topFilter object to templatize
609
+ * @param basePath path used to de-templatize while deploying
610
+ * @private
611
+ */
612
+ export declare function _templatizeTopFilter(topFilter: any, basePath: string): void;
613
+ /**
614
+ * templatize the relationships key fields using the related table id in the basePath
615
+ *
616
+ * @param layer the layer that has the relationships to templatize
617
+ * @param itemID the id of the item that contains the related table
618
+ * @private
619
+ */
620
+ export declare function _templatizeRelationshipFields(layer: any, itemID: string): void;
621
+ /**
622
+ * templatize the popupInfo
623
+ *
624
+ * @param layerDefinition the layerDefinition that has the popupInfo to templatize
625
+ * @param layer the JSON for the layer being templatized
626
+ * @param basePath path used to de-templatize while deploying
627
+ * @param itemID the id for the item that contains this layer
628
+ * @param fieldNames array of fieldNames
629
+ * @private
630
+ */
631
+ export declare function _templatizePopupInfo(layerDefinition: any, layer: any, basePath: string, itemID: any, fieldNames: string[]): void;
632
+ /**
633
+ * templatize field name when referenced like this: \{\{fieldName\}\}
634
+ * checks each field name from the layer
635
+ *
636
+ * @param object with the property to test for a field name
637
+ * @param property that could have a field name referenced
638
+ * @param fieldNames array for field names for the layer
639
+ * @param basePath path used to de-templatize while deploying
640
+ * @private
641
+ */
642
+ export declare function _templatizeName(object: any, property: string, fieldNames: string[], basePath: string): void;
643
+ /**
644
+ * templatize field name when referenced like this: \{\{fieldName\}\}
645
+ * checks each field name from the layer
646
+ *
647
+ * @param fieldInfos object that contains the popups fieldInfos
648
+ * @param layer json of layer being cloned
649
+ * @param itemID id of the item that contains the current layer
650
+ * @param basePath path used to de-templatize while deploying
651
+ * @private
652
+ */
653
+ export declare function _templatizePopupInfoFieldInfos(fieldInfos: any[], layer: any, itemID: any, basePath: string): void;
654
+ /**
655
+ * templatize field name when referenced like this: \{\{fieldName\}\}
656
+ * checks each field name from the layer
657
+ *
658
+ * @param name the field name to templatize
659
+ * @param layer json of layer being cloned
660
+ * @param itemID id of the item that contains the current layer
661
+ * @param basePath path used to de-templatize while deploying
662
+ * @private
663
+ */
664
+ export declare function _templatizeFieldName(name: string, layer: any, itemID: string, basePath: string): string;
665
+ /**
666
+ * templatize field name when referenced in expressionInfos
667
+ *
668
+ * @param expressionInfos the popups expressionInfos to check
669
+ * @param fieldNames array of the layers field names
670
+ * @param basePath path used to de-templatize while deploying
671
+ * @private
672
+ */
673
+ export declare function _templatizeExpressionInfos(expressionInfos: any[], fieldNames: string[], basePath: string): any[];
674
+ /**
675
+ * templatize field name when referenced in popupElelments
676
+ *
677
+ * @param popupElelments the popups popupElelments to check
678
+ * @param basePath path used to de-templatize while deploying
679
+ * @param layer json of layer being cloned
680
+ * @param itemID id of the item that contains the current layer
681
+ * @param fieldNames array of field names
682
+ * @private
683
+ */
684
+ export declare function _templatizePopupElements(popupElelments: any[], basePath: string, layer: any, itemID: string, fieldNames: any): void;
685
+ /**
686
+ * templatize field name when referenced in mediaInfos
687
+ *
688
+ * @param mediaInfos the popups mediaInfos to check
689
+ * @param fieldNames array of the layers field names
690
+ * @param basePath path used to de-templatize while deploying
691
+ * @param layer json of layer being cloned
692
+ * @param itemID id of the item that contains the current layer
693
+ * @private
694
+ */
695
+ export declare function _templatizeMediaInfos(mediaInfos: any, fieldNames: string[], basePath: string, layer: any, itemId: string): void;
696
+ /**
697
+ * templatize field names when referenced in definitionEditor
698
+ *
699
+ * @param layer the layer with the definition editor
700
+ * @param basePath path used to de-templatize while deploying
701
+ * @param fieldNames json of layer being cloned
702
+ * @private
703
+ */
704
+ export declare function _templatizeDefinitionEditor(layer: any, basePath: string, fieldNames: string[]): void;
705
+ /**
706
+ * templatize field names when referenced in definitionExpression
707
+ *
708
+ * @param layer the layer with the definition editor
709
+ * @param basePath path used to de-templatize while deploying
710
+ * @param fieldNames array of field names
711
+ * @private
712
+ */
713
+ export declare function _templatizeDefinitionExpression(layer: any, basePath: string, fieldNames: string[]): void;
714
+ /**
715
+ * Case sensitive test for field names that appear anywhere within a string
716
+ *
717
+ * @param expression the expression to test for field name references
718
+ * @param basePath path used to de-templatize while deploying
719
+ * @param fieldNames array of the layers field names
720
+ * @private
721
+ */
722
+ export declare function _templatizeSimpleName(expression: string, basePath: string, fieldNames: string[], suffix: string): string;
723
+ /**
724
+ * Templatize field references within a layers drawingInfo
725
+ *
726
+ * @param layer the data layer
727
+ * @param basePath path used to de-templatize while deploying
728
+ * @param fieldNames array of the layers field names
729
+ * @private
730
+ */
731
+ export declare function _templatizeDrawingInfo(layer: any, basePath: string, fieldNames: string[]): void;
732
+ /**
733
+ * Templatize field references within a layers drawingInfo
734
+ *
735
+ * @param renderer the layers renderer
736
+ * @param basePath path used to de-templatize while deploying
737
+ * @param fieldNames array of the layers field names
738
+ * @private
739
+ */
740
+ export declare function _templatizeRenderer(renderer: any, basePath: string, fieldNames: string[]): void;
741
+ /**
742
+ * Templatize field references within a layers renderer
743
+ *
744
+ * @param renderer the renderer object to check for field references
745
+ * @param basePath path used to de-templatize while deploying
746
+ * @param fieldNames array of field names that will be used to search expressions
747
+ * @private
748
+ */
749
+ export declare function _templatizeGenRenderer(renderer: any, basePath: string, fieldNames: string[]): void;
750
+ /**
751
+ * Templatize field references within a layers renderer
752
+ *
753
+ * @param renderer the renderer object to check for field references
754
+ * @param basePath path used to de-templatize while deploying
755
+ * @param fieldNames array of field names that will be used to search expressions
756
+ * @private
757
+ */
758
+ export declare function _templatizeTemporalRenderer(renderer: any, basePath: string, fieldNames: string[]): void;
759
+ /**
760
+ * Templatize renderers authoringInfo
761
+ *
762
+ * @param authoringInfo object containing metadata about the authoring process
763
+ * @param basePath path used to de-templatize while deploying
764
+ * @param fieldNames the name of fields from the layer
765
+ * @private
766
+ */
767
+ export declare function _templatizeAuthoringInfo(authoringInfo: any, basePath: string, fieldNames: string[]): void;
768
+ /**
769
+ * Templatize field references within an arcade expression
770
+ *
771
+ * @param text the text that contains the expression
772
+ * @param fieldName name of the field to test for
773
+ * @param basePath path used to de-templatize while deploying
774
+ * @private
775
+ */
776
+ export declare function _templatizeArcadeExpressions(text: string, fieldName: string, basePath: string): string;
777
+ /**
778
+ * templatize field names when referenced in the layers labelingInfo
779
+ *
780
+ * @param labelingInfo the object that contains the labelingInfo
781
+ * @param basePath path used to de-templatize while deploying
782
+ * @param fieldNames array of the layers field names
783
+ * @private
784
+ */
785
+ export declare function _templatizeLabelingInfo(labelingInfo: any, basePath: string, fieldNames: string[]): void;
786
+ /**
787
+ * templatize the layers editing templates
788
+ *
789
+ * @param layer the data layer being cloned
790
+ * @param basePath path used to de-templatize while deploying
791
+ * @private
792
+ */
793
+ export declare function _templatizeTemplates(layer: any, basePath: string): void;
794
+ /**
795
+ * templatize the layer types and templates
796
+ *
797
+ * @param layer the data layer being cloned
798
+ * @param basePath path used to de-templatize while deploying
799
+ * @private
800
+ */
801
+ export declare function _templatizeTypeTemplates(layer: any, basePath: string): void;
802
+ /**
803
+ * templatize object keys
804
+ *
805
+ * @param obj the object to templatize
806
+ * @param basePath path used to de-templatize while deploying
807
+ * @param suffix expected suffix for template variable
808
+ * @private
809
+ */
810
+ export declare function _templatizeKeys(obj: any, basePath: string, suffix: string): any;
811
+ /**
812
+ * templatize fields referenced in the layers time info
813
+ *
814
+ * @param layer the data layer being cloned
815
+ * @param basePath path used to de-templatize while deploying
816
+ * @private
817
+ */
818
+ export declare function _templatizeTimeInfo(layer: any, basePath: string): void;
819
+ /**
820
+ * templatize the layers definition query
821
+ *
822
+ * @param layer the data layer being cloned
823
+ * @param basePath path used to de-templatize while deploying
824
+ * @param fieldNames array of the layers field names
825
+ * @private
826
+ */
827
+ export declare function _templatizeDefinitionQuery(layer: any, basePath: string, fieldNames: string[]): void;
828
+ /**
829
+ * Helper function to create the name mapping used to
830
+ * de-templatize the field reference
831
+ *
832
+ * @param fieldInfos the object that stores the cached information
833
+ * @param id the id for the current layer being processed
834
+ * @private
835
+ */
836
+ export declare function _getNameMapping(fieldInfos: any, id: string): any;
837
+ export interface IPopupInfos {
838
+ layers: INumberValuePair;
839
+ tables: INumberValuePair;
840
+ }
841
+ /**
842
+ * Helper function to ensure same chunk size value is used in multiple locations
843
+ *
844
+ * @returns a number that represents how many layers should be included per addToDef call
845
+ * @private
846
+ */
847
+ export declare function _getLayerChunkSize(): number;