@esri/solution-creator 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 (34) hide show
  1. package/dist/esm/createItemTemplate.d.ts +12 -1
  2. package/dist/esm/createItemTemplate.js +42 -3
  3. package/dist/esm/createItemTemplate.js.map +1 -1
  4. package/dist/esm/helpers/add-content-to-solution.js +5 -1
  5. package/dist/esm/helpers/add-content-to-solution.js.map +1 -1
  6. package/package.json +13 -13
  7. package/dist/node/createItemTemplate.d.ts +0 -97
  8. package/dist/node/createItemTemplate.js +0 -376
  9. package/dist/node/createItemTemplate.js.map +0 -1
  10. package/dist/node/creator.d.ts +0 -97
  11. package/dist/node/creator.js +0 -279
  12. package/dist/node/creator.js.map +0 -1
  13. package/dist/node/helpers/add-content-to-solution.d.ts +0 -126
  14. package/dist/node/helpers/add-content-to-solution.js +0 -461
  15. package/dist/node/helpers/add-content-to-solution.js.map +0 -1
  16. package/dist/node/helpers/template.d.ts +0 -30
  17. package/dist/node/helpers/template.js +0 -49
  18. package/dist/node/helpers/template.js.map +0 -1
  19. package/dist/node/index.d.ts +0 -23
  20. package/dist/node/index.js +0 -27
  21. package/dist/node/index.js.map +0 -1
  22. package/dist/node/module-map.d.ts +0 -23
  23. package/dist/node/module-map.js +0 -195
  24. package/dist/node/module-map.js.map +0 -1
  25. package/dist/umd/creator/src/createItemTemplate.d.ts +0 -97
  26. package/dist/umd/creator/src/creator.d.ts +0 -97
  27. package/dist/umd/creator/src/helpers/add-content-to-solution.d.ts +0 -126
  28. package/dist/umd/creator/src/helpers/template.d.ts +0 -30
  29. package/dist/umd/creator/src/index.d.ts +0 -23
  30. package/dist/umd/creator/src/module-map.d.ts +0 -23
  31. package/dist/umd/creator.umd.js +0 -1353
  32. package/dist/umd/creator.umd.js.map +0 -1
  33. package/dist/umd/creator.umd.min.js +0 -19
  34. package/dist/umd/creator.umd.min.js.map +0 -1
