@esri/hub-common 9.18.0 → 9.21.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/es2017/content/_internal.js +211 -20
- package/dist/es2017/content/_internal.js.map +1 -1
- package/dist/es2017/content/compose.js +610 -0
- package/dist/es2017/content/compose.js.map +1 -0
- package/dist/es2017/content/get-family.js +42 -0
- package/dist/es2017/content/get-family.js.map +1 -0
- package/dist/es2017/content/index.js +42 -468
- package/dist/es2017/content/index.js.map +1 -1
- package/dist/es2017/core/types/IHubAdditionalResource.js +1 -0
- package/dist/es2017/core/types/IHubAdditionalResource.js.map +1 -0
- package/dist/es2017/core/types/IHubContentEnrichments.js +1 -0
- package/dist/es2017/core/types/IHubContentEnrichments.js.map +1 -0
- package/dist/es2017/core/types/IServerEnrichments.js +1 -0
- package/dist/es2017/core/types/IServerEnrichments.js.map +1 -0
- package/dist/es2017/core/types/index.js +2 -1
- package/dist/es2017/core/types/index.js.map +1 -1
- package/dist/es2017/projects/HubProjects.js +15 -16
- package/dist/es2017/projects/HubProjects.js.map +1 -1
- package/dist/es2017/search/_searchContent.js +18 -20
- package/dist/es2017/search/_searchContent.js.map +1 -1
- package/dist/es2017/search/_searchGroups.js +18 -19
- package/dist/es2017/search/_searchGroups.js.map +1 -1
- package/dist/es2017/search/_searchUsers.js +16 -16
- package/dist/es2017/search/_searchUsers.js.map +1 -1
- package/dist/es2017/sites/domains/index.js +1 -0
- package/dist/es2017/sites/domains/index.js.map +1 -1
- package/dist/es2017/sites/domains/remove-domains-by-site-id.js +20 -0
- package/dist/es2017/sites/domains/remove-domains-by-site-id.js.map +1 -0
- package/dist/esm/content/_internal.js +214 -21
- package/dist/esm/content/_internal.js.map +1 -1
- package/dist/esm/content/compose.js +603 -0
- package/dist/esm/content/compose.js.map +1 -0
- package/dist/esm/content/get-family.js +42 -0
- package/dist/esm/content/get-family.js.map +1 -0
- package/dist/esm/content/index.js +44 -476
- package/dist/esm/content/index.js.map +1 -1
- package/dist/esm/core/types/IHubAdditionalResource.js +1 -0
- package/dist/esm/core/types/IHubAdditionalResource.js.map +1 -0
- package/dist/esm/core/types/IHubContentEnrichments.js +1 -0
- package/dist/esm/core/types/IHubContentEnrichments.js.map +1 -0
- package/dist/esm/core/types/IServerEnrichments.js +1 -0
- package/dist/esm/core/types/IServerEnrichments.js.map +1 -0
- package/dist/esm/core/types/index.js +2 -1
- package/dist/esm/core/types/index.js.map +1 -1
- package/dist/esm/projects/HubProjects.js +14 -17
- package/dist/esm/projects/HubProjects.js.map +1 -1
- package/dist/esm/search/_searchContent.js +22 -26
- package/dist/esm/search/_searchContent.js.map +1 -1
- package/dist/esm/search/_searchGroups.js +20 -23
- package/dist/esm/search/_searchGroups.js.map +1 -1
- package/dist/esm/search/_searchUsers.js +17 -19
- package/dist/esm/search/_searchUsers.js.map +1 -1
- package/dist/esm/sites/domains/index.js +1 -0
- package/dist/esm/sites/domains/index.js.map +1 -1
- package/dist/esm/sites/domains/remove-domains-by-site-id.js +20 -0
- package/dist/esm/sites/domains/remove-domains-by-site-id.js.map +1 -0
- package/dist/node/content/_internal.js +216 -22
- package/dist/node/content/_internal.js.map +1 -1
- package/dist/node/content/compose.js +615 -0
- package/dist/node/content/compose.js.map +1 -0
- package/dist/node/content/get-family.js +46 -0
- package/dist/node/content/get-family.js.map +1 -0
- package/dist/node/content/index.js +48 -477
- package/dist/node/content/index.js.map +1 -1
- package/dist/node/core/types/IHubAdditionalResource.js +3 -0
- package/dist/node/core/types/IHubAdditionalResource.js.map +1 -0
- package/dist/node/core/types/IHubContentEnrichments.js +3 -0
- package/dist/node/core/types/IHubContentEnrichments.js.map +1 -0
- package/dist/node/core/types/{IContentEnrichments.js → IServerEnrichments.js} +1 -1
- package/dist/node/core/types/IServerEnrichments.js.map +1 -0
- package/dist/node/core/types/index.js +2 -1
- package/dist/node/core/types/index.js.map +1 -1
- package/dist/node/projects/HubProjects.js +15 -16
- package/dist/node/projects/HubProjects.js.map +1 -1
- package/dist/node/search/_searchContent.js +17 -19
- package/dist/node/search/_searchContent.js.map +1 -1
- package/dist/node/search/_searchGroups.js +17 -18
- package/dist/node/search/_searchGroups.js.map +1 -1
- package/dist/node/search/_searchUsers.js +15 -15
- package/dist/node/search/_searchUsers.js.map +1 -1
- package/dist/node/sites/domains/index.js +1 -0
- package/dist/node/sites/domains/index.js.map +1 -1
- package/dist/node/sites/domains/remove-domains-by-site-id.js +24 -0
- package/dist/node/sites/domains/remove-domains-by-site-id.js.map +1 -0
- package/dist/types/content/_internal.d.ts +101 -22
- package/dist/types/content/compose.d.ts +115 -0
- package/dist/types/content/get-family.d.ts +7 -0
- package/dist/types/content/index.d.ts +4 -86
- package/dist/types/core/types/IHubAdditionalResource.d.ts +10 -0
- package/dist/types/core/types/IHubContent.d.ts +9 -3
- package/dist/types/core/types/IHubContentEnrichments.d.ts +15 -0
- package/dist/types/core/types/IHubItemEntity.d.ts +1 -1
- package/dist/types/core/types/{IContentEnrichments.d.ts → IServerEnrichments.d.ts} +3 -2
- package/dist/types/core/types/index.d.ts +2 -1
- package/dist/types/sites/domains/index.d.ts +1 -0
- package/dist/types/sites/domains/remove-domains-by-site-id.d.ts +8 -0
- package/dist/umd/common.umd.js +1071 -648
- package/dist/umd/common.umd.js.map +1 -1
- package/dist/umd/common.umd.min.js +1 -1
- package/dist/umd/common.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/es2017/core/types/IContentEnrichments.js +0 -1
- package/dist/es2017/core/types/IContentEnrichments.js.map +0 -1
- package/dist/esm/core/types/IContentEnrichments.js +0 -1
- package/dist/esm/core/types/IContentEnrichments.js.map +0 -1
- package/dist/node/core/types/IContentEnrichments.js.map +0 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { IItem } from "@esri/arcgis-rest-portal";
|
|
2
|
+
import { IHubRequestOptions } from "../types";
|
|
3
|
+
import { IHubContentEnrichments, IHubContent } from "../core";
|
|
4
|
+
/**
|
|
5
|
+
* The possible values for updateFrequency
|
|
6
|
+
*
|
|
7
|
+
* @enum {string}
|
|
8
|
+
*/
|
|
9
|
+
export declare enum UpdateFrequency {
|
|
10
|
+
Continual = "continual",
|
|
11
|
+
Daily = "daily",
|
|
12
|
+
Weekly = "weekly",
|
|
13
|
+
Fortnightly = "fortnightly",
|
|
14
|
+
Monthly = "monthly",
|
|
15
|
+
Quarterly = "quarterly",
|
|
16
|
+
Biannually = "biannually",
|
|
17
|
+
Annually = "annually",
|
|
18
|
+
AsNeeded = "as-needed",
|
|
19
|
+
Irregular = "irregular",
|
|
20
|
+
NotPlanned = "not-planned",
|
|
21
|
+
Unknown = "unknown",
|
|
22
|
+
Semimonthly = "semimonthly"
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* DEPRECATED: Compute the content type icon based on the content type
|
|
26
|
+
* @param content type
|
|
27
|
+
* @returns content type icon
|
|
28
|
+
*/
|
|
29
|
+
export declare const getContentTypeIcon: (contentType: string) => any;
|
|
30
|
+
/**
|
|
31
|
+
* get portal URLs (home, API, data, and thumbnail) for an item
|
|
32
|
+
*
|
|
33
|
+
* @param item Item
|
|
34
|
+
* @param requestOptions Request options
|
|
35
|
+
* @returns a hash with the portal URLs
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
38
|
+
export declare const getPortalUrls: (item: IItem, requestOptions: IHubRequestOptions) => {
|
|
39
|
+
portalHome: string;
|
|
40
|
+
portalApi: string;
|
|
41
|
+
portalData: string;
|
|
42
|
+
thumbnail: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* If an item is a proxied csv, returns the url for the proxying feature layer.
|
|
46
|
+
* If the item is not a proxied csv, returns undefined.
|
|
47
|
+
*
|
|
48
|
+
* @param item
|
|
49
|
+
* @param requestOptions Hub Request Options (including whether we're in portal)
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
52
|
+
export declare const getProxyUrl: (item: IItem, requestOptions?: IHubRequestOptions) => string;
|
|
53
|
+
/**
|
|
54
|
+
* parse layer id from a service URL
|
|
55
|
+
* @param {string} url
|
|
56
|
+
* @returns {string} layer id
|
|
57
|
+
*/
|
|
58
|
+
export declare const getLayerIdFromUrl: (url: string) => string;
|
|
59
|
+
/**
|
|
60
|
+
* Case-insensitive check if the type is "Feature Service"
|
|
61
|
+
* @param {string} type - item's type
|
|
62
|
+
* @returns {boolean}
|
|
63
|
+
*/
|
|
64
|
+
export declare const isFeatureService: (type: string) => boolean;
|
|
65
|
+
/**
|
|
66
|
+
* ```js
|
|
67
|
+
* import { normalizeItemType } from "@esri/hub-common";
|
|
68
|
+
* //
|
|
69
|
+
* normalizeItemType(item)
|
|
70
|
+
* > [ 'Hub Site Application' ]
|
|
71
|
+
* ```
|
|
72
|
+
* @param item Item object.
|
|
73
|
+
* @returns type of the input item.
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
export declare function normalizeItemType(item?: any): string;
|
|
77
|
+
/**
|
|
78
|
+
* return the layerId if we can tell that item is a single layer service
|
|
79
|
+
* @param {*} item from AGO
|
|
80
|
+
* @returns {string} layer id
|
|
81
|
+
*/
|
|
82
|
+
export declare const getItemLayerId: (item: IItem) => string;
|
|
83
|
+
/**
|
|
84
|
+
* given an item, get the id to use w/ the Hub API
|
|
85
|
+
* @param item
|
|
86
|
+
* @returns Hub API id (hubId)
|
|
87
|
+
*/
|
|
88
|
+
export declare const getItemHubId: (item: IItem) => string;
|
|
89
|
+
/**
|
|
90
|
+
* Splits item category strings at slashes and discards the "Categories" keyword
|
|
91
|
+
*
|
|
92
|
+
* ```
|
|
93
|
+
* ["/Categories/Boundaries", "/Categories/Planning and cadastre/Property records", "/Categories/Structure"]
|
|
94
|
+
* ```
|
|
95
|
+
* Should end up being
|
|
96
|
+
* ```
|
|
97
|
+
* ["Boundaries", "Planning and cadastre", "Property records", "Structure"]
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @param categories - an array of strings
|
|
101
|
+
* @private
|
|
102
|
+
*/
|
|
103
|
+
export declare function parseItemCategories(categories: string[]): string[];
|
|
104
|
+
export interface IComposeContentOptions extends IHubContentEnrichments {
|
|
105
|
+
layerId?: number;
|
|
106
|
+
slug?: string;
|
|
107
|
+
requestOptions?: IHubRequestOptions;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Compose a new content object out of an item, enrichments, and context
|
|
111
|
+
* @param item
|
|
112
|
+
* @param options any enrichments, current state (selected layerId), or context (requestOptions)
|
|
113
|
+
* @returns new content object
|
|
114
|
+
*/
|
|
115
|
+
export declare const composeContent: (item: IItem, options?: IComposeContentOptions) => IHubContent;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ResourceObject } from "jsonapi-typescript";
|
|
2
2
|
import { IItem } from "@esri/arcgis-rest-portal";
|
|
3
|
-
import { HubType,
|
|
4
|
-
import { IHubContent } from "
|
|
3
|
+
import { HubType, IModel } from "../types";
|
|
4
|
+
import { IHubContent } from "../core";
|
|
5
|
+
export * from "./compose";
|
|
6
|
+
export * from "./get-family";
|
|
5
7
|
/**
|
|
6
8
|
* JSONAPI dataset resource returned by the Hub API
|
|
7
9
|
*/
|
|
@@ -34,18 +36,6 @@ export declare function getCategory(itemType?: string): string;
|
|
|
34
36
|
*
|
|
35
37
|
*/
|
|
36
38
|
export declare function getTypes(category?: string): string[];
|
|
37
|
-
/**
|
|
38
|
-
* ```js
|
|
39
|
-
* import { normalizeItemType } from "@esri/hub-common";
|
|
40
|
-
* //
|
|
41
|
-
* normalizeItemType(item)
|
|
42
|
-
* > [ 'Hub Site Application' ]
|
|
43
|
-
* ```
|
|
44
|
-
* @param item Item object.
|
|
45
|
-
* @returns type of the input item.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
export declare function normalizeItemType(item?: any): string;
|
|
49
39
|
/**
|
|
50
40
|
* ```js
|
|
51
41
|
* import { getTypeCategories } from "@esri/hub-common";
|
|
@@ -58,42 +48,6 @@ export declare function normalizeItemType(item?: any): string;
|
|
|
58
48
|
*
|
|
59
49
|
*/
|
|
60
50
|
export declare function getTypeCategories(item?: any): string[];
|
|
61
|
-
/**
|
|
62
|
-
* ```js
|
|
63
|
-
* import { getCollection } from "@esri/hub-common";
|
|
64
|
-
* //
|
|
65
|
-
* getCollection('Feature Layer')
|
|
66
|
-
* > 'dataset'
|
|
67
|
-
* ```
|
|
68
|
-
* Get the Hub collection for a given item type
|
|
69
|
-
* @param itemType The ArcGIS [item type](https://developers.arcgis.com/rest/users-groups-and-items/items-and-item-types.htm).
|
|
70
|
-
* @returns the Hub collection of a given item type.
|
|
71
|
-
*/
|
|
72
|
-
export declare function getCollection(itemType?: string): string;
|
|
73
|
-
/**
|
|
74
|
-
* Case-insensitive check if the type is "Feature Service"
|
|
75
|
-
* @param {string} type - item's type
|
|
76
|
-
* @returns {boolean}
|
|
77
|
-
*/
|
|
78
|
-
export declare const isFeatureService: (type: string) => boolean;
|
|
79
|
-
/**
|
|
80
|
-
* parse layer id from a service URL
|
|
81
|
-
* @param {string} url
|
|
82
|
-
* @returns {string} layer id
|
|
83
|
-
*/
|
|
84
|
-
export declare const getLayerIdFromUrl: (url: string) => string;
|
|
85
|
-
/**
|
|
86
|
-
* return the layerId if we can tell that item is a single layer service
|
|
87
|
-
* @param {*} item from AGO
|
|
88
|
-
* @returns {string} layer id
|
|
89
|
-
*/
|
|
90
|
-
export declare const getItemLayerId: (item: IItem) => string;
|
|
91
|
-
/**
|
|
92
|
-
* given an item, get the id to use w/ the Hub API
|
|
93
|
-
* @param item
|
|
94
|
-
* @returns Hub API id (hubId)
|
|
95
|
-
*/
|
|
96
|
-
export declare const getItemHubId: (item: IItem) => string;
|
|
97
51
|
/**
|
|
98
52
|
* ```js
|
|
99
53
|
* import { getContentIdentifier } from "@esri/hub-common";
|
|
@@ -149,27 +103,6 @@ export declare function addContextToSlug(slug: string, context: string): string;
|
|
|
149
103
|
* @returns slug without context
|
|
150
104
|
*/
|
|
151
105
|
export declare function removeContextFromSlug(slug: string, context: string): string;
|
|
152
|
-
/**
|
|
153
|
-
* Splits item category strings at slashes and discards the "Categories" keyword
|
|
154
|
-
*
|
|
155
|
-
* ```
|
|
156
|
-
* ["/Categories/Boundaries", "/Categories/Planning and cadastre/Property records", "/Categories/Structure"]
|
|
157
|
-
* ```
|
|
158
|
-
* Should end up being
|
|
159
|
-
* ```
|
|
160
|
-
* ["Boundaries", "Planning and cadastre", "Property records", "Structure"]
|
|
161
|
-
* ```
|
|
162
|
-
*
|
|
163
|
-
* @param categories - an array of strings
|
|
164
|
-
* @private
|
|
165
|
-
*/
|
|
166
|
-
export declare function parseItemCategories(categories: string[]): string[];
|
|
167
|
-
/**
|
|
168
|
-
* return the Hub family given an item's type
|
|
169
|
-
* @param type item type
|
|
170
|
-
* @returns Hub family
|
|
171
|
-
*/
|
|
172
|
-
export declare function getFamily(type: string): HubFamily;
|
|
173
106
|
/**
|
|
174
107
|
* DEPRECATED: Use getFamily() instead.
|
|
175
108
|
*
|
|
@@ -210,12 +143,6 @@ export declare function datasetToItem(dataset: DatasetResource): IItem;
|
|
|
210
143
|
* @returns new content
|
|
211
144
|
*/
|
|
212
145
|
export declare const setContentType: (content: IHubContent, type: string) => IHubContent;
|
|
213
|
-
/**
|
|
214
|
-
* Compute the content type icon based on the content type
|
|
215
|
-
* @param content type
|
|
216
|
-
* @returns content type icon
|
|
217
|
-
*/
|
|
218
|
-
export declare const getContentTypeIcon: (contentType: string) => any;
|
|
219
146
|
/**
|
|
220
147
|
* Compute the content type label
|
|
221
148
|
* @param contentType
|
|
@@ -249,12 +176,3 @@ export declare const getContentSiteUrls: (content: IHubContent, siteModel: IMode
|
|
|
249
176
|
* @returns
|
|
250
177
|
*/
|
|
251
178
|
export declare const setContentSiteUrls: (content: IHubContent, siteModel: IModel) => IHubContent;
|
|
252
|
-
/**
|
|
253
|
-
* If an item is a proxied csv, returns the url for the proxying feature layer.
|
|
254
|
-
* If the item is not a proxied csv, returns undefined.
|
|
255
|
-
*
|
|
256
|
-
* @param item
|
|
257
|
-
* @param requestOptions Hub Request Options (including whether we're in portal)
|
|
258
|
-
* @returns
|
|
259
|
-
*/
|
|
260
|
-
export declare const getProxyUrl: (item: IItem, requestOptions: IHubRequestOptions) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data model for additional resources that are pulled from formal item metadata
|
|
3
|
+
* and transformed into a hub-friendly interface
|
|
4
|
+
*/
|
|
5
|
+
export interface IHubAdditionalResource {
|
|
6
|
+
name?: string;
|
|
7
|
+
url: string;
|
|
8
|
+
/** whether the url points to the service of the related item */
|
|
9
|
+
isDataSource: boolean;
|
|
10
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { IItem, IGroup } from "@esri/arcgis-rest-portal";
|
|
2
2
|
import { ILayerDefinition } from "@esri/arcgis-rest-feature-layer";
|
|
3
|
-
import {
|
|
3
|
+
import { AccessControl, HubFamily, IActionLink, Visibility } from "../../types";
|
|
4
|
+
import { IStructuredLicense } from "../../items/get-structured-license";
|
|
4
5
|
import { IHubItemEntity } from ".";
|
|
5
|
-
import {
|
|
6
|
+
import { IHubContentEnrichments } from "./IHubContentEnrichments";
|
|
7
|
+
import { IHubAdditionalResource } from "./IHubAdditionalResource";
|
|
6
8
|
/**
|
|
7
9
|
* Data model for content
|
|
8
10
|
*/
|
|
9
|
-
export interface IHubContent extends IHubItemEntity,
|
|
11
|
+
export interface IHubContent extends IHubItemEntity, IHubContentEnrichments, IItem {
|
|
10
12
|
/**
|
|
11
13
|
* The underlying portal item referenced by this content
|
|
12
14
|
*/
|
|
@@ -71,6 +73,10 @@ export interface IHubContent extends IHubItemEntity, IContentEnrichments, IItem
|
|
|
71
73
|
hubActions?: object;
|
|
72
74
|
/** Information about the layer referenced by this content (geometryType, fields, etc) */
|
|
73
75
|
layer?: Partial<ILayerDefinition>;
|
|
76
|
+
/** Whether or not the layer or table is actually a proxied CSV */
|
|
77
|
+
isProxied?: boolean;
|
|
78
|
+
/** links to additional resources specified in the formal item metadata */
|
|
79
|
+
additionalResources?: IHubAdditionalResource[];
|
|
74
80
|
itemCategories?: string[];
|
|
75
81
|
normalizedType?: string;
|
|
76
82
|
orgId?: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IHubGeography } from "../../types";
|
|
2
|
+
import { IItemEnrichments } from "./IItemEnrichments";
|
|
3
|
+
import { IServerEnrichments } from "./IServerEnrichments";
|
|
4
|
+
export interface IHubContentEnrichments extends IItemEnrichments, IServerEnrichments {
|
|
5
|
+
/**
|
|
6
|
+
* boundary will default to the item extent
|
|
7
|
+
* but can be overwritten by enrichments from the Hub API (inline)
|
|
8
|
+
* or fetched from a location such as /resources/boundary.json
|
|
9
|
+
*/
|
|
10
|
+
boundary?: IHubGeography;
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
statistics?: any;
|
|
15
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IFeatureServiceDefinition, ILayerDefinition } from "@esri/arcgis-rest-feature-layer";
|
|
2
|
-
|
|
3
|
-
export interface IContentEnrichments extends IItemEnrichments {
|
|
2
|
+
export interface IServerEnrichments {
|
|
4
3
|
/** Information about the service referenced by this content (currentVersion, capabilities, maxRecordCount etc) */
|
|
5
4
|
server?: Partial<IFeatureServiceDefinition>;
|
|
6
5
|
/** Detailed information about the service's layers (geometryType, fields, etc) for related layers in the service */
|
|
@@ -8,3 +7,5 @@ export interface IContentEnrichments extends IItemEnrichments {
|
|
|
8
7
|
/** The count of records for the layer referenced by this content */
|
|
9
8
|
recordCount?: number;
|
|
10
9
|
}
|
|
10
|
+
export interface IContentEnrichments extends IServerEnrichments {
|
|
11
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./IContentEnrichments";
|
|
2
1
|
export * from "./IItemEnrichments";
|
|
2
|
+
export * from "./IHubContentEnrichments";
|
|
3
3
|
export * from "./IHubContent";
|
|
4
4
|
export * from "./IHubEntityBase";
|
|
5
5
|
export * from "./IHubItemEntity";
|
|
@@ -12,3 +12,4 @@ export * from "./IHubPage";
|
|
|
12
12
|
export * from "./IHubProject";
|
|
13
13
|
export * from "./IHubSite";
|
|
14
14
|
export * from "./IHubTimeline";
|
|
15
|
+
export * from "./IServerEnrichments";
|
|
@@ -13,6 +13,7 @@ export * from "./is-domain-used-elsewhere";
|
|
|
13
13
|
export * from "./is-valid-domain";
|
|
14
14
|
export * from "./lookup-domain";
|
|
15
15
|
export * from "./remove-domain";
|
|
16
|
+
export * from "./remove-domains-by-site-id";
|
|
16
17
|
export * from "./update-domain";
|
|
17
18
|
export * from "./_ensure-safe-domain-length";
|
|
18
19
|
export * from "./ensure-unique-domain-name";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IHubRequestOptions } from "../../types";
|
|
2
|
+
/**
|
|
3
|
+
* Remove all domain entries by site id.
|
|
4
|
+
* User must be a member of the org that owns the domain entry.
|
|
5
|
+
* @param {int} domainSiteId of the domain entries to remove
|
|
6
|
+
* @param {IHubRequestOptions} hubRequestOptions`dom
|
|
7
|
+
*/
|
|
8
|
+
export declare function removeDomainsBySiteId(domainSiteId: string, hubRequestOptions: IHubRequestOptions): Promise<any>;
|