@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,1321 +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
- /**
17
- * Provides common interfaces.
18
- */
19
- import { IGetRelatedItemsResponse, IGroup, IItem, IItemRelationshipOptions } from "@esri/arcgis-rest-portal";
20
- import { ISpatialReference } from "@esri/arcgis-rest-service-admin";
21
- import { UserSession } from "@esri/arcgis-rest-auth";
22
- export { IUserRequestOptions, IUserSessionOptions, UserSession } from "@esri/arcgis-rest-auth";
23
- export { IAddFolderResponse, ICreateItemResponse, IGetRelatedItemsResponse, IGroup, IGroupAdd, IItem, IPagingParams, IPortal, ISearchResult, ItemRelationshipType, IUpdateItemResponse, IUser } from "@esri/arcgis-rest-portal";
24
- export { ICreateServiceResult, IExtent, ISpatialReference } from "@esri/arcgis-rest-service-admin";
25
- import JSZip from "jszip";
26
- export declare const SolutionTemplateFormatVersion = 1;
27
- export declare const DeployedSolutionFormatVersion = 1;
28
- export declare const UNREACHABLE = "unreachable";
29
- /**
30
- * Flags for storing an item's binary resources.
31
- */
32
- export declare enum EFileType {
33
- Data = 0,
34
- Info = 1,
35
- Metadata = 2,
36
- Resource = 3,
37
- Thumbnail = 4
38
- }
39
- /**
40
- * Text versions of flags for storing an item's binary resources.
41
- */
42
- export declare enum SFileType {
43
- "Data" = 0,
44
- "Info" = 1,
45
- "Metadata" = 2,
46
- "Resource" = 3,
47
- "Thumbnail" = 4
48
- }
49
- /**
50
- * Flags for reporting the status of creating or deploying an item.
51
- */
52
- export declare enum EItemProgressStatus {
53
- Started = 0,
54
- Created = 1,
55
- Cancelled = 2,
56
- Finished = 3,
57
- Ignored = 4,
58
- Failed = 5,
59
- Unknown = 6
60
- }
61
- /**
62
- * Text versions of flags for reporting the status of creating or deploying an item.
63
- */
64
- export declare const SItemProgressStatus: string[];
65
- /**
66
- * Function signature describing internal item-level progress to enable cancellation and rollback in case of failure
67
- *
68
- */
69
- export type IItemProgressCallback = (
70
- /**
71
- * Id of item
72
- */
73
- itemId: string,
74
- /**
75
- * Progress status code (e.g., Started, Created,...)
76
- */
77
- status: EItemProgressStatus,
78
- /**
79
- * Accumulated "costs" of task, which can be divided by the total estimated cost to get percent done
80
- */
81
- costUsed: number,
82
- /**
83
- * Id of created item, which is supplied when status is EItemProgressStatus.Created or .Finished
84
- */
85
- createdItemId?: string) => boolean;
86
- /**
87
- * Function signature describing progress to calling programs
88
- */
89
- export type ISolutionProgressCallback = (
90
- /**
91
- * Percent of total work done
92
- */
93
- percentDone: number,
94
- /**
95
- * Calling-program-supplied id, perhaps used to distinguish between concurrent deployments or deletions
96
- */
97
- jobId?: string,
98
- /**
99
- * Packet of supplemental information provided from certain progress states, e.g., Finished deleting an item
100
- * or deploying a Solution item
101
- */
102
- progressEvent?: ISolutionProgressEvent) => void;
103
- export type INoArgFunction = () => any;
104
- /**
105
- * Result of creating a unique group
106
- */
107
- export interface IAddGroupResponse {
108
- /**
109
- * Success or failure
110
- */
111
- success: boolean;
112
- /**
113
- * Id of created group
114
- */
115
- group: IGroup;
116
- }
117
- /**
118
- * Additional info to be used when searching the contents of a group
119
- */
120
- export interface IAdditionalGroupSearchOptions {
121
- /**
122
- * The number of the first entry requested. The index number is 1-based.
123
- */
124
- start?: number;
125
- /**
126
- * The number of results requested.
127
- */
128
- num?: number;
129
- /**
130
- * Sets sort field for group items. Values: title | owner | avgrating | numviews | created | modified
131
- */
132
- sortField?: string;
133
- /**
134
- * Sets sort order for group items. Values: asc | desc
135
- */
136
- sortOrder?: string;
137
- /**
138
- * The bounding box for a spatial search defined as minx, miny, maxx, or maxy. Spatial search is an
139
- * overlaps/intersects function of the query bbox and the extent of the document. Documents that have
140
- * no extent (for example, mxds, 3dds, lyr) will not be found when doing a bbox search. Document extent
141
- * is assumed to be in the WGS84 geographic coordinate system. E.g.: "-118,32,-116,34"
142
- */
143
- bbox?: string;
144
- /**
145
- * A list of desired categories; maximum of 8
146
- */
147
- categories?: string[];
148
- /**
149
- * Generically definines remaining/unused properties
150
- */
151
- [key: string]: any;
152
- }
153
- /**
154
- * Results of fetching and copying a file associated with an item.
155
- */
156
- export interface IAssociatedFileCopyResults extends IAssociatedFileInfo, ICopyResults {
157
- }
158
- /**
159
- * Information for working with a file associated with an item.
160
- */
161
- export interface IAssociatedFileInfo {
162
- /**
163
- * Resource's "folder"--the prefix before the filename
164
- */
165
- folder: string;
166
- /**
167
- * Resource's filename
168
- */
169
- filename: string;
170
- /**
171
- * An internal classification of the type of file: data, metadata, resource
172
- */
173
- type?: EFileType;
174
- /**
175
- * The mime type of the file
176
- */
177
- mimeType?: string;
178
- /**
179
- * URL where a resource, metadata, or thumbnail of an item or group can be found
180
- */
181
- url?: string;
182
- /**
183
- * File holding a resource, metadata, or thumbnail of an item or group
184
- */
185
- file?: File;
186
- }
187
- /**
188
- * Describes the results of topologically sorting items to be deployed so that dependencies are created before
189
- * the items that depend on them.
190
- */
191
- export interface IBuildOrdering {
192
- /**
193
- * Item ids in order in which items are to be built.
194
- */
195
- buildOrder: string[];
196
- /**
197
- * Item ids of dependencies that were not supplied to ordering algorithm.
198
- */
199
- missingDependencies: string[];
200
- /**
201
- * Dictionary of item ids that need dependency patching; each id has a list of the ids of the dependencies to be patched.
202
- */
203
- itemsToBePatched: IKeyedListsOfStrings;
204
- }
205
- /**
206
- * Holds a complete AGO item.
207
- */
208
- export interface ICompleteItem {
209
- /**
210
- * The "base" information of an item as MIME format text/plain JSON
211
- */
212
- base: IItem;
213
- /**
214
- * The data section of an item as a file even though it may be JSON
215
- */
216
- data: File;
217
- /**
218
- * The item's thumbnail as MIME format image/*
219
- */
220
- thumbnail: File;
221
- /**
222
- * The item's metadata as MIME format application/xml
223
- */
224
- metadata: File;
225
- /**
226
- * The item's resource files
227
- */
228
- resources: File[];
229
- /**
230
- * list of forward relationshipType/relatedItems[] pairs
231
- */
232
- fwdRelatedItems: IRelatedItems[];
233
- /**
234
- * list of reverse relationshipType/relatedItems[] pairs
235
- */
236
- revRelatedItems: IRelatedItems[];
237
- /**
238
- * Additional feature-service-only info
239
- */
240
- featureServiceProperties?: IFeatureServiceProperties;
241
- }
242
- /**
243
- * Results of fetching and copying an item.
244
- */
245
- export interface ICopyResults {
246
- /**
247
- * Status of fetching item from source
248
- */
249
- fetchedFromSource: boolean;
250
- /**
251
- * Status of copying item to destination; undefined if fetchedFromSource is false
252
- */
253
- copiedToDestination?: boolean;
254
- }
255
- export interface ICreateItemFromTemplateResponse {
256
- /**
257
- * Created item
258
- */
259
- item?: IItemTemplate;
260
- /**
261
- * Item's AGO id
262
- */
263
- id: string;
264
- /**
265
- * AGO item type name
266
- */
267
- type: string;
268
- /**
269
- * Does the item need post processing to handle unresolved variables
270
- */
271
- postProcess: boolean;
272
- }
273
- /**
274
- * Options for creating a solution item.
275
- */
276
- export interface ICreateSolutionOptions {
277
- /**
278
- * Calling-program-supplied id, perhaps used to distinguish between concurrent deployments or deletions;
279
- * default: id of group used to create Solution
280
- */
281
- jobId?: string;
282
- /**
283
- * Title to be given to created Solution item; defaults: for a group, group title;
284
- * for an item, random string from common.createShortId()
285
- */
286
- title?: string;
287
- /**
288
- * Snippet to be given to created Solution item; defaults: for a group, group snippet; for an item, ""
289
- */
290
- snippet?: string;
291
- /**
292
- * Description to be given to created Solution item; defaults: for a group, group description; for an item, ""
293
- */
294
- description?: string;
295
- /**
296
- * Tags to be given to created Solution item; defaults: for a group, group tags; for an item, []
297
- */
298
- tags?: string[];
299
- /**
300
- * URL to thumbnail to be given to created Solution item, but see `thumbnail` property; default: ""
301
- */
302
- thumbnailurl?: string;
303
- /**
304
- * Thumbnail file to be given to created Solution item; default: null; has priority over `thumbnailurl`
305
- */
306
- thumbnail?: File;
307
- /**
308
- * Folder in which to place created Solution item; default is top level
309
- */
310
- folderId?: string;
311
- /**
312
- * Facts to be used for creating the Solution item; default: \{\}
313
- */
314
- templateDictionary?: any;
315
- /**
316
- * Should fields be templatized; default: false
317
- */
318
- templatizeFields?: boolean;
319
- /**
320
- * Additional typeKeywords (beyond always-added ["Solution", "Template"]) to be added to Solution item; default: []
321
- */
322
- additionalTypeKeywords?: string[];
323
- /**
324
- * Packet of supplemental information provided from certain progress states, e.g., Finished deleting an item
325
- * or deploying a Solution item
326
- */
327
- progressCallback?: ISolutionProgressCallback;
328
- /**
329
- * Should progress be echoed to the debugging console? default: false
330
- */
331
- consoleProgress?: boolean;
332
- /**
333
- * Placeholder for ids of items to be placed into Solution. DO NOT USE--it is overwritten by function createSolution
334
- */
335
- itemIds?: string[];
336
- /**
337
- * Credentials for the organization with the source items; default: solution item authentication
338
- */
339
- sourceItemAuthentication?: UserSession;
340
- }
341
- /**
342
- * Result of creating a solution item.
343
- */
344
- export interface ICreateSolutionResult {
345
- /**
346
- * Success or failure
347
- */
348
- success: boolean;
349
- /**
350
- * Id of created Solution template
351
- */
352
- solutionTemplateItemId: string;
353
- /**
354
- * When true items with source-itemId type keyword will be reused; default: false
355
- */
356
- enableItemReuse?: boolean;
357
- }
358
- /**
359
- * The relevant elements of a data source that are used for templatization
360
- */
361
- export interface IDatasourceInfo {
362
- /**
363
- * Calculated pattern used for templatization eg. "\{\{itemId.fields.layerId.fieldname\}\}"
364
- */
365
- basePath: string;
366
- /**
367
- * The portal item id eg. "4efe5f693de34620934787ead6693f19"
368
- */
369
- itemId: string;
370
- /**
371
- * The id for the layer from the service eg. 0
372
- */
373
- layerId: number;
374
- /**
375
- * The webmap layer id eg. "TestLayerForDashBoardMap_632"
376
- */
377
- id?: string;
378
- /**
379
- * The id for the layer from a map could be referenced by more than one map for a solution
380
- */
381
- ids: string[];
382
- /**
383
- * The url used for fields lookup
384
- */
385
- url?: string;
386
- /**
387
- * The fields this datasource contains
388
- */
389
- fields: any[];
390
- /**
391
- * The ralative ids for references to a datasource
392
- * Application types like dashboard can reference datasources via realtive widget reference ids
393
- */
394
- references?: any[];
395
- /**
396
- * The details on any relationships that the datasource is involved in
397
- */
398
- relationships: any[];
399
- /**
400
- * The layers adminLayerInfo
401
- * Used to fetch relationship info in some cases
402
- */
403
- adminLayerInfo: any;
404
- }
405
- /**
406
- * Options for deleting a deployed solution item and all of the items that were created as part of that deployment
407
- */
408
- export interface IDeleteSolutionOptions {
409
- /**
410
- * Calling-program-supplied id, perhaps used to distinguish between concurrent deployments or deletions;
411
- * default: id of solution being deleted
412
- */
413
- jobId?: string;
414
- /**
415
- * Packet of supplemental information provided from certain progress states, e.g., Finished deleting an item
416
- * or deploying a Solution item
417
- */
418
- progressCallback?: ISolutionProgressCallback;
419
- /**
420
- * Should progress be echoed to the debugging console? default: false
421
- */
422
- consoleProgress?: boolean;
423
- }
424
- /**
425
- * Storage of dependencies.
426
- */
427
- export interface IDependency {
428
- /**
429
- * Dependency item id for templatization.
430
- */
431
- id: string;
432
- /**
433
- * Dependency service name for name mapping.
434
- * This is used to find appropriate source service name for views.
435
- */
436
- name: string;
437
- }
438
- /**
439
- * IDeployFilename extended to include the URL to the stored resource.
440
- */
441
- export interface IDeployFileCopyPath extends IDeployFilename {
442
- url: string;
443
- }
444
- /**
445
- * File type, folder, and filename for deploying an item's binary resource.
446
- */
447
- export interface IDeployFilename {
448
- type: EFileType;
449
- folder: string;
450
- filename: string;
451
- }
452
- /**
453
- * Options for deploying a solution item and for creating the solution index item representing the deployment
454
- */
455
- export interface IDeploySolutionOptions {
456
- /**
457
- * Calling-program-supplied id, perhaps used to distinguish between concurrent deployments or deletions;
458
- * default: id of solution being deployed
459
- */
460
- jobId?: string;
461
- /**
462
- * Title to be given to deployed Solution item; default: copied from solution item
463
- */
464
- title?: string;
465
- /**
466
- * Snippet to be given to created Solution item; default: copied from solution item
467
- */
468
- snippet?: string;
469
- /**
470
- * Description to be given to created Solution item; default: copied from solution item
471
- */
472
- description?: string;
473
- /**
474
- * Tags to be given to created Solution item; default: copied from solution item
475
- */
476
- tags?: string[];
477
- /**
478
- * URL to thumbnail to be given to created Solution item, but see `thumbnail` property; default: copied from
479
- * solution item
480
- */
481
- thumbnailurl?: string;
482
- /**
483
- * Thumbnail file to be given to created Solution item; default: null; has priority over `thumbnailurl`
484
- */
485
- thumbnail?: File;
486
- /**
487
- * Facts to be used for creating the Solution item; default: \{\}
488
- */
489
- templateDictionary?: any;
490
- /**
491
- * Additional typeKeywords (beyond always-added ["Solution", "Deployed"]) to be added to Solution item; default: []
492
- */
493
- additionalTypeKeywords?: string[];
494
- /**
495
- * When true items with source-itemId type keyword will be reused; default: false
496
- */
497
- enableItemReuse?: boolean;
498
- /**
499
- * Packet of supplemental information provided from certain progress states, e.g., Finished deleting an item
500
- * or deploying a Solution item
501
- */
502
- progressCallback?: ISolutionProgressCallback;
503
- /**
504
- * Should progress be echoed to the debugging console? default: false
505
- */
506
- consoleProgress?: boolean;
507
- /**
508
- * Credentials for the organization with the source items; default: authentication supplied for deployment destination
509
- */
510
- storageAuthentication?: UserSession;
511
- /**
512
- * Version of storage read from Solution item. DO NOT USE--it is overwritten by function deploySolutionFromTemplate
513
- */
514
- storageVersion?: number;
515
- }
516
- /**
517
- * Result of deploying a solution item.
518
- */
519
- export interface IDeploySolutionResult {
520
- /**
521
- * Success or failure
522
- */
523
- success: boolean;
524
- /**
525
- * Id of deployed Solution
526
- */
527
- deployedSolutionItemId: string;
528
- }
529
- /**
530
- * Contains feature-service-specific properties.
531
- */
532
- export interface IFeatureServiceProperties {
533
- service: any;
534
- layers: any[];
535
- tables: any[];
536
- workforceInfos?: any;
537
- contingentValues?: any;
538
- }
539
- /**
540
- * File folder, filename, and data.
541
- */
542
- export interface IFile {
543
- folder: string;
544
- filename: string;
545
- blob: Blob;
546
- }
547
- /**
548
- * Filename, MIME type, and data.
549
- */
550
- export interface IFileMimeTyped {
551
- filename: string;
552
- mimeType: string;
553
- blob: Blob;
554
- }
555
- /**
556
- * Existing Items promises, associated item Ids and types
557
- */
558
- export interface IFindExistingItemsResponse {
559
- existingItemsDefs: Array<Promise<any>>;
560
- existingItemInfos: IFindExistingItemInfos[];
561
- }
562
- /**
563
- * Item Id and item type
564
- */
565
- export interface IFindExistingItemInfos {
566
- itemId: string;
567
- type: string;
568
- }
569
- /**
570
- * Response from removing a folder.
571
- */
572
- export interface IFolderStatusResponse {
573
- /**
574
- * Success or failure
575
- */
576
- success: boolean;
577
- folder: {
578
- username: string;
579
- id: string;
580
- title: string;
581
- };
582
- }
583
- /**
584
- * Undocumented property returned by portal function `getRelatedItems`.
585
- */
586
- interface IGetRelatedItemsResponseAggregation {
587
- total: IGetRelatedItemsResponseAggregationTotal;
588
- }
589
- /**
590
- * Undocumented property returned by portal function `getRelatedItems`.
591
- */
592
- interface IGetRelatedItemsResponseAggregationTotal {
593
- /**
594
- * Number of items returned in this response
595
- */
596
- count: number;
597
- /**
598
- * Description of `count`, e.g., "total"
599
- */
600
- name: string;
601
- }
602
- /**
603
- * Extension of type to represent actual return from portal function `getRelatedItems`.
604
- */
605
- export interface IGetRelatedItemsResponseFull extends IGetRelatedItemsResponse {
606
- /**
607
- * Undocumented property returned by portal function `getRelatedItems`.
608
- */
609
- aggregations: IGetRelatedItemsResponseAggregation;
610
- /**
611
- * Property used in conjunction with `start` to request the next batch of related items.
612
- */
613
- nextkey: string | null;
614
- /**
615
- * Echo of number of related items requested.
616
- */
617
- num: number;
618
- }
619
- /**
620
- * Response from getting the resources of a specified item, extended with paging properties
621
- */
622
- export interface IGetResourcesResponse {
623
- /**
624
- * Total number of responses
625
- */
626
- total: number;
627
- /**
628
- * Resources
629
- */
630
- resources: IResource[];
631
- /**
632
- * The number of the first entry requested. The index number is 1-based.
633
- */
634
- start: number;
635
- /**
636
- * The number of results requested.
637
- */
638
- num: number;
639
- /**
640
- * The 1-based index of the start of the next batch of results; value is -1 if there are no more results
641
- * to be fetched
642
- */
643
- nextStart: number;
644
- }
645
- /**
646
- * Response from getting the category schema set on a group.
647
- *
648
- * @see https://developers.arcgis.com/rest/users-groups-and-items/group-category-schema.htm
649
- */
650
- export interface IGroupCategorySchema {
651
- categorySchema: IGroupCategory[];
652
- }
653
- /**
654
- * Nestable category schema descripion set on a group.
655
- *
656
- * @see https://developers.arcgis.com/rest/users-groups-and-items/group-category-schema.htm
657
- */
658
- export interface IGroupCategory {
659
- /**
660
- * Category title
661
- */
662
- title: string;
663
- /**
664
- * Category description
665
- */
666
- description?: string;
667
- /**
668
- * Child categories of this category
669
- */
670
- categories?: IGroupCategory[];
671
- }
672
- /**
673
- * Hierarchical arrangement of items and their dependencies.
674
- */
675
- export interface IHierarchyElement {
676
- /**
677
- * Item id
678
- */
679
- id: string;
680
- /**
681
- * Items that this item depends on
682
- */
683
- dependencies: IHierarchyElement[];
684
- }
685
- /**
686
- * Subset of portal.IItem containing just the properties that are stored in a template--the item's "base" section.
687
- */
688
- export interface IItemGeneralized {
689
- /**
690
- * Item categories
691
- */
692
- categories?: string[];
693
- /**
694
- * Specifies the locale for which content is returned.
695
- */
696
- culture?: string;
697
- /**
698
- * Item description
699
- */
700
- description?: string;
701
- /**
702
- * _Undocumented AGO item property_
703
- */
704
- documentation?: string;
705
- /**
706
- * An array that defines the bounding rectangle of the item as [[minx, miny], [maxx, maxy]]. Should always be in WGS84.
707
- */
708
- extent?: number[][] | string;
709
- /**
710
- * The unique ID for this item.
711
- */
712
- id: string;
713
- /**
714
- * A JSON object that primarily applies to system requirements, Terms and Conditions, version, supported platforms,
715
- * YouTube video ID, etc., associated with the application.
716
- */
717
- properties?: any;
718
- /**
719
- * A short summary description of the item.
720
- */
721
- snippet?: string;
722
- /**
723
- * The coordinate system of the item.
724
- */
725
- spatialReference?: ISpatialReference;
726
- /**
727
- * An array of user defined tags that describe the item.
728
- */
729
- tags?: string[];
730
- /**
731
- * The title of the item. This is the name that's displayed to users and by which they refer to the item.
732
- */
733
- title?: string;
734
- /**
735
- * The GIS content type of this item. Example types include Web Map, Map Service, Shapefile, and
736
- * Web Mapping Application.
737
- */
738
- type: string;
739
- /**
740
- * An array of keywords that further describes the type of this item. Each item is tagged with a set of
741
- * type keywords that are derived based on its primary type.
742
- */
743
- typeKeywords?: string[];
744
- /**
745
- * The URL for the resource represented by the item. Applies only to items that represent web-accessible
746
- * resources such as map services.
747
- */
748
- url?: string;
749
- /**
750
- * Generically definines remaining/unused properties
751
- */
752
- [key: string]: any;
753
- }
754
- /**
755
- * Extends `IItemRelationshipOptions` for the REST JS `getRelatedItems` call because it doesn't include
756
- * the new `start` and `num` properties.
757
- */
758
- export interface IItemRelationshipOptionsPaging extends IItemRelationshipOptions {
759
- params: {
760
- /**
761
- * Relationship direction sought
762
- */
763
- direction: "forward" | "reverse";
764
- /**
765
- * One-based index of start of next batch to fetch
766
- */
767
- start: number;
768
- /**
769
- * Number of items requested; maximum value is 100
770
- */
771
- num: number;
772
- /**
773
- * Key needed by related records search for second and subsequent batches; value comes from previous fetch
774
- */
775
- nextkey?: string;
776
- };
777
- }
778
- /**
779
- * The templatized form of an item or group.
780
- */
781
- export interface IItemTemplate {
782
- /**
783
- * Item's AGO id
784
- */
785
- itemId: string;
786
- /**
787
- * AGO item type name
788
- */
789
- type: string;
790
- /**
791
- * Fairly unique identifier; set to 'i' + chars 2-8 of a random number in base 36
792
- */
793
- key: string;
794
- /**
795
- * Item base section JSON
796
- */
797
- item: IItemGeneralized;
798
- /**
799
- * Item data section JSON
800
- */
801
- data: any;
802
- /**
803
- * References to item resources
804
- */
805
- resources: any[];
806
- /**
807
- * References to related item
808
- */
809
- relatedItems?: IRelatedItems[];
810
- /**
811
- * List of ids of AGO items needed by this item
812
- */
813
- dependencies: string[];
814
- /**
815
- * List of ids of AGO groups the item needs to be shared with
816
- */
817
- groups: string[];
818
- /**
819
- * Miscellaneous item-specific properties
820
- */
821
- properties: any;
822
- /**
823
- * Estimated relative cost of deploying this item; corresponds to number of progressCallback
824
- * function calls made during while deploying it
825
- */
826
- estimatedDeploymentCostFactor: number;
827
- /**
828
- * Allow for adhoc properties
829
- */
830
- [propName: string]: any;
831
- }
832
- /**
833
- * Function signatures for use in a function lookup array.
834
- */
835
- export interface IItemTemplateConversions {
836
- /**
837
- * Converts an item into a template for use in a Solution.
838
- */
839
- convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: UserSession, srcAuthentication: UserSession, templateDictionary?: any): Promise<IItemTemplate>;
840
- /**
841
- * Creates an item using templatized info in a Solution.
842
- */
843
- createItemFromTemplate(template: IItemTemplate, templateDictionary: any, destinationAuthentication: UserSession, itemProgressCallback: IItemProgressCallback): Promise<ICreateItemFromTemplateResponse>;
844
- }
845
- /**
846
- * Structure for mapping from item type to module with type-specific template-handling code
847
- */
848
- export type moduleHandler = IItemTemplateConversions | undefined | null;
849
- /**
850
- * Mapping from an AGO item type to the code handling that type.
851
- */
852
- export interface IItemTypeModuleMap {
853
- [itemType: string]: moduleHandler;
854
- }
855
- export interface IItemUpdate {
856
- id: string;
857
- /**
858
- * Key-value pair for update parameter.
859
- * N.B.: Use `data` key for binary data; all other keys are serialized, which zeroes out binary data!
860
- */
861
- [key: string]: any;
862
- }
863
- /**
864
- * Type with key access to lists of strings
865
- */
866
- export interface IKeyedListsOfStrings {
867
- [key: string]: string[];
868
- }
869
- /**
870
- * Type with key access to strings
871
- */
872
- export interface IMimeTypes {
873
- [key: string]: string;
874
- }
875
- /**
876
- * A simple interface for a key value pair with number as the key
877
- */
878
- export interface INumberValuePair {
879
- [key: number]: any;
880
- }
881
- /**
882
- * Subset of a esri/portal/Portal used by this library.
883
- */
884
- export interface IPortalSubset {
885
- /**
886
- * Name of the organization.
887
- */
888
- name: string;
889
- /**
890
- * The id of the organization that owns this portal. If null then this is the default portal
891
- * for anonymous and non-organizational users.
892
- */
893
- id: string;
894
- /**
895
- * The REST URL for the portal, for example "https://www.arcgis.com/sharing/rest" for ArcGIS Online
896
- * and "https://www.example.com/arcgis/sharing/rest" for your in-house portal.
897
- */
898
- restUrl: string;
899
- /**
900
- * The URL to the portal instance.
901
- */
902
- portalUrl: string;
903
- /**
904
- * The prefix selected by the organization's administrator to be used with the custom base URL for the portal.
905
- */
906
- urlKey: string;
907
- }
908
- /**
909
- * Storage of arguments for post processing functions
910
- */
911
- export interface IPostProcessArgs {
912
- /**
913
- * Status message to show after the layerDefinition is updated.
914
- */
915
- message: string;
916
- /**
917
- * Key objects to add to the layerDefinition.
918
- */
919
- objects: any;
920
- /**
921
- * Template of item to be created
922
- */
923
- itemTemplate: any;
924
- /**
925
- * Credentials for the request
926
- */
927
- authentication: UserSession;
928
- }
929
- /**
930
- * The relevant elements of a data source that are used for templatization
931
- */
932
- export interface IQuickCaptureDatasource {
933
- /**
934
- * The portal item id for the datasource eg. "4efe5f693de34620934787ead6693f19"
935
- */
936
- featureServiceItemId: string;
937
- /**
938
- * The application item id for the datasource eg. "1d4de1e4-ef58-4e02-9159-7a6e6701cada"
939
- */
940
- dataSourceId: string;
941
- /**
942
- * The url used for the datasource
943
- */
944
- url: number;
945
- }
946
- /**
947
- * A mapping between a relationship type and the list of item ids using that relationship.
948
- */
949
- export interface IRelatedItems {
950
- /**
951
- * The type of relationship between the two items.
952
- *
953
- * @see https://developers.arcgis.com/rest/users-groups-and-items/relationship-types.htm
954
- */
955
- relationshipType: string;
956
- /**
957
- * Ids of related items
958
- */
959
- relatedItemIds: string[];
960
- }
961
- /**
962
- * Summary of a resource.
963
- */
964
- export interface IResource {
965
- /**
966
- * Name of resource
967
- */
968
- resource: string;
969
- /**
970
- * The date the resource was created. Shown in UNIX time in milliseconds.
971
- */
972
- created: number;
973
- /**
974
- * The size of the resource in bytes.
975
- */
976
- size: number;
977
- }
978
- /**
979
- * A solution template AGO item
980
- */
981
- export interface ISolutionItem {
982
- /**
983
- * Item base section JSON
984
- */
985
- item: any;
986
- /**
987
- * Item data section JSON
988
- */
989
- data: ISolutionItemData;
990
- /**
991
- * Supplemental information
992
- */
993
- properties?: IStringValuePair;
994
- /**
995
- * Generically definines remaining/unused properties
996
- */
997
- [key: string]: any;
998
- }
999
- /**
1000
- * The data section of a solution item.
1001
- */
1002
- export interface ISolutionItemData {
1003
- /**
1004
- * General information about the solution template
1005
- */
1006
- metadata: any;
1007
- /**
1008
- * The collection of templates
1009
- */
1010
- templates: IItemTemplate[];
1011
- }
1012
- /**
1013
- * A brief form of an item in a deployed Solution item.
1014
- */
1015
- export interface ISolutionItemPrecis {
1016
- /**
1017
- * The unique ID for this item.
1018
- */
1019
- id: string;
1020
- /**
1021
- * The GIS content type of this item. Example types include Web Map, Map Service, Shapefile, and
1022
- * Web Mapping Application.
1023
- */
1024
- type: string;
1025
- /**
1026
- * The title of the item. This is the name that's displayed to users and by which they refer to the item.
1027
- */
1028
- title: string;
1029
- /**
1030
- * The date the item was last modified. Shown in UNIX time in milliseconds.
1031
- */
1032
- modified: number;
1033
- /**
1034
- * The username of the user who owns this item.
1035
- */
1036
- owner: string;
1037
- }
1038
- /**
1039
- * A brief form of a deployed Solution item.
1040
- */
1041
- export interface ISolutionPrecis {
1042
- /**
1043
- * The unique ID for this Solution item.
1044
- */
1045
- id: string;
1046
- /**
1047
- * The title of the item. This is the name that's displayed to users and by which they refer to the item.
1048
- */
1049
- title: string;
1050
- /**
1051
- * Folder containing the deployed Solution
1052
- */
1053
- folder: string;
1054
- /**
1055
- * Items contained in this solution
1056
- */
1057
- items: ISolutionItemPrecis[];
1058
- /**
1059
- * Ids of groups affiliated with this solution
1060
- */
1061
- groups: string[];
1062
- }
1063
- /**
1064
- * Packet of supplemental information provided via a ISolutionProgressCallback call.
1065
- */
1066
- export interface ISolutionProgressEvent {
1067
- /**
1068
- * Tag describing data
1069
- */
1070
- event: string;
1071
- /**
1072
- * Data
1073
- */
1074
- data?: any;
1075
- }
1076
- /**
1077
- * Information about a resource to be copied into an item.
1078
- */
1079
- export interface ISourceFile {
1080
- /**
1081
- * The portal item id, e.g., "4efe5f693de34620934787ead6693f19", that supplies the resource
1082
- */
1083
- itemId: string;
1084
- /**
1085
- * Resource file
1086
- */
1087
- file: File;
1088
- /**
1089
- * Resource's "folder"--the prefix before the filename
1090
- */
1091
- folder: string;
1092
- /**
1093
- * Resource's filename
1094
- */
1095
- filename: string;
1096
- }
1097
- /**
1098
- * Information for storing a resource in a storage item.
1099
- */
1100
- export interface ISourceFileCopyPath {
1101
- /**
1102
- * The portal item id, e.g., "4efe5f693de34620934787ead6693f19", that supplies the resource
1103
- */
1104
- itemId: string;
1105
- /**
1106
- * URL where a resource, metadata, or thumbnail of an item or group can be found
1107
- */
1108
- url: string;
1109
- /**
1110
- * Resource's "folder"--the prefix before the filename
1111
- */
1112
- folder: string;
1113
- /**
1114
- * Resource's filename
1115
- */
1116
- filename: string;
1117
- }
1118
- /**
1119
- * A simple interface for a key value pair with string as the key
1120
- */
1121
- export interface IStringValuePair {
1122
- [key: string]: any;
1123
- }
1124
- /**
1125
- * A common status response from AGO.
1126
- */
1127
- export interface IStatusResponse {
1128
- /**
1129
- * Success or failure of request
1130
- */
1131
- success: boolean;
1132
- /**
1133
- * AGO id of item for which request was made
1134
- */
1135
- itemId: string;
1136
- }
1137
- /**
1138
- * Storage of update info
1139
- */
1140
- export interface IUpdate {
1141
- /**
1142
- * URL for the update request
1143
- */
1144
- url: string;
1145
- /**
1146
- * object to update the layers definition
1147
- */
1148
- params: any;
1149
- /**
1150
- * arguments for post processing functions
1151
- */
1152
- args: IPostProcessArgs;
1153
- }
1154
- /**
1155
- * Survey 123 create API parameters
1156
- */
1157
- export interface ISurvey123CreateParams {
1158
- /**
1159
- * Title for the survey Form item & folder
1160
- */
1161
- title: string;
1162
- /**
1163
- * Array of tags for the survey Form item
1164
- */
1165
- tags: string[];
1166
- /**
1167
- * Array of typeKeywords for the survey Form item
1168
- */
1169
- typeKeywords: string[];
1170
- /**
1171
- * Description for the survey Form item
1172
- */
1173
- description: string;
1174
- /**
1175
- * The survey form configuration schema. This defines configurable
1176
- * content like the theme, questions, & header/footer text, etc.
1177
- */
1178
- form: any;
1179
- /**
1180
- * The username from the current session
1181
- */
1182
- username: string;
1183
- /**
1184
- * The token from the current session
1185
- */
1186
- token: string;
1187
- /**
1188
- * The portalUrl for Survey123 to direct API requests to
1189
- */
1190
- portalUrl: string;
1191
- }
1192
- /**
1193
- * Successful Survey123 create API response
1194
- */
1195
- export interface ISurvey123CreateSuccess {
1196
- /**
1197
- * Statically defined, always true for success
1198
- */
1199
- success: true;
1200
- /**
1201
- * Resulting Form item ID
1202
- */
1203
- id: string;
1204
- /**
1205
- * Subset of resulting Form item details
1206
- */
1207
- formItemInfo: {
1208
- /**
1209
- * Resulting Form item typeKeywords
1210
- */
1211
- typeKeywords: string[];
1212
- /**
1213
- * Resulting Form item ownerFolder
1214
- */
1215
- ownerFolder: string;
1216
- /**
1217
- * Resulting Form item access
1218
- */
1219
- access: string;
1220
- /**
1221
- * Resulting Form item owner
1222
- */
1223
- owner: string;
1224
- };
1225
- /**
1226
- * Subset of resulting Feature Service(s) details
1227
- */
1228
- featureService: {
1229
- /**
1230
- * Subset of source Feature Service details
1231
- */
1232
- source: {
1233
- /**
1234
- * Resulting Feature Service item ID
1235
- */
1236
- itemId: string;
1237
- /**
1238
- * Generically definines remaining/unused properties
1239
- */
1240
- [key: string]: any;
1241
- };
1242
- /**
1243
- * Generically definines remaining/unused properties
1244
- */
1245
- [key: string]: any;
1246
- };
1247
- /**
1248
- * Generically definines remaining/unused properties
1249
- */
1250
- [key: string]: any;
1251
- }
1252
- /**
1253
- * Unsuccessful Survey123 create API response
1254
- */
1255
- export interface ISurvey123CreateError {
1256
- /**
1257
- * Statically defined, always false when unsuccessful
1258
- */
1259
- success: false;
1260
- /**
1261
- * Error details
1262
- */
1263
- error: {
1264
- /**
1265
- * HTTP error code
1266
- */
1267
- code: number;
1268
- /**
1269
- * Optional, additional details about the error
1270
- */
1271
- details: string[];
1272
- /**
1273
- * Message describing the error
1274
- */
1275
- message: string;
1276
- };
1277
- }
1278
- /**
1279
- * Result details for a successful Survey123 create
1280
- * API request
1281
- */
1282
- export interface ISurvey123CreateResult {
1283
- formId: string;
1284
- featureServiceId: string;
1285
- folderId: string;
1286
- }
1287
- /**
1288
- * Results of sending a zip to an item.
1289
- */
1290
- export interface IZipCopyResults extends IZipInfo, ICopyResults {
1291
- }
1292
- /**
1293
- * Information about a zipped file.
1294
- */
1295
- export interface IZipInfo {
1296
- /**
1297
- * Zip's filename
1298
- */
1299
- filename: string;
1300
- /**
1301
- * JSZip object
1302
- */
1303
- zip: JSZip;
1304
- /**
1305
- * List of files included in this zip
1306
- */
1307
- filelist: any[];
1308
- }
1309
- /**
1310
- * Title information for Velocity data.
1311
- */
1312
- export interface IVelocityTitle {
1313
- /**
1314
- * The current label for the object
1315
- */
1316
- label: string;
1317
- /**
1318
- * Existing titles that have been used in the org
1319
- */
1320
- titles: string[];
1321
- }