@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.
@@ -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.1.5",
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.2",
17
- "@esri/arcgis-rest-feature-layer": "3.4.2",
18
- "@esri/arcgis-rest-portal": "3.4.2",
19
- "@esri/arcgis-rest-request": "3.4.2",
20
- "@esri/arcgis-rest-service-admin": "3.4.2",
21
- "@esri/hub-common": "9.2.0",
22
- "@esri/hub-initiatives": "9.2.0",
23
- "@esri/hub-sites": "9.2.0",
24
- "@esri/hub-teams": "9.2.0",
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": "^1.22.0"
26
+ "rollup": "^2.60.0"
27
27
  },
28
28
  "peerDependencies": {
29
- "@esri/arcgis-rest-auth": "3.4.2",
30
- "@esri/arcgis-rest-feature-layer": "3.4.2",
31
- "@esri/arcgis-rest-portal": "3.4.2",
32
- "@esri/arcgis-rest-request": "3.4.2",
33
- "@esri/arcgis-rest-service-admin": "3.4.2",
34
- "@esri/hub-common": "9.2.0",
35
- "@esri/hub-initiatives": "9.2.0",
36
- "@esri/hub-sites": "9.2.0",
37
- "@esri/hub-teams": "9.2.0"
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.0",
43
+ "jszip": "3.7.1",
44
44
  "lodash.isplainobject": "^4.0.6",
45
- "tslib": "^1.13.0",
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": "5eded4ac0bb6b2230ab572d602b38c69c8d6578f"
98
+ "gitHead": "70f706fb28a50db0b9b13030f263f8e9e270b98d"
99
99
  }