@esri/solution-deployer 0.23.1 → 1.1.3
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.
- package/dist/esm/deploySolutionFromTemplate.js +77 -74
- package/dist/esm/deploySolutionFromTemplate.js.map +1 -1
- package/dist/esm/deploySolutionItems.d.ts +25 -1
- package/dist/esm/deploySolutionItems.js +239 -151
- package/dist/esm/deploySolutionItems.js.map +1 -1
- package/dist/esm/deployer.js +16 -17
- package/dist/esm/deployer.js.map +1 -1
- package/dist/esm/deployerUtils.js +17 -22
- package/dist/esm/deployerUtils.js.map +1 -1
- package/dist/esm/helpers/post-process.js +13 -18
- package/dist/esm/helpers/post-process.js.map +1 -1
- package/dist/esm/helpers/share-templates-to-groups.js +29 -6
- package/dist/esm/helpers/share-templates-to-groups.js.map +1 -1
- package/dist/esm/helpers/sortTemplates.js +2 -4
- package/dist/esm/helpers/sortTemplates.js.map +1 -1
- package/dist/esm/module-map.js +7 -6
- package/dist/esm/module-map.js.map +1 -1
- package/dist/node/deploySolutionFromTemplate.js +83 -80
- package/dist/node/deploySolutionFromTemplate.js.map +1 -1
- package/dist/node/deploySolutionItems.d.ts +25 -1
- package/dist/node/deploySolutionItems.js +244 -154
- package/dist/node/deploySolutionItems.js.map +1 -1
- package/dist/node/deployer.js +23 -24
- package/dist/node/deployer.js.map +1 -1
- package/dist/node/deployerUtils.js +18 -23
- package/dist/node/deployerUtils.js.map +1 -1
- package/dist/node/helpers/post-process.js +18 -23
- package/dist/node/helpers/post-process.js.map +1 -1
- package/dist/node/helpers/share-templates-to-groups.js +30 -7
- package/dist/node/helpers/share-templates-to-groups.js.map +1 -1
- package/dist/node/helpers/sortTemplates.js +2 -4
- package/dist/node/helpers/sortTemplates.js.map +1 -1
- package/dist/node/index.js +5 -5
- package/dist/node/index.js.map +1 -1
- package/dist/node/module-map.js +13 -12
- package/dist/node/module-map.js.map +1 -1
- package/dist/umd/deploySolutionItems.d.ts +25 -1
- package/dist/umd/deployer.umd.js +1622 -1550
- package/dist/umd/deployer.umd.js.map +1 -1
- package/dist/umd/deployer.umd.min.js +3 -3
- package/dist/umd/deployer.umd.min.js.map +1 -1
- package/package.json +31 -30
|
@@ -27,11 +27,12 @@ import * as common from "@esri/solution-common";
|
|
|
27
27
|
* @param templates A collection of AGO item templates
|
|
28
28
|
* @param storageAuthentication Credentials for the organization with the source items
|
|
29
29
|
* @param templateDictionary Hash of facts: org URL, adlib replacements
|
|
30
|
+
* @param deployedSolutionId Id of deployed Solution item
|
|
30
31
|
* @param destinationAuthentication Credentials for the destination organization
|
|
31
32
|
* @param options Options to tune deployment
|
|
32
33
|
* @return A promise that will resolve with the list of information about the created items
|
|
33
34
|
*/
|
|
34
|
-
export declare function deploySolutionItems(portalSharingUrl: string, storageItemId: string, templates: common.IItemTemplate[], storageAuthentication: common.UserSession, templateDictionary: any, destinationAuthentication: common.UserSession, options: common.IDeploySolutionOptions): Promise<common.ICreateItemFromTemplateResponse[]>;
|
|
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[]>;
|
|
35
36
|
/**
|
|
36
37
|
* For each item to be patched, convert it to its cloned id and mark the item as needing post processing.
|
|
37
38
|
*
|
|
@@ -118,6 +119,18 @@ export declare function _reuseDeployedItems(templates: common.IItemTemplate[], r
|
|
|
118
119
|
* @protected
|
|
119
120
|
*/
|
|
120
121
|
export declare function _useExistingItems(templates: common.IItemTemplate[], useExisting: boolean, templateDictionary: any, authentication: common.UserSession): Promise<any>;
|
|
122
|
+
/**
|
|
123
|
+
* Verify if the existing item has the source-<itemId> typeKeyword and set it if not
|
|
124
|
+
* This allows items that did not come from deployment to be found for reuse after they
|
|
125
|
+
* have been used once via a custom itemId param
|
|
126
|
+
*
|
|
127
|
+
* @param itemDefs
|
|
128
|
+
* @param sourceIdHash key value pairs..actual itemId is the key and the source itemId is the value
|
|
129
|
+
* @param authentication credentials for the requests
|
|
130
|
+
*
|
|
131
|
+
* @return a promise to indicate when the requests are complete
|
|
132
|
+
*/
|
|
133
|
+
export declare function _setTypekeywordForExisting(itemDefs: Array<Promise<any>>, sourceIdHash: any, authentication: common.UserSession): Promise<any>;
|
|
121
134
|
/**
|
|
122
135
|
* Update the templateDictionary with key details by item type
|
|
123
136
|
*
|
|
@@ -127,6 +140,17 @@ export declare function _useExistingItems(templates: common.IItemTemplate[], use
|
|
|
127
140
|
* @protected
|
|
128
141
|
*/
|
|
129
142
|
export declare function _updateTemplateDictionary(templates: common.IItemTemplate[], templateDictionary: any, authentication: common.UserSession): Promise<any>;
|
|
143
|
+
/**
|
|
144
|
+
* Add the fields from the source layer to the template dictionary for any required replacements
|
|
145
|
+
*
|
|
146
|
+
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
147
|
+
* @param itemId the id for the item
|
|
148
|
+
* @param layerId the id for the layer
|
|
149
|
+
* @param fields the fields to transfer
|
|
150
|
+
*
|
|
151
|
+
* @protected
|
|
152
|
+
*/
|
|
153
|
+
export declare function _setFields(templateDictionary: any, itemId: string, layerId: string, fields: any[]): void;
|
|
130
154
|
/**
|
|
131
155
|
* In some cases an item id search will return a stale item reference
|
|
132
156
|
* it will subsequently fail when we try to fetch the underlying service.
|