@esri/solution-common 3.0.0 → 3.1.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 (261) hide show
  1. package/dist/esm/featureServiceHelpers.js +20 -2
  2. package/dist/esm/featureServiceHelpers.js.map +1 -1
  3. package/dist/esm/resourceHelpers.d.ts +3 -2
  4. package/dist/esm/resourceHelpers.js +4 -3
  5. package/dist/esm/resourceHelpers.js.map +1 -1
  6. package/dist/esm/resources/copyAssociatedFiles.d.ts +17 -2
  7. package/dist/esm/resources/copyAssociatedFiles.js +106 -42
  8. package/dist/esm/resources/copyAssociatedFiles.js.map +1 -1
  9. package/dist/esm/resources/copyResourceIntoZip.js +8 -1
  10. package/dist/esm/resources/copyResourceIntoZip.js.map +1 -1
  11. package/dist/esm/resources/getItemResourcesPaths.js +9 -2
  12. package/dist/esm/resources/getItemResourcesPaths.js.map +1 -1
  13. package/package.json +3 -3
  14. package/dist/node/completeItem.d.ts +0 -29
  15. package/dist/node/completeItem.js +0 -82
  16. package/dist/node/completeItem.js.map +0 -1
  17. package/dist/node/create-hub-request-options.d.ts +0 -29
  18. package/dist/node/create-hub-request-options.js +0 -64
  19. package/dist/node/create-hub-request-options.js.map +0 -1
  20. package/dist/node/deleteHelpers/deleteEmptyGroups.d.ts +0 -24
  21. package/dist/node/deleteHelpers/deleteEmptyGroups.js +0 -42
  22. package/dist/node/deleteHelpers/deleteEmptyGroups.js.map +0 -1
  23. package/dist/node/deleteHelpers/deleteGroupIfEmpty.d.ts +0 -27
  24. package/dist/node/deleteHelpers/deleteGroupIfEmpty.js +0 -97
  25. package/dist/node/deleteHelpers/deleteGroupIfEmpty.js.map +0 -1
  26. package/dist/node/deleteHelpers/deleteSolutionContents.d.ts +0 -38
  27. package/dist/node/deleteHelpers/deleteSolutionContents.js +0 -130
  28. package/dist/node/deleteHelpers/deleteSolutionContents.js.map +0 -1
  29. package/dist/node/deleteHelpers/deleteSolutionFolder.d.ts +0 -29
  30. package/dist/node/deleteHelpers/deleteSolutionFolder.js +0 -79
  31. package/dist/node/deleteHelpers/deleteSolutionFolder.js.map +0 -1
  32. package/dist/node/deleteHelpers/deleteSolutionItem.d.ts +0 -30
  33. package/dist/node/deleteHelpers/deleteSolutionItem.js +0 -54
  34. package/dist/node/deleteHelpers/deleteSolutionItem.js.map +0 -1
  35. package/dist/node/deleteHelpers/index.d.ts +0 -22
  36. package/dist/node/deleteHelpers/index.js +0 -26
  37. package/dist/node/deleteHelpers/index.js.map +0 -1
  38. package/dist/node/deleteHelpers/reconstructBuildOrderIds.d.ts +0 -27
  39. package/dist/node/deleteHelpers/reconstructBuildOrderIds.js +0 -34
  40. package/dist/node/deleteHelpers/reconstructBuildOrderIds.js.map +0 -1
  41. package/dist/node/deleteHelpers/removeItems.d.ts +0 -34
  42. package/dist/node/deleteHelpers/removeItems.js +0 -112
  43. package/dist/node/deleteHelpers/removeItems.js.map +0 -1
  44. package/dist/node/deleteHelpers/reportProgress.d.ts +0 -27
  45. package/dist/node/deleteHelpers/reportProgress.js +0 -46
  46. package/dist/node/deleteHelpers/reportProgress.js.map +0 -1
  47. package/dist/node/deleteSolution.d.ts +0 -55
  48. package/dist/node/deleteSolution.js +0 -107
  49. package/dist/node/deleteSolution.js.map +0 -1
  50. package/dist/node/dependencies.d.ts +0 -26
  51. package/dist/node/dependencies.js +0 -171
  52. package/dist/node/dependencies.js.map +0 -1
  53. package/dist/node/featureServiceHelpers.d.ts +0 -791
  54. package/dist/node/featureServiceHelpers.js +0 -2403
  55. package/dist/node/featureServiceHelpers.js.map +0 -1
  56. package/dist/node/generalHelpers.d.ts +0 -372
  57. package/dist/node/generalHelpers.js +0 -842
  58. package/dist/node/generalHelpers.js.map +0 -1
  59. package/dist/node/get-subscription-info.d.ts +0 -27
  60. package/dist/node/get-subscription-info.js +0 -39
  61. package/dist/node/get-subscription-info.js.map +0 -1
  62. package/dist/node/getDeletableSolutionInfo.d.ts +0 -29
  63. package/dist/node/getDeletableSolutionInfo.js +0 -53
  64. package/dist/node/getDeletableSolutionInfo.js.map +0 -1
  65. package/dist/node/getItemTypeAbbrev.d.ts +0 -19
  66. package/dist/node/getItemTypeAbbrev.js +0 -184
  67. package/dist/node/getItemTypeAbbrev.js.map +0 -1
  68. package/dist/node/getSolutionSummary.d.ts +0 -27
  69. package/dist/node/getSolutionSummary.js +0 -101
  70. package/dist/node/getSolutionSummary.js.map +0 -1
  71. package/dist/node/index.d.ts +0 -44
  72. package/dist/node/index.js +0 -48
  73. package/dist/node/index.js.map +0 -1
  74. package/dist/node/interfaces.d.ts +0 -1321
  75. package/dist/node/interfaces.js +0 -75
  76. package/dist/node/interfaces.js.map +0 -1
  77. package/dist/node/libConnectors.d.ts +0 -73
  78. package/dist/node/libConnectors.js +0 -115
  79. package/dist/node/libConnectors.js.map +0 -1
  80. package/dist/node/migrations/apply-schema.d.ts +0 -24
  81. package/dist/node/migrations/apply-schema.js +0 -36
  82. package/dist/node/migrations/apply-schema.js.map +0 -1
  83. package/dist/node/migrations/is-legacy-solution.d.ts +0 -24
  84. package/dist/node/migrations/is-legacy-solution.js +0 -40
  85. package/dist/node/migrations/is-legacy-solution.js.map +0 -1
  86. package/dist/node/migrations/upgrade-three-dot-one.d.ts +0 -27
  87. package/dist/node/migrations/upgrade-three-dot-one.js +0 -49
  88. package/dist/node/migrations/upgrade-three-dot-one.js.map +0 -1
  89. package/dist/node/migrations/upgrade-three-dot-zero.d.ts +0 -27
  90. package/dist/node/migrations/upgrade-three-dot-zero.js +0 -43
  91. package/dist/node/migrations/upgrade-three-dot-zero.js.map +0 -1
  92. package/dist/node/migrations/upgrade-two-dot-five.d.ts +0 -24
  93. package/dist/node/migrations/upgrade-two-dot-five.js +0 -73
  94. package/dist/node/migrations/upgrade-two-dot-five.js.map +0 -1
  95. package/dist/node/migrations/upgrade-two-dot-four.d.ts +0 -24
  96. package/dist/node/migrations/upgrade-two-dot-four.js +0 -72
  97. package/dist/node/migrations/upgrade-two-dot-four.js.map +0 -1
  98. package/dist/node/migrations/upgrade-two-dot-one.d.ts +0 -7
  99. package/dist/node/migrations/upgrade-two-dot-one.js +0 -39
  100. package/dist/node/migrations/upgrade-two-dot-one.js.map +0 -1
  101. package/dist/node/migrations/upgrade-two-dot-seven.d.ts +0 -23
  102. package/dist/node/migrations/upgrade-two-dot-seven.js +0 -58
  103. package/dist/node/migrations/upgrade-two-dot-seven.js.map +0 -1
  104. package/dist/node/migrations/upgrade-two-dot-six.d.ts +0 -27
  105. package/dist/node/migrations/upgrade-two-dot-six.js +0 -61
  106. package/dist/node/migrations/upgrade-two-dot-six.js.map +0 -1
  107. package/dist/node/migrations/upgrade-two-dot-three.d.ts +0 -23
  108. package/dist/node/migrations/upgrade-two-dot-three.js +0 -55
  109. package/dist/node/migrations/upgrade-two-dot-three.js.map +0 -1
  110. package/dist/node/migrations/upgrade-two-dot-two.d.ts +0 -23
  111. package/dist/node/migrations/upgrade-two-dot-two.js +0 -58
  112. package/dist/node/migrations/upgrade-two-dot-two.js.map +0 -1
  113. package/dist/node/migrations/upgrade-two-dot-zero.d.ts +0 -44
  114. package/dist/node/migrations/upgrade-two-dot-zero.js +0 -95
  115. package/dist/node/migrations/upgrade-two-dot-zero.js.map +0 -1
  116. package/dist/node/migrator.d.ts +0 -25
  117. package/dist/node/migrator.js +0 -77
  118. package/dist/node/migrator.js.map +0 -1
  119. package/dist/node/polyfills.d.ts +0 -40
  120. package/dist/node/polyfills.js +0 -98
  121. package/dist/node/polyfills.js.map +0 -1
  122. package/dist/node/resourceHelpers.d.ts +0 -190
  123. package/dist/node/resourceHelpers.js +0 -390
  124. package/dist/node/resourceHelpers.js.map +0 -1
  125. package/dist/node/resources/add-resource-from-blob.d.ts +0 -26
  126. package/dist/node/resources/add-resource-from-blob.js +0 -52
  127. package/dist/node/resources/add-resource-from-blob.js.map +0 -1
  128. package/dist/node/resources/addMetadataFromBlob.d.ts +0 -25
  129. package/dist/node/resources/addMetadataFromBlob.js +0 -43
  130. package/dist/node/resources/addMetadataFromBlob.js.map +0 -1
  131. package/dist/node/resources/convert-item-resource-to-storage-resource.d.ts +0 -32
  132. package/dist/node/resources/convert-item-resource-to-storage-resource.js +0 -70
  133. package/dist/node/resources/convert-item-resource-to-storage-resource.js.map +0 -1
  134. package/dist/node/resources/convert-storage-resource-to-item-resource.d.ts +0 -29
  135. package/dist/node/resources/convert-storage-resource-to-item-resource.js +0 -70
  136. package/dist/node/resources/convert-storage-resource-to-item-resource.js.map +0 -1
  137. package/dist/node/resources/copyAssociatedFiles.d.ts +0 -52
  138. package/dist/node/resources/copyAssociatedFiles.js +0 -237
  139. package/dist/node/resources/copyAssociatedFiles.js.map +0 -1
  140. package/dist/node/resources/copyDataIntoItem.d.ts +0 -33
  141. package/dist/node/resources/copyDataIntoItem.js +0 -63
  142. package/dist/node/resources/copyDataIntoItem.js.map +0 -1
  143. package/dist/node/resources/copyMetadataIntoItem.d.ts +0 -26
  144. package/dist/node/resources/copyMetadataIntoItem.js +0 -46
  145. package/dist/node/resources/copyMetadataIntoItem.js.map +0 -1
  146. package/dist/node/resources/copyResourceIntoZip.d.ts +0 -33
  147. package/dist/node/resources/copyResourceIntoZip.js +0 -71
  148. package/dist/node/resources/copyResourceIntoZip.js.map +0 -1
  149. package/dist/node/resources/copyZipIntoItem.d.ts +0 -25
  150. package/dist/node/resources/copyZipIntoItem.js +0 -54
  151. package/dist/node/resources/copyZipIntoItem.js.map +0 -1
  152. package/dist/node/resources/createCopyResults.d.ts +0 -25
  153. package/dist/node/resources/createCopyResults.js +0 -36
  154. package/dist/node/resources/createCopyResults.js.map +0 -1
  155. package/dist/node/resources/get-blob.d.ts +0 -26
  156. package/dist/node/resources/get-blob.js +0 -27
  157. package/dist/node/resources/get-blob.js.map +0 -1
  158. package/dist/node/resources/getItemResourcesFilesFromPaths.d.ts +0 -24
  159. package/dist/node/resources/getItemResourcesFilesFromPaths.js +0 -49
  160. package/dist/node/resources/getItemResourcesFilesFromPaths.js.map +0 -1
  161. package/dist/node/resources/getItemResourcesPaths.d.ts +0 -26
  162. package/dist/node/resources/getItemResourcesPaths.js +0 -66
  163. package/dist/node/resources/getItemResourcesPaths.js.map +0 -1
  164. package/dist/node/resources/index.d.ts +0 -29
  165. package/dist/node/resources/index.js +0 -33
  166. package/dist/node/resources/index.js.map +0 -1
  167. package/dist/node/resources/solution-resource.d.ts +0 -35
  168. package/dist/node/resources/solution-resource.js +0 -31
  169. package/dist/node/resources/solution-resource.js.map +0 -1
  170. package/dist/node/resources/transform-resource-paths-to-solution-resources.d.ts +0 -56
  171. package/dist/node/resources/transform-resource-paths-to-solution-resources.js +0 -146
  172. package/dist/node/resources/transform-resource-paths-to-solution-resources.js.map +0 -1
  173. package/dist/node/restHelpers.d.ts +0 -585
  174. package/dist/node/restHelpers.js +0 -1887
  175. package/dist/node/restHelpers.js.map +0 -1
  176. package/dist/node/restHelpersGet.d.ts +0 -288
  177. package/dist/node/restHelpersGet.js +0 -804
  178. package/dist/node/restHelpersGet.js.map +0 -1
  179. package/dist/node/sharing/index.d.ts +0 -16
  180. package/dist/node/sharing/index.js +0 -20
  181. package/dist/node/sharing/index.js.map +0 -1
  182. package/dist/node/sharing/share-item-to-groups.d.ts +0 -26
  183. package/dist/node/sharing/share-item-to-groups.js +0 -44
  184. package/dist/node/sharing/share-item-to-groups.js.map +0 -1
  185. package/dist/node/templatization.d.ts +0 -139
  186. package/dist/node/templatization.js +0 -314
  187. package/dist/node/templatization.js.map +0 -1
  188. package/dist/node/trackingHelpers.d.ts +0 -116
  189. package/dist/node/trackingHelpers.js +0 -217
  190. package/dist/node/trackingHelpers.js.map +0 -1
  191. package/dist/node/velocityHelpers.d.ts +0 -57
  192. package/dist/node/velocityHelpers.js +0 -135
  193. package/dist/node/velocityHelpers.js.map +0 -1
  194. package/dist/node/workforceHelpers.d.ts +0 -115
  195. package/dist/node/workforceHelpers.js +0 -747
  196. package/dist/node/workforceHelpers.js.map +0 -1
  197. package/dist/umd/common.umd.js +0 -15471
  198. package/dist/umd/common.umd.js.map +0 -1
  199. package/dist/umd/common.umd.min.js +0 -19
  200. package/dist/umd/common.umd.min.js.map +0 -1
  201. package/dist/umd/src/completeItem.d.ts +0 -29
  202. package/dist/umd/src/create-hub-request-options.d.ts +0 -29
  203. package/dist/umd/src/deleteHelpers/deleteEmptyGroups.d.ts +0 -24
  204. package/dist/umd/src/deleteHelpers/deleteGroupIfEmpty.d.ts +0 -27
  205. package/dist/umd/src/deleteHelpers/deleteSolutionContents.d.ts +0 -38
  206. package/dist/umd/src/deleteHelpers/deleteSolutionFolder.d.ts +0 -29
  207. package/dist/umd/src/deleteHelpers/deleteSolutionItem.d.ts +0 -30
  208. package/dist/umd/src/deleteHelpers/index.d.ts +0 -22
  209. package/dist/umd/src/deleteHelpers/reconstructBuildOrderIds.d.ts +0 -27
  210. package/dist/umd/src/deleteHelpers/removeItems.d.ts +0 -34
  211. package/dist/umd/src/deleteHelpers/reportProgress.d.ts +0 -27
  212. package/dist/umd/src/deleteSolution.d.ts +0 -55
  213. package/dist/umd/src/dependencies.d.ts +0 -26
  214. package/dist/umd/src/featureServiceHelpers.d.ts +0 -791
  215. package/dist/umd/src/generalHelpers.d.ts +0 -372
  216. package/dist/umd/src/get-subscription-info.d.ts +0 -27
  217. package/dist/umd/src/getDeletableSolutionInfo.d.ts +0 -29
  218. package/dist/umd/src/getItemTypeAbbrev.d.ts +0 -19
  219. package/dist/umd/src/getSolutionSummary.d.ts +0 -27
  220. package/dist/umd/src/index.d.ts +0 -44
  221. package/dist/umd/src/interfaces.d.ts +0 -1321
  222. package/dist/umd/src/libConnectors.d.ts +0 -73
  223. package/dist/umd/src/migrations/apply-schema.d.ts +0 -24
  224. package/dist/umd/src/migrations/is-legacy-solution.d.ts +0 -24
  225. package/dist/umd/src/migrations/upgrade-three-dot-one.d.ts +0 -27
  226. package/dist/umd/src/migrations/upgrade-three-dot-zero.d.ts +0 -27
  227. package/dist/umd/src/migrations/upgrade-two-dot-five.d.ts +0 -24
  228. package/dist/umd/src/migrations/upgrade-two-dot-four.d.ts +0 -24
  229. package/dist/umd/src/migrations/upgrade-two-dot-one.d.ts +0 -7
  230. package/dist/umd/src/migrations/upgrade-two-dot-seven.d.ts +0 -23
  231. package/dist/umd/src/migrations/upgrade-two-dot-six.d.ts +0 -27
  232. package/dist/umd/src/migrations/upgrade-two-dot-three.d.ts +0 -23
  233. package/dist/umd/src/migrations/upgrade-two-dot-two.d.ts +0 -23
  234. package/dist/umd/src/migrations/upgrade-two-dot-zero.d.ts +0 -44
  235. package/dist/umd/src/migrator.d.ts +0 -25
  236. package/dist/umd/src/polyfills.d.ts +0 -40
  237. package/dist/umd/src/resourceHelpers.d.ts +0 -190
  238. package/dist/umd/src/resources/add-resource-from-blob.d.ts +0 -26
  239. package/dist/umd/src/resources/addMetadataFromBlob.d.ts +0 -25
  240. package/dist/umd/src/resources/convert-item-resource-to-storage-resource.d.ts +0 -32
  241. package/dist/umd/src/resources/convert-storage-resource-to-item-resource.d.ts +0 -29
  242. package/dist/umd/src/resources/copyAssociatedFiles.d.ts +0 -52
  243. package/dist/umd/src/resources/copyDataIntoItem.d.ts +0 -33
  244. package/dist/umd/src/resources/copyMetadataIntoItem.d.ts +0 -26
  245. package/dist/umd/src/resources/copyResourceIntoZip.d.ts +0 -33
  246. package/dist/umd/src/resources/copyZipIntoItem.d.ts +0 -25
  247. package/dist/umd/src/resources/createCopyResults.d.ts +0 -25
  248. package/dist/umd/src/resources/get-blob.d.ts +0 -26
  249. package/dist/umd/src/resources/getItemResourcesFilesFromPaths.d.ts +0 -24
  250. package/dist/umd/src/resources/getItemResourcesPaths.d.ts +0 -26
  251. package/dist/umd/src/resources/index.d.ts +0 -29
  252. package/dist/umd/src/resources/solution-resource.d.ts +0 -35
  253. package/dist/umd/src/resources/transform-resource-paths-to-solution-resources.d.ts +0 -56
  254. package/dist/umd/src/restHelpers.d.ts +0 -585
  255. package/dist/umd/src/restHelpersGet.d.ts +0 -288
  256. package/dist/umd/src/sharing/index.d.ts +0 -16
  257. package/dist/umd/src/sharing/share-item-to-groups.d.ts +0 -26
  258. package/dist/umd/src/templatization.d.ts +0 -139
  259. package/dist/umd/src/trackingHelpers.d.ts +0 -116
  260. package/dist/umd/src/velocityHelpers.d.ts +0 -57
  261. package/dist/umd/src/workforceHelpers.d.ts +0 -115
