@esri/hub-common 13.25.2 → 13.27.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.
Files changed (83) hide show
  1. package/dist/esm/ArcGISContextManager.js +2 -0
  2. package/dist/esm/ArcGISContextManager.js.map +1 -1
  3. package/dist/esm/capabilities/getWorkspaceCapabilities.js +2 -0
  4. package/dist/esm/capabilities/getWorkspaceCapabilities.js.map +1 -1
  5. package/dist/esm/capabilities/types.js +1 -0
  6. package/dist/esm/capabilities/types.js.map +1 -1
  7. package/dist/esm/core/types/HubEntity.js +5 -0
  8. package/dist/esm/core/types/HubEntity.js.map +1 -1
  9. package/dist/esm/core/types/HubEntityType.js +1 -0
  10. package/dist/esm/core/types/HubEntityType.js.map +1 -1
  11. package/dist/esm/core/types/IHubGroup.js +1 -0
  12. package/dist/esm/core/types/IHubGroup.js.map +1 -0
  13. package/dist/esm/core/types/ISystemStatus.js +1 -0
  14. package/dist/esm/core/types/ISystemStatus.js.map +1 -1
  15. package/dist/esm/groups/HubGroup.js +178 -0
  16. package/dist/esm/groups/HubGroup.js.map +1 -0
  17. package/dist/esm/groups/HubGroups.js +100 -1
  18. package/dist/esm/groups/HubGroups.js.map +1 -1
  19. package/dist/esm/groups/_internal/GroupBusinessRules.js +88 -0
  20. package/dist/esm/groups/_internal/GroupBusinessRules.js.map +1 -0
  21. package/dist/esm/groups/_internal/computeProps.js +37 -0
  22. package/dist/esm/groups/_internal/computeProps.js.map +1 -0
  23. package/dist/esm/groups/_internal/getPropertyMap.js +39 -0
  24. package/dist/esm/groups/_internal/getPropertyMap.js.map +1 -0
  25. package/dist/esm/groups/defaults.js +21 -0
  26. package/dist/esm/groups/defaults.js.map +1 -0
  27. package/dist/esm/groups/index.js +1 -0
  28. package/dist/esm/groups/index.js.map +1 -1
  29. package/dist/esm/permissions/HubPermissionPolicies.js +2 -0
  30. package/dist/esm/permissions/HubPermissionPolicies.js.map +1 -1
  31. package/dist/esm/permissions/types/Permission.js +2 -0
  32. package/dist/esm/permissions/types/Permission.js.map +1 -1
  33. package/dist/esm/projects/_internal/getPropertyMap.js +1 -5
  34. package/dist/esm/projects/_internal/getPropertyMap.js.map +1 -1
  35. package/dist/node/ArcGISContextManager.js +2 -0
  36. package/dist/node/ArcGISContextManager.js.map +1 -1
  37. package/dist/node/capabilities/getWorkspaceCapabilities.js +2 -0
  38. package/dist/node/capabilities/getWorkspaceCapabilities.js.map +1 -1
  39. package/dist/node/capabilities/types.js +1 -0
  40. package/dist/node/capabilities/types.js.map +1 -1
  41. package/dist/node/core/types/HubEntity.js +5 -0
  42. package/dist/node/core/types/HubEntity.js.map +1 -1
  43. package/dist/node/core/types/HubEntityType.js +1 -0
  44. package/dist/node/core/types/HubEntityType.js.map +1 -1
  45. package/dist/node/core/types/IHubGroup.js +3 -0
  46. package/dist/node/core/types/IHubGroup.js.map +1 -0
  47. package/dist/node/core/types/ISystemStatus.js +1 -0
  48. package/dist/node/core/types/ISystemStatus.js.map +1 -1
  49. package/dist/node/groups/HubGroup.js +182 -0
  50. package/dist/node/groups/HubGroup.js.map +1 -0
  51. package/dist/node/groups/HubGroups.js +104 -1
  52. package/dist/node/groups/HubGroups.js.map +1 -1
  53. package/dist/node/groups/_internal/GroupBusinessRules.js +91 -0
  54. package/dist/node/groups/_internal/GroupBusinessRules.js.map +1 -0
  55. package/dist/node/groups/_internal/computeProps.js +41 -0
  56. package/dist/node/groups/_internal/computeProps.js.map +1 -0
  57. package/dist/node/groups/_internal/getPropertyMap.js +43 -0
  58. package/dist/node/groups/_internal/getPropertyMap.js.map +1 -0
  59. package/dist/node/groups/defaults.js +24 -0
  60. package/dist/node/groups/defaults.js.map +1 -0
  61. package/dist/node/groups/index.js +1 -0
  62. package/dist/node/groups/index.js.map +1 -1
  63. package/dist/node/permissions/HubPermissionPolicies.js +2 -0
  64. package/dist/node/permissions/HubPermissionPolicies.js.map +1 -1
  65. package/dist/node/permissions/types/Permission.js +2 -0
  66. package/dist/node/permissions/types/Permission.js.map +1 -1
  67. package/dist/node/projects/_internal/getPropertyMap.js +1 -5
  68. package/dist/node/projects/_internal/getPropertyMap.js.map +1 -1
  69. package/dist/types/capabilities/types.d.ts +1 -1
  70. package/dist/types/core/types/HubEntityType.d.ts +1 -1
  71. package/dist/types/core/types/IHubGroup.d.ts +87 -0
  72. package/dist/types/core/types/ISystemStatus.d.ts +1 -1
  73. package/dist/types/core/types/types.d.ts +20 -1
  74. package/dist/types/discussions/api/types.d.ts +18 -0
  75. package/dist/types/groups/HubGroup.d.ts +95 -0
  76. package/dist/types/groups/HubGroups.d.ts +35 -0
  77. package/dist/types/groups/_internal/GroupBusinessRules.d.ts +27 -0
  78. package/dist/types/groups/_internal/computeProps.d.ts +12 -0
  79. package/dist/types/groups/_internal/getPropertyMap.d.ts +8 -0
  80. package/dist/types/groups/defaults.d.ts +11 -0
  81. package/dist/types/groups/index.d.ts +1 -0
  82. package/dist/types/permissions/types/Permission.d.ts +1 -1
  83. package/package.json +1 -1
