@esri/solution-creator 1.3.10 → 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/createItemTemplate.d.ts +15 -9
- package/dist/esm/createItemTemplate.js +15 -9
- package/dist/esm/createItemTemplate.js.map +1 -1
- package/dist/esm/creator.d.ts +12 -12
- package/dist/esm/creator.js +12 -12
- package/dist/esm/helpers/add-content-to-solution.d.ts +9 -9
- package/dist/esm/helpers/add-content-to-solution.js +9 -9
- package/dist/node/createItemTemplate.d.ts +15 -9
- package/dist/node/createItemTemplate.js +15 -9
- package/dist/node/createItemTemplate.js.map +1 -1
- package/dist/node/creator.d.ts +12 -12
- package/dist/node/creator.js +12 -12
- package/dist/node/helpers/add-content-to-solution.d.ts +9 -9
- package/dist/node/helpers/add-content-to-solution.js +9 -9
- package/dist/umd/createItemTemplate.d.ts +15 -9
- package/dist/umd/creator.d.ts +12 -12
- package/dist/umd/creator.umd.js +38 -32
- package/dist/umd/creator.umd.js.map +1 -1
- package/dist/umd/creator.umd.min.js +2 -2
- package/dist/umd/creator.umd.min.js.map +1 -1
- package/dist/umd/helpers/add-content-to-solution.d.ts +9 -9
- package/package.json +24 -23
|
@@ -28,8 +28,8 @@ import { IDatasourceInfo, IItemProgressCallback, IItemTemplate, ISourceFile, Use
|
|
|
28
28
|
* @param srcAuthentication Credentials for requests to source items
|
|
29
29
|
* @param destAuthentication Authentication for requesting information from AGO about items to be included in solution item
|
|
30
30
|
* @param existingTemplates A collection of AGO item templates that can be referenced by newly-created templates
|
|
31
|
-
* @
|
|
32
|
-
* @
|
|
31
|
+
* @returns A promise which resolves with an array of resources for the item and its dependencies
|
|
32
|
+
* @private
|
|
33
33
|
*/
|
|
34
34
|
export declare function createItemTemplate(solutionItemId: string, itemId: string, templateDictionary: any, srcAuthentication: UserSession, destAuthentication: UserSession, existingTemplates: IItemTemplate[], itemProgressCallback: IItemProgressCallback): Promise<ISourceFile[]>;
|
|
35
35
|
/**
|
|
@@ -37,14 +37,15 @@ export declare function createItemTemplate(solutionItemId: string, itemId: strin
|
|
|
37
37
|
* Currently only handles web applications
|
|
38
38
|
*
|
|
39
39
|
* @param templates List of solution templates
|
|
40
|
-
* @
|
|
40
|
+
* @returns A list of templates that have templatized field references
|
|
41
41
|
*/
|
|
42
42
|
export declare function postProcessFieldReferences(templates: IItemTemplate[]): IItemTemplate[];
|
|
43
43
|
/**
|
|
44
44
|
* Get common properties that will support the templatization of field references
|
|
45
45
|
*
|
|
46
46
|
* @param templates List of solution templates
|
|
47
|
-
* @
|
|
47
|
+
* @returns A list of IDataSourceInfo objects with key properties
|
|
48
|
+
* @private
|
|
48
49
|
*/
|
|
49
50
|
export declare function _getDatasourceInfos(templates: IItemTemplate[]): IDatasourceInfo[];
|
|
50
51
|
/**
|
|
@@ -52,7 +53,8 @@ export declare function _getDatasourceInfos(templates: IItemTemplate[]): IDataso
|
|
|
52
53
|
* and associated web map layer ids based on itemId
|
|
53
54
|
*
|
|
54
55
|
* @param templates List of solution templates
|
|
55
|
-
* @
|
|
56
|
+
* @returns The lookup object with type, dependencies, and webmap layer info
|
|
57
|
+
* @private
|
|
56
58
|
*/
|
|
57
59
|
export declare function _getTemplateTypeHash(templates: IItemTemplate[]): any;
|
|
58
60
|
/**
|
|
@@ -60,7 +62,8 @@ export declare function _getTemplateTypeHash(templates: IItemTemplate[]): any;
|
|
|
60
62
|
* so we can know the id used within a map for a given feature service
|
|
61
63
|
*
|
|
62
64
|
* @param template A webmap solution template
|
|
63
|
-
* @
|
|
65
|
+
* @returns The lookup object with webmap layer info added
|
|
66
|
+
* @private
|
|
64
67
|
*/
|
|
65
68
|
export declare function _updateWebMapHashInfo(template: IItemTemplate, hashItem: any): void;
|
|
66
69
|
/**
|
|
@@ -68,7 +71,8 @@ export declare function _updateWebMapHashInfo(template: IItemTemplate, hashItem:
|
|
|
68
71
|
*
|
|
69
72
|
* @param dataSourceUrl Templatized datasource URL
|
|
70
73
|
* @param layerId Layer id
|
|
71
|
-
* @
|
|
74
|
+
* @returns string Amended datasource URL
|
|
75
|
+
* @private
|
|
72
76
|
*/
|
|
73
77
|
export declare function _addLayerIdToDatasourceUrl(datasourceUrl?: string, layerId?: any): string;
|
|
74
78
|
/**
|
|
@@ -77,7 +81,8 @@ export declare function _addLayerIdToDatasourceUrl(datasourceUrl?: string, layer
|
|
|
77
81
|
*
|
|
78
82
|
* @param datasourceInfos A webmap solution template
|
|
79
83
|
* @param templateTypeHash A simple lookup object populated with key item info
|
|
80
|
-
* @
|
|
84
|
+
* @returns The updated datasource infos
|
|
85
|
+
* @private
|
|
81
86
|
*/
|
|
82
87
|
export declare function _addMapLayerIds(datasourceInfos: IDatasourceInfo[], templateTypeHash: any): IDatasourceInfo[];
|
|
83
88
|
/**
|
|
@@ -86,6 +91,7 @@ export declare function _addMapLayerIds(datasourceInfos: IDatasourceInfo[], temp
|
|
|
86
91
|
*
|
|
87
92
|
* @param template A webmap solution template
|
|
88
93
|
* @param templateTypeHash A simple lookup object populated with key item info
|
|
89
|
-
* @
|
|
94
|
+
* @returns A lsit of feature service item IDs
|
|
95
|
+
* @private
|
|
90
96
|
*/
|
|
91
97
|
export declare function _getWebMapFSDependencies(template: IItemTemplate, templateTypeHash: any): string[];
|
|
@@ -31,8 +31,8 @@ import { moduleMap, UNSUPPORTED } from "./module-map";
|
|
|
31
31
|
* @param srcAuthentication Credentials for requests to source items
|
|
32
32
|
* @param destAuthentication Authentication for requesting information from AGO about items to be included in solution item
|
|
33
33
|
* @param existingTemplates A collection of AGO item templates that can be referenced by newly-created templates
|
|
34
|
-
* @
|
|
35
|
-
* @
|
|
34
|
+
* @returns A promise which resolves with an array of resources for the item and its dependencies
|
|
35
|
+
* @private
|
|
36
36
|
*/
|
|
37
37
|
export function createItemTemplate(solutionItemId, itemId, templateDictionary, srcAuthentication, destAuthentication, existingTemplates, itemProgressCallback) {
|
|
38
38
|
return new Promise(resolve => {
|
|
@@ -173,7 +173,7 @@ export function createItemTemplate(solutionItemId, itemId, templateDictionary, s
|
|
|
173
173
|
* Currently only handles web applications
|
|
174
174
|
*
|
|
175
175
|
* @param templates List of solution templates
|
|
176
|
-
* @
|
|
176
|
+
* @returns A list of templates that have templatized field references
|
|
177
177
|
*/
|
|
178
178
|
export function postProcessFieldReferences(templates) {
|
|
179
179
|
const datasourceInfos = _getDatasourceInfos(templates);
|
|
@@ -207,7 +207,8 @@ export function postProcessFieldReferences(templates) {
|
|
|
207
207
|
* Get common properties that will support the templatization of field references
|
|
208
208
|
*
|
|
209
209
|
* @param templates List of solution templates
|
|
210
|
-
* @
|
|
210
|
+
* @returns A list of IDataSourceInfo objects with key properties
|
|
211
|
+
* @private
|
|
211
212
|
*/
|
|
212
213
|
export function _getDatasourceInfos(templates) {
|
|
213
214
|
const datasourceInfos = [];
|
|
@@ -240,7 +241,8 @@ export function _getDatasourceInfos(templates) {
|
|
|
240
241
|
* and associated web map layer ids based on itemId
|
|
241
242
|
*
|
|
242
243
|
* @param templates List of solution templates
|
|
243
|
-
* @
|
|
244
|
+
* @returns The lookup object with type, dependencies, and webmap layer info
|
|
245
|
+
* @private
|
|
244
246
|
*/
|
|
245
247
|
export function _getTemplateTypeHash(templates) {
|
|
246
248
|
const templateTypeHash = {};
|
|
@@ -260,7 +262,8 @@ export function _getTemplateTypeHash(templates) {
|
|
|
260
262
|
* so we can know the id used within a map for a given feature service
|
|
261
263
|
*
|
|
262
264
|
* @param template A webmap solution template
|
|
263
|
-
* @
|
|
265
|
+
* @returns The lookup object with webmap layer info added
|
|
266
|
+
* @private
|
|
264
267
|
*/
|
|
265
268
|
export function _updateWebMapHashInfo(template, hashItem) {
|
|
266
269
|
const operationalLayers = getProp(template, "data.operationalLayers") || [];
|
|
@@ -291,7 +294,8 @@ export function _updateWebMapHashInfo(template, hashItem) {
|
|
|
291
294
|
*
|
|
292
295
|
* @param dataSourceUrl Templatized datasource URL
|
|
293
296
|
* @param layerId Layer id
|
|
294
|
-
* @
|
|
297
|
+
* @returns string Amended datasource URL
|
|
298
|
+
* @private
|
|
295
299
|
*/
|
|
296
300
|
export function _addLayerIdToDatasourceUrl(datasourceUrl, layerId) {
|
|
297
301
|
return datasourceUrl && !isNaN(layerId)
|
|
@@ -304,7 +308,8 @@ export function _addLayerIdToDatasourceUrl(datasourceUrl, layerId) {
|
|
|
304
308
|
*
|
|
305
309
|
* @param datasourceInfos A webmap solution template
|
|
306
310
|
* @param templateTypeHash A simple lookup object populated with key item info
|
|
307
|
-
* @
|
|
311
|
+
* @returns The updated datasource infos
|
|
312
|
+
* @private
|
|
308
313
|
*/
|
|
309
314
|
export function _addMapLayerIds(datasourceInfos, templateTypeHash) {
|
|
310
315
|
const webMapIds = Object.keys(templateTypeHash).filter(k => {
|
|
@@ -333,7 +338,8 @@ export function _addMapLayerIds(datasourceInfos, templateTypeHash) {
|
|
|
333
338
|
*
|
|
334
339
|
* @param template A webmap solution template
|
|
335
340
|
* @param templateTypeHash A simple lookup object populated with key item info
|
|
336
|
-
* @
|
|
341
|
+
* @returns A lsit of feature service item IDs
|
|
342
|
+
* @private
|
|
337
343
|
*/
|
|
338
344
|
export function _getWebMapFSDependencies(template, templateTypeHash) {
|
|
339
345
|
const webMapFSDependencies = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createItemTemplate.js","sourceRoot":"","sources":["../../src/createItemTemplate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AAEH,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,aAAa,EAOb,8BAA8B,EAC9B,qBAAqB,EACrB,eAAe,EACf,4BAA4B,EAC5B,IAAI,EAEL,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,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AAM,YAAY,GAAa,oBAAoB,CAAC,MAAM,CACxD,QAAQ,CAAC,YAAY,CACtB,CAAC;gBACF,IAAI,oBAAoB,GAAsB,eAAe,CAAC,MAAM,CAClE,EAAE,CAAC,EAAE;oBACH,IAAI,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;wBACxC,OAAO,EAAE,CAAC;qBACX;gBACH,CAAC,CACF,CAAC;gBACF,oBAAoB,GAAG,eAAe,CACpC,oBAAoB,EACpB,gBAAgB,CACjB,CAAC;gBACF,IAAI,oBAAoB,CAAC,MAAM,GAAG,CAAC,EAAE;oBACnC,QAAQ,GAAG,WAAW,CAAC,0BAA0B,CAC/C,QAAQ,EACR,oBAAoB,EACpB,QAAQ,CAAC,IAAI,CAAC,IAAI,CACnB,CAAC;iBACH;aACF;SACF;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,wHAAwH;AAExH
|
|
1
|
+
{"version":3,"file":"createItemTemplate.js","sourceRoot":"","sources":["../../src/createItemTemplate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AAEH,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,aAAa,EAOb,8BAA8B,EAC9B,qBAAqB,EACrB,eAAe,EACf,4BAA4B,EAC5B,IAAI,EAEL,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEtD,wHAAwH;AAExH;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,kBAAkB,CAChC,cAAsB,EACtB,MAAc,EACd,kBAAuB,EACvB,iBAA8B,EAC9B,kBAA+B,EAC/B,iBAAkC,EAClC,oBAA2C;I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AAE,EAAE;gBAClE,MAAM,WAAW,GAAQ,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;gBAC5C,MAAM,GAAG,GAAW,0BAA0B,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;gBACnE,IACE,WAAW;oBACX,GAAG,KAAK,WAAW,CAAC,GAAG;oBACvB,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,CAAC,EAClC;oBACA,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;iBAC7B;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,OAAO,EAAE,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,wBAAwB,CACtC,QAAuB,EACvB,gBAAqB;IAErB,MAAM,oBAAoB,GAAa,EAAE,CAAC;IAC1C,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QAClC,MAAM,MAAM,GAAQ,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAC1C,IAAI,MAAM,CAAC,IAAI,KAAK,SAAS,EAAE;YAC7B,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,gBAAwB,EAAE,EAAE;gBACvD,0BAA0B;gBAC1B,IAAI,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,IAAI,KAAK,iBAAiB,EAAE;oBACjE,oBAAoB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;iBAC7C;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,CAAC,CAAC;IACH,OAAO,oBAAoB,CAAC;AAC9B,CAAC"}
|
package/dist/esm/creator.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ import { IModel } from "@esri/hub-common";
|
|
|
27
27
|
* @param srcAuthentication Credentials for requests to source items
|
|
28
28
|
* @param destAuthentication Credentials for the requests to destination solution
|
|
29
29
|
* @param options Customizations for creating the solution
|
|
30
|
-
* @
|
|
30
|
+
* @returns A promise that resolves with the AGO id of the new solution
|
|
31
31
|
*/
|
|
32
32
|
export declare function createSolution(sourceId: string, srcAuthentication: UserSession, destAuthentication: UserSession, options?: ICreateSolutionOptions): Promise<string>;
|
|
33
33
|
/**
|
|
@@ -37,7 +37,7 @@ export declare function createSolution(sourceId: string, srcAuthentication: User
|
|
|
37
37
|
* @param sourceInfo
|
|
38
38
|
* @param authentication
|
|
39
39
|
* @param isGroup Boolean to indicate if the files are associated with a group or item
|
|
40
|
-
* @
|
|
40
|
+
* @private
|
|
41
41
|
*/
|
|
42
42
|
export declare function _applySourceToCreateOptions(createOptions: ICreateSolutionOptions, sourceInfo: IGroup | IItem, srcAuthentication: UserSession, isGroup?: boolean): ICreateSolutionOptions;
|
|
43
43
|
/**
|
|
@@ -45,7 +45,7 @@ export declare function _applySourceToCreateOptions(createOptions: ICreateSoluti
|
|
|
45
45
|
*
|
|
46
46
|
* @param createOptions
|
|
47
47
|
* @param srcAuthentication
|
|
48
|
-
* @
|
|
48
|
+
* @private
|
|
49
49
|
*/
|
|
50
50
|
export declare function _addThumbnailFileToCreateOptions(createOptions: ICreateSolutionOptions, srcAuthentication: UserSession): Promise<ICreateSolutionOptions>;
|
|
51
51
|
/**
|
|
@@ -54,9 +54,9 @@ export declare function _addThumbnailFileToCreateOptions(createOptions: ICreateS
|
|
|
54
54
|
* @param options Customizations for creating the solution
|
|
55
55
|
* @param srcAuthentication Credentials for requests to source items
|
|
56
56
|
* @param destAuthentication Credentials for the requests to destination solution
|
|
57
|
-
* @
|
|
57
|
+
* @returns A promise that resolves with the AGO id of the new solution; solution item is deleted if its
|
|
58
58
|
* there is a problem updating it
|
|
59
|
-
* @
|
|
59
|
+
* @private
|
|
60
60
|
*/
|
|
61
61
|
export declare function _createSolutionFromItemIds(options: ICreateSolutionOptions, srcAuthentication: UserSession, destAuthentication: UserSession): Promise<string>;
|
|
62
62
|
/**
|
|
@@ -64,9 +64,9 @@ export declare function _createSolutionFromItemIds(options: ICreateSolutionOptio
|
|
|
64
64
|
*
|
|
65
65
|
* @param authentication Credentials for the request
|
|
66
66
|
* @param options Customizations for creating the solution
|
|
67
|
-
* @
|
|
67
|
+
* @returns A promise that resolves with the AGO id of the new solution; solution item is deleted if its
|
|
68
68
|
* there is a problem updating its thumbnail
|
|
69
|
-
* @
|
|
69
|
+
* @private
|
|
70
70
|
*/
|
|
71
71
|
export declare function _createSolutionItem(authentication: UserSession, options?: ICreateSolutionOptions): Promise<string>;
|
|
72
72
|
/**
|
|
@@ -74,16 +74,16 @@ export declare function _createSolutionItem(authentication: UserSession, options
|
|
|
74
74
|
* the Solution Item itself
|
|
75
75
|
*
|
|
76
76
|
* @param options
|
|
77
|
-
* @
|
|
77
|
+
* @private
|
|
78
78
|
*/
|
|
79
79
|
export declare function _createSolutionItemModel(options: any): IModel;
|
|
80
80
|
/**
|
|
81
81
|
* Gets the deploy.id and deploy.version tag values.
|
|
82
82
|
*
|
|
83
83
|
* @param tags A list of item tags
|
|
84
|
-
* @
|
|
84
|
+
* @returns A list containing the two values found in the tags, or defaulting to a new GUID and "1.0", respectively,
|
|
85
85
|
* as needed
|
|
86
|
-
* @
|
|
86
|
+
* @private
|
|
87
87
|
*/
|
|
88
88
|
export declare function _getDeploymentProperties(tags: string[]): string[];
|
|
89
89
|
/**
|
|
@@ -91,7 +91,7 @@ export declare function _getDeploymentProperties(tags: string[]): string[];
|
|
|
91
91
|
*
|
|
92
92
|
* @param desiredTagPrefix Tag prefix to look for
|
|
93
93
|
* @param tags A list of item tags
|
|
94
|
-
* @
|
|
95
|
-
* @
|
|
94
|
+
* @returns The extracted value of the first matching tag or null if a tag with the specified prefix is not found
|
|
95
|
+
* @private
|
|
96
96
|
*/
|
|
97
97
|
export declare function _getDeploymentProperty(desiredTagPrefix: string, tags: string[]): string | null;
|
package/dist/esm/creator.js
CHANGED
|
@@ -30,7 +30,7 @@ const noOp = () => { };
|
|
|
30
30
|
* @param srcAuthentication Credentials for requests to source items
|
|
31
31
|
* @param destAuthentication Credentials for the requests to destination solution
|
|
32
32
|
* @param options Customizations for creating the solution
|
|
33
|
-
* @
|
|
33
|
+
* @returns A promise that resolves with the AGO id of the new solution
|
|
34
34
|
*/
|
|
35
35
|
export function createSolution(sourceId, srcAuthentication, destAuthentication, options) {
|
|
36
36
|
const createOptions = options || {};
|
|
@@ -105,7 +105,7 @@ export function createSolution(sourceId, srcAuthentication, destAuthentication,
|
|
|
105
105
|
* @param sourceInfo
|
|
106
106
|
* @param authentication
|
|
107
107
|
* @param isGroup Boolean to indicate if the files are associated with a group or item
|
|
108
|
-
* @
|
|
108
|
+
* @private
|
|
109
109
|
*/
|
|
110
110
|
export function _applySourceToCreateOptions(createOptions, sourceInfo, srcAuthentication, isGroup = false) {
|
|
111
111
|
// Create a solution from the group's or item's contents,
|
|
@@ -125,7 +125,7 @@ export function _applySourceToCreateOptions(createOptions, sourceInfo, srcAuthen
|
|
|
125
125
|
*
|
|
126
126
|
* @param createOptions
|
|
127
127
|
* @param srcAuthentication
|
|
128
|
-
* @
|
|
128
|
+
* @private
|
|
129
129
|
*/
|
|
130
130
|
export function _addThumbnailFileToCreateOptions(createOptions, srcAuthentication) {
|
|
131
131
|
return new Promise(resolve => {
|
|
@@ -153,9 +153,9 @@ export function _addThumbnailFileToCreateOptions(createOptions, srcAuthenticatio
|
|
|
153
153
|
* @param options Customizations for creating the solution
|
|
154
154
|
* @param srcAuthentication Credentials for requests to source items
|
|
155
155
|
* @param destAuthentication Credentials for the requests to destination solution
|
|
156
|
-
* @
|
|
156
|
+
* @returns A promise that resolves with the AGO id of the new solution; solution item is deleted if its
|
|
157
157
|
* there is a problem updating it
|
|
158
|
-
* @
|
|
158
|
+
* @private
|
|
159
159
|
*/
|
|
160
160
|
export function _createSolutionFromItemIds(options, srcAuthentication, destAuthentication) {
|
|
161
161
|
let solutionId = "";
|
|
@@ -184,9 +184,9 @@ export function _createSolutionFromItemIds(options, srcAuthentication, destAuthe
|
|
|
184
184
|
*
|
|
185
185
|
* @param authentication Credentials for the request
|
|
186
186
|
* @param options Customizations for creating the solution
|
|
187
|
-
* @
|
|
187
|
+
* @returns A promise that resolves with the AGO id of the new solution; solution item is deleted if its
|
|
188
188
|
* there is a problem updating its thumbnail
|
|
189
|
-
* @
|
|
189
|
+
* @private
|
|
190
190
|
*/
|
|
191
191
|
export function _createSolutionItem(authentication, options) {
|
|
192
192
|
const model = _createSolutionItemModel(options);
|
|
@@ -202,7 +202,7 @@ export function _createSolutionItem(authentication, options) {
|
|
|
202
202
|
* the Solution Item itself
|
|
203
203
|
*
|
|
204
204
|
* @param options
|
|
205
|
-
* @
|
|
205
|
+
* @private
|
|
206
206
|
*/
|
|
207
207
|
export function _createSolutionItemModel(options) {
|
|
208
208
|
// Solution uses all supplied tags but for deploy.* tags; that information goes into properties
|
|
@@ -236,9 +236,9 @@ export function _createSolutionItemModel(options) {
|
|
|
236
236
|
* Gets the deploy.id and deploy.version tag values.
|
|
237
237
|
*
|
|
238
238
|
* @param tags A list of item tags
|
|
239
|
-
* @
|
|
239
|
+
* @returns A list containing the two values found in the tags, or defaulting to a new GUID and "1.0", respectively,
|
|
240
240
|
* as needed
|
|
241
|
-
* @
|
|
241
|
+
* @private
|
|
242
242
|
*/
|
|
243
243
|
export function _getDeploymentProperties(tags) {
|
|
244
244
|
return [
|
|
@@ -253,8 +253,8 @@ export function _getDeploymentProperties(tags) {
|
|
|
253
253
|
*
|
|
254
254
|
* @param desiredTagPrefix Tag prefix to look for
|
|
255
255
|
* @param tags A list of item tags
|
|
256
|
-
* @
|
|
257
|
-
* @
|
|
256
|
+
* @returns The extracted value of the first matching tag or null if a tag with the specified prefix is not found
|
|
257
|
+
* @private
|
|
258
258
|
*/
|
|
259
259
|
export function _getDeploymentProperty(desiredTagPrefix, tags) {
|
|
260
260
|
const foundTagAsList = tags.filter(tag => tag.startsWith(desiredTagPrefix));
|
|
@@ -21,7 +21,7 @@ import { ICreateSolutionOptions, IItemTemplate, UserSession } from "@esri/soluti
|
|
|
21
21
|
* @param options Customizations for creating the solution
|
|
22
22
|
* @param srcAuthentication Credentials for requests to source items
|
|
23
23
|
* @param destAuthentication Credentials for the requests to destination solution
|
|
24
|
-
* @
|
|
24
|
+
* @returns A promise that resolves with the AGO id of the updated solution
|
|
25
25
|
* @internal
|
|
26
26
|
*/
|
|
27
27
|
export declare function addContentToSolution(solutionItemId: string, options: ICreateSolutionOptions, srcAuthentication: UserSession, destAuthentication: UserSession): Promise<string>;
|
|
@@ -29,7 +29,7 @@ export declare function addContentToSolution(solutionItemId: string, options: IC
|
|
|
29
29
|
* Gets the dependencies of an item by merging its dependencies list with item references in template variables.
|
|
30
30
|
*
|
|
31
31
|
* @param template Template to examine
|
|
32
|
-
* @
|
|
32
|
+
* @returns List of dependency ids
|
|
33
33
|
* @private
|
|
34
34
|
*/
|
|
35
35
|
export declare function _getDependencies(template: IItemTemplate): string[];
|
|
@@ -37,7 +37,7 @@ export declare function _getDependencies(template: IItemTemplate): string[];
|
|
|
37
37
|
* Extracts AGO ids out of template variables.
|
|
38
38
|
*
|
|
39
39
|
* @param variables List of template variables to examine
|
|
40
|
-
* @
|
|
40
|
+
* @returns List of AGO ids referenced in `variables`
|
|
41
41
|
* @private
|
|
42
42
|
*/
|
|
43
43
|
export declare function _getIdsOutOfTemplateVariables(variables: string[]): string[];
|
|
@@ -45,7 +45,7 @@ export declare function _getIdsOutOfTemplateVariables(variables: string[]): stri
|
|
|
45
45
|
* Creates a list of item URLs.
|
|
46
46
|
*
|
|
47
47
|
* @param templates Templates to check for URLs
|
|
48
|
-
* @
|
|
48
|
+
* @returns List of URLs
|
|
49
49
|
* @private
|
|
50
50
|
*/
|
|
51
51
|
export declare function _getSolutionItemUrls(templates: IItemTemplate[]): string[][];
|
|
@@ -53,7 +53,7 @@ export declare function _getSolutionItemUrls(templates: IItemTemplate[]): string
|
|
|
53
53
|
* Extracts template variables out of a string.
|
|
54
54
|
*
|
|
55
55
|
* @param text String to examine
|
|
56
|
-
* @
|
|
56
|
+
* @returns List of template variables found in string
|
|
57
57
|
* @private
|
|
58
58
|
*/
|
|
59
59
|
export declare function _getTemplateVariables(text: string): string[];
|
|
@@ -61,7 +61,7 @@ export declare function _getTemplateVariables(text: string): string[];
|
|
|
61
61
|
* Update the items dependencies and groups arrays
|
|
62
62
|
*
|
|
63
63
|
* @param templates The array of templates to evaluate
|
|
64
|
-
* @
|
|
64
|
+
* @returns Updated version of the templates
|
|
65
65
|
* @private
|
|
66
66
|
*/
|
|
67
67
|
export declare function _postProcessGroupDependencies(templates: IItemTemplate[]): IItemTemplate[];
|
|
@@ -71,7 +71,7 @@ export declare function _postProcessGroupDependencies(templates: IItemTemplate[]
|
|
|
71
71
|
* Clean up any references to items with invalid designations in the other templates.
|
|
72
72
|
*
|
|
73
73
|
* @param templates The array of templates to evaluate
|
|
74
|
-
* @
|
|
74
|
+
* @returns Updated version of the templates
|
|
75
75
|
* @private
|
|
76
76
|
*/
|
|
77
77
|
export declare function _postProcessIgnoredItems(templates: IItemTemplate[]): IItemTemplate[];
|
|
@@ -96,7 +96,7 @@ export declare function _replaceRemainingIdsInObject(ids: string[], obj: any): a
|
|
|
96
96
|
*
|
|
97
97
|
* @param ids Ids to be replaced in source string
|
|
98
98
|
* @param str Source string to be examined
|
|
99
|
-
* @
|
|
99
|
+
* @returns A copy of the source string with any templatization changes
|
|
100
100
|
* @private
|
|
101
101
|
*/
|
|
102
102
|
export declare function _replaceRemainingIdsInString(ids: string[], str: string): string;
|
|
@@ -112,7 +112,7 @@ export declare function _simplifyUrlsInItemDescriptions(templates: IItemTemplate
|
|
|
112
112
|
*
|
|
113
113
|
* @param templates The array of templates to evaluate; templates is modified in place
|
|
114
114
|
* @param destAuthentication Credentials for request organization info
|
|
115
|
-
* @
|
|
115
|
+
* @returns Promise resolving with `templates`
|
|
116
116
|
* @private
|
|
117
117
|
*/
|
|
118
118
|
export declare function _templatizeOrgUrl(templates: IItemTemplate[], destAuthentication: UserSession): Promise<IItemTemplate[]>;
|
|
@@ -23,7 +23,7 @@ import { createItemTemplate, postProcessFieldReferences } from "../createItemTem
|
|
|
23
23
|
* @param options Customizations for creating the solution
|
|
24
24
|
* @param srcAuthentication Credentials for requests to source items
|
|
25
25
|
* @param destAuthentication Credentials for the requests to destination solution
|
|
26
|
-
* @
|
|
26
|
+
* @returns A promise that resolves with the AGO id of the updated solution
|
|
27
27
|
* @internal
|
|
28
28
|
*/
|
|
29
29
|
export function addContentToSolution(solutionItemId, options, srcAuthentication, destAuthentication) {
|
|
@@ -154,7 +154,7 @@ export function addContentToSolution(solutionItemId, options, srcAuthentication,
|
|
|
154
154
|
* Gets the dependencies of an item by merging its dependencies list with item references in template variables.
|
|
155
155
|
*
|
|
156
156
|
* @param template Template to examine
|
|
157
|
-
* @
|
|
157
|
+
* @returns List of dependency ids
|
|
158
158
|
* @private
|
|
159
159
|
*/
|
|
160
160
|
export function _getDependencies(template) {
|
|
@@ -179,7 +179,7 @@ export function _getDependencies(template) {
|
|
|
179
179
|
* Extracts AGO ids out of template variables.
|
|
180
180
|
*
|
|
181
181
|
* @param variables List of template variables to examine
|
|
182
|
-
* @
|
|
182
|
+
* @returns List of AGO ids referenced in `variables`
|
|
183
183
|
* @private
|
|
184
184
|
*/
|
|
185
185
|
export function _getIdsOutOfTemplateVariables(variables) {
|
|
@@ -199,7 +199,7 @@ export function _getIdsOutOfTemplateVariables(variables) {
|
|
|
199
199
|
* Creates a list of item URLs.
|
|
200
200
|
*
|
|
201
201
|
* @param templates Templates to check for URLs
|
|
202
|
-
* @
|
|
202
|
+
* @returns List of URLs
|
|
203
203
|
* @private
|
|
204
204
|
*/
|
|
205
205
|
export function _getSolutionItemUrls(templates) {
|
|
@@ -216,7 +216,7 @@ export function _getSolutionItemUrls(templates) {
|
|
|
216
216
|
* Extracts template variables out of a string.
|
|
217
217
|
*
|
|
218
218
|
* @param text String to examine
|
|
219
|
-
* @
|
|
219
|
+
* @returns List of template variables found in string
|
|
220
220
|
* @private
|
|
221
221
|
*/
|
|
222
222
|
export function _getTemplateVariables(text) {
|
|
@@ -227,7 +227,7 @@ export function _getTemplateVariables(text) {
|
|
|
227
227
|
* Update the items dependencies and groups arrays
|
|
228
228
|
*
|
|
229
229
|
* @param templates The array of templates to evaluate
|
|
230
|
-
* @
|
|
230
|
+
* @returns Updated version of the templates
|
|
231
231
|
* @private
|
|
232
232
|
*/
|
|
233
233
|
export function _postProcessGroupDependencies(templates) {
|
|
@@ -270,7 +270,7 @@ export function _postProcessGroupDependencies(templates) {
|
|
|
270
270
|
* Clean up any references to items with invalid designations in the other templates.
|
|
271
271
|
*
|
|
272
272
|
* @param templates The array of templates to evaluate
|
|
273
|
-
* @
|
|
273
|
+
* @returns Updated version of the templates
|
|
274
274
|
* @private
|
|
275
275
|
*/
|
|
276
276
|
export function _postProcessIgnoredItems(templates) {
|
|
@@ -342,7 +342,7 @@ export function _replaceRemainingIdsInObject(ids, obj) {
|
|
|
342
342
|
*
|
|
343
343
|
* @param ids Ids to be replaced in source string
|
|
344
344
|
* @param str Source string to be examined
|
|
345
|
-
* @
|
|
345
|
+
* @returns A copy of the source string with any templatization changes
|
|
346
346
|
* @private
|
|
347
347
|
*/
|
|
348
348
|
export function _replaceRemainingIdsInString(ids, str) {
|
|
@@ -394,7 +394,7 @@ export function _simplifyUrlsInItemDescriptions(templates) {
|
|
|
394
394
|
*
|
|
395
395
|
* @param templates The array of templates to evaluate; templates is modified in place
|
|
396
396
|
* @param destAuthentication Credentials for request organization info
|
|
397
|
-
* @
|
|
397
|
+
* @returns Promise resolving with `templates`
|
|
398
398
|
* @private
|
|
399
399
|
*/
|
|
400
400
|
export function _templatizeOrgUrl(templates, destAuthentication) {
|
|
@@ -28,8 +28,8 @@ import { IDatasourceInfo, IItemProgressCallback, IItemTemplate, ISourceFile, Use
|
|
|
28
28
|
* @param srcAuthentication Credentials for requests to source items
|
|
29
29
|
* @param destAuthentication Authentication for requesting information from AGO about items to be included in solution item
|
|
30
30
|
* @param existingTemplates A collection of AGO item templates that can be referenced by newly-created templates
|
|
31
|
-
* @
|
|
32
|
-
* @
|
|
31
|
+
* @returns A promise which resolves with an array of resources for the item and its dependencies
|
|
32
|
+
* @private
|
|
33
33
|
*/
|
|
34
34
|
export declare function createItemTemplate(solutionItemId: string, itemId: string, templateDictionary: any, srcAuthentication: UserSession, destAuthentication: UserSession, existingTemplates: IItemTemplate[], itemProgressCallback: IItemProgressCallback): Promise<ISourceFile[]>;
|
|
35
35
|
/**
|
|
@@ -37,14 +37,15 @@ export declare function createItemTemplate(solutionItemId: string, itemId: strin
|
|
|
37
37
|
* Currently only handles web applications
|
|
38
38
|
*
|
|
39
39
|
* @param templates List of solution templates
|
|
40
|
-
* @
|
|
40
|
+
* @returns A list of templates that have templatized field references
|
|
41
41
|
*/
|
|
42
42
|
export declare function postProcessFieldReferences(templates: IItemTemplate[]): IItemTemplate[];
|
|
43
43
|
/**
|
|
44
44
|
* Get common properties that will support the templatization of field references
|
|
45
45
|
*
|
|
46
46
|
* @param templates List of solution templates
|
|
47
|
-
* @
|
|
47
|
+
* @returns A list of IDataSourceInfo objects with key properties
|
|
48
|
+
* @private
|
|
48
49
|
*/
|
|
49
50
|
export declare function _getDatasourceInfos(templates: IItemTemplate[]): IDatasourceInfo[];
|
|
50
51
|
/**
|
|
@@ -52,7 +53,8 @@ export declare function _getDatasourceInfos(templates: IItemTemplate[]): IDataso
|
|
|
52
53
|
* and associated web map layer ids based on itemId
|
|
53
54
|
*
|
|
54
55
|
* @param templates List of solution templates
|
|
55
|
-
* @
|
|
56
|
+
* @returns The lookup object with type, dependencies, and webmap layer info
|
|
57
|
+
* @private
|
|
56
58
|
*/
|
|
57
59
|
export declare function _getTemplateTypeHash(templates: IItemTemplate[]): any;
|
|
58
60
|
/**
|
|
@@ -60,7 +62,8 @@ export declare function _getTemplateTypeHash(templates: IItemTemplate[]): any;
|
|
|
60
62
|
* so we can know the id used within a map for a given feature service
|
|
61
63
|
*
|
|
62
64
|
* @param template A webmap solution template
|
|
63
|
-
* @
|
|
65
|
+
* @returns The lookup object with webmap layer info added
|
|
66
|
+
* @private
|
|
64
67
|
*/
|
|
65
68
|
export declare function _updateWebMapHashInfo(template: IItemTemplate, hashItem: any): void;
|
|
66
69
|
/**
|
|
@@ -68,7 +71,8 @@ export declare function _updateWebMapHashInfo(template: IItemTemplate, hashItem:
|
|
|
68
71
|
*
|
|
69
72
|
* @param dataSourceUrl Templatized datasource URL
|
|
70
73
|
* @param layerId Layer id
|
|
71
|
-
* @
|
|
74
|
+
* @returns string Amended datasource URL
|
|
75
|
+
* @private
|
|
72
76
|
*/
|
|
73
77
|
export declare function _addLayerIdToDatasourceUrl(datasourceUrl?: string, layerId?: any): string;
|
|
74
78
|
/**
|
|
@@ -77,7 +81,8 @@ export declare function _addLayerIdToDatasourceUrl(datasourceUrl?: string, layer
|
|
|
77
81
|
*
|
|
78
82
|
* @param datasourceInfos A webmap solution template
|
|
79
83
|
* @param templateTypeHash A simple lookup object populated with key item info
|
|
80
|
-
* @
|
|
84
|
+
* @returns The updated datasource infos
|
|
85
|
+
* @private
|
|
81
86
|
*/
|
|
82
87
|
export declare function _addMapLayerIds(datasourceInfos: IDatasourceInfo[], templateTypeHash: any): IDatasourceInfo[];
|
|
83
88
|
/**
|
|
@@ -86,6 +91,7 @@ export declare function _addMapLayerIds(datasourceInfos: IDatasourceInfo[], temp
|
|
|
86
91
|
*
|
|
87
92
|
* @param template A webmap solution template
|
|
88
93
|
* @param templateTypeHash A simple lookup object populated with key item info
|
|
89
|
-
* @
|
|
94
|
+
* @returns A lsit of feature service item IDs
|
|
95
|
+
* @private
|
|
90
96
|
*/
|
|
91
97
|
export declare function _getWebMapFSDependencies(template: IItemTemplate, templateTypeHash: any): string[];
|