@esri/solution-simple-types 1.3.5 → 1.3.11
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 +13 -11
- 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 +9 -9
- package/dist/node/helpers/convert-item-to-template.js.map +1 -1
- package/dist/node/helpers/create-item-from-template.js +4 -4
- package/dist/node/helpers/create-item-from-template.js.map +1 -1
- package/dist/node/index.js +6 -6
- package/dist/node/index.js.map +1 -1
- package/dist/node/notebook.d.ts +3 -3
- package/dist/node/notebook.js +5 -5
- package/dist/node/notebook.js.map +1 -1
- package/dist/node/oic.d.ts +7 -7
- package/dist/node/oic.js +8 -8
- package/dist/node/oic.js.map +1 -1
- package/dist/node/quickcapture.d.ts +8 -4
- package/dist/node/quickcapture.js +10 -6
- package/dist/node/quickcapture.js.map +1 -1
- package/dist/node/simple-types.d.ts +2 -2
- package/dist/node/simple-types.js +6 -6
- package/dist/node/simple-types.js.map +1 -1
- package/dist/node/webmap.d.ts +12 -9
- package/dist/node/webmap.js +14 -11
- package/dist/node/webmap.js.map +1 -1
- package/dist/node/webmappingapplication.d.ts +14 -5
- package/dist/node/webmappingapplication.js +16 -6
- package/dist/node/webmappingapplication.js.map +1 -1
- package/dist/node/workforce.d.ts +2 -2
- package/dist/node/workforce.js +3 -3
- package/dist/node/workforce.js.map +1 -1
- 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
package/dist/esm/dashboard.d.ts
CHANGED
|
@@ -18,15 +18,16 @@ import * as common from "@esri/solution-common";
|
|
|
18
18
|
* Converts a dashboard item to a template.
|
|
19
19
|
*
|
|
20
20
|
* @param itemTemplate Template for the dashboard item
|
|
21
|
-
* @
|
|
21
|
+
* @returns templatized itemTemplate
|
|
22
22
|
*/
|
|
23
23
|
export declare function convertItemToTemplate(itemTemplate: common.IItemTemplate): common.IItemTemplate;
|
|
24
24
|
/**
|
|
25
25
|
* Templatizes all itemIds and updates the dependency array
|
|
26
26
|
*
|
|
27
27
|
* @param itemTemplate Template for the dashboard item
|
|
28
|
-
* @
|
|
29
|
-
* @
|
|
28
|
+
* @returns The updated itemTemplate
|
|
29
|
+
* @private
|
|
30
|
+
* @private
|
|
30
31
|
*/
|
|
31
32
|
export declare function _extractDependencies(itemTemplate: common.IItemTemplate): common.IItemTemplate;
|
|
32
33
|
/**
|
|
@@ -34,6 +35,7 @@ export declare function _extractDependencies(itemTemplate: common.IItemTemplate)
|
|
|
34
35
|
*
|
|
35
36
|
* @param obj A widget, selector, or urlParameter that contains a datasets collection
|
|
36
37
|
* @param itemTemplate Template for the dashboard item
|
|
38
|
+
* @private
|
|
37
39
|
*/
|
|
38
40
|
export declare function _getDatasourceDependencies(obj: any, itemTemplate: common.IItemTemplate): void;
|
|
39
41
|
/**
|
|
@@ -49,7 +51,7 @@ export declare function postProcessFieldReferences(solutionTemplate: common.IIte
|
|
|
49
51
|
*
|
|
50
52
|
* @param objs Thes can be widgets, selectors, or urlParameters
|
|
51
53
|
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
52
|
-
* @
|
|
54
|
+
* @private
|
|
53
55
|
*/
|
|
54
56
|
export declare function _updateDatasourceReferences(objs: any, datasourceInfos: common.IDatasourceInfo[]): void;
|
|
55
57
|
/**
|
|
@@ -58,7 +60,7 @@ export declare function _updateDatasourceReferences(objs: any, datasourceInfos:
|
|
|
58
60
|
* @param itemTemplate Template for the dashboard item
|
|
59
61
|
* @param path A property path to an array of objects that could contain datasets or events
|
|
60
62
|
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
61
|
-
* @
|
|
63
|
+
* @private
|
|
62
64
|
*/
|
|
63
65
|
export declare function _templatize(itemTemplate: common.IItemTemplate, path: string, datasourceInfos: common.IDatasourceInfo[]): void;
|
|
64
66
|
/**
|
|
@@ -66,8 +68,8 @@ export declare function _templatize(itemTemplate: common.IItemTemplate, path: st
|
|
|
66
68
|
*
|
|
67
69
|
* @param objs A list of objects that can contain field references
|
|
68
70
|
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
69
|
-
* @
|
|
70
|
-
* @
|
|
71
|
+
* @returns An updated list of objects with templatized field references
|
|
72
|
+
* @private
|
|
71
73
|
*/
|
|
72
74
|
export declare function _templatizeByDatasource(objs: any[], datasourceInfos: common.IDatasourceInfo[]): any;
|
|
73
75
|
/**
|
|
@@ -75,8 +77,8 @@ export declare function _templatizeByDatasource(objs: any[], datasourceInfos: co
|
|
|
75
77
|
*
|
|
76
78
|
* @param obj Can be a Dataset or an event
|
|
77
79
|
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
78
|
-
* @
|
|
79
|
-
* @
|
|
80
|
+
* @returns The supporting datasource info for the given object
|
|
81
|
+
* @private
|
|
80
82
|
*/
|
|
81
83
|
export declare function _getDatasourceInfo(obj: any, datasourceInfos: common.IDatasourceInfo[]): any;
|
|
82
84
|
/**
|
|
@@ -84,6 +86,6 @@ export declare function _getDatasourceInfo(obj: any, datasourceInfos: common.IDa
|
|
|
84
86
|
*
|
|
85
87
|
* @param ds The datasource info to add the reference to
|
|
86
88
|
* @param id The id from dashboard object, commonly another widget
|
|
87
|
-
* @
|
|
89
|
+
* @private
|
|
88
90
|
*/
|
|
89
91
|
export declare function _updateReferences(ds: common.IDatasourceInfo, id: string): void;
|
package/dist/esm/dashboard.js
CHANGED
|
@@ -18,7 +18,7 @@ import * as common from "@esri/solution-common";
|
|
|
18
18
|
* Converts a dashboard item to a template.
|
|
19
19
|
*
|
|
20
20
|
* @param itemTemplate Template for the dashboard item
|
|
21
|
-
* @
|
|
21
|
+
* @returns templatized itemTemplate
|
|
22
22
|
*/
|
|
23
23
|
export function convertItemToTemplate(itemTemplate) {
|
|
24
24
|
return _extractDependencies(itemTemplate);
|
|
@@ -27,8 +27,9 @@ export function convertItemToTemplate(itemTemplate) {
|
|
|
27
27
|
* Templatizes all itemIds and updates the dependency array
|
|
28
28
|
*
|
|
29
29
|
* @param itemTemplate Template for the dashboard item
|
|
30
|
-
* @
|
|
31
|
-
* @
|
|
30
|
+
* @returns The updated itemTemplate
|
|
31
|
+
* @private
|
|
32
|
+
* @private
|
|
32
33
|
*/
|
|
33
34
|
export function _extractDependencies(itemTemplate) {
|
|
34
35
|
// get dependencies from any
|
|
@@ -64,6 +65,7 @@ export function _extractDependencies(itemTemplate) {
|
|
|
64
65
|
*
|
|
65
66
|
* @param obj A widget, selector, or urlParameter that contains a datasets collection
|
|
66
67
|
* @param itemTemplate Template for the dashboard item
|
|
68
|
+
* @private
|
|
67
69
|
*/
|
|
68
70
|
export function _getDatasourceDependencies(obj, itemTemplate) {
|
|
69
71
|
obj.datasets.forEach((dataset) => {
|
|
@@ -113,7 +115,7 @@ export function postProcessFieldReferences(solutionTemplate, datasourceInfos) {
|
|
|
113
115
|
*
|
|
114
116
|
* @param objs Thes can be widgets, selectors, or urlParameters
|
|
115
117
|
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
116
|
-
* @
|
|
118
|
+
* @private
|
|
117
119
|
*/
|
|
118
120
|
export function _updateDatasourceReferences(objs, datasourceInfos) {
|
|
119
121
|
// objects can be events or widgets
|
|
@@ -164,7 +166,7 @@ export function _updateDatasourceReferences(objs, datasourceInfos) {
|
|
|
164
166
|
* @param itemTemplate Template for the dashboard item
|
|
165
167
|
* @param path A property path to an array of objects that could contain datasets or events
|
|
166
168
|
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
167
|
-
* @
|
|
169
|
+
* @private
|
|
168
170
|
*/
|
|
169
171
|
export function _templatize(itemTemplate, path, datasourceInfos) {
|
|
170
172
|
const obj = common.getProp(itemTemplate, path);
|
|
@@ -178,8 +180,8 @@ export function _templatize(itemTemplate, path, datasourceInfos) {
|
|
|
178
180
|
*
|
|
179
181
|
* @param objs A list of objects that can contain field references
|
|
180
182
|
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
181
|
-
* @
|
|
182
|
-
* @
|
|
183
|
+
* @returns An updated list of objects with templatized field references
|
|
184
|
+
* @private
|
|
183
185
|
*/
|
|
184
186
|
export function _templatizeByDatasource(objs, datasourceInfos) {
|
|
185
187
|
if (Array.isArray(objs)) {
|
|
@@ -252,8 +254,8 @@ export function _templatizeByDatasource(objs, datasourceInfos) {
|
|
|
252
254
|
*
|
|
253
255
|
* @param obj Can be a Dataset or an event
|
|
254
256
|
* @param datasourceInfos A list of objects that contain key details about the datasources from the application
|
|
255
|
-
* @
|
|
256
|
-
* @
|
|
257
|
+
* @returns The supporting datasource info for the given object
|
|
258
|
+
* @private
|
|
257
259
|
*/
|
|
258
260
|
export function _getDatasourceInfo(obj, datasourceInfos) {
|
|
259
261
|
let info;
|
|
@@ -297,7 +299,7 @@ export function _getDatasourceInfo(obj, datasourceInfos) {
|
|
|
297
299
|
*
|
|
298
300
|
* @param ds The datasource info to add the reference to
|
|
299
301
|
* @param id The id from dashboard object, commonly another widget
|
|
300
|
-
* @
|
|
302
|
+
* @private
|
|
301
303
|
*/
|
|
302
304
|
export function _updateReferences(ds, id) {
|
|
303
305
|
ds.references = Array.isArray(ds.references) ? ds.references : [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../src/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AA2DhD;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CACnC,YAAkC;IAElC,OAAO,oBAAoB,CAAC,YAAY,CAAC,CAAC;AAC5C,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../src/dashboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AA2DhD;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CACnC,YAAkC;IAElC,OAAO,oBAAoB,CAAC,YAAY,CAAC,CAAC;AAC5C,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAClC,YAAkC;IAElC,4BAA4B;IAC5B,MAAM,WAAW,GAAa;QAC5B,cAAc;QACd,4BAA4B;QAC5B,0BAA0B;QAC1B,oBAAoB;KAC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AAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,IAAI,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE;QACjC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KACxB;AACH,CAAC"}
|
|
@@ -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>;
|
|
@@ -30,7 +30,7 @@ import * as workforce from "../workforce";
|
|
|
30
30
|
* @param srcAuthentication Credentials for requests to source items
|
|
31
31
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
32
32
|
*
|
|
33
|
-
* @
|
|
33
|
+
* @returns A promise that will resolve when the template has been created
|
|
34
34
|
*/
|
|
35
35
|
export function convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
|
|
36
36
|
return new Promise((resolve, reject) => {
|
package/dist/esm/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/esm/notebook.js
CHANGED
|
@@ -24,7 +24,7 @@ import * as notebookHelpers from "./helpers/notebook-helpers";
|
|
|
24
24
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
25
25
|
* @param srcAuthentication Credentials for requests to source items
|
|
26
26
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
27
|
-
* @
|
|
27
|
+
* @returns A promise that will resolve when the template has been created
|
|
28
28
|
*/
|
|
29
29
|
export function convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
|
|
30
30
|
// Delegate back to simple-types, which will in-turn delegate
|
|
@@ -41,7 +41,7 @@ export function createItemFromTemplate(template, templateDictionary, destination
|
|
|
41
41
|
* Converts a Python Notebook item to a template.
|
|
42
42
|
*
|
|
43
43
|
* @param itemTemplate template for the Python Notebook
|
|
44
|
-
* @
|
|
44
|
+
* @returns templatized itemTemplate
|
|
45
45
|
*/
|
|
46
46
|
export function convertNotebookToTemplate(itemTemplate) {
|
|
47
47
|
// The templates data to process
|
|
@@ -94,7 +94,7 @@ export function deleteProps(data) {
|
|
|
94
94
|
* @param templateDictionary Hash of facts: org URL, adlib replacements, deferreds for dependencies
|
|
95
95
|
* @param authentication Credentials for the requests to the destination
|
|
96
96
|
*
|
|
97
|
-
* @
|
|
97
|
+
* @returns A promise that will resolve once any updates have been made
|
|
98
98
|
*/
|
|
99
99
|
export function fineTuneCreatedItem(originalTemplate, newlyCreatedItem, templateDictionary, authentication) {
|
|
100
100
|
return new Promise((resolve, reject) => {
|
package/dist/esm/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/esm/oic.js
CHANGED
|
@@ -21,7 +21,7 @@ import * as common from "@esri/solution-common";
|
|
|
21
21
|
* @param itemTemplate Template for the OIC (Oriented Imagery Catalog) item
|
|
22
22
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
23
23
|
* @param srcAuthentication Credentials for requests to source items
|
|
24
|
-
* @
|
|
24
|
+
* @returns Template for the solution item that contains key details for item reconstruction
|
|
25
25
|
*/
|
|
26
26
|
export function convertItemToTemplate(itemTemplate, destAuthentication, srcAuthentication) {
|
|
27
27
|
return new Promise((resolve, reject) => {
|
|
@@ -43,8 +43,8 @@ export function convertItemToTemplate(itemTemplate, destAuthentication, srcAuthe
|
|
|
43
43
|
*
|
|
44
44
|
* @param itemTemplate A OIC (Oriented Imagery Catalog) item whose dependencies are sought
|
|
45
45
|
* @param authentication Credentials for any requests
|
|
46
|
-
* @
|
|
47
|
-
* @
|
|
46
|
+
* @returns List of dependencies ids and url/itemId hash
|
|
47
|
+
* @private
|
|
48
48
|
*/
|
|
49
49
|
export function _extractDependencies(itemTemplate, authentication) {
|
|
50
50
|
return new Promise((resolve, reject) => {
|
|
@@ -79,8 +79,8 @@ export function _extractDependencies(itemTemplate, authentication) {
|
|
|
79
79
|
* @param layerURLs List of OIC layer URLs
|
|
80
80
|
* @param dependencies Current list of dependencies
|
|
81
81
|
* @param authentication Credentials for any requests
|
|
82
|
-
* @
|
|
83
|
-
* @
|
|
82
|
+
* @returns List of dependencies ids and url/itemId hash
|
|
83
|
+
* @private
|
|
84
84
|
*/
|
|
85
85
|
export function _getLayerIds(layerURLs, dependencies, authentication) {
|
|
86
86
|
return new Promise((resolve, reject) => {
|
|
@@ -144,8 +144,8 @@ export function _getLayerIds(layerURLs, dependencies, authentication) {
|
|
|
144
144
|
*
|
|
145
145
|
* @param layerURL OIC layer URL
|
|
146
146
|
* @param urlHash Lookup object for analysis layers
|
|
147
|
-
* @
|
|
148
|
-
* @
|
|
147
|
+
* @returns Templatized URL if layerURL is in the urlHash
|
|
148
|
+
* @private
|
|
149
149
|
*/
|
|
150
150
|
export function _templatizeOicLayerUrl(layerURL, urlHash) {
|
|
151
151
|
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>;
|
package/dist/esm/quickcapture.js
CHANGED
|
@@ -24,7 +24,7 @@ import * as quickcaptureHelpers from "./helpers/quickcapture-helpers";
|
|
|
24
24
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
25
25
|
* @param srcAuthentication Credentials for requests to source items
|
|
26
26
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
27
|
-
* @
|
|
27
|
+
* @returns A promise that will resolve when the template has been created
|
|
28
28
|
*/
|
|
29
29
|
export function convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
|
|
30
30
|
// Delegate back to simple-types, which will in-turn delegate
|
|
@@ -36,7 +36,7 @@ export function convertItemToTemplate(solutionItemId, itemInfo, destAuthenticati
|
|
|
36
36
|
* Converts an quick capture item to a template.
|
|
37
37
|
*
|
|
38
38
|
* @param itemTemplate template for the quick capture project item
|
|
39
|
-
* @
|
|
39
|
+
* @returns templatized itemTemplate
|
|
40
40
|
*/
|
|
41
41
|
export function convertQuickCaptureToTemplate(itemTemplate) {
|
|
42
42
|
return new Promise((resolve, reject) => {
|
|
@@ -73,7 +73,8 @@ export function convertQuickCaptureToTemplate(itemTemplate) {
|
|
|
73
73
|
*
|
|
74
74
|
* @param data the projects json
|
|
75
75
|
* @param itemTemplate template for the quick capture project item
|
|
76
|
-
* @
|
|
76
|
+
* @returns templatized itemTemplate
|
|
77
|
+
* @private
|
|
77
78
|
*/
|
|
78
79
|
export function _templatizeApplication(data, itemTemplate) {
|
|
79
80
|
// Quick Project item id
|
|
@@ -98,6 +99,7 @@ export function _templatizeApplication(data, itemTemplate) {
|
|
|
98
99
|
* Templatize the email property
|
|
99
100
|
*
|
|
100
101
|
* @param data the quick capture application
|
|
102
|
+
* @private
|
|
101
103
|
*/
|
|
102
104
|
export function _templatizeAdminEmail(data) {
|
|
103
105
|
if (common.getProp(data, "preferences.adminEmail")) {
|
|
@@ -109,7 +111,7 @@ export function _templatizeAdminEmail(data) {
|
|
|
109
111
|
*
|
|
110
112
|
* @param id the item id of the dependency
|
|
111
113
|
* @param itemTemplate template for the quick capture project item
|
|
112
|
-
* @
|
|
114
|
+
* @returns templatized itemTemplate
|
|
113
115
|
*/
|
|
114
116
|
export function _updateDependencies(id, itemTemplate) {
|
|
115
117
|
if (itemTemplate.dependencies.indexOf(id) === -1) {
|
|
@@ -122,6 +124,7 @@ export function _updateDependencies(id, itemTemplate) {
|
|
|
122
124
|
* @param obj the datasource object
|
|
123
125
|
* @param idPath the path to the id property
|
|
124
126
|
* @param urlPath the path to the url property
|
|
127
|
+
* @private
|
|
125
128
|
*/
|
|
126
129
|
export function _templatizeUrl(obj, idPath, urlPath) {
|
|
127
130
|
const id = common.getProp(obj, idPath);
|
|
@@ -136,6 +139,7 @@ export function _templatizeUrl(obj, idPath, urlPath) {
|
|
|
136
139
|
*
|
|
137
140
|
* @param obj the datasource or object that contains the item id property
|
|
138
141
|
* @param path the path to the id property
|
|
142
|
+
* @private
|
|
139
143
|
*/
|
|
140
144
|
export function _templatizeId(obj, path) {
|
|
141
145
|
const id = common.getProp(obj, path);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quickcapture.js","sourceRoot":"","sources":["../../src/quickcapture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,mBAAmB,MAAM,gCAAgC,CAAC;AAEtE,mHAAmH;AAEnH;;;;;;;;;GASG;AACH,MAAM,UAAU,qBAAqB,CACnC,cAAsB,EACtB,QAAa,EACb,kBAAsC,EACtC,iBAAqC,EACrC,kBAAuB;IAEvB,6DAA6D;IAC7D,mEAAmE;IAC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kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,CACrB,CAAC;AACJ,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,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;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
|
/**
|
package/dist/esm/simple-types.js
CHANGED
|
@@ -32,7 +32,7 @@ import * as simpleTypeHelpers from "./helpers/simple-type-helpers";
|
|
|
32
32
|
* @param destAuthentication Credentials for requests to the destination organization
|
|
33
33
|
* @param srcAuthentication Credentials for requests to source items
|
|
34
34
|
* @param templateDictionary Hash of facts: folder id, org URL, adlib replacements
|
|
35
|
-
* @
|
|
35
|
+
* @returns A promise that will resolve when the template has been created
|
|
36
36
|
*/
|
|
37
37
|
export function convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary) {
|
|
38
38
|
return simpleTypeHelpers.convertItemToTemplate(solutionItemId, itemInfo, destAuthentication, srcAuthentication, templateDictionary);
|
|
@@ -55,7 +55,7 @@ export function createItemFromTemplate(template, templateDictionary, destination
|
|
|
55
55
|
* @param template A solution template
|
|
56
56
|
* @param datasourceInfos A list of objects that store key datasource info used to templatizing field references
|
|
57
57
|
* @param type The item type
|
|
58
|
-
* @
|
|
58
|
+
* @returns The updated solution template
|
|
59
59
|
*/
|
|
60
60
|
export function postProcessFieldReferences(solutionTemplate, datasourceInfos, type) {
|
|
61
61
|
switch (type) {
|
package/dist/esm/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;
|