@@ -1,71 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2021 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.copyResourceIntoZipFromInfo = exports.copyResourceIntoZip = void 0;
19
- const createCopyResults_1 = require("./createCopyResults");
20
- const restHelpersGet_1 = require("../restHelpersGet");
21
- // ------------------------------------------------------------------------------------------------------------------ //
22
- /**
23
- * Copies a resource into a zipfile.
24
- *
25
- * @param file Information about the source and destination of the file such as its URL, folder, filename
26
- * @param zipInfo Information about a zipfile such as its name and its zip object
27
- * @returns The result of the copy
28
- */
29
- function copyResourceIntoZip(file, zipInfo) {
30
- // Add it to the zip
31
- if (file.folder) {
32
- zipInfo.zip
33
- .folder(file.folder)
34
- .file(file.filename, file.file, { binary: true });
35
- }
36
- else {
37
- zipInfo.zip.file(file.filename, file.file, { binary: true });
38
- }
39
- zipInfo.filelist.push(file);
40
- return (0, createCopyResults_1.createCopyResults)(file, true);
41
- }
42
- exports.copyResourceIntoZip = copyResourceIntoZip;
43
- /**
44
- * Copies a resource into a zipfile.
45
- *
46
- * @param fileInfo Information about the source and destination of the file such as its URL, folder, filename
47
- * @param sourceAuthentication Credentials for the request to the source
48
- * @param zipInfo Information about a zipfile such as its name and its zip object
49
- * @returns A promise which resolves to the result of the copy
50
- */
51
- function copyResourceIntoZipFromInfo(fileInfo, sourceAuthentication, zipInfo) {
52
- return new Promise(resolve => {
53
- (0, restHelpersGet_1.getBlobAsFile)(fileInfo.url, fileInfo.filename, sourceAuthentication).then((file) => {
54
- // And add it to the zip
55
- if (fileInfo.folder) {
56
- zipInfo.zip
57
- .folder(fileInfo.folder)
58
- .file(fileInfo.filename, file, { binary: true });
59
- }
60
- else {
61
- zipInfo.zip.file(fileInfo.filename, file, { binary: true });
62
- }
63
- zipInfo.filelist.push(fileInfo);
64
- resolve((0, createCopyResults_1.createCopyResults)(fileInfo, true));
65
- }, () => resolve(
66
- // unable to get resource
67
- (0, createCopyResults_1.createCopyResults)(fileInfo, false)));
68
- });
69
- }
70
- exports.copyResourceIntoZipFromInfo = copyResourceIntoZipFromInfo;
71
- //# sourceMappingURL=copyResourceIntoZip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"copyResourceIntoZip.js","sourceRoot":"","sources":["../../../src/resources/copyResourceIntoZip.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AASH,2DAAwD;AACxD,sDAAkD;AAElD,wHAAwH;AAExH;;;;;;GAMG;AACH,SAAgB,mBAAmB,CACjC,IAAiB,EACjB,OAAiB;IAEjB,oBAAoB;IACpB,IAAI,IAAI,CAAC,MAAM,EAAE;QACf,OAAO,CAAC,GAAG;aACR,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;aACnB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;KACrD;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;KAC9D;IACD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,IAAA,qCAAiB,EAAC,IAAI,EAAE,IAAI,CAA+B,CAAC;AACrE,CAAC;AAdD,kDAcC;AAED;;;;;;;GAOG;AACH,SAAgB,2BAA2B,CACzC,QAA6B,EAC7B,oBAAiC,EACjC,OAAiB;IAEjB,OAAO,IAAI,OAAO,CAA6B,OAAO,CAAC,EAAE;QACvD,IAAA,8BAAa,EAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAC,IAAI,CACvE,CAAC,IAAS,EAAE,EAAE;YACZ,wBAAwB;YACxB,IAAI,QAAQ,CAAC,MAAM,EAAE;gBACnB,OAAO,CAAC,GAAG;qBACR,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;qBACvB,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;aACpD;iBAAM;gBACL,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;aAC7D;YACD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAChC,OAAO,CACL,IAAA,qCAAiB,EAAC,QAAQ,EAAE,IAAI,CAA+B,CAChE,CAAC;QACJ,CAAC,EACD,GAAG,EAAE,CACH,OAAO;QACL,yBAAyB;QACzB,IAAA,qCAAiB,EAAC,QAAQ,EAAE,KAAK,CAA+B,CACjE,CACJ,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA5BD,kEA4BC"}
@@ -1,25 +0,0 @@
1
- /** @license
2
- * Copyright 2021 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 { IZipCopyResults, IZipInfo, UserSession } from "../interfaces";
17
- /**
18
- * Copies a zipfile into an AGO item.
19
- *
20
- * @param zipInfo Information about a zipfile such as its name and its zip object
21
- * @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
22
- * @param destinationAuthentication Credentials for the request to the storage
23
- * @returns A promise which resolves to the result of the copy
24
- */
25
- export declare function copyZipIntoItem(zipInfo: IZipInfo, destinationItemId: string, destinationAuthentication: UserSession): Promise<IZipCopyResults>;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2021 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.copyZipIntoItem = void 0;
19
- const arcgis_rest_portal_1 = require("@esri/arcgis-rest-portal");
20
- const generalHelpers_1 = require("../generalHelpers");
21
- const createCopyResults_1 = require("./createCopyResults");
22
- // ------------------------------------------------------------------------------------------------------------------ //
23
- /**
24
- * Copies a zipfile into an AGO item.
25
- *
26
- * @param zipInfo Information about a zipfile such as its name and its zip object
27
- * @param destinationItemId Id of item to receive copy of resource/metadata/thumbnail
28
- * @param destinationAuthentication Credentials for the request to the storage
29
- * @returns A promise which resolves to the result of the copy
30
- */
31
- function copyZipIntoItem(zipInfo, destinationItemId, destinationAuthentication) {
32
- return new Promise(resolve => {
33
- zipInfo.zip
34
- .generateAsync({ type: "blob" })
35
- .then((content) => {
36
- return (0, generalHelpers_1.blobToFile)(content, zipInfo.filename, "application/zip");
37
- })
38
- .then((zipfile) => {
39
- const addResourceOptions = {
40
- id: destinationItemId,
41
- resource: zipfile,
42
- authentication: destinationAuthentication,
43
- params: {
44
- archive: true
45
- }
46
- };
47
- return (0, arcgis_rest_portal_1.addItemResource)(addResourceOptions);
48
- })
49
- .then(() => resolve((0, createCopyResults_1.createCopyResults)(zipInfo, true, true)), () => resolve((0, createCopyResults_1.createCopyResults)(zipInfo, true, false)) // unable to add resource
50
- );
51
- });
52
- }
53
- exports.copyZipIntoItem = copyZipIntoItem;
54
- //# sourceMappingURL=copyZipIntoItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"copyZipIntoItem.js","sourceRoot":"","sources":["../../../src/resources/copyZipIntoItem.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,iEAGkC;AAClC,sDAA+C;AAC/C,2DAAwD;AAExD,wHAAwH;AAExH;;;;;;;GAOG;AACH,SAAgB,eAAe,CAC7B,OAAiB,EACjB,iBAAyB,EACzB,yBAAsC;IAEtC,OAAO,IAAI,OAAO,CAAkB,OAAO,CAAC,EAAE;QAC5C,OAAO,CAAC,GAAG;aACR,aAAa,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;aAC/B,IAAI,CAAC,CAAC,OAAa,EAAE,EAAE;YACtB,OAAO,IAAA,2BAAU,EAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;QAClE,CAAC,CAAC;aACD,IAAI,CAAC,CAAC,OAAa,EAAE,EAAE;YACtB,MAAM,kBAAkB,GAAyB;gBAC/C,EAAE,EAAE,iBAAiB;gBACrB,QAAQ,EAAE,OAAO;gBACjB,cAAc,EAAE,yBAAyB;gBACzC,MAAM,EAAE;oBACN,OAAO,EAAE,IAAI;iBACd;aACF,CAAC;YACF,OAAO,IAAA,oCAAe,EAAC,kBAAkB,CAAC,CAAC;QAC7C,CAAC,CAAC;aACD,IAAI,CACH,GAAG,EAAE,CACH,OAAO,CAAC,IAAA,qCAAiB,EAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAoB,CAAC,EACpE,GAAG,EAAE,CACH,OAAO,CAAC,IAAA,qCAAiB,EAAC,OAAO,EAAE,IAAI,EAAE,KAAK,CAAoB,CAAC,CAAC,yBAAyB;SAChG,CAAC;IACN,CAAC,CAAC,CAAC;AACL,CAAC;AA7BD,0CA6BC"}
@@ -1,25 +0,0 @@
1
- /** @license
2
- * Copyright 2021 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 { IAssociatedFileCopyResults, IZipCopyResults } from "../interfaces";
17
- /**
18
- * Generates IAssociatedFileCopyResults object.
19
- *
20
- * @param fileInfo Info about item that was to be copied
21
- * @param fetchedFromSource Status of fetching item from source
22
- * @param copiedToDestination Status of copying item to destination
23
- * @returns IAssociatedFileCopyResults object
24
- */
25
- export declare function createCopyResults(fileInfo: any, fetchedFromSource: boolean, copiedToDestination?: boolean): IAssociatedFileCopyResults | IZipCopyResults;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2021 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.createCopyResults = void 0;
19
- // ------------------------------------------------------------------------------------------------------------------ //
20
- /**
21
- * Generates IAssociatedFileCopyResults object.
22
- *
23
- * @param fileInfo Info about item that was to be copied
24
- * @param fetchedFromSource Status of fetching item from source
25
- * @param copiedToDestination Status of copying item to destination
26
- * @returns IAssociatedFileCopyResults object
27
- */
28
- function createCopyResults(fileInfo, fetchedFromSource, copiedToDestination) {
29
- return {
30
- ...fileInfo,
31
- fetchedFromSource,
32
- copiedToDestination
33
- };
34
- }
35
- exports.createCopyResults = createCopyResults;
36
- //# sourceMappingURL=createCopyResults.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createCopyResults.js","sourceRoot":"","sources":["../../../src/resources/createCopyResults.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,wHAAwH;AAExH;;;;;;;GAOG;AACH,SAAgB,iBAAiB,CAC/B,QAAa,EACb,iBAA0B,EAC1B,mBAA6B;IAE7B,OAAO;QACL,GAAG,QAAQ;QACX,iBAAiB;QACjB,mBAAmB;KACpB,CAAC;AACJ,CAAC;AAVD,8CAUC"}
@@ -1,26 +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 { UserSession } from "../interfaces";
17
- import { IRequestOptions } from "@esri/arcgis-rest-request";
18
- /**
19
- * Gets a Blob from a web site.
20
- *
21
- * @param url Address of Blob
22
- * @param authentication Credentials for the request
23
- * @param requestOptions - Options for the request, including parameters relevant to the endpoint.
24
- * @returns Promise that will resolve with Blob or an AGO-style JSON failure response
25
- */
26
- export declare function getBlob(url: string, authentication: UserSession, requestOptions?: IRequestOptions): Promise<Blob>;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBlob = void 0;
4
- const arcgis_rest_request_1 = require("@esri/arcgis-rest-request");
5
- /**
6
- * Gets a Blob from a web site.
7
- *
8
- * @param url Address of Blob
9
- * @param authentication Credentials for the request
10
- * @param requestOptions - Options for the request, including parameters relevant to the endpoint.
11
- * @returns Promise that will resolve with Blob or an AGO-style JSON failure response
12
- */
13
- function getBlob(url, authentication, requestOptions = {}) {
14
- if (!url) {
15
- return Promise.reject("Url must be provided");
16
- }
17
- const blobRequestOptions = {
18
- authentication: authentication,
19
- rawResponse: true,
20
- ...requestOptions
21
- };
22
- return (0, arcgis_rest_request_1.request)(url, blobRequestOptions).then(response => {
23
- return response.blob();
24
- });
25
- }
26
- exports.getBlob = getBlob;
27
- //# sourceMappingURL=get-blob.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-blob.js","sourceRoot":"","sources":["../../../src/resources/get-blob.ts"],"names":[],"mappings":";;;AAgBA,mEAAqE;AACrE;;;;;;;GAOG;AACH,SAAgB,OAAO,CACrB,GAAW,EACX,cAA2B,EAC3B,iBAAkC,EAAE;IAEpC,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;KAC/C;IAED,MAAM,kBAAkB,GAAG;QACzB,cAAc,EAAE,cAAc;QAC9B,WAAW,EAAE,IAAI;QACjB,GAAG,cAAc;KACC,CAAC;IAErB,OAAO,IAAA,6BAAO,EAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;QACtD,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC;AAlBD,0BAkBC"}
@@ -1,24 +0,0 @@
1
- /** @license
2
- * Copyright 2021 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 { ISourceFile, ISourceFileCopyPath, UserSession } from "../interfaces";
17
- /**
18
- * Fetches a set of resources defined by paths.
19
- *
20
- * @param resourceItemFilePaths Paths to resources in source
21
- * @param authentication Credentials for the request to the source
22
- * @returns A promise which resolves with an array of resource files
23
- */
24
- export declare function getItemResourcesFilesFromPaths(resourceItemFilePaths: ISourceFileCopyPath[], authentication: UserSession): Promise<ISourceFile[]>;
@@ -1,49 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2021 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.getItemResourcesFilesFromPaths = void 0;
19
- const restHelpersGet_1 = require("../restHelpersGet");
20
- // ------------------------------------------------------------------------------------------------------------------ //
21
- /**
22
- * Fetches a set of resources defined by paths.
23
- *
24
- * @param resourceItemFilePaths Paths to resources in source
25
- * @param authentication Credentials for the request to the source
26
- * @returns A promise which resolves with an array of resource files
27
- */
28
- function getItemResourcesFilesFromPaths(resourceItemFilePaths, authentication) {
29
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
30
- return Promise.all(resourceItemFilePaths.map(fileInfo => {
31
- return new Promise(resolve => {
32
- (0, restHelpersGet_1.getBlobAsFile)(fileInfo.url, fileInfo.filename, authentication).then(file => {
33
- resolve({
34
- itemId: fileInfo.itemId,
35
- file,
36
- folder: fileInfo.folder,
37
- filename: fileInfo.filename
38
- });
39
- }, () => {
40
- resolve(null);
41
- });
42
- });
43
- })).then((files) => {
44
- // Discard failures
45
- return files.filter(file => !!file);
46
- });
47
- }
48
- exports.getItemResourcesFilesFromPaths = getItemResourcesFilesFromPaths;
49
- //# sourceMappingURL=getItemResourcesFilesFromPaths.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getItemResourcesFilesFromPaths.js","sourceRoot":"","sources":["../../../src/resources/getItemResourcesFilesFromPaths.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,sDAAkD;AAElD,wHAAwH;AAExH;;;;;;GAMG;AACH,SAAgB,8BAA8B,CAC5C,qBAA4C,EAC5C,cAA2B;IAE3B,mEAAmE;IACnE,OAAO,OAAO,CAAC,GAAG,CAChB,qBAAqB,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;QACnC,OAAO,IAAI,OAAO,CAAc,OAAO,CAAC,EAAE;YACxC,IAAA,8BAAa,EAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,IAAI,CACjE,IAAI,CAAC,EAAE;gBACL,OAAO,CAAC;oBACN,MAAM,EAAE,QAAQ,CAAC,MAAM;oBACvB,IAAI;oBACJ,MAAM,EAAE,QAAQ,CAAC,MAAM;oBACvB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;iBACb,CAAC,CAAC;YACpB,CAAC,EACD,GAAG,EAAE;gBACH,OAAO,CAAC,IAAI,CAAC,CAAC;YAChB,CAAC,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CACH,CAAC,IAAI,CAAC,CAAC,KAAoB,EAAE,EAAE;QAC9B,mBAAmB;QACnB,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC;AA3BD,wEA2BC"}
@@ -1,26 +0,0 @@
1
- /** @license
2
- * Copyright 2020 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 { IItemTemplate, ISourceFileCopyPath, UserSession } from "../interfaces";
17
- /**
18
- * Updates the solution item with resources from the itemTemplate
19
- *
20
- * @param itemTemplate Template for AGOL item
21
- * @param solutionItemId item id for the solution
22
- * @param authentication Credentials for the request to the storage
23
- * @param storageVersion Version of the Solution template
24
- * @returns A promise which resolves with an array of paths to resources for the item
25
- */
26
- export declare function getItemResourcesPaths(itemTemplate: IItemTemplate, solutionItemId: string, authentication: UserSession, storageVersion?: number): Promise<ISourceFileCopyPath[]>;
@@ -1,66 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2020 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.getItemResourcesPaths = void 0;
19
- const restHelpersGet_1 = require("../restHelpersGet");
20
- const resourceHelpers_1 = require("../resourceHelpers");
21
- // ------------------------------------------------------------------------------------------------------------------ //
22
- /**
23
- * Updates the solution item with resources from the itemTemplate
24
- *
25
- * @param itemTemplate Template for AGOL item
26
- * @param solutionItemId item id for the solution
27
- * @param authentication Credentials for the request to the storage
28
- * @param storageVersion Version of the Solution template
29
- * @returns A promise which resolves with an array of paths to resources for the item
30
- */
31
- function getItemResourcesPaths(itemTemplate, solutionItemId, authentication, storageVersion = 0) {
32
- // get the resources for the item
33
- return (0, restHelpersGet_1.getItemResources)(itemTemplate.itemId, authentication).then(resourceResponse => {
34
- // map out the resource names and filter for things we
35
- // don't want transferred at this time
36
- const itemResources = resourceResponse.resources
37
- .map((r) => r.resource)
38
- .filter((res) => {
39
- let result = true;
40
- // StoryMaps has a set of resources that must be interpolated and can not be
41
- // directly copied, so they must be filtered out. Sub-optimal as it spreads
42
- // type specific logic around the app, but until we refactor how resources
43
- // are handled, this is necessary
44
- if (itemTemplate.type === "StoryMap") {
45
- if (["oembed.json", "oembed.xml"].indexOf(res) !== -1) {
46
- result = false;
47
- }
48
- if (res.match(/^draft_[\s\S]*.json$/)) {
49
- result = false;
50
- }
51
- }
52
- // Web-Experiences stores drafts in the config.json file; we don't create Solutions with drafts
53
- if (itemTemplate.type === "Web Experience") {
54
- if (res === "config/config.json") {
55
- result = false;
56
- }
57
- }
58
- return result;
59
- });
60
- // create the filePaths
61
- const resourceItemFilePaths = (0, resourceHelpers_1.generateSourceFilePaths)(authentication.portal, itemTemplate.itemId, itemTemplate.item.thumbnail, itemResources, itemTemplate.type === "Group", storageVersion);
62
- return Promise.resolve(resourceItemFilePaths);
63
- });
64
- }
65
- exports.getItemResourcesPaths = getItemResourcesPaths;
66
- //# sourceMappingURL=getItemResourcesPaths.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getItemResourcesPaths.js","sourceRoot":"","sources":["../../../src/resources/getItemResourcesPaths.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,sDAAqD;AACrD,wDAA6D;AAG7D,wHAAwH;AAExH;;;;;;;;GAQG;AACH,SAAgB,qBAAqB,CACnC,YAA2B,EAC3B,cAAsB,EACtB,cAA2B,EAC3B,cAAc,GAAG,CAAC;IAElB,iCAAiC;IACjC,OAAO,IAAA,iCAAgB,EAAC,YAAY,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,IAAI,CAC/D,gBAAgB,CAAC,EAAE;QACjB,sDAAsD;QACtD,sCAAsC;QACtC,MAAM,aAAa,GAAG,gBAAgB,CAAC,SAAS;aAC7C,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;aAC3B,MAAM,CAAC,CAAC,GAAQ,EAAE,EAAE;YACnB,IAAI,MAAM,GAAG,IAAI,CAAC;YAClB,4EAA4E;YAC5E,2EAA2E;YAC3E,0EAA0E;YAC1E,iCAAiC;YACjC,IAAI,YAAY,CAAC,IAAI,KAAK,UAAU,EAAE;gBACpC,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE;oBACrD,MAAM,GAAG,KAAK,CAAC;iBAChB;gBACD,IAAI,GAAG,CAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE;oBACrC,MAAM,GAAG,KAAK,CAAC;iBAChB;aACF;YACD,+FAA+F;YAC/F,IAAI,YAAY,CAAC,IAAI,KAAK,gBAAgB,EAAE;gBAC1C,IAAI,GAAG,KAAK,oBAAoB,EAAE;oBAChC,MAAM,GAAG,KAAK,CAAC;iBAChB;aACF;YACD,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC,CAAC;QACL,uBAAuB;QACvB,MAAM,qBAAqB,GAA0B,IAAA,yCAAuB,EAC1E,cAAc,CAAC,MAAM,EACrB,YAAY,CAAC,MAAM,EACnB,YAAY,CAAC,IAAI,CAAC,SAAS,EAC3B,aAAa,EACb,YAAY,CAAC,IAAI,KAAK,OAAO,EAC7B,cAAc,CACf,CAAC;QACF,OAAO,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC,CACF,CAAC;AACJ,CAAC;AA/CD,sDA+CC"}
@@ -1,29 +0,0 @@
1
- /** @license
2
- * Copyright 2020 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
- export * from "./addMetadataFromBlob";
17
- export * from "./add-resource-from-blob";
18
- export * from "./convert-item-resource-to-storage-resource";
19
- export * from "./convert-storage-resource-to-item-resource";
20
- export * from "./copyAssociatedFiles";
21
- export * from "./copyDataIntoItem";
22
- export * from "./copyMetadataIntoItem";
23
- export * from "./copyResourceIntoZip";
24
- export * from "./copyZipIntoItem";
25
- export * from "./createCopyResults";
26
- export * from "./get-blob";
27
- export * from "./getItemResourcesFilesFromPaths";
28
- export * from "./getItemResourcesPaths";
29
- export * from "./solution-resource";
@@ -1,33 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2020 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const tslib_1 = require("tslib");
19
- tslib_1.__exportStar(require("./addMetadataFromBlob"), exports);
20
- tslib_1.__exportStar(require("./add-resource-from-blob"), exports);
21
- tslib_1.__exportStar(require("./convert-item-resource-to-storage-resource"), exports);
22
- tslib_1.__exportStar(require("./convert-storage-resource-to-item-resource"), exports);
23
- tslib_1.__exportStar(require("./copyAssociatedFiles"), exports);
24
- tslib_1.__exportStar(require("./copyDataIntoItem"), exports);
25
- tslib_1.__exportStar(require("./copyMetadataIntoItem"), exports);
26
- tslib_1.__exportStar(require("./copyResourceIntoZip"), exports);
27
- tslib_1.__exportStar(require("./copyZipIntoItem"), exports);
28
- tslib_1.__exportStar(require("./createCopyResults"), exports);
29
- tslib_1.__exportStar(require("./get-blob"), exports);
30
- tslib_1.__exportStar(require("./getItemResourcesFilesFromPaths"), exports);
31
- tslib_1.__exportStar(require("./getItemResourcesPaths"), exports);
32
- tslib_1.__exportStar(require("./solution-resource"), exports);
33
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,gEAAsC;AACtC,mEAAyC;AACzC,sFAA4D;AAC5D,sFAA4D;AAC5D,gEAAsC;AACtC,6DAAmC;AACnC,iEAAuC;AACvC,gEAAsC;AACtC,4DAAkC;AAClC,8DAAoC;AACpC,qDAA2B;AAC3B,2EAAiD;AACjD,kEAAwC;AACxC,8DAAoC"}
@@ -1,35 +0,0 @@
1
- /** @license
2
- * Copyright 2020 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
- * Denotes type information for a SolutionResource
18
- */
19
- export declare enum SolutionResourceType {
20
- thumbnail = 0,
21
- metadata = 1,
22
- resource = 2,
23
- data = 3,
24
- fakezip = 4,
25
- info = 5
26
- }
27
- /**
28
- * Solution Resource information
29
- */
30
- export interface ISolutionResource {
31
- filename: string;
32
- type: SolutionResourceType;
33
- path: string;
34
- sourceUrl?: string;
35
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2020 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.SolutionResourceType = void 0;
19
- /**
20
- * Denotes type information for a SolutionResource
21
- */
22
- var SolutionResourceType;
23
- (function (SolutionResourceType) {
24
- SolutionResourceType[SolutionResourceType["thumbnail"] = 0] = "thumbnail";
25
- SolutionResourceType[SolutionResourceType["metadata"] = 1] = "metadata";
26
- SolutionResourceType[SolutionResourceType["resource"] = 2] = "resource";
27
- SolutionResourceType[SolutionResourceType["data"] = 3] = "data";
28
- SolutionResourceType[SolutionResourceType["fakezip"] = 4] = "fakezip";
29
- SolutionResourceType[SolutionResourceType["info"] = 5] = "info";
30
- })(SolutionResourceType = exports.SolutionResourceType || (exports.SolutionResourceType = {}));
31
- //# sourceMappingURL=solution-resource.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"solution-resource.js","sourceRoot":"","sources":["../../../src/resources/solution-resource.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH;;GAEG;AACH,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,yEAAS,CAAA;IACT,uEAAQ,CAAA;IACR,uEAAQ,CAAA;IACR,+DAAI,CAAA;IACJ,qEAAO,CAAA;IACP,+DAAI,CAAA;AACN,CAAC,EAPW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAO/B"}