@esri/solution-deployer 6.4.0-next.20250925 → 6.4.0-next.20250926

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.
@@ -19,6 +19,7 @@
19
19
  * @module deployItems
20
20
  */
21
21
  import * as common from "@esri/solution-common";
22
+ import { IItemTemplate } from "@esri/hub-common";
22
23
  /**
23
24
  * Deploys a set of items defined by templates.
24
25
  *
@@ -33,6 +34,15 @@ import * as common from "@esri/solution-common";
33
34
  * @returns A promise that will resolve with the list of information about the created items
34
35
  */
35
36
  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[]>;
37
+ /**
38
+ * Test web map resources for task configuration file
39
+ *
40
+ * @param itemsToBePatched List of items that need to have their dependencies patched
41
+ * @param template AGO item templates
42
+ * @param id the id of the template to be patched
43
+ * @private
44
+ */
45
+ export declare function _evaluateWebMapResources(itemsToBePatched: common.IKeyedListsOfStrings, template: IItemTemplate): void;
36
46
  /**
37
47
  * For each item to be patched, convert it to its cloned id and mark the item as needing post processing.
38
48
  *
@@ -15,7 +15,7 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports._getGroupUpdates = exports._estimateDeploymentCost = exports._createItemFromTemplateWhenReady = exports._findExistingItem = exports._findExistingItemByKeyword = exports._updateTemplateDictionaryById = exports._handleExistingItems = exports._updateTemplateDictionaryForError = exports._setFields = exports._updateTemplateDictionary = exports._setTypekeywordForExisting = exports._useExistingItems = exports._reuseDeployedItems = exports._getViews = exports._getViewHash = exports._updateViewTemplates = exports._evaluateSharedViewSources = exports._flagPatchItemsForPostProcessing = exports.deploySolutionItems = void 0;
18
+ exports._getGroupUpdates = exports._estimateDeploymentCost = exports._createItemFromTemplateWhenReady = exports._findExistingItem = exports._findExistingItemByKeyword = exports._updateTemplateDictionaryById = exports._handleExistingItems = exports._updateTemplateDictionaryForError = exports._setFields = exports._updateTemplateDictionary = exports._setTypekeywordForExisting = exports._useExistingItems = exports._reuseDeployedItems = exports._getViews = exports._getViewHash = exports._updateViewTemplates = exports._evaluateSharedViewSources = exports._flagPatchItemsForPostProcessing = exports._evaluateWebMapResources = exports.deploySolutionItems = void 0;
19
19
  const tslib_1 = require("tslib");
20
20
  /**
21
21
  * Manages deployment of items via the REST API.
@@ -133,6 +133,9 @@ function deploySolutionItems(portalSharingUrl, storageItemId, templates, storage
133
133
  // Remove qc.project.json files from the resources--we don't use them from solutions
134
134
  template.resources = template.resources.filter((filename) => !filename.endsWith("qc.project.json"));
135
135
  }
136
+ else if (template.type === "Web Map") {
137
+ _evaluateWebMapResources(itemsToBePatched, template);
138
+ }
136
139
  awaitAllItems.push(_createItemFromTemplateWhenReady(template, common.generateStorageFilePaths(portalSharingUrl, storageItemId, template.resources, options.storageVersion), storageAuthentication, templateDictionary, destinationAuthentication, itemProgressCallback, options.abortController));
137
140
  });
138
141
  // Wait until all items have been created
@@ -165,6 +168,20 @@ function deploySolutionItems(portalSharingUrl, storageItemId, templates, storage
165
168
  });
166
169
  }
167
170
  exports.deploySolutionItems = deploySolutionItems;
171
+ /**
172
+ * Test web map resources for task configuration file
173
+ *
174
+ * @param itemsToBePatched List of items that need to have their dependencies patched
175
+ * @param template AGO item templates
176
+ * @param id the id of the template to be patched
177
+ * @private
178
+ */
179
+ function _evaluateWebMapResources(itemsToBePatched, template) {
180
+ if (template.resources.some((r) => r.indexOf(common.TASK_CONFIG) > -1)) {
181
+ itemsToBePatched[template.itemId] = [];
182
+ }
183
+ }
184
+ exports._evaluateWebMapResources = _evaluateWebMapResources;
168
185
  /**
169
186
  * For each item to be patched, convert it to its cloned id and mark the item as needing post processing.
170
187
  *
@@ -19,6 +19,7 @@
19
19
  * @module deployItems
20
20
  */
21
21
  import * as common from "@esri/solution-common";
22
+ import { IItemTemplate } from "@esri/hub-common";
22
23
  /**
23
24
  * Deploys a set of items defined by templates.
24
25
  *
@@ -33,6 +34,15 @@ import * as common from "@esri/solution-common";
33
34
  * @returns A promise that will resolve with the list of information about the created items
34
35
  */
