@esri/solution-deployer 5.2.2 → 5.2.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.
Files changed (40) hide show
  1. package/dist/esm/deploySolutionItems.d.ts +0 -9
  2. package/dist/esm/deploySolutionItems.js +11 -76
  3. package/dist/esm/deploySolutionItems.js.map +1 -1
  4. package/dist/esm/index.d.ts +1 -1
  5. package/dist/esm/index.js +1 -1
  6. package/dist/esm/index.js.map +1 -1
  7. package/package.json +14 -14
  8. package/dist/cjs/deploySolutionFromTemplate.d.ts +0 -48
  9. package/dist/cjs/deploySolutionFromTemplate.js +0 -332
  10. package/dist/cjs/deploySolutionFromTemplate.js.map +0 -1
  11. package/dist/cjs/deploySolutionItems.d.ts +0 -233
  12. package/dist/cjs/deploySolutionItems.js +0 -948
  13. package/dist/cjs/deploySolutionItems.js.map +0 -1
  14. package/dist/cjs/deployer.d.ts +0 -34
  15. package/dist/cjs/deployer.js +0 -102
  16. package/dist/cjs/deployer.js.map +0 -1
  17. package/dist/cjs/deployerUtils.d.ts +0 -47
  18. package/dist/cjs/deployerUtils.js +0 -124
  19. package/dist/cjs/deployerUtils.js.map +0 -1
  20. package/dist/cjs/helpers/post-process.d.ts +0 -29
  21. package/dist/cjs/helpers/post-process.js +0 -62
  22. package/dist/cjs/helpers/post-process.js.map +0 -1
  23. package/dist/cjs/helpers/share-templates-to-groups.d.ts +0 -24
  24. package/dist/cjs/helpers/share-templates-to-groups.js +0 -65
  25. package/dist/cjs/helpers/share-templates-to-groups.js.map +0 -1
  26. package/dist/cjs/helpers/sortTemplates.d.ts +0 -23
  27. package/dist/cjs/helpers/sortTemplates.js +0 -15
  28. package/dist/cjs/helpers/sortTemplates.js.map +0 -1
  29. package/dist/cjs/helpers/zip-utils.d.ts +0 -44
  30. package/dist/cjs/helpers/zip-utils.js +0 -60
  31. package/dist/cjs/helpers/zip-utils.js.map +0 -1
  32. package/dist/cjs/index.d.ts +0 -24
  33. package/dist/cjs/index.js +0 -28
  34. package/dist/cjs/index.js.map +0 -1
  35. package/dist/cjs/module-map.d.ts +0 -23
  36. package/dist/cjs/module-map.js +0 -233
  37. package/dist/cjs/module-map.js.map +0 -1
  38. package/dist/esm/helpers/zip-utils.d.ts +0 -44
  39. package/dist/esm/helpers/zip-utils.js +0 -54
  40. package/dist/esm/helpers/zip-utils.js.map +0 -1
