@esri/solution-simple-types 4.1.2 → 5.0.0
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/cjs/dashboard.d.ts +93 -93
- package/dist/cjs/dashboard.js +352 -352
- package/dist/cjs/helpers/convert-item-to-template.d.ts +46 -46
- package/dist/cjs/helpers/convert-item-to-template.js +235 -209
- package/dist/cjs/helpers/convert-item-to-template.js.map +1 -1
- package/dist/cjs/helpers/create-item-from-template.d.ts +17 -17
- package/dist/cjs/helpers/create-item-from-template.js +153 -138
- package/dist/cjs/helpers/create-item-from-template.js.map +1 -1
- package/dist/cjs/helpers/notebook-helpers.d.ts +19 -19
- package/dist/cjs/helpers/notebook-helpers.js +24 -24
- package/dist/cjs/helpers/quickcapture-helpers.d.ts +18 -18
- package/dist/cjs/helpers/quickcapture-helpers.js +22 -22
- package/dist/cjs/helpers/simple-type-helpers.d.ts +18 -18
- package/dist/cjs/helpers/simple-type-helpers.js +22 -22
- package/dist/cjs/helpers/update-notebook-data.d.ts +17 -17
- package/dist/cjs/helpers/update-notebook-data.js +27 -27
- package/dist/cjs/index.d.ts +27 -27
- package/dist/cjs/index.js +36 -36
- package/dist/cjs/notebook.d.ts +66 -66
- package/dist/cjs/notebook.js +133 -133
- package/dist/cjs/oic.d.ts +53 -53
- package/dist/cjs/oic.js +170 -170
- package/dist/cjs/quickcapture.d.ts +76 -87
- package/dist/cjs/quickcapture.js +143 -192
- package/dist/cjs/quickcapture.js.map +1 -1
- package/dist/cjs/simple-types.d.ts +57 -57
- package/dist/cjs/simple-types.js +94 -94
- package/dist/cjs/webmap.d.ts +102 -102
- package/dist/cjs/webmap.js +325 -325
- package/dist/cjs/webmappingapplication.d.ts +176 -176
- package/dist/cjs/webmappingapplication.js +674 -674
- package/dist/cjs/webmappingapplication.js.map +1 -1
- package/dist/cjs/workforce.d.ts +34 -34
- package/dist/cjs/workforce.js +44 -44
- package/dist/esm/dashboard.d.ts +93 -93
- package/dist/esm/dashboard.js +339 -339
- package/dist/esm/helpers/convert-item-to-template.d.ts +46 -46
- package/dist/esm/helpers/convert-item-to-template.js +228 -202
- package/dist/esm/helpers/convert-item-to-template.js.map +1 -1
- package/dist/esm/helpers/create-item-from-template.d.ts +17 -17
- package/dist/esm/helpers/create-item-from-template.js +148 -133
- package/dist/esm/helpers/create-item-from-template.js.map +1 -1
- package/dist/esm/helpers/notebook-helpers.d.ts +19 -19
- package/dist/esm/helpers/notebook-helpers.js +20 -20
- package/dist/esm/helpers/quickcapture-helpers.d.ts +18 -18
- package/dist/esm/helpers/quickcapture-helpers.js +19 -19
- package/dist/esm/helpers/simple-type-helpers.d.ts +18 -18
- package/dist/esm/helpers/simple-type-helpers.js +19 -19
- package/dist/esm/helpers/update-notebook-data.d.ts +17 -17
- package/dist/esm/helpers/update-notebook-data.js +23 -23
- package/dist/esm/index.d.ts +27 -27
- package/dist/esm/index.js +27 -27
- package/dist/esm/notebook.d.ts +66 -66
- package/dist/esm/notebook.js +123 -123
- package/dist/esm/oic.d.ts +53 -53
- package/dist/esm/oic.js +162 -162
- package/dist/esm/quickcapture.d.ts +76 -87
- package/dist/esm/quickcapture.js +131 -179
- package/dist/esm/quickcapture.js.map +1 -1
- package/dist/esm/simple-types.d.ts +57 -57
- package/dist/esm/simple-types.js +86 -86
- package/dist/esm/webmap.d.ts +102 -102
- package/dist/esm/webmap.js +312 -312
- package/dist/esm/webmappingapplication.d.ts +176 -176
- package/dist/esm/webmappingapplication.js +648 -648
- package/dist/esm/webmappingapplication.js.map +1 -1
- package/dist/esm/workforce.d.ts +34 -34
- package/dist/esm/workforce.js +38 -38
- package/package.json +6 -6
package/dist/cjs/simple-types.js
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
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.postProcess = exports.postProcessFieldReferences = exports.createItemFromTemplate = exports.convertItemToTemplate = 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 dashboard = tslib_1.__importStar(require("./dashboard"));
|
|
26
|
-
const webmap = tslib_1.__importStar(require("./webmap"));
|
|
27
|
-
const webmappingapplication = tslib_1.__importStar(require("./webmappingapplication"));
|
|
28
|
-
const solution_common_1 = require("@esri/solution-common");
|
|
29
|
-
// Need to import collectively to enable spying
|
|
30
|
-
const simpleTypeHelpers = tslib_1.__importStar(require("./helpers/simple-type-helpers"));
|
|
31
|
-
/**
|
|
32
|
-
* Converts an item into a template.
|
|
33
|
-
*
|
|
34
|
-
* @param solutionItemId The solution to contain the template
|
|
35
|
-
* @param itemInfo Info about the item
|
|
36
|
-
* @param destAuthentication Credentials for requests to the destination organization
|
|
37
|
-
* @param srcAuthentication Credentials for requests to source items
|
|
38
|
-
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
39
|
-
* @returns A promise that will resolve when the template has been created
|
|
40
|
-
*/
|
|
41
|
-
function convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
|
|
42
|
-
return simpleTypeHelpers.convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary);
|
|
43
|
-
}
|
|
44
|
-
exports.convertItemToTemplate = convertItemToTemplate;
|
|
45
|
-
/**
|
|
46
|
-
* Delegate to simpleType creator
|
|
47
|
-
*
|
|
48
|
-
* @param template
|
|
49
|
-
* @param templateDictionary
|
|
50
|
-
* @param destinationAuthentication
|
|
51
|
-
* @param itemProgressCallback
|
|
52
|
-
*/
|
|
53
|
-
function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
|
|
54
|
-
return simpleTypeHelpers.createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback);
|
|
55
|
-
}
|
|
56
|
-
exports.createItemFromTemplate = createItemFromTemplate;
|
|
57
|
-
/**
|
|
58
|
-
* Templatizes field references within specific template types.
|
|
59
|
-
* Currently only handles web mapping applications
|
|
60
|
-
*
|
|
61
|
-
* @param template A solution template
|
|
62
|
-
* @param datasourceInfos A list of objects that store key datasource info used to templatizing field references
|
|
63
|
-
* @param type The item type
|
|
64
|
-
* @returns The updated solution template
|
|
65
|
-
*/
|
|
66
|
-
function postProcessFieldReferences(solutionTemplate, datasourceInfos, type) {
|
|
67
|
-
switch (type) {
|
|
68
|
-
case "Web Mapping Application":
|
|
69
|
-
webmappingapplication.postProcessFieldReferences(solutionTemplate, datasourceInfos);
|
|
70
|
-
break;
|
|
71
|
-
case "Dashboard":
|
|
72
|
-
dashboard.postProcessFieldReferences(solutionTemplate, datasourceInfos);
|
|
73
|
-
break;
|
|
74
|
-
case "Web Map":
|
|
75
|
-
webmap.postProcessFieldReferences(solutionTemplate, datasourceInfos);
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
return solutionTemplate;
|
|
79
|
-
}
|
|
80
|
-
exports.postProcessFieldReferences = postProcessFieldReferences;
|
|
81
|
-
/**
|
|
82
|
-
* Simple Type post-processing actions
|
|
83
|
-
*
|
|
84
|
-
* @param {string} itemId The item ID
|
|
85
|
-
* @param {string} type The template type
|
|
86
|
-
* @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
|
|
87
|
-
* @param {any} templateDictionary The template dictionary
|
|
88
|
-
* @param {UserSession} authentication The destination session info
|
|
89
|
-
* @returns Promise resolving to successfulness of update
|
|
90
|
-
*/
|
|
91
|
-
function postProcess(itemId, type, itemInfos, template, templates, templateDictionary, authentication) {
|
|
92
|
-
return (0, solution_common_1.updateItemTemplateFromDictionary)(itemId, templateDictionary, authentication);
|
|
93
|
-
}
|
|
94
|
-
exports.postProcess = postProcess;
|
|
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.postProcess = exports.postProcessFieldReferences = exports.createItemFromTemplate = exports.convertItemToTemplate = 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 dashboard = tslib_1.__importStar(require("./dashboard"));
|
|
26
|
+
const webmap = tslib_1.__importStar(require("./webmap"));
|
|
27
|
+
const webmappingapplication = tslib_1.__importStar(require("./webmappingapplication"));
|
|
28
|
+
const solution_common_1 = require("@esri/solution-common");
|
|
29
|
+
// Need to import collectively to enable spying
|
|
30
|
+
const simpleTypeHelpers = tslib_1.__importStar(require("./helpers/simple-type-helpers"));
|
|
31
|
+
/**
|
|
32
|
+
* Converts an item into a template.
|
|
33
|
+
*
|
|
34
|
+
* @param solutionItemId The solution to contain the template
|
|
35
|
+
* @param itemInfo Info about the item
|
|
36
|
+
* @param destAuthentication Credentials for requests to the destination organization
|
|
37
|
+
* @param srcAuthentication Credentials for requests to source items
|
|
38
|
+
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
39
|
+
* @returns A promise that will resolve when the template has been created
|
|
40
|
+
*/
|
|
41
|
+
function convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
|
|
42
|
+
return simpleTypeHelpers.convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary);
|
|
43
|
+
}
|
|
44
|
+
exports.convertItemToTemplate = convertItemToTemplate;
|
|
45
|
+
/**
|
|
46
|
+
* Delegate to simpleType creator
|
|
47
|
+
*
|
|
48
|
+
* @param template
|
|
49
|
+
* @param templateDictionary
|
|
50
|
+
* @param destinationAuthentication
|
|
51
|
+
* @param itemProgressCallback
|
|
52
|
+
*/
|
|
53
|
+
function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
|
|
54
|
+
return simpleTypeHelpers.createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback);
|
|
55
|
+
}
|
|
56
|
+
exports.createItemFromTemplate = createItemFromTemplate;
|
|
57
|
+
/**
|
|
58
|
+
* Templatizes field references within specific template types.
|
|
59
|
+
* Currently only handles web mapping applications
|
|
60
|
+
*
|
|
61
|
+
* @param template A solution template
|
|
62
|
+
* @param datasourceInfos A list of objects that store key datasource info used to templatizing field references
|
|
63
|
+
* @param type The item type
|
|
64
|
+
* @returns The updated solution template
|
|
65
|
+
*/
|
|
66
|
+
function postProcessFieldReferences(solutionTemplate, datasourceInfos, type) {
|
|
67
|
+
switch (type) {
|
|
68
|
+
case "Web Mapping Application":
|
|
69
|
+
webmappingapplication.postProcessFieldReferences(solutionTemplate, datasourceInfos);
|
|
70
|
+
break;
|
|
71
|
+
case "Dashboard":
|
|
72
|
+
dashboard.postProcessFieldReferences(solutionTemplate, datasourceInfos);
|
|
73
|
+
break;
|
|
74
|
+
case "Web Map":
|
|
75
|
+
webmap.postProcessFieldReferences(solutionTemplate, datasourceInfos);
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
return solutionTemplate;
|
|
79
|
+
}
|
|
80
|
+
exports.postProcessFieldReferences = postProcessFieldReferences;
|
|
81
|
+
/**
|
|
82
|
+
* Simple Type post-processing actions
|
|
83
|
+
*
|
|
84
|
+
* @param {string} itemId The item ID
|
|
85
|
+
* @param {string} type The template type
|
|
86
|
+
* @param {any[]} itemInfos Array of \{id: 'ef3', type: 'Web Map'\} objects
|
|
87
|
+
* @param {any} templateDictionary The template dictionary
|
|
88
|
+
* @param {UserSession} authentication The destination session info
|
|
89
|
+
* @returns Promise resolving to successfulness of update
|
|
90
|
+
*/
|
|
91
|
+
function postProcess(itemId, type, itemInfos, template, templates, templateDictionary, authentication) {
|
|
92
|
+
return (0, solution_common_1.updateItemTemplateFromDictionary)(itemId, templateDictionary, authentication);
|
|
93
|
+
}
|
|
94
|
+
exports.postProcess = postProcess;
|
|
95
95
|
//# sourceMappingURL=simple-types.js.map
|
package/dist/cjs/webmap.d.ts
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
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
|
-
import * as common from "@esri/solution-common";
|
|
17
|
-
/**
|
|
18
|
-
* Converts an AGOL webmap item to a template.
|
|
19
|
-
*
|
|
20
|
-
* @param itemTemplate Template for the webmap 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 key details used for variable replacement
|
|
24
|
-
* @returns Template for the solution item that contains key details for item reconstruction
|
|
25
|
-
*/
|
|
26
|
-
export declare function convertItemToTemplate(itemTemplate: common.IItemTemplate, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary: any): Promise<common.IItemTemplate>;
|
|
27
|
-
/**
|
|
28
|
-
* Gets the ids of the dependencies of an AGOL webmap item.
|
|
29
|
-
*
|
|
30
|
-
* @param itemTemplate A webmap item whose dependencies are sought
|
|
31
|
-
* @param authentication Credentials for any requests
|
|
32
|
-
* @returns List of dependencies ids and url/itemId hash
|
|
33
|
-
* @private
|
|
34
|
-
*/
|
|
35
|
-
export declare function _extractDependencies(itemTemplate: common.IItemTemplate, authentication: common.UserSession): Promise<common.IWebmapDependencies>;
|
|
36
|
-
/**
|
|
37
|
-
* Remove the initialState prop from webmaps saved from the new map viewer.
|
|
38
|
-
* This allows the map to use the item extent property that we templatize.
|
|
39
|
-
*
|
|
40
|
-
* Added for issue #662
|
|
41
|
-
*
|
|
42
|
-
* @param data the data for the web maps item template
|
|
43
|
-
* @returns void
|
|
44
|
-
* @private
|
|
45
|
-
*/
|
|
46
|
-
export declare function _excludeInitialState(data: any): void;
|
|
47
|
-
/**
|
|
48
|
-
* Extracts the AGOL itemId for each layer or table object in a list using the url.
|
|
49
|
-
*
|
|
50
|
-
* @param layerList List of map layers or tables; supported vector tile layers have their styleUrls templatized
|
|
51
|
-
* @param dependencies Current list of dependencies
|
|
52
|
-
* @param authentication Credentials for any requests
|
|
53
|
-
* @returns Updated list of dependencies ids, url/itemId hash (for feature layers),
|
|
54
|
-
* and id/styleUrl hash (for vector tile layers)
|
|
55
|
-
* @private
|
|
56
|
-
*/
|
|
57
|
-
export declare function _getLayerIds(layerList: any[], dependencies: string[], authentication: common.UserSession): Promise<common.IWebmapDependencies>;
|
|
58
|
-
/**
|
|
59
|
-
* Templatizes the url and item id for layers or tables within the webmap.
|
|
60
|
-
*
|
|
61
|
-
* @param layerList List of map layers or tables
|
|
62
|
-
* @param urlHash Lookup object for analysis layers; hash from URL to AGO item id
|
|
63
|
-
* @param templateDictionary Hash of key details used for variable replacement
|
|
64
|
-
* @returns void
|
|
65
|
-
* @private
|
|
66
|
-
*/
|
|
67
|
-
export declare function _templatizeWebmapLayerIdsAndUrls(layerList: any[], urlHash: common.IKeyedStrings, templateDictionary: any): void;
|
|
68
|
-
/**
|
|
69
|
-
* Templatize field references.
|
|
70
|
-
*
|
|
71
|
-
* @param solutionTemplate The solution item template
|
|
72
|
-
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
73
|
-
* @returns The solutionTemplate with templatized field references
|
|
74
|
-
*/
|
|
75
|
-
export declare function postProcessFieldReferences(solutionTemplate: common.IItemTemplate, datasourceInfos: common.IDatasourceInfo[]): common.IItemTemplate;
|
|
76
|
-
/**
|
|
77
|
-
* Templatize field references.
|
|
78
|
-
*
|
|
79
|
-
* @param solutionTemplate The solution item template
|
|
80
|
-
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
81
|
-
* @param path A string path to the object property to templatize
|
|
82
|
-
* @private
|
|
83
|
-
*/
|
|
84
|
-
export declare function _templatizeProperty(solutionTemplate: common.IItemTemplate, datasourceInfos: common.IDatasourceInfo[], path: string): void;
|
|
85
|
-
/**
|
|
86
|
-
* Templatize field references.
|
|
87
|
-
*
|
|
88
|
-
* @param objs Can be operationalLayers or tables or appProperties search layers
|
|
89
|
-
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
90
|
-
* @returns updated instances of the objects
|
|
91
|
-
* @private
|
|
92
|
-
*/
|
|
93
|
-
export declare function _templatize(objs: any[], datasourceInfos: common.IDatasourceInfo[]): any[];
|
|
94
|
-
/**
|
|
95
|
-
* Get datasourceInfo by map layer id
|
|
96
|
-
*
|
|
97
|
-
* @param obj Can be operationalLayer or table or appProperties search layer
|
|
98
|
-
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
99
|
-
* @returns datasourceInfo for the given object id
|
|
100
|
-
* @private
|
|
101
|
-
*/
|
|
102
|
-
export declare function _getDatasourceInfo(obj: any, datasourceInfos: common.IDatasourceInfo[]): any;
|
|
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
|
+
import * as common from "@esri/solution-common";
|
|
17
|
+
/**
|
|
18
|
+
* Converts an AGOL webmap item to a template.
|
|
19
|
+
*
|
|
20
|
+
* @param itemTemplate Template for the webmap 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 key details used for variable replacement
|
|
24
|
+
* @returns Template for the solution item that contains key details for item reconstruction
|
|
25
|
+
*/
|
|
26
|
+
export declare function convertItemToTemplate(itemTemplate: common.IItemTemplate, destAuthentication: common.UserSession, srcAuthentication: common.UserSession, templateDictionary: any): Promise<common.IItemTemplate>;
|
|
27
|
+
/**
|
|
28
|
+
* Gets the ids of the dependencies of an AGOL webmap item.
|
|
29
|
+
*
|
|
30
|
+
* @param itemTemplate A webmap item whose dependencies are sought
|
|
31
|
+
* @param authentication Credentials for any requests
|
|
32
|
+
* @returns List of dependencies ids and url/itemId hash
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
export declare function _extractDependencies(itemTemplate: common.IItemTemplate, authentication: common.UserSession): Promise<common.IWebmapDependencies>;
|
|
36
|
+
/**
|
|
37
|
+
* Remove the initialState prop from webmaps saved from the new map viewer.
|
|
38
|
+
* This allows the map to use the item extent property that we templatize.
|
|
39
|
+
*
|
|
40
|
+
* Added for issue #662
|
|
41
|
+
*
|
|
42
|
+
* @param data the data for the web maps item template
|
|
43
|
+
* @returns void
|
|
44
|
+
* @private
|
|
45
|
+
*/
|
|
46
|
+
export declare function _excludeInitialState(data: any): void;
|
|
47
|
+
/**
|
|
48
|
+
* Extracts the AGOL itemId for each layer or table object in a list using the url.
|
|
49
|
+
*
|
|
50
|
+
* @param layerList List of map layers or tables; supported vector tile layers have their styleUrls templatized
|
|
51
|
+
* @param dependencies Current list of dependencies
|
|
52
|
+
* @param authentication Credentials for any requests
|
|
53
|
+
* @returns Updated list of dependencies ids, url/itemId hash (for feature layers),
|
|
54
|
+
* and id/styleUrl hash (for vector tile layers)
|
|
55
|
+
* @private
|
|
56
|
+
*/
|
|
57
|
+
export declare function _getLayerIds(layerList: any[], dependencies: string[], authentication: common.UserSession): Promise<common.IWebmapDependencies>;
|
|
58
|
+
/**
|
|
59
|
+
* Templatizes the url and item id for layers or tables within the webmap.
|
|
60
|
+
*
|
|
61
|
+
* @param layerList List of map layers or tables
|
|
62
|
+
* @param urlHash Lookup object for analysis layers; hash from URL to AGO item id
|
|
63
|
+
* @param templateDictionary Hash of key details used for variable replacement
|
|
64
|
+
* @returns void
|
|
65
|
+
* @private
|
|
66
|
+
*/
|
|
67
|
+
export declare function _templatizeWebmapLayerIdsAndUrls(layerList: any[], urlHash: common.IKeyedStrings, templateDictionary: any): void;
|
|
68
|
+
/**
|
|
69
|
+
* Templatize field references.
|
|
70
|
+
*
|
|
71
|
+
* @param solutionTemplate The solution item template
|
|
72
|
+
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
73
|
+
* @returns The solutionTemplate with templatized field references
|
|
74
|
+
*/
|
|
75
|
+
export declare function postProcessFieldReferences(solutionTemplate: common.IItemTemplate, datasourceInfos: common.IDatasourceInfo[]): common.IItemTemplate;
|
|
76
|
+
/**
|
|
77
|
+
* Templatize field references.
|
|
78
|
+
*
|
|
79
|
+
* @param solutionTemplate The solution item template
|
|
80
|
+
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
81
|
+
* @param path A string path to the object property to templatize
|
|
82
|
+
* @private
|
|
83
|
+
*/
|
|
84
|
+
export declare function _templatizeProperty(solutionTemplate: common.IItemTemplate, datasourceInfos: common.IDatasourceInfo[], path: string): void;
|
|
85
|
+
/**
|
|
86
|
+
* Templatize field references.
|
|
87
|
+
*
|
|
88
|
+
* @param objs Can be operationalLayers or tables or appProperties search layers
|
|
89
|
+
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
90
|
+
* @returns updated instances of the objects
|
|
91
|
+
* @private
|
|
92
|
+
*/
|
|
93
|
+
export declare function _templatize(objs: any[], datasourceInfos: common.IDatasourceInfo[]): any[];
|
|
94
|
+
/**
|
|
95
|
+
* Get datasourceInfo by map layer id
|
|
96
|
+
*
|
|
97
|
+
* @param obj Can be operationalLayer or table or appProperties search layer
|
|
98
|
+
* @param datasourceInfos A list of datasource info objects that contain key values to templatize field references
|
|
99
|
+
* @returns datasourceInfo for the given object id
|
|
100
|
+
* @private
|
|
101
|
+
*/
|
|
102
|
+
export declare function _getDatasourceInfo(obj: any, datasourceInfos: common.IDatasourceInfo[]): any;
|