@esri/solution-common 1.5.2 → 1.6.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.
@@ -552,6 +552,20 @@ export interface IFileMimeTyped {
552
552
  mimeType: string;
553
553
  blob: Blob;
554
554
  }
555
+ /**
556
+ * Existing Items promises, associated item Ids and types
557
+ */
558
+ export interface IFindExistingItemsResponse {
559
+ existingItemsDefs: Array<Promise<any>>;
560
+ existingItemInfos: IFindExistingItemInfos[];
561
+ }
562
+ /**
563
+ * Item Id and item type
564
+ */
565
+ export interface IFindExistingItemInfos {
566
+ itemId: string;
567
+ type: string;
568
+ }
555
569
  /**
556
570
  * Response from removing a folder.
557
571
  */
@@ -172,7 +172,7 @@ export declare function removeItemResourceFile(itemId: string, filename: string,
172
172
  * Updates the item's resource that matches the filename with new content
173
173
  *
174
174
  * @param itemId Id of the item to update
175
- * @param filename Name of the resource file to update
175
+ * @param filename Name of the resource file to update; prefix optional (e.g., a/b/file.txt)
176
176
  * @param resource The new content to update the resource with
177
177
  * @param authentication Credentials for the request to the storage
178
178
  * @returns A promise which resolves with a success true/false response
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solution-common",
3
- "version": "1.5.2",
3
+ "version": "1.6.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",
@@ -96,5 +96,5 @@
96
96
  "esri",
97
97
  "ES6"
98
98
  ],
99
- "gitHead": "90f2c36c7b1b367dad73a5d2349193841596eefd"
99
+ "gitHead": "7ccd27f453382dfa7c83630b2f43f474d0e62b1d"
100
100
  }