@esri/solution-simple-types 4.1.2 → 5.0.1

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 (69) hide show
  1. package/dist/cjs/dashboard.d.ts +93 -93
  2. package/dist/cjs/dashboard.js +352 -352
  3. package/dist/cjs/helpers/convert-item-to-template.d.ts +46 -46
  4. package/dist/cjs/helpers/convert-item-to-template.js +235 -209
  5. package/dist/cjs/helpers/convert-item-to-template.js.map +1 -1
  6. package/dist/cjs/helpers/create-item-from-template.d.ts +17 -17
  7. package/dist/cjs/helpers/create-item-from-template.js +153 -138
  8. package/dist/cjs/helpers/create-item-from-template.js.map +1 -1
  9. package/dist/cjs/helpers/notebook-helpers.d.ts +19 -19
  10. package/dist/cjs/helpers/notebook-helpers.js +24 -24
  11. package/dist/cjs/helpers/quickcapture-helpers.d.ts +18 -18
  12. package/dist/cjs/helpers/quickcapture-helpers.js +22 -22
  13. package/dist/cjs/helpers/simple-type-helpers.d.ts +18 -18
  14. package/dist/cjs/helpers/simple-type-helpers.js +22 -22
  15. package/dist/cjs/helpers/update-notebook-data.d.ts +17 -17
  16. package/dist/cjs/helpers/update-notebook-data.js +27 -27
  17. package/dist/cjs/index.d.ts +27 -27
  18. package/dist/cjs/index.js +36 -36
  19. package/dist/cjs/notebook.d.ts +66 -66
  20. package/dist/cjs/notebook.js +133 -133
  21. package/dist/cjs/oic.d.ts +53 -53
  22. package/dist/cjs/oic.js +170 -170
  23. package/dist/cjs/quickcapture.d.ts +76 -87
  24. package/dist/cjs/quickcapture.js +143 -192
  25. package/dist/cjs/quickcapture.js.map +1 -1
  26. package/dist/cjs/simple-types.d.ts +57 -57
  27. package/dist/cjs/simple-types.js +94 -94
  28. package/dist/cjs/webmap.d.ts +102 -102
  29. package/dist/cjs/webmap.js +325 -325
  30. package/dist/cjs/webmappingapplication.d.ts +176 -176
  31. package/dist/cjs/webmappingapplication.js +674 -674
  32. package/dist/cjs/webmappingapplication.js.map +1 -1
  33. package/dist/cjs/workforce.d.ts +34 -34
  34. package/dist/cjs/workforce.js +44 -44
  35. package/dist/esm/dashboard.d.ts +93 -93
  36. package/dist/esm/dashboard.js +339 -339
  37. package/dist/esm/helpers/convert-item-to-template.d.ts +46 -46
  38. package/dist/esm/helpers/convert-item-to-template.js +228 -202
  39. package/dist/esm/helpers/convert-item-to-template.js.map +1 -1
  40. package/dist/esm/helpers/create-item-from-template.d.ts +17 -17
  41. package/dist/esm/helpers/create-item-from-template.js +148 -133
  42. package/dist/esm/helpers/create-item-from-template.js.map +1 -1
  43. package/dist/esm/helpers/notebook-helpers.d.ts +19 -19
  44. package/dist/esm/helpers/notebook-helpers.js +20 -20
  45. package/dist/esm/helpers/quickcapture-helpers.d.ts +18 -18
  46. package/dist/esm/helpers/quickcapture-helpers.js +19 -19
  47. package/dist/esm/helpers/simple-type-helpers.d.ts +18 -18
  48. package/dist/esm/helpers/simple-type-helpers.js +19 -19
  49. package/dist/esm/helpers/update-notebook-data.d.ts +17 -17
  50. package/dist/esm/helpers/update-notebook-data.js +23 -23
  51. package/dist/esm/index.d.ts +27 -27
  52. package/dist/esm/index.js +27 -27
  53. package/dist/esm/notebook.d.ts +66 -66
  54. package/dist/esm/notebook.js +123 -123
  55. package/dist/esm/oic.d.ts +53 -53
  56. package/dist/esm/oic.js +162 -162
  57. package/dist/esm/quickcapture.d.ts +76 -87
  58. package/dist/esm/quickcapture.js +131 -179
  59. package/dist/esm/quickcapture.js.map +1 -1
  60. package/dist/esm/simple-types.d.ts +57 -57
  61. package/dist/esm/simple-types.js +86 -86
  62. package/dist/esm/webmap.d.ts +102 -102
  63. package/dist/esm/webmap.js +312 -312
  64. package/dist/esm/webmappingapplication.d.ts +176 -176
  65. package/dist/esm/webmappingapplication.js +648 -648
  66. package/dist/esm/webmappingapplication.js.map +1 -1
  67. package/dist/esm/workforce.d.ts +34 -34
  68. package/dist/esm/workforce.js +38 -38
  69. package/package.json +7 -7
