@esri/hub-common 10.0.2 → 11.0.0-beta.2

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.
Files changed (165) hide show
  1. package/dist/esm/Hub.js +4 -0
  2. package/dist/esm/Hub.js.map +1 -1
  3. package/dist/esm/collections.js +13 -0
  4. package/dist/esm/collections.js.map +1 -1
  5. package/dist/esm/content/get-family.js +46 -1
  6. package/dist/esm/content/get-family.js.map +1 -1
  7. package/dist/esm/core/PermissionManager.js +60 -0
  8. package/dist/esm/core/PermissionManager.js.map +1 -0
  9. package/dist/esm/core/_internal/PropertyMapper.js +1 -0
  10. package/dist/esm/core/_internal/PropertyMapper.js.map +1 -1
  11. package/dist/esm/core/_internal/sharedWith.js +14 -0
  12. package/dist/esm/core/_internal/sharedWith.js.map +1 -0
  13. package/dist/esm/core/behaviors/IWithCatalogBehavior.js +1 -0
  14. package/dist/esm/core/behaviors/IWithCatalogBehavior.js.map +1 -0
  15. package/dist/esm/core/behaviors/IWithPermissionBehavior.js +69 -0
  16. package/dist/esm/core/behaviors/IWithPermissionBehavior.js.map +1 -0
  17. package/dist/esm/core/behaviors/IWithSharingBehavior.js +1 -0
  18. package/dist/esm/core/behaviors/IWithSharingBehavior.js.map +1 -0
  19. package/dist/esm/core/behaviors/IWithStoreBehavior.js +1 -0
  20. package/dist/esm/core/behaviors/IWithStoreBehavior.js.map +1 -0
  21. package/dist/esm/core/behaviors/index.js +5 -0
  22. package/dist/esm/core/behaviors/index.js.map +1 -0
  23. package/dist/esm/core/index.js +2 -0
  24. package/dist/esm/core/index.js.map +1 -1
  25. package/dist/esm/core/traits/IWithBannerImage.js +1 -0
  26. package/dist/esm/core/traits/IWithBannerImage.js.map +1 -0
  27. package/dist/esm/core/traits/IWithCatalogDefinition.js +1 -0
  28. package/dist/esm/core/traits/IWithCatalogDefinition.js.map +1 -0
  29. package/dist/esm/core/traits/IWithLayout.js +1 -0
  30. package/dist/esm/core/traits/IWithLayout.js.map +1 -0
  31. package/dist/esm/core/traits/IWithPermissions.js +1 -0
  32. package/dist/esm/core/traits/IWithPermissions.js.map +1 -0
  33. package/dist/esm/core/traits/IWithSlug.js +1 -0
  34. package/dist/esm/core/traits/IWithSlug.js.map +1 -0
  35. package/dist/esm/core/traits/index.js +4 -3
  36. package/dist/esm/core/traits/index.js.map +1 -1
  37. package/dist/esm/core/types/IHubPermission.js +1 -0
  38. package/dist/esm/core/types/IHubPermission.js.map +1 -0
  39. package/dist/esm/core/types/index.js +1 -0
  40. package/dist/esm/core/types/index.js.map +1 -1
  41. package/dist/esm/index.js +2 -1
  42. package/dist/esm/index.js.map +1 -1
  43. package/dist/esm/items/slugs.js +1 -1
  44. package/dist/esm/models/index.js +15 -10
  45. package/dist/esm/models/index.js.map +1 -1
  46. package/dist/esm/projects/HubProject.js +369 -0
  47. package/dist/esm/projects/HubProject.js.map +1 -0
  48. package/dist/esm/projects/HubProjectManager.js +4 -4
  49. package/dist/esm/projects/HubProjectManager.js.map +1 -1
  50. package/dist/esm/projects/HubProjects.js +37 -39
  51. package/dist/esm/projects/HubProjects.js.map +1 -1
  52. package/dist/esm/projects/defaults.js +36 -0
  53. package/dist/esm/projects/defaults.js.map +1 -0
  54. package/dist/esm/projects/index.js +1 -0
  55. package/dist/esm/projects/index.js.map +1 -1
  56. package/dist/esm/search/Catalog.js +22 -5
  57. package/dist/esm/search/Catalog.js.map +1 -1
  58. package/dist/esm/sites/HubSiteManager.js +1 -1
  59. package/dist/esm/sites/HubSiteManager.js.map +1 -1
  60. package/dist/node/Hub.js +4 -0
  61. package/dist/node/Hub.js.map +1 -1
  62. package/dist/node/collections.js +14 -1
  63. package/dist/node/collections.js.map +1 -1
  64. package/dist/node/content/get-family.js +47 -1
  65. package/dist/node/content/get-family.js.map +1 -1
  66. package/dist/node/core/PermissionManager.js +64 -0
  67. package/dist/node/core/PermissionManager.js.map +1 -0
  68. package/dist/node/core/_internal/PropertyMapper.js +1 -0
  69. package/dist/node/core/_internal/PropertyMapper.js.map +1 -1
  70. package/dist/node/core/_internal/sharedWith.js +18 -0
  71. package/dist/node/core/_internal/sharedWith.js.map +1 -0
  72. package/dist/node/core/behaviors/IWithCatalogBehavior.js +3 -0
  73. package/dist/node/core/behaviors/IWithCatalogBehavior.js.map +1 -0
  74. package/dist/node/core/behaviors/IWithPermissionBehavior.js +76 -0
  75. package/dist/node/core/behaviors/IWithPermissionBehavior.js.map +1 -0
  76. package/dist/node/core/behaviors/IWithSharingBehavior.js +3 -0
  77. package/dist/node/core/behaviors/IWithSharingBehavior.js.map +1 -0
  78. package/dist/node/core/behaviors/IWithStoreBehavior.js +3 -0
  79. package/dist/node/core/behaviors/IWithStoreBehavior.js.map +1 -0
  80. package/dist/node/core/behaviors/index.js +8 -0
  81. package/dist/node/core/behaviors/index.js.map +1 -0
  82. package/dist/node/core/index.js +2 -0
  83. package/dist/node/core/index.js.map +1 -1
  84. package/dist/node/core/traits/{WithBannerImage.js → IWithBannerImage.js} +1 -1
  85. package/dist/node/core/traits/IWithBannerImage.js.map +1 -0
  86. package/dist/node/core/traits/IWithCatalogDefinition.js +3 -0
  87. package/dist/node/core/traits/IWithCatalogDefinition.js.map +1 -0
  88. package/dist/node/core/traits/{WithCatalog.js → IWithLayout.js} +1 -1
  89. package/dist/node/core/traits/IWithLayout.js.map +1 -0
  90. package/dist/node/core/traits/IWithPermissions.js +3 -0
  91. package/dist/node/core/traits/IWithPermissions.js.map +1 -0
  92. package/dist/node/core/traits/{WithSlug.js → IWithSlug.js} +1 -1
  93. package/dist/node/core/traits/IWithSlug.js.map +1 -0
  94. package/dist/node/core/traits/index.js +4 -3
  95. package/dist/node/core/traits/index.js.map +1 -1
  96. package/dist/node/core/{traits/WithLayout.js → types/IHubPermission.js} +1 -1
  97. package/dist/node/core/types/IHubPermission.js.map +1 -0
  98. package/dist/node/core/types/index.js +1 -0
  99. package/dist/node/core/types/index.js.map +1 -1
  100. package/dist/node/index.js +2 -1
  101. package/dist/node/index.js.map +1 -1
  102. package/dist/node/items/slugs.js +1 -1
  103. package/dist/node/models/index.js +15 -10
  104. package/dist/node/models/index.js.map +1 -1
  105. package/dist/node/projects/HubProject.js +373 -0
  106. package/dist/node/projects/HubProject.js.map +1 -0
  107. package/dist/node/projects/HubProjectManager.js +3 -3
  108. package/dist/node/projects/HubProjectManager.js.map +1 -1
  109. package/dist/node/projects/HubProjects.js +42 -44
  110. package/dist/node/projects/HubProjects.js.map +1 -1
  111. package/dist/node/projects/defaults.js +39 -0
  112. package/dist/node/projects/defaults.js.map +1 -0
  113. package/dist/node/projects/index.js +1 -0
  114. package/dist/node/projects/index.js.map +1 -1
  115. package/dist/node/search/Catalog.js +22 -5
  116. package/dist/node/search/Catalog.js.map +1 -1
  117. package/dist/node/sites/HubSiteManager.js +1 -1
  118. package/dist/node/sites/HubSiteManager.js.map +1 -1
  119. package/dist/types/collections.d.ts +7 -0
  120. package/dist/types/content/get-family.d.ts +7 -0
  121. package/dist/types/core/PermissionManager.d.ts +43 -0
  122. package/dist/types/core/_internal/PropertyMapper.d.ts +1 -0
  123. package/dist/types/core/_internal/sharedWith.d.ts +10 -0
  124. package/dist/types/core/behaviors/IWithCatalogBehavior.d.ts +4 -0
  125. package/dist/types/core/behaviors/IWithPermissionBehavior.d.ts +40 -0
  126. package/dist/types/core/behaviors/IWithSharingBehavior.d.ts +27 -0
  127. package/dist/types/core/behaviors/IWithStoreBehavior.d.ts +22 -0
  128. package/dist/types/core/behaviors/index.d.ts +4 -0
  129. package/dist/types/core/index.d.ts +2 -0
  130. package/dist/types/core/traits/{WithBannerImage.d.ts → IWithBannerImage.d.ts} +0 -0
  131. package/dist/types/core/traits/IWithCatalogDefinition.d.ts +7 -0
  132. package/dist/types/core/traits/{WithLayout.d.ts → IWithLayout.d.ts} +0 -0
  133. package/dist/types/core/traits/IWithPermissions.d.ts +10 -0
  134. package/dist/types/core/traits/{WithSlug.d.ts → IWithSlug.d.ts} +0 -0
  135. package/dist/types/core/traits/index.d.ts +4 -3
  136. package/dist/types/core/types/IHubEntityManager.d.ts +1 -1
  137. package/dist/types/core/types/IHubInitiative.d.ts +1 -1
  138. package/dist/types/core/types/IHubPage.d.ts +1 -1
  139. package/dist/types/core/types/IHubPermission.d.ts +23 -0
  140. package/dist/types/core/types/IHubProject.d.ts +4 -3
  141. package/dist/types/core/types/IHubSite.d.ts +2 -2
  142. package/dist/types/core/types/index.d.ts +1 -0
  143. package/dist/types/core/types/types.d.ts +5 -1
  144. package/dist/types/index.d.ts +0 -1
  145. package/dist/types/projects/HubProject.d.ts +92 -0
  146. package/dist/types/projects/HubProjectManager.d.ts +1 -1
  147. package/dist/types/projects/HubProjects.d.ts +7 -2
  148. package/dist/types/projects/defaults.d.ts +11 -0
  149. package/dist/types/projects/index.d.ts +1 -0
  150. package/dist/types/search/Catalog.d.ts +4 -3
  151. package/dist/types/sites/HubSiteManager.d.ts +1 -1
  152. package/package.json +1 -1
  153. package/dist/esm/core/traits/WithBannerImage.js +0 -1
  154. package/dist/esm/core/traits/WithBannerImage.js.map +0 -1
  155. package/dist/esm/core/traits/WithCatalog.js +0 -1
  156. package/dist/esm/core/traits/WithCatalog.js.map +0 -1
  157. package/dist/esm/core/traits/WithLayout.js +0 -1
  158. package/dist/esm/core/traits/WithLayout.js.map +0 -1
  159. package/dist/esm/core/traits/WithSlug.js +0 -1
  160. package/dist/esm/core/traits/WithSlug.js.map +0 -1
  161. package/dist/node/core/traits/WithBannerImage.js.map +0 -1
  162. package/dist/node/core/traits/WithCatalog.js.map +0 -1
  163. package/dist/node/core/traits/WithLayout.js.map +0 -1
  164. package/dist/node/core/traits/WithSlug.js.map +0 -1
  165. package/dist/types/core/traits/WithCatalog.d.ts +0 -7
