@esri/arcgis-rest-demographics 3.6.0 → 3.7.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.
@@ -1,7 +1,7 @@
1
1
  /* @preserve
2
- * @esri/arcgis-rest-demographics - v3.6.0 - Apache-2.0
2
+ * @esri/arcgis-rest-demographics - v3.7.0 - Apache-2.0
3
3
  * Copyright (c) 2017-2023 Esri, Inc.
4
- * Fri Jan 13 2023 14:56:06 GMT-0700 (Mountain Standard Time)
4
+ * Thu Sep 07 2023 17:21:54 GMT-0700 (Pacific Daylight Time)
5
5
  */
6
6
  (function (global, factory) {
7
7
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@esri/arcgis-rest-request')) :
@@ -1,7 +1,7 @@
1
1
  /* @preserve
2
- * @esri/arcgis-rest-demographics - v3.6.0 - Apache-2.0
2
+ * @esri/arcgis-rest-demographics - v3.7.0 - Apache-2.0
3
3
  * Copyright (c) 2017-2023 Esri, Inc.
4
- * Fri Jan 13 2023 14:56:09 GMT-0700 (Mountain Standard Time)
4
+ * Thu Sep 07 2023 17:21:56 GMT-0700 (Pacific Daylight Time)
5
5
  */
6
6
  !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@esri/arcgis-rest-request")):"function"==typeof define&&define.amd?define(["exports","@esri/arcgis-rest-request"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).arcgisRest=e.arcgisRest||{},e.arcgisRest)}(this,function(e,t){"use strict";var n=function(){return(n=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var n in r=arguments[a])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}).apply(this,arguments)},r="https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver",s=r+"/Geoenrichment";e.getAvailableCountries=function(e){var r={},a=s+"/countries";return e?(e.endpoint&&(a=e.endpoint+"/countries"),r=t.appendCustomParams(e,[],{params:n({},e.params)}),e.countryCode&&(a=a+"/"+e.countryCode)):r.params={},t.request(t.cleanUrl(a),r).then(function(e){return e})},e.getAvailableDataCollections=function(e){var r={},a=s+"/dataCollections";return e?(e.endpoint&&(a=e.endpoint+"/dataCollections"),(r=t.appendCustomParams(e,["addDerivativeVariables","suppressNullValues"],{params:n({},e.params)})).params.addDerivativeVariables&&(r.params.addDerivativeVariables=JSON.stringify(r.params.addDerivativeVariables)),e.countryCode&&(a=a+"/"+e.countryCode,e.dataCollection&&(a=a+"/"+e.dataCollection))):r.params={},t.request(""+t.cleanUrl(a),r).then(function(e){return e})},e.getAvailableGeographyLevels=function(e){var r={},a=s+"/StandardGeographyLevels";return e?(e.endpoint&&(a=e.endpoint+"/StandardGeographyLevels"),r=t.appendCustomParams(e,[],{params:n({},e.params)})):r.params={},t.request(""+t.cleanUrl(a),r).then(function(e){return e})},e.getGeography=function(e){var r=(e.endpoint||"https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/StandardGeographyQuery")+"/execute",a=t.appendCustomParams(e,["sourceCountry","optionalCountryDataset","geographyLayers","geographyIDs","geographyQuery","returnSubGeographyLayer","subGeographyLayer","subGeographyQuery","outSR","returnGeometry","returnCentroids","generalizationLevel","useFuzzySearch","featureLimit","featureOffset","langCode"],{params:n({},e.params)});return e.authentication?(["geographyLayers","geographyIDs"].forEach(function(e){a.params[e]&&(a.params[e]=JSON.stringify(a.params[e]))}),t.request(""+t.cleanUrl(r),a).then(function(e){return e})):Promise.reject("Geoenrichment using the ArcGIS service requires authentication")},e.queryDemographicData=function(e){var r=t.appendCustomParams(e,["studyAreas","dataCollections","analysisVariables","addDerivativeVariables","returnGeometry","inSR","outSR"],{params:n({},e.params)});return e.authentication?(["dataCollections","analysisVariables"].forEach(function(e){r.params[e]&&(r.params[e]=JSON.stringify(r.params[e]))}),t.request(""+t.cleanUrl((e.endpoint||s)+"/enrich"),r).then(function(e){return e})):Promise.reject("Geoenrichment using the ArcGIS service requires authentication")},Object.defineProperty(e,"__esModule",{value:!0})});
7
7
  //# sourceMappingURL=demographics.umd.min.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/arcgis-rest-demographics",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "Demographics data helpers for @esri/arcgis-rest-js",
5
5
  "main": "dist/node/index.js",
6
6
  "unpkg": "dist/umd/geocoding.umd.js",
@@ -13,12 +13,12 @@
13
13
  "dist/**"
14
14
  ],
15
15
  "dependencies": {
16
- "@esri/arcgis-rest-types": "^3.6.0",
16
+ "@esri/arcgis-rest-types": "^3.7.0",
17
17
  "tslib": "^1.13.0"
18
18
  },
19
19
  "devDependencies": {
20
- "@esri/arcgis-rest-auth": "^3.6.0",
21
- "@esri/arcgis-rest-request": "^3.6.0"
20
+ "@esri/arcgis-rest-auth": "^3.7.0",
21
+ "@esri/arcgis-rest-request": "^3.7.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@esri/arcgis-rest-auth": "^3.0.0",