@esri/solution-common 6.0.4-alpha.0 → 6.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/package.json +6 -6
  2. package/dist/cjs/arcgisRestJS.d.ts +0 -58
  3. package/dist/cjs/arcgisRestJS.js +0 -142
  4. package/dist/cjs/arcgisRestJS.js.map +0 -1
  5. package/dist/cjs/completeItem.d.ts +0 -30
  6. package/dist/cjs/completeItem.js +0 -72
  7. package/dist/cjs/completeItem.js.map +0 -1
  8. package/dist/cjs/create-hub-request-options.d.ts +0 -29
  9. package/dist/cjs/create-hub-request-options.js +0 -64
  10. package/dist/cjs/create-hub-request-options.js.map +0 -1
  11. package/dist/cjs/deleteHelpers/deleteEmptyGroups.d.ts +0 -24
  12. package/dist/cjs/deleteHelpers/deleteEmptyGroups.js +0 -42
  13. package/dist/cjs/deleteHelpers/deleteEmptyGroups.js.map +0 -1
  14. package/dist/cjs/deleteHelpers/deleteGroupIfEmpty.d.ts +0 -27
  15. package/dist/cjs/deleteHelpers/deleteGroupIfEmpty.js +0 -99
  16. package/dist/cjs/deleteHelpers/deleteGroupIfEmpty.js.map +0 -1
  17. package/dist/cjs/deleteHelpers/deleteSolutionContents.d.ts +0 -39
  18. package/dist/cjs/deleteHelpers/deleteSolutionContents.js +0 -127
  19. package/dist/cjs/deleteHelpers/deleteSolutionContents.js.map +0 -1
  20. package/dist/cjs/deleteHelpers/deleteSolutionFolder.d.ts +0 -29
  21. package/dist/cjs/deleteHelpers/deleteSolutionFolder.js +0 -81
  22. package/dist/cjs/deleteHelpers/deleteSolutionFolder.js.map +0 -1
  23. package/dist/cjs/deleteHelpers/deleteSolutionItem.d.ts +0 -31
  24. package/dist/cjs/deleteHelpers/deleteSolutionItem.js +0 -52
  25. package/dist/cjs/deleteHelpers/deleteSolutionItem.js.map +0 -1
  26. package/dist/cjs/deleteHelpers/index.d.ts +0 -22
  27. package/dist/cjs/deleteHelpers/index.js +0 -26
  28. package/dist/cjs/deleteHelpers/index.js.map +0 -1
  29. package/dist/cjs/deleteHelpers/reconstructBuildOrderIds.d.ts +0 -27
  30. package/dist/cjs/deleteHelpers/reconstructBuildOrderIds.js +0 -34
  31. package/dist/cjs/deleteHelpers/reconstructBuildOrderIds.js.map +0 -1
  32. package/dist/cjs/deleteHelpers/removeItems.d.ts +0 -35
  33. package/dist/cjs/deleteHelpers/removeItems.js +0 -116
  34. package/dist/cjs/deleteHelpers/removeItems.js.map +0 -1
  35. package/dist/cjs/deleteHelpers/reportProgress.d.ts +0 -27
  36. package/dist/cjs/deleteHelpers/reportProgress.js +0 -46
  37. package/dist/cjs/deleteHelpers/reportProgress.js.map +0 -1
  38. package/dist/cjs/deleteSolution.d.ts +0 -56
  39. package/dist/cjs/deleteSolution.js +0 -107
  40. package/dist/cjs/deleteSolution.js.map +0 -1
  41. package/dist/cjs/dependencies.d.ts +0 -26
  42. package/dist/cjs/dependencies.js +0 -171
  43. package/dist/cjs/dependencies.js.map +0 -1
  44. package/dist/cjs/featureServiceHelpers.d.ts +0 -833
  45. package/dist/cjs/featureServiceHelpers.js +0 -2524
  46. package/dist/cjs/featureServiceHelpers.js.map +0 -1
  47. package/dist/cjs/formHelpers.d.ts +0 -26
  48. package/dist/cjs/formHelpers.js +0 -40
  49. package/dist/cjs/formHelpers.js.map +0 -1
  50. package/dist/cjs/generalHelpers.d.ts +0 -447
  51. package/dist/cjs/generalHelpers.js +0 -959
  52. package/dist/cjs/generalHelpers.js.map +0 -1
  53. package/dist/cjs/get-subscription-info.d.ts +0 -27
  54. package/dist/cjs/get-subscription-info.js +0 -38
  55. package/dist/cjs/get-subscription-info.js.map +0 -1
  56. package/dist/cjs/getDeletableSolutionInfo.d.ts +0 -30
  57. package/dist/cjs/getDeletableSolutionInfo.js +0 -53
  58. package/dist/cjs/getDeletableSolutionInfo.js.map +0 -1
  59. package/dist/cjs/getItemTypeAbbrev.d.ts +0 -19
  60. package/dist/cjs/getItemTypeAbbrev.js +0 -186
  61. package/dist/cjs/getItemTypeAbbrev.js.map +0 -1
  62. package/dist/cjs/getSolutionSummary.d.ts +0 -28
  63. package/dist/cjs/getSolutionSummary.js +0 -100
  64. package/dist/cjs/getSolutionSummary.js.map +0 -1
  65. package/dist/cjs/index.d.ts +0 -49
  66. package/dist/cjs/index.js +0 -53
  67. package/dist/cjs/index.js.map +0 -1
  68. package/dist/cjs/interfaces.d.ts +0 -1446
  69. package/dist/cjs/interfaces.js +0 -72
  70. package/dist/cjs/interfaces.js.map +0 -1
  71. package/dist/cjs/item-reuse.d.ts +0 -140
  72. package/dist/cjs/item-reuse.js +0 -176
  73. package/dist/cjs/item-reuse.js.map +0 -1
  74. package/dist/cjs/libConnectors.d.ts +0 -73
  75. package/dist/cjs/libConnectors.js +0 -115
  76. package/dist/cjs/libConnectors.js.map +0 -1
  77. package/dist/cjs/migrations/apply-schema.d.ts +0 -24
  78. package/dist/cjs/migrations/apply-schema.js +0 -36
  79. package/dist/cjs/migrations/apply-schema.js.map +0 -1
  80. package/dist/cjs/migrations/is-legacy-solution.d.ts +0 -24
  81. package/dist/cjs/migrations/is-legacy-solution.js +0 -39
  82. package/dist/cjs/migrations/is-legacy-solution.js.map +0 -1
  83. package/dist/cjs/migrations/upgrade-three-dot-one.d.ts +0 -26
  84. package/dist/cjs/migrations/upgrade-three-dot-one.js +0 -48
  85. package/dist/cjs/migrations/upgrade-three-dot-one.js.map +0 -1
  86. package/dist/cjs/migrations/upgrade-three-dot-zero.d.ts +0 -27
  87. package/dist/cjs/migrations/upgrade-three-dot-zero.js +0 -43
  88. package/dist/cjs/migrations/upgrade-three-dot-zero.js.map +0 -1
  89. package/dist/cjs/migrations/upgrade-two-dot-five.d.ts +0 -24
  90. package/dist/cjs/migrations/upgrade-two-dot-five.js +0 -73
  91. package/dist/cjs/migrations/upgrade-two-dot-five.js.map +0 -1
  92. package/dist/cjs/migrations/upgrade-two-dot-four.d.ts +0 -24
  93. package/dist/cjs/migrations/upgrade-two-dot-four.js +0 -72
  94. package/dist/cjs/migrations/upgrade-two-dot-four.js.map +0 -1
  95. package/dist/cjs/migrations/upgrade-two-dot-one.d.ts +0 -7
  96. package/dist/cjs/migrations/upgrade-two-dot-one.js +0 -39
  97. package/dist/cjs/migrations/upgrade-two-dot-one.js.map +0 -1
  98. package/dist/cjs/migrations/upgrade-two-dot-seven.d.ts +0 -23
  99. package/dist/cjs/migrations/upgrade-two-dot-seven.js +0 -58
  100. package/dist/cjs/migrations/upgrade-two-dot-seven.js.map +0 -1
  101. package/dist/cjs/migrations/upgrade-two-dot-six.d.ts +0 -27
  102. package/dist/cjs/migrations/upgrade-two-dot-six.js +0 -61
  103. package/dist/cjs/migrations/upgrade-two-dot-six.js.map +0 -1
  104. package/dist/cjs/migrations/upgrade-two-dot-three.d.ts +0 -23
  105. package/dist/cjs/migrations/upgrade-two-dot-three.js +0 -55
  106. package/dist/cjs/migrations/upgrade-two-dot-three.js.map +0 -1
  107. package/dist/cjs/migrations/upgrade-two-dot-two.d.ts +0 -23
  108. package/dist/cjs/migrations/upgrade-two-dot-two.js +0 -58
  109. package/dist/cjs/migrations/upgrade-two-dot-two.js.map +0 -1
  110. package/dist/cjs/migrations/upgrade-two-dot-zero.d.ts +0 -44
  111. package/dist/cjs/migrations/upgrade-two-dot-zero.js +0 -95
  112. package/dist/cjs/migrations/upgrade-two-dot-zero.js.map +0 -1
  113. package/dist/cjs/migrator.d.ts +0 -25
  114. package/dist/cjs/migrator.js +0 -75
  115. package/dist/cjs/migrator.js.map +0 -1
  116. package/dist/cjs/resourceHelpers.d.ts +0 -192
  117. package/dist/cjs/resourceHelpers.js +0 -380
  118. package/dist/cjs/resourceHelpers.js.map +0 -1
  119. package/dist/cjs/resources/add-resource.d.ts +0 -38
  120. package/dist/cjs/resources/add-resource.js +0 -84
  121. package/dist/cjs/resources/add-resource.js.map +0 -1
  122. package/dist/cjs/resources/addMetadataFromBlob.d.ts +0 -25
  123. package/dist/cjs/resources/addMetadataFromBlob.js +0 -43
  124. package/dist/cjs/resources/addMetadataFromBlob.js.map +0 -1
  125. package/dist/cjs/resources/convert-item-resource-to-storage-resource.d.ts +0 -32
  126. package/dist/cjs/resources/convert-item-resource-to-storage-resource.js +0 -70
  127. package/dist/cjs/resources/convert-item-resource-to-storage-resource.js.map +0 -1
  128. package/dist/cjs/resources/convert-storage-resource-to-item-resource.d.ts +0 -29
  129. package/dist/cjs/resources/convert-storage-resource-to-item-resource.js +0 -70
  130. package/dist/cjs/resources/convert-storage-resource-to-item-resource.js.map +0 -1
  131. package/dist/cjs/resources/copyAssociatedFiles.d.ts +0 -79
  132. package/dist/cjs/resources/copyAssociatedFiles.js +0 -348
  133. package/dist/cjs/resources/copyAssociatedFiles.js.map +0 -1
  134. package/dist/cjs/resources/copyDataIntoItem.d.ts +0 -34
  135. package/dist/cjs/resources/copyDataIntoItem.js +0 -45
  136. package/dist/cjs/resources/copyDataIntoItem.js.map +0 -1
  137. package/dist/cjs/resources/copyMetadataIntoItem.d.ts +0 -27
  138. package/dist/cjs/resources/copyMetadataIntoItem.js +0 -44
  139. package/dist/cjs/resources/copyMetadataIntoItem.js.map +0 -1
  140. package/dist/cjs/resources/copyResourceIntoZip.d.ts +0 -34
  141. package/dist/cjs/resources/copyResourceIntoZip.js +0 -74
  142. package/dist/cjs/resources/copyResourceIntoZip.js.map +0 -1
  143. package/dist/cjs/resources/copyZipIntoItem.d.ts +0 -26
  144. package/dist/cjs/resources/copyZipIntoItem.js +0 -53
  145. package/dist/cjs/resources/copyZipIntoItem.js.map +0 -1
  146. package/dist/cjs/resources/createCopyResults.d.ts +0 -25
  147. package/dist/cjs/resources/createCopyResults.js +0 -36
  148. package/dist/cjs/resources/createCopyResults.js.map +0 -1
  149. package/dist/cjs/resources/get-blob.d.ts +0 -25
  150. package/dist/cjs/resources/get-blob.js +0 -42
  151. package/dist/cjs/resources/get-blob.js.map +0 -1
  152. package/dist/cjs/resources/getItemResourcesFilesFromPaths.d.ts +0 -25
  153. package/dist/cjs/resources/getItemResourcesFilesFromPaths.js +0 -49
  154. package/dist/cjs/resources/getItemResourcesFilesFromPaths.js.map +0 -1
  155. package/dist/cjs/resources/getItemResourcesPaths.d.ts +0 -27
  156. package/dist/cjs/resources/getItemResourcesPaths.js +0 -80
  157. package/dist/cjs/resources/getItemResourcesPaths.js.map +0 -1
  158. package/dist/cjs/resources/index.d.ts +0 -30
  159. package/dist/cjs/resources/index.js +0 -34
  160. package/dist/cjs/resources/index.js.map +0 -1
  161. package/dist/cjs/resources/solution-resource.d.ts +0 -35
  162. package/dist/cjs/resources/solution-resource.js +0 -31
  163. package/dist/cjs/resources/solution-resource.js.map +0 -1
  164. package/dist/cjs/resources/transform-resource-paths-to-solution-resources.d.ts +0 -56
  165. package/dist/cjs/resources/transform-resource-paths-to-solution-resources.js +0 -140
  166. package/dist/cjs/resources/transform-resource-paths-to-solution-resources.js.map +0 -1
  167. package/dist/cjs/resources/update-resource.d.ts +0 -27
  168. package/dist/cjs/resources/update-resource.js +0 -52
  169. package/dist/cjs/resources/update-resource.js.map +0 -1
  170. package/dist/cjs/restHelpers.d.ts +0 -634
  171. package/dist/cjs/restHelpers.js +0 -2044
  172. package/dist/cjs/restHelpers.js.map +0 -1
  173. package/dist/cjs/restHelpersGet.d.ts +0 -303
  174. package/dist/cjs/restHelpersGet.js +0 -835
  175. package/dist/cjs/restHelpersGet.js.map +0 -1
  176. package/dist/cjs/sharing/index.d.ts +0 -16
  177. package/dist/cjs/sharing/index.js +0 -20
  178. package/dist/cjs/sharing/index.js.map +0 -1
  179. package/dist/cjs/sharing/share-item-to-groups.d.ts +0 -26
  180. package/dist/cjs/sharing/share-item-to-groups.js +0 -44
  181. package/dist/cjs/sharing/share-item-to-groups.js.map +0 -1
  182. package/dist/cjs/templatization.d.ts +0 -139
  183. package/dist/cjs/templatization.js +0 -311
  184. package/dist/cjs/templatization.js.map +0 -1
  185. package/dist/cjs/trackingHelpers.d.ts +0 -115
  186. package/dist/cjs/trackingHelpers.js +0 -212
  187. package/dist/cjs/trackingHelpers.js.map +0 -1
  188. package/dist/cjs/velocityHelpers.d.ts +0 -68
  189. package/dist/cjs/velocityHelpers.js +0 -151
  190. package/dist/cjs/velocityHelpers.js.map +0 -1
  191. package/dist/cjs/webtoolHelpers.d.ts +0 -57
  192. package/dist/cjs/webtoolHelpers.js +0 -102
  193. package/dist/cjs/webtoolHelpers.js.map +0 -1
  194. package/dist/cjs/workflowHelpers.d.ts +0 -112
  195. package/dist/cjs/workflowHelpers.js +0 -284
  196. package/dist/cjs/workflowHelpers.js.map +0 -1
  197. package/dist/cjs/workforceHelpers.d.ts +0 -121
  198. package/dist/cjs/workforceHelpers.js +0 -720
  199. package/dist/cjs/workforceHelpers.js.map +0 -1
  200. package/dist/cjs/zip-utils.d.ts +0 -85
  201. package/dist/cjs/zip-utils.js +0 -154
  202. package/dist/cjs/zip-utils.js.map +0 -1
  203. package/dist/esm/arcgisRestJS.d.ts +0 -58
  204. package/dist/esm/arcgisRestJS.js +0 -94
  205. package/dist/esm/arcgisRestJS.js.map +0 -1
  206. package/dist/esm/completeItem.d.ts +0 -30
  207. package/dist/esm/completeItem.js +0 -67
  208. package/dist/esm/completeItem.js.map +0 -1
  209. package/dist/esm/create-hub-request-options.d.ts +0 -29
  210. package/dist/esm/create-hub-request-options.js +0 -60
  211. package/dist/esm/create-hub-request-options.js.map +0 -1
  212. package/dist/esm/deleteHelpers/deleteEmptyGroups.d.ts +0 -24
  213. package/dist/esm/deleteHelpers/deleteEmptyGroups.js +0 -38
  214. package/dist/esm/deleteHelpers/deleteEmptyGroups.js.map +0 -1
  215. package/dist/esm/deleteHelpers/deleteGroupIfEmpty.d.ts +0 -27
  216. package/dist/esm/deleteHelpers/deleteGroupIfEmpty.js +0 -95
  217. package/dist/esm/deleteHelpers/deleteGroupIfEmpty.js.map +0 -1
  218. package/dist/esm/deleteHelpers/deleteSolutionContents.d.ts +0 -39
  219. package/dist/esm/deleteHelpers/deleteSolutionContents.js +0 -122
  220. package/dist/esm/deleteHelpers/deleteSolutionContents.js.map +0 -1
  221. package/dist/esm/deleteHelpers/deleteSolutionFolder.d.ts +0 -29
  222. package/dist/esm/deleteHelpers/deleteSolutionFolder.js +0 -77
  223. package/dist/esm/deleteHelpers/deleteSolutionFolder.js.map +0 -1
  224. package/dist/esm/deleteHelpers/deleteSolutionItem.d.ts +0 -31
  225. package/dist/esm/deleteHelpers/deleteSolutionItem.js +0 -48
  226. package/dist/esm/deleteHelpers/deleteSolutionItem.js.map +0 -1
  227. package/dist/esm/deleteHelpers/index.d.ts +0 -22
  228. package/dist/esm/deleteHelpers/index.js +0 -23
  229. package/dist/esm/deleteHelpers/index.js.map +0 -1
  230. package/dist/esm/deleteHelpers/reconstructBuildOrderIds.d.ts +0 -27
  231. package/dist/esm/deleteHelpers/reconstructBuildOrderIds.js +0 -29
  232. package/dist/esm/deleteHelpers/reconstructBuildOrderIds.js.map +0 -1
  233. package/dist/esm/deleteHelpers/removeItems.d.ts +0 -35
  234. package/dist/esm/deleteHelpers/removeItems.js +0 -111
  235. package/dist/esm/deleteHelpers/removeItems.js.map +0 -1
  236. package/dist/esm/deleteHelpers/reportProgress.d.ts +0 -27
  237. package/dist/esm/deleteHelpers/reportProgress.js +0 -42
  238. package/dist/esm/deleteHelpers/reportProgress.js.map +0 -1
  239. package/dist/esm/deleteSolution.d.ts +0 -56
  240. package/dist/esm/deleteSolution.js +0 -101
  241. package/dist/esm/deleteSolution.js.map +0 -1
  242. package/dist/esm/dependencies.d.ts +0 -26
  243. package/dist/esm/dependencies.js +0 -167
  244. package/dist/esm/dependencies.js.map +0 -1
  245. package/dist/esm/featureServiceHelpers.d.ts +0 -833
  246. package/dist/esm/featureServiceHelpers.js +0 -2438
  247. package/dist/esm/featureServiceHelpers.js.map +0 -1
  248. package/dist/esm/formHelpers.d.ts +0 -26
  249. package/dist/esm/formHelpers.js +0 -35
  250. package/dist/esm/formHelpers.js.map +0 -1
  251. package/dist/esm/generalHelpers.d.ts +0 -447
  252. package/dist/esm/generalHelpers.js +0 -903
  253. package/dist/esm/generalHelpers.js.map +0 -1
  254. package/dist/esm/get-subscription-info.d.ts +0 -27
  255. package/dist/esm/get-subscription-info.js +0 -34
  256. package/dist/esm/get-subscription-info.js.map +0 -1
  257. package/dist/esm/getDeletableSolutionInfo.d.ts +0 -30
  258. package/dist/esm/getDeletableSolutionInfo.js +0 -48
  259. package/dist/esm/getDeletableSolutionInfo.js.map +0 -1
  260. package/dist/esm/getItemTypeAbbrev.d.ts +0 -19
  261. package/dist/esm/getItemTypeAbbrev.js +0 -182
  262. package/dist/esm/getItemTypeAbbrev.js.map +0 -1
  263. package/dist/esm/getSolutionSummary.d.ts +0 -28
  264. package/dist/esm/getSolutionSummary.js +0 -95
  265. package/dist/esm/getSolutionSummary.js.map +0 -1
  266. package/dist/esm/index.d.ts +0 -49
  267. package/dist/esm/index.js +0 -50
  268. package/dist/esm/index.js.map +0 -1
  269. package/dist/esm/interfaces.d.ts +0 -1446
  270. package/dist/esm/interfaces.js +0 -69
  271. package/dist/esm/interfaces.js.map +0 -1
  272. package/dist/esm/item-reuse.d.ts +0 -140
  273. package/dist/esm/item-reuse.js +0 -167
  274. package/dist/esm/item-reuse.js.map +0 -1
  275. package/dist/esm/libConnectors.d.ts +0 -73
  276. package/dist/esm/libConnectors.js +0 -105
  277. package/dist/esm/libConnectors.js.map +0 -1
  278. package/dist/esm/migrations/apply-schema.d.ts +0 -24
  279. package/dist/esm/migrations/apply-schema.js +0 -32
  280. package/dist/esm/migrations/apply-schema.js.map +0 -1
  281. package/dist/esm/migrations/is-legacy-solution.d.ts +0 -24
  282. package/dist/esm/migrations/is-legacy-solution.js +0 -35
  283. package/dist/esm/migrations/is-legacy-solution.js.map +0 -1
  284. package/dist/esm/migrations/upgrade-three-dot-one.d.ts +0 -26
  285. package/dist/esm/migrations/upgrade-three-dot-one.js +0 -44
  286. package/dist/esm/migrations/upgrade-three-dot-one.js.map +0 -1
  287. package/dist/esm/migrations/upgrade-three-dot-zero.d.ts +0 -27
  288. package/dist/esm/migrations/upgrade-three-dot-zero.js +0 -39
  289. package/dist/esm/migrations/upgrade-three-dot-zero.js.map +0 -1
  290. package/dist/esm/migrations/upgrade-two-dot-five.d.ts +0 -24
  291. package/dist/esm/migrations/upgrade-two-dot-five.js +0 -69
  292. package/dist/esm/migrations/upgrade-two-dot-five.js.map +0 -1
  293. package/dist/esm/migrations/upgrade-two-dot-four.d.ts +0 -24
  294. package/dist/esm/migrations/upgrade-two-dot-four.js +0 -68
  295. package/dist/esm/migrations/upgrade-two-dot-four.js.map +0 -1
  296. package/dist/esm/migrations/upgrade-two-dot-one.d.ts +0 -7
  297. package/dist/esm/migrations/upgrade-two-dot-one.js +0 -35
  298. package/dist/esm/migrations/upgrade-two-dot-one.js.map +0 -1
  299. package/dist/esm/migrations/upgrade-two-dot-seven.d.ts +0 -23
  300. package/dist/esm/migrations/upgrade-two-dot-seven.js +0 -54
  301. package/dist/esm/migrations/upgrade-two-dot-seven.js.map +0 -1
  302. package/dist/esm/migrations/upgrade-two-dot-six.d.ts +0 -27
  303. package/dist/esm/migrations/upgrade-two-dot-six.js +0 -57
  304. package/dist/esm/migrations/upgrade-two-dot-six.js.map +0 -1
  305. package/dist/esm/migrations/upgrade-two-dot-three.d.ts +0 -23
  306. package/dist/esm/migrations/upgrade-two-dot-three.js +0 -51
  307. package/dist/esm/migrations/upgrade-two-dot-three.js.map +0 -1
  308. package/dist/esm/migrations/upgrade-two-dot-two.d.ts +0 -23
  309. package/dist/esm/migrations/upgrade-two-dot-two.js +0 -54
  310. package/dist/esm/migrations/upgrade-two-dot-two.js.map +0 -1
  311. package/dist/esm/migrations/upgrade-two-dot-zero.d.ts +0 -44
  312. package/dist/esm/migrations/upgrade-two-dot-zero.js +0 -88
  313. package/dist/esm/migrations/upgrade-two-dot-zero.js.map +0 -1
  314. package/dist/esm/migrator.d.ts +0 -25
  315. package/dist/esm/migrator.js +0 -71
  316. package/dist/esm/migrator.js.map +0 -1
  317. package/dist/esm/resourceHelpers.d.ts +0 -192
  318. package/dist/esm/resourceHelpers.js +0 -361
  319. package/dist/esm/resourceHelpers.js.map +0 -1
  320. package/dist/esm/resources/add-resource.d.ts +0 -38
  321. package/dist/esm/resources/add-resource.js +0 -79
  322. package/dist/esm/resources/add-resource.js.map +0 -1
  323. package/dist/esm/resources/addMetadataFromBlob.d.ts +0 -25
  324. package/dist/esm/resources/addMetadataFromBlob.js +0 -39
  325. package/dist/esm/resources/addMetadataFromBlob.js.map +0 -1
  326. package/dist/esm/resources/convert-item-resource-to-storage-resource.d.ts +0 -32
  327. package/dist/esm/resources/convert-item-resource-to-storage-resource.js +0 -66
  328. package/dist/esm/resources/convert-item-resource-to-storage-resource.js.map +0 -1
  329. package/dist/esm/resources/convert-storage-resource-to-item-resource.d.ts +0 -29
  330. package/dist/esm/resources/convert-storage-resource-to-item-resource.js +0 -66
  331. package/dist/esm/resources/convert-storage-resource-to-item-resource.js.map +0 -1
  332. package/dist/esm/resources/copyAssociatedFiles.d.ts +0 -79
  333. package/dist/esm/resources/copyAssociatedFiles.js +0 -339
  334. package/dist/esm/resources/copyAssociatedFiles.js.map +0 -1
  335. package/dist/esm/resources/copyDataIntoItem.d.ts +0 -34
  336. package/dist/esm/resources/copyDataIntoItem.js +0 -40
  337. package/dist/esm/resources/copyDataIntoItem.js.map +0 -1
  338. package/dist/esm/resources/copyMetadataIntoItem.d.ts +0 -27
  339. package/dist/esm/resources/copyMetadataIntoItem.js +0 -40
  340. package/dist/esm/resources/copyMetadataIntoItem.js.map +0 -1
  341. package/dist/esm/resources/copyResourceIntoZip.d.ts +0 -34
  342. package/dist/esm/resources/copyResourceIntoZip.js +0 -69
  343. package/dist/esm/resources/copyResourceIntoZip.js.map +0 -1
  344. package/dist/esm/resources/copyZipIntoItem.d.ts +0 -26
  345. package/dist/esm/resources/copyZipIntoItem.js +0 -49
  346. package/dist/esm/resources/copyZipIntoItem.js.map +0 -1
  347. package/dist/esm/resources/createCopyResults.d.ts +0 -25
  348. package/dist/esm/resources/createCopyResults.js +0 -32
  349. package/dist/esm/resources/createCopyResults.js.map +0 -1
  350. package/dist/esm/resources/get-blob.d.ts +0 -25
  351. package/dist/esm/resources/get-blob.js +0 -38
  352. package/dist/esm/resources/get-blob.js.map +0 -1
  353. package/dist/esm/resources/getItemResourcesFilesFromPaths.d.ts +0 -25
  354. package/dist/esm/resources/getItemResourcesFilesFromPaths.js +0 -45
  355. package/dist/esm/resources/getItemResourcesFilesFromPaths.js.map +0 -1
  356. package/dist/esm/resources/getItemResourcesPaths.d.ts +0 -27
  357. package/dist/esm/resources/getItemResourcesPaths.js +0 -76
  358. package/dist/esm/resources/getItemResourcesPaths.js.map +0 -1
  359. package/dist/esm/resources/index.d.ts +0 -30
  360. package/dist/esm/resources/index.js +0 -31
  361. package/dist/esm/resources/index.js.map +0 -1
  362. package/dist/esm/resources/solution-resource.d.ts +0 -35
  363. package/dist/esm/resources/solution-resource.js +0 -28
  364. package/dist/esm/resources/solution-resource.js.map +0 -1
  365. package/dist/esm/resources/transform-resource-paths-to-solution-resources.d.ts +0 -56
  366. package/dist/esm/resources/transform-resource-paths-to-solution-resources.js +0 -132
  367. package/dist/esm/resources/transform-resource-paths-to-solution-resources.js.map +0 -1
  368. package/dist/esm/resources/update-resource.d.ts +0 -27
  369. package/dist/esm/resources/update-resource.js +0 -48
  370. package/dist/esm/resources/update-resource.js.map +0 -1
  371. package/dist/esm/restHelpers.d.ts +0 -634
  372. package/dist/esm/restHelpers.js +0 -1979
  373. package/dist/esm/restHelpers.js.map +0 -1
  374. package/dist/esm/restHelpersGet.d.ts +0 -303
  375. package/dist/esm/restHelpersGet.js +0 -793
  376. package/dist/esm/restHelpersGet.js.map +0 -1
  377. package/dist/esm/sharing/index.d.ts +0 -16
  378. package/dist/esm/sharing/index.js +0 -17
  379. package/dist/esm/sharing/index.js.map +0 -1
  380. package/dist/esm/sharing/share-item-to-groups.d.ts +0 -26
  381. package/dist/esm/sharing/share-item-to-groups.js +0 -40
  382. package/dist/esm/sharing/share-item-to-groups.js.map +0 -1
  383. package/dist/esm/templatization.d.ts +0 -139
  384. package/dist/esm/templatization.js +0 -291
  385. package/dist/esm/templatization.js.map +0 -1
  386. package/dist/esm/trackingHelpers.d.ts +0 -115
  387. package/dist/esm/trackingHelpers.js +0 -200
  388. package/dist/esm/trackingHelpers.js.map +0 -1
  389. package/dist/esm/velocityHelpers.d.ts +0 -68
  390. package/dist/esm/velocityHelpers.js +0 -144
  391. package/dist/esm/velocityHelpers.js.map +0 -1
  392. package/dist/esm/webtoolHelpers.d.ts +0 -57
  393. package/dist/esm/webtoolHelpers.js +0 -95
  394. package/dist/esm/webtoolHelpers.js.map +0 -1
  395. package/dist/esm/workflowHelpers.d.ts +0 -112
  396. package/dist/esm/workflowHelpers.js +0 -270
  397. package/dist/esm/workflowHelpers.js.map +0 -1
  398. package/dist/esm/workforceHelpers.d.ts +0 -121
  399. package/dist/esm/workforceHelpers.js +0 -691
  400. package/dist/esm/workforceHelpers.js.map +0 -1
  401. package/dist/esm/zip-utils.d.ts +0 -85
  402. package/dist/esm/zip-utils.js +0 -142
  403. package/dist/esm/zip-utils.js.map +0 -1
  404. package/dist/solution.js_commit.txt +0 -10
