@esri/solution-common 6.6.1-next.2 → 6.6.1-next.21
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.
|
@@ -19,9 +19,12 @@
|
|
|
19
19
|
import { IFolderIdOptions, IGetGroupContentOptions, IGetUserOptions, IGroup, IGroupContentResult, IGetRelatedItemsResponse, IGroupSharingOptions, IItem, IItemRelationshipOptions, IItemResourceOptions, IItemResourceResponse, IPortal, IRemoveItemResourceOptions, ISearchOptions, ISearchResult, ISharingResponse, IUpdateGroupOptions, IUpdateItemOptions, IUpdateItemResponse, IUser, IUserGroupOptions, IUserItemOptions, SearchQueryBuilder } from "@esri/arcgis-rest-portal";
|
|
20
20
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
21
21
|
import { IAddToServiceDefinitionOptions, IAddToServiceDefinitionResult, IQueryRelatedOptions, IQueryRelatedResponse } from "@esri/arcgis-rest-feature-service";
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
22
|
+
export { createFeatureService as svcAdminCreateFeatureService, queryFeatures, addFeatures, applyEdits, } from "@esri/arcgis-rest-feature-service";
|
|
23
|
+
export type { IAddToServiceDefinitionOptions, IAddToServiceDefinitionResult, ICreateServiceParams, ICreateServiceResult, IExtent, ISpatialReference, IFeature, IQueryRelatedOptions, IQueryRelatedResponse, IRelatedRecordGroup, } from "@esri/arcgis-rest-feature-service";
|
|
24
|
+
export { addItemData as restAddItemData, addItemRelationship, createFolder, createGroup, createItem, createItemInFolder, moveItem, protectItem, SearchQueryBuilder, getGroupCategorySchema as restGetGroupCategorySchema, getItem, getItemData, getItemResources as restGetItemResources, getUserContent, getPortal as restGetPortal, getPortalUrl, searchGroupContent, setItemAccess, searchGroups as restSearchGroups, removeGroupUsers, removeItem as restRemoveItem, } from "@esri/arcgis-rest-portal";
|
|
25
|
+
export type { IAddFolderResponse, IAddItemDataOptions, ICreateItemOptions, ICreateItemResponse, IFolder, IFolderIdOptions, IGetGroupContentOptions, IGetRelatedItemsResponse, IGroup, IGroupAdd, IGroupCategorySchema as restIGroupCategorySchema, IItem, IItemRelationshipOptions, IItemResourceOptions, IItemResourceResponse, IManageItemRelationshipOptions, IMoveItemOptions, IMoveItemResponse, IPagedResponse, IPagingParams, IPortal, IRemoveItemResourceOptions, ISearchGroupContentOptions, ISearchOptions, ISearchResult, ISetAccessOptions, ISharingResponse, ItemRelationshipType, IUpdateGroupOptions, IUpdateItemOptions, IUpdateItemResponse, IUser, IUserContentResponse, IUserGroupOptions, IGroupSharingOptions, IUserItemOptions, } from "@esri/arcgis-rest-portal";
|
|
26
|
+
export { ArcGISAuthError, encodeFormData, ArcGISIdentityManager as UserSession } from "@esri/arcgis-rest-request";
|
|
27
|
+
export type { IArcGISIdentityManagerOptions, ICredential, IRequestOptions, IParams } from "@esri/arcgis-rest-request";
|
|
25
28
|
export interface IFolderSuccessResult {
|
|
26
29
|
success: boolean;
|
|
27
30
|
folder: {
|
|
@@ -158,9 +158,11 @@ exports.deleteViewProps = deleteViewProps;
|
|
|
158
158
|
*/
|
|
159
159
|
function cacheFieldInfos(layer, fieldInfos, isView, isPortal) {
|
|
160
160
|
// cache the source fields as they are in the original source
|
|
161
|
-
|
|
161
|
+
// Note: layer.id is commonly 0 for the first layer, so use a presence check
|
|
162
|
+
// (not a truthy check) to avoid skipping the layer with id === 0.
|
|
163
|
+
if (layer && layer.id !== undefined && layer.id !== null) {
|
|
162
164
|
fieldInfos[layer.id] = {
|
|
163
|
-
sourceFields: JSON.parse(JSON.stringify(layer.fields)),
|
|
165
|
+
sourceFields: layer.fields ? JSON.parse(JSON.stringify(layer.fields)) : [],
|
|
164
166
|
type: layer.type,
|
|
165
167
|
id: layer.id,
|
|
166
168
|
};
|
|
@@ -19,9 +19,12 @@
|
|
|
19
19
|
import { IFolderIdOptions, IGetGroupContentOptions, IGetUserOptions, IGroup, IGroupContentResult, IGetRelatedItemsResponse, IGroupSharingOptions, IItem, IItemRelationshipOptions, IItemResourceOptions, IItemResourceResponse, IPortal, IRemoveItemResourceOptions, ISearchOptions, ISearchResult, ISharingResponse, IUpdateGroupOptions, IUpdateItemOptions, IUpdateItemResponse, IUser, IUserGroupOptions, IUserItemOptions, SearchQueryBuilder } from "@esri/arcgis-rest-portal";
|
|
20
20
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
21
21
|
import { IAddToServiceDefinitionOptions, IAddToServiceDefinitionResult, IQueryRelatedOptions, IQueryRelatedResponse } from "@esri/arcgis-rest-feature-service";
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
22
|
+
export { createFeatureService as svcAdminCreateFeatureService, queryFeatures, addFeatures, applyEdits, } from "@esri/arcgis-rest-feature-service";
|
|
23
|
+
export type { IAddToServiceDefinitionOptions, IAddToServiceDefinitionResult, ICreateServiceParams, ICreateServiceResult, IExtent, ISpatialReference, IFeature, IQueryRelatedOptions, IQueryRelatedResponse, IRelatedRecordGroup, } from "@esri/arcgis-rest-feature-service";
|
|
24
|
+
export { addItemData as restAddItemData, addItemRelationship, createFolder, createGroup, createItem, createItemInFolder, moveItem, protectItem, SearchQueryBuilder, getGroupCategorySchema as restGetGroupCategorySchema, getItem, getItemData, getItemResources as restGetItemResources, getUserContent, getPortal as restGetPortal, getPortalUrl, searchGroupContent, setItemAccess, searchGroups as restSearchGroups, removeGroupUsers, removeItem as restRemoveItem, } from "@esri/arcgis-rest-portal";
|
|
25
|
+
export type { IAddFolderResponse, IAddItemDataOptions, ICreateItemOptions, ICreateItemResponse, IFolder, IFolderIdOptions, IGetGroupContentOptions, IGetRelatedItemsResponse, IGroup, IGroupAdd, IGroupCategorySchema as restIGroupCategorySchema, IItem, IItemRelationshipOptions, IItemResourceOptions, IItemResourceResponse, IManageItemRelationshipOptions, IMoveItemOptions, IMoveItemResponse, IPagedResponse, IPagingParams, IPortal, IRemoveItemResourceOptions, ISearchGroupContentOptions, ISearchOptions, ISearchResult, ISetAccessOptions, ISharingResponse, ItemRelationshipType, IUpdateGroupOptions, IUpdateItemOptions, IUpdateItemResponse, IUser, IUserContentResponse, IUserGroupOptions, IGroupSharingOptions, IUserItemOptions, } from "@esri/arcgis-rest-portal";
|
|
26
|
+
export { ArcGISAuthError, encodeFormData, ArcGISIdentityManager as UserSession } from "@esri/arcgis-rest-request";
|
|
27
|
+
export type { IArcGISIdentityManagerOptions, ICredential, IRequestOptions, IParams } from "@esri/arcgis-rest-request";
|
|
25
28
|
export interface IFolderSuccessResult {
|
|
26
29
|
success: boolean;
|
|
27
30
|
folder: {
|
package/dist/esm/arcgisRestJS.js
CHANGED
|
@@ -21,7 +21,7 @@ import { request as restRequest } from "@esri/arcgis-rest-request";
|
|
|
21
21
|
import { addToServiceDefinition, queryRelated as restQueryRelated, } from "@esri/arcgis-rest-feature-service";
|
|
22
22
|
export { createFeatureService as svcAdminCreateFeatureService, queryFeatures, addFeatures, applyEdits, } from "@esri/arcgis-rest-feature-service";
|
|
23
23
|
export { addItemData as restAddItemData, addItemRelationship, createFolder, createGroup, createItem, createItemInFolder, moveItem, protectItem, SearchQueryBuilder, getGroupCategorySchema as restGetGroupCategorySchema, getItem, getItemData, getItemResources as restGetItemResources, getUserContent, getPortal as restGetPortal, getPortalUrl, searchGroupContent, setItemAccess, searchGroups as restSearchGroups, removeGroupUsers, removeItem as restRemoveItem, } from "@esri/arcgis-rest-portal";
|
|
24
|
-
export { ArcGISAuthError, encodeFormData, ArcGISIdentityManager as UserSession
|
|
24
|
+
export { ArcGISAuthError, encodeFormData, ArcGISIdentityManager as UserSession } from "@esri/arcgis-rest-request";
|
|
25
25
|
//custom export functions that mimic the same export function from arcgis-rest-js
|
|
26
26
|
//to bypass unit test error:
|
|
27
27
|
//Error: <spyOn> : <functon or property> is not declared writable or has no setter
|
|
@@ -151,9 +151,11 @@ export function deleteViewProps(layer, isPortal) {
|
|
|
151
151
|
*/
|
|
152
152
|
export function cacheFieldInfos(layer, fieldInfos, isView, isPortal) {
|
|
153
153
|
// cache the source fields as they are in the original source
|
|
154
|
-
|
|
154
|
+
// Note: layer.id is commonly 0 for the first layer, so use a presence check
|
|
155
|
+
// (not a truthy check) to avoid skipping the layer with id === 0.
|
|
156
|
+
if (layer && layer.id !== undefined && layer.id !== null) {
|
|
155
157
|
fieldInfos[layer.id] = {
|
|
156
|
-
sourceFields: JSON.parse(JSON.stringify(layer.fields)),
|
|
158
|
+
sourceFields: layer.fields ? JSON.parse(JSON.stringify(layer.fields)) : [],
|
|
157
159
|
type: layer.type,
|
|
158
160
|
id: layer.id,
|
|
159
161
|
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
Built 04/
|
|
1
|
+
Built 04/28/2026 20:42:16.70
|
|
2
2
|
develop
|
|
3
|
-
commit
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
commit 78e030ce65b30542f556e345cd3d88c844709774
|
|
4
|
+
Merge: bbf8f3423 11e7f7511
|
|
5
|
+
Author: John Hauck <jhauck@esri.com>
|
|
6
|
+
Date: Tue Apr 28 16:00:26 2026 -0600
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
Merge pull request #1582 from Esri/dev-build
|
|
9
|
+
|
|
10
|
+
tests
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/solution-common",
|
|
3
|
-
"version": "6.6.1-next.
|
|
3
|
+
"version": "6.6.1-next.21",
|
|
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",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "npm-run-all --parallel build:*",
|
|
49
|
-
"build:cjs": "tsc --outDir ./dist/cjs -m commonjs",
|
|
49
|
+
"build:cjs": "tsc --outDir ./dist/cjs -m commonjs --moduleResolution node",
|
|
50
50
|
"postbuild:cjs": "node ../../scripts/create-dist-package-jsons.mjs",
|
|
51
51
|
"build:esm": "tsc --outDir ./dist/esm --declaration",
|
|
52
52
|
"postbuild:esm": "node ../../scripts/create-dist-package-jsons.mjs",
|
|
53
53
|
"dev": "npm-run-all --parallel dev:*",
|
|
54
|
-
"dev:cjs": "tsc -w --outDir ./dist/cjs -m commonjs",
|
|
54
|
+
"dev:cjs": "tsc -w --outDir ./dist/cjs -m commonjs --moduleResolution node",
|
|
55
55
|
"dev:esm": "tsc -w --outDir ./dist/esm --declaration",
|
|
56
56
|
"getupdates": "npm-check-updates --upgrade"
|
|
57
57
|
},
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"esri",
|
|
97
97
|
"ES6"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "78e030ce65b30542f556e345cd3d88c844709774"
|
|
100
100
|
}
|