@esri/solution-creator 6.0.2-alpha.23 → 6.0.2-alpha.250423
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/package.json +14 -14
- package/dist/cjs/createItemTemplate.d.ts +0 -117
- package/dist/cjs/createItemTemplate.js +0 -484
- package/dist/cjs/createItemTemplate.js.map +0 -1
- package/dist/cjs/creator.d.ts +0 -107
- package/dist/cjs/creator.js +0 -374
- package/dist/cjs/creator.js.map +0 -1
- package/dist/cjs/helpers/add-content-to-solution.d.ts +0 -159
- package/dist/cjs/helpers/add-content-to-solution.js +0 -561
- package/dist/cjs/helpers/add-content-to-solution.js.map +0 -1
- package/dist/cjs/helpers/template.d.ts +0 -30
- package/dist/cjs/helpers/template.js +0 -49
- package/dist/cjs/helpers/template.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -23
- package/dist/cjs/index.js +0 -27
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/module-map.d.ts +0 -23
- package/dist/cjs/module-map.js +0 -234
- package/dist/cjs/module-map.js.map +0 -1
- package/dist/esm/createItemTemplate.d.ts +0 -117
- package/dist/esm/createItemTemplate.js +0 -471
- package/dist/esm/createItemTemplate.js.map +0 -1
- package/dist/esm/creator.d.ts +0 -107
- package/dist/esm/creator.js +0 -362
- package/dist/esm/creator.js.map +0 -1
- package/dist/esm/helpers/add-content-to-solution.d.ts +0 -159
- package/dist/esm/helpers/add-content-to-solution.js +0 -540
- package/dist/esm/helpers/add-content-to-solution.js.map +0 -1
- package/dist/esm/helpers/template.d.ts +0 -30
- package/dist/esm/helpers/template.js +0 -44
- package/dist/esm/helpers/template.js.map +0 -1
- package/dist/esm/index.d.ts +0 -23
- package/dist/esm/index.js +0 -24
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/module-map.d.ts +0 -23
- package/dist/esm/module-map.js +0 -230
- package/dist/esm/module-map.js.map +0 -1
|
@@ -1,540 +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 { SolutionTemplateFormatVersion, EItemProgressStatus, dedupe, failWithIds, getAgoIdRegEx, getIDs, getPortal, getTemplateById, globalStringReplace, isWorkforceProject, removeTemplate, replaceInTemplate, SItemProgressStatus, copyFilesToStorageItem, postProcessWebToolReferences, postProcessWorkforceTemplates, UNREACHABLE, updateItem, } from "@esri/solution-common";
|
|
17
|
-
import { getProp, getWithDefault } from "@esri/hub-common";
|
|
18
|
-
import { createItemTemplate, postProcessFieldReferences } from "../createItemTemplate";
|
|
19
|
-
import * as form from "@esri/solution-form";
|
|
20
|
-
import { getDataFilesFromTemplates, removeDataFilesFromTemplates } from "./template";
|
|
21
|
-
import { notebookProcessor } from "@esri/solution-simple-types";
|
|
22
|
-
import * as workflow from "@esri/solution-workflow";
|
|
23
|
-
// ------------------------------------------------------------------------------------------------------------------ //
|
|
24
|
-
/**
|
|
25
|
-
* Adds a list of AGO item ids to a solution item.
|
|
26
|
-
*
|
|
27
|
-
* @param solutionItemId AGO id of solution to receive items
|
|
28
|
-
* @param options Customizations for creating the solution
|
|
29
|
-
* @param srcAuthentication Credentials for requests to source items
|
|
30
|
-
* @param destAuthentication Credentials for the requests to destination solution
|
|
31
|
-
* @returns A promise that resolves with the AGO id of the updated solution
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
34
|
-
export function addContentToSolution(solutionItemId, options, srcAuthentication, destAuthentication) {
|
|
35
|
-
return new Promise((resolve, reject) => {
|
|
36
|
-
if (!options.itemIds || options.itemIds.length === 0) {
|
|
37
|
-
resolve(solutionItemId);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
// Prepare feedback mechanism
|
|
41
|
-
let totalEstimatedCost = 2 * options.itemIds.length + 1; // solution items, plus avoid divide by 0
|
|
42
|
-
let percentDone = 16; // allow for previous creation work
|
|
43
|
-
let progressPercentStep = (95 - percentDone) / totalEstimatedCost; // leave some % for caller for wrapup
|
|
44
|
-
const failedItemIds = [];
|
|
45
|
-
let totalExpended = 0;
|
|
46
|
-
let statusOK = true;
|
|
47
|
-
const itemProgressCallback = (itemId, status, costUsed) => {
|
|
48
|
-
// ---------------------------------------------------------------------------------------------------------------
|
|
49
|
-
if (options.itemIds.indexOf(itemId) < 0) {
|
|
50
|
-
// New item--a dependency that wasn't in the supplied list of itemIds; add it to the list
|
|
51
|
-
// and recalculate the progress percent step based on how much progress remains to be done
|
|
52
|
-
options.itemIds.push(itemId);
|
|
53
|
-
totalEstimatedCost += 2;
|
|
54
|
-
progressPercentStep = (95 - percentDone) / (totalEstimatedCost - totalExpended);
|
|
55
|
-
}
|
|
56
|
-
totalExpended += costUsed;
|
|
57
|
-
percentDone += progressPercentStep * costUsed;
|
|
58
|
-
if (options.progressCallback) {
|
|
59
|
-
options.progressCallback(Math.round(percentDone), options.jobId);
|
|
60
|
-
}
|
|
61
|
-
/* istanbul ignore if */
|
|
62
|
-
if (options.consoleProgress) {
|
|
63
|
-
console.log(Date.now(), itemId, options.jobId ?? "", SItemProgressStatus[status], percentDone.toFixed(0) + "%", costUsed);
|
|
64
|
-
}
|
|
65
|
-
if (status === EItemProgressStatus.Failed) {
|
|
66
|
-
let error = "";
|
|
67
|
-
solutionTemplates.some((t) => {
|
|
68
|
-
/* istanbul ignore else */
|
|
69
|
-
if (t.itemId === itemId) {
|
|
70
|
-
/* istanbul ignore else */
|
|
71
|
-
if (getProp(t, "properties.error")) {
|
|
72
|
-
error = t.properties.error;
|
|
73
|
-
try {
|
|
74
|
-
// parse for better console logging if we can
|
|
75
|
-
error = JSON.parse(error);
|
|
76
|
-
}
|
|
77
|
-
catch (e) {
|
|
78
|
-
/* istanbul ignore next */
|
|
79
|
-
// do nothing and show the error as is
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return true;
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
removeTemplate(solutionTemplates, itemId);
|
|
86
|
-
if (failedItemIds.indexOf(itemId) < 0) {
|
|
87
|
-
failedItemIds.push(itemId);
|
|
88
|
-
}
|
|
89
|
-
statusOK = false;
|
|
90
|
-
}
|
|
91
|
-
else if (status === EItemProgressStatus.Ignored) {
|
|
92
|
-
removeTemplate(solutionTemplates, itemId);
|
|
93
|
-
}
|
|
94
|
-
return statusOK;
|
|
95
|
-
// ---------------------------------------------------------------------------------------------------------------
|
|
96
|
-
};
|
|
97
|
-
// Replacement dictionary and created templates
|
|
98
|
-
const templateDictionary = options.templateDictionary ?? {};
|
|
99
|
-
let solutionTemplates = [];
|
|
100
|
-
// Handle a list of one or more AGO ids by stepping through the list
|
|
101
|
-
// and calling this function recursively
|
|
102
|
-
const getItemsPromise = [];
|
|
103
|
-
options.itemIds.forEach((itemId) => {
|
|
104
|
-
const createDef = createItemTemplate(solutionItemId, itemId, templateDictionary, srcAuthentication, destAuthentication, solutionTemplates, itemProgressCallback);
|
|
105
|
-
getItemsPromise.push(createDef);
|
|
106
|
-
});
|
|
107
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
108
|
-
Promise.all(getItemsPromise).then(async (multipleResourceItemFiles) => {
|
|
109
|
-
if (failedItemIds.length > 0) {
|
|
110
|
-
reject(failWithIds(failedItemIds, "One or more items cannot be converted into templates"));
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
if (solutionTemplates.length > 0) {
|
|
114
|
-
// Coalesce the resource file paths from the created templates
|
|
115
|
-
let resourceItemFiles = multipleResourceItemFiles.reduce((accumulator, currentValue) => accumulator.concat(currentValue), []);
|
|
116
|
-
// test for and update group dependencies and other post-processing
|
|
117
|
-
solutionTemplates = await form.postProcessFormItems(solutionTemplates, templateDictionary);
|
|
118
|
-
solutionTemplates = workflow.postProcessFormItems(solutionTemplates);
|
|
119
|
-
solutionTemplates = _postProcessGroupDependencies(solutionTemplates);
|
|
120
|
-
solutionTemplates = postProcessWorkforceTemplates(solutionTemplates);
|
|
121
|
-
// Filter out any resources from items that have been removed from the templates, such as
|
|
122
|
-
// Living Atlas layers
|
|
123
|
-
solutionTemplates = _postProcessIgnoredItems(solutionTemplates, templateDictionary);
|
|
124
|
-
const templateIds = solutionTemplates.map((template) => template.itemId);
|
|
125
|
-
// check notebooks data for any item or group references
|
|
126
|
-
notebookProcessor.postProcessNotebookTemplates(solutionTemplates, templateDictionary);
|
|
127
|
-
solutionTemplates = postProcessWebToolReferences(solutionTemplates, templateDictionary);
|
|
128
|
-
// Extract resource data files from templates
|
|
129
|
-
resourceItemFiles = resourceItemFiles.concat(getDataFilesFromTemplates(solutionTemplates));
|
|
130
|
-
// Coalesce the resource file paths from the created templates
|
|
131
|
-
resourceItemFiles = resourceItemFiles.filter((file) => templateIds.includes(file.itemId));
|
|
132
|
-
// Send the accumulated resources to the solution item
|
|
133
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
134
|
-
copyFilesToStorageItem(resourceItemFiles, solutionItemId, destAuthentication).then(() => {
|
|
135
|
-
// Remove data files from templates--no longer needed
|
|
136
|
-
removeDataFilesFromTemplates(solutionTemplates);
|
|
137
|
-
_templatizeSolutionIds(solutionTemplates);
|
|
138
|
-
_simplifyUrlsInItemDescriptions(solutionTemplates);
|
|
139
|
-
solutionTemplates.forEach((template) => {
|
|
140
|
-
if (template.type !== "Vector Tile Service") {
|
|
141
|
-
_replaceDictionaryItemsInObject(templateDictionary, template);
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
// Get the org's URL
|
|
145
|
-
_getOrgUrl(destAuthentication).then((orgUrl) => {
|
|
146
|
-
// Templatizes occurrences of the URL to the user's organization in the `item` and `data` template sections
|
|
147
|
-
templateDictionary.portalBaseUrl = orgUrl;
|
|
148
|
-
const solutionTemplates2 = _templatizeOrgUrl(solutionTemplates, orgUrl);
|
|
149
|
-
// Templatize any references to AGO ids in the workflow configuration
|
|
150
|
-
_templatizeWorkflowConfig(solutionTemplates, templateDictionary);
|
|
151
|
-
// Update solution item with its data JSON
|
|
152
|
-
const solutionData = {
|
|
153
|
-
metadata: { version: SolutionTemplateFormatVersion },
|
|
154
|
-
templates: options.templatizeFields
|
|
155
|
-
? postProcessFieldReferences(solutionTemplates2)
|
|
156
|
-
: solutionTemplates2,
|
|
157
|
-
};
|
|
158
|
-
const itemInfo = {
|
|
159
|
-
id: solutionItemId,
|
|
160
|
-
text: solutionData,
|
|
161
|
-
};
|
|
162
|
-
updateItem(itemInfo, destAuthentication).then(() => {
|
|
163
|
-
resolve(solutionItemId);
|
|
164
|
-
}, reject);
|
|
165
|
-
}, reject);
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
resolve(solutionItemId);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
// ------------------------------------------------------------------------------------------------------------------ //
|
|
176
|
-
/**
|
|
177
|
-
* Gets the dependencies of an item by merging its dependencies list with item references in template variables.
|
|
178
|
-
*
|
|
179
|
-
* @param template Template to examine
|
|
180
|
-
* @returns List of dependency ids
|
|
181
|
-
* @private
|
|
182
|
-
*/
|
|
183
|
-
export function _getDependencies(template) {
|
|
184
|
-
// Get all dependencies
|
|
185
|
-
let deps = template.dependencies.concat(_getIdsOutOfTemplateVariables(_getTemplateVariables(JSON.stringify(template.data))));
|
|
186
|
-
// Remove duplicates and self-references
|
|
187
|
-
deps.sort();
|
|
188
|
-
deps = deps.filter((elem, index, array) => {
|
|
189
|
-
if (elem === template.itemId) {
|
|
190
|
-
return false;
|
|
191
|
-
}
|
|
192
|
-
else if (index > 0) {
|
|
193
|
-
return elem !== array[index - 1];
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
return true;
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
return deps;
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* Extracts AGO ids out of template variables.
|
|
203
|
-
*
|
|
204
|
-
* @param variables List of template variables to examine
|
|
205
|
-
* @returns List of AGO ids referenced in `variables`
|
|
206
|
-
* @private
|
|
207
|
-
*/
|
|
208
|
-
export function _getIdsOutOfTemplateVariables(variables) {
|
|
209
|
-
return variables
|
|
210
|
-
.map((variable) => {
|
|
211
|
-
const idList = variable.match(/[0-9A-F]{32}/i); // is it a guid?
|
|
212
|
-
if (idList) {
|
|
213
|
-
return idList[0];
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
return null;
|
|
217
|
-
}
|
|
218
|
-
})
|
|
219
|
-
.filter((variable) => !!variable);
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Fetches the organization's URL.
|
|
223
|
-
*
|
|
224
|
-
* @param destAuthentication Credentials for request organization info
|
|
225
|
-
* @returns Promise resolving with the organization's URL
|
|
226
|
-
* @private
|
|
227
|
-
*/
|
|
228
|
-
export async function _getOrgUrl(destAuthentication) {
|
|
229
|
-
// Get the org's URL
|
|
230
|
-
const org = await getPortal(null, destAuthentication);
|
|
231
|
-
const orgUrl = "https://" + org.urlKey + "." + org.customBaseUrl;
|
|
232
|
-
return orgUrl;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Creates a list of item URLs.
|
|
236
|
-
*
|
|
237
|
-
* @param templates Templates to check for URLs
|
|
238
|
-
* @returns List of URLs
|
|
239
|
-
* @private
|
|
240
|
-
*/
|
|
241
|
-
export function _getSolutionItemUrls(templates) {
|
|
242
|
-
const solutionUrls = [];
|
|
243
|
-
templates.forEach((template) => {
|
|
244
|
-
/* istanbul ignore else */
|
|
245
|
-
if (template.item.origUrl) {
|
|
246
|
-
solutionUrls.push([template.itemId, template.item.origUrl]);
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
return solutionUrls;
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Extracts template variables out of a string.
|
|
253
|
-
*
|
|
254
|
-
* @param text String to examine
|
|
255
|
-
* @returns List of template variables found in string
|
|
256
|
-
* @private
|
|
257
|
-
*/
|
|
258
|
-
export function _getTemplateVariables(text) {
|
|
259
|
-
return (text.match(/{{[a-z0-9.]*}}/gi) || []) // find variable
|
|
260
|
-
.map((variable) => variable.substring(2, variable.length - 2)); // remove "{{" & "}}"
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Update the items dependencies and groups arrays
|
|
264
|
-
*
|
|
265
|
-
* @param templates The array of templates to evaluate
|
|
266
|
-
* @returns Updated version of the templates
|
|
267
|
-
* @private
|
|
268
|
-
*/
|
|
269
|
-
export function _postProcessGroupDependencies(templates) {
|
|
270
|
-
return templates.map((template) => {
|
|
271
|
-
if (template.type === "Group") {
|
|
272
|
-
const id = template.itemId;
|
|
273
|
-
// remove group dependencies if we find a circular dependency with one of its items
|
|
274
|
-
let removeDependencies = false;
|
|
275
|
-
// before we remove update each dependants groups array
|
|
276
|
-
template.dependencies.forEach((dependencyId) => {
|
|
277
|
-
const dependantTemplate = getTemplateById(templates, dependencyId);
|
|
278
|
-
// Not all items shared to the group will exist in the templates array
|
|
279
|
-
// i.e. Hub Initiative items or any other unsupported types
|
|
280
|
-
if (dependantTemplate) {
|
|
281
|
-
// check if the group is in the dependantTemplate's list of dependencies
|
|
282
|
-
const gIndex = getWithDefault(dependantTemplate, "dependencies", []).indexOf(id);
|
|
283
|
-
/* istanbul ignore else */
|
|
284
|
-
if (gIndex > -1) {
|
|
285
|
-
removeDependencies = true;
|
|
286
|
-
}
|
|
287
|
-
// if the dependant template does not have the group id
|
|
288
|
-
// in it's groups array, add it
|
|
289
|
-
const groups = getWithDefault(dependantTemplate, "groups", []);
|
|
290
|
-
if (groups.indexOf(id) === -1) {
|
|
291
|
-
groups.push(id);
|
|
292
|
-
dependantTemplate.groups = groups;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
});
|
|
296
|
-
if (removeDependencies) {
|
|
297
|
-
template.dependencies = [];
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
return template;
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Check for feature service items that have been flagged for invalid designations.
|
|
305
|
-
* Remove templates that have invalid designations from the solution item and other item dependencies.
|
|
306
|
-
* Clean up any references to items with invalid designations in the other templates.
|
|
307
|
-
*
|
|
308
|
-
* @param templates The array of templates to evaluate
|
|
309
|
-
* @param templateDictionary Hash of key details used for variable replacement
|
|
310
|
-
* @returns Updated version of the templates
|
|
311
|
-
* @private
|
|
312
|
-
*/
|
|
313
|
-
export function _postProcessIgnoredItems(templates, templateDictionary) {
|
|
314
|
-
// replace in template
|
|
315
|
-
const updateDictionary = templates.reduce((result, template) => {
|
|
316
|
-
const invalidDes = template.properties.hasInvalidDesignations;
|
|
317
|
-
const unreachableVal = getProp(templateDictionary, `${UNREACHABLE}.${template.itemId}`);
|
|
318
|
-
if (invalidDes && unreachableVal && Object.keys(template.data).length < 1) {
|
|
319
|
-
template.data[template.itemId] = unreachableVal;
|
|
320
|
-
}
|
|
321
|
-
return invalidDes ? Object.assign(result, template.data) : result;
|
|
322
|
-
}, {});
|
|
323
|
-
// adlib breaks Form data files, so we'll save any in the templates list so that we can restore them
|
|
324
|
-
const dataFiles = _getDataFilesFromTemplates(templates);
|
|
325
|
-
Object.keys(updateDictionary).forEach((k) => {
|
|
326
|
-
removeTemplate(templates, k);
|
|
327
|
-
templates = templates.map((t) => {
|
|
328
|
-
t.dependencies = t.dependencies.filter((id) => id !== k);
|
|
329
|
-
return replaceInTemplate(t, updateDictionary);
|
|
330
|
-
});
|
|
331
|
-
});
|
|
332
|
-
// Restore the data files to the templates
|
|
333
|
-
_restoreDataFilesToTemplates(templates, dataFiles);
|
|
334
|
-
return templates;
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* Retrieves the Form dataFiles from a list of templates and removes them from the templates.
|
|
338
|
-
*
|
|
339
|
-
* @param templates Templates to be scanned and have their `dataFile` property deleted
|
|
340
|
-
* @returns List of Form dataFiles from the templates, which have their `dataFile` property removed;
|
|
341
|
-
* the list is in the same order as the templates and has `undefined` for templates that don't have a dataFile
|
|
342
|
-
*/
|
|
343
|
-
export function _getDataFilesFromTemplates(templates) {
|
|
344
|
-
return templates.reduce((acc, template) => {
|
|
345
|
-
const dataFile = template.dataFile;
|
|
346
|
-
delete template.dataFile;
|
|
347
|
-
return acc.concat(dataFile);
|
|
348
|
-
}, []);
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Recursively runs through an object to find and replace any strings found in a dictionary.
|
|
352
|
-
*
|
|
353
|
-
* @param templateDictionary Hash of things to be replaced
|
|
354
|
-
* @param obj Object to be examined
|
|
355
|
-
* @private
|
|
356
|
-
*/
|
|
357
|
-
export function _replaceDictionaryItemsInObject(hash, obj) {
|
|
358
|
-
/* istanbul ignore else */
|
|
359
|
-
if (obj) {
|
|
360
|
-
Object.keys(obj).forEach((prop) => {
|
|
361
|
-
const propObj = obj[prop];
|
|
362
|
-
if (propObj) {
|
|
363
|
-
if (typeof propObj === "object") {
|
|
364
|
-
_replaceDictionaryItemsInObject(hash, propObj);
|
|
365
|
-
}
|
|
366
|
-
else if (typeof propObj === "string") {
|
|
367
|
-
obj[prop] = hash[propObj] || propObj;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
return obj;
|
|
373
|
-
}
|
|
374
|
-
/**
|
|
375
|
-
* Recursively runs through an object to find and templatize any remaining references to solution's items.
|
|
376
|
-
*
|
|
377
|
-
* @param ids Ids to be replaced in strings found in object
|
|
378
|
-
* @param obj Object to be examined
|
|
379
|
-
* @private
|
|
380
|
-
*/
|
|
381
|
-
export function _replaceRemainingIdsInObject(ids, obj) {
|
|
382
|
-
/* istanbul ignore else */
|
|
383
|
-
if (obj) {
|
|
384
|
-
Object.keys(obj).forEach((prop) => {
|
|
385
|
-
const propObj = obj[prop];
|
|
386
|
-
if (propObj) {
|
|
387
|
-
if (typeof propObj === "object") {
|
|
388
|
-
_replaceRemainingIdsInObject(ids, propObj);
|
|
389
|
-
}
|
|
390
|
-
else if (typeof propObj === "string") {
|
|
391
|
-
obj[prop] = _replaceRemainingIdsInString(ids, propObj);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
return obj;
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* Templatizes ids from a list in a string if they're not already templatized.
|
|
400
|
-
*
|
|
401
|
-
* @param ids Ids to be replaced in source string
|
|
402
|
-
* @param str Source string to be examined
|
|
403
|
-
* @returns A copy of the source string with any templatization changes
|
|
404
|
-
* @private
|
|
405
|
-
*/
|
|
406
|
-
export function _replaceRemainingIdsInString(ids, str) {
|
|
407
|
-
let updatedStr = str;
|
|
408
|
-
const untemplatizedIds = getIDs(str);
|
|
409
|
-
if (untemplatizedIds.length > 0) {
|
|
410
|
-
untemplatizedIds.forEach((id) => {
|
|
411
|
-
if (ids.includes(id)) {
|
|
412
|
-
const re = new RegExp("({*)" + id, "gi");
|
|
413
|
-
updatedStr = updatedStr.replace(re, (match) => match.indexOf("{{") < 0 ? "{{" + id.replace("{", "") + ".itemId}}" : match);
|
|
414
|
-
}
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
return updatedStr;
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
* Restores the Form dataFiles to the templates.
|
|
421
|
-
*
|
|
422
|
-
* @param templates Templates to be updated with the dataFiles; the `dataFile` property is added back to the templates
|
|
423
|
-
* that originally had it
|
|
424
|
-
* @param dataFiles List of Form dataFiles to be restored to the templates; the list is in the same order
|
|
425
|
-
* as the templates and has `undefined` for templates that don't have a dataFile
|
|
426
|
-
*/
|
|
427
|
-
export function _restoreDataFilesToTemplates(templates, dataFiles) {
|
|
428
|
-
templates.forEach((template, i) => {
|
|
429
|
-
if (dataFiles[i]) {
|
|
430
|
-
template.dataFile = dataFiles[i];
|
|
431
|
-
}
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
/**
|
|
435
|
-
* Finds and templatizes any URLs in solution items' descriptions.
|
|
436
|
-
*
|
|
437
|
-
* @param templates The array of templates to evaluate, modified in place
|
|
438
|
-
* @private
|
|
439
|
-
*/
|
|
440
|
-
export function _simplifyUrlsInItemDescriptions(templates) {
|
|
441
|
-
// Get the urls in the solution along with their item ids & convert the id into the form
|
|
442
|
-
// "{{fcb2bf2837a6404ebb418a1f805f976a.url}}"
|
|
443
|
-
const solutionUrls = _getSolutionItemUrls(templates).map((idUrl) => ["{{" + idUrl[0] + ".url}}", idUrl[1]]);
|
|
444
|
-
/* istanbul ignore else */
|
|
445
|
-
if (solutionUrls.length > 0) {
|
|
446
|
-
// Make the replacements
|
|
447
|
-
templates.forEach((template) => {
|
|
448
|
-
solutionUrls.forEach(
|
|
449
|
-
// TypeScript for es2015 doesn't have a definition for `replaceAll`
|
|
450
|
-
(idUrl) => {
|
|
451
|
-
/* istanbul ignore else */
|
|
452
|
-
if (template.item.description) {
|
|
453
|
-
template.item.description = template.item.description.replaceAll(idUrl[1], idUrl[0]);
|
|
454
|
-
}
|
|
455
|
-
});
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
/**
|
|
460
|
-
* Templatizes occurrences of the URL to the user's organization in the `item` and `data` template sections.
|
|
461
|
-
*
|
|
462
|
-
* @param templates The array of templates to evaluate; `templates` is modified in place
|
|
463
|
-
* @param orgUrl The organization's URL
|
|
464
|
-
* @returns Updated templates
|
|
465
|
-
* @private
|
|
466
|
-
*/
|
|
467
|
-
export function _templatizeOrgUrl(templates, orgUrl) {
|
|
468
|
-
const templatizedOrgUrl = "{{portalBaseUrl}}";
|
|
469
|
-
// Cycle through each of the items in the template and scan the `item` and `data` sections of each for replacements
|
|
470
|
-
templates.forEach((template) => {
|
|
471
|
-
globalStringReplace(template.item, new RegExp(orgUrl, "gi"), templatizedOrgUrl);
|
|
472
|
-
globalStringReplace(template.data, new RegExp(orgUrl, "gi"), templatizedOrgUrl);
|
|
473
|
-
});
|
|
474
|
-
// Handle encoded URLs
|
|
475
|
-
orgUrl = orgUrl.replace("https://", "https%3A%2F%2F");
|
|
476
|
-
// Cycle through each of the items in the template and scan the `data` sections of each for replacements
|
|
477
|
-
templates.forEach((template) => {
|
|
478
|
-
globalStringReplace(template.data, new RegExp(orgUrl, "gi"), templatizedOrgUrl);
|
|
479
|
-
});
|
|
480
|
-
return templates;
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* Finds and templatizes any references to solution's items.
|
|
484
|
-
*
|
|
485
|
-
* @param templates The array of templates to evaluate, modified in place
|
|
486
|
-
* @private
|
|
487
|
-
*/
|
|
488
|
-
export function _templatizeSolutionIds(templates) {
|
|
489
|
-
// Get the ids in the solution
|
|
490
|
-
const solutionIds = templates.map((template) => template.itemId);
|
|
491
|
-
// Cycle through each of the items in the template and
|
|
492
|
-
// 1. templatize untemplatized ids in our solution in the `item` and `data` sections;
|
|
493
|
-
// 2. update the `dependencies` section
|
|
494
|
-
templates.forEach((template) => {
|
|
495
|
-
_replaceRemainingIdsInObject(solutionIds, template.item);
|
|
496
|
-
_replaceRemainingIdsInObject(solutionIds, template.data);
|
|
497
|
-
/* istanbul ignore else */
|
|
498
|
-
if (template.type !== "Group" && !isWorkforceProject(template)) {
|
|
499
|
-
template.dependencies = _getDependencies(template);
|
|
500
|
-
}
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
/**
|
|
504
|
-
* Finds and templatizes any references to AGO ids in the workflow configuration.
|
|
505
|
-
*
|
|
506
|
-
* @param templates The array of templates whose workflow configurations are to be templatized; this array is
|
|
507
|
-
* modified in place
|
|
508
|
-
* @param templateDictionary Hash of key details used for variable replacement
|
|
509
|
-
*/
|
|
510
|
-
export function _templatizeWorkflowConfig(templates, templateDictionary) {
|
|
511
|
-
// Cycle through each of the items in the template and templatize each workflow configuration
|
|
512
|
-
templates.forEach((template) => {
|
|
513
|
-
if (template.type === "Workflow") {
|
|
514
|
-
let configStr = JSON.stringify(template.properties.configuration);
|
|
515
|
-
const agoIdRegEx = getAgoIdRegEx();
|
|
516
|
-
const agoIdMatches = dedupe(configStr.match(agoIdRegEx) ?? []);
|
|
517
|
-
// Replace things that look like AGO ids in the file content with templates
|
|
518
|
-
// iff they are present in the template dictionary
|
|
519
|
-
agoIdMatches.forEach((match) => {
|
|
520
|
-
const entry = templateDictionary[match];
|
|
521
|
-
if (entry) {
|
|
522
|
-
const matchRegExp = new RegExp(match, "g");
|
|
523
|
-
// Only proceed if the match is in the configuration string
|
|
524
|
-
if (matchRegExp.test(configStr)) {
|
|
525
|
-
configStr = configStr.replace(matchRegExp, `{{${match}.itemId}}`);
|
|
526
|
-
// Add the match as a dependency if it's not the template's id
|
|
527
|
-
if (match !== template.itemId) {
|
|
528
|
-
template.dependencies.push(match);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
// Replace the organization's URL in the configuration
|
|
534
|
-
configStr = configStr.replace(new RegExp(`${templateDictionary.portalBaseUrl}`, "g"), "{{portalBaseUrl}}");
|
|
535
|
-
// Update configuration
|
|
536
|
-
template.properties.configuration = JSON.parse(configStr);
|
|
537
|
-
}
|
|
538
|
-
});
|
|
539
|
-
}
|
|
540
|
-
//# sourceMappingURL=add-content-to-solution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-content-to-solution.js","sourceRoot":"","sources":["../../../src/helpers/add-content-to-solution.ts"],"names":[],"mappings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,EAAE,CAAC;YACnC,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC;YAE/D,2EAA2E;YAC3E,kDAAkD;YAClD,YAAY,CAAC,OAAO,CAAC,CAAC,KAAa,EAAE,EAAE;gBACrC,MAAM,KAAK,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;gBACxC,IAAI,KAAK,EAAE;oBACT,MAAM,WAAW,GAAG,IAAI,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;oBAE3C,2DAA2D;oBAC3D,IAAI,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;wBAC/B,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,KAAK,WAAW,CAAC,CAAC;wBAElE,8DAA8D;wBAC9D,IAAI,KAAK,KAAK,QAAQ,CAAC,MAAM,EAAE;4BAC7B,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;yBACnC;qBACF;iBACF;YACH,CAAC,CAAC,CAAC;YAEH,sDAAsD;YACtD,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,GAAG,kBAAkB,CAAC,aAAa,EAAE,EAAE,GAAG,CAAC,EAAE,mBAAmB,CAAC,CAAC;YAE3G,uBAAuB;YACvB,QAAQ,CAAC,UAAU,CAAC,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;SAC3D;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2022 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, ISourceFile } from "@esri/solution-common";
|
|
17
|
-
/**
|
|
18
|
-
* Extracts resource data files from templates.
|
|
19
|
-
*
|
|
20
|
-
* @param templates List of templates to examine
|
|
21
|
-
*
|
|
22
|
-
* @return List of resource data files found in supplied templates
|
|
23
|
-
*/
|
|
24
|
-
export declare function getDataFilesFromTemplates(templates: IItemTemplate[]): ISourceFile[];
|
|
25
|
-
/**
|
|
26
|
-
* Removes data files from templates.
|
|
27
|
-
*
|
|
28
|
-
* @param templates List of templates to modify
|
|
29
|
-
*/
|
|
30
|
-
export declare function removeDataFilesFromTemplates(templates: IItemTemplate[]): void;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/** @license
|
|
2
|
-
* Copyright 2022 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
|
-
* Extracts resource data files from templates.
|
|
18
|
-
*
|
|
19
|
-
* @param templates List of templates to examine
|
|
20
|
-
*
|
|
21
|
-
* @return List of resource data files found in supplied templates
|
|
22
|
-
*/
|
|
23
|
-
export function getDataFilesFromTemplates(templates) {
|
|
24
|
-
const resourceItemFiles = [];
|
|
25
|
-
templates.forEach((template) => {
|
|
26
|
-
if (template.dataFile) {
|
|
27
|
-
resourceItemFiles.push(template.dataFile);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return resourceItemFiles;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Removes data files from templates.
|
|
34
|
-
*
|
|
35
|
-
* @param templates List of templates to modify
|
|
36
|
-
*/
|
|
37
|
-
export function removeDataFilesFromTemplates(templates) {
|
|
38
|
-
templates.forEach((template) => {
|
|
39
|
-
if (template.dataFile) {
|
|
40
|
-
delete template.dataFile;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=template.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/helpers/template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CAAC,SAA0B;IAClE,MAAM,iBAAiB,GAAkB,EAAE,CAAC;IAE5C,SAAS,CAAC,OAAO,CAAC,CAAC,QAAuB,EAAE,EAAE;QAC5C,IAAI,QAAQ,CAAC,QAAQ,EAAE;YACrB,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;SAC3C;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,4BAA4B,CAAC,SAA0B;IACrE,SAAS,CAAC,OAAO,CAAC,CAAC,QAAuB,EAAE,EAAE;QAC5C,IAAI,QAAQ,CAAC,QAAQ,EAAE;YACrB,OAAO,QAAQ,CAAC,QAAQ,CAAC;SAC1B;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/esm/index.d.ts
DELETED
|
@@ -1,23 +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 creation of a Solution item.
|
|
18
|
-
*
|
|
19
|
-
* @module creator
|
|
20
|
-
*/
|
|
21
|
-
export * from "./creator";
|
|
22
|
-
export * from "./createItemTemplate";
|
|
23
|
-
export * from "./module-map";
|