@esri/solution-simple-types 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 (50) hide show
  1. package/dist/esm/helpers/convert-item-to-template.js +23 -12
  2. package/dist/esm/helpers/convert-item-to-template.js.map +1 -1
  3. package/dist/{cjs/helpers/create-item-from-template.d.ts → esm/helpers/formHelpers.d.ts} +11 -3
  4. package/dist/esm/helpers/formHelpers.js +53 -0
  5. package/dist/esm/helpers/formHelpers.js.map +1 -0
  6. package/package.json +7 -7
  7. package/dist/cjs/dashboard.d.ts +0 -93
  8. package/dist/cjs/dashboard.js +0 -353
  9. package/dist/cjs/dashboard.js.map +0 -1
  10. package/dist/cjs/helpers/convert-item-to-template.d.ts +0 -45
  11. package/dist/cjs/helpers/convert-item-to-template.js +0 -235
  12. package/dist/cjs/helpers/convert-item-to-template.js.map +0 -1
  13. package/dist/cjs/helpers/create-item-from-template.js +0 -154
  14. package/dist/cjs/helpers/create-item-from-template.js.map +0 -1
  15. package/dist/cjs/helpers/notebook-helpers.d.ts +0 -19
  16. package/dist/cjs/helpers/notebook-helpers.js +0 -25
  17. package/dist/cjs/helpers/notebook-helpers.js.map +0 -1
  18. package/dist/cjs/helpers/quickcapture-helpers.d.ts +0 -18
  19. package/dist/cjs/helpers/quickcapture-helpers.js +0 -23
  20. package/dist/cjs/helpers/quickcapture-helpers.js.map +0 -1
  21. package/dist/cjs/helpers/simple-type-helpers.d.ts +0 -18
  22. package/dist/cjs/helpers/simple-type-helpers.js +0 -23
  23. package/dist/cjs/helpers/simple-type-helpers.js.map +0 -1
  24. package/dist/cjs/helpers/update-notebook-data.d.ts +0 -17
  25. package/dist/cjs/helpers/update-notebook-data.js +0 -28
  26. package/dist/cjs/helpers/update-notebook-data.js.map +0 -1
  27. package/dist/cjs/index.d.ts +0 -27
  28. package/dist/cjs/index.js +0 -37
  29. package/dist/cjs/index.js.map +0 -1
  30. package/dist/cjs/notebook.d.ts +0 -65
  31. package/dist/cjs/notebook.js +0 -133
  32. package/dist/cjs/notebook.js.map +0 -1
  33. package/dist/cjs/oic.d.ts +0 -53
  34. package/dist/cjs/oic.js +0 -171
  35. package/dist/cjs/oic.js.map +0 -1
  36. package/dist/cjs/quickcapture.d.ts +0 -75
  37. package/dist/cjs/quickcapture.js +0 -143
  38. package/dist/cjs/quickcapture.js.map +0 -1
  39. package/dist/cjs/simple-types.d.ts +0 -56
  40. package/dist/cjs/simple-types.js +0 -94
  41. package/dist/cjs/simple-types.js.map +0 -1
  42. package/dist/cjs/webmap.d.ts +0 -102
  43. package/dist/cjs/webmap.js +0 -318
  44. package/dist/cjs/webmap.js.map +0 -1
  45. package/dist/cjs/webmappingapplication.d.ts +0 -176
  46. package/dist/cjs/webmappingapplication.js +0 -675
  47. package/dist/cjs/webmappingapplication.js.map +0 -1
  48. package/dist/cjs/workforce.d.ts +0 -34
  49. package/dist/cjs/workforce.js +0 -45
  50. package/dist/cjs/workforce.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../src/dashboard.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH,sEAAgD;AA2DhD;;;;;;GAMG;AACH,SAAgB,qBAAqB,CACnC,YAAkC,EAClC,kBAAuB;IAEvB,OAAO,oBAAoB,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC;AAChE,CAAC;AALD,sDAKC;AAED;;;;;;;GAOG;AACH,SAAgB,oBAAoB,CAClC,YAAkC,EAClC,kBAAuB;IAEvB,4BAA4B;IAC5B,MAAM,WAAW,GAAa;QAC5B,yBAAyB;QACzB,wCAAwC;QACxC,sCAAsC;QACtC,0BAA0B;QAC1B,gCAAgC;QAChC,0BAA0B;QAC1B,aAAa;QACb,4BAA4B;QAC5B,0BAA0B;QAC1B,wBAAwB;QACxB,uCAAuC;QACvC,qCAAqC;QACrC,yBAAyB;QACzB,+BAA+B;QAC/B,yBAA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G,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC3B,OAAO,OAAO,CAAC;YACjB,CAAC,CAAC,CAAC;SACJ;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AA7CD,gDA6CC;AAED;;;;;;GAMG;AACH,SAAgB,iBAAiB,CAC/B,EAA0B,EAC1B,EAAU;IAEV,EAAE,CAAC,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,IAAI,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE;QACjC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KACxB;AACH,CAAC;AARD,8CAQC"}
