@esri/solution-common 1.3.10 → 1.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/dist/esm/completeItem.d.ts +1 -1
  2. package/dist/esm/completeItem.js +1 -1
  3. package/dist/esm/deleteHelpers/deleteEmptyGroups.d.ts +1 -1
  4. package/dist/esm/deleteHelpers/deleteEmptyGroups.js +1 -1
  5. package/dist/esm/deleteHelpers/deleteGroupIfEmpty.d.ts +1 -1
  6. package/dist/esm/deleteHelpers/deleteGroupIfEmpty.js +1 -1
  7. package/dist/esm/deleteHelpers/deleteSolutionContents.d.ts +1 -1
  8. package/dist/esm/deleteHelpers/deleteSolutionContents.js +1 -1
  9. package/dist/esm/deleteHelpers/deleteSolutionFolder.d.ts +1 -1
  10. package/dist/esm/deleteHelpers/deleteSolutionFolder.js +1 -1
  11. package/dist/esm/deleteHelpers/deleteSolutionItem.d.ts +1 -1
  12. package/dist/esm/deleteHelpers/deleteSolutionItem.js +1 -1
  13. package/dist/esm/deleteHelpers/reconstructBuildOrderIds.d.ts +1 -1
  14. package/dist/esm/deleteHelpers/reconstructBuildOrderIds.js +1 -1
  15. package/dist/esm/deleteHelpers/removeItems.d.ts +1 -1
  16. package/dist/esm/deleteHelpers/removeItems.js +1 -1
  17. package/dist/esm/deleteSolution.d.ts +2 -2
  18. package/dist/esm/deleteSolution.js +2 -2
  19. package/dist/esm/dependencies.d.ts +1 -1
  20. package/dist/esm/dependencies.js +2 -2
  21. package/dist/esm/featureServiceHelpers.d.ts +99 -60
  22. package/dist/esm/featureServiceHelpers.js +99 -60
  23. package/dist/esm/featureServiceHelpers.js.map +1 -1
  24. package/dist/esm/generalHelpers.d.ts +34 -34
  25. package/dist/esm/generalHelpers.js +36 -36
  26. package/dist/esm/getDeletableSolutionInfo.d.ts +1 -1
  27. package/dist/esm/getDeletableSolutionInfo.js +1 -1
  28. package/dist/esm/getSolutionSummary.d.ts +1 -1
  29. package/dist/esm/getSolutionSummary.js +1 -1
  30. package/dist/esm/interfaces.d.ts +438 -10
  31. package/dist/esm/interfaces.js +7 -1
  32. package/dist/esm/interfaces.js.map +1 -1
  33. package/dist/esm/libConnectors.d.ts +5 -5
  34. package/dist/esm/libConnectors.js +5 -5
  35. package/dist/esm/migrations/apply-schema.d.ts +1 -0
  36. package/dist/esm/migrations/apply-schema.js +1 -0
  37. package/dist/esm/migrations/apply-schema.js.map +1 -1
  38. package/dist/esm/migrations/upgrade-three-dot-one.d.ts +1 -0
  39. package/dist/esm/migrations/upgrade-three-dot-one.js +1 -0
  40. package/dist/esm/migrations/upgrade-three-dot-one.js.map +1 -1
  41. package/dist/esm/migrations/upgrade-two-dot-seven.d.ts +7 -0
  42. package/dist/esm/migrations/upgrade-two-dot-seven.js +7 -0
  43. package/dist/esm/migrations/upgrade-two-dot-seven.js.map +1 -1
  44. package/dist/esm/polyfills.d.ts +2 -2
  45. package/dist/esm/polyfills.js +2 -2
  46. package/dist/esm/resourceHelpers.d.ts +11 -11
  47. package/dist/esm/resourceHelpers.js +11 -11
  48. package/dist/esm/resources/addMetadataFromBlob.d.ts +1 -1
  49. package/dist/esm/resources/addMetadataFromBlob.js +1 -1
  50. package/dist/esm/resources/convert-item-resource-to-storage-resource.d.ts +1 -1
  51. package/dist/esm/resources/convert-item-resource-to-storage-resource.js +1 -1
  52. package/dist/esm/resources/convert-storage-resource-to-item-resource.d.ts +1 -1
  53. package/dist/esm/resources/convert-storage-resource-to-item-resource.js +1 -1
  54. package/dist/esm/resources/copyAssociatedFiles.d.ts +4 -3
  55. package/dist/esm/resources/copyAssociatedFiles.js +5 -4
  56. package/dist/esm/resources/copyAssociatedFiles.js.map +1 -1
  57. package/dist/esm/resources/copyDataIntoItem.d.ts +2 -2
  58. package/dist/esm/resources/copyDataIntoItem.js +2 -2
  59. package/dist/esm/resources/copyMetadataIntoItem.d.ts +1 -1
  60. package/dist/esm/resources/copyMetadataIntoItem.js +1 -1
  61. package/dist/esm/resources/copyResourceIntoZip.d.ts +2 -2
  62. package/dist/esm/resources/copyResourceIntoZip.js +2 -2
  63. package/dist/esm/resources/copyZipIntoItem.d.ts +1 -1
  64. package/dist/esm/resources/copyZipIntoItem.js +1 -1
  65. package/dist/esm/resources/createCopyResults.d.ts +1 -1
  66. package/dist/esm/resources/createCopyResults.js +1 -1
  67. package/dist/esm/resources/get-blob.d.ts +1 -1
  68. package/dist/esm/resources/get-blob.js +1 -1
  69. package/dist/esm/resources/getItemResourcesFilesFromPaths.d.ts +1 -1
  70. package/dist/esm/resources/getItemResourcesFilesFromPaths.js +1 -1
  71. package/dist/esm/resources/getItemResourcesPaths.d.ts +1 -1
  72. package/dist/esm/resources/getItemResourcesPaths.js +1 -1
  73. package/dist/esm/resources/transform-resource-paths-to-solution-resources.d.ts +1 -0
  74. package/dist/esm/resources/transform-resource-paths-to-solution-resources.js +1 -0
  75. package/dist/esm/resources/transform-resource-paths-to-solution-resources.js.map +1 -1
  76. package/dist/esm/restHelpers.d.ts +59 -54
  77. package/dist/esm/restHelpers.js +55 -50
  78. package/dist/esm/restHelpers.js.map +1 -1
  79. package/dist/esm/restHelpersGet.d.ts +30 -30
  80. package/dist/esm/restHelpersGet.js +30 -30
  81. package/dist/esm/templatization.d.ts +15 -15
  82. package/dist/esm/templatization.js +15 -15
  83. package/dist/esm/trackingHelpers.d.ts +9 -9
  84. package/dist/esm/trackingHelpers.js +9 -9
  85. package/dist/esm/velocityHelpers.d.ts +4 -4
  86. package/dist/esm/velocityHelpers.js +4 -4
  87. package/dist/esm/workforceHelpers.d.ts +8 -7
  88. package/dist/esm/workforceHelpers.js +18 -7
  89. package/dist/esm/workforceHelpers.js.map +1 -1
  90. package/dist/node/completeItem.d.ts +1 -1
  91. package/dist/node/completeItem.js +1 -1
  92. package/dist/node/deleteHelpers/deleteEmptyGroups.d.ts +1 -1
  93. package/dist/node/deleteHelpers/deleteEmptyGroups.js +1 -1
  94. package/dist/node/deleteHelpers/deleteGroupIfEmpty.d.ts +1 -1
  95. package/dist/node/deleteHelpers/deleteGroupIfEmpty.js +1 -1
  96. package/dist/node/deleteHelpers/deleteSolutionContents.d.ts +1 -1
  97. package/dist/node/deleteHelpers/deleteSolutionContents.js +1 -1
  98. package/dist/node/deleteHelpers/deleteSolutionFolder.d.ts +1 -1
  99. package/dist/node/deleteHelpers/deleteSolutionFolder.js +1 -1
  100. package/dist/node/deleteHelpers/deleteSolutionItem.d.ts +1 -1
  101. package/dist/node/deleteHelpers/deleteSolutionItem.js +1 -1
  102. package/dist/node/deleteHelpers/reconstructBuildOrderIds.d.ts +1 -1
  103. package/dist/node/deleteHelpers/reconstructBuildOrderIds.js +1 -1
  104. package/dist/node/deleteHelpers/removeItems.d.ts +1 -1
  105. package/dist/node/deleteHelpers/removeItems.js +1 -1
  106. package/dist/node/deleteSolution.d.ts +2 -2
  107. package/dist/node/deleteSolution.js +2 -2
  108. package/dist/node/dependencies.d.ts +1 -1
  109. package/dist/node/dependencies.js +2 -2
  110. package/dist/node/featureServiceHelpers.d.ts +99 -60
  111. package/dist/node/featureServiceHelpers.js +99 -60
  112. package/dist/node/featureServiceHelpers.js.map +1 -1
  113. package/dist/node/generalHelpers.d.ts +34 -34
  114. package/dist/node/generalHelpers.js +36 -36
  115. package/dist/node/getDeletableSolutionInfo.d.ts +1 -1
  116. package/dist/node/getDeletableSolutionInfo.js +1 -1
  117. package/dist/node/getSolutionSummary.d.ts +1 -1
  118. package/dist/node/getSolutionSummary.js +1 -1
  119. package/dist/node/interfaces.d.ts +438 -10
  120. package/dist/node/interfaces.js +7 -1
  121. package/dist/node/interfaces.js.map +1 -1
  122. package/dist/node/libConnectors.d.ts +5 -5
  123. package/dist/node/libConnectors.js +5 -5
  124. package/dist/node/migrations/apply-schema.d.ts +1 -0
  125. package/dist/node/migrations/apply-schema.js +1 -0
  126. package/dist/node/migrations/apply-schema.js.map +1 -1
  127. package/dist/node/migrations/upgrade-three-dot-one.d.ts +1 -0
  128. package/dist/node/migrations/upgrade-three-dot-one.js +1 -0
  129. package/dist/node/migrations/upgrade-three-dot-one.js.map +1 -1
  130. package/dist/node/migrations/upgrade-two-dot-seven.d.ts +7 -0
  131. package/dist/node/migrations/upgrade-two-dot-seven.js +7 -0
  132. package/dist/node/migrations/upgrade-two-dot-seven.js.map +1 -1
  133. package/dist/node/polyfills.d.ts +2 -2
  134. package/dist/node/polyfills.js +2 -2
  135. package/dist/node/resourceHelpers.d.ts +11 -11
  136. package/dist/node/resourceHelpers.js +11 -11
  137. package/dist/node/resources/addMetadataFromBlob.d.ts +1 -1
  138. package/dist/node/resources/addMetadataFromBlob.js +1 -1
  139. package/dist/node/resources/convert-item-resource-to-storage-resource.d.ts +1 -1
  140. package/dist/node/resources/convert-item-resource-to-storage-resource.js +1 -1
  141. package/dist/node/resources/convert-storage-resource-to-item-resource.d.ts +1 -1
  142. package/dist/node/resources/convert-storage-resource-to-item-resource.js +1 -1
  143. package/dist/node/resources/copyAssociatedFiles.d.ts +4 -3
  144. package/dist/node/resources/copyAssociatedFiles.js +5 -4
  145. package/dist/node/resources/copyAssociatedFiles.js.map +1 -1
  146. package/dist/node/resources/copyDataIntoItem.d.ts +2 -2
  147. package/dist/node/resources/copyDataIntoItem.js +2 -2
  148. package/dist/node/resources/copyMetadataIntoItem.d.ts +1 -1
  149. package/dist/node/resources/copyMetadataIntoItem.js +1 -1
  150. package/dist/node/resources/copyResourceIntoZip.d.ts +2 -2
  151. package/dist/node/resources/copyResourceIntoZip.js +2 -2
  152. package/dist/node/resources/copyZipIntoItem.d.ts +1 -1
  153. package/dist/node/resources/copyZipIntoItem.js +1 -1
  154. package/dist/node/resources/createCopyResults.d.ts +1 -1
  155. package/dist/node/resources/createCopyResults.js +1 -1
  156. package/dist/node/resources/get-blob.d.ts +1 -1
  157. package/dist/node/resources/get-blob.js +1 -1
  158. package/dist/node/resources/getItemResourcesFilesFromPaths.d.ts +1 -1
  159. package/dist/node/resources/getItemResourcesFilesFromPaths.js +1 -1
  160. package/dist/node/resources/getItemResourcesPaths.d.ts +1 -1
  161. package/dist/node/resources/getItemResourcesPaths.js +1 -1
  162. package/dist/node/resources/transform-resource-paths-to-solution-resources.d.ts +1 -0
  163. package/dist/node/resources/transform-resource-paths-to-solution-resources.js +1 -0
  164. package/dist/node/resources/transform-resource-paths-to-solution-resources.js.map +1 -1
  165. package/dist/node/restHelpers.d.ts +59 -54
  166. package/dist/node/restHelpers.js +55 -50
  167. package/dist/node/restHelpers.js.map +1 -1
  168. package/dist/node/restHelpersGet.d.ts +30 -30
  169. package/dist/node/restHelpersGet.js +30 -30
  170. package/dist/node/templatization.d.ts +15 -15
  171. package/dist/node/templatization.js +15 -15
  172. package/dist/node/trackingHelpers.d.ts +9 -9
  173. package/dist/node/trackingHelpers.js +9 -9
  174. package/dist/node/velocityHelpers.d.ts +4 -4
  175. package/dist/node/velocityHelpers.js +4 -4
  176. package/dist/node/workforceHelpers.d.ts +8 -7
  177. package/dist/node/workforceHelpers.js +18 -7
  178. package/dist/node/workforceHelpers.js.map +1 -1
  179. package/dist/umd/common.umd.js +399 -313
  180. package/dist/umd/common.umd.js.map +1 -1
  181. package/dist/umd/common.umd.min.js +3 -3
  182. package/dist/umd/common.umd.min.js.map +1 -1
  183. package/dist/umd/completeItem.d.ts +1 -1
  184. package/dist/umd/deleteHelpers/deleteEmptyGroups.d.ts +1 -1
  185. package/dist/umd/deleteHelpers/deleteGroupIfEmpty.d.ts +1 -1
  186. package/dist/umd/deleteHelpers/deleteSolutionContents.d.ts +1 -1
  187. package/dist/umd/deleteHelpers/deleteSolutionFolder.d.ts +1 -1
  188. package/dist/umd/deleteHelpers/deleteSolutionItem.d.ts +1 -1
  189. package/dist/umd/deleteHelpers/reconstructBuildOrderIds.d.ts +1 -1
  190. package/dist/umd/deleteHelpers/removeItems.d.ts +1 -1
  191. package/dist/umd/deleteSolution.d.ts +2 -2
  192. package/dist/umd/dependencies.d.ts +1 -1
  193. package/dist/umd/featureServiceHelpers.d.ts +99 -60
  194. package/dist/umd/generalHelpers.d.ts +34 -34
  195. package/dist/umd/getDeletableSolutionInfo.d.ts +1 -1
  196. package/dist/umd/getSolutionSummary.d.ts +1 -1
  197. package/dist/umd/interfaces.d.ts +438 -10
  198. package/dist/umd/libConnectors.d.ts +5 -5
  199. package/dist/umd/migrations/apply-schema.d.ts +1 -0
  200. package/dist/umd/migrations/upgrade-three-dot-one.d.ts +1 -0
  201. package/dist/umd/migrations/upgrade-two-dot-seven.d.ts +7 -0
  202. package/dist/umd/polyfills.d.ts +2 -2
  203. package/dist/umd/resourceHelpers.d.ts +11 -11
  204. package/dist/umd/resources/addMetadataFromBlob.d.ts +1 -1
  205. package/dist/umd/resources/convert-item-resource-to-storage-resource.d.ts +1 -1
  206. package/dist/umd/resources/convert-storage-resource-to-item-resource.d.ts +1 -1
  207. package/dist/umd/resources/copyAssociatedFiles.d.ts +4 -3
  208. package/dist/umd/resources/copyDataIntoItem.d.ts +2 -2
  209. package/dist/umd/resources/copyMetadataIntoItem.d.ts +1 -1
  210. package/dist/umd/resources/copyResourceIntoZip.d.ts +2 -2
  211. package/dist/umd/resources/copyZipIntoItem.d.ts +1 -1
  212. package/dist/umd/resources/createCopyResults.d.ts +1 -1
  213. package/dist/umd/resources/get-blob.d.ts +1 -1
  214. package/dist/umd/resources/getItemResourcesFilesFromPaths.d.ts +1 -1
  215. package/dist/umd/resources/getItemResourcesPaths.d.ts +1 -1
  216. package/dist/umd/resources/transform-resource-paths-to-solution-resources.d.ts +1 -0
  217. package/dist/umd/restHelpers.d.ts +59 -54
  218. package/dist/umd/restHelpersGet.d.ts +30 -30
  219. package/dist/umd/templatization.d.ts +15 -15
  220. package/dist/umd/trackingHelpers.d.ts +9 -9
  221. package/dist/umd/velocityHelpers.d.ts +4 -4
  222. package/dist/umd/workforceHelpers.d.ts +8 -7
  223. package/package.json +18 -17
