@esri/solution-creator 6.0.5-alpha.0 → 6.1.0-alpha.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 (37) hide show
  1. package/package.json +15 -15
  2. package/dist/cjs/createItemTemplate.d.ts +0 -117
  3. package/dist/cjs/createItemTemplate.js +0 -484
  4. package/dist/cjs/createItemTemplate.js.map +0 -1
  5. package/dist/cjs/creator.d.ts +0 -107
  6. package/dist/cjs/creator.js +0 -374
  7. package/dist/cjs/creator.js.map +0 -1
  8. package/dist/cjs/helpers/add-content-to-solution.d.ts +0 -159
  9. package/dist/cjs/helpers/add-content-to-solution.js +0 -561
  10. package/dist/cjs/helpers/add-content-to-solution.js.map +0 -1
  11. package/dist/cjs/helpers/template.d.ts +0 -30
  12. package/dist/cjs/helpers/template.js +0 -49
  13. package/dist/cjs/helpers/template.js.map +0 -1
  14. package/dist/cjs/index.d.ts +0 -23
  15. package/dist/cjs/index.js +0 -27
  16. package/dist/cjs/index.js.map +0 -1
  17. package/dist/cjs/module-map.d.ts +0 -23
  18. package/dist/cjs/module-map.js +0 -234
  19. package/dist/cjs/module-map.js.map +0 -1
  20. package/dist/esm/createItemTemplate.d.ts +0 -117
  21. package/dist/esm/createItemTemplate.js +0 -471
  22. package/dist/esm/createItemTemplate.js.map +0 -1
  23. package/dist/esm/creator.d.ts +0 -107
  24. package/dist/esm/creator.js +0 -362
  25. package/dist/esm/creator.js.map +0 -1
  26. package/dist/esm/helpers/add-content-to-solution.d.ts +0 -159
  27. package/dist/esm/helpers/add-content-to-solution.js +0 -540
  28. package/dist/esm/helpers/add-content-to-solution.js.map +0 -1
  29. package/dist/esm/helpers/template.d.ts +0 -30
  30. package/dist/esm/helpers/template.js +0 -44
  31. package/dist/esm/helpers/template.js.map +0 -1
  32. package/dist/esm/index.d.ts +0 -23
  33. package/dist/esm/index.js +0 -24
  34. package/dist/esm/index.js.map +0 -1
  35. package/dist/esm/module-map.d.ts +0 -23
  36. package/dist/esm/module-map.js +0 -230
  37. package/dist/esm/module-map.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/helpers/template.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH;;;;;;GAMG;AACH,SAAgB,yBAAyB,CAAC,SAA0B;IAClE,MAAM,iBAAiB,GAAkB,EAAE,CAAC;IAE5C,SAAS,CAAC,OAAO,CAAC,CAAC,QAAuB,EAAE,EAAE;QAC5C,IAAI,QAAQ,CAAC,QAAQ,EAAE;YACrB,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;SAC3C;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAVD,8DAUC;AAED;;;;GAIG;AACH,SAAgB,4BAA4B,CAAC,SAA0B;IACrE,SAAS,CAAC,OAAO,CAAC,CAAC,QAAuB,EAAE,EAAE;QAC5C,IAAI,QAAQ,CAAC,QAAQ,EAAE;YACrB,OAAO,QAAQ,CAAC,QAAQ,CAAC;SAC1B;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAND,oEAMC"}