@@ -1,634 +0,0 @@
1
- /** @license
2
- * Copyright 2018 Esri
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { IAddGroupResponse, IAdditionalGroupSearchOptions, IDependency, IFeatureServiceProperties, IFolderStatusResponse, IItemTemplate, IItemUpdate, IPostProcessArgs, IRelatedItems, IStatusResponse, IUpdate } from "./interfaces";
17
- import { IAddFolderResponse, ICreateItemResponse, ICreateServiceResult, IExtent, IGroup, IGroupAdd, IItem, IParams, ISpatialReference, ItemRelationshipType, IUpdateItemResponse, IArcGISIdentityManagerOptions, IMoveItemResponse, IPagingParams, ISearchOptions, ISearchResult, SearchQueryBuilder, UserSession } from "./arcgisRestJS";
18
- export declare function addItemData(id: string, file: any, authentication: UserSession): Promise<IUpdateItemResponse>;
19
- /**
20
- * Creates a ArcGISIdentityManager via a function so that the global arcgisSolution variable can access authentication.
21
- *
22
- * @param options See https://developers.arcgis.com/arcgis-rest-js/api-reference/arcgis-rest-request/IArcGISIdentityManagerOptions/
23
- * @returns UserSession (ArcGISIdentityManager)
24
- */
25
- export declare function getUserSession(options?: IArcGISIdentityManagerOptions): UserSession;
26
- /**
27
- * Adds a forward relationship between two items.
28
- *
29
- * @param originItemId Origin of relationship
30
- * @param destinationItemId Destination of relationship
31
- * @param relationshipType Type of relationship
32
- * @param authentication Credentials for the request
33
- * @returns A Promise to add item resources.
34
- */
35
- export declare function addForwardItemRelationship(originItemId: string, destinationItemId: string, relationshipType: ItemRelationshipType, authentication: UserSession): Promise<IStatusResponse>;
36
- /**
37
- * Adds forward relationships for an item.
38
- *
39
- * @param originItemId Origin of relationship
40
- * @param destinationRelationships Destinations
41
- * @param authentication Credentials for the request
42
- * @returns A Promise to add item resources.
43
- */
44
- export declare function addForwardItemRelationships(originItemId: string, destinationRelationships: IRelatedItems[], authentication: UserSession): Promise<IStatusResponse[]>;
45
- /**
46
- * Adds a token to the query parameters of a URL.
47
- *
48
- * @param url URL to use as base
49
- * @param authentication Credentials to be used to generate token for URL
50
- * @returns A promise that will resolve with the supplied URL with `token=&lt;token&gt;` added to its query params
51
- * unless either the URL doesn't exist or the token can't be generated
52
- */
53
- export declare function addTokenToUrl(url: string, authentication: UserSession): Promise<string>;
54
- /**
55
- * Calls addToDefinition for the service.
56
- *
57
- * Added retry due to some solutions failing to deploy in specific orgs/hives due to timeouts.
58
- * On the first pass we will use the quicker sync request to add.
59
- * If it fails we will use an async request that will avoid the timeout errors.
60
- *
61
- * @param url URL to use as base
62
- * @param options the info to add to the services definition
63
- * @param skipRetry a boolean to control if retry logic will be used. Defaults to false.
64
- * @param useAsync a boolean to control if we will use an async request
65
- * @returns A promise that will resolve when the request has completed
66
- */
67
- export declare function addToServiceDefinition(url: string, options: any, skipRetry?: boolean, useAsync?: boolean): Promise<void>;
68
- /**
69
- * When using an async request we need to poll the status url to know when the request has completed or failed.
70
- *
71
- * @param result the result returned from the addToDefinition request.
72
- * This will contain a status url or the standard sync result.
73
- * @param authentication Credentials to be used to generate token for URL
74
- * @returns A promise that will resolve when the request has completed
75
- */
76
- export declare function checkRequestStatus(result: any, authentication: any): Promise<void>;
77
- /**
78
- * Converts a general search into an ISearchOptions structure.
79
- *
80
- * @param search Search specified in one of three ways
81
- * @returns Recast search
82
- */
83
- export declare function convertToISearchOptions(search: string | ISearchOptions | SearchQueryBuilder): ISearchOptions;
84
- /**
85
- * Simple validate function to ensure all coordinates are numbers
86
- * In some cases orgs can have null or undefined coordinate values associated with the org extent
87
- *
88
- * @param extent the extent to validate
89
- * @returns the provided extent or a default global extent if some coordinates are not numbers
90
- * @private
91
- */
92
- export declare function _validateExtent(extent: IExtent): IExtent;
93
- /**
94
- * If the request to convert the extent fails it has commonly been due to an invalid extent.
95
- * This function will first attempt to use the provided extent. If it fails it will default to
96
- * the source items extent and if that fails it will then use a default global extent.
97
- *
98
- * @param extent the extent to convert
99
- * @param fallbackExtent the extent to convert if the main extent does not project to the outSR
100
- * @param outSR the spatial reference to project to
101
- * @param geometryServiceUrl the service url for the geometry service to use
102
- * @param authentication the credentials for the requests
103
- * @returns the extent projected to the provided spatial reference
104
- * or the world extent projected to the provided spatial reference
105
- * @private
106
- */
107
- export declare function convertExtentWithFallback(extent: IExtent, fallbackExtent: any, outSR: ISpatialReference, geometryServiceUrl: string, authentication: UserSession): Promise<any>;
108
- /**
109
- * Converts an extent to a specified spatial reference.
110
- *
111
- * @param extent Extent object to check and (possibly) to project
112
- * @param outSR Desired spatial reference
113
- * @param geometryServiceUrl Path to geometry service providing `findTransformations` and `project` services
114
- * @param authentication Credentials for the request
115
- * @returns Original extent if it's already using outSR or the extents projected into the outSR
116
- */
117
- export declare function convertExtent(extent: IExtent, outSR: ISpatialReference, geometryServiceUrl: string, authentication: UserSession): Promise<any>;
118
- /**
119
- * Publishes a feature service as an AGOL item; it does not include its layers and tables
120
- *
121
- * @param newItemTemplate Template of item to be created
122
- * @param authentication Credentials for the request
123
- * @param templateDictionary Hash of facts: org URL, adlib replacements, user; .user.folders property contains a list
124
- * @returns A promise that will resolve with an object reporting success and the Solution id
125
- */
126
- export declare function createFeatureService(newItemTemplate: IItemTemplate, authentication: UserSession, templateDictionary: any): Promise<ICreateServiceResult>;
127
- /**
128
- * Publishes an item and its data, metadata, and resources as an AGOL item.
129
- *
130
- * @param itemInfo Item's `item` section
131
- * @param folderId Id of folder to receive item; null indicates that the item goes into the root
132
- * folder; ignored for Group item type
133
- * @param destinationAuthentication Credentials for for requests to where the item is to be created
134
- * @param itemThumbnailUrl URL to image to use for item thumbnail
135
- * @param itemThumbnailAuthentication Credentials for requests to the thumbnail source
136
- * @param dataFile Item's `data` section
137
- * @param metadataFile Item's metadata file
138
- * @param resourcesFiles Item's resources
139
- * @param access Access to set for item: "public", "org", "private"
140
- * @returns A promise that will resolve with an object reporting success or failure and the Solution id
141
- */
142
- export declare function createFullItem(itemInfo: any, folderId: string | undefined, destinationAuthentication: UserSession, itemThumbnailUrl?: string, itemThumbnailAuthentication?: UserSession, dataFile?: File, metadataFile?: File, resourcesFiles?: File[], access?: string): Promise<ICreateItemResponse>;
143
- /**
144
- * Publishes an item and its data as an AGOL item.
145
- *
146
- * @param itemInfo Item's `item` section
147
- * @param dataInfo Item's `data` section
148
- * @param authentication Credentials for the request
149
- * @param folderId Id of folder to receive item; null indicates that the item goes into the root
150
- * folder; ignored for Group item type
151
- * @param access Access to set for item: "public", "org", "private"
152
- * @returns A promise that will resolve with an object reporting success and the Solution id
153
- */
154
- export declare function createItemWithData(itemInfo: any, dataInfo: any, authentication: UserSession, folderId: string | undefined, access?: string): Promise<ICreateItemResponse>;
155
- /**
156
- * Creates a folder using a numeric suffix to ensure uniqueness if necessary.
157
- *
158
- * @param title Folder title, used as-is if possible and with suffix otherwise
159
- * @param templateDictionary Hash of facts: org URL, adlib replacements, user; .user.folders property contains a list
160
- * of known folder names; function updates list with existing names not yet known, and creates .user.folders if it
161
- * doesn't exist in the dictionary
162
- * @param authentication Credentials for creating folder
163
- * @returns Id of created folder
164
- */
165
- export declare function createUniqueFolder(title: string, templateDictionary: any, authentication: UserSession): Promise<IAddFolderResponse>;
166
- /**
167
- * Creates a group using numeric suffix to ensure uniqueness.
168
- *
169
- * @param title Group title, used as-is if possible and with suffix otherwise
170
- * @param templateDictionary Hash of facts: org URL, adlib replacements, user
171
- * @param authentication Credentials for creating group
172
- * @param owner Optional arg for the Tracking owner
173
- * If the tracking owner is not the one deploying the solution
174
- * tracker groups will be created under the deployment user but
175
- * will be reassigned to the tracking owner.
176
- * @returns Information about created group
177
- */
178
- export declare function createUniqueGroup(title: string, groupItem: IGroupAdd, templateDictionary: any, authentication: UserSession, owner?: string): Promise<IAddGroupResponse>;
179
- /**
180
- * Gets the ids of the dependencies of an AGOL feature service item.
181
- * Dependencies will only exist when the service is a view.
182
- *
183
- * @param itemTemplate Template of item to be created
184
- * @param authentication Credentials for the request
185
- * @returns A promise that will resolve a list of dependencies
186
- */
187
- export declare function extractDependencies(itemTemplate: IItemTemplate, authentication?: UserSession): Promise<IDependency[]>;
188
- /**
189
- * Get json info for the services layers
190
- *
191
- * @param serviceUrl the url for the service
192
- * @param layerList list of base layer info
193
- * @param authentication Credentials for the request
194
- * @returns A promise that will resolve a list of dependencies
195
- */
196
- export declare function getLayers(serviceUrl: string, layerList: any[], authentication: UserSession): Promise<any[]>;
197
- /**
198
- * Add additional options to a layers definition.
199
- *
200
- * @param args The IPostProcessArgs for the request(s)
201
- * @param isPortal boolean to indicate if we are deploying to portal
202
- *
203
- * @returns An array of update instructions
204
- * @private
205
- */
206
- export declare function getLayerUpdates(args: IPostProcessArgs, isPortal: boolean): IUpdate[];
207
- /**
208
- * Moves an AGO item to a specified folder.
209
- *
210
- * @param itemId Id of item to move
211
- * @param folderId Id of folder to receive item
212
- * @param authentication Credentials for the request
213
- * @returns A Promise resolving to the results of the move
214
- */
215
- export declare function moveItemToFolder(itemId: string, folderId: string, authentication: UserSession): Promise<IMoveItemResponse>;
216
- /**
217
- * Moves a list of AGO items to a specified folder.
218
- *
219
- * @param itemIds Ids of items to move
220
- * @param folderId Id of folder to receive item
221
- * @param authentication Credentials for the request
222
- * @returns A Promise resolving to the results of the moves
223
- */
224
- export declare function moveItemsToFolder(itemIds: string[], folderId: any, authentication: UserSession): Promise<IMoveItemResponse[]>;
225
- /**
226
- * Sorts relationships based on order of supporting layers and tables in the service definition
227
- *
228
- * @param layers the layers from the service
229
- * @param tables the tables from the service
230
- * @param relUpdates the relationships to add for the service
231
- *
232
- * @returns An array with relationships that have been sorted
233
- * @private
234
- */
235
- export declare function _sortRelationships(layers: any[], tables: any[], relUpdates: any): any[];
236
- /**
237
- * Add additional options to a layers definition
238
- *
239
- * Added retry due to some solutions failing to deploy in specific orgs/hives
240
- *
241
- *
242
- * @param Update will contain either add, update, or delete from service definition call
243
- * @param skipRetry defaults to false. when true the retry logic will be ignored
244
- * @returns A promise that will resolve when service definition call has completed
245
- * @private
246
- */
247
- export declare function getRequest(update: IUpdate, skipRetry?: boolean, useAsync?: boolean, isPortal?: boolean): Promise<void>;
248
- /**
249
- * Fills in missing data, including full layer and table definitions, in a feature services' definition.
250
- *
251
- * @param itemTemplate Feature service item, data, dependencies definition to be modified
252
- * @param authentication Credentials for the request to AGOL
253
- * @returns A promise that will resolve when fullItem has been updated
254
- * @private
255
- */
256
- export declare function getServiceLayersAndTables(itemTemplate: IItemTemplate, authentication: UserSession): Promise<IItemTemplate>;
257
- /**
258
- * Get service properties for the given url and update key props
259
- *
260
- * @param serviceUrl the feature service url
261
- * @param authentication Credentials for the request to AGOL
262
- * @param workforceService boolean to indicate if extra workforce service steps should be handled
263
- * @returns A promise that will resolve with the service properties
264
- * @private
265
- */
266
- export declare function getFeatureServiceProperties(serviceUrl: string, authentication: UserSession, workforceService?: boolean): Promise<IFeatureServiceProperties>;
267
- /**
268
- * Fetches the configuration of a workflow.
269
- *
270
- * @param itemId Id of the workflow item
271
- * @param workflowBaseUrl URL of the workflow manager, e.g., "https://workflow.arcgis.com/orgId"
272
- * @param authentication Credentials for the request to AGOL
273
- * @returns Promise resolving with the workflow configuration in a zip file
274
- * @throws {WorkflowJsonExceptionDTO} if request to workflow manager fails
275
- */
276
- export declare function getWorkflowConfigurationZip(itemId: string, workflowBaseUrl: string, authentication: UserSession): Promise<File>;
277
- /**
278
- * Sets the configuration of a workflow.
279
- *
280
- * @param itemId Id of the workflow item
281
- * @param configurationZipFile Configuration files in a zip file
282
- * @param workflowBaseUrl URL of the workflow manager, e.g., "https://workflow.arcgis.com/orgId"
283
- * @param authentication Credentials for the request to AGOL
284
- * @returns Promise resolving with the workflow configuration in a zip file
285
- * @throws {WorkflowJsonExceptionDTO} if request to workflow manager fails
286
- */
287
- export declare function setWorkflowConfigurationZip(itemId: string, configurationZipFile: File, workflowBaseUrl: string, authentication: UserSession): Promise<IStatusResponse>;
288
- /**
289
- * Parses the layers array and will filter subsets of Layers and Tables
290
- * Layers and Tables are both returned in the layers array when we access a feature service from the admin api.
291
- *
292
- * @param adminData The data of the feature service
293
- * @returns A mutated version of the provided adminData
294
- * @private
295
- */
296
- export declare function _parseAdminServiceData(adminData: any): any;
297
- /**
298
- * livingatlas designation test.
299
- * These layers should not be templatized or depolyed
300
- *
301
- * @param groupDesignations the items group designations to evaluate
302
- * @returns A boolean indicating if the invalid designation is found in the item info
303
- */
304
- export declare function hasInvalidGroupDesignations(groupDesignations: string): boolean;
305
- /**
306
- * Removes a folder from AGO.
307
- *
308
- * @param folderId Id of a folder to delete
309
- * @param authentication Credentials for the request to AGO
310
- * @returns A promise that will resolve with the result of the request
311
- */
312
- export declare function removeFolder(folderId: string, authentication: UserSession): Promise<IFolderStatusResponse>;
313
- /**
314
- * Removes a group from AGO.
315
- *
316
- * @param groupId Id of a group to delete
317
- * @param authentication Credentials for the request to AGO
318
- * @returns A promise that will resolve with the result of the request
319
- */
320
- export declare function removeGroup(groupId: string, authentication: UserSession): Promise<IStatusResponse>;
321
- /**
322
- * Removes an item from AGO.
323
- *
324
- * @param itemId Id of an item to delete
325
- * @param authentication Credentials for the request to AGO
326
- * @param permanentDelete If true (the default), the item is permanently deleted; if false and the item type
327
- * supports the recycle bin, the item will be put into the recycle bin
328
- * @returns A promise that will resolve with the result of the request
329
- */
330
- export declare function removeItem(itemId: string, authentication: UserSession, permanentDelete?: boolean): Promise<IStatusResponse>;
331
- /**
332
- * Removes an item or group from AGO.
333
- *
334
- * @param itemId Id of an item or group to delete
335
- * @param authentication Credentials for the request to AGO
336
- * @param permanentDelete If true (the default), the item is permanently deleted; if false and the item type
337
- * supports the recycle bin, the item will be put into the recycle bin; note that this does not apply to groups
338
- * @returns A promise that will resolve with the result of the request
339
- */
340
- export declare function removeItemOrGroup(itemId: string, authentication: UserSession, permanentDelete?: boolean): Promise<IStatusResponse>;
341
- /**
342
- * Searches for items matching a query and that the caller has access to.
343
- *
344
- * @param search Search string (e.g., "q=redlands+map") or a more detailed structure that can include authentication
345
- * @returns Promise resolving with search results
346
- * @see https://developers.arcgis.com/rest/users-groups-and-items/search.htm
347
- */
348
- export declare function searchItems(search: string | ISearchOptions | SearchQueryBuilder): Promise<ISearchResult<IItem>>;
349
- /**
350
- * Searches for items matching a query and that the caller has access to, continuing recursively until done.
351
- *
352
- * @param search Search string (e.g., "q=redlands+map") or a more detailed structure that can include authentication
353
- * @param accumulatedResponse Response built from previous requests
354
- * @returns Promise resolving with search results
355
- * @see https://developers.arcgis.com/rest/users-groups-and-items/search.htm
356
- */
357
- export declare function searchAllItems(search: string | ISearchOptions | SearchQueryBuilder, accumulatedResponse?: ISearchResult<IItem>): Promise<ISearchResult<IItem>>;
358
- /**
359
- * Searches for groups matching criteria.
360
- *
361
- * @param searchString Text for which to search, e.g., 'redlands+map', 'type:"Web Map" -type:"Web Mapping Application"'
362
- * @param authentication Credentials for the request to AGO
363
- * @param additionalSearchOptions Adjustments to search, such as tranche size
364
- * @returns A promise that will resolve with a structure with a tranche of results and
365
- * describing how many items are available
366
- * @see https://developers.arcgis.com/rest/users-groups-and-items/group-search.htm
367
- * @see https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm
368
- */
369
- export declare function searchGroups(searchString: string, authentication: UserSession, additionalSearchOptions?: IAdditionalGroupSearchOptions): Promise<ISearchResult<IGroup>>;
370
- /**
371
- * Searches for groups matching criteria recurusively.
372
- *
373
- * @param searchString Text for which to search, e.g., 'redlands+map', 'type:"Web Map" -type:"Web Mapping Application"'
374
- * @param authentication Credentials for the request to AGO
375
- * @param groups List of groups that have been found from previous requests
376
- * @param inPagingParams The paging params for the recurisve searching
377
- *
378
- * @returns A promise that will resolve with all groups that meet the search criteria
379
- */
380
- export declare function searchAllGroups(searchString: string, authentication: UserSession, groups?: IGroup[], inPagingParams?: IPagingParams): Promise<IGroup[]>;
381
- /**
382
- * Searches for group contents matching criteria recursively.
383
- *
384
- * @param groupId Group whose contents are to be searched
385
- * @param searchString Text for which to search, e.g., 'redlands+map', 'type:"Web Map" -type:"Web Mapping Application"'
386
- * @param authentication Credentials for the request to AGO
387
- * @param additionalSearchOptions Adjustments to search, such as tranche size and categories of interest; categories
388
- * are supplied as an array: each array element consists of one or more categories to be ORed; array elements are ANDed
389
- * @param portalUrl Rest Url of the portal to perform the search
390
- * @param accumulatedResponse Response built from previous requests
391
- * @returns A promise that will resolve with a structure with a tranche of results and
392
- * describing how many items are available
393
- * @see https://developers.arcgis.com/rest/users-groups-and-items/group-content-search.htm
394
- * @see https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm
395
- */
396
- export declare function searchGroupAllContents(groupId: string, searchString: string, authentication: UserSession, additionalSearchOptions?: IAdditionalGroupSearchOptions, portalUrl?: string, accumulatedResponse?: ISearchResult<IItem>): Promise<ISearchResult<IItem>>;
397
- /**
398
- * Searches for group contents matching criteria.
399
- *
400
- * @param groupId Group whose contents are to be searched
401
- * @param searchString Text for which to search, e.g., 'redlands+map', 'type:"Web Map" -type:"Web Mapping Application"'
402
- * @param authentication Credentials for the request to AGO
403
- * @param additionalSearchOptions Adjustments to search, such as tranche size and categories of interest; categories
404
- * are supplied as an array: each array element consists of one or more categories to be ORed; array elements are ANDed
405
- * @param portalUrl Rest Url of the portal to perform the search
406
- * @returns A promise that will resolve with a structure with a tranche of results and
407
- * describing how many items are available
408
- * @see https://developers.arcgis.com/rest/users-groups-and-items/group-content-search.htm
409
- * @see https://developers.arcgis.com/rest/users-groups-and-items/search-reference.htm
410
- */
411
- export declare function searchGroupContents(groupId: string, searchString: string, authentication: UserSession, additionalSearchOptions?: IAdditionalGroupSearchOptions, portalUrl?: string): Promise<ISearchResult<IItem>>;
412
- /**
413
- * Reassign ownership of a group
414
- *
415
- * @param groupId Group to remove users from
416
- * @param userName The new owner for the group
417
- * @param authentication Credentials for the request to
418
- *
419
- * @returns A promise that will resolve after the group ownership has been assigned
420
- *
421
- */
422
- export declare function reassignGroup(groupId: string, userName: string, authentication: UserSession): Promise<any>;
423
- /**
424
- * Remove users from a group
425
- *
426
- * @param groupId Group to remove users from
427
- * @param users List of users to remove from the group
428
- * @param authentication Credentials for the request to
429
- *
430
- * @returns A promise that will resolve after the users have been removed
431
- *
432
- */
433
- export declare function removeUsers(groupId: string, users: string[], authentication: UserSession): Promise<any>;
434
- /**
435
- * Shares an item to the defined group
436
- *
437
- * @param groupId Group to share with
438
- * @param id the item id to share with the group
439
- * @param destinationAuthentication Credentials for the request to AGO
440
- * @param owner owner of the group when sharing tracking items (can be different from the deploying user)
441
- *
442
- * @returns A promise that will resolve after the item has been shared
443
- *
444
- */
445
- export declare function shareItem(groupId: string, id: string, destinationAuthentication: UserSession, owner?: string): Promise<void>;
446
- /**
447
- * Updates an item.
448
- *
449
- * @param itemInfo The base info of an item; note that this content will be serialized, which doesn't work
450
- * for binary content
451
- * @param authentication Credentials for request
452
- * @param folderId Item's folder
453
- * @param additionalParams Updates that are put under the `params` property, which is not serialized
454
- * @return
455
- */
456
- export declare function updateItem(itemInfo: IItemUpdate, authentication: UserSession, folderId?: string, additionalParams?: any): Promise<IUpdateItemResponse>;
457
- /**
458
- * Updates a group.
459
- *
460
- * @param groupInfo The base info of a group; note that this content will be serialized, which doesn't work
461
- * for binary content
462
- * @param authentication Credentials for request
463
- * @param additionalParams Updates that are put under the `params` property, which is not serialized
464
- * @returns A Promise that will resolve with the success/failure status of the request
465
- */
466
- export declare function updateGroup(groupInfo: IGroup, authentication: UserSession, additionalParams?: any): Promise<{
467
- success: boolean;
468
- groupId: string;
469
- }>;
470
- /**
471
- * Updates an item.
472
- *
473
- * @param itemInfo The base info of an item
474
- * @param data The items data section
475
- * @param authentication Credentials for requests
476
- * @param thumbnail optional thumbnail to update
477
- * @param access "public" or "org"
478
- * @return
479
- */
480
- export declare function updateItemExtended(itemInfo: IItemUpdate, data: any, authentication: UserSession, thumbnail?: File, access?: string | undefined, templateDictionary?: any): Promise<IUpdateItemResponse>;
481
- /**
482
- * Update an item's base and data using a dictionary.
483
- *
484
- * @param {string} itemId The item ID
485
- * @param {any} templateDictionary The template dictionary
486
- * @param {UserSession} authentication The destination session info
487
- * @returns Promise resolving to successfulness of update
488
- */
489
- export declare function updateItemTemplateFromDictionary(itemId: string, templateDictionary: any, authentication: UserSession): Promise<IUpdateItemResponse>;
490
- /**
491
- * Updates the URL of an item.
492
- *
493
- * @param id AGOL id of item to update
494
- * @param url URL to assign to item's base section
495
- * @param authentication Credentials for the request
496
- * @returns A promise that will resolve with the item id when the item has been updated or an AGO-style JSON failure
497
- * response
498
- */
499
- export declare function updateItemURL(id: string, url: string, authentication: UserSession): Promise<string>;
500
- /**
501
- * Adds a data section to an item.
502
- *
503
- * @param itemId Id of item to receive data file
504
- * @param dataFile Data to be added
505
- * @param authentication Credentials for the request
506
- * @returns Promise reporting success or failure
507
- * @private
508
- */
509
- export declare function _addItemDataFile(itemId: string, dataFile: File, authentication: UserSession): Promise<IUpdateItemResponse>;
510
- /**
511
- * Adds a metadata file to an item.
512
- *
513
- * @param itemId Id of item to receive data file
514
- * @param metadataFile Metadata to be added
515
- * @param authentication Credentials for the request
516
- * @returns Promise reporting success or failure
517
- * @private
518
- */
519
- export declare function _addItemMetadataFile(itemId: string, metadataFile: File, authentication: UserSession): Promise<IUpdateItemResponse>;
520
- /**
521
- * Accumulates the number of relationships in a collection of layers.
522
- *
523
- * @param List of layers to examine
524
- * @returns The number of relationships
525
- * @private
526
- */
527
- export declare function _countRelationships(layers: any[]): number;
528
- /**
529
- * Gets the full definitions of the layers affiliated with a hosted service.
530
- *
531
- * @param serviceUrl URL to hosted service
532
- * @param layerList List of layers at that service...must contain id
533
- * @param authentication Credentials for the request
534
- * @returns A promise that will resolve with a list of the layers from the admin api
535
- * @private
536
- */
537
- export declare function _getCreateServiceOptions(newItemTemplate: IItemTemplate, authentication: UserSession, templateDictionary: any): Promise<any>;
538
- /**
539
- * When the services spatial reference does not match that of it's default extent
540
- * use the out SRs default extent if it exists in the templateDictionary
541
- * this should be set when adding a custom out wkid to the params before calling deploy
542
- * this will help avoid situations where the orgs default extent and default world extent
543
- * will not project successfully to the out SR
544
- *
545
- * @param serviceInfo the object that contains the spatial reference to evaluate
546
- * @param templateDictionary the template dictionary
547
- * @returns the extent to use as the fallback
548
- * @private
549
- */
550
- export declare function _getFallbackExtent(serviceInfo: any, templateDictionary: any): any;
551
- /**
552
- * Add relationships to all layers in one call to retain fully functioning composite relationships
553
- *
554
- * @param args The IPostProcessArgs for the request(s)
555
- * @returns Any relationships that should be updated for the service
556
- * @private
557
- */
558
- export declare function _getRelationshipUpdates(args: IPostProcessArgs): any;
559
- /**
560
- * Get the stored contingent values and structure them to be added to the services layers.
561
- *
562
- * @param args The IPostProcessArgs for the request(s)
563
- * @returns Any contingent values that should be added to the service.
564
- * @private
565
- */
566
- export declare function _getContingentValuesUpdates(args: IPostProcessArgs): any;
567
- /**
568
- * Get the stored subtype values and structure them to be added to the services layers.
569
- *
570
- * @param args The IPostProcessArgs for the request(s)
571
- * @returns Any subtype values that should be added to the service.
572
- * @private
573
- */
574
- export declare function _getSubtypeUpdates(args: IPostProcessArgs): any;
575
- /**
576
- * Get refresh, add, update, or delete definition info
577
- *
578
- * @param url the base admin url for the service
579
- * @param id the id of the layer
580
- * @param obj parameters for the request
581
- * @param args various arguments to help support the request
582
- * @param type type of update the request will handle
583
- * @returns IUpdate that has the request url and arguments
584
- * @private
585
- */
586
- export declare function _getUpdate(url: string, id: any, obj: any, args: any, type: "delete" | "update" | "add" | "refresh"): IUpdate;
587
- /**
588
- * Changes just the domain part of a URL to lowercase.
589
- *
590
- * @param url URL to modify
591
- * @return Adjusted URL
592
- * @see From `getServerRootUrl` in arcgis-rest-js' ArcGISIdentityManager.ts
593
- * @private
594
- */
595
- export declare function _lowercaseDomain(url: string): string;
596
- /**
597
- * Checks the two main parts of an item for unresolved variables and reports any found.
598
- *
599
- * @param base Item's base section
600
- * @param data Item's data section
601
- * @private
602
- */
603
- export declare function _reportVariablesInItem(itemId: string, itemType: string, base: any, data: any): void;
604
- /**
605
- * Updates a feature service item.
606
- *
607
- * @param item Item to update
608
- * @param itemTemplate item template for the new item
609
- * @param serviceInfo Service information
610
- * @param params arcgis-rest-js params to update
611
- * @param isPortal Is the service hosted in a portal?
612
- * @returns Updated item
613
- * @private
614
- */
615
- export declare function _setItemProperties(item: any, itemTemplate: IItemTemplate, serviceInfo: any, params: IParams, isPortal: boolean): any;
616
- /**
617
- * Set isUnique as true for indexes that reference origin relationship keyFields.
618
- *
619
- * @param serviceInfo Service information
620
- * @private
621
- */
622
- export declare function _updateIndexesForRelationshipKeyFields(serviceInfo: any): void;
623
- /**
624
- * Updates the URL of an item.
625
- *
626
- * @param id AGOL id of item to update
627
- * @param url URL to assign to item's base section
628
- * @param authentication Credentials for the request
629
- * @param numAttempts Number of times to try to set the URL if AGO says that it updated the URL, but really didn't
630
- * @returns A promise that will resolve with the item id when the item has been updated or an AGO-style JSON failure
631
- * response
632
- * @private
633
- */
634
- export declare function _updateItemURL(id: string, url: string, authentication: UserSession, numAttempts?: number): Promise<string>;