@esri/solution-deployer 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 (43) hide show
  1. package/dist/esm/deploySolutionItems.js +1 -1
  2. package/dist/esm/deploySolutionItems.js.map +1 -1
  3. package/package.json +13 -13
  4. package/dist/node/deploySolutionFromTemplate.d.ts +0 -48
  5. package/dist/node/deploySolutionFromTemplate.js +0 -332
  6. package/dist/node/deploySolutionFromTemplate.js.map +0 -1
  7. package/dist/node/deploySolutionItems.d.ts +0 -224
  8. package/dist/node/deploySolutionItems.js +0 -850
  9. package/dist/node/deploySolutionItems.js.map +0 -1
  10. package/dist/node/deployer.d.ts +0 -34
  11. package/dist/node/deployer.js +0 -102
  12. package/dist/node/deployer.js.map +0 -1
  13. package/dist/node/deployerUtils.d.ts +0 -47
  14. package/dist/node/deployerUtils.js +0 -124
  15. package/dist/node/deployerUtils.js.map +0 -1
  16. package/dist/node/helpers/post-process.d.ts +0 -29
  17. package/dist/node/helpers/post-process.js +0 -62
  18. package/dist/node/helpers/post-process.js.map +0 -1
  19. package/dist/node/helpers/share-templates-to-groups.d.ts +0 -24
  20. package/dist/node/helpers/share-templates-to-groups.js +0 -65
  21. package/dist/node/helpers/share-templates-to-groups.js.map +0 -1
  22. package/dist/node/helpers/sortTemplates.d.ts +0 -23
  23. package/dist/node/helpers/sortTemplates.js +0 -15
  24. package/dist/node/helpers/sortTemplates.js.map +0 -1
  25. package/dist/node/index.d.ts +0 -24
  26. package/dist/node/index.js +0 -28
  27. package/dist/node/index.js.map +0 -1
  28. package/dist/node/module-map.d.ts +0 -23
  29. package/dist/node/module-map.js +0 -195
  30. package/dist/node/module-map.js.map +0 -1
  31. package/dist/umd/deployer/src/deploySolutionFromTemplate.d.ts +0 -48
  32. package/dist/umd/deployer/src/deploySolutionItems.d.ts +0 -224
  33. package/dist/umd/deployer/src/deployer.d.ts +0 -34
  34. package/dist/umd/deployer/src/deployerUtils.d.ts +0 -47
  35. package/dist/umd/deployer/src/helpers/post-process.d.ts +0 -29
  36. package/dist/umd/deployer/src/helpers/share-templates-to-groups.d.ts +0 -24
  37. package/dist/umd/deployer/src/helpers/sortTemplates.d.ts +0 -23
  38. package/dist/umd/deployer/src/index.d.ts +0 -24
  39. package/dist/umd/deployer/src/module-map.d.ts +0 -23
  40. package/dist/umd/deployer.umd.js +0 -1710
  41. package/dist/umd/deployer.umd.js.map +0 -1
  42. package/dist/umd/deployer.umd.min.js +0 -19
  43. package/dist/umd/deployer.umd.min.js.map +0 -1
@@ -1,28 +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 deployment of a Solution.
21
- *
22
- * @module deployer
23
- */
24
- tslib_1.__exportStar(require("./deployer"), exports);
25
- tslib_1.__exportStar(require("./deploySolutionItems"), exports);
26
- tslib_1.__exportStar(require("./deployerUtils"), exports);
27
- tslib_1.__exportStar(require("./module-map"), exports);
28
- //# 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,qDAA2B;AAC3B,gEAAsC;AACtC,0DAAgC;AAChC,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.js and
21
- * arcgis-portal-app\src\js\arcgis-components\src\_utils\metadata\item\displayName.ts
22
- */
23
- export declare const moduleMap: IItemTypeModuleMap;
@@ -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,WAAW,GAAkB,IAAI,CAAC;AAE/C;;;;GAIG;AACU,QAAA,SAAS,GAAuB;IAC3C,wDAAwD;IACxD,aAAa;IACb,KAAK,EAAE,KAAK;IAEZ,wDAAwD;IACxD,cAAc;IACd,mBAAmB,EAAE,qCAAiB;IACtC,oBAAoB,EAAE,mCAAW;IACjC,iBAAiB,EAAE,YAAY;IAC/B,IAAI,EAAE,qCAAiB;IACvB,mBAAmB,EAAE,SAAS;IAC9B,iBAAiB,EAAE,SAAS;IAC5B,kBAAkB,EAAE,SAAS;IAC7B,uBAAuB,EAAE,SAAS;IAClC,eAAe,EAAE,SAAS;IAC1B,eAAe,EAAE,SAAS;IAC1B,GAAG,EAAE,SAAS;IACd,aAAa,EAAE,YAAY;IAC3B,0BAA0B,EAAE,SAAS;IACrC,oBAAoB,EAAE,qCAAiB;IACvC,gCAAgC,EAAE,SAAS;IAC3C,eAAe,EAAE,SAAS;IAC1B,gBAAgB,EAAE,SAAS;IAC3B,IAAI,EAAE,SAAS;IACf,qBAAqB,EAAE,SAAS;IAChC,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;I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AAgC,EAAE,aAAa;IAC/C,GAAG,EAAE,aAAa;IAClB,mBAAmB,EAAE,aAAa;IAClC,WAAW,EAAE,aAAa;IAC1B,iBAAiB,EAAE,aAAa;IAChC,SAAS,EAAE,aAAa;IACxB,YAAY,EAAE,aAAa;IAC3B,iBAAiB,EAAE,aAAa;IAChC,kBAAkB,EAAE,aAAa;IACjC,eAAe,EAAE,aAAa;IAC9B,0BAA0B,EAAE,aAAa;IACzC,iBAAiB,EAAE,aAAa;IAChC,cAAc,EAAE,aAAa;IAC7B,gBAAgB,EAAE,aAAa;IAC/B,eAAe,EAAE,aAAa;IAC9B,oBAAoB,EAAE,aAAa;IACnC,SAAS,EAAE,aAAa;IACxB,6BAA6B,EAAE,aAAa;IAC5C,KAAK,EAAE,aAAa;IACpB,kBAAkB,EAAE,aAAa;IACjC,YAAY,EAAE,aAAa;IAC3B,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,48 +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
- import * as common from "@esri/solution-common";
17
- export declare function deploySolutionFromTemplate(templateSolutionId: string, solutionTemplateBase: any, solutionTemplateData: any, authentication: common.UserSession, options: common.IDeploySolutionOptions): Promise<string>;
18
- /**
19
- * Add source-id to items/groups typeKeywords
20
- *
21
- * @param template the array of solution data templates
22
- * @private
23
- */
24
- export declare function _addSourceId(templates: common.IItemTemplate[]): common.IItemTemplate[];
25
- /**
26
- * Update the deployOptions with the group properties
27
- *
28
- * @param deployOptions
29
- * @param sourceInfo
30
- * @param authentication
31
- * @param isGroup Boolean to indicate if the files are associated with a group or item
32
- * @private
33
- */
34
- export declare function _applySourceToDeployOptions(deployOptions: common.IDeploySolutionOptions, solutionTemplateBase: any, templateDictionary: any, authentication: common.UserSession): common.IDeploySolutionOptions;
35
- export declare function _replaceParamVariables(solutionTemplateData: any, templateDictionary: any): void;
36
- export declare function _updateProp(template: common.IItemTemplate, path: string, lookup: string, templateDictionary: any): common.IItemTemplate;
37
- export declare function _checkedReplaceAll(template: string, oldValue: string, newValue: string): string;
38
- export declare function _getPortalBaseUrl(portalResponse: common.IPortal, authentication: common.UserSession): string;
39
- export declare function _updateGroupReferences(itemTemplates: any[], templateDictionary: any): any[];
40
- export declare function _purgeTemplateProperties(itemTemplate: any): any;
41
- /**
42
- * Returns a match of a supplied id with the suffix ".itemId" in the template dictionary.
43
- *
44
- * @param id Id to look for
45
- * @param templateDictionary Hash mapping property names to replacement values
46
- * @returns Match in template dictionary or original id
47
- */
48
- export declare function _getNewItemId(id: string, templateDictionary: any): string;
@@ -1,224 +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 deployment of items via the REST API.
18
- *
19
- * @module deployItems
20
- */
21
- import * as common from "@esri/solution-common";
22
- /**
23
- * Deploys a set of items defined by templates.
24
- *
25
- * @param portalSharingUrl Server/sharing
26
- * @param storageItemId Id of storage item
27
- * @param templates A collection of AGO item templates
28
- * @param storageAuthentication Credentials for the organization with the source items
29
- * @param templateDictionary Hash of facts: org URL, adlib replacements
30
- * @param deployedSolutionId Id of deployed Solution item
31
- * @param destinationAuthentication Credentials for the destination organization
32
- * @param options Options to tune deployment
33
- * @returns A promise that will resolve with the list of information about the created items
34
- */
35
- export declare function deploySolutionItems(portalSharingUrl: string, storageItemId: string, templates: common.IItemTemplate[], storageAuthentication: common.UserSession, templateDictionary: any, deployedSolutionId: string, destinationAuthentication: common.UserSession, options: common.IDeploySolutionOptions): Promise<common.ICreateItemFromTemplateResponse[]>;
36
- /**
37
- * For each item to be patched, convert it to its cloned id and mark the item as needing post processing.
38
- *
39
- * @param itemsToBePatched List of items that need to have their dependencies patched
40
- * @param templateDictionary Hash of facts: org URL, adlib replacements
41
- * @param templates A collection of AGO item templates
42
- * @private
43
- */
44
- export declare function _flagPatchItemsForPostProcessing(itemsToBePatched: common.IKeyedListsOfStrings, templateDictionary: any, templates: common.ICreateItemFromTemplateResponse[]): void;
45
- /**
46
- * Portal does not allow views of a single source to be created at the same time.
47
- *
48
- * Update view templates with an array of other view template ids that it should wait on.
49
- *
50
- * @param templates a collection of AGO item templates
51
- *
52
- * @returns An updated array of item templates
53
- * @private
54
- */
55
- export declare function _evaluateSharedViewSources(templates: common.IItemTemplate[]): common.IItemTemplate[];
56
- /**
57
- * Add a syncViews array to each template that will hold all other view ids that
58
- * have the same FS dependency.
59
- * These arrays will be processed later to only contain ids that each view will need to wait on.
60
- *
61
- * @param templates a collection of AGO item templates
62
- * @param views an array of view template details
63
- *
64
- * @returns An updated array of item templates
65
- * @private
66
- */
67
- export declare function _updateViewTemplates(templates: common.IItemTemplate[], views: any[]): common.IItemTemplate[];
68
- /**
69
- * Get all view templates from the source templates collection
70
- *
71
- * @param views A collection of view ID and dependencies
72
- *
73
- * @returns an array of objects with the source FS id as the key and a list of views that are
74
- * dependant upon it
75
- *
76
- * @private
77
- */
78
- export declare function _getViewHash(views: any[]): any;
79
- /**
80
- * Get all view templates from the source templates collection
81
- *
82
- * @param templates A collection of AGO item templates
83
- *
84
- * @returns an array with the view id and its dependencies
85
- *
86
- * @private
87
- */
88
- export declare function _getViews(templates: common.IItemTemplate[]): any[];
89
- /**
90
- * Search for existing items and update the templateDictionary with key details
91
- *
92
- * @param templates A collection of AGO item templates
93
- * @param reuseItems Option to search for existing items
94
- * @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
95
- * @param authentication Credentials for the requests
96
- *
97
- * @returns A Promise that will resolve once existing items have been evaluated
98
- *
99
- * @private
100
- */
101
- export declare function _reuseDeployedItems(templates: common.IItemTemplate[], reuseItems: boolean, templateDictionary: any, authentication: common.UserSession): Promise<any>;
102
- /**
103
- * Search for existing items and update the templateDictionary with key details
104
- *
105
- * Subtle difference between _reuseDeployedItems and _useExistingItems
106
- * _reuseDeployedItems: will search all existing items based on specific type keywords
107
- * that would have been added by a previous deployment
108
- * _useExistingItems: will search for an existing item that the user provided
109
- * the item id for while configuring in the deployment app.
110
- * This type of item would not necessarily have been laid down by a previous deployment and
111
- * can thus not expect that it will have the type keywords
112
- *
113
- * @param templates A collection of AGO item templates
114
- * @param useExisting Option to search for existing items
115
- * @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
116
- * @param authentication Credentials for the requests
117
- *
118
- * @returns A Promise that will resolve once existing items have been evaluated
119
- *
120
- * @private
121
- */
122
- export declare function _useExistingItems(templates: common.IItemTemplate[], useExisting: boolean, templateDictionary: any, authentication: common.UserSession): Promise<any>;
123
- /**
124
- * Verify if the existing item has the source-<itemId> typeKeyword and set it if not
125
- * This allows items that did not come from deployment to be found for reuse after they
126
- * have been used once via a custom itemId param
127
- *
128
- * @param itemDefs
129
- * @param sourceIdHash key value pairs..actual itemId is the key and the source itemId is the value
130
- * @param authentication credentials for the requests
131
- *
132
- * @returns a promise to indicate when the requests are complete
133
- * @private
134
- */
135
- export declare function _setTypekeywordForExisting(itemDefs: Array<Promise<any>>, sourceIdHash: any, authentication: common.UserSession): Promise<any>;
136
- /**
137
- * Update the templateDictionary with key details by item type
138
- *
139
- * @param templates A collection of AGO item templates
140
- * @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
141
- *
142
- * @private
143
- */
144
- export declare function _updateTemplateDictionary(templates: common.IItemTemplate[], templateDictionary: any, authentication: common.UserSession): Promise<any>;
145
- /**
146
- * Add the fields from the source layer to the template dictionary for any required replacements
147
- *
148
- * @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
149
- * @param itemId the id for the item
150
- * @param layerId the id for the layer
151
- * @param fields the fields to transfer
152
- *
153
- * @private
154
- */
155
- export declare function _setFields(templateDictionary: any, itemId: string, layerId: string, fields: any[]): void;
156
- /**
157
- * In some cases an item id search will return a stale item reference
158
- * it will subsequently fail when we try to fetch the underlying service.
159
- *
160
- * We need to remove the item info that has been added to the template dictionary
161
- * and treat the item as we do other items that don't already exist on deployment.
162
- *
163
- * @param result the service request result
164
- * @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
165
- *
166
- * @private
167
- */
168
- export declare function _updateTemplateDictionaryForError(templateDictionary: any, itemId: string): any;
169
- /**
170
- * Optionally search by tags and then update the templateDictionary based on the search results
171
- *
172
- * @param existingItemsResponse response object from search by typeKeyword and type
173
- * @param existingItemIds list of the template ids we have queried
174
- * @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
175
- * @param authentication Credentials for the request
176
- * @param addTagQuery Boolean to indicate if a search by tag should happen
177
- * @returns IFindExistingItemsResponse object with promise that will resolve with an array of results
178
- * and an array of item ids
179
- * @private
180
- */
181
- export declare function _handleExistingItems(existingItemsResponse: any[], existingItemInfos: common.IFindExistingItemInfos[], templateDictionary: any, authentication: common.UserSession, addTagQuery: boolean): common.IFindExistingItemsResponse;
182
- export declare function _updateTemplateDictionaryById(templateDictionary: any, sourceId: string, itemId: string, v: any): void;
183
- /**
184
- * Search items based on user query
185
- *
186
- * @param templates Templates to examine
187
- * @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
188
- * @param authentication Credentials for the request
189
- * @returns IFindExistingItemsResponse object with promise that will resolve with an array of results
190
- * and an array of item ids
191
- * @private
192
- */
193
- export declare function _findExistingItemByKeyword(templates: common.IItemTemplate[], templateDictionary: any, authentication: common.UserSession): common.IFindExistingItemsResponse;
194
- /**
195
- * Search items based on user query
196
- *
197
- * @param query Query string to use
198
- * @param authentication Credentials for the request
199
- * @returns A promise that will resolve with an array of results
200
- * @private
201
- */
202
- export declare function _findExistingItem(query: string, authentication: common.UserSession): Promise<any>;
203
- /**
204
- * Creates an item from a template once the item's dependencies have been created.
205
- *
206
- * @param template Template of item to deploy
207
- * @param resourceFilePaths URL, folder, and filename for each item resource/metadata/thumbnail
208
- * @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
209
- * @param userSession Options for the request
210
- * @param itemProgressCallback Function for reporting progress updates from type-specific template handlers
211
- * @returns A promise that will resolve with the id of the deployed item (which is simply returned if it's
212
- * already in the templates list
213
- * @private
214
- */
215
- export declare function _createItemFromTemplateWhenReady(template: common.IItemTemplate, resourceFilePaths: common.IDeployFileCopyPath[], storageAuthentication: common.UserSession, templateDictionary: any, destinationAuthentication: common.UserSession, itemProgressCallback: common.IItemProgressCallback): Promise<common.ICreateItemFromTemplateResponse>;
216
- /**
217
- * Accumulates the estimated deployment cost of a set of templates.
218
- *
219
- * @param templates Templates to examine
220
- * @returns Sum of estimated deployment costs
221
- * @private
222
- */
223
- export declare function _estimateDeploymentCost(templates: common.IItemTemplate[]): number;
224
- export declare function _getGroupUpdates(template: common.IItemTemplate, authentication: common.UserSession, templateDictionary: any): Array<Promise<any>>;
@@ -1,34 +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 deployment of a Solution.
18
- *
19
- * @module deployer
20
- */
21
- import * as common from "@esri/solution-common";
22
- import { IModel } from "@esri/hub-common";
23
- /**
24
- * Deploy a Solution
25
- *
26
- * Pass in either the item id or an IModel (`{item:{}, model:{}}`)
27
- * of a Solution Template, and this will generate the Solution
28
- *
29
- * @param maybeModel Item Id or IModel
30
- * @param authentication Credentials for the destination organization
31
- * @param options Options to override deployed information and to provide additional credentials
32
- * @returns The id of the created deployed solution item
33
- */
34
- export declare function deploySolution(maybeModel: string | IModel, authentication: common.UserSession, options?: common.IDeploySolutionOptions): Promise<string>;
@@ -1,47 +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
- import * as common from "@esri/solution-common";
17
- /**
18
- * Given an itemId or an object, either fetch the item or
19
- * resolve using the object, if it is structured as expected
20
- *
21
- * @param idOrObject string || object like `{item:{...}, data: {...}}`
22
- * @param authentication UserSession
23
- */
24
- export declare function getSolutionTemplateItem(idOrObject: any, authentication: common.UserSession): Promise<any>;
25
- /**
26
- * Update the Deploy Options with information from the
27
- * Solution Template item
28
- *
29
- * @param deployOptions
30
- * @param item
31
- * @param authentication
32
- */
33
- export declare function updateDeployOptions(deployOptions: any, item: common.IItem, authentication: common.UserSession): any;
34
- /**
35
- * Check if an object is an Model
36
- *
37
- * @param obj any object
38
- * @private
39
- */
40
- export declare function _isModel(obj: any): boolean;
41
- /**
42
- * Does the item have the correct type and keywords
43
- * to be a Solution Template item?
44
- *
45
- * @param item IItem
46
- */
47
- export declare function isSolutionTemplateItem(item: common.IItem): boolean;
@@ -1,29 +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 { UserSession, IItemTemplate, ICreateItemFromTemplateResponse } from "@esri/solution-common";
17
- /**
18
- * Delegate post-processing to the type specific
19
- * processors. This allows each type to have fine-grained
20
- * control over what they do. Common post-processing is
21
- * exposed as functions that can be imported
22
- *
23
- * @param deployedSolutionId
24
- * @param templates
25
- * @param clonedSolutions
26
- * @param authentication
27
- * @param templateDictionary
28
- */
29
- export declare function postProcess(deployedSolutionId: string, templates: IItemTemplate[], clonedSolutions: ICreateItemFromTemplateResponse[], authentication: UserSession, templateDictionary: any): Promise<any>;