@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
package/dist/esm/oic.js CHANGED
@@ -1,163 +1,163 @@
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
- /**
19
- * Converts an AGOL OIC (Oriented Imagery Catalog) item to a template.
20
- *
21
- * @param itemTemplate Template for the OIC (Oriented Imagery Catalog) item
22
- * @param destAuthentication Credentials for requests to the destination organization
23
- * @param srcAuthentication Credentials for requests to source items
24
- * @returns Template for the solution item that contains key details for item reconstruction
25
- */
26
- export function convertItemToTemplate(itemTemplate, destAuthentication, srcAuthentication) {
27
- return new Promise((resolve, reject) => {
28
- // Extract dependencies
29
- _extractDependencies(itemTemplate, srcAuthentication).then((results) => {
30
- itemTemplate.dependencies = results.dependencies;
31
- // Templatize the map layer ids after we've extracted them as dependencies
32
- /* istanbul ignore else */
33
- if (itemTemplate.data?.properties) {
34
- itemTemplate.data.properties.ServiceURL = _templatizeOicLayerUrl(itemTemplate.data.properties.ServiceURL, results.urlHash);
35
- itemTemplate.data.properties.OverviewURL = _templatizeOicLayerUrl(itemTemplate.data.properties.OverviewURL, results.urlHash);
36
- }
37
- resolve(itemTemplate);
38
- }, e => reject(common.fail(e)));
39
- });
40
- }
41
- /**
42
- * Gets the ids of the dependencies of an AGOL OIC (Oriented Imagery Catalog) item.
43
- *
44
- * @param itemTemplate A OIC (Oriented Imagery Catalog) item whose dependencies are sought
45
- * @param authentication Credentials for any requests
46
- * @returns List of dependencies ids and url/itemId hash
47
- * @private
48
- */
49
- export function _extractDependencies(itemTemplate, authentication) {
50
- return new Promise((resolve, reject) => {
51
- const dependencies = [];
52
- if (itemTemplate.data?.properties) {
53
- const layerURLs = [];
54
- /* istanbul ignore else */
55
- if (itemTemplate.data.properties.ServiceURL) {
56
- layerURLs.push(itemTemplate.data.properties.ServiceURL);
57
- }
58
- /* istanbul ignore else */
59
- if (itemTemplate.data.properties.OverviewURL &&
60
- itemTemplate.data.properties.OverviewURL !==
61
- itemTemplate.data.properties.ServiceURL) {
62
- layerURLs.push(itemTemplate.data.properties.OverviewURL);
63
- }
64
- _getLayerIds(layerURLs, dependencies, authentication).then(results => {
65
- resolve(results);
66
- }, e => reject(common.fail(e)));
67
- }
68
- else {
69
- resolve({
70
- dependencies: dependencies,
71
- urlHash: {}
72
- });
73
- }
74
- });
75
- }
76
- /**
77
- * Extracts the AGOL itemId for each layer in a list using the url.
78
- *
79
- * @param layerURLs List of OIC layer URLs
80
- * @param dependencies Current list of dependencies
81
- * @param authentication Credentials for any requests
82
- * @returns List of dependencies ids and url/itemId hash
83
- * @private
84
- */
85
- export function _getLayerIds(layerURLs, dependencies, authentication) {
86
- return new Promise((resolve, reject) => {
87
- const urlHash = {};
88
- const options = {
89
- f: "json",
90
- authentication: authentication
91
- };
92
- const layerPromises = [];
93
- const layerChecks = {};
94
- const filteredLayerURLs = layerURLs.filter(layerURL => {
95
- if (layerURL) {
96
- const results = /.+FeatureServer/g.exec(layerURL);
97
- const baseUrl = Array.isArray(results) && results.length > 0 ? results[0] : undefined;
98
- if (baseUrl) {
99
- // avoid redundant checks when we have a layer with subLayers
100
- /* istanbul ignore else */
101
- if (Object.keys(layerChecks).indexOf(baseUrl) < 0) {
102
- layerChecks[baseUrl] = common.rest_request(layerURL, options);
103
- }
104
- layerPromises.push(layerChecks[baseUrl]);
105
- return true;
106
- }
107
- else {
108
- return false;
109
- }
110
- }
111
- else {
112
- return false;
113
- }
114
- });
115
- if (layerPromises.length > 0) {
116
- Promise.all(layerPromises).then(serviceResponses => {
117
- serviceResponses.forEach((serviceResponse, i) => {
118
- /* istanbul ignore else */
119
- if (common.getProp(serviceResponse, "serviceItemId")) {
120
- const id = serviceResponse.serviceItemId;
121
- /* istanbul ignore else */
122
- if (dependencies.indexOf(id) < 0) {
123
- dependencies.push(id);
124
- }
125
- urlHash[filteredLayerURLs[i]] = id;
126
- }
127
- });
128
- resolve({
129
- dependencies: dependencies,
130
- urlHash: urlHash
131
- });
132
- }, e => reject(common.fail(e)));
133
- }
134
- else {
135
- resolve({
136
- dependencies: dependencies,
137
- urlHash: urlHash
138
- });
139
- }
140
- });
141
- }
142
- /**
143
- * Templatizes the url and item id for a layer.
144
- *
145
- * @param layerURL OIC layer URL
146
- * @param urlHash Lookup object for analysis layers
147
- * @returns Templatized URL if layerURL is in the urlHash
148
- * @private
149
- */
150
- export function _templatizeOicLayerUrl(layerURL, urlHash) {
151
- let templatizedURL = layerURL;
152
- if (layerURL) {
153
- const id = urlHash[layerURL];
154
- if (id) {
155
- const layerId = layerURL.substr(layerURL.lastIndexOf("/") + 1);
156
- templatizedURL = common.templatizeTerm(id, id, ".layer" + layerId + ".url");
157
- }
158
- // replace everything up until /home with portalBaseUrl var and templatize the itemId
159
- templatizedURL = common.templatizeIds(templatizedURL.replace(/.+?(?=\/home)/, "{{portalBaseUrl}}"));
160
- }
161
- return templatizedURL;
162
- }
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
+ /**
19
+ * Converts an AGOL OIC (Oriented Imagery Catalog) item to a template.
20
+ *
21
+ * @param itemTemplate Template for the OIC (Oriented Imagery Catalog) item
22
+ * @param destAuthentication Credentials for requests to the destination organization
23
+ * @param srcAuthentication Credentials for requests to source items
24
+ * @returns Template for the solution item that contains key details for item reconstruction
25
+ */
26
+ export function convertItemToTemplate(itemTemplate, destAuthentication, srcAuthentication) {
27
+ return new Promise((resolve, reject) => {
28
+ // Extract dependencies
29
+ _extractDependencies(itemTemplate, srcAuthentication).then((results) => {
30
+ itemTemplate.dependencies = results.dependencies;
31
+ // Templatize the map layer ids after we've extracted them as dependencies
32
+ /* istanbul ignore else */
33
+ if (itemTemplate.data?.properties) {
34
+ itemTemplate.data.properties.ServiceURL = _templatizeOicLayerUrl(itemTemplate.data.properties.ServiceURL, results.urlHash);
35
+ itemTemplate.data.properties.OverviewURL = _templatizeOicLayerUrl(itemTemplate.data.properties.OverviewURL, results.urlHash);
36
+ }
37
+ resolve(itemTemplate);
38
+ }, e => reject(common.fail(e)));
39
+ });
40
+ }
41
+ /**
42
+ * Gets the ids of the dependencies of an AGOL OIC (Oriented Imagery Catalog) item.
43
+ *
44
+ * @param itemTemplate A OIC (Oriented Imagery Catalog) item whose dependencies are sought
45
+ * @param authentication Credentials for any requests
46
+ * @returns List of dependencies ids and url/itemId hash
47
+ * @private
48
+ */
49
+ export function _extractDependencies(itemTemplate, authentication) {
50
+ return new Promise((resolve, reject) => {
51
+ const dependencies = [];
52
+ if (itemTemplate.data?.properties) {
53
+ const layerURLs = [];
54
+ /* istanbul ignore else */
55
+ if (itemTemplate.data.properties.ServiceURL) {
56
+ layerURLs.push(itemTemplate.data.properties.ServiceURL);
57
+ }
58
+ /* istanbul ignore else */
59
+ if (itemTemplate.data.properties.OverviewURL &&
60
+ itemTemplate.data.properties.OverviewURL !==
61
+ itemTemplate.data.properties.ServiceURL) {
62
+ layerURLs.push(itemTemplate.data.properties.OverviewURL);
63
+ }
64
+ _getLayerIds(layerURLs, dependencies, authentication).then(results => {
65
+ resolve(results);
66
+ }, e => reject(common.fail(e)));
67
+ }
68
+ else {
69
+ resolve({
70
+ dependencies: dependencies,
71
+ urlHash: {}
72
+ });
73
+ }
74
+ });
75
+ }
76
+ /**
77
+ * Extracts the AGOL itemId for each layer in a list using the url.
78
+ *
79
+ * @param layerURLs List of OIC layer URLs
80
+ * @param dependencies Current list of dependencies
81
+ * @param authentication Credentials for any requests
82
+ * @returns List of dependencies ids and url/itemId hash
83
+ * @private
84
+ */
85
+ export function _getLayerIds(layerURLs, dependencies, authentication) {
86
+ return new Promise((resolve, reject) => {
87
+ const urlHash = {};
88
+ const options = {
89
+ f: "json",
90
+ authentication: authentication
91
+ };
92
+ const layerPromises = [];
93
+ const layerChecks = {};
94
+ const filteredLayerURLs = layerURLs.filter(layerURL => {
95
+ if (layerURL) {
96
+ const results = /.+FeatureServer/g.exec(layerURL);
97
+ const baseUrl = Array.isArray(results) && results.length > 0 ? results[0] : undefined;
98
+ if (baseUrl) {
99
+ // avoid redundant checks when we have a layer with subLayers
100
+ /* istanbul ignore else */
101
+ if (Object.keys(layerChecks).indexOf(baseUrl) < 0) {
102
+ layerChecks[baseUrl] = common.rest_request(layerURL, options);
103
+ }
104
+ layerPromises.push(layerChecks[baseUrl]);
105
+ return true;
106
+ }
107
+ else {
108
+ return false;
109
+ }
110
+ }
111
+ else {
112
+ return false;
113
+ }
114
+ });
115
+ if (layerPromises.length > 0) {
116
+ Promise.all(layerPromises).then(serviceResponses => {
117
+ serviceResponses.forEach((serviceResponse, i) => {
118
+ /* istanbul ignore else */
119
+ if (common.getProp(serviceResponse, "serviceItemId")) {
120
+ const id = serviceResponse.serviceItemId;
121
+ /* istanbul ignore else */
122
+ if (dependencies.indexOf(id) < 0) {
123
+ dependencies.push(id);
124
+ }
125
+ urlHash[filteredLayerURLs[i]] = id;
126
+ }
127
+ });
128
+ resolve({
129
+ dependencies: dependencies,
130
+ urlHash: urlHash
131
+ });
132
+ }, e => reject(common.fail(e)));
133
+ }
134
+ else {
135
+ resolve({
136
+ dependencies: dependencies,
137
+ urlHash: urlHash
138
+ });
139
+ }
140
+ });
141
+ }
142
+ /**
143
+ * Templatizes the url and item id for a layer.
144
+ *
145
+ * @param layerURL OIC layer URL
146
+ * @param urlHash Lookup object for analysis layers
147
+ * @returns Templatized URL if layerURL is in the urlHash
148
+ * @private
149
+ */
150
+ export function _templatizeOicLayerUrl(layerURL, urlHash) {
151
+ let templatizedURL = layerURL;
152
+ if (layerURL) {
153
+ const id = urlHash[layerURL];
154
+ if (id) {
155
+ const layerId = layerURL.substr(layerURL.lastIndexOf("/") + 1);
156
+ templatizedURL = common.templatizeTerm(id, id, ".layer" + layerId + ".url");
157
+ }
158
+ // replace everything up until /home with portalBaseUrl var and templatize the itemId
159
+ templatizedURL = common.templatizeIds(templatizedURL.replace(/.+?(?=\/home)/, "{{portalBaseUrl}}"));
160
+ }
161
+ return templatizedURL;
162
+ }
163
163
  //# sourceMappingURL=oic.js.map
