@esri/solution-common 6.5.0-next.20251113 → 6.5.0-next.20251115
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.
|
@@ -240,6 +240,10 @@ export declare function getItemThumbnailUrl(itemId: string, thumbnailUrlPart: st
|
|
|
240
240
|
* @returns Promise that will resolve with JSON
|
|
241
241
|
*/
|
|
242
242
|
export declare function getJson(url: string, authentication?: UserSession): Promise<any>;
|
|
243
|
+
/** Gets the organization's setting to check for beta app and AI assistant enablement
|
|
244
|
+
* @param authentication is the signed in user's credentials
|
|
245
|
+
*/
|
|
246
|
+
export declare function getOrganizationSettings(authentication: UserSession): Promise<any>;
|
|
243
247
|
/**
|
|
244
248
|
* Extracts the portal sharing url from a supplied authentication.
|
|
245
249
|
*
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.getPortalDefaultBasemap = exports._getItemResourcesTranche = exports._getGroupContentsTranche = exports._fixTextBlobType = exports.getThumbnailFile = exports.getSolutionsRelatedToAnItem = exports.getPortalUrlFromAuth = exports.getPortalSharingUrlFromAuth = exports.getJson = exports.getItemThumbnailUrl = exports.getItemThumbnailAsFile = exports.getItemThumbnail = exports.getItemsRelatedToASolution = exports.getItemResourcesFiles = exports.getItemResources = exports.getItemRelatedItemsInSameDirection = exports.getItemRelatedItems = exports.getItemMetadataBlobUrl = exports.getItemMetadataBlob = exports.getItemMetadataAsFile = exports.getItemInfoFileUrlPrefix = exports.getItemDataBlobUrl = exports.getItemDataBlob = exports.getItemDataAsJson = exports.getItemDataAsFile = exports.getItemBase = exports.getGroupContents = exports.getGroupCategorySchema = exports.getGroupBase = exports.getFilenameFromUrl = exports.getEnterpriseServers = exports.getBlobCheckForError = exports.getBlobAsFile = exports.getFoldersAndGroups = exports.getUsername = exports.getUser = exports.getPortalUrls = exports.getPortal = exports.checkJsonForError = void 0;
|
|
18
|
+
exports.getPortalDefaultBasemap = exports._getItemResourcesTranche = exports._getGroupContentsTranche = exports._fixTextBlobType = exports.getThumbnailFile = exports.getSolutionsRelatedToAnItem = exports.getPortalUrlFromAuth = exports.getPortalSharingUrlFromAuth = exports.getOrganizationSettings = exports.getJson = exports.getItemThumbnailUrl = exports.getItemThumbnailAsFile = exports.getItemThumbnail = exports.getItemsRelatedToASolution = exports.getItemResourcesFiles = exports.getItemResources = exports.getItemRelatedItemsInSameDirection = exports.getItemRelatedItems = exports.getItemMetadataBlobUrl = exports.getItemMetadataBlob = exports.getItemMetadataAsFile = exports.getItemInfoFileUrlPrefix = exports.getItemDataBlobUrl = exports.getItemDataBlob = exports.getItemDataAsJson = exports.getItemDataAsFile = exports.getItemBase = exports.getGroupContents = exports.getGroupCategorySchema = exports.getGroupBase = exports.getFilenameFromUrl = exports.getEnterpriseServers = exports.getBlobCheckForError = exports.getBlobAsFile = exports.getFoldersAndGroups = exports.getUsername = exports.getUser = exports.getPortalUrls = exports.getPortal = exports.checkJsonForError = void 0;
|
|
19
19
|
/**
|
|
20
20
|
* Provides common item fetch functions involving the arcgis-rest-js library.
|
|
21
21
|
*
|
|
@@ -585,6 +585,27 @@ function getJson(url, authentication) {
|
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
587
|
exports.getJson = getJson;
|
|
588
|
+
/** Gets the organization's setting to check for beta app and AI assistant enablement
|
|
589
|
+
* @param authentication is the signed in user's credentials
|
|
590
|
+
*/
|
|
591
|
+
function getOrganizationSettings(authentication) {
|
|
592
|
+
return new Promise((resolve, reject) => {
|
|
593
|
+
const requestOptions = {
|
|
594
|
+
httpMethod: "GET",
|
|
595
|
+
authentication,
|
|
596
|
+
rawResponse: false,
|
|
597
|
+
params: {
|
|
598
|
+
returnOrgSettings: true,
|
|
599
|
+
},
|
|
600
|
+
};
|
|
601
|
+
const sharingURL = getPortalSharingUrlFromAuth(authentication);
|
|
602
|
+
const orgSettingURL = `${sharingURL}/community/self`;
|
|
603
|
+
(0, arcgisRestJS_1.request)(orgSettingURL, requestOptions).then((response) => {
|
|
604
|
+
resolve(response && response.orgSettings ? response.orgSettings : {});
|
|
605
|
+
}, (e) => reject(e));
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
exports.getOrganizationSettings = getOrganizationSettings;
|
|
588
609
|
/**
|
|
589
610
|
* Extracts the portal sharing url from a supplied authentication.
|
|
590
611
|
*
|
|
@@ -240,6 +240,10 @@ export declare function getItemThumbnailUrl(itemId: string, thumbnailUrlPart: st
|
|
|
240
240
|
* @returns Promise that will resolve with JSON
|
|
241
241
|
*/
|
|
242
242
|
export declare function getJson(url: string, authentication?: UserSession): Promise<any>;
|
|
243
|
+
/** Gets the organization's setting to check for beta app and AI assistant enablement
|
|
244
|
+
* @param authentication is the signed in user's credentials
|
|
245
|
+
*/
|
|
246
|
+
export declare function getOrganizationSettings(authentication: UserSession): Promise<any>;
|
|
243
247
|
/**
|
|
244
248
|
* Extracts the portal sharing url from a supplied authentication.
|
|
245
249
|
*
|
|
@@ -551,6 +551,26 @@ export function getJson(url, authentication) {
|
|
|
551
551
|
}
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
|
+
/** Gets the organization's setting to check for beta app and AI assistant enablement
|
|
555
|
+
* @param authentication is the signed in user's credentials
|
|
556
|
+
*/
|
|
557
|
+
export function getOrganizationSettings(authentication) {
|
|
558
|
+
return new Promise((resolve, reject) => {
|
|
559
|
+
const requestOptions = {
|
|
560
|
+
httpMethod: "GET",
|
|
561
|
+
authentication,
|
|
562
|
+
rawResponse: false,
|
|
563
|
+
params: {
|
|
564
|
+
returnOrgSettings: true,
|
|
565
|
+
},
|
|
566
|
+
};
|
|
567
|
+
const sharingURL = getPortalSharingUrlFromAuth(authentication);
|
|
568
|
+
const orgSettingURL = `${sharingURL}/community/self`;
|
|
569
|
+
request(orgSettingURL, requestOptions).then((response) => {
|
|
570
|
+
resolve(response && response.orgSettings ? response.orgSettings : {});
|
|
571
|
+
}, (e) => reject(e));
|
|
572
|
+
});
|
|
573
|
+
}
|
|
554
574
|
/**
|
|
555
575
|
* Extracts the portal sharing url from a supplied authentication.
|
|
556
576
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Built 11/
|
|
1
|
+
Built 11/15/2025 20:42:20.42
|
|
2
2
|
develop
|
|
3
|
-
commit
|
|
3
|
+
commit f06da03d49edcc269c1a3ea8782013defcd35474
|
|
4
4
|
Author: Ryan Cosby <ryan9313@esri.com>
|
|
5
|
-
Date:
|
|
5
|
+
Date: Fri Nov 14 20:49:39 2025 -0800
|
|
6
6
|
|
|
7
|
-
v6.5.0-next.
|
|
7
|
+
v6.5.0-next.20251114
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/solution-common",
|
|
3
|
-
"version": "6.5.0-next.
|
|
3
|
+
"version": "6.5.0-next.20251115",
|
|
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": "f06da03d49edcc269c1a3ea8782013defcd35474"
|
|
100
100
|
}
|