@@ -1,44 +0,0 @@
1
- /** @license
2
- * Copyright 2024 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 JSZip from "jszip";
17
- /**
18
- * Relative path and string contents of a file in a zip file.
19
- */
20
- export interface IZipFileContent {
21
- file: string;
22
- content: string;
23
- }
24
- /**
25
- * Extracts files of interest from a zip file, calls a supplied function to modify them, and
26
- * restores the files into the zip.
27
- *
28
- * @param modificationCallback Function that modifies the specified files
29
- * @param zip Zip file that contains the files to modify; modified in place
30
- * @param filesOfInterest Array of file names to extract from the zip file. If empty, all files are extracted.
31
- * @returns Promise that resolves to the modified zip file if the swizzle was successful
32
- */
33
- export declare function modifyFilesinZip(modificationCallback: (zipContentStr: IZipFileContent) => string, zip: JSZip, filesOfInterest?: string[]): Promise<JSZip>;
34
- /**
35
- * Swizzles the source item id with the destination item id in the form zip file and updates the destination item
36
- * with the swizzled zip file.
37
- *
38
- * @param sourceItemId Source item id
39
- * @param destinationItemId Destination item id
40
- * @param zipBlob Form zip file
41
- * @param filesOfInterest Array of file names to extract from the zip file. If empty, all files are extracted.
42
- * @returns Promise that resolves to the modified zip file if the swizzle was successful
43
- */
44
- export declare function swizzleIdsInZipFile(sourceItemId: string, destinationItemId: string, zip: JSZip, filesOfInterest?: string[]): Promise<JSZip>;
@@ -1,60 +0,0 @@
1
- "use strict";
2
- /** @license
3
- * Copyright 2024 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.swizzleIdsInZipFile = exports.modifyFilesinZip = void 0;
19
- const tslib_1 = require("tslib");
20
- const common = tslib_1.__importStar(require("@esri/solution-common"));
21
- // ------------------------------------------------------------------------------------------------------------------ //
22
- /**
23
- * Extracts files of interest from a zip file, calls a supplied function to modify them, and
24
- * restores the files into the zip.
25
- *
26
- * @param modificationCallback Function that modifies the specified files
27
- * @param zip Zip file that contains the files to modify; modified in place
28
- * @param filesOfInterest Array of file names to extract from the zip file. If empty, all files are extracted.
29
- * @returns Promise that resolves to the modified zip file if the swizzle was successful
30
- */
31
- async function modifyFilesinZip(modificationCallback, zip, filesOfInterest = []) {
32
- // Get the contents of the form.json file
33
- const extractedZipFiles = await common.getZipFileContents(zip, filesOfInterest);
34
- extractedZipFiles.forEach((extractedZipFile) => {
35
- // Run the modification callback
36
- const content = modificationCallback(extractedZipFile);
37
- // Update the zip file
38
- zip.file(extractedZipFile.file, content);
39
- });
40
- return Promise.resolve(zip);
41
- }
42
- exports.modifyFilesinZip = modifyFilesinZip;
43
- /**
44
- * Swizzles the source item id with the destination item id in the form zip file and updates the destination item
45
- * with the swizzled zip file.
46
- *
47
- * @param sourceItemId Source item id
48
- * @param destinationItemId Destination item id
49
- * @param zipBlob Form zip file
50
- * @param filesOfInterest Array of file names to extract from the zip file. If empty, all files are extracted.
51
- * @returns Promise that resolves to the modified zip file if the swizzle was successful
52
- */
53
- async function swizzleIdsInZipFile(sourceItemId, destinationItemId, zip, filesOfInterest = []) {
54
- const updatedZip = await modifyFilesinZip((zipFile) => {
55
- return zipFile.content.replace(new RegExp(sourceItemId, "g"), destinationItemId);
56
- }, zip, filesOfInterest);
57
- return Promise.resolve(updatedZip);
58
- }
59
- exports.swizzleIdsInZipFile = swizzleIdsInZipFile;
60
- //# sourceMappingURL=zip-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zip-utils.js","sourceRoot":"","sources":["../../../src/helpers/zip-utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH,sEAAgD;AAWhD,wHAAwH;AAExH;;;;;;;;GAQG;AACI,KAAK,UAAU,gBAAgB,CACpC,oBAAgE,EAChE,GAAU,EACV,kBAA4B,EAAE;IAE9B,yCAAyC;IACzC,MAAM,iBAAiB,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;IAEhF,iBAAiB,CAAC,OAAO,CAAC,CAAC,gBAAgB,EAAE,EAAE;QAC7C,gCAAgC;QAChC,MAAM,OAAO,GAAG,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;QAEvD,sBAAsB;QACtB,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC9B,CAAC;AAjBD,4CAiBC;AAED;;;;;;;;;GASG;AACI,KAAK,UAAU,mBAAmB,CACvC,YAAoB,EACpB,iBAAyB,EACzB,GAAU,EACV,kBAA4B,EAAE;IAE9B,MAAM,UAAU,GAAG,MAAM,gBAAgB,CACvC,CAAC,OAAwB,EAAE,EAAE;QAC3B,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC,EAAE,iBAAiB,CAAC,CAAC;IACnF,CAAC,EAAE,GAAG,EAAE,eAAe,CACxB,CAAC;IAEF,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AACrC,CAAC;AAbD,kDAaC"}
@@ -1,24 +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
- export * from "./deployer";
22
- export * from "./deploySolutionItems";
23
- export * from "./deployerUtils";
24
- export * from "./module-map";
package/dist/cjs/index.js DELETED
@@ -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.ts and
21
- * arcgis-portal-app\src\js\arcgis-components\src\_utils\metadata\item\displayName.ts
22
- */
23
- export declare const moduleMap: IItemTypeModuleMap;
@@ -1,233 +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_hub_types_1 = require("@esri/solution-hub-types");
25
- const solution_simple_types_1 = require("@esri/solution-simple-types");
26
- const solution_storymap_1 = require("@esri/solution-storymap");
27
- const solution_velocity_1 = require("@esri/solution-velocity");
28
- const solution_web_experience_1 = require("@esri/solution-web-experience");
29
- const workflowProcessor = tslib_1.__importStar(require("@esri/solution-workflow"));
30
- exports.UNSUPPORTED = null;
31
- /**
32
- * Mapping from item type to module with type-specific template-handling code.
33
- * AGO types come from a blend of arcgis-portal-app\src\js\arcgisonline\pages\item\_Info.ts and
34
- * arcgis-portal-app\src\js\arcgis-components\src\_utils\metadata\item\displayName.ts
35
- */
36
- exports.moduleMap = {
37
- ////////////////////////////////////////////////////////
38
- // Group type
39
- Group: group,
40
- ////////////////////////////////////////////////////////
41
- // Layer types
42
- "Big Data Analytic": solution_velocity_1.VelocityProcessor,
43
- "Feature Collection": solution_simple_types_1.simpleTypes,
44
- "Feature Service": featureLayer,
45
- Feed: solution_velocity_1.VelocityProcessor,
46
- "Geocoding Service": undefined,
47
- "Geodata Service": undefined,
48
- "Geometry Service": undefined,
49
- "Geoprocessing Service": undefined,
50
- "Globe Service": undefined,
51
- "Image Service": undefined,
52
- KML: undefined,
53
- "Map Service": featureLayer,
54
- "Network Analysis Service": undefined,
55
- "Real Time Analytic": solution_velocity_1.VelocityProcessor,
56
- "Relational Database Connection": undefined,
57
- "Scene Service": undefined,
58
- "Stream Service": undefined,
59
- Tool: undefined,
60
- "Vector Tile Service": solution_simple_types_1.simpleTypes,
61
- WFS: undefined,
62
- WMS: undefined,
63
- WMTS: undefined,
64
- "Workflow Manager Service": undefined,
65
- ////////////////////////////////////////////////////////
66
- // Map types
67
- "3D Web Scene": undefined,
68
- "Web Map": solution_simple_types_1.simpleTypes,
69
- "Web Scene": solution_simple_types_1.simpleTypes,
70
- ////////////////////////////////////////////////////////
71
- // App types
72
- Application: undefined,
73
- Dashboard: solution_simple_types_1.simpleTypes,
74
- "Data Pipeline": solution_simple_types_1.simpleTypes,
75
- "Data Store": undefined,
76
- "Desktop Application": undefined,
77
- "Excalibur Imagery Project": undefined,
78
- Form: formProcessor,
79
- "Hub Initiative": exports.UNSUPPORTED,
80
- "Hub Page": solution_hub_types_1.HubPageProcessor,
81
- "Hub Site Application": solution_hub_types_1.HubSiteProcessor,
82
- "Insights Model": solution_simple_types_1.simpleTypes,
83
- "Insights Page": undefined,
84
- "Insights Theme": undefined,
85
- "Insights Workbook": undefined,
86
- Mission: undefined,
87
- "Mobile Application": undefined,
88
- Notebook: solution_simple_types_1.notebookProcessor,
89
- "Oriented Imagery Catalog": solution_simple_types_1.simpleTypes,
90
- "Ortho Mapping Project": undefined,
91
- "QuickCapture Project": solution_simple_types_1.quickcaptureProcessor,
92
- "Site Application": solution_hub_types_1.HubSiteProcessor,
93
- "Site Page": solution_hub_types_1.HubPageProcessor,
94
- Solution: exports.UNSUPPORTED,
95
- StoryMap: solution_storymap_1.StoryMapProcessor,
96
- "Urban Model": undefined,
97
- "Web Experience Template": undefined,
98
- "Web Experience": solution_web_experience_1.WebExperienceProcessor,
99
- "Web Mapping Application": solution_simple_types_1.simpleTypes,
100
- "Workforce Project": solution_simple_types_1.simpleTypes,
101
- ////////////////////////////////////////////////////////
102
- // File types
103
- "360 VR Experience": fileProcessor,
104
- "AppBuilder Extension": fileProcessor,
105
- "AppBuilder Widget Package": fileProcessor,
106
- "Application Configuration": fileProcessor,
107
- "ArcGIS Pro Add In": fileProcessor,
108
- "ArcGIS Pro Configuration": fileProcessor,
109
- "ArcPad Package": fileProcessor,
110
- "Basemap Package": fileProcessor,
111
- "CAD Drawing": fileProcessor,
112
- "CityEngine Web Scene": fileProcessor,
113
- "Code Attachment": exports.UNSUPPORTED,
114
- "Code Sample": fileProcessor,
115
- "Color Set": fileProcessor,
116
- "Compact Tile Package": fileProcessor,
117
- "CSV Collection": fileProcessor,
118
- CSV: fileProcessor,
119
- "Deep Learning Package": fileProcessor,
120
- "Desktop Add In": fileProcessor,
121
- "Desktop Application Template": fileProcessor,
122
- "Desktop Style": fileProcessor,
123
- "Document Link": fileProcessor,
124
- "Explorer Add In": fileProcessor,
125
- "Explorer Layer": fileProcessor,
126
- "Explorer Map": fileProcessor,
127
- "Feature Collection Template": fileProcessor,
128
- "File Geodatabase": fileProcessor,
129
- GeoJson: fileProcessor,
130
- GeoPackage: fileProcessor,
131
- "Geoprocessing Package": fileProcessor,
132
- "Geoprocessing Sample": fileProcessor,
133
- "Globe Document": fileProcessor,
134
- "Image Collection": fileProcessor,
135
- Image: fileProcessor,
136
- "iWork Keynote": fileProcessor,
137
- "iWork Numbers": fileProcessor,
138
- "iWork Pages": fileProcessor,
139
- "KML Collection": fileProcessor,
140
- "Layer Package": fileProcessor,
141
- "Layer Template": fileProcessor,
142
- Layer: fileProcessor,
143
- Layout: fileProcessor,
144
- "Locator Package": fileProcessor,
145
- "Map Document": fileProcessor,
146
- "Map Package": fileProcessor,
147
- "Map Template": fileProcessor,
148
- "Microsoft Excel": fileProcessor,
149
- "Microsoft Powerpoint": fileProcessor,
150
- "Microsoft Word": fileProcessor,
151
- "Mobile Basemap Package": fileProcessor,
152
- "Mobile Map Package": fileProcessor,
153
- "Mobile Scene Package": fileProcessor,
154
- "Native Application": fileProcessor,
155
- "Native Application Installer": fileProcessor,
156
- "Native Application Template": fileProcessor,
157
- netCDF: fileProcessor,
158
- "Operation View": fileProcessor,
159
- "Operations Dashboard Add In": fileProcessor,
160
- "Operations Dashboard Extension": fileProcessor,
161
- PDF: fileProcessor,
162
- "Pro Layer Package": fileProcessor,
163
- "Pro Layer": fileProcessor,
164
- "Pro Map Package": fileProcessor,
165
- "Pro Map": fileProcessor,
166
- "Pro Report": fileProcessor,
167
- "Project Package": fileProcessor,
168
- "Project Template": fileProcessor,
169
- "Published Map": fileProcessor,
170
- "Raster function template": fileProcessor,
171
- "Report Template": fileProcessor,
172
- "Rule Package": fileProcessor,
173
- "Scene Document": fileProcessor,
174
- "Scene Package": fileProcessor,
175
- "Service Definition": fileProcessor,
176
- Shapefile: fileProcessor,
177
- "Statistical Data Collection": fileProcessor,
178
- Style: fileProcessor,
179
- "Survey123 Add In": fileProcessor,
180
- "Symbol Set": fileProcessor,
181
- "Task File": fileProcessor,
182
- "Tile Package": fileProcessor,
183
- "Toolbox Package": fileProcessor,
184
- "Vector Tile Package": fileProcessor,
185
- "Viewer Configuration": fileProcessor,
186
- "Visio Document": fileProcessor,
187
- "Window Mobile Package": fileProcessor,
188
- "Windows Mobile Package": fileProcessor,
189
- "Windows Viewer Add In": fileProcessor,
190
- "Windows Viewer Configuration": fileProcessor,
191
- Workflow: workflowProcessor,
192
- "Workflow Manager Package": fileProcessor,
193
- ////////////////////////////////////////////////////////
194
- // New types
195
- "Administrative Report": undefined,
196
- "Apache Parquet": undefined,
197
- "API Key": undefined,
198
- "datastore catalog service": undefined,
199
- "Deep Learning Studio Project": undefined,
200
- "Earth Configuration": undefined,
201
- "Elevation Layer": undefined,
202
- "Esri Classifier Definition": undefined,
203
- "Export Package": undefined,
204
- "GeoBIM Application": undefined,
205
- "GeoBIM Project": undefined,
206
- "Geoenrichment Service": undefined,
207
- GML: undefined,
208
- "Hub Event": undefined,
209
- "Hub Initiative Template": undefined,
210
- "Hub Project": undefined,
211
- "Insights Data Engineering Model": undefined,
212
- "Insights Data Engineering Workbook": undefined,
213
- "Insights Workbook Package": undefined,
214
- "Knowledge Graph": undefined,
215
- "Knowledge Studio Project": undefined,
216
- "Link Chart": undefined,
217
- "Map Image Layer": undefined,
218
- Markup: undefined,
219
- OGCFeatureServer: undefined,
220
- "Pro Project": undefined,
221
- "Pro Report Template": undefined,
222
- "Route Layer": undefined,
223
- "Scene Layer Package": undefined,
224
- "Site Initiative": undefined,
225
- "StoryMap Theme": undefined,
226
- Table: undefined,
227
- "Video Service": undefined,
228
- ////////////////////////////////////////////////////////
229
- // Testing "types"
230
- Undefined: undefined,
231
- Unsupported: exports.UNSUPPORTED
232
- };
233
- //# 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,iEAA8E;AAC9E,uEAIqC;AACrC,+DAA4D;AAC5D,+DAA4D;AAC5D,2EAAuE;AACvE,mFAA6D;AAEhD,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,mCAAW;IAClC,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,SAAS;IACf,0BAA0B,EAAE,SAAS;IAErC,wDAAwD;IACxD,YAAY;IACZ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AAa,EAAE,SAAS;IACxB,iCAAiC,EAAE,SAAS;IAC5C,oCAAoC,EAAE,SAAS;IAC/C,2BAA2B,EAAE,SAAS;IACtC,iBAAiB,EAAE,SAAS;IAC5B,0BAA0B,EAAE,SAAS;IACrC,YAAY,EAAE,SAAS;IACvB,iBAAiB,EAAE,SAAS;IAC5B,MAAM,EAAE,SAAS;IACjB,gBAAgB,EAAE,SAAS;IAC3B,aAAa,EAAE,SAAS;IACxB,qBAAqB,EAAE,SAAS;IAChC,aAAa,EAAE,SAAS;IACxB,qBAAqB,EAAE,SAAS;IAChC,iBAAiB,EAAE,SAAS;IAC5B,gBAAgB,EAAE,SAAS;IAC3B,KAAK,EAAE,SAAS;IAChB,eAAe,EAAE,SAAS;IAE1B,wDAAwD;IACxD,kBAAkB;IAClB,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,mBAAW;CACzB,CAAC"}
@@ -1,44 +0,0 @@
1
- /** @license
2
- * Copyright 2024 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 JSZip from "jszip";
17
- /**
18
- * Relative path and string contents of a file in a zip file.
19
- */
20
- export interface IZipFileContent {
21
- file: string;
22
- content: string;
23
- }
24
- /**
25
- * Extracts files of interest from a zip file, calls a supplied function to modify them, and
26
- * restores the files into the zip.
27
- *
28
- * @param modificationCallback Function that modifies the specified files
29
- * @param zip Zip file that contains the files to modify; modified in place
30
- * @param filesOfInterest Array of file names to extract from the zip file. If empty, all files are extracted.
31
- * @returns Promise that resolves to the modified zip file if the swizzle was successful
32
- */
33
- export declare function modifyFilesinZip(modificationCallback: (zipContentStr: IZipFileContent) => string, zip: JSZip, filesOfInterest?: string[]): Promise<JSZip>;
34
- /**
35
- * Swizzles the source item id with the destination item id in the form zip file and updates the destination item
36
- * with the swizzled zip file.
37
- *
38
- * @param sourceItemId Source item id
39
- * @param destinationItemId Destination item id
40
- * @param zipBlob Form zip file
41
- * @param filesOfInterest Array of file names to extract from the zip file. If empty, all files are extracted.
42
- * @returns Promise that resolves to the modified zip file if the swizzle was successful
43
- */
44
- export declare function swizzleIdsInZipFile(sourceItemId: string, destinationItemId: string, zip: JSZip, filesOfInterest?: string[]): Promise<JSZip>;
@@ -1,54 +0,0 @@
1
- /** @license
2
- * Copyright 2024 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
- /**
19
- * Extracts files of interest from a zip file, calls a supplied function to modify them, and
20
- * restores the files into the zip.
21
- *
22
- * @param modificationCallback Function that modifies the specified files
23
- * @param zip Zip file that contains the files to modify; modified in place
24
- * @param filesOfInterest Array of file names to extract from the zip file. If empty, all files are extracted.
25
- * @returns Promise that resolves to the modified zip file if the swizzle was successful
26
- */
27
- export async function modifyFilesinZip(modificationCallback, zip, filesOfInterest = []) {
28
- // Get the contents of the form.json file
29
- const extractedZipFiles = await common.getZipFileContents(zip, filesOfInterest);
30
- extractedZipFiles.forEach((extractedZipFile) => {
31
- // Run the modification callback
32
- const content = modificationCallback(extractedZipFile);
33
- // Update the zip file
34
- zip.file(extractedZipFile.file, content);
35
- });
36
- return Promise.resolve(zip);
37
- }
38
- /**
39
- * Swizzles the source item id with the destination item id in the form zip file and updates the destination item
40
- * with the swizzled zip file.
41
- *
42
- * @param sourceItemId Source item id
43
- * @param destinationItemId Destination item id
44
- * @param zipBlob Form zip file
45
- * @param filesOfInterest Array of file names to extract from the zip file. If empty, all files are extracted.
46
- * @returns Promise that resolves to the modified zip file if the swizzle was successful
47
- */
48
- export async function swizzleIdsInZipFile(sourceItemId, destinationItemId, zip, filesOfInterest = []) {
49
- const updatedZip = await modifyFilesinZip((zipFile) => {
50
- return zipFile.content.replace(new RegExp(sourceItemId, "g"), destinationItemId);
51
- }, zip, filesOfInterest);
52
- return Promise.resolve(updatedZip);
53
- }
54
- //# sourceMappingURL=zip-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zip-utils.js","sourceRoot":"","sources":["../../../src/helpers/zip-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAWhD,wHAAwH;AAExH;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,oBAAgE,EAChE,GAAU,EACV,kBAA4B,EAAE;IAE9B,yCAAyC;IACzC,MAAM,iBAAiB,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;IAEhF,iBAAiB,CAAC,OAAO,CAAC,CAAC,gBAAgB,EAAE,EAAE;QAC7C,gCAAgC;QAChC,MAAM,OAAO,GAAG,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;QAEvD,sBAAsB;QACtB,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC9B,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,YAAoB,EACpB,iBAAyB,EACzB,GAAU,EACV,kBAA4B,EAAE;IAE9B,MAAM,UAAU,GAAG,MAAM,gBAAgB,CACvC,CAAC,OAAwB,EAAE,EAAE;QAC3B,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC,EAAE,iBAAiB,CAAC,CAAC;IACnF,CAAC,EAAE,GAAG,EAAE,eAAe,CACxB,CAAC;IAEF,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AACrC,CAAC"}