@@ -1,195 +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_simple_types_1 = require("@esri/solution-simple-types");
25
- const solution_storymap_1 = require("@esri/solution-storymap");
26
- const solution_velocity_1 = require("@esri/solution-velocity");
27
- const solution_web_experience_1 = require("@esri/solution-web-experience");
28
- const solution_hub_types_1 = require("@esri/solution-hub-types");
29
- exports.UNSUPPORTED = null;
30
- /**
31
- * Mapping from item type to module with type-specific template-handling code.
32
- * AGO types come from a blend of arcgis-portal-app\src\js\arcgisonline\pages\item\_Info.js and
33
- * arcgis-portal-app\src\js\arcgis-components\src\_utils\metadata\item\displayName.ts
34
- */
35
- exports.moduleMap = {
36
- ////////////////////////////////////////////////////////
37
- // Group type
38
- Group: group,
39
- ////////////////////////////////////////////////////////
40
- // Layer types
41
- "Big Data Analytic": solution_velocity_1.VelocityProcessor,
42
- "Feature Collection": solution_simple_types_1.simpleTypes,
43
- "Feature Service": featureLayer,
44
- Feed: solution_velocity_1.VelocityProcessor,
45
- "Geocoding Service": undefined,
46
- "Geodata Service": undefined,
47
- "Geometry Service": undefined,
48
- "Geoprocessing Service": undefined,
49
- "Globe Service": undefined,
50
- "Image Service": undefined,
51
- KML: undefined,
52
- "Map Service": featureLayer,
53
- "Network Analysis Service": undefined,
54
- "Real Time Analytic": solution_velocity_1.VelocityProcessor,
55
- "Relational Database Connection": undefined,
56
- "Scene Service": undefined,
57
- "Stream Service": undefined,
58
- Tool: undefined,
59
- "Vector Tile Service": undefined,
60
- WFS: undefined,
61
- WMS: undefined,
62
- WMTS: undefined,
63
- "Workflow Manager Service": undefined,
64
- ////////////////////////////////////////////////////////
65
- // Map types
66
- "3D Web Scene": undefined,
67
- "Web Map": solution_simple_types_1.simpleTypes,
68
- "Web Scene": solution_simple_types_1.simpleTypes,
69
- ////////////////////////////////////////////////////////
70
- // App types
71
- Application: undefined,
72
- Dashboard: solution_simple_types_1.simpleTypes,
73
- "Data Store": undefined,
74
- "Desktop Application": undefined,
75
- "Excalibur Imagery Project": undefined,
76
- Form: formProcessor,
77
- "Hub Initiative": exports.UNSUPPORTED,
78
- "Hub Page": solution_hub_types_1.HubPageProcessor,
79
- "Hub Site Application": solution_hub_types_1.HubSiteProcessor,
80
- "Insights Model": solution_simple_types_1.simpleTypes,
81
- "Insights Page": undefined,
82
- "Insights Theme": undefined,
83
- "Insights Workbook": undefined,
84
- Mission: undefined,
85
- "Mobile Application": undefined,
86
- Notebook: solution_simple_types_1.notebookProcessor,
87
- "Oriented Imagery Catalog": solution_simple_types_1.simpleTypes,
88
- "Ortho Mapping Project": undefined,
89
- "QuickCapture Project": solution_simple_types_1.quickcaptureProcessor,
90
- "Site Application": solution_hub_types_1.HubSiteProcessor,
91
- "Site Page": solution_hub_types_1.HubPageProcessor,
92
- Solution: exports.UNSUPPORTED,
93
- StoryMap: solution_storymap_1.StoryMapProcessor,
94
- "Urban Model": undefined,
95
- "Web Experience Template": undefined,
96
- "Web Experience": solution_web_experience_1.WebExperienceProcessor,
97
- "Web Mapping Application": solution_simple_types_1.simpleTypes,
98
- "Workforce Project": solution_simple_types_1.simpleTypes,
99
- ////////////////////////////////////////////////////////
100
- // File types
101
- "360 VR Experience": fileProcessor,
102
- "AppBuilder Extension": fileProcessor,
103
- "AppBuilder Widget Package": fileProcessor,
104
- "Application Configuration": fileProcessor,
105
- "ArcGIS Pro Add In": fileProcessor,
106
- "ArcGIS Pro Configuration": fileProcessor,
107
- "ArcPad Package": fileProcessor,
108
- "Basemap Package": fileProcessor,
109
- "CAD Drawing": fileProcessor,
110
- "CityEngine Web Scene": fileProcessor,
111
- "Code Attachment": exports.UNSUPPORTED,
112
- "Code Sample": fileProcessor,
113
- "Color Set": fileProcessor,
114
- "Compact Tile Package": fileProcessor,
115
- "CSV Collection": fileProcessor,
116
- CSV: fileProcessor,
117
- "Deep Learning Package": fileProcessor,
118
- "Desktop Add In": fileProcessor,
119
- "Desktop Application Template": fileProcessor,
120
- "Desktop Style": fileProcessor,
121
- "Document Link": fileProcessor,
122
- "Explorer Add In": fileProcessor,
123
- "Explorer Layer": fileProcessor,
124
- "Explorer Map": fileProcessor,
125
- "Feature Collection Template": fileProcessor,
126
- "File Geodatabase": fileProcessor,
127
- GeoJson: fileProcessor,
128
- GeoPackage: fileProcessor,
129
- "Geoprocessing Package": fileProcessor,
130
- "Geoprocessing Sample": fileProcessor,
131
- "Globe Document": fileProcessor,
132
- "Image Collection": fileProcessor,
133
- Image: fileProcessor,
134
- "iWork Keynote": fileProcessor,
135
- "iWork Numbers": fileProcessor,
136
- "iWork Pages": fileProcessor,
137
- "KML Collection": fileProcessor,
138
- "Layer Package": fileProcessor,
139
- "Layer Template": fileProcessor,
140
- Layer: fileProcessor,
141
- Layout: fileProcessor,
142
- "Locator Package": fileProcessor,
143
- "Map Document": fileProcessor,
144
- "Map Package": fileProcessor,
145
- "Map Template": fileProcessor,
146
- "Microsoft Excel": fileProcessor,
147
- "Microsoft Powerpoint": fileProcessor,
148
- "Microsoft Word": fileProcessor,
149
- "Mobile Basemap Package": fileProcessor,
150
- "Mobile Map Package": fileProcessor,
151
- "Mobile Scene Package": fileProcessor,
152
- "Native Application": fileProcessor,
153
- "Native Application Installer": fileProcessor,
154
- "Native Application Template": fileProcessor,
155
- netCDF: fileProcessor,
156
- "Operation View": fileProcessor,
157
- "Operations Dashboard Add In": fileProcessor,
158
- "Operations Dashboard Extension": fileProcessor,
159
- PDF: fileProcessor,
160
- "Pro Layer Package": fileProcessor,
161
- "Pro Layer": fileProcessor,
162
- "Pro Map Package": fileProcessor,
163
- "Pro Map": fileProcessor,
164
- "Pro Report": fileProcessor,
165
- "Project Package": fileProcessor,
166
- "Project Template": fileProcessor,
167
- "Published Map": fileProcessor,
168
- "Raster function template": fileProcessor,
169
- "Report Template": fileProcessor,
170
- "Rule Package": fileProcessor,
171
- "Scene Document": fileProcessor,
172
- "Scene Package": fileProcessor,
173
- "Service Definition": fileProcessor,
174
- Shapefile: fileProcessor,
175
- "Statistical Data Collection": fileProcessor,
176
- Style: fileProcessor,
177
- "Survey123 Add In": fileProcessor,
178
- "Symbol Set": fileProcessor,
179
- "Task File": fileProcessor,
180
- "Tile Package": fileProcessor,
181
- "Toolbox Package": fileProcessor,
182
- "Vector Tile Package": fileProcessor,
183
- "Viewer Configuration": fileProcessor,
184
- "Visio Document": fileProcessor,
185
- "Window Mobile Package": fileProcessor,
186
- "Windows Mobile Package": fileProcessor,
187
- "Windows Viewer Add In": fileProcessor,
188
- "Windows Viewer Configuration": fileProcessor,
189
- "Workflow Manager Package": fileProcessor,
190
- ////////////////////////////////////////////////////////
191
- // Testing "types"
192
- Undefined: undefined,
193
- Unsupported: exports.UNSUPPORTED
194
- };
195
- //# 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,uEAIqC;AACrC,+DAA4D;AAC5D,+DAA4D;AAC5D,2EAAuE;AACvE,iEAA8E;AAEjE,QAAA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C3B,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,aAAa;IAC7B,iBAAiB,EAAE,aAAa;IAChC,qBAAqB,EAAE,aAAa;IACpC,sBAAsB,EAAE,aAAa;IACrC,gBAAgB,EAAE,aAAa;IAC/B,uBAAuB,EAAE,aAAa;IACtC,wBAAwB,EAAE,aAAa;IACvC,uBAAuB,EAAE,aAAa;IACtC,8BAA8B,EAAE,aAAa;IAC7C,0BAA0B,EAAE,aAAa;IAEzC,wDAAwD;IACxD,kBAAkB;IAClB,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,mBAAW;CACzB,CAAC"}
@@ -1,97 +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 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
- * Templatizes field references within specific template types.
37
- * Currently only handles web applications
38
- *
39
- * @param templates List of solution templates
40
- * @returns A list of templates that have templatized field references
41
- */
42
- export declare function postProcessFieldReferences(templates: IItemTemplate[]): IItemTemplate[];
43
- /**
44
- * Get common properties that will support the templatization of field references
45
- *
46
- * @param templates List of solution templates
47
- * @returns A list of IDataSourceInfo objects with key properties
48
- * @private
49
- */
50
- export declare function _getDatasourceInfos(templates: IItemTemplate[]): IDatasourceInfo[];
51
- /**
52
- * Creates a simple lookup object to quickly understand an items type and dependencies
53
- * and associated web map layer ids based on itemId
54
- *
55
- * @param templates List of solution templates
56
- * @returns The lookup object with type, dependencies, and webmap layer info
57
- * @private
58
- */
59
- export declare function _getTemplateTypeHash(templates: IItemTemplate[]): any;
60
- /**
61
- * Updates the lookup object with webmap layer info
62
- * so we can know the id used within a map for a given feature service
63
- *
64
- * @param template A webmap solution template
65
- * @returns The lookup object with webmap layer info added
66
- * @private
67
- */
68
- export declare function _updateWebMapHashInfo(template: IItemTemplate, hashItem: any): void;
69
- /**
70
- * Updates a templatized datasource URL with a layer id.
71
- *
72
- * @param dataSourceUrl Templatized datasource URL
73
- * @param layerId Layer id
74
- * @returns string Amended datasource URL
75
- * @private
76
- */
77
- export declare function _addLayerIdToDatasourceUrl(datasourceUrl?: string, layerId?: any): string;
78
- /**
79
- * Updates the datasource info objects by passing the webmap layer IDs from the lookup hash
80
- * to the underlying feature service datasource infos
81
- *
82
- * @param datasourceInfos A webmap solution template
83
- * @param templateTypeHash A simple lookup object populated with key item info
84
- * @returns The updated datasource infos
85
- * @private
86
- */
87
- export declare function _addMapLayerIds(datasourceInfos: IDatasourceInfo[], templateTypeHash: any): IDatasourceInfo[];
88
- /**
89
- * Get feature service item IDs from applications webmaps
90
- * As they are not explict dependencies of the application but are needed for field references
91
- *
92
- * @param template A webmap solution template
93
- * @param templateTypeHash A simple lookup object populated with key item info
94
- * @returns A lsit of feature service item IDs
95
- * @private
96
- */
97
- export declare function _getWebMapFSDependencies(template: IItemTemplate, templateTypeHash: any): string[];
@@ -1,97 +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
- import { ICreateSolutionOptions, IGroup, IItem, UserSession } from "@esri/solution-common";
22
- import { IModel } from "@esri/hub-common";
23
- /**
24
- * Creates a solution item.
25
- *
26
- * @param sourceId AGO id of group whose contents are to be added to solution or of an item to convert into a solution
27
- * @param srcAuthentication Credentials for requests to source items
28
- * @param destAuthentication Credentials for the requests to destination solution
29
- * @param options Customizations for creating the solution
30
- * @returns A promise that resolves with the AGO id of the new solution
31
- */
32
- export declare function createSolution(sourceId: string, srcAuthentication: UserSession, destAuthentication: UserSession, options?: ICreateSolutionOptions): Promise<string>;
33
- /**
34
- * Update the createOptions with the group properties
35
- *
36
- * @param createOptions
37
- * @param sourceInfo
38
- * @param authentication
39
- * @param isGroup Boolean to indicate if the files are associated with a group or item
40
- * @private
41
- */
42
- export declare function _applySourceToCreateOptions(createOptions: ICreateSolutionOptions, sourceInfo: IGroup | IItem, srcAuthentication: UserSession, isGroup?: boolean): ICreateSolutionOptions;
43
- /**
44
- * Update the createOptions with the thumbnail file
45
- *
46
- * @param createOptions
47
- * @param srcAuthentication
48
- * @private
49
- */
50
- export declare function _addThumbnailFileToCreateOptions(createOptions: ICreateSolutionOptions, srcAuthentication: UserSession): Promise<ICreateSolutionOptions>;
51
- /**
52
- * Creates a solution item using a list of AGO item ids.
53
- *
54
- * @param options Customizations for creating the solution
55
- * @param srcAuthentication Credentials for requests to source items
56
- * @param destAuthentication Credentials for the requests to destination solution
57
- * @returns A promise that resolves with the AGO id of the new solution; solution item is deleted if its
58
- * there is a problem updating it
59
- * @private
60
- */
61
- export declare function _createSolutionFromItemIds(options: ICreateSolutionOptions, srcAuthentication: UserSession, destAuthentication: UserSession): Promise<string>;
62
- /**
63
- * Creates an empty solution item.
64
- *
65
- * @param authentication Credentials for the request
66
- * @param options Customizations for creating the solution
67
- * @returns A promise that resolves with the AGO id of the new solution; solution item is deleted if its
68
- * there is a problem updating its thumbnail
69
- * @private
70
- */
71
- export declare function _createSolutionItem(authentication: UserSession, options?: ICreateSolutionOptions): Promise<string>;
72
- /**
73
- * Create the Solution Item model to be used to create
74
- * the Solution Item itself
75
- *
76
- * @param options
77
- * @private
78
- */
79
- export declare function _createSolutionItemModel(options: any): IModel;
80
- /**
81
- * Gets the deploy.id and deploy.version tag values.
82
- *
83
- * @param tags A list of item tags
84
- * @returns A list containing the two values found in the tags, or defaulting to a new GUID and "1.0", respectively,
85
- * as needed
86
- * @private
87
- */
88
- export declare function _getDeploymentProperties(tags: string[]): string[];
89
- /**
90
- * Searches for a tag that has the specified prefix and returns the rest of the tag following that prefix.
91
- *
92
- * @param desiredTagPrefix Tag prefix to look for
93
- * @param tags A list of item tags
94
- * @returns The extracted value of the first matching tag or null if a tag with the specified prefix is not found
95
- * @private
96
- */
97
- export declare function _getDeploymentProperty(desiredTagPrefix: string, tags: string[]): string | null;
@@ -1,126 +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 { ICreateSolutionOptions, IItemTemplate, UserSession } from "@esri/solution-common";
17
- /**
18
- * Adds a list of AGO item ids to a solution item.
19
- *
20
- * @param solutionItemId AGO id of solution to receive items
21
- * @param options Customizations for creating the solution
22
- * @param srcAuthentication Credentials for requests to source items
23
- * @param destAuthentication Credentials for the requests to destination solution
24
- * @returns A promise that resolves with the AGO id of the updated solution
25
- * @internal
26
- */
27
- export declare function addContentToSolution(solutionItemId: string, options: ICreateSolutionOptions, srcAuthentication: UserSession, destAuthentication: UserSession): Promise<string>;
28
- /**
29
- * Gets the dependencies of an item by merging its dependencies list with item references in template variables.
30
- *
31
- * @param template Template to examine
32
- * @returns List of dependency ids
33
- * @private
34
- */
35
- export declare function _getDependencies(template: IItemTemplate): string[];
36
- /**
37
- * Extracts AGO ids out of template variables.
38
- *
39
- * @param variables List of template variables to examine
40
- * @returns List of AGO ids referenced in `variables`
41
- * @private
42
- */
43
- export declare function _getIdsOutOfTemplateVariables(variables: string[]): string[];
44
- /**
45
- * Creates a list of item URLs.
46
- *
47
- * @param templates Templates to check for URLs
48
- * @returns List of URLs
49
- * @private
50
- */
51
- export declare function _getSolutionItemUrls(templates: IItemTemplate[]): string[][];
52
- /**
53
- * Extracts template variables out of a string.
54
- *
55
- * @param text String to examine
56
- * @returns List of template variables found in string
57
- * @private
58
- */
59
- export declare function _getTemplateVariables(text: string): string[];
60
- /**
61
- * Update the items dependencies and groups arrays
62
- *
63
- * @param templates The array of templates to evaluate
64
- * @returns Updated version of the templates
65
- * @private
66
- */
67
- export declare function _postProcessGroupDependencies(templates: IItemTemplate[]): IItemTemplate[];
68
- /**
69
- * Check for feature service items that have been flagged for invalid designations.
70
- * Remove templates that have invalid designations from the solution item and other item dependencies.
71
- * Clean up any references to items with invalid designations in the other templates.
72
- *
73
- * @param templates The array of templates to evaluate
74
- * @param templateDictionary Hash of key details used for variable replacement
75
- * @returns Updated version of the templates
76
- * @private
77
- */
78
- export declare function _postProcessIgnoredItems(templates: IItemTemplate[], templateDictionary: any): IItemTemplate[];
79
- /**
80
- * Recursively runs through an object to find and replace any strings found in a dictionary.
81
- *
82
- * @param templateDictionary Hash of things to be replaced
83
- * @param obj Object to be examined
84
- * @private
85
- */
86
- export declare function _replaceDictionaryItemsInObject(hash: any, obj: any): any;
87
- /**
88
- * Recursively runs through an object to find and templatize any remaining references to solution's items.
89
- *
90
- * @param ids Ids to be replaced in strings found in object
91
- * @param obj Object to be examined
92
- * @private
93
- */
94
- export declare function _replaceRemainingIdsInObject(ids: string[], obj: any): any;
95
- /**
96
- * Templatizes ids from a list in a string if they're not already templatized.
97
- *
98
- * @param ids Ids to be replaced in source string
99
- * @param str Source string to be examined
100
- * @returns A copy of the source string with any templatization changes
101
- * @private
102
- */
103
- export declare function _replaceRemainingIdsInString(ids: string[], str: string): string;
104
- /**
105
- * Finds and templatizes any URLs in solution items' descriptions.
106
- *
107
- * @param templates The array of templates to evaluate, modified in place
108
- * @private
109
- */
110
- export declare function _simplifyUrlsInItemDescriptions(templates: IItemTemplate[]): void;
111
- /**
112
- * Templatizes occurrences of the URL to the user's organization in the `item` and `data` template sections.
113
- *
114
- * @param templates The array of templates to evaluate; templates is modified in place
115
- * @param destAuthentication Credentials for request organization info
116
- * @returns Promise resolving with `templates`
117
- * @private
118
- */
119
- export declare function _templatizeOrgUrl(templates: IItemTemplate[], destAuthentication: UserSession): Promise<IItemTemplate[]>;
120
- /**
121
- * Finds and templatizes any references to solution's items.
122
- *
123
- * @param templates The array of templates to evaluate, modified in place
124
- * @private
125
- */
126
- export declare function _templatizeSolutionIds(templates: IItemTemplate[]): void;
@@ -1,30 +0,0 @@
1
- /** @license
2
- * Copyright 2022 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 { IItemTemplate, ISourceFile } from "@esri/solution-common";
17
- /**
18
- * Extracts resource data files from templates.
19
- *
20
- * @param templates List of templates to examine
21
- *
22
- * @return List of resource data files found in supplied templates
23
- */
24
- export declare function getDataFilesFromTemplates(templates: IItemTemplate[]): ISourceFile[];
25
- /**
26
- * Removes data files from templates.
27
- *
28
- * @param templates List of templates to modify
29
- */
30
- export declare function removeDataFilesFromTemplates(templates: IItemTemplate[]): void;
@@ -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";
@@ -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.js and
21
- * arcgis-portal-app\src\js\arcgis-components\src\_utils\metadata\item\displayName.ts
22
- */
23
- export declare const moduleMap: IItemTypeModuleMap;