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