@@ -1,102 +1,102 @@
1
- /** @license
2
- * Copyright 2018 Esri
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import * as common from "@esri/solution-common";
17
- /**
18
- * Converts an AGOL webmap item to a template.
19
- *
20
- * @param itemTemplate Template for the webmap item
21
- * @param destAuthentication Credentials for requests to the destination organization
22
- * @param srcAuthentication Credentials for requests to source items
23
- * @param templateDictionary Hash of key details used for variable replacement
24
- * @returns Template for the solution item that contains key details for item reconstruction
25
- */
26
- export declare function convertItemToTemplate(itemTemplate: common.IItemTemplate, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary: any): Promise<common.IItemTemplate>;
27
- /**
28
- * Gets the ids of the dependencies of an AGOL webmap item.
29
- *
30
- * @param itemTemplate A webmap item whose dependencies are sought
31
- * @param authentication Credentials for any requests
32
- * @returns List of dependencies ids and url/itemId hash
33
- * @private
34
- */
35
- export declare function _extractDependencies(itemTemplate: common.IItemTemplate, authentication: common.UserSession): Promise<common.IWebmapDependencies>;
36
- /**
37
- * Remove the initialState prop from webmaps saved from the new map viewer.
38
- * This allows the map to use the item extent property that we templatize.
39
- *
40
- * Added for issue #662
41
- *
42
- * @param data the data for the web maps item template
43
- * @returns void
44
- * @private
45
- */
46
- export declare function _excludeInitialState(data: any): void;
47
- /**
48
- * Extracts the AGOL itemId for each layer or table object in a list using the url.
49
- *
50
- * @param layerList List of map layers or tables; supported vector tile layers have their styleUrls templatized
51
- * @param dependencies Current list of dependencies
52
- * @param authentication Credentials for any requests
53
- * @returns Updated list of dependencies ids, url/itemId hash (for feature layers),
54
- * and id/styleUrl hash (for vector tile layers)
55
- * @private
56
- */
57
- export declare function _getLayerIds(layerList: any[], dependencies: string[], authentication: common.UserSession): Promise<common.IWebmapDependencies>;
58
- /**
59
- * Templatizes the url and item id for layers or tables within the webmap.
60
- *
61
- * @param layerList List of map layers or tables
62
- * @param urlHash Lookup object for analysis layers; hash from URL to AGO item id
63
- * @param templateDictionary Hash of key details used for variable replacement
64
- * @returns void
65
- * @private
66
- */
67
- export declare function _templatizeWebmapLayerIdsAndUrls(layerList: any[], urlHash: common.IKeyedStrings, templateDictionary: any): void;
68
- /**
69
- * Templatize field references.
70
- *
71
- * @param solutionTemplate The solution item template
72
- * @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
73
- * @returns The solutionTemplate with templatized field references
74
- */
75
- export declare function postProcessFieldReferences(solutionTemplate: common.IItemTemplate, datasourceInfos: common.IDatasourceInfo[]): common.IItemTemplate;
76
- /**
77
- * Templatize field references.
78
- *
79
- * @param solutionTemplate The solution item template
80
- * @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
81
- * @param path A string path to the object property to templatize
82
- * @private
83
- */
84
- export declare function _templatizeProperty(solutionTemplate: common.IItemTemplate, datasourceInfos: common.IDatasourceInfo[], path: string): void;
85
- /**
86
- * Templatize field references.
87
- *
88
- * @param objs Can be operationalLayers or tables or appProperties search layers
89
- * @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
90
- * @returns updated instances of the objects
91
- * @private
92
- */
93
- export declare function _templatize(objs: any[], datasourceInfos: common.IDatasourceInfo[]): any[];
94
- /**
95
- * Get datasourceInfo by map layer id
96
- *
97
- * @param obj Can be operationalLayer or table or appProperties search layer
98
- * @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
99
- * @returns datasourceInfo for the given object id
100
- * @private
101
- */
102
- export declare function _getDatasourceInfo(obj: any, datasourceInfos: common.IDatasourceInfo[]): any;
1
+ /** @license
2
+ * Copyright 2018 Esri
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import * as common from "@esri/solution-common";
17
+ /**
18
+ * Converts an AGOL webmap item to a template.
19
+ *
20
+ * @param itemTemplate Template for the webmap item
21
+ * @param destAuthentication Credentials for requests to the destination organization
22
+ * @param srcAuthentication Credentials for requests to source items
23
+ * @param templateDictionary Hash of key details used for variable replacement
24
+ * @returns Template for the solution item that contains key details for item reconstruction
25
+ */
26
+ export declare function convertItemToTemplate(itemTemplate: common.IItemTemplate, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary: any): Promise<common.IItemTemplate>;
27
+ /**
28
+ * Gets the ids of the dependencies of an AGOL webmap item.
29
+ *
30
+ * @param itemTemplate A webmap item whose dependencies are sought
31
+ * @param authentication Credentials for any requests
32
+ * @returns List of dependencies ids and url/itemId hash
33
+ * @private
34
+ */
35
+ export declare function _extractDependencies(itemTemplate: common.IItemTemplate, authentication: common.UserSession): Promise<common.IWebmapDependencies>;
36
+ /**
37
+ * Remove the initialState prop from webmaps saved from the new map viewer.
38
+ * This allows the map to use the item extent property that we templatize.
39
+ *
40
+ * Added for issue #662
41
+ *
42
+ * @param data the data for the web maps item template
43
+ * @returns void
44
+ * @private
45
+ */
46
+ export declare function _excludeInitialState(data: any): void;
47
+ /**
48
+ * Extracts the AGOL itemId for each layer or table object in a list using the url.
49
+ *
50
+ * @param layerList List of map layers or tables; supported vector tile layers have their styleUrls templatized
51
+ * @param dependencies Current list of dependencies
52
+ * @param authentication Credentials for any requests
53
+ * @returns Updated list of dependencies ids, url/itemId hash (for feature layers),
54
+ * and id/styleUrl hash (for vector tile layers)
55
+ * @private
56
+ */
57
+ export declare function _getLayerIds(layerList: any[], dependencies: string[], authentication: common.UserSession): Promise<common.IWebmapDependencies>;
58
+ /**
59
+ * Templatizes the url and item id for layers or tables within the webmap.
60
+ *
61
+ * @param layerList List of map layers or tables
62
+ * @param urlHash Lookup object for analysis layers; hash from URL to AGO item id
63
+ * @param templateDictionary Hash of key details used for variable replacement
64
+ * @returns void
65
+ * @private
66
+ */
67
+ export declare function _templatizeWebmapLayerIdsAndUrls(layerList: any[], urlHash: common.IKeyedStrings, templateDictionary: any): void;
68
+ /**
69
+ * Templatize field references.
70
+ *
71
+ * @param solutionTemplate The solution item template
72
+ * @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
73
+ * @returns The solutionTemplate with templatized field references
74
+ */
75
+ export declare function postProcessFieldReferences(solutionTemplate: common.IItemTemplate, datasourceInfos: common.IDatasourceInfo[]): common.IItemTemplate;
76
+ /**
77
+ * Templatize field references.
78
+ *
79
+ * @param solutionTemplate The solution item template
80
+ * @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
81
+ * @param path A string path to the object property to templatize
82
+ * @private
83
+ */
84
+ export declare function _templatizeProperty(solutionTemplate: common.IItemTemplate, datasourceInfos: common.IDatasourceInfo[], path: string): void;
85
+ /**
86
+ * Templatize field references.
87
+ *
88
+ * @param objs Can be operationalLayers or tables or appProperties search layers
89
+ * @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
90
+ * @returns updated instances of the objects
91
+ * @private
92
+ */
93
+ export declare function _templatize(objs: any[], datasourceInfos: common.IDatasourceInfo[]): any[];
94
+ /**
95
+ * Get datasourceInfo by map layer id
96
+ *
97
+ * @param obj Can be operationalLayer or table or appProperties search layer
98
+ * @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
99
+ * @returns datasourceInfo for the given object id
100
+ * @private
101
+ */
102
+ export declare function _getDatasourceInfo(obj: any, datasourceInfos: common.IDatasourceInfo[]): any;