@esri/hub-common 15.43.0 → 15.44.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/content/_internal/internalContentUtils.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/groups/add-users-workflow/utils/_get-email-users.js +1 -1
- package/dist/esm/groups/add-users-workflow/utils/_get-email-users.js.map +1 -1
- package/dist/esm/groups/add-users-workflow/utils/_get-invite-users.js +1 -1
- package/dist/esm/groups/add-users-workflow/utils/_get-invite-users.js.map +1 -1
- package/dist/esm/hub-types.js.map +1 -1
- package/dist/esm/metrics/resolveMetric.js.map +1 -1
- package/dist/esm/resources/fetch-and-upload-resource.js +2 -2
- package/dist/esm/resources/fetch-and-upload-resource.js.map +1 -1
- package/dist/esm/resources/fetch-and-upload-thumbnail.js +6 -6
- package/dist/esm/resources/fetch-and-upload-thumbnail.js.map +1 -1
- package/dist/esm/search/_internal/hubSearchItemsHelpers/getFieldsQueryParam.js +15 -0
- package/dist/esm/search/_internal/hubSearchItemsHelpers/getFieldsQueryParam.js.map +1 -0
- package/dist/esm/search/_internal/hubSearchItemsHelpers/getFilterQueryParam.js +8 -2
- package/dist/esm/search/_internal/hubSearchItemsHelpers/getFilterQueryParam.js.map +1 -1
- package/dist/esm/search/_internal/hubSearchItemsHelpers/getFlattenQueryParam.js +15 -0
- package/dist/esm/search/_internal/hubSearchItemsHelpers/getFlattenQueryParam.js.map +1 -0
- package/dist/esm/search/_internal/hubSearchItemsHelpers/getOgcItemQueryParams.js +6 -0
- package/dist/esm/search/_internal/hubSearchItemsHelpers/getOgcItemQueryParams.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/content/_internal/internalContentUtils.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/groups/add-users-workflow/utils/_get-email-users.js +1 -1
- package/dist/node/groups/add-users-workflow/utils/_get-email-users.js.map +1 -1
- package/dist/node/groups/add-users-workflow/utils/_get-invite-users.js +1 -1
- package/dist/node/groups/add-users-workflow/utils/_get-invite-users.js.map +1 -1
- package/dist/node/hub-types.js.map +1 -1
- package/dist/node/metrics/resolveMetric.js.map +1 -1
- package/dist/node/resources/fetch-and-upload-resource.js +1 -1
- package/dist/node/resources/fetch-and-upload-thumbnail.js +6 -6
- package/dist/node/resources/fetch-and-upload-thumbnail.js.map +1 -1
- package/dist/node/search/_internal/hubSearchItemsHelpers/getFieldsQueryParam.js +19 -0
- package/dist/node/search/_internal/hubSearchItemsHelpers/getFieldsQueryParam.js.map +1 -0
- package/dist/node/search/_internal/hubSearchItemsHelpers/getFilterQueryParam.js +8 -2
- package/dist/node/search/_internal/hubSearchItemsHelpers/getFilterQueryParam.js.map +1 -1
- package/dist/node/search/_internal/hubSearchItemsHelpers/getFlattenQueryParam.js +19 -0
- package/dist/node/search/_internal/hubSearchItemsHelpers/getFlattenQueryParam.js.map +1 -0
- package/dist/node/search/_internal/hubSearchItemsHelpers/getOgcItemQueryParams.js +6 -0
- package/dist/node/search/_internal/hubSearchItemsHelpers/getOgcItemQueryParams.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/channels/_internal/transformChannelToEntity.d.ts +1 -1
- package/dist/types/content/_internal/internalContentUtils.d.ts +3 -3
- package/dist/types/content/edit.d.ts +1 -1
- package/dist/types/content/manageSchedule.d.ts +1 -1
- 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/traits/IWithBannerImage.d.ts +1 -1
- package/dist/types/core/traits/IWithLayout.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 +2 -1
- package/dist/types/discussions/api/types.d.ts +1 -1
- package/dist/types/discussions/api/utils/channels/can-create-channel-v2.d.ts +1 -1
- package/dist/types/discussions/api/utils/channels/can-delete-channel-v2.d.ts +1 -1
- package/dist/types/discussions/api/utils/channels/can-edit-channel-v2.d.ts +1 -1
- package/dist/types/discussions/api/utils/channels/can-read-channel-v2.d.ts +1 -1
- package/dist/types/discussions/api/utils/channels/can-read-channel.d.ts +1 -1
- package/dist/types/discussions/api/utils/posts/can-create-post-v2.d.ts +1 -1
- package/dist/types/discussions/api/utils/posts/can-create-reply-v2.d.ts +1 -1
- package/dist/types/discussions/api/utils/posts/can-delete-post-v2.d.ts +1 -1
- package/dist/types/discussions/api/utils/posts/can-edit-post-status-v2.d.ts +1 -1
- package/dist/types/discussions/api/utils/posts/can-edit-post-v2.d.ts +1 -1
- package/dist/types/discussions/api/utils/reactions/can-create-reaction-v2.d.ts +1 -1
- package/dist/types/discussions/api/utils/reactions/can-create-reaction.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 +2 -1
- package/dist/types/groups/HubGroups.d.ts +2 -2
- 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/_internal/getUniqueGroupTitle.d.ts +1 -1
- package/dist/types/groups/add-users-workflow/utils/_can-email-user.d.ts +1 -1
- package/dist/types/groups/add-users-workflow/utils/_get-email-users.d.ts +1 -1
- package/dist/types/groups/add-users-workflow/utils/_get-invite-users.d.ts +1 -1
- package/dist/types/groups/addGroupMembers.d.ts +1 -1
- package/dist/types/groups/autoAddUsers.d.ts +1 -1
- package/dist/types/groups/defaults.d.ts +1 -1
- package/dist/types/groups/deleteGroupThumbnail.d.ts +1 -1
- package/dist/types/groups/emailOrgUsers.d.ts +1 -1
- package/dist/types/groups/inviteUsers.d.ts +1 -1
- package/dist/types/groups/isOpenDataGroup.d.ts +1 -1
- package/dist/types/groups/setGroupThumbnail.d.ts +1 -1
- package/dist/types/hub-types.d.ts +3 -2
- 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/initiative-templates/edit.d.ts +1 -1
- package/dist/types/initiatives/HubInitiatives.d.ts +1 -1
- package/dist/types/initiatives/_internal/computeLinks.d.ts +1 -1
- package/dist/types/items/_internal/_prepare-upload-requests.d.ts +1 -1
- package/dist/types/items/_internal/_wait-for-item-ready.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 +2 -2
- package/dist/types/items/create-item-from-url-or-file.d.ts +2 -2
- package/dist/types/items/create-item-from-url.d.ts +2 -2
- package/dist/types/items/deleteItemThumbnail.d.ts +1 -1
- package/dist/types/items/fail-safe-update.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/setItemThumbnail.d.ts +1 -1
- package/dist/types/items/slugs.d.ts +1 -1
- package/dist/types/items/uploadImageResource.d.ts +1 -1
- package/dist/types/models/index.d.ts +1 -1
- package/dist/types/models/serializeModel.d.ts +1 -1
- package/dist/types/org/fetchOrgLimits.d.ts +1 -1
- package/dist/types/pages/HubPages.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/projects/edit.d.ts +1 -1
- package/dist/types/resources/_internal/_validate-url-helpers.d.ts +1 -1
- package/dist/types/resources/doesResourceExist.d.ts +1 -1
- package/dist/types/resources/fetch-and-upload-resource.d.ts +1 -1
- package/dist/types/resources/fetch-and-upload-thumbnail.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/resources/removeResource.d.ts +1 -1
- package/dist/types/resources/upsertResource.d.ts +1 -1
- package/dist/types/search/_internal/hubSearchItemsHelpers/getFieldsQueryParam.d.ts +11 -0
- package/dist/types/search/_internal/hubSearchItemsHelpers/getFlattenQueryParam.d.ts +11 -0
- package/dist/types/search/_internal/hubSearchItemsHelpers/getOgcItemQueryParams.d.ts +2 -0
- package/dist/types/search/getUserGroupsByMembership.d.ts +1 -1
- package/dist/types/search/getUserGroupsFromQuery.d.ts +1 -1
- package/dist/types/search/types/IHubSearchOptions.d.ts +1 -1
- package/dist/types/search/wellKnownCatalog.d.ts +1 -1
- package/dist/types/sites/_internal/computeLinks.d.ts +1 -1
- package/dist/types/surveys/edit.d.ts +1 -1
- 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/edit.d.ts +1 -1
- package/dist/types/templates/utils.d.ts +1 -1
- package/dist/types/types/IArcGISContext.d.ts +1 -1
- package/dist/types/types/IArcGISContextManagerOptions.d.ts +2 -2
- package/dist/types/types/IArcGISContextOptions.d.ts +2 -2
- 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,4 +1,4 @@
|
|
|
1
|
-
import { ISpatialReference } from "@esri/arcgis-rest-
|
|
1
|
+
import type { ISpatialReference } from "@esri/arcgis-rest-feature-layer";
|
|
2
2
|
import { IHubLocationType } from "./types";
|
|
3
3
|
import { HubEntityType } from "./HubEntityType";
|
|
4
4
|
import { IGeometryInstance } from "../..";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IQuery } from "../../search/types/IHubCatalog";
|
|
2
|
-
import {
|
|
2
|
+
import type { IField } from "@esri/arcgis-rest-feature-layer";
|
|
3
|
+
import type { FieldType } from "@esri/arcgis-rest-types";
|
|
3
4
|
import { IReference } from "./IReference";
|
|
4
5
|
import { IGeometryInstance, ServiceAggregation } from "../../core/types";
|
|
5
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPagingParams, IPagedResponse as IRestPagedResponse, IUser } from "@esri/arcgis-rest-
|
|
1
|
+
import { IPagingParams, IPagedResponse as IRestPagedResponse, IUser } from "@esri/arcgis-rest-portal";
|
|
2
2
|
import { Geometry, Polygon } from "geojson";
|
|
3
3
|
import { IHubRequestOptions } from "../../hub-types";
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IGroup, IItem } from "@esri/arcgis-rest-
|
|
1
|
+
import type { IGroup, IItem } from "@esri/arcgis-rest-portal";
|
|
2
2
|
import { IHubContent, IHubItemEntity } from "../core";
|
|
3
3
|
import { IChannel, SharingAccess } from "./api/types";
|
|
4
4
|
import { IHubSearchResult, IQuery } from "../search";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IGroup } from "@esri/arcgis-rest-
|
|
1
|
+
import type { IGroup } from "@esri/arcgis-rest-portal";
|
|
2
2
|
import { HubItemEntity } from "../core/HubItemEntity";
|
|
3
3
|
import { IHubEventEditor, IHubEvent } from "../core/types/IHubEvent";
|
|
4
4
|
import { IWithEditorBehavior } from "../core/behaviors";
|
package/dist/types/extent.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IExtent
|
|
1
|
+
import type { IExtent } from "@esri/arcgis-rest-feature-layer";
|
|
2
|
+
import type { IPoint, IPolygon } from "@esri/arcgis-rest-types";
|
|
2
3
|
import { IHubRequestOptions, BBox } from "./hub-types";
|
|
3
4
|
import { Polygon } from "geojson";
|
|
4
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IGroup } from "@esri/arcgis-rest-
|
|
1
|
+
import type { IGroup } from "@esri/arcgis-rest-portal";
|
|
2
2
|
import { IHubRequestOptions } from "../hub-types";
|
|
3
3
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
4
4
|
import { IHubGroup } from "../core/types/IHubGroup";
|
|
5
|
-
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
5
|
+
import type { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
6
6
|
import { IHubSearchResult } from "../search/types/IHubSearchResult";
|
|
7
7
|
/**
|
|
8
8
|
* Enrich a generic search result
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
2
|
import { IHubGroup } from "../../core/types/IHubGroup";
|
|
3
|
-
import { IGroup } from "@esri/arcgis-rest-
|
|
3
|
+
import type { IGroup } from "@esri/arcgis-rest-portal";
|
|
4
4
|
/**
|
|
5
5
|
* Given a model and a group, set various computed properties that can't be directly mapped
|
|
6
6
|
* @private
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAddGroupMembersResult } from "./types";
|
|
2
|
-
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
|
+
import type { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
3
3
|
/**
|
|
4
4
|
* Add or invite N users to a single group.
|
|
5
5
|
* If autoAdd is true (if the user doing the adding has the 'portal:admin:assignToGroups' priv)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUser } from "@esri/arcgis-rest-
|
|
1
|
+
import type { IUser } from "@esri/arcgis-rest-portal";
|
|
2
2
|
import { ICreateOrgNotificationResult } from "@esri/arcgis-rest-portal";
|
|
3
3
|
import { IAuthenticationManager } from "@esri/arcgis-rest-request";
|
|
4
4
|
import { IEmail } from "./types";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IGroup } from "@esri/arcgis-rest-
|
|
1
|
+
import type { IGroup } from "@esri/arcgis-rest-portal";
|
|
2
2
|
export declare const isOpenDataGroup: (group: IGroup) => boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IItem, IUser, IGroup
|
|
1
|
+
import type { IItem, IUser, IGroup } from "@esri/arcgis-rest-portal";
|
|
2
|
+
import type { IPolygon, ISpatialReference, IGeometry } from "@esri/arcgis-rest-types";
|
|
2
3
|
import { IPortal, ISearchResult } from "@esri/arcgis-rest-portal";
|
|
3
|
-
import { UserSession } from "@esri/arcgis-rest-auth";
|
|
4
|
+
import type { UserSession } from "@esri/arcgis-rest-auth";
|
|
4
5
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
5
6
|
/**
|
|
6
7
|
* App keys for User Resources used in Hub
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
-
import { IItem } from "@esri/arcgis-rest-
|
|
2
|
+
import type { IItem } from "@esri/arcgis-rest-portal";
|
|
3
3
|
import { IHubEntityLinks } from "../../core";
|
|
4
4
|
/**
|
|
5
5
|
* Compute the links that get appended to a Hub Initiative Template
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IUser } from "@esri/arcgis-rest-
|
|
1
|
+
import type { IUser } from "@esri/arcgis-rest-portal";
|
|
2
2
|
export declare const getRecommendedTemplatesCatalog: (user: IUser, i18nScope: string) => import("../../search").IHubCatalog[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
1
|
+
import type { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
2
|
import { IHubRequestOptions, IHubInitiativeEditor } from "../index";
|
|
3
3
|
import { IQuery } from "../search/types/IHubCatalog";
|
|
4
4
|
import { IItem } from "@esri/arcgis-rest-portal";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
-
import { IItem } from "@esri/arcgis-rest-
|
|
2
|
+
import type { IItem } from "@esri/arcgis-rest-portal";
|
|
3
3
|
import { IHubEntityLinks } from "../../core";
|
|
4
4
|
/**
|
|
5
5
|
* Compute the links that get appended to a Hub Initiative
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
1
|
+
import type { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
2
|
import { ICreateItemResponse } from "@esri/arcgis-rest-portal";
|
|
3
|
-
import { IItemAdd } from "@esri/arcgis-rest-
|
|
3
|
+
import type { IItemAdd } from "@esri/arcgis-rest-portal";
|
|
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
|
-
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
1
|
+
import type { 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 type { IGroup, IItemAdd } from "@esri/arcgis-rest-portal";
|
|
4
4
|
interface ICreateItemFromUrlOrFileOptions extends IUserRequestOptions {
|
|
5
5
|
item: IItemAdd;
|
|
6
6
|
groups?: IGroup[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
1
|
+
import type { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
2
|
import { ICreateItemResponse } from "@esri/arcgis-rest-portal";
|
|
3
|
-
import { IItemAdd } from "@esri/arcgis-rest-
|
|
3
|
+
import type { IItemAdd } from "@esri/arcgis-rest-portal";
|
|
4
4
|
/**
|
|
5
5
|
* Create AGO item from a URL
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IModel } from "../hub-types";
|
|
2
|
-
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
|
+
import type { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
3
3
|
/**
|
|
4
4
|
* Update a model's item, wrapped in a failSafe so this will not blow up if
|
|
5
5
|
* the user lacks rights somehow. This should be used in places where there is
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
-
import { IItem } from "@esri/arcgis-rest-
|
|
2
|
+
import type { IItem } from "@esri/arcgis-rest-portal";
|
|
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 type { IItem } from "@esri/arcgis-rest-portal";
|
|
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
|
export * from "./serializeModel";
|
|
2
|
-
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
|
+
import type { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
3
3
|
import { IItem } from "@esri/arcgis-rest-portal";
|
|
4
4
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
5
5
|
import { IModel } from "../hub-types";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
1
|
+
import type { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
2
|
export declare type OrgLimitType = "ScheduleTask" | "Collaboration" | "Community" | "Groups" | "Content";
|
|
3
3
|
/**
|
|
4
4
|
* Definiton of the org limits response.
|
|
@@ -3,7 +3,7 @@ import { IHubRequestOptions, IModel } from "../hub-types";
|
|
|
3
3
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
4
4
|
import { IItem } from "@esri/arcgis-rest-portal";
|
|
5
5
|
import { IHubPage } from "../core";
|
|
6
|
-
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
6
|
+
import type { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
7
7
|
import { IFetchItemOptions } from "../items/fetch";
|
|
8
8
|
/**
|
|
9
9
|
* @private
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
2
|
-
import { IItem } from "@esri/arcgis-rest-
|
|
2
|
+
import type { IItem } from "@esri/arcgis-rest-portal";
|
|
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 type { IExtent, IFeatureServiceDefinition, ILayerDefinition } from "@esri/arcgis-rest-feature-layer";
|
|
2
2
|
import { ItemType } from "../../hub-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 { IItemResourceResponse } from "@esri/arcgis-rest-portal";
|
|
2
|
-
import { UserSession } from "@esri/arcgis-rest-auth";
|
|
2
|
+
import type { UserSession } from "@esri/arcgis-rest-auth";
|
|
3
3
|
/**
|
|
4
4
|
* Fetch image from a url, and upload as a resource
|
|
5
5
|
* @param {Object} options {id, owner, fileName, url, authentication}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IHubRequestOptions, ITemplateAsset } from "../hub-types";
|
|
2
|
-
import { IItem } from "@esri/arcgis-rest-
|
|
2
|
+
import type { IItem } from "@esri/arcgis-rest-portal";
|
|
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 type { IItem } from "@esri/arcgis-rest-portal";
|
|
3
3
|
import { IPortal } from "@esri/arcgis-rest-portal";
|
|
4
4
|
import { IHubRequestOptions } from "../hub-types";
|
|
5
5
|
export interface IThumbnailOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
1
|
+
import type { IUserRequestOptions } from "@esri/arcgis-rest-auth";
|
|
2
2
|
/**
|
|
3
3
|
* Given an item, and owner, Search for if the resource exists
|
|
4
4
|
* and if does, update it, otherwise add it. Returns a url for the item.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IQuery } from "../../types/IHubCatalog";
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* Extracts the fields value that the search should be filtered by.
|
|
5
|
+
* Also validates that the fields predicate is not combined in some
|
|
6
|
+
* invalid way with other predicates.
|
|
7
|
+
*
|
|
8
|
+
* @param query query to extract the fields predicate from
|
|
9
|
+
* @returns the fields value to filter by
|
|
10
|
+
*/
|
|
11
|
+
export declare function getFieldsQueryParam(query: IQuery): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IQuery } from "../../types/IHubCatalog";
|
|
2
|
+
/**
|
|
3
|
+
* @private
|
|
4
|
+
* Extracts the flatten value that the search should be filtered by.
|
|
5
|
+
* Also validates that the flatten predicate is not combined in some
|
|
6
|
+
* invalid way with other predicates.
|
|
7
|
+
*
|
|
8
|
+
* @param query query to extract the flatten predicate from
|
|
9
|
+
* @returns the flatten value to filter by
|
|
10
|
+
*/
|
|
11
|
+
export declare function getFlattenQueryParam(query: IQuery): boolean;
|