@esri/solution-deployer 4.1.2 → 5.0.1

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/deployerUtils.d.ts +47 -47
  10. package/dist/cjs/deployerUtils.js +123 -123
  11. package/dist/cjs/helpers/post-process.d.ts +29 -29
  12. package/dist/cjs/helpers/post-process.js +61 -61
  13. package/dist/cjs/helpers/share-templates-to-groups.d.ts +24 -24
  14. package/dist/cjs/helpers/share-templates-to-groups.js +64 -64
  15. package/dist/cjs/helpers/sortTemplates.d.ts +23 -23
  16. package/dist/cjs/helpers/sortTemplates.js +14 -14
  17. package/dist/cjs/index.d.ts +24 -24
  18. package/dist/cjs/index.js +27 -27
  19. package/dist/cjs/module-map.d.ts +23 -23
  20. package/dist/cjs/module-map.js +231 -195
  21. package/dist/cjs/module-map.js.map +1 -1
  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/deployerUtils.d.ts +47 -47
  31. package/dist/esm/deployerUtils.js +115 -115
  32. package/dist/esm/helpers/post-process.d.ts +29 -29
  33. package/dist/esm/helpers/post-process.js +57 -57
  34. package/dist/esm/helpers/share-templates-to-groups.d.ts +24 -24
  35. package/dist/esm/helpers/share-templates-to-groups.js +60 -60
  36. package/dist/esm/helpers/sortTemplates.d.ts +23 -23
  37. package/dist/esm/helpers/sortTemplates.js +10 -10
  38. package/dist/esm/index.d.ts +24 -24
  39. package/dist/esm/index.js +24 -24
  40. package/dist/esm/module-map.d.ts +23 -23
  41. package/dist/esm/module-map.js +227 -191
  42. package/dist/esm/module-map.js.map +1 -1
  43. package/package.json +13 -13
@@ -1,23 +1,23 @@
1
- /** @license
2
- * Copyright 2021 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 } from "@esri/solution-common";
17
- /**
18
- * Sorts a list of templates in place to match a provided sort-order list.
19
- *
20
- * @param templates List of templates in a Solution
21
- * @param sortOrderIds List of template ids in the desired sort order
22
- */
23
- export declare function sortTemplates(templates: IItemTemplate[], sortOrderIds: string[]): void;
1
+ /** @license
2
+ * Copyright 2021 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 } from "@esri/solution-common";
17
+ /**
18
+ * Sorts a list of templates in place to match a provided sort-order list.
19
+ *
20
+ * @param templates List of templates in a Solution
21
+ * @param sortOrderIds List of template ids in the desired sort order
22
+ */
23
+ export declare function sortTemplates(templates: IItemTemplate[], sortOrderIds: string[]): void;
@@ -1,15 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sortTemplates = void 0;
4
- /**
5
- * Sorts a list of templates in place to match a provided sort-order list.
6
- *
7
- * @param templates List of templates in a Solution
8
- * @param sortOrderIds List of template ids in the desired sort order
9
- */
10
- function sortTemplates(templates, sortOrderIds) {
11
- templates.sort((template1, template2) => sortOrderIds.indexOf(template1.itemId) -
12
- sortOrderIds.indexOf(template2.itemId));
13
- }
14
- exports.sortTemplates = sortTemplates;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sortTemplates = void 0;
4
+ /**
5
+ * Sorts a list of templates in place to match a provided sort-order list.
6
+ *
7
+ * @param templates List of templates in a Solution
8
+ * @param sortOrderIds List of template ids in the desired sort order
9
+ */
10
+ function sortTemplates(templates, sortOrderIds) {
11
+ templates.sort((template1, template2) => sortOrderIds.indexOf(template1.itemId) -
12
+ sortOrderIds.indexOf(template2.itemId));
13
+ }
14
+ exports.sortTemplates = sortTemplates;
15
15
  //# sourceMappingURL=sortTemplates.js.map
@@ -1,24 +1,24 @@
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
- export * from "./deployer";
22
- export * from "./deploySolutionItems";
23
- export * from "./deployerUtils";
24
- export * from "./module-map";
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
+ export * from "./deployer";
22
+ export * from "./deploySolutionItems";
23
+ export * from "./deployerUtils";
24
+ export * from "./module-map";
package/dist/cjs/index.js CHANGED
@@ -1,28 +1,28 @@
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);
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
28
  //# sourceMappingURL=index.js.map
@@ -1,23 +1,23 @@
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
+ /** @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.ts and
21
+ * arcgis-portal-app\src\js\arcgis-components\src\_utils\metadata\item\displayName.ts
22
+ */
23
+ export declare const moduleMap: IItemTypeModuleMap;