@@ -1,45 +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 * as common from "@esri/solution-common";
17
- /**
18
- * Converts an item into a template.
19
- *
20
- * @param itemInfo Info about the item
21
- * @param destAuthentication Credentials for requests to the destination organization
22
- * @param srcAuthentication Credentials for requests to source items
23
- * @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
24
- *
25
- * @returns A promise that will resolve when the template has been created
26
- */
27
- export declare function convertItemToTemplate(itemInfo: any, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary: any): Promise<common.IItemTemplate>;
28
- /**
29
- * Extracts the feature layer ids for a Data Pipeline's sources and sinks.
30
- *
31
- * @param itemData Data Pipeline's data section
32
- * @return List of feature layer ids or an empty list if there are no sources or sinks in the pipeline
33
- */
34
- export declare function _getDataPipelineSourcesAndSinks(itemData: any): string[];
35
- /**
36
- * Encapsulates the rules for naming a form's data file.
37
- * Chooses the first parameter that's defined and is not the string "undefined".
38
- *
39
- * @param itemName Template's item name
40
- * @param dataFilename The data file name
41
- * @param itemIdAsName A name constructed from the template's id suffixed with ".zip"
42
- *
43
- * @return A name for the data file
44
- */
45
- export declare function _getFormDataFilename(itemName: string, dataFilename: string, itemIdAsName: string): string;
@@ -1,235 +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._getFormDataFilename = exports._getDataPipelineSourcesAndSinks = exports.convertItemToTemplate = void 0;
19
- const tslib_1 = require("tslib");
20
- const common = tslib_1.__importStar(require("@esri/solution-common"));
21
- const dashboard = tslib_1.__importStar(require("../dashboard"));
22
- const notebook = tslib_1.__importStar(require("../notebook"));
23
- const oic = tslib_1.__importStar(require("../oic"));
24
- const quickcapture = tslib_1.__importStar(require("../quickcapture"));
25
- const webmap = tslib_1.__importStar(require("../webmap"));
26
- const webmappingapplication = tslib_1.__importStar(require("../webmappingapplication"));
27
- const workforce = tslib_1.__importStar(require("../workforce"));
28
- /**
29
- * Converts an item into a template.
30
- *
31
- * @param itemInfo Info about the item
32
- * @param destAuthentication Credentials for requests to the destination organization
33
- * @param srcAuthentication Credentials for requests to source items
34
- * @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
35
- *
36
- * @returns A promise that will resolve when the template has been created
37
- */
38
- function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
39
- return new Promise((resolve, reject) => {
40
- // Init template
41
- const itemTemplate = common.createInitializedItemTemplate(itemInfo);
42
- // Templatize item info property values
43
- itemTemplate.item.id = common.templatizeTerm(itemTemplate.item.id, itemTemplate.item.id, ".itemId");
44
- // Request related items
45
- const relatedPromise = common.getItemRelatedItemsInSameDirection(itemTemplate.itemId, "forward", srcAuthentication);
46
- // Perform type-specific handling
47
- let dataPromise = Promise.resolve({});
48
- let resourcesPromise = Promise.resolve([]);
49
- switch (itemInfo.type) {
50
- case "Dashboard":
51
- case "Data Pipeline":
52
- case "Feature Collection":
53
- case "Feature Service":
54
- case "Hub Initiative":
55
- case "Hub Page":
56
- case "Hub Site Application":
57
- case "Insights Model":
58
- case "Oriented Imagery Catalog":
59
- case "Project Package":
60
- case "Workforce Project":
61
- case "Web Map":
62
- case "Web Mapping Application":
63
- case "Web Scene":
64
- case "Notebook":
65
- dataPromise = new Promise(resolveJSON => {
66
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
67
- common
68
- .getItemDataAsJson(itemTemplate.itemId, srcAuthentication)
69
- .then(json => resolveJSON(json));
70
- });
71
- break;
72
- case "Form":
73
- dataPromise = common.getItemDataAsFile(itemTemplate.itemId, itemTemplate.item.name, srcAuthentication);
74
- break;
75
- case "QuickCapture Project":
76
- // Fetch all of the resources to get the config
77
- resourcesPromise = common.getItemResourcesFiles(itemTemplate.itemId, srcAuthentication);
78
- break;
79
- }
80
- // Errors are handled as resolved empty values; this means that there's no `reject` clause to handle, hence:
81
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
82
- Promise.all([dataPromise, relatedPromise, resourcesPromise]).then(responses => {
83
- const [itemDataResponse, relatedItemsResponse, resourcesResponse] = responses;
84
- // need to pre-process for velocity urls before they could be templatized by other processors
85
- itemTemplate.data = common.updateVelocityReferences(itemDataResponse, itemInfo.type, templateDictionary);
86
- const relationships = relatedItemsResponse;
87
- // Save the mappings to related items & add those items to the dependencies, but not WMA Code Attachments
88
- itemTemplate.dependencies = [];
89
- itemTemplate.relatedItems = [];
90
- relationships.forEach(relationship => {
91
- /* istanbul ignore else */
92
- if (relationship.relationshipType !== "WMA2Code") {
93
- itemTemplate.relatedItems.push(relationship);
94
- relationship.relatedItemIds.forEach(relatedItemId => {
95
- if (itemTemplate.dependencies.indexOf(relatedItemId) < 0) {
96
- itemTemplate.dependencies.push(relatedItemId);
97
- }
98
- });
99
- }
100
- });
101
- // Add Data Pipeline source and sink feature layers to dependencies
102
- if (itemInfo.type === "Data Pipeline") {
103
- itemTemplate.dependencies = itemTemplate.dependencies.concat(_getDataPipelineSourcesAndSinks(itemDataResponse));
104
- }
105
- // Create the template
106
- let templateModifyingPromise = Promise.resolve(itemTemplate);
107
- switch (itemInfo.type) {
108
- case "Dashboard":
109
- dashboard.convertItemToTemplate(itemTemplate, templateDictionary);
110
- break;
111
- case "Form":
112
- // Store the form's data in the solution resources, not in template
113
- itemTemplate.data = null;
114
- // Add the form data to the template for a post-process resource upload
115
- if (itemDataResponse) {
116
- itemTemplate.item.name = _getFormDataFilename(itemTemplate.item.name, itemDataResponse.name, `${itemTemplate.itemId}.zip`);
117
- const storageName = common.convertItemResourceToStorageResource(itemTemplate.itemId, itemTemplate.item.name, common.SolutionTemplateFormatVersion, common.SolutionResourceType.data);
118
- // Add the data file to the template so that it can be uploaded with the other resources in the solution
119
- const dataFile = {
120
- itemId: itemTemplate.itemId,
121
- file: itemDataResponse,
122
- folder: storageName.folder,
123
- filename: itemTemplate.item.name
124
- };
125
- itemTemplate.dataFile = dataFile;
126
- // Update the template's resources
127
- itemTemplate.resources.push(storageName.folder + "/" + storageName.filename);
128
- }
129
- break;
130
- case "Notebook":
131
- notebook.convertNotebookToTemplate(itemTemplate);
132
- break;
133
- case "Oriented Imagery Catalog":
134
- templateModifyingPromise = oic.convertItemToTemplate(itemTemplate, destAuthentication, srcAuthentication);
135
- break;
136
- case "QuickCapture Project":
137
- // Save all of the resources that we've fetched so as to not fetch them again
138
- itemTemplate.resources = resourcesResponse;
139
- // Get the QC config
140
- templateModifyingPromise = new Promise(
141
- // eslint-disable-next-line @typescript-eslint/no-misused-promises, no-async-promise-executor
142
- async (qcResolve) => {
143
- // Remove the qc.project.json file from the list of resources
144
- let qcProjectFile = null;
145
- let iQcProjectFile = -1;
146
- if (resourcesResponse) {
147
- resourcesResponse.some((file, i) => {
148
- const haveConfigFile = file.name === "qc.project.json";
149
- if (haveConfigFile) {
150
- qcProjectFile = file;
151
- iQcProjectFile = i;
152
- }
153
- return haveConfigFile;
154
- });
155
- // Discard the qc.project.json file
156
- if (iQcProjectFile >= 0) {
157
- resourcesResponse.splice(iQcProjectFile, 1);
158
- }
159
- }
160
- // Copy the qc.project.json file into the data section
161
- if (qcProjectFile) {
162
- itemTemplate.data = {
163
- application: {
164
- ...await common.blobToJson(qcProjectFile),
165
- },
166
- name: "qc.project.json"
167
- };
168
- }
169
- // Save the basemap dependency
170
- if (itemTemplate.data.application?.basemap?.type === "Web Map") {
171
- itemTemplate.dependencies.push(itemTemplate.data.application.basemap.itemId);
172
- }
173
- // Create the template
174
- const updatedTemplate = quickcapture.convertQuickCaptureToTemplate(itemTemplate);
175
- qcResolve(updatedTemplate);
176
- });
177
- break;
178
- case "Vector Tile Service":
179
- case "Web Map":
180
- case "Web Scene":
181
- templateModifyingPromise = webmap.convertItemToTemplate(itemTemplate, destAuthentication, srcAuthentication, templateDictionary);
182
- break;
183
- case "Web Mapping Application":
184
- if (itemDataResponse) {
185
- templateModifyingPromise = webmappingapplication.convertItemToTemplate(itemTemplate, destAuthentication, srcAuthentication, templateDictionary);
186
- }
187
- break;
188
- case "Workforce Project":
189
- templateModifyingPromise = workforce.convertItemToTemplate(itemTemplate, destAuthentication, srcAuthentication, templateDictionary);
190
- break;
191
- }
192
- templateModifyingPromise.then(resolve, err => reject(common.fail(err)));
193
- });
194
- });
195
- }
196
- exports.convertItemToTemplate = convertItemToTemplate;
197
- /**
198
- * Extracts the feature layer ids for a Data Pipeline's sources and sinks.
199
- *
200
- * @param itemData Data Pipeline's data section
201
- * @return List of feature layer ids or an empty list if there are no sources or sinks in the pipeline
202
- */
203
- function _getDataPipelineSourcesAndSinks(itemData) {
204
- const dependencies = [];
205
- const sourcesAndSinks = (itemData?.inputs ?? []).concat(itemData?.outputs ?? []);
206
- sourcesAndSinks.forEach(sourceOrSink => {
207
- if (sourceOrSink.type === "FeatureServiceSource" || sourceOrSink.type === "FeatureServiceSink") {
208
- const featureServiceId = common.getProp(sourceOrSink, "parameters.layer.value.itemId");
209
- if (featureServiceId) {
210
- dependencies.push(featureServiceId);
211
- }
212
- }
213
- });
214
- return dependencies;
215
- }
216
- exports._getDataPipelineSourcesAndSinks = _getDataPipelineSourcesAndSinks;
217
- /**
218
- * Encapsulates the rules for naming a form's data file.
219
- * Chooses the first parameter that's defined and is not the string "undefined".
220
- *
221
- * @param itemName Template's item name
222
- * @param dataFilename The data file name
223
- * @param itemIdAsName A name constructed from the template's id suffixed with ".zip"
224
- *
225
- * @return A name for the data file
226
- */
227
- function _getFormDataFilename(itemName, dataFilename, itemIdAsName) {
228
- const originalFilename = itemName || dataFilename;
229
- const filename = originalFilename && originalFilename !== "undefined"
230
- ? originalFilename
231
- : itemIdAsName;
232
- return filename;
233
- }
234
- exports._getFormDataFilename = _getFormDataFilename;
235
- //# sourceMappingURL=convert-item-to-template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"convert-item-to-template.js","sourceRoot":"","sources":["../../../src/helpers/convert-item-to-template.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH,sEAAgD;AAChD,gEAA0C;AAC1C,8DAAwC;AACxC,oDAA8B;AAC9B,sEAAgD;AAChD,0DAAoC;AACpC,wFAAkE;AAClE,gEAA0C;AAE1C;;;;;;;;;GASG;AACH,SAAgB,qBAAqB,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IACpC,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC;IAEjF,eAAe,CAAC,OAAO,CACrB,YAAY,CAAC,EAAE;QACb,IAAI,YAAY,CAAC,IAAI,KAAK,sBAAsB,IAAI,YAAY,CAAC,IAAI,KAAK,oBAAoB,EAAE;YAC9F,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,+BAA+B,CAAC,CAAA;YACtF,IAAI,gBAAgB,EAAE;gBACpB,YAAY,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;aACrC;SACF;IACH,CAAC,CACF,CAAC;IAEF,OAAO,YAAY,CAAC;AACtB,CAAC;AAlBD,0EAkBC;AAED;;;;;;;;;GASG;AACH,SAAgB,oBAAoB,CAClC,QAAgB,EAChB,YAAoB,EACpB,YAAoB;IAEpB,MAAM,gBAAgB,GAAG,QAAQ,IAAI,YAAY,CAAC;IAClD,MAAM,QAAQ,GACZ,gBAAgB,IAAI,gBAAgB,KAAK,WAAW;QAClD,CAAC,CAAC,gBAAgB;QAClB,CAAC,CAAC,YAAY,CAAC;IACnB,OAAO,QAAQ,CAAC;AAClB,CAAC;AAXD,oDAWC"}
@@ -1,154 +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.createItemFromTemplate = void 0;
19
- const tslib_1 = require("tslib");
20
- const common = tslib_1.__importStar(require("@esri/solution-common"));
21
- const notebook = tslib_1.__importStar(require("../notebook"));
22
- const webmappingapplication = tslib_1.__importStar(require("../webmappingapplication"));
23
- const workforce = tslib_1.__importStar(require("../workforce"));
24
- function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
25
- return new Promise(resolve => {
26
- // Interrupt process if progress callback returns `false`
27
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Started, 0)) {
28
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Ignored, 0);
29
- resolve(common.generateEmptyCreationResponse(template.type));
30
- }
31
- else {
32
- // Replace the templatized symbols in a copy of the template
33
- let newItemTemplate = common.cloneObject(template);
34
- newItemTemplate = common.replaceInTemplate(newItemTemplate, templateDictionary);
35
- let qcProjectFileContents;
36
- // Create the item, then update its URL with its new id
37
- // some fieldnames are used as keys for objects
38
- // when we templatize field references for web applications we first stringify the components of the
39
- // web application that could contain field references and then search for them with a regular expression.
40
- // We also need to stringify the web application when de-templatizing so it will find all of these occurrences as well.
41
- if (template.type === "Web Mapping Application" && template.data) {
42
- newItemTemplate = JSON.parse(common.replaceInTemplate(JSON.stringify(newItemTemplate), templateDictionary));
43
- }
44
- else if (template.type === "QuickCapture Project" && template.data) {
45
- // Save the data section for creating the qc.project.json later
46
- qcProjectFileContents = JSON.stringify(newItemTemplate.data.application);
47
- // Delete the data section
48
- delete newItemTemplate.data;
49
- }
50
- if (template.item.thumbnail) {
51
- newItemTemplate.item.thumbnail = template.item.thumbnail; // make sure that our File is still there
52
- }
53
- common
54
- .createItemWithData(newItemTemplate.item, newItemTemplate.data, destinationAuthentication, templateDictionary.folderId)
55
- .then(createResponse => {
56
- // Interrupt process if progress callback returns `false`
57
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Created, template.estimatedDeploymentCostFactor / 2, createResponse.id)) {
58
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
59
- common
60
- .removeItem(createResponse.id, destinationAuthentication)
61
- .then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
62
- }
63
- else {
64
- // Add the new item to the settings
65
- templateDictionary[template.itemId] = {
66
- itemId: createResponse.id,
67
- itemUrl: templateDictionary["portalBaseUrl"] + "/sharing/rest/content/items/" + createResponse.id
68
- };
69
- newItemTemplate.itemId = createResponse.id;
70
- // Set the appItemId manually to get around cases where the path was incorrectly set
71
- // in legacy deployments
72
- if (newItemTemplate.type === "Web Mapping Application" &&
73
- template.data) {
74
- common.setProp(newItemTemplate, "data.appItemId", createResponse.id);
75
- }
76
- const postProcess = common.hasUnresolvedVariables(newItemTemplate.data);
77
- // Update the template again now that we have the new item id
78
- const originalURL = newItemTemplate.item.url;
79
- newItemTemplate = common.replaceInTemplate(newItemTemplate, templateDictionary);
80
- // Update relationships
81
- let relationshipsDef = Promise.resolve([]);
82
- if (newItemTemplate.relatedItems) {
83
- // Templatize references in relationships obj
84
- const updatedRelatedItems = common.replaceInTemplate(common.templatizeIds(newItemTemplate.relatedItems), templateDictionary);
85
- // Add the relationships
86
- relationshipsDef = common.addForwardItemRelationships(newItemTemplate.itemId, updatedRelatedItems, destinationAuthentication);
87
- }
88
- // Check for extra processing for web mapping application et al.
89
- let customProcDef;
90
- if (template.type === "Web Mapping Application" &&
91
- template.data &&
92
- common.hasAnyKeyword(template, [
93
- "WAB2D",
94
- "WAB3D",
95
- "Web AppBuilder"
96
- ])) {
97
- // If this is a Web AppBuilder application, we will create a Code Attachment for downloading
98
- customProcDef = webmappingapplication.fineTuneCreatedItem(template, newItemTemplate, templateDictionary, destinationAuthentication);
99
- }
100
- else if (template.type === "Workforce Project") {
101
- customProcDef = workforce.fineTuneCreatedItem(newItemTemplate, destinationAuthentication, templateDictionary);
102
- }
103
- else if (template.type === "QuickCapture Project") {
104
- if (qcProjectFileContents) {
105
- // Generate the qc.project.json file resource from the data section after handling templatized variables
106
- const qcProjectFile = common.jsonToFile(common.replaceInTemplate(JSON.parse(qcProjectFileContents), templateDictionary), "qc.project.json");
107
- // Send the created qc.project.json file to the item
108
- customProcDef = common.addResourceFromBlob(qcProjectFile, newItemTemplate.itemId, "", qcProjectFile.name, destinationAuthentication);
109
- }
110
- }
111
- else if (template.type === "Notebook") {
112
- customProcDef = notebook.fineTuneCreatedItem(template, newItemTemplate, templateDictionary, destinationAuthentication);
113
- }
114
- else if (originalURL !== newItemTemplate.item.url) {
115
- // For web mapping applications that are not Web AppBuilder apps
116
- customProcDef = new Promise((resolve2, reject2) => {
117
- common
118
- .updateItemURL(createResponse.id, newItemTemplate.item.url, destinationAuthentication)
119
- .then(() => resolve2(), reject2);
120
- });
121
- }
122
- else {
123
- customProcDef = Promise.resolve(null);
124
- }
125
- Promise.all([relationshipsDef, customProcDef]).then(() => {
126
- // Interrupt process if progress callback returns `false`
127
- if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Finished, template.estimatedDeploymentCostFactor / 2, createResponse.id)) {
128
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
129
- common
130
- .removeItem(createResponse.id, destinationAuthentication)
131
- .then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
132
- }
133
- else {
134
- resolve({
135
- item: newItemTemplate,
136
- id: createResponse.id,
137
- type: newItemTemplate.type,
138
- postProcess: postProcess
139
- });
140
- }
141
- }, () => {
142
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
143
- resolve(common.generateEmptyCreationResponse(template.type)); // fails to deploy all resources to the item
144
- });
145
- }
146
- }, () => {
147
- itemProgressCallback(template.itemId, common.EItemProgressStatus.Failed, 0);
148
- resolve(common.generateEmptyCreationResponse(template.type)); // fails to create item
149
- });
150
- }
151
- });
152
- }
153
- exports.createItemFromTemplate = createItemFromTemplate;
154
- //# sourceMappingURL=create-item-from-template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-item-from-template.js","sourceRoot":"","sources":["../../../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CAAC;AACL,CAAC;AAnQD,wDAmQC"}
@@ -1,19 +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 { convertItemToTemplate } from "./convert-item-to-template";
17
- import { createItemFromTemplate } from "./create-item-from-template";
18
- import { updateNotebookData } from "./update-notebook-data";
19
- export { createItemFromTemplate, convertItemToTemplate, updateNotebookData };
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateNotebookData = exports.convertItemToTemplate = exports.createItemFromTemplate = void 0;
4
- /** @license
5
- * Copyright 2020 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
- const convert_item_to_template_1 = require("./convert-item-to-template");
20
- Object.defineProperty(exports, "convertItemToTemplate", { enumerable: true, get: function () { return convert_item_to_template_1.convertItemToTemplate; } });
21
- const create_item_from_template_1 = require("./create-item-from-template");
22
- Object.defineProperty(exports, "createItemFromTemplate", { enumerable: true, get: function () { return create_item_from_template_1.createItemFromTemplate; } });
23
- const update_notebook_data_1 = require("./update-notebook-data");
24
- Object.defineProperty(exports, "updateNotebookData", { enumerable: true, get: function () { return update_notebook_data_1.updateNotebookData; } });
25
- //# sourceMappingURL=notebook-helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notebook-helpers.js","sourceRoot":"","sources":["../../../src/helpers/notebook-helpers.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yEAAmE;AAKlC,sGALxB,gDAAqB,OAKwB;AAJtD,2EAAqE;AAI5D,uGAJA,kDAAsB,OAIA;AAH/B,iEAA4D;AAGJ,mGAH/C,yCAAkB,OAG+C"}
@@ -1,18 +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 { convertItemToTemplate } from "./convert-item-to-template";
17
- import { createItemFromTemplate } from "./create-item-from-template";
18
- export { createItemFromTemplate, convertItemToTemplate };
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertItemToTemplate = exports.createItemFromTemplate = void 0;
4
- /** @license
5
- * Copyright 2020 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
- const convert_item_to_template_1 = require("./convert-item-to-template");
20
- Object.defineProperty(exports, "convertItemToTemplate", { enumerable: true, get: function () { return convert_item_to_template_1.convertItemToTemplate; } });
21
- const create_item_from_template_1 = require("./create-item-from-template");
22
- Object.defineProperty(exports, "createItemFromTemplate", { enumerable: true, get: function () { return create_item_from_template_1.createItemFromTemplate; } });
23
- //# sourceMappingURL=quickcapture-helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"quickcapture-helpers.js","sourceRoot":"","sources":["../../../src/helpers/quickcapture-helpers.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yEAAmE;AAIlC,sGAJxB,gDAAqB,OAIwB;AAHtD,2EAAqE;AAG5D,uGAHA,kDAAsB,OAGA"}
@@ -1,18 +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 { convertItemToTemplate } from "./convert-item-to-template";
17
- import { createItemFromTemplate } from "./create-item-from-template";
18
- export { createItemFromTemplate, convertItemToTemplate };
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertItemToTemplate = exports.createItemFromTemplate = void 0;
4
- /** @license
5
- * Copyright 2020 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
- const convert_item_to_template_1 = require("./convert-item-to-template");
20
- Object.defineProperty(exports, "convertItemToTemplate", { enumerable: true, get: function () { return convert_item_to_template_1.convertItemToTemplate; } });
21
- const create_item_from_template_1 = require("./create-item-from-template");
22
- Object.defineProperty(exports, "createItemFromTemplate", { enumerable: true, get: function () { return create_item_from_template_1.createItemFromTemplate; } });
23
- //# sourceMappingURL=simple-type-helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"simple-type-helpers.js","sourceRoot":"","sources":["../../../src/helpers/simple-type-helpers.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yEAAmE;AAIlC,sGAJxB,gDAAqB,OAIwB;AAHtD,2EAAqE;AAG5D,uGAHA,kDAAsB,OAGA"}