@@ -23,7 +23,7 @@ export interface IHubEntityManager<T> {
23
23
  * @param id
24
24
  * @param requestOptions
25
25
  */
26
- destroy(id: string, requestOptions: IUserRequestOptions): Promise<void>;
26
+ delete(id: string, requestOptions: IUserRequestOptions): Promise<void>;
27
27
  /**
28
28
  * Get an entity by an identifier. Implementations can handle this
29
29
  * differently as needed. i.e. a HubProject can be fetched by item id (guid)
@@ -1,4 +1,4 @@
1
- import { IWithBannerImage } from "../traits/WithBannerImage";
1
+ import { IWithBannerImage } from "../traits/IWithBannerImage";
2
2
  import { IHubItemEntity } from "./IHubItemEntity";
3
3
  /**
4
4
  * DRAFT: Under development and more properties will likely be added
@@ -1,4 +1,4 @@
1
- import { IWithLayout } from "../traits/WithLayout";
1
+ import { IWithLayout } from "../traits/IWithLayout";
2
2
  import { IHubItemEntity } from "./IHubItemEntity";
3
3
  /**
4
4
  * DRAFT: Under development and more properties will likely be added
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Structure of a Hub Permission
3
+ */
4
+ export interface IHubPermission {
5
+ /**
6
+ * Unique identifier of the permission
7
+ */
8
+ id?: string;
9
+ /**
10
+ * What action is being enabled for the target
11
+ */
12
+ permission: HubPermission;
13
+ /**
14
+ * What is the target of the permission
15
+ */
16
+ target: PermissionTarget;
17
+ /**
18
+ * Id of the entity that this permission is granted for
19
+ */
20
+ targetId: string;
21
+ }
22
+ export declare type HubPermission = "addEvent" | "createEvent" | "editEvent" | "deleteEvent" | "addInitiative" | "createInitiative" | "editInitiative" | "deleteInitiative" | "addProject" | "createProject" | "editProject" | "deleteProject";
23
+ export declare type PermissionTarget = "org" | "group" | "user";
@@ -1,9 +1,10 @@
1
- import { IHubTimeline } from ".";
2
- import { IHubItemEntity, IWithLayout, IWithSlug } from "..";
1
+ import { IHubTimeline, IHubItemEntity } from "./index";
2
+ import { IWithLayout, IWithPermissionDefinition, IWithSlug } from "../traits/index";
3
+ import { IWithCatalogDefinition } from "../traits/IWithCatalogDefinition";
3
4
  /**
4
5
  * Defines the properties of a Hub Project object
5
6
  */
6
- export interface IHubProject extends IHubItemEntity, IWithSlug, IWithLayout {
7
+ export interface IHubProject extends IHubItemEntity, IWithSlug, IWithCatalogDefinition, IWithLayout, IWithPermissionDefinition {
7
8
  /**
8
9
  * Timeline for the project
9
10
  */
@@ -1,6 +1,6 @@
1
1
  import { IExtent } from "@esri/arcgis-rest-feature-layer";
2
- import { IWithSlug } from "../traits/WithSlug";
3
- import { IWithLayout } from "../traits/WithLayout";
2
+ import { IWithSlug } from "../traits/IWithSlug";
3
+ import { IWithLayout } from "../traits/IWithLayout";
4
4
  import { IHubItemEntity } from "./IHubItemEntity";
5
5
  /**
6
6
  * DRAFT: Under development and more properties will likely be added
@@ -16,3 +16,4 @@ export * from "./IHubTimeline";
16
16
  export * from "./IItemEnrichments";
17
17
  export * from "./IServerEnrichments";
18
18
  export * from "./types";
19
+ export * from "./IHubPermission";
@@ -1,4 +1,8 @@
1
+ /**
2
+ * Access levels that can be set on an item
3
+ */
4
+ export declare type SettableAccessLevel = "public" | "org" | "private";
1
5
  /**
2
6
  * Access level for Platform Entities
3
7
  */
4
- export declare type AccessLevel = "public" | "shared" | "org" | "private";
8
+ export declare type AccessLevel = SettableAccessLevel | "shared";
@@ -23,7 +23,6 @@ export * from "./types";
23
23
  export * from "./urls";
24
24
  export * from "./util";
25
25
  export * from "./utils";
26
- export * from "./Hub";
27
26
  export * from "./pages";
28
27
  export * from "./org";
29
28
  export * from "./users";
@@ -0,0 +1,92 @@
1
+ import { IHubProject, IWithPermissionBehavior, IWithCatalogBehavior, PermissionManager, IWithStoreBehavior, IWithSharingBehavior, SettableAccessLevel } from "../core";
2
+ import { Catalog } from "../search/Catalog";
3
+ import { IArcGISContext } from "../ArcGISContext";
4
+ import { IGroup } from "@esri/arcgis-rest-types";
5
+ /**
6
+ * Hub Project Class
7
+ */
8
+ export declare class HubProject implements IWithStoreBehavior<IHubProject>, IWithPermissionBehavior, IWithCatalogBehavior, IWithSharingBehavior {
9
+ private context;
10
+ private entity;
11
+ private isDestroyed;
12
+ private _catalog;
13
+ private _permissionManager;
14
+ /**
15
+ * Private constructor so we don't have `new` all over the place. Allows for
16
+ * more flexibility in how we create the HubProjectManager over time.
17
+ * @param context
18
+ */
19
+ private constructor();
20
+ /**
21
+ * @returns Catalog instance for this project. Note: Do not hold direct references to this object; always access it from the project.
22
+ */
23
+ get catalog(): Catalog;
24
+ /**
25
+ * @returns PermissionManager instance for this project. Note: Do not hold direct references to this object; always access it from the project.
26
+ */
27
+ get permissions(): PermissionManager;
28
+ /**
29
+ * Create an instance from an IHubProject object
30
+ * @param json - JSON object to create a HubProject from
31
+ * @param context - ArcGIS context
32
+ * @returns
33
+ */
34
+ static fromJson(json: Partial<IHubProject>, context: IArcGISContext): HubProject;
35
+ /**
36
+ * Create a new HubProject, returning a HubProject instance.
37
+ * Note: This does not persist the Project into the backing store
38
+ * @param partialProject
39
+ * @param context
40
+ * @returns
41
+ */
42
+ static create(partialProject: Partial<IHubProject>, context: IArcGISContext, save?: boolean): Promise<HubProject>;
43
+ /**
44
+ * Fetch a Project from the backing store and return a HubProject instance.
45
+ * @param identifier - Identifier of the project to load
46
+ * @param context
47
+ * @returns
48
+ */
49
+ static fetch(identifier: string, context: IArcGISContext): Promise<HubProject>;
50
+ private static applyDefaults;
51
+ /**
52
+ * Get the current state of the IHubProject from the instance
53
+ * @returns IHubProject POJO
54
+ */
55
+ toJson(): IHubProject;
56
+ /**
57
+ * Apply a new state to the instance
58
+ * @param changes
59
+ */
60
+ update(changes: Partial<IHubProject>): void;
61
+ /**
62
+ * Save the HubProject to the store
63
+ * @returns
64
+ */
65
+ save(): Promise<void>;
66
+ /**
67
+ * Delete the HubProject from the store
68
+ * set a flag to indicate that it is destroyed
69
+ * @returns
70
+ */
71
+ delete(): Promise<void>;
72
+ /**
73
+ * Share the Project with the specified group id
74
+ * @param groupId
75
+ */
76
+ shareWithGroup(groupId: string): Promise<void>;
77
+ /**
78
+ * Unshare the Project with the specified group id
79
+ * @param groupId
80
+ */
81
+ unshareWithGroup(groupId: string): Promise<void>;
82
+ /**
83
+ * Set the access level of the backing item
84
+ * @param access
85
+ */
86
+ setAccess(access: SettableAccessLevel): Promise<void>;
87
+ /**
88
+ * Return a list of groups the Project is shared to.
89
+ * @returns
90
+ */
91
+ sharedWith(): Promise<IGroup[]>;
92
+ }
@@ -69,7 +69,7 @@ export declare class HubProjectManager implements IHubEntityManager<IHubProject>
69
69
  * @param requestOptions
70
70
  * @returns
71
71
  */
72
- destroy(id: string, requestOptions?: IUserRequestOptions): Promise<void>;
72
+ delete(id: string, requestOptions?: IUserRequestOptions): Promise<void>;
73
73
  /**
74
74
  * Fetch a Project via id or it's slug
75
75
  *
@@ -4,8 +4,8 @@ import { IItem } from "@esri/arcgis-rest-portal";
4
4
  import { IRequestOptions } from "@esri/arcgis-rest-request";
5
5
  import { IHubProject } from "../core/types";
6
6
  import { IHubSearchResponse, IHubSearchResult, IQuery } from "../search";
7
- export declare const HUB_PROJECT_ITEM_TYPE = "Hub Project";
8
7
  /**
8
+ * @private
9
9
  * Create a new Hub Project item
10
10
  *
11
11
  * Minimal properties are name and org
@@ -15,23 +15,26 @@ export declare const HUB_PROJECT_ITEM_TYPE = "Hub Project";
15
15
  */
16
16
  export declare function createProject(partialProject: Partial<IHubProject>, requestOptions: IUserRequestOptions): Promise<IHubProject>;
17
17
  /**
18
+ * @private
18
19
  * Update a Hub Project
19
20
  * @param project
20
21
  * @param requestOptions
21
22
  */
22
23
  export declare function updateProject(project: IHubProject, requestOptions: IUserRequestOptions): Promise<IHubProject>;
23
24
  /**
25
+ * @private
24
26
  * Get a Hub Project by id or slug
25
27
  * @param identifier item id or slug
26
28
  * @param requestOptions
27
29
  */
28
30
  export declare function fetchProject(identifier: string, requestOptions: IRequestOptions): Promise<IHubProject>;
29
31
  /**
32
+ * @private
30
33
  * Remove a Hub Project
31
34
  * @param id
32
35
  * @param requestOptions
33
36
  */
34
- export declare function destroyProject(id: string, requestOptions: IUserRequestOptions): Promise<void>;
37
+ export declare function deleteProject(id: string, requestOptions: IUserRequestOptions): Promise<void>;
35
38
  /**
36
39
  * Search for Projects, and get IHubProject results
37
40
  *
@@ -43,6 +46,7 @@ export declare function destroyProject(id: string, requestOptions: IUserRequestO
43
46
  */
44
47
  export declare function searchProjects(query: string | IQuery, options: IHubSearchOptions): Promise<IHubSearchResponse<IHubProject>>;
45
48
  /**
49
+ * @private
46
50
  * Convert an Hub Project Item into a Hub Project, fetching any additional
47
51
  * information that may be required
48
52
  * @param item
@@ -51,6 +55,7 @@ export declare function searchProjects(query: string | IQuery, options: IHubSear
51
55
  */
52
56
  export declare function convertItemToProject(item: IItem, requestOptions: IRequestOptions): Promise<IHubProject>;
53
57
  /**
58
+ * @private
54
59
  * Fetch project specific enrichments
55
60
  * @param item
56
61
  * @param include
@@ -0,0 +1,11 @@
1
+ import { IHubProject } from "../core";
2
+ import { IModel } from "../types";
3
+ export declare const HUB_PROJECT_ITEM_TYPE = "Hub Project";
4
+ /**
5
+ * Default values of a IHubProject
6
+ */
7
+ export declare const DEFAULT_PROJECT: Partial<IHubProject>;
8
+ /**
9
+ * Default values for a new HubProject Model
10
+ */
11
+ export declare const DEFAULT_PROJECT_MODEL: IModel;
@@ -1,2 +1,3 @@
1
1
  export * from "./HubProjectManager";
2
2
  export * from "./HubProjects";
3
+ export * from "./HubProject";
@@ -21,7 +21,7 @@ export declare class Catalog implements IHubCatalog {
21
21
  private _catalog;
22
22
  private constructor();
23
23
  /**
24
- * Create a Collection instance from a Catalog json object, a site url or itemId
24
+ * Create a Catalog instance from a site url or itemId
25
25
  * '''js
26
26
  * const catalog = await Catalog.create('https://site-org.hub.arcgis.com', context);
27
27
  * '''
@@ -32,12 +32,12 @@ export declare class Catalog implements IHubCatalog {
32
32
  */
33
33
  static init(identifier: string, context?: IArcGISContext): Promise<Catalog>;
34
34
  /**
35
- * Create a Catalog instance from a Catalog Json object
35
+ * Create a Catalog instance from a Catalog Definition Json object
36
36
  * @param json
37
37
  * @param context
38
38
  * @returns
39
39
  */
40
- static fromJson(json: any, context?: IArcGISContext): Catalog;
40
+ static fromJson(json: IHubCatalog, context?: IArcGISContext): Catalog;
41
41
  /**
42
42
  * Return the JSON object backing the instance
43
43
  * @returns
@@ -140,4 +140,5 @@ export declare class Catalog implements IHubCatalog {
140
140
  * @returns
141
141
  */
142
142
  private getEmptyResult;
143
+ private getDefaultSearchOptions;
143
144
  }
@@ -66,7 +66,7 @@ export declare class HubSiteManager implements IHubEntityManager<IHubSite>, IHub
66
66
  * @param requestOptions
67
67
  * @returns
68
68
  */
69
- destroy(id: string, requestOptions?: IHubRequestOptions): Promise<void>;
69
+ delete(id: string, requestOptions?: IHubRequestOptions): Promise<void>;
70
70
  /**
71
71
  * Fetch a Site via Id, slug or domain
72
72
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "10.0.2",
3
+ "version": "11.0.0-beta.2",
4
4
  "description": "Common TypeScript types and utility functions for @esri/hub.js.",
5
5
  "main": "dist/node/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1 +0,0 @@
1
- //# sourceMappingURL=WithBannerImage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithBannerImage.js","sourceRoot":"","sources":["../../../../src/core/traits/WithBannerImage.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=WithCatalog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithCatalog.js","sourceRoot":"","sources":["../../../../src/core/traits/WithCatalog.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=WithLayout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithLayout.js","sourceRoot":"","sources":["../../../../src/core/traits/WithLayout.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=WithSlug.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithSlug.js","sourceRoot":"","sources":["../../../../src/core/traits/WithSlug.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithBannerImage.js","sourceRoot":"","sources":["../../../../src/core/traits/WithBannerImage.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithCatalog.js","sourceRoot":"","sources":["../../../../src/core/traits/WithCatalog.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithLayout.js","sourceRoot":"","sources":["../../../../src/core/traits/WithLayout.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"WithSlug.js","sourceRoot":"","sources":["../../../../src/core/traits/WithSlug.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { Catalog } from "../../search/Catalog";
2
- export interface IWithCatalog {
3
- /**
4
- * Catalog
5
- */
6
- catalog: Catalog;
7
- }