@@ -26,7 +26,7 @@ import JSZip from "jszip";
26
26
  export declare const SolutionTemplateFormatVersion = 1;
27
27
  export declare const DeployedSolutionFormatVersion = 1;
28
28
  /**
29
- * Flag for storing an item's binary resources.
29
+ * Flags for storing an item's binary resources.
30
30
  */
31
31
  export declare enum EFileType {
32
32
  Data = 0,
@@ -35,6 +35,9 @@ export declare enum EFileType {
35
35
  Resource = 3,
36
36
  Thumbnail = 4
37
37
  }
38
+ /**
39
+ * Text versions of flags for storing an item's binary resources.
40
+ */
38
41
  export declare enum SFileType {
39
42
  "Data" = 0,
40
43
  "Info" = 1,
@@ -54,21 +57,96 @@ export declare enum EItemProgressStatus {
54
57
  Failed = 5,
55
58
  Unknown = 6
56
59
  }
60
+ /**
61
+ * Text versions of flags for reporting the status of creating or deploying an item.
62
+ */
57
63
  export declare const SItemProgressStatus: string[];
58
- export declare type IItemProgressCallback = (itemId: string, status: EItemProgressStatus, costUsed: number, createdItemId?: string) => boolean;
59
- export declare type ISolutionProgressCallback = (percentDone: number, jobId?: string, progressEvent?: ISolutionProgressEvent) => void;
64
+ /**
65
+ * Function signature describing internal item-level progress to enable cancellation and rollback in case of failure
66
+ *
67
+ */
68
+ export declare type IItemProgressCallback = (
69
+ /**
70
+ * Id of item
71
+ */
72
+ itemId: string,
73
+ /**
74
+ * Progress status code (e.g., Started, Created,...)
75
+ */
76
+ status: EItemProgressStatus,
77
+ /**
78
+ * Accumulated "costs" of task, which can be divided by the total estimated cost to get percent done
79
+ */
80
+ costUsed: number,
81
+ /**
82
+ * Id of created item, which is supplied when status is EItemProgressStatus.Created or .Finished
83
+ */
84
+ createdItemId?: string) => boolean;
85
+ /**
86
+ * Function signature describing progress to calling programs
87
+ */
88
+ export declare type ISolutionProgressCallback = (
89
+ /**
90
+ * Percent of total work done
91
+ */
92
+ percentDone: number,
93
+ /**
94
+ * Calling-program-supplied id, perhaps used to distinguish between concurrent deployments or deletions
95
+ */
96
+ jobId?: string,
97
+ /**
98
+ * Packet of supplemental information provided from certain progress states, e.g., Finished deleting an item
99
+ * or deploying a Solution item
100
+ */
101
+ progressEvent?: ISolutionProgressEvent) => void;
60
102
  export declare type INoArgFunction = () => any;
103
+ /**
104
+ * Result of creating a unique group
105
+ */
61
106
  export interface IAddGroupResponse {
107
+ /**
108
+ * Success or failure
109
+ */
62
110
  success: boolean;
111
+ /**
112
+ * Id of created group
113
+ */
63
114
  group: IGroup;
64
115
  }
65
- export interface IAdditionalSearchOptions {
116
+ /**
117
+ * Additional info to be used when searching the contents of a group
118
+ */
119
+ export interface IAdditionalGroupSearchOptions {
120
+ /**
121
+ * The number of the first entry requested. The index number is 1-based.
122
+ */
66
123
  start?: number;
124
+ /**
125
+ * The number of results requested.
126
+ */
67
127
  num?: number;
128
+ /**
129
+ * Sets sort field for group items. Values: title | owner | avgrating | numviews | created | modified
130
+ */
68
131
  sortField?: string;
132
+ /**
133
+ * Sets sort order for group items. Values: asc | desc
134
+ */
69
135
  sortOrder?: string;
136
+ /**
137
+ * The bounding box for a spatial search defined as minx, miny, maxx, or maxy. Spatial search is an
138
+ * overlaps/intersects function of the query bbox and the extent of the document. Documents that have
139
+ * no extent (for example, mxds, 3dds, lyr) will not be found when doing a bbox search. Document extent
140
+ * is assumed to be in the WGS84 geographic coordinate system. E.g.: "-118,32,-116,34"
141
+ */
70
142
  bbox?: string;
143
+ /**
144
+ * A list of desired categories; maximum of 8
145
+ */
71
146
  categories?: string[];
147
+ /**
148
+ * Generically definines remaining/unused properties
149
+ */
72
150
  [key: string]: any;
73
151
  }
74
152
  /**
@@ -105,6 +183,10 @@ export interface IAssociatedFileInfo {
105
183
  */
106
184
  file?: File;
107
185
  }
186
+ /**
187
+ * Describes the results of topologically sorting items to be deployed so that dependencies are created before
188
+ * the items that depend on them.
189
+ */
108
190
  export interface IBuildOrdering {
109
191
  /**
110
192
  * Item ids in order in which items are to be built.
@@ -119,14 +201,41 @@ export interface IBuildOrdering {
119
201
  */
120
202
  itemsToBePatched: IKeyedListsOfStrings;
121
203
  }
204
+ /**
205
+ * Holds a complete AGO item.
206
+ */
122
207
  export interface ICompleteItem {
208
+ /**
209
+ * The "base" information of an item as MIME format text/plain JSON
210
+ */
123
211
  base: IItem;
212
+ /**
213
+ * The data section of an item as a file even though it may be JSON
214
+ */
124
215
  data: File;
216
+ /**
217
+ * The item's thumbnail as MIME format image/*
218
+ */
125
219
  thumbnail: File;
220
+ /**
221
+ * The item's metadata as MIME format application/xml
222
+ */
126
223
  metadata: File;
224
+ /**
225
+ * The item's resource files
226
+ */
127
227
  resources: File[];
228
+ /**
229
+ * list of forward relationshipType/relatedItems[] pairs
230
+ */
128
231
  fwdRelatedItems: IRelatedItems[];
232
+ /**
233
+ * list of reverse relationshipType/relatedItems[] pairs
234
+ */
129
235
  revRelatedItems: IRelatedItems[];
236
+ /**
237
+ * Additional feature-service-only info
238
+ */
130
239
  featureServiceProperties?: IFeatureServiceProperties;
131
240
  }
132
241
  /**
@@ -164,28 +273,85 @@ export interface ICreateItemFromTemplateResponse {
164
273
  * Options for creating a solution item.
165
274
  */
166
275
  export interface ICreateSolutionOptions {
276
+ /**
277
+ * Calling-program-supplied id, perhaps used to distinguish between concurrent deployments or deletions;
278
+ * default: id of group used to create Solution
279
+ */
167
280
  jobId?: string;
281
+ /**
282
+ * Title to be given to created Solution item; defaults: for a group, group title;
283
+ * for an item, random string from common.createShortId()
284
+ */
168
285
  title?: string;
286
+ /**
287
+ * Snippet to be given to created Solution item; defaults: for a group, group snippet; for an item, ""
288
+ */
169
289
  snippet?: string;
290
+ /**
291
+ * Description to be given to created Solution item; defaults: for a group, group description; for an item, ""
292
+ */
170
293
  description?: string;
294
+ /**
295
+ * Tags to be given to created Solution item; defaults: for a group, group tags; for an item, []
296
+ */
171
297
  tags?: string[];
298
+ /**
299
+ * URL to thumbnail to be given to created Solution item, but see `thumbnail` property; default: ""
300
+ */
172
301
  thumbnailurl?: string;
302
+ /**
303
+ * Thumbnail file to be given to created Solution item; default: null; has priority over `thumbnailurl`
304
+ */
173
305
  thumbnail?: File;
306
+ /**
307
+ * Folder in which to place created Solution item; default is top level
308
+ */
174
309
  folderId?: string;
310
+ /**
311
+ * Facts to be used for creating the Solution item; default: {}
312
+ */
175
313
  templateDictionary?: any;
314
+ /**
315
+ * Should fields be templatized; default: false
316
+ */
176
317
  templatizeFields?: boolean;
318
+ /**
319
+ * Additional typeKeywords (beyond always-added ["Solution", "Template"]) to be added to Solution item; default: []
320
+ */
177
321
  additionalTypeKeywords?: string[];
322
+ /**
323
+ * Packet of supplemental information provided from certain progress states, e.g., Finished deleting an item
324
+ * or deploying a Solution item
325
+ */
178
326
  progressCallback?: ISolutionProgressCallback;
327
+ /**
328
+ * Should progress be echoed to the debugging console? default: false
329
+ */
179
330
  consoleProgress?: boolean;
331
+ /**
332
+ * Placeholder for ids of items to be placed into Solution. DO NOT USE--it is overwritten by function createSolution
333
+ */
180
334
  itemIds?: string[];
335
+ /**
336
+ * Credentials for the organization with the source items; default: solution item authentication
337
+ */
181
338
  sourceItemAuthentication?: UserSession;
182
339
  }
183
340
  /**
184
341
  * Result of creating a solution item.
185
342
  */
186
343
  export interface ICreateSolutionResult {
344
+ /**
345
+ * Success or failure
346
+ */
187
347
  success: boolean;
348
+ /**
349
+ * Id of created Solution template
350
+ */
188
351
  solutionTemplateItemId: string;
352
+ /**
353
+ * When true items with source-itemId type keyword will be reused; default: false
354
+ */
189
355
  enableItemReuse?: boolean;
190
356
  }
191
357
  /**
@@ -239,8 +405,19 @@ export interface IDatasourceInfo {
239
405
  * Options for deleting a deployed solution item and all of the items that were created as part of that deployment
240
406
  */
241
407
  export interface IDeleteSolutionOptions {
408
+ /**
409
+ * Calling-program-supplied id, perhaps used to distinguish between concurrent deployments or deletions;
410
+ * default: id of solution being deleted
411
+ */
242
412
  jobId?: string;
413
+ /**
414
+ * Packet of supplemental information provided from certain progress states, e.g., Finished deleting an item
415
+ * or deploying a Solution item
416
+ */
243
417
  progressCallback?: ISolutionProgressCallback;
418
+ /**
419
+ * Should progress be echoed to the debugging console? default: false
420
+ */
244
421
  consoleProgress?: boolean;
245
422
  }
246
423
  /**
@@ -275,28 +452,82 @@ export interface IDeployFilename {
275
452
  * Options for deploying a solution item and for creating the solution index item representing the deployment
276
453
  */
277
454
  export interface IDeploySolutionOptions {
455
+ /**
456
+ * Calling-program-supplied id, perhaps used to distinguish between concurrent deployments or deletions;
457
+ * default: id of solution being deployed
458
+ */
278
459
  jobId?: string;
460
+ /**
461
+ * Title to be given to deployed Solution item; default: copied from solution item
462
+ */
279
463
  title?: string;
464
+ /**
465
+ * Snippet to be given to created Solution item; default: copied from solution item
466
+ */
280
467
  snippet?: string;
468
+ /**
469
+ * Description to be given to created Solution item; default: copied from solution item
470
+ */
281
471
  description?: string;
472
+ /**
473
+ * Tags to be given to created Solution item; default: copied from solution item
474
+ */
282
475
  tags?: string[];
476
+ /**
477
+ * URL to thumbnail to be given to created Solution item, but see `thumbnail` property; default: copied from
478
+ * solution item
479
+ */
283
480
  thumbnailurl?: string;
481
+ /**
482
+ * Thumbnail file to be given to created Solution item; default: null; has priority over `thumbnailurl`
483
+ */
284
484
  thumbnail?: File;
485
+ /**
486
+ * Facts to be used for creating the Solution item; default: {}
487
+ */
285
488
  templateDictionary?: any;
489
+ /**
490
+ * Additional typeKeywords (beyond always-added ["Solution", "Deployed"]) to be added to Solution item; default: []
491
+ */
286
492
  additionalTypeKeywords?: string[];
493
+ /**
494
+ * When true items with source-itemId type keyword will be reused; default: false
495
+ */
287
496
  enableItemReuse?: boolean;
497
+ /**
498
+ * Packet of supplemental information provided from certain progress states, e.g., Finished deleting an item
499
+ * or deploying a Solution item
500
+ */
288
501
  progressCallback?: ISolutionProgressCallback;
502
+ /**
503
+ * Should progress be echoed to the debugging console? default: false
504
+ */
289
505
  consoleProgress?: boolean;
506
+ /**
507
+ * Credentials for the organization with the source items; default: authentication supplied for deployment destination
508
+ */
290
509
  storageAuthentication?: UserSession;
510
+ /**
511
+ * Version of storage read from Solution item. DO NOT USE--it is overwritten by function deploySolutionFromTemplate
512
+ */
291
513
  storageVersion?: number;
292
514
  }
293
515
  /**
294
516
  * Result of deploying a solution item.
295
517
  */
296
518
  export interface IDeploySolutionResult {
519
+ /**
520
+ * Success or failure
521
+ */
297
522
  success: boolean;
523
+ /**
524
+ * Id of deployed Solution
525
+ */
298
526
  deployedSolutionItemId: string;
299
527
  }
528
+ /**
529
+ * Contains feature-service-specific properties.
530
+ */
300
531
  export interface IFeatureServiceProperties {
301
532
  service: any;
302
533
  layers: any[];
@@ -311,12 +542,21 @@ export interface IFile {
311
542
  filename: string;
312
543
  blob: Blob;
313
544
  }
545
+ /**
546
+ * Filename, MIME type, and data.
547
+ */
314
548
  export interface IFileMimeTyped {
315
- blob: Blob;
316
549
  filename: string;
317
550
  mimeType: string;
551
+ blob: Blob;
318
552
  }
553
+ /**
554
+ * Response from removing a folder.
555
+ */
319
556
  export interface IFolderStatusResponse {
557
+ /**
558
+ * Success or failure
559
+ */
320
560
  success: boolean;
321
561
  folder: {
322
562
  username: string;
@@ -324,53 +564,165 @@ export interface IFolderStatusResponse {
324
564
  title: string;
325
565
  };
326
566
  }
567
+ /**
568
+ * Response from getting the items related to a specified item, extended with paging properties
569
+ */
327
570
  export interface IGetRelatedItemsResponse extends IPortalGetRelatedItemsResponse {
571
+ /**
572
+ * Total number of responses (from IPortalGetRelatedItemsResponse)
573
+ */
328
574
  total: number;
575
+ /**
576
+ * Related items (from IPortalGetRelatedItemsResponse)
577
+ */
578
+ relatedItems: IItem[];
579
+ /**
580
+ * The number of the first entry requested. The index number is 1-based.
581
+ */
329
582
  start: number;
583
+ /**
584
+ * The number of results requested.
585
+ */
330
586
  num: number;
587
+ /**
588
+ * The 1-based index of the start of the next batch of results; value is -1 if there are no more results
589
+ * to be fetched
590
+ */
331
591
  nextStart: number;
332
- relatedItems: IItem[];
333
592
  }
593
+ /**
594
+ * Response from getting the resources of a specified item, extended with paging properties
595
+ */
334
596
  export interface IGetResourcesResponse {
597
+ /**
598
+ * Total number of responses
599
+ */
335
600
  total: number;
601
+ /**
602
+ * Resources
603
+ */
604
+ resources: IResource[];
605
+ /**
606
+ * The number of the first entry requested. The index number is 1-based.
607
+ */
336
608
  start: number;
609
+ /**
610
+ * The number of results requested.
611
+ */
337
612
  num: number;
613
+ /**
614
+ * The 1-based index of the start of the next batch of results; value is -1 if there are no more results
615
+ * to be fetched
616
+ */
338
617
  nextStart: number;
339
- resources: IResource[];
340
618
  }
619
+ /**
620
+ * Response from getting the category schema set on a group.
621
+ *
622
+ * @see https://developers.arcgis.com/rest/users-groups-and-items/group-category-schema.htm
623
+ */
341
624
  export interface IGroupCategorySchema {
342
625
  categorySchema: IGroupCategory[];
343
626
  }
627
+ /**
628
+ * Nestable category schema descripion set on a group.
629
+ *
630
+ * @see https://developers.arcgis.com/rest/users-groups-and-items/group-category-schema.htm
631
+ */
344
632
  export interface IGroupCategory {
633
+ /**
634
+ * Category title
635
+ */
345
636
  title: string;
637
+ /**
638
+ * Category description
639
+ */
346
640
  description?: string;
641
+ /**
642
+ * Child categories of this category
643
+ */
347
644
  categories?: IGroupCategory[];
348
645
  }
349
646
  /**
350
647
  * Hierarchical arrangement of items and their dependencies.
351
648
  */
352
649
  export interface IHierarchyElement {
650
+ /**
651
+ * Item id
652
+ */
353
653
  id: string;
654
+ /**
655
+ * Items that this item depends on
656
+ */
354
657
  dependencies: IHierarchyElement[];
355
658
  }
356
659
  /**
357
660
  * Subset of portal.IItem containing just the properties that are stored in a template--the item's "base" section.
358
661
  */
359
662
  export interface IItemGeneralized {
663
+ /**
664
+ * Item categories
665
+ */
360
666
  categories?: string[];
667
+ /**
668
+ * Specifies the locale for which content is returned.
669
+ */
361
670
  culture?: string;
671
+ /**
672
+ * Item description
673
+ */
362
674
  description?: string;
675
+ /**
676
+ * _Undocumented AGO item property_
677
+ */
363
678
  documentation?: string;
679
+ /**
680
+ * An array that defines the bounding rectangle of the item as [[minx, miny], [maxx, maxy]]. Should always be in WGS84.
681
+ */
364
682
  extent?: number[][] | string;
683
+ /**
684
+ * The unique ID for this item.
685
+ */
365
686
  id: string;
687
+ /**
688
+ * A JSON object that primarily applies to system requirements, Terms and Conditions, version, supported platforms,
689
+ * YouTube video ID, etc., associated with the application.
690
+ */
366
691
  properties?: any;
692
+ /**
693
+ * A short summary description of the item.
694
+ */
367
695
  snippet?: string;
696
+ /**
697
+ * The coordinate system of the item.
698
+ */
368
699
  spatialReference?: ISpatialReference;
700
+ /**
701
+ * An array of user defined tags that describe the item.
702
+ */
369
703
  tags?: string[];
704
+ /**
705
+ * The title of the item. This is the name that's displayed to users and by which they refer to the item.
706
+ */
370
707
  title?: string;
708
+ /**
709
+ * The GIS content type of this item. Example types include Web Map, Map Service, Shapefile, and
710
+ * Web Mapping Application.
711
+ */
371
712
  type: string;
713
+ /**
714
+ * An array of keywords that further describes the type of this item. Each item is tagged with a set of
715
+ * type keywords that are derived based on its primary type.
716
+ */
372
717
  typeKeywords?: string[];
718
+ /**
719
+ * The URL for the resource represented by the item. Applies only to items that represent web-accessible
720
+ * resources such as map services.
721
+ */
373
722
  url?: string;
723
+ /**
724
+ * Generically definines remaining/unused properties
725
+ */
374
726
  [key: string]: any;
375
727
  }
376
728
  /**
@@ -431,9 +783,14 @@ export interface IItemTemplate {
431
783
  * Function signatures for use in a function lookup array.
432
784
  */
433
785
  export interface IItemTemplateConversions {
786
+ /**
787
+ * Converts an item into a template for use in a Solution.
788
+ */
434
789
  convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: UserSession, srcAuthentication: UserSession, templateDictionary?: any): Promise<IItemTemplate>;
790
+ /**
791
+ * Creates an item using templatized info in a Solution.
792
+ */
435
793
  createItemFromTemplate(template: IItemTemplate, templateDictionary: any, destinationAuthentication: UserSession, itemProgressCallback: IItemProgressCallback): Promise<ICreateItemFromTemplateResponse>;
436
- postProcessDependencies?(templates: IItemTemplate[], clonedSolutionsResponse: ICreateItemFromTemplateResponse[], authentication: UserSession, templateDictionary: any): Promise<any>;
437
794
  }
438
795
  /**
439
796
  * Structure for mapping from item type to module with type-specific template-handling code
@@ -475,10 +832,27 @@ export interface INumberValuePair {
475
832
  * Subset of a esri/portal/Portal used by this library.
476
833
  */
477
834
  export interface IPortalSubset {
835
+ /**
836
+ * Name of the organization.
837
+ */
478
838
  name: string;
839
+ /**
840
+ * The id of the organization that owns this portal. If null then this is the default portal
841
+ * for anonymous and non-organizational users.
842
+ */
479
843
  id: string;
844
+ /**
845
+ * The REST URL for the portal, for example "https://www.arcgis.com/sharing/rest" for ArcGIS Online
846
+ * and "https://www.example.com/arcgis/sharing/rest" for your in-house portal.
847
+ */
480
848
  restUrl: string;
849
+ /**
850
+ * The URL to the portal instance.
851
+ */
481
852
  portalUrl: string;
853
+ /**
854
+ * The prefix selected by the organization's administrator to be used with the custom base URL for the portal.
855
+ */
482
856
  urlKey: string;
483
857
  }
484
858
  /**
@@ -523,15 +897,32 @@ export interface IQuickCaptureDatasource {
523
897
  * A mapping between a relationship type and the list of item ids using that relationship.
524
898
  */
525
899
  export interface IRelatedItems {
900
+ /**
901
+ * The type of relationship between the two items.
902
+ *
903
+ * @see https://developers.arcgis.com/rest/users-groups-and-items/relationship-types.htm
904
+ */
526
905
  relationshipType: string;
906
+ /**
907
+ * Ids of related items
908
+ */
527
909
  relatedItemIds: string[];
528
910
  }
529
911
  /**
530
912
  * Summary of a resource.
531
913
  */
532
914
  export interface IResource {
915
+ /**
916
+ * Name of resource
917
+ */
533
918
  resource: string;
919
+ /**
920
+ * The date the resource was created. Shown in UNIX time in milliseconds.
921
+ */
534
922
  created: number;
923
+ /**
924
+ * The size of the resource in bytes.
925
+ */
535
926
  size: number;
536
927
  }
537
928
  /**
@@ -550,6 +941,9 @@ export interface ISolutionItem {
550
941
  * Supplemental information
551
942
  */
552
943
  properties?: IStringValuePair;
944
+ /**
945
+ * Generically definines remaining/unused properties
946
+ */
553
947
  [key: string]: any;
554
948
  }
555
949
  /**
@@ -566,23 +960,54 @@ export interface ISolutionItemData {
566
960
  templates: IItemTemplate[];
567
961
  }
568
962
  /**
569
- * A brief form of an item in a solution.
963
+ * A brief form of an item in a deployed Solution item.
570
964
  */
571
965
  export interface ISolutionItemPrecis {
966
+ /**
967
+ * The unique ID for this item.
968
+ */
572
969
  id: string;
970
+ /**
971
+ * The GIS content type of this item. Example types include Web Map, Map Service, Shapefile, and
972
+ * Web Mapping Application.
973
+ */
573
974
  type: string;
975
+ /**
976
+ * The title of the item. This is the name that's displayed to users and by which they refer to the item.
977
+ */
574
978
  title: string;
979
+ /**
980
+ * The date the item was last modified. Shown in UNIX time in milliseconds.
981
+ */
575
982
  modified: number;
983
+ /**
984
+ * The username of the user who owns this item.
985
+ */
576
986
  owner: string;
577
987
  }
578
988
  /**
579
- * A brief form of a solution item.
989
+ * A brief form of a deployed Solution item.
580
990
  */
581
991
  export interface ISolutionPrecis {
992
+ /**
993
+ * The unique ID for this Solution item.
994
+ */
582
995
  id: string;
996
+ /**
997
+ * The title of the item. This is the name that's displayed to users and by which they refer to the item.
998
+ */
583
999
  title: string;
1000
+ /**
1001
+ * Folder containing the deployed Solution
1002
+ */
584
1003
  folder: string;
1004
+ /**
1005
+ * Items contained in this solution
1006
+ */
585
1007
  items: ISolutionItemPrecis[];
1008
+ /**
1009
+ * Ids of groups affiliated with this solution
1010
+ */
586
1011
  groups: string[];
587
1012
  }
588
1013
  /**
@@ -831,6 +1256,9 @@ export interface IZipInfo {
831
1256
  */
832
1257
  filelist: any[];
833
1258
  }
1259
+ /**
1260
+ * Title information for Velocity data.
1261
+ */
834
1262
  export interface IVelocityTitle {
835
1263
  /**
836
1264
  * The current label for the object