@esri/solution-deployer 4.1.2-alpha.0 → 5.0.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/cjs/deploySolutionFromTemplate.d.ts +48 -48
  2. package/dist/cjs/deploySolutionFromTemplate.js +331 -331
  3. package/dist/cjs/deploySolutionFromTemplate.js.map +1 -1
  4. package/dist/cjs/deploySolutionItems.d.ts +224 -224
  5. package/dist/cjs/deploySolutionItems.js +853 -849
  6. package/dist/cjs/deploySolutionItems.js.map +1 -1
  7. package/dist/cjs/deployer.d.ts +34 -34
  8. package/dist/cjs/deployer.js +101 -101
  9. package/dist/cjs/deployer.js.map +1 -1
  10. package/dist/cjs/deployerUtils.d.ts +47 -47
  11. package/dist/cjs/deployerUtils.js +123 -123
  12. package/dist/cjs/helpers/post-process.d.ts +29 -29
  13. package/dist/cjs/helpers/post-process.js +61 -61
  14. package/dist/cjs/helpers/share-templates-to-groups.d.ts +24 -24
  15. package/dist/cjs/helpers/share-templates-to-groups.js +64 -64
  16. package/dist/cjs/helpers/sortTemplates.d.ts +23 -23
  17. package/dist/cjs/helpers/sortTemplates.js +14 -14
  18. package/dist/cjs/index.d.ts +24 -24
  19. package/dist/cjs/index.js +27 -27
  20. package/dist/cjs/module-map.d.ts +23 -23
  21. package/dist/cjs/module-map.js +195 -195
  22. package/dist/esm/deploySolutionFromTemplate.d.ts +48 -48
  23. package/dist/esm/deploySolutionFromTemplate.js +317 -317
  24. package/dist/esm/deploySolutionFromTemplate.js.map +1 -1
  25. package/dist/esm/deploySolutionItems.d.ts +224 -224
  26. package/dist/esm/deploySolutionItems.js +830 -826
  27. package/dist/esm/deploySolutionItems.js.map +1 -1
  28. package/dist/esm/deployer.d.ts +34 -34
  29. package/dist/esm/deployer.js +96 -96
  30. package/dist/esm/deployer.js.map +1 -1
  31. package/dist/esm/deployerUtils.d.ts +47 -47
  32. package/dist/esm/deployerUtils.js +115 -115
  33. package/dist/esm/helpers/post-process.d.ts +29 -29
  34. package/dist/esm/helpers/post-process.js +57 -57
  35. package/dist/esm/helpers/share-templates-to-groups.d.ts +24 -24
  36. package/dist/esm/helpers/share-templates-to-groups.js +60 -60
  37. package/dist/esm/helpers/sortTemplates.d.ts +23 -23
  38. package/dist/esm/helpers/sortTemplates.js +10 -10
  39. package/dist/esm/index.d.ts +24 -24
  40. package/dist/esm/index.js +24 -24
  41. package/dist/esm/module-map.d.ts +23 -23
  42. package/dist/esm/module-map.js +191 -191
  43. package/package.json +13 -13
@@ -1,48 +1,48 @@
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
+ /** @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;