@esri/solution-simple-types 5.2.1 → 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 (61) hide show
  1. package/README.md +4 -7
  2. package/dist/esm/helpers/convert-item-to-template.d.ts +1 -2
  3. package/dist/esm/helpers/convert-item-to-template.js +24 -14
  4. package/dist/esm/helpers/convert-item-to-template.js.map +1 -1
  5. package/dist/{cjs/helpers/create-item-from-template.d.ts → esm/helpers/formHelpers.d.ts} +11 -3
  6. package/dist/esm/helpers/formHelpers.js +53 -0
  7. package/dist/esm/helpers/formHelpers.js.map +1 -0
  8. package/dist/esm/notebook.d.ts +1 -2
  9. package/dist/esm/notebook.js +2 -3
  10. package/dist/esm/notebook.js.map +1 -1
  11. package/dist/esm/quickcapture.d.ts +1 -2
  12. package/dist/esm/quickcapture.js +2 -3
  13. package/dist/esm/quickcapture.js.map +1 -1
  14. package/dist/esm/simple-types.d.ts +1 -2
  15. package/dist/esm/simple-types.js +2 -3
  16. package/dist/esm/simple-types.js.map +1 -1
  17. package/package.json +7 -7
  18. package/dist/cjs/dashboard.d.ts +0 -93
  19. package/dist/cjs/dashboard.js +0 -353
  20. package/dist/cjs/dashboard.js.map +0 -1
  21. package/dist/cjs/helpers/convert-item-to-template.d.ts +0 -46
  22. package/dist/cjs/helpers/convert-item-to-template.js +0 -236
  23. package/dist/cjs/helpers/convert-item-to-template.js.map +0 -1
  24. package/dist/cjs/helpers/create-item-from-template.js +0 -154
  25. package/dist/cjs/helpers/create-item-from-template.js.map +0 -1
  26. package/dist/cjs/helpers/notebook-helpers.d.ts +0 -19
  27. package/dist/cjs/helpers/notebook-helpers.js +0 -25
  28. package/dist/cjs/helpers/notebook-helpers.js.map +0 -1
  29. package/dist/cjs/helpers/quickcapture-helpers.d.ts +0 -18
  30. package/dist/cjs/helpers/quickcapture-helpers.js +0 -23
  31. package/dist/cjs/helpers/quickcapture-helpers.js.map +0 -1
  32. package/dist/cjs/helpers/simple-type-helpers.d.ts +0 -18
  33. package/dist/cjs/helpers/simple-type-helpers.js +0 -23
  34. package/dist/cjs/helpers/simple-type-helpers.js.map +0 -1
  35. package/dist/cjs/helpers/update-notebook-data.d.ts +0 -17
  36. package/dist/cjs/helpers/update-notebook-data.js +0 -28
  37. package/dist/cjs/helpers/update-notebook-data.js.map +0 -1
  38. package/dist/cjs/index.d.ts +0 -27
  39. package/dist/cjs/index.js +0 -37
  40. package/dist/cjs/index.js.map +0 -1
  41. package/dist/cjs/notebook.d.ts +0 -66
  42. package/dist/cjs/notebook.js +0 -134
  43. package/dist/cjs/notebook.js.map +0 -1
  44. package/dist/cjs/oic.d.ts +0 -53
  45. package/dist/cjs/oic.js +0 -171
  46. package/dist/cjs/oic.js.map +0 -1
  47. package/dist/cjs/quickcapture.d.ts +0 -76
  48. package/dist/cjs/quickcapture.js +0 -144
  49. package/dist/cjs/quickcapture.js.map +0 -1
  50. package/dist/cjs/simple-types.d.ts +0 -57
  51. package/dist/cjs/simple-types.js +0 -95
  52. package/dist/cjs/simple-types.js.map +0 -1
  53. package/dist/cjs/webmap.d.ts +0 -102
  54. package/dist/cjs/webmap.js +0 -318
  55. package/dist/cjs/webmap.js.map +0 -1
  56. package/dist/cjs/webmappingapplication.d.ts +0 -176
  57. package/dist/cjs/webmappingapplication.js +0 -675
  58. package/dist/cjs/webmappingapplication.js.map +0 -1
  59. package/dist/cjs/workforce.d.ts +0 -34
  60. package/dist/cjs/workforce.js +0 -45
  61. package/dist/cjs/workforce.js.map +0 -1