@@ -1,87 +1,76 @@
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 a Quick Capture item into a template.
19
- *
20
- * @param solutionItemId The solution to contain the template
21
- * @param itemInfo Info about the item
22
- * @param destAuthentication Credentials for requests to the destination organization
23
- * @param srcAuthentication Credentials for requests to source items
24
- * @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
25
- * @returns A promise that will resolve when the template has been created
26
- */
27
- export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary: any): Promise<common.IItemTemplate>;
28
- /**
29
- * Converts an quick capture item to a template.
30
- *
31
- * @param itemTemplate template for the quick capture project item
32
- * @returns templatized itemTemplate
33
- */
34
- export declare function convertQuickCaptureToTemplate(itemTemplate: common.IItemTemplate): Promise<common.IItemTemplate>;
35
- /**
36
- * Templatizes key properties for a quick capture project and gathers item dependencies
37
- *
38
- * @param data the projects json
39
- * @param itemTemplate template for the quick capture project item
40
- * @returns templatized itemTemplate
41
- * @private
42
- */
43
- export declare function _templatizeApplication(data: any, itemTemplate: common.IItemTemplate): any;
44
- /**
45
- * Templatize the email property
46
- *
47
- * @param data the quick capture application
48
- * @private
49
- */
50
- export declare function _templatizeAdminEmail(data: any): void;
51
- /**
52
- * Updates the templates dependencies list with unique item ids
53
- *
54
- * @param id the item id of the dependency
55
- * @param itemTemplate template for the quick capture project item
56
- * @returns templatized itemTemplate
57
- */
58
- export declare function _updateDependencies(id: string, itemTemplate: common.IItemTemplate): void;
59
- /**
60
- * Templatize a url property
61
- *
62
- * @param obj the datasource object
63
- * @param idPath the path to the id property
64
- * @param urlPath the path to the url property
65
- * @private
66
- */
67
- export declare function _templatizeUrl(obj: any, idPath: string, urlPath: string): void;
68
- /**
69
- * Templatize the item id property
70
- *
71
- * @param obj the datasource or object that contains the item id property
72
- * @param path the path to the id property
73
- * @private
74
- */
75
- export declare function _templatizeId(obj: any, path: string): void;
76
- export declare function createItemFromTemplate(template: common.IItemTemplate, templateDictionary: any, destinationAuthentication: common.UserSession, itemProgressCallback: common.IItemProgressCallback): Promise<common.ICreateItemFromTemplateResponse>;
77
- /**
78
- * QuickCapture post-processing actions
79
- *
80
- * @param {string} itemId The item ID
81
- * @param {string} type The template type
82
- * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
83
- * @param {any} templateDictionary The template dictionary
84
- * @param {UserSession} authentication The destination session info
85
- * @returns Promise resolving to successfulness of update
86
- */
87
- export declare function postProcess(itemId: string, type: string, itemInfos: any[], template: common.IItemTemplate, templates: common.IItemTemplate[], templateDictionary: any, authentication: common.UserSession): Promise<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 a Quick Capture item into a template.
19
+ *
20
+ * @param solutionItemId The solution to contain the template
21
+ * @param itemInfo Info about the item
22
+ * @param destAuthentication Credentials for requests to the destination organization
23
+ * @param srcAuthentication Credentials for requests to source items
24
+ * @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
25
+ * @returns A promise that will resolve when the template has been created
26
+ */
27
+ export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary: any): Promise<common.IItemTemplate>;
28
+ /**
29
+ * Converts an quick capture item to a template.
30
+ *
31
+ * @param itemTemplate template for the quick capture project item
32
+ * @returns templatized itemTemplate
33
+ */
34
+ export declare function convertQuickCaptureToTemplate(itemTemplate: common.IItemTemplate): common.IItemTemplate;
35
+ /**
36
+ * Templatizes key properties for a quick capture project and gathers item dependencies
37
+ *
38
+ * @param data the projects json
39
+ * @param itemTemplate template for the quick capture project item
40
+ * @returns templatized itemTemplate
41
+ * @private
42
+ */
43
+ export declare function _templatizeApplication(data: any, itemTemplate: common.IItemTemplate): any;
44
+ /**
45
+ * Templatize the email property
46
+ *
47
+ * @param data the quick capture application
48
+ * @private
49
+ */
50
+ export declare function _templatizeAdminEmail(data: any): void;
51
+ /**
52
+ * Updates the templates dependencies list with unique item ids
53
+ *
54
+ * @param id the item id of the dependency
55
+ * @param itemTemplate template for the quick capture project item
56
+ * @returns templatized itemTemplate
57
+ */
58
+ export declare function _updateDependencies(id: string, itemTemplate: common.IItemTemplate): void;
59
+ /**
60
+ * Templatize a url property
61
+ *
62
+ * @param obj the datasource object
63
+ * @param idPath the path to the id property
64
+ * @param urlPath the path to the url property
65
+ * @private
66
+ */
67
+ export declare function _templatizeUrl(obj: any, idPath: string, urlPath: string): void;
68
+ /**
69
+ * Templatize the item id property
70
+ *
71
+ * @param obj the datasource or object that contains the item id property
72
+ * @param path the path to the id property
73
+ * @private
74
+ */
75
+ export declare function _templatizeId(obj: any, path: string): void;
76
+ export declare function createItemFromTemplate(template: common.IItemTemplate, templateDictionary: any, destinationAuthentication: common.UserSession, itemProgressCallback: common.IItemProgressCallback): Promise<common.ICreateItemFromTemplateResponse>;