@esri/solution-common 1.1.5 → 1.2.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/interfaces.d.ts +21 -0
- package/dist/esm/interfaces.js.map +1 -1
- package/dist/esm/restHelpers.d.ts +8 -0
- package/dist/esm/restHelpers.js +10 -0
- package/dist/esm/restHelpers.js.map +1 -1
- package/dist/esm/restHelpersGet.js +1 -1
- package/dist/esm/restHelpersGet.js.map +1 -1
- package/dist/esm/templatization.js +2 -0
- package/dist/esm/templatization.js.map +1 -1
- package/dist/node/interfaces.d.ts +21 -0
- package/dist/node/interfaces.js.map +1 -1
- package/dist/node/restHelpers.d.ts +8 -0
- package/dist/node/restHelpers.js +13 -1
- package/dist/node/restHelpers.js.map +1 -1
- package/dist/node/restHelpersGet.js +1 -1
- package/dist/node/restHelpersGet.js.map +1 -1
- package/dist/node/templatization.js +2 -0
- package/dist/node/templatization.js.map +1 -1
- package/dist/umd/common.umd.js +143 -115
- 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/interfaces.d.ts +21 -0
- package/dist/umd/restHelpers.d.ts +8 -0
- package/package.json +23 -23
package/dist/umd/interfaces.d.ts
CHANGED
|
@@ -439,6 +439,9 @@ export interface IItemTemplateConversions {
|
|
|
439
439
|
* Structure for mapping from item type to module with type-specific template-handling code
|
|
440
440
|
*/
|
|
441
441
|
export declare type moduleHandler = IItemTemplateConversions | undefined | null;
|
|
442
|
+
/**
|
|
443
|
+
* Mapping from an AGO item type to the code handling that type.
|
|
444
|
+
*/
|
|
442
445
|
export interface IItemTypeModuleMap {
|
|
443
446
|
[itemType: string]: moduleHandler;
|
|
444
447
|
}
|
|
@@ -450,9 +453,15 @@ export interface IItemUpdate {
|
|
|
450
453
|
*/
|
|
451
454
|
[key: string]: any;
|
|
452
455
|
}
|
|
456
|
+
/**
|
|
457
|
+
* Type with key access to lists of strings
|
|
458
|
+
*/
|
|
453
459
|
export interface IKeyedListsOfStrings {
|
|
454
460
|
[key: string]: string[];
|
|
455
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
* Type with key access to strings
|
|
464
|
+
*/
|
|
456
465
|
export interface IMimeTypes {
|
|
457
466
|
[key: string]: string;
|
|
458
467
|
}
|
|
@@ -510,10 +519,16 @@ export interface IQuickCaptureDatasource {
|
|
|
510
519
|
*/
|
|
511
520
|
url: number;
|
|
512
521
|
}
|
|
522
|
+
/**
|
|
523
|
+
* A mapping between a relationship type and the list of item ids using that relationship.
|
|
524
|
+
*/
|
|
513
525
|
export interface IRelatedItems {
|
|
514
526
|
relationshipType: string;
|
|
515
527
|
relatedItemIds: string[];
|
|
516
528
|
}
|
|
529
|
+
/**
|
|
530
|
+
* Summary of a resource.
|
|
531
|
+
*/
|
|
517
532
|
export interface IResource {
|
|
518
533
|
resource: string;
|
|
519
534
|
created: number;
|
|
@@ -583,6 +598,9 @@ export interface ISolutionProgressEvent {
|
|
|
583
598
|
*/
|
|
584
599
|
data?: any;
|
|
585
600
|
}
|
|
601
|
+
/**
|
|
602
|
+
* Information about a resource to be copied into an item.
|
|
603
|
+
*/
|
|
586
604
|
export interface ISourceFile {
|
|
587
605
|
/**
|
|
588
606
|
* The portal item id, e.g., "4efe5f693de34620934787ead6693f19", that supplies the resource
|
|
@@ -796,6 +814,9 @@ export interface ISurvey123CreateResult {
|
|
|
796
814
|
*/
|
|
797
815
|
export interface IZipCopyResults extends IZipInfo, ICopyResults {
|
|
798
816
|
}
|
|
817
|
+
/**
|
|
818
|
+
* Information about a zipped file.
|
|
819
|
+
*/
|
|
799
820
|
export interface IZipInfo {
|
|
800
821
|
/**
|
|
801
822
|
* Zip's filename
|
|
@@ -14,9 +14,17 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { IAddFolderResponse, IAddGroupResponse, IAdditionalSearchOptions, ICreateItemResponse, ICreateServiceResult, IDependency, IExtent, IFeatureServiceProperties, IFolderStatusResponse, IGroup, IGroupAdd, IItem, IItemTemplate, IItemUpdate, IPostProcessArgs, IRelatedItems, ISpatialReference, IStatusResponse, ItemRelationshipType, IUpdate, IUpdateItemResponse, UserSession } from "./interfaces";
|
|
17
|
+
import { IUserSessionOptions } from "@esri/arcgis-rest-auth";
|
|
17
18
|
import { IPagingParams, ISearchOptions, ISearchResult, SearchQueryBuilder } from "@esri/arcgis-rest-portal";
|
|
18
19
|
import { IParams } from "@esri/arcgis-rest-request";
|
|
19
20
|
export { request as rest_request } from "@esri/arcgis-rest-request";
|
|
21
|
+
/**
|
|
22
|
+
* Creates a UserSession via a function so that the global arcgisSolution variable can access authentication.
|
|
23
|
+
*
|
|
24
|
+
* @param options See https://esri.github.io/arcgis-rest-js/api/auth/IUserSessionOptions/
|
|
25
|
+
* @return UserSession
|
|
26
|
+
*/
|
|
27
|
+
export declare function getUserSession(options?: IUserSessionOptions): UserSession;
|
|
20
28
|
/**
|
|
21
29
|
* Searches for items matching a query and that the caller has access to.
|
|
22
30
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/solution-common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.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,36 +13,36 @@
|
|
|
13
13
|
"dist/**"
|
|
14
14
|
],
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@esri/arcgis-rest-auth": "3.4.
|
|
17
|
-
"@esri/arcgis-rest-feature-layer": "3.4.
|
|
18
|
-
"@esri/arcgis-rest-portal": "3.4.
|
|
19
|
-
"@esri/arcgis-rest-request": "3.4.
|
|
20
|
-
"@esri/arcgis-rest-service-admin": "3.4.
|
|
21
|
-
"@esri/hub-common": "9.2
|
|
22
|
-
"@esri/hub-initiatives": "9.2
|
|
23
|
-
"@esri/hub-sites": "9.2
|
|
24
|
-
"@esri/hub-teams": "9.2
|
|
16
|
+
"@esri/arcgis-rest-auth": "3.4.3",
|
|
17
|
+
"@esri/arcgis-rest-feature-layer": "3.4.3",
|
|
18
|
+
"@esri/arcgis-rest-portal": "3.4.3",
|
|
19
|
+
"@esri/arcgis-rest-request": "3.4.3",
|
|
20
|
+
"@esri/arcgis-rest-service-admin": "3.4.3",
|
|
21
|
+
"@esri/hub-common": "9.7.2",
|
|
22
|
+
"@esri/hub-initiatives": "9.7.2",
|
|
23
|
+
"@esri/hub-sites": "9.7.2",
|
|
24
|
+
"@esri/hub-teams": "9.7.2",
|
|
25
25
|
"@types/adlib": "^3.0.1",
|
|
26
|
-
"rollup": "^
|
|
26
|
+
"rollup": "^2.60.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@esri/arcgis-rest-auth": "3.4.
|
|
30
|
-
"@esri/arcgis-rest-feature-layer": "3.4.
|
|
31
|
-
"@esri/arcgis-rest-portal": "3.4.
|
|
32
|
-
"@esri/arcgis-rest-request": "3.4.
|
|
33
|
-
"@esri/arcgis-rest-service-admin": "3.4.
|
|
34
|
-
"@esri/hub-common": "9.2
|
|
35
|
-
"@esri/hub-initiatives": "9.2
|
|
36
|
-
"@esri/hub-sites": "9.2
|
|
37
|
-
"@esri/hub-teams": "9.2
|
|
29
|
+
"@esri/arcgis-rest-auth": "3.4.3",
|
|
30
|
+
"@esri/arcgis-rest-feature-layer": "3.4.3",
|
|
31
|
+
"@esri/arcgis-rest-portal": "3.4.3",
|
|
32
|
+
"@esri/arcgis-rest-request": "3.4.3",
|
|
33
|
+
"@esri/arcgis-rest-service-admin": "3.4.3",
|
|
34
|
+
"@esri/hub-common": "9.7.2",
|
|
35
|
+
"@esri/hub-initiatives": "9.7.2",
|
|
36
|
+
"@esri/hub-sites": "9.7.2",
|
|
37
|
+
"@esri/hub-teams": "9.7.2"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@esri/arcgis-html-sanitizer": "2.8.0",
|
|
41
41
|
"@types/lodash.isplainobject": "^4.0.6",
|
|
42
42
|
"adlib": "3.0.7",
|
|
43
|
-
"jszip": "3.7.
|
|
43
|
+
"jszip": "3.7.1",
|
|
44
44
|
"lodash.isplainobject": "^4.0.6",
|
|
45
|
-
"tslib": "
|
|
45
|
+
"tslib": "1.13.0",
|
|
46
46
|
"xss": "^1.0.6"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"esri",
|
|
96
96
|
"ES6"
|
|
97
97
|
],
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "70f706fb28a50db0b9b13030f263f8e9e270b98d"
|
|
99
99
|
}
|