@esri/solution-simple-types 1.3.10 → 1.3.13
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/dist/esm/dashboard.d.ts +12 -10
- package/dist/esm/dashboard.js +12 -10
- package/dist/esm/dashboard.js.map +1 -1
- package/dist/esm/helpers/convert-item-to-template.d.ts +1 -1
- package/dist/esm/helpers/convert-item-to-template.js +1 -1
- package/dist/esm/notebook.d.ts +3 -3
- package/dist/esm/notebook.js +3 -3
- package/dist/esm/oic.d.ts +7 -7
- package/dist/esm/oic.js +7 -7
- package/dist/esm/quickcapture.d.ts +8 -4
- package/dist/esm/quickcapture.js +8 -4
- package/dist/esm/quickcapture.js.map +1 -1
- package/dist/esm/simple-types.d.ts +2 -2
- package/dist/esm/simple-types.js +2 -2
- package/dist/esm/webmap.d.ts +12 -9
- package/dist/esm/webmap.js +13 -10
- package/dist/esm/webmap.js.map +1 -1
- package/dist/esm/webmappingapplication.d.ts +14 -5
- package/dist/esm/webmappingapplication.js +15 -5
- package/dist/esm/webmappingapplication.js.map +1 -1
- package/dist/esm/workforce.d.ts +2 -2
- package/dist/esm/workforce.js +2 -2
- package/dist/node/dashboard.d.ts +12 -10
- package/dist/node/dashboard.js +12 -10
- package/dist/node/dashboard.js.map +1 -1
- package/dist/node/helpers/convert-item-to-template.d.ts +1 -1
- package/dist/node/helpers/convert-item-to-template.js +1 -1
- package/dist/node/notebook.d.ts +3 -3
- package/dist/node/notebook.js +3 -3
- package/dist/node/oic.d.ts +7 -7
- package/dist/node/oic.js +7 -7
- package/dist/node/quickcapture.d.ts +8 -4
- package/dist/node/quickcapture.js +8 -4
- package/dist/node/quickcapture.js.map +1 -1
- package/dist/node/simple-types.d.ts +2 -2
- package/dist/node/simple-types.js +2 -2
- package/dist/node/webmap.d.ts +12 -9
- package/dist/node/webmap.js +13 -10
- package/dist/node/webmap.js.map +1 -1
- package/dist/node/webmappingapplication.d.ts +14 -5
- package/dist/node/webmappingapplication.js +15 -5
- package/dist/node/webmappingapplication.js.map +1 -1
- package/dist/node/workforce.d.ts +2 -2
- package/dist/node/workforce.js +2 -2
- package/dist/umd/dashboard.d.ts +12 -10
- package/dist/umd/helpers/convert-item-to-template.d.ts +1 -1
- package/dist/umd/notebook.d.ts +3 -3
- package/dist/umd/oic.d.ts +7 -7
- package/dist/umd/quickcapture.d.ts +8 -4
- package/dist/umd/simple-types.d.ts +2 -2
- package/dist/umd/simple-types.umd.js +65 -46
- package/dist/umd/simple-types.umd.js.map +1 -1
- package/dist/umd/simple-types.umd.min.js +2 -2
- package/dist/umd/simple-types.umd.min.js.map +1 -1
- package/dist/umd/webmap.d.ts +12 -9
- package/dist/umd/webmappingapplication.d.ts +14 -5
- package/dist/umd/workforce.d.ts +2 -2
- package/package.json +13 -12
|
@@ -23,6 +23,6 @@ import * as common from "@esri/solution-common";
|
|
|
23
23
|
* @param srcAuthentication Credentials for requests to source items
|
|
24
24
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
25
25
|
*
|
|
26
|
-
* @
|
|
26
|
+
* @returns A promise that will resolve when the template has been created
|
|
27
27
|
*/
|
|
28
28
|
export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary: any): Promise<common.IItemTemplate>;
|
|
@@ -34,7 +34,7 @@ const workforce = tslib_1.__importStar(require("../workforce"));
|
|
|
34
34
|
* @param srcAuthentication Credentials for requests to source items
|
|
35
35
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
36
36
|
*
|
|
37
|
-
* @
|
|
37
|
+
* @returns A promise that will resolve when the template has been created
|
|
38
38
|
*/
|
|
39
39
|
function convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
|
|
40
40
|
return new Promise((resolve, reject) => {
|
package/dist/node/notebook.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ import * as common from "@esri/solution-common";
|
|
|
22
22
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
23
23
|
* @param srcAuthentication Credentials for requests to source items
|
|
24
24
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
25
|
-
* @
|
|
25
|
+
* @returns A promise that will resolve when the template has been created
|
|
26
26
|
*/
|
|
27
27
|
export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary: any): Promise<common.IItemTemplate>;
|
|
28
28
|
export declare function createItemFromTemplate(template: common.IItemTemplate, templateDictionary: any, destinationAuthentication: common.UserSession, itemProgressCallback: common.IItemProgressCallback): Promise<common.ICreateItemFromTemplateResponse>;
|
|
@@ -30,7 +30,7 @@ export declare function createItemFromTemplate(template: common.IItemTemplate, t
|
|
|
30
30
|
* Converts a Python Notebook item to a template.
|
|
31
31
|
*
|
|
32
32
|
* @param itemTemplate template for the Python Notebook
|
|
33
|
-
* @
|
|
33
|
+
* @returns templatized itemTemplate
|
|
34
34
|
*/
|
|
35
35
|
export declare function convertNotebookToTemplate(itemTemplate: common.IItemTemplate): common.IItemTemplate;
|
|
36
36
|
/**
|
|
@@ -50,7 +50,7 @@ export declare function deleteProps(data: any): void;
|
|
|
50
50
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
51
51
|
* @param authentication Credentials for the requests to the destination
|
|
52
52
|
*
|
|
53
|
-
* @
|
|
53
|
+
* @returns A promise that will resolve once any updates have been made
|
|
54
54
|
*/
|
|
55
55
|
export declare function fineTuneCreatedItem(originalTemplate: common.IItemTemplate, newlyCreatedItem: common.IItemTemplate, templateDictionary: any, authentication: common.UserSession): Promise<void>;
|
|
56
56
|
/**
|
package/dist/node/notebook.js
CHANGED
|
@@ -28,7 +28,7 @@ const notebookHelpers = tslib_1.__importStar(require("./helpers/notebook-helpers
|
|
|
28
28
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
29
29
|
* @param srcAuthentication Credentials for requests to source items
|
|
30
30
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
31
|
-
* @
|
|
31
|
+
* @returns A promise that will resolve when the template has been created
|
|
32
32
|
*/
|
|
33
33
|
function convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
|
|
34
34
|
// Delegate back to simple-types, which will in-turn delegate
|
|
@@ -47,7 +47,7 @@ exports.createItemFromTemplate = createItemFromTemplate;
|
|
|
47
47
|
* Converts a Python Notebook item to a template.
|
|
48
48
|
*
|
|
49
49
|
* @param itemTemplate template for the Python Notebook
|
|
50
|
-
* @
|
|
50
|
+
* @returns templatized itemTemplate
|
|
51
51
|
*/
|
|
52
52
|
function convertNotebookToTemplate(itemTemplate) {
|
|
53
53
|
// The templates data to process
|
|
@@ -102,7 +102,7 @@ exports.deleteProps = deleteProps;
|
|
|
102
102
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
103
103
|
* @param authentication Credentials for the requests to the destination
|
|
104
104
|
*
|
|
105
|
-
* @
|
|
105
|
+
* @returns A promise that will resolve once any updates have been made
|
|
106
106
|
*/
|
|
107
107
|
function fineTuneCreatedItem(originalTemplate, newlyCreatedItem, templateDictionary, authentication) {
|
|
108
108
|
return new Promise((resolve, reject) => {
|
package/dist/node/oic.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import * as common from "@esri/solution-common";
|
|
|
20
20
|
* @param itemTemplate Template for the OIC (Oriented Imagery Catalog) item
|
|
21
21
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
22
22
|
* @param srcAuthentication Credentials for requests to source items
|
|
23
|
-
* @
|
|
23
|
+
* @returns Template for the solution item that contains key details for item reconstruction
|
|
24
24
|
*/
|
|
25
25
|
export declare function convertItemToTemplate(itemTemplate: common.IItemTemplate, destAuthentication: common.UserSession, srcAuthentication: common.UserSession): Promise<common.IItemTemplate>;
|
|
26
26
|
/**
|
|
@@ -28,8 +28,8 @@ export declare function convertItemToTemplate(itemTemplate: common.IItemTemplate
|
|
|
28
28
|
*
|
|
29
29
|
* @param itemTemplate A OIC (Oriented Imagery Catalog) item whose dependencies are sought
|
|
30
30
|
* @param authentication Credentials for any requests
|
|
31
|
-
* @
|
|
32
|
-
* @
|
|
31
|
+
* @returns List of dependencies ids and url/itemId hash
|
|
32
|
+
* @private
|
|
33
33
|
*/
|
|
34
34
|
export declare function _extractDependencies(itemTemplate: common.IItemTemplate, authentication: common.UserSession): Promise<any>;
|
|
35
35
|
/**
|
|
@@ -38,8 +38,8 @@ export declare function _extractDependencies(itemTemplate: common.IItemTemplate,
|
|
|
38
38
|
* @param layerURLs List of OIC layer URLs
|
|
39
39
|
* @param dependencies Current list of dependencies
|
|
40
40
|
* @param authentication Credentials for any requests
|
|
41
|
-
* @
|
|
42
|
-
* @
|
|
41
|
+
* @returns List of dependencies ids and url/itemId hash
|
|
42
|
+
* @private
|
|
43
43
|
*/
|
|
44
44
|
export declare function _getLayerIds(layerURLs: string[], dependencies: string[], authentication: common.UserSession): Promise<any>;
|
|
45
45
|
/**
|
|
@@ -47,7 +47,7 @@ export declare function _getLayerIds(layerURLs: string[], dependencies: string[]
|
|
|
47
47
|
*
|
|
48
48
|
* @param layerURL OIC layer URL
|
|
49
49
|
* @param urlHash Lookup object for analysis layers
|
|
50
|
-
* @
|
|
51
|
-
* @
|
|
50
|
+
* @returns Templatized URL if layerURL is in the urlHash
|
|
51
|
+
* @private
|
|
52
52
|
*/
|
|
53
53
|
export declare function _templatizeOicLayerUrl(layerURL: string, urlHash: any): string;
|
package/dist/node/oic.js
CHANGED
|
@@ -25,7 +25,7 @@ const common = tslib_1.__importStar(require("@esri/solution-common"));
|
|
|
25
25
|
* @param itemTemplate Template for the OIC (Oriented Imagery Catalog) item
|
|
26
26
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
27
27
|
* @param srcAuthentication Credentials for requests to source items
|
|
28
|
-
* @
|
|
28
|
+
* @returns Template for the solution item that contains key details for item reconstruction
|
|
29
29
|
*/
|
|
30
30
|
function convertItemToTemplate(itemTemplate, destAuthentication, srcAuthentication) {
|
|
31
31
|
return new Promise((resolve, reject) => {
|
|
@@ -48,8 +48,8 @@ exports.convertItemToTemplate = convertItemToTemplate;
|
|
|
48
48
|
*
|
|
49
49
|
* @param itemTemplate A OIC (Oriented Imagery Catalog) item whose dependencies are sought
|
|
50
50
|
* @param authentication Credentials for any requests
|
|
51
|
-
* @
|
|
52
|
-
* @
|
|
51
|
+
* @returns List of dependencies ids and url/itemId hash
|
|
52
|
+
* @private
|
|
53
53
|
*/
|
|
54
54
|
function _extractDependencies(itemTemplate, authentication) {
|
|
55
55
|
return new Promise((resolve, reject) => {
|
|
@@ -85,8 +85,8 @@ exports._extractDependencies = _extractDependencies;
|
|
|
85
85
|
* @param layerURLs List of OIC layer URLs
|
|
86
86
|
* @param dependencies Current list of dependencies
|
|
87
87
|
* @param authentication Credentials for any requests
|
|
88
|
-
* @
|
|
89
|
-
* @
|
|
88
|
+
* @returns List of dependencies ids and url/itemId hash
|
|
89
|
+
* @private
|
|
90
90
|
*/
|
|
91
91
|
function _getLayerIds(layerURLs, dependencies, authentication) {
|
|
92
92
|
return new Promise((resolve, reject) => {
|
|
@@ -151,8 +151,8 @@ exports._getLayerIds = _getLayerIds;
|
|
|
151
151
|
*
|
|
152
152
|
* @param layerURL OIC layer URL
|
|
153
153
|
* @param urlHash Lookup object for analysis layers
|
|
154
|
-
* @
|
|
155
|
-
* @
|
|
154
|
+
* @returns Templatized URL if layerURL is in the urlHash
|
|
155
|
+
* @private
|
|
156
156
|
*/
|
|
157
157
|
function _templatizeOicLayerUrl(layerURL, urlHash) {
|
|
158
158
|
let templatizedURL = layerURL;
|
|
@@ -22,14 +22,14 @@ import * as common from "@esri/solution-common";
|
|
|
22
22
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
23
23
|
* @param srcAuthentication Credentials for requests to source items
|
|
24
24
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
25
|
-
* @
|
|
25
|
+
* @returns A promise that will resolve when the template has been created
|
|
26
26
|
*/
|
|
27
27
|
export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary: any): Promise<common.IItemTemplate>;
|
|
28
28
|
/**
|
|
29
29
|
* Converts an quick capture item to a template.
|
|
30
30
|
*
|
|
31
31
|
* @param itemTemplate template for the quick capture project item
|
|
32
|
-
* @
|
|
32
|
+
* @returns templatized itemTemplate
|
|
33
33
|
*/
|
|
34
34
|
export declare function convertQuickCaptureToTemplate(itemTemplate: common.IItemTemplate): Promise<common.IItemTemplate>;
|
|
35
35
|
/**
|
|
@@ -37,13 +37,15 @@ export declare function convertQuickCaptureToTemplate(itemTemplate: common.IItem
|
|
|
37
37
|
*
|
|
38
38
|
* @param data the projects json
|
|
39
39
|
* @param itemTemplate template for the quick capture project item
|
|
40
|
-
* @
|
|
40
|
+
* @returns templatized itemTemplate
|
|
41
|
+
* @private
|
|
41
42
|
*/
|
|
42
43
|
export declare function _templatizeApplication(data: any, itemTemplate: common.IItemTemplate): any;
|
|
43
44
|
/**
|
|
44
45
|
* Templatize the email property
|
|
45
46
|
*
|
|
46
47
|
* @param data the quick capture application
|
|
48
|
+
* @private
|
|
47
49
|
*/
|
|
48
50
|
export declare function _templatizeAdminEmail(data: any): void;
|
|
49
51
|
/**
|
|
@@ -51,7 +53,7 @@ export declare function _templatizeAdminEmail(data: any): void;
|
|
|
51
53
|
*
|
|
52
54
|
* @param id the item id of the dependency
|
|
53
55
|
* @param itemTemplate template for the quick capture project item
|
|
54
|
-
* @
|
|
56
|
+
* @returns templatized itemTemplate
|
|
55
57
|
*/
|
|
56
58
|
export declare function _updateDependencies(id: string, itemTemplate: common.IItemTemplate): void;
|
|
57
59
|
/**
|
|
@@ -60,6 +62,7 @@ export declare function _updateDependencies(id: string, itemTemplate: common.IIt
|
|
|
60
62
|
* @param obj the datasource object
|
|
61
63
|
* @param idPath the path to the id property
|
|
62
64
|
* @param urlPath the path to the url property
|
|
65
|
+
* @private
|
|
63
66
|
*/
|
|
64
67
|
export declare function _templatizeUrl(obj: any, idPath: string, urlPath: string): void;
|
|
65
68
|
/**
|
|
@@ -67,6 +70,7 @@ export declare function _templatizeUrl(obj: any, idPath: string, urlPath: string
|
|
|
67
70
|
*
|
|
68
71
|
* @param obj the datasource or object that contains the item id property
|
|
69
72
|
* @param path the path to the id property
|
|
73
|
+
* @private
|
|
70
74
|
*/
|
|
71
75
|
export declare function _templatizeId(obj: any, path: string): void;
|
|
72
76
|
export declare function createItemFromTemplate(template: common.IItemTemplate, templateDictionary: any, destinationAuthentication: common.UserSession, itemProgressCallback: common.IItemProgressCallback): Promise<common.ICreateItemFromTemplateResponse>;
|
|
@@ -28,7 +28,7 @@ const quickcaptureHelpers = tslib_1.__importStar(require("./helpers/quickcapture
|
|
|
28
28
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
29
29
|
* @param srcAuthentication Credentials for requests to source items
|
|
30
30
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
31
|
-
* @
|
|
31
|
+
* @returns A promise that will resolve when the template has been created
|
|
32
32
|
*/
|
|
33
33
|
function convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
|
|
34
34
|
// Delegate back to simple-types, which will in-turn delegate
|
|
@@ -41,7 +41,7 @@ exports.convertItemToTemplate = convertItemToTemplate;
|
|
|
41
41
|
* Converts an quick capture item to a template.
|
|
42
42
|
*
|
|
43
43
|
* @param itemTemplate template for the quick capture project item
|
|
44
|
-
* @
|
|
44
|
+
* @returns templatized itemTemplate
|
|
45
45
|
*/
|
|
46
46
|
function convertQuickCaptureToTemplate(itemTemplate) {
|
|
47
47
|
return new Promise((resolve, reject) => {
|
|
@@ -79,7 +79,8 @@ exports.convertQuickCaptureToTemplate = convertQuickCaptureToTemplate;
|
|
|
79
79
|
*
|
|
80
80
|
* @param data the projects json
|
|
81
81
|
* @param itemTemplate template for the quick capture project item
|
|
82
|
-
* @
|
|
82
|
+
* @returns templatized itemTemplate
|
|
83
|
+
* @private
|
|
83
84
|
*/
|
|
84
85
|
function _templatizeApplication(data, itemTemplate) {
|
|
85
86
|
// Quick Project item id
|
|
@@ -105,6 +106,7 @@ exports._templatizeApplication = _templatizeApplication;
|
|
|
105
106
|
* Templatize the email property
|
|
106
107
|
*
|
|
107
108
|
* @param data the quick capture application
|
|
109
|
+
* @private
|
|
108
110
|
*/
|
|
109
111
|
function _templatizeAdminEmail(data) {
|
|
110
112
|
if (common.getProp(data, "preferences.adminEmail")) {
|
|
@@ -117,7 +119,7 @@ exports._templatizeAdminEmail = _templatizeAdminEmail;
|
|
|
117
119
|
*
|
|
118
120
|
* @param id the item id of the dependency
|
|
119
121
|
* @param itemTemplate template for the quick capture project item
|
|
120
|
-
* @
|
|
122
|
+
* @returns templatized itemTemplate
|
|
121
123
|
*/
|
|
122
124
|
function _updateDependencies(id, itemTemplate) {
|
|
123
125
|
if (itemTemplate.dependencies.indexOf(id) === -1) {
|
|
@@ -131,6 +133,7 @@ exports._updateDependencies = _updateDependencies;
|
|
|
131
133
|
* @param obj the datasource object
|
|
132
134
|
* @param idPath the path to the id property
|
|
133
135
|
* @param urlPath the path to the url property
|
|
136
|
+
* @private
|
|
134
137
|
*/
|
|
135
138
|
function _templatizeUrl(obj, idPath, urlPath) {
|
|
136
139
|
const id = common.getProp(obj, idPath);
|
|
@@ -146,6 +149,7 @@ exports._templatizeUrl = _templatizeUrl;
|
|
|
146
149
|
*
|
|
147
150
|
* @param obj the datasource or object that contains the item id property
|
|
148
151
|
* @param path the path to the id property
|
|
152
|
+
* @private
|
|
149
153
|
*/
|
|
150
154
|
function _templatizeId(obj, path) {
|
|
151
155
|
const id = common.getProp(obj, path);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quickcapture.js","sourceRoot":"","sources":["../../src/quickcapture.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH,sEAAgD;AAChD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CAKC;AAED,YAAY;AAEZ,kHAAkH;AAElH,gCAAgC;AAChC,oCAAoC;AACpC,SAAgB,sBAAsB,CACpC,QAA8B,EAC9B,kBAAuB,EACvB,yBAA6C,EAC7C,oBAAkD;IAElD,OAAO,mBAAmB,CAAC,sBAAsB,CAC/C,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,CACrB,CAAC;AACJ,CAAC;AAZD,wDAYC;AAED;;;;;;;;;GASG;AACH,SAAgB,WAAW,CACzB,MAAc,EACd,IAAY,EACZ,SAAgB,EAChB,QAA8B,EAC9B,SAAiC,EACjC,kBAAuB,EACvB,cAAkC;IAElC,OAAO,IAAI,OAAO,CAAM,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC1C,QAAQ,CAAC,IAAI,GAAG,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;QAC5E,MAAM;aACH,gCAAgC,CAC/B,MAAM,EACN,kBAAkB,EAClB,cAAc,CACf;aACA,IAAI,CAAC,GAAG,EAAE;YACT,MAAM;iBACH,sBAAsB,CACrB,MAAM,EACN,QAAQ,CAAC,IAAI,CAAC,IAAI,EAClB,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EACzC,cAAc,CACf;iBACA,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC3B,CAAC,EAAE,MAAM,CAAC,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;AA5BD,kCA4BC;AAED,YAAY"}
|
|
@@ -22,7 +22,7 @@ import { ICreateItemFromTemplateResponse, IDatasourceInfo, IItemProgressCallback
|
|
|
22
22
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
23
23
|
* @param srcAuthentication Credentials for requests to source items
|
|
24
24
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
25
|
-
* @
|
|
25
|
+
* @returns A promise that will resolve when the template has been created
|
|
26
26
|
*/
|
|
27
27
|
export declare function convertItemToTemplate(solutionItemId: string, itemInfo: any, destAuthentication: UserSession, srcAuthentication: UserSession, templateDictionary: any): Promise<IItemTemplate>;
|
|
28
28
|
/**
|
|
@@ -41,7 +41,7 @@ export declare function createItemFromTemplate(template: IItemTemplate, template
|
|
|
41
41
|
* @param template A solution template
|
|
42
42
|
* @param datasourceInfos A list of objects that store key datasource info used to templatizing field references
|
|
43
43
|
* @param type The item type
|
|
44
|
-
* @
|
|
44
|
+
* @returns The updated solution template
|
|
45
45
|
*/
|
|
46
46
|
export declare function postProcessFieldReferences(solutionTemplate: IItemTemplate, datasourceInfos: IDatasourceInfo[], type: string): IItemTemplate;
|
|
47
47
|
/**
|
|
@@ -36,7 +36,7 @@ const simpleTypeHelpers = tslib_1.__importStar(require("./helpers/simple-type-he
|
|
|
36
36
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
37
37
|
* @param srcAuthentication Credentials for requests to source items
|
|
38
38
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
39
|
-
* @
|
|
39
|
+
* @returns A promise that will resolve when the template has been created
|
|
40
40
|
*/
|
|
41
41
|
function convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
|
|
42
42
|
return simpleTypeHelpers.convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary);
|
|
@@ -61,7 +61,7 @@ exports.createItemFromTemplate = createItemFromTemplate;
|
|
|
61
61
|
* @param template A solution template
|
|
62
62
|
* @param datasourceInfos A list of objects that store key datasource info used to templatizing field references
|
|
63
63
|
* @param type The item type
|
|
64
|
-
* @
|
|
64
|
+
* @returns The updated solution template
|
|
65
65
|
*/
|
|
66
66
|
function postProcessFieldReferences(solutionTemplate, datasourceInfos, type) {
|
|
67
67
|
switch (type) {
|
package/dist/node/webmap.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import * as common from "@esri/solution-common";
|
|
|
20
20
|
* @param itemTemplate Template for the webmap item
|
|
21
21
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
22
22
|
* @param srcAuthentication Credentials for requests to source items
|
|
23
|
-
* @
|
|
23
|
+
* @returns Template for the solution item that contains key details for item reconstruction
|
|
24
24
|
*/
|
|
25
25
|
export declare function convertItemToTemplate(itemTemplate: common.IItemTemplate, destAuthentication: common.UserSession, srcAuthentication: common.UserSession): Promise<common.IItemTemplate>;
|
|
26
26
|
/**
|
|
@@ -28,8 +28,8 @@ export declare function convertItemToTemplate(itemTemplate: common.IItemTemplate
|
|
|
28
28
|
*
|
|
29
29
|
* @param itemTemplate A webmap item whose dependencies are sought
|
|
30
30
|
* @param authentication Credentials for any requests
|
|
31
|
-
* @
|
|
32
|
-
* @
|
|
31
|
+
* @returns List of dependencies ids and url/itemId hash
|
|
32
|
+
* @private
|
|
33
33
|
*/
|
|
34
34
|
export declare function _extractDependencies(itemTemplate: common.IItemTemplate, authentication: common.UserSession): Promise<any>;
|
|
35
35
|
/**
|
|
@@ -39,8 +39,8 @@ export declare function _extractDependencies(itemTemplate: common.IItemTemplate,
|
|
|
39
39
|
* Added for issue #662
|
|
40
40
|
*
|
|
41
41
|
* @param data the data for the web maps item template
|
|
42
|
-
* @
|
|
43
|
-
* @
|
|
42
|
+
* @returns void
|
|
43
|
+
* @private
|
|
44
44
|
*/
|
|
45
45
|
export declare function _excludeInitialState(data: any): void;
|
|
46
46
|
/**
|
|
@@ -49,8 +49,8 @@ export declare function _excludeInitialState(data: any): void;
|
|
|
49
49
|
* @param layerList List of map layers or tables
|
|
50
50
|
* @param dependencies Current list of dependencies
|
|
51
51
|
* @param authentication Credentials for any requests
|
|
52
|
-
* @
|
|
53
|
-
* @
|
|
52
|
+
* @returns List of dependencies ids and url/itemId hash
|
|
53
|
+
* @private
|
|
54
54
|
*/
|
|
55
55
|
export declare function _getLayerIds(layerList: any[], dependencies: string[], authentication: common.UserSession): Promise<any>;
|
|
56
56
|
/**
|
|
@@ -58,8 +58,8 @@ export declare function _getLayerIds(layerList: any[], dependencies: string[], a
|
|
|
58
58
|
*
|
|
59
59
|
* @param layerList List of map layers or tables
|
|
60
60
|
* @param urlHash Lookup object for analysis layers
|
|
61
|
-
* @
|
|
62
|
-
* @
|
|
61
|
+
* @returns void
|
|
62
|
+
* @private
|
|
63
63
|
*/
|
|
64
64
|
export declare function _templatizeWebmapLayerIdsAndUrls(layerList: any[], urlHash: any): void;
|
|
65
65
|
/**
|
|
@@ -76,6 +76,7 @@ export declare function postProcessFieldReferences(solutionTemplate: common.IIte
|
|
|
76
76
|
* @param solutionTemplate The solution item template
|
|
77
77
|
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
78
78
|
* @param path A string path to the object property to templatize
|
|
79
|
+
* @private
|
|
79
80
|
*/
|
|
80
81
|
export declare function _templatizeProperty(solutionTemplate: common.IItemTemplate, datasourceInfos: common.IDatasourceInfo[], path: string): void;
|
|
81
82
|
/**
|
|
@@ -84,6 +85,7 @@ export declare function _templatizeProperty(solutionTemplate: common.IItemTempla
|
|
|
84
85
|
* @param objs Can be operationalLayers or tables or appProperties search layers
|
|
85
86
|
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
86
87
|
* @returns updated instances of the objects
|
|
88
|
+
* @private
|
|
87
89
|
*/
|
|
88
90
|
export declare function _templatize(objs: any[], datasourceInfos: common.IDatasourceInfo[]): any[];
|
|
89
91
|
/**
|
|
@@ -92,5 +94,6 @@ export declare function _templatize(objs: any[], datasourceInfos: common.IDataso
|
|
|
92
94
|
* @param obj Can be operationalLayer or table or appProperties search layer
|
|
93
95
|
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
94
96
|
* @returns datasourceInfo for the given object id
|
|
97
|
+
* @private
|
|
95
98
|
*/
|
|
96
99
|
export declare function _getDatasourceInfo(obj: any, datasourceInfos: common.IDatasourceInfo[]): any;
|
package/dist/node/webmap.js
CHANGED
|
@@ -21,7 +21,7 @@ const common = tslib_1.__importStar(require("@esri/solution-common"));
|
|
|
21
21
|
/**
|
|
22
22
|
* The portion of a Webmap URL between the server and the map id.
|
|
23
23
|
*
|
|
24
|
-
* @
|
|
24
|
+
* @private
|
|
25
25
|
*/
|
|
26
26
|
const WEBMAP_APP_URL_PART = "home/webmap/viewer.html?webmap=";
|
|
27
27
|
// ------------------------------------------------------------------------------------------------------------------ //
|
|
@@ -31,7 +31,7 @@ const WEBMAP_APP_URL_PART = "home/webmap/viewer.html?webmap=";
|
|
|
31
31
|
* @param itemTemplate Template for the webmap item
|
|
32
32
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
33
33
|
* @param srcAuthentication Credentials for requests to source items
|
|
34
|
-
* @
|
|
34
|
+
* @returns Template for the solution item that contains key details for item reconstruction
|
|
35
35
|
*/
|
|
36
36
|
function convertItemToTemplate(itemTemplate, destAuthentication, srcAuthentication) {
|
|
37
37
|
return new Promise((resolve, reject) => {
|
|
@@ -60,8 +60,8 @@ exports.convertItemToTemplate = convertItemToTemplate;
|
|
|
60
60
|
*
|
|
61
61
|
* @param itemTemplate A webmap item whose dependencies are sought
|
|
62
62
|
* @param authentication Credentials for any requests
|
|
63
|
-
* @
|
|
64
|
-
* @
|
|
63
|
+
* @returns List of dependencies ids and url/itemId hash
|
|
64
|
+
* @private
|
|
65
65
|
*/
|
|
66
66
|
function _extractDependencies(itemTemplate, authentication) {
|
|
67
67
|
return new Promise((resolve, reject) => {
|
|
@@ -90,8 +90,8 @@ exports._extractDependencies = _extractDependencies;
|
|
|
90
90
|
* Added for issue #662
|
|
91
91
|
*
|
|
92
92
|
* @param data the data for the web maps item template
|
|
93
|
-
* @
|
|
94
|
-
* @
|
|
93
|
+
* @returns void
|
|
94
|
+
* @private
|
|
95
95
|
*/
|
|
96
96
|
function _excludeInitialState(data) {
|
|
97
97
|
common.deleteProp(data, "initialState");
|
|
@@ -103,8 +103,8 @@ exports._excludeInitialState = _excludeInitialState;
|
|
|
103
103
|
* @param layerList List of map layers or tables
|
|
104
104
|
* @param dependencies Current list of dependencies
|
|
105
105
|
* @param authentication Credentials for any requests
|
|
106
|
-
* @
|
|
107
|
-
* @
|
|
106
|
+
* @returns List of dependencies ids and url/itemId hash
|
|
107
|
+
* @private
|
|
108
108
|
*/
|
|
109
109
|
function _getLayerIds(layerList, dependencies, authentication) {
|
|
110
110
|
return new Promise((resolve, reject) => {
|
|
@@ -166,8 +166,8 @@ exports._getLayerIds = _getLayerIds;
|
|
|
166
166
|
*
|
|
167
167
|
* @param layerList List of map layers or tables
|
|
168
168
|
* @param urlHash Lookup object for analysis layers
|
|
169
|
-
* @
|
|
170
|
-
* @
|
|
169
|
+
* @returns void
|
|
170
|
+
* @private
|
|
171
171
|
*/
|
|
172
172
|
function _templatizeWebmapLayerIdsAndUrls(layerList = [], urlHash) {
|
|
173
173
|
layerList.forEach((layer) => {
|
|
@@ -207,6 +207,7 @@ exports.postProcessFieldReferences = postProcessFieldReferences;
|
|
|
207
207
|
* @param solutionTemplate The solution item template
|
|
208
208
|
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
209
209
|
* @param path A string path to the object property to templatize
|
|
210
|
+
* @private
|
|
210
211
|
*/
|
|
211
212
|
function _templatizeProperty(solutionTemplate, datasourceInfos, path) {
|
|
212
213
|
const objs = common.getProp(solutionTemplate, path);
|
|
@@ -221,6 +222,7 @@ exports._templatizeProperty = _templatizeProperty;
|
|
|
221
222
|
* @param objs Can be operationalLayers or tables or appProperties search layers
|
|
222
223
|
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
223
224
|
* @returns updated instances of the objects
|
|
225
|
+
* @private
|
|
224
226
|
*/
|
|
225
227
|
function _templatize(objs, datasourceInfos) {
|
|
226
228
|
objs.forEach(obj => {
|
|
@@ -249,6 +251,7 @@ exports._templatize = _templatize;
|
|
|
249
251
|
* @param obj Can be operationalLayer or table or appProperties search layer
|
|
250
252
|
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
251
253
|
* @returns datasourceInfo for the given object id
|
|
254
|
+
* @private
|
|
252
255
|
*/
|
|
253
256
|
function _getDatasourceInfo(obj, datasourceInfos) {
|
|
254
257
|
let datasourceInfo;
|
package/dist/node/webmap.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webmap.js","sourceRoot":"","sources":["../../src/webmap.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH,sEAAgD;AAEhD;;;;GAIG;AACH,MAAM,mBAAmB,GAAW,iCAAiC,CAAC;AAEtE,wHAAwH;AAExH;;;;;;;GAOG;AACH,SAAgB,qBAAqB,CACnC,YAAkC,EAClC,kBAAsC,EACtC,iBAAqC;IAErC,OAAO,IAAI,OAAO,CAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC3D,yBAAyB;QACzB,YAAY,CAAC,IAAI,CAAC,GAAG,GAAG,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC7C,MAAM,CAAC,uBAAuB,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;gBACtE,mBAAmB;gBACnB,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,iBAAiB;QAEjE,uBAAuB;QACvB,oBAAoB,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC,IAAI,CACxD,CAAC,OAAY,EAAE,EAAE;YACf,YAAY,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;YAEjD,0EAA0E;YAC1E,IAAI,YAAY,CAAC,IAAI,EAAE;gBACrB,gCAAgC,CAC9B,YAAY,CAAC,IAAI,CAAC,iBAAiB,EACnC,OAAO,CAAC,OAAO,CAChB,CAAC;gBACF,gCAAgC,CAC9B,YAAY,CAAC,IAAI,CAAC,MAAM,EACxB,OAAO,CAAC,OAAO,CAChB,CAAC;gBAEF,sBAAsB;gBACtB,oBAAoB,CAAC,YAAY,CAAC,IAAI,C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YAAY,CAAC,CAAC;YACzD,IAAI,SAAS,EAAE;gBACb,MAAM,CAAC,OAAO,CACZ,GAAG,EACH,YAAY,EACZ,MAAM,CAAC,oBAAoB,CAAC,SAAS,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CACpE,CAAC;aACH;SACF;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC;AAxCD,kCAwCC;AAED;;;;;;;GAOG;AACH,SAAgB,kBAAkB,CAChC,GAAQ,EACR,eAAyC;IAEzC,IAAI,cAAmB,CAAC;IACxB,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;QACxB,IAAI,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE;YAC/B,cAAc,GAAG,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC;SACb;aAAM;YACL,OAAO,KAAK,CAAC;SACd;IACH,CAAC,CAAC,CAAC;IACH,OAAO,cAAc,CAAC;AACxB,CAAC;AAdD,gDAcC"}
|
|
@@ -20,7 +20,7 @@ import * as common from "@esri/solution-common";
|
|
|
20
20
|
* @param itemInfo Info about the item
|
|
21
21
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
22
22
|
* @param srcAuthentication Credentials for requests to source items
|
|
23
|
-
* @
|
|
23
|
+
* @returns A promise that will resolve when the template has been created
|
|
24
24
|
*/
|
|
25
25
|
export declare function convertItemToTemplate(itemTemplate: common.IItemTemplate, destAuthentication: common.UserSession, srcAuthentication: common.UserSession): Promise<common.IItemTemplate>;
|
|
26
26
|
export declare function templatizeDatasources(itemTemplate: common.IItemTemplate, authentication: common.UserSession, portalUrl: string): Promise<common.IItemTemplate>;
|
|
@@ -50,12 +50,14 @@ export declare function fineTuneCreatedItem(originalTemplate: common.IItemTempla
|
|
|
50
50
|
* Gets the ids of the dependencies of an AGOL webapp item.
|
|
51
51
|
*
|
|
52
52
|
* @param fullItem A webapp item whose dependencies are sought
|
|
53
|
-
* @
|
|
54
|
-
* @
|
|
53
|
+
* @returns A promise that will resolve with list of dependent ids
|
|
54
|
+
* @private
|
|
55
55
|
*/
|
|
56
56
|
export declare function _extractDependencies(model: any): string[];
|
|
57
57
|
/**
|
|
58
58
|
* Generic Web App Dependencies
|
|
59
|
+
*
|
|
60
|
+
* @private
|
|
59
61
|
*/
|
|
60
62
|
export declare function _getGenericWebAppDependencies(model: any): any;
|
|
61
63
|
export declare function _getWABDependencies(model: any): string[];
|
|
@@ -64,7 +66,7 @@ export declare function _getWABDependencies(model: any): string[];
|
|
|
64
66
|
*
|
|
65
67
|
* @param itemTemplate The solution item template
|
|
66
68
|
* @param paths A list of property paths that contain ids
|
|
67
|
-
* @
|
|
69
|
+
* @private
|
|
68
70
|
*/
|
|
69
71
|
export declare function _templatizeIdPaths(itemTemplate: common.IItemTemplate, paths: string[]): void;
|
|
70
72
|
/**
|
|
@@ -73,7 +75,7 @@ export declare function _templatizeIdPaths(itemTemplate: common.IItemTemplate, p
|
|
|
73
75
|
* @param itemTemplate The solution item template
|
|
74
76
|
* @param path A path to an id property
|
|
75
77
|
* @param id The base id to use when templatizing
|
|
76
|
-
* @
|
|
78
|
+
* @private
|
|
77
79
|
*/
|
|
78
80
|
export declare function _templatizeIdPath(itemTemplate: common.IItemTemplate, path: string, id: string): void;
|
|
79
81
|
/**
|
|
@@ -90,6 +92,7 @@ export declare function postProcessFieldReferences(solutionTemplate: common.IIte
|
|
|
90
92
|
* @param obj The dataSource or widget object from the web application.
|
|
91
93
|
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
92
94
|
* @returns The dataSource with templatized field references
|
|
95
|
+
* @private
|
|
93
96
|
*/
|
|
94
97
|
export declare function _templatizeObject(obj: any, datasourceInfos: common.IDatasourceInfo[], templatizeKeys?: boolean): any;
|
|
95
98
|
/**
|
|
@@ -98,6 +101,7 @@ export declare function _templatizeObject(obj: any, datasourceInfos: common.IDat
|
|
|
98
101
|
* @param objects A list of widgets or objects from the web application that may contain field references.
|
|
99
102
|
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
100
103
|
* @returns The widgets with templatized field references
|
|
104
|
+
* @private
|
|
101
105
|
*/
|
|
102
106
|
export declare function _templatizeObjectArray(objects: any[], datasourceInfos: common.IDatasourceInfo[]): any;
|
|
103
107
|
/**
|
|
@@ -108,6 +112,7 @@ export declare function _templatizeObjectArray(objects: any[], datasourceInfos:
|
|
|
108
112
|
* @param obj The dataSource or widget object from the web application.
|
|
109
113
|
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
110
114
|
* @returns A list of datasourceInfo objects sorted based on the presence of a layers url or id
|
|
115
|
+
* @private
|
|
111
116
|
*/
|
|
112
117
|
export declare function _getReplaceOrder(obj: any, datasourceInfos: common.IDatasourceInfo[]): common.IDatasourceInfo[];
|
|
113
118
|
/**
|
|
@@ -117,6 +122,7 @@ export declare function _getReplaceOrder(obj: any, datasourceInfos: common.IData
|
|
|
117
122
|
* @param datasourceInfo The datasource object with key properties about the service.
|
|
118
123
|
* @param testString A stringified version of a widget or dataSource
|
|
119
124
|
* @returns The prioritized order for testing
|
|
125
|
+
* @private
|
|
120
126
|
*/
|
|
121
127
|
export declare function _getSortOrder(datasourceInfo: common.IDatasourceInfo, testString: string): number;
|
|
122
128
|
/**
|
|
@@ -128,6 +134,7 @@ export declare function _getSortOrder(datasourceInfo: common.IDatasourceInfo, te
|
|
|
128
134
|
* @param obj The dataSource or widget object from the application
|
|
129
135
|
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
130
136
|
* @returns An updated instance of the dataSource or widget with as many field references templatized as possible.
|
|
137
|
+
* @private
|
|
131
138
|
*/
|
|
132
139
|
export declare function _prioritizedTests(obj: any, datasourceInfos: common.IDatasourceInfo[], templatizeKeys: boolean): any;
|
|
133
140
|
/**
|
|
@@ -138,6 +145,7 @@ export declare function _prioritizedTests(obj: any, datasourceInfos: common.IDat
|
|
|
138
145
|
* @param obj The dataSource or widget object from the application
|
|
139
146
|
* @param ds A datasourceInfo object to use for testing against the current dataSource or widget
|
|
140
147
|
* @returns The updated instance of the object with as many field references templatized as possible
|
|
148
|
+
* @private
|
|
141
149
|
*/
|
|
142
150
|
export declare function _templatizeParentByURL(obj: {
|
|
143
151
|
[index: string]: any;
|
|
@@ -151,6 +159,7 @@ export declare function _templatizeParentByURL(obj: {
|
|
|
151
159
|
* @param ds A datasourceInfo object to use for testing against the current dataSource or widget
|
|
152
160
|
* @param id A webmap layer id to test with.
|
|
153
161
|
* @returns The updated instance of the object with as many field references templatized as possible
|
|
162
|
+
* @private
|
|
154
163
|
*/
|
|
155
164
|
export declare function _templatizeParentByWebMapLayerId(obj: {
|
|
156
165
|
[index: string]: any;
|