@@ -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":["../../../src/helpers/create-item-from-template.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH,sEAAgD;AAChD,8DAAwC;AACxC,wFAAkE;AAClE,gEAA0C;AAE1C,SAAgB,sBAAsB,CACpC,QAA8B,EAC9B,kBAAuB,EACvB,yBAA6C,EAC7C,oBAAkD;IAElD,OAAO,IAAI,OAAO,CAAyC,OAAO,CAAC,EAAE;QACnE,yDAAyD;QACzD,IACE,CAAC,oBAAoB,CACnB,QAAQ,CAAC,MAAM,EACf,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAClC,CAAC,CACF,EACD;YACA,oBAAoB,CAClB,QAAQ,CAAC,MAAM,EACf,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAClC,CAAC,CACF,CAAC;YACF,OAAO,CAAC,MAAM,CAAC,6BAA6B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;SAC9D;aAAM;YACL,4DAA4D;YAC5D,IAAI,eAAe,GAAyB,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YACzE,eAAe,GAAG,MAAM,CAAC,iBAAiB,CACxC,eAAe,EACf,kBAAkB,CACnB,CAAC;YAEF,IAAI,qBAA6B,CAAC;YAElC,uDAAuD;YAEvD,+CAA+C;YAC/C,oGAAoG;YACpG,0GAA0G;YAC1G,uHAAuH;YACvH,IAAI,QAAQ,CAAC,IAAI,KAAK,yBAAyB,IAAI,QAAQ,CAAC,IAAI,EAAE;gBAChE,eAAe,GAAG,IAAI,CAAC,KAAK,CAC1B,MAAM,CAAC,iBAAiB,CACtB,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,EAC/B,kBAAkB,CACnB,CACF,CAAC;aAGH;iBAAM,IAAI,QAAQ,CAAC,IAAI,KAAK,sBA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OAAO,CAAC,MAAM,CAAC,6BAA6B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,uBAAuB;YACvF,CAAC,CACF,CAAC;SACL;IACH,CAAC,CAAC,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"}
@@ -1,17 +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 { UserSession } from "@esri/solution-common";
17
- export declare function updateNotebookData(itemId: string, data: any, authentication: UserSession): Promise<any>;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateNotebookData = 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 solution_common_1 = require("@esri/solution-common");
20
- function updateNotebookData(itemId, data, authentication) {
21
- const updateOptions = {
22
- id: itemId,
23
- data: (0, solution_common_1.jsonToBlob)(data)
24
- };
25
- return (0, solution_common_1.updateItem)(updateOptions, authentication);
26
- }
27
- exports.updateNotebookData = updateNotebookData;
28
- //# sourceMappingURL=update-notebook-data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-notebook-data.js","sourceRoot":"","sources":["../../../src/helpers/update-notebook-data.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,2DAK+B;AAE/B,SAAgB,kBAAkB,CAChC,MAAc,EACd,IAAS,EACT,cAA2B;IAE3B,MAAM,aAAa,GAAgB;QACjC,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,IAAA,4BAAU,EAAC,IAAI,CAAC;KACvB,CAAC;IACF,OAAO,IAAA,4BAAU,EAAC,aAAa,EAAE,cAAc,CAAC,CAAC;AACnD,CAAC;AAVD,gDAUC"}
@@ -1,27 +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 and deployment of simple item types.
18
- *
19
- * @module simple-types
20
- */
21
- import * as simpleTypeHelpers from "./helpers/simple-type-helpers";
22
- import * as notebookHelpers from "./helpers/notebook-helpers";
23
- import * as quickcaptureHelpers from "./helpers/quickcapture-helpers";
24
- import * as simpleTypes from "./simple-types";
25
- import * as notebookProcessor from "./notebook";
26
- import * as quickcaptureProcessor from "./quickcapture";
27
- export { simpleTypes, notebookProcessor, notebookHelpers, simpleTypeHelpers, quickcaptureHelpers, quickcaptureProcessor };
package/dist/cjs/index.js DELETED
@@ -1,37 +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
- exports.quickcaptureProcessor = exports.quickcaptureHelpers = exports.simpleTypeHelpers = exports.notebookHelpers = exports.notebookProcessor = exports.simpleTypes = void 0;
19
- const tslib_1 = require("tslib");
20
- /**
21
- * Manages the creation and deployment of simple item types.
22
- *
23
- * @module simple-types
24
- */
25
- const simpleTypeHelpers = tslib_1.__importStar(require("./helpers/simple-type-helpers"));
26
- exports.simpleTypeHelpers = simpleTypeHelpers;
27
- const notebookHelpers = tslib_1.__importStar(require("./helpers/notebook-helpers"));
28
- exports.notebookHelpers = notebookHelpers;
29
- const quickcaptureHelpers = tslib_1.__importStar(require("./helpers/quickcapture-helpers"));
30
- exports.quickcaptureHelpers = quickcaptureHelpers;
31
- const simpleTypes = tslib_1.__importStar(require("./simple-types"));
32
- exports.simpleTypes = simpleTypes;
33
- const notebookProcessor = tslib_1.__importStar(require("./notebook"));
34
- exports.notebookProcessor = notebookProcessor;
35
- const quickcaptureProcessor = tslib_1.__importStar(require("./quickcapture"));
36
- exports.quickcaptureProcessor = quickcaptureProcessor;
37
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH;;;;GAIG;AACH,yFAAmE;AAWjE,8CAAiB;AAVnB,oFAA8D;AAS5D,0CAAe;AARjB,4FAAsE;AAUpE,kDAAmB;AATrB,oEAA8C;AAK5C,kCAAW;AAJb,sEAAgD;AAK9C,8CAAiB;AAJnB,8EAAwD;AAQtD,sDAAqB"}
@@ -1,66 +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 a notebook item into a template.
19
- *
20
- * @param solutionItemId The solution to contain the template
21
- * @param itemInfo Info about the item
22
- * @param destAuthentication Credentials for requests to the destination organization
23
- * @param srcAuthentication Credentials for requests to source items
24
- * @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
25
- * @returns A promise that will resolve when the template has been created
26
- */
27
- export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary: any): Promise<common.IItemTemplate>;
28
- export declare function createItemFromTemplate(template: common.IItemTemplate, templateDictionary: any, destinationAuthentication: common.UserSession, itemProgressCallback: common.IItemProgressCallback): Promise<common.ICreateItemFromTemplateResponse>;
29
- /**
30
- * Converts a Python Notebook item to a template.
31
- *
32
- * @param itemTemplate template for the Python Notebook
33
- * @returns templatized itemTemplate
34
- */
35
- export declare function convertNotebookToTemplate(itemTemplate: common.IItemTemplate): common.IItemTemplate;
36
- /**
37
- * Remove interpreter and papermill props
38
- *
39
- * This function will update the data passed in by removing key props
40
- *
41
- * @param data The notebooks data object
42
- *
43
- */
44
- export declare function deleteProps(data: any): void;
45
- /**
46
- * Update the notebooks data
47
- *
48
- * @param originalTemplate The original template item
49
- * @param newlyCreatedItem The current item that may have unswapped variables
50
- * @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
51
- * @param authentication Credentials for the requests to the destination
52
- *
53
- * @returns A promise that will resolve once any updates have been made
54
- */
55
- export declare function fineTuneCreatedItem(originalTemplate: common.IItemTemplate, newlyCreatedItem: common.IItemTemplate, templateDictionary: any, authentication: common.UserSession): Promise<void>;
56
- /**
57
- * Notebook specific post-processing actions
58
- *
59
- * @param {string} itemId The item ID
60
- * @param {string} type The template type
61
- * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
62
- * @param {any} templateDictionary The template dictionary
63
- * @param {UserSession} authentication The destination session info
64
- * @returns {Promise<any>}
65
- */
66
- export declare function postProcess(itemId: string, type: string, itemInfos: any[], template: common.IItemTemplate, templates: common.IItemTemplate[], templateDictionary: any, authentication: common.UserSession): Promise<any>;
@@ -1,134 +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.postProcess = exports.fineTuneCreatedItem = exports.deleteProps = exports.convertNotebookToTemplate = exports.createItemFromTemplate = exports.convertItemToTemplate = void 0;
19
- const tslib_1 = require("tslib");
20
- const common = tslib_1.__importStar(require("@esri/solution-common"));
21
- // Need to import collectively to enable spying
22
- const notebookHelpers = tslib_1.__importStar(require("./helpers/notebook-helpers"));
23
- /**
24
- * Converts a notebook item into a template.
25
- *
26
- * @param solutionItemId The solution to contain the template
27
- * @param itemInfo Info about the item
28
- * @param destAuthentication Credentials for requests to the destination organization
29
- * @param srcAuthentication Credentials for requests to source items
30
- * @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
31
- * @returns A promise that will resolve when the template has been created
32
- */
33
- function convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
34
- // Delegate back to simple-types, which will in-turn delegate
35
- // to convertNotebookToTemplate at the correct point in the process
36
- // This is a temporary refactor step
37
- return notebookHelpers.convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary);
38
- }
39
- exports.convertItemToTemplate = convertItemToTemplate;
40
- // Delegate back to simple-types
41
- // This is a temporary refactor step
42
- function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
43
- return notebookHelpers.createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback);
44
- }
45
- exports.createItemFromTemplate = createItemFromTemplate;
46
- /**
47
- * Converts a Python Notebook item to a template.
48
- *
49
- * @param itemTemplate template for the Python Notebook
50
- * @returns templatized itemTemplate
51
- */
52
- function convertNotebookToTemplate(itemTemplate) {
53
- // The templates data to process
54
- const data = itemTemplate.data;
55
- deleteProps(data);
56
- let dataString = JSON.stringify(data);
57
- const idTest = /[0-9A-F]{32}/gim;
58
- if (data && idTest.test(dataString)) {
59
- const ids = dataString.match(idTest);
60
- const verifiedIds = [];
61
- ids.forEach(id => {
62
- if (verifiedIds.indexOf(id) === -1) {
63
- verifiedIds.push(id);
64
- // templatize the itemId--but only once per unique id
65
- const regEx = new RegExp(id, "gm");
66
- dataString = dataString.replace(regEx, "{{" + id + ".itemId}}");
67
- // update the dependencies
68
- if (itemTemplate.dependencies.indexOf(id) === -1) {
69
- itemTemplate.dependencies.push(id);
70
- }
71
- }
72
- });
73
- itemTemplate.data = JSON.parse(dataString);
74
- }
75
- return itemTemplate;
76
- }
77
- exports.convertNotebookToTemplate = convertNotebookToTemplate;
78
- /**
79
- * Remove interpreter and papermill props
80
- *
81
- * This function will update the data passed in by removing key props
82
- *
83
- * @param data The notebooks data object
84
- *
85
- */
86
- function deleteProps(data) {
87
- /* istanbul ignore else */
88
- if (data) {
89
- const props = ["metadata.interpreter", "metadata.papermill"];
90
- common.deleteProps(data, props);
91
- (data.cells || []).forEach((cell) => {
92
- common.deleteProps(cell, props);
93
- });
94
- }
95
- }
96
- exports.deleteProps = deleteProps;
97
- /**
98
- * Update the notebooks data
99
- *
100
- * @param originalTemplate The original template item
101
- * @param newlyCreatedItem The current item that may have unswapped variables
102
- * @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
103
- * @param authentication Credentials for the requests to the destination
104
- *
105
- * @returns A promise that will resolve once any updates have been made
106
- */
107
- function fineTuneCreatedItem(originalTemplate, newlyCreatedItem, templateDictionary, authentication) {
108
- return new Promise((resolve, reject) => {
109
- const updateOptions = {
110
- id: newlyCreatedItem.itemId,
111
- url: newlyCreatedItem.item.url,
112
- data: common.jsonToFile(newlyCreatedItem.data, newlyCreatedItem.itemId + ".ipynb")
113
- };
114
- common
115
- .updateItem(updateOptions, authentication)
116
- .then(() => resolve(null), reject);
117
- });
118
- }
119
- exports.fineTuneCreatedItem = fineTuneCreatedItem;
120
- /**
121
- * Notebook specific post-processing actions
122
- *
123
- * @param {string} itemId The item ID
124
- * @param {string} type The template type
125
- * @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
126
- * @param {any} templateDictionary The template dictionary
127
- * @param {UserSession} authentication The destination session info
128
- * @returns {Promise<any>}
129
- */
130
- function postProcess(itemId, type, itemInfos, template, templates, templateDictionary, authentication) {
131
- return common.updateItemTemplateFromDictionary(itemId, templateDictionary, authentication);
132
- }
133
- exports.postProcess = postProcess;
134
- //# sourceMappingURL=notebook.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notebook.js","sourceRoot":"","sources":["../../src/notebook.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH,sEAAgD;AAChD,+CAA+C;AAC/C,oFAA8D;AAE9D;;;;;;;;;GASG;AACH,SAAgB,qBAAqB,CACnC,cAAsB,EACtB,QAAa,EACb,kBAAsC,EACtC,iBAAqC,EACrC,kBAAuB;IAEvB,6DAA6D;IAC7D,mEAAmE;IACnE,oCAAoC;IACpC,OAAO,eAAe,CAAC,qBAAqB,CAC1C,cAAc,EACd,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,CACnB,CAAC;AACJ,CAAC;AAjBD,sDAiBC;AAED,gCAAgC;AAChC,oCAAoC;AACpC,SAAgB,sBAAsB,CACpC,QAA8B,EAC9B,kBAAuB,EACvB,yBAA6C,EAC7C,oBAAkD;IAElD,OAAO,eAAe,CAAC,sBAAsB,CAC3C,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,CACrB,CAAC;AACJ,CAAC;AAZD,wDAYC;AAED;;;;;GAKG;AACH,SAAgB,yBAAyB,CACvC,YAAkC;IAElC,gCAAgC;IAChC,MAAM,IAAI,GAAQ,YAAY,CAAC,IAAI,CAAC;IACpC,WAAW,CAAC,IAAI,CAAC,CAAC;IAClB,IAAI,UAAU,GAAW,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAE9C,MAAM,MAAM,GAAW,iBAAiB,CAAC;IAEzC,IAAI,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;QACnC,MAAM,GAAG,GAAa,UAAU,CAAC,KAAK,CAAC,MAAM,CAAa,CAAC;QAC3D,MAAM,WAA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