@esri/hub-common 15.36.0 → 15.37.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.
- package/dist/esm/access/can-edit-item.js +1 -1
- package/dist/esm/access/can-edit-site-content.js +2 -2
- package/dist/esm/access/can-edit-site-content.js.map +1 -1
- package/dist/esm/core/schemas/shared/CatalogSchema.js +6 -1
- package/dist/esm/core/schemas/shared/CatalogSchema.js.map +1 -1
- package/dist/esm/core/types/Metrics.js.map +1 -1
- package/dist/esm/extent.js.map +1 -1
- package/dist/esm/items/normalize-solution-template-item.js +2 -2
- package/dist/esm/items/normalize-solution-template-item.js.map +1 -1
- package/dist/esm/metrics/resolveMetric.js.map +1 -1
- package/dist/esm/permissions/HubPermissionPolicies.js +2 -1
- package/dist/esm/permissions/HubPermissionPolicies.js.map +1 -1
- package/dist/esm/projects/_internal/ProjectBusinessRules.js +2 -0
- package/dist/esm/projects/_internal/ProjectBusinessRules.js.map +1 -1
- package/dist/esm/resources/get-item-assets.js +3 -3
- package/dist/esm/resources/get-item-assets.js.map +1 -1
- package/dist/esm/sites/_internal/SiteBusinessRules.js +21 -0
- package/dist/esm/sites/_internal/SiteBusinessRules.js.map +1 -1
- package/dist/esm/sites/_internal/applyDefaultCollectionMigration.js +2 -11
- package/dist/esm/sites/_internal/applyDefaultCollectionMigration.js.map +1 -1
- package/dist/esm/sites/defaultSiteCollectionKeys.js +11 -0
- package/dist/esm/sites/defaultSiteCollectionKeys.js.map +1 -0
- package/dist/esm/sites/index.js +3 -0
- package/dist/esm/sites/index.js.map +1 -1
- package/dist/esm/types.js.map +1 -1
- package/dist/node/access/can-edit-item.js +1 -1
- package/dist/node/access/can-edit-site-content.js +2 -2
- package/dist/node/access/can-edit-site-content.js.map +1 -1
- package/dist/node/core/schemas/shared/CatalogSchema.js +6 -1
- package/dist/node/core/schemas/shared/CatalogSchema.js.map +1 -1
- package/dist/node/core/types/Metrics.js.map +1 -1
- package/dist/node/extent.js.map +1 -1
- package/dist/node/items/normalize-solution-template-item.js +2 -2
- package/dist/node/items/normalize-solution-template-item.js.map +1 -1
- package/dist/node/metrics/resolveMetric.js.map +1 -1
- package/dist/node/permissions/HubPermissionPolicies.js +2 -1
- package/dist/node/permissions/HubPermissionPolicies.js.map +1 -1
- package/dist/node/projects/_internal/ProjectBusinessRules.js +2 -0
- package/dist/node/projects/_internal/ProjectBusinessRules.js.map +1 -1
- package/dist/node/resources/get-item-assets.js +3 -3
- package/dist/node/resources/get-item-assets.js.map +1 -1
- package/dist/node/sites/_internal/SiteBusinessRules.js +21 -0
- package/dist/node/sites/_internal/SiteBusinessRules.js.map +1 -1
- package/dist/node/sites/_internal/applyDefaultCollectionMigration.js +2 -11
- package/dist/node/sites/_internal/applyDefaultCollectionMigration.js.map +1 -1
- package/dist/node/sites/defaultSiteCollectionKeys.js +14 -0
- package/dist/node/sites/defaultSiteCollectionKeys.js.map +1 -0
- package/dist/node/sites/index.js +4 -0
- package/dist/node/sites/index.js.map +1 -1
- package/dist/node/types.js.map +1 -1
- package/dist/types/access/can-edit-event.d.ts +1 -1
- package/dist/types/access/can-edit-item.d.ts +1 -1
- package/dist/types/access/can-edit-site-content.d.ts +1 -1
- package/dist/types/access/can-edit-site.d.ts +1 -1
- package/dist/types/access/has-base-priv.d.ts +1 -1
- package/dist/types/associations/internal/getIdsFromAssociationGroups.d.ts +1 -1
- package/dist/types/categories.d.ts +1 -1
- package/dist/types/content/_internal/internalContentUtils.d.ts +1 -2
- package/dist/types/content/search.d.ts +1 -1
- package/dist/types/core/_internal/computeItemLinks.d.ts +1 -1
- package/dist/types/core/_internal/computeItemProps.d.ts +1 -1
- package/dist/types/core/behaviors/IWithFollowersBehavior.d.ts +1 -1
- package/dist/types/core/enrichEntity.d.ts +1 -1
- package/dist/types/core/types/IHubEditableContent.d.ts +1 -1
- package/dist/types/core/types/IHubLocation.d.ts +1 -1
- package/dist/types/core/types/Metrics.d.ts +1 -2
- package/dist/types/discussions/api/types.d.ts +1 -1
- package/dist/types/discussions/utils.d.ts +1 -1
- package/dist/types/downloads/build-existing-exports-portal-query.d.ts +1 -1
- package/dist/types/events/HubEvent.d.ts +1 -1
- package/dist/types/extent.d.ts +1 -2
- package/dist/types/groups/HubGroups.d.ts +1 -1
- package/dist/types/groups/_internal/computeLinks.d.ts +1 -1
- package/dist/types/groups/_internal/computeProps.d.ts +1 -1
- package/dist/types/groups/_internal/convertGroupToHubGroup.d.ts +1 -1
- package/dist/types/groups/_internal/convertHubGroupToGroup.d.ts +1 -1
- package/dist/types/groups/defaults.d.ts +1 -1
- package/dist/types/groups/isOpenDataGroup.d.ts +1 -1
- package/dist/types/initiative-templates/_internal/computeLinks.d.ts +1 -1
- package/dist/types/initiative-templates/_internal/getRecommendedTemplatesCatalog.d.ts +1 -1
- package/dist/types/initiatives/_internal/computeLinks.d.ts +1 -1
- package/dist/types/items/apply-properties-to-items.d.ts +1 -1
- package/dist/types/items/create-item-from-file.d.ts +1 -1
- package/dist/types/items/create-item-from-url-or-file.d.ts +1 -1
- package/dist/types/items/create-item-from-url.d.ts +1 -1
- package/dist/types/items/is-services-directory-disabled.d.ts +1 -1
- package/dist/types/items/normalize-solution-template-item.d.ts +1 -1
- package/dist/types/items/slugs.d.ts +1 -1
- package/dist/types/models/serializeModel.d.ts +1 -1
- package/dist/types/pages/_internal/computeLinks.d.ts +1 -1
- package/dist/types/projects/_internal/computeLinks.d.ts +1 -1
- package/dist/types/resources/_internal/_validate-url-helpers.d.ts +1 -1
- package/dist/types/resources/get-item-assets.d.ts +1 -1
- package/dist/types/resources/get-item-thumbnail-url.d.ts +1 -1
- package/dist/types/search/getUserGroupsByMembership.d.ts +1 -1
- package/dist/types/search/getUserGroupsFromQuery.d.ts +1 -1
- package/dist/types/search/wellKnownCatalog.d.ts +1 -1
- package/dist/types/sites/_internal/SiteBusinessRules.d.ts +1 -1
- package/dist/types/sites/_internal/computeLinks.d.ts +1 -1
- package/dist/types/sites/defaultSiteCollectionKeys.d.ts +2 -0
- package/dist/types/sites/index.d.ts +1 -0
- package/dist/types/surveys/fetch.d.ts +1 -1
- package/dist/types/surveys/utils/is-draft.d.ts +1 -1
- package/dist/types/surveys/utils/is-fieldworker-view.d.ts +1 -1
- package/dist/types/surveys/utils/is-survey123-connect.d.ts +1 -1
- package/dist/types/surveys/utils/should-display-map.d.ts +1 -1
- package/dist/types/templates/_internal/computeLinks.d.ts +1 -1
- package/dist/types/templates/utils.d.ts +1 -1
- package/dist/types/types.d.ts +1 -3
- package/dist/types/users/HubUsers.d.ts +1 -1
- package/dist/types/users/_internal/computeProps.d.ts +1 -1
- package/dist/types/utils/is-update-group.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
2
|
import { ICreateItemResponse } from "@esri/arcgis-rest-portal";
|
|
3
|
-
import { IItemAdd } from "@esri/arcgis-rest-
|
|
3
|
+
import { IItemAdd } from "@esri/arcgis-rest-types";
|
|
4
4
|
/**
|
|
5
5
|
* Creates an item in online from a local file/item.
|
|
6
6
|
* Upload is multithreaded as the item is chunked up.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
2
|
import { ICreateItemResponse, ISharingResponse } from "@esri/arcgis-rest-portal";
|
|
3
|
-
import { IGroup, IItemAdd } from "@esri/arcgis-rest-
|
|
3
|
+
import { IGroup, IItemAdd } from "@esri/arcgis-rest-types";
|
|
4
4
|
interface ICreateItemFromUrlOrFileOptions extends IUserRequestOptions {
|
|
5
5
|
item: IItemAdd;
|
|
6
6
|
groups?: IGroup[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
2
|
import { ICreateItemResponse } from "@esri/arcgis-rest-portal";
|
|
3
|
-
import { IItemAdd } from "@esri/arcgis-rest-
|
|
3
|
+
import { IItemAdd } from "@esri/arcgis-rest-types";
|
|
4
4
|
/**
|
|
5
5
|
* Create AGO item from a URL
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
-
import { IItem } from "@esri/arcgis-rest-
|
|
2
|
+
import { IItem } from "@esri/arcgis-rest-types";
|
|
3
3
|
/**
|
|
4
4
|
* Checks if a server's services directory is disabled. Consider hoisting this to RESTJS
|
|
5
5
|
* @param idOrItem A feature service ID or item
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
-
import { IItem } from "@esri/arcgis-rest-
|
|
2
|
+
import { IItem } from "@esri/arcgis-rest-types";
|
|
3
3
|
/**
|
|
4
4
|
* Create a slug, namespaced to an org and accounting for the 256 character limit
|
|
5
5
|
* of individual typekeywords. Typically used to lookup items by a human readable name in urls
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
-
import { IItem } from "@esri/arcgis-rest-
|
|
2
|
+
import { IItem } from "@esri/arcgis-rest-types";
|
|
3
3
|
import { IHubEntityLinks } from "../../core";
|
|
4
4
|
/**
|
|
5
5
|
* Compute the links that get appended to a Hub Project
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IExtent, IFeatureServiceDefinition, ILayerDefinition } from "@esri/arcgis-rest-
|
|
1
|
+
import { IExtent, IFeatureServiceDefinition, ILayerDefinition } from "@esri/arcgis-rest-types";
|
|
2
2
|
import { ItemType } from "../../types";
|
|
3
3
|
/**
|
|
4
4
|
* Feature service / Doc Links Should not have data urls. Let"s exclude them from that.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IHubRequestOptions, ITemplateAsset } from "../types";
|
|
2
|
-
import { IItem } from "@esri/arcgis-rest-
|
|
2
|
+
import { IItem } from "@esri/arcgis-rest-types";
|
|
3
3
|
/**
|
|
4
4
|
* Given an item, return an array of assets that includes
|
|
5
5
|
* all the resources, as well as the thumbnail
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
-
import { IItem } from "@esri/arcgis-rest-
|
|
2
|
+
import { IItem } from "@esri/arcgis-rest-types";
|
|
3
3
|
import { IPortal } from "@esri/arcgis-rest-portal";
|
|
4
4
|
import { IHubRequestOptions } from "../types";
|
|
5
5
|
export interface IThumbnailOptions {
|
|
@@ -7,7 +7,7 @@ export declare const SiteDefaultFeatures: IFeatureFlags;
|
|
|
7
7
|
* Site Permissions
|
|
8
8
|
* This feeds into the Permissions type
|
|
9
9
|
*/
|
|
10
|
-
export declare const SitePermissions: readonly ["hub:site", "hub:site:create", "hub:site:delete", "hub:site:edit", "hub:site:view", "hub:site:owner", "hub:site:canChangeAccess", "hub:site:events", "hub:site:content", "hub:site:discussions", "hub:site:feature:follow", "hub:site:feature:discussions", "hub:site:workspace", "hub:site:workspace:overview", "hub:site:workspace:dashboard", "hub:site:workspace:details", "hub:site:workspace:settings", "hub:site:workspace:collaborators", "hub:site:workspace:content", "hub:site:workspace:metrics", "hub:site:workspace:followers", "hub:site:workspace:followers:member", "hub:site:workspace:followers:manager", "hub:site:workspace:followers:create", "hub:site:workspace:discussion", "hub:site:workspace:pages", "hub:site:workspace:events", "hub:site:workspace:projects", "hub:site:workspace:initiatives", "hub:site:manage", "hub:site:workspace:feeds"];
|
|
10
|
+
export declare const SitePermissions: readonly ["hub:site", "hub:site:create", "hub:site:delete", "hub:site:edit", "hub:site:view", "hub:site:owner", "hub:site:canChangeAccess", "hub:site:events", "hub:site:content", "hub:site:discussions", "hub:site:feature:follow", "hub:site:feature:discussions", "hub:site:workspace", "hub:site:workspace:overview", "hub:site:workspace:dashboard", "hub:site:workspace:details", "hub:site:workspace:settings", "hub:site:workspace:collaborators", "hub:site:workspace:content", "hub:site:workspace:catalog", "hub:site:workspace:catalog:content", "hub:site:workspace:catalog:events", "hub:site:workspace:metrics", "hub:site:workspace:followers", "hub:site:workspace:followers:member", "hub:site:workspace:followers:manager", "hub:site:workspace:followers:create", "hub:site:workspace:discussion", "hub:site:workspace:pages", "hub:site:workspace:events", "hub:site:workspace:projects", "hub:site:workspace:initiatives", "hub:site:manage", "hub:site:workspace:feeds"];
|
|
11
11
|
/**
|
|
12
12
|
* Site permission policies
|
|
13
13
|
* @private
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { IItem, IUser, IGroup } from "@esri/arcgis-rest-
|
|
1
|
+
import { IItem, IUser, IGroup, IPolygon, ISpatialReference, IGeometry } from "@esri/arcgis-rest-types";
|
|
2
2
|
import { IPortal, ISearchResult } from "@esri/arcgis-rest-portal";
|
|
3
3
|
import { UserSession } from "@esri/arcgis-rest-auth";
|
|
4
4
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
5
|
-
import { IGeometry } from "@esri/arcgis-rest-feature-layer";
|
|
6
|
-
import { IPolygon, ISpatialReference } from "@esri/arcgis-rest-types";
|
|
7
5
|
/**
|
|
8
6
|
* Generic Model, used with all items that have a json
|
|
9
7
|
* `/data` payload
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUser } from "@esri/arcgis-rest-
|
|
1
|
+
import { IUser } from "@esri/arcgis-rest-types";
|
|
2
2
|
import { IHubUser } from "../core/types/IHubUser";
|
|
3
3
|
import { IHubRequestOptions } from "../types";
|
|
4
4
|
import { IHubSearchResult } from "../search/types/IHubSearchResult";
|