@@ -1,23 +0,0 @@
1
- /** @license
2
- * Copyright 2018 Esri
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- /**
17
- * Manages the creation of a Solution item.
18
- *
19
- * @module creator
20
- */
21
- export * from "./creator";
22
- export * from "./createItemTemplate";
23
- export * from "./module-map";
package/dist/cjs/index.js DELETED
@@ -1,27 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2018 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const tslib_1 = require("tslib");
19
- /**
20
- * Manages the creation of a Solution item.
21
- *
22
- * @module creator
23
- */
24
- tslib_1.__exportStar(require("./creator"), exports);
25
- tslib_1.__exportStar(require("./createItemTemplate"), exports);
26
- tslib_1.__exportStar(require("./module-map"), exports);
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH;;;;GAIG;AAEH,oDAA0B;AAC1B,+DAAqC;AACrC,uDAA6B"}
@@ -1,23 +0,0 @@
1
- /** @license
2
- * Copyright 2020 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 { moduleHandler, IItemTypeModuleMap } from "@esri/solution-common";
17
- export declare const UNSUPPORTED: moduleHandler;
18
- /**
19
- * Mapping from item type to module with type-specific template-handling code.
20
- * AGO types come from a blend of arcgis-portal-app\src\js\arcgisonline\pages\item\_Info.ts and
21
- * arcgis-portal-app\src\js\arcgis-components\src\_utils\metadata\item\displayName.ts
22
- */
23
- export declare const moduleMap: IItemTypeModuleMap;
@@ -1,234 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2020 Esri
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.moduleMap = exports.UNSUPPORTED = void 0;
19
- const tslib_1 = require("tslib");
20
- const featureLayer = tslib_1.__importStar(require("@esri/solution-feature-layer"));
21
- const fileProcessor = tslib_1.__importStar(require("@esri/solution-file"));
22
- const formProcessor = tslib_1.__importStar(require("@esri/solution-form"));
23
- const group = tslib_1.__importStar(require("@esri/solution-group"));
24
- const solution_hub_types_1 = require("@esri/solution-hub-types");
25
- const solution_simple_types_1 = require("@esri/solution-simple-types");
26
- const solution_storymap_1 = require("@esri/solution-storymap");
27
- const solution_velocity_1 = require("@esri/solution-velocity");
28
- const solution_web_experience_1 = require("@esri/solution-web-experience");
29
- const solution_web_tool_1 = require("@esri/solution-web-tool");
30
- const workflowProcessor = tslib_1.__importStar(require("@esri/solution-workflow"));
31
- exports.UNSUPPORTED = null;
32
- /**
33
- * Mapping from item type to module with type-specific template-handling code.
34
- * AGO types come from a blend of arcgis-portal-app\src\js\arcgisonline\pages\item\_Info.ts and
35
- * arcgis-portal-app\src\js\arcgis-components\src\_utils\metadata\item\displayName.ts
36
- */
37
- exports.moduleMap = {
38
- ////////////////////////////////////////////////////////
39
- // Group type
40
- "Group": group,
41
- ////////////////////////////////////////////////////////
42
- // Layer types
43
- "Big Data Analytic": solution_velocity_1.VelocityProcessor,
44
- "Feature Collection": solution_simple_types_1.simpleTypes,
45
- "Feature Service": featureLayer,
46
- "Feed": solution_velocity_1.VelocityProcessor,
47
- "Geocoding Service": undefined,
48
- "Geodata Service": undefined,
49
- "Geometry Service": undefined,
50
- "Geoprocessing Service": solution_web_tool_1.WebToolProcessor,
51
- "Globe Service": undefined,
52
- "Image Service": undefined,
53
- "KML": undefined,
54
- "Map Service": featureLayer,
55
- "Network Analysis Service": undefined,
56
- "Real Time Analytic": solution_velocity_1.VelocityProcessor,
57
- "Relational Database Connection": undefined,
58
- "Scene Service": undefined,
59
- "Stream Service": undefined,
60
- "Tool": undefined,
61
- "Vector Tile Service": solution_simple_types_1.simpleTypes,
62
- "WFS": undefined,
63
- "WMS": undefined,
64
- "WMTS": undefined,
65
- "Workflow Manager Service": undefined,
66
- ////////////////////////////////////////////////////////
67
- // Map types
68
- "3D Web Scene": undefined,
69
- "Web Map": solution_simple_types_1.simpleTypes,
70
- "Web Scene": solution_simple_types_1.simpleTypes,
71
- ////////////////////////////////////////////////////////
72
- // App types
73
- "Application": undefined,
74
- "Dashboard": solution_simple_types_1.simpleTypes,
75
- "Data Pipeline": solution_simple_types_1.simpleTypes,
76
- "Data Store": undefined,
77
- "Desktop Application": undefined,
78
- "Excalibur Imagery Project": undefined,
79
- "Form": formProcessor,
80
- "Hub Initiative": exports.UNSUPPORTED,
81
- "Hub Page": solution_hub_types_1.HubPageProcessor,
82
- "Hub Site Application": solution_hub_types_1.HubSiteProcessor,
83
- "Insights Model": solution_simple_types_1.simpleTypes,
84
- "Insights Page": undefined,
85
- "Insights Theme": undefined,
86
- "Insights Workbook": undefined,
87
- "Mission": undefined,
88
- "Mobile Application": undefined,
89
- "Notebook": solution_simple_types_1.notebookProcessor,
90
- "Oriented Imagery Catalog": solution_simple_types_1.simpleTypes,
91
- "Ortho Mapping Project": undefined,
92
- "QuickCapture Project": solution_simple_types_1.quickcaptureProcessor,
93
- "Site Application": solution_hub_types_1.HubSiteProcessor,
94
- "Site Page": solution_hub_types_1.HubPageProcessor,
95
- "Solution": exports.UNSUPPORTED,
96
- "StoryMap": solution_storymap_1.StoryMapProcessor,
97
- "Urban Model": undefined,
98
- "Web Experience Template": undefined,
99
- "Web Experience": solution_web_experience_1.WebExperienceProcessor,
100
- "Web Mapping Application": solution_simple_types_1.simpleTypes,
101
- "Workforce Project": solution_simple_types_1.simpleTypes,
102
- ////////////////////////////////////////////////////////
103
- // File types
104
- "360 VR Experience": fileProcessor,
105
- "AppBuilder Extension": fileProcessor,
106
- "AppBuilder Widget Package": fileProcessor,
107
- "Application Configuration": fileProcessor,
108
- "ArcGIS Pro Add In": fileProcessor,
109
- "ArcGIS Pro Configuration": fileProcessor,
110
- "ArcPad Package": fileProcessor,
111
- "Basemap Package": fileProcessor,
112
- "CAD Drawing": fileProcessor,
113
- "CityEngine Web Scene": fileProcessor,
114
- "Code Attachment": exports.UNSUPPORTED,
115
- "Code Sample": fileProcessor,
116
- "Color Set": fileProcessor,
117
- "Compact Tile Package": fileProcessor,
118
- "CSV Collection": fileProcessor,
119
- "CSV": fileProcessor,
120
- "Deep Learning Package": fileProcessor,
121
- "Desktop Add In": fileProcessor,
122
- "Desktop Application Template": fileProcessor,
123
- "Desktop Style": fileProcessor,
124
- "Document Link": fileProcessor,
125
- "Explorer Add In": fileProcessor,
126
- "Explorer Layer": fileProcessor,
127
- "Explorer Map": fileProcessor,
128
- "Feature Collection Template": fileProcessor,
129
- "File Geodatabase": fileProcessor,
130
- "GeoJson": fileProcessor,
131
- "GeoPackage": fileProcessor,
132
- "Geoprocessing Package": fileProcessor,
133
- "Geoprocessing Sample": fileProcessor,
134
- "Globe Document": fileProcessor,
135
- "Image Collection": fileProcessor,
136
- "Image": fileProcessor,
137
- "iWork Keynote": fileProcessor,
138
- "iWork Numbers": fileProcessor,
139
- "iWork Pages": fileProcessor,
140
- "KML Collection": fileProcessor,
141
- "Layer Package": fileProcessor,
142
- "Layer Template": fileProcessor,
143
- "Layer": fileProcessor,
144
- "Layout": fileProcessor,
145
- "Locator Package": fileProcessor,
146
- "Map Document": fileProcessor,
147
- "Map Package": fileProcessor,
148
- "Map Template": fileProcessor,
149
- "Microsoft Excel": fileProcessor,
150
- "Microsoft Powerpoint": fileProcessor,
151
- "Microsoft Word": fileProcessor,
152
- "Mobile Basemap Package": fileProcessor,
153
- "Mobile Map Package": fileProcessor,
154
- "Mobile Scene Package": fileProcessor,
155
- "Native Application": fileProcessor,
156
- "Native Application Installer": fileProcessor,
157
- "Native Application Template": fileProcessor,
158
- "netCDF": fileProcessor,
159
- "Operation View": fileProcessor,
160
- "Operations Dashboard Add In": fileProcessor,
161
- "Operations Dashboard Extension": fileProcessor,
162
- "PDF": fileProcessor,
163
- "Pro Layer Package": fileProcessor,
164
- "Pro Layer": fileProcessor,
165
- "Pro Map Package": fileProcessor,
166
- "Pro Map": fileProcessor,
167
- "Pro Report": fileProcessor,
168
- "Project Package": fileProcessor,
169
- "Project Template": fileProcessor,
170
- "Published Map": fileProcessor,
171
- "Raster function template": fileProcessor,
172
- "Report Template": fileProcessor,
173
- "Rule Package": fileProcessor,
174
- "Scene Document": fileProcessor,
175
- "Scene Package": fileProcessor,
176
- "Service Definition": fileProcessor,
177
- "Shapefile": fileProcessor,
178
- "Statistical Data Collection": fileProcessor,
179
- "Style": solution_simple_types_1.simpleTypes,
180
- "Survey123 Add In": fileProcessor,
181
- "Symbol Set": fileProcessor,
182
- "Task File": fileProcessor,
183
- "Tile Package": fileProcessor,
184
- "Toolbox Package": fileProcessor,
185
- "Vector Tile Package": fileProcessor,
186
- "Viewer Configuration": fileProcessor,
187
- "Visio Document": fileProcessor,
188
- "Window Mobile Package": fileProcessor,
189
- "Windows Mobile Package": fileProcessor,
190
- "Windows Viewer Add In": fileProcessor,
191
- "Windows Viewer Configuration": fileProcessor,
192
- "Workflow": workflowProcessor,
193
- "Workflow Manager Package": fileProcessor,
194
- ////////////////////////////////////////////////////////
195
- // New types
196
- "Administrative Report": undefined,
197
- "Apache Parquet": undefined,
198
- "API Key": undefined,
199
- "datastore catalog service": undefined,
200
- "Deep Learning Studio Project": undefined,
201
- "Earth Configuration": undefined,
202
- "Elevation Layer": undefined,
203
- "Esri Classifier Definition": undefined,
204
- "Export Package": undefined,
205
- "GeoBIM Application": undefined,
206
- "GeoBIM Project": undefined,
207
- "Geoenrichment Service": undefined,
208
- "GML": undefined,
209
- "Hub Event": undefined,
210
- "Hub Initiative Template": undefined,
211
- "Hub Project": undefined,
212
- "Insights Data Engineering Model": undefined,
213
- "Insights Data Engineering Workbook": undefined,
214
- "Insights Workbook Package": undefined,
215
- "Knowledge Graph": undefined,
216
- "Knowledge Studio Project": undefined,
217
- "Link Chart": undefined,
218
- "Map Image Layer": undefined,
219
- "Markup": undefined,
220
- "OGCFeatureServer": undefined,
221
- "Pro Project": undefined,
222
- "Pro Report Template": undefined,
223
- "Route Layer": undefined,
224
- "Scene Layer Package": undefined,
225
- "Site Initiative": undefined,
226
- "StoryMap Theme": undefined,
227
- "Table": undefined,
228
- "Video Service": undefined,
229
- ////////////////////////////////////////////////////////
230
- // Testing "types"
231
- "Undefined": undefined,
232
- "Unsupported": exports.UNSUPPORTED,
233
- };
234
- //# sourceMappingURL=module-map.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-map.js","sourceRoot":"","sources":["../../src/module-map.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAGH,mFAA6D;AAC7D,2EAAqD;AACrD,2EAAqD;AACrD,oEAA8C;AAC9C,iEAA8E;AAC9E,uEAAoG;AACpG,+DAA4D;AAC5D,+DAA4D;AAC5D,2EAAuE;AACvE,+DAA2D;AAC3D,mFAA6D;AAEhD,QAAA,WAAW,GAAkB,IAAI,CAAC;AAE/C;;;;GAIG;AACU,QAAA,SAAS,GAAuB;IAC3C,wDAAwD;IACxD,aAAa;IACb,OAAO,EAAE,KAAK;IAEd,wDAAwD;IACxD,cAAc;IACd,mBAAmB,EAAE,qCAAiB;IACtC,oBAA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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
- * Manages creation of the template of a Solution item via the REST API.
18
- *
19
- * @module createItemTemplate
20
- */
21
- import { IDatasourceInfo, IItemProgressCallback, IItemTemplate, ISourceFile, UserSession } from "@esri/solution-common";
22
- /**
23
- * Creates template for an AGO item and its dependencies
24
- *
25
- * @param solutionItemId The solution to contain the item
26
- * @param itemId AGO id string
27
- * @param templateDictionary Hash of facts
28
- * @param srcAuthentication Credentials for requests to source items
29
- * @param destAuthentication Authentication for requesting information from AGO about items to be included in solution item
30
- * @param existingTemplates A collection of AGO item templates that can be referenced by newly-created templates
31
- * @returns A promise which resolves with an array of resources for the item and its dependencies
32
- * @private
33
- */
34
- export declare function createItemTemplate(solutionItemId: string, itemId: string, templateDictionary: any, srcAuthentication: UserSession, destAuthentication: UserSession, existingTemplates: IItemTemplate[], itemProgressCallback: IItemProgressCallback): Promise<ISourceFile[]>;
35
- /**
36
- * Remove webtool resource files from Geoprocessing Service
37
- * This needs to be done after fetched so we can read from the file before we remove it
38
- *
39
- * @param template The current template
40
- * @param files The list of resource files for the given template
41
- * @returns The updated template
42
- */
43
- export declare function postProcessResourceFiles(template: IItemTemplate, files: ISourceFile[]): ISourceFile[];
44
- /**
45
- * Templatizes field references within specific template types.
46
- * Currently only handles web applications
47
- *
48
- * @param templates List of solution templates
49
- * @returns A list of templates that have templatized field references
50
- */
51
- export declare function postProcessFieldReferences(templates: IItemTemplate[]): IItemTemplate[];
52
- /**
53
- * Get common properties that will support the templatization of field references
54
- *
55
- * @param templates List of solution templates
56
- * @returns A list of IDataSourceInfo objects with key properties
57
- * @private
58
- */
59
- export declare function _getDatasourceInfos(templates: IItemTemplate[]): IDatasourceInfo[];
60
- /**
61
- * Creates a simple lookup object to quickly understand an items type and dependencies
62
- * and associated web map layer ids based on itemId
63
- *
64
- * @param templates List of solution templates
65
- * @returns The lookup object with type, dependencies, and webmap layer info
66
- * @private
67
- */
68
- export declare function _getTemplateTypeHash(templates: IItemTemplate[]): any;
69
- /**
70
- * Updates the lookup object with webmap layer info
71
- * so we can know the id used within a map for a given feature service
72
- *
73
- * @param template A webmap solution template
74
- * @returns The lookup object with webmap layer info added
75
- * @private
76
- */
77
- export declare function _updateWebMapHashInfo(template: IItemTemplate, hashItem: any): void;
78
- /**
79
- * Updates a templatized datasource URL with a layer id.
80
- *
81
- * @param dataSourceUrl Templatized datasource URL
82
- * @param layerId Layer id
83
- * @returns string Amended datasource URL
84
- * @private
85
- */
86
- export declare function _addLayerIdToDatasourceUrl(datasourceUrl?: string, layerId?: any): string;
87
- /**
88
- * Updates the datasource info objects by passing the webmap layer IDs from the lookup hash
89
- * to the underlying feature service datasource infos
90
- *
91
- * @param datasourceInfos A webmap solution template
92
- * @param templateTypeHash A simple lookup object populated with key item info
93
- * @returns The updated datasource infos
94
- * @private
95
- */
96
- export declare function _addMapLayerIds(datasourceInfos: IDatasourceInfo[], templateTypeHash: any): IDatasourceInfo[];
97
- /**
98
- * Get feature service item IDs from applications webmaps
99
- * As they are not explict dependencies of the application but are needed for field references
100
- *
101
- * @param template A webmap solution template
102
- * @param templateTypeHash A simple lookup object populated with key item info
103
- * @returns A list of feature service item IDs
104
- * @private
105
- */
106
- export declare function _getWebMapFSDependencies(template: IItemTemplate, templateTypeHash: any): string[];
107
- /**
108
- * Perform templatizations needed in an item's resources
109
- *
110
- * @param itemTemplate Item being templatized
111
- * @param resourceItemFiles Resources for the item; these resources are modified as needed
112
- * by the templatization
113
- * @param srcAuthentication Credentials for requests to source items
114
- *
115
- * @returns A promise that resolves when all templatization has completed
116
- */
117
- export declare function _templatizeResources(itemTemplate: IItemTemplate, resourceItemFiles: ISourceFile[], srcAuthentication: UserSession): Promise<void[]>;