@@ -0,0 +1,8 @@
1
+ import { IPropertyMap } from "../../core/_internal/PropertyMapper";
2
+ /**
3
+ * Returns an Array of IPropertyMap objects
4
+ * that define the projection of properties from a IGroup to an IHubGroup
5
+ * @returns
6
+ * @private
7
+ */
8
+ export declare function getPropertyMap(): IPropertyMap[];
@@ -0,0 +1,11 @@
1
+ import { IGroup } from "@esri/arcgis-rest-types";
2
+ import { IHubGroup } from "../core/types/IHubGroup";
3
+ export declare const HUB_GROUP_TYPE = "Hub Group";
4
+ /**
5
+ * Default values of a IHubGroup
6
+ */
7
+ export declare const DEFAULT_GROUP: Partial<IHubGroup>;
8
+ /**
9
+ * Default values for a new HubGroup Model
10
+ */
11
+ export declare const DEFAULT_GROUP_MODEL: IGroup;
@@ -2,3 +2,4 @@ export * from "./_unprotect-and-remove-group";
2
2
  export * from "./add-users-workflow";
3
3
  export * from "./types";
4
4
  export * from "./HubGroups";
5
+ export * from "./HubGroup";
@@ -3,7 +3,7 @@
3
3
  * It's critical that the arrays defined in the modules use `as const`
4
4
  * otherwise Permission devolves into just a string type
5
5
  */
6
- declare const validPermissions: readonly ["hub:site:create", "hub:site:delete", "hub:site:edit", "hub:site:view", "hub:project:create", "hub:project:delete", "hub:project:edit", "hub:project:view", "hub:project:owner", "hub:project:share", "hub:initiative:create", "hub:initiative:delete", "hub:initiative:edit", "hub:initiative:view", "hub:discussion:create", "hub:discussion:delete", "hub:discussion:edit", "hub:discussion:view", "hub:content:create", "hub:content:edit", "hub:content:view", "hub:page:create", "hub:page:delete", "hub:page:edit", "hub:page:view"];
6
+ declare const validPermissions: readonly ["hub:site:create", "hub:site:delete", "hub:site:edit", "hub:site:view", "hub:project:create", "hub:project:delete", "hub:project:edit", "hub:project:view", "hub:project:owner", "hub:project:share", "hub:initiative:create", "hub:initiative:delete", "hub:initiative:edit", "hub:initiative:view", "hub:discussion:create", "hub:discussion:delete", "hub:discussion:edit", "hub:discussion:view", "hub:content:create", "hub:content:edit", "hub:content:view", "hub:group:create", "hub:group:delete", "hub:group:edit", "hub:group:view", "hub:group:owner", "hub:page:create", "hub:page:delete", "hub:page:edit", "hub:page:view"];
7
7
  /**
8
8
  * Defines the possible values for Permissions
9
9
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "13.25.2",
3
+ "version": "13.27.0",
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",