@esri/hub-common 12.3.0 → 12.3.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 (216) hide show
  1. package/dist/esm/ArcGISContextManager.js +2 -1
  2. package/dist/esm/ArcGISContextManager.js.map +1 -1
  3. package/dist/esm/capabilities/_internal/checkCapabilityAccess.js +1 -1
  4. package/dist/esm/capabilities/_internal/checkCapabilityAccess.js.map +1 -1
  5. package/dist/esm/capabilities/getWorkspaceCapabilities.js.map +1 -1
  6. package/dist/esm/core/_internal/PropertyMapper.js +2 -1
  7. package/dist/esm/core/_internal/PropertyMapper.js.map +1 -1
  8. package/dist/esm/core/_internal/deepContains.js +2 -2
  9. package/dist/esm/core/_internal/deepContains.js.map +1 -1
  10. package/dist/esm/core/fetchHubEntity.js.map +1 -1
  11. package/dist/esm/core/schemas/hubproject.js +4 -4
  12. package/dist/esm/core/schemas/hubproject.js.map +1 -1
  13. package/dist/esm/core/types/IHubContent.js.map +1 -1
  14. package/dist/esm/groups/_internal/enrichments.js.map +1 -1
  15. package/dist/esm/initiatives/HubInitiative.js +1 -1
  16. package/dist/esm/initiatives/HubInitiative.js.map +1 -1
  17. package/dist/esm/initiatives/_internal/InitiativeBusinessRules.js.map +1 -1
  18. package/dist/esm/items/_internal/_prepare-upload-requests.js.map +1 -1
  19. package/dist/esm/items/registerBrowserApp.js +1 -1
  20. package/dist/esm/items/registerBrowserApp.js.map +1 -1
  21. package/dist/esm/items/setItemThumbnail.js +1 -1
  22. package/dist/esm/items/setItemThumbnail.js.map +1 -1
  23. package/dist/esm/items/slugs.js +1 -1
  24. package/dist/esm/items/slugs.js.map +1 -1
  25. package/dist/esm/models/index.js +3 -1
  26. package/dist/esm/models/index.js.map +1 -1
  27. package/dist/esm/objects/deepGetPropValues.js +1 -1
  28. package/dist/esm/objects/deepGetPropValues.js.map +1 -1
  29. package/dist/esm/org/fetch-org.js +2 -2
  30. package/dist/esm/org/fetch-org.js.map +1 -1
  31. package/dist/esm/projects/HubProject.js +1 -1
  32. package/dist/esm/projects/HubProject.js.map +1 -1
  33. package/dist/esm/projects/_internal/ProjectBusinessRules.js.map +1 -1
  34. package/dist/esm/request.js +1 -1
  35. package/dist/esm/request.js.map +1 -1
  36. package/dist/esm/search/Catalog.js +1 -1
  37. package/dist/esm/search/Catalog.js.map +1 -1
  38. package/dist/esm/search/Collection.js +1 -1
  39. package/dist/esm/search/Collection.js.map +1 -1
  40. package/dist/esm/search/_internal/hubSearchItems.js.map +1 -1
  41. package/dist/esm/search/_internal/portalSearchGroups.js +1 -1
  42. package/dist/esm/search/_internal/portalSearchGroups.js.map +1 -1
  43. package/dist/esm/search/_internal/portalSearchItems.js +3 -1
  44. package/dist/esm/search/_internal/portalSearchItems.js.map +1 -1
  45. package/dist/esm/search/hubSearch.js.map +1 -1
  46. package/dist/esm/search/index.js +1 -0
  47. package/dist/esm/search/index.js.map +1 -1
  48. package/dist/esm/search/types/ISearchResponseHash.js +1 -0
  49. package/dist/esm/search/types/ISearchResponseHash.js.map +1 -0
  50. package/dist/esm/search/types/index.js +1 -0
  51. package/dist/esm/search/types/index.js.map +1 -1
  52. package/dist/esm/sites/HubSite.js +1 -1
  53. package/dist/esm/sites/HubSite.js.map +1 -1
  54. package/dist/esm/sites/_internal/_enforce-lowercase-domains.js +2 -1
  55. package/dist/esm/sites/_internal/_enforce-lowercase-domains.js.map +1 -1
  56. package/dist/esm/sites/_internal/_ensure-catalog.js +2 -1
  57. package/dist/esm/sites/_internal/_ensure-catalog.js.map +1 -1
  58. package/dist/esm/sites/_internal/_ensure-telemetry.js +3 -1
  59. package/dist/esm/sites/_internal/_ensure-telemetry.js.map +1 -1
  60. package/dist/esm/sites/_internal/_migrate-feed-config.js +2 -1
  61. package/dist/esm/sites/_internal/_migrate-feed-config.js.map +1 -1
  62. package/dist/esm/sites/_internal/_purge-non-guids-from-catalog.js +3 -1
  63. package/dist/esm/sites/_internal/_purge-non-guids-from-catalog.js.map +1 -1
  64. package/dist/esm/sites/_internal/applyPermissionMigration.js +2 -1
  65. package/dist/esm/sites/_internal/applyPermissionMigration.js.map +1 -1
  66. package/dist/esm/sites/_internal/handleDomainChanges.js +2 -1
  67. package/dist/esm/sites/_internal/handleDomainChanges.js.map +1 -1
  68. package/dist/esm/sites/domains/addSiteDomains.js +2 -1
  69. package/dist/esm/sites/domains/addSiteDomains.js.map +1 -1
  70. package/dist/esm/sites/domains/ensure-unique-domain-name.js +1 -1
  71. package/dist/esm/sites/domains/ensure-unique-domain-name.js.map +1 -1
  72. package/dist/esm/sites/domains/is-valid-domain.js +1 -1
  73. package/dist/esm/sites/domains/is-valid-domain.js.map +1 -1
  74. package/dist/esm/sites/domains/removeDomainByHostname.js +4 -2
  75. package/dist/esm/sites/domains/removeDomainByHostname.js.map +1 -1
  76. package/dist/esm/sites/drafts/build-draft.js +1 -1
  77. package/dist/esm/sites/drafts/build-draft.js.map +1 -1
  78. package/dist/esm/sites/fetchSiteModel.js +4 -1
  79. package/dist/esm/sites/fetchSiteModel.js.map +1 -1
  80. package/dist/esm/sites/get-site-by-id.js +2 -2
  81. package/dist/esm/sites/get-site-by-id.js.map +1 -1
  82. package/dist/esm/sites/registerSiteAsApplication.js +2 -1
  83. package/dist/esm/sites/registerSiteAsApplication.js.map +1 -1
  84. package/dist/esm/sites/themes.js +2 -1
  85. package/dist/esm/sites/themes.js.map +1 -1
  86. package/dist/esm/users/_internal/enrichments.js +2 -1
  87. package/dist/esm/users/_internal/enrichments.js.map +1 -1
  88. package/dist/node/ArcGISContextManager.js +11 -10
  89. package/dist/node/ArcGISContextManager.js.map +1 -1
  90. package/dist/node/capabilities/_internal/checkCapabilityAccess.js +2 -2
  91. package/dist/node/capabilities/_internal/checkCapabilityAccess.js.map +1 -1
  92. package/dist/node/capabilities/getWorkspaceCapabilities.js.map +1 -1
  93. package/dist/node/core/_internal/PropertyMapper.js +9 -8
  94. package/dist/node/core/_internal/PropertyMapper.js.map +1 -1
  95. package/dist/node/core/_internal/deepContains.js +5 -5
  96. package/dist/node/core/_internal/deepContains.js.map +1 -1
  97. package/dist/node/core/fetchHubEntity.js.map +1 -1
  98. package/dist/node/core/schemas/hubproject.js +4 -4
  99. package/dist/node/core/schemas/hubproject.js.map +1 -1
  100. package/dist/node/core/types/IHubContent.js.map +1 -1
  101. package/dist/node/groups/_internal/enrichments.js.map +1 -1
  102. package/dist/node/initiatives/HubInitiative.js +3 -3
  103. package/dist/node/initiatives/HubInitiative.js.map +1 -1
  104. package/dist/node/initiatives/_internal/InitiativeBusinessRules.js.map +1 -1
  105. package/dist/node/items/_internal/_prepare-upload-requests.js.map +1 -1
  106. package/dist/node/items/registerBrowserApp.js +2 -2
  107. package/dist/node/items/registerBrowserApp.js.map +1 -1
  108. package/dist/node/items/setItemThumbnail.js +4 -4
  109. package/dist/node/items/setItemThumbnail.js.map +1 -1
  110. package/dist/node/items/slugs.js +2 -2
  111. package/dist/node/items/slugs.js.map +1 -1
  112. package/dist/node/models/index.js +10 -8
  113. package/dist/node/models/index.js.map +1 -1
  114. package/dist/node/objects/deepGetPropValues.js +2 -2
  115. package/dist/node/objects/deepGetPropValues.js.map +1 -1
  116. package/dist/node/org/fetch-org.js +3 -2
  117. package/dist/node/org/fetch-org.js.map +1 -1
  118. package/dist/node/projects/HubProject.js +3 -3
  119. package/dist/node/projects/HubProject.js.map +1 -1
  120. package/dist/node/projects/_internal/ProjectBusinessRules.js.map +1 -1
  121. package/dist/node/request.js +2 -2
  122. package/dist/node/request.js.map +1 -1
  123. package/dist/node/search/Catalog.js +1 -1
  124. package/dist/node/search/Catalog.js.map +1 -1
  125. package/dist/node/search/Collection.js +3 -3
  126. package/dist/node/search/Collection.js.map +1 -1
  127. package/dist/node/search/_internal/hubSearchItems.js.map +1 -1
  128. package/dist/node/search/_internal/portalSearchGroups.js +2 -2
  129. package/dist/node/search/_internal/portalSearchGroups.js.map +1 -1
  130. package/dist/node/search/_internal/portalSearchItems.js +6 -4
  131. package/dist/node/search/_internal/portalSearchItems.js.map +1 -1
  132. package/dist/node/search/hubSearch.js.map +1 -1
  133. package/dist/node/search/index.js +1 -0
  134. package/dist/node/search/index.js.map +1 -1
  135. package/dist/node/search/types/ISearchResponseHash.js +3 -0
  136. package/dist/node/search/types/ISearchResponseHash.js.map +1 -0
  137. package/dist/node/search/types/index.js +1 -0
  138. package/dist/node/search/types/index.js.map +1 -1
  139. package/dist/node/sites/HubSite.js +3 -3
  140. package/dist/node/sites/HubSite.js.map +1 -1
  141. package/dist/node/sites/_internal/_enforce-lowercase-domains.js +4 -3
  142. package/dist/node/sites/_internal/_enforce-lowercase-domains.js.map +1 -1
  143. package/dist/node/sites/_internal/_ensure-catalog.js +7 -6
  144. package/dist/node/sites/_internal/_ensure-catalog.js.map +1 -1
  145. package/dist/node/sites/_internal/_ensure-telemetry.js +8 -6
  146. package/dist/node/sites/_internal/_ensure-telemetry.js.map +1 -1
  147. package/dist/node/sites/_internal/_migrate-feed-config.js +4 -3
  148. package/dist/node/sites/_internal/_migrate-feed-config.js.map +1 -1
  149. package/dist/node/sites/_internal/_purge-non-guids-from-catalog.js +7 -5
  150. package/dist/node/sites/_internal/_purge-non-guids-from-catalog.js.map +1 -1
  151. package/dist/node/sites/_internal/applyPermissionMigration.js +4 -3
  152. package/dist/node/sites/_internal/applyPermissionMigration.js.map +1 -1
  153. package/dist/node/sites/_internal/handleDomainChanges.js +6 -5
  154. package/dist/node/sites/_internal/handleDomainChanges.js.map +1 -1
  155. package/dist/node/sites/domains/addSiteDomains.js +4 -3
  156. package/dist/node/sites/domains/addSiteDomains.js.map +1 -1
  157. package/dist/node/sites/domains/ensure-unique-domain-name.js +2 -2
  158. package/dist/node/sites/domains/ensure-unique-domain-name.js.map +1 -1
  159. package/dist/node/sites/domains/is-valid-domain.js +2 -2
  160. package/dist/node/sites/domains/is-valid-domain.js.map +1 -1
  161. package/dist/node/sites/domains/removeDomainByHostname.js +7 -5
  162. package/dist/node/sites/domains/removeDomainByHostname.js.map +1 -1
  163. package/dist/node/sites/drafts/build-draft.js +2 -2
  164. package/dist/node/sites/drafts/build-draft.js.map +1 -1
  165. package/dist/node/sites/fetchSiteModel.js +8 -5
  166. package/dist/node/sites/fetchSiteModel.js.map +1 -1
  167. package/dist/node/sites/get-site-by-id.js +3 -3
  168. package/dist/node/sites/get-site-by-id.js.map +1 -1
  169. package/dist/node/sites/registerSiteAsApplication.js +4 -3
  170. package/dist/node/sites/registerSiteAsApplication.js.map +1 -1
  171. package/dist/node/sites/themes.js +6 -5
  172. package/dist/node/sites/themes.js.map +1 -1
  173. package/dist/node/users/_internal/enrichments.js +4 -3
  174. package/dist/node/users/_internal/enrichments.js.map +1 -1
  175. package/dist/types/ArcGISContextManager.d.ts +2 -1
  176. package/dist/types/capabilities/_internal/checkCapabilityAccess.d.ts +2 -1
  177. package/dist/types/capabilities/getWorkspaceCapabilities.d.ts +2 -1
  178. package/dist/types/content/_internal.d.ts +1 -8
  179. package/dist/types/core/_internal/PropertyMapper.d.ts +1 -1
  180. package/dist/types/core/_internal/deepContains.d.ts +1 -1
  181. package/dist/types/core/fetchHubEntity.d.ts +1 -1
  182. package/dist/types/core/traits/IWithViewSettings.d.ts +1 -1
  183. package/dist/types/core/types/IHubContent.d.ts +1 -1
  184. package/dist/types/core/types/IItemEnrichments.d.ts +1 -1
  185. package/dist/types/groups/_internal/enrichments.d.ts +1 -1
  186. package/dist/types/initiatives/HubInitiative.d.ts +1 -1
  187. package/dist/types/initiatives/_internal/InitiativeBusinessRules.d.ts +2 -1
  188. package/dist/types/items/_internal/_prepare-upload-requests.d.ts +1 -1
  189. package/dist/types/models/index.d.ts +1 -1
  190. package/dist/types/org/fetch-org.d.ts +1 -1
  191. package/dist/types/projects/HubProject.d.ts +1 -1
  192. package/dist/types/projects/_internal/ProjectBusinessRules.d.ts +2 -1
  193. package/dist/types/search/Catalog.d.ts +1 -8
  194. package/dist/types/search/Collection.d.ts +1 -1
  195. package/dist/types/search/_internal/hubSearchItems.d.ts +1 -1
  196. package/dist/types/search/index.d.ts +1 -0
  197. package/dist/types/search/types/IHubSearchOptions.d.ts +2 -1
  198. package/dist/types/search/types/IHubSearchResult.d.ts +1 -1
  199. package/dist/types/search/types/ISearchResponseHash.d.ts +7 -0
  200. package/dist/types/search/types/index.d.ts +1 -0
  201. package/dist/types/sites/HubSite.d.ts +1 -1
  202. package/dist/types/sites/_internal/SiteBusinessRules.d.ts +1 -1
  203. package/dist/types/sites/_internal/_enforce-lowercase-domains.d.ts +1 -1
  204. package/dist/types/sites/_internal/_ensure-catalog.d.ts +1 -1
  205. package/dist/types/sites/_internal/_ensure-telemetry.d.ts +1 -1
  206. package/dist/types/sites/_internal/_migrate-feed-config.d.ts +1 -1
  207. package/dist/types/sites/_internal/_purge-non-guids-from-catalog.d.ts +1 -1
  208. package/dist/types/sites/_internal/applyPermissionMigration.d.ts +1 -1
  209. package/dist/types/sites/_internal/handleDomainChanges.d.ts +1 -1
  210. package/dist/types/sites/domains/addSiteDomains.d.ts +1 -1
  211. package/dist/types/sites/drafts/build-draft.d.ts +1 -1
  212. package/dist/types/sites/fetchSiteModel.d.ts +2 -2
  213. package/dist/types/sites/get-site-by-id.d.ts +2 -2
  214. package/dist/types/sites/registerSiteAsApplication.d.ts +1 -1
  215. package/dist/types/sites/themes.d.ts +1 -1
  216. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"build-draft.js","sourceRoot":"","sources":["../../../../src/sites/drafts/build-draft.ts"],"names":[],"mappings":";;;AAAA,6BAAqD;AAErD;;;;GAIG;AACH,SAAgB,UAAU,CAAC,KAAa,EAAE,WAAqB;IAC7D,OAAO,gBAAY,CAAC,KAAK,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC;AAC9C,CAAC;AAFD,gCAEC"}
1
+ {"version":3,"file":"build-draft.js","sourceRoot":"","sources":["../../../../src/sites/drafts/build-draft.ts"],"names":[],"mappings":";;;AAAA,2CAA6C;AAG7C;;;;GAIG;AACH,SAAgB,UAAU,CAAC,KAAa,EAAE,WAAqB;IAC7D,OAAO,sBAAY,CAAC,KAAK,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC;AAC9C,CAAC;AAFD,gCAEC"}
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fetchSiteModel = void 0;
4
- const __1 = require("..");
4
+ const urls_1 = require("../urls");
5
+ const utils_1 = require("../utils");
6
+ const domains_1 = require("./domains");
7
+ const get_site_by_id_1 = require("./get-site-by-id");
5
8
  /**
6
9
  * Returns site model given various kinds of identifier
7
10
  *
@@ -10,15 +13,15 @@ const __1 = require("..");
10
13
  */
11
14
  function fetchSiteModel(identifier, hubRequestOptions) {
12
15
  let prms;
13
- if (__1.isGuid(identifier)) {
14
- prms = __1.getSiteById(identifier, hubRequestOptions);
16
+ if (utils_1.isGuid(identifier)) {
17
+ prms = get_site_by_id_1.getSiteById(identifier, hubRequestOptions);
15
18
  }
16
19
  else {
17
20
  let hostnameOrSlug = identifier;
18
21
  // get down the the hostname
19
- hostnameOrSlug = __1.stripProtocol(hostnameOrSlug);
22
+ hostnameOrSlug = urls_1.stripProtocol(hostnameOrSlug);
20
23
  hostnameOrSlug = hostnameOrSlug.split("/")[0];
21
- prms = __1.lookupDomain(hostnameOrSlug, hubRequestOptions).then(({ siteId }) => __1.getSiteById(siteId, hubRequestOptions));
24
+ prms = domains_1.lookupDomain(hostnameOrSlug, hubRequestOptions).then(({ siteId }) => get_site_by_id_1.getSiteById(siteId, hubRequestOptions));
22
25
  }
23
26
  return prms;
24
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fetchSiteModel.js","sourceRoot":"","sources":["../../../src/sites/fetchSiteModel.ts"],"names":[],"mappings":";;;AAAA,0BAMY;AAEZ;;;;;GAKG;AACH,SAAgB,cAAc,CAC5B,UAAkB,EAClB,iBAAqC;IAErC,IAAI,IAAI,CAAC;IAET,IAAI,UAAM,CAAC,UAAU,CAAC,EAAE;QACtB,IAAI,GAAG,eA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@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getSiteById = void 0;
4
- const _1 = require(".");
5
- const __1 = require("..");
4
+ const models_1 = require("../models");
5
+ const upgrade_site_schema_1 = require("./upgrade-site-schema");
6
6
  /**
7
7
  * Get a Site Model by it's Item Id, and apply schema upgrades
8
8
  * @param {String} id Site Item Id
9
9
  * @param {IHubRequestOptions} hubRequestOptions
10
10
  */
11
11
  function getSiteById(id, hubRequestOptions) {
12
- return __1.getModel(id, hubRequestOptions).then(_1.upgradeSiteSchema);
12
+ return models_1.getModel(id, hubRequestOptions).then(upgrade_site_schema_1.upgradeSiteSchema);
13
13
  }
14
14
  exports.getSiteById = getSiteById;
15
15
  //# sourceMappingURL=get-site-by-id.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-site-by-id.js","sourceRoot":"","sources":["../../../src/sites/get-site-by-id.ts"],"names":[],"mappings":";;;AAAA,wBAAsC;AACtC,0BAAkD;AAElD;;;;GAIG;AACH,SAAgB,WAAW,CAAC,EAAU,EAAE,iBAAqC;IAC3E,OAAO,YAAQ,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC,IAAI,CAAC,oBAAiB,CAAC,CAAC;AACjE,CAAC;AAFD,kCAEC"}
1
+ {"version":3,"file":"get-site-by-id.js","sourceRoot":"","sources":["../../../src/sites/get-site-by-id.ts"],"names":[],"mappings":";;;AAAA,sCAAqC;AAErC,+DAA0D;AAE1D;;;;GAIG;AACH,SAAgB,WAAW,CAAC,EAAU,EAAE,iBAAqC;IAC3E,OAAO,iBAAQ,CAAC,EAAE,EAAE,iBAAiB,CAAC,CAAC,IAAI,CAAC,uCAAiB,CAAC,CAAC;AACjE,CAAC;AAFD,kCAEC"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.registerSiteAsApplication = void 0;
4
- const __1 = require("..");
5
4
  const registerBrowserApp_1 = require("../items/registerBrowserApp");
5
+ const objects_1 = require("../objects");
6
+ const urls_1 = require("../urls");
6
7
  /**
7
8
  * Register the Site item as an application so we can oauth against it
8
9
  * @param {string} siteId Item Id of the site
@@ -14,12 +15,12 @@ function registerSiteAsApplication(model, hubRequestOptions) {
14
15
  if (hubRequestOptions.isPortal)
15
16
  return Promise.resolve({});
16
17
  const uris = [model.data.values.defaultHostname];
17
- if (__1.getProp(model, "data.values.customHostname")) {
18
+ if (objects_1.getProp(model, "data.values.customHostname")) {
18
19
  uris.push(model.data.values.customHostname);
19
20
  }
20
21
  // get both the http and https versions of the urls, just to cover all the bases
21
22
  const redirectUris = uris.reduce((acc, uri) => {
22
- return acc.concat(__1._getHttpAndHttpsUris(uri));
23
+ return acc.concat(urls_1._getHttpAndHttpsUris(uri));
23
24
  }, []);
24
25
  return registerBrowserApp_1.registerBrowserApp(model.item.id, redirectUris, hubRequestOptions);
25
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"registerSiteAsApplication.js","sourceRoot":"","sources":["../../../src/sites/registerSiteAsApplication.ts"],"names":[],"mappings":";;;AAAA,0BAA+E;AAC/E,oEAAiE;AACjE;;;;;GAKG;AACH,SAAgB,yBAAyB,CACvC,KAAa,EACb,iBAAqC;IAErC,mGAAmG;IACnG,IAAI,iBAAiB,CAAC,QAAQ;QAAE,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAE3D,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACjD,IAAI,WAAO,CAAC,KAAK,EAAE,4BAA4B,CAAC,EAAE;QAChD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;KAC7C;IACD,gFAAgF;IAChF,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAC5C,OAAO,GAAG,CAAC,MAAM,CAAC,wBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/C,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,uCAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,EAAE,iBAAiB,CAAC,CAAC;AAC5E,CAAC;AAhBD,8DAgBC"}
1
+ {"version":3,"file":"registerSiteAsApplication.js","sourceRoot":"","sources":["../../../src/sites/registerSiteAsApplication.ts"],"names":[],"mappings":";;;AAAA,oEAAiE;AACjE,wCAAqC;AAErC,kCAA+C;AAC/C;;;;;GAKG;AACH,SAAgB,yBAAyB,CACvC,KAAa,EACb,iBAAqC;IAErC,mGAAmG;IACnG,IAAI,iBAAiB,CAAC,QAAQ;QAAE,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAE3D,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACjD,IAAI,iBAAO,CAAC,KAAK,EAAE,4BAA4B,CAAC,EAAE;QAChD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;KAC7C;IACD,gFAAgF;IAChF,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAC5C,OAAO,GAAG,CAAC,MAAM,CAAC,2BAAoB,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/C,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,uCAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,EAAE,iBAAiB,CAAC,CAAC;AAC5E,CAAC;AAhBD,8DAgBC"}
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getOrgDefaultTheme = exports.DEFAULT_THEME = void 0;
4
- const __1 = require("..");
4
+ const objects_1 = require("../objects");
5
+ const util_1 = require("../util");
5
6
  /**
6
7
  * Default Site Theme
7
8
  */
@@ -38,11 +39,11 @@ exports.DEFAULT_THEME = {
38
39
  * @param {Object} portalSelf Org's Portal object
39
40
  */
40
41
  function getOrgDefaultTheme(portalSelf) {
41
- let defaultTheme = __1.cloneObject(exports.DEFAULT_THEME);
42
- let sharedTheme = __1.getProp(portalSelf, "portalProperties.sharedTheme");
42
+ let defaultTheme = util_1.cloneObject(exports.DEFAULT_THEME);
43
+ let sharedTheme = objects_1.getProp(portalSelf, "portalProperties.sharedTheme");
43
44
  if (sharedTheme) {
44
- sharedTheme = __1.removeEmptyProps(sharedTheme);
45
- defaultTheme = __1.extend(defaultTheme, sharedTheme);
45
+ sharedTheme = objects_1.removeEmptyProps(sharedTheme);
46
+ defaultTheme = util_1.extend(defaultTheme, sharedTheme);
46
47
  }
47
48
  return defaultTheme;
48
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"themes.js","sourceRoot":"","sources":["../../../src/sites/themes.ts"],"names":[],"mappings":";;;AACA,0BAMY;AAEZ;;GAEG;AACU,QAAA,aAAa,GAAkB;IAC1C,MAAM,EAAE;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,SAAS;KAChB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;KAChB;IACD,MAAM,EAAE;QACN,UAAU,EAAE,SAAS;QACrB,IAAI,EAAE,MAAM;KACb;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,EAAE;KACV;IACD,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,GAAG,EAAE,EAAE;YACP,MAAM,EAAE,aAAa;SACtB;QACD,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,MAAM,EAAE,aAAa;SACtB;KACF;CACF,CAAC;AAEF;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,UAAmB;IACpD,IAAI,YAAY,GAAG,eAAW,CAAC,qBAAa,CAAC,CAAC;IAC9C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1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fetchUserEnrichments = void 0;
4
- const __1 = require("../..");
4
+ const fetch_org_1 = require("../../org/fetch-org");
5
5
  const _enrichments_1 = require("../../items/_enrichments");
6
6
  const OperationStack_1 = require("../../OperationStack");
7
+ const urls_1 = require("../../urls");
7
8
  const utils_1 = require("../../utils");
8
9
  const enrichUserOrg = (input) => {
9
10
  const { data, stack, requestOptions } = input;
@@ -12,7 +13,7 @@ const enrichUserOrg = (input) => {
12
13
  // In order to get the correct response, we must pass options.portal
13
14
  // as a base portal url (e.g., www.arcgis.com, qaext.arcgis.com, etc)
14
15
  // **not** an org portal (i.e. org.maps.arcgis.com).
15
- portal: `${__1.getPortalBaseFromOrgUrl(requestOptions.portal)}/sharing/rest` });
16
+ portal: `${urls_1.getPortalBaseFromOrgUrl(requestOptions.portal)}/sharing/rest` });
16
17
  // TODO: Add Caching
17
18
  // Had implemented a simple caching system, but it leads to unstable
18
19
  // tests because we can't deterministically clear it
@@ -20,7 +21,7 @@ const enrichUserOrg = (input) => {
20
21
  // orgCache[data.user.orgId] = fetchOrg(data.user.orgId, options);
21
22
  // }
22
23
  // return (orgCache[data.user.orgId] as Promise<IPortal>)
23
- return __1.fetchOrg(data.user.orgId, options)
24
+ return fetch_org_1.fetchOrg(data.user.orgId, options)
24
25
  .then((results) => {
25
26
  stack.finish(opId);
26
27
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"enrichments.js","sourceRoot":"","sources":["../../../../src/users/_internal/enrichments.ts"],"names":[],"mappings":";;;AACA,6BAA0D;AAC1D,2DAA+D;AAC/D,yDAAkD;AAElD,uCAAiE;AAgCjE,MAAM,aAAa,GAAG,CACpB,KAAqC,EACI,EAAE;IAC3C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAC9C,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAC1C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ACnB,CAAC;AAEF;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAClC,IAAW,EACX,WAA6B,EAC7B,cAAmC;IAEnC,6CAA6C;IAC7C,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE;QACxD,MAAM,SAAS,GAAG,0BAA0B,CAAC,UAAU,CAAC,CAAC;QACzD,yDAAyD;QACzD,SAAS,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjC,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,QAAQ,GAAG,+BAAuB,CAAsB,UAAU,CAAC,CAAC;IAC1E,uDAAuD;IACvD,OAAO,QAAQ,CAAC;QACd,IAAI,EAAE,EAAE,IAAI,EAAE;QACd,KAAK,EAAE,IAAI,wBAAc,EAAE;QAC3B,cAAc;KACf,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;QACjB,6FAA6F;QAC7F,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC;AAtBD,oDAsBC"}
1
+ {"version":3,"file":"enrichments.js","sourceRoot":"","sources":["../../../../src/users/_internal/enrichments.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAC/C,2DAA+D;AAC/D,yDAAkD;AAElD,qCAAqD;AACrD,uCAAiE;AAgCjE,MAAM,aAAa,GAAG,CACpB,KAAqC,EACI,EAAE;IAC3C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAC9C,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAC1C,MAAM,OAAO,mCACR,cAAc;QACjB,oEAAoE;QACpE,qEAAqE;QACrE,oDAAoD;QACpD,MAAM,EAAE,GAAG,8BAAuB,CAAC,cAAc,CAAC,MAAM,CAAC,eAAe,GACzE,CAAC;IACF,oBAAo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GAAG,EAAE,UAAU,EAAE,EAAE;QACxD,MAAM,SAAS,GAAG,0BAA0B,CAAC,UAAU,CAAC,CAAC;QACzD,yDAAyD;QACzD,SAAS,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjC,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,QAAQ,GAAG,+BAAuB,CAAsB,UAAU,CAAC,CAAC;IAC1E,uDAAuD;IACvD,OAAO,QAAQ,CAAC;QACd,IAAI,EAAE,EAAE,IAAI,EAAE;QACd,KAAK,EAAE,IAAI,wBAAc,EAAE;QAC3B,cAAc;KACf,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;QACjB,6FAA6F;QAC7F,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC;AAtBD,oDAsBC"}
@@ -1,7 +1,8 @@
1
1
  import { IPortal } from "@esri/arcgis-rest-portal";
2
2
  import { IUser, UserSession } from "@esri/arcgis-rest-auth";
3
3
  import { IArcGISContext } from "./ArcGISContext";
4
- import { Level, HubSystemStatus } from ".";
4
+ import { Level } from "./utils/logger";
5
+ import { HubSystemStatus } from "./core";
5
6
  /**
6
7
  * Options that can be passed into `ArcGISContextManager.create`
7
8
  */
@@ -1,4 +1,5 @@
1
- import { HubEntity, IArcGISContext } from "../../index";
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ import { HubEntity } from "../../core";
2
3
  import { ICapabilityAccessResponse, ICapabilityPermission } from "../types";
3
4
  /**
4
5
  * Check an individual capability access rule
@@ -1,5 +1,6 @@
1
- import { HubEntity, IArcGISContext } from "..";
2
1
  import { IWorkspaceCapabilityResponse, ICapabilityPermission } from "./types";
2
+ import { HubEntity } from "../core";
3
+ import { IArcGISContext } from "../ArcGISContext";
3
4
  /**
4
5
  * List of all the Capability Permissions in the Hub System
5
6
  * These are defined in the entity specific modules files
@@ -52,14 +52,7 @@ export declare const setContentBoundary: (content: IHubContent, boundary: Geogra
52
52
  publisher?: {
53
53
  name?: string;
54
54
  username?: string;
55
- nameSource: PublisherSource; /**
56
- * Get the relative URL to use for the item in a hub site
57
- * @param type
58
- * @param identifier
59
- * @param typeKeywords
60
- * @returns
61
- * @private
62
- */
55
+ nameSource: PublisherSource;
63
56
  organization?: string;
64
57
  orgId?: string;
65
58
  organizationSource: PublisherSource;
@@ -1,4 +1,4 @@
1
- import { IModel } from "../..";
1
+ import { IModel } from "../../types";
2
2
  /**
3
3
  * @private
4
4
  * Manage forward and backward property mappings to
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "../..";
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
2
  import { IContainsResponse, IDeepCatalogInfo } from "../../search";
3
3
  /**
4
4
  * Check if a particular entity is contained in a catalog.
@@ -1,6 +1,6 @@
1
- import { IArcGISContext } from "../ArcGISContext";
2
1
  import { HubEntity } from "./types/HubEntity";
3
2
  import { HubEntityType } from "./types/HubEntityType";
3
+ import { IArcGISContext } from "../ArcGISContext";
4
4
  /**
5
5
  * Fetch a Hub entity by identifier (id or slug)
6
6
  * @param type
@@ -10,5 +10,5 @@ export interface IWithViewSettings {
10
10
  * Url of the items featured image
11
11
  */
12
12
  featuredImageUrl?: string;
13
- relatedItemIds: string[];
13
+ featuredContentIds: string[];
14
14
  }
@@ -2,9 +2,9 @@ import { IItem, IGroup } from "@esri/arcgis-rest-portal";
2
2
  import { ILayerDefinition } from "@esri/arcgis-rest-feature-layer";
3
3
  import { AccessControl, HubFamily, IActionLink, Visibility } from "../../types";
4
4
  import { IStructuredLicense } from "../../items/get-structured-license";
5
- import { IHubItemEntity } from ".";
6
5
  import { IHubContentEnrichments } from "./IHubContentEnrichments";
7
6
  import { IHubAdditionalResource } from "./IHubAdditionalResource";
7
+ import { IHubItemEntity } from "./IHubItemEntity";
8
8
  export declare enum PublisherSource {
9
9
  CitationContact = "metadata.resource.citation.contact",
10
10
  ResourceContact = "metadata.resource.contact",
@@ -1,5 +1,5 @@
1
1
  import { IUser, IPortal } from "@esri/arcgis-rest-portal";
2
- import { IEnrichmentErrorInfo } from "../..";
2
+ import { IEnrichmentErrorInfo } from "../../types";
3
3
  export interface IItemEnrichments {
4
4
  /** The portal item's data (if any) */
5
5
  data?: {
@@ -1,6 +1,6 @@
1
1
  import { IGroup } from "@esri/arcgis-rest-portal";
2
- import { IGroupMembershipSummary } from "../..";
3
2
  import { IEnrichmentErrorInfo, IHubRequestOptions } from "../../types";
3
+ import { IGroupMembershipSummary } from "../types";
4
4
  /**
5
5
  * Possible additional properties available through enrichments
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import { IHubInitiative, IWithPermissionBehavior, IWithCatalogBehavior, IWithStoreBehavior, IWithSharingBehavior, IWithCapabilityBehavior } from "../core";
2
- import { Catalog } from "../search/Catalog";
2
+ import { Catalog } from "../search";
3
3
  import { IArcGISContext } from "../ArcGISContext";
4
4
  import { HubItemEntity } from "../core/HubItemEntity";
5
5
  /**
@@ -1,4 +1,5 @@
1
- import { EntityCapabilities, ICapabilityPermission, IPermissionPolicy } from "../../index";
1
+ import { EntityCapabilities, ICapabilityPermission } from "../../capabilities";
2
+ import { IPermissionPolicy } from "../../permissions";
2
3
  /**
3
4
  * Default capabilities for a Initiative. If not listed here, the capability will not be available
4
5
  * This hash is combined with the capabilities hash stored in the item data. Regardless of what
@@ -1,5 +1,5 @@
1
1
  import { IUserRequestOptions } from "@esri/arcgis-rest-auth";
2
- import { IBatch } from "../..";
2
+ import { IBatch } from "../../types";
3
3
  /**
4
4
  * Takes a file, file owner, and file AGO item id along with a size limit
5
5
  * Then chunks the file up based on that file limit.
@@ -2,7 +2,7 @@ export * from "./serializeModel";
2
2
  import { 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
- import { IModel } from "..";
5
+ import { IModel } from "../types";
6
6
  /**
7
7
  * Gets the full item/data model for an item id
8
8
  * @param {string} id
@@ -6,4 +6,4 @@ import { IRequestOptions } from "@esri/arcgis-rest-request";
6
6
  * @param options request options
7
7
  * @returns
8
8
  */
9
- export declare const fetchOrg: (orgId: string, options?: IRequestOptions) => Promise<import("@esri/arcgis-rest-portal").IPortal>;
9
+ export declare function fetchOrg(orgId: string, options?: IRequestOptions): Promise<import("@esri/arcgis-rest-portal").IPortal>;
@@ -1,5 +1,5 @@
1
1
  import { IHubProject, IWithPermissionBehavior, IWithCatalogBehavior, IWithStoreBehavior, IWithSharingBehavior, UiSchemaElementOptions, IWithCapabilityBehavior } from "../core";
2
- import { Catalog } from "../search/Catalog";
2
+ import { Catalog } from "../search";
3
3
  import { IArcGISContext } from "../ArcGISContext";
4
4
  import { HubItemEntity } from "../core/HubItemEntity";
5
5
  import { EditorConfigType, IEditorConfig } from "../core/behaviors/IWithEditorBehavior";
@@ -1,4 +1,5 @@
1
- import { EntityCapabilities, ICapabilityPermission, IPermissionPolicy } from "../../index";
1
+ import { EntityCapabilities, ICapabilityPermission } from "../../capabilities";
2
+ import { IPermissionPolicy } from "../../permissions";
2
3
  /**
3
4
  * Default capabilities for a Project. If not listed here, the capability will not be available
4
5
  * This hash is combined with the capabilities hash stored in the item data. Regardless of what
@@ -1,13 +1,6 @@
1
1
  import { IArcGISContext } from "../ArcGISContext";
2
2
  import { Collection } from "./Collection";
3
- import { IContainsOptions, IContainsResponse, IHubSearchOptions, IHubSearchResponse, IHubSearchResult } from "./types";
4
- import { EntityType, ICatalogScope, IHubCatalog, IQuery } from "./types/IHubCatalog";
5
- /**
6
- * Response from a Catalog search operation where the responses for different collections
7
- * or entities are grouped into a single object.
8
- */
9
- export interface ISearchResponseHash extends Record<string, IHubSearchResponse<IHubSearchResult>> {
10
- }
3
+ import { EntityType, ISearchResponseHash, IContainsOptions, IContainsResponse, IHubSearchOptions, IHubSearchResponse, IHubSearchResult, ICatalogScope, IHubCatalog, IQuery } from "./types";
11
4
  /**
12
5
  * Catalog Class
13
6
  *
@@ -1,4 +1,4 @@
1
- import { IArcGISContext } from "..";
1
+ import { IArcGISContext } from "../ArcGISContext";
2
2
  import { EntityType, IHubCollection, IHubSearchOptions, IHubSearchResponse, IHubSearchResult, IQuery } from "./types";
3
3
  /**
4
4
  * Collection Class
@@ -1,4 +1,4 @@
1
- import { IHubContent } from "../..";
1
+ import { IHubContent } from "../../core";
2
2
  import { IHubSearchOptions, IHubSearchResponse, IHubSearchResult, IQuery } from "../types";
3
3
  /**
4
4
  * @private
@@ -2,6 +2,7 @@ export * from "./utils";
2
2
  export * from "./types";
3
3
  export * from "./upgradeCatalogSchema";
4
4
  export * from "./serializeQueryForPortal";
5
+ export * from "./fetchCatalog";
5
6
  export * from "./hubSearch";
6
7
  export * from "./Catalog";
7
8
  export * from "./Collection";
@@ -1,5 +1,6 @@
1
1
  import { UserSession } from "@esri/arcgis-rest-auth";
2
- import { EntityType, IHubRequestOptions } from "../../index";
2
+ import { IHubRequestOptions } from "../../types";
3
+ import { EntityType } from "./IHubCatalog";
3
4
  import { NamedApis, IApiDefinition } from "./types";
4
5
  export declare type Enrichments = "data" | "metadata" | "org" | "service" | "layers";
5
6
  /**
@@ -1,5 +1,5 @@
1
- import { HubFamily, IHubGeography } from "../..";
2
1
  import { AccessLevel, IHubEntityBase } from "../../core";
2
+ import { HubFamily, IHubGeography } from "../../types";
3
3
  /**
4
4
  * Simple interface for Links
5
5
  */
@@ -0,0 +1,7 @@
1
+ import { IHubSearchResponse, IHubSearchResult } from ".";
2
+ /**
3
+ * Response from a Catalog search operation where the responses for different collections
4
+ * or entities are grouped into a single object.
5
+ */
6
+ export interface ISearchResponseHash extends Record<string, IHubSearchResponse<IHubSearchResult>> {
7
+ }
@@ -4,3 +4,4 @@ export * from "./IHubSearchResult";
4
4
  export * from "./IHubSearchResponse";
5
5
  export * from "./types";
6
6
  export * from "./IHubCatalog";
7
+ export * from "./ISearchResponseHash";
@@ -1,5 +1,5 @@
1
1
  import { IHubSite, IWithPermissionBehavior, IWithCatalogBehavior, IWithStoreBehavior, IWithSharingBehavior } from "../core";
2
- import { Catalog } from "../search/Catalog";
2
+ import { Catalog } from "../search";
3
3
  import { IArcGISContext } from "../ArcGISContext";
4
4
  import { HubItemEntity } from "../core/HubItemEntity";
5
5
  import { IContainsResponse, IDeepCatalogInfo } from "../search";
@@ -1,4 +1,4 @@
1
- import { EntityCapabilities, ICapabilityPermission } from "../../index";
1
+ import { EntityCapabilities, ICapabilityPermission } from "../../capabilities";
2
2
  import { IPermissionPolicy } from "../../permissions/types";
3
3
  /**
4
4
  * Default capabilities for a Site. If not listed here, the capability will not be available
@@ -1,4 +1,4 @@
1
- import { IModel } from "../..";
1
+ import { IModel } from "../../types";
2
2
  /**
3
3
  * Enforce lowercase domains
4
4
  * @param {Object} model Site Model
@@ -1,4 +1,4 @@
1
- import { IModel } from "../..";
1
+ import { IModel } from "../../types";
2
2
  /**
3
3
  * Move the data.values.groups array into the
4
4
  * data.catalog object
@@ -1,4 +1,4 @@
1
- import { IModel, IDraft } from "../..";
1
+ import { IDraft, IModel } from "../../types";
2
2
  /**
3
3
  * Add telemetry config object
4
4
  * @private
@@ -1,4 +1,4 @@
1
- import { IModel } from "../..";
1
+ import { IModel } from "../../types";
2
2
  /**
3
3
  * Migrates the site so it can store configurations for multiple feed formats
4
4
  * (dcat-us-1.1, dcat-ap-2.0.1, etc.). If the site has an existing custom
@@ -1,4 +1,4 @@
1
- import { IModel } from "../..";
1
+ import { IModel } from "../../types";
2
2
  /**
3
3
  * Remove any non-guid entries from the data catalog groups array
4
4
  * @param {object} model Site Model
@@ -1,4 +1,4 @@
1
- import { IModel } from "../../index";
1
+ import { IModel } from "../../types";
2
2
  /**
3
3
  * Informal migration that creates default permission policies based on the
4
4
  * Content and Collaboration Groups
@@ -1,4 +1,4 @@
1
- import { IHubRequestOptions, IModel } from "../..";
1
+ import { IHubRequestOptions, IModel } from "../../types";
2
2
  /**
3
3
  * Given two site models, determine the domain changes and apply them
4
4
  * @param currentModel
@@ -1,4 +1,4 @@
1
- import { IHubRequestOptions, IModel } from "../..";
1
+ import { IHubRequestOptions, IModel } from "../../types";
2
2
  /**
3
3
  * Given a Site Model, register the domains with the Domain Service.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { IModel, IDraft } from "../..";
1
+ import { IDraft, IModel } from "../../types";
2
2
  /**
3
3
  * Builds a draft with a subset of the model properties
4
4
  * @param {*} model - item model
@@ -1,8 +1,8 @@
1
- import { IHubRequestOptions } from "..";
1
+ import { IHubRequestOptions } from "../types";
2
2
  /**
3
3
  * Returns site model given various kinds of identifier
4
4
  *
5
5
  * @param identifier - a site item ID, site hostname, enterprise site slug, or full site URL
6
6
  * @param hubRequestOptions
7
7
  */
8
- export declare function fetchSiteModel(identifier: string, hubRequestOptions: IHubRequestOptions): Promise<import("..").IModel>;
8
+ export declare function fetchSiteModel(identifier: string, hubRequestOptions: IHubRequestOptions): Promise<import("../types").IModel>;
@@ -1,7 +1,7 @@
1
- import { IHubRequestOptions } from "..";
1
+ import { IHubRequestOptions } from "../types";
2
2
  /**
3
3
  * Get a Site Model by it's Item Id, and apply schema upgrades
4
4
  * @param {String} id Site Item Id
5
5
  * @param {IHubRequestOptions} hubRequestOptions
6
6
  */
7
- export declare function getSiteById(id: string, hubRequestOptions: IHubRequestOptions): Promise<import("..").IModel>;
7
+ export declare function getSiteById(id: string, hubRequestOptions: IHubRequestOptions): Promise<import("../types").IModel>;
@@ -1,4 +1,4 @@
1
- import { IHubRequestOptions, IModel } from "..";
1
+ import { IHubRequestOptions, IModel } from "../types";
2
2
  /**
3
3
  * Register the Site item as an application so we can oauth against it
4
4
  * @param {string} siteId Item Id of the site
@@ -1,5 +1,5 @@
1
1
  import { IPortal } from "@esri/arcgis-rest-portal";
2
- import { IHubSiteTheme } from "..";
2
+ import { IHubSiteTheme } from "../core";
3
3
  /**
4
4
  * Default Site Theme
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "12.3.0",
3
+ "version": "12.3.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",