@esri/solution-common 6.6.0-next.20260403113537 → 6.6.0-next.20260404204841
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/cjs/restHelpers.js
CHANGED
|
@@ -2029,7 +2029,7 @@ function _updateItemURL(id, url, authentication, numAttempts = 1) {
|
|
|
2029
2029
|
// Get the item to see if the URL really changed; we'll delay a bit before testing because AGO
|
|
2030
2030
|
// has a timing problem with URL updates
|
|
2031
2031
|
setTimeout(() => {
|
|
2032
|
-
(0,
|
|
2032
|
+
(0, arcgisRestJS_1.getItem)(id, { authentication: authentication }).then((item) => {
|
|
2033
2033
|
const iBrace = item.url.indexOf("{");
|
|
2034
2034
|
if (iBrace > -1) {
|
|
2035
2035
|
console.warn(id + " has template variable: " + item.url.substr(iBrace));
|
|
@@ -243,18 +243,10 @@ exports.getGroupContents = getGroupContents;
|
|
|
243
243
|
* or response error code
|
|
244
244
|
*/
|
|
245
245
|
function getItemBase(itemId, authentication) {
|
|
246
|
-
const
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
...requestOptions,
|
|
251
|
-
}).then((searchResponse) => {
|
|
252
|
-
const item = searchResponse?.results?.[0];
|
|
253
|
-
if (!item || item.id !== itemId) {
|
|
254
|
-
throw new Error(`Item not found via search: ${itemId}`);
|
|
255
|
-
}
|
|
256
|
-
return item;
|
|
257
|
-
});
|
|
246
|
+
const itemParam = {
|
|
247
|
+
authentication: authentication,
|
|
248
|
+
};
|
|
249
|
+
return (0, arcgisRestJS_1.getItem)(itemId, itemParam);
|
|
258
250
|
}
|
|
259
251
|
exports.getItemBase = getItemBase;
|
|
260
252
|
/**
|
package/dist/esm/restHelpers.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { removeLayerOptimization, setDefaultSpatialReference, validateSpatialReferenceAndExtent, processContingentValues, } from "./featureServiceHelpers";
|
|
22
22
|
import { appendQueryParam, blobToJson, blobToText, checkUrlPathTermination, deleteProp, deleteProps, fail, getProp, getUniqueTitle, setCreateProp, } from "./generalHelpers";
|
|
23
|
-
import { restAddItemData as portalAddItemData, addItemRelationship, addItemResource, createFolder, createGroup, createItemInFolder, moveItem as portalMoveItem, restRemoveFolder as portalRemoveFolder, restRemoveGroup as portalRemoveGroup, removeGroupUsers as portalRemoveGroupUsers, restRemoveItem as portalRemoveItem, restSearchGroups as portalSearchGroups, restSearchItems as portalSearchItems, request, searchGroupContent, SearchQueryBuilder, setItemAccess, shareItemWithGroup, svcAdminAddToServiceDefinition, svcAdminCreateFeatureService, restUpdateItem as portalUpdateItem, restUpdateGroup as portalUpdateGroup, UserSession, } from "./arcgisRestJS";
|
|
23
|
+
import { restAddItemData as portalAddItemData, addItemRelationship, addItemResource, createFolder, createGroup, createItemInFolder, getItem, moveItem as portalMoveItem, restRemoveFolder as portalRemoveFolder, restRemoveGroup as portalRemoveGroup, removeGroupUsers as portalRemoveGroupUsers, restRemoveItem as portalRemoveItem, restSearchGroups as portalSearchGroups, restSearchItems as portalSearchItems, request, searchGroupContent, SearchQueryBuilder, setItemAccess, shareItemWithGroup, svcAdminAddToServiceDefinition, svcAdminCreateFeatureService, restUpdateItem as portalUpdateItem, restUpdateGroup as portalUpdateGroup, UserSession, } from "./arcgisRestJS";
|
|
24
24
|
import { createZip } from "./libConnectors";
|
|
25
25
|
import { getItemBase, getItemDataAsJson } from "./restHelpersGet";
|
|
26
26
|
import { getWorkforceDependencies, isWorkforceProject, getWorkforceServiceInfo } from "./workforceHelpers";
|
|
@@ -1965,7 +1965,7 @@ export function _updateItemURL(id, url, authentication, numAttempts = 1) {
|
|
|
1965
1965
|
// Get the item to see if the URL really changed; we'll delay a bit before testing because AGO
|
|
1966
1966
|
// has a timing problem with URL updates
|
|
1967
1967
|
setTimeout(() => {
|
|
1968
|
-
|
|
1968
|
+
getItem(id, { authentication: authentication }).then((item) => {
|
|
1969
1969
|
const iBrace = item.url.indexOf("{");
|
|
1970
1970
|
if (iBrace > -1) {
|
|
1971
1971
|
console.warn(id + " has template variable: " + item.url.substr(iBrace));
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* @module restHelpersGet
|
|
20
20
|
*/
|
|
21
21
|
import { blobToFile, blobToJson, blobToText, checkUrlPathTermination, getProp } from "./generalHelpers";
|
|
22
|
-
import { getGroup, getGroupContent, getRelatedItems, request, restGetGroupCategorySchema as portalGetGroupCategorySchema, restGetItemResources as portalGetItemResources, restGetPortal as portalGetPortal,
|
|
22
|
+
import { getGroup, getGroupContent, getItem, getRelatedItems, request, restGetGroupCategorySchema as portalGetGroupCategorySchema, restGetItemResources as portalGetItemResources, restGetPortal as portalGetPortal, } from "./arcgisRestJS";
|
|
23
23
|
import { getBlob } from "./resources/get-blob";
|
|
24
24
|
import { searchGroups, searchGroupContents } from "./restHelpers";
|
|
25
25
|
// ------------------------------------------------------------------------------------------------------------------ //
|
|
@@ -227,18 +227,10 @@ export function getGroupContents(groupId, authentication) {
|
|
|
227
227
|
* or response error code
|
|
228
228
|
*/
|
|
229
229
|
export function getItemBase(itemId, authentication) {
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
...requestOptions,
|
|
235
|
-
}).then((searchResponse) => {
|
|
236
|
-
const item = searchResponse?.results?.[0];
|
|
237
|
-
if (!item || item.id !== itemId) {
|
|
238
|
-
throw new Error(`Item not found via search: ${itemId}`);
|
|
239
|
-
}
|
|
240
|
-
return item;
|
|
241
|
-
});
|
|
230
|
+
const itemParam = {
|
|
231
|
+
authentication: authentication,
|
|
232
|
+
};
|
|
233
|
+
return getItem(itemId, itemParam);
|
|
242
234
|
}
|
|
243
235
|
/**
|
|
244
236
|
* Gets the data information of an AGO item in its raw (Blob) form and casts it as a file using the supplied name.
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
Built 04/
|
|
2
|
-
|
|
3
|
-
commit
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Date: Fri Apr 3 11:28:41 2026 -0700
|
|
1
|
+
Built 04/04/2026 20:42:57.88
|
|
2
|
+
develop
|
|
3
|
+
commit d1b5e5254078a8f73bbaf176ba712bd0a8ddb918
|
|
4
|
+
Author: Ryan Cosby <ryan9313@esri.com>
|
|
5
|
+
Date: Fri Apr 3 20:50:03 2026 -0700
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
v6.6.0-next.20260403204833
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/solution-common",
|
|
3
|
-
"version": "6.6.0-next.
|
|
3
|
+
"version": "6.6.0-next.20260404204841",
|
|
4
4
|
"description": "Provides general helper functions for @esri/solution.js.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"esri",
|
|
97
97
|
"ES6"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "d1b5e5254078a8f73bbaf176ba712bd0a8ddb918"
|
|
100
100
|
}
|