35
36
  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[]>;
37
+ /**
38
+ * Test web map resources for task configuration file
39
+ *
40
+ * @param itemsToBePatched List of items that need to have their dependencies patched
41
+ * @param template AGO item templates
42
+ * @param id the id of the template to be patched
43
+ * @private
44
+ */
45
+ export declare function _evaluateWebMapResources(itemsToBePatched: common.IKeyedListsOfStrings, template: IItemTemplate): void;
36
46
  /**
37
47
  * For each item to be patched, convert it to its cloned id and mark the item as needing post processing.
38
48
  *
@@ -129,6 +129,9 @@ export function deploySolutionItems(portalSharingUrl, storageItemId, templates,
129
129
  // Remove qc.project.json files from the resources--we don't use them from solutions
130
130
  template.resources = template.resources.filter((filename) => !filename.endsWith("qc.project.json"));
131
131
  }
132
+ else if (template.type === "Web Map") {
133
+ _evaluateWebMapResources(itemsToBePatched, template);
134
+ }
132
135
  awaitAllItems.push(_createItemFromTemplateWhenReady(template, common.generateStorageFilePaths(portalSharingUrl, storageItemId, template.resources, options.storageVersion), storageAuthentication, templateDictionary, destinationAuthentication, itemProgressCallback, options.abortController));
133
136
  });
134
137
  // Wait until all items have been created
@@ -160,6 +163,19 @@ export function deploySolutionItems(portalSharingUrl, storageItemId, templates,
160
163
  });
161
164
  });
162
165
  }
166
+ /**
167
+ * Test web map resources for task configuration file
168
+ *
169
+ * @param itemsToBePatched List of items that need to have their dependencies patched
170
+ * @param template AGO item templates
171
+ * @param id the id of the template to be patched
172
+ * @private
173
+ */
174
+ export function _evaluateWebMapResources(itemsToBePatched, template) {
175
+ if (template.resources.some((r) => r.indexOf(common.TASK_CONFIG) > -1)) {
176
+ itemsToBePatched[template.itemId] = [];
177
+ }
178
+ }
163
179
  /**
164
180
  * For each item to be patched, convert it to its cloned id and mark the item as needing post processing.
165
181
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solution-deployer",
3
- "version": "6.4.0-next.20250925",
3
+ "version": "6.4.0-next.20250926",
4
4
  "description": "Manages the deployment of a Solution for @esri/solution.js.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -24,18 +24,18 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@esri/hub-common": "^17.0.2",
27
- "@esri/solution-common": "^6.4.0-next.20250925",
28
- "@esri/solution-feature-layer": "^6.4.0-next.20250925",
29
- "@esri/solution-file": "^6.4.0-next.20250925",
30
- "@esri/solution-form": "^6.4.0-next.20250925",
31
- "@esri/solution-group": "^6.4.0-next.20250925",
32
- "@esri/solution-hub-types": "^6.4.0-next.20250925",
33
- "@esri/solution-simple-types": "^6.4.0-next.20250925",
34
- "@esri/solution-storymap": "^6.4.0-next.20250925",
35
- "@esri/solution-velocity": "^6.4.0-next.20250925",
36
- "@esri/solution-web-experience": "^6.4.0-next.20250925",
37
- "@esri/solution-web-tool": "^6.4.0-next.20250925",
38
- "@esri/solution-workflow": "^6.4.0-next.20250925",
27
+ "@esri/solution-common": "^6.4.0-next.20250926",
28
+ "@esri/solution-feature-layer": "^6.4.0-next.20250926",
29
+ "@esri/solution-file": "^6.4.0-next.20250926",
30
+ "@esri/solution-form": "^6.4.0-next.20250926",
31
+ "@esri/solution-group": "^6.4.0-next.20250926",
32
+ "@esri/solution-hub-types": "^6.4.0-next.20250926",
33
+ "@esri/solution-simple-types": "^6.4.0-next.20250926",
34
+ "@esri/solution-storymap": "^6.4.0-next.20250926",
35
+ "@esri/solution-velocity": "^6.4.0-next.20250926",
36
+ "@esri/solution-web-experience": "^6.4.0-next.20250926",
37
+ "@esri/solution-web-tool": "^6.4.0-next.20250926",
38
+ "@esri/solution-workflow": "^6.4.0-next.20250926",
39
39
  "tslib": "1.14.1"
40
40
  },
41
41
  "scripts": {
@@ -90,5 +90,5 @@
90
90
  "esri",
91
91
  "ES6"
92
92
  ],
93
- "gitHead": "0092f8c76afb3b4d94d2a89353313a3b42cf2d77"
93
+ "gitHead": "f8b6ad1803cd5c2f67b317b6ea7390dad77ada61"
94
94
  }