@esri/solution-common 1.3.16 → 1.5.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/esm/featureServiceHelpers.d.ts +9 -9
- package/dist/esm/featureServiceHelpers.js +18 -28
- package/dist/esm/featureServiceHelpers.js.map +1 -1
- package/dist/esm/generalHelpers.d.ts +8 -3
- package/dist/esm/generalHelpers.js +8 -3
- package/dist/esm/generalHelpers.js.map +1 -1
- package/dist/esm/interfaces.d.ts +3 -3
- package/dist/esm/templatization.d.ts +2 -2
- package/dist/esm/templatization.js +2 -2
- package/dist/esm/workforceHelpers.d.ts +1 -1
- package/dist/esm/workforceHelpers.js +1 -1
- package/dist/node/featureServiceHelpers.d.ts +9 -9
- package/dist/node/featureServiceHelpers.js +18 -28
- package/dist/node/featureServiceHelpers.js.map +1 -1
- package/dist/node/generalHelpers.d.ts +8 -3
- package/dist/node/generalHelpers.js +8 -3
- package/dist/node/generalHelpers.js.map +1 -1
- package/dist/node/interfaces.d.ts +3 -3
- package/dist/node/templatization.d.ts +2 -2
- package/dist/node/templatization.js +2 -2
- package/dist/node/workforceHelpers.d.ts +1 -1
- package/dist/node/workforceHelpers.js +1 -1
- package/dist/umd/common.umd.js +358 -262
- package/dist/umd/common.umd.js.map +1 -1
- package/dist/umd/common.umd.min.js +3 -3
- package/dist/umd/common.umd.min.js.map +1 -1
- package/dist/umd/{completeItem.d.ts → src/completeItem.d.ts} +0 -0
- package/dist/umd/{create-hub-request-options.d.ts → src/create-hub-request-options.d.ts} +0 -0
- package/dist/umd/{deleteHelpers → src/deleteHelpers}/deleteEmptyGroups.d.ts +0 -0
- package/dist/umd/{deleteHelpers → src/deleteHelpers}/deleteGroupIfEmpty.d.ts +0 -0
- package/dist/umd/{deleteHelpers → src/deleteHelpers}/deleteSolutionContents.d.ts +0 -0
- package/dist/umd/{deleteHelpers → src/deleteHelpers}/deleteSolutionFolder.d.ts +0 -0
- package/dist/umd/{deleteHelpers → src/deleteHelpers}/deleteSolutionItem.d.ts +0 -0
- package/dist/umd/{deleteHelpers → src/deleteHelpers}/index.d.ts +0 -0
- package/dist/umd/{deleteHelpers → src/deleteHelpers}/reconstructBuildOrderIds.d.ts +0 -0
- package/dist/umd/{deleteHelpers → src/deleteHelpers}/removeItems.d.ts +0 -0
- package/dist/umd/{deleteHelpers → src/deleteHelpers}/reportProgress.d.ts +0 -0
- package/dist/umd/{deleteSolution.d.ts → src/deleteSolution.d.ts} +0 -0
- package/dist/umd/{dependencies.d.ts → src/dependencies.d.ts} +0 -0
- package/dist/umd/{featureServiceHelpers.d.ts → src/featureServiceHelpers.d.ts} +9 -9
- package/dist/umd/{generalHelpers.d.ts → src/generalHelpers.d.ts} +8 -3
- package/dist/umd/{get-subscription-info.d.ts → src/get-subscription-info.d.ts} +0 -0
- package/dist/umd/{getDeletableSolutionInfo.d.ts → src/getDeletableSolutionInfo.d.ts} +0 -0
- package/dist/umd/{getItemTypeAbbrev.d.ts → src/getItemTypeAbbrev.d.ts} +0 -0
- package/dist/umd/{getSolutionSummary.d.ts → src/getSolutionSummary.d.ts} +0 -0
- package/dist/umd/{index.d.ts → src/index.d.ts} +0 -0
- package/dist/umd/{interfaces.d.ts → src/interfaces.d.ts} +3 -3
- package/dist/umd/{libConnectors.d.ts → src/libConnectors.d.ts} +0 -0
- package/dist/umd/{migrations → src/migrations}/apply-schema.d.ts +0 -0
- package/dist/umd/{migrations → src/migrations}/is-legacy-solution.d.ts +0 -0
- package/dist/umd/{migrations → src/migrations}/upgrade-three-dot-one.d.ts +0 -0
- package/dist/umd/{migrations → src/migrations}/upgrade-three-dot-zero.d.ts +0 -0
- package/dist/umd/{migrations → src/migrations}/upgrade-two-dot-five.d.ts +0 -0
- package/dist/umd/{migrations → src/migrations}/upgrade-two-dot-four.d.ts +0 -0
- package/dist/umd/{migrations → src/migrations}/upgrade-two-dot-one.d.ts +0 -0
- package/dist/umd/{migrations → src/migrations}/upgrade-two-dot-seven.d.ts +0 -0
- package/dist/umd/{migrations → src/migrations}/upgrade-two-dot-six.d.ts +0 -0
- package/dist/umd/{migrations → src/migrations}/upgrade-two-dot-three.d.ts +0 -0
- package/dist/umd/{migrations → src/migrations}/upgrade-two-dot-two.d.ts +0 -0
- package/dist/umd/{migrations → src/migrations}/upgrade-two-dot-zero.d.ts +0 -0
- package/dist/umd/{migrator.d.ts → src/migrator.d.ts} +0 -0
- package/dist/umd/{polyfills.d.ts → src/polyfills.d.ts} +0 -0
- package/dist/umd/{resourceHelpers.d.ts → src/resourceHelpers.d.ts} +0 -0
- package/dist/umd/{resources → src/resources}/add-resource-from-blob.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/addMetadataFromBlob.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/convert-item-resource-to-storage-resource.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/convert-storage-resource-to-item-resource.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/copyAssociatedFiles.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/copyDataIntoItem.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/copyMetadataIntoItem.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/copyResourceIntoZip.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/copyZipIntoItem.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/createCopyResults.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/get-blob.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/getItemResourcesFilesFromPaths.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/getItemResourcesPaths.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/index.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/solution-resource.d.ts +0 -0
- package/dist/umd/{resources → src/resources}/transform-resource-paths-to-solution-resources.d.ts +0 -0
- package/dist/umd/{restHelpers.d.ts → src/restHelpers.d.ts} +0 -0
- package/dist/umd/{restHelpersGet.d.ts → src/restHelpersGet.d.ts} +0 -0
- package/dist/umd/{sharing → src/sharing}/index.d.ts +0 -0
- package/dist/umd/{sharing → src/sharing}/share-item-to-groups.d.ts +0 -0
- package/dist/umd/{templatization.d.ts → src/templatization.d.ts} +2 -2
- package/dist/umd/{trackingHelpers.d.ts → src/trackingHelpers.d.ts} +0 -0
- package/dist/umd/{velocityHelpers.d.ts → src/velocityHelpers.d.ts} +0 -0
- package/dist/umd/{workforceHelpers.d.ts → src/workforceHelpers.d.ts} +1 -1
- package/package.json +16 -16
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -110,7 +110,8 @@ export declare function _updateTypeKeywords(itemTemplate: IItemTemplate, createR
|
|
|
110
110
|
* references to be de-templatized.
|
|
111
111
|
* This also removes the stored sourceFields and newFields arrays from fieldInfos.
|
|
112
112
|
*
|
|
113
|
-
*
|
|
113
|
+
* @example
|
|
114
|
+
* \{ layer0: \{ fields: \{ lowerCaseSourceFieldName: newFieldNameAfterDeployment \} \} \}
|
|
114
115
|
*
|
|
115
116
|
* @param layerInfos The object that stores the cached layer properties and name mapping
|
|
116
117
|
* @returns The settings object that will be used to de-templatize the field references.
|
|
@@ -220,11 +221,10 @@ export declare function addFeatureServiceLayersAndTables(itemTemplate: IItemTemp
|
|
|
220
221
|
*/
|
|
221
222
|
export declare function addFeatureServiceDefinition(serviceUrl: string, listToAdd: any[], templateDictionary: any, authentication: UserSession, key: string, adminLayerInfos: any, fieldInfos: any, itemTemplate: IItemTemplate): Promise<void>;
|
|
222
223
|
/**
|
|
223
|
-
* When a
|
|
224
|
-
*
|
|
224
|
+
* When a view is a multi service view add each layer separately
|
|
225
|
+
* https://github.com/Esri/solution.js/issues/871
|
|
225
226
|
*
|
|
226
227
|
* @param itemTemplate
|
|
227
|
-
* @param item Layer or table from the service
|
|
228
228
|
* @param options Add to service definition options
|
|
229
229
|
* @param layerChunks Groups of layers or tables to add to the service
|
|
230
230
|
* @param authentication Credentials for the request
|
|
@@ -232,7 +232,7 @@ export declare function addFeatureServiceDefinition(serviceUrl: string, listToAd
|
|
|
232
232
|
* @returns Add to service definition options
|
|
233
233
|
* @private
|
|
234
234
|
*/
|
|
235
|
-
export declare function _updateAddOptions(itemTemplate: IItemTemplate,
|
|
235
|
+
export declare function _updateAddOptions(itemTemplate: IItemTemplate, options: any, layerChunks: any[], authentication: UserSession): any;
|
|
236
236
|
/**
|
|
237
237
|
* Remove "multiScaleGeometryInfo" for issue #526 to prevent invalid enablement of layer optimization
|
|
238
238
|
*
|
|
@@ -309,7 +309,7 @@ export declare function _updateTemplateDictionaryFields(itemTemplate: IItemTempl
|
|
|
309
309
|
*
|
|
310
310
|
* @param templateDictionary Hash mapping Solution source id to id of its clone (and name & URL for feature service)
|
|
311
311
|
* @param itemId The source id for the item
|
|
312
|
-
* @param spatialReference { wkid: 102100 } for example
|
|
312
|
+
* @param spatialReference \{ wkid: 102100 \} for example
|
|
313
313
|
* @private
|
|
314
314
|
*/
|
|
315
315
|
export declare function setDefaultSpatialReference(templateDictionary: any, itemId: string, spatialReference: any): void;
|
|
@@ -561,7 +561,7 @@ export declare function _templatizeRelationshipFields(layer: any, itemID: string
|
|
|
561
561
|
*/
|
|
562
562
|
export declare function _templatizePopupInfo(layerDefinition: any, layer: any, basePath: string, itemID: any, fieldNames: string[]): void;
|
|
563
563
|
/**
|
|
564
|
-
* templatize field name when referenced like this: {{fieldName}}
|
|
564
|
+
* templatize field name when referenced like this: \{\{fieldName\}\}
|
|
565
565
|
* checks each field name from the layer
|
|
566
566
|
*
|
|
567
567
|
* @param object with the property to test for a field name
|
|
@@ -572,7 +572,7 @@ export declare function _templatizePopupInfo(layerDefinition: any, layer: any, b
|
|
|
572
572
|
*/
|
|
573
573
|
export declare function _templatizeName(object: any, property: string, fieldNames: string[], basePath: string): void;
|
|
574
574
|
/**
|
|
575
|
-
* templatize field name when referenced like this: {{fieldName}}
|
|
575
|
+
* templatize field name when referenced like this: \{\{fieldName\}\}
|
|
576
576
|
* checks each field name from the layer
|
|
577
577
|
*
|
|
578
578
|
* @param fieldInfos object that contains the popups fieldInfos
|
|
@@ -583,7 +583,7 @@ export declare function _templatizeName(object: any, property: string, fieldName
|
|
|
583
583
|
*/
|
|
584
584
|
export declare function _templatizePopupInfoFieldInfos(fieldInfos: any[], layer: any, itemID: any, basePath: string): void;
|
|
585
585
|
/**
|
|
586
|
-
* templatize field name when referenced like this: {{fieldName}}
|
|
586
|
+
* templatize field name when referenced like this: \{\{fieldName\}\}
|
|
587
587
|
* checks each field name from the layer
|
|
588
588
|
*
|
|
589
589
|
* @param name the field name to templatize
|
|
@@ -315,19 +315,24 @@ export declare function hasDatasource(datasourceInfos: IDatasourceInfo[], itemId
|
|
|
315
315
|
/**
|
|
316
316
|
* remove templatization from item id to compare
|
|
317
317
|
*
|
|
318
|
-
*
|
|
318
|
+
* @example
|
|
319
|
+
* \{\{934a9ef8efa7448fa8ddf7b13cef0240.itemId\}\}
|
|
319
320
|
* returns 934a9ef8efa7448fa8ddf7b13cef0240
|
|
320
321
|
*/
|
|
321
322
|
export declare function cleanItemId(id: any): any;
|
|
322
323
|
/**
|
|
323
324
|
* remove templatization from layer based item id to compare
|
|
324
|
-
*
|
|
325
|
+
*
|
|
326
|
+
* @example
|
|
327
|
+
* \{\{934a9ef8efa7448fa8ddf7b13cef0240.layer0.itemId\}\}
|
|
325
328
|
* returns 934a9ef8efa7448fa8ddf7b13cef0240
|
|
326
329
|
*/
|
|
327
330
|
export declare function cleanLayerBasedItemId(id: any): any;
|
|
328
331
|
/**
|
|
329
332
|
* remove templatization from layer id to compare
|
|
330
|
-
*
|
|
333
|
+
*
|
|
334
|
+
* @example
|
|
335
|
+
* \{\{934a9ef8efa7448fa8ddf7b13cef0240.layer0.layerId\}\}
|
|
331
336
|
* returns 0
|
|
332
337
|
*/
|
|
333
338
|
export declare function cleanLayerId(id: any): any;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -308,7 +308,7 @@ export interface ICreateSolutionOptions {
|
|
|
308
308
|
*/
|
|
309
309
|
folderId?: string;
|
|
310
310
|
/**
|
|
311
|
-
* Facts to be used for creating the Solution item; default: {}
|
|
311
|
+
* Facts to be used for creating the Solution item; default: \{\}
|
|
312
312
|
*/
|
|
313
313
|
templateDictionary?: any;
|
|
314
314
|
/**
|
|
@@ -359,7 +359,7 @@ export interface ICreateSolutionResult {
|
|
|
359
359
|
*/
|
|
360
360
|
export interface IDatasourceInfo {
|
|
361
361
|
/**
|
|
362
|
-
* Calculated pattern used for templatization eg. "{{itemId.fields.layerId.fieldname}}"
|
|
362
|
+
* Calculated pattern used for templatization eg. "\{\{itemId.fields.layerId.fieldname\}\}"
|
|
363
363
|
*/
|
|
364
364
|
basePath: string;
|
|
365
365
|
/**
|
|
@@ -483,7 +483,7 @@ export interface IDeploySolutionOptions {
|
|
|
483
483
|
*/
|
|
484
484
|
thumbnail?: File;
|
|
485
485
|
/**
|
|
486
|
-
* Facts to be used for creating the Solution item; default: {}
|
|
486
|
+
* Facts to be used for creating the Solution item; default: \{\}
|
|
487
487
|
*/
|
|
488
488
|
templateDictionary?: any;
|
|
489
489
|
/**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/umd/{resources → src/resources}/transform-resource-paths-to-solution-resources.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -51,7 +51,7 @@ export declare const TRANSFORMS: any;
|
|
|
51
51
|
* Wraps double brackets around the supplied term.
|
|
52
52
|
*
|
|
53
53
|
* @param term Term to be wrapped, e.g., SERVER_NAME's "portalBaseUrl"
|
|
54
|
-
* @returns Wrapped term, e.g., "{{portalBaseUrl}}"
|
|
54
|
+
* @returns Wrapped term, e.g., "\{\{portalBaseUrl\}\}"
|
|
55
55
|
*/
|
|
56
56
|
export declare function placeholder(term: string): string;
|
|
57
57
|
export declare function createInitializedGroupTemplate(itemInfo: any): IItemTemplate;
|
|
@@ -132,7 +132,7 @@ export declare function templatizeToLowerCase(basePath: string, value: string):
|
|
|
132
132
|
* "NAME"
|
|
133
133
|
* "NAME NAME2"
|
|
134
134
|
* "NAME ASC"
|
|
135
|
-
* "{NAME}"
|
|
135
|
+
* "\{NAME\}"
|
|
136
136
|
* "(NAME = value AND NAME2 = someOtherValue)"
|
|
137
137
|
*/
|
|
138
138
|
export declare function templatizeFieldReferences(obj: any, fields: any[], basePath: string, templatizeKeys?: boolean): any;
|
|
File without changes
|
|
File without changes
|
|
@@ -92,7 +92,7 @@ export declare function _getURLs(v: string): string[];
|
|
|
92
92
|
*
|
|
93
93
|
* @param newlyCreatedItem Item to be created; n.b.: this item is modified
|
|
94
94
|
* @param destinationAuthentication The session used to create the new item(s)
|
|
95
|
-
* @returns A promise that will resolve with { "success" === true || false }
|
|
95
|
+
* @returns A promise that will resolve with \{ "success" === true || false \}
|
|
96
96
|
*/
|
|
97
97
|
export declare function fineTuneCreatedWorkforceItem(newlyCreatedItem: IItemTemplate, destinationAuthentication: UserSession, url: string, templateDictionary: any): Promise<any>;
|
|
98
98
|
export declare function _getFields(url: string, ids: number[], authentication: UserSession): Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/solution-common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Provides general helper functions for @esri/solution.js.",
|
|
5
5
|
"main": "dist/node/index.js",
|
|
6
6
|
"unpkg": "dist/umd/common.umd.min.js",
|
|
@@ -13,37 +13,37 @@
|
|
|
13
13
|
"dist/**"
|
|
14
14
|
],
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@esri/arcgis-rest-auth": "3.
|
|
17
|
-
"@esri/arcgis-rest-feature-layer": "3.
|
|
18
|
-
"@esri/arcgis-rest-portal": "3.
|
|
19
|
-
"@esri/arcgis-rest-request": "3.
|
|
20
|
-
"@esri/arcgis-rest-service-admin": "3.
|
|
16
|
+
"@esri/arcgis-rest-auth": "3.5.0",
|
|
17
|
+
"@esri/arcgis-rest-feature-layer": "3.5.0",
|
|
18
|
+
"@esri/arcgis-rest-portal": "3.5.0",
|
|
19
|
+
"@esri/arcgis-rest-request": "3.5.0",
|
|
20
|
+
"@esri/arcgis-rest-service-admin": "3.5.0",
|
|
21
21
|
"@esri/hub-common": "9.29.0",
|
|
22
22
|
"@esri/hub-initiatives": "9.29.0",
|
|
23
23
|
"@esri/hub-sites": "9.29.0",
|
|
24
24
|
"@esri/hub-teams": "9.29.0",
|
|
25
25
|
"@types/adlib": "^3.0.1",
|
|
26
|
-
"rollup": "2.
|
|
26
|
+
"rollup": "2.79.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@esri/arcgis-rest-auth": "3.
|
|
30
|
-
"@esri/arcgis-rest-feature-layer": "3.
|
|
31
|
-
"@esri/arcgis-rest-portal": "3.
|
|
32
|
-
"@esri/arcgis-rest-request": "3.
|
|
33
|
-
"@esri/arcgis-rest-service-admin": "3.
|
|
29
|
+
"@esri/arcgis-rest-auth": "3.5.0",
|
|
30
|
+
"@esri/arcgis-rest-feature-layer": "3.5.0",
|
|
31
|
+
"@esri/arcgis-rest-portal": "3.5.0",
|
|
32
|
+
"@esri/arcgis-rest-request": "3.5.0",
|
|
33
|
+
"@esri/arcgis-rest-service-admin": "3.5.0",
|
|
34
34
|
"@esri/hub-common": "9.29.0",
|
|
35
35
|
"@esri/hub-initiatives": "9.29.0",
|
|
36
36
|
"@esri/hub-sites": "9.29.0",
|
|
37
37
|
"@esri/hub-teams": "9.29.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@esri/arcgis-html-sanitizer": "
|
|
40
|
+
"@esri/arcgis-html-sanitizer": "3.0.0",
|
|
41
41
|
"@types/lodash.isplainobject": "^4.0.7",
|
|
42
42
|
"adlib": "3.0.7",
|
|
43
|
-
"jszip": "3.
|
|
43
|
+
"jszip": "3.10.1",
|
|
44
44
|
"lodash.isplainobject": "^4.0.6",
|
|
45
45
|
"tslib": "1.14.1",
|
|
46
|
-
"xss": "^1.0.
|
|
46
|
+
"xss": "^1.0.14"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"prepare": "npm run build",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"esri",
|
|
97
97
|
"ES6"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "9af59d933c317bf4608d3f7d2046f48a9a8a2d35"
|
